Built motion from commit 775e2a94.|2.6.3
[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 _0x72fb=['avgHandleTime','AvgHandleTime','subtract','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf','endOf','day','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client','moment','createHistory','campaign','queue','Request','CreateCmHopperHistory'];(function(_0x3b5250,_0x7a0b2c){var _0xc844a1=function(_0x2fbc98){while(--_0x2fbc98){_0x3b5250['push'](_0x3b5250['shift']());}};_0xc844a1(++_0x7a0b2c);}(_0x72fb,0x15e));var _0xb72f=function(_0x597e38,_0x551ac2){_0x597e38=_0x597e38-0x0;var _0x5305d2=_0x72fb[_0x597e38];return _0x5305d2;};'use strict';var client=require(_0xb72f('0x0'));var moment=require(_0xb72f('0x1'));exports[_0xb72f('0x2')]=function(_0x51c775){return function(){_0x51c775[_0xb72f('0x3')]=_0x51c775[_0xb72f('0x4')];return client[_0xb72f('0x5')](_0xb72f('0x6'),{'body':_0x51c775,'log':_0xb72f('0x6')});};};exports[_0xb72f('0x7')]=function(_0x559c5a){return function(){return client[_0xb72f('0x5')](_0xb72f('0x8'),{'options':{'where':{'endtime':{'$between':[moment()[_0xb72f('0x9')](_0x559c5a,'minutes')[_0xb72f('0xa')](_0xb72f('0xb')),moment()[_0xb72f('0xa')](_0xb72f('0xb'))]}},'raw':![]},'log':_0xb72f('0xc')});};};exports[_0xb72f('0xd')]=function(_0x274618){return function(){return client[_0xb72f('0x5')](_0xb72f('0xe'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xb72f('0xf')]('day')[_0xb72f('0xa')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0xb72f('0x10')](_0xb72f('0x11'))['format'](_0xb72f('0xb'))]},'campaigntype':_0xb72f('0x4')},'raw':![]},'log':'GetVoiceQueueHopperHistory'});};};exports[_0xb72f('0x12')]=function(_0x16f164){return function(){return client[_0xb72f('0x5')](_0xb72f('0x13'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xb72f('0xf')](_0xb72f('0x11'))[_0xb72f('0xa')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0xb72f('0x10')](_0xb72f('0x11'))[_0xb72f('0xa')](_0xb72f('0xb'))]},'campaigntype':_0xb72f('0x14')},'raw':![]},'log':_0xb72f('0x13')});};};