"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CoreModule = void 0;
const common_1 = require("@nestjs/common");
const core_1 = require("@nestjs/core");
const typeorm_1 = require("@nestjs/typeorm");
const auth_provider_registry_service_1 = require("./services/auth-provider-registry.service");
const apple_auth_provider_1 = require("./providers/apple-auth.provider");
const jwt_auth_provider_1 = require("./providers/jwt-auth.provider");
const email_auth_provider_1 = require("./providers/email-auth.provider");
const facebook_auth_provider_1 = require("./providers/facebook-auth.provider");
const google_auth_provider_1 = require("./providers/google-auth.provider");
const github_auth_provider_1 = require("./providers/github-auth.provider");
const phone_auth_provider_1 = require("./providers/phone-auth.provider");
const jwt_service_1 = require("./services/jwt.service");
const auth_config_service_1 = require("./services/auth-config.service");
const initialization_service_1 = require("./services/initialization.service");
const debug_logger_service_1 = require("./services/debug-logger.service");
const tenant_module_1 = require("../tenant/tenant.module");
const user_entity_1 = require("../user/entities/user.entity");
const identity_entity_1 = require("../user/entities/identity.entity");
let CoreModule = class CoreModule {
};
exports.CoreModule = CoreModule;
exports.CoreModule = CoreModule = __decorate([
    (0, common_1.Module)({
        imports: [
            typeorm_1.TypeOrmModule.forFeature([user_entity_1.NestAuthUser, identity_entity_1.NestAuthIdentity]),
            tenant_module_1.TenantModule
        ],
        providers: [
            core_1.Reflector,
            auth_config_service_1.AuthConfigService,
            debug_logger_service_1.DebugLoggerService,
            jwt_service_1.JwtService,
            auth_provider_registry_service_1.AuthProviderRegistryService,
            email_auth_provider_1.EmailAuthProvider,
            phone_auth_provider_1.PhoneAuthProvider,
            jwt_auth_provider_1.JwtAuthProvider,
            google_auth_provider_1.GoogleAuthProvider,
            facebook_auth_provider_1.FacebookAuthProvider,
            apple_auth_provider_1.AppleAuthProvider,
            github_auth_provider_1.GitHubAuthProvider,
            initialization_service_1.InitializationService,
        ],
        exports: [
            core_1.Reflector,
            jwt_service_1.JwtService,
            auth_provider_registry_service_1.AuthProviderRegistryService,
            auth_config_service_1.AuthConfigService,
            debug_logger_service_1.DebugLoggerService,
            initialization_service_1.InitializationService,
        ],
    })
], CoreModule);
//# sourceMappingURL=core.module.js.map