Built motion from commit (unavailable).|2.5.0
[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 _0xc1e5=['chatCapacity','mailCapacity','smsCapacity','openchannelCapacity','../client','getAgents','Request','GetUser','agent','name','pauseType','lastPauseAt','voicePause','chatPause','mailPause','faxPause','smsPause','whatsappPause'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xc1e5,0x15a));var _0x5c1e=function(_0x4d8bdd,_0x471072){_0x4d8bdd=_0x4d8bdd-0x0;var _0x48677f=_0xc1e5[_0x4d8bdd];return _0x48677f;};'use strict';var client=require(_0x5c1e('0x0'));exports[_0x5c1e('0x1')]=function(){return function(){return client[_0x5c1e('0x2')](_0x5c1e('0x3'),{'options':{'raw':!![],'where':{'role':_0x5c1e('0x4')},'attributes':['id',_0x5c1e('0x5'),'online',_0x5c1e('0x6'),_0x5c1e('0x7'),_0x5c1e('0x8'),_0x5c1e('0x9'),_0x5c1e('0xa'),_0x5c1e('0xb'),_0x5c1e('0xc'),_0x5c1e('0xd'),'openchannelPause',_0x5c1e('0xe'),_0x5c1e('0xf'),'faxCapacity',_0x5c1e('0x10'),'whatsappCapacity',_0x5c1e('0x11')]},'log':_0x5c1e('0x1')});};};