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 _0x946f=['lodash','../client','create','Request','CreateVoiceQueueReport','GetVoiceQueueReport','startOf','day','format','endOf','YYYY-MM-DD\x20HH:mm:ss','queue','queuecallerjoinAt','queuecallercomplete','queuecallercompleteAt','queuecallerexit','queuecallerexitAt','queuecallerabandon','moment'];(function(_0x1a9d07,_0x56420e){var _0x15839e=function(_0x48ff08){while(--_0x48ff08){_0x1a9d07['push'](_0x1a9d07['shift']());}};_0x15839e(++_0x56420e);}(_0x946f,0x71));var _0xf946=function(_0x128668,_0x34014d){_0x128668=_0x128668-0x0;var _0x205387=_0x946f[_0x128668];return _0x205387;};'use strict';var moment=require(_0xf946('0x0'));var _=require(_0xf946('0x1'));var client=require(_0xf946('0x2'));exports[_0xf946('0x3')]=function(_0xe46d10){return client[_0xf946('0x4')](_0xf946('0x5'),{'body':_0xe46d10,'log':'CreateVoiceQueueReport'});};exports['getVoiceQueueReports']=function(){return function(){return client[_0xf946('0x4')](_0xf946('0x6'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xf946('0x7')](_0xf946('0x8'))[_0xf946('0x9')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0xf946('0xa')](_0xf946('0x8'))['format'](_0xf946('0xb'))]}},'attributes':['uniqueid',_0xf946('0xc'),_0xf946('0xd'),'queuecallerleaveAt',_0xf946('0xe'),_0xf946('0xf'),_0xf946('0x10'),_0xf946('0x11'),_0xf946('0x12'),'queuecallerabandonAt']},'log':'GetVoiceQueueReports'});};};