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 _0x6647=['lastLoginAt','pauseType','lastPauseAt','voicePause','phone','mobile','interface','getTelephones','telephone','savePause','Request','UnpauseUser','fullname','../client','getAgents','GetUser','agent','name','email','accountcode','online'];(function(_0x5ed24a,_0x181aa2){var _0x29d670=function(_0x1e82e7){while(--_0x1e82e7){_0x5ed24a['push'](_0x5ed24a['shift']());}};_0x29d670(++_0x181aa2);}(_0x6647,0x1db));var _0x7664=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x6647[_0x20a584];return _0x4b41a8;};'use strict';var client=require(_0x7664('0x0'));exports[_0x7664('0x1')]=function(){return function(){return client['Request'](_0x7664('0x2'),{'options':{'raw':![],'where':{'role':_0x7664('0x3')},'attributes':['id',_0x7664('0x4'),_0x7664('0x5'),_0x7664('0x6'),'fullname',_0x7664('0x7'),_0x7664('0x8'),_0x7664('0x9'),_0x7664('0xa'),_0x7664('0xb'),_0x7664('0xc'),_0x7664('0xd'),_0x7664('0xe')]},'log':_0x7664('0x1')});};};exports[_0x7664('0xf')]=function(){return function(){return client['Request'](_0x7664('0x2'),{'options':{'raw':!![],'where':{'role':_0x7664('0x10')},'attributes':['id',_0x7664('0x4'),_0x7664('0x6'),'internal']},'log':_0x7664('0xf')});};};exports[_0x7664('0x11')]=function(_0xe9096e,_0x5cde64,_0x5dac2f){return client[_0x7664('0x12')]('PauseUser',{'body':{'type':_0x5cde64,'uniqueid':_0x5dac2f},'options':{'where':{'id':_0xe9096e['id']}},'log':_0x7664('0x11')});};exports['saveUnpause']=function(_0x330ec2){return client[_0x7664('0x12')](_0x7664('0x13'),{'body':{},'options':{'where':{'id':_0x330ec2['id']}},'log':_0x7664('0x11')});};exports['getAgent']=function(_0x45aff4){return client[_0x7664('0x12')]('ShowUser',{'options':{'raw':![],'where':{'role':_0x7664('0x3'),'id':_0x45aff4},'attributes':['id',_0x7664('0x4'),'email','accountcode',_0x7664('0x14'),'online',_0x7664('0x8'),_0x7664('0x9'),_0x7664('0xa'),_0x7664('0xb'),_0x7664('0xe')]},'log':'getAgent'});};