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 _0x9294=['lastLoginAt','pauseType','lastPauseAt','voicePause','phone','mobile','getTelephones','GetUser','internal','saveUnpause','UnpauseUser','savePause','getAgent','fullname','../client','getAgents','Request','agent','name','email','accountcode','online'];(function(_0x3b02fd,_0x4471b9){var _0xee4d1a=function(_0x1c4ab3){while(--_0x1c4ab3){_0x3b02fd['push'](_0x3b02fd['shift']());}};_0xee4d1a(++_0x4471b9);}(_0x9294,0x12c));var _0x4929=function(_0x3b2f12,_0x1e7128){_0x3b2f12=_0x3b2f12-0x0;var _0x36a818=_0x9294[_0x3b2f12];return _0x36a818;};'use strict';var client=require(_0x4929('0x0'));exports[_0x4929('0x1')]=function(){return function(){return client[_0x4929('0x2')]('GetUser',{'options':{'raw':![],'where':{'role':_0x4929('0x3')},'attributes':['id',_0x4929('0x4'),_0x4929('0x5'),_0x4929('0x6'),'fullname',_0x4929('0x7'),_0x4929('0x8'),_0x4929('0x9'),_0x4929('0xa'),_0x4929('0xb'),_0x4929('0xc'),_0x4929('0xd'),'interface']},'log':_0x4929('0x1')});};};exports[_0x4929('0xe')]=function(){return function(){return client['Request'](_0x4929('0xf'),{'options':{'raw':!![],'where':{'role':'telephone'},'attributes':['id','name','accountcode',_0x4929('0x10')]},'log':_0x4929('0xe')});};};exports['savePause']=function(_0xfebc39,_0x8cb3b1,_0x3cc355){return client[_0x4929('0x2')]('PauseUser',{'body':{'type':_0x8cb3b1,'uniqueid':_0x3cc355},'options':{'where':{'id':_0xfebc39['id']}},'log':'savePause'});};exports[_0x4929('0x11')]=function(_0x291d68){return client[_0x4929('0x2')](_0x4929('0x12'),{'body':{},'options':{'where':{'id':_0x291d68['id']}},'log':_0x4929('0x13')});};exports[_0x4929('0x14')]=function(_0x512710){return client[_0x4929('0x2')]('ShowUser',{'options':{'raw':![],'where':{'role':'agent','id':_0x512710},'attributes':['id',_0x4929('0x4'),_0x4929('0x5'),_0x4929('0x6'),_0x4929('0x15'),_0x4929('0x7'),_0x4929('0x8'),_0x4929('0x9'),'lastPauseAt',_0x4929('0xb'),'interface']},'log':_0x4929('0x14')});};