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 _0x428e=['queuecallerjoinAt','queuecallerleaveAt','queuecallercomplete','queuecallerexitAt','queuecallerabandon','queuecallerabandonAt','GetVoiceQueueReports','moment','lodash','../client','create','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','startOf','format','YYYY-MM-DD\x20HH:mm:ss','endOf','day','uniqueid','queue'];(function(_0x46e363,_0x45d7e2){var _0x3fb059=function(_0x5e6274){while(--_0x5e6274){_0x46e363['push'](_0x46e363['shift']());}};_0x3fb059(++_0x45d7e2);}(_0x428e,0x1eb));var _0xe428=function(_0x1fd675,_0x165dfe){_0x1fd675=_0x1fd675-0x0;var _0x16b554=_0x428e[_0x1fd675];return _0x16b554;};'use strict';var moment=require(_0xe428('0x0'));var _=require(_0xe428('0x1'));var client=require(_0xe428('0x2'));exports[_0xe428('0x3')]=function(_0x414178){return client[_0xe428('0x4')](_0xe428('0x5'),{'body':_0x414178,'log':_0xe428('0x5')});};exports[_0xe428('0x6')]=function(){return function(){return client[_0xe428('0x4')](_0xe428('0x7'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xe428('0x8')]('day')[_0xe428('0x9')](_0xe428('0xa')),moment()[_0xe428('0xb')](_0xe428('0xc'))['format'](_0xe428('0xa'))]}},'attributes':[_0xe428('0xd'),_0xe428('0xe'),_0xe428('0xf'),_0xe428('0x10'),_0xe428('0x11'),'queuecallercompleteAt','queuecallerexit',_0xe428('0x12'),_0xe428('0x13'),_0xe428('0x14')]},'log':_0xe428('0x15')});};};