Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / services / ami / rpc / voiceCallReport.js
index 8bfc54e..99a313c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa303=['endOf','day','YYYY-MM-DD\x20HH:mm:ss','type','disposition','duration','billableseconds','GetVoiceCallReports','util','../client','create','CreateVoiceCallReport','merge','context','callerid','getVoiceCallReports','Request','GetVoiceCallReport','outbound','startOf','format'];(function(_0x125eb3,_0x4171a9){var _0x1b19c5=function(_0x26260c){while(--_0x26260c){_0x125eb3['push'](_0x125eb3['shift']());}};_0x1b19c5(++_0x4171a9);}(_0xa303,0x71));var _0x3a30=function(_0x4508e9,_0x360501){_0x4508e9=_0x4508e9-0x0;var _0x1442f6=_0xa303[_0x4508e9];return _0x1442f6;};'use strict';var moment=require('moment');var util=require(_0x3a30('0x0'));var _=require('lodash');var client=require(_0x3a30('0x1'));exports[_0x3a30('0x2')]=function(_0x4179f2){return client['Request'](_0x3a30('0x3'),{'body':_[_0x3a30('0x4')](_0x4179f2,{'source':_0x4179f2['calleridnum'],'destinationcontext':_0x4179f2[_0x3a30('0x5')],'callerid':_0x4179f2[_0x3a30('0x6')],'amaflags':'DOCUMENTATION'}),'log':_0x3a30('0x3')});};exports[_0x3a30('0x7')]=function(){return function(){return client[_0x3a30('0x8')](_0x3a30('0x9'),{'options':{'where':{'type':[_0x3a30('0xa')],'createdAt':{'$between':[moment()[_0x3a30('0xb')]('day')[_0x3a30('0xc')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x3a30('0xd')](_0x3a30('0xe'))[_0x3a30('0xc')](_0x3a30('0xf'))]}},'attributes':[_0x3a30('0x10'),_0x3a30('0x11'),_0x3a30('0x12'),_0x3a30('0x13')]},'log':_0x3a30('0x14')});};};
\ No newline at end of file
+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