Built motion from commit ff78e754.|2.6.29
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 6cb15c7..0c4ca00 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x799b=['queue','getCampaignHopperHistory','GetCampaignHopperHistory','startOf','ivr','../client','moment','createHistory','Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetVoiceQueueHopperHistory','endOf','day'];(function(_0x2c1ccd,_0x536f66){var _0x4afd77=function(_0x273b55){while(--_0x273b55){_0x2c1ccd['push'](_0x2c1ccd['shift']());}};_0x4afd77(++_0x536f66);}(_0x799b,0xcb));var _0xb799=function(_0x5bfdbc,_0xf38754){_0x5bfdbc=_0x5bfdbc-0x0;var _0x138f51=_0x799b[_0x5bfdbc];return _0x138f51;};'use strict';var client=require(_0xb799('0x0'));var moment=require(_0xb799('0x1'));exports[_0xb799('0x2')]=function(_0x5e48fe){_0x5e48fe['campaign']=_0x5e48fe['queue'];return client[_0xb799('0x3')]('CreateCmHopperHistory',{'body':_0x5e48fe,'log':_0xb799('0x4')});};exports[_0xb799('0x5')]=function(_0x27e2f6){return client[_0xb799('0x3')](_0xb799('0x6'),{'options':{'where':{'endtime':{'$between':[moment()['subtract'](_0x27e2f6,_0xb799('0x7'))[_0xb799('0x8')](_0xb799('0x9')),moment()['format'](_0xb799('0x9'))]}},'raw':![]},'log':'GetCmHopperHistory'});};exports['getVoiceQueueHopperHistory']=function(){return function(){return client[_0xb799('0x3')](_0xb799('0xa'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf']('day')[_0xb799('0x8')](_0xb799('0x9')),moment()[_0xb799('0xb')](_0xb799('0xc'))['format'](_0xb799('0x9'))]},'campaigntype':_0xb799('0xd')},'raw':![]},'log':_0xb799('0xa')});};};exports[_0xb799('0xe')]=function(){return function(){return client[_0xb799('0x3')](_0xb799('0xf'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xb799('0x10')]('day')[_0xb799('0x8')](_0xb799('0x9')),moment()[_0xb799('0xb')](_0xb799('0xc'))[_0xb799('0x8')](_0xb799('0x9'))]},'campaigntype':_0xb799('0x11')},'raw':![]},'log':_0xb799('0xf')});};};
\ No newline at end of file
+var _0x724f=['queue','Request','CreateCmHopperHistory','avgHandleTime','subtract','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','day','getCampaignHopperHistory','GetCampaignHopperHistory','endOf','../client','moment','createHistory','campaign'];(function(_0x39b7e4,_0x6c4bac){var _0x9e167b=function(_0xa98714){while(--_0xa98714){_0x39b7e4['push'](_0x39b7e4['shift']());}};_0x9e167b(++_0x6c4bac);}(_0x724f,0x1ea));var _0xf724=function(_0x484f58,_0x310f2e){_0x484f58=_0x484f58-0x0;var _0x3c8ef7=_0x724f[_0x484f58];return _0x3c8ef7;};'use strict';var client=require(_0xf724('0x0'));var moment=require(_0xf724('0x1'));exports[_0xf724('0x2')]=function(_0x14cf22){_0x14cf22[_0xf724('0x3')]=_0x14cf22[_0xf724('0x4')];return client[_0xf724('0x5')](_0xf724('0x6'),{'body':_0x14cf22,'log':'CreateCmHopperHistory'});};exports[_0xf724('0x7')]=function(_0x509f4a){return client['Request']('AvgHandleTime',{'options':{'where':{'endtime':{'$between':[moment()[_0xf724('0x8')](_0x509f4a,'minutes')[_0xf724('0x9')](_0xf724('0xa')),moment()[_0xf724('0x9')](_0xf724('0xa'))]}},'raw':![]},'log':_0xf724('0xb')});};exports[_0xf724('0xc')]=function(){return function(){return client[_0xf724('0x5')](_0xf724('0xd'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xf724('0xe')](_0xf724('0xf'))['format'](_0xf724('0xa')),moment()['endOf'](_0xf724('0xf'))['format']('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':'queue'},'raw':![]},'log':'GetVoiceQueueHopperHistory'});};};exports[_0xf724('0x10')]=function(){return function(){return client[_0xf724('0x5')](_0xf724('0x11'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xf724('0xe')](_0xf724('0xf'))[_0xf724('0x9')](_0xf724('0xa')),moment()[_0xf724('0x12')](_0xf724('0xf'))['format']('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':'ivr'},'raw':![]},'log':_0xf724('0x11')});};};
\ No newline at end of file