client.tsx 475 Bytes
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
3
4
5
6
7
8
9
import { showGenesysUI } from 'genesys';

// For testing purposes
const { API_URL, CLIENT_ID, CLIENT_SECRET } = {
  CLIENT_ID: 'defaultclient@localhost',
  CLIENT_SECRET: 'changeme',
  API_URL: 'http://localhost:8080',
};

Matija Obreza's avatar
Matija Obreza committed
10
11
12
const queryLang = document.location.search && document.location.search.substr(1) || undefined;

showGenesysUI(API_URL, CLIENT_ID, CLIENT_SECRET, document.getElementById('genesys'), { institute: { code: [ 'COL003', 'BEL084', 'ETH013' ] } }, queryLang);