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 _0x1633=['queuecallerexit','queuecallerexitAt','queuecallerabandon','queuecallerabandonAt','moment','lodash','create','CreateVoiceQueueReport','getVoiceQueueReports','Request','GetVoiceQueueReport','day','YYYY-MM-DD\x20HH:mm:ss','queue','queuecallerjoinAt','queuecallerleaveAt'];(function(_0x336e6e,_0x1435e6){var _0x4d3270=function(_0x3f314c){while(--_0x3f314c){_0x336e6e['push'](_0x336e6e['shift']());}};_0x4d3270(++_0x1435e6);}(_0x1633,0x154));var _0x3163=function(_0x5a7c14,_0xfe838a){_0x5a7c14=_0x5a7c14-0x0;var _0x28ed61=_0x1633[_0x5a7c14];return _0x28ed61;};'use strict';var moment=require(_0x3163('0x0'));var _=require(_0x3163('0x1'));var client=require('../client');exports[_0x3163('0x2')]=function(_0x3b3d12){return client['Request'](_0x3163('0x3'),{'body':_0x3b3d12,'log':'CreateVoiceQueueReport'});};exports[_0x3163('0x4')]=function(){return function(){return client[_0x3163('0x5')](_0x3163('0x6'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0x3163('0x7'))['format'](_0x3163('0x8')),moment()['endOf'](_0x3163('0x7'))['format'](_0x3163('0x8'))]}},'attributes':['uniqueid',_0x3163('0x9'),_0x3163('0xa'),_0x3163('0xb'),'queuecallercomplete','queuecallercompleteAt',_0x3163('0xc'),_0x3163('0xd'),_0x3163('0xe'),_0x3163('0xf')]},'log':'GetVoiceQueueReports'});};};