Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 87a2436..4323c6a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0565=['minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','endOf','GetCampaignHopperHistory','day','ivr','../client','moment','createHistory','campaign','queue','Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','subtract'];(function(_0x4ca9b1,_0x2742cf){var _0x5f2358=function(_0x1ec8b1){while(--_0x1ec8b1){_0x4ca9b1['push'](_0x4ca9b1['shift']());}};_0x5f2358(++_0x2742cf);}(_0x0565,0xf2));var _0x5056=function(_0xaa0309,_0x1c8008){_0xaa0309=_0xaa0309-0x0;var _0x5de7ce=_0x0565[_0xaa0309];return _0x5de7ce;};'use strict';var client=require(_0x5056('0x0'));var moment=require(_0x5056('0x1'));exports[_0x5056('0x2')]=function(_0x2e0694){return function(){_0x2e0694[_0x5056('0x3')]=_0x2e0694[_0x5056('0x4')];return client[_0x5056('0x5')](_0x5056('0x6'),{'body':_0x2e0694,'log':_0x5056('0x6')});};};exports[_0x5056('0x7')]=function(_0x554040){return function(){return client[_0x5056('0x5')](_0x5056('0x8'),{'options':{'where':{'endtime':{'$between':[moment()[_0x5056('0x9')](_0x554040,_0x5056('0xa'))['format']('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x5056('0xb')](_0x5056('0xc'))]}},'raw':![]},'log':_0x5056('0xd')});};};exports[_0x5056('0xe')]=function(_0x2144a9){return function(){return client[_0x5056('0x5')](_0x5056('0xf'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x5056('0x10')]('day')[_0x5056('0xb')](_0x5056('0xc')),moment()[_0x5056('0x11')]('day')['format'](_0x5056('0xc'))]},'campaigntype':'queue'},'raw':![]},'log':'GetVoiceQueueHopperHistory'});};};exports['getCampaignHopperHistory']=function(_0x2d44fb){return function(){return client['Request'](_0x5056('0x12'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x5056('0x10')](_0x5056('0x13'))['format'](_0x5056('0xc')),moment()[_0x5056('0x11')](_0x5056('0x13'))[_0x5056('0xb')](_0x5056('0xc'))]},'campaigntype':_0x5056('0x14')},'raw':![]},'log':'GetCampaignHopperHistory'});};};
\ No newline at end of file
+var _0x6447=['format','YYYY-MM-DD\x20HH:mm:ss','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','day','endOf','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client','createHistory','campaign','queue','Request','CreateCmHopperHistory','AvgHandleTime','subtract'];(function(_0xf26c2e,_0x56c3ea){var _0x46ecb4=function(_0x1be516){while(--_0x1be516){_0xf26c2e['push'](_0xf26c2e['shift']());}};_0x46ecb4(++_0x56c3ea);}(_0x6447,0x14e));var _0x7644=function(_0x3d42d8,_0x4cffaa){_0x3d42d8=_0x3d42d8-0x0;var _0x27fc41=_0x6447[_0x3d42d8];return _0x27fc41;};'use strict';var client=require(_0x7644('0x0'));var moment=require('moment');exports[_0x7644('0x1')]=function(_0x5cc6e0){_0x5cc6e0[_0x7644('0x2')]=_0x5cc6e0[_0x7644('0x3')];return client[_0x7644('0x4')](_0x7644('0x5'),{'body':_0x5cc6e0,'log':_0x7644('0x5')});};exports['avgHandleTime']=function(_0x9d5c87){return client[_0x7644('0x4')](_0x7644('0x6'),{'options':{'where':{'endtime':{'$between':[moment()[_0x7644('0x7')](_0x9d5c87,'minutes')[_0x7644('0x8')](_0x7644('0x9')),moment()[_0x7644('0x8')](_0x7644('0x9'))]}},'raw':![]},'log':'GetCmHopperHistory'});};exports[_0x7644('0xa')]=function(){return function(){return client[_0x7644('0x4')](_0x7644('0xb'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x7644('0xc')](_0x7644('0xd'))[_0x7644('0x8')](_0x7644('0x9')),moment()[_0x7644('0xe')](_0x7644('0xd'))[_0x7644('0x8')](_0x7644('0x9'))]},'campaigntype':_0x7644('0x3')},'raw':![]},'log':_0x7644('0xb')});};};exports[_0x7644('0xf')]=function(){return function(){return client[_0x7644('0x4')](_0x7644('0x10'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x7644('0xc')](_0x7644('0xd'))[_0x7644('0x8')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x7644('0xe')]('day')[_0x7644('0x8')](_0x7644('0x9'))]},'campaigntype':_0x7644('0x11')},'raw':![]},'log':'GetCampaignHopperHistory'});};};
\ No newline at end of file