Iniit
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var Unibase;
|
||||
(function (Unibase) {
|
||||
let Platform;
|
||||
(function (Platform) {
|
||||
let Automation;
|
||||
(function (Automation) {
|
||||
let Sync;
|
||||
(function (Sync) {
|
||||
let Managers;
|
||||
(function (Managers) {
|
||||
class SyncManager extends Unibase.Platform.Core.BaseManager {
|
||||
syncTenant(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
debugger;
|
||||
const url = 'apis/v4/unibase/synctenants/tenants/syncTenant';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result == null) {
|
||||
MessageHelper.Instance().showSuccess(response.message, '');
|
||||
}
|
||||
if (response.result != null) {
|
||||
MessageHelper.Instance().showSuccess("SuccessFully Synced", '');
|
||||
}
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new SyncManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.SyncManager = SyncManager;
|
||||
})(Managers = Sync.Managers || (Sync.Managers = {}));
|
||||
})(Sync = Automation.Sync || (Automation.Sync = {}));
|
||||
})(Automation = Platform.Automation || (Platform.Automation = {}));
|
||||
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
|
||||
})(Unibase || (Unibase = {}));
|
||||
Reference in New Issue
Block a user