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 _0xc0b6=['mailCapacity','faxCapacity','whatsappCapacity','getAgents','../client','Request','GetUser','agent','online','pauseType','lastPauseAt','voicePause','chatPause','mailPause','faxPause','smsPause','openchannelPause','chatCapacity'];(function(_0x106484,_0x340021){var _0x510931=function(_0x5aa4b3){while(--_0x5aa4b3){_0x106484['push'](_0x106484['shift']());}};_0x510931(++_0x340021);}(_0xc0b6,0xca));var _0x6c0b=function(_0x432682,_0x253044){_0x432682=_0x432682-0x0;var _0x463d05=_0xc0b6[_0x432682];return _0x463d05;};'use strict';var client=require(_0x6c0b('0x0'));exports['getAgents']=function(){return function(){return client[_0x6c0b('0x1')](_0x6c0b('0x2'),{'options':{'raw':!![],'where':{'role':_0x6c0b('0x3')},'attributes':['id','name',_0x6c0b('0x4'),_0x6c0b('0x5'),_0x6c0b('0x6'),_0x6c0b('0x7'),_0x6c0b('0x8'),_0x6c0b('0x9'),_0x6c0b('0xa'),_0x6c0b('0xb'),'whatsappPause',_0x6c0b('0xc'),_0x6c0b('0xd'),_0x6c0b('0xe'),_0x6c0b('0xf'),'smsCapacity',_0x6c0b('0x10'),'openchannelCapacity']},'log':_0x6c0b('0x11')});};};