forked from RocketChat/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bridges.js
123 lines (101 loc) · 3.08 KB
/
bridges.js
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import { AppBridges } from '@rocket.chat/apps-engine/server/bridges';
import { AppActivationBridge } from './activation';
import { AppDetailChangesBridge } from './details';
import { AppCloudBridge } from './cloud';
import { AppCommandsBridge } from './commands';
import { AppApisBridge } from './api';
import { AppEnvironmentalVariableBridge } from './environmental';
import { AppHttpBridge } from './http';
import { AppListenerBridge } from './listeners';
import { AppMessageBridge } from './messages';
import { AppPersistenceBridge } from './persistence';
import { AppRoomBridge } from './rooms';
import { AppInternalBridge } from './internal';
import { AppSettingBridge } from './settings';
import { AppUserBridge } from './users';
import { AppLivechatBridge } from './livechat';
import { AppUploadBridge } from './uploads';
import { UiInteractionBridge } from './uiInteraction';
import { AppSchedulerBridge } from './scheduler';
import { AppAnalyticsBridge } from './analytics';
export class RealAppBridges extends AppBridges {
constructor(orch) {
super();
this._actBridge = new AppActivationBridge(orch);
this._cmdBridge = new AppCommandsBridge(orch);
this._apiBridge = new AppApisBridge(orch);
this._detBridge = new AppDetailChangesBridge(orch);
this._envBridge = new AppEnvironmentalVariableBridge(orch);
this._httpBridge = new AppHttpBridge(orch);
this._lisnBridge = new AppListenerBridge(orch);
this._msgBridge = new AppMessageBridge(orch);
this._persistBridge = new AppPersistenceBridge(orch);
this._roomBridge = new AppRoomBridge(orch);
this._internalBridge = new AppInternalBridge(orch);
this._setsBridge = new AppSettingBridge(orch);
this._userBridge = new AppUserBridge(orch);
this._livechatBridge = new AppLivechatBridge(orch);
this._uploadBridge = new AppUploadBridge(orch);
this._uiInteractionBridge = new UiInteractionBridge(orch);
this._schedulerBridge = new AppSchedulerBridge(orch);
this._analyticsBridge = new AppAnalyticsBridge(orch);
this._cloudWorkspaceBridge = new AppCloudBridge(orch);
}
getCommandBridge() {
return this._cmdBridge;
}
getApiBridge() {
return this._apiBridge;
}
getEnvironmentalVariableBridge() {
return this._envBridge;
}
getHttpBridge() {
return this._httpBridge;
}
getListenerBridge() {
return this._lisnBridge;
}
getMessageBridge() {
return this._msgBridge;
}
getPersistenceBridge() {
return this._persistBridge;
}
getAppActivationBridge() {
return this._actBridge;
}
getAppDetailChangesBridge() {
return this._detBridge;
}
getRoomBridge() {
return this._roomBridge;
}
getInternalBridge() {
return this._internalBridge;
}
getServerSettingBridge() {
return this._setsBridge;
}
getUserBridge() {
return this._userBridge;
}
getLivechatBridge() {
return this._livechatBridge;
}
getUploadBridge() {
return this._uploadBridge;
}
getUiInteractionBridge() {
return this._uiInteractionBridge;
}
getSchedulerBridge() {
return this._schedulerBridge;
}
getCloudWorkspaceBridge() {
return this._cloudWorkspaceBridge;
}
getAnalyticsBridge() {
return this._analyticsBridge;
}
}