server/models/helpers/component-from-model.js
function _embedGetter(self, fields, embedGetter, key) {
  let allOpts = [];
  self.res.locals.emiter.emit('get-options', embedGetter, allOpts);
  if (allOpts) {
    allOpts.forEach(function(obj) { obj.embedIn = key; });
    fields.push(...allOpts);
  }
}
function _embedGetter(self, fields, embedGetter, key) {
  let allOpts = [];
  self.res.locals.emiter.emit('get-options', embedGetter, allOpts);
  if (allOpts) {
    allOpts.forEach(function(obj) { obj.embedIn = key; });
    fields.push(...allOpts);
  }
}
get theme options to embed fields