Built motion from commit (unavailable).|2.5.11
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 0696e18..6659ee4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7916=['getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','day','YYYY-MM-DD\x20HH:mm:ss','endOf','getCampaignHopperHistory','GetCampaignHopperHistory','../client','createHistory','queue','Request','CreateCmHopperHistory','AvgHandleTime','subtract','format'];(function(_0x4845ee,_0xdbf73f){var _0x3570a5=function(_0xaeeb5c){while(--_0xaeeb5c){_0x4845ee['push'](_0x4845ee['shift']());}};_0x3570a5(++_0xdbf73f);}(_0x7916,0x128));var _0x6791=function(_0x24248d,_0x5d81f2){_0x24248d=_0x24248d-0x0;var _0x4704a7=_0x7916[_0x24248d];return _0x4704a7;};'use strict';var client=require(_0x6791('0x0'));var moment=require('moment');exports[_0x6791('0x1')]=function(_0xdaaf2b){return function(){_0xdaaf2b['campaign']=_0xdaaf2b[_0x6791('0x2')];return client[_0x6791('0x3')](_0x6791('0x4'),{'body':_0xdaaf2b,'log':_0x6791('0x4')});};};exports['avgHandleTime']=function(_0xe98396){return function(){return client['Request'](_0x6791('0x5'),{'options':{'where':{'endtime':{'$between':[moment()[_0x6791('0x6')](_0xe98396,'minutes')[_0x6791('0x7')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x6791('0x7')]('YYYY-MM-DD\x20HH:mm:ss')]}},'raw':![]},'log':'GetCmHopperHistory'});};};exports[_0x6791('0x8')]=function(_0x198a64){return function(){return client['Request'](_0x6791('0x9'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x6791('0xa')](_0x6791('0xb'))['format'](_0x6791('0xc')),moment()[_0x6791('0xd')](_0x6791('0xb'))[_0x6791('0x7')](_0x6791('0xc'))]},'campaigntype':_0x6791('0x2')},'raw':![]},'log':_0x6791('0x9')});};};exports[_0x6791('0xe')]=function(_0x423e22){return function(){return client[_0x6791('0x3')](_0x6791('0xf'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf']('day')[_0x6791('0x7')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x6791('0xd')]('day')[_0x6791('0x7')](_0x6791('0xc'))]},'campaigntype':'ivr'},'raw':![]},'log':_0x6791('0xf')});};};
\ No newline at end of file
+var _0xfef3=['Request','subtract','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','day','endOf','getCampaignHopperHistory','ivr','GetCampaignHopperHistory','../client','createHistory','campaign','queue','CreateCmHopperHistory'];(function(_0x5471ec,_0x1ce81a){var _0x121d4c=function(_0xefb655){while(--_0xefb655){_0x5471ec['push'](_0x5471ec['shift']());}};_0x121d4c(++_0x1ce81a);}(_0xfef3,0x118));var _0x3fef=function(_0x393eac,_0x4505f3){_0x393eac=_0x393eac-0x0;var _0x37a891=_0xfef3[_0x393eac];return _0x37a891;};'use strict';var client=require(_0x3fef('0x0'));var moment=require('moment');exports[_0x3fef('0x1')]=function(_0x494ae6){return function(){_0x494ae6[_0x3fef('0x2')]=_0x494ae6[_0x3fef('0x3')];return client['Request'](_0x3fef('0x4'),{'body':_0x494ae6,'log':_0x3fef('0x4')});};};exports['avgHandleTime']=function(_0x2f88b8){return function(){return client[_0x3fef('0x5')]('AvgHandleTime',{'options':{'where':{'endtime':{'$between':[moment()[_0x3fef('0x6')](_0x2f88b8,_0x3fef('0x7'))[_0x3fef('0x8')](_0x3fef('0x9')),moment()[_0x3fef('0x8')](_0x3fef('0x9'))]}},'raw':![]},'log':_0x3fef('0xa')});};};exports[_0x3fef('0xb')]=function(_0x31c30f){return function(){return client[_0x3fef('0x5')](_0x3fef('0xc'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x3fef('0xd')](_0x3fef('0xe'))[_0x3fef('0x8')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x3fef('0xf')](_0x3fef('0xe'))[_0x3fef('0x8')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0x3fef('0x3')},'raw':![]},'log':'GetVoiceQueueHopperHistory'});};};exports[_0x3fef('0x10')]=function(_0x3d2c2d){return function(){return client[_0x3fef('0x5')]('GetCampaignHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()[_0x3fef('0xd')]('day')[_0x3fef('0x8')](_0x3fef('0x9')),moment()['endOf'](_0x3fef('0xe'))[_0x3fef('0x8')](_0x3fef('0x9'))]},'campaigntype':_0x3fef('0x11')},'raw':![]},'log':_0x3fef('0x12')});};};
\ No newline at end of file