Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / services / ami / rpc / cmHopperHistory.js
1 const a1105_0xeaaa=['GetCampaignHopperHistory','GetCmHopperHistory','getVoiceQueueHopperHistory','Request','day','moment','avgHandleTime','GetVoiceQueueHopperHistory','CreateCmHopperHistory','YYYY-MM-DD\x20HH:mm:ss','startOf','queue','getCampaignHopperHistory','campaign','endOf','subtract','format','AvgHandleTime','../client'];(function(_0x307555,_0xeaaa7b){const _0x1d6ba1=function(_0x1b295f){while(--_0x1b295f){_0x307555['push'](_0x307555['shift']());}};_0x1d6ba1(++_0xeaaa7b);}(a1105_0xeaaa,0xb7));const a1105_0x1d6b=function(_0x307555,_0xeaaa7b){_0x307555=_0x307555-0x0;let _0x1d6ba1=a1105_0xeaaa[_0x307555];return _0x1d6ba1;};const _0x4a5462=a1105_0x1d6b;'use strict';const client=require(_0x4a5462('0x6')),moment=require(_0x4a5462('0xc'));exports['createHistory']=function(_0x1b295f){return function(){const _0xcce660=a1105_0x1d6b;return _0x1b295f[_0xcce660('0x1')]=_0x1b295f[_0xcce660('0x12')],client[_0xcce660('0xa')]('CreateCmHopperHistory',{'body':_0x1b295f,'log':_0xcce660('0xf')});};},exports[_0x4a5462('0xd')]=function(_0x41c733){return function(){const _0x368c2c=a1105_0x1d6b;return client[_0x368c2c('0xa')](_0x368c2c('0x5'),{'options':{'where':{'endtime':{'$between':[moment()[_0x368c2c('0x3')](_0x41c733,'minutes')['format'](_0x368c2c('0x10')),moment()['format'](_0x368c2c('0x10'))]}},'raw':![]},'log':_0x368c2c('0x8')});};},exports[_0x4a5462('0x9')]=function(){return function(){const _0x3e75ac=a1105_0x1d6b;return client[_0x3e75ac('0xa')](_0x3e75ac('0xe'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x3e75ac('0x11')](_0x3e75ac('0xb'))[_0x3e75ac('0x4')](_0x3e75ac('0x10')),moment()[_0x3e75ac('0x2')](_0x3e75ac('0xb'))[_0x3e75ac('0x4')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':'queue'},'raw':![]},'log':_0x3e75ac('0xe')});};},exports[_0x4a5462('0x0')]=function(){return function(){const _0x65ce3a=a1105_0x1d6b;return client['Request'](_0x65ce3a('0x7'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x65ce3a('0x11')](_0x65ce3a('0xb'))[_0x65ce3a('0x4')]('YYYY-MM-DD\x20HH:mm:ss'),moment()['endOf'](_0x65ce3a('0xb'))[_0x65ce3a('0x4')](_0x65ce3a('0x10'))]},'campaigntype':'ivr'},'raw':![]},'log':_0x65ce3a('0x7')});};};