var Unibase; (function (Unibase) { let Platform; (function (Platform) { let Integrations; (function (Integrations) { let Components; (function (Components) { class ServiceIntegrator extends Platform.Core.BaseComponent { cssFiles() { return ["libs/summernote/summernote.css"]; } jsFiles() { return ["platform/integrations/components/serviceintegrator.js", "platform/integrations/components/createserviceprovider.js", "platform/integrations/managers/integrationmanager.js", "platform/forms/components/formviewer/formviewer.js", 'libs/parsley/parsley.min.js', "libs/summernote/summernote.min.js", "platform/integrations/enums/integratortype.js"]; } html(id, containerid) { let html = '
Input Settings
'; return html; } load(id, containerid, callback) { var instance = this; $("#btn_execute").click(function () { var serviceIntegratorId = $("#hf_ServiceIntegratorId").val(); Unibase.Platform.Integrations.Components.CreateServiceProvider.Instance().saveSettings(containerid, serviceIntegratorId, ServiceIntegrator.isDownload); }); } loadInputSettings(serviceIntegratorId, serviceId, integratorType, isDownload) { var instance = this; ServiceIntegrator.isDownload = isDownload; instance.fileCacheHelper.loadJsFile("platform/integrations/managers/integrationmanager.js", null); bootbox.confirm("Do you want to Execute this service?", function (result) { if (result == true) { Unibase.Platform.Integrations.Managers.IntegrationManager.Instance().getinputsettings(serviceIntegratorId, true).then(function (response) { $("#hf_ServiceIntegratorId").val(serviceIntegratorId); if (response.result.length > 0) { instance.navigationHelper.popup(0, '', Unibase.Platform.Integrations.Components.ServiceIntegrator.Instance(), null, Platform.Helpers.Size.Medium); $("#hf_ServiceIntegratorId").val(serviceIntegratorId); var settinghtml = ""; for (let i = 0; i < response.result.length; i++) { var data = response.result[i]; settinghtml += '
' + '' + '' + '' + '
' + '' + '
' + '
' + '' + '
' + '
'; } $("#div_InputSettings").html(settinghtml); } else { Unibase.Platform.Integrations.Components.CreateServiceProvider.Instance().saveSettings("", serviceIntegratorId, isDownload); } }); } }); } loadForm(FormId, Pk_Value, AppConfigurationId, Callback, ElementId) { var instance = this; } static Instance() { return new ServiceIntegrator(); } } ServiceIntegrator.isDownload = false; Components.ServiceIntegrator = ServiceIntegrator; })(Components = Integrations.Components || (Integrations.Components = {})); })(Integrations = Platform.Integrations || (Platform.Integrations = {})); })(Platform = Unibase.Platform || (Unibase.Platform = {})); })(Unibase || (Unibase = {}));