2e71b2c26bcbfba8db6bb6b91167dda09641b477
[motion2.git] / server / services / routing / rpc / user.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x6a2d=['mailCapacity','faxCapacity','smsCapacity','whatsappCapacity','../client','getAgents','Request','agent','name','lastPauseAt','chatPause','smsPause','whatsappPause','openchannelPause'];(function(_0x39c734,_0x2f3e06){var _0xb2a2f9=function(_0x502f3f){while(--_0x502f3f){_0x39c734['push'](_0x39c734['shift']());}};_0xb2a2f9(++_0x2f3e06);}(_0x6a2d,0x154));var _0xd6a2=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x6a2d[_0x2dafbe];return _0x58a45a;};'use strict';var client=require(_0xd6a2('0x0'));exports[_0xd6a2('0x1')]=function(){return function(){return client[_0xd6a2('0x2')]('GetUser',{'options':{'raw':!![],'where':{'role':_0xd6a2('0x3')},'attributes':['id',_0xd6a2('0x4'),'online','pauseType',_0xd6a2('0x5'),'voicePause',_0xd6a2('0x6'),'mailPause','faxPause',_0xd6a2('0x7'),_0xd6a2('0x8'),_0xd6a2('0x9'),'chatCapacity',_0xd6a2('0xa'),_0xd6a2('0xb'),_0xd6a2('0xc'),_0xd6a2('0xd'),'openchannelCapacity']},'log':'getAgents'});};};