Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / rpc / voiceCallReport.js
index fba4cb6..cca5249 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6b73=['moment','lodash','../client','Request','CreateVoiceCallReport','merge','calleridnum','callerid','DOCUMENTATION','outbound','startOf','day','endOf','YYYY-MM-DD\x20HH:mm:ss','type','disposition','duration','billableseconds','GetVoiceCallReports'];(function(_0x127f3c,_0x207765){var _0x2d74a6=function(_0x1ae827){while(--_0x1ae827){_0x127f3c['push'](_0x127f3c['shift']());}};_0x2d74a6(++_0x207765);}(_0x6b73,0x1db));var _0x36b7=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x6b73[_0x14add3];return _0x4a174f;};'use strict';var moment=require(_0x36b7('0x0'));var util=require('util');var _=require(_0x36b7('0x1'));var client=require(_0x36b7('0x2'));exports['create']=function(_0x4d0fc7){return client[_0x36b7('0x3')](_0x36b7('0x4'),{'body':_[_0x36b7('0x5')](_0x4d0fc7,{'source':_0x4d0fc7[_0x36b7('0x6')],'destinationcontext':_0x4d0fc7['context'],'callerid':_0x4d0fc7[_0x36b7('0x7')],'amaflags':_0x36b7('0x8')}),'log':'CreateVoiceCallReport'});};exports['getVoiceCallReports']=function(){return function(){return client['Request']('GetVoiceCallReport',{'options':{'where':{'type':[_0x36b7('0x9')],'createdAt':{'$between':[moment()[_0x36b7('0xa')](_0x36b7('0xb'))['format']('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x36b7('0xc')](_0x36b7('0xb'))['format'](_0x36b7('0xd'))]}},'attributes':[_0x36b7('0xe'),_0x36b7('0xf'),_0x36b7('0x10'),_0x36b7('0x11')]},'log':_0x36b7('0x12')});};};
\ 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