import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { Mask } from './entities/mask.entity'
import { MaskService } from './mask.service'
import { MaskAdminController } from './mask.admin.controller'
import { BcryptService } from '../shared/hashing/bcrypt.service'
import { HashingService } from '../shared/hashing/hashing.service'
import { SmsModule } from '../sms/sms.module'
import { MembershipModule } from '../membership/membership.module'

@Module({
    imports: [SmsModule, TypeOrmModule.forFeature([Mask]), MembershipModule],
    controllers: [MaskAdminController],
    providers: [
        {
            provide: HashingService,
            useClass: BcryptService
        },
        MaskService
    ],
    exports: [MaskService]
})
export class MaskModule {}