Built motion from commit (unavailable).|2.3.1
[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 _0x3f2e=['day','endOf','getCampaignHopperHistory','GetCampaignHopperHistory','ivr','../client','createHistory','campaign','queue','Request','CreateCmHopperHistory','AvgHandleTime','subtract','format','YYYY-MM-DD\x20HH:mm:ss','GetCmHopperHistory','getVoiceQueueHopperHistory','GetVoiceQueueHopperHistory','startOf'];(function(_0x19ddfd,_0x2bd2d9){var _0x523a04=function(_0x11dee9){while(--_0x11dee9){_0x19ddfd['push'](_0x19ddfd['shift']());}};_0x523a04(++_0x2bd2d9);}(_0x3f2e,0x9d));var _0xe3f2=function(_0x4a88ef,_0x47b00b){_0x4a88ef=_0x4a88ef-0x0;var _0x223767=_0x3f2e[_0x4a88ef];return _0x223767;};'use strict';var client=require(_0xe3f2('0x0'));var moment=require('moment');exports[_0xe3f2('0x1')]=function(_0x409f2d){return function(){_0x409f2d[_0xe3f2('0x2')]=_0x409f2d[_0xe3f2('0x3')];return client[_0xe3f2('0x4')](_0xe3f2('0x5'),{'body':_0x409f2d,'log':_0xe3f2('0x5')});};};exports['avgHandleTime']=function(_0x1decd6){return function(){return client['Request'](_0xe3f2('0x6'),{'options':{'where':{'endtime':{'$between':[moment()[_0xe3f2('0x7')](_0x1decd6,'minutes')['format']('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0xe3f2('0x8')](_0xe3f2('0x9'))]}},'raw':![]},'log':_0xe3f2('0xa')});};};exports[_0xe3f2('0xb')]=function(_0x577609){return function(){return client['Request'](_0xe3f2('0xc'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xe3f2('0xd')](_0xe3f2('0xe'))[_0xe3f2('0x8')](_0xe3f2('0x9')),moment()[_0xe3f2('0xf')](_0xe3f2('0xe'))[_0xe3f2('0x8')](_0xe3f2('0x9'))]},'campaigntype':_0xe3f2('0x3')},'raw':![]},'log':_0xe3f2('0xc')});};};exports[_0xe3f2('0x10')]=function(_0x17e274){return function(){return client['Request'](_0xe3f2('0x11'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xe3f2('0xd')](_0xe3f2('0xe'))['format']('YYYY-MM-DD\x20HH:mm:ss'),moment()['endOf'](_0xe3f2('0xe'))['format'](_0xe3f2('0x9'))]},'campaigntype':_0xe3f2('0x12')},'raw':![]},'log':_0xe3f2('0x11')});};};