injected service use to handle the chat related operations
Options
injected API use to handle the organization related operations
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
This validator checks if the user is in the message template organization by applying the following steps in sequence:
Authenticate the user (authenticate)
Get message template by id and normalize (chatService.getMessageTemplateByIdAndNormalize)
Check if the message template exists
Check if the message template is admin message template
Get user organizations (organizationAPI.getUserOrganizations)
Check if the user is in the message template organization
401 NBError Unauthorized
403 NBError Forbidden
404 NBError Not Found
Generated using TypeDoc
Is user organization message template validator