This repository has been archived by the owner on Oct 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.jsx
91 lines (87 loc) · 4.31 KB
/
index.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/* eslint-disable no-unused-vars */
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Utils } from './js/utils.service';
import configureStore from './store/configureStore';
import factory from './js/config.service';
import './vendors/font-awesome-4.6.3/css/font-awesome.min.css';
import {
getUserId as getUserIdService,
getRooms as getRoomsService,
getList as getListService,
addMembership as addMembershipService,
createIM as createIMService,
saveInstance as saveInstanceService,
editInstance as editInstanceService,
removeInstance as removeInstanceService,
sendWelcomeMessage as sendWelcomeMessageService,
authenticateApp as authenticateAppService,
getIntegrationBaseUrl as getIntegrationBaseUrlService,
} from './sagas/apiCalls';
import { connect as connectService } from './services/connectService';
import { registerApplication as registerAppService } from './services/registerApplication';
import { registerEnrichers as registerEnrichersService } from './services/registerEnricher';
import {
initApp as initAppService,
initUnauthenticatedApp as initUnauthenticatedAppService,
} from './services/bootstrapService';
import { getUserJWT as getUserJWTService} from './services/authService';
import { authorizeUser as authService } from './services/authService';
// Components
import ConfigureNewComponent from './components/ConfigureNew/ConfigureNew';
import InputDescriptionComponent from './components/InputDescription/InputDescription';
import InputDescriptionInfoComponent from './components/InputDescriptionInfo/InputDescriptionInfo';
import IntegrationHeaderComponent from './components/IntegrationHeader/IntegrationHeader';
import MessageBoxComponent from './components/MessageBox/MessageBox';
import PostingLocationComponent from './components/PostingLocation/PostingLocationContainer';
import PostingLocationInfoComponent from './components/PostingLocationInfo/PostingLocationInfo';
import SpinnerComponent from './components/Spinner/Spinner';
import SubmitInstanceComponent from './components/SubmitInstance/SubmitInstanceContainer';
import TableInstanceComponent from './components/TableInstance/TableInstanceContainer';
import WebHookURLComponent from './components/WebHookURLCopy/WebHookURLCopy';
import MessageEnricher from './js/messageEnricher';
// Views
import HomeScreen from './views/Home';
import CreateScreen from './views/CreateView';
import EditScreen from './views/EditView';
import InstanceCreatedScreen from './views/InstanceCreated';
import RemoveViewScreen from './views/RemoveView';
// Export Components
export const ConfigureNew = ConfigureNewComponent;
export const InputDescription = InputDescriptionComponent;
export const InputDescriptionInfo = InputDescriptionInfoComponent;
export const IntegrationHeader = IntegrationHeaderComponent;
export const MessageBox = MessageBoxComponent;
export const PostingLocation = PostingLocationComponent;
export const PostingLocationInfo = PostingLocationInfoComponent;
export const Spinner = SpinnerComponent;
export const SubmitInstance = SubmitInstanceComponent;
export const WebHookURL = WebHookURLComponent;
export const MessageEnricherBase = MessageEnricher;
export const TableInstance = TableInstanceComponent;
export const WebHookURLCopy = WebHookURLComponent;
// Export Services
export const getUserId = getUserIdService;
export const getRooms = getRoomsService;
export const getList = getListService;
export const addMembership = addMembershipService;
export const createIM = createIMService;
export const saveInstance = saveInstanceService;
export const editInstance = editInstanceService;
export const removeInstance = removeInstanceService;
export const sendWelcomeMessage = sendWelcomeMessageService;
export const authenticateApp = authenticateAppService;
export const connect = connectService;
export const registerApplication = registerAppService;
export const initApp = initAppService;
export const initUnauthenticatedApp = initUnauthenticatedAppService;
export const getUserJWT = getUserJWTService;
export const authorizeUser = authService;
export const getIntegrationBaseUrl = getIntegrationBaseUrlService;
// Export Views
export const Home = HomeScreen;
export const CreateView = CreateScreen;
export const EditView = EditScreen;
export const InstanceCreated = InstanceCreatedScreen;
export const RemoveView = RemoveViewScreen;