2024-09-10 09:50:11 +00:00
|
|
|
/*
|
|
|
|
* 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';
|
|
|
|
|
2024-10-19 12:56:09 +00:00
|
|
|
@InjectDynamicProviders('dist/extensions/**/*.nlp.helper.js')
|
2024-09-10 09:50:11 +00:00
|
|
|
@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 {}
|