angularjs jasmine javascript protractor selenium

how to call the function in the specs – Protractor

I write this script under the module:

   var enter_search = function () {

this.clickSearch = function (value) {

this.waitElementFound = function (value) {
var EC = protractor.ExpectedConditions;
browser.wait(EC.presenceof(value), 35000);

module.exports = new enter_search();

and to call this function on my spec, i wrote this:

var search =  require('enter_search');
var loadtxt = element ('text'));

it('waits for the element', function(){

When I execute the test, it gives me an error undefined function. Not sure what went wrong. Thanks