"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RopidVYMIWorker = void 0;
const ropid_vymi_1 = require("../../../schema-definitions/ropid-vymi");
const workers_1 = require("@golemio/core/dist/integration-engine/workers");
const CheckForNewEventsTask_1 = require("./tasks/CheckForNewEventsTask");
const FetchAndProcessEventsTask_1 = require("./tasks/FetchAndProcessEventsTask");
class RopidVYMIWorker extends workers_1.AbstractWorker {
    constructor() {
        super();
        this.name = ropid_vymi_1.RopidVYMI.name.toLowerCase();
        // Register tasks
        this.registerTask(new CheckForNewEventsTask_1.CheckForNewEventsTask(this.getQueuePrefix()));
        this.registerTask(new FetchAndProcessEventsTask_1.FetchAndProcessEventsTask(this.getQueuePrefix()));
    }
}
exports.RopidVYMIWorker = RopidVYMIWorker;
//# sourceMappingURL=RopidVYMIWorker.js.map