<commit_before>let events = [
  "TODAY_PAYLOAD", // Lo de hoy
  "CATEGORIES_PAYLOAD", // Categorias
  "TOGGLE_OFFERTS_PAYLOAD", // Pausar / Reanudar mensajes
  "CONTACT_PAYLOAD", // Contacto
  "STARTER_PAYLOAD", // Get started
];

// only that day deals

module.exports = function (datastore) {
  return {
    get: function ( userObject, event ) {
      for (let _e of events) {
        if (_e === event) {
          let
            eventFile = event.split('_')[0].toLowerCase(),
            eventObj = require(`./events/${eventFile}`),
            eventObject = new eventObj(userObject)
          ;
          
          console.log("Invoking", eventFile);
          
          eventObject.setDatastore(datastore);

          return eventObject;
        }
      }
    }
  };
};
<commit_msg>Registered RESUME payload<commit_after>let events = [
  "TODAY_PAYLOAD", // Lo de hoy
  "CATEGORIES_PAYLOAD", // Categorias
  "TOGGLE_OFFERTS_PAYLOAD", // Pausar / Reanudar mensajes
  "CONTACT_PAYLOAD", // Contacto
  "STARTER_PAYLOAD", // Get started
  "RESUME_OFFERTS_PAYLOAD"
];

// only that day deals

module.exports = function (datastore) {
  return {
    get: function ( userObject, event ) {
      for (let _e of events) {
        if (_e === event) {
          let
            eventFile = event.split('_')[0].toLowerCase(),
            eventObj = require(`./events/${eventFile}`),
            eventObject = new eventObj(userObject)
          ;
          
          console.log("Invoking", eventFile);
          
          eventObject.setDatastore(datastore);

          return eventObject;
        }
      }
    }
  };
};

{'fraction_non_alphanumeric': 0.1272390364422483, 'fraction_numerical': 0.0012353304508956147, 'mean_word_length': 2.079847908745247, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4364364', 'n_tokens_mistral': 535, 'n_tokens_neox': 540, 'n_words': 103}