UNPKG

somod-chat-service

Version:

Serverless Chat Service from SOMOD

27 lines (26 loc) 671 B
export const typeToAllowedActionsMap = { text: ["new", "edit"], image: ["new", "edit"], control: [ "delete", "sessionStart", "sessionExtend", "sessionEnd", "sessionRequirementChange" ], call: ["initiated", "declined"], pooja: ["new", "edit"], donation: ["new", "edit"] }; /** * Store the message type and actions for which the session token is required */ export const sessionRequirement = { text: { new: "thread", edit: "thread" }, image: { new: "thread", edit: "thread" }, control: { sessionStart: "always", sessionExtend: "always", sessionEnd: "always" } };