1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xeaf3=['queuecallerabandonAt','../client','create','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','startOf','day','format','YYYY-MM-DD\x20HH:mm:ss','uniqueid','queue','queuecallerjoinAt','queuecallerleaveAt','queuecallercomplete','queuecallercompleteAt','queuecallerexit','queuecallerexitAt','queuecallerabandon'];(function(_0x2a9c57,_0x4f4114){var _0x4d4183=function(_0x115c49){while(--_0x115c49){_0x2a9c57['push'](_0x2a9c57['shift']());}};_0x4d4183(++_0x4f4114);}(_0xeaf3,0x1cd));var _0x3eaf=function(_0x38c57b,_0x21c2a3){_0x38c57b=_0x38c57b-0x0;var _0x9750e9=_0xeaf3[_0x38c57b];return _0x9750e9;};'use strict';var moment=require('moment');var _=require('lodash');var client=require(_0x3eaf('0x0'));exports[_0x3eaf('0x1')]=function(_0x3679b1){return client[_0x3eaf('0x2')](_0x3eaf('0x3'),{'body':_0x3679b1,'log':'CreateVoiceQueueReport'});};exports[_0x3eaf('0x4')]=function(){return function(){return client[_0x3eaf('0x2')](_0x3eaf('0x5'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x3eaf('0x6')](_0x3eaf('0x7'))['format']('YYYY-MM-DD\x20HH:mm:ss'),moment()['endOf']('day')[_0x3eaf('0x8')](_0x3eaf('0x9'))]}},'attributes':[_0x3eaf('0xa'),_0x3eaf('0xb'),_0x3eaf('0xc'),_0x3eaf('0xd'),_0x3eaf('0xe'),_0x3eaf('0xf'),_0x3eaf('0x10'),_0x3eaf('0x11'),_0x3eaf('0x12'),_0x3eaf('0x13')]},'log':'GetVoiceQueueReports'});};};