text: const { genericHandler } = require('../genericHandler');
  
  /**
   * lambda which is used for creating a new case message
   *
   * @param {object} event the AWS event object
   * @returns {Promise<*|undefined>} the api gateway response object containing the statusCode, body, and headers
   */
  exports.createCaseMessageLambda = event =>
    genericHandler(event, async ({ applicationContext }) => {
      return await applicationContext.getUseCases().createCaseMessageInteractor({
        ...JSON.parse(event.body),
        applicationContext,
      });
    });
  