2021-10-20 04:35:39 +08:00
|
|
|
import AbstractCollection from '/imports/ui/services/LocalCollectionSynchronizer/LocalCollectionSynchronizer';
|
|
|
|
|
|
|
|
// Collections
|
|
|
|
import PresentationUploadToken from '/imports/api/presentation-upload-token';
|
|
|
|
import Screenshare from '/imports/api/screenshare';
|
|
|
|
import UserInfos from '/imports/api/users-infos';
|
|
|
|
import UserSettings from '/imports/api/users-settings';
|
|
|
|
import VideoStreams from '/imports/api/video-streams';
|
|
|
|
import VoiceUsers from '/imports/api/voice-users';
|
|
|
|
import WhiteboardMultiUser from '/imports/api/whiteboard-multi-user';
|
2021-10-16 03:07:13 +08:00
|
|
|
import Pads, { PadsSessions, PadsUpdates } from '/imports/api/pads';
|
2021-10-20 04:35:39 +08:00
|
|
|
import Breakouts from '/imports/api/breakouts';
|
2023-11-14 03:42:22 +08:00
|
|
|
import Meetings, {
|
2023-11-29 21:22:59 +08:00
|
|
|
RecordMeetings, MeetingTimeRemaining, Notifications,
|
2023-11-14 03:42:22 +08:00
|
|
|
} from '/imports/api/meetings';
|
2023-11-30 22:20:12 +08:00
|
|
|
import Users from '/imports/api/users';
|
2021-10-20 04:35:39 +08:00
|
|
|
|
|
|
|
// Custom Publishers
|
2022-10-28 21:33:21 +08:00
|
|
|
export const localCollectionRegistry = {
|
|
|
|
localPresentationUploadTokenSync: new AbstractCollection(
|
|
|
|
PresentationUploadToken,
|
|
|
|
PresentationUploadToken,
|
|
|
|
),
|
|
|
|
localScreenshareSync: new AbstractCollection(Screenshare, Screenshare),
|
|
|
|
localUserInfosSync: new AbstractCollection(UserInfos, UserInfos),
|
|
|
|
localUserSettingsSync: new AbstractCollection(UserSettings, UserSettings),
|
|
|
|
localVideoStreamsSync: new AbstractCollection(VideoStreams, VideoStreams),
|
|
|
|
localVoiceUsersSync: new AbstractCollection(VoiceUsers, VoiceUsers),
|
|
|
|
localWhiteboardMultiUserSync: new AbstractCollection(WhiteboardMultiUser, WhiteboardMultiUser),
|
|
|
|
localPadsSync: new AbstractCollection(Pads, Pads),
|
|
|
|
localPadsSessionsSync: new AbstractCollection(PadsSessions, PadsSessions),
|
|
|
|
localPadsUpdatesSync: new AbstractCollection(PadsUpdates, PadsUpdates),
|
|
|
|
localRecordMeetingsSync: new AbstractCollection(RecordMeetings, RecordMeetings),
|
|
|
|
localMeetingTimeRemainingSync: new AbstractCollection(MeetingTimeRemaining, MeetingTimeRemaining),
|
|
|
|
localBreakoutsSync: new AbstractCollection(Breakouts, Breakouts),
|
|
|
|
localMeetingsSync: new AbstractCollection(Meetings, Meetings),
|
|
|
|
localUsersSync: new AbstractCollection(Users, Users),
|
2022-12-15 00:23:11 +08:00
|
|
|
localNotificationsSync: new AbstractCollection(Notifications, Notifications),
|
2022-10-28 21:33:21 +08:00
|
|
|
};
|
2021-10-20 04:35:39 +08:00
|
|
|
|
|
|
|
const collectionMirrorInitializer = () => {
|
2022-10-28 21:33:21 +08:00
|
|
|
Object.values(localCollectionRegistry).forEach((localCollection) => {
|
|
|
|
localCollection.setupListeners();
|
|
|
|
});
|
2021-10-20 04:35:39 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export default collectionMirrorInitializer;
|