import { Module } from '@nestjs/common' ; import { CsvService } from '@fc/csv/services' ; import { LoggerService } from '@fc/logger' ; import { CogService } from './cog.service' ; import { CityDto , CountryDto } from './dto' ; import { COG_CITY , COG_COUNTRY } from './tokens' ; @ Module ( { exports : [ CogService ] , providers : [ CogService , { inject : [ LoggerService ] , provide : COG_CITY , useFactory : ( logger ) => new CsvService ( logger , CityDto ) , } , { inject : [ LoggerService ] , provide : COG_COUNTRY , useFactory : ( logger ) => new CsvService ( logger , CountryDto ) , } , ] , } ) export class CogModule { }