import { ClearCustomLabelUC, makeLabelPM, SetCustomLabelUC } from "../../Label";
import { makeChannelModelObject } from "../Entities";
import { makeChannelModelObjectPM } from "../PMs";
export function makeChannelObjectFactory(appObjects) {
    return function channelObjectFactory(id) {
        const ao = appObjects.getOrCreate(id);
        const channelModelEntity = makeChannelModelObject(ao);
        new ClearCustomLabelUC(ao);
        new SetCustomLabelUC(ao);
        // PM
        makeChannelModelObjectPM(ao);
        makeLabelPM(ao);
        return channelModelEntity;
    };
}
//# sourceMappingURL=channelObjectFactory.js.map