import { request } from "../api/client";
import {
  BaseService,
  bindEpsHotReload,
  createEps as createEpsClient,
  getService,
  resolveService,
  serviceOf,
  setServicePerms as setServicePermsClient
} from "../../client";
bindEpsHotReload("admin");
export const service = getService("admin");
export async function createEps(opts = {}) {
  return createEpsClient({
    side: "admin",
    requireRoot: "base",
    ...opts
  });
}
export function setServicePerms(perms, isSuper = false) {
  return setServicePermsClient(perms, isSuper, "admin");
}

export {
  BaseService,
  resolveService,
  serviceOf
};
