Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / 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 _0x1fcb=['agent','name','email','accountcode','fullname','online','lastLoginAt','pauseType','lastPauseAt','voicePause','phone','mobile','interface','getAgents','getTelephones','GetUser','telephone','internal','savePause','PauseUser','saveUnpause','UnpauseUser','getAgent','ShowUser','../client','Request'];(function(_0x126d3b,_0xb13081){var _0x5b819e=function(_0x2e7305){while(--_0x2e7305){_0x126d3b['push'](_0x126d3b['shift']());}};_0x5b819e(++_0xb13081);}(_0x1fcb,0x1ec));var _0xb1fc=function(_0x524b15,_0x51c457){_0x524b15=_0x524b15-0x0;var _0x28bdef=_0x1fcb[_0x524b15];return _0x28bdef;};'use strict';var client=require(_0xb1fc('0x0'));exports['getAgents']=function(){return function(){return client[_0xb1fc('0x1')]('GetUser',{'options':{'raw':![],'where':{'role':_0xb1fc('0x2')},'attributes':['id',_0xb1fc('0x3'),_0xb1fc('0x4'),_0xb1fc('0x5'),_0xb1fc('0x6'),_0xb1fc('0x7'),_0xb1fc('0x8'),_0xb1fc('0x9'),_0xb1fc('0xa'),_0xb1fc('0xb'),_0xb1fc('0xc'),_0xb1fc('0xd'),_0xb1fc('0xe')]},'log':_0xb1fc('0xf')});};};exports[_0xb1fc('0x10')]=function(){return function(){return client[_0xb1fc('0x1')](_0xb1fc('0x11'),{'options':{'raw':!![],'where':{'role':_0xb1fc('0x12')},'attributes':['id',_0xb1fc('0x3'),_0xb1fc('0x5'),_0xb1fc('0x13')]},'log':'getTelephones'});};};exports[_0xb1fc('0x14')]=function(_0x2e7cec,_0x2b238a,_0x47b05a){return client['Request'](_0xb1fc('0x15'),{'body':{'type':_0x2b238a,'uniqueid':_0x47b05a},'options':{'where':{'id':_0x2e7cec['id']}},'log':'savePause'});};exports[_0xb1fc('0x16')]=function(_0x9d3b9d){return client[_0xb1fc('0x1')](_0xb1fc('0x17'),{'body':{},'options':{'where':{'id':_0x9d3b9d['id']}},'log':'savePause'});};exports[_0xb1fc('0x18')]=function(_0x3b5fdf){return client[_0xb1fc('0x1')](_0xb1fc('0x19'),{'options':{'raw':![],'where':{'role':_0xb1fc('0x2'),'id':_0x3b5fdf},'attributes':['id',_0xb1fc('0x3'),_0xb1fc('0x4'),_0xb1fc('0x5'),_0xb1fc('0x6'),'online',_0xb1fc('0x8'),_0xb1fc('0x9'),_0xb1fc('0xa'),_0xb1fc('0xb'),_0xb1fc('0xe')]},'log':_0xb1fc('0x18')});};