Built motion from commit (unavailable).|2.5.21
[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 _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')});};};