var Unibase; (function (Unibase) { let Platform; (function (Platform) { let Automation; (function (Automation) { let Sync; (function (Sync) { let Components; (function (Components) { class SyncSubmission extends Unibase.Platform.Core.BaseComponent { jsFiles() { return ['platform/automation/sync/managers/syncmanager.js']; } cssFiles() { return []; } html() { return null; } load() { } syncTenant(tenantid, database, rdbconstr, isindividual) { let containerId = Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds[Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds.length - 1]; let btnSync = $(containerId).find('.btn_sync'); let obj = new syncProviders(); obj.TenantId = tenantid; obj.DBName = database; obj.RDBConnectionString = rdbconstr; obj.IsIndividual = isindividual; var instance = this; if (isindividual) { instance.fileCacheHelper.loadJsFile("platform/automation/sync/managers/syncmanager.js", function () { Unibase.Platform.Automation.Sync.Managers.SyncManager.Instance().syncTenant(obj).then(function (responce) { if (responce != null) { } }); }); } else { bootbox.confirm("Are you sure you want to SYNC All tenants?", function (result) { if (result) { instance.fileCacheHelper.loadJsFile("platform/automation/sync/managers/syncmanager.js", function () { Unibase.Platform.Automation.Sync.Managers.SyncManager.Instance().syncTenant(obj).then(function (responce) { if (responce != null) { } }); }); } }); } } static Instance() { if (this.instance === undefined) { this.instance = new SyncSubmission(); } return this.instance; } } SyncSubmission.syncName = []; Components.SyncSubmission = SyncSubmission; })(Components = Sync.Components || (Sync.Components = {})); class syncProviders { } })(Sync = Automation.Sync || (Automation.Sync = {})); })(Automation = Platform.Automation || (Platform.Automation = {})); })(Platform = Unibase.Platform || (Unibase.Platform = {})); })(Unibase || (Unibase = {}));