X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Fami%2Frpc%2FvoiceCallReport.js;h=375ab6dfec204f252141b4933bb86c418ccad7cc;hb=44bd2814959684a7f7b774f2c71a3b12f9ba5952;hp=5a91d710cf63217bed4588cca58ac6c607474394;hpb=868a31873a4f5d6a45b7a9cfef882f2e311d37fa;p=motion2.git diff --git a/server/services/ami/rpc/voiceCallReport.js b/server/services/ami/rpc/voiceCallReport.js index 5a91d71..375ab6d 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 _0x7181=['billableseconds','moment','util','create','CreateVoiceCallReport','merge','calleridnum','context','callerid','DOCUMENTATION','Request','outbound','format','endOf','day','disposition','duration'];(function(_0x24fa59,_0x41c7d1){var _0x57e0c7=function(_0x43bbba){while(--_0x43bbba){_0x24fa59['push'](_0x24fa59['shift']());}};_0x57e0c7(++_0x41c7d1);}(_0x7181,0x1bb));var _0x1718=function(_0x6c993a,_0x5ea3ab){_0x6c993a=_0x6c993a-0x0;var _0x27f547=_0x7181[_0x6c993a];return _0x27f547;};'use strict';var moment=require(_0x1718('0x0'));var util=require(_0x1718('0x1'));var _=require('lodash');var client=require('../client');exports[_0x1718('0x2')]=function(_0x9b843d){return client['Request'](_0x1718('0x3'),{'body':_[_0x1718('0x4')](_0x9b843d,{'source':_0x9b843d[_0x1718('0x5')],'destinationcontext':_0x9b843d[_0x1718('0x6')],'callerid':_0x9b843d[_0x1718('0x7')],'amaflags':_0x1718('0x8')}),'log':_0x1718('0x3')});};exports['getVoiceCallReports']=function(){return function(){return client[_0x1718('0x9')]('GetVoiceCallReport',{'options':{'where':{'type':[_0x1718('0xa')],'createdAt':{'$between':[moment()['startOf']('day')[_0x1718('0xb')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x1718('0xc')](_0x1718('0xd'))['format']('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':['type',_0x1718('0xe'),_0x1718('0xf'),_0x1718('0x10')]},'log':'GetVoiceCallReports'});};}; \ No newline at end of file +var _0x0247=['duration','billableseconds','GetVoiceCallReports','moment','lodash','../client','create','Request','CreateVoiceCallReport','merge','calleridnum','context','callerid','DOCUMENTATION','getVoiceCallReports','GetVoiceCallReport','outbound','startOf','day','format','YYYY-MM-DD\x20HH:mm:ss','endOf','type'];(function(_0x453323,_0x495f1d){var _0x108773=function(_0x1d9070){while(--_0x1d9070){_0x453323['push'](_0x453323['shift']());}};_0x108773(++_0x495f1d);}(_0x0247,0x1a1));var _0x7024=function(_0x106732,_0x43a593){_0x106732=_0x106732-0x0;var _0x60c65c=_0x0247[_0x106732];return _0x60c65c;};'use strict';var moment=require(_0x7024('0x0'));var util=require('util');var _=require(_0x7024('0x1'));var client=require(_0x7024('0x2'));exports[_0x7024('0x3')]=function(_0x4b9da6){return client[_0x7024('0x4')](_0x7024('0x5'),{'body':_[_0x7024('0x6')](_0x4b9da6,{'source':_0x4b9da6[_0x7024('0x7')],'destinationcontext':_0x4b9da6[_0x7024('0x8')],'callerid':_0x4b9da6[_0x7024('0x9')],'amaflags':_0x7024('0xa')}),'log':'CreateVoiceCallReport'});};exports[_0x7024('0xb')]=function(){return function(){return client[_0x7024('0x4')](_0x7024('0xc'),{'options':{'where':{'type':[_0x7024('0xd')],'createdAt':{'$between':[moment()[_0x7024('0xe')](_0x7024('0xf'))[_0x7024('0x10')](_0x7024('0x11')),moment()[_0x7024('0x12')](_0x7024('0xf'))[_0x7024('0x10')](_0x7024('0x11'))]}},'attributes':[_0x7024('0x13'),'disposition',_0x7024('0x14'),_0x7024('0x15')]},'log':_0x7024('0x16')});};}; \ No newline at end of file