export const spacesConstants = {
  ENV: eXo.env.portal || '',
  PORTAL: eXo.env.portal.context || '',
  PORTAL_NAME: eXo.env.portal.metaPortalName || '',
  PORTAL_CONTEXT: eXo.env.portal.context,
  PORTAL_REST: eXo.env.portal.rest,
  PROFILE_SPACE_LINK: '/g/:spaces:',
  SOCIAL_USER_API: `${eXo.env.portal.context}/${eXo.env.portal.rest}/v1/social/users/`,
  SOCIAL_SPACE_API: `${eXo.env.portal.context}/${eXo.env.portal.rest}/v1/social/spaces/`,
  SPACES_ADMINISTRATION_API: `${eXo.env.portal.context}/${eXo.env.portal.rest}/v1/social/spacesAdministration`,
  SPACE_GROUP_BINDING_API: `${eXo.env.portal.context}/${eXo.env.portal.rest}/v1/social/spaceGroupBindings`,
  USER_API: `${eXo.env.portal.context}/${eXo.env.portal.rest}/v1/users`,
  GROUP_API: `${eXo.env.portal.context}/${eXo.env.portal.rest}/v1/groups`,
  SPACES_PER_PAGE: 30,
  DEFAULT_SPACE_AVATAR: '/platform-ui/skin/images/avatar/DefaultSpaceAvatar.png',
  DEFAULT_USER_AVATAR: '/platform-ui/skin/images/avatar/DefaultUserAvatar.png',
  SPACES_TEMPLATES_API: `${eXo.env.portal.context}/${eXo.env.portal.rest}/v1/social/spaceTemplates`,
  CONTAINER_NAME: eXo.env.portal.containerName || '',
  SPACE_ID: eXo.env.portal.spaceId,
  LANG: eXo.env.portal.language,
  HOST_NAME: window.location.host,
  MANAGERS_ROLE: '/users?role=manager',
  UPLOAD_API: `${eXo.env.portal.context}/upload`,
  MAX_UPLOAD_SIZE: 10,
  MAX_UPLOAD_FILES: 1,
  userName: eXo.env.portal.userName,
  format: 'json',
  typeOfRelation: 'confirmed',
};