"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateCustomLabel = updateCustomLabel;
const SetCustomLabelUC_1 = require("../UC/SetCustomLabelUC");
function updateCustomLabel(customLabel, appObjectID, appObjectRepo) {
    const appObject = appObjectRepo.get(appObjectID);
    if (!appObject) {
        appObjectRepo.submitWarning("updateCustomLabel Contorller", "App Object not found");
        return;
    }
    const setCustomLabelUC = SetCustomLabelUC_1.SetCustomLabelUC.get(appObject);
    if (!setCustomLabelUC) {
        appObjectRepo.submitWarning("updateCustomLabel Controller", "SetCustomLabelUC was not added to App Object");
        return;
    }
    setCustomLabelUC.update(customLabel);
}
//# sourceMappingURL=updateCustomLabel.js.map