Built motion from commit ddca4d0d.|2.5.47
[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 _0xfb4d=['Request','startOf','day','YYYY-MM-DD\x20HH:mm:ss','endOf','GetVoiceQueueHopperHistory','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client','moment','createHistory','campaign','queue','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','subtract','minutes','format','GetCmHopperHistory','getVoiceQueueHopperHistory'];(function(_0x1c67dd,_0x3a00d9){var _0x10f676=function(_0x483ef9){while(--_0x483ef9){_0x1c67dd['push'](_0x1c67dd['shift']());}};_0x10f676(++_0x3a00d9);}(_0xfb4d,0x77));var _0xdfb4=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xfb4d[_0x20a584];return _0x4b41a8;};'use strict';var client=require(_0xdfb4('0x0'));var moment=require(_0xdfb4('0x1'));exports[_0xdfb4('0x2')]=function(_0x1d00b3){return function(){_0x1d00b3[_0xdfb4('0x3')]=_0x1d00b3[_0xdfb4('0x4')];return client['Request']('CreateCmHopperHistory',{'body':_0x1d00b3,'log':_0xdfb4('0x5')});};};exports[_0xdfb4('0x6')]=function(_0x1a37b9){return function(){return client['Request'](_0xdfb4('0x7'),{'options':{'where':{'endtime':{'$between':[moment()[_0xdfb4('0x8')](_0x1a37b9,_0xdfb4('0x9'))[_0xdfb4('0xa')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0xdfb4('0xa')]('YYYY-MM-DD\x20HH:mm:ss')]}},'raw':![]},'log':_0xdfb4('0xb')});};};exports[_0xdfb4('0xc')]=function(_0x25f6a1){return function(){return client[_0xdfb4('0xd')]('GetVoiceQueueHopperHistory',{'options':{'where':{'createdAt':{'$between':[moment()[_0xdfb4('0xe')](_0xdfb4('0xf'))['format'](_0xdfb4('0x10')),moment()[_0xdfb4('0x11')](_0xdfb4('0xf'))['format'](_0xdfb4('0x10'))]},'campaigntype':_0xdfb4('0x4')},'raw':![]},'log':_0xdfb4('0x12')});};};exports[_0xdfb4('0x13')]=function(_0x4ec513){return function(){return client['Request'](_0xdfb4('0x14'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xdfb4('0xe')](_0xdfb4('0xf'))[_0xdfb4('0xa')](_0xdfb4('0x10')),moment()[_0xdfb4('0x11')](_0xdfb4('0xf'))['format'](_0xdfb4('0x10'))]},'campaigntype':_0xdfb4('0x15')},'raw':![]},'log':_0xdfb4('0x14')});};};