"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.MpesaModule = void 0;
const common_1 = require("@nestjs/common");
const typeorm_1 = require("@nestjs/typeorm");
const mpesa_service_1 = require("./mpesa.service");
const mpesa_controller_1 = require("./mpesa.controller");
const payment_entity_1 = require("../database/entities/payment.entity");
const payment_attempt_entity_1 = require("../database/entities/payment-attempt.entity");
const mpesa_callback_entity_1 = require("../database/entities/mpesa-callback.entity");
const mpesa_reconciliation_entity_1 = require("../database/entities/mpesa-reconciliation.entity");
const system_settings_entity_1 = require("../database/entities/system-settings.entity");
const business_settings_entity_1 = require("../database/entities/business-settings.entity");
const customer_entity_1 = require("../database/entities/customer.entity");
const wifi_session_entity_1 = require("../database/entities/wifi-session.entity");
const audit_log_entity_1 = require("../database/entities/audit-log.entity");
const receipt_entity_1 = require("../database/entities/receipt.entity");
const transaction_entity_1 = require("../database/entities/transaction.entity");
let MpesaModule = class MpesaModule {
};
exports.MpesaModule = MpesaModule;
exports.MpesaModule = MpesaModule = __decorate([
    (0, common_1.Module)({
        imports: [
            typeorm_1.TypeOrmModule.forFeature([
                payment_entity_1.Payment,
                payment_attempt_entity_1.PaymentAttempt,
                mpesa_callback_entity_1.MpesaCallback,
                mpesa_reconciliation_entity_1.MpesaReconciliation,
                system_settings_entity_1.SystemSettings,
                business_settings_entity_1.BusinessSettings,
                customer_entity_1.Customer,
                wifi_session_entity_1.WifiSession,
                audit_log_entity_1.AuditLog,
                receipt_entity_1.Receipt,
                transaction_entity_1.Transaction,
            ]),
        ],
        controllers: [mpesa_controller_1.MpesaController],
        providers: [mpesa_service_1.MpesaService],
        exports: [mpesa_service_1.MpesaService],
    })
], MpesaModule);
