Built motion from commit 5ae82ce5.|2.6.7
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 9c5668f..b8f48cf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7366=['moment','createHistory','queue','Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetVoiceQueueHopperHistory','startOf','endOf','GetCampaignHopperHistory','day','ivr'];(function(_0x73cf31,_0x4310b1){var _0x35aea0=function(_0x5b7cd2){while(--_0x5b7cd2){_0x73cf31['push'](_0x73cf31['shift']());}};_0x35aea0(++_0x4310b1);}(_0x7366,0x1f0));var _0x6736=function(_0x2e72c7,_0x3cefda){_0x2e72c7=_0x2e72c7-0x0;var _0x12f876=_0x7366[_0x2e72c7];return _0x12f876;};'use strict';var client=require('../client');var moment=require(_0x6736('0x0'));exports[_0x6736('0x1')]=function(_0x330740){return function(){_0x330740['campaign']=_0x330740[_0x6736('0x2')];return client[_0x6736('0x3')](_0x6736('0x4'),{'body':_0x330740,'log':'CreateCmHopperHistory'});};};exports[_0x6736('0x5')]=function(_0x5c4051){return function(){return client[_0x6736('0x3')](_0x6736('0x6'),{'options':{'where':{'endtime':{'$between':[moment()['subtract'](_0x5c4051,_0x6736('0x7'))[_0x6736('0x8')](_0x6736('0x9')),moment()['format'](_0x6736('0x9'))]}},'raw':![]},'log':'GetCmHopperHistory'});};};exports['getVoiceQueueHopperHistory']=function(_0x290b72){return function(){return client[_0x6736('0x3')](_0x6736('0xa'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x6736('0xb')]('day')[_0x6736('0x8')](_0x6736('0x9')),moment()[_0x6736('0xc')]('day')[_0x6736('0x8')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0x6736('0x2')},'raw':![]},'log':_0x6736('0xa')});};};exports['getCampaignHopperHistory']=function(_0x278013){return function(){return client[_0x6736('0x3')](_0x6736('0xd'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x6736('0xb')](_0x6736('0xe'))['format'](_0x6736('0x9')),moment()['endOf']('day')['format']('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0x6736('0xf')},'raw':![]},'log':_0x6736('0xd')});};};
\ No newline at end of file
+var _0x5bfe=['startOf','day','endOf','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client','moment','campaign','queue','Request','CreateCmHopperHistory','AvgHandleTime','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0x5bfe,0x1e1));var _0xe5bf=function(_0x2539bf,_0x4e54b1){_0x2539bf=_0x2539bf-0x0;var _0x2d89d7=_0x5bfe[_0x2539bf];return _0x2d89d7;};'use strict';var client=require(_0xe5bf('0x0'));var moment=require(_0xe5bf('0x1'));exports['createHistory']=function(_0x568c3f){return function(){_0x568c3f[_0xe5bf('0x2')]=_0x568c3f[_0xe5bf('0x3')];return client[_0xe5bf('0x4')](_0xe5bf('0x5'),{'body':_0x568c3f,'log':_0xe5bf('0x5')});};};exports['avgHandleTime']=function(_0x577a95){return function(){return client['Request'](_0xe5bf('0x6'),{'options':{'where':{'endtime':{'$between':[moment()['subtract'](_0x577a95,_0xe5bf('0x7'))['format']('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0xe5bf('0x8')](_0xe5bf('0x9'))]}},'raw':![]},'log':_0xe5bf('0xa')});};};exports[_0xe5bf('0xb')]=function(_0x2ede1d){return function(){return client[_0xe5bf('0x4')](_0xe5bf('0xc'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xe5bf('0xd')](_0xe5bf('0xe'))['format'](_0xe5bf('0x9')),moment()[_0xe5bf('0xf')](_0xe5bf('0xe'))[_0xe5bf('0x8')](_0xe5bf('0x9'))]},'campaigntype':_0xe5bf('0x3')},'raw':![]},'log':'GetVoiceQueueHopperHistory'});};};exports[_0xe5bf('0x10')]=function(_0x16e31e){return function(){return client[_0xe5bf('0x4')](_0xe5bf('0x11'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xe5bf('0xd')](_0xe5bf('0xe'))[_0xe5bf('0x8')](_0xe5bf('0x9')),moment()[_0xe5bf('0xf')]('day')['format'](_0xe5bf('0x9'))]},'campaigntype':_0xe5bf('0x12')},'raw':![]},'log':_0xe5bf('0x11')});};};
\ No newline at end of file