Built motion from commit (unavailable).|2.5.2
[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 _0x8b4f=['online','lastPauseAt','voicePause','faxPause','smsPause','whatsappPause','openchannelPause','mailCapacity','faxCapacity','openchannelCapacity','getAgents','Request','GetUser','name'];(function(_0x588fa4,_0x58fbd7){var _0x3f8bf3=function(_0x287fc9){while(--_0x287fc9){_0x588fa4['push'](_0x588fa4['shift']());}};_0x3f8bf3(++_0x58fbd7);}(_0x8b4f,0x177));var _0xf8b4=function(_0x2becba,_0x4ea656){_0x2becba=_0x2becba-0x0;var _0x90b5dd=_0x8b4f[_0x2becba];return _0x90b5dd;};'use strict';var client=require('../client');exports['getAgents']=function(){return function(){return client[_0xf8b4('0x0')](_0xf8b4('0x1'),{'options':{'raw':!![],'where':{'role':'agent'},'attributes':['id',_0xf8b4('0x2'),_0xf8b4('0x3'),'pauseType',_0xf8b4('0x4'),_0xf8b4('0x5'),'chatPause','mailPause',_0xf8b4('0x6'),_0xf8b4('0x7'),_0xf8b4('0x8'),_0xf8b4('0x9'),'chatCapacity',_0xf8b4('0xa'),_0xf8b4('0xb'),'smsCapacity','whatsappCapacity',_0xf8b4('0xc')]},'log':_0xf8b4('0xd')});};};