Built motion from commit 9efc8423.|2.6.31
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 21b69c5..323a609 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x527c=['endOf','GetCampaignHopperHistory','startOf','ivr','../client','createHistory','campaign','queue','CreateCmHopperHistory','avgHandleTime','Request','AvgHandleTime','subtract','minutes','YYYY-MM-DD\x20HH:mm:ss','format','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','day'];(function(_0x3816e9,_0x38d38e){var _0x4e97a1=function(_0x3247c9){while(--_0x3247c9){_0x3816e9['push'](_0x3816e9['shift']());}};_0x4e97a1(++_0x38d38e);}(_0x527c,0x194));var _0xc527=function(_0x518e15,_0x568735){_0x518e15=_0x518e15-0x0;var _0x3bd658=_0x527c[_0x518e15];return _0x3bd658;};'use strict';var client=require(_0xc527('0x0'));var moment=require('moment');exports[_0xc527('0x1')]=function(_0x265422){_0x265422[_0xc527('0x2')]=_0x265422[_0xc527('0x3')];return client['Request'](_0xc527('0x4'),{'body':_0x265422,'log':_0xc527('0x4')});};exports[_0xc527('0x5')]=function(_0x335cf5){return client[_0xc527('0x6')](_0xc527('0x7'),{'options':{'where':{'endtime':{'$between':[moment()[_0xc527('0x8')](_0x335cf5,_0xc527('0x9'))['format'](_0xc527('0xa')),moment()[_0xc527('0xb')](_0xc527('0xa'))]}},'raw':![]},'log':_0xc527('0xc')});};exports[_0xc527('0xd')]=function(){return function(){return client['Request'](_0xc527('0xe'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0xc527('0xf'))[_0xc527('0xb')](_0xc527('0xa')),moment()[_0xc527('0x10')](_0xc527('0xf'))[_0xc527('0xb')](_0xc527('0xa'))]},'campaigntype':_0xc527('0x3')},'raw':![]},'log':'GetVoiceQueueHopperHistory'});};};exports['getCampaignHopperHistory']=function(){return function(){return client[_0xc527('0x6')](_0xc527('0x11'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xc527('0x12')](_0xc527('0xf'))[_0xc527('0xb')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0xc527('0x10')](_0xc527('0xf'))[_0xc527('0xb')](_0xc527('0xa'))]},'campaigntype':_0xc527('0x13')},'raw':![]},'log':_0xc527('0x11')});};};
\ No newline at end of file
+var _0xf6f0=['ivr','campaign','queue','Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','subtract','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','day','getCampaignHopperHistory','GetCampaignHopperHistory','startOf','endOf'];(function(_0x3c81b5,_0x3f5ed7){var _0x5888c4=function(_0x4e65b0){while(--_0x4e65b0){_0x3c81b5['push'](_0x3c81b5['shift']());}};_0x5888c4(++_0x3f5ed7);}(_0xf6f0,0x157));var _0x0f6f=function(_0x561197,_0x2d7d64){_0x561197=_0x561197-0x0;var _0x191270=_0xf6f0[_0x561197];return _0x191270;};'use strict';var client=require('../client');var moment=require('moment');exports['createHistory']=function(_0x101d14){_0x101d14[_0x0f6f('0x0')]=_0x101d14[_0x0f6f('0x1')];return client[_0x0f6f('0x2')](_0x0f6f('0x3'),{'body':_0x101d14,'log':_0x0f6f('0x3')});};exports[_0x0f6f('0x4')]=function(_0x13055c){return client[_0x0f6f('0x2')](_0x0f6f('0x5'),{'options':{'where':{'endtime':{'$between':[moment()[_0x0f6f('0x6')](_0x13055c,_0x0f6f('0x7'))[_0x0f6f('0x8')](_0x0f6f('0x9')),moment()['format'](_0x0f6f('0x9'))]}},'raw':![]},'log':_0x0f6f('0xa')});};exports[_0x0f6f('0xb')]=function(){return function(){return client[_0x0f6f('0x2')](_0x0f6f('0xc'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0x0f6f('0xd'))['format'](_0x0f6f('0x9')),moment()['endOf'](_0x0f6f('0xd'))[_0x0f6f('0x8')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0x0f6f('0x1')},'raw':![]},'log':_0x0f6f('0xc')});};};exports[_0x0f6f('0xe')]=function(){return function(){return client['Request'](_0x0f6f('0xf'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x0f6f('0x10')](_0x0f6f('0xd'))['format'](_0x0f6f('0x9')),moment()[_0x0f6f('0x11')](_0x0f6f('0xd'))[_0x0f6f('0x8')](_0x0f6f('0x9'))]},'campaigntype':_0x0f6f('0x12')},'raw':![]},'log':_0x0f6f('0xf')});};};
\ No newline at end of file