042b097d0b1732a234446c8273a85c39c4e32d70
[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 _0xd439=['whatsappCapacity','openchannelCapacity','../client','getAgents','Request','GetUser','agent','name','online','pauseType','lastPauseAt','voicePause','chatPause','faxPause','whatsappPause','openchannelPause','chatCapacity','mailCapacity','faxCapacity','smsCapacity'];(function(_0x13d07a,_0x41efc3){var _0x5ee0ee=function(_0x4ca94a){while(--_0x4ca94a){_0x13d07a['push'](_0x13d07a['shift']());}};_0x5ee0ee(++_0x41efc3);}(_0xd439,0x1e2));var _0x9d43=function(_0x120466,_0x2576aa){_0x120466=_0x120466-0x0;var _0x1a3111=_0xd439[_0x120466];return _0x1a3111;};'use strict';var client=require(_0x9d43('0x0'));exports[_0x9d43('0x1')]=function(){return function(){return client[_0x9d43('0x2')](_0x9d43('0x3'),{'options':{'raw':!![],'where':{'role':_0x9d43('0x4')},'attributes':['id',_0x9d43('0x5'),_0x9d43('0x6'),_0x9d43('0x7'),_0x9d43('0x8'),_0x9d43('0x9'),_0x9d43('0xa'),'mailPause',_0x9d43('0xb'),'smsPause',_0x9d43('0xc'),_0x9d43('0xd'),_0x9d43('0xe'),_0x9d43('0xf'),_0x9d43('0x10'),_0x9d43('0x11'),_0x9d43('0x12'),_0x9d43('0x13')]},'log':_0x9d43('0x1')});};};