8f038b7294cde46366ed48c23a3e0857b038f44c
[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 _0x7088=['smsPause','openchannelPause','chatCapacity','mailCapacity','faxCapacity','smsCapacity','whatsappCapacity','../client','getAgents','Request','agent','name','online','pauseType','voicePause','chatPause','mailPause','faxPause'];(function(_0x1b66e8,_0x378cb7){var _0x48deed=function(_0x486cfe){while(--_0x486cfe){_0x1b66e8['push'](_0x1b66e8['shift']());}};_0x48deed(++_0x378cb7);}(_0x7088,0x127));var _0x8708=function(_0x56482c,_0x16118d){_0x56482c=_0x56482c-0x0;var _0x5aae7a=_0x7088[_0x56482c];return _0x5aae7a;};'use strict';var client=require(_0x8708('0x0'));exports[_0x8708('0x1')]=function(){return function(){return client[_0x8708('0x2')]('GetUser',{'options':{'raw':!![],'where':{'role':_0x8708('0x3')},'attributes':['id',_0x8708('0x4'),_0x8708('0x5'),_0x8708('0x6'),'lastPauseAt',_0x8708('0x7'),_0x8708('0x8'),_0x8708('0x9'),_0x8708('0xa'),_0x8708('0xb'),'whatsappPause',_0x8708('0xc'),_0x8708('0xd'),_0x8708('0xe'),_0x8708('0xf'),_0x8708('0x10'),_0x8708('0x11'),'openchannelCapacity']},'log':'getAgents'});};};