2022-01-15 18:32:46 +00:00
|
|
|
//relatorio
|
2024-03-27 15:02:11 +00:00
|
|
|
import express from "express";
|
2022-01-15 18:32:46 +00:00
|
|
|
|
2024-03-27 15:02:11 +00:00
|
|
|
import isAuth from "../middleware/isAuth";
|
2022-01-15 18:32:46 +00:00
|
|
|
|
2024-03-27 15:02:11 +00:00
|
|
|
import * as ReportController from "../controllers/ReportController";
|
2022-01-15 18:32:46 +00:00
|
|
|
|
2024-03-27 15:02:11 +00:00
|
|
|
const reportRoutes = express.Router();
|
2022-01-15 18:32:46 +00:00
|
|
|
|
2024-03-27 15:02:11 +00:00
|
|
|
reportRoutes.get(
|
|
|
|
"/reports",
|
|
|
|
isAuth,
|
|
|
|
ReportController.reportUserByDateStartDateEnd
|
|
|
|
);
|
|
|
|
|
|
|
|
reportRoutes.post("/reports/onqueue", ReportController.reportOnQueue);
|
2022-08-29 01:09:00 +00:00
|
|
|
|
2024-03-27 15:02:11 +00:00
|
|
|
reportRoutes.get(
|
|
|
|
"/reports/user/services",
|
|
|
|
isAuth,
|
|
|
|
ReportController.reportUserService
|
|
|
|
);
|
2022-05-16 02:48:06 +00:00
|
|
|
|
2024-03-21 21:33:00 +00:00
|
|
|
reportRoutes.get(
|
|
|
|
"/reports/services/numbers",
|
|
|
|
isAuth,
|
|
|
|
ReportController.reportService
|
2024-03-27 15:02:11 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
reportRoutes.get(
|
|
|
|
"/reports/services/queues",
|
|
|
|
isAuth,
|
|
|
|
ReportController.reportServiceByQueue
|
|
|
|
);
|
2024-03-21 21:33:00 +00:00
|
|
|
|
2024-03-27 15:02:11 +00:00
|
|
|
reportRoutes.get(
|
|
|
|
"/reports/messages",
|
|
|
|
isAuth,
|
|
|
|
ReportController.reportMessagesUserByDateStartDateEnd
|
|
|
|
);
|
2024-03-21 21:33:00 +00:00
|
|
|
|
2024-03-27 15:02:11 +00:00
|
|
|
reportRoutes.get(
|
|
|
|
"/reports/count/statusChatEnd",
|
|
|
|
isAuth,
|
|
|
|
ReportController.reportTicksCountByStatusChatEnds
|
|
|
|
);
|
2022-04-18 14:12:49 +00:00
|
|
|
|
2022-01-15 18:32:46 +00:00
|
|
|
export default reportRoutes;
|