Built motion from commit 5ba5b610.|2.5.33
[motion2.git] / server / services / ami / rpc / cmHopperHistory.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x5756=['endOf','format','getCampaignHopperHistory','ivr','GetCampaignHopperHistory','../client','moment','createHistory','campaign','queue','Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','subtract','minutes','YYYY-MM-DD\x20HH:mm:ss','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','day'];(function(_0x44b3bd,_0x44c97d){var _0x1efc4a=function(_0x5d0205){while(--_0x5d0205){_0x44b3bd['push'](_0x44b3bd['shift']());}};_0x1efc4a(++_0x44c97d);}(_0x5756,0x83));var _0x6575=function(_0x31db58,_0x13edd5){_0x31db58=_0x31db58-0x0;var _0x36869f=_0x5756[_0x31db58];return _0x36869f;};'use strict';var client=require(_0x6575('0x0'));var moment=require(_0x6575('0x1'));exports[_0x6575('0x2')]=function(_0x5b8a56){return function(){_0x5b8a56[_0x6575('0x3')]=_0x5b8a56[_0x6575('0x4')];return client[_0x6575('0x5')](_0x6575('0x6'),{'body':_0x5b8a56,'log':_0x6575('0x6')});};};exports[_0x6575('0x7')]=function(_0x55c54d){return function(){return client[_0x6575('0x5')](_0x6575('0x8'),{'options':{'where':{'endtime':{'$between':[moment()[_0x6575('0x9')](_0x55c54d,_0x6575('0xa'))['format']('YYYY-MM-DD\x20HH:mm:ss'),moment()['format'](_0x6575('0xb'))]}},'raw':![]},'log':'GetCmHopperHistory'});};};exports[_0x6575('0xc')]=function(_0x44f170){return function(){return client[_0x6575('0x5')](_0x6575('0xd'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x6575('0xe')](_0x6575('0xf'))['format'](_0x6575('0xb')),moment()[_0x6575('0x10')]('day')[_0x6575('0x11')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0x6575('0x4')},'raw':![]},'log':'GetVoiceQueueHopperHistory'});};};exports[_0x6575('0x12')]=function(_0x31ae07){return function(){return client[_0x6575('0x5')]('GetCampaignHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0x6575('0xf'))[_0x6575('0x11')](_0x6575('0xb')),moment()[_0x6575('0x10')](_0x6575('0xf'))[_0x6575('0x11')](_0x6575('0xb'))]},'campaigntype':_0x6575('0x13')},'raw':![]},'log':_0x6575('0x14')});};};