655d45bf8c8625ba9bf80176682a6a8826f2bd45
[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 _0x86c5=['smsPause','openchannelPause','mailCapacity','faxCapacity','whatsappCapacity','openchannelCapacity','../client','getAgents','Request','GetUser','agent','online','lastPauseAt','voicePause','chatPause','mailPause','faxPause'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x86c5,0x127));var _0x586c=function(_0x247917,_0xe89f3a){_0x247917=_0x247917-0x0;var _0xc1e1ca=_0x86c5[_0x247917];return _0xc1e1ca;};'use strict';var client=require(_0x586c('0x0'));exports[_0x586c('0x1')]=function(){return function(){return client[_0x586c('0x2')](_0x586c('0x3'),{'options':{'raw':!![],'where':{'role':_0x586c('0x4')},'attributes':['id','name',_0x586c('0x5'),'pauseType',_0x586c('0x6'),_0x586c('0x7'),_0x586c('0x8'),_0x586c('0x9'),_0x586c('0xa'),_0x586c('0xb'),'whatsappPause',_0x586c('0xc'),'chatCapacity',_0x586c('0xd'),_0x586c('0xe'),'smsCapacity',_0x586c('0xf'),_0x586c('0x10')]},'log':'getAgents'});};};