1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x5a27=['accountcode','lastLoginAt','pauseType','lastPauseAt','voicePause','phone','interface','getTelephones','telephone','internal','savePause','PauseUser','UnpauseUser','getAgent','ShowUser','fullname','online','../client','getAgents','Request','GetUser','agent','name','email'];(function(_0x13114a,_0x3a35e8){var _0x18ac54=function(_0x258682){while(--_0x258682){_0x13114a['push'](_0x13114a['shift']());}};_0x18ac54(++_0x3a35e8);}(_0x5a27,0x149));var _0x75a2=function(_0x2bc31c,_0x311c59){_0x2bc31c=_0x2bc31c-0x0;var _0x20aa04=_0x5a27[_0x2bc31c];return _0x20aa04;};'use strict';var client=require(_0x75a2('0x0'));exports[_0x75a2('0x1')]=function(){return function(){return client[_0x75a2('0x2')](_0x75a2('0x3'),{'options':{'raw':![],'where':{'role':_0x75a2('0x4')},'attributes':['id',_0x75a2('0x5'),_0x75a2('0x6'),_0x75a2('0x7'),'fullname','online',_0x75a2('0x8'),_0x75a2('0x9'),_0x75a2('0xa'),_0x75a2('0xb'),_0x75a2('0xc'),'mobile',_0x75a2('0xd')]},'log':'getAgents'});};};exports[_0x75a2('0xe')]=function(){return function(){return client[_0x75a2('0x2')](_0x75a2('0x3'),{'options':{'raw':!![],'where':{'role':_0x75a2('0xf')},'attributes':['id',_0x75a2('0x5'),_0x75a2('0x7'),_0x75a2('0x10')]},'log':'getTelephones'});};};exports[_0x75a2('0x11')]=function(_0x58d2a2,_0x252b5f,_0x5e2382){return client[_0x75a2('0x2')](_0x75a2('0x12'),{'body':{'type':_0x252b5f,'uniqueid':_0x5e2382},'options':{'where':{'id':_0x58d2a2['id']}},'log':_0x75a2('0x11')});};exports['saveUnpause']=function(_0xcc7dcf){return client[_0x75a2('0x2')](_0x75a2('0x13'),{'body':{},'options':{'where':{'id':_0xcc7dcf['id']}},'log':'savePause'});};exports[_0x75a2('0x14')]=function(_0x504984){return client['Request'](_0x75a2('0x15'),{'options':{'raw':![],'where':{'role':_0x75a2('0x4'),'id':_0x504984},'attributes':['id',_0x75a2('0x5'),_0x75a2('0x6'),_0x75a2('0x7'),_0x75a2('0x16'),_0x75a2('0x17'),_0x75a2('0x8'),_0x75a2('0x9'),_0x75a2('0xa'),_0x75a2('0xb'),_0x75a2('0xd')]},'log':_0x75a2('0x14')});};