Built motion from commit b5a10faa.|2.6.13
[motion2.git] / server / services / ami / rpc / voiceCallReport.js
index ced2dad..bc9e051 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1bc3=['duration','billableseconds','GetVoiceCallReports','util','create','Request','CreateVoiceCallReport','merge','context','callerid','getVoiceCallReports','outbound','startOf','YYYY-MM-DD\x20HH:mm:ss','endOf','day','format','type'];(function(_0xd988d0,_0xeec40c){var _0x3a77ae=function(_0x336cb5){while(--_0x336cb5){_0xd988d0['push'](_0xd988d0['shift']());}};_0x3a77ae(++_0xeec40c);}(_0x1bc3,0x1c5));var _0x31bc=function(_0x304617,_0x35720e){_0x304617=_0x304617-0x0;var _0x90a0a8=_0x1bc3[_0x304617];return _0x90a0a8;};'use strict';var moment=require('moment');var util=require(_0x31bc('0x0'));var _=require('lodash');var client=require('../client');exports[_0x31bc('0x1')]=function(_0x1bebb7){return client[_0x31bc('0x2')](_0x31bc('0x3'),{'body':_[_0x31bc('0x4')](_0x1bebb7,{'source':_0x1bebb7['calleridnum'],'destinationcontext':_0x1bebb7[_0x31bc('0x5')],'callerid':_0x1bebb7[_0x31bc('0x6')],'amaflags':'DOCUMENTATION'}),'log':_0x31bc('0x3')});};exports[_0x31bc('0x7')]=function(){return function(){return client[_0x31bc('0x2')]('GetVoiceCallReport',{'options':{'where':{'type':[_0x31bc('0x8')],'createdAt':{'$between':[moment()[_0x31bc('0x9')]('day')['format'](_0x31bc('0xa')),moment()[_0x31bc('0xb')](_0x31bc('0xc'))[_0x31bc('0xd')]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':[_0x31bc('0xe'),'disposition',_0x31bc('0xf'),_0x31bc('0x10')]},'log':_0x31bc('0x11')});};};
\ No newline at end of file
+var _0xaff4=['endOf','format','type','disposition','billableseconds','GetVoiceCallReports','moment','util','lodash','../client','create','Request','CreateVoiceCallReport','merge','context','callerid','DOCUMENTATION','GetVoiceCallReport','startOf','day','YYYY-MM-DD\x20HH:mm:ss'];(function(_0xc298d9,_0x558c84){var _0x2a0b60=function(_0x2d5b92){while(--_0x2d5b92){_0xc298d9['push'](_0xc298d9['shift']());}};_0x2a0b60(++_0x558c84);}(_0xaff4,0xc3));var _0x4aff=function(_0x2906e6,_0x5ccd59){_0x2906e6=_0x2906e6-0x0;var _0x12517a=_0xaff4[_0x2906e6];return _0x12517a;};'use strict';var moment=require(_0x4aff('0x0'));var util=require(_0x4aff('0x1'));var _=require(_0x4aff('0x2'));var client=require(_0x4aff('0x3'));exports[_0x4aff('0x4')]=function(_0x304007){return client[_0x4aff('0x5')](_0x4aff('0x6'),{'body':_[_0x4aff('0x7')](_0x304007,{'source':_0x304007['calleridnum'],'destinationcontext':_0x304007[_0x4aff('0x8')],'callerid':_0x304007[_0x4aff('0x9')],'amaflags':_0x4aff('0xa')}),'log':_0x4aff('0x6')});};exports['getVoiceCallReports']=function(){return function(){return client['Request'](_0x4aff('0xb'),{'options':{'where':{'type':['outbound'],'createdAt':{'$between':[moment()[_0x4aff('0xc')](_0x4aff('0xd'))['format'](_0x4aff('0xe')),moment()[_0x4aff('0xf')](_0x4aff('0xd'))[_0x4aff('0x10')](_0x4aff('0xe'))]}},'attributes':[_0x4aff('0x11'),_0x4aff('0x12'),'duration',_0x4aff('0x13')]},'log':_0x4aff('0x14')});};};
\ No newline at end of file