import { makeCalloutFactory } from "./calloutFactory";
import { CalloutRepo } from "../Entities";
import { makeCalloutListPM } from "../PM";
import { makeCreateCalloutUC } from "../UC";
export function makeCalloutRepoFactory(appObjects) {
    return function calloutRepoFactory(id) {
        const appObject = appObjects.getOrCreate(id);
        const repo = CalloutRepo.addIfMissing(appObject);
        repo.calloutFactory = makeCalloutFactory(appObjects);
        // UCs
        makeCreateCalloutUC(appObject);
        makeCalloutListPM(appObject);
        return repo;
    };
}
//# sourceMappingURL=calloutRepoFactory.js.map