Built motion from commit f74363e9.|2.6.34
[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 _0xdc78=['createHistory','campaign','queue','Request','CreateCmHopperHistory','avgHandleTime','AvgHandleTime','subtract','minutes','YYYY-MM-DD\x20HH:mm:ss','format','GetVoiceQueueHopperHistory','startOf','day','endOf','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client','moment'];(function(_0xd483d2,_0x17e458){var _0x4bfd35=function(_0x4bb314){while(--_0x4bb314){_0xd483d2['push'](_0xd483d2['shift']());}};_0x4bfd35(++_0x17e458);}(_0xdc78,0x1ca));var _0x8dc7=function(_0x1a4a06,_0x36a5c2){_0x1a4a06=_0x1a4a06-0x0;var _0x49ec08=_0xdc78[_0x1a4a06];return _0x49ec08;};'use strict';var client=require(_0x8dc7('0x0'));var moment=require(_0x8dc7('0x1'));exports[_0x8dc7('0x2')]=function(_0x184d65){_0x184d65[_0x8dc7('0x3')]=_0x184d65[_0x8dc7('0x4')];return client[_0x8dc7('0x5')](_0x8dc7('0x6'),{'body':_0x184d65,'log':_0x8dc7('0x6')});};exports[_0x8dc7('0x7')]=function(_0x231561){return client[_0x8dc7('0x5')](_0x8dc7('0x8'),{'options':{'where':{'endtime':{'$between':[moment()[_0x8dc7('0x9')](_0x231561,_0x8dc7('0xa'))['format'](_0x8dc7('0xb')),moment()[_0x8dc7('0xc')](_0x8dc7('0xb'))]}},'raw':![]},'log':'GetCmHopperHistory'});};exports['getVoiceQueueHopperHistory']=function(){return function(){return client[_0x8dc7('0x5')](_0x8dc7('0xd'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x8dc7('0xe')](_0x8dc7('0xf'))[_0x8dc7('0xc')](_0x8dc7('0xb')),moment()[_0x8dc7('0x10')](_0x8dc7('0xf'))[_0x8dc7('0xc')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0x8dc7('0x4')},'raw':![]},'log':_0x8dc7('0xd')});};};exports[_0x8dc7('0x11')]=function(){return function(){return client[_0x8dc7('0x5')](_0x8dc7('0x12'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x8dc7('0xe')]('day')[_0x8dc7('0xc')](_0x8dc7('0xb')),moment()[_0x8dc7('0x10')](_0x8dc7('0xf'))[_0x8dc7('0xc')]('YYYY-MM-DD\x20HH:mm:ss')]},'campaigntype':_0x8dc7('0x13')},'raw':![]},'log':'GetCampaignHopperHistory'});};};