"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.IntegrationModule = void 0;
const api_prisma_1 = require("@hed-hog/api-prisma");
const common_1 = require("@nestjs/common");
const schedule_1 = require("@nestjs/schedule");
const setting_module_1 = require("../setting/setting.module");
const services_1 = require("./services");
let IntegrationModule = class IntegrationModule {
};
exports.IntegrationModule = IntegrationModule;
exports.IntegrationModule = IntegrationModule = __decorate([
    (0, common_1.Global)(),
    (0, common_1.Module)({
        imports: [
            schedule_1.ScheduleModule.forRoot(),
            api_prisma_1.PrismaModule,
            (0, common_1.forwardRef)(() => setting_module_1.SettingModule),
        ],
        providers: [
            services_1.OutboxNotifier,
            services_1.OutboxService,
            services_1.InboxService,
            services_1.IntegrationLinkService,
            services_1.EventSubscriberRegistry,
            services_1.IntegrationDeveloperApiService,
            services_1.IntegrationSettingsService,
            services_1.DomainEventPublisher,
            services_1.OutboxProcessor,
            services_1.OutboxPollingCoordinator,
            services_1.OutboxProcessorJob,
        ],
        exports: [
            services_1.OutboxNotifier,
            services_1.OutboxService,
            services_1.InboxService,
            services_1.IntegrationLinkService,
            services_1.EventSubscriberRegistry,
            services_1.IntegrationDeveloperApiService,
            services_1.IntegrationSettingsService,
            services_1.DomainEventPublisher,
            services_1.OutboxProcessor,
            services_1.OutboxPollingCoordinator,
            services_1.OutboxProcessorJob,
        ],
    })
], IntegrationModule);
//# sourceMappingURL=integration.module.js.map