1f86af2219c0c750cefa15c6da636213c3fe0424
[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 _0xcfb9=['online','pauseType','lastPauseAt','voicePause','chatPause','mailPause','faxPause','openchannelPause','chatCapacity','mailCapacity','faxCapacity','smsCapacity','openchannelCapacity','../client','getAgents','Request','GetUser','agent','name'];(function(_0x312fb6,_0x49b5aa){var _0x5536f1=function(_0x3e2848){while(--_0x3e2848){_0x312fb6['push'](_0x312fb6['shift']());}};_0x5536f1(++_0x49b5aa);}(_0xcfb9,0x163));var _0x9cfb=function(_0x3ce3c,_0x319337){_0x3ce3c=_0x3ce3c-0x0;var _0x55a2c9=_0xcfb9[_0x3ce3c];return _0x55a2c9;};'use strict';var client=require(_0x9cfb('0x0'));exports[_0x9cfb('0x1')]=function(){return function(){return client[_0x9cfb('0x2')](_0x9cfb('0x3'),{'options':{'raw':!![],'where':{'role':_0x9cfb('0x4')},'attributes':['id',_0x9cfb('0x5'),_0x9cfb('0x6'),_0x9cfb('0x7'),_0x9cfb('0x8'),_0x9cfb('0x9'),_0x9cfb('0xa'),_0x9cfb('0xb'),_0x9cfb('0xc'),'smsPause',_0x9cfb('0xd'),_0x9cfb('0xe'),_0x9cfb('0xf'),_0x9cfb('0x10'),_0x9cfb('0x11'),_0x9cfb('0x12')]},'log':'getAgents'});};};