lib/services/model_factory.js
function(entityId) {
      return api
        .one(config.entity, entityId)
        .get()
        .then(this.create, console.error);
    }
function(entityId) {
      return api
        .one(config.entity, entityId)
        .get()
        .then(this.create, console.error);
    }
function ( entityId ) { return api . one ( config . entity , entityId ) . get ( ) . then ( this . create , console . error ) ; }
Fetch and return an entity
@param entityId Id of Entity to fetch
@returns {Deferred} Resolves to fetched Model instance
Fetch and return an entity