5f0600dac38350c272eb7929476807c22ba95aaf
[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 _0x1d07=['openchannelCapacity','../client','getAgents','name','online','pauseType','lastPauseAt','voicePause','chatPause','mailPause','whatsappPause','openchannelPause','chatCapacity','mailCapacity','whatsappCapacity'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x1d07,0x88));var _0x71d0=function(_0x3b0731,_0xcf9925){_0x3b0731=_0x3b0731-0x0;var _0x4204d7=_0x1d07[_0x3b0731];return _0x4204d7;};'use strict';var client=require(_0x71d0('0x0'));exports[_0x71d0('0x1')]=function(){return function(){return client['Request']('GetUser',{'options':{'raw':!![],'where':{'role':'agent'},'attributes':['id',_0x71d0('0x2'),_0x71d0('0x3'),_0x71d0('0x4'),_0x71d0('0x5'),_0x71d0('0x6'),_0x71d0('0x7'),_0x71d0('0x8'),'faxPause','smsPause',_0x71d0('0x9'),_0x71d0('0xa'),_0x71d0('0xb'),_0x71d0('0xc'),'faxCapacity','smsCapacity',_0x71d0('0xd'),_0x71d0('0xe')]},'log':_0x71d0('0x1')});};};