Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / services / ami / rpc / voiceCallReport.js
index 98ae509..324e891 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb798=['format','YYYY-MM-DD\x20HH:mm:ss','type','disposition','duration','GetVoiceCallReports','moment','util','lodash','../client','create','Request','CreateVoiceCallReport','merge','calleridnum','context','callerid','getVoiceCallReports','startOf','day'];(function(_0x56f8e6,_0x3c1b02){var _0x38f13e=function(_0x207cca){while(--_0x207cca){_0x56f8e6['push'](_0x56f8e6['shift']());}};_0x38f13e(++_0x3c1b02);}(_0xb798,0xa6));var _0x8b79=function(_0x408280,_0x5eb2a8){_0x408280=_0x408280-0x0;var _0x5468c7=_0xb798[_0x408280];return _0x5468c7;};'use strict';var moment=require(_0x8b79('0x0'));var util=require(_0x8b79('0x1'));var _=require(_0x8b79('0x2'));var client=require(_0x8b79('0x3'));exports[_0x8b79('0x4')]=function(_0xb0f832){return client[_0x8b79('0x5')](_0x8b79('0x6'),{'body':_[_0x8b79('0x7')](_0xb0f832,{'source':_0xb0f832[_0x8b79('0x8')],'destinationcontext':_0xb0f832[_0x8b79('0x9')],'callerid':_0xb0f832[_0x8b79('0xa')],'amaflags':'DOCUMENTATION'}),'log':'CreateVoiceCallReport'});};exports[_0x8b79('0xb')]=function(){return function(){return client[_0x8b79('0x5')]('GetVoiceCallReport',{'options':{'where':{'type':['outbound'],'createdAt':{'$between':[moment()[_0x8b79('0xc')](_0x8b79('0xd'))[_0x8b79('0xe')]('YYYY-MM-DD\x20HH:mm:ss'),moment()['endOf']('day')['format'](_0x8b79('0xf'))]}},'attributes':[_0x8b79('0x10'),_0x8b79('0x11'),_0x8b79('0x12'),'billableseconds']},'log':_0x8b79('0x13')});};};
\ No newline at end of file
+var _0xff61=['outbound','startOf','day','YYYY-MM-DD\x20HH:mm:ss','endOf','format','type','disposition','duration','billableseconds','GetVoiceCallReports','lodash','create','Request','CreateVoiceCallReport','merge','context','callerid','DOCUMENTATION','GetVoiceCallReport'];(function(_0x5193e1,_0x1f2e46){var _0x40393c=function(_0x202557){while(--_0x202557){_0x5193e1['push'](_0x5193e1['shift']());}};_0x40393c(++_0x1f2e46);}(_0xff61,0xab));var _0x1ff6=function(_0x2d750f,_0x3efe0a){_0x2d750f=_0x2d750f-0x0;var _0x4f1d2f=_0xff61[_0x2d750f];return _0x4f1d2f;};'use strict';var moment=require('moment');var util=require('util');var _=require(_0x1ff6('0x0'));var client=require('../client');exports[_0x1ff6('0x1')]=function(_0x2820db){return client[_0x1ff6('0x2')](_0x1ff6('0x3'),{'body':_[_0x1ff6('0x4')](_0x2820db,{'source':_0x2820db['calleridnum'],'destinationcontext':_0x2820db[_0x1ff6('0x5')],'callerid':_0x2820db[_0x1ff6('0x6')],'amaflags':_0x1ff6('0x7')}),'log':'CreateVoiceCallReport'});};exports['getVoiceCallReports']=function(){return function(){return client['Request'](_0x1ff6('0x8'),{'options':{'where':{'type':[_0x1ff6('0x9')],'createdAt':{'$between':[moment()[_0x1ff6('0xa')](_0x1ff6('0xb'))['format'](_0x1ff6('0xc')),moment()[_0x1ff6('0xd')]('day')[_0x1ff6('0xe')](_0x1ff6('0xc'))]}},'attributes':[_0x1ff6('0xf'),_0x1ff6('0x10'),_0x1ff6('0x11'),_0x1ff6('0x12')]},'log':_0x1ff6('0x13')});};};
\ No newline at end of file