Built motion from commit 82a371561bcdbc7605c801e5e414f4032ba9e7ad. Version 3.0.0...
[motion-next.git] / server / services / ami / rpc / cmHopperHistory.js
index 9d1381c..c670e77 100644 (file)
@@ -1 +1 @@
-const a1105_0x392b=['GetVoiceQueueHopperHistory','GetCmHopperHistory','getVoiceQueueHopperHistory','moment','../client','GetCampaignHopperHistory','endOf','campaign','ivr','queue','YYYY-MM-DD\x20HH:mm:ss','startOf','minutes','AvgHandleTime','createHistory','format','Request','day','CreateCmHopperHistory','getCampaignHopperHistory'];(function(_0x410508,_0x392b47){const _0x120e1a=function(_0x3e130f){while(--_0x3e130f){_0x410508['push'](_0x410508['shift']());}};_0x120e1a(++_0x392b47);}(a1105_0x392b,0xce));const a1105_0x120e=function(_0x410508,_0x392b47){_0x410508=_0x410508-0x0;let _0x120e1a=a1105_0x392b[_0x410508];return _0x120e1a;};const _0x401ef0=a1105_0x120e;'use strict';const client=require(_0x401ef0('0x12')),moment=require(_0x401ef0('0x11'));exports[_0x401ef0('0x8')]=function(_0x3e130f){return function(){const _0x46191a=a1105_0x120e;return _0x3e130f[_0x46191a('0x1')]=_0x3e130f[_0x46191a('0x3')],client[_0x46191a('0xa')](_0x46191a('0xc'),{'body':_0x3e130f,'log':_0x46191a('0xc')});};},exports['avgHandleTime']=function(_0x411e5b){return function(){const _0x4ea007=a1105_0x120e;return client[_0x4ea007('0xa')](_0x4ea007('0x7'),{'options':{'where':{'endtime':{'$between':[moment()['subtract'](_0x411e5b,_0x4ea007('0x6'))[_0x4ea007('0x9')]('YYYY-MM-DD\x20HH:mm:ss'),moment()['format'](_0x4ea007('0x4'))]}},'raw':![]},'log':_0x4ea007('0xf')});};},exports[_0x401ef0('0x10')]=function(){return function(){const _0x23c3ff=a1105_0x120e;return client[_0x23c3ff('0xa')](_0x23c3ff('0xe'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x23c3ff('0x5')]('day')[_0x23c3ff('0x9')](_0x23c3ff('0x4')),moment()['endOf']('day')[_0x23c3ff('0x9')](_0x23c3ff('0x4'))]},'campaigntype':'queue'},'raw':![]},'log':'GetVoiceQueueHopperHistory'});};},exports[_0x401ef0('0xd')]=function(){return function(){const _0x4db850=a1105_0x120e;return client[_0x4db850('0xa')]('GetCampaignHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()[_0x4db850('0x5')](_0x4db850('0xb'))[_0x4db850('0x9')](_0x4db850('0x4')),moment()[_0x4db850('0x0')]('day')['format'](_0x4db850('0x4'))]},'campaigntype':_0x4db850('0x2')},'raw':![]},'log':_0x4db850('0x13')});};};
\ No newline at end of file
+const a1105_0xed85=['minutes','createHistory','GetCampaignHopperHistory','YYYY-MM-DD\x20HH:mm:ss','moment','avgHandleTime','Request','getCampaignHopperHistory','GetCmHopperHistory','day','startOf','endOf','ivr','campaign','format','subtract','GetVoiceQueueHopperHistory','getVoiceQueueHopperHistory','CreateCmHopperHistory'];(function(_0x2c4ead,_0xed85b0){const _0x462a27=function(_0xd3e38c){while(--_0xd3e38c){_0x2c4ead['push'](_0x2c4ead['shift']());}};_0x462a27(++_0xed85b0);}(a1105_0xed85,0xc6));const a1105_0x462a=function(_0x2c4ead,_0xed85b0){_0x2c4ead=_0x2c4ead-0x0;let _0x462a27=a1105_0xed85[_0x2c4ead];return _0x462a27;};const _0x3af20b=a1105_0x462a;'use strict';const client=require('../client'),moment=require(_0x3af20b('0xf'));exports[_0x3af20b('0xc')]=function(_0xd3e38c){return function(){const _0x2f7772=a1105_0x462a;return _0xd3e38c[_0x2f7772('0x5')]=_0xd3e38c['queue'],client['Request'](_0x2f7772('0xa'),{'body':_0xd3e38c,'log':'CreateCmHopperHistory'});};},exports[_0x3af20b('0x10')]=function(_0x1739c6){return function(){const _0x4afbe6=a1105_0x462a;return client['Request']('AvgHandleTime',{'options':{'where':{'endtime':{'$between':[moment()[_0x4afbe6('0x7')](_0x1739c6,_0x4afbe6('0xb'))[_0x4afbe6('0x6')]('YYYY-MM-DD\x20HH:mm:ss'),moment()['format'](_0x4afbe6('0xe'))]}},'raw':![]},'log':_0x4afbe6('0x0')});};},exports[_0x3af20b('0x9')]=function(){return function(){const _0x60c9c6=a1105_0x462a;return client['Request'](_0x60c9c6('0x8'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0x60c9c6('0x1'))[_0x60c9c6('0x6')](_0x60c9c6('0xe')),moment()[_0x60c9c6('0x3')](_0x60c9c6('0x1'))[_0x60c9c6('0x6')](_0x60c9c6('0xe'))]},'campaigntype':'queue'},'raw':![]},'log':_0x60c9c6('0x8')});};},exports[_0x3af20b('0x12')]=function(){return function(){const _0x8a8c10=a1105_0x462a;return client[_0x8a8c10('0x11')](_0x8a8c10('0xd'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x8a8c10('0x2')](_0x8a8c10('0x1'))[_0x8a8c10('0x6')](_0x8a8c10('0xe')),moment()[_0x8a8c10('0x3')](_0x8a8c10('0x1'))[_0x8a8c10('0x6')](_0x8a8c10('0xe'))]},'campaigntype':_0x8a8c10('0x4')},'raw':![]},'log':_0x8a8c10('0xd')});};};
\ No newline at end of file