package router

import (
	"bpmsapi/handler"

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

func InitSuperAdminRouter(r *gin.RouterGroup) {
	superadminrouter := r.Group("/superadmin")
	superadminrouter.POST("/addState", handler.NewCommonHandler("Common").AddStateHandler)
	superadminrouter.POST("/addCity", handler.NewCommonHandler("Common").AddCityHandler)
	superadminrouter.POST("/addService", handler.NewServiceHandler("Service").AddServiceHandler)
	superadminrouter.POST("/addApartment", handler.NewApartmentHandler("Apartment").AddApartmentHandler)
	superadminrouter.GET("/getApartment", handler.NewApartmentHandler("Apartment").GetApartmentHandler)
	superadminrouter.POST("/updateEmployeeProfile", handler.NewProfiletHandler("Profile").UpdateEmployeeProfileHandler)
	superadminrouter.POST("/employeeApartmentConfig", handler.NewProfiletHandler("Profile").EmployeeApartmentConfigHandler)
	superadminrouter.GET("/superAdminDashboard", handler.NewCommonHandler("Common").SuperAdminDashboardHandler)
	superadminrouter.GET("/getAllUsers", handler.NewUserHandler("User").GetAllUsersHandler)
	superadminrouter.GET("/getTechnicianList", handler.NewTechnicianHandler("Common").GetTechnicianHandler)//
	superadminrouter.POST("/updateApartment", handler.NewApartmentHandler("Apartment").UpdateApartmentHandler)
	superadminrouter.POST("/updateApartmentParam", handler.NewSuperAdminHandler("SuperAdmin").UpdateApartmentParamHandler)
	superadminrouter.POST("/updateProblemCategory", handler.NewServiceRequestHandler("Servicerequest").UpdateProblemCategoryHandler)
	superadminrouter.POST("/deleteEmployee", handler.NewProfiletHandler("Employee").DeleteEmployeeHandler)
}
