Skip to content

The open alternative to Salesforce, designed for AI.

1.4 KB
Raw Blame
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { MetricsModule } from 'src/engine/core-modules/metrics/metrics.module';
import { CalendarChannelEntity } from 'src/engine/metadata-modules/calendar-channel/entities/calendar-channel.entity';
import { MessageChannelEntity } from 'src/engine/metadata-modules/message-channel/entities/message-channel.entity';
import { WebhookSyncTriggerService } from 'src/modules/connected-account/webhook-subscription-manager/services/webhook-sync-trigger.service';
import { WebhookSubscriptionModule } from 'src/modules/connected-account/webhook-subscription-manager/webhook-subscription.module';
import { MicrosoftCalendarNotificationHandler } from 'src/modules/connected-account-sync-webhooks/drivers/microsoft/microsoft-calendar-notification.handler';
import { MicrosoftMessagingNotificationHandler } from 'src/modules/connected-account-sync-webhooks/drivers/microsoft/microsoft-messaging-notification.handler';

@Module({
  imports: [
    MetricsModule,
    WebhookSubscriptionModule,
    TypeOrmModule.forFeature([MessageChannelEntity, CalendarChannelEntity]),
  ],
  providers: [
    MicrosoftMessagingNotificationHandler,
    MicrosoftCalendarNotificationHandler,
    WebhookSyncTriggerService,
  ],
  exports: [
    MicrosoftMessagingNotificationHandler,
    MicrosoftCalendarNotificationHandler,
  ],
})
export class MicrosoftWebhookDriverModule {}