Built motion from commit 44b1f254.|2.6.26
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index f0baad8..272f0ed 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xff00=['startOf','day','endOf','getCampaignHopperHistory','ivr','GetCampaignHopperHistory','../client','moment','campaign','queue','CreateCmHopperHistory','avgHandleTime','Request','AvgHandleTime','subtract','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory'];(function(_0x1463a7,_0x4e8cc6){var _0x31bed3=function(_0x437c4b){while(--_0x437c4b){_0x1463a7['push'](_0x1463a7['shift']());}};_0x31bed3(++_0x4e8cc6);}(_0xff00,0x1e9));var _0x0ff0=function(_0x572272,_0xb5ec2f){_0x572272=_0x572272-0x0;var _0x51c0b0=_0xff00[_0x572272];return _0x51c0b0;};'use strict';var client=require(_0x0ff0('0x0'));var moment=require(_0x0ff0('0x1'));exports['createHistory']=function(_0x52b212){_0x52b212[_0x0ff0('0x2')]=_0x52b212[_0x0ff0('0x3')];return client['Request'](_0x0ff0('0x4'),{'body':_0x52b212,'log':_0x0ff0('0x4')});};exports[_0x0ff0('0x5')]=function(_0x52560d){return client[_0x0ff0('0x6')](_0x0ff0('0x7'),{'options':{'where':{'endtime':{'$between':[moment()[_0x0ff0('0x8')](_0x52560d,_0x0ff0('0x9'))[_0x0ff0('0xa')](_0x0ff0('0xb')),moment()[_0x0ff0('0xa')](_0x0ff0('0xb'))]}},'raw':![]},'log':_0x0ff0('0xc')});};exports[_0x0ff0('0xd')]=function(){return function(){return client[_0x0ff0('0x6')](_0x0ff0('0xe'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x0ff0('0xf')](_0x0ff0('0x10'))[_0x0ff0('0xa')](_0x0ff0('0xb')),moment()[_0x0ff0('0x11')](_0x0ff0('0x10'))[_0x0ff0('0xa')](_0x0ff0('0xb'))]},'campaigntype':_0x0ff0('0x3')},'raw':![]},'log':_0x0ff0('0xe')});};};exports[_0x0ff0('0x12')]=function(){return function(){return client['Request']('GetCampaignHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()[_0x0ff0('0xf')](_0x0ff0('0x10'))[_0x0ff0('0xa')](_0x0ff0('0xb')),moment()[_0x0ff0('0x11')](_0x0ff0('0x10'))[_0x0ff0('0xa')](_0x0ff0('0xb'))]},'campaigntype':_0x0ff0('0x13')},'raw':![]},'log':_0x0ff0('0x14')});};};
\ No newline at end of file
+var _0xaa3f=['CreateCmHopperHistory','AvgHandleTime','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','Request','startOf','day','endOf','queue','GetVoiceQueueHopperHistory','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client','moment','campaign'];(function(_0x5e21e1,_0x44fa2f){var _0x4fb02a=function(_0x30a6e2){while(--_0x30a6e2){_0x5e21e1['push'](_0x5e21e1['shift']());}};_0x4fb02a(++_0x44fa2f);}(_0xaa3f,0x95));var _0xfaa3=function(_0x4b555d,_0x5c587c){_0x4b555d=_0x4b555d-0x0;var _0x3fcc30=_0xaa3f[_0x4b555d];return _0x3fcc30;};'use strict';var client=require(_0xfaa3('0x0'));var moment=require(_0xfaa3('0x1'));exports['createHistory']=function(_0x328553){_0x328553[_0xfaa3('0x2')]=_0x328553['queue'];return client['Request'](_0xfaa3('0x3'),{'body':_0x328553,'log':_0xfaa3('0x3')});};exports['avgHandleTime']=function(_0x39f49f){return client['Request'](_0xfaa3('0x4'),{'options':{'where':{'endtime':{'$between':[moment()['subtract'](_0x39f49f,_0xfaa3('0x5'))[_0xfaa3('0x6')](_0xfaa3('0x7')),moment()['format']('YYYY-MM-DD\x20HH:mm:ss')]}},'raw':![]},'log':_0xfaa3('0x8')});};exports[_0xfaa3('0x9')]=function(){return function(){return client[_0xfaa3('0xa')]('GetVoiceQueueHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()[_0xfaa3('0xb')](_0xfaa3('0xc'))['format'](_0xfaa3('0x7')),moment()[_0xfaa3('0xd')](_0xfaa3('0xc'))['format'](_0xfaa3('0x7'))]},'campaigntype':_0xfaa3('0xe')},'raw':![]},'log':_0xfaa3('0xf')});};};exports[_0xfaa3('0x10')]=function(){return function(){return client['Request'](_0xfaa3('0x11'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xfaa3('0xb')](_0xfaa3('0xc'))[_0xfaa3('0x6')](_0xfaa3('0x7')),moment()[_0xfaa3('0xd')]('day')[_0xfaa3('0x6')](_0xfaa3('0x7'))]},'campaigntype':_0xfaa3('0x12')},'raw':![]},'log':'GetCampaignHopperHistory'});};};
\ No newline at end of file