"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeChannelModelFactory = makeChannelModelFactory;
const Entities_1 = require("../Entities");
const PMs_1 = require("../PMs");
const channelObjectFactory_1 = require("./channelObjectFactory");
function makeChannelModelFactory(appObjects) {
    return function channelModelFactory(id) {
        const ao = appObjects.getOrCreate(id);
        const entity = (0, Entities_1.makeChannelModelEntity)(ao);
        entity.modelObjectFactory = (0, channelObjectFactory_1.makeChannelObjectFactory)(appObjects);
        // PM
        (0, PMs_1.makeChannelModelObjectPM)(ao);
        return entity;
    };
}
//# sourceMappingURL=channelModelFactory.js.map