const config = {
  id: "id",
  created_at: "created_at",
  updated_at: "updated_at",
  deleted_at: "deleted_at",
  name: "name",
  port: "port",
  proxy_ip: "proxy_ip",
  internet_uri: "internet_uri",
  description: "description",
  is_online: "is_online",
  site_ip: "device_ip",
}

const configRoutes = {
  id: "id",
  created_at: "created_at",
  updated_at: "updated_at",
  deleted_at: "deleted_at",
  server_id: "server_id",
  path: "path",
  role: "role",
  description: "description",
  order: "order",
  deepness: "deepness",
  is_cb_on: "is_cb_on",
  is_online: "is_online",
  cb_request_limit: "cb_request_limit",
  cb_min_requests: "cb_min_requests",
  cb_error_threshold_percentage: "cb_error_threshold_percentage",
  cb_interval_duration: "cb_interval_duration",
  cb_open_state_timeout: "cb_open_state_timeout",
  site_ip: "device_ip",
}

const routes = [
  {"path": "/socket.io",    "backend": "http://backend:8000",     "role":  "*", "site": "cdrp"},
  {"path": "/socket.io",    "backend": "http://backend:8000",     "role":  "*", "site": "cdrp"},
  {"path": "/socket.io/*",  "backend": "http://backend:8000",     "role":  "*", "site": "cdrp"},
  {"path": "/api",          "backend": "http://backend:8000",     "role":  "*", "site": "cdrp"},
  {"path": "/api/*",        "backend": "http://backend:8000",     "role":  "*", "site": "cdrp"},
  {"path": "/api/*/*",      "backend": "http://backend:8000",     "role":  "*", "site": "cdrp"},
  {"path": "/api/*/*/*",    "backend": "http://backend:8000",     "role":  "*", "site": "cdrp"},
  {"path": "/api/*/*/*/*",  "backend": "http://backend:8000",     "role":  "*", "site": "cdrp"},
  {"path": "/swagger",      "backend": "http://backend:8000",     "role":  "*", "site": "cdrp"},
  {"path": "/swagger/*",    "backend": "http://backend:8000",     "role":  "*", "site": "cdrp"},
  {"path": "/swagger/*/*",  "backend": "http://backend:8000",     "role":  "*", "site": "cdrp"},
  {"path": "/swagger/*/*/*","backend": "http://backend:8000",     "role":  "*", "site": "cdrp"},
  {"path": "/",             "backend": "http://frontend:8000",    "role":  "*", "site": "cdrp"},
  {"path": "/*",            "backend": "http://frontend:8000",    "role":  "*", "site": "cdrp"},
  {"path": "/*/*",          "backend": "http://frontend:8000",    "role":  "*", "site": "cdrp"},
  {"path": "/*/*/*",        "backend": "http://frontend:8000",    "role":  "*", "site": "cdrp"},
  {"path": "/*/*/*/*",      "backend": "http://frontend:8000",    "role":  "*", "site": "cdrp"},
  {"path": "/*/*/*/*/*",    "backend": "http://frontend:8000",    "role":  "*", "site": "cdrp"}
]

const sites = [
  {"name": "cdrp"},
  {"name": "live_monitore"},
  {"name": "buk"},
  {"name": "mtso"},
  {"name": "as_dmps"}
]

export {routes, sites, config, configRoutes}
