Built motion from commit (unavailable).|2.5.1
[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 _0xe372=['agent','online','pauseType','voicePause','chatPause','faxPause','smsPause','whatsappPause','chatCapacity','smsCapacity','whatsappCapacity','openchannelCapacity','../client','getAgents','Request','GetUser'];(function(_0x3849f3,_0x5c26fd){var _0x57e2e4=function(_0x1702ce){while(--_0x1702ce){_0x3849f3['push'](_0x3849f3['shift']());}};_0x57e2e4(++_0x5c26fd);}(_0xe372,0x6c));var _0x2e37=function(_0x34501b,_0x264e47){_0x34501b=_0x34501b-0x0;var _0xdcbacd=_0xe372[_0x34501b];return _0xdcbacd;};'use strict';var client=require(_0x2e37('0x0'));exports[_0x2e37('0x1')]=function(){return function(){return client[_0x2e37('0x2')](_0x2e37('0x3'),{'options':{'raw':!![],'where':{'role':_0x2e37('0x4')},'attributes':['id','name',_0x2e37('0x5'),_0x2e37('0x6'),'lastPauseAt',_0x2e37('0x7'),_0x2e37('0x8'),'mailPause',_0x2e37('0x9'),_0x2e37('0xa'),_0x2e37('0xb'),'openchannelPause',_0x2e37('0xc'),'mailCapacity','faxCapacity',_0x2e37('0xd'),_0x2e37('0xe'),_0x2e37('0xf')]},'log':'getAgents'});};};