Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / services / ami / rpc / voiceCallReport.js
index 99a313c..c185675 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3696=['callerid','GetVoiceCallReport','startOf','YYYY-MM-DD\x20HH:mm:ss','endOf','day','format','type','disposition','billableseconds','GetVoiceCallReports','moment','lodash','create','Request','CreateVoiceCallReport','merge','context'];(function(_0x509995,_0xfc38e6){var _0x122348=function(_0x1f698f){while(--_0x1f698f){_0x509995['push'](_0x509995['shift']());}};_0x122348(++_0xfc38e6);}(_0x3696,0x197));var _0x6369=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0x3696[_0x2c91e9];return _0x13f0ff;};'use strict';var moment=require(_0x6369('0x0'));var util=require('util');var _=require(_0x6369('0x1'));var client=require('../client');exports[_0x6369('0x2')]=function(_0xb0f55b){return client[_0x6369('0x3')](_0x6369('0x4'),{'body':_[_0x6369('0x5')](_0xb0f55b,{'source':_0xb0f55b['calleridnum'],'destinationcontext':_0xb0f55b[_0x6369('0x6')],'callerid':_0xb0f55b[_0x6369('0x7')],'amaflags':'DOCUMENTATION'}),'log':_0x6369('0x4')});};exports['getVoiceCallReports']=function(){return function(){return client[_0x6369('0x3')](_0x6369('0x8'),{'options':{'where':{'type':['outbound'],'createdAt':{'$between':[moment()[_0x6369('0x9')]('day')['format'](_0x6369('0xa')),moment()[_0x6369('0xb')](_0x6369('0xc'))[_0x6369('0xd')](_0x6369('0xa'))]}},'attributes':[_0x6369('0xe'),_0x6369('0xf'),'duration',_0x6369('0x10')]},'log':_0x6369('0x11')});};};
\ No newline at end of file
+var _0x4758=['outbound','startOf','day','format','YYYY-MM-DD\x20HH:mm:ss','disposition','duration','GetVoiceCallReports','moment','util','lodash','../client','create','Request','merge','calleridnum','callerid','DOCUMENTATION','CreateVoiceCallReport','GetVoiceCallReport'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x4758,0x10c));var _0x8475=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x4758[_0x321bb2];return _0x9c12ed;};'use strict';var moment=require(_0x8475('0x0'));var util=require(_0x8475('0x1'));var _=require(_0x8475('0x2'));var client=require(_0x8475('0x3'));exports[_0x8475('0x4')]=function(_0x416339){return client[_0x8475('0x5')]('CreateVoiceCallReport',{'body':_[_0x8475('0x6')](_0x416339,{'source':_0x416339[_0x8475('0x7')],'destinationcontext':_0x416339['context'],'callerid':_0x416339[_0x8475('0x8')],'amaflags':_0x8475('0x9')}),'log':_0x8475('0xa')});};exports['getVoiceCallReports']=function(){return function(){return client[_0x8475('0x5')](_0x8475('0xb'),{'options':{'where':{'type':[_0x8475('0xc')],'createdAt':{'$between':[moment()[_0x8475('0xd')](_0x8475('0xe'))[_0x8475('0xf')](_0x8475('0x10')),moment()['endOf'](_0x8475('0xe'))[_0x8475('0xf')]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':['type',_0x8475('0x11'),_0x8475('0x12'),'billableseconds']},'log':_0x8475('0x13')});};};
\ No newline at end of file