Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / services / ami / rpc / voiceCallReport.js
index c8c7dfe..f093a8a 100644 (file)
@@ -1 +1 @@
-const a1289_0x444a=['disposition','../client','GetVoiceCallReports','endOf','CreateVoiceCallReport','Request','merge','type','moment','format','day','callerid','lodash','getVoiceCallReports','GetVoiceCallReport','context','billableseconds','duration'];(function(_0x39623c,_0x40ce9c){const _0x444a9e=function(_0x7fe84f){while(--_0x7fe84f){_0x39623c['push'](_0x39623c['shift']());}};_0x444a9e(++_0x40ce9c);}(a1289_0x444a,0x73));const a1289_0x7fe8=function(_0x39623c,_0x40ce9c){_0x39623c=_0x39623c-0x118;let _0x444a9e=a1289_0x444a[_0x39623c];return _0x444a9e;};const a1289_0x1ff3c7=a1289_0x7fe8;'use strict';const moment=require(a1289_0x1ff3c7(0x119)),_=require(a1289_0x1ff3c7(0x11d)),client=require(a1289_0x1ff3c7(0x124));exports['create']=function(_0x5bdd51){const _0x4ce427=a1289_0x1ff3c7;return client[_0x4ce427(0x128)](_0x4ce427(0x127),{'body':_[_0x4ce427(0x129)](_0x5bdd51,{'source':_0x5bdd51['calleridnum'],'destinationcontext':_0x5bdd51[_0x4ce427(0x120)],'callerid':_0x5bdd51[_0x4ce427(0x11c)],'amaflags':'DOCUMENTATION'}),'log':'CreateVoiceCallReport'});},exports[a1289_0x1ff3c7(0x11e)]=function(){return function(){const _0x50ba5b=a1289_0x7fe8;return client[_0x50ba5b(0x128)](_0x50ba5b(0x11f),{'options':{'where':{'type':['outbound'],'createdAt':{'$between':[moment()['startOf'](_0x50ba5b(0x11b))[_0x50ba5b(0x11a)]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x50ba5b(0x126)]('day')[_0x50ba5b(0x11a)]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':[_0x50ba5b(0x118),_0x50ba5b(0x123),_0x50ba5b(0x122),_0x50ba5b(0x121)]},'log':_0x50ba5b(0x125)});};};
\ No newline at end of file
+const a1293_0x5ba9=['format','lodash','YYYY-MM-DD\x20HH:mm:ss','CreateVoiceCallReport','callerid','Request','duration','billableseconds','DOCUMENTATION','create','calleridnum','day','merge','startOf','outbound'];(function(_0x270457,_0x2a7e41){const _0x5ba9b9=function(_0x3e14bc){while(--_0x3e14bc){_0x270457['push'](_0x270457['shift']());}};_0x5ba9b9(++_0x2a7e41);}(a1293_0x5ba9,0x87));const a1293_0x3e14=function(_0x270457,_0x2a7e41){_0x270457=_0x270457-0x191;let _0x5ba9b9=a1293_0x5ba9[_0x270457];return _0x5ba9b9;};const a1293_0x3208ea=a1293_0x3e14;'use strict';const moment=require('moment'),_=require(a1293_0x3208ea(0x192)),client=require('../client');exports[a1293_0x3208ea(0x19a)]=function(_0x566c2d){const _0x563521=a1293_0x3208ea;return client[_0x563521(0x196)](_0x563521(0x194),{'body':_[_0x563521(0x19d)](_0x566c2d,{'source':_0x566c2d[_0x563521(0x19b)],'destinationcontext':_0x566c2d['context'],'callerid':_0x566c2d[_0x563521(0x195)],'amaflags':_0x563521(0x199)}),'log':_0x563521(0x194)});},exports['getVoiceCallReports']=function(){return function(){const _0x446705=a1293_0x3e14;return client[_0x446705(0x196)]('GetVoiceCallReport',{'options':{'where':{'type':[_0x446705(0x19f)],'createdAt':{'$between':[moment()[_0x446705(0x19e)](_0x446705(0x19c))[_0x446705(0x191)](_0x446705(0x193)),moment()['endOf']('day')[_0x446705(0x191)]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':['type','disposition',_0x446705(0x197),_0x446705(0x198)]},'log':'GetVoiceCallReports'});};};
\ No newline at end of file