Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index c7ee869..5194ef8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0xd8f8=['getCampaignHopperHistory','GetCampaignHopperHistory','day','endOf','ivr','../client','moment','createHistory','campaign','queue','Request','CreateCmHopperHistory','subtract','minutes','format','GetCmHopperHistory','getVoiceQueueHopperHistory','startOf','YYYY-MM-DD\x20HH:mm:ss','GetVoiceQueueHopperHistory'];(function(_0x1f9f37,_0x18776e){var _0x21c080=function(_0x4acb93){while(--_0x4acb93){_0x1f9f37['push'](_0x1f9f37['shift']());}};_0x21c080(++_0x18776e);}(_0xd8f8,0x159));var _0x8d8f=function(_0x5d6456,_0x58ecc7){_0x5d6456=_0x5d6456-0x0;var _0x4d66c1=_0xd8f8[_0x5d6456];return _0x4d66c1;};'use strict';var client=require(_0x8d8f('0x0'));var moment=require(_0x8d8f('0x1'));exports[_0x8d8f('0x2')]=function(_0x5483aa){return function(){_0x5483aa[_0x8d8f('0x3')]=_0x5483aa[_0x8d8f('0x4')];return client[_0x8d8f('0x5')]('CreateCmHopperHistory',{'body':_0x5483aa,'log':_0x8d8f('0x6')});};};exports['avgHandleTime']=function(_0x54a014){return function(){return client['Request']('AvgHandleTime',{'options':{'where':{'endtime':{'$between':[moment()[_0x8d8f('0x7')](_0x54a014,_0x8d8f('0x8'))[_0x8d8f('0x9')]('YYYY-MM-DD\x20HH:mm:ss'),moment()['format']('YYYY-MM-DD\x20HH:mm:ss')]}},'raw':![]},'log':_0x8d8f('0xa')});};};exports[_0x8d8f('0xb')]=function(_0x1ef046){return function(){return client['Request']('GetVoiceQueueHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()[_0x8d8f('0xc')]('day')['format'](_0x8d8f('0xd')),moment()['endOf']('day')[_0x8d8f('0x9')](_0x8d8f('0xd'))]},'campaigntype':_0x8d8f('0x4')},'raw':![]},'log':_0x8d8f('0xe')});};};exports[_0x8d8f('0xf')]=function(_0x2a48b4){return function(){return client[_0x8d8f('0x5')](_0x8d8f('0x10'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x8d8f('0xc')](_0x8d8f('0x11'))[_0x8d8f('0x9')](_0x8d8f('0xd')),moment()[_0x8d8f('0x12')](_0x8d8f('0x11'))[_0x8d8f('0x9')](_0x8d8f('0xd'))]},'campaigntype':_0x8d8f('0x13')},'raw':![]},'log':'GetCampaignHopperHistory'});};};
\ No newline at end of file