import { forwardRef, Module } from '@nestjs/common';

import { AuthModule } from '../../auth/auth.module';
import { NodeBridgeModule } from '../../nodes/node-bridge.module';
import { PrismaModule } from '../../prisma/prisma.module';

import { ConsoleController } from './console.controller';
import { ConsoleGateway } from './console.gateway';
import { ConsoleSessionService } from './console-session.service';
import { ConsoleService } from './console.service';

@Module({
  imports: [AuthModule, PrismaModule, forwardRef(() => NodeBridgeModule)],
  controllers: [ConsoleController],
  providers: [
    ConsoleSessionService,
    ConsoleService,
    ConsoleGateway,
  ],
  exports: [ConsoleSessionService, ConsoleService],
})
export class ConsoleModule {}
