package router

import (
	"bpmsapi/handler"

	"github.com/gin-gonic/gin"
)

func InitTechnicianRouter(r *gin.RouterGroup) {
	technicianrouter := r.Group("/technician")
	technicianrouter.POST("/createLeave", handler.NewProfiletHandler("Profile").CreateLeaveHandler)
	technicianrouter.POST("/updateServiceRequestTechnician", handler.NewServiceRequestHandler("ServiceRequest").UpdateServiceRequestTechHandler)
	technicianrouter.POST("/getConfirmationPin", handler.NewTechnicianHandler("ServiceRequest").GetConfirmationPinHandler)
	technicianrouter.GET("/orderSummary", handler.NewReportHandler("summary").GetOrderSummaryHandler)
	technicianrouter.GET("/getRole", handler.NewTechnicianHandler("Role").GetRoleHandler)
	technicianrouter.GET("/getAllEmployee", handler.NewTechnicianHandler("Profile").GetAllEmployeeHandler)
	technicianrouter.GET("/TechOrderSummary", handler.NewReportHandler("summary").GetTechOrderSummaryHandler)
	technicianrouter.POST("/cancelLeave", handler.NewProfiletHandler("Profile").CancelLeaveHandler)
}
