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 _0x1133=['whatsappPause','chatCapacity','faxCapacity','smsCapacity','openchannelCapacity','getAgents','../client','Request','GetUser','name','chatPause','faxPause','smsPause'];(function(_0x3d5fe6,_0x1ce578){var _0x344a2c=function(_0x17af5b){while(--_0x17af5b){_0x3d5fe6['push'](_0x3d5fe6['shift']());}};_0x344a2c(++_0x1ce578);}(_0x1133,0x14b));var _0x3113=function(_0xcccce9,_0xd9da68){_0xcccce9=_0xcccce9-0x0;var _0x221838=_0x1133[_0xcccce9];return _0x221838;};'use strict';var client=require(_0x3113('0x0'));exports['getAgents']=function(){return function(){return client[_0x3113('0x1')](_0x3113('0x2'),{'options':{'raw':!![],'where':{'role':'agent'},'attributes':['id',_0x3113('0x3'),'online','pauseType','lastPauseAt','voicePause',_0x3113('0x4'),'mailPause',_0x3113('0x5'),_0x3113('0x6'),_0x3113('0x7'),'openchannelPause',_0x3113('0x8'),'mailCapacity',_0x3113('0x9'),_0x3113('0xa'),'whatsappCapacity',_0x3113('0xb')]},'log':_0x3113('0xc')});};};