"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.repositories = void 0;
const PositionRepository_1 = require("./PositionRepository");
const TripRepository_1 = require("./TripRepository");
const VehicleDescriptorRepository_1 = require("./VehicleDescriptorRepository");
const VehicleTypeRepository_1 = require("./VehicleTypeRepository");
const ProcessedPositionRepository_1 = require("./views/ProcessedPositionRepository");
const TripWithLastPositionRepository_1 = require("./views/TripWithLastPositionRepository");
const repositories = {
    positionRepository: new PositionRepository_1.PositionRepository(),
    tripRepository: new TripRepository_1.TripRepository(),
    vehicleTypeRepository: new VehicleTypeRepository_1.VehicleTypeRepository(),
    vehicleDescriptorRepository: new VehicleDescriptorRepository_1.VehicleDescriptorRepository(),
    tripWithLastPositionRepository: new TripWithLastPositionRepository_1.TripWithLastPositionRepository(),
    processedPositionRepository: new ProcessedPositionRepository_1.ProcessedPositionRepository(),
};
exports.repositories = repositories;
for (const type of Object.keys(repositories)) {
    const model = repositories[type];
    if (model.hasOwnProperty("Associate")) {
        model.Associate(repositories);
    }
}
//# sourceMappingURL=index.js.map