whole_func_string: function messageBuilder(data, event, store = false, index = false) {
      let message = { 'type': store ? 'store' : index ? 'indexation' : 'request',
          'value': event,
          'data': data
      };
      logger_1.logger.log('debug', `Message value before sending: \n ${JSON.stringify(message)}`);
      return message;
  }
func_code_string: function messageBuilder(data, event, store = false, index = false) {
      let message = { 'type': store ? 'store' : index ? 'indexation' : 'request',
          'value': event,
          'data': data
      };
      logger_1.logger.log('debug', `Message value before sending: \n ${JSON.stringify(message)}`);
      return message;
  }
func_documentation_string: /*
  function messageBuilder create a message from constraints and event type
  @constraints : constraints we want to be checked
  @event : event type