Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / services / ami / rpc / voiceCallReport.js
index 419f3de..20626a4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6621=['billableseconds','GetVoiceCallReports','moment','util','lodash','Request','CreateVoiceCallReport','merge','calleridnum','context','callerid','DOCUMENTATION','outbound','format','YYYY-MM-DD\x20HH:mm:ss','endOf','day','disposition','duration'];(function(_0x2f48cd,_0x46a75a){var _0x193ae2=function(_0x253c01){while(--_0x253c01){_0x2f48cd['push'](_0x2f48cd['shift']());}};_0x193ae2(++_0x46a75a);}(_0x6621,0xc0));var _0x1662=function(_0x418afb,_0x4ebded){_0x418afb=_0x418afb-0x0;var _0x1f67e4=_0x6621[_0x418afb];return _0x1f67e4;};'use strict';var moment=require(_0x1662('0x0'));var util=require(_0x1662('0x1'));var _=require(_0x1662('0x2'));var client=require('../client');exports['create']=function(_0x3ab191){return client[_0x1662('0x3')](_0x1662('0x4'),{'body':_[_0x1662('0x5')](_0x3ab191,{'source':_0x3ab191[_0x1662('0x6')],'destinationcontext':_0x3ab191[_0x1662('0x7')],'callerid':_0x3ab191[_0x1662('0x8')],'amaflags':_0x1662('0x9')}),'log':_0x1662('0x4')});};exports['getVoiceCallReports']=function(){return function(){return client['Request']('GetVoiceCallReport',{'options':{'where':{'type':[_0x1662('0xa')],'createdAt':{'$between':[moment()['startOf']('day')[_0x1662('0xb')](_0x1662('0xc')),moment()[_0x1662('0xd')](_0x1662('0xe'))['format'](_0x1662('0xc'))]}},'attributes':['type',_0x1662('0xf'),_0x1662('0x10'),_0x1662('0x11')]},'log':_0x1662('0x12')});};};
\ No newline at end of file
+var _0x4f06=['endOf','format','duration','GetVoiceCallReports','moment','util','lodash','../client','create','Request','calleridnum','context','callerid','CreateVoiceCallReport','getVoiceCallReports','outbound','startOf','day','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x1ead3e,_0x188ac7){var _0x502a9d=function(_0x1bea4a){while(--_0x1bea4a){_0x1ead3e['push'](_0x1ead3e['shift']());}};_0x502a9d(++_0x188ac7);}(_0x4f06,0x1f2));var _0x64f0=function(_0x5d13f3,_0x2dd840){_0x5d13f3=_0x5d13f3-0x0;var _0x56a338=_0x4f06[_0x5d13f3];return _0x56a338;};'use strict';var moment=require(_0x64f0('0x0'));var util=require(_0x64f0('0x1'));var _=require(_0x64f0('0x2'));var client=require(_0x64f0('0x3'));exports[_0x64f0('0x4')]=function(_0x5d0843){return client[_0x64f0('0x5')]('CreateVoiceCallReport',{'body':_['merge'](_0x5d0843,{'source':_0x5d0843[_0x64f0('0x6')],'destinationcontext':_0x5d0843[_0x64f0('0x7')],'callerid':_0x5d0843[_0x64f0('0x8')],'amaflags':'DOCUMENTATION'}),'log':_0x64f0('0x9')});};exports[_0x64f0('0xa')]=function(){return function(){return client[_0x64f0('0x5')]('GetVoiceCallReport',{'options':{'where':{'type':[_0x64f0('0xb')],'createdAt':{'$between':[moment()[_0x64f0('0xc')](_0x64f0('0xd'))['format'](_0x64f0('0xe')),moment()[_0x64f0('0xf')](_0x64f0('0xd'))[_0x64f0('0x10')](_0x64f0('0xe'))]}},'attributes':['type','disposition',_0x64f0('0x11'),'billableseconds']},'log':_0x64f0('0x12')});};};
\ No newline at end of file