lib/helpers/get-form-view-model.js
function getAccountStoreModel(accountStore) {
  var provider = accountStore.provider;

  return {
    href: accountStore.href,
    name: accountStore.name,
    provider: {
      href: provider.href,
      providerId: provider.providerId,
      callbackUri: provider.callbackUri,
      clientId: provider.clientId
    }
  };
}
function getAccountStoreModel(accountStore) {
  var provider = accountStore.provider;

  return {
    href: accountStore.href,
    name: accountStore.name,
    provider: {
      href: provider.href,
      providerId: provider.providerId,
      callbackUri: provider.callbackUri,
      clientId: provider.clientId
    }
  };
}
function getAccountStoreModel ( accountStore ) { var provider = accountStore . provider ; return { href : accountStore . href , name : accountStore . name , provider : { href : provider . href , providerId : provider . providerId , callbackUri : provider . callbackUri , clientId : provider . clientId } } ; }
Takes an account store object and returns a
new object with only the fields that we want
to expose to the public.

@method

@param {Object} accountStore - The account store.
Takes an account store object and returns a new object with only the fields that we want to expose to the public .