import { Module } from "@nestjs/common";
import { OcrModule } from "../ocr/ocr.module";
import { PolicyOcrController } from "./policy-ocr.controller";
import { PolicyOcrService } from "./policy-ocr.service";
import { PolicyMatcherService } from "./policy-matcher.service";

/**
 * Reuses the OCR seam from OcrModule unchanged: the Tesseract provider is
 * bound there and `OcrProvider` is the only thing the parsers touch. This
 * module registers its own controller + service + matcher; nothing about
 * utility ingestion needs to know about it.
 */
@Module({
  imports: [OcrModule],
  controllers: [PolicyOcrController],
  providers: [PolicyOcrService, PolicyMatcherService],
})
export class PolicyOcrModule {}