Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / rpc / voiceCallReport.js
index 4c403bf..cca5249 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2b68=['endOf','format','type','duration','billableseconds','GetVoiceCallReports','moment','lodash','../client','create','Request','CreateVoiceCallReport','merge','calleridnum','context','callerid','DOCUMENTATION','getVoiceCallReports','outbound','day','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x2035ef,_0x3f7d39){var _0x86c909=function(_0x382910){while(--_0x382910){_0x2035ef['push'](_0x2035ef['shift']());}};_0x86c909(++_0x3f7d39);}(_0x2b68,0x1e9));var _0x82b6=function(_0x3799bf,_0x937a88){_0x3799bf=_0x3799bf-0x0;var _0x633b0a=_0x2b68[_0x3799bf];return _0x633b0a;};'use strict';var moment=require(_0x82b6('0x0'));var util=require('util');var _=require(_0x82b6('0x1'));var client=require(_0x82b6('0x2'));exports[_0x82b6('0x3')]=function(_0x249ae8){return client[_0x82b6('0x4')](_0x82b6('0x5'),{'body':_[_0x82b6('0x6')](_0x249ae8,{'source':_0x249ae8[_0x82b6('0x7')],'destinationcontext':_0x249ae8[_0x82b6('0x8')],'callerid':_0x249ae8[_0x82b6('0x9')],'amaflags':_0x82b6('0xa')}),'log':_0x82b6('0x5')});};exports[_0x82b6('0xb')]=function(){return function(){return client[_0x82b6('0x4')]('GetVoiceCallReport',{'options':{'where':{'type':[_0x82b6('0xc')],'createdAt':{'$between':[moment()['startOf'](_0x82b6('0xd'))['format'](_0x82b6('0xe')),moment()[_0x82b6('0xf')]('day')[_0x82b6('0x10')](_0x82b6('0xe'))]}},'attributes':[_0x82b6('0x11'),'disposition',_0x82b6('0x12'),_0x82b6('0x13')]},'log':_0x82b6('0x14')});};};
\ No newline at end of file
+var _0xe021=['disposition','duration','GetVoiceCallReports','../client','create','context','DOCUMENTATION','outbound','startOf','day','format','YYYY-MM-DD\x20HH:mm:ss','endOf','type'];(function(_0x5e6e40,_0x28e2e3){var _0x160b17=function(_0x5a68f3){while(--_0x5a68f3){_0x5e6e40['push'](_0x5e6e40['shift']());}};_0x160b17(++_0x28e2e3);}(_0xe021,0xb9));var _0x1e02=function(_0x4f60f5,_0x2fcf76){_0x4f60f5=_0x4f60f5-0x0;var _0x18d003=_0xe021[_0x4f60f5];return _0x18d003;};'use strict';var moment=require('moment');var util=require('util');var _=require('lodash');var client=require(_0x1e02('0x0'));exports[_0x1e02('0x1')]=function(_0x35f2a2){return client['Request']('CreateVoiceCallReport',{'body':_['merge'](_0x35f2a2,{'source':_0x35f2a2['calleridnum'],'destinationcontext':_0x35f2a2[_0x1e02('0x2')],'callerid':_0x35f2a2['callerid'],'amaflags':_0x1e02('0x3')}),'log':'CreateVoiceCallReport'});};exports['getVoiceCallReports']=function(){return function(){return client['Request']('GetVoiceCallReport',{'options':{'where':{'type':[_0x1e02('0x4')],'createdAt':{'$between':[moment()[_0x1e02('0x5')](_0x1e02('0x6'))[_0x1e02('0x7')](_0x1e02('0x8')),moment()[_0x1e02('0x9')](_0x1e02('0x6'))[_0x1e02('0x7')](_0x1e02('0x8'))]}},'attributes':[_0x1e02('0xa'),_0x1e02('0xb'),_0x1e02('0xc'),'billableseconds']},'log':_0x1e02('0xd')});};};
\ No newline at end of file