urgent-analysis
Version:
A powerful toolkit for emergency reporting including FIR filing, raising complaints, emergency calls, and analyzing word severity.
17 lines (14 loc) • 326 B
JavaScript
function raiseComplaint({ type, description, user }) {
if (!type || !description || !user) {
throw new Error("Type, description, and user are required.");
}
return {
message: "📢 Complaint Raised",
complaint: {
type,
description,
raisedBy: user,
}
};
}
export { raiseComplaint };