mirror of
https://github.com/hexastack/hexabot
synced 2025-02-25 05:44:25 +00:00
70 lines
2.8 KiB
TypeScript
70 lines
2.8 KiB
TypeScript
|
/*
|
||
|
* Copyright © 2024 Hexastack. All rights reserved.
|
||
|
*
|
||
|
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
|
||
|
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
|
||
|
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
|
||
|
*/
|
||
|
|
||
|
import { HttpModule } from '@nestjs/axios';
|
||
|
import { Module } from '@nestjs/common';
|
||
|
import { MongooseModule } from '@nestjs/mongoose';
|
||
|
import { InjectDynamicProviders } from 'nestjs-dynamic-providers';
|
||
|
|
||
|
import { AttachmentModule } from '@/attachment/attachment.module';
|
||
|
|
||
|
import { NlpEntityController } from './controllers/nlp-entity.controller';
|
||
|
import { NlpSampleController } from './controllers/nlp-sample.controller';
|
||
|
import { NlpValueController } from './controllers/nlp-value.controller';
|
||
|
import { NlpController } from './controllers/nlp.controller';
|
||
|
import { NlpEntityRepository } from './repositories/nlp-entity.repository';
|
||
|
import { NlpSampleEntityRepository } from './repositories/nlp-sample-entity.repository';
|
||
|
import { NlpSampleRepository } from './repositories/nlp-sample.repository';
|
||
|
import { NlpValueRepository } from './repositories/nlp-value.repository';
|
||
|
import { NlpEntityModel } from './schemas/nlp-entity.schema';
|
||
|
import { NlpSampleEntityModel } from './schemas/nlp-sample-entity.schema';
|
||
|
import { NlpSampleModel } from './schemas/nlp-sample.schema';
|
||
|
import { NlpValueModel } from './schemas/nlp-value.schema';
|
||
|
import { NlpEntitySeeder } from './seeds/nlp-entity.seed';
|
||
|
import { NlpValueSeeder } from './seeds/nlp-value.seed';
|
||
|
import { NlpEntityService } from './services/nlp-entity.service';
|
||
|
import { NlpSampleEntityService } from './services/nlp-sample-entity.service';
|
||
|
import { NlpSampleService } from './services/nlp-sample.service';
|
||
|
import { NlpValueService } from './services/nlp-value.service';
|
||
|
import { NlpService } from './services/nlp.service';
|
||
|
|
||
|
@InjectDynamicProviders('dist/**/*.nlp.helper.js')
|
||
|
@Module({
|
||
|
imports: [
|
||
|
MongooseModule.forFeature([
|
||
|
NlpEntityModel,
|
||
|
NlpValueModel,
|
||
|
NlpSampleModel,
|
||
|
NlpSampleEntityModel,
|
||
|
]),
|
||
|
AttachmentModule,
|
||
|
HttpModule,
|
||
|
],
|
||
|
controllers: [
|
||
|
NlpEntityController,
|
||
|
NlpValueController,
|
||
|
NlpSampleController,
|
||
|
NlpController,
|
||
|
],
|
||
|
providers: [
|
||
|
NlpEntityRepository,
|
||
|
NlpValueRepository,
|
||
|
NlpSampleRepository,
|
||
|
NlpSampleEntityRepository,
|
||
|
NlpEntityService,
|
||
|
NlpValueService,
|
||
|
NlpSampleService,
|
||
|
NlpSampleEntityService,
|
||
|
NlpService,
|
||
|
NlpEntitySeeder,
|
||
|
NlpValueSeeder,
|
||
|
],
|
||
|
exports: [NlpService, NlpSampleService, NlpEntityService, NlpValueService],
|
||
|
})
|
||
|
export class NlpModule {}
|