code: function MappingManager(option, esUrl, esIndex, mappingType, mappingFile, harvesterApp) {
    this.option = option || process.env.OPTION;
    this.esUrl = esUrl || process.env.ES_URL;
    this.esIndex = esIndex || process.env.ES_INDEX;
    this.mappingType = mappingType || process.env.MAPPING_TYPE;
    this.mappingFile = mappingFile || process.env.ES_MAPPING;
    this.es = new ElasticHarvester(harvesterApp, this.esUrl, this.esIndex, this.mappingType);
  
    if (!_.contains(permittedOptions, this.option)) {
      throw new Error(`Option '${this.option}' is not in the list of permitted options: (${permittedOptions.join(',')})`);
    }
  }
docs: /*
  
  ** Elastic-Search mapping helper. ***
  -------------------------------- *
  Get, add, delete, and update elastic-search mappings.
  Meant to be run @cmd line, but can also be required and used in code.
  
  
  ADD
  #Usage: node mappingManager.js add http://localhost:9200 dealer-api dealers path-to-new-mapping-json
  
  GET
  #Usage: node mappingManager.js get http://localhost:9200 dealer-api
  
  UPDATE (destructive, causes data loss to entire index)
  #Usage: node mappingManager.js update http://localhost:9200 dealer-api dealers path-to-new-mapping-json
  
  DELETE (destructive)
  #Usage: node mappingManager.js delete http://localhost:9200 dealer-api