"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.PaymentsModule = void 0;
const common_1 = require("@nestjs/common");
const typeorm_1 = require("@nestjs/typeorm");
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 receipt_entity_1 = require("../database/entities/receipt.entity");
const invoice_entity_1 = require("../database/entities/invoice.entity");
const transaction_entity_1 = require("../database/entities/transaction.entity");
const customer_entity_1 = require("../database/entities/customer.entity");
const wifi_session_entity_1 = require("../database/entities/wifi-session.entity");
const business_entity_1 = require("../database/entities/business.entity");
const audit_log_entity_1 = require("../database/entities/audit-log.entity");
const payments_service_1 = require("./payments.service");
const payments_controller_1 = require("./payments.controller");
const receipt_service_1 = require("./receipt.service");
const invoice_service_1 = require("./invoice.service");
const mpesa_module_1 = require("../mpesa/mpesa.module");
const sessions_module_1 = require("../sessions/sessions.module");
let PaymentsModule = class PaymentsModule {
};
exports.PaymentsModule = PaymentsModule;
exports.PaymentsModule = PaymentsModule = __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,
                receipt_entity_1.Receipt,
                invoice_entity_1.Invoice,
                transaction_entity_1.Transaction,
                customer_entity_1.Customer,
                wifi_session_entity_1.WifiSession,
                business_entity_1.Business,
                audit_log_entity_1.AuditLog,
            ]),
            (0, common_1.forwardRef)(() => mpesa_module_1.MpesaModule),
            (0, common_1.forwardRef)(() => sessions_module_1.SessionsModule),
        ],
        controllers: [payments_controller_1.PaymentsController],
        providers: [payments_service_1.PaymentsService, receipt_service_1.ReceiptService, invoice_service_1.InvoiceService],
        exports: [payments_service_1.PaymentsService, receipt_service_1.ReceiptService, invoice_service_1.InvoiceService],
    })
], PaymentsModule);
