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 _0x01bd=['queuecallercomplete','queuecallerexit','queuecallerabandon','queuecallerabandonAt','GetVoiceQueueReports','../client','create','CreateVoiceQueueReport','Request','startOf','format','YYYY-MM-DD\x20HH:mm:ss','endOf','day','uniqueid','queuecallerjoinAt','queuecallerleaveAt'];(function(_0x271934,_0x4f2991){var _0x57a179=function(_0x50c0e8){while(--_0x50c0e8){_0x271934['push'](_0x271934['shift']());}};_0x57a179(++_0x4f2991);}(_0x01bd,0x1e1));var _0xd01b=function(_0x559434,_0x2f9870){_0x559434=_0x559434-0x0;var _0x252834=_0x01bd[_0x559434];return _0x252834;};'use strict';var moment=require('moment');var _=require('lodash');var client=require(_0xd01b('0x0'));exports[_0xd01b('0x1')]=function(_0x24989a){return client['Request'](_0xd01b('0x2'),{'body':_0x24989a,'log':_0xd01b('0x2')});};exports['getVoiceQueueReports']=function(){return function(){return client[_0xd01b('0x3')]('GetVoiceQueueReport',{'options':{'where':{'createdAt':{'$between':[moment()[_0xd01b('0x4')]('day')[_0xd01b('0x5')](_0xd01b('0x6')),moment()[_0xd01b('0x7')](_0xd01b('0x8'))[_0xd01b('0x5')](_0xd01b('0x6'))]}},'attributes':[_0xd01b('0x9'),'queue',_0xd01b('0xa'),_0xd01b('0xb'),_0xd01b('0xc'),'queuecallercompleteAt',_0xd01b('0xd'),'queuecallerexitAt',_0xd01b('0xe'),_0xd01b('0xf')]},'log':_0xd01b('0x10')});};};