Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 09f7e7e..1abc45e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x351d=['YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','startOf','day','endOf','GetVoiceQueueHopperHistory','getCampaignHopperHistory','GetCampaignHopperHistory','../client','createHistory','campaign','Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','subtract','format'];(function(_0x50a0c2,_0x4befab){var _0x5ebadd=function(_0x3a3342){while(--_0x3a3342){_0x50a0c2['push'](_0x50a0c2['shift']());}};_0x5ebadd(++_0x4befab);}(_0x351d,0x90));var _0xd351=function(_0x14ab4b,_0x17e45a){_0x14ab4b=_0x14ab4b-0x0;var _0x1fbfdc=_0x351d[_0x14ab4b];return _0x1fbfdc;};'use strict';var client=require(_0xd351('0x0'));var moment=require('moment');exports[_0xd351('0x1')]=function(_0x2aa5fd){return function(){_0x2aa5fd[_0xd351('0x2')]=_0x2aa5fd['queue'];return client[_0xd351('0x3')]('CreateCmHopperHistory',{'body':_0x2aa5fd,'log':_0xd351('0x4')});};};exports[_0xd351('0x5')]=function(_0x49610f){return function(){return client[_0xd351('0x3')](_0xd351('0x6'),{'options':{'where':{'endtime':{'$between':[moment()[_0xd351('0x7')](_0x49610f,'minutes')[_0xd351('0x8')](_0xd351('0x9')),moment()['format'](_0xd351('0x9'))]}},'raw':![]},'log':_0xd351('0xa')});};};exports['getVoiceQueueHopperHistory']=function(_0x586c60){return function(){return client[_0xd351('0x3')]('GetVoiceQueueHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()[_0xd351('0xb')](_0xd351('0xc'))['format'](_0xd351('0x9')),moment()[_0xd351('0xd')]('day')[_0xd351('0x8')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':'queue'},'raw':![]},'log':_0xd351('0xe')});};};exports[_0xd351('0xf')]=function(_0x23445f){return function(){return client[_0xd351('0x3')]('GetCampaignHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()[_0xd351('0xb')](_0xd351('0xc'))['format'](_0xd351('0x9')),moment()[_0xd351('0xd')](_0xd351('0xc'))[_0xd351('0x8')](_0xd351('0x9'))]},'campaigntype':'ivr'},'raw':![]},'log':_0xd351('0x10')});};};
\ No newline at end of file
+var _0xeb74=['moment','createHistory','campaign','queue','Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','minutes','YYYY-MM-DD\x20HH:mm:ss','format','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','day','getCampaignHopperHistory','endOf','ivr','GetCampaignHopperHistory','../client'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0xeb74,0xe3));var _0x4eb7=function(_0x1e3aaf,_0x4e51fa){_0x1e3aaf=_0x1e3aaf-0x0;var _0x597a4e=_0xeb74[_0x1e3aaf];return _0x597a4e;};'use strict';var client=require(_0x4eb7('0x0'));var moment=require(_0x4eb7('0x1'));exports[_0x4eb7('0x2')]=function(_0x9b674c){return function(){_0x9b674c[_0x4eb7('0x3')]=_0x9b674c[_0x4eb7('0x4')];return client[_0x4eb7('0x5')]('CreateCmHopperHistory',{'body':_0x9b674c,'log':_0x4eb7('0x6')});};};exports[_0x4eb7('0x7')]=function(_0x29b666){return function(){return client[_0x4eb7('0x5')](_0x4eb7('0x8'),{'options':{'where':{'endtime':{'$between':[moment()['subtract'](_0x29b666,_0x4eb7('0x9'))['format'](_0x4eb7('0xa')),moment()[_0x4eb7('0xb')]('YYYY-MM-DD\x20HH:mm:ss')]}},'raw':![]},'log':'GetCmHopperHistory'});};};exports[_0x4eb7('0xc')]=function(_0x2f8296){return function(){return client['Request'](_0x4eb7('0xd'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0x4eb7('0xe'))[_0x4eb7('0xb')](_0x4eb7('0xa')),moment()['endOf'](_0x4eb7('0xe'))[_0x4eb7('0xb')](_0x4eb7('0xa'))]},'campaigntype':_0x4eb7('0x4')},'raw':![]},'log':_0x4eb7('0xd')});};};exports[_0x4eb7('0xf')]=function(_0x3c9f45){return function(){return client['Request']('GetCampaignHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0x4eb7('0xe'))['format'](_0x4eb7('0xa')),moment()[_0x4eb7('0x10')](_0x4eb7('0xe'))[_0x4eb7('0xb')](_0x4eb7('0xa'))]},'campaigntype':_0x4eb7('0x11')},'raw':![]},'log':_0x4eb7('0x12')});};};
\ No newline at end of file