export const apiModules = {
  stat: ["getOrder", "getStats", "getTrafficRank"],
  theme: ["getThemes", "getThemeConfig", "saveThemeConfig", "upload", "remove"],
  serverManage: [
    "getNodes",
    "save",
    "drop",
    "batchDelete",
    "copy",
    "update",
    "sort",
    "resetTraffic",
    "batchResetTraffic",
  ],
  serverGroup: ["fetch", "save", "drop"],
  serverRoute: ["fetch", "save", "drop"],
  payment: ["fetch", "getPaymentMethods", "getPaymentForm", "save", "drop", "show", "sort"],
  notice: ["fetch", "save", "drop", "show", "sort"],
  knowledge: ["fetch", "fetchById", "save", "drop", "show", "sort"],
  plan: ["fetch", "save", "update", "drop", "sort"],
  order: ["fetch", "detail", "paid", "cancel", "update", "assign"],
  giftCard: [
    "templates",
    "createTemplate",
    "updateTemplate",
    "deleteTemplate",
    "codes",
    "generateCodes",
    "toggleCode",
    "usages",
    "statistics",
  ],
  coupon: ["fetch", "generate", "drop", "update"],
  user: [
    "fetch",
    "update",
    "resetSecret",
    "generate",
    "getStatUser",
    "destroy",
    "sendMail",
    "dumpCsv",
    "ban",
  ],
  trafficReset: ["logs", "resetUser", "userHistory"],
  ticket: ["fetch", "fetchById", "reply", "close"],
  config: [
    "fetch",
    "save",
    "getEmailTemplate",
    "testSendMail",
    "setTelegramWebhook",
    "systemStatus",
    "queueStats",
    "queueWorkload",
    "queueMasters",
    "horizonFailedJobs",
  ],
};
