4fe573db1cecf02a1d9c60c163f61a17ed035197
[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 _0x63a4=['mailPause','whatsappPause','openchannelPause','chatCapacity','mailCapacity','faxCapacity','smsCapacity','whatsappCapacity','openchannelCapacity','getAgents','Request','GetUser','agent','online'];(function(_0x3e961c,_0x5747e7){var _0x474f9c=function(_0x33f8ea){while(--_0x33f8ea){_0x3e961c['push'](_0x3e961c['shift']());}};_0x474f9c(++_0x5747e7);}(_0x63a4,0xdb));var _0x463a=function(_0x2dc735,_0x5b3890){_0x2dc735=_0x2dc735-0x0;var _0x1c3693=_0x63a4[_0x2dc735];return _0x1c3693;};'use strict';var client=require('../client');exports[_0x463a('0x0')]=function(){return function(){return client[_0x463a('0x1')](_0x463a('0x2'),{'options':{'raw':!![],'where':{'role':_0x463a('0x3')},'attributes':['id','name',_0x463a('0x4'),'pauseType','lastPauseAt','voicePause','chatPause',_0x463a('0x5'),'faxPause','smsPause',_0x463a('0x6'),_0x463a('0x7'),_0x463a('0x8'),_0x463a('0x9'),_0x463a('0xa'),_0x463a('0xb'),_0x463a('0xc'),_0x463a('0xd')]},'log':_0x463a('0x0')});};};