Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / services / ami / rpc / voiceCallReport.js
index 6d7a007..3bc2b7b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe20d=['type','disposition','duration','GetVoiceCallReports','moment','lodash','../client','Request','CreateVoiceCallReport','calleridnum','callerid','getVoiceCallReports','GetVoiceCallReport','outbound','startOf','day','format','endOf'];(function(_0x5c956b,_0xa87d11){var _0xaff46a=function(_0x463d89){while(--_0x463d89){_0x5c956b['push'](_0x5c956b['shift']());}};_0xaff46a(++_0xa87d11);}(_0xe20d,0x1d8));var _0xde20=function(_0x36ed6c,_0x302b25){_0x36ed6c=_0x36ed6c-0x0;var _0x13a7e4=_0xe20d[_0x36ed6c];return _0x13a7e4;};'use strict';var moment=require(_0xde20('0x0'));var util=require('util');var _=require(_0xde20('0x1'));var client=require(_0xde20('0x2'));exports['create']=function(_0x116230){return client[_0xde20('0x3')](_0xde20('0x4'),{'body':_['merge'](_0x116230,{'source':_0x116230[_0xde20('0x5')],'destinationcontext':_0x116230['context'],'callerid':_0x116230[_0xde20('0x6')],'amaflags':'DOCUMENTATION'}),'log':_0xde20('0x4')});};exports[_0xde20('0x7')]=function(){return function(){return client[_0xde20('0x3')](_0xde20('0x8'),{'options':{'where':{'type':[_0xde20('0x9')],'createdAt':{'$between':[moment()[_0xde20('0xa')](_0xde20('0xb'))[_0xde20('0xc')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0xde20('0xd')]('day')[_0xde20('0xc')]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':[_0xde20('0xe'),_0xde20('0xf'),_0xde20('0x10'),'billableseconds']},'log':_0xde20('0x11')});};};
\ No newline at end of file
+var _0x6423=['callerid','getVoiceCallReports','Request','outbound','format','YYYY-MM-DD\x20HH:mm:ss','endOf','type','disposition','duration','billableseconds','GetVoiceCallReports','moment','util','lodash','../client','create','CreateVoiceCallReport','merge','context'];(function(_0x4cb919,_0x58cd59){var _0x5f3c0c=function(_0x3f45df){while(--_0x3f45df){_0x4cb919['push'](_0x4cb919['shift']());}};_0x5f3c0c(++_0x58cd59);}(_0x6423,0xfc));var _0x3642=function(_0x6bbfb5,_0x19113d){_0x6bbfb5=_0x6bbfb5-0x0;var _0x3850b8=_0x6423[_0x6bbfb5];return _0x3850b8;};'use strict';var moment=require(_0x3642('0x0'));var util=require(_0x3642('0x1'));var _=require(_0x3642('0x2'));var client=require(_0x3642('0x3'));exports[_0x3642('0x4')]=function(_0x158b39){return client['Request'](_0x3642('0x5'),{'body':_[_0x3642('0x6')](_0x158b39,{'source':_0x158b39['calleridnum'],'destinationcontext':_0x158b39[_0x3642('0x7')],'callerid':_0x158b39[_0x3642('0x8')],'amaflags':'DOCUMENTATION'}),'log':_0x3642('0x5')});};exports[_0x3642('0x9')]=function(){return function(){return client[_0x3642('0xa')]('GetVoiceCallReport',{'options':{'where':{'type':[_0x3642('0xb')],'createdAt':{'$between':[moment()['startOf']('day')[_0x3642('0xc')](_0x3642('0xd')),moment()[_0x3642('0xe')]('day')[_0x3642('0xc')](_0x3642('0xd'))]}},'attributes':[_0x3642('0xf'),_0x3642('0x10'),_0x3642('0x11'),_0x3642('0x12')]},'log':_0x3642('0x13')});};};
\ No newline at end of file