import { Module } from '@nestjs/common';
import { TemplateModule } from '../templates/template.module';
import { InteractionsModule } from '../interactions/interactions.module';
import { MailService } from './mail.service';
import { MailController } from './mail.controller';

/**
 * Mail orchestration: render a template (TemplateModule) → deliver it either app-to-app (an EMAIL
 * interaction via IngestService) or externally (TemplatedSender/SMTP) with an in-app mirror.
 * SessionVerifier + ActorResolver are global.
 */
@Module({
  imports: [TemplateModule, InteractionsModule],
  controllers: [MailController],
  providers: [MailService],
  exports: [MailService],
})
export class MailModule {}
