import { FIELD_ENTERPRISE, FIELD_HOSTNAME, FIELD_LOGIN } from '../../../constants';
export const fetchCurrentUser = async ({
  api,
  itemId
}) => {
  return new Promise((resolve, reject) => {
    api.getUsersAPI(false).getUser(itemId, resolve, reject, {
      params: {
        fields: [FIELD_ENTERPRISE, FIELD_HOSTNAME, FIELD_LOGIN].toString()
      }
    });
  });
};
//# sourceMappingURL=fetchCurrentUser.js.map