123456789 |
- var Unibase;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends n.Platform.Core.BaseComponent{cssFiles(){return[]}jsFiles(){return["apps/communications/components/w_authtokenupdate.js","apps/communications/managers/authtokenmanager.js"]}html(){return``}load(){}init(){this.render();$("#BtnUpdateAuthtoken").click(function(){n.Apps.Communications.Component.AuthTokenUpdate.Instance().updateAuthtoken()})}render(){var n=Number($("#hf_PortletWidgetId").val());$(".div_portletwidget_"+n).empty();let t=`<div class="card shadow-hover">
- <div class="card-header card-header-action bg-light bg-gradient-light"><strong>Update Auth Token</strong></div>
- <div class="card-body">
- <div id="divUpdateAuthToken" class="wrapper text-center bg-success card-header">
- <a id="BtnUpdateAuthtoken" href="javascript:;"><span class="h4">Update Authentication Token</span></a>
- </div>
-
- </div>
- </div>`;$(".div_portletwidget_"+n).append(t)}updateAuthtoken(){var t=this;t.fileCacheHelper.loadJsFile("apps/communications/managers/authtokenmanager.js",function(){n.Apps.Communications.Managers.AuthTokenManager.Instance().updateAuthToken().then(function(n){MessageHelper.Instance().showSuccess(n.message,"Unibase_ValidationSummary")})})}static Instance(){return this.instance===undefined&&(this.instance=new i),this.instance}}t.AuthTokenUpdate=i})(i=t.Component||(t.Component={}))})(i=t.Communications||(t.Communications={}))})(t=n.Apps||(n.Apps={}))})(Unibase||(Unibase={}));
|