"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.PurchaseOrderModule = void 0;
const common_1 = require("@nestjs/common");
const typeorm_1 = require("@nestjs/typeorm");
const purchase_order_service_1 = require("./purchase-order.service");
const purchase_order_controller_1 = require("./purchase-order.controller");
const purchase_order_entity_1 = require("../entities/purchase-order.entity");
const purchase_order_item_entity_1 = require("../entities/purchase-order-item.entity");
const supplier_module_1 = require("../supplier/supplier.module");
const product_module_1 = require("../product/product.module");
const supplier_entity_1 = require("../entities/supplier.entity");
const product_entity_1 = require("../entities/product.entity");
const stock_module_1 = require("../stock/stock.module");
const size_entity_1 = require("../entities/size.entity");
let PurchaseOrderModule = class PurchaseOrderModule {
};
exports.PurchaseOrderModule = PurchaseOrderModule;
exports.PurchaseOrderModule = PurchaseOrderModule = __decorate([
    (0, common_1.Module)({
        imports: [
            typeorm_1.TypeOrmModule.forFeature([
                purchase_order_entity_1.PurchaseOrder,
                purchase_order_item_entity_1.PurchaseOrderItem,
                supplier_entity_1.Supplier,
                product_entity_1.Product,
                size_entity_1.Size,
            ]),
            supplier_module_1.SupplierModule,
            product_module_1.ProductModule,
            stock_module_1.StockModule,
        ],
        providers: [purchase_order_service_1.PurchaseOrderService],
        controllers: [purchase_order_controller_1.PurchaseOrderController],
        exports: [purchase_order_service_1.PurchaseOrderService],
    })
], PurchaseOrderModule);
//# sourceMappingURL=purchase-order.module.js.map