Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 01597ec..8c34519 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x420e=['Request','CreateCmHopperHistory','AvgHandleTime','subtract','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','day','getCampaignHopperHistory','GetCampaignHopperHistory','endOf','ivr','../client','moment','createHistory','campaign','queue'];(function(_0x12d124,_0x4f6dfe){var _0xcc1815=function(_0x2d6acb){while(--_0x2d6acb){_0x12d124['push'](_0x12d124['shift']());}};_0xcc1815(++_0x4f6dfe);}(_0x420e,0x8e));var _0xe420=function(_0x493b41,_0x346d45){_0x493b41=_0x493b41-0x0;var _0x33f507=_0x420e[_0x493b41];return _0x33f507;};'use strict';var client=require(_0xe420('0x0'));var moment=require(_0xe420('0x1'));exports[_0xe420('0x2')]=function(_0x3a2207){return function(){_0x3a2207[_0xe420('0x3')]=_0x3a2207[_0xe420('0x4')];return client[_0xe420('0x5')](_0xe420('0x6'),{'body':_0x3a2207,'log':_0xe420('0x6')});};};exports['avgHandleTime']=function(_0x584a86){return function(){return client[_0xe420('0x5')](_0xe420('0x7'),{'options':{'where':{'endtime':{'$between':[moment()[_0xe420('0x8')](_0x584a86,_0xe420('0x9'))[_0xe420('0xa')](_0xe420('0xb')),moment()[_0xe420('0xa')]('YYYY-MM-DD\x20HH:mm:ss')]}},'raw':![]},'log':_0xe420('0xc')});};};exports[_0xe420('0xd')]=function(_0x1f002e){return function(){return client[_0xe420('0x5')](_0xe420('0xe'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xe420('0xf')](_0xe420('0x10'))['format'](_0xe420('0xb')),moment()['endOf'](_0xe420('0x10'))[_0xe420('0xa')](_0xe420('0xb'))]},'campaigntype':_0xe420('0x4')},'raw':![]},'log':_0xe420('0xe')});};};exports[_0xe420('0x11')]=function(_0x3708a6){return function(){return client[_0xe420('0x5')](_0xe420('0x12'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xe420('0xf')](_0xe420('0x10'))[_0xe420('0xa')](_0xe420('0xb')),moment()[_0xe420('0x13')]('day')[_0xe420('0xa')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0xe420('0x14')},'raw':![]},'log':_0xe420('0x12')});};};
\ No newline at end of file
+var _0xd798=['getVoiceQueueHopperHistory','day','endOf','GetVoiceQueueHopperHistory','getCampaignHopperHistory','GetCampaignHopperHistory','startOf','../client','createHistory','campaign','queue','Request','CreateCmHopperHistory','avgHandleTime','subtract','minutes','format','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x15874f,_0x9e2254){var _0x303c1d=function(_0xd241fc){while(--_0xd241fc){_0x15874f['push'](_0x15874f['shift']());}};_0x303c1d(++_0x9e2254);}(_0xd798,0xf1));var _0x8d79=function(_0x5e9a05,_0x5dcf26){_0x5e9a05=_0x5e9a05-0x0;var _0x337fd3=_0xd798[_0x5e9a05];return _0x337fd3;};'use strict';var client=require(_0x8d79('0x0'));var moment=require('moment');exports[_0x8d79('0x1')]=function(_0x4deb48){_0x4deb48[_0x8d79('0x2')]=_0x4deb48[_0x8d79('0x3')];return client[_0x8d79('0x4')]('CreateCmHopperHistory',{'body':_0x4deb48,'log':_0x8d79('0x5')});};exports[_0x8d79('0x6')]=function(_0x4f1c37){return client[_0x8d79('0x4')]('AvgHandleTime',{'options':{'where':{'endtime':{'$between':[moment()[_0x8d79('0x7')](_0x4f1c37,_0x8d79('0x8'))[_0x8d79('0x9')]('YYYY-MM-DD\x20HH:mm:ss'),moment()['format'](_0x8d79('0xa'))]}},'raw':![]},'log':'GetCmHopperHistory'});};exports[_0x8d79('0xb')]=function(){return function(){return client[_0x8d79('0x4')]('GetVoiceQueueHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0x8d79('0xc'))[_0x8d79('0x9')](_0x8d79('0xa')),moment()[_0x8d79('0xd')](_0x8d79('0xc'))[_0x8d79('0x9')](_0x8d79('0xa'))]},'campaigntype':_0x8d79('0x3')},'raw':![]},'log':_0x8d79('0xe')});};};exports[_0x8d79('0xf')]=function(){return function(){return client[_0x8d79('0x4')](_0x8d79('0x10'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x8d79('0x11')](_0x8d79('0xc'))[_0x8d79('0x9')](_0x8d79('0xa')),moment()['endOf']('day')[_0x8d79('0x9')](_0x8d79('0xa'))]},'campaigntype':'ivr'},'raw':![]},'log':'GetCampaignHopperHistory'});};};
\ No newline at end of file