var Bloc_BaseContent_Link=function(sysData,data){TgJsController.call(this,sysData);$.extend(this,data);var self=this;this.prepareSsoRequest=function(){tgApplication.activeLoader();self.request({event:'PrepareSsoRequest',ajax:true,method:'post',loader:false,callback:function(response){if(!response||!response.status||!response.hasOwnProperty('request')){tgApplication.unactiveLoader();return self.ajaxError();}
$('body').append(response.request);document.ssoForm.submit();tgApplication.unactiveLoader();}});};this.prepareSsoResponse=function(){tgApplication.activeLoader();self.request({event:'PrepareSsoResponse',ajax:true,method:'post',loader:false,callback:function(response){if(!response||!response.status||!response.hasOwnProperty('response')){tgApplication.unactiveLoader();return self.ajaxError();}
$('body').append(response.response);document.ssoForm.submit();tgApplication.unactiveLoader();}});};};