import { Module } from "@nestjs/common";
import { VoiceOptionsService } from "./services/voice-options.service.js";

/**
 * VoiceOptionsModule provides SIM voice options storage.
 *
 * This module was extracted from SimManagementModule to break a circular
 * dependency with FreebitModule. Both modules can now import VoiceOptionsModule
 * directly without using forwardRef.
 */
@Module({
  providers: [
    VoiceOptionsService,
    // Provide with token for backwards compatibility
    {
      provide: "VoiceOptionsService",
      useExisting: VoiceOptionsService,
    },
    // Legacy token for backwards compatibility with FreebitMapperService
    {
      provide: "SimVoiceOptionsService",
      useExisting: VoiceOptionsService,
    },
  ],
  exports: [VoiceOptionsService, "VoiceOptionsService", "SimVoiceOptionsService"],
})
export class VoiceOptionsModule {}
