"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const clientReviewController_js_1 = require("../controllers/clientReviewController.js");
const authMiddleware_js_1 = require("../middleware/authMiddleware.js");
const validateRequest_js_1 = require("../middleware/validateRequest.js");
const asyncHandler_js_1 = require("../utils/asyncHandler.js");
const clientReviewValidators_js_1 = require("../validators/clientReviewValidators.js");
const router = (0, express_1.Router)();
router.use(authMiddleware_js_1.requireStaff);
router.get("/", (0, validateRequest_js_1.validateQuery)(clientReviewValidators_js_1.clientReviewListQuerySchema), (0, asyncHandler_js_1.asyncHandler)(clientReviewController_js_1.listAdminClientReviews));
router.post("/", (0, validateRequest_js_1.validateBody)(clientReviewValidators_js_1.createClientReviewSchema), (0, asyncHandler_js_1.asyncHandler)(clientReviewController_js_1.createAdminClientReview));
router.get("/:id", (0, validateRequest_js_1.validateParams)(clientReviewValidators_js_1.clientReviewIdParamSchema), (0, asyncHandler_js_1.asyncHandler)(clientReviewController_js_1.getAdminClientReviewById));
router.patch("/:id", (0, validateRequest_js_1.validateParams)(clientReviewValidators_js_1.clientReviewIdParamSchema), (0, validateRequest_js_1.validateBody)(clientReviewValidators_js_1.updateClientReviewSchema), (0, asyncHandler_js_1.asyncHandler)(clientReviewController_js_1.updateAdminClientReview));
router.delete("/:id", (0, validateRequest_js_1.validateParams)(clientReviewValidators_js_1.clientReviewIdParamSchema), (0, asyncHandler_js_1.asyncHandler)(clientReviewController_js_1.deleteAdminClientReview));
exports.default = router;
//# sourceMappingURL=adminClientReviewRoutes.js.map