var TcHmi;!function(TcHmi){let Functions;!function(Functions){let Beckhoff;!function(Beckhoff){Beckhoff.ForceLogoutEx=function(ctx,username){return TcHmi.Server.forceLogout(username,data=>{if(data.error!==TcHmi.Errors.NONE)return TCHMI_CONSOLE_LOG_LEVEL>=1&&TcHmi.Log.error("[Source=Function, Module=TcHmi.Functions.Beckhoff.ForceLogoutEx] "+TcHmi.Log.buildMessage(data.details)),void ctx.error(data.error,{code:data.error,message:TcHmi.Errors[data.error],reason:"Function: TcHmi.Functions.Beckhoff.LoginEx",domain:"Function",errors:data.details?[data.details]:void 0});ctx.success()})}}(Beckhoff=Functions.Beckhoff||(Functions.Beckhoff={}))}(Functions=TcHmi.Functions||(TcHmi.Functions={}))}(TcHmi||(TcHmi={})),TcHmi.Functions.registerFunctionEx("ForceLogoutEx","TcHmi.Functions.Beckhoff",TcHmi.Functions.Beckhoff.ForceLogoutEx);