• Get organization message template list handler

    Parameters

    • chatService: ChatDataService

      injected service use to handle the chat related operations

      • getPaginatedMessageTemplates
    • paginationConfig: defaultChat.PaginationConfig

      injected pagination config

    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

      request context [headers, body, params, query].

    Returns Promise<adapter.AdapterHandlerResponse>

    200 Status OK

    • data: message template list

    Description

    This handler will get organization message template list by applying the following steps in sequence:

    1. Get organization id from request params

    2. Get paginated message template list (chatService.getPaginatedMessageTemplates)

    3. Return the message template list

    Throws

    500 NBError Internal Server Error

    • get message template list failed

Generated using TypeDoc