X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Fami%2Frpc%2FvoiceCallReport.js;h=375a94c62c485dcbce39f1aa4d1b49a315c22342;hb=b9d8fb89c04e2712a06e4d6666f975c8e677d46a;hp=2ba9b7c41f6372e88c4b66d71212bc45f737a197;hpb=d5b3d400e91cc98c429bfb9d7741cfdb9b495f82;p=motion2.git diff --git a/server/services/ami/rpc/voiceCallReport.js b/server/services/ami/rpc/voiceCallReport.js index 2ba9b7c..375a94c 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 _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 +var _0x0cab=['day','YYYY-MM-DD\x20HH:mm:ss','endOf','format','type','disposition','duration','billableseconds','GetVoiceCallReports','moment','util','lodash','../client','create','Request','CreateVoiceCallReport','merge','context','callerid','DOCUMENTATION','getVoiceCallReports'];(function(_0x446624,_0x1758b8){var _0x1d53d8=function(_0x2c7996){while(--_0x2c7996){_0x446624['push'](_0x446624['shift']());}};_0x1d53d8(++_0x1758b8);}(_0x0cab,0x198));var _0xb0ca=function(_0x5f41ae,_0x44627c){_0x5f41ae=_0x5f41ae-0x0;var _0x1c1823=_0x0cab[_0x5f41ae];return _0x1c1823;};'use strict';var moment=require(_0xb0ca('0x0'));var util=require(_0xb0ca('0x1'));var _=require(_0xb0ca('0x2'));var client=require(_0xb0ca('0x3'));exports[_0xb0ca('0x4')]=function(_0x359947){return client[_0xb0ca('0x5')](_0xb0ca('0x6'),{'body':_[_0xb0ca('0x7')](_0x359947,{'source':_0x359947['calleridnum'],'destinationcontext':_0x359947[_0xb0ca('0x8')],'callerid':_0x359947[_0xb0ca('0x9')],'amaflags':_0xb0ca('0xa')}),'log':_0xb0ca('0x6')});};exports[_0xb0ca('0xb')]=function(){return function(){return client['Request']('GetVoiceCallReport',{'options':{'where':{'type':['outbound'],'createdAt':{'$between':[moment()['startOf'](_0xb0ca('0xc'))['format'](_0xb0ca('0xd')),moment()[_0xb0ca('0xe')]('day')[_0xb0ca('0xf')](_0xb0ca('0xd'))]}},'attributes':[_0xb0ca('0x10'),_0xb0ca('0x11'),_0xb0ca('0x12'),_0xb0ca('0x13')]},'log':_0xb0ca('0x14')});};}; \ No newline at end of file