Built motion from commit 6a0adb95.|2.6.31
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 50c1316..a7287e1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x84e6=['moment','createHistory','Request','avgHandleTime','subtract','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','day','endOf','queue','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client'];(function(_0x4feb28,_0x586c67){var _0x2daa85=function(_0x12de0e){while(--_0x12de0e){_0x4feb28['push'](_0x4feb28['shift']());}};_0x2daa85(++_0x586c67);}(_0x84e6,0x8f));var _0x684e=function(_0x19b4cd,_0x481245){_0x19b4cd=_0x19b4cd-0x0;var _0x19e01e=_0x84e6[_0x19b4cd];return _0x19e01e;};'use strict';var client=require(_0x684e('0x0'));var moment=require(_0x684e('0x1'));exports[_0x684e('0x2')]=function(_0x1b546f){_0x1b546f['campaign']=_0x1b546f['queue'];return client[_0x684e('0x3')]('CreateCmHopperHistory',{'body':_0x1b546f,'log':'CreateCmHopperHistory'});};exports[_0x684e('0x4')]=function(_0x2f47a5){return client[_0x684e('0x3')]('AvgHandleTime',{'options':{'where':{'endtime':{'$between':[moment()[_0x684e('0x5')](_0x2f47a5,'minutes')[_0x684e('0x6')]('YYYY-MM-DD\x20HH:mm:ss'),moment()['format'](_0x684e('0x7'))]}},'raw':![]},'log':_0x684e('0x8')});};exports[_0x684e('0x9')]=function(){return function(){return client[_0x684e('0x3')](_0x684e('0xa'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x684e('0xb')](_0x684e('0xc'))['format']('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x684e('0xd')](_0x684e('0xc'))['format'](_0x684e('0x7'))]},'campaigntype':_0x684e('0xe')},'raw':![]},'log':'GetVoiceQueueHopperHistory'});};};exports[_0x684e('0xf')]=function(){return function(){return client['Request'](_0x684e('0x10'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x684e('0xb')](_0x684e('0xc'))[_0x684e('0x6')](_0x684e('0x7')),moment()[_0x684e('0xd')](_0x684e('0xc'))[_0x684e('0x6')](_0x684e('0x7'))]},'campaigntype':_0x684e('0x11')},'raw':![]},'log':_0x684e('0x10')});};};
\ No newline at end of file
+var _0x77ec=['Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','subtract','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','GetVoiceQueueHopperHistory','day','endOf','GetCampaignHopperHistory','startOf','../client','moment','createHistory','campaign','queue'];(function(_0x4e676e,_0x2a7c6d){var _0x336a3c=function(_0x4767c4){while(--_0x4767c4){_0x4e676e['push'](_0x4e676e['shift']());}};_0x336a3c(++_0x2a7c6d);}(_0x77ec,0x1cf));var _0xc77e=function(_0x378fb3,_0x111e55){_0x378fb3=_0x378fb3-0x0;var _0x314b90=_0x77ec[_0x378fb3];return _0x314b90;};'use strict';var client=require(_0xc77e('0x0'));var moment=require(_0xc77e('0x1'));exports[_0xc77e('0x2')]=function(_0x4641d5){_0x4641d5[_0xc77e('0x3')]=_0x4641d5[_0xc77e('0x4')];return client[_0xc77e('0x5')](_0xc77e('0x6'),{'body':_0x4641d5,'log':_0xc77e('0x6')});};exports[_0xc77e('0x7')]=function(_0x4d52f5){return client['Request'](_0xc77e('0x8'),{'options':{'where':{'endtime':{'$between':[moment()[_0xc77e('0x9')](_0x4d52f5,'minutes')[_0xc77e('0xa')](_0xc77e('0xb')),moment()[_0xc77e('0xa')](_0xc77e('0xb'))]}},'raw':![]},'log':_0xc77e('0xc')});};exports['getVoiceQueueHopperHistory']=function(){return function(){return client[_0xc77e('0x5')](_0xc77e('0xd'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0xc77e('0xe'))[_0xc77e('0xa')](_0xc77e('0xb')),moment()[_0xc77e('0xf')](_0xc77e('0xe'))[_0xc77e('0xa')](_0xc77e('0xb'))]},'campaigntype':_0xc77e('0x4')},'raw':![]},'log':_0xc77e('0xd')});};};exports['getCampaignHopperHistory']=function(){return function(){return client['Request'](_0xc77e('0x10'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xc77e('0x11')](_0xc77e('0xe'))[_0xc77e('0xa')]('YYYY-MM-DD\x20HH:mm:ss'),moment()['endOf'](_0xc77e('0xe'))['format'](_0xc77e('0xb'))]},'campaigntype':'ivr'},'raw':![]},'log':'GetCampaignHopperHistory'});};};
\ No newline at end of file