Built motion from commit da617fac.|2.6.6
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 1debbc1..c7ee869 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4fc2=['AvgHandleTime','subtract','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','day','endOf','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client','moment','createHistory','queue','Request','CreateCmHopperHistory','avgHandleTime'];(function(_0x3e0359,_0x1a25bd){var _0x5127cd=function(_0x1d793c){while(--_0x1d793c){_0x3e0359['push'](_0x3e0359['shift']());}};_0x5127cd(++_0x1a25bd);}(_0x4fc2,0x111));var _0x24fc=function(_0x21da0f,_0x34a74e){_0x21da0f=_0x21da0f-0x0;var _0x2fd6c5=_0x4fc2[_0x21da0f];return _0x2fd6c5;};'use strict';var client=require(_0x24fc('0x0'));var moment=require(_0x24fc('0x1'));exports[_0x24fc('0x2')]=function(_0x4390a0){return function(){_0x4390a0['campaign']=_0x4390a0[_0x24fc('0x3')];return client[_0x24fc('0x4')](_0x24fc('0x5'),{'body':_0x4390a0,'log':'CreateCmHopperHistory'});};};exports[_0x24fc('0x6')]=function(_0x3772eb){return function(){return client['Request'](_0x24fc('0x7'),{'options':{'where':{'endtime':{'$between':[moment()[_0x24fc('0x8')](_0x3772eb,'minutes')[_0x24fc('0x9')](_0x24fc('0xa')),moment()[_0x24fc('0x9')](_0x24fc('0xa'))]}},'raw':![]},'log':_0x24fc('0xb')});};};exports[_0x24fc('0xc')]=function(_0x5afdf1){return function(){return client[_0x24fc('0x4')](_0x24fc('0xd'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x24fc('0xe')](_0x24fc('0xf'))[_0x24fc('0x9')](_0x24fc('0xa')),moment()[_0x24fc('0x10')](_0x24fc('0xf'))['format'](_0x24fc('0xa'))]},'campaigntype':_0x24fc('0x3')},'raw':![]},'log':'GetVoiceQueueHopperHistory'});};};exports[_0x24fc('0x11')]=function(_0x76cb25){return function(){return client[_0x24fc('0x4')](_0x24fc('0x12'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x24fc('0xe')](_0x24fc('0xf'))['format'](_0x24fc('0xa')),moment()[_0x24fc('0x10')](_0x24fc('0xf'))[_0x24fc('0x9')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0x24fc('0x13')},'raw':![]},'log':'GetCampaignHopperHistory'});};};
\ No newline at end of file
+var _0x465a=['campaign','queue','Request','CreateCmHopperHistory','AvgHandleTime','subtract','minutes','YYYY-MM-DD\x20HH:mm:ss','format','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','day','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client','moment','createHistory'];(function(_0x54d3c6,_0x5390e2){var _0x54466e=function(_0xe4ab95){while(--_0xe4ab95){_0x54d3c6['push'](_0x54d3c6['shift']());}};_0x54466e(++_0x5390e2);}(_0x465a,0x1f1));var _0xa465=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x465a[_0xa464c9];return _0x3d73c4;};'use strict';var client=require(_0xa465('0x0'));var moment=require(_0xa465('0x1'));exports[_0xa465('0x2')]=function(_0x4ad795){return function(){_0x4ad795[_0xa465('0x3')]=_0x4ad795[_0xa465('0x4')];return client[_0xa465('0x5')](_0xa465('0x6'),{'body':_0x4ad795,'log':_0xa465('0x6')});};};exports['avgHandleTime']=function(_0x4c2723){return function(){return client[_0xa465('0x5')](_0xa465('0x7'),{'options':{'where':{'endtime':{'$between':[moment()[_0xa465('0x8')](_0x4c2723,_0xa465('0x9'))['format'](_0xa465('0xa')),moment()[_0xa465('0xb')]('YYYY-MM-DD\x20HH:mm:ss')]}},'raw':![]},'log':_0xa465('0xc')});};};exports[_0xa465('0xd')]=function(_0x6244fb){return function(){return client[_0xa465('0x5')](_0xa465('0xe'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xa465('0xf')](_0xa465('0x10'))['format'](_0xa465('0xa')),moment()['endOf'](_0xa465('0x10'))[_0xa465('0xb')](_0xa465('0xa'))]},'campaigntype':_0xa465('0x4')},'raw':![]},'log':_0xa465('0xe')});};};exports[_0xa465('0x11')]=function(_0x1b8883){return function(){return client['Request'](_0xa465('0x12'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0xa465('0x10'))[_0xa465('0xb')]('YYYY-MM-DD\x20HH:mm:ss'),moment()['endOf'](_0xa465('0x10'))[_0xa465('0xb')](_0xa465('0xa'))]},'campaigntype':_0xa465('0x13')},'raw':![]},'log':'GetCampaignHopperHistory'});};};
\ No newline at end of file