import { makeChannelModelEntity } from "../Entities";
import { makeChannelModelObjectPM } from "../PMs";
import { makeChannelObjectFactory } from "./channelObjectFactory";
export function makeChannelModelFactory(appObjects) {
    return function channelModelFactory(id) {
        const ao = appObjects.getOrCreate(id);
        const entity = makeChannelModelEntity(ao);
        entity.modelObjectFactory = makeChannelObjectFactory(appObjects);
        // PM
        makeChannelModelObjectPM(ao);
        return entity;
    };
}
//# sourceMappingURL=channelModelFactory.js.map