Built motion from commit (unavailable).|2.5.23
[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 _0xd06b=['faxPause','smsPause','whatsappPause','openchannelPause','chatCapacity','faxCapacity','smsCapacity','whatsappCapacity','openchannelCapacity','getAgents','../client','agent','name','online','pauseType','lastPauseAt','voicePause','chatPause','mailPause'];(function(_0x24bb1c,_0x58debd){var _0x2db617=function(_0x5d34b4){while(--_0x5d34b4){_0x24bb1c['push'](_0x24bb1c['shift']());}};_0x2db617(++_0x58debd);}(_0xd06b,0x160));var _0xbd06=function(_0x509784,_0x24e5a1){_0x509784=_0x509784-0x0;var _0x272106=_0xd06b[_0x509784];return _0x272106;};'use strict';var client=require(_0xbd06('0x0'));exports['getAgents']=function(){return function(){return client['Request']('GetUser',{'options':{'raw':!![],'where':{'role':_0xbd06('0x1')},'attributes':['id',_0xbd06('0x2'),_0xbd06('0x3'),_0xbd06('0x4'),_0xbd06('0x5'),_0xbd06('0x6'),_0xbd06('0x7'),_0xbd06('0x8'),_0xbd06('0x9'),_0xbd06('0xa'),_0xbd06('0xb'),_0xbd06('0xc'),_0xbd06('0xd'),'mailCapacity',_0xbd06('0xe'),_0xbd06('0xf'),_0xbd06('0x10'),_0xbd06('0x11')]},'log':_0xbd06('0x12')});};};