import { Global, Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { InsuranceController } from './insurance.controller';
import { InsuranceService } from './insurance.service';
import { RayabimehModule } from '../../thirdParty/rayabimeh/rayabimeh.module';
import { CarModule } from '../car/car.module';
import { InsuranceThirdPartyInquiryEntity } from './entities/insurance-third-party-inquiry.entity';

@Global()
@Module({
  imports: [
    TypeOrmModule.forFeature([InsuranceThirdPartyInquiryEntity]),
    RayabimehModule,
    CarModule,
  ],
  controllers: [InsuranceController],
  providers: [InsuranceService],
  exports: [InsuranceService],
})
export class InsuranceModule {}
