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 _0xbb35=['Request','agent','name','online','lastPauseAt','chatPause','mailPause','faxPause','whatsappPause','openchannelPause','chatCapacity','faxCapacity','smsCapacity','whatsappCapacity','openchannelCapacity','getAgents','../client'];(function(_0x16051a,_0x5e4326){var _0x35d20d=function(_0x52b02e){while(--_0x52b02e){_0x16051a['push'](_0x16051a['shift']());}};_0x35d20d(++_0x5e4326);}(_0xbb35,0xed));var _0x5bb3=function(_0x1b5ab8,_0x5c58e7){_0x1b5ab8=_0x1b5ab8-0x0;var _0x1a6dea=_0xbb35[_0x1b5ab8];return _0x1a6dea;};'use strict';var client=require(_0x5bb3('0x0'));exports['getAgents']=function(){return function(){return client[_0x5bb3('0x1')]('GetUser',{'options':{'raw':!![],'where':{'role':_0x5bb3('0x2')},'attributes':['id',_0x5bb3('0x3'),_0x5bb3('0x4'),'pauseType',_0x5bb3('0x5'),'voicePause',_0x5bb3('0x6'),_0x5bb3('0x7'),_0x5bb3('0x8'),'smsPause',_0x5bb3('0x9'),_0x5bb3('0xa'),_0x5bb3('0xb'),'mailCapacity',_0x5bb3('0xc'),_0x5bb3('0xd'),_0x5bb3('0xe'),_0x5bb3('0xf')]},'log':_0x5bb3('0x10')});};};