lib/index.js
function preserveNamespace (models) {
    const prefixedModels = {}
    if (connector.config.skipModelNamespace) {
      // if namspace is not applied we do not need to preserve it
      return models
    } else {
      for (var model in models) {
        prefixedModels[models[model].name] = models[model]
      }
      return prefixedModels
    }
  }
function preserveNamespace (models) {
    const prefixedModels = {}
    if (connector.config.skipModelNamespace) {
      // if namspace is not applied we do not need to preserve it
      return models
    } else {
      for (var model in models) {
        prefixedModels[models[model].name] = models[model]
      }
      return prefixedModels
    }
  }
function preserveNamespace ( models ) { const prefixedModels = { } if ( connector . config . skipModelNamespace ) { // if namspace is not applied we do not need to preserve it return models } else { for ( var model in models ) { prefixedModels [ models [ model ] . name ] = models [ model ] } return prefixedModels } }
Preserves the models namspaces if it exists.

@param {Array} models the array of existing models
Preserves the models namspaces if it exists .