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 _0x38d1=['queuecallerabandonAt','GetVoiceQueueReports','moment','lodash','../client','create','Request','CreateVoiceQueueReport','getVoiceQueueReports','format','YYYY-MM-DD\x20HH:mm:ss','endOf','day','uniqueid','queuecallerjoinAt','queuecallercomplete','queuecallercompleteAt','queuecallerexit','queuecallerexitAt','queuecallerabandon'];(function(_0x25db49,_0x28f4f5){var _0x5163ba=function(_0x34b6ec){while(--_0x34b6ec){_0x25db49['push'](_0x25db49['shift']());}};_0x5163ba(++_0x28f4f5);}(_0x38d1,0xf2));var _0x138d=function(_0x5e5721,_0x1f4275){_0x5e5721=_0x5e5721-0x0;var _0x2dc843=_0x38d1[_0x5e5721];return _0x2dc843;};'use strict';var moment=require(_0x138d('0x0'));var _=require(_0x138d('0x1'));var client=require(_0x138d('0x2'));exports[_0x138d('0x3')]=function(_0x501cbd){return client[_0x138d('0x4')](_0x138d('0x5'),{'body':_0x501cbd,'log':'CreateVoiceQueueReport'});};exports[_0x138d('0x6')]=function(){return function(){return client['Request']('GetVoiceQueueReport',{'options':{'where':{'createdAt':{'$between':[moment()['startOf']('day')[_0x138d('0x7')](_0x138d('0x8')),moment()[_0x138d('0x9')](_0x138d('0xa'))[_0x138d('0x7')](_0x138d('0x8'))]}},'attributes':[_0x138d('0xb'),'queue',_0x138d('0xc'),'queuecallerleaveAt',_0x138d('0xd'),_0x138d('0xe'),_0x138d('0xf'),_0x138d('0x10'),_0x138d('0x11'),_0x138d('0x12')]},'log':_0x138d('0x13')});};};