mirror of
https://github.com/dadosfera/maestro.git
synced 2026-09-30 12:29:09 +00:00
30 lines
1.0 KiB
TypeScript
30 lines
1.0 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { OauthController } from './oauth.controller';
|
|
|
|
import { getOauthSecrets } from '../../utils/OauthSecrets';
|
|
|
|
import { HubspotStrategy } from './passport-strategies/hubspot-strategy';
|
|
import { FacebookStrategy } from './passport-strategies/facebook-strategy';
|
|
import { GoogleStrategy } from './passport-strategies/google-strategy';
|
|
import { MailChimpStrategy } from './passport-strategies/mailchimp-strategy';
|
|
import { SalesforceStrategy } from './passport-strategies/salesforce-strategy';
|
|
import { ConnectionModule } from '../connection/connection.module';
|
|
import { OauthService } from './oauth.service';
|
|
import { DadosferaLogger } from '@dadosfera/dadosfera-logs';
|
|
|
|
@Module({
|
|
providers: [
|
|
DadosferaLogger,
|
|
{ provide: 'OAUTH_SECRETS', useValue: getOauthSecrets() },
|
|
HubspotStrategy,
|
|
FacebookStrategy,
|
|
GoogleStrategy,
|
|
MailChimpStrategy,
|
|
SalesforceStrategy,
|
|
OauthService,
|
|
],
|
|
controllers: [OauthController],
|
|
imports: [ConnectionModule],
|
|
})
|
|
export class OauthModule {}
|