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