Built motion from commit b9b02fed.|2.6.5
[motion2.git] / server / services / ami / rpc / voiceCallReport.js
index 348ad71..7781c0c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb458=['moment','util','../client','Request','CreateVoiceCallReport','merge','calleridnum','context','callerid','getVoiceCallReports','GetVoiceCallReport','day','format','YYYY-MM-DD\x20HH:mm:ss','endOf','billableseconds','GetVoiceCallReports'];(function(_0x3bdcf3,_0x63541){var _0x2d4ee9=function(_0x35c486){while(--_0x35c486){_0x3bdcf3['push'](_0x3bdcf3['shift']());}};_0x2d4ee9(++_0x63541);}(_0xb458,0x132));var _0x8b45=function(_0x1cc15f,_0x5105c8){_0x1cc15f=_0x1cc15f-0x0;var _0x3c5201=_0xb458[_0x1cc15f];return _0x3c5201;};'use strict';var moment=require(_0x8b45('0x0'));var util=require(_0x8b45('0x1'));var _=require('lodash');var client=require(_0x8b45('0x2'));exports['create']=function(_0x704231){return client[_0x8b45('0x3')](_0x8b45('0x4'),{'body':_[_0x8b45('0x5')](_0x704231,{'source':_0x704231[_0x8b45('0x6')],'destinationcontext':_0x704231[_0x8b45('0x7')],'callerid':_0x704231[_0x8b45('0x8')],'amaflags':'DOCUMENTATION'}),'log':_0x8b45('0x4')});};exports[_0x8b45('0x9')]=function(){return function(){return client['Request'](_0x8b45('0xa'),{'options':{'where':{'type':['outbound'],'createdAt':{'$between':[moment()['startOf'](_0x8b45('0xb'))[_0x8b45('0xc')](_0x8b45('0xd')),moment()[_0x8b45('0xe')](_0x8b45('0xb'))['format'](_0x8b45('0xd'))]}},'attributes':['type','disposition','duration',_0x8b45('0xf')]},'log':_0x8b45('0x10')});};};
\ No newline at end of file
+var _0xcf46=['day','disposition','billableseconds','GetVoiceCallReports','moment','util','lodash','create','CreateVoiceCallReport','calleridnum','context','callerid','DOCUMENTATION','Request','outbound','format','YYYY-MM-DD\x20HH:mm:ss','endOf'];(function(_0x2d8161,_0x237505){var _0x52e4b8=function(_0x3afaf1){while(--_0x3afaf1){_0x2d8161['push'](_0x2d8161['shift']());}};_0x52e4b8(++_0x237505);}(_0xcf46,0xee));var _0x6cf4=function(_0x22bb22,_0xef8de9){_0x22bb22=_0x22bb22-0x0;var _0x50f044=_0xcf46[_0x22bb22];return _0x50f044;};'use strict';var moment=require(_0x6cf4('0x0'));var util=require(_0x6cf4('0x1'));var _=require(_0x6cf4('0x2'));var client=require('../client');exports[_0x6cf4('0x3')]=function(_0x6436b4){return client['Request'](_0x6cf4('0x4'),{'body':_['merge'](_0x6436b4,{'source':_0x6436b4[_0x6cf4('0x5')],'destinationcontext':_0x6436b4[_0x6cf4('0x6')],'callerid':_0x6436b4[_0x6cf4('0x7')],'amaflags':_0x6cf4('0x8')}),'log':_0x6cf4('0x4')});};exports['getVoiceCallReports']=function(){return function(){return client[_0x6cf4('0x9')]('GetVoiceCallReport',{'options':{'where':{'type':[_0x6cf4('0xa')],'createdAt':{'$between':[moment()['startOf']('day')[_0x6cf4('0xb')](_0x6cf4('0xc')),moment()[_0x6cf4('0xd')](_0x6cf4('0xe'))[_0x6cf4('0xb')](_0x6cf4('0xc'))]}},'attributes':['type',_0x6cf4('0xf'),'duration',_0x6cf4('0x10')]},'log':_0x6cf4('0x11')});};};
\ No newline at end of file