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 _0x9b73=['ShowUser','name','lastPauseAt','../client','getAgents','GetUser','agent','email','accountcode','fullname','online','lastLoginAt','pauseType','voicePause','phone','mobile','interface','Request','internal','savePause','PauseUser','saveUnpause','UnpauseUser','getAgent'];(function(_0x5c0d6b,_0x3f8b79){var _0x5f1f35=function(_0x36ac53){while(--_0x36ac53){_0x5c0d6b['push'](_0x5c0d6b['shift']());}};_0x5f1f35(++_0x3f8b79);}(_0x9b73,0x123));var _0x39b7=function(_0xbca1b1,_0x33f0ce){_0xbca1b1=_0xbca1b1-0x0;var _0x4e1686=_0x9b73[_0xbca1b1];return _0x4e1686;};'use strict';var client=require(_0x39b7('0x0'));exports[_0x39b7('0x1')]=function(){return function(){return client['Request'](_0x39b7('0x2'),{'options':{'raw':![],'where':{'role':_0x39b7('0x3')},'attributes':['id','name',_0x39b7('0x4'),_0x39b7('0x5'),_0x39b7('0x6'),_0x39b7('0x7'),_0x39b7('0x8'),_0x39b7('0x9'),'lastPauseAt',_0x39b7('0xa'),_0x39b7('0xb'),_0x39b7('0xc'),_0x39b7('0xd')]},'log':'getAgents'});};};exports['getTelephones']=function(){return function(){return client[_0x39b7('0xe')](_0x39b7('0x2'),{'options':{'raw':!![],'where':{'role':'telephone'},'attributes':['id','name',_0x39b7('0x5'),_0x39b7('0xf')]},'log':'getTelephones'});};};exports[_0x39b7('0x10')]=function(_0x2b8398,_0x30aa4e,_0x499f4e){return client[_0x39b7('0xe')](_0x39b7('0x11'),{'body':{'type':_0x30aa4e,'uniqueid':_0x499f4e},'options':{'where':{'id':_0x2b8398['id']}},'log':_0x39b7('0x10')});};exports[_0x39b7('0x12')]=function(_0x397f18){return client[_0x39b7('0xe')](_0x39b7('0x13'),{'body':{},'options':{'where':{'id':_0x397f18['id']}},'log':'savePause'});};exports[_0x39b7('0x14')]=function(_0x36010b){return client[_0x39b7('0xe')](_0x39b7('0x15'),{'options':{'raw':![],'where':{'role':'agent','id':_0x36010b},'attributes':['id',_0x39b7('0x16'),_0x39b7('0x4'),_0x39b7('0x5'),_0x39b7('0x6'),_0x39b7('0x7'),'lastLoginAt',_0x39b7('0x9'),_0x39b7('0x17'),'voicePause',_0x39b7('0xd')]},'log':_0x39b7('0x14')});};