X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Fami%2Frpc%2FvoiceCallReport.js;h=f356b12ad56623936775badf50153af2e0041416;hb=01b994ccefecbcf0783b039dab259e973f97957c;hp=0a8118a91ae8927a3d660e49c5fe1f1426a2d327;hpb=ff1c11e14fca8d30ba993bf9ad292fb70d9b0b0b;p=motion2.git diff --git a/server/services/ami/rpc/voiceCallReport.js b/server/services/ami/rpc/voiceCallReport.js index 0a8118a..f356b12 100644 --- a/server/services/ami/rpc/voiceCallReport.js +++ b/server/services/ami/rpc/voiceCallReport.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0xe29f=['lodash','create','CreateVoiceCallReport','merge','calleridnum','callerid','DOCUMENTATION','getVoiceCallReports','Request','outbound','startOf','day','format','YYYY-MM-DD\x20HH:mm:ss','endOf','type','duration','billableseconds','GetVoiceCallReports','moment','util'];(function(_0x1fbe89,_0x1ddac5){var _0x49f966=function(_0x4c6bcc){while(--_0x4c6bcc){_0x1fbe89['push'](_0x1fbe89['shift']());}};_0x49f966(++_0x1ddac5);}(_0xe29f,0x18d));var _0xfe29=function(_0x2a5a9e,_0x57b8bd){_0x2a5a9e=_0x2a5a9e-0x0;var _0xad442f=_0xe29f[_0x2a5a9e];return _0xad442f;};'use strict';var moment=require(_0xfe29('0x0'));var util=require(_0xfe29('0x1'));var _=require(_0xfe29('0x2'));var client=require('../client');exports[_0xfe29('0x3')]=function(_0xd90620){return client['Request'](_0xfe29('0x4'),{'body':_[_0xfe29('0x5')](_0xd90620,{'source':_0xd90620[_0xfe29('0x6')],'destinationcontext':_0xd90620['context'],'callerid':_0xd90620[_0xfe29('0x7')],'amaflags':_0xfe29('0x8')}),'log':_0xfe29('0x4')});};exports[_0xfe29('0x9')]=function(){return function(){return client[_0xfe29('0xa')]('GetVoiceCallReport',{'options':{'where':{'type':[_0xfe29('0xb')],'createdAt':{'$between':[moment()[_0xfe29('0xc')](_0xfe29('0xd'))[_0xfe29('0xe')](_0xfe29('0xf')),moment()[_0xfe29('0x10')](_0xfe29('0xd'))['format'](_0xfe29('0xf'))]}},'attributes':[_0xfe29('0x11'),'disposition',_0xfe29('0x12'),_0xfe29('0x13')]},'log':_0xfe29('0x14')});};}; \ No newline at end of file +var _0xf163=['moment','util','lodash','../client','create','Request','CreateVoiceCallReport','merge','calleridnum','context','callerid','DOCUMENTATION','getVoiceCallReports','GetVoiceCallReport','startOf','day','format','endOf','type','disposition','duration','billableseconds'];(function(_0x4068eb,_0xfb9c72){var _0x4bf1c3=function(_0x21a0e3){while(--_0x21a0e3){_0x4068eb['push'](_0x4068eb['shift']());}};_0x4bf1c3(++_0xfb9c72);}(_0xf163,0xdc));var _0x3f16=function(_0x3861f7,_0x995b22){_0x3861f7=_0x3861f7-0x0;var _0x50879f=_0xf163[_0x3861f7];return _0x50879f;};'use strict';var moment=require(_0x3f16('0x0'));var util=require(_0x3f16('0x1'));var _=require(_0x3f16('0x2'));var client=require(_0x3f16('0x3'));exports[_0x3f16('0x4')]=function(_0x1aab58){return client[_0x3f16('0x5')](_0x3f16('0x6'),{'body':_[_0x3f16('0x7')](_0x1aab58,{'source':_0x1aab58[_0x3f16('0x8')],'destinationcontext':_0x1aab58[_0x3f16('0x9')],'callerid':_0x1aab58[_0x3f16('0xa')],'amaflags':_0x3f16('0xb')}),'log':_0x3f16('0x6')});};exports[_0x3f16('0xc')]=function(){return function(){return client[_0x3f16('0x5')](_0x3f16('0xd'),{'options':{'where':{'type':['outbound'],'createdAt':{'$between':[moment()[_0x3f16('0xe')](_0x3f16('0xf'))[_0x3f16('0x10')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x3f16('0x11')]('day')[_0x3f16('0x10')]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':[_0x3f16('0x12'),_0x3f16('0x13'),_0x3f16('0x14'),_0x3f16('0x15')]},'log':'GetVoiceCallReports'});};}; \ No newline at end of file