Built motion from commit d13fb11b.|2.6.34
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 3240471..6ed4119 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0c94=['subtract','minutes','YYYY-MM-DD\x20HH:mm:ss','format','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','day','endOf','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client','moment','campaign','queue','CreateCmHopperHistory','avgHandleTime','Request'];(function(_0x4bc4c8,_0x3139d3){var _0x3bb121=function(_0x95ad12){while(--_0x95ad12){_0x4bc4c8['push'](_0x4bc4c8['shift']());}};_0x3bb121(++_0x3139d3);}(_0x0c94,0x71));var _0x40c9=function(_0x9cd4c3,_0x1c9b2c){_0x9cd4c3=_0x9cd4c3-0x0;var _0x4c9025=_0x0c94[_0x9cd4c3];return _0x4c9025;};'use strict';var client=require(_0x40c9('0x0'));var moment=require(_0x40c9('0x1'));exports['createHistory']=function(_0x4c1b3b){_0x4c1b3b[_0x40c9('0x2')]=_0x4c1b3b[_0x40c9('0x3')];return client['Request'](_0x40c9('0x4'),{'body':_0x4c1b3b,'log':'CreateCmHopperHistory'});};exports[_0x40c9('0x5')]=function(_0x5a99a6){return client[_0x40c9('0x6')]('AvgHandleTime',{'options':{'where':{'endtime':{'$between':[moment()[_0x40c9('0x7')](_0x5a99a6,_0x40c9('0x8'))['format'](_0x40c9('0x9')),moment()[_0x40c9('0xa')](_0x40c9('0x9'))]}},'raw':![]},'log':_0x40c9('0xb')});};exports[_0x40c9('0xc')]=function(){return function(){return client[_0x40c9('0x6')](_0x40c9('0xd'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x40c9('0xe')](_0x40c9('0xf'))[_0x40c9('0xa')](_0x40c9('0x9')),moment()[_0x40c9('0x10')](_0x40c9('0xf'))[_0x40c9('0xa')](_0x40c9('0x9'))]},'campaigntype':_0x40c9('0x3')},'raw':![]},'log':_0x40c9('0xd')});};};exports[_0x40c9('0x11')]=function(){return function(){return client[_0x40c9('0x6')](_0x40c9('0x12'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x40c9('0xe')]('day')[_0x40c9('0xa')]('YYYY-MM-DD\x20HH:mm:ss'),moment()['endOf'](_0x40c9('0xf'))[_0x40c9('0xa')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0x40c9('0x13')},'raw':![]},'log':_0x40c9('0x12')});};};
\ No newline at end of file
+var _0xe10c=['campaign','Request','CreateCmHopperHistory','AvgHandleTime','subtract','minutes','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','startOf','day','format','endOf','queue','GetVoiceQueueHopperHistory','getCampaignHopperHistory','ivr','../client','moment','createHistory'];(function(_0x52487a,_0x15dd93){var _0x4b2037=function(_0x2ccadc){while(--_0x2ccadc){_0x52487a['push'](_0x52487a['shift']());}};_0x4b2037(++_0x15dd93);}(_0xe10c,0x153));var _0xce10=function(_0x5bdb4c,_0x58d7d1){_0x5bdb4c=_0x5bdb4c-0x0;var _0x47e32d=_0xe10c[_0x5bdb4c];return _0x47e32d;};'use strict';var client=require(_0xce10('0x0'));var moment=require(_0xce10('0x1'));exports[_0xce10('0x2')]=function(_0x577838){_0x577838[_0xce10('0x3')]=_0x577838['queue'];return client[_0xce10('0x4')](_0xce10('0x5'),{'body':_0x577838,'log':_0xce10('0x5')});};exports['avgHandleTime']=function(_0x5d72b0){return client[_0xce10('0x4')](_0xce10('0x6'),{'options':{'where':{'endtime':{'$between':[moment()[_0xce10('0x7')](_0x5d72b0,_0xce10('0x8'))['format'](_0xce10('0x9')),moment()['format'](_0xce10('0x9'))]}},'raw':![]},'log':_0xce10('0xa')});};exports['getVoiceQueueHopperHistory']=function(){return function(){return client[_0xce10('0x4')]('GetVoiceQueueHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()[_0xce10('0xb')](_0xce10('0xc'))[_0xce10('0xd')](_0xce10('0x9')),moment()[_0xce10('0xe')](_0xce10('0xc'))[_0xce10('0xd')](_0xce10('0x9'))]},'campaigntype':_0xce10('0xf')},'raw':![]},'log':_0xce10('0x10')});};};exports[_0xce10('0x11')]=function(){return function(){return client[_0xce10('0x4')]('GetCampaignHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0xce10('0xc'))[_0xce10('0xd')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0xce10('0xe')](_0xce10('0xc'))[_0xce10('0xd')](_0xce10('0x9'))]},'campaigntype':_0xce10('0x12')},'raw':![]},'log':'GetCampaignHopperHistory'});};};
\ No newline at end of file