func IncomingMessageCatalog(w http.ResponseWriter, req *http.Request) {
	// Check ticket
	t, err := fetchTicketHeader(req)
	if err != nil {
		httputils.ErrorOut(w, http.StatusUnauthorized, invalidTicketID)
		return
	}

	err = message.StoreCatalog(t.ID, req.Body)
	if err != nil {
		httputils.ErrorOut(w, http.StatusInternalServerError, "error while storing message catalog")
		return
	}

	_ = httputils.JSONOut(w, http.StatusOK, httputils.StatusOk("saved message catalog"))
}
// IncomingMessageCatalog deals with uploading message catalogs
IncomingMessageCatalog deals with uploading message catalogs
// IncomingMessageCatalog deals with uploading message catalogs
func IncomingMessageCatalog(w http.ResponseWriter, req *http.Request) {
	t, err := fetchTicketHeader(req)
	if err != nil {
		httputils.ErrorOut(w, http.StatusUnauthorized, invalidTicketID)
		return
	}
	err = message.StoreCatalog(t.ID, req.Body)
	if err != nil {
		httputils.ErrorOut(w, http.StatusInternalServerError, "error while storing message catalog")
		return
	}
	_ = httputils.JSONOut(w, http.StatusOK, httputils.StatusOk("saved message catalog"))
}
func IncomingMessageCatalog ( w http . ResponseWriter , req * http . Request ) { t , err := fetchTicketHeader ( req ) if err != nil { httputils . ErrorOut ( w , http . StatusUnauthorized , invalidTicketID ) return } err = message . StoreCatalog ( t . ID , req . Body ) if err != nil { httputils . ErrorOut ( w , http . StatusInternalServerError , " " ) return } _ = httputils . JSONOut ( w , http . StatusOK , httputils . StatusOk ( " " ) ) }
IncomingMessageCatalog deals with uploading message catalogs
IncomingMessageCatalog deals with uploading message catalogs
// Check ticket