X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Fami%2Frpc%2FvoiceCallReport.js;h=2ba9b7c41f6372e88c4b66d71212bc45f737a197;hb=d5b3d400e91cc98c429bfb9d7741cfdb9b495f82;hp=cfe7b986a084a282b918ae3aea7d4c4dcee2f4ea;hpb=5bcfff2cfe490b4ab0d0668e644729ef139af2a3;p=motion2.git diff --git a/server/services/ami/rpc/voiceCallReport.js b/server/services/ami/rpc/voiceCallReport.js index cfe7b98..2ba9b7c 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 _0xce2b=['duration','billableseconds','GetVoiceCallReports','moment','util','lodash','create','CreateVoiceCallReport','context','callerid','DOCUMENTATION','GetVoiceCallReport','outbound','startOf','day','format','YYYY-MM-DD\x20HH:mm:ss','type','disposition'];(function(_0x5f5743,_0x312170){var _0x1a4ba5=function(_0x12692d){while(--_0x12692d){_0x5f5743['push'](_0x5f5743['shift']());}};_0x1a4ba5(++_0x312170);}(_0xce2b,0x16c));var _0xbce2=function(_0xaaf2e2,_0x19d28a){_0xaaf2e2=_0xaaf2e2-0x0;var _0x28bc36=_0xce2b[_0xaaf2e2];return _0x28bc36;};'use strict';var moment=require(_0xbce2('0x0'));var util=require(_0xbce2('0x1'));var _=require(_0xbce2('0x2'));var client=require('../client');exports[_0xbce2('0x3')]=function(_0x288640){return client['Request'](_0xbce2('0x4'),{'body':_['merge'](_0x288640,{'source':_0x288640['calleridnum'],'destinationcontext':_0x288640[_0xbce2('0x5')],'callerid':_0x288640[_0xbce2('0x6')],'amaflags':_0xbce2('0x7')}),'log':_0xbce2('0x4')});};exports['getVoiceCallReports']=function(){return function(){return client['Request'](_0xbce2('0x8'),{'options':{'where':{'type':[_0xbce2('0x9')],'createdAt':{'$between':[moment()[_0xbce2('0xa')](_0xbce2('0xb'))[_0xbce2('0xc')]('YYYY-MM-DD\x20HH:mm:ss'),moment()['endOf'](_0xbce2('0xb'))[_0xbce2('0xc')](_0xbce2('0xd'))]}},'attributes':[_0xbce2('0xe'),_0xbce2('0xf'),_0xbce2('0x10'),_0xbce2('0x11')]},'log':_0xbce2('0x12')});};}; \ No newline at end of file +var _0x588c=['context','callerid','DOCUMENTATION','CreateVoiceCallReport','Request','GetVoiceCallReport','outbound','startOf','format','YYYY-MM-DD\x20HH:mm:ss','endOf','day','type','disposition','duration','billableseconds','GetVoiceCallReports','util','lodash','../client','calleridnum'];(function(_0x495e2a,_0x5ce7f1){var _0x5de9ef=function(_0x5898ba){while(--_0x5898ba){_0x495e2a['push'](_0x495e2a['shift']());}};_0x5de9ef(++_0x5ce7f1);}(_0x588c,0x65));var _0xc588=function(_0x422fa6,_0x19f896){_0x422fa6=_0x422fa6-0x0;var _0x1d3ecf=_0x588c[_0x422fa6];return _0x1d3ecf;};'use strict';var moment=require('moment');var util=require(_0xc588('0x0'));var _=require(_0xc588('0x1'));var client=require(_0xc588('0x2'));exports['create']=function(_0x49acae){return client['Request']('CreateVoiceCallReport',{'body':_['merge'](_0x49acae,{'source':_0x49acae[_0xc588('0x3')],'destinationcontext':_0x49acae[_0xc588('0x4')],'callerid':_0x49acae[_0xc588('0x5')],'amaflags':_0xc588('0x6')}),'log':_0xc588('0x7')});};exports['getVoiceCallReports']=function(){return function(){return client[_0xc588('0x8')](_0xc588('0x9'),{'options':{'where':{'type':[_0xc588('0xa')],'createdAt':{'$between':[moment()[_0xc588('0xb')]('day')[_0xc588('0xc')](_0xc588('0xd')),moment()[_0xc588('0xe')](_0xc588('0xf'))[_0xc588('0xc')](_0xc588('0xd'))]}},'attributes':[_0xc588('0x10'),_0xc588('0x11'),_0xc588('0x12'),_0xc588('0x13')]},'log':_0xc588('0x14')});};}; \ No newline at end of file