src/sales-force/organization-chart/organization-chart.module.ts
import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { DataSource } from 'typeorm';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { join } from 'path';
import { OrganizationChartController } from './organization-chart.controller';
import { OrganizationChartService } from './organization-chart.services';
import { OrganizationChart } from '../entities/organization-chart.entity';
import { ClientModule } from 'src/client/client.module';
import { SalesForceModule } from '../sales-force/sales-force.module';
import { SharedModule } from 'src/provider/shared-api/shared.module';
import { EdcModule } from 'src/provider/edc_api/edc.module';
@Module({
imports: [
TypeOrmModule.forFeature([
OrganizationChart,
]),
forwardRef(() => SalesForceModule),
ClientModule,
SharedModule,
],
providers: [OrganizationChartService],
exports:[OrganizationChartService],
controllers: [OrganizationChartController]
})
export class OrganizationChartModule {}