Built motion from commit (unavailable).|2.5.26
[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 _0xbb38=['smsPause','openchannelPause','chatCapacity','mailCapacity','faxCapacity','smsCapacity','openchannelCapacity','../client','getAgents','Request','agent','name','online','pauseType','lastPauseAt','voicePause','chatPause','faxPause'];(function(_0x5f50a6,_0x1f02f4){var _0x4ed80f=function(_0x15a4ba){while(--_0x15a4ba){_0x5f50a6['push'](_0x5f50a6['shift']());}};_0x4ed80f(++_0x1f02f4);}(_0xbb38,0x1c9));var _0x8bb3=function(_0x254abd,_0x1ab7f0){_0x254abd=_0x254abd-0x0;var _0x31bf1b=_0xbb38[_0x254abd];return _0x31bf1b;};'use strict';var client=require(_0x8bb3('0x0'));exports[_0x8bb3('0x1')]=function(){return function(){return client[_0x8bb3('0x2')]('GetUser',{'options':{'raw':!![],'where':{'role':_0x8bb3('0x3')},'attributes':['id',_0x8bb3('0x4'),_0x8bb3('0x5'),_0x8bb3('0x6'),_0x8bb3('0x7'),_0x8bb3('0x8'),_0x8bb3('0x9'),'mailPause',_0x8bb3('0xa'),_0x8bb3('0xb'),'whatsappPause',_0x8bb3('0xc'),_0x8bb3('0xd'),_0x8bb3('0xe'),_0x8bb3('0xf'),_0x8bb3('0x10'),'whatsappCapacity',_0x8bb3('0x11')]},'log':'getAgents'});};};