Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 3069c86..33ea06d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf468=['CreateCmHopperHistory','AvgHandleTime','subtract','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','endOf','day','queue','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client','moment','Request'];(function(_0x35aeb5,_0x4e8855){var _0x18fcec=function(_0x2f81a5){while(--_0x2f81a5){_0x35aeb5['push'](_0x35aeb5['shift']());}};_0x18fcec(++_0x4e8855);}(_0xf468,0x1c5));var _0x8f46=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xf468[_0x14add3];return _0x4a174f;};'use strict';var client=require(_0x8f46('0x0'));var moment=require(_0x8f46('0x1'));exports['createHistory']=function(_0x3f6804){return function(){_0x3f6804['campaign']=_0x3f6804['queue'];return client[_0x8f46('0x2')](_0x8f46('0x3'),{'body':_0x3f6804,'log':_0x8f46('0x3')});};};exports['avgHandleTime']=function(_0x2fe23c){return function(){return client[_0x8f46('0x2')](_0x8f46('0x4'),{'options':{'where':{'endtime':{'$between':[moment()[_0x8f46('0x5')](_0x2fe23c,_0x8f46('0x6'))[_0x8f46('0x7')](_0x8f46('0x8')),moment()[_0x8f46('0x7')](_0x8f46('0x8'))]}},'raw':![]},'log':_0x8f46('0x9')});};};exports[_0x8f46('0xa')]=function(_0x592147){return function(){return client[_0x8f46('0x2')](_0x8f46('0xb'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x8f46('0xc')]('day')[_0x8f46('0x7')](_0x8f46('0x8')),moment()[_0x8f46('0xd')](_0x8f46('0xe'))[_0x8f46('0x7')](_0x8f46('0x8'))]},'campaigntype':_0x8f46('0xf')},'raw':![]},'log':_0x8f46('0xb')});};};exports[_0x8f46('0x10')]=function(_0x4abdf4){return function(){return client[_0x8f46('0x2')](_0x8f46('0x11'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x8f46('0xc')]('day')['format'](_0x8f46('0x8')),moment()[_0x8f46('0xd')](_0x8f46('0xe'))['format'](_0x8f46('0x8'))]},'campaigntype':_0x8f46('0x12')},'raw':![]},'log':_0x8f46('0x11')});};};
\ No newline at end of file
+var _0xd06e=['minutes','format','YYYY-MM-DD\x20HH:mm:ss','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','endOf','day','queue','GetCampaignHopperHistory','ivr','createHistory','Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0xd06e,0x16b));var _0xed06=function(_0x11d261,_0xf919b){_0x11d261=_0x11d261-0x0;var _0x51e845=_0xd06e[_0x11d261];return _0x51e845;};'use strict';var client=require('../client');var moment=require('moment');exports[_0xed06('0x0')]=function(_0x22caff){_0x22caff['campaign']=_0x22caff['queue'];return client[_0xed06('0x1')](_0xed06('0x2'),{'body':_0x22caff,'log':_0xed06('0x2')});};exports[_0xed06('0x3')]=function(_0x77e456){return client[_0xed06('0x1')](_0xed06('0x4'),{'options':{'where':{'endtime':{'$between':[moment()['subtract'](_0x77e456,_0xed06('0x5'))[_0xed06('0x6')](_0xed06('0x7')),moment()['format'](_0xed06('0x7'))]}},'raw':![]},'log':'GetCmHopperHistory'});};exports[_0xed06('0x8')]=function(){return function(){return client['Request'](_0xed06('0x9'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xed06('0xa')]('day')[_0xed06('0x6')](_0xed06('0x7')),moment()[_0xed06('0xb')](_0xed06('0xc'))[_0xed06('0x6')](_0xed06('0x7'))]},'campaigntype':_0xed06('0xd')},'raw':![]},'log':_0xed06('0x9')});};};exports['getCampaignHopperHistory']=function(){return function(){return client[_0xed06('0x1')](_0xed06('0xe'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0xed06('0xc'))[_0xed06('0x6')](_0xed06('0x7')),moment()[_0xed06('0xb')]('day')[_0xed06('0x6')](_0xed06('0x7'))]},'campaigntype':_0xed06('0xf')},'raw':![]},'log':_0xed06('0xe')});};};
\ No newline at end of file