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 _0x10f9=['YYYY-MM-DD\x20HH:mm:ss','endOf','queue','queuecallercomplete','queuecallercompleteAt','queuecallerexit','queuecallerexitAt','queuecallerabandon','GetVoiceQueueReports','moment','lodash','../client','Request','CreateVoiceQueueReport','GetVoiceQueueReport','startOf','day','format'];(function(_0x12fc79,_0x539526){var _0x38c79e=function(_0x2b31a8){while(--_0x2b31a8){_0x12fc79['push'](_0x12fc79['shift']());}};_0x38c79e(++_0x539526);}(_0x10f9,0x87));var _0x910f=function(_0x33dfbc,_0xbb4052){_0x33dfbc=_0x33dfbc-0x0;var _0x496b82=_0x10f9[_0x33dfbc];return _0x496b82;};'use strict';var moment=require(_0x910f('0x0'));var _=require(_0x910f('0x1'));var client=require(_0x910f('0x2'));exports['create']=function(_0x4f2bec){return client[_0x910f('0x3')](_0x910f('0x4'),{'body':_0x4f2bec,'log':_0x910f('0x4')});};exports['getVoiceQueueReports']=function(){return function(){return client[_0x910f('0x3')](_0x910f('0x5'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x910f('0x6')](_0x910f('0x7'))[_0x910f('0x8')](_0x910f('0x9')),moment()[_0x910f('0xa')](_0x910f('0x7'))[_0x910f('0x8')](_0x910f('0x9'))]}},'attributes':['uniqueid',_0x910f('0xb'),'queuecallerjoinAt','queuecallerleaveAt',_0x910f('0xc'),_0x910f('0xd'),_0x910f('0xe'),_0x910f('0xf'),_0x910f('0x10'),'queuecallerabandonAt']},'log':_0x910f('0x11')});};};