Built motion from commit f0b1811d.|2.6.6
[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 _0x282f=['startOf','day','endOf','GetVoiceQueueHopperHistory','getCampaignHopperHistory','GetCampaignHopperHistory','../client','moment','createHistory','campaign','queue','Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','subtract','minutes','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory'];(function(_0x296e1f,_0x2e6854){var _0x47eb3d=function(_0x162375){while(--_0x162375){_0x296e1f['push'](_0x296e1f['shift']());}};_0x47eb3d(++_0x2e6854);}(_0x282f,0xf6));var _0xf282=function(_0x3b16f6,_0x24349a){_0x3b16f6=_0x3b16f6-0x0;var _0x41eb9a=_0x282f[_0x3b16f6];return _0x41eb9a;};'use strict';var client=require(_0xf282('0x0'));var moment=require(_0xf282('0x1'));exports[_0xf282('0x2')]=function(_0xd433ab){return function(){_0xd433ab[_0xf282('0x3')]=_0xd433ab[_0xf282('0x4')];return client[_0xf282('0x5')](_0xf282('0x6'),{'body':_0xd433ab,'log':'CreateCmHopperHistory'});};};exports[_0xf282('0x7')]=function(_0x5a4fbd){return function(){return client[_0xf282('0x5')](_0xf282('0x8'),{'options':{'where':{'endtime':{'$between':[moment()[_0xf282('0x9')](_0x5a4fbd,_0xf282('0xa'))[_0xf282('0xb')](_0xf282('0xc')),moment()[_0xf282('0xb')](_0xf282('0xc'))]}},'raw':![]},'log':_0xf282('0xd')});};};exports['getVoiceQueueHopperHistory']=function(_0x1c69d9){return function(){return client[_0xf282('0x5')]('GetVoiceQueueHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()[_0xf282('0xe')](_0xf282('0xf'))['format'](_0xf282('0xc')),moment()[_0xf282('0x10')]('day')[_0xf282('0xb')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0xf282('0x4')},'raw':![]},'log':_0xf282('0x11')});};};exports[_0xf282('0x12')]=function(_0x7bf98c){return function(){return client[_0xf282('0x5')](_0xf282('0x13'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0xf282('0xf'))['format'](_0xf282('0xc')),moment()['endOf'](_0xf282('0xf'))[_0xf282('0xb')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':'ivr'},'raw':![]},'log':_0xf282('0x13')});};};