Built motion from commit (unavailable).|2.5.13
[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 _0xb114=['voicePause','mailPause','faxPause','smsPause','openchannelPause','chatCapacity','mailCapacity','faxCapacity','smsCapacity','openchannelCapacity','../client','getAgents','Request','GetUser','agent','name','online','pauseType','lastPauseAt'];(function(_0x569ff8,_0x5a0bcc){var _0x504b5d=function(_0x2939e3){while(--_0x2939e3){_0x569ff8['push'](_0x569ff8['shift']());}};_0x504b5d(++_0x5a0bcc);}(_0xb114,0x14d));var _0x4b11=function(_0x4f9b18,_0x2cb5ca){_0x4f9b18=_0x4f9b18-0x0;var _0x29f20c=_0xb114[_0x4f9b18];return _0x29f20c;};'use strict';var client=require(_0x4b11('0x0'));exports[_0x4b11('0x1')]=function(){return function(){return client[_0x4b11('0x2')](_0x4b11('0x3'),{'options':{'raw':!![],'where':{'role':_0x4b11('0x4')},'attributes':['id',_0x4b11('0x5'),_0x4b11('0x6'),_0x4b11('0x7'),_0x4b11('0x8'),_0x4b11('0x9'),'chatPause',_0x4b11('0xa'),_0x4b11('0xb'),_0x4b11('0xc'),'whatsappPause',_0x4b11('0xd'),_0x4b11('0xe'),_0x4b11('0xf'),_0x4b11('0x10'),_0x4b11('0x11'),'whatsappCapacity',_0x4b11('0x12')]},'log':_0x4b11('0x1')});};};