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