function acFetchAccounts(user) {

  const fetchAccounts = (pack) => {
    return EC.createProfile (pack.uid) 
      .then(pr => { return { ...pack, result: pr, success: pr.data && pr.data.ok } })};
      

  return user && user.uid ? 
    efPattern(cs.actions.FETCH_ACCOUNTS, {
      uid:user.uid,
      pageResults:"accounts"
    }, fetchAccounts) : 
    null;
  
  
}
/**
 * get the user accounts from auth
 */
get the user accounts from auth
get the user accounts from auth
function acFetchAccounts(user) {
  const fetchAccounts = (pack) => {
    return EC.createProfile (pack.uid) 
      .then(pr => { return { ...pack, result: pr, success: pr.data && pr.data.ok } })};
  return user && user.uid ? 
    efPattern(cs.actions.FETCH_ACCOUNTS, {
      uid:user.uid,
      pageResults:"accounts"
    }, fetchAccounts) : 
    null;
}
function acFetchAccounts ( user ) { const fetchAccounts = ( pack ) => { return EC . createProfile ( pack . uid ) . then ( pr => { return { ... pack , result : pr , success : pr . data && pr . data . ok } } ) } ; return user && user . uid ? efPattern ( cs . actions . FETCH_ACCOUNTS , { uid : user . uid , pageResults : "accounts" } , fetchAccounts ) : null ; }
get the user accounts from auth
get the user accounts from auth