Built motion from commit 980b26c3.|2.6.29
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 20e1081..cc14e02 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1177=['getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','endOf','GetCampaignHopperHistory','day','ivr','../client','moment','createHistory','campaign','queue','Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','subtract','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory'];(function(_0x6c993a,_0x5ea3ab){var _0x27f547=function(_0x22df20){while(--_0x22df20){_0x6c993a['push'](_0x6c993a['shift']());}};_0x27f547(++_0x5ea3ab);}(_0x1177,0x1ab));var _0x7117=function(_0xefb70a,_0x41640c){_0xefb70a=_0xefb70a-0x0;var _0x2a7dae=_0x1177[_0xefb70a];return _0x2a7dae;};'use strict';var client=require(_0x7117('0x0'));var moment=require(_0x7117('0x1'));exports[_0x7117('0x2')]=function(_0x98119d){_0x98119d[_0x7117('0x3')]=_0x98119d[_0x7117('0x4')];return client[_0x7117('0x5')](_0x7117('0x6'),{'body':_0x98119d,'log':_0x7117('0x6')});};exports[_0x7117('0x7')]=function(_0x25d173){return client['Request'](_0x7117('0x8'),{'options':{'where':{'endtime':{'$between':[moment()[_0x7117('0x9')](_0x25d173,'minutes')[_0x7117('0xa')](_0x7117('0xb')),moment()[_0x7117('0xa')](_0x7117('0xb'))]}},'raw':![]},'log':_0x7117('0xc')});};exports[_0x7117('0xd')]=function(){return function(){return client[_0x7117('0x5')](_0x7117('0xe'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x7117('0xf')]('day')[_0x7117('0xa')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x7117('0x10')]('day')[_0x7117('0xa')](_0x7117('0xb'))]},'campaigntype':_0x7117('0x4')},'raw':![]},'log':_0x7117('0xe')});};};exports['getCampaignHopperHistory']=function(){return function(){return client['Request'](_0x7117('0x11'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x7117('0xf')](_0x7117('0x12'))[_0x7117('0xa')](_0x7117('0xb')),moment()[_0x7117('0x10')]('day')[_0x7117('0xa')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0x7117('0x13')},'raw':![]},'log':'GetCampaignHopperHistory'});};};
\ No newline at end of file
+var _0x3ceb=['endOf','day','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client','moment','createHistory','queue','Request','CreateCmHopperHistory','AvgHandleTime','subtract','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf'];(function(_0x229a6b,_0x5e4a9a){var _0x5edf49=function(_0x30985c){while(--_0x30985c){_0x229a6b['push'](_0x229a6b['shift']());}};_0x5edf49(++_0x5e4a9a);}(_0x3ceb,0x131));var _0xb3ce=function(_0x278074,_0x1fe122){_0x278074=_0x278074-0x0;var _0x546074=_0x3ceb[_0x278074];return _0x546074;};'use strict';var client=require(_0xb3ce('0x0'));var moment=require(_0xb3ce('0x1'));exports[_0xb3ce('0x2')]=function(_0x322c61){_0x322c61['campaign']=_0x322c61[_0xb3ce('0x3')];return client[_0xb3ce('0x4')](_0xb3ce('0x5'),{'body':_0x322c61,'log':'CreateCmHopperHistory'});};exports['avgHandleTime']=function(_0x8b6ecf){return client[_0xb3ce('0x4')](_0xb3ce('0x6'),{'options':{'where':{'endtime':{'$between':[moment()[_0xb3ce('0x7')](_0x8b6ecf,_0xb3ce('0x8'))[_0xb3ce('0x9')](_0xb3ce('0xa')),moment()[_0xb3ce('0x9')](_0xb3ce('0xa'))]}},'raw':![]},'log':_0xb3ce('0xb')});};exports[_0xb3ce('0xc')]=function(){return function(){return client[_0xb3ce('0x4')](_0xb3ce('0xd'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xb3ce('0xe')]('day')['format'](_0xb3ce('0xa')),moment()[_0xb3ce('0xf')](_0xb3ce('0x10'))[_0xb3ce('0x9')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':'queue'},'raw':![]},'log':_0xb3ce('0xd')});};};exports[_0xb3ce('0x11')]=function(){return function(){return client[_0xb3ce('0x4')](_0xb3ce('0x12'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf']('day')[_0xb3ce('0x9')](_0xb3ce('0xa')),moment()[_0xb3ce('0xf')](_0xb3ce('0x10'))[_0xb3ce('0x9')](_0xb3ce('0xa'))]},'campaigntype':_0xb3ce('0x13')},'raw':![]},'log':_0xb3ce('0x12')});};};
\ No newline at end of file