Built motion from commit 0c5f406c.|2.6.29
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
index 6724696..23ad720 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5e8f=['queue','CreateCmHopperHistory','Request','subtract','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','day','getCampaignHopperHistory','endOf','../client','moment','createHistory','campaign'];(function(_0x1e9713,_0x115f99){var _0x310d43=function(_0x392890){while(--_0x392890){_0x1e9713['push'](_0x1e9713['shift']());}};_0x310d43(++_0x115f99);}(_0x5e8f,0x12e));var _0xf5e8=function(_0x47bc58,_0x1e1998){_0x47bc58=_0x47bc58-0x0;var _0x4a0860=_0x5e8f[_0x47bc58];return _0x4a0860;};'use strict';var client=require(_0xf5e8('0x0'));var moment=require(_0xf5e8('0x1'));exports[_0xf5e8('0x2')]=function(_0x5a048f){_0x5a048f[_0xf5e8('0x3')]=_0x5a048f[_0xf5e8('0x4')];return client['Request']('CreateCmHopperHistory',{'body':_0x5a048f,'log':_0xf5e8('0x5')});};exports['avgHandleTime']=function(_0x559f25){return client[_0xf5e8('0x6')]('AvgHandleTime',{'options':{'where':{'endtime':{'$between':[moment()[_0xf5e8('0x7')](_0x559f25,_0xf5e8('0x8'))[_0xf5e8('0x9')](_0xf5e8('0xa')),moment()[_0xf5e8('0x9')](_0xf5e8('0xa'))]}},'raw':![]},'log':_0xf5e8('0xb')});};exports[_0xf5e8('0xc')]=function(){return function(){return client['Request'](_0xf5e8('0xd'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0xf5e8('0xe'))[_0xf5e8('0x9')]('YYYY-MM-DD\x20HH:mm:ss'),moment()['endOf'](_0xf5e8('0xe'))[_0xf5e8('0x9')](_0xf5e8('0xa'))]},'campaigntype':'queue'},'raw':![]},'log':_0xf5e8('0xd')});};};exports[_0xf5e8('0xf')]=function(){return function(){return client['Request']('GetCampaignHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()['startOf']('day')[_0xf5e8('0x9')](_0xf5e8('0xa')),moment()[_0xf5e8('0x10')](_0xf5e8('0xe'))['format']('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':'ivr'},'raw':![]},'log':'GetCampaignHopperHistory'});};};
\ No newline at end of file
+var _0x332d=['day','GetCampaignHopperHistory','../client','moment','queue','Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','subtract','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','endOf'];(function(_0x156037,_0x1f21f4){var _0xebed87=function(_0x2df07f){while(--_0x2df07f){_0x156037['push'](_0x156037['shift']());}};_0xebed87(++_0x1f21f4);}(_0x332d,0x1c4));var _0xd332=function(_0x3d64ad,_0x54cb8a){_0x3d64ad=_0x3d64ad-0x0;var _0x44d3ba=_0x332d[_0x3d64ad];return _0x44d3ba;};'use strict';var client=require(_0xd332('0x0'));var moment=require(_0xd332('0x1'));exports['createHistory']=function(_0x38a441){_0x38a441['campaign']=_0x38a441[_0xd332('0x2')];return client[_0xd332('0x3')](_0xd332('0x4'),{'body':_0x38a441,'log':_0xd332('0x4')});};exports[_0xd332('0x5')]=function(_0x3ddb8c){return client['Request'](_0xd332('0x6'),{'options':{'where':{'endtime':{'$between':[moment()[_0xd332('0x7')](_0x3ddb8c,_0xd332('0x8'))[_0xd332('0x9')](_0xd332('0xa')),moment()['format'](_0xd332('0xa'))]}},'raw':![]},'log':_0xd332('0xb')});};exports[_0xd332('0xc')]=function(){return function(){return client['Request'](_0xd332('0xd'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xd332('0xe')]('day')[_0xd332('0x9')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0xd332('0xf')](_0xd332('0x10'))[_0xd332('0x9')](_0xd332('0xa'))]},'campaigntype':_0xd332('0x2')},'raw':![]},'log':_0xd332('0xd')});};};exports['getCampaignHopperHistory']=function(){return function(){return client['Request']('GetCampaignHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()[_0xd332('0xe')](_0xd332('0x10'))[_0xd332('0x9')](_0xd332('0xa')),moment()[_0xd332('0xf')](_0xd332('0x10'))['format']('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':'ivr'},'raw':![]},'log':_0xd332('0x11')});};};
\ No newline at end of file