Built motion from commit (unavailable).|2.3.98
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index d9a89f4..d078be9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3c8e=['subtract','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','GetVoiceQueueHopperHistory','startOf','endOf','GetCampaignHopperHistory','day','ivr','../client','moment','campaign','queue','Request','CreateCmHopperHistory','avgHandleTime'];(function(_0x36a40a,_0x244318){var _0x463bdf=function(_0x2f32d2){while(--_0x2f32d2){_0x36a40a['push'](_0x36a40a['shift']());}};_0x463bdf(++_0x244318);}(_0x3c8e,0x89));var _0xe3c8=function(_0x186337,_0x1251dc){_0x186337=_0x186337-0x0;var _0x20549b=_0x3c8e[_0x186337];return _0x20549b;};'use strict';var client=require(_0xe3c8('0x0'));var moment=require(_0xe3c8('0x1'));exports['createHistory']=function(_0x490851){return function(){_0x490851[_0xe3c8('0x2')]=_0x490851[_0xe3c8('0x3')];return client[_0xe3c8('0x4')]('CreateCmHopperHistory',{'body':_0x490851,'log':_0xe3c8('0x5')});};};exports[_0xe3c8('0x6')]=function(_0xbd43ef){return function(){return client[_0xe3c8('0x4')]('AvgHandleTime',{'options':{'where':{'endtime':{'$between':[moment()[_0xe3c8('0x7')](_0xbd43ef,_0xe3c8('0x8'))[_0xe3c8('0x9')](_0xe3c8('0xa')),moment()[_0xe3c8('0x9')]('YYYY-MM-DD\x20HH:mm:ss')]}},'raw':![]},'log':_0xe3c8('0xb')});};};exports['getVoiceQueueHopperHistory']=function(_0x1b6e5e){return function(){return client[_0xe3c8('0x4')](_0xe3c8('0xc'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xe3c8('0xd')]('day')[_0xe3c8('0x9')](_0xe3c8('0xa')),moment()[_0xe3c8('0xe')]('day')[_0xe3c8('0x9')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0xe3c8('0x3')},'raw':![]},'log':'GetVoiceQueueHopperHistory'});};};exports['getCampaignHopperHistory']=function(_0x19067a){return function(){return client[_0xe3c8('0x4')](_0xe3c8('0xf'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0xe3c8('0x10'))[_0xe3c8('0x9')](_0xe3c8('0xa')),moment()[_0xe3c8('0xe')](_0xe3c8('0x10'))[_0xe3c8('0x9')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0xe3c8('0x11')},'raw':![]},'log':_0xe3c8('0xf')});};};
\ No newline at end of file
+var _0x50e5=['startOf','endOf','ivr','../client','moment','campaign','queue','Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','subtract','minutes','YYYY-MM-DD\x20HH:mm:ss','format','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','day','getCampaignHopperHistory'];(function(_0x271b0c,_0x51d4bf){var _0x357248=function(_0x126e89){while(--_0x126e89){_0x271b0c['push'](_0x271b0c['shift']());}};_0x357248(++_0x51d4bf);}(_0x50e5,0xb7));var _0x550e=function(_0x1c7280,_0xdf0385){_0x1c7280=_0x1c7280-0x0;var _0x317862=_0x50e5[_0x1c7280];return _0x317862;};'use strict';var client=require(_0x550e('0x0'));var moment=require(_0x550e('0x1'));exports['createHistory']=function(_0x736dcd){return function(){_0x736dcd[_0x550e('0x2')]=_0x736dcd[_0x550e('0x3')];return client[_0x550e('0x4')](_0x550e('0x5'),{'body':_0x736dcd,'log':_0x550e('0x5')});};};exports[_0x550e('0x6')]=function(_0xafede5){return function(){return client[_0x550e('0x4')](_0x550e('0x7'),{'options':{'where':{'endtime':{'$between':[moment()[_0x550e('0x8')](_0xafede5,_0x550e('0x9'))['format'](_0x550e('0xa')),moment()[_0x550e('0xb')]('YYYY-MM-DD\x20HH:mm:ss')]}},'raw':![]},'log':_0x550e('0xc')});};};exports[_0x550e('0xd')]=function(_0x1390a4){return function(){return client['Request'](_0x550e('0xe'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf']('day')[_0x550e('0xb')](_0x550e('0xa')),moment()['endOf'](_0x550e('0xf'))[_0x550e('0xb')](_0x550e('0xa'))]},'campaigntype':_0x550e('0x3')},'raw':![]},'log':'GetVoiceQueueHopperHistory'});};};exports[_0x550e('0x10')]=function(_0x57214a){return function(){return client[_0x550e('0x4')]('GetCampaignHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()[_0x550e('0x11')](_0x550e('0xf'))[_0x550e('0xb')](_0x550e('0xa')),moment()[_0x550e('0x12')]('day')[_0x550e('0xb')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0x550e('0x13')},'raw':![]},'log':'GetCampaignHopperHistory'});};};
\ No newline at end of file