import { getStore } from './store.js'; import { requireSelectedCompanyAdmin } from './companyuser.js'; export async function list(googleAuthId) { const store = await getStore(); return store.account.list(googleAuthId); } export async function create(googleAuthId, data) { await requireSelectedCompanyAdmin(googleAuthId); const store = await getStore(); return store.account.create(googleAuthId, data); } export async function remove(googleAuthId, id) { await requireSelectedCompanyAdmin(googleAuthId); const store = await getStore(); return store.account.delete(googleAuthId, id); }