"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PresetWorker = void 0;
const Di_1 = require("../../ioc/Di");
const RopidGtfsContainerToken_1 = require("../../ioc/RopidGtfsContainerToken");
const workers_1 = require("@golemio/core/dist/integration-engine/workers");
const constants_1 = require("./constants");
class PresetWorker extends workers_1.AbstractWorker {
    constructor() {
        super();
        this.name = constants_1.PRESETS_WORKER_NAME;
        this.registerTask = (task) => {
            super.registerTask(task);
            task.queuePrefix = this.getQueuePrefix();
        };
        // Register tasks
        this.registerTask(Di_1.RopidGtfsContainer.resolve(RopidGtfsContainerToken_1.RopidGtfsContainerToken.SavePresetsDataTask));
        this.registerTask(Di_1.RopidGtfsContainer.resolve(RopidGtfsContainerToken_1.RopidGtfsContainerToken.CollectAndSaveLogsTask));
        this.registerTask(Di_1.RopidGtfsContainer.resolve(RopidGtfsContainerToken_1.RopidGtfsContainerToken.ProcessAndSendLogsTask));
        this.registerTask(Di_1.RopidGtfsContainer.resolve(RopidGtfsContainerToken_1.RopidGtfsContainerToken.CheckForNewDeparturesPresetsTask));
        this.registerTask(Di_1.RopidGtfsContainer.resolve(RopidGtfsContainerToken_1.RopidGtfsContainerToken.DownloadDeparturesPresetsTask));
    }
}
exports.PresetWorker = PresetWorker;
//# sourceMappingURL=PresetWorker.js.map