Suppose if want to call a function inside customer.js file.ie,

customer.js

module.export = {
a: () => {
console.log('a is calling');
},

b: () => {
console.log('b is calling');
}

}

script.js

const customerSchema = require('/jsreport/models/customer.js');

function beforeRender (req,res) {
console.log("Calling function a ", customerSchema.a);
console.log("Calling function b ", customerSchema.b);
}

But when i call function a,b inside beforerender function i am getting value as undefined.Can you please suggest any solution?