import {Module,forwardRef} from '@nestjs/common'
import {JournalModule} from 'api/journals/journal.module'
import {ExpandModule} from 'helpers/expand.module'

import {PeeringGroupController} from './peering-group.controller'
import {PeeringGroupService} from './peering-group.service'
import {PeeringGroupMariadbRepository} from './repositories/peering-inbound-rule.mariadb.repository'
import {PeeringGroupRedisRepository} from './repositories/peering-inbound-rule.redis.repository'

import {TaskAgentModule} from '~/helpers/task-agent.module'

@Module({
    imports: [
        forwardRef(() => JournalModule),
        forwardRef(() => ExpandModule),
        forwardRef(() => TaskAgentModule),
    ],
    controllers: [PeeringGroupController],
    providers: [
        PeeringGroupController,
        PeeringGroupService,
        PeeringGroupMariadbRepository,
        PeeringGroupRedisRepository,
    ],
    exports: [
        PeeringGroupController,
        PeeringGroupService,
    ],
})
export class PeeringGroupModule {
}
