Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 4323c6a..33ea06d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6447=['format','YYYY-MM-DD\x20HH:mm:ss','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','day','endOf','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client','createHistory','campaign','queue','Request','CreateCmHopperHistory','AvgHandleTime','subtract'];(function(_0xf26c2e,_0x56c3ea){var _0x46ecb4=function(_0x1be516){while(--_0x1be516){_0xf26c2e['push'](_0xf26c2e['shift']());}};_0x46ecb4(++_0x56c3ea);}(_0x6447,0x14e));var _0x7644=function(_0x3d42d8,_0x4cffaa){_0x3d42d8=_0x3d42d8-0x0;var _0x27fc41=_0x6447[_0x3d42d8];return _0x27fc41;};'use strict';var client=require(_0x7644('0x0'));var moment=require('moment');exports[_0x7644('0x1')]=function(_0x5cc6e0){_0x5cc6e0[_0x7644('0x2')]=_0x5cc6e0[_0x7644('0x3')];return client[_0x7644('0x4')](_0x7644('0x5'),{'body':_0x5cc6e0,'log':_0x7644('0x5')});};exports['avgHandleTime']=function(_0x9d5c87){return client[_0x7644('0x4')](_0x7644('0x6'),{'options':{'where':{'endtime':{'$between':[moment()[_0x7644('0x7')](_0x9d5c87,'minutes')[_0x7644('0x8')](_0x7644('0x9')),moment()[_0x7644('0x8')](_0x7644('0x9'))]}},'raw':![]},'log':'GetCmHopperHistory'});};exports[_0x7644('0xa')]=function(){return function(){return client[_0x7644('0x4')](_0x7644('0xb'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x7644('0xc')](_0x7644('0xd'))[_0x7644('0x8')](_0x7644('0x9')),moment()[_0x7644('0xe')](_0x7644('0xd'))[_0x7644('0x8')](_0x7644('0x9'))]},'campaigntype':_0x7644('0x3')},'raw':![]},'log':_0x7644('0xb')});};};exports[_0x7644('0xf')]=function(){return function(){return client[_0x7644('0x4')](_0x7644('0x10'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x7644('0xc')](_0x7644('0xd'))[_0x7644('0x8')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x7644('0xe')]('day')[_0x7644('0x8')](_0x7644('0x9'))]},'campaigntype':_0x7644('0x11')},'raw':![]},'log':'GetCampaignHopperHistory'});};};
\ 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