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 _0xca0f=['mobile','interface','getTelephones','GetUser','telephone','internal','PauseUser','savePause','UnpauseUser','getAgent','ShowUser','agent','lastLoginAt','voicePause','../client','getAgents','Request','name','email','accountcode','fullname','online','pauseType','phone'];(function(_0x18350a,_0x105fe4){var _0x33050e=function(_0x460c3f){while(--_0x460c3f){_0x18350a['push'](_0x18350a['shift']());}};_0x33050e(++_0x105fe4);}(_0xca0f,0x9e));var _0xfca0=function(_0x13ef78,_0x508cd1){_0x13ef78=_0x13ef78-0x0;var _0x583212=_0xca0f[_0x13ef78];return _0x583212;};'use strict';var client=require(_0xfca0('0x0'));exports[_0xfca0('0x1')]=function(){return function(){return client[_0xfca0('0x2')]('GetUser',{'options':{'raw':![],'where':{'role':'agent'},'attributes':['id',_0xfca0('0x3'),_0xfca0('0x4'),_0xfca0('0x5'),_0xfca0('0x6'),_0xfca0('0x7'),'lastLoginAt',_0xfca0('0x8'),'lastPauseAt','voicePause',_0xfca0('0x9'),_0xfca0('0xa'),_0xfca0('0xb')]},'log':'getAgents'});};};exports[_0xfca0('0xc')]=function(){return function(){return client[_0xfca0('0x2')](_0xfca0('0xd'),{'options':{'raw':!![],'where':{'role':_0xfca0('0xe')},'attributes':['id','name',_0xfca0('0x5'),_0xfca0('0xf')]},'log':_0xfca0('0xc')});};};exports['savePause']=function(_0x538d93,_0x2bc8aa,_0x37d223){return client[_0xfca0('0x2')](_0xfca0('0x10'),{'body':{'type':_0x2bc8aa,'uniqueid':_0x37d223},'options':{'where':{'id':_0x538d93['id']}},'log':_0xfca0('0x11')});};exports['saveUnpause']=function(_0x556572){return client[_0xfca0('0x2')](_0xfca0('0x12'),{'body':{},'options':{'where':{'id':_0x556572['id']}},'log':_0xfca0('0x11')});};exports[_0xfca0('0x13')]=function(_0x1c7d59){return client[_0xfca0('0x2')](_0xfca0('0x14'),{'options':{'raw':![],'where':{'role':_0xfca0('0x15'),'id':_0x1c7d59},'attributes':['id','name','email',_0xfca0('0x5'),_0xfca0('0x6'),_0xfca0('0x7'),_0xfca0('0x16'),_0xfca0('0x8'),'lastPauseAt',_0xfca0('0x17'),_0xfca0('0xb')]},'log':_0xfca0('0x13')});};