Merge branch 'develop' into single-server

# Conflicts:
#	android/app/build.gradle
#	app/views/RoomsListView/Header/Header.ios.js
This commit is contained in:
Diego Mello 2020-07-17 10:41:23 -03:00
commit c62346fb2d
140 changed files with 12963 additions and 10744 deletions

View File

@ -3,7 +3,7 @@ defaults: &defaults
macos: &macos
macos:
xcode: "11.2.1"
xcode: "11.5.0"
bash-env: &bash-env
BASH_ENV: "~/.nvm/nvm.sh"
@ -33,14 +33,12 @@ save-npm-cache-mac: &save-npm-cache-mac
- ./node_modules
install-node: &install-node
name: Install Node 10
name: Install Node
command: |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
source ~/.nvm/nvm.sh
# https://github.com/creationix/nvm/issues/1394
set +e
nvm install 10
echo 'export PATH="/home/circleci/.nvm/versions/node/v10.20.1/bin:$PATH"' >> ~/.bash_profile
INSTALLED_NODE=`nvm which current`
echo "export PATH=\"${INSTALLED_NODE%%/node}:\$PATH\"" >> ~/.bash_profile
source ~/.bash_profile
restore-gems-cache: &restore-gems-cache

2
.gitignore vendored
View File

@ -59,3 +59,5 @@ buck-out/
coverage
.vscode/
e2e/docker/rc_test_env/docker-compose.yml
e2e/docker/data/db

View File

@ -26,7 +26,7 @@ android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
APPLICATIONID=chat.rocket.reactnative
VERSIONNAME=4.8.0
VERSIONNAME=4.9.0
VERSIONCODE=1
BugsnagAPIKey=""
KEYSTORE=my-upload-key.keystore

View File

@ -1,5 +1,3 @@
import { isIOS, isAndroid } from '../utils/deviceInfo';
export const STATUS_COLORS = {
online: '#2de0a5',
busy: '#f5455c',
@ -8,7 +6,7 @@ export const STATUS_COLORS = {
};
export const SWITCH_TRACK_COLOR = {
false: isAndroid ? '#f5455c' : null,
false: '#f5455c',
true: '#2de0a5'
};
@ -34,11 +32,11 @@ export const themes = {
separatorColor: '#cbcbcc',
navbarBackground: '#ffffff',
headerBorder: '#B2B2B2',
headerBackground: isIOS ? '#f8f8f8' : '#2f343d',
headerBackground: '#EEEFF1',
headerSecondaryBackground: '#ffffff',
headerTintColor: isAndroid ? '#ffffff' : '#1d74f5',
headerTitleColor: isAndroid ? '#ffffff' : '#0d0e12',
headerSecondaryText: isAndroid ? '#9ca2a8' : '#1d74f5',
headerTintColor: '#6C727A',
headerTitleColor: '#0C0D0F',
headerSecondaryText: '#1d74f5',
toastBackground: '#0C0D0F',
videoBackground: '#1f2329',
favoriteBackground: '#ffbb00',
@ -63,7 +61,7 @@ export const themes = {
chatComponentBackground: '#192132',
auxiliaryBackground: '#07101e',
bannerBackground: '#0e1f38',
titleText: '#FFFFFF',
titleText: '#f9f9f9',
bodyText: '#e8ebed',
backdropColor: '#000000',
dangerColor: '#f5455c',
@ -80,9 +78,9 @@ export const themes = {
headerBorder: '#2F3A4B',
headerBackground: '#0b182c',
headerSecondaryBackground: '#0b182c',
headerTintColor: isAndroid ? '#ffffff' : '#1d74f5',
headerTitleColor: '#FFFFFF',
headerSecondaryText: isAndroid ? '#9297a2' : '#1d74f5',
headerTintColor: '#f9f9f9',
headerTitleColor: '#f9f9f9',
headerSecondaryText: '#9297a2',
toastBackground: '#0C0D0F',
videoBackground: '#1f2329',
favoriteBackground: '#ffbb00',
@ -124,9 +122,9 @@ export const themes = {
headerBorder: '#323232',
headerBackground: '#0d0d0d',
headerSecondaryBackground: '#0d0d0d',
headerTintColor: isAndroid ? '#ffffff' : '#1e9bfe',
headerTintColor: '#f9f9f9',
headerTitleColor: '#f9f9f9',
headerSecondaryText: isAndroid ? '#b2b8c6' : '#1e9bfe',
headerSecondaryText: '#b2b8c6',
toastBackground: '#0C0D0F',
videoBackground: '#1f2329',
favoriteBackground: '#ffbb00',

View File

@ -29,7 +29,8 @@ export default StyleSheet.create({
},
handle: {
justifyContent: 'center',
alignItems: 'center'
alignItems: 'center',
paddingBottom: 8
},
handleIndicator: {
width: 40,

View File

@ -17,7 +17,7 @@ const styles = StyleSheet.create({
export const DisclosureImage = React.memo(({ theme }) => (
<CustomIcon
name='chevron-right'
color={themes[theme].auxiliaryTintColor}
color={themes[theme].auxiliaryText}
size={20}
/>
));

View File

@ -20,6 +20,11 @@ export const getHeaderHeight = (isLandscape) => {
return 56;
};
export const getHeaderTitlePosition = insets => ({
left: 60 + insets.left,
right: 80 + insets.right
});
const styles = StyleSheet.create({
container: {
height: headerHeight,

View File

@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import { HeaderButtons, HeaderButton, Item } from 'react-navigation-header-buttons';
import { CustomIcon } from '../lib/Icons';
import { isIOS, isAndroid } from '../utils/deviceInfo';
import { isIOS } from '../utils/deviceInfo';
import { themes } from '../constants/colors';
import I18n from '../i18n';
import { withTheme } from '../theme';
@ -15,11 +15,7 @@ const CustomHeaderButton = React.memo(withTheme(({ theme, ...props }) => (
{...props}
IconComponent={CustomIcon}
iconSize={headerIconSize}
color={
isAndroid
? themes[theme].headerTitleColor
: themes[theme].headerTintColor
}
color={themes[theme].headerTintColor}
/>
)));
@ -32,7 +28,7 @@ export const CustomHeaderButtons = React.memo(props => (
export const DrawerButton = React.memo(({ navigation, testID, ...otherProps }) => (
<CustomHeaderButtons left>
<Item title='drawer' iconName='customize' onPress={navigation.toggleDrawer} testID={testID} {...otherProps} />
<Item title='drawer' iconName='menu_hamburguer' onPress={navigation.toggleDrawer} testID={testID} {...otherProps} />
</CustomHeaderButtons>
));

View File

@ -5,29 +5,32 @@ import {
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Base64 } from 'js-base64';
import * as AppleAuthentication from 'expo-apple-authentication';
import { withTheme } from '../theme';
import sharedStyles from '../views/Styles';
import { themes } from '../constants/colors';
import { loginRequest as loginRequestAction } from '../actions/login';
import Button from './Button';
import OrSeparator from './OrSeparator';
import Touch from '../utils/touch';
import I18n from '../i18n';
import random from '../utils/random';
import RocketChat from '../lib/rocketchat';
const BUTTON_HEIGHT = 48;
const SERVICE_HEIGHT = 58;
const BORDER_RADIUS = 2;
const SERVICES_COLLAPSED_HEIGHT = 174;
const styles = StyleSheet.create({
serviceButton: {
borderRadius: 2,
borderRadius: BORDER_RADIUS,
marginBottom: 10
},
serviceButtonContainer: {
borderRadius: 2,
borderRadius: BORDER_RADIUS,
width: '100%',
height: 48,
height: BUTTON_HEIGHT,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
@ -187,6 +190,21 @@ class LoginServices extends React.PureComponent {
this.openOAuth({ url, ssoToken, authType: 'cas' });
}
onPressAppleLogin = async() => {
try {
const { fullName, email, identityToken } = await AppleAuthentication.signInAsync({
requestedScopes: [
AppleAuthentication.AppleAuthenticationScope.FULL_NAME,
AppleAuthentication.AppleAuthenticationScope.EMAIL
]
});
await RocketChat.loginOAuthOrSso({ fullName, email, identityToken });
} catch {
// Do nothing
}
}
getOAuthState = () => {
const credentialToken = random(43);
return Base64.encodeURI(JSON.stringify({ loginStyle: 'popup', credentialToken, isCordova: true }));
@ -262,6 +280,7 @@ class LoginServices extends React.PureComponent {
}
renderItem = (service) => {
const { CAS_enabled, theme } = this.props;
let { name } = service;
name = name === 'meteor-developer' ? 'meteor' : name;
const icon = `icon_${ name }`;
@ -285,11 +304,27 @@ class LoginServices extends React.PureComponent {
onPress = () => this.onPressCas();
break;
}
case 'apple': {
onPress = () => this.onPressAppleLogin();
break;
}
default:
break;
}
if (name === 'apple') {
return (
<AppleAuthentication.AppleAuthenticationButton
buttonType={AppleAuthentication.AppleAuthenticationButtonType.CONTINUE}
buttonStyle={theme === 'light' ? AppleAuthentication.AppleAuthenticationButtonStyle.BLACK : AppleAuthentication.AppleAuthenticationButtonStyle.WHITE}
cornerRadius={BORDER_RADIUS}
style={[styles.serviceButton, { height: BUTTON_HEIGHT }]}
onPress={onPress}
/>
);
}
name = name.charAt(0).toUpperCase() + name.slice(1);
const { CAS_enabled, theme } = this.props;
let buttonText;
if (isSaml || (service.service === 'cas' && CAS_enabled)) {
buttonText = <Text style={[styles.serviceName, isSaml && { color: service.buttonLabelColor }]}>{name}</Text>;
@ -356,8 +391,4 @@ const mapStateToProps = state => ({
services: state.login.services
});
const mapDispatchToProps = dispatch => ({
loginRequest: params => dispatch(loginRequestAction(params))
});
export default connect(mapStateToProps, mapDispatchToProps)(withTheme(LoginServices));
export default connect(mapStateToProps)(withTheme(LoginServices));

View File

@ -14,17 +14,20 @@ import { Button } from '../ActionSheet';
import { useDimensions } from '../../dimensions';
export const HEADER_HEIGHT = 36;
const ITEM_SIZE = 36;
const CONTAINER_MARGIN = 8;
const ITEM_MARGIN = 8;
const styles = StyleSheet.create({
container: {
alignItems: 'center',
marginHorizontal: 8
marginHorizontal: CONTAINER_MARGIN
},
headerItem: {
height: 36,
width: 36,
borderRadius: 20,
marginHorizontal: 8,
height: ITEM_SIZE,
width: ITEM_SIZE,
borderRadius: ITEM_SIZE / 2,
marginHorizontal: ITEM_MARGIN,
justifyContent: 'center',
alignItems: 'center'
},
@ -84,7 +87,7 @@ HeaderFooter.propTypes = {
};
const Header = React.memo(({
handleReaction, server, message, theme
handleReaction, server, message, isMasterDetail, theme
}) => {
const [items, setItems] = useState([]);
const { width, height } = useDimensions();
@ -96,8 +99,8 @@ const Header = React.memo(({
let freqEmojis = await freqEmojiCollection.query().fetch();
const isLandscape = width > height;
const size = isLandscape ? width / 2 : width;
const quantity = (size / 50) - 1;
const size = (isLandscape || isMasterDetail ? width / 2 : width) - (CONTAINER_MARGIN * 2);
const quantity = (size / (ITEM_SIZE + (ITEM_MARGIN * 2))) - 1;
freqEmojis = freqEmojis.concat(DEFAULT_EMOJIS).slice(0, quantity);
setItems(freqEmojis);
@ -135,6 +138,7 @@ Header.propTypes = {
handleReaction: PropTypes.func,
server: PropTypes.string,
message: PropTypes.object,
isMasterDetail: PropTypes.bool,
theme: PropTypes.string
};
export default withTheme(Header);

View File

@ -32,7 +32,8 @@ const MessageActions = React.memo(forwardRef(({
Message_AllowEditing_BlockEditInMinutes,
Message_AllowPinning,
Message_AllowStarring,
Message_Read_Receipt_Store_Users
Message_Read_Receipt_Store_Users,
isMasterDetail
}, ref) => {
let permissions = {};
const { showActionSheet, hideActionSheet } = useActionSheet();
@ -116,7 +117,12 @@ const MessageActions = React.memo(forwardRef(({
const handleEdit = message => editInit(message);
const handleCreateDiscussion = (message) => {
Navigation.navigate('CreateDiscussionView', { message, channel: room });
const params = { message, channel: room, showCloseModal: true };
if (isMasterDetail) {
Navigation.navigate('ModalStackNavigator', { screen: 'CreateDiscussionView', params });
} else {
Navigation.navigate('NewMessageStackNavigator', { screen: 'CreateDiscussionView', params });
}
};
const handleUnread = async(message) => {
@ -377,6 +383,7 @@ const MessageActions = React.memo(forwardRef(({
<Header
server={server}
handleReaction={handleReaction}
isMasterDetail={isMasterDetail}
message={message}
/>
) : null)
@ -412,7 +419,8 @@ const mapStateToProps = state => ({
Message_AllowEditing_BlockEditInMinutes: state.settings.Message_AllowEditing_BlockEditInMinutes,
Message_AllowPinning: state.settings.Message_AllowPinning,
Message_AllowStarring: state.settings.Message_AllowStarring,
Message_Read_Receipt_Store_Users: state.settings.Message_Read_Receipt_Store_Users
Message_Read_Receipt_Store_Users: state.settings.Message_Read_Receipt_Store_Users,
isMasterDetail: state.app.isMasterDetail
});
export default connect(mapStateToProps, null, null, { forwardRef: true })(MessageActions);

View File

@ -17,7 +17,7 @@ export default class EmojiKeyboard extends React.PureComponent {
constructor(props) {
super(props);
const state = store.getState();
this.baseUrl = state.server.server;
this.baseUrl = state.share.server || state.server.server;
}
onEmojiSelected = (emoji) => {

View File

@ -0,0 +1,226 @@
import React from 'react';
import PropTypes from 'prop-types';
import { View, Text } from 'react-native';
import { Audio } from 'expo-av';
import { BorderlessButton } from 'react-native-gesture-handler';
import { getInfoAsync } from 'expo-file-system';
import { deactivateKeepAwake, activateKeepAwake } from 'expo-keep-awake';
import styles from './styles';
import I18n from '../../i18n';
import { themes } from '../../constants/colors';
import { CustomIcon } from '../../lib/Icons';
const RECORDING_EXTENSION = '.aac';
const RECORDING_SETTINGS = {
android: {
extension: RECORDING_EXTENSION,
outputFormat: Audio.RECORDING_OPTION_ANDROID_OUTPUT_FORMAT_AAC_ADTS,
audioEncoder: Audio.RECORDING_OPTION_ANDROID_AUDIO_ENCODER_AAC,
sampleRate: Audio.RECORDING_OPTIONS_PRESET_LOW_QUALITY.android.sampleRate,
numberOfChannels: Audio.RECORDING_OPTIONS_PRESET_LOW_QUALITY.android.numberOfChannels,
bitRate: Audio.RECORDING_OPTIONS_PRESET_LOW_QUALITY.android.bitRate
},
ios: {
extension: RECORDING_EXTENSION,
audioQuality: Audio.RECORDING_OPTION_IOS_AUDIO_QUALITY_MIN,
sampleRate: Audio.RECORDING_OPTIONS_PRESET_LOW_QUALITY.ios.sampleRate,
numberOfChannels: Audio.RECORDING_OPTIONS_PRESET_LOW_QUALITY.ios.numberOfChannels,
bitRate: Audio.RECORDING_OPTIONS_PRESET_LOW_QUALITY.ios.bitRate,
outputFormat: Audio.RECORDING_OPTION_IOS_OUTPUT_FORMAT_MPEG4AAC
}
};
const RECORDING_MODE = {
allowsRecordingIOS: true,
playsInSilentModeIOS: true,
staysActiveInBackground: false,
shouldDuckAndroid: true,
playThroughEarpieceAndroid: false,
interruptionModeIOS: Audio.INTERRUPTION_MODE_IOS_DO_NOT_MIX,
interruptionModeAndroid: Audio.INTERRUPTION_MODE_ANDROID_DO_NOT_MIX
};
const formatTime = function(seconds) {
let minutes = Math.floor(seconds / 60);
seconds %= 60;
if (minutes < 10) { minutes = `0${ minutes }`; }
if (seconds < 10) { seconds = `0${ seconds }`; }
return `${ minutes }:${ seconds }`;
};
export default class RecordAudio extends React.PureComponent {
static propTypes = {
theme: PropTypes.string,
recordingCallback: PropTypes.func,
onFinish: PropTypes.func
}
constructor(props) {
super(props);
this.isRecorderBusy = false;
this.state = {
isRecording: false,
recordingDurationMillis: 0
};
}
componentDidUpdate() {
const { recordingCallback } = this.props;
const { isRecording } = this.state;
recordingCallback(isRecording);
}
componentWillUnmount() {
if (this.recording) {
this.cancelRecordingAudio();
}
}
get duration() {
const { recordingDurationMillis } = this.state;
return formatTime(Math.floor(recordingDurationMillis / 1000));
}
isRecordingPermissionGranted = async() => {
try {
const permission = await Audio.getPermissionsAsync();
if (permission.status === 'granted') {
return true;
}
await Audio.requestPermissionsAsync();
} catch {
// Do nothing
}
return false;
}
onRecordingStatusUpdate = (status) => {
this.setState({
isRecording: status.isRecording,
recordingDurationMillis: status.durationMillis
});
}
startRecordingAudio = async() => {
if (!this.isRecorderBusy) {
this.isRecorderBusy = true;
try {
const canRecord = await this.isRecordingPermissionGranted();
if (canRecord) {
await Audio.setAudioModeAsync(RECORDING_MODE);
this.recording = new Audio.Recording();
await this.recording.prepareToRecordAsync(RECORDING_SETTINGS);
this.recording.setOnRecordingStatusUpdate(this.onRecordingStatusUpdate);
await this.recording.startAsync();
activateKeepAwake();
} else {
await Audio.requestPermissionsAsync();
}
} catch (error) {
// Do nothing
}
this.isRecorderBusy = false;
}
};
finishRecordingAudio = async() => {
if (!this.isRecorderBusy) {
const { onFinish } = this.props;
this.isRecorderBusy = true;
try {
await this.recording.stopAndUnloadAsync();
const fileURI = this.recording.getURI();
const fileData = await getInfoAsync(fileURI);
const fileInfo = {
name: `${ Date.now() }.aac`,
mime: 'audio/aac',
type: 'audio/aac',
store: 'Uploads',
path: fileURI,
size: fileData.size
};
onFinish(fileInfo);
} catch (error) {
// Do nothing
}
this.setState({ isRecording: false, recordingDurationMillis: 0 });
deactivateKeepAwake();
this.isRecorderBusy = false;
}
};
cancelRecordingAudio = async() => {
if (!this.isRecorderBusy) {
this.isRecorderBusy = true;
try {
await this.recording.stopAndUnloadAsync();
} catch (error) {
// Do nothing
}
this.setState({ isRecording: false, recordingDurationMillis: 0 });
deactivateKeepAwake();
this.isRecorderBusy = false;
}
};
render() {
const { theme } = this.props;
const { isRecording } = this.state;
if (!isRecording) {
return (
<BorderlessButton
onPress={this.startRecordingAudio}
style={styles.actionButton}
testID='messagebox-send-audio'
accessibilityLabel={I18n.t('Send_audio_message')}
accessibilityTraits='button'
>
<CustomIcon name='mic' size={23} color={themes[theme].tintColor} />
</BorderlessButton>
);
}
return (
<View style={styles.recordingContent}>
<View style={styles.textArea}>
<BorderlessButton
onPress={this.cancelRecordingAudio}
accessibilityLabel={I18n.t('Cancel_recording')}
accessibilityTraits='button'
style={styles.actionButton}
>
<CustomIcon
size={22}
color={themes[theme].dangerColor}
name='Cross'
/>
</BorderlessButton>
<Text
style={[styles.recordingCancelText, { color: themes[theme].titleText }]}
>
{this.duration}
</Text>
</View>
<BorderlessButton
onPress={this.finishRecordingAudio}
accessibilityLabel={I18n.t('Finish_recording')}
accessibilityTraits='button'
style={styles.actionButton}
>
<CustomIcon
size={22}
color={themes[theme].successColor}
name='check'
/>
</BorderlessButton>
</View>
);
}
}

View File

@ -1,172 +0,0 @@
import React from 'react';
import PropTypes from 'prop-types';
import {
View, PermissionsAndroid, Text
} from 'react-native';
import { AudioRecorder, AudioUtils } from 'react-native-audio';
import { BorderlessButton } from 'react-native-gesture-handler';
import { activateKeepAwake, deactivateKeepAwake } from 'expo-keep-awake';
import * as FileSystem from 'expo-file-system';
import styles from './styles';
import I18n from '../../i18n';
import { isIOS, isAndroid } from '../../utils/deviceInfo';
import { CustomIcon } from '../../lib/Icons';
import { themes } from '../../constants/colors';
import SafeAreaView from '../SafeAreaView';
export const _formatTime = function(seconds) {
let minutes = Math.floor(seconds / 60);
seconds %= 60;
if (minutes < 10) { minutes = `0${ minutes }`; }
if (seconds < 10) { seconds = `0${ seconds }`; }
return `${ minutes }:${ seconds }`;
};
export default class extends React.PureComponent {
static async permission() {
if (!isAndroid) {
return true;
}
const rationale = {
title: I18n.t('Microphone_Permission'),
message: I18n.t('Microphone_Permission_Message')
};
const result = await PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.RECORD_AUDIO, rationale);
return result === true || result === PermissionsAndroid.RESULTS.GRANTED;
}
static propTypes = {
theme: PropTypes.string,
onFinish: PropTypes.func.isRequired
}
constructor() {
super();
this.recordingCanceled = false;
this.recording = true;
this.name = `${ Date.now() }.aac`;
this.state = {
currentTime: '00:00'
};
}
componentDidMount() {
const audioPath = `${ AudioUtils.CachesDirectoryPath }/${ this.name }`;
AudioRecorder.prepareRecordingAtPath(audioPath, {
SampleRate: 22050,
Channels: 1,
AudioQuality: 'Low',
AudioEncoding: 'aac',
OutputFormat: 'aac_adts'
});
AudioRecorder.onProgress = (data) => {
this.setState({
currentTime: _formatTime(Math.floor(data.currentTime))
});
};
//
AudioRecorder.onFinished = (data) => {
if (!this.recordingCanceled && isIOS) {
this.finishRecording(data.status === 'OK', data.audioFileURL, data.audioFileSize);
}
};
AudioRecorder.startRecording();
activateKeepAwake();
}
componentWillUnmount() {
if (this.recording) {
this.cancelAudioMessage();
}
deactivateKeepAwake();
}
finishRecording = (didSucceed, filePath, size) => {
const { onFinish } = this.props;
if (!didSucceed) {
return onFinish && onFinish(didSucceed);
}
const fileInfo = {
name: this.name,
mime: 'audio/aac',
type: 'audio/aac',
store: 'Uploads',
path: filePath,
size
};
return onFinish && onFinish(fileInfo);
}
finishAudioMessage = async() => {
try {
this.recording = false;
let filePath = await AudioRecorder.stopRecording();
if (isAndroid) {
filePath = filePath.startsWith('file://') ? filePath : `file://${ filePath }`;
const data = await FileSystem.getInfoAsync(decodeURIComponent(filePath), { size: true });
this.finishRecording(true, filePath, data.size);
}
} catch (err) {
this.finishRecording(false);
}
}
cancelAudioMessage = async() => {
this.recording = false;
this.recordingCanceled = true;
await AudioRecorder.stopRecording();
return this.finishRecording(false);
}
render() {
const { currentTime } = this.state;
const { theme } = this.props;
return (
<SafeAreaView
testID='messagebox-recording'
theme={theme}
style={[
styles.textBox,
{ borderTopColor: themes[theme].borderColor }
]}
>
<View style={[styles.textArea, { backgroundColor: themes[theme].messageboxBackground }]}>
<BorderlessButton
onPress={this.cancelAudioMessage}
accessibilityLabel={I18n.t('Cancel_recording')}
accessibilityTraits='button'
style={styles.actionButton}
>
<CustomIcon
size={22}
color={themes[theme].dangerColor}
name='Cross'
/>
</BorderlessButton>
<Text key='currentTime' style={[styles.textBoxInput, { color: themes[theme].titleText }]}>{currentTime}</Text>
<BorderlessButton
onPress={this.finishAudioMessage}
accessibilityLabel={I18n.t('Finish_recording')}
accessibilityTraits='button'
style={styles.actionButton}
>
<CustomIcon
size={22}
color={themes[theme].successColor}
name='check'
/>
</BorderlessButton>
</View>
</SafeAreaView>
);
}
}

View File

@ -2,23 +2,19 @@ import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import { SendButton, AudioButton, ActionsButton } from './buttons';
import { SendButton, ActionsButton } from './buttons';
import styles from './styles';
const RightButtons = React.memo(({
theme, showSend, submit, recordAudioMessage, recordAudioMessageEnabled, showMessageBoxActions, isActionsEnabled
theme, showSend, submit, showMessageBoxActions, isActionsEnabled
}) => {
if (showSend) {
return <SendButton onPress={submit} theme={theme} />;
}
if (recordAudioMessageEnabled || isActionsEnabled) {
return (
<>
{recordAudioMessageEnabled ? <AudioButton onPress={recordAudioMessage} theme={theme} /> : null}
{isActionsEnabled ? <ActionsButton onPress={showMessageBoxActions} theme={theme} /> : null}
</>
);
if (isActionsEnabled) {
return <ActionsButton onPress={showMessageBoxActions} theme={theme} />;
}
return <View style={styles.buttonsWhitespace} />;
});
@ -26,8 +22,6 @@ RightButtons.propTypes = {
theme: PropTypes.string,
showSend: PropTypes.bool,
submit: PropTypes.func.isRequired,
recordAudioMessage: PropTypes.func.isRequired,
recordAudioMessageEnabled: PropTypes.bool,
showMessageBoxActions: PropTypes.func.isRequired,
isActionsEnabled: PropTypes.bool
};

View File

@ -1,26 +1,19 @@
import React from 'react';
import PropTypes from 'prop-types';
import { SendButton, AudioButton } from './buttons';
import { SendButton } from './buttons';
const RightButtons = React.memo(({
theme, showSend, submit, recordAudioMessage, recordAudioMessageEnabled
}) => {
const RightButtons = React.memo(({ theme, showSend, submit }) => {
if (showSend) {
return <SendButton theme={theme} onPress={submit} />;
}
if (recordAudioMessageEnabled) {
return <AudioButton theme={theme} onPress={recordAudioMessage} />;
}
return null;
});
RightButtons.propTypes = {
theme: PropTypes.string,
showSend: PropTypes.bool,
submit: PropTypes.func.isRequired,
recordAudioMessage: PropTypes.func.isRequired,
recordAudioMessageEnabled: PropTypes.bool
submit: PropTypes.func.isRequired
};
export default RightButtons;

View File

@ -1,21 +0,0 @@
import React from 'react';
import PropTypes from 'prop-types';
import BaseButton from './BaseButton';
const AudioButton = React.memo(({ theme, onPress }) => (
<BaseButton
onPress={onPress}
testID='messagebox-send-audio'
accessibilityLabel='Send_audio_message'
icon='mic'
theme={theme}
/>
));
AudioButton.propTypes = {
theme: PropTypes.string,
onPress: PropTypes.func.isRequired
};
export default AudioButton;

View File

@ -1,13 +1,11 @@
import CancelEditingButton from './CancelEditingButton';
import ToggleEmojiButton from './ToggleEmojiButton';
import SendButton from './SendButton';
import AudioButton from './AudioButton';
import ActionsButton from './ActionsButton';
export {
CancelEditingButton,
ToggleEmojiButton,
SendButton,
AudioButton,
ActionsButton
};

View File

@ -17,7 +17,7 @@ import RocketChat from '../../lib/rocketchat';
import styles from './styles';
import database from '../../lib/database';
import { emojis } from '../../emojis';
import Recording from './Recording';
import RecordAudio from './RecordAudio';
import log from '../../utils/log';
import I18n from '../../i18n';
import ReplyPreview from './ReplyPreview';
@ -541,12 +541,14 @@ class MessageBox extends Component {
setCommandPreview = async(command, name, params) => {
const { rid } = this.props;
try {
const { preview } = await RocketChat.getCommandPreview(name, rid, params);
this.setState({ commandPreview: preview.items, showCommandPreview: true, command });
const { success, preview } = await RocketChat.getCommandPreview(name, rid, params);
if (success) {
return this.setState({ commandPreview: preview?.items, showCommandPreview: true, command });
}
} catch (e) {
this.setState({ commandPreview: [], showCommandPreview: true, command: {} });
log(e);
}
this.setState({ commandPreview: [], showCommandPreview: true, command: {} });
}
setInput = (text) => {
@ -669,8 +671,7 @@ class MessageBox extends Component {
});
}
recordAudioMessage = async() => {
const recording = await Recording.permission();
recordingCallback = (recording) => {
this.setState({ recording });
}
@ -679,9 +680,6 @@ class MessageBox extends Component {
rid, tmid, baseUrl: server, user
} = this.props;
this.setState({
recording: false
});
if (fileInfo) {
try {
if (this.canUploadFile(fileInfo)) {
@ -844,63 +842,84 @@ class MessageBox extends Component {
returnKeyType: 'send'
} : {};
if (recording) {
return <Recording theme={theme} onFinish={this.finishAudioMessage} />;
}
return (
const recordAudio = showSend || !Message_AudioRecorderEnabled ? null : (
<RecordAudio
theme={theme}
recordingCallback={this.recordingCallback}
onFinish={this.finishAudioMessage}
/>
);
const commandsPreviewAndMentions = !recording ? (
<>
<CommandsPreview commandPreview={commandPreview} showCommandPreview={showCommandPreview} />
<Mentions mentions={mentions} trackingType={trackingType} theme={theme} />
<View style={[styles.composer, { borderTopColor: themes[theme].separatorColor }]}>
<ReplyPreview
message={message}
close={replyCancel}
username={user.username}
replying={replying}
getCustomEmoji={getCustomEmoji}
theme={theme}
/>
</>
) : null;
const replyPreview = !recording ? (
<ReplyPreview
message={message}
close={replyCancel}
username={user.username}
replying={replying}
getCustomEmoji={getCustomEmoji}
theme={theme}
/>
) : null;
const textInputAndButtons = !recording ? (
<>
<LeftButtons
theme={theme}
showEmojiKeyboard={showEmojiKeyboard}
editing={editing}
showMessageBoxActions={this.showMessageBoxActions}
editCancel={this.editCancel}
openEmoji={this.openEmoji}
closeEmoji={this.closeEmoji}
isActionsEnabled={isActionsEnabled}
/>
<TextInput
ref={component => this.component = component}
style={styles.textBoxInput}
returnKeyType='default'
keyboardType='twitter'
blurOnSubmit={false}
placeholder={I18n.t('New_Message')}
onChangeText={this.onChangeText}
underlineColorAndroid='transparent'
defaultValue=''
multiline
testID='messagebox-input'
theme={theme}
{...isAndroidTablet}
/>
<RightButtons
theme={theme}
showSend={showSend}
submit={this.submit}
showMessageBoxActions={this.showMessageBoxActions}
isActionsEnabled={isActionsEnabled}
/>
</>
) : null;
return (
<>
{commandsPreviewAndMentions}
<View style={[styles.composer, { borderTopColor: themes[theme].borderColor }]}>
{replyPreview}
<View
style={[
styles.textArea,
{ backgroundColor: themes[theme].messageboxBackground }, editing && { backgroundColor: themes[theme].chatComponentBackground }
{ backgroundColor: themes[theme].messageboxBackground },
!recording && editing && { backgroundColor: themes[theme].chatComponentBackground }
]}
testID='messagebox'
>
<LeftButtons
theme={theme}
showEmojiKeyboard={showEmojiKeyboard}
editing={editing}
showMessageBoxActions={this.showMessageBoxActions}
isActionsEnabled={isActionsEnabled}
editCancel={this.editCancel}
openEmoji={this.openEmoji}
closeEmoji={this.closeEmoji}
/>
<TextInput
ref={component => this.component = component}
style={styles.textBoxInput}
returnKeyType='default'
keyboardType='twitter'
blurOnSubmit={false}
placeholder={I18n.t('New_Message')}
onChangeText={this.onChangeText}
underlineColorAndroid='transparent'
defaultValue=''
multiline
testID='messagebox-input'
theme={theme}
{...isAndroidTablet}
/>
<RightButtons
theme={theme}
showSend={showSend}
submit={this.submit}
recordAudioMessage={this.recordAudioMessage}
recordAudioMessageEnabled={Message_AudioRecorderEnabled}
showMessageBoxActions={this.showMessageBoxActions}
isActionsEnabled={isActionsEnabled}
/>
{textInputAndButtons}
{recordAudio}
</View>
</View>
{children}

View File

@ -15,7 +15,7 @@ export default StyleSheet.create({
},
composer: {
flexDirection: 'column',
borderTopWidth: StyleSheet.hairlineWidth
borderTopWidth: 1
},
textArea: {
flexDirection: 'row',
@ -104,6 +104,15 @@ export default StyleSheet.create({
scrollViewMention: {
maxHeight: SCROLLVIEW_MENTION_HEIGHT
},
recordingContent: {
flexDirection: 'row',
flex: 1,
justifyContent: 'space-between'
},
recordingCancelText: {
fontSize: 17,
...sharedStyles.textRegular
},
buttonsWhitespace: {
width: 15
}

View File

@ -47,7 +47,7 @@ const styles = StyleSheet.create({
const CancelButton = (onCancelPress, theme) => (
<Touchable onPress={onCancelPress} style={styles.cancel}>
<Text style={[styles.cancelText, { color: themes[theme].tintColor }]}>{I18n.t('Cancel')}</Text>
<Text style={[styles.cancelText, { color: themes[theme].headerTintColor }]}>{I18n.t('Cancel')}</Text>
</Touchable>
);

View File

@ -2,13 +2,12 @@ import React from 'react';
import { StatusBar as StatusBarRN } from 'react-native';
import PropTypes from 'prop-types';
import { isIOS } from '../utils/deviceInfo';
import { themes } from '../constants/colors';
const StatusBar = React.memo(({ theme, barStyle, backgroundColor }) => {
if (!barStyle) {
barStyle = 'light-content';
if (theme === 'light' && isIOS) {
if (theme === 'light') {
barStyle = 'dark-content';
}
}

View File

@ -126,7 +126,6 @@ class MessageAudio extends React.Component {
this.setState({ loading: true });
try {
await Audio.setAudioModeAsync(mode);
await this.sound.loadAsync({ uri: `${ url }?rc_uid=${ user.id }&rc_token=${ user.token }` });
} catch {
// Do nothing
@ -225,6 +224,7 @@ class MessageAudio extends React.Component {
if (paused) {
await this.sound.pauseAsync();
} else {
await Audio.setAudioModeAsync(mode);
await this.sound.playAsync();
}
} catch {

View File

@ -27,9 +27,9 @@ export default {
'error-invalid-arguments': 'Ungültige Argumente',
'error-invalid-asset': 'Ungültiges Asset',
'error-invalid-channel': 'Ungültiger Kanal',
'error-invalid-channel-start-with-chars': 'Ungültiger Kanal. Beginnen Sie mit @ oder #',
'error-invalid-channel-start-with-chars': 'Ungültiger Kanal. Beginne mit @ oder #',
'error-invalid-custom-field': 'Ungültiges benutzerdefiniertes Feld',
'error-invalid-custom-field-name': 'Ungültiger benutzerdefinierter Feldname. Verwenden Sie nur Buchstaben, Zahlen, Bindestriche und Unterstriche.',
'error-invalid-custom-field-name': 'Ungültiger benutzerdefinierter Feldname. Verwende nur Buchstaben, Zahlen, Bindestriche und Unterstriche.',
'error-invalid-date': 'Ungültiges Datum angegeben',
'error-invalid-description': 'Ungültige Beschreibung',
'error-invalid-domain': 'Ungültige Domain',
@ -38,7 +38,7 @@ export default {
'error-invalid-file-height': 'Ungültige Dateihöhe',
'error-invalid-file-type': 'Ungültiger Dateityp',
'error-invalid-file-width': 'Ungültige Dateibreite',
'error-invalid-from-address': 'Sie haben eine ungültige FROM-Adresse mitgeteilt.',
'error-invalid-from-address': 'Du hast eine ungültige FROM-Adresse mitgeteilt.',
'error-invalid-integration': 'Ungültige Integration',
'error-invalid-message': 'Ungültige Nachricht',
'error-invalid-method': 'Ungültige Methode',
@ -60,24 +60,24 @@ export default {
'error-message-deleting-blocked': 'Das Löschen von Nachrichten ist gesperrt',
'error-message-editing-blocked': 'Die Bearbeitung von Nachrichten ist gesperrt',
'error-message-size-exceeded': 'Die Nachrichtengröße überschreitet Message_MaxAllowedSize',
'error-missing-unsubscribe-link': 'Sie müssen den Link [abbestellen] angeben.',
'error-missing-unsubscribe-link': 'Du musst den Link [abbestellen] angeben.',
'error-no-tokens-for-this-user': 'Für diesen Benutzer gibt es keine Token',
'error-not-allowed': 'Nicht erlaubt',
'error-not-authorized': 'Nicht berechtigt',
'error-push-disabled': 'Push ist deaktiviert',
'error-remove-last-owner': 'Dies ist der letzte Besitzer. Bitte legen Sie einen neuen Besitzer fest, bevor Sie diesen entfernen.',
'error-remove-last-owner': 'Dies ist der letzte Besitzer. Bitte lege einen neuen Besitzer fest, bevor du diesen entfernst.',
'error-role-in-use': 'Rolle kann nicht gelöscht werden, da sie gerade verwendet wird',
'error-role-name-required': 'Der Rollenname ist erforderlich',
'error-the-field-is-required': 'Das Feld {{field}} ist erforderlich.',
'error-too-many-requests': 'Fehler, zu viele Anfragen. Sie müssen {{Sekunden}} Sekunden warten, bevor Sie es erneut versuchen.',
'error-too-many-requests': 'Fehler, zu viele Anfragen. Du musst {{Sekunden}} Sekunden warten, bevor du es erneut versuchst.',
'error-user-is-not-activated': 'Benutzer ist nicht aktiviert',
'error-user-has-no-roles': 'Benutzer hat keine Rollen',
'error-user-limit-exceeded': 'Die Anzahl der Benutzer, die Sie zu #channel_name einladen möchten, überschreitet die vom Administrator festgelegte Grenze',
'error-user-limit-exceeded': 'Die Anzahl der Benutzer, die du zu #channel_name einladen möchtest, überschreitet die vom Administrator festgelegte Grenze',
'error-user-not-in-room': 'Benutzer ist nicht in diesem Raum',
'error-user-registration-custom-field': 'error-user-registration-custom-field',
'error-user-registration-disabled': 'Die Benutzerregistrierung ist deaktiviert',
'error-user-registration-secret': 'Die Benutzerregistrierung ist nur über eine geheime URL möglich',
'error-you-are-last-owner': 'Sie sind der letzte Besitzer. Bitte setzen Sie einen neuen Besitzer, bevor Sie den Raum verlassen.',
'error-you-are-last-owner': 'Du bist der letzte Besitzer. Bitte setze einen neuen Besitzer, bevor du den Raum verlässt.',
Actions: 'Aktionen',
activity: 'Aktivität',
Activity: 'Aktivität',
@ -99,13 +99,13 @@ export default {
and: 'und',
announcement: 'Ankündigung',
Announcement: 'Ankündigung',
Apply_Your_Certificate: 'Wenden Sie Ihr Zertifikat an',
Apply_Your_Certificate: 'Wende dein Zertifikat an',
Applying_a_theme_will_change_how_the_app_looks: 'Das Erscheinungsbild festzulegen wird das Aussehen der Anwendung ändern.',
ARCHIVE: 'ARCHIV',
archive: 'Archiv',
are_typing: 'tippen',
Are_you_sure_question_mark: 'Bist du sicher?',
Are_you_sure_you_want_to_leave_the_room: 'Möchten Sie den Raum wirklich verlassen {{room}}?',
Are_you_sure_you_want_to_leave_the_room: 'Möchtest du den Raum wirklich verlassen {{room}}?',
Audio: 'Audio',
Authenticating: 'Authentifizierung',
Automatic: 'Automatisch',
@ -120,7 +120,7 @@ export default {
Broadcast_channel_Description: 'Nur autorisierte Benutzer können neue Nachrichten schreiben, die anderen Benutzer können jedoch antworten',
Broadcast_Channel: 'Broadcastkanal',
Busy: 'Beschäftigt',
By_proceeding_you_are_agreeing: 'Indem Sie fortfahren, stimmen Sie zu unserem',
By_proceeding_you_are_agreeing: 'Indem du fortfährst, stimmst du zu unserem',
Cancel_editing: 'Bearbeitung abbrechen',
Cancel_recording: 'Aufnahme abbrechen',
Cancel: 'Abbrechen',
@ -133,7 +133,7 @@ export default {
Call_already_ended: 'Anruf bereits beendet!',
Click_to_join: 'Klicken um teilzunehmen!',
Close: 'Schließen',
Close_emoji_selector: 'Schließen Sie die Emoji-Auswahl',
Close_emoji_selector: 'Schließe die Emoji-Auswahl',
Closing_chat: 'Chat schließen',
Change_language_loading: 'Ändere Sprache.',
Chat_closed_by_agent: 'Chat durch den Agenten geschlossen',
@ -150,7 +150,7 @@ export default {
connecting_server: 'verbinde zum Server',
Connecting: 'Verbinden ...',
Contact_us: 'Kontaktiere uns',
Contact_your_server_admin: 'Kontaktieren Sie Ihren Server-Administrator.',
Contact_your_server_admin: 'Kontaktiere deinen Server-Administrator.',
Continue_with: 'Weitermachen mit',
Copied_to_clipboard: 'In die Zwischenablage kopiert!',
Copy: 'Kopieren',
@ -159,13 +159,13 @@ export default {
Certificate_password: 'Zertifikats-Passwort',
Clear_cache: 'Lokalen Server-Cache leeren',
Clear_cache_loading: 'Leere Cache.',
Whats_the_password_for_your_certificate: 'Wie lautet das Passwort für Ihr Zertifikat?',
Whats_the_password_for_your_certificate: 'Wie lautet das Passwort für dein Zertifikat?',
Create_account: 'Ein Konto erstellen',
Create_Channel: 'Kanal erstellen',
Create_Direct_Messages: 'Direkt-Nachricht erstellen',
Create_Discussion: 'Diskussion erstellen',
Created_snippet: 'Erstellt ein Snippet',
Create_a_new_workspace: 'Erstellen Sie einen neuen Arbeitsbereich',
Create_a_new_workspace: 'Erstelle einen neuen Arbeitsbereich',
Create: 'Erstellen',
Custom_Status: 'eigener Status',
Dark: 'Dunkel',
@ -190,8 +190,8 @@ export default {
Done: 'Erledigt',
Dont_Have_An_Account: 'Du hast noch kein Konto?',
Do_you_have_an_account: 'Du hast schon ein Konto?',
Do_you_have_a_certificate: 'Haben Sie ein Zertifikat?',
Do_you_really_want_to_key_this_room_question_mark: 'Möchten Sie diesen Raum wirklich {{key}}?',
Do_you_have_a_certificate: 'Hast du ein Zertifikat?',
Do_you_really_want_to_key_this_room_question_mark: 'Möchtest du diesen Raum wirklich {{key}}?',
edit: 'bearbeiten',
edited: 'bearbeitet',
Edit: 'Bearbeiten',
@ -212,10 +212,10 @@ export default {
Files: 'Dateien',
File_description: 'Dateibeschreibung',
File_name: 'Dateiname',
Finish_recording: 'Beenden Sie die Aufnahme',
Finish_recording: 'Beende die Aufnahme',
Following_thread: 'Thread folgen',
For_your_security_you_must_enter_your_current_password_to_continue: 'Zu Ihrer Sicherheit müssen Sie Ihr aktuelles Passwort eingeben, um fortzufahren',
Forgot_password_If_this_email_is_registered: 'Wenn diese E-Mail registriert ist, senden wir Anweisungen zum Zurücksetzen Ihres Passworts. Wenn Sie in Kürze keine E-Mail erhalten, kommen Sie bitte zurück und versuchen Sie es erneut.',
For_your_security_you_must_enter_your_current_password_to_continue: 'Zu deiner Sicherheit musst du dein aktuelles Passwort eingeben, um fortzufahren',
Forgot_password_If_this_email_is_registered: 'Wenn diese E-Mail registriert ist, senden wir Anweisungen zum Zurücksetzen deines Passworts. Wenn du nicht in Kürze keine E-Mail erhältst, versuche es bitte erneut.',
Forgot_password: 'Passwort vergessen',
Forgot_Password: 'Passwort vergessen',
Forward: 'Weiterleiten',
@ -255,7 +255,7 @@ export default {
is_not_a_valid_RocketChat_instance: 'ist keine gültige Rocket.Chat-Instanz',
is_typing: 'schreibt',
Invalid_or_expired_invite_token: 'Ungültiger oder abgelaufener Einladungscode',
Invalid_server_version: 'Der Server, zu dem Sie eine Verbindung herstellen möchten, verwendet eine Version, die von der App nicht mehr unterstützt wird: {{currentVersion}}.\n\nWir benötigen Version {{MinVersion}}.',
Invalid_server_version: 'Der Server, zu dem du dich verbinden möchtest, verwendet eine Version, die von der App nicht mehr unterstützt wird: {{currentVersion}}.\n\nWir benötigen Version {{MinVersion}}.',
Invite_Link: 'Einladungs-Link',
Invite_users: 'Benutzer einladen',
Join: 'Beitreten',
@ -273,7 +273,7 @@ export default {
Livechat: 'Live-Chat',
Livechat_edit: 'Livechat bearbeiten',
Login: 'Anmeldung',
Login_error: 'Ihre Zugangsdaten wurden abgelehnt! Bitte versuchen Sie es erneut.',
Login_error: 'Deine Zugangsdaten wurden abgelehnt! Bitte versuche es erneut.',
Login_with: 'Einloggen mit',
Logging_out: 'Abmelden.',
Logout: 'Abmelden',
@ -295,7 +295,7 @@ export default {
Message: 'Nachricht',
Messages: 'Mitteilungen',
Message_Reported: 'Nachricht gemeldet',
Microphone_Permission_Message: 'Rocket.Chat benötigt Zugriff auf Ihr Mikrofon, damit Sie eine Audionachricht senden können.',
Microphone_Permission_Message: 'Rocket.Chat benötigt Zugriff auf das Mikrofon, damit du eine Audionachricht senden kannst.',
Microphone_Permission: 'Mikrofonberechtigung',
Mute: 'Stumm',
muted: 'stummgeschaltet',
@ -327,13 +327,14 @@ export default {
Nothing: 'Nichts',
Nothing_to_save: 'Nichts zu speichern!',
Notify_active_in_this_room: 'Aktive Benutzer in diesem Raum benachrichtigen',
Notify_all_in_this_room: 'Benachrichtigen Sie alle in diesem Raum',
Notify_all_in_this_room: 'Benachrichtige alle in diesem Raum',
Notifications: 'Benachrichtigungen',
Notification_Duration: 'Benachrichtigungsdauer',
Notification_Preferences: 'Benachrichtigungseinstellungen',
No_available_agents_to_transfer: 'Keine Agenten für den Transfer verfügbar',
Offline: 'Offline',
Oops: 'Hoppla!',
Omnichannel: 'Omnichannel',
Onboarding_description: 'Ein Arbeitsbereich ist der Ort für die Zusammenarbeit deines Teams oder Organisation. Bitte den Admin des Arbeitsbereichs um eine Adresse, um ihm beizutreten, oder erstelle einen Arbeitsbereich für dein Team.',
Onboarding_join_workspace: 'Tritt einem Arbeitsbereich bei',
Onboarding_subtitle: 'Mehr als Team-Zusammenarbeit',
@ -359,7 +360,7 @@ export default {
pinned: 'angeheftet',
Pinned: 'Angeheftet',
Please_add_a_comment: 'Bitte Kommentar hinzufügen',
Please_enter_your_password: 'Bitte geben Sie Ihr Passwort ein',
Please_enter_your_password: 'Gib bitte dein Passwort ein',
Please_wait: 'Bitte warten.',
Preferences: 'Einstellungen',
Preferences_saved: 'Einstellungen gespeichert!',
@ -379,6 +380,8 @@ export default {
Reactions_are_enabled: 'Reaktionen sind aktiviert',
Reactions: 'Reaktionen',
Read: 'Gelesen',
Read_External_Permission_Message: 'Rocket.Chat benötigt Zugriff auf deine Fotos, Medien und Dateien auf deinem Gerät',
Read_External_Permission: 'Lese-Zugriff auf Medien',
Read_Only_Channel: 'Nur-Lese-Kanal',
Read_Only: 'Schreibgeschützt',
Read_Receipt: 'Lesebestätigung',
@ -405,6 +408,7 @@ export default {
Review_app_later: 'Vielleicht später',
Review_app_unable_store: 'Kann {{store}} nicht öffnen',
Review_this_app: 'App bewerten',
Remove: 'Entfernen',
Roles: 'Rollen',
Room_actions: 'Raumaktionen',
Room_changed_announcement: 'Raumansage geändert in: {{announcement}} von {{userBy}}',
@ -428,9 +432,9 @@ export default {
Search: 'Suche',
Search_by: 'Suche nach',
Search_global_users: 'Suche nach globalen Benutzern',
Search_global_users_description: 'Beim Einschalten können Sie nach Benutzern von anderen Unternehmen oder Servern suchen.',
Search_global_users_description: 'Wenn aktiviert, kannst du nach Benutzern von anderen Unternehmen oder Servern suchen.',
Seconds: '{{second}} Sekunden',
Select_Avatar: 'Wählen Sie einen Avatar aus',
Select_Avatar: 'Wähle einen Avatar aus',
Select_Server: 'Server auswählen',
Select_Users: 'Benutzer auswählen',
Select_a_Channel: 'Kanal auswählen',
@ -443,11 +447,12 @@ export default {
Send_message: 'Nachricht senden',
Send_me_the_code_again: 'Den Code neu versenden',
Send_to: 'Senden an …',
Sending_to: 'Sende an',
Sent_an_attachment: 'Sende einen Anhang',
Server: 'Server',
Servers: 'Server',
Server_version: 'Server version: {{version}}',
Set_username_subtitle: 'Der Benutzername wird verwendet, damit andere Personen Sie in Nachrichten erwähnen können',
Set_username_subtitle: 'Der Benutzername wird verwendet, damit andere Personen dich in Nachrichten erwähnen können',
Set_custom_status: 'Individuellen Status setzen',
Set_status: 'Status setzen',
Status_saved_successfully: 'Status erfolgreich gesetzt!',
@ -470,6 +475,7 @@ export default {
starred: 'favorisiert',
Starred: 'Favorisiert',
Start_of_conversation: 'Beginn des Gesprächs',
Start_a_Discussion: 'Beginne eine Diskussion',
Started_discussion: 'Hat eine Diskussion gestartet:',
Started_call: 'Anruf gestartet von {{userBy}}',
Submit: 'einreichen',
@ -478,10 +484,12 @@ export default {
Take_a_photo: 'Foto aufnehmen',
Take_a_video: 'Video aufnehmen',
tap_to_change_status: 'Tippen um den Status zu ändern',
Tap_to_view_servers_list: 'Tippen Sie hier, um die Serverliste anzuzeigen',
Tap_to_view_servers_list: 'Hier tippen, um die Serverliste anzuzeigen',
Terms_of_Service: ' Nutzungsbedingungen',
Theme: 'Erscheinungsbild',
The_URL_is_invalid: 'Die eingegebene URL ist ungültig. Überprüfen Sie es und versuchen Sie es bitte erneut!',
The_URL_is_invalid: 'Die eingegebene URL ist ungültig. Überprüfe sie bitte noch einmal und versuche es erneut!',
The_user_wont_be_able_to_type_in_roomName: 'Dem Nutzer wird es nicht möglich sein in {{roomName}} zu schreiben',
The_user_will_be_able_to_type_in_roomName: 'Der Nutzer wird in {{roomName}} schreiben können',
There_was_an_error_while_action: 'Während {{action}} ist ein Fehler aufgetreten!',
This_room_is_blocked: 'Dieser Raum ist gesperrt',
This_room_is_read_only: 'Dieser Raum kann nur gelesen werden',
@ -492,7 +500,7 @@ export default {
topic: 'Thema',
Topic: 'Thema',
Translate: 'Übersetzen',
Try_again: 'Versuchen Sie es nochmal',
Try_again: 'Versuche es nochmal',
Two_Factor_Authentication: 'Zwei-Faktor-Authentifizierung',
Type_the_channel_name_here: 'Gib hier den Kanalnamen ein',
unarchive: 'wiederherstellen',
@ -535,28 +543,29 @@ export default {
Video_call: 'Videoanruf',
View_Original: 'Original anzeigen',
Voice_call: 'Sprachanruf',
Waiting_for_network: 'Warte auf das Netzwerk …',
Websocket_disabled: 'Websockets sind auf diesem Server nicht aktiviert.\n{{contact}}',
Welcome: 'Herzlich willkommen',
What_are_you_doing_right_now: 'Was machst du gerade?',
Whats_your_2fa: 'Wie lautet Ihr 2FA-Code?',
Whats_your_2fa: 'Wie lautet dein 2FA-Code?',
Without_Servers: 'Ohne Server',
Workspaces: 'Arbeitsbereiche',
Would_you_like_to_return_the_inquiry: 'Willst du zur Anfrage zurück?',
Write_External_Permission_Message: 'Rocket.Chat benötigt Zugriff auf Ihre Galerie um Bilder speichern zu können.',
Write_External_Permission_Message: 'Rocket.Chat benötigt Zugriff auf deine Galerie um Bilder speichern zu können.',
Write_External_Permission: 'Galerie-Zugriff',
Yes: 'Ja',
Yes_action_it: 'Ja, {{action}}!',
Yesterday: 'Gestern',
You_are_in_preview_mode: 'Sie befinden sich im Vorschaumodus',
You_are_offline: 'Sie sind offline',
You_can_search_using_RegExp_eg: 'Sie können mit RegExp suchen. z.B. `/ ^ text $ / i`',
You_colon: 'Sie: ',
you_were_mentioned: 'Sie wurden erwähnt',
You_were_removed_from_channel: 'Sie wurden aus dem Kanal {{channel}} entfernt',
you: 'Sie',
You: 'Sie',
You_are_in_preview_mode: 'Du befindest dich im Vorschaumodus',
You_are_offline: 'Du bist offline',
You_can_search_using_RegExp_eg: 'Du kannst mit RegExp suchen. z.B. `/ ^ text $ / i`',
You_colon: 'Du: ',
you_were_mentioned: 'Du wurdest erwähnt',
You_were_removed_from_channel: 'Du wurdest aus dem Kanal {{channel}} entfernt',
you: 'du',
You: 'Du',
Logged_out_by_server: 'Du bist vom Server abgemeldet worden. Bitte melde dich wieder an.',
You_need_to_access_at_least_one_RocketChat_server_to_share_something: 'Sie benötigen Zugang zu mindestens einem Rocket.Chat-Server um etwas zu teilen.',
You_need_to_access_at_least_one_RocketChat_server_to_share_something: 'Du benötigst Zugang zu mindestens einem Rocket.Chat-Server um etwas zu teilen.',
Your_certificate: 'Dein Zertifikat',
Your_message: 'Deine Nachricht',
Your_invite_link_will_expire_after__usesLeft__uses: 'Dein Einladungs-Link wird nach {{usesLeft}} Benutzungen ablaufen.',
@ -565,9 +574,10 @@ export default {
Your_invite_link_will_never_expire: 'Dein Einladungs-Link wird niemals ablaufen.',
Your_workspace: 'Dein Arbeitsbereich',
Version_no: 'Version: {{version}}',
You_will_not_be_able_to_recover_this_message: 'Sie können diese Nachricht nicht wiederherstellen!',
You_will_not_be_able_to_recover_this_message: 'Du kannst diese Nachricht nicht wiederherstellen!',
You_will_unset_a_certificate_for_this_server: 'Du entfernst ein Zertifikat für diesen Server',
Change_Language: 'Sprache ändern',
Crash_report_disclaimer: 'Wir verfolgen niemals den Inhalt Ihrer Chats. Der Crash-Report enthält nur für uns relevante Informationen um das Problem zu erkennen und zu beheben.',
Crash_report_disclaimer: 'Wir verfolgen niemals den Inhalt deiner Chats. Der Crash-Report enthält nur für uns relevante Informationen um das Problem zu erkennen und zu beheben.',
Type_message: 'Type message',
Room_search: 'Raum-Suche',
Room_selection: 'Raum-Auswahl 1...9',
@ -578,6 +588,7 @@ export default {
Search_messages: 'Nachrichten durchsuchen',
Scroll_messages: 'Nachrichten durchblättern',
Reply_latest: 'Auf die letzte Nachricht antworten',
Reply_in_Thread: 'Im Thread antworten',
Server_selection: 'Server-Auswahl',
Server_selection_numbers: 'Server-Auswahl 1...9',
Add_server: 'Server hinufügen',

View File

@ -295,7 +295,7 @@ export default {
Message: 'Message',
Messages: 'Messages',
Message_Reported: 'Message reported',
Microphone_Permission_Message: 'Rocket Chat needs access to your microphone so you can send audio message.',
Microphone_Permission_Message: 'Rocket.Chat needs access to your microphone so you can send audio message.',
Microphone_Permission: 'Microphone Permission',
Mute: 'Mute',
muted: 'muted',
@ -380,7 +380,7 @@ export default {
Reactions_are_enabled: 'Reactions are enabled',
Reactions: 'Reactions',
Read: 'Read',
Read_External_Permission_Message: 'Rocket Chat needs to access photos, media, and files on your device',
Read_External_Permission_Message: 'Rocket.Chat needs to access photos, media, and files on your device',
Read_External_Permission: 'Read Media Permission',
Read_Only_Channel: 'Read Only Channel',
Read_Only: 'Read Only',
@ -543,6 +543,7 @@ export default {
Video_call: 'Video call',
View_Original: 'View Original',
Voice_call: 'Voice call',
Waiting_for_network: 'Waiting for network...',
Websocket_disabled: 'Websocket is disabled for this server.\n{{contact}}',
Welcome: 'Welcome',
What_are_you_doing_right_now: 'What are you doing right now?',
@ -550,7 +551,7 @@ export default {
Without_Servers: 'Without Servers',
Workspaces: 'Workspaces',
Would_you_like_to_return_the_inquiry: 'Would you like to return the inquiry?',
Write_External_Permission_Message: 'Rocket Chat needs access to your gallery so you can save images.',
Write_External_Permission_Message: 'Rocket.Chat needs access to your gallery so you can save images.',
Write_External_Permission: 'Gallery Permission',
Yes: 'Yes',
Yes_action_it: 'Yes, {{action}} it!',

View File

@ -233,7 +233,7 @@ export default {
messages: 'mensajes',
Messages: 'Mensajes',
Message_Reported: 'Mensaje notificado',
Microphone_Permission_Message: 'Rocket Chat necesita acceso a su micrófono para que pueda enviar un mensaje de audio.',
Microphone_Permission_Message: 'Rocket.Chat necesita acceso a su micrófono para que pueda enviar un mensaje de audio.',
Microphone_Permission: 'Permiso de micrófono',
Mute: 'Mutear',
muted: 'muteado',

View File

@ -194,7 +194,7 @@ export default {
Message_pinned: 'Message épinglé',
Message_removed: 'Message supprimé',
Messages: 'Messages',
Microphone_Permission_Message: 'Rocket Chat doit avoir accès à votre microphone pour pouvoir envoyer un message audio.',
Microphone_Permission_Message: 'Rocket.Chat doit avoir accès à votre microphone pour pouvoir envoyer un message audio.',
Microphone_Permission: 'Permission de microphone',
Mute: 'Rendre muet',
muted: 'Rendu muet',

View File

@ -232,8 +232,8 @@ export default {
'アプリを表示中にはバナーを上部に表示し、デスクトップには通知を送ります。',
Invisible: '状態を隠す',
Invite: '招待',
is_a_valid_RocketChat_instance: 'は正しいRocket Chatのインスタンスです',
is_not_a_valid_RocketChat_instance: 'はRocket Chatのインスタンスではありません',
is_a_valid_RocketChat_instance: 'は正しいRocket.Chatのインスタンスです',
is_not_a_valid_RocketChat_instance: 'はRocket.Chatのインスタンスではありません',
is_typing: 'が入力中',
Invalid_or_expired_invite_token: '招待トークンが無効か、期限が切れています',
Invalid_server_version:
@ -272,7 +272,7 @@ export default {
Messages: 'メッセージ',
Message_Reported: 'メッセージを報告しました',
Microphone_Permission_Message:
'Rocket Chatは音声メッセージを送信するのにマイクのアクセスの許可が必要です。',
'Rocket.Chatは音声メッセージを送信するのにマイクのアクセスの許可が必要です。',
Microphone_Permission: 'マイクの許可',
Mute: 'ミュート',
muted: 'ミュートした',
@ -298,7 +298,7 @@ export default {
No_Reactions: 'リアクションなし',
No_Read_Receipts: '未読通知はありません',
Not_logged: 'ログされていません',
Not_RC_Server: 'Rocket Chatサーバーではありません。\n{{contact}}',
Not_RC_Server: 'Rocket.Chatサーバーではありません。\n{{contact}}',
Nothing: '何もなし',
Nothing_to_save: '保存するものはありません!',
Notify_active_in_this_room: 'このルームのアクティブなユーザーに通知する',
@ -488,7 +488,7 @@ export default {
Whats_your_2fa: '2段階認証のコードを入力してください',
Without_Servers: 'サーバーを除く',
Write_External_Permission_Message:
'Rocket Chatは画像を保存するためにギャラリーへのアクセスを求めています。',
'Rocket.Chatは画像を保存するためにギャラリーへのアクセスを求めています。',
Write_External_Permission: 'ギャラリーへのアクセス許可',
Yes_action_it: 'はい、{{action}}します!',
Yesterday: '昨日',

View File

@ -242,7 +242,7 @@ export default {
messages: 'berichten',
Messages: 'Berichten',
Message_Reported: 'Bericht gerapporteerd',
Microphone_Permission_Message: 'Rocket Chat heeft toegang tot je microfoon nodig voor geluidsberichten.',
Microphone_Permission_Message: 'Rocket.Chat heeft toegang tot je microfoon nodig voor geluidsberichten.',
Microphone_Permission: 'Microfoon toestemming',
Mute: 'Dempen',
muted: 'gedempt',
@ -448,7 +448,7 @@ export default {
Welcome: 'Welkom',
Whats_your_2fa: 'Wat is je 2FA code?',
Without_Servers: 'Zonder Servers',
Write_External_Permission_Message: 'Rocket Chat moet bij je galerij kunnen om afbeeldingen op te slaan.',
Write_External_Permission_Message: 'Rocket.Chat moet bij je galerij kunnen om afbeeldingen op te slaan.',
Write_External_Permission: 'Galerij Toestemming',
Yes_action_it: 'Ja, {{action}} het!',
Yesterday: 'Gisteren',

View File

@ -271,7 +271,7 @@ export default {
message: 'mensagem',
messages: 'mensagens',
Messages: 'Mensagens',
Microphone_Permission_Message: 'Rocket Chat precisa de acesso ao seu microfone para enviar mensagens de áudio.',
Microphone_Permission_Message: 'Rocket.Chat precisa de acesso ao seu microfone para enviar mensagens de áudio.',
Microphone_Permission: 'Acesso ao Microfone',
Mute: 'Mudo',
muted: 'mudo',
@ -344,7 +344,7 @@ export default {
Reactions_are_disabled: 'Reagir está desabilitado',
Reactions_are_enabled: 'Reagir está habilitado',
Reactions: 'Reações',
Read_External_Permission_Message: 'Rocket Chat precisa acessar fotos, mídia e arquivos no seu dispositivo',
Read_External_Permission_Message: 'Rocket.Chat precisa acessar fotos, mídia e arquivos no seu dispositivo',
Read_External_Permission: 'Permissão de acesso à arquivos',
Read_Only_Channel: 'Canal Somente Leitura',
Read_Only: 'Somente Leitura',
@ -479,6 +479,7 @@ export default {
Verify_your_email_for_the_code_we_sent: 'Verifique em seu e-mail o código que enviamos',
Video_call: 'Chamada de vídeo',
Voice_call: 'Chamada de voz',
Waiting_for_network: 'Aguardando rede...',
Websocket_disabled: 'Websocket está desativado para esse servidor.\n{{contact}}',
Welcome: 'Bem vindo',
Whats_your_2fa: 'Qual seu código de autenticação?',
@ -504,7 +505,7 @@ export default {
You_will_not_be_able_to_recover_this_message: 'Você não será capaz de recuperar essa mensagem!',
You_will_unset_a_certificate_for_this_server: 'Você cancelará a configuração de um certificado para este servidor',
Would_you_like_to_return_the_inquiry: 'Deseja retornar a consulta?',
Write_External_Permission_Message: 'Rocket Chat precisa de acesso à sua galeria para salvar imagens',
Write_External_Permission_Message: 'Rocket.Chat precisa de acesso à sua galeria para salvar imagens',
Write_External_Permission: 'Acesso à Galeria',
Yes: 'Sim',
Crash_report_disclaimer: 'Nós não rastreamos o conteúdo das suas conversas. O relatório de erros apenas contém informações relevantes para identificarmos problemas e corrigí-los.',

View File

@ -195,7 +195,7 @@ export default {
Message_pinned: 'Mensagem afixada',
Message_removed: 'Mensagem removida',
Messages: 'Mensagens',
Microphone_Permission_Message: 'O Rocket Chat necessita de acesso ao seu microfone para que você possa enviar mensagens de áudio.',
Microphone_Permission_Message: 'O Rocket.Chat necessita de acesso ao seu microfone para que você possa enviar mensagens de áudio.',
Microphone_Permission: 'Permissão de Microfone',
Mute: 'Silenciar',
muted: 'silenciado',

View File

@ -227,7 +227,7 @@ export default {
messages: 'сообщения',
Messages: 'Сообщения',
Message_Reported: 'Сообщение отправлено',
Microphone_Permission_Message: 'Rocket Chat нужен доступ к вашему микрофону, чтобы вы могли отправлять аудиосообщения.',
Microphone_Permission_Message: 'Rocket.Chat нужен доступ к вашему микрофону, чтобы вы могли отправлять аудиосообщения.',
Microphone_Permission: 'Разрешение на использование микрофона',
Mute: 'Заглушить',
muted: 'Заглушен',

View File

@ -190,7 +190,7 @@ export default {
Message_pinned: '消息被钉住',
Message_removed: '消息被删除',
Messages: '消息',
Microphone_Permission_Message: 'Rocket Chat需要访问您的麦克风以便您可以发送音频消息。',
Microphone_Permission_Message: 'Rocket.Chat需要访问您的麦克风以便您可以发送音频消息。',
Microphone_Permission: '麦克风授权',
Mute: '静音',
muted: '被静音',

View File

@ -111,7 +111,9 @@ class DB {
Thread,
ThreadMessage,
Upload,
Permission
Permission,
CustomEmoji,
FrequentlyUsedEmoji
],
actionsEnabled: true
});

View File

@ -1,4 +1,3 @@
import { InteractionManager } from 'react-native';
import { sanitizedRaw } from '@nozbe/watermelondb/RawRecord';
import { Q } from '@nozbe/watermelondb';
@ -132,48 +131,47 @@ export default async function() {
const filteredSettingsIds = filteredSettings.map(s => s._id);
reduxStore.dispatch(addSettings(this.parseSettings(filteredSettings)));
InteractionManager.runAfterInteractions(async() => {
// filter server info
const serverInfo = filteredSettings.filter(i1 => serverInfoKeys.includes(i1._id));
const iconSetting = data.find(item => item._id === 'Assets_favicon_512');
await serverInfoUpdate(serverInfo, iconSetting);
await db.action(async() => {
const settingsCollection = db.collections.get('settings');
const allSettingsRecords = await settingsCollection
.query(Q.where('id', Q.oneOf(filteredSettingsIds)))
.fetch();
// filter server info
const serverInfo = filteredSettings.filter(i1 => serverInfoKeys.includes(i1._id));
const iconSetting = data.find(item => item._id === 'Assets_favicon_512');
await serverInfoUpdate(serverInfo, iconSetting);
// filter settings
let settingsToCreate = filteredSettings.filter(i1 => !allSettingsRecords.find(i2 => i1._id === i2.id));
let settingsToUpdate = allSettingsRecords.filter(i1 => filteredSettings.find(i2 => i1.id === i2._id));
await db.action(async() => {
const settingsCollection = db.collections.get('settings');
const allSettingsRecords = await settingsCollection
.query(Q.where('id', Q.oneOf(filteredSettingsIds)))
.fetch();
// Create
settingsToCreate = settingsToCreate.map(setting => settingsCollection.prepareCreate(protectedFunction((s) => {
s._raw = sanitizedRaw({ id: setting._id }, settingsCollection.schema);
Object.assign(s, setting);
})));
// filter settings
let settingsToCreate = filteredSettings.filter(i1 => !allSettingsRecords.find(i2 => i1._id === i2.id));
let settingsToUpdate = allSettingsRecords.filter(i1 => filteredSettings.find(i2 => i1.id === i2._id));
// Update
settingsToUpdate = settingsToUpdate.map((setting) => {
const newSetting = filteredSettings.find(s => s._id === setting.id);
return setting.prepareUpdate(protectedFunction((s) => {
Object.assign(s, newSetting);
}));
});
// Create
settingsToCreate = settingsToCreate.map(setting => settingsCollection.prepareCreate(protectedFunction((s) => {
s._raw = sanitizedRaw({ id: setting._id }, settingsCollection.schema);
Object.assign(s, setting);
})));
const allRecords = [
...settingsToCreate,
...settingsToUpdate
];
try {
await db.batch(...allRecords);
} catch (e) {
log(e);
}
return allRecords.length;
// Update
settingsToUpdate = settingsToUpdate.map((setting) => {
const newSetting = filteredSettings.find(s => s._id === setting.id);
return setting.prepareUpdate(protectedFunction((s) => {
Object.assign(s, newSetting);
}));
});
const allRecords = [
...settingsToCreate,
...settingsToUpdate
];
try {
await db.batch(...allRecords);
} catch (e) {
log(e);
}
return allRecords.length;
});
} catch (e) {
log(e);

View File

@ -288,6 +288,8 @@ const RocketChat = {
const serversDB = database.servers;
reduxStore.dispatch(shareSelectServer(server));
RocketChat.setCustomEmojis();
// set User info
try {
const userId = await RNUserDefaults.get(`${ RocketChat.TOKEN_KEY }-${ server }`);
@ -320,7 +322,7 @@ const RocketChat = {
updateJitsiTimeout(roomId) {
// RC 0.74.0
return this.post('jitsi.updateTimeout', { roomId });
return this.post('video-conference/jitsi.update-timeout', { roomId });
},
register(credentials) {
@ -1075,6 +1077,10 @@ const RocketChat = {
return 'cas';
}
if (authName === 'apple' && isIOS) {
return 'apple';
}
// TODO: remove this after other oauth providers are implemented. e.g. Drupal, github_enterprise
const availableOAuth = ['facebook', 'github', 'gitlab', 'google', 'linkedin', 'meteor-developer', 'twitter', 'wordpress'];
return availableOAuth.includes(authName) ? 'oauth' : 'not_supported';

View File

@ -260,6 +260,21 @@ function bouncy(
const WIDTH = 300;
const HEIGHT = 300;
class Image extends React.PureComponent {
static propTypes = {
imageComponentType: PropTypes.string
}
render() {
const { imageComponentType } = this.props;
const Component = ImageComponent(imageComponentType);
return <Component {...this.props} />;
}
}
const AnimatedImage = Animated.createAnimatedComponent(Image);
// it was picked from https://github.com/software-mansion/react-native-reanimated/tree/master/Example/imageViewer
// and changed to use FastImage animated component
export class ImageViewer extends React.Component {
@ -386,12 +401,9 @@ export class ImageViewer extends React.Component {
render() {
const {
uri, width, height, theme, imageComponentType, ...props
uri, width, height, imageComponentType, theme, ...props
} = this.props;
const Component = ImageComponent(imageComponentType);
const AnimatedFastImage = Animated.createAnimatedComponent(Component);
// The below two animated values makes it so that scale appears to be done
// from the top left corner of the image view instead of its center. This
// is required for the "scale focal point" math to work correctly
@ -416,7 +428,7 @@ export class ImageViewer extends React.Component {
onGestureEvent={this._onPanEvent}
onHandlerStateChange={this._onPanEvent}
>
<AnimatedFastImage
<AnimatedImage
style={[
styles.image,
{
@ -435,6 +447,7 @@ export class ImageViewer extends React.Component {
]
}
]}
imageComponentType={imageComponentType}
resizeMode='contain'
source={{ uri }}
{...props}

View File

@ -54,8 +54,7 @@ export const FadeFromCenterModal = {
const forStackAndroid = ({
current,
inverted,
layouts: { screen },
closing
layouts: { screen }
}) => {
const translateX = multiply(
current.progress.interpolate({
@ -65,13 +64,12 @@ const forStackAndroid = ({
inverted
);
const opacity = conditional(
closing,
current.progress,
const opacity = multiply(
current.progress.interpolate({
inputRange: [0, 1],
outputRange: [0, 1]
})
}),
inverted
);
return {

View File

@ -46,9 +46,9 @@ export const navigationTheme = (theme) => {
// Gets the current screen from navigation state
export const getActiveRoute = (state) => {
const route = state.routes[state.index];
const route = state?.routes[state?.index];
if (route.state) {
if (route?.state) {
// Dive into nested navigators
return getActiveRoute(route.state);
}
@ -56,4 +56,4 @@ export const getActiveRoute = (state) => {
return route;
};
export const getActiveRouteName = state => getActiveRoute(state).name;
export const getActiveRouteName = state => getActiveRoute(state)?.name;

View File

@ -70,10 +70,15 @@ class AttachmentView extends React.Component {
setHeader = () => {
const { route, navigation, theme } = this.props;
const attachment = route.params?.attachment;
const { title } = attachment;
let { title } = attachment;
try {
title = decodeURI(title);
} catch {
// Do nothing
}
const options = {
title,
headerLeft: () => <CloseModalButton testID='close-attachment-view' navigation={navigation} buttonStyle={{ color: themes[theme].previewTintColor }} />,
title: decodeURI(title),
headerRight: () => <SaveButton testID='save-image' onPress={this.handleSave} buttonStyle={{ color: themes[theme].previewTintColor }} />,
headerBackground: () => <View style={{ flex: 1, backgroundColor: themes[theme].previewBackground }} />,
headerTintColor: themes[theme].previewTintColor,

View File

@ -16,6 +16,7 @@ import RocketChat from '../../lib/rocketchat';
import { withTheme } from '../../theme';
import protectedFunction from '../../lib/methods/helpers/protectedFunction';
import SafeAreaView from '../../containers/SafeAreaView';
import log from '../../utils/log';
const SectionTitle = React.memo(({ title, theme }) => (
<Text
@ -183,26 +184,30 @@ class NotificationPreferencesView extends React.Component {
const { room } = this.state;
const db = database.active;
await db.action(async() => {
await room.update(protectedFunction((r) => {
r[key] = value;
}));
});
try {
const result = await RocketChat.saveNotificationSettings(this.rid, params);
if (result.success) {
return;
}
} catch {
// do nothing
}
await db.action(async() => {
await room.update(protectedFunction((r) => {
r[key] = value;
}));
});
await db.action(async() => {
await room.update(protectedFunction((r) => {
r[key] = room[key];
}));
});
try {
const result = await RocketChat.saveNotificationSettings(this.rid, params);
if (result.success) {
return;
}
} catch {
// do nothing
}
await db.action(async() => {
await room.update(protectedFunction((r) => {
r[key] = room[key];
}));
});
} catch (e) {
log(e);
}
}
onValueChangeSwitch = (key, value) => this.saveNotificationSettings(key, value, { [key]: value ? '1' : '0' });

View File

@ -145,10 +145,12 @@ class RegisterView extends React.Component {
await loginRequest({ user: email, password });
}
} catch (e) {
if (e.data && e.data.errorType === 'username-invalid') {
if (e.data?.errorType === 'username-invalid') {
return loginRequest({ user: email, password });
}
showErrorAlert(e.data.error, I18n.t('Oops'));
if (e.data?.error) {
showErrorAlert(e.data.error, I18n.t('Oops'));
}
}
this.setState({ saving: false });
}

View File

@ -6,28 +6,20 @@ import {
import I18n from '../../../i18n';
import sharedStyles from '../../Styles';
import { isAndroid, isTablet } from '../../../utils/deviceInfo';
import Icon from './Icon';
import { themes } from '../../../constants/colors';
import Markdown from '../../../containers/markdown';
const androidMarginLeft = isTablet ? 0 : 4;
const TITLE_SIZE = 16;
const styles = StyleSheet.create({
container: {
flex: 1,
marginRight: isAndroid ? 15 : 5,
marginLeft: isAndroid ? androidMarginLeft : -10,
justifyContent: 'center'
},
titleContainer: {
alignItems: 'center',
flexDirection: 'row'
},
threadContainer: {
marginRight: isAndroid ? 20 : undefined
},
title: {
...sharedStyles.textSemibold,
fontSize: TITLE_SIZE
@ -36,7 +28,6 @@ const styles = StyleSheet.create({
alignItems: 'center'
},
subtitle: {
marginRight: -16,
...sharedStyles.textRegular,
fontSize: 12
},
@ -87,12 +78,8 @@ SubTitle.propTypes = {
};
const HeaderTitle = React.memo(({
title, tmid, prid, scale, connecting, theme
title, tmid, prid, scale, theme
}) => {
if (connecting) {
title = I18n.t('Connecting');
}
if (!tmid && !prid) {
return (
<Text
@ -122,7 +109,6 @@ HeaderTitle.propTypes = {
tmid: PropTypes.string,
prid: PropTypes.string,
scale: PropTypes.number,
connecting: PropTypes.bool,
theme: PropTypes.string
};
@ -147,7 +133,7 @@ const Header = React.memo(({
style={styles.container}
disabled={tmid}
>
<View style={[styles.titleContainer, tmid && styles.threadContainer]}>
<View style={styles.titleContainer}>
<Icon type={prid ? 'discussion' : type} status={status} roomUserId={roomUserId} theme={theme} />
<HeaderTitle
title={title}

View File

@ -5,7 +5,6 @@ import PropTypes from 'prop-types';
import { STATUS_COLORS, themes } from '../../../constants/colors';
import { CustomIcon } from '../../../lib/Icons';
import Status from '../../../containers/Status/Status';
import { isAndroid } from '../../../utils/deviceInfo';
const ICON_SIZE = 15;
@ -32,7 +31,7 @@ const Icon = React.memo(({
if (type === 'l') {
colorStyle = { color: STATUS_COLORS[status] };
} else {
colorStyle = { color: isAndroid && theme === 'light' ? themes[theme].buttonText : themes[theme].auxiliaryText };
colorStyle = { color: themes[theme].auxiliaryText };
}
let icon;

View File

@ -13,16 +13,21 @@ const styles = StyleSheet.create({
}
});
const RoomHeaderLeft = React.memo(({
const LeftButtons = React.memo(({
tmid, unreadsCount, navigation, baseUrl, userId, token, title, t, theme, goRoomActionsView, isMasterDetail
}) => {
if (!isMasterDetail || tmid) {
const onPress = useCallback(() => navigation.goBack());
const label = unreadsCount > 99 ? '+99' : unreadsCount || ' ';
const labelLength = label.length ? label.length : 1;
const marginLeft = -2 * labelLength;
const fontSize = labelLength > 1 ? 14 : 17;
return (
<HeaderBackButton
label={unreadsCount > 999 ? '+999' : unreadsCount || ' '}
label={label}
onPress={onPress}
tintColor={themes[theme].headerTintColor}
labelStyle={{ fontSize, marginLeft }}
/>
);
}
@ -44,7 +49,7 @@ const RoomHeaderLeft = React.memo(({
return null;
});
RoomHeaderLeft.propTypes = {
LeftButtons.propTypes = {
tmid: PropTypes.string,
unreadsCount: PropTypes.number,
navigation: PropTypes.object,
@ -58,4 +63,4 @@ RoomHeaderLeft.propTypes = {
isMasterDetail: PropTypes.bool
};
export default RoomHeaderLeft;
export default LeftButtons;

View File

@ -68,6 +68,17 @@ class RightButtonsContainer extends React.PureComponent {
}
}
goSearchView = () => {
const {
rid, navigation, isMasterDetail
} = this.props;
if (isMasterDetail) {
navigation.navigate('ModalStackNavigator', { screen: 'SearchMessagesView', params: { rid, showCloseModal: true } });
} else {
navigation.navigate('SearchMessagesView', { rid });
}
}
toggleFollowThread = () => {
const { isFollowingThread } = this.state;
const { toggleFollowThread } = this.props;
@ -104,6 +115,12 @@ class RightButtonsContainer extends React.PureComponent {
testID='room-view-header-threads'
/>
) : null}
<Item
title='search'
iconName='magnifier'
onPress={this.goSearchView}
testID='room-view-search'
/>
</CustomHeaderButtons>
);
}

View File

@ -4,10 +4,11 @@ import { connect } from 'react-redux';
import equal from 'deep-equal';
import Header from './Header';
import LeftButtons from './LeftButtons';
import RightButtons from './RightButtons';
import { withTheme } from '../../../theme';
import RoomHeaderLeft from './RoomHeaderLeft';
import { withDimensions } from '../../../dimensions';
import I18n from '../../../i18n';
class RoomHeaderView extends Component {
static propTypes = {
@ -20,6 +21,7 @@ class RoomHeaderView extends Component {
status: PropTypes.string,
statusText: PropTypes.string,
connecting: PropTypes.bool,
connected: PropTypes.bool,
theme: PropTypes.string,
roomUserId: PropTypes.string,
widthOffset: PropTypes.number,
@ -30,7 +32,7 @@ class RoomHeaderView extends Component {
shouldComponentUpdate(nextProps) {
const {
type, title, subtitle, status, statusText, connecting, goRoomActionsView, usersTyping, theme, width, height
type, title, subtitle, status, statusText, connecting, connected, goRoomActionsView, usersTyping, theme, width, height
} = this.props;
if (nextProps.theme !== theme) {
return true;
@ -53,6 +55,9 @@ class RoomHeaderView extends Component {
if (nextProps.connecting !== connecting) {
return true;
}
if (nextProps.connected !== connected) {
return true;
}
if (nextProps.width !== width) {
return true;
}
@ -70,9 +75,18 @@ class RoomHeaderView extends Component {
render() {
const {
title, subtitle, type, prid, tmid, widthOffset, status = 'offline', statusText, connecting, usersTyping, goRoomActionsView, roomUserId, theme, width, height
title, subtitle: subtitleProp, type, prid, tmid, widthOffset, status = 'offline', statusText, connecting, connected, usersTyping, goRoomActionsView, roomUserId, theme, width, height
} = this.props;
let subtitle;
if (connecting) {
subtitle = I18n.t('Connecting');
} else if (!connected) {
subtitle = I18n.t('Waiting_for_network');
} else {
subtitle = subtitleProp;
}
return (
<Header
prid={prid}
@ -108,7 +122,8 @@ const mapStateToProps = (state, ownProps) => {
}
return {
connecting: state.meteor.connecting,
connecting: state.meteor.connecting || state.server.loading,
connected: state.meteor.connected,
usersTyping: state.usersTyping,
status,
statusText
@ -117,4 +132,4 @@ const mapStateToProps = (state, ownProps) => {
export default connect(mapStateToProps)(withDimensions(withTheme(RoomHeaderView)));
export { RightButtons, RoomHeaderLeft };
export { RightButtons, LeftButtons };

View File

@ -8,6 +8,7 @@ import moment from 'moment';
import * as Haptics from 'expo-haptics';
import { Q } from '@nozbe/watermelondb';
import isEqual from 'lodash/isEqual';
import { withSafeAreaInsets } from 'react-native-safe-area-context';
import Touch from '../../utils/touch';
import {
@ -26,7 +27,7 @@ import styles from './styles';
import log from '../../utils/log';
import EventEmitter from '../../utils/events';
import I18n from '../../i18n';
import RoomHeaderView, { RightButtons, RoomHeaderLeft } from './Header';
import RoomHeaderView, { RightButtons, LeftButtons } from './Header';
import StatusBar from '../../containers/StatusBar';
import Separator from './Separator';
import { themes } from '../../constants/colors';
@ -53,6 +54,7 @@ import Banner from './Banner';
import Navigation from '../../lib/Navigation';
import SafeAreaView from '../../containers/SafeAreaView';
import { withDimensions } from '../../dimensions';
import { getHeaderTitlePosition } from '../../containers/Header';
const stateAttrsUpdate = [
'joined',
@ -91,7 +93,8 @@ class RoomView extends React.Component {
theme: PropTypes.string,
replyBroadcast: PropTypes.func,
width: PropTypes.number,
height: PropTypes.number
height: PropTypes.number,
insets: PropTypes.object
};
constructor(props) {
@ -178,7 +181,7 @@ class RoomView extends React.Component {
shouldComponentUpdate(nextProps, nextState) {
const { state } = this;
const { roomUpdate, member } = state;
const { appState, theme } = this.props;
const { appState, theme, insets } = this.props;
if (theme !== nextProps.theme) {
return true;
}
@ -192,12 +195,15 @@ class RoomView extends React.Component {
if (stateUpdated) {
return true;
}
if (!isEqual(nextProps.insets, insets)) {
return true;
}
return roomAttrsUpdate.some(key => !isEqual(nextState.roomUpdate[key], roomUpdate[key]));
}
componentDidUpdate(prevProps, prevState) {
const { roomUpdate } = this.state;
const { appState } = this.props;
const { appState, insets } = this.props;
if (appState === 'foreground' && appState !== prevProps.appState && this.rid) {
this.onForegroundInteraction = InteractionManager.runAfterInteractions(() => {
@ -222,6 +228,9 @@ class RoomView extends React.Component {
if (((roomUpdate.fname !== prevState.roomUpdate.fname) || (roomUpdate.name !== prevState.roomUpdate.name)) && !this.tmid) {
this.setHeader();
}
if (insets.left !== prevProps.insets.left || insets.right !== prevProps.insets.right) {
this.setHeader();
}
this.setReadOnly();
}
@ -281,7 +290,7 @@ class RoomView extends React.Component {
setHeader = () => {
const { room, unreadsCount, roomUserId: stateRoomUserId } = this.state;
const {
navigation, route, isMasterDetail, theme, baseUrl, user
navigation, route, isMasterDetail, theme, baseUrl, user, insets
} = this.props;
const rid = route.params?.rid;
const prid = route.params?.prid;
@ -299,9 +308,29 @@ class RoomView extends React.Component {
if (!rid) {
return;
}
const headerTitlePosition = getHeaderTitlePosition(insets);
navigation.setOptions({
headerShown: true,
headerTitleAlign: 'left',
headerTitleContainerStyle: {
left: headerTitlePosition.left,
right: headerTitlePosition.right
},
headerLeft: () => (
<LeftButtons
tmid={tmid}
unreadsCount={unreadsCount}
navigation={navigation}
baseUrl={baseUrl}
userId={userId}
token={token}
title={avatar}
theme={theme}
t={t}
goRoomActionsView={this.goRoomActionsView}
isMasterDetail={isMasterDetail}
/>
),
headerTitle: () => (
<RoomHeaderView
rid={rid}
@ -323,21 +352,6 @@ class RoomView extends React.Component {
navigation={navigation}
toggleFollowThread={this.toggleFollowThread}
/>
),
headerLeft: () => (
<RoomHeaderLeft
tmid={tmid}
unreadsCount={unreadsCount}
navigation={navigation}
baseUrl={baseUrl}
userId={userId}
token={token}
title={avatar}
theme={theme}
t={t}
goRoomActionsView={this.goRoomActionsView}
isMasterDetail={isMasterDetail}
/>
)
});
}
@ -755,7 +769,7 @@ class RoomView extends React.Component {
if (handleCommandScroll(event)) {
const offset = input === 'UIKeyInputUpArrow' ? 100 : -100;
this.offset += offset;
this.flatList.scrollToOffset({ offset: this.offset });
this.flatList?.scrollToOffset({ offset: this.offset });
} else if (handleCommandRoomActions(event)) {
this.goRoomActionsView();
} else if (handleCommandSearchMessages(event)) {
@ -1040,4 +1054,4 @@ const mapDispatchToProps = dispatch => ({
replyBroadcast: message => dispatch(replyBroadcastAction(message))
});
export default connect(mapStateToProps, mapDispatchToProps)(withDimensions(withTheme(RoomView)));
export default connect(mapStateToProps, mapDispatchToProps)(withDimensions(withTheme(withSafeAreaInsets(RoomView))));

View File

@ -1,95 +0,0 @@
import React from 'react';
import {
Text, View, TouchableOpacity, StyleSheet
} from 'react-native';
import PropTypes from 'prop-types';
import TextInput from '../../../presentation/TextInput';
import I18n from '../../../i18n';
import sharedStyles from '../../Styles';
import { themes } from '../../../constants/colors';
import { CustomIcon } from '../../../lib/Icons';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center'
},
button: {
flexDirection: 'row',
alignItems: 'center',
marginRight: 64
},
server: {
fontSize: 20,
...sharedStyles.textRegular
},
serverSmall: {
fontSize: 16
},
updating: {
fontSize: 14,
...sharedStyles.textRegular
},
upsideDown: {
transform: [{ scaleY: -1 }]
}
});
const Header = React.memo(({
connecting, isFetching, serverName, showServerDropdown, showSearchHeader, theme, onSearchChangeText, onPress
}) => {
const titleColorStyle = { color: themes[theme].headerTitleColor };
const isLight = theme === 'light';
if (showSearchHeader) {
return (
<View style={styles.container}>
<TextInput
autoFocus
style={[styles.server, isLight && titleColorStyle]}
placeholder='Search'
onChangeText={onSearchChangeText}
theme={theme}
/>
</View>
);
}
return (
<View style={styles.container}>
<TouchableOpacity
onPress={onPress}
testID='rooms-list-header-server-dropdown-button'
disabled={connecting || isFetching}
>
{connecting ? <Text style={[styles.updating, titleColorStyle]}>{I18n.t('Connecting')}</Text> : null}
{isFetching ? <Text style={[styles.updating, titleColorStyle]}>{I18n.t('Updating')}</Text> : null}
<View style={styles.button}>
<Text style={[styles.server, isFetching && styles.serverSmall, titleColorStyle]} numberOfLines={1}>{serverName}</Text>
<CustomIcon
name='chevron-down'
color={themes[theme].headerTintColor}
style={[showServerDropdown && styles.upsideDown]}
size={18}
/>
</View>
</TouchableOpacity>
</View>
);
});
Header.propTypes = {
showServerDropdown: PropTypes.bool.isRequired,
showSearchHeader: PropTypes.bool.isRequired,
onPress: PropTypes.func.isRequired,
onSearchChangeText: PropTypes.func.isRequired,
connecting: PropTypes.bool,
isFetching: PropTypes.bool,
serverName: PropTypes.string,
theme: PropTypes.string
};
Header.defaultProps = {
serverName: 'Rocket.Chat'
};
export default Header;

View File

@ -1,95 +0,0 @@
import React from 'react';
import {
Text, View, StyleSheet
} from 'react-native';
import PropTypes from 'prop-types';
import I18n from '../../../i18n';
import sharedStyles from '../../Styles';
import { themes } from '../../../constants/colors';
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center'
},
button: {
flexDirection: 'row',
alignItems: 'center'
},
title: {
fontSize: 14,
...sharedStyles.textRegular
},
server: {
fontSize: 12,
...sharedStyles.textRegular
},
disclosure: {
marginLeft: 3,
marginTop: 1,
width: 12,
height: 9
},
upsideDown: {
transform: [{ scaleY: -1 }]
}
});
const HeaderTitle = React.memo(({ connecting, isFetching, theme }) => {
let title = I18n.t('Messages');
if (connecting) {
title = I18n.t('Connecting');
}
if (isFetching) {
title = I18n.t('Updating');
}
return <Text style={[styles.title, { color: themes[theme].headerTitleColor }]}>{title}</Text>;
});
const Header = React.memo(({
connecting, isFetching, theme
}) => (
<View style={styles.container}>
{/* <TouchableOpacity
onPress={onPress}
testID='rooms-list-header-server-dropdown-button'
style={styles.container}
// disabled={connecting || isFetching}
>
<HeaderTitle connecting={connecting} isFetching={isFetching} theme={theme} />
<View style={styles.button}>
<Text style={[styles.server, { color: themes[theme].headerTintColor }]} numberOfLines={1}>{serverName}</Text>
<CustomIcon
name='chevron-down'
color={themes[theme].headerTintColor}
style={[showServerDropdown && styles.upsideDown]}
size={18}
/>
</View>
</TouchableOpacity> */}
<HeaderTitle connecting={connecting} isFetching={isFetching} theme={theme} />
</View>
));
Header.propTypes = {
connecting: PropTypes.bool,
isFetching: PropTypes.bool,
// serverName: PropTypes.string,
theme: PropTypes.string
// showServerDropdown: PropTypes.bool.isRequired,
// onPress: PropTypes.func.isRequired
};
// Header.defaultProps = {
// serverName: 'Rocket.Chat'
// };
HeaderTitle.propTypes = {
connecting: PropTypes.bool,
isFetching: PropTypes.bool,
theme: PropTypes.string
};
export default Header;

View File

@ -0,0 +1,92 @@
import React from 'react';
import { Text, View, StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
import TextInput from '../../../presentation/TextInput';
import I18n from '../../../i18n';
import sharedStyles from '../../Styles';
import { themes } from '../../../constants/colors';
import { isTablet, isIOS } from '../../../utils/deviceInfo';
import { useOrientation } from '../../../dimensions';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
marginLeft: isTablet ? 10 : 0
},
button: {
flexDirection: 'row',
alignItems: 'center'
},
title: {
...sharedStyles.textSemibold
},
subtitle: {
...sharedStyles.textRegular
},
upsideDown: {
transform: [{ scaleY: -1 }]
}
});
const Header = React.memo(({
connecting, connected, isFetching, serverName, server, showSearchHeader, theme, onSearchChangeText
}) => {
const titleColorStyle = { color: themes[theme].headerTitleColor };
const isLight = theme === 'light';
const { isLandscape } = useOrientation();
const scale = isIOS && isLandscape && !isTablet ? 0.8 : 1;
const titleFontSize = 16 * scale;
const subTitleFontSize = 14 * scale;
if (showSearchHeader) {
return (
<View style={styles.container}>
<TextInput
autoFocus
style={[styles.title, isLight && titleColorStyle, { fontSize: titleFontSize }]}
placeholder='Search'
onChangeText={onSearchChangeText}
theme={theme}
testID='rooms-list-view-search-input'
/>
</View>
);
}
let subtitle;
if (connecting) {
subtitle = I18n.t('Connecting');
} else if (isFetching) {
subtitle = I18n.t('Updating');
} else if (!connected) {
subtitle = I18n.t('Waiting_for_network');
} else {
subtitle = server?.replace(/(^\w+:|^)\/\//, '');
}
return (
<View style={styles.container}>
<View style={styles.button}>
<Text style={[styles.title, isFetching && styles.serverSmall, titleColorStyle, { fontSize: titleFontSize }]} numberOfLines={1}>{serverName}</Text>
</View>
{subtitle ? <Text style={[styles.subtitle, { color: themes[theme].auxiliaryText, fontSize: subTitleFontSize }]} numberOfLines={1}>{subtitle}</Text> : null}
</View>
);
});
Header.propTypes = {
showSearchHeader: PropTypes.bool.isRequired,
onSearchChangeText: PropTypes.func.isRequired,
connecting: PropTypes.bool,
connected: PropTypes.bool,
isFetching: PropTypes.bool,
serverName: PropTypes.string,
server: PropTypes.string,
theme: PropTypes.string
};
Header.defaultProps = {
serverName: 'Rocket.Chat'
};
export default Header;

View File

@ -18,8 +18,10 @@ class RoomsListHeaderView extends PureComponent {
showSearchHeader: PropTypes.bool,
serverName: PropTypes.string,
connecting: PropTypes.bool,
connected: PropTypes.bool,
isFetching: PropTypes.bool,
theme: PropTypes.string,
server: PropTypes.string,
open: PropTypes.func,
close: PropTypes.func,
closeSort: PropTypes.func,
@ -68,16 +70,18 @@ class RoomsListHeaderView extends PureComponent {
render() {
const {
serverName, showServerDropdown, showSearchHeader, connecting, isFetching, theme
serverName, showServerDropdown, showSearchHeader, connecting, connected, isFetching, theme, server
} = this.props;
return (
<Header
theme={theme}
serverName={serverName}
server={server}
showServerDropdown={showServerDropdown}
showSearchHeader={showSearchHeader}
connecting={connecting}
connected={connected}
isFetching={isFetching}
onPress={this.onPress}
onSearchChangeText={this.onSearchChangeText}
@ -91,8 +95,10 @@ const mapStateToProps = state => ({
showSortDropdown: state.rooms.showSortDropdown,
showSearchHeader: state.rooms.showSearchHeader,
connecting: state.meteor.connecting || state.server.loading,
connected: state.meteor.connected,
isFetching: state.rooms.isFetching,
serverName: state.settings.Site_Name
serverName: state.settings.Site_Name,
server: state.server.server
});
const mapDispatchtoProps = dispatch => ({

View File

@ -1,36 +0,0 @@
import React from 'react';
import PropTypes from 'prop-types';
import SearchBox from '../../../containers/SearchBox';
import { isIOS } from '../../../utils/deviceInfo';
import { withTheme } from '../../../theme';
const SearchBar = React.memo(({
theme, onChangeSearchText, inputRef, searching, onCancelSearchPress, onSearchFocus
}) => {
if (isIOS) {
return (
<SearchBox
onChangeText={onChangeSearchText}
testID='rooms-list-view-search'
inputRef={inputRef}
theme={theme}
hasCancel={searching}
onCancelPress={onCancelSearchPress}
onFocus={onSearchFocus}
/>
);
}
return null;
});
SearchBar.propTypes = {
theme: PropTypes.string,
searching: PropTypes.bool,
inputRef: PropTypes.func,
onChangeSearchText: PropTypes.func,
onCancelSearchPress: PropTypes.func,
onSearchFocus: PropTypes.func
};
export default withTheme(SearchBar);

View File

@ -1,28 +1,16 @@
import React from 'react';
import PropTypes from 'prop-types';
import SearchBar from './SearchBar';
import Directory from './Directory';
import Sort from './Sort';
const ListHeader = React.memo(({
searching,
sortBy,
onChangeSearchText,
toggleSort,
goDirectory,
inputRef,
onCancelSearchPress,
onSearchFocus
goDirectory
}) => (
<>
<SearchBar
inputRef={inputRef}
searching={searching}
onChangeSearchText={onChangeSearchText}
onCancelSearchPress={onCancelSearchPress}
onSearchFocus={onSearchFocus}
/>
<Directory searching={searching} goDirectory={goDirectory} />
<Sort searching={searching} sortBy={sortBy} toggleSort={toggleSort} />
</>
@ -31,12 +19,8 @@ const ListHeader = React.memo(({
ListHeader.propTypes = {
searching: PropTypes.bool,
sortBy: PropTypes.string,
onChangeSearchText: PropTypes.func,
toggleSort: PropTypes.func,
goDirectory: PropTypes.func,
inputRef: PropTypes.func,
onCancelSearchPress: PropTypes.func,
onSearchFocus: PropTypes.func
goDirectory: PropTypes.func
};
export default ListHeader;

View File

@ -12,6 +12,7 @@ import { connect } from 'react-redux';
import { isEqual, orderBy } from 'lodash';
import Orientation from 'react-native-orientation-locker';
import { Q } from '@nozbe/watermelondb';
import { withSafeAreaInsets } from 'react-native-safe-area-context';
import database from '../../lib/database';
import RocketChat from '../../lib/rocketchat';
@ -30,7 +31,7 @@ import {
} from '../../actions/rooms';
import { appStart as appStartAction, ROOT_BACKGROUND } from '../../actions/app';
import debounce from '../../utils/debounce';
import { isIOS, isAndroid, isTablet } from '../../utils/deviceInfo';
import { isIOS, isTablet } from '../../utils/deviceInfo';
import RoomsListHeaderView from './Header';
import {
DrawerButton,
@ -59,10 +60,9 @@ import { MAX_SIDEBAR_WIDTH } from '../../constants/tablet';
import { getUserSelector } from '../../selectors/login';
import { goRoom } from '../../utils/goRoom';
import SafeAreaView from '../../containers/SafeAreaView';
import Header from '../../containers/Header';
import Header, { getHeaderTitlePosition } from '../../containers/Header';
import { withDimensions } from '../../dimensions';
const SCROLL_OFFSET = 56;
const INITIAL_NUM_TO_RENDER = isTablet ? 20 : 12;
const CHATS_HEADER = 'Chats';
const UNREAD_HEADER = 'Unread';
@ -129,7 +129,8 @@ class RoomsListView extends React.Component {
connected: PropTypes.bool,
isMasterDetail: PropTypes.bool,
rooms: PropTypes.array,
width: PropTypes.number
width: PropTypes.number,
insets: PropTypes.object
};
constructor(props) {
@ -242,7 +243,7 @@ class RoomsListView extends React.Component {
loading,
search
} = this.state;
const { rooms, width } = this.props;
const { rooms, width, insets } = this.props;
if (nextState.loading !== loading) {
return true;
}
@ -255,6 +256,9 @@ class RoomsListView extends React.Component {
if (!isEqual(nextProps.rooms, rooms)) {
return true;
}
if (!isEqual(nextProps.insets, insets)) {
return true;
}
// If it's focused and there are changes, update
if (chatsNotEqual) {
this.shouldUpdate = false;
@ -273,7 +277,8 @@ class RoomsListView extends React.Component {
connected,
roomsRequest,
rooms,
isMasterDetail
isMasterDetail,
insets
} = this.props;
const { item } = this.state;
@ -298,6 +303,9 @@ class RoomsListView extends React.Component {
// eslint-disable-next-line react/no-did-update-set-state
this.setState({ item: { rid: rooms[0] } });
}
if (insets.left !== prevProps.insets.left || insets.right !== prevProps.insets.right) {
this.setHeader();
}
}
componentWillUnmount() {
@ -318,9 +326,11 @@ class RoomsListView extends React.Component {
getHeader = () => {
const { searching } = this.state;
const { navigation, isMasterDetail } = this.props;
const { navigation, isMasterDetail, insets } = this.props;
const headerTitlePosition = getHeaderTitlePosition(insets);
return {
headerLeft: () => (searching && isAndroid ? (
headerTitleAlign: 'left',
headerLeft: () => (searching ? (
<CustomHeaderButtons left>
<Item
title='cancel'
@ -332,25 +342,32 @@ class RoomsListView extends React.Component {
<DrawerButton
navigation={navigation}
testID='rooms-list-view-sidebar'
onPress={isMasterDetail ? () => navigation.navigate('ModalStackNavigator', { screen: 'SettingsView' }) : () => navigation.toggleDrawer()}
onPress={isMasterDetail
? () => navigation.navigate('ModalStackNavigator', { screen: 'SettingsView' })
: () => navigation.toggleDrawer()}
/>
)),
headerTitle: () => <RoomsListHeaderView />,
headerRight: () => (searching && isAndroid ? null : (
headerTitleContainerStyle: {
left: headerTitlePosition.left,
right: headerTitlePosition.right
},
headerRight: () => (searching ? null : (
<CustomHeaderButtons>
{isAndroid ? (
<Item
title='search'
iconName='magnifier'
onPress={this.initSearching}
/>
) : null}
<Item
title='new'
iconName='new-chat'
onPress={isMasterDetail ? () => navigation.navigate('ModalStackNavigator', { screen: 'NewMessageView' }) : () => navigation.navigate('NewMessageStackNavigator')}
onPress={isMasterDetail
? () => navigation.navigate('ModalStackNavigator', { screen: 'NewMessageView' })
: () => navigation.navigate('NewMessageStackNavigator')}
testID='rooms-list-view-create-channel'
/>
<Item
title='search'
iconName='magnifier'
onPress={this.initSearching}
testID='rooms-list-view-search'
/>
</CustomHeaderButtons>
))
};
@ -411,7 +428,7 @@ class RoomsListView extends React.Component {
let tempChats = [];
let chats = [];
if (sortBy === 'alphabetical') {
chats = orderBy(data, ['name'], ['asc']);
chats = orderBy(data, [`${ this.useRealName ? 'fname' : 'name' }`], ['asc']);
} else {
chats = orderBy(data, ['roomUpdatedAt'], ['desc']);
}
@ -476,10 +493,8 @@ class RoomsListView extends React.Component {
initSearching = () => {
const { openSearchHeader } = this.props;
this.internalSetState({ searching: true }, () => {
if (isAndroid) {
openSearchHeader();
this.setHeader();
}
openSearchHeader();
this.setHeader();
});
};
@ -493,23 +508,11 @@ class RoomsListView extends React.Component {
Keyboard.dismiss();
if (isIOS && this.inputRef) {
this.inputRef.blur();
this.inputRef.clear();
}
this.setState({ searching: false, search: [] }, () => {
if (isAndroid) {
this.setHeader();
closeSearchHeader();
}
this.setHeader();
closeSearchHeader();
setTimeout(() => {
const offset = isAndroid ? 0 : SCROLL_OFFSET;
if (this.scroll.scrollTo) {
this.scroll.scrollTo({ x: 0, y: offset, animated: true });
} else if (this.scroll.scrollToOffset) {
this.scroll.scrollToOffset({ offset });
}
this.scrollToTop();
}, 200);
});
};
@ -538,9 +541,7 @@ class RoomsListView extends React.Component {
search: result,
searching: true
});
if (this.scroll && this.scroll.scrollTo) {
this.scroll.scrollTo({ x: 0, y: 0, animated: true });
}
this.scrollToTop();
}, 300);
getRoomTitle = item => RocketChat.getRoomTitle(item)
@ -561,15 +562,16 @@ class RoomsListView extends React.Component {
this.goRoom({ item, isMasterDetail });
};
scrollToTop = () => {
if (this.scroll?.scrollToOffset) {
this.scroll.scrollToOffset({ offset: 0 });
}
}
toggleSort = () => {
const { toggleSortDropdown } = this.props;
const offset = isAndroid ? 0 : SCROLL_OFFSET;
if (this.scroll.scrollTo) {
this.scroll.scrollTo({ x: 0, y: offset, animated: true });
} else if (this.scroll.scrollToOffset) {
this.scroll.scrollToOffset({ offset });
}
this.scrollToTop();
setTimeout(() => {
toggleSortDropdown();
}, 100);
@ -714,8 +716,7 @@ class RoomsListView extends React.Component {
if (handleCommandShowPreferences(event)) {
navigation.navigate('SettingsView');
} else if (handleCommandSearching(event)) {
this.scroll.scrollToOffset({ animated: true, offset: 0 });
this.inputRef.focus();
this.initSearching();
} else if (handleCommandSelectRoom(event)) {
this.goRoomByIndex(input);
} else if (handleCommandPreviousRoom(event)) {
@ -744,19 +745,13 @@ class RoomsListView extends React.Component {
getScrollRef = ref => (this.scroll = ref);
getInputRef = ref => (this.inputRef = ref);
renderListHeader = () => {
const { searching } = this.state;
const { sortBy } = this.props;
return (
<ListHeader
inputRef={this.getInputRef}
searching={searching}
sortBy={sortBy}
onChangeSearchText={this.search}
onCancelSearchPress={this.cancelSearch}
onSearchFocus={this.initSearching}
toggleSort={this.toggleSort}
goDirectory={this.goDirectory}
/>
@ -869,7 +864,6 @@ class RoomsListView extends React.Component {
ref={this.getScrollRef}
data={searching ? search : chats}
extraData={searching ? search : chats}
contentOffset={isIOS ? { x: 0, y: SCROLL_OFFSET } : {}}
keyExtractor={keyExtractor}
style={[styles.list, { backgroundColor: themes[theme].backgroundColor }]}
renderItem={this.renderItem}
@ -953,4 +947,4 @@ const mapDispatchToProps = dispatch => ({
closeServerDropdown: () => dispatch(closeServerDropdownAction())
});
export default connect(mapStateToProps, mapDispatchToProps)(withDimensions(withTheme(RoomsListView)));
export default connect(mapStateToProps, mapDispatchToProps)(withDimensions(withTheme(withSafeAreaInsets(RoomsListView))));

View File

@ -23,7 +23,7 @@ export default StyleSheet.create({
sortToggleText: {
fontSize: 16,
flex: 1,
marginLeft: 15,
marginLeft: 12,
...sharedStyles.textRegular
},
dropdownContainer: {
@ -50,16 +50,16 @@ export default StyleSheet.create({
},
sortSeparator: {
height: StyleSheet.hairlineWidth,
marginHorizontal: 15,
marginHorizontal: 12,
flex: 1
},
sortIcon: {
width: 22,
height: 22,
marginHorizontal: 15
marginHorizontal: 12
},
groupTitleContainer: {
paddingHorizontal: 15,
paddingHorizontal: 12,
paddingTop: 17,
paddingBottom: 10
},
@ -75,12 +75,12 @@ export default StyleSheet.create({
},
serverHeaderText: {
fontSize: 16,
marginLeft: 15,
marginLeft: 12,
...sharedStyles.textRegular
},
serverHeaderAdd: {
fontSize: 16,
marginRight: 15,
marginRight: 12,
paddingVertical: 10,
...sharedStyles.textRegular
},
@ -95,7 +95,7 @@ export default StyleSheet.create({
serverIcon: {
width: 42,
height: 42,
marginHorizontal: 15,
marginHorizontal: 12,
marginVertical: 13,
borderRadius: 4,
resizeMode: 'contain'
@ -120,7 +120,7 @@ export default StyleSheet.create({
directoryIcon: {
width: 22,
height: 22,
marginHorizontal: 15
marginHorizontal: 12
},
directoryText: {
fontSize: 16,

View File

@ -10,12 +10,13 @@ import { ImageViewer, types } from '../../presentation/ImageViewer';
import { themes } from '../../constants/colors';
import { useDimensions, useOrientation } from '../../dimensions';
import { getHeaderHeight } from '../../containers/Header';
import { isIOS } from '../../utils/deviceInfo';
import { THUMBS_HEIGHT } from './constants';
import sharedStyles from '../Styles';
import { allowPreview } from './utils';
import I18n from '../../i18n';
const MESSAGEBOX_HEIGHT = 56;
const styles = StyleSheet.create({
fileContainer: {
alignItems: 'center',
@ -58,23 +59,24 @@ const Preview = React.memo(({
const { isLandscape } = useOrientation();
const insets = useSafeAreaInsets();
const headerHeight = getHeaderHeight(isLandscape);
const messageboxHeight = isIOS ? 56 : 0;
const thumbsHeight = (length > 1) ? THUMBS_HEIGHT : 0;
const calculatedHeight = height - insets.top - insets.bottom - messageboxHeight - thumbsHeight - headerHeight;
const calculatedHeight = height - insets.top - insets.bottom - MESSAGEBOX_HEIGHT - thumbsHeight - headerHeight;
if (item?.canUpload) {
if (type?.match(/video/)) {
return (
<Video
source={{ uri: item.path }}
rate={1.0}
volume={1.0}
isMuted={false}
resizeMode={Video.RESIZE_MODE_CONTAIN}
isLooping={false}
style={{ width, height: calculatedHeight }}
useNativeControls
/>
<ScrollView style={{ height: calculatedHeight }}>
<Video
source={{ uri: item.path }}
rate={1.0}
volume={1.0}
isMuted={false}
resizeMode={Video.RESIZE_MODE_CONTAIN}
isLooping={false}
style={{ width, height: calculatedHeight }}
useNativeControls
/>
</ScrollView>
);
}

View File

@ -123,7 +123,7 @@ class ShareView extends Component {
item.error = error;
// get video thumbnails
if (item.mime?.match(/video/)) {
if (item.mime?.match?.(/video/)) {
try {
const { uri } = await VideoThumbnails.getThumbnailAsync(item.path);
item.uri = uri;

View File

@ -141,7 +141,15 @@ class Sidebar extends Component {
get currentItemKey() {
const { state } = this.props;
return state.routeNames[state.index];
return state?.routeNames[state?.index];
}
onPressUser = () => {
const { navigation, isMasterDetail } = this.props;
if (isMasterDetail) {
return;
}
navigation.closeDrawer();
}
renderAdmin = () => {
@ -210,7 +218,7 @@ class Sidebar extends Component {
render() {
const {
user, Site_Name, baseUrl, useRealName, allowStatusMessage, isMasterDetail, theme, navigation
user, Site_Name, baseUrl, useRealName, allowStatusMessage, isMasterDetail, theme
} = this.props;
if (!user) {
@ -229,7 +237,7 @@ class Sidebar extends Component {
]}
{...scrollPersistTaps}
>
<TouchableWithoutFeedback onPress={() => navigation.closeDrawer()} testID='sidebar-close-drawer'>
<TouchableWithoutFeedback onPress={this.onPressUser} testID='sidebar-close-drawer'>
<View style={styles.header} theme={theme}>
<Avatar
text={user.username}

View File

@ -127,7 +127,7 @@ class ThreadMessagesView extends React.Component {
// eslint-disable-next-line react/sort-comp
init = () => {
if (!this.subscription) {
this.load();
return this.load();
}
try {
const lastThreadSync = new Date();

6
e2e/.mocharc.json Normal file
View File

@ -0,0 +1,6 @@
{
"timeout": 300000,
"recursive": true,
"bail": true,
"file":"e2e/tests/init.js"
}

View File

@ -9,9 +9,15 @@
### 1. Prepare test environment
#### 1.1. Set up local Rocket Chat server
#### 1.1. A Rocket.Chat server
* Install Rocket Chat meteor app by following this [guide](https://rocket.chat/docs/developer-guides/quick-start).
Either
* Install Rocket.Chat meteor app by following this [guide](https://rocket.chat/docs/developer-guides/quick-start).
Or
* Use the local Docker environment available in this folder. You can start the environment using `./e2e/docker/controlRCDemoEnv.sh startandwait`, or you can use the packaged start & run script (see step 3). Either way, you'll need [Docker](https://docs.docker.com/engine/install/) and [Docker Compose](https://docs.docker.com/compose/install/).
#### 1.2. Set up detox
@ -19,14 +25,11 @@
### 2. Prepare test data
* Run Rocket Chat meteor app: `meteor npm start` (make sure you to run this command from project that you created on Step 1.1.).
* Open `localhost:3000` in browser.
* Sign up as admin.
* Create public room `detox-public`.
* Create user with role: `user`, username: `detoxrn`, email: `YOUR@EMAIL.COM`, password: `123`.
* Create user with role: `user`, username: `YOUR.NAME`, email: `YOUR.SECOND@EMAIL.COM`, password: `123`.
* In file `e2e/data.js` change values `existingEmail` with `YOUR.SECOND@EMAIL.COM`, `existingName` with `YOUR.NAME`.
* Login as user `detoxrn` -> open My Account -> Security tab -> click "Enable two-factor authentication" -> copy TTOLP code -> paste TTOLP code into `./e2e/data.js` file into field: `alternateUserTOTPSecret`.
* If you're running your own Rocket.Chat server, ensure it's started (e.g. `meteor npm start` in the server project directory).
* Edit `e2e/data.js`:
* Set the `server` to the address of the server under test
* Set the `adminUser` and `adminPassword` to an admin user on that environment (or a user with at least `create-user` and `create-c`).
* Working example configs exist in `./e2e/data/`. Setting `FORCE_DEFAULT_DOCKER_DATA` to `1` in the `runTestsInDocker.sh` script will use the example config automatically
### 3. Running tests
@ -34,7 +37,7 @@
* Build app with detox: `detox build -c ios.sim.release`
* Open Simulator which is used in tests (check in package.json under detox section) from Xcode and make sure that software keyboard is being displayed. To toggle keyboard press `cmd+K`.
* Run tests: `detox test -c ios.sim.release`
* Run tests: `detox test -c ios.sim.release`, or, if choosing Docker you can run the packaged environment & runner (`./e2e/docker/runTestsInDocker.sh`) which will start the Docker infrastructure, run the tests and tear it down again once done.
#### 3.2. Android
@ -50,6 +53,10 @@ Tests have been grouped into subfolders. You can choose to run just one group of
`detox test ./e2e/tests/onboarding -c ios.sim.release`
To do the same with the Docker runner:
`./e2e/docker/runTestsInDocker.sh onboarding`
### 4. FAQ
#### 4.1. Detox build fails
@ -68,3 +75,10 @@ Tests have been grouped into subfolders. You can choose to run just one group of
* Make sure software keyboard is displayed in simulator when focusing some input. To enable keyboard press `cmd+K`.
* Make sure you have prepared all [test data](##-2.-Prepare-test-data).
* Sometimes detox e2e tests fail for no reason so all you can do is simply re-run again.
### 5. Todo
* TOTP test
* Push notifications
* Deep linking
* Intermittent connectivity

View File

@ -1,16 +1,43 @@
const random = require('./helpers/random');
const value = random(20);
const data = {
server: 'https://ilarion.rocket.chat',
server: 'https://mobile.rocket.chat',
adminUser: 'e2e_admin',
adminPassword: 'p7mFh4yLwCRXSnMvG',
alternateServer: 'https://stable.rocket.chat',
user: `user${ value }`,
password: `password${ value }`,
alternateUser: 'detoxrn',
alternateUserPassword: '123',
alternateUserTOTPSecret: 'NFXHKKC6FJXESL25HBYTYNSFKR4WCTSXFRKUUVKEOBBC6I3JKI7A',
existingEmail: 'diego.mello@rocket.chat',
existingName: 'diego.mello',
email: `diego.mello+e2e${ value }@rocket.chat`,
users: {
regular: {
username: `userone${ value }`,
password: '123',
email: `diego.mello+regular${ value }@rocket.chat`
},
alternate: {
username: `usertwo${ value }`,
password: '123',
email: `diego.mello+alternate${ value }@rocket.chat`,
totpSecret: 'NA4GOMZGHBQSK6KEFRVT62DMGJJGSYZJFZIHO3ZOGVXWCYZ6MMZQ'
},
profileChanges: {
username: `userthree${ value }`,
password: '123',
email: `diego.mello+profileChanges${ value }@rocket.chat`
},
existing: {
username: `existinguser${ value }`,
password: '123',
email: `diego.mello+existing${ value }@rocket.chat`
}
},
channels: {
public: {
name: 'detox-public'
}
},
registeringUser: {
username: `newuser${ value }`,
password: `password${ value }`,
email: `diego.mello+registering${ value }@rocket.chat`
},
random: value
}
module.exports = data;

43
e2e/data/data.cloud.js Normal file
View File

@ -0,0 +1,43 @@
const random = require('./helpers/random');
const value = random(20);
const data = {
server: 'https://mobile.rocket.chat',
adminUser: 'e2e_admin',
adminPassword: 'p7mFh4yLwCRXSnMvG',
alternateServer: 'https://stable.rocket.chat',
users: {
regular: {
username: `userone${ value }`,
password: '123',
email: `diego.mello+regular${ value }@rocket.chat`
},
alternate: {
username: `usertwo${ value }`,
password: '123',
email: `diego.mello+alternate${ value }@rocket.chat`,
totpSecret: 'NA4GOMZGHBQSK6KEFRVT62DMGJJGSYZJFZIHO3ZOGVXWCYZ6MMZQ'
},
profileChanges: {
username: `userthree${ value }`,
password: '123',
email: `diego.mello+profileChanges${ value }@rocket.chat`
},
existing: {
username: `existinguser${ value }`,
password: '123',
email: `diego.mello+existing${ value }@rocket.chat`
}
},
channels: {
public: {
name: 'detox-public'
}
},
registeringUser: {
username: `newuser${ value }`,
password: `password${ value }`,
email: `diego.mello+registering${ value }@rocket.chat`
},
random: value
}
module.exports = data;

43
e2e/data/data.docker.js Normal file
View File

@ -0,0 +1,43 @@
const random = require('./helpers/random');
const value = random(20);
const data = {
server: 'http://127.0.0.1:3000',
adminUser: 'admin',
adminPassword: 'password',
alternateServer: 'https://stable.rocket.chat',
users: {
regular: {
username: `userone${ value }`,
password: '123',
email: `diego.mello+regular${ value }@rocket.chat`
},
alternate: {
username: `usertwo${ value }`,
password: '123',
email: `diego.mello+alternate${ value }@rocket.chat`,
totpSecret: 'NA4GOMZGHBQSK6KEFRVT62DMGJJGSYZJFZIHO3ZOGVXWCYZ6MMZQ'
},
profileChanges: {
username: `userthree${ value }`,
password: '123',
email: `diego.mello+profileChanges${ value }@rocket.chat`
},
existing: {
username: `existinguser${ value }`,
password: '123',
email: `diego.mello+existing${ value }@rocket.chat`
}
},
channels: {
public: {
name: 'detox-public'
}
},
registeringUser: {
username: `newuser${ value }`,
password: `password${ value }`,
email: `diego.mello+registering${ value }@rocket.chat`
},
random: value
}
module.exports = data;

70
e2e/docker/controlRCDemoEnv.sh Executable file
View File

@ -0,0 +1,70 @@
#!/bin/bash
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
PAUSE_ON_FAIL_FOR_DEBUG=0
COMMAND="start"
if [ "$1" != "" ]; then
if [[ "$1" =~ ^(start|startandwait|stop)$ ]]; then
COMMAND=$1
else
echo "Invalid command. Must be one of: start,stop"
exit 1
fi
fi
WAIT=0
if [ "$COMMAND" == "startandwait" ]; then
COMMAND="start"
WAIT=1
fi
COMPOSEPATH="$SCRIPTPATH/rc_test_env"
export DATAROOT="$SCRIPTPATH"
if [ "$COMMAND" == "start" ]; then
echo "Fetching infrastructure config from GitHub"
COMPOSEURL=https://raw.githubusercontent.com/RocketChat/Rocket.Chat/develop/docker-compose.yml
COMPOSEFILE="$COMPOSEPATH/docker-compose.yml"
curl -s "$COMPOSEURL" -o "$COMPOSEFILE"
echo "Starting infrastructure"
(
if [ -d "$SCRIPTPATH/data/db" ]; then rm -rf "$SCRIPTPATH/data/db"; fi
cd "$COMPOSEPATH"
docker-compose up -d
)
if [ $WAIT == 1 ]; then
echo "Waiting for RocketChat to be ready"
ATTEMPT_NUMBER=0
MAX_ATTEMPTS=60
while [ $ATTEMPT_NUMBER -lt $MAX_ATTEMPTS ]; do # https://stackoverflow.com/a/21189312/399007
ATTEMPT_NUMBER=$((ATTEMPT_NUMBER + 1 ))
echo "Waiting for server to be up ($ATTEMPT_NUMBER of $MAX_ATTEMPTS)"
LOGS=$(docker logs rc_test_env_rocketchat_1 2> /dev/null)
if grep -q 'SERVER RUNNING' <<< $LOGS ; then
echo "RocketChat is ready!"
break
else
if [ $ATTEMPT_NUMBER == $MAX_ATTEMPTS ]; then
echo "RocketChat failed to start"
if [ $PAUSE_ON_FAIL_FOR_DEBUG == 1 ]; then
read -n 1 -s -r -p "Press any key to tear down infrastructure." && echo
fi
docker-compose down --volumes
exit 1
fi
fi
sleep 4
done
fi
fi
if [ "$COMMAND" == "stop" ]; then
(
cd "$COMPOSEPATH"
docker-compose down --volumes
)
fi

View File

@ -0,0 +1,11 @@
rs.initiate({
_id: 'rs0',
members: [ { _id: 0, host: 'localhost:27017' } ]})
var masterness = db.isMaster().ismaster
print("MongoDB Master initial state: " + masterness)
while(db.isMaster().ismaster==false) {
print("Waiting for MongoDB election")
sleep(1000)
}
print("Election complete! Ready for data imports.")

View File

@ -0,0 +1 @@
db.getCollection("migrations").insert({"_id":"control","locked":false,"version":NumberInt(188),"buildAt":"2020-05-11T19:06:54.422Z","lockedAt":new Date(1591734393789)});

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
db.getCollection("rocketchat_avatars.files").insert({"_id":"MKBNfes8gxMXWJ92Q","length":NumberInt(15150),"chunkSize":NumberInt(261120),"uploadDate":new Date(1584022383269),"filename":"MKBNfes8gxMXWJ92Q","md5":"c9b8c0bcfb357aad6776c79e01cfe337","contentType":"image/png"});

View File

@ -0,0 +1 @@
db.getCollection("rocketchat_avatars").insert({"_id":"MKBNfes8gxMXWJ92Q","userId":"rocket.cat","type":"image/png","size":NumberInt(15150),"store":"GridFS:Avatars","_updatedAt":new Date(1584022383071),"instanceId":"DazcJz4ePrpaT9fhB","name":"rocket.cat","complete":true,"etag":"epCf7uvbjuLqxn5ug","path":"/ufs/GridFS:Avatars/MKBNfes8gxMXWJ92Q/undefined","progress":NumberInt(1),"token":"b8AB381B99","uploadedAt":new Date(1584022383291),"uploading":false,"url":"http://localhost:3000/ufs/GridFS:Avatars/MKBNfes8gxMXWJ92Q/undefined"});

View File

@ -0,0 +1 @@
db.getCollection("rocketchat_custom_user_status").insert({"_id":"y7RDq6exjSuqdxvgT","name":"Pensive","statusType":"busy","_updatedAt":new Date(1589466480022)});

View File

@ -0,0 +1,2 @@
db.getCollection("rocketchat_federation_keys").insert({"_id":"HR8NWWXvRYsNCuAj2","type":"private","key":"-----BEGIN PRIVATE KEY-----MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC9Ke0tvSqzbs+UlI/tFdME1SS5J30oYQB6vKZYiC7Wjbfg5dOnMB+l3kKwAtKHQw2nfZynNgnVzuksyvn+c7mw6Wnd+HM9EUYIhtBMsaonBDL0seMgo1dX2qGq2DyU46QhBmnT1NJTze966leYQK2csUoxsW3/A+kqVse1vaGtTD9e76rqhlICXBfYMkHfWWwfWjwq1yvk7AJ1p622ukTaJkQruCDn84sMQZB+rHEfD/e6Ggdr/+6BPhMNbN17jrvW1lolG4lNrNXBGH85Pn74ao79XWTPpgn75KV1ClBkSbdq/kn+rolKX5NLjg7LRwRBIlj7rqBEh+VzGsURu6IxAgMBAAECggEAUyuvA9BLiQ8sp8hWK8jPui0480vAhNN5kX2GqiBeb6lp8rE6SSUolRZPPfJPvHcn9r+M9BwXYPGTpkUse8tIFtfZ22XUzUHeB/u2dDIdfQAko1/fXEdVLOSM9oASyuf4DykxuJi3TW+bXvDQSLoPW3i8BXNcyKZgi2QSdP8Gqhm9KrUjMays9DlU7Wna8RonVz5YP4MRhDalbGT4vX17rxTDCaN/dKHsCPRZbfBzvR4QJ6sxMhMefzH7qPiBY+p2lFt4Wr/JtZiOzbRqHi2QMoTmEjSwmIeU9ClQECUq3JJSPM7FH+1Yy+9iCQGTG4VAiwFAShjRJQG7dlGPNpdcwQKBgQDtErmAZIS12KPBfC7tIZ3QUi6ed6jSL4yCd7+8iL4Awbd8b98Z0XZPh2Nl55dR6RGhDBDen8fXKaoTA+aosuzt40KrXqXMAxEBI8Uu6BijpWdvtyhdUjLCGspQQCkZcI2TAO0DFzYwZl1Nk38ep8JF+s2vHdq92oltY1WBOv0V6QKBgQDMRAkNfcodAyakmvpK5dOgsXIE+MuaAqEPZrXMUtgfju+Z18+HkiVX7FARbWhRJzY8Zw5riK/hqR0V6SF5JPVmp9+nk7h7mQles0bJ23hDiTJK13wWXD+NZF2O3IGFr83ixHJvlDqxYmCEUGQwvocmfB4setaZ0oJzDOjeTuPVCQKBgQDkbXVV1ATXXs2ygeCJVinEb1tCD5QYKf6eO5oApFVHT2BnwzdZniz8RjytFPAF2afF4GVkzNn2ZMveFJUsmXKXaLF1g/YG1DGPQpMdNj9/dsFqsDVxbeFAjCXCG4A+ZefT7EFzB+uLySY/uE31ELmtShLjl8WLx0VBpEPgCCGR+QKBgQCcA7sGWvVsg2OYheZ2HmQtcFquAXlBAJETuldQ4FXChOHslzEjUzTCmvPs26u5kEGUkQIqkBQGP6y/d3jhlqD472+cBu/5N0I42qVOuBp7Oub20u8sBPllfSsYWsNy4HxYn8LoBkduBL3DUcO0l1GSy2ogfxI6GtcYGNwkMA1EQQKBgH515MrbH+CQQarDtc21V7fCXtq95RO10dUt5dXIV0XYaOUkun3JQ4MQ3n0cprZe1DX/pSoMR3sb7jMt8LGMl71TxNWSubIEpYvXxHxPfPX2ZZ2Epxd+yOd3qLCoTrN3f2t0Xb9g3RiYESM5D/XT6ahFZDeTl/vhK4w0dgrjOMPR-----END PRIVATE KEY-----","_updatedAt":new Date(1584022372590)});
db.getCollection("rocketchat_federation_keys").insert({"_id":"Kbs7RovpL87fynDH3","type":"public","key":"-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvSntLb0qs27PlJSP7RXTBNUkuSd9KGEAerymWIgu1o234OXTpzAfpd5CsALSh0MNp32cpzYJ1c7pLMr5/nO5sOlp3fhzPRFGCIbQTLGqJwQy9LHjIKNXV9qhqtg8lOOkIQZp09TSU83veupXmECtnLFKMbFt/wPpKlbHtb2hrUw/Xu+q6oZSAlwX2DJB31lsH1o8Ktcr5OwCdaettrpE2iZEK7gg5/OLDEGQfqxxHw/3uhoHa//ugT4TDWzde4671tZaJRuJTazVwRh/OT5++GqO/V1kz6YJ++SldQpQZEm3av5J/q6JSl+TS44Oy0cEQSJY+66gRIflcxrFEbuiMQIDAQAB-----END PUBLIC KEY-----","_updatedAt":new Date(1584022372598)});

View File

@ -0,0 +1,7 @@
db.getCollection("rocketchat_livechat_office_hour").insert({"_id":"25cEkE4HYJepqYdSQ","day":"Saturday","start":"08:00","finish":"20:00","code":NumberInt(6),"open":false,"_updatedAt":new Date(1584022357707)});
db.getCollection("rocketchat_livechat_office_hour").insert({"_id":"CQAfqmpYCv6WC7MTQ","day":"Tuesday","start":"08:00","finish":"20:00","code":NumberInt(2),"open":true,"_updatedAt":new Date(1584022357689)});
db.getCollection("rocketchat_livechat_office_hour").insert({"_id":"GBNmEQYQGDEX9tQ4j","day":"Sunday","start":"08:00","finish":"20:00","code":NumberInt(0),"open":false,"_updatedAt":new Date(1584022357710)});
db.getCollection("rocketchat_livechat_office_hour").insert({"_id":"TYvTiTSorTPKiH8mF","day":"Wednesday","start":"08:00","finish":"20:00","code":NumberInt(3),"open":true,"_updatedAt":new Date(1584022357697)});
db.getCollection("rocketchat_livechat_office_hour").insert({"_id":"WeLuoHz3Kz8figd9M","day":"Thursday","start":"08:00","finish":"20:00","code":NumberInt(4),"open":true,"_updatedAt":new Date(1584022357698)});
db.getCollection("rocketchat_livechat_office_hour").insert({"_id":"e9t67H2WnZvpiSJQd","day":"Monday","start":"08:00","finish":"20:00","code":NumberInt(1),"open":true,"_updatedAt":new Date(1584022357676)});
db.getCollection("rocketchat_livechat_office_hour").insert({"_id":"rzLMR3aBY3oyBexHf","day":"Friday","start":"08:00","finish":"20:00","code":NumberInt(5),"open":true,"_updatedAt":new Date(1584022357702)});

View File

@ -0,0 +1 @@
db.getCollection("rocketchat_message").insert({"_id":"fsy2dZJgmmboowJ8N","t":"uj","rid":"GENERAL","ts":new Date(1584022608462),"msg":"admin","u":{"_id":"nM6vXyDLGGzSPsLNy","username":"admin"},"groupable":false,"_updatedAt":new Date(1584022608462)});

View File

@ -0,0 +1 @@
db.getCollection("rocketchat_oauth_apps").insert({"_id":"zapier","name":"Zapier","active":true,"clientId":"zapier","clientSecret":"RTK6TlndaCIolhQhZ7_KHIGOKj41RnlaOq_o-7JKwLr","redirectUri":"https://zapier.com/dashboard/auth/oauth/return/RocketChatDevAPI/","_createdAt":new Date(1584022375172),"_createdBy":{"_id":"system","username":"system"},"_updatedAt":new Date(1584022375172)});

View File

@ -0,0 +1,993 @@
db.getCollection("rocketchat_permissions").insert({"_id":"access-mailer","_updatedAt":new Date(1591734399923),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"access-permissions","_updatedAt":new Date(1584022378380),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"access-setting-permissions","_updatedAt":new Date(1584022378383),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"add-livechat-department-agents","_updatedAt":new Date(1584022378683),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"add-oauth-service","_updatedAt":new Date(1584022378385),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"add-user-to-any-c-room","_updatedAt":new Date(1584022378392),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"add-user-to-any-p-room","_updatedAt":new Date(1584022378396),"roles":[]});
db.getCollection("rocketchat_permissions").insert({"_id":"add-user-to-joined-room","_updatedAt":new Date(1584022378388),"roles":["admin","owner","moderator"]});
db.getCollection("rocketchat_permissions").insert({"_id":"api-bypass-rate-limit","_updatedAt":new Date(1584022378399),"roles":["admin","bot","app"]});
db.getCollection("rocketchat_permissions").insert({"_id":"archive-room","_updatedAt":new Date(1584022378402),"roles":["admin","owner"]});
db.getCollection("rocketchat_permissions").insert({"_id":"assign-admin-role","_updatedAt":new Date(1584022378405),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"assign-roles","_updatedAt":new Date(1584022378408),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"auto-translate","roles":["admin"],"_updatedAt":new Date(1584022380607)});
db.getCollection("rocketchat_permissions").insert({"_id":"ban-user","_updatedAt":new Date(1584022378411),"roles":["admin","owner","moderator"]});
db.getCollection("rocketchat_permissions").insert({"_id":"bulk-register-user","_updatedAt":new Date(1584022378415),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"call-management","_updatedAt":new Date(1584022378628),"roles":["admin","owner","moderator"]});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Allow_Infinite_Count","_updatedAt":new Date(1591734395024),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"REST API","sectionPermissionId":"change-setting-REST API","settingId":"API_Allow_Infinite_Count","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_CORS_Origin","_updatedAt":new Date(1591734395041),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"REST API","sectionPermissionId":"change-setting-REST API","settingId":"API_CORS_Origin","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Default_Count","_updatedAt":new Date(1591734395020),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"REST API","sectionPermissionId":"change-setting-REST API","settingId":"API_Default_Count","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Drupal_URL","_updatedAt":new Date(1591734395975),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Drupal","sectionPermissionId":"change-setting-Drupal","settingId":"API_Drupal_URL","sorter":NumberInt(40)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Embed","_updatedAt":new Date(1591734395629),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"API_Embed","sorter":NumberInt(20)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_EmbedCacheExpirationDays","_updatedAt":new Date(1591734395634),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"API_EmbedCacheExpirationDays","sorter":NumberInt(22)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_EmbedDisabledFor","_updatedAt":new Date(1591734395638),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"API_EmbedDisabledFor","sorter":NumberInt(24)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_EmbedIgnoredHosts","_updatedAt":new Date(1591734395640),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"API_EmbedIgnoredHosts","sorter":NumberInt(25)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_EmbedSafePorts","_updatedAt":new Date(1591734395642),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"API_EmbedSafePorts","sorter":NumberInt(26)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Embed_UserAgent","_updatedAt":new Date(1591734395631),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"API_Embed_UserAgent","sorter":NumberInt(21)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Embed_clear_cache_now","_updatedAt":new Date(1591734395636),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"API_Embed_clear_cache_now","sorter":NumberInt(23)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Enable_CORS","_updatedAt":new Date(1591734395038),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"REST API","sectionPermissionId":"change-setting-REST API","settingId":"API_Enable_CORS","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Enable_Direct_Message_History_EndPoint","_updatedAt":new Date(1591734395029),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"REST API","sectionPermissionId":"change-setting-REST API","settingId":"API_Enable_Direct_Message_History_EndPoint","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Enable_Rate_Limiter","_updatedAt":new Date(1591734395845),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"API Rate Limiter","sectionPermissionId":"change-setting-API Rate Limiter","settingId":"API_Enable_Rate_Limiter","sorter":NumberInt(15)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Enable_Rate_Limiter_Dev","_updatedAt":new Date(1591734395847),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"API Rate Limiter","sectionPermissionId":"change-setting-API Rate Limiter","settingId":"API_Enable_Rate_Limiter_Dev","sorter":NumberInt(16)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Enable_Rate_Limiter_Limit_Calls_Default","_updatedAt":new Date(1591734395850),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"API Rate Limiter","sectionPermissionId":"change-setting-API Rate Limiter","settingId":"API_Enable_Rate_Limiter_Limit_Calls_Default","sorter":NumberInt(17)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Enable_Rate_Limiter_Limit_Time_Default","_updatedAt":new Date(1591734395853),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"API Rate Limiter","sectionPermissionId":"change-setting-API Rate Limiter","settingId":"API_Enable_Rate_Limiter_Limit_Time_Default","sorter":NumberInt(18)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Enable_Shields","_updatedAt":new Date(1591734395033),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"REST API","sectionPermissionId":"change-setting-REST API","settingId":"API_Enable_Shields","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_GitHub_Enterprise_URL","_updatedAt":new Date(1591734395995),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitHub Enterprise","sectionPermissionId":"change-setting-GitHub Enterprise","settingId":"API_GitHub_Enterprise_URL","sorter":NumberInt(45)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Gitlab_URL","_updatedAt":new Date(1591734396003),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitLab","sectionPermissionId":"change-setting-GitLab","settingId":"API_Gitlab_URL","sorter":NumberInt(50)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Shield_Types","_updatedAt":new Date(1591734395036),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"REST API","sectionPermissionId":"change-setting-REST API","settingId":"API_Shield_Types","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Shield_user_require_auth","_updatedAt":new Date(1591734396876),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"REST API","sectionPermissionId":"change-setting-REST API","settingId":"API_Shield_user_require_auth","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Tokenpass_URL","_updatedAt":new Date(1591734395924),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Tokenpass","sectionPermissionId":"change-setting-Tokenpass","settingId":"API_Tokenpass_URL","sorter":NumberInt(27)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Upper_Count_Limit","_updatedAt":new Date(1591734395017),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"REST API","sectionPermissionId":"change-setting-REST API","settingId":"API_Upper_Count_Limit","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Use_REST_For_DDP_Calls","_updatedAt":new Date(1591734396878),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"REST API","sectionPermissionId":"change-setting-REST API","settingId":"API_Use_REST_For_DDP_Calls","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_User_Limit","_updatedAt":new Date(1591734395574),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"REST API","sectionPermissionId":"change-setting-REST API","settingId":"API_User_Limit","sorter":NumberInt(37)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-API_Wordpress_URL","_updatedAt":new Date(1591734396252),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"WordPress","sectionPermissionId":"change-setting-WordPress","settingId":"API_Wordpress_URL","sorter":NumberInt(65)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts","_updatedAt":new Date(1591734399044),"level":"settings","roles":[],"settingId":"Accounts"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AllowAnonymousRead","_updatedAt":new Date(1591734395248),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_AllowAnonymousRead","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AllowAnonymousWrite","_updatedAt":new Date(1591734395250),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_AllowAnonymousWrite","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AllowDeleteOwnAccount","_updatedAt":new Date(1591734395252),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_AllowDeleteOwnAccount","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AllowEmailChange","_updatedAt":new Date(1591734395265),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_AllowEmailChange","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AllowEmailNotifications","_updatedAt":new Date(1591734395269),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_AllowEmailNotifications","sorter":NumberInt(16)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AllowPasswordChange","_updatedAt":new Date(1591734395267),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_AllowPasswordChange","sorter":NumberInt(15)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AllowRealNameChange","_updatedAt":new Date(1591734395258),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_AllowRealNameChange","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AllowUserAvatarChange","_updatedAt":new Date(1591734395256),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_AllowUserAvatarChange","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AllowUserProfileChange","_updatedAt":new Date(1591734395254),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_AllowUserProfileChange","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AllowUserStatusMessageChange","_updatedAt":new Date(1591734395261),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_AllowUserStatusMessageChange","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AllowUsernameChange","_updatedAt":new Date(1591734395263),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_AllowUsernameChange","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AllowedDomainsList","_updatedAt":new Date(1591734395313),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_AllowedDomainsList","sorter":NumberInt(34)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AvatarBlockUnauthenticatedAccess","_updatedAt":new Date(1591734395436),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Avatar","sectionPermissionId":"change-setting-Avatar","settingId":"Accounts_AvatarBlockUnauthenticatedAccess","sorter":NumberInt(81)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AvatarCacheTime","_updatedAt":new Date(1591734395434),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Avatar","sectionPermissionId":"change-setting-Avatar","settingId":"Accounts_AvatarCacheTime","sorter":NumberInt(80)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AvatarExternalProviderUrl","_updatedAt":new Date(1591734395430),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Avatar","sectionPermissionId":"change-setting-Avatar","settingId":"Accounts_AvatarExternalProviderUrl","sorter":NumberInt(79)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AvatarResize","_updatedAt":new Date(1591734395425),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Avatar","sectionPermissionId":"change-setting-Avatar","settingId":"Accounts_AvatarResize","sorter":NumberInt(77)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_AvatarSize","_updatedAt":new Date(1591734395428),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Avatar","sectionPermissionId":"change-setting-Avatar","settingId":"Accounts_AvatarSize","sorter":NumberInt(78)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_BlockedDomainsList","_updatedAt":new Date(1591734395316),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_BlockedDomainsList","sorter":NumberInt(35)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_BlockedUsernameList","_updatedAt":new Date(1591734395318),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_BlockedUsernameList","sorter":NumberInt(36)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_ConfirmPasswordPlaceholder","_updatedAt":new Date(1591734395283),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_ConfirmPasswordPlaceholder","sorter":NumberInt(22)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_CustomFields","_updatedAt":new Date(1591734395345),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_CustomFields","sorter":NumberInt(46)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_CustomFieldsToShowInUserInfo","_updatedAt":new Date(1591734395271),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_CustomFieldsToShowInUserInfo","sorter":NumberInt(17)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_DefaultUsernamePrefixSuggestion","_updatedAt":new Date(1591734395300),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_DefaultUsernamePrefixSuggestion","sorter":NumberInt(28)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_audioNotifications","_updatedAt":new Date(1591734395367),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_audioNotifications","sorter":NumberInt(51)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_autoImageLoad","_updatedAt":new Date(1591734395381),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_autoImageLoad","sorter":NumberInt(57)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_collapseMediaByDefault","_updatedAt":new Date(1591734395385),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_collapseMediaByDefault","sorter":NumberInt(59)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_convertAsciiEmoji","_updatedAt":new Date(1591734395379),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_convertAsciiEmoji","sorter":NumberInt(56)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_desktopNotificationDuration","_updatedAt":new Date(1591734395361),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_desktopNotificationDuration","sorter":NumberInt(49)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_desktopNotificationRequireInteraction","_updatedAt":new Date(1591734395365),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_desktopNotificationRequireInteraction","sorter":NumberInt(50)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_desktopNotifications","_updatedAt":new Date(1591734395371),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_desktopNotifications","sorter":NumberInt(52)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_emailNotificationMode","_updatedAt":new Date(1591734395413),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_emailNotificationMode","sorter":NumberInt(72)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_enableAutoAway","_updatedAt":new Date(1591734395348),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_enableAutoAway","sorter":NumberInt(47)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_hideAvatars","_updatedAt":new Date(1591734395396),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_hideAvatars","sorter":NumberInt(63)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_hideFlexTab","_updatedAt":new Date(1591734395393),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_hideFlexTab","sorter":NumberInt(62)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_hideRoles","_updatedAt":new Date(1591734395391),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_hideRoles","sorter":NumberInt(61)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_hideUsernames","_updatedAt":new Date(1591734395388),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_hideUsernames","sorter":NumberInt(60)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_idleTimeLimit","_updatedAt":new Date(1591734395359),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_idleTimeLimit","sorter":NumberInt(48)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_messageViewMode","_updatedAt":new Date(1591734395410),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_messageViewMode","sorter":NumberInt(71)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_mobileNotifications","_updatedAt":new Date(1591734395373),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_mobileNotifications","sorter":NumberInt(53)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_muteFocusedConversations","_updatedAt":new Date(1591734395420),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_muteFocusedConversations","sorter":NumberInt(75)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_newMessageNotification","_updatedAt":new Date(1591734395417),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_newMessageNotification","sorter":NumberInt(74)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_newRoomNotification","_updatedAt":new Date(1591734395415),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_newRoomNotification","sorter":NumberInt(73)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_notificationsSoundVolume","_updatedAt":new Date(1591734395423),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_notificationsSoundVolume","sorter":NumberInt(76)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_saveMobileBandwidth","_updatedAt":new Date(1591734395383),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_saveMobileBandwidth","sorter":NumberInt(58)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_sendOnEnter","_updatedAt":new Date(1591734395408),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_sendOnEnter","sorter":NumberInt(70)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_sidebarGroupByType","_updatedAt":new Date(1591734395398),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_sidebarGroupByType","sorter":NumberInt(64)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_sidebarHideAvatar","_updatedAt":new Date(1591734395402),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_sidebarHideAvatar","sorter":NumberInt(66)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_sidebarShowDiscussion","_updatedAt":new Date(1591734400277),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_sidebarShowDiscussion","sorter":NumberInt(96)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_sidebarShowFavorites","_updatedAt":new Date(1591734395406),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_sidebarShowFavorites","sorter":NumberInt(69)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_sidebarShowUnread","_updatedAt":new Date(1591734395404),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_sidebarShowUnread","sorter":NumberInt(67)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_sidebarSortby","_updatedAt":new Date(1591734396972),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_sidebarSortby","sorter":NumberInt(68)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_sidebarViewMode","_updatedAt":new Date(1591734395400),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_sidebarViewMode","sorter":NumberInt(65)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_unreadAlert","_updatedAt":new Date(1591734395375),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_unreadAlert","sorter":NumberInt(54)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Default_User_Preferences_useEmojis","_updatedAt":new Date(1591734395377),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Accounts_Default_User_Preferences","sectionPermissionId":"change-setting-Accounts_Default_User_Preferences","settingId":"Accounts_Default_User_Preferences_useEmojis","sorter":NumberInt(55)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Directory_DefaultView","_updatedAt":new Date(1591734395293),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_Directory_DefaultView","sorter":NumberInt(25)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_EmailOrUsernamePlaceholder","_updatedAt":new Date(1591734395278),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_EmailOrUsernamePlaceholder","sorter":NumberInt(20)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_EmailVerification","_updatedAt":new Date(1591734395306),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_EmailVerification","sorter":NumberInt(31)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Enrollment_Email","_updatedAt":new Date(1591734395203),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_Enrollment_Email","sorter":NumberInt(30)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Enrollment_Email_Subject","_updatedAt":new Date(1591734395200),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_Enrollment_Email_Subject","sorter":NumberInt(29)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_ForgetUserSessionOnWindowClose","_updatedAt":new Date(1591734395286),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_ForgetUserSessionOnWindowClose","sorter":NumberInt(23)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Iframe_api_method","_updatedAt":new Date(1591734399098),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Iframe","sectionPermissionId":"change-setting-Iframe","settingId":"Accounts_Iframe_api_method","sorter":NumberInt(95)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Iframe_api_url","_updatedAt":new Date(1591734399087),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Iframe","sectionPermissionId":"change-setting-Iframe","settingId":"Accounts_Iframe_api_url","sorter":NumberInt(94)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_LoginExpiration","_updatedAt":new Date(1591734395274),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_LoginExpiration","sorter":NumberInt(18)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_ManuallyApproveNewUsers","_updatedAt":new Date(1591734395311),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_ManuallyApproveNewUsers","sorter":NumberInt(33)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Dolphin","_updatedAt":new Date(1591734395955),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Dolphin","sectionPermissionId":"change-setting-Dolphin","settingId":"Accounts_OAuth_Dolphin","sorter":NumberInt(32)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Dolphin_URL","_updatedAt":new Date(1591734395943),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Dolphin","sectionPermissionId":"change-setting-Dolphin","settingId":"Accounts_OAuth_Dolphin_URL","sorter":NumberInt(31)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Dolphin_button_color","_updatedAt":new Date(1591734395971),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Dolphin","sectionPermissionId":"change-setting-Dolphin","settingId":"Accounts_OAuth_Dolphin_button_color","sorter":NumberInt(38)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Dolphin_button_label_color","_updatedAt":new Date(1591734395968),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Dolphin","sectionPermissionId":"change-setting-Dolphin","settingId":"Accounts_OAuth_Dolphin_button_label_color","sorter":NumberInt(37)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Dolphin_button_label_text","_updatedAt":new Date(1591734395966),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Dolphin","sectionPermissionId":"change-setting-Dolphin","settingId":"Accounts_OAuth_Dolphin_button_label_text","sorter":NumberInt(36)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Dolphin_id","_updatedAt":new Date(1591734395958),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Dolphin","sectionPermissionId":"change-setting-Dolphin","settingId":"Accounts_OAuth_Dolphin_id","sorter":NumberInt(33)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Dolphin_login_style","_updatedAt":new Date(1591734395964),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Dolphin","sectionPermissionId":"change-setting-Dolphin","settingId":"Accounts_OAuth_Dolphin_login_style","sorter":NumberInt(35)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Dolphin_secret","_updatedAt":new Date(1591734395961),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Dolphin","sectionPermissionId":"change-setting-Dolphin","settingId":"Accounts_OAuth_Dolphin_secret","sorter":NumberInt(34)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Drupal","_updatedAt":new Date(1591734395973),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Drupal","sectionPermissionId":"change-setting-Drupal","settingId":"Accounts_OAuth_Drupal","sorter":NumberInt(39)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Drupal_callback_url","_updatedAt":new Date(1591734395983),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Drupal","sectionPermissionId":"change-setting-Drupal","settingId":"Accounts_OAuth_Drupal_callback_url","sorter":NumberInt(43)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Drupal_id","_updatedAt":new Date(1591734395978),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Drupal","sectionPermissionId":"change-setting-Drupal","settingId":"Accounts_OAuth_Drupal_id","sorter":NumberInt(41)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Drupal_secret","_updatedAt":new Date(1591734395981),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Drupal","sectionPermissionId":"change-setting-Drupal","settingId":"Accounts_OAuth_Drupal_secret","sorter":NumberInt(42)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Facebook","_updatedAt":new Date(1591734395461),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Facebook","sectionPermissionId":"change-setting-Facebook","settingId":"Accounts_OAuth_Facebook","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Facebook_callback_url","_updatedAt":new Date(1591734395468),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Facebook","sectionPermissionId":"change-setting-Facebook","settingId":"Accounts_OAuth_Facebook_callback_url","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Facebook_id","_updatedAt":new Date(1591734395464),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Facebook","sectionPermissionId":"change-setting-Facebook","settingId":"Accounts_OAuth_Facebook_id","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Facebook_secret","_updatedAt":new Date(1591734395466),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Facebook","sectionPermissionId":"change-setting-Facebook","settingId":"Accounts_OAuth_Facebook_secret","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_GitHub_Enterprise","_updatedAt":new Date(1591734395992),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitHub Enterprise","sectionPermissionId":"change-setting-GitHub Enterprise","settingId":"Accounts_OAuth_GitHub_Enterprise","sorter":NumberInt(44)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_GitHub_Enterprise_callback_url","_updatedAt":new Date(1591734395998),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitHub Enterprise","sectionPermissionId":"change-setting-GitHub Enterprise","settingId":"Accounts_OAuth_GitHub_Enterprise_callback_url","sorter":NumberInt(48)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_GitHub_Enterprise_id","_updatedAt":new Date(1591734396776),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitHub Enterprise","sectionPermissionId":"change-setting-GitHub Enterprise","settingId":"Accounts_OAuth_GitHub_Enterprise_id","sorter":NumberInt(46)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_GitHub_Enterprise_secret","_updatedAt":new Date(1591734396777),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitHub Enterprise","sectionPermissionId":"change-setting-GitHub Enterprise","settingId":"Accounts_OAuth_GitHub_Enterprise_secret","sorter":NumberInt(47)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Github","_updatedAt":new Date(1591734395477),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitHub","sectionPermissionId":"change-setting-GitHub","settingId":"Accounts_OAuth_Github","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Github_callback_url","_updatedAt":new Date(1591734395483),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitHub","sectionPermissionId":"change-setting-GitHub","settingId":"Accounts_OAuth_Github_callback_url","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Github_id","_updatedAt":new Date(1591734395479),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitHub","sectionPermissionId":"change-setting-GitHub","settingId":"Accounts_OAuth_Github_id","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Github_secret","_updatedAt":new Date(1591734395481),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitHub","sectionPermissionId":"change-setting-GitHub","settingId":"Accounts_OAuth_Github_secret","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Gitlab","_updatedAt":new Date(1591734396000),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitLab","sectionPermissionId":"change-setting-GitLab","settingId":"Accounts_OAuth_Gitlab","sorter":NumberInt(49)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Gitlab_callback_url","_updatedAt":new Date(1591734396015),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitLab","sectionPermissionId":"change-setting-GitLab","settingId":"Accounts_OAuth_Gitlab_callback_url","sorter":NumberInt(55)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Gitlab_id","_updatedAt":new Date(1591734396008),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitLab","sectionPermissionId":"change-setting-GitLab","settingId":"Accounts_OAuth_Gitlab_id","sorter":NumberInt(51)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Gitlab_identity_path","_updatedAt":new Date(1591734396779),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitLab","sectionPermissionId":"change-setting-GitLab","settingId":"Accounts_OAuth_Gitlab_identity_path","sorter":NumberInt(53)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Gitlab_merge_users","_updatedAt":new Date(1591734396012),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitLab","sectionPermissionId":"change-setting-GitLab","settingId":"Accounts_OAuth_Gitlab_merge_users","sorter":NumberInt(54)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Gitlab_secret","_updatedAt":new Date(1591734396010),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"GitLab","sectionPermissionId":"change-setting-GitLab","settingId":"Accounts_OAuth_Gitlab_secret","sorter":NumberInt(52)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Google","_updatedAt":new Date(1591734395470),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Google","sectionPermissionId":"change-setting-Google","settingId":"Accounts_OAuth_Google","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Google_callback_url","_updatedAt":new Date(1591734395475),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Google","sectionPermissionId":"change-setting-Google","settingId":"Accounts_OAuth_Google_callback_url","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Google_id","_updatedAt":new Date(1591734395472),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Google","sectionPermissionId":"change-setting-Google","settingId":"Accounts_OAuth_Google_id","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Google_secret","_updatedAt":new Date(1591734395473),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Google","sectionPermissionId":"change-setting-Google","settingId":"Accounts_OAuth_Google_secret","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Linkedin","_updatedAt":new Date(1591734395485),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Linkedin","sectionPermissionId":"change-setting-Linkedin","settingId":"Accounts_OAuth_Linkedin","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Linkedin_callback_url","_updatedAt":new Date(1591734395490),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Linkedin","sectionPermissionId":"change-setting-Linkedin","settingId":"Accounts_OAuth_Linkedin_callback_url","sorter":NumberInt(15)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Linkedin_id","_updatedAt":new Date(1591734395487),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Linkedin","sectionPermissionId":"change-setting-Linkedin","settingId":"Accounts_OAuth_Linkedin_id","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Linkedin_secret","_updatedAt":new Date(1591734395488),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Linkedin","sectionPermissionId":"change-setting-Linkedin","settingId":"Accounts_OAuth_Linkedin_secret","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Meteor","_updatedAt":new Date(1591734395492),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Meteor","sectionPermissionId":"change-setting-Meteor","settingId":"Accounts_OAuth_Meteor","sorter":NumberInt(16)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Meteor_callback_url","_updatedAt":new Date(1591734395498),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Meteor","sectionPermissionId":"change-setting-Meteor","settingId":"Accounts_OAuth_Meteor_callback_url","sorter":NumberInt(19)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Meteor_id","_updatedAt":new Date(1591734395494),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Meteor","sectionPermissionId":"change-setting-Meteor","settingId":"Accounts_OAuth_Meteor_id","sorter":NumberInt(17)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Meteor_secret","_updatedAt":new Date(1591734395496),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Meteor","sectionPermissionId":"change-setting-Meteor","settingId":"Accounts_OAuth_Meteor_secret","sorter":NumberInt(18)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Nextcloud","_updatedAt":new Date(1591734396124),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Nextcloud","sectionPermissionId":"change-setting-Nextcloud","settingId":"Accounts_OAuth_Nextcloud","sorter":NumberInt(56)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Nextcloud_URL","_updatedAt":new Date(1591734396125),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Nextcloud","sectionPermissionId":"change-setting-Nextcloud","settingId":"Accounts_OAuth_Nextcloud_URL","sorter":NumberInt(57)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Nextcloud_button_color","_updatedAt":new Date(1591734396136),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Nextcloud","sectionPermissionId":"change-setting-Nextcloud","settingId":"Accounts_OAuth_Nextcloud_button_color","sorter":NumberInt(63)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Nextcloud_button_label_color","_updatedAt":new Date(1591734396135),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Nextcloud","sectionPermissionId":"change-setting-Nextcloud","settingId":"Accounts_OAuth_Nextcloud_button_label_color","sorter":NumberInt(62)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Nextcloud_button_label_text","_updatedAt":new Date(1591734396133),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Nextcloud","sectionPermissionId":"change-setting-Nextcloud","settingId":"Accounts_OAuth_Nextcloud_button_label_text","sorter":NumberInt(61)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Nextcloud_callback_url","_updatedAt":new Date(1591734396131),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Nextcloud","sectionPermissionId":"change-setting-Nextcloud","settingId":"Accounts_OAuth_Nextcloud_callback_url","sorter":NumberInt(60)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Nextcloud_id","_updatedAt":new Date(1591734396127),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Nextcloud","sectionPermissionId":"change-setting-Nextcloud","settingId":"Accounts_OAuth_Nextcloud_id","sorter":NumberInt(58)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Nextcloud_secret","_updatedAt":new Date(1591734396130),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Nextcloud","sectionPermissionId":"change-setting-Nextcloud","settingId":"Accounts_OAuth_Nextcloud_secret","sorter":NumberInt(59)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Proxy_host","_updatedAt":new Date(1591734395508),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Proxy","sectionPermissionId":"change-setting-Proxy","settingId":"Accounts_OAuth_Proxy_host","sorter":NumberInt(24)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Proxy_services","_updatedAt":new Date(1591734395510),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Proxy","sectionPermissionId":"change-setting-Proxy","settingId":"Accounts_OAuth_Proxy_services","sorter":NumberInt(25)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Tokenpass","_updatedAt":new Date(1591734395922),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Tokenpass","sectionPermissionId":"change-setting-Tokenpass","settingId":"Accounts_OAuth_Tokenpass","sorter":NumberInt(26)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Tokenpass_callback_url","_updatedAt":new Date(1591734395932),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Tokenpass","sectionPermissionId":"change-setting-Tokenpass","settingId":"Accounts_OAuth_Tokenpass_callback_url","sorter":NumberInt(30)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Tokenpass_id","_updatedAt":new Date(1591734395926),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Tokenpass","sectionPermissionId":"change-setting-Tokenpass","settingId":"Accounts_OAuth_Tokenpass_id","sorter":NumberInt(28)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Tokenpass_secret","_updatedAt":new Date(1591734395929),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Tokenpass","sectionPermissionId":"change-setting-Tokenpass","settingId":"Accounts_OAuth_Tokenpass_secret","sorter":NumberInt(29)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Twitter","_updatedAt":new Date(1591734395500),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Twitter","sectionPermissionId":"change-setting-Twitter","settingId":"Accounts_OAuth_Twitter","sorter":NumberInt(20)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Twitter_callback_url","_updatedAt":new Date(1591734395506),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Twitter","sectionPermissionId":"change-setting-Twitter","settingId":"Accounts_OAuth_Twitter_callback_url","sorter":NumberInt(23)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Twitter_id","_updatedAt":new Date(1591734395502),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Twitter","sectionPermissionId":"change-setting-Twitter","settingId":"Accounts_OAuth_Twitter_id","sorter":NumberInt(21)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Twitter_secret","_updatedAt":new Date(1591734395504),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"Twitter","sectionPermissionId":"change-setting-Twitter","settingId":"Accounts_OAuth_Twitter_secret","sorter":NumberInt(22)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Wordpress","_updatedAt":new Date(1591734396251),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"WordPress","sectionPermissionId":"change-setting-WordPress","settingId":"Accounts_OAuth_Wordpress","sorter":NumberInt(64)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Wordpress_authorize_path","_updatedAt":new Date(1591734396261),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"WordPress","sectionPermissionId":"change-setting-WordPress","settingId":"Accounts_OAuth_Wordpress_authorize_path","sorter":NumberInt(72)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Wordpress_callback_url","_updatedAt":new Date(1591734396264),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"WordPress","sectionPermissionId":"change-setting-WordPress","settingId":"Accounts_OAuth_Wordpress_callback_url","sorter":NumberInt(74)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Wordpress_id","_updatedAt":new Date(1591734396254),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"WordPress","sectionPermissionId":"change-setting-WordPress","settingId":"Accounts_OAuth_Wordpress_id","sorter":NumberInt(66)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Wordpress_identity_path","_updatedAt":new Date(1591734396258),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"WordPress","sectionPermissionId":"change-setting-WordPress","settingId":"Accounts_OAuth_Wordpress_identity_path","sorter":NumberInt(69)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Wordpress_identity_token_sent_via","_updatedAt":new Date(1591734396259),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"WordPress","sectionPermissionId":"change-setting-WordPress","settingId":"Accounts_OAuth_Wordpress_identity_token_sent_via","sorter":NumberInt(70)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Wordpress_scope","_updatedAt":new Date(1591734396263),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"WordPress","sectionPermissionId":"change-setting-WordPress","settingId":"Accounts_OAuth_Wordpress_scope","sorter":NumberInt(73)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Wordpress_secret","_updatedAt":new Date(1591734396255),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"WordPress","sectionPermissionId":"change-setting-WordPress","settingId":"Accounts_OAuth_Wordpress_secret","sorter":NumberInt(67)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Wordpress_server_type","_updatedAt":new Date(1591734396256),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"WordPress","sectionPermissionId":"change-setting-WordPress","settingId":"Accounts_OAuth_Wordpress_server_type","sorter":NumberInt(68)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_OAuth_Wordpress_token_path","_updatedAt":new Date(1591734396260),"group":"OAuth","groupPermissionId":"change-setting-OAuth","level":"settings","roles":[],"section":"WordPress","sectionPermissionId":"change-setting-WordPress","settingId":"Accounts_OAuth_Wordpress_token_path","sorter":NumberInt(71)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_PasswordPlaceholder","_updatedAt":new Date(1591734395280),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_PasswordPlaceholder","sorter":NumberInt(21)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_PasswordReset","_updatedAt":new Date(1591734395342),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_PasswordReset","sorter":NumberInt(45)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Password_Policy_AtLeastOneLowercase","_updatedAt":new Date(1591734395453),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Password_Policy","sectionPermissionId":"change-setting-Password_Policy","settingId":"Accounts_Password_Policy_AtLeastOneLowercase","sorter":NumberInt(88)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Password_Policy_AtLeastOneNumber","_updatedAt":new Date(1591734395457),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Password_Policy","sectionPermissionId":"change-setting-Password_Policy","settingId":"Accounts_Password_Policy_AtLeastOneNumber","sorter":NumberInt(90)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Password_Policy_AtLeastOneSpecialCharacter","_updatedAt":new Date(1591734395460),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Password_Policy","sectionPermissionId":"change-setting-Password_Policy","settingId":"Accounts_Password_Policy_AtLeastOneSpecialCharacter","sorter":NumberInt(91)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Password_Policy_AtLeastOneUppercase","_updatedAt":new Date(1591734395456),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Password_Policy","sectionPermissionId":"change-setting-Password_Policy","settingId":"Accounts_Password_Policy_AtLeastOneUppercase","sorter":NumberInt(89)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Password_Policy_Enabled","_updatedAt":new Date(1591734395441),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Password_Policy","sectionPermissionId":"change-setting-Password_Policy","settingId":"Accounts_Password_Policy_Enabled","sorter":NumberInt(83)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Password_Policy_ForbidRepeatingCharacters","_updatedAt":new Date(1591734395448),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Password_Policy","sectionPermissionId":"change-setting-Password_Policy","settingId":"Accounts_Password_Policy_ForbidRepeatingCharacters","sorter":NumberInt(86)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Password_Policy_ForbidRepeatingCharactersCount","_updatedAt":new Date(1591734395451),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Password_Policy","sectionPermissionId":"change-setting-Password_Policy","settingId":"Accounts_Password_Policy_ForbidRepeatingCharactersCount","sorter":NumberInt(87)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Password_Policy_MaxLength","_updatedAt":new Date(1591734395446),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Password_Policy","sectionPermissionId":"change-setting-Password_Policy","settingId":"Accounts_Password_Policy_MaxLength","sorter":NumberInt(85)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Password_Policy_MinLength","_updatedAt":new Date(1591734395444),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Password_Policy","sectionPermissionId":"change-setting-Password_Policy","settingId":"Accounts_Password_Policy_MinLength","sorter":NumberInt(84)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_RegistrationForm","_updatedAt":new Date(1591734395326),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_RegistrationForm","sorter":NumberInt(39)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_RegistrationForm_LinkReplacementText","_updatedAt":new Date(1591734395333),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_RegistrationForm_LinkReplacementText","sorter":NumberInt(42)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_RegistrationForm_SecretURL","_updatedAt":new Date(1591734395328),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_RegistrationForm_SecretURL","sorter":NumberInt(40)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Registration_AuthenticationServices_Default_Roles","_updatedAt":new Date(1591734395340),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_Registration_AuthenticationServices_Default_Roles","sorter":NumberInt(44)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Registration_AuthenticationServices_Enabled","_updatedAt":new Date(1591734395336),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_Registration_AuthenticationServices_Enabled","sorter":NumberInt(43)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Registration_InviteUrlType","_updatedAt":new Date(1591734395331),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_Registration_InviteUrlType","sorter":NumberInt(41)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_RequireNameForSignUp","_updatedAt":new Date(1591734395302),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_RequireNameForSignUp","sorter":NumberInt(29)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_RequirePasswordConfirmation","_updatedAt":new Date(1591734395304),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_RequirePasswordConfirmation","sorter":NumberInt(30)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_SearchFields","_updatedAt":new Date(1591734395290),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_SearchFields","sorter":NumberInt(24)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Send_Email_When_Activating","_updatedAt":new Date(1591734395295),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_Send_Email_When_Activating","sorter":NumberInt(26)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Send_Email_When_Deactivating","_updatedAt":new Date(1591734395298),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_Send_Email_When_Deactivating","sorter":NumberInt(27)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_SetDefaultAvatar","_updatedAt":new Date(1591734395439),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Avatar","sectionPermissionId":"change-setting-Avatar","settingId":"Accounts_SetDefaultAvatar","sorter":NumberInt(82)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_ShowFormLogin","_updatedAt":new Date(1591734395276),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"settingId":"Accounts_ShowFormLogin","sorter":NumberInt(19)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_TwoFactorAuthentication_By_Email_Auto_Opt_In","_updatedAt":new Date(1591734396968),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Two Factor Authentication","sectionPermissionId":"change-setting-Two Factor Authentication","settingId":"Accounts_TwoFactorAuthentication_By_Email_Auto_Opt_In","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_TwoFactorAuthentication_By_Email_Code_Expiration","_updatedAt":new Date(1591734396970),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Two Factor Authentication","sectionPermissionId":"change-setting-Two Factor Authentication","settingId":"Accounts_TwoFactorAuthentication_By_Email_Code_Expiration","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_TwoFactorAuthentication_By_Email_Enabled","_updatedAt":new Date(1591734396869),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Two Factor Authentication","sectionPermissionId":"change-setting-Two Factor Authentication","settingId":"Accounts_TwoFactorAuthentication_By_Email_Enabled","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_TwoFactorAuthentication_Enabled","_updatedAt":new Date(1591734394966),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Two Factor Authentication","sectionPermissionId":"change-setting-Two Factor Authentication","settingId":"Accounts_TwoFactorAuthentication_Enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_TwoFactorAuthentication_MaxDelta","_updatedAt":new Date(1591734394968),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Two Factor Authentication","sectionPermissionId":"change-setting-Two Factor Authentication","settingId":"Accounts_TwoFactorAuthentication_MaxDelta","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_TwoFactorAuthentication_RememberFor","_updatedAt":new Date(1591734396872),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Two Factor Authentication","sectionPermissionId":"change-setting-Two Factor Authentication","settingId":"Accounts_TwoFactorAuthentication_RememberFor","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_UseDNSDomainCheck","_updatedAt":new Date(1591734395324),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_UseDNSDomainCheck","sorter":NumberInt(38)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_UseDefaultBlockedDomainsList","_updatedAt":new Date(1591734395321),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_UseDefaultBlockedDomainsList","sorter":NumberInt(37)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_UserAddedEmail_Email","_updatedAt":new Date(1591734395208),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Registration_via_Admin","sectionPermissionId":"change-setting-Registration_via_Admin","settingId":"Accounts_UserAddedEmail_Email","sorter":NumberInt(32)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_UserAddedEmail_Subject","_updatedAt":new Date(1591734395205),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Registration_via_Admin","sectionPermissionId":"change-setting-Registration_via_Admin","settingId":"Accounts_UserAddedEmail_Subject","sorter":NumberInt(31)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_Verify_Email_For_External_Accounts","_updatedAt":new Date(1591734396883),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Registration","sectionPermissionId":"change-setting-Registration","settingId":"Accounts_Verify_Email_For_External_Accounts","sorter":NumberInt(32)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_iframe_enabled","_updatedAt":new Date(1591734399056),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Iframe","sectionPermissionId":"change-setting-Iframe","settingId":"Accounts_iframe_enabled","sorter":NumberInt(92)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Accounts_iframe_url","_updatedAt":new Date(1591734399068),"group":"Accounts","groupPermissionId":"change-setting-Accounts","level":"settings","roles":[],"section":"Iframe","sectionPermissionId":"change-setting-Iframe","settingId":"Accounts_iframe_url","sorter":NumberInt(93)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Allow_Invalid_SelfSigned_Certs","_updatedAt":new Date(1591734395520),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Allow_Invalid_SelfSigned_Certs","sorter":NumberInt(15)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Allow_Marketing_Emails","_updatedAt":new Date(1591734395791),"group":"Setup_Wizard","groupPermissionId":"change-setting-Setup_Wizard","level":"settings","roles":[],"section":"Organization_Info","sectionPermissionId":"change-setting-Organization_Info","settingId":"Allow_Marketing_Emails","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Analytics","_updatedAt":new Date(1591734394970),"level":"settings","roles":[],"settingId":"Analytics"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Analytics_features_messages","_updatedAt":new Date(1591734394999),"group":"Analytics","groupPermissionId":"change-setting-Analytics","level":"settings","roles":[],"section":"Analytics_features_enabled","sectionPermissionId":"change-setting-Analytics_features_enabled","settingId":"Analytics_features_messages","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Analytics_features_rooms","_updatedAt":new Date(1591734395003),"group":"Analytics","groupPermissionId":"change-setting-Analytics","level":"settings","roles":[],"section":"Analytics_features_enabled","sectionPermissionId":"change-setting-Analytics_features_enabled","settingId":"Analytics_features_rooms","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Analytics_features_users","_updatedAt":new Date(1591734395014),"group":"Analytics","groupPermissionId":"change-setting-Analytics","level":"settings","roles":[],"section":"Analytics_features_enabled","sectionPermissionId":"change-setting-Analytics_features_enabled","settingId":"Analytics_features_users","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Apps_Framework_Development_Mode","_updatedAt":new Date(1591734395919),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"Apps","sectionPermissionId":"change-setting-Apps","settingId":"Apps_Framework_Development_Mode","sorter":NumberInt(45)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Apps_Framework_enabled","_updatedAt":new Date(1591734395916),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"Apps","sectionPermissionId":"change-setting-Apps","settingId":"Apps_Framework_enabled","sorter":NumberInt(44)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Apps_Game_Center_enabled","_updatedAt":new Date(1591734396921),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"Apps","sectionPermissionId":"change-setting-Apps","settingId":"Apps_Game_Center_enabled","sorter":NumberInt(46)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets","_updatedAt":new Date(1591734395044),"level":"settings","roles":[],"settingId":"Assets"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_SvgFavicon_Enable","_updatedAt":new Date(1591734395047),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_SvgFavicon_Enable","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_background","_updatedAt":new Date(1591734395052),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_background","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_favicon","_updatedAt":new Date(1591734395056),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_favicon","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_favicon_16","_updatedAt":new Date(1591734395058),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_favicon_16","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_favicon_192","_updatedAt":new Date(1591734395064),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_favicon_192","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_favicon_32","_updatedAt":new Date(1591734395061),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_favicon_32","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_favicon_512","_updatedAt":new Date(1591734395066),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_favicon_512","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_favicon_ico","_updatedAt":new Date(1591734395054),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_favicon_ico","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_logo","_updatedAt":new Date(1591734395049),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_logo","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_safari_pinned","_updatedAt":new Date(1591734395087),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_safari_pinned","sorter":NumberInt(16)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_tile_144","_updatedAt":new Date(1591734395078),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_tile_144","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_tile_150","_updatedAt":new Date(1591734395080),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_tile_150","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_tile_310_square","_updatedAt":new Date(1591734395083),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_tile_310_square","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_tile_310_wide","_updatedAt":new Date(1591734395085),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_tile_310_wide","sorter":NumberInt(15)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_tile_70","_updatedAt":new Date(1591734395074),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_tile_70","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_touchicon_180","_updatedAt":new Date(1591734395069),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_touchicon_180","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Assets_touchicon_180_pre","_updatedAt":new Date(1591734395072),"group":"Assets","groupPermissionId":"change-setting-Assets","level":"settings","roles":[],"settingId":"Assets_touchicon_180_pre","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AtlassianCrowd","_updatedAt":new Date(1591734398240),"level":"settings","roles":[],"settingId":"AtlassianCrowd"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AutoLinker","_updatedAt":new Date(1591734397613),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"AutoLinker","sectionPermissionId":"change-setting-AutoLinker","settingId":"AutoLinker","sorter":NumberInt(49)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AutoLinker_Email","_updatedAt":new Date(1591734397711),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"AutoLinker","sectionPermissionId":"change-setting-AutoLinker","settingId":"AutoLinker_Email","sorter":NumberInt(55)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AutoLinker_Phone","_updatedAt":new Date(1591734397732),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"AutoLinker","sectionPermissionId":"change-setting-AutoLinker","settingId":"AutoLinker_Phone","sorter":NumberInt(56)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AutoLinker_StripPrefix","_updatedAt":new Date(1591734397627),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"AutoLinker","sectionPermissionId":"change-setting-AutoLinker","settingId":"AutoLinker_StripPrefix","sorter":NumberInt(50)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AutoLinker_UrlsRegExp","_updatedAt":new Date(1591734397696),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"AutoLinker","sectionPermissionId":"change-setting-AutoLinker","settingId":"AutoLinker_UrlsRegExp","sorter":NumberInt(54)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AutoLinker_Urls_Scheme","_updatedAt":new Date(1591734397653),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"AutoLinker","sectionPermissionId":"change-setting-AutoLinker","settingId":"AutoLinker_Urls_Scheme","sorter":NumberInt(51)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AutoLinker_Urls_TLD","_updatedAt":new Date(1591734397680),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"AutoLinker","sectionPermissionId":"change-setting-AutoLinker","settingId":"AutoLinker_Urls_TLD","sorter":NumberInt(53)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AutoLinker_Urls_www","_updatedAt":new Date(1591734397668),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"AutoLinker","sectionPermissionId":"change-setting-AutoLinker","settingId":"AutoLinker_Urls_www","sorter":NumberInt(52)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AutoTranslate_DeepLAPIKey","_updatedAt":new Date(1591734397965),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"AutoTranslate_DeepL","sectionPermissionId":"change-setting-AutoTranslate_DeepL","settingId":"AutoTranslate_DeepLAPIKey","sorter":NumberInt(60)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AutoTranslate_Enabled","_updatedAt":new Date(1591734397743),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"AutoTranslate","sectionPermissionId":"change-setting-AutoTranslate","settingId":"AutoTranslate_Enabled","sorter":NumberInt(57)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AutoTranslate_GoogleAPIKey","_updatedAt":new Date(1591734397942),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"AutoTranslate_Google","sectionPermissionId":"change-setting-AutoTranslate_Google","settingId":"AutoTranslate_GoogleAPIKey","sorter":NumberInt(59)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AutoTranslate_MicrosoftAPIKey","_updatedAt":new Date(1591734397977),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"AutoTranslate_Microsoft","sectionPermissionId":"change-setting-AutoTranslate_Microsoft","settingId":"AutoTranslate_MicrosoftAPIKey","sorter":NumberInt(61)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-AutoTranslate_ServiceProvider","_updatedAt":new Date(1591734397759),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"AutoTranslate","sectionPermissionId":"change-setting-AutoTranslate","settingId":"AutoTranslate_ServiceProvider","sorter":NumberInt(58)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Blockstack","_updatedAt":new Date(1591734399922),"level":"settings","roles":[],"settingId":"Blockstack"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Blockstack_Auth_Description","_updatedAt":new Date(1591734399954),"group":"Blockstack","groupPermissionId":"change-setting-Blockstack","level":"settings","roles":[],"settingId":"Blockstack_Auth_Description","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Blockstack_ButtonLabelText","_updatedAt":new Date(1591734399968),"group":"Blockstack","groupPermissionId":"change-setting-Blockstack","level":"settings","roles":[],"settingId":"Blockstack_ButtonLabelText","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Blockstack_Enable","_updatedAt":new Date(1591734399938),"group":"Blockstack","groupPermissionId":"change-setting-Blockstack","level":"settings","roles":[],"settingId":"Blockstack_Enable","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Blockstack_Generate_Username","_updatedAt":new Date(1591734399982),"group":"Blockstack","groupPermissionId":"change-setting-Blockstack","level":"settings","roles":[],"settingId":"Blockstack_Generate_Username","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-BotHelpers_userFields","_updatedAt":new Date(1591734398011),"group":"Bots","groupPermissionId":"change-setting-Bots","level":"settings","roles":[],"section":"Helpers","sectionPermissionId":"change-setting-Helpers","settingId":"BotHelpers_userFields","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Bots","_updatedAt":new Date(1591734397993),"level":"settings","roles":[],"settingId":"Bots"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Broadcasting_api_key","_updatedAt":new Date(1591734399304),"group":"LiveStream & Broadcasting","groupPermissionId":"change-setting-LiveStream & Broadcasting","level":"settings","roles":[],"settingId":"Broadcasting_api_key","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Broadcasting_client_id","_updatedAt":new Date(1591734399288),"group":"LiveStream & Broadcasting","groupPermissionId":"change-setting-LiveStream & Broadcasting","level":"settings","roles":[],"settingId":"Broadcasting_client_id","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Broadcasting_client_secret","_updatedAt":new Date(1591734399296),"group":"LiveStream & Broadcasting","groupPermissionId":"change-setting-LiveStream & Broadcasting","level":"settings","roles":[],"settingId":"Broadcasting_client_secret","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Broadcasting_enabled","_updatedAt":new Date(1591734399281),"group":"LiveStream & Broadcasting","groupPermissionId":"change-setting-LiveStream & Broadcasting","level":"settings","roles":[],"settingId":"Broadcasting_enabled","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Broadcasting_media_server_url","_updatedAt":new Date(1591734399314),"group":"LiveStream & Broadcasting","groupPermissionId":"change-setting-LiveStream & Broadcasting","level":"settings","roles":[],"settingId":"Broadcasting_media_server_url","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Bugsnag_api_key","_updatedAt":new Date(1591734395558),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Bugsnag_api_key","sorter":NumberInt(29)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS","_updatedAt":new Date(1591734398023),"level":"settings","roles":[],"settingId":"CAS"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS_Sync_User_Data_Enabled","_updatedAt":new Date(1591734398128),"group":"CAS","groupPermissionId":"change-setting-CAS","level":"settings","roles":[],"section":"Attribute_handling","sectionPermissionId":"change-setting-Attribute_handling","settingId":"CAS_Sync_User_Data_Enabled","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS_Sync_User_Data_FieldMap","_updatedAt":new Date(1591734398140),"group":"CAS","groupPermissionId":"change-setting-CAS","level":"settings","roles":[],"section":"Attribute_handling","sectionPermissionId":"change-setting-Attribute_handling","settingId":"CAS_Sync_User_Data_FieldMap","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS_autoclose","_updatedAt":new Date(1591734398226),"group":"CAS","groupPermissionId":"change-setting-CAS","level":"settings","roles":[],"section":"CAS_Login_Layout","sectionPermissionId":"change-setting-CAS_Login_Layout","settingId":"CAS_autoclose","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS_base_url","_updatedAt":new Date(1591734398052),"group":"CAS","groupPermissionId":"change-setting-CAS","level":"settings","roles":[],"settingId":"CAS_base_url","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS_button_color","_updatedAt":new Date(1591734398209),"group":"CAS","groupPermissionId":"change-setting-CAS","level":"settings","roles":[],"section":"CAS_Login_Layout","sectionPermissionId":"change-setting-CAS_Login_Layout","settingId":"CAS_button_color","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS_button_label_color","_updatedAt":new Date(1591734398199),"group":"CAS","groupPermissionId":"change-setting-CAS","level":"settings","roles":[],"section":"CAS_Login_Layout","sectionPermissionId":"change-setting-CAS_Login_Layout","settingId":"CAS_button_label_color","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS_button_label_text","_updatedAt":new Date(1591734398182),"group":"CAS","groupPermissionId":"change-setting-CAS","level":"settings","roles":[],"section":"CAS_Login_Layout","sectionPermissionId":"change-setting-CAS_Login_Layout","settingId":"CAS_button_label_text","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS_enabled","_updatedAt":new Date(1591734398040),"group":"CAS","groupPermissionId":"change-setting-CAS","level":"settings","roles":[],"settingId":"CAS_enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS_login_url","_updatedAt":new Date(1591734398065),"group":"CAS","groupPermissionId":"change-setting-CAS","level":"settings","roles":[],"settingId":"CAS_login_url","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS_popup_height","_updatedAt":new Date(1591734398171),"group":"CAS","groupPermissionId":"change-setting-CAS","level":"settings","roles":[],"section":"CAS_Login_Layout","sectionPermissionId":"change-setting-CAS_Login_Layout","settingId":"CAS_popup_height","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS_popup_width","_updatedAt":new Date(1591734398156),"group":"CAS","groupPermissionId":"change-setting-CAS","level":"settings","roles":[],"section":"CAS_Login_Layout","sectionPermissionId":"change-setting-CAS_Login_Layout","settingId":"CAS_popup_width","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS_trust_username","_updatedAt":new Date(1591734398112),"group":"CAS","groupPermissionId":"change-setting-CAS","level":"settings","roles":[],"settingId":"CAS_trust_username","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CAS_version","_updatedAt":new Date(1591734398078),"group":"CAS","groupPermissionId":"change-setting-CAS","level":"settings","roles":[],"settingId":"CAS_version","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CDN_JSCSS_PREFIX","_updatedAt":new Date(1591734395546),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"CDN_JSCSS_PREFIX","sorter":NumberInt(25)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CDN_PREFIX","_updatedAt":new Date(1591734395542),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"CDN_PREFIX","sorter":NumberInt(23)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CDN_PREFIX_ALL","_updatedAt":new Date(1591734395545),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"CDN_PREFIX_ALL","sorter":NumberInt(24)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CROWD_APP_PASSWORD","_updatedAt":new Date(1591734398334),"group":"AtlassianCrowd","groupPermissionId":"change-setting-AtlassianCrowd","level":"settings","roles":[],"settingId":"CROWD_APP_PASSWORD","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CROWD_APP_USERNAME","_updatedAt":new Date(1591734398317),"group":"AtlassianCrowd","groupPermissionId":"change-setting-AtlassianCrowd","level":"settings","roles":[],"settingId":"CROWD_APP_USERNAME","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CROWD_Allow_Custom_Username","_updatedAt":new Date(1591734398419),"group":"AtlassianCrowd","groupPermissionId":"change-setting-AtlassianCrowd","level":"settings","roles":[],"settingId":"CROWD_Allow_Custom_Username","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CROWD_Clean_Usernames","_updatedAt":new Date(1591734398399),"group":"AtlassianCrowd","groupPermissionId":"change-setting-AtlassianCrowd","level":"settings","roles":[],"settingId":"CROWD_Clean_Usernames","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CROWD_Enable","_updatedAt":new Date(1591734398267),"group":"AtlassianCrowd","groupPermissionId":"change-setting-AtlassianCrowd","level":"settings","roles":[],"settingId":"CROWD_Enable","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CROWD_Reject_Unauthorized","_updatedAt":new Date(1591734398301),"group":"AtlassianCrowd","groupPermissionId":"change-setting-AtlassianCrowd","level":"settings","roles":[],"settingId":"CROWD_Reject_Unauthorized","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CROWD_Sync_Interval","_updatedAt":new Date(1591734398368),"group":"AtlassianCrowd","groupPermissionId":"change-setting-AtlassianCrowd","level":"settings","roles":[],"settingId":"CROWD_Sync_Interval","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CROWD_Sync_User_Data","_updatedAt":new Date(1591734398348),"group":"AtlassianCrowd","groupPermissionId":"change-setting-AtlassianCrowd","level":"settings","roles":[],"settingId":"CROWD_Sync_User_Data","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CROWD_Sync_Users","_updatedAt":new Date(1591734398453),"group":"AtlassianCrowd","groupPermissionId":"change-setting-AtlassianCrowd","level":"settings","roles":[],"settingId":"CROWD_Sync_Users","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CROWD_Test_Connection","_updatedAt":new Date(1591734398437),"group":"AtlassianCrowd","groupPermissionId":"change-setting-AtlassianCrowd","level":"settings","roles":[],"settingId":"CROWD_Test_Connection","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CROWD_URL","_updatedAt":new Date(1591734398288),"group":"AtlassianCrowd","groupPermissionId":"change-setting-AtlassianCrowd","level":"settings","roles":[],"settingId":"CROWD_URL","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Cloud_Service_Agree_PrivacyTerms","_updatedAt":new Date(1591734395798),"group":"Setup_Wizard","groupPermissionId":"change-setting-Setup_Wizard","level":"settings","roles":[],"section":"Cloud_Info","sectionPermissionId":"change-setting-Cloud_Info","settingId":"Cloud_Service_Agree_PrivacyTerms","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Country","_updatedAt":new Date(1591734395784),"group":"Setup_Wizard","groupPermissionId":"change-setting-Setup_Wizard","level":"settings","roles":[],"section":"Organization_Info","sectionPermissionId":"change-setting-Organization_Info","settingId":"Country","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CustomSoundsFilesystem","_updatedAt":new Date(1591734395937),"level":"settings","roles":[],"settingId":"CustomSoundsFilesystem"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CustomSounds_FileSystemPath","_updatedAt":new Date(1591734395941),"group":"CustomSoundsFilesystem","groupPermissionId":"change-setting-CustomSoundsFilesystem","level":"settings","roles":[],"settingId":"CustomSounds_FileSystemPath","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-CustomSounds_Storage_Type","_updatedAt":new Date(1591734396772),"group":"CustomSoundsFilesystem","groupPermissionId":"change-setting-CustomSoundsFilesystem","level":"settings","roles":[],"settingId":"CustomSounds_Storage_Type","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Custom_Script_Logged_In","_updatedAt":new Date(1591734395729),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Custom_Scripts","sectionPermissionId":"change-setting-Custom_Scripts","settingId":"Custom_Script_Logged_In","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Custom_Script_Logged_Out","_updatedAt":new Date(1591734395727),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Custom_Scripts","sectionPermissionId":"change-setting-Custom_Scripts","settingId":"Custom_Script_Logged_Out","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Custom_Script_On_Logout","_updatedAt":new Date(1591734395723),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Custom_Scripts","sectionPermissionId":"change-setting-Custom_Scripts","settingId":"Custom_Script_On_Logout","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Custom_Translations","_updatedAt":new Date(1591734395584),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"Translations","sectionPermissionId":"change-setting-Translations","settingId":"Custom_Translations","sorter":NumberInt(42)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_Connection_By_Method_Enabled","_updatedAt":new Date(1591734395837),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_Connection_By_Method_Enabled","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_Connection_By_Method_Interval_Time","_updatedAt":new Date(1591734395843),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_Connection_By_Method_Interval_Time","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_Connection_By_Method_Requests_Allowed","_updatedAt":new Date(1591734395840),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_Connection_By_Method_Requests_Allowed","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_Connection_Enabled","_updatedAt":new Date(1591734395823),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_Connection_Enabled","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_Connection_Interval_Time","_updatedAt":new Date(1591734395828),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_Connection_Interval_Time","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_Connection_Requests_Allowed","_updatedAt":new Date(1591734395825),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_Connection_Requests_Allowed","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_IP_Enabled","_updatedAt":new Date(1591734395803),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_IP_Enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_IP_Interval_Time","_updatedAt":new Date(1591734395812),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_IP_Interval_Time","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_IP_Requests_Allowed","_updatedAt":new Date(1591734395806),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_IP_Requests_Allowed","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_User_By_Method_Enabled","_updatedAt":new Date(1591734395830),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_User_By_Method_Enabled","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_User_By_Method_Interval_Time","_updatedAt":new Date(1591734395835),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_User_By_Method_Interval_Time","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_User_By_Method_Requests_Allowed","_updatedAt":new Date(1591734395832),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_User_By_Method_Requests_Allowed","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_User_Enabled","_updatedAt":new Date(1591734395814),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_User_Enabled","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_User_Interval_Time","_updatedAt":new Date(1591734395821),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_User_Interval_Time","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DDP_Rate_Limit_User_Requests_Allowed","_updatedAt":new Date(1591734395816),"group":"Rate Limiter","groupPermissionId":"change-setting-Rate Limiter","level":"settings","roles":[],"section":"DDP Rate Limiter","sectionPermissionId":"change-setting-DDP Rate Limiter","settingId":"DDP_Rate_Limit_User_Requests_Allowed","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DeepLink_Url","_updatedAt":new Date(1591734396886),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"DeepLink_Url","sorter":NumberInt(22)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-DirectMesssage_maxUsers","_updatedAt":new Date(1591734396888),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"DirectMesssage_maxUsers","sorter":NumberInt(32)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Direct_Reply_Debug","_updatedAt":new Date(1591734395111),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Direct_Reply","sectionPermissionId":"change-setting-Direct_Reply","settingId":"Direct_Reply_Debug","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Direct_Reply_Delete","_updatedAt":new Date(1591734395151),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Direct_Reply","sectionPermissionId":"change-setting-Direct_Reply","settingId":"Direct_Reply_Delete","sorter":NumberInt(15)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Direct_Reply_Enable","_updatedAt":new Date(1591734395108),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Direct_Reply","sectionPermissionId":"change-setting-Direct_Reply","settingId":"Direct_Reply_Enable","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Direct_Reply_Frequency","_updatedAt":new Date(1591734395148),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Direct_Reply","sectionPermissionId":"change-setting-Direct_Reply","settingId":"Direct_Reply_Frequency","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Direct_Reply_Host","_updatedAt":new Date(1591734395139),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Direct_Reply","sectionPermissionId":"change-setting-Direct_Reply","settingId":"Direct_Reply_Host","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Direct_Reply_IgnoreTLS","_updatedAt":new Date(1591734395145),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Direct_Reply","sectionPermissionId":"change-setting-Direct_Reply","settingId":"Direct_Reply_IgnoreTLS","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Direct_Reply_Password","_updatedAt":new Date(1591734395165),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Direct_Reply","sectionPermissionId":"change-setting-Direct_Reply","settingId":"Direct_Reply_Password","sorter":NumberInt(19)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Direct_Reply_Port","_updatedAt":new Date(1591734395142),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Direct_Reply","sectionPermissionId":"change-setting-Direct_Reply","settingId":"Direct_Reply_Port","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Direct_Reply_Protocol","_updatedAt":new Date(1591734395136),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Direct_Reply","sectionPermissionId":"change-setting-Direct_Reply","settingId":"Direct_Reply_Protocol","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Direct_Reply_ReplyTo","_updatedAt":new Date(1591734395163),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Direct_Reply","sectionPermissionId":"change-setting-Direct_Reply","settingId":"Direct_Reply_ReplyTo","sorter":NumberInt(18)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Direct_Reply_Separator","_updatedAt":new Date(1591734395155),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Direct_Reply","sectionPermissionId":"change-setting-Direct_Reply","settingId":"Direct_Reply_Separator","sorter":NumberInt(16)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Direct_Reply_Username","_updatedAt":new Date(1591734395157),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Direct_Reply","sectionPermissionId":"change-setting-Direct_Reply","settingId":"Direct_Reply_Username","sorter":NumberInt(17)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Discussion","_updatedAt":new Date(1591734400248),"level":"settings","roles":[],"settingId":"Discussion"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Discussion_enabled","_updatedAt":new Date(1591734400263),"group":"Discussion","groupPermissionId":"change-setting-Discussion","level":"settings","roles":[],"settingId":"Discussion_enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Document_Domain","_updatedAt":new Date(1591734395517),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Document_Domain","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-E2E Encryption","_updatedAt":new Date(1591734396267),"level":"settings","roles":[],"settingId":"E2E Encryption"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-E2E_Enable","_updatedAt":new Date(1591734396268),"group":"E2E Encryption","groupPermissionId":"change-setting-E2E Encryption","level":"settings","roles":[],"settingId":"E2E_Enable","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-E2E_Enabled_Default_DirectRooms","_updatedAt":new Date(1591734396925),"group":"E2E Encryption","groupPermissionId":"change-setting-E2E Encryption","level":"settings","roles":[],"settingId":"E2E_Enabled_Default_DirectRooms","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-E2E_Enabled_Default_PrivateRooms","_updatedAt":new Date(1591734396927),"group":"E2E Encryption","groupPermissionId":"change-setting-E2E Encryption","level":"settings","roles":[],"settingId":"E2E_Enabled_Default_PrivateRooms","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Email","_updatedAt":new Date(1591734395089),"level":"settings","roles":[],"settingId":"Email"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Email_Changed_Email","_updatedAt":new Date(1591734395231),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Email_changed_section","sectionPermissionId":"change-setting-Email_changed_section","settingId":"Email_Changed_Email","sorter":NumberInt(41)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Email_Changed_Email_Subject","_updatedAt":new Date(1591734395229),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Email_changed_section","sectionPermissionId":"change-setting-Email_changed_section","settingId":"Email_Changed_Email_Subject","sorter":NumberInt(40)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Email_Footer","_updatedAt":new Date(1591734395121),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Header_and_Footer","sectionPermissionId":"change-setting-Header_and_Footer","settingId":"Email_Footer","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Email_Footer_Direct_Reply","_updatedAt":new Date(1591734395105),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Header_and_Footer","sectionPermissionId":"change-setting-Header_and_Footer","settingId":"Email_Footer_Direct_Reply","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Email_Header","_updatedAt":new Date(1591734395118),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Header_and_Footer","sectionPermissionId":"change-setting-Header_and_Footer","settingId":"Email_Header","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Email_notification_show_message","_updatedAt":new Date(1591734395240),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Privacy","sectionPermissionId":"change-setting-Privacy","settingId":"Email_notification_show_message","sorter":NumberInt(44)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-EmojiCustomFilesystem","_updatedAt":new Date(1591734395986),"level":"settings","roles":[],"settingId":"EmojiCustomFilesystem"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-EmojiUpload_FileSystemPath","_updatedAt":new Date(1591734395988),"group":"EmojiCustomFilesystem","groupPermissionId":"change-setting-EmojiCustomFilesystem","level":"settings","roles":[],"settingId":"EmojiUpload_FileSystemPath","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-EmojiUpload_Storage_Type","_updatedAt":new Date(1591734396774),"group":"EmojiCustomFilesystem","groupPermissionId":"change-setting-EmojiCustomFilesystem","level":"settings","roles":[],"settingId":"EmojiUpload_Storage_Type","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Enterprise","_updatedAt":new Date(1591734397566),"level":"settings","roles":[],"settingId":"Enterprise"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Enterprise_License","_updatedAt":new Date(1591734397582),"group":"Enterprise","groupPermissionId":"change-setting-Enterprise","level":"settings","roles":[],"section":"License","sectionPermissionId":"change-setting-License","settingId":"Enterprise_License","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Enterprise_License_Status","_updatedAt":new Date(1591734397593),"group":"Enterprise","groupPermissionId":"change-setting-Enterprise","level":"settings","roles":[],"section":"License","sectionPermissionId":"change-setting-License","settingId":"Enterprise_License_Status","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FEDERATION_Discovery_Method","_updatedAt":new Date(1591734398572),"group":"Federation","groupPermissionId":"change-setting-Federation","level":"settings","roles":[],"settingId":"FEDERATION_Discovery_Method","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FEDERATION_Domain","_updatedAt":new Date(1591734398544),"group":"Federation","groupPermissionId":"change-setting-Federation","level":"settings","roles":[],"settingId":"FEDERATION_Domain","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FEDERATION_Enabled","_updatedAt":new Date(1591734398500),"group":"Federation","groupPermissionId":"change-setting-Federation","level":"settings","roles":[],"settingId":"FEDERATION_Enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FEDERATION_Public_Key","_updatedAt":new Date(1591734398559),"group":"Federation","groupPermissionId":"change-setting-Federation","level":"settings","roles":[],"settingId":"FEDERATION_Public_Key","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FEDERATION_Status","_updatedAt":new Date(1591734399558),"group":"Federation","groupPermissionId":"change-setting-Federation","level":"settings","roles":[],"settingId":"FEDERATION_Status","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FEDERATION_Test_Setup","_updatedAt":new Date(1591734398807),"group":"Federation","groupPermissionId":"change-setting-Federation","level":"settings","roles":[],"settingId":"FEDERATION_Test_Setup","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Favorite_Rooms","_updatedAt":new Date(1591734395526),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Favorite_Rooms","sorter":NumberInt(18)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Federation","_updatedAt":new Date(1591734398478),"level":"settings","roles":[],"settingId":"Federation"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload","_updatedAt":new Date(1591734395855),"level":"settings","roles":[],"settingId":"FileUpload"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_Enable_json_web_token_for_files","_updatedAt":new Date(1591734395865),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"settingId":"FileUpload_Enable_json_web_token_for_files","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_Enabled","_updatedAt":new Date(1591734395858),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"settingId":"FileUpload_Enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_Enabled_Direct","_updatedAt":new Date(1591734395913),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"settingId":"FileUpload_Enabled_Direct","sorter":NumberInt(31)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_FileSystemPath","_updatedAt":new Date(1591734395901),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"File System","sectionPermissionId":"change-setting-File System","settingId":"FileUpload_FileSystemPath","sorter":NumberInt(24)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_GoogleStorage_AccessId","_updatedAt":new Date(1591734396755),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Cloud Storage","sectionPermissionId":"change-setting-Google Cloud Storage","settingId":"FileUpload_GoogleStorage_AccessId","sorter":NumberInt(20)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_GoogleStorage_Bucket","_updatedAt":new Date(1591734396754),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Cloud Storage","sectionPermissionId":"change-setting-Google Cloud Storage","settingId":"FileUpload_GoogleStorage_Bucket","sorter":NumberInt(19)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_GoogleStorage_Proxy_Avatars","_updatedAt":new Date(1591734396766),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Cloud Storage","sectionPermissionId":"change-setting-Google Cloud Storage","settingId":"FileUpload_GoogleStorage_Proxy_Avatars","sorter":NumberInt(22)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_GoogleStorage_Proxy_Uploads","_updatedAt":new Date(1591734396768),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Cloud Storage","sectionPermissionId":"change-setting-Google Cloud Storage","settingId":"FileUpload_GoogleStorage_Proxy_Uploads","sorter":NumberInt(23)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_GoogleStorage_Secret","_updatedAt":new Date(1591734395899),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Cloud Storage","sectionPermissionId":"change-setting-Google Cloud Storage","settingId":"FileUpload_GoogleStorage_Secret","sorter":NumberInt(21)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_MaxFileSize","_updatedAt":new Date(1591734395860),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"settingId":"FileUpload_MaxFileSize","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_MediaTypeWhiteList","_updatedAt":new Date(1591734396974),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"settingId":"FileUpload_MediaTypeWhiteList","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_ProtectFiles","_updatedAt":new Date(1591734395863),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"settingId":"FileUpload_ProtectFiles","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_S3_AWSAccessKeyId","_updatedAt":new Date(1591734395874),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Amazon S3","sectionPermissionId":"change-setting-Amazon S3","settingId":"FileUpload_S3_AWSAccessKeyId","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_S3_AWSSecretAccessKey","_updatedAt":new Date(1591734395877),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Amazon S3","sectionPermissionId":"change-setting-Amazon S3","settingId":"FileUpload_S3_AWSSecretAccessKey","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_S3_Acl","_updatedAt":new Date(1591734395872),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Amazon S3","sectionPermissionId":"change-setting-Amazon S3","settingId":"FileUpload_S3_Acl","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_S3_Bucket","_updatedAt":new Date(1591734395869),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Amazon S3","sectionPermissionId":"change-setting-Amazon S3","settingId":"FileUpload_S3_Bucket","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_S3_BucketURL","_updatedAt":new Date(1591734396752),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Amazon S3","sectionPermissionId":"change-setting-Amazon S3","settingId":"FileUpload_S3_BucketURL","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_S3_CDN","_updatedAt":new Date(1591734395880),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Amazon S3","sectionPermissionId":"change-setting-Amazon S3","settingId":"FileUpload_S3_CDN","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_S3_ForcePathStyle","_updatedAt":new Date(1591734395889),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Amazon S3","sectionPermissionId":"change-setting-Amazon S3","settingId":"FileUpload_S3_ForcePathStyle","sorter":NumberInt(15)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_S3_Proxy_Avatars","_updatedAt":new Date(1591734395894),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Amazon S3","sectionPermissionId":"change-setting-Amazon S3","settingId":"FileUpload_S3_Proxy_Avatars","sorter":NumberInt(17)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_S3_Proxy_Uploads","_updatedAt":new Date(1591734395897),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Amazon S3","sectionPermissionId":"change-setting-Amazon S3","settingId":"FileUpload_S3_Proxy_Uploads","sorter":NumberInt(18)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_S3_Region","_updatedAt":new Date(1591734395883),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Amazon S3","sectionPermissionId":"change-setting-Amazon S3","settingId":"FileUpload_S3_Region","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_S3_SignatureVersion","_updatedAt":new Date(1591734395887),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Amazon S3","sectionPermissionId":"change-setting-Amazon S3","settingId":"FileUpload_S3_SignatureVersion","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_S3_URLExpiryTimeSpan","_updatedAt":new Date(1591734395891),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Amazon S3","sectionPermissionId":"change-setting-Amazon S3","settingId":"FileUpload_S3_URLExpiryTimeSpan","sorter":NumberInt(16)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_Storage_Type","_updatedAt":new Date(1591734395867),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"settingId":"FileUpload_Storage_Type","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_Webdav_Password","_updatedAt":new Date(1591734395907),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"WebDAV","sectionPermissionId":"change-setting-WebDAV","settingId":"FileUpload_Webdav_Password","sorter":NumberInt(28)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_Webdav_Proxy_Avatars","_updatedAt":new Date(1591734395908),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"WebDAV","sectionPermissionId":"change-setting-WebDAV","settingId":"FileUpload_Webdav_Proxy_Avatars","sorter":NumberInt(29)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_Webdav_Proxy_Uploads","_updatedAt":new Date(1591734395911),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"WebDAV","sectionPermissionId":"change-setting-WebDAV","settingId":"FileUpload_Webdav_Proxy_Uploads","sorter":NumberInt(30)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_Webdav_Server_URL","_updatedAt":new Date(1591734395903),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"WebDAV","sectionPermissionId":"change-setting-WebDAV","settingId":"FileUpload_Webdav_Server_URL","sorter":NumberInt(26)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_Webdav_Upload_Folder_Path","_updatedAt":new Date(1591734396769),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"WebDAV","sectionPermissionId":"change-setting-WebDAV","settingId":"FileUpload_Webdav_Upload_Folder_Path","sorter":NumberInt(25)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_Webdav_Username","_updatedAt":new Date(1591734395905),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"WebDAV","sectionPermissionId":"change-setting-WebDAV","settingId":"FileUpload_Webdav_Username","sorter":NumberInt(27)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-FileUpload_json_web_token_secret_for_files","_updatedAt":new Date(1591734396750),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"settingId":"FileUpload_json_web_token_secret_for_files","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-First_Channel_After_Login","_updatedAt":new Date(1591734395527),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"First_Channel_After_Login","sorter":NumberInt(19)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Force_SSL","_updatedAt":new Date(1591734395551),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Force_SSL","sorter":NumberInt(26)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Forgot_Password_Email","_updatedAt":new Date(1591734395226),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Forgot_password_section","sectionPermissionId":"change-setting-Forgot_password_section","settingId":"Forgot_Password_Email","sorter":NumberInt(39)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Forgot_Password_Email_Subject","_updatedAt":new Date(1591734395221),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Forgot_password_section","sectionPermissionId":"change-setting-Forgot_password_section","settingId":"Forgot_Password_Email_Subject","sorter":NumberInt(38)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-From_Email","_updatedAt":new Date(1591734395189),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"SMTP","sectionPermissionId":"change-setting-SMTP","settingId":"From_Email","sorter":NumberInt(27)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-General","_updatedAt":new Date(1591734395007),"level":"settings","roles":[],"settingId":"General"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleAnalytics_ID","_updatedAt":new Date(1591734394997),"group":"Analytics","groupPermissionId":"change-setting-Analytics","level":"settings","roles":[],"section":"Analytics_Google","sectionPermissionId":"change-setting-Analytics_Google","settingId":"GoogleAnalytics_ID","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleAnalytics_enabled","_updatedAt":new Date(1591734394992),"group":"Analytics","groupPermissionId":"change-setting-Analytics","level":"settings","roles":[],"section":"Analytics_Google","sectionPermissionId":"change-setting-Analytics_Google","settingId":"GoogleAnalytics_enabled","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleTagManager_id","_updatedAt":new Date(1591734395556),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"GoogleTagManager_id","sorter":NumberInt(28)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleVision_Block_Adult_Images","_updatedAt":new Date(1591734399020),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Vision","sectionPermissionId":"change-setting-Google Vision","settingId":"GoogleVision_Block_Adult_Images","sorter":NumberInt(44)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleVision_Current_Month_Calls","_updatedAt":new Date(1591734398911),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Vision","sectionPermissionId":"change-setting-Google Vision","settingId":"GoogleVision_Current_Month_Calls","sorter":NumberInt(36)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleVision_Enable","_updatedAt":new Date(1591734398823),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Vision","sectionPermissionId":"change-setting-Google Vision","settingId":"GoogleVision_Enable","sorter":NumberInt(32)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleVision_Max_Monthly_Calls","_updatedAt":new Date(1591734398845),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Vision","sectionPermissionId":"change-setting-Google Vision","settingId":"GoogleVision_Max_Monthly_Calls","sorter":NumberInt(34)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleVision_ServiceAccount","_updatedAt":new Date(1591734398833),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Vision","sectionPermissionId":"change-setting-Google Vision","settingId":"GoogleVision_ServiceAccount","sorter":NumberInt(33)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleVision_Type_Document","_updatedAt":new Date(1591734398926),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Vision","sectionPermissionId":"change-setting-Google Vision","settingId":"GoogleVision_Type_Document","sorter":NumberInt(37)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleVision_Type_Faces","_updatedAt":new Date(1591734398939),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Vision","sectionPermissionId":"change-setting-Google Vision","settingId":"GoogleVision_Type_Faces","sorter":NumberInt(38)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleVision_Type_Labels","_updatedAt":new Date(1591734398965),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Vision","sectionPermissionId":"change-setting-Google Vision","settingId":"GoogleVision_Type_Labels","sorter":NumberInt(40)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleVision_Type_Landmarks","_updatedAt":new Date(1591734398952),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Vision","sectionPermissionId":"change-setting-Google Vision","settingId":"GoogleVision_Type_Landmarks","sorter":NumberInt(39)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleVision_Type_Logos","_updatedAt":new Date(1591734398977),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Vision","sectionPermissionId":"change-setting-Google Vision","settingId":"GoogleVision_Type_Logos","sorter":NumberInt(41)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleVision_Type_Properties","_updatedAt":new Date(1591734398990),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Vision","sectionPermissionId":"change-setting-Google Vision","settingId":"GoogleVision_Type_Properties","sorter":NumberInt(42)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleVision_Type_SafeSearch","_updatedAt":new Date(1591734399004),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Vision","sectionPermissionId":"change-setting-Google Vision","settingId":"GoogleVision_Type_SafeSearch","sorter":NumberInt(43)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-GoogleVision_Type_Similar","_updatedAt":new Date(1591734399030),"group":"FileUpload","groupPermissionId":"change-setting-FileUpload","level":"settings","roles":[],"section":"Google Vision","sectionPermissionId":"change-setting-Google Vision","settingId":"GoogleVision_Type_Similar","sorter":NumberInt(45)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-HexColorPreview_Enabled","_updatedAt":new Date(1591734395935),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Hex_Color_Preview","sectionPermissionId":"change-setting-Hex_Color_Preview","settingId":"HexColorPreview_Enabled","sorter":NumberInt(34)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Hide_System_Messages","_updatedAt":new Date(1591734395657),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Hide_System_Messages","sorter":NumberInt(31)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-IRC_Description","_updatedAt":new Date(1591734399212),"group":"IRC_Federation","groupPermissionId":"change-setting-IRC_Federation","level":"settings","roles":[],"settingId":"IRC_Description","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-IRC_Enabled","_updatedAt":new Date(1591734399173),"group":"IRC_Federation","groupPermissionId":"change-setting-IRC_Federation","level":"settings","roles":[],"settingId":"IRC_Enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-IRC_Federation","_updatedAt":new Date(1591734399122),"level":"settings","roles":[],"settingId":"IRC_Federation"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-IRC_Host","_updatedAt":new Date(1591734399190),"group":"IRC_Federation","groupPermissionId":"change-setting-IRC_Federation","level":"settings","roles":[],"settingId":"IRC_Host","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-IRC_Local_Password","_updatedAt":new Date(1591734399220),"group":"IRC_Federation","groupPermissionId":"change-setting-IRC_Federation","level":"settings","roles":[],"settingId":"IRC_Local_Password","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-IRC_Name","_updatedAt":new Date(1591734399205),"group":"IRC_Federation","groupPermissionId":"change-setting-IRC_Federation","level":"settings","roles":[],"settingId":"IRC_Name","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-IRC_Peer_Password","_updatedAt":new Date(1591734399229),"group":"IRC_Federation","groupPermissionId":"change-setting-IRC_Federation","level":"settings","roles":[],"settingId":"IRC_Peer_Password","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-IRC_Port","_updatedAt":new Date(1591734399197),"group":"IRC_Federation","groupPermissionId":"change-setting-IRC_Federation","level":"settings","roles":[],"settingId":"IRC_Port","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-IRC_Protocol","_updatedAt":new Date(1591734399180),"group":"IRC_Federation","groupPermissionId":"change-setting-IRC_Federation","level":"settings","roles":[],"settingId":"IRC_Protocol","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-IRC_Reset_Connection","_updatedAt":new Date(1591734399237),"group":"IRC_Federation","groupPermissionId":"change-setting-IRC_Federation","level":"settings","roles":[],"settingId":"IRC_Reset_Connection","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Iframe_Integration_receive_enable","_updatedAt":new Date(1591734395580),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"Iframe_Integration","sectionPermissionId":"change-setting-Iframe_Integration","settingId":"Iframe_Integration_receive_enable","sorter":NumberInt(40)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Iframe_Integration_receive_origin","_updatedAt":new Date(1591734395582),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"Iframe_Integration","sectionPermissionId":"change-setting-Iframe_Integration","settingId":"Iframe_Integration_receive_origin","sorter":NumberInt(41)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Iframe_Integration_send_enable","_updatedAt":new Date(1591734395576),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"Iframe_Integration","sectionPermissionId":"change-setting-Iframe_Integration","settingId":"Iframe_Integration_send_enable","sorter":NumberInt(38)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Iframe_Integration_send_target_origin","_updatedAt":new Date(1591734395578),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"Iframe_Integration","sectionPermissionId":"change-setting-Iframe_Integration","settingId":"Iframe_Integration_send_target_origin","sorter":NumberInt(39)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Iframe_Restrict_Access","_updatedAt":new Date(1591734395522),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Iframe_Restrict_Access","sorter":NumberInt(16)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Iframe_X_Frame_Options","_updatedAt":new Date(1591734395524),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Iframe_X_Frame_Options","sorter":NumberInt(17)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Industry","_updatedAt":new Date(1591734395780),"group":"Setup_Wizard","groupPermissionId":"change-setting-Setup_Wizard","level":"settings","roles":[],"section":"Organization_Info","sectionPermissionId":"change-setting-Organization_Info","settingId":"Industry","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Invitation_Email","_updatedAt":new Date(1591734395219),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Invitation","sectionPermissionId":"change-setting-Invitation","settingId":"Invitation_Email","sorter":NumberInt(37)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Invitation_Subject","_updatedAt":new Date(1591734395216),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Invitation","sectionPermissionId":"change-setting-Invitation","settingId":"Invitation_Subject","sorter":NumberInt(36)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-IssueLinks_Enabled","_updatedAt":new Date(1591734396018),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Issue_Links","sectionPermissionId":"change-setting-Issue_Links","settingId":"IssueLinks_Enabled","sorter":NumberInt(35)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-IssueLinks_Template","_updatedAt":new Date(1591734396020),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Issue_Links","sectionPermissionId":"change-setting-Issue_Links","settingId":"IssueLinks_Template","sorter":NumberInt(36)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Jitsi_Application_ID","_updatedAt":new Date(1591734399579),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"Jitsi","sectionPermissionId":"change-setting-Jitsi","settingId":"Jitsi_Application_ID","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Jitsi_Application_Secret","_updatedAt":new Date(1591734399589),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"Jitsi","sectionPermissionId":"change-setting-Jitsi","settingId":"Jitsi_Application_Secret","sorter":NumberInt(15)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Jitsi_Chrome_Extension","_updatedAt":new Date(1591734399564),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"Jitsi","sectionPermissionId":"change-setting-Jitsi","settingId":"Jitsi_Chrome_Extension","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Jitsi_Domain","_updatedAt":new Date(1591734399520),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"Jitsi","sectionPermissionId":"change-setting-Jitsi","settingId":"Jitsi_Domain","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Jitsi_Enable_Channels","_updatedAt":new Date(1591734399551),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"Jitsi","sectionPermissionId":"change-setting-Jitsi","settingId":"Jitsi_Enable_Channels","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Jitsi_Enabled","_updatedAt":new Date(1591734399511),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"Jitsi","sectionPermissionId":"change-setting-Jitsi","settingId":"Jitsi_Enabled","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Jitsi_Enabled_TokenAuth","_updatedAt":new Date(1591734399572),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"Jitsi","sectionPermissionId":"change-setting-Jitsi","settingId":"Jitsi_Enabled_TokenAuth","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Jitsi_Limit_Token_To_Room","_updatedAt":new Date(1591734399598),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"Jitsi","sectionPermissionId":"change-setting-Jitsi","settingId":"Jitsi_Limit_Token_To_Room","sorter":NumberInt(16)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Jitsi_Open_New_Window","_updatedAt":new Date(1591734399543),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"Jitsi","sectionPermissionId":"change-setting-Jitsi","settingId":"Jitsi_Open_New_Window","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Jitsi_SSL","_updatedAt":new Date(1591734399536),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"Jitsi","sectionPermissionId":"change-setting-Jitsi","settingId":"Jitsi_SSL","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Jitsi_URL_Room_Prefix","_updatedAt":new Date(1591734399529),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"Jitsi","sectionPermissionId":"change-setting-Jitsi","settingId":"Jitsi_URL_Room_Prefix","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Katex_Dollar_Syntax","_updatedAt":new Date(1591734399258),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Katex","sectionPermissionId":"change-setting-Katex","settingId":"Katex_Dollar_Syntax","sorter":NumberInt(64)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Katex_Enabled","_updatedAt":new Date(1591734399244),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Katex","sectionPermissionId":"change-setting-Katex","settingId":"Katex_Enabled","sorter":NumberInt(62)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Katex_Parenthesis_Syntax","_updatedAt":new Date(1591734399251),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Katex","sectionPermissionId":"change-setting-Katex","settingId":"Katex_Parenthesis_Syntax","sorter":NumberInt(63)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP","_updatedAt":new Date(1591734396023),"level":"settings","roles":[],"settingId":"LDAP"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Authentication","_updatedAt":new Date(1591734396055),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Authentication","sectionPermissionId":"change-setting-Authentication","settingId":"LDAP_Authentication","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Authentication_Password","_updatedAt":new Date(1591734396784),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Authentication","sectionPermissionId":"change-setting-Authentication","settingId":"LDAP_Authentication_Password","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Authentication_UserDN","_updatedAt":new Date(1591734396781),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Authentication","sectionPermissionId":"change-setting-Authentication","settingId":"LDAP_Authentication_UserDN","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Background_Sync","_updatedAt":new Date(1591734396117),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Background_Sync","sorter":NumberInt(45)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Background_Sync_Import_New_Users","_updatedAt":new Date(1591734396788),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Background_Sync_Import_New_Users","sorter":NumberInt(47)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Background_Sync_Interval","_updatedAt":new Date(1591734396118),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Background_Sync_Interval","sorter":NumberInt(46)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Background_Sync_Keep_Existant_Users_Updated","_updatedAt":new Date(1591734396120),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Background_Sync_Keep_Existant_Users_Updated","sorter":NumberInt(48)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_BaseDN","_updatedAt":new Date(1591734396048),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"settingId":"LDAP_BaseDN","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_CA_Cert","_updatedAt":new Date(1591734396043),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"settingId":"LDAP_CA_Cert","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Connect_Timeout","_updatedAt":new Date(1591734396059),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Timeouts","sectionPermissionId":"change-setting-Timeouts","settingId":"LDAP_Connect_Timeout","sorter":NumberInt(16)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Default_Domain","_updatedAt":new Date(1591734396093),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Default_Domain","sorter":NumberInt(31)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Enable","_updatedAt":new Date(1591734396027),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"settingId":"LDAP_Enable","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Encryption","_updatedAt":new Date(1591734396041),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"settingId":"LDAP_Encryption","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Find_User_After_Login","_updatedAt":new Date(1591734396031),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"settingId":"LDAP_Find_User_After_Login","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Group_Filter_Enable","_updatedAt":new Date(1591734396076),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"User Search (Group Validation)","sectionPermissionId":"change-setting-User Search (Group Validation)","settingId":"LDAP_Group_Filter_Enable","sorter":NumberInt(23)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Group_Filter_Group_Id_Attribute","_updatedAt":new Date(1591734396080),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"User Search (Group Validation)","sectionPermissionId":"change-setting-User Search (Group Validation)","settingId":"LDAP_Group_Filter_Group_Id_Attribute","sorter":NumberInt(25)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Group_Filter_Group_Member_Attribute","_updatedAt":new Date(1591734396082),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"User Search (Group Validation)","sectionPermissionId":"change-setting-User Search (Group Validation)","settingId":"LDAP_Group_Filter_Group_Member_Attribute","sorter":NumberInt(26)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Group_Filter_Group_Member_Format","_updatedAt":new Date(1591734396084),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"User Search (Group Validation)","sectionPermissionId":"change-setting-User Search (Group Validation)","settingId":"LDAP_Group_Filter_Group_Member_Format","sorter":NumberInt(27)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Group_Filter_Group_Name","_updatedAt":new Date(1591734396087),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"User Search (Group Validation)","sectionPermissionId":"change-setting-User Search (Group Validation)","settingId":"LDAP_Group_Filter_Group_Name","sorter":NumberInt(28)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Group_Filter_ObjectClass","_updatedAt":new Date(1591734396078),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"User Search (Group Validation)","sectionPermissionId":"change-setting-User Search (Group Validation)","settingId":"LDAP_Group_Filter_ObjectClass","sorter":NumberInt(24)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Host","_updatedAt":new Date(1591734396034),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"settingId":"LDAP_Host","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Idle_Timeout","_updatedAt":new Date(1591734396062),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Timeouts","sectionPermissionId":"change-setting-Timeouts","settingId":"LDAP_Idle_Timeout","sorter":NumberInt(17)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Internal_Log_Level","_updatedAt":new Date(1591734396050),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"settingId":"LDAP_Internal_Log_Level","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Login_Fallback","_updatedAt":new Date(1591734396029),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"settingId":"LDAP_Login_Fallback","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Merge_Existing_Users","_updatedAt":new Date(1591734396095),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Merge_Existing_Users","sorter":NumberInt(32)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Port","_updatedAt":new Date(1591734396036),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"settingId":"LDAP_Port","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Reconnect","_updatedAt":new Date(1591734396039),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"settingId":"LDAP_Reconnect","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Reject_Unauthorized","_updatedAt":new Date(1591734396045),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"settingId":"LDAP_Reject_Unauthorized","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Search_Page_Size","_updatedAt":new Date(1591734396072),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"User Search","sectionPermissionId":"change-setting-User Search","settingId":"LDAP_Search_Page_Size","sorter":NumberInt(21)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Search_Size_Limit","_updatedAt":new Date(1591734396074),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"User Search","sectionPermissionId":"change-setting-User Search","settingId":"LDAP_Search_Size_Limit","sorter":NumberInt(22)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Sync_Now","_updatedAt":new Date(1591734396122),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Sync_Now","sorter":NumberInt(49)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Sync_User_Avatar","_updatedAt":new Date(1591734396115),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Sync_User_Avatar","sorter":NumberInt(44)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Sync_User_Data","_updatedAt":new Date(1591734396097),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Sync_User_Data","sorter":NumberInt(33)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Sync_User_Data_FieldMap","_updatedAt":new Date(1591734396099),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Sync_User_Data_FieldMap","sorter":NumberInt(34)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Sync_User_Data_Groups","_updatedAt":new Date(1591734396101),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Sync_User_Data_Groups","sorter":NumberInt(35)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Sync_User_Data_GroupsMap","_updatedAt":new Date(1591734396106),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Sync_User_Data_GroupsMap","sorter":NumberInt(39)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Sync_User_Data_Groups_AutoChannels","_updatedAt":new Date(1591734396108),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Sync_User_Data_Groups_AutoChannels","sorter":NumberInt(40)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Sync_User_Data_Groups_AutoChannelsMap","_updatedAt":new Date(1591734396111),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Sync_User_Data_Groups_AutoChannelsMap","sorter":NumberInt(42)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Sync_User_Data_Groups_AutoChannels_Admin","_updatedAt":new Date(1591734396109),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Sync_User_Data_Groups_AutoChannels_Admin","sorter":NumberInt(41)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Sync_User_Data_Groups_AutoRemove","_updatedAt":new Date(1591734396103),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Sync_User_Data_Groups_AutoRemove","sorter":NumberInt(36)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Sync_User_Data_Groups_BaseDN","_updatedAt":new Date(1591734396786),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Sync_User_Data_Groups_BaseDN","sorter":NumberInt(38)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Sync_User_Data_Groups_Enforce_AutoChannels","_updatedAt":new Date(1591734396113),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Sync_User_Data_Groups_Enforce_AutoChannels","sorter":NumberInt(43)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Sync_User_Data_Groups_Filter","_updatedAt":new Date(1591734396104),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Sync_User_Data_Groups_Filter","sorter":NumberInt(37)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Test_Connection","_updatedAt":new Date(1591734396052),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"settingId":"LDAP_Test_Connection","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Timeout","_updatedAt":new Date(1591734396057),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Timeouts","sectionPermissionId":"change-setting-Timeouts","settingId":"LDAP_Timeout","sorter":NumberInt(15)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Unique_Identifier_Field","_updatedAt":new Date(1591734396091),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Unique_Identifier_Field","sorter":NumberInt(30)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_User_Search_Field","_updatedAt":new Date(1591734396070),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"User Search","sectionPermissionId":"change-setting-User Search","settingId":"LDAP_User_Search_Field","sorter":NumberInt(20)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_User_Search_Filter","_updatedAt":new Date(1591734396065),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"User Search","sectionPermissionId":"change-setting-User Search","settingId":"LDAP_User_Search_Filter","sorter":NumberInt(18)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_User_Search_Scope","_updatedAt":new Date(1591734396067),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"User Search","sectionPermissionId":"change-setting-User Search","settingId":"LDAP_User_Search_Scope","sorter":NumberInt(19)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LDAP_Username_Field","_updatedAt":new Date(1591734396089),"group":"LDAP","groupPermissionId":"change-setting-LDAP","level":"settings","roles":[],"section":"Sync / Import","sectionPermissionId":"change-setting-Sync / Import","settingId":"LDAP_Username_Field","sorter":NumberInt(29)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Language","_updatedAt":new Date(1591734395519),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Language","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Layout","_updatedAt":new Date(1591734395705),"level":"settings","roles":[],"settingId":"Layout"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Layout_Home_Body","_updatedAt":new Date(1591734395708),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Content","sectionPermissionId":"change-setting-Content","settingId":"Layout_Home_Body","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Layout_Home_Title","_updatedAt":new Date(1591734395707),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Content","sectionPermissionId":"change-setting-Content","settingId":"Layout_Home_Title","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Layout_Legal_Notice","_updatedAt":new Date(1591734395715),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Content","sectionPermissionId":"change-setting-Content","settingId":"Layout_Legal_Notice","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Layout_Login_Terms","_updatedAt":new Date(1591734395711),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Content","sectionPermissionId":"change-setting-Content","settingId":"Layout_Login_Terms","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Layout_Privacy_Policy","_updatedAt":new Date(1591734395713),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Content","sectionPermissionId":"change-setting-Content","settingId":"Layout_Privacy_Policy","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Layout_Show_Home_Button","_updatedAt":new Date(1591734396890),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Content","sectionPermissionId":"change-setting-Content","settingId":"Layout_Show_Home_Button","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Layout_Sidenav_Footer","_updatedAt":new Date(1591734395716),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Content","sectionPermissionId":"change-setting-Content","settingId":"Layout_Sidenav_Footer","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Layout_Terms_of_Service","_updatedAt":new Date(1591734395710),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Content","sectionPermissionId":"change-setting-Content","settingId":"Layout_Terms_of_Service","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-LiveStream & Broadcasting","_updatedAt":new Date(1591734399268),"level":"settings","roles":[],"settingId":"LiveStream & Broadcasting"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_Allow_collect_and_store_HTTP_header_informations","_updatedAt":new Date(1591734401050),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_Allow_collect_and_store_HTTP_header_informations","sorter":NumberInt(62),"section":"GDPR","sectionPermissionId":"change-setting-GDPR"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_AllowedDomainsList","_updatedAt":new Date(1591734400964),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_AllowedDomainsList","sorter":NumberInt(50),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_External_Queue_Token","_updatedAt":new Date(1591734401044),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Routing","sectionPermissionId":"change-setting-Routing","settingId":"Livechat_External_Queue_Token","sorter":NumberInt(61)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_External_Queue_URL","_updatedAt":new Date(1591734401037),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Routing","sectionPermissionId":"change-setting-Routing","settingId":"Livechat_External_Queue_URL","sorter":NumberInt(60)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_Facebook_API_Key","_updatedAt":new Date(1591734400979),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Facebook","sectionPermissionId":"change-setting-Facebook","settingId":"Livechat_Facebook_API_Key","sorter":NumberInt(52)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_Facebook_API_Secret","_updatedAt":new Date(1591734400987),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Facebook","sectionPermissionId":"change-setting-Facebook","settingId":"Livechat_Facebook_API_Secret","sorter":NumberInt(53)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_Facebook_Enabled","_updatedAt":new Date(1591734400972),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Facebook","sectionPermissionId":"change-setting-Facebook","settingId":"Livechat_Facebook_Enabled","sorter":NumberInt(51)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_Knowledge_Apiai_Key","_updatedAt":new Date(1591734400867),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Knowledge_Base","sectionPermissionId":"change-setting-Knowledge_Base","settingId":"Livechat_Knowledge_Apiai_Key","sorter":NumberInt(38)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_Knowledge_Apiai_Language","_updatedAt":new Date(1591734400876),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Knowledge_Base","sectionPermissionId":"change-setting-Knowledge_Base","settingId":"Livechat_Knowledge_Apiai_Language","sorter":NumberInt(39)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_Knowledge_Enabled","_updatedAt":new Date(1591734400860),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Knowledge_Base","sectionPermissionId":"change-setting-Knowledge_Base","settingId":"Livechat_Knowledge_Enabled","sorter":NumberInt(37)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_RDStation_Token","_updatedAt":new Date(1591734400997),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"RD Station","sectionPermissionId":"change-setting-RD Station","settingId":"Livechat_RDStation_Token","sorter":NumberInt(54)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_Room_Count","_updatedAt":new Date(1591734400722),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_Room_Count","sorter":NumberInt(25)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_Routing_Method","_updatedAt":new Date(1591734401004),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Routing","sectionPermissionId":"change-setting-Routing","settingId":"Livechat_Routing_Method","sorter":NumberInt(55)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_Visitor_navigation_as_a_message","_updatedAt":new Date(1591734400891),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_Visitor_navigation_as_a_message","sorter":NumberInt(41),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_accept_chats_with_no_agents","_updatedAt":new Date(1591734401012),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Routing","sectionPermissionId":"change-setting-Routing","settingId":"Livechat_accept_chats_with_no_agents","sorter":NumberInt(56)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_agent_leave_action","_updatedAt":new Date(1591734401074),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Sessions","sectionPermissionId":"change-setting-Sessions","settingId":"Livechat_agent_leave_action","sorter":NumberInt(65)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_agent_leave_action_timeout","_updatedAt":new Date(1591734401081),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Sessions","sectionPermissionId":"change-setting-Sessions","settingId":"Livechat_agent_leave_action_timeout","sorter":NumberInt(66)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_agent_leave_comment","_updatedAt":new Date(1591734401088),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Sessions","sectionPermissionId":"change-setting-Sessions","settingId":"Livechat_agent_leave_comment","sorter":NumberInt(67)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_allow_online_agents_outside_office_hours","_updatedAt":new Date(1591734400907),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_allow_online_agents_outside_office_hours","sorter":NumberInt(43)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_allow_switching_departments","_updatedAt":new Date(1591734400505),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_allow_switching_departments","sorter":NumberInt(15),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_assign_new_conversation_to_bot","_updatedAt":new Date(1591734401018),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Routing","sectionPermissionId":"change-setting-Routing","settingId":"Livechat_assign_new_conversation_to_bot","sorter":NumberInt(57)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_continuous_sound_notification_new_livechat_room","_updatedAt":new Date(1591734400914),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_continuous_sound_notification_new_livechat_room","sorter":NumberInt(44)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_conversation_finished_message","_updatedAt":new Date(1591734400614),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_conversation_finished_message","sorter":NumberInt(19),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_conversation_finished_text","_updatedAt":new Date(1591734400629),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_conversation_finished_text","sorter":NumberInt(20),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_data_processing_consent_text","_updatedAt":new Date(1591734401066),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_data_processing_consent_text","sorter":NumberInt(64),"section":"GDPR","sectionPermissionId":"change-setting-GDPR"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_display_offline_form","_updatedAt":new Date(1591734400351),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Livechat","sectionPermissionId":"change-setting-Livechat","settingId":"Livechat_display_offline_form","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_email_field_registration_form","_updatedAt":new Date(1591734400685),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_email_field_registration_form","sorter":NumberInt(23),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_enable_office_hours","_updatedAt":new Date(1591734400900),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_enable_office_hours","sorter":NumberInt(42)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_enable_transcript","_updatedAt":new Date(1591734400939),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_enable_transcript","sorter":NumberInt(47)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_enabled","_updatedAt":new Date(1591734400318),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_enabled","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_enabled_when_agent_idle","_updatedAt":new Date(1591734400733),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_enabled_when_agent_idle","sorter":NumberInt(26)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_fileupload_enabled","_updatedAt":new Date(1591734400930),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_fileupload_enabled","sorter":NumberInt(46)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_force_accept_data_processing_consent","_updatedAt":new Date(1591734401059),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_force_accept_data_processing_consent","sorter":NumberInt(63),"section":"GDPR","sectionPermissionId":"change-setting-GDPR"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_guest_count","_updatedAt":new Date(1591734400696),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_guest_count","sorter":NumberInt(24)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_guest_pool_max_number_incoming_livechats_displayed","_updatedAt":new Date(1591734401024),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Routing","sectionPermissionId":"change-setting-Routing","settingId":"Livechat_guest_pool_max_number_incoming_livechats_displayed","sorter":NumberInt(58)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_history_monitor_type","_updatedAt":new Date(1591734400882),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_history_monitor_type","sorter":NumberInt(40),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_lead_email_regex","_updatedAt":new Date(1591734400845),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"CRM_Integration","sectionPermissionId":"change-setting-CRM_Integration","settingId":"Livechat_lead_email_regex","sorter":NumberInt(35)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_lead_phone_regex","_updatedAt":new Date(1591734400851),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"CRM_Integration","sectionPermissionId":"change-setting-CRM_Integration","settingId":"Livechat_lead_phone_regex","sorter":NumberInt(36)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_name_field_registration_form","_updatedAt":new Date(1591734400672),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_name_field_registration_form","sorter":NumberInt(22),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_offline_email","_updatedAt":new Date(1591734400453),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Livechat","sectionPermissionId":"change-setting-Livechat","settingId":"Livechat_offline_email","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_offline_form_unavailable","_updatedAt":new Date(1591734400386),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Livechat","sectionPermissionId":"change-setting-Livechat","settingId":"Livechat_offline_form_unavailable","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_offline_message","_updatedAt":new Date(1591734400433),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Livechat","sectionPermissionId":"change-setting-Livechat","settingId":"Livechat_offline_message","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_offline_success_message","_updatedAt":new Date(1591734400476),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Livechat","sectionPermissionId":"change-setting-Livechat","settingId":"Livechat_offline_success_message","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_offline_title","_updatedAt":new Date(1591734400400),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Livechat","sectionPermissionId":"change-setting-Livechat","settingId":"Livechat_offline_title","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_offline_title_color","_updatedAt":new Date(1591734400420),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Livechat","sectionPermissionId":"change-setting-Livechat","settingId":"Livechat_offline_title_color","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_registration_form","_updatedAt":new Date(1591734400639),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_registration_form","sorter":NumberInt(21),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_registration_form_message","_updatedAt":new Date(1591734400956),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_registration_form_message","sorter":NumberInt(49),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_request_comment_when_closing_conversation","_updatedAt":new Date(1591734400603),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_request_comment_when_closing_conversation","sorter":NumberInt(18)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_secret_token","_updatedAt":new Date(1591734400752),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"CRM_Integration","sectionPermissionId":"change-setting-CRM_Integration","settingId":"Livechat_secret_token","sorter":NumberInt(28)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_show_agent_email","_updatedAt":new Date(1591734400556),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_show_agent_email","sorter":NumberInt(17),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_show_agent_info","_updatedAt":new Date(1591734400532),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_show_agent_info","sorter":NumberInt(16),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_show_queue_list_link","_updatedAt":new Date(1591734401030),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Routing","sectionPermissionId":"change-setting-Routing","settingId":"Livechat_show_queue_list_link","sorter":NumberInt(59)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_title","_updatedAt":new Date(1591734400327),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_title","sorter":NumberInt(5),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_title_color","_updatedAt":new Date(1591734400338),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_title_color","sorter":NumberInt(6),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_transcript_message","_updatedAt":new Date(1591734400947),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_transcript_message","sorter":NumberInt(48)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_validate_offline_email","_updatedAt":new Date(1591734400372),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Livechat","sectionPermissionId":"change-setting-Livechat","settingId":"Livechat_validate_offline_email","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_videocall_enabled","_updatedAt":new Date(1591734400923),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"settingId":"Livechat_videocall_enabled","sorter":NumberInt(45),"section":"Livechat","sectionPermissionId":"change-setting-Livechat"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_visitor_inactivity_timeout","_updatedAt":new Date(1591734401096),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"Sessions","sectionPermissionId":"change-setting-Sessions","settingId":"Livechat_visitor_inactivity_timeout","sorter":NumberInt(68)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_webhookUrl","_updatedAt":new Date(1591734400740),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"CRM_Integration","sectionPermissionId":"change-setting-CRM_Integration","settingId":"Livechat_webhookUrl","sorter":NumberInt(27)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_webhook_on_agent_message","_updatedAt":new Date(1591734400798),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"CRM_Integration","sectionPermissionId":"change-setting-CRM_Integration","settingId":"Livechat_webhook_on_agent_message","sorter":NumberInt(32)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_webhook_on_capture","_updatedAt":new Date(1591734400832),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"CRM_Integration","sectionPermissionId":"change-setting-CRM_Integration","settingId":"Livechat_webhook_on_capture","sorter":NumberInt(34)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_webhook_on_close","_updatedAt":new Date(1591734400762),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"CRM_Integration","sectionPermissionId":"change-setting-CRM_Integration","settingId":"Livechat_webhook_on_close","sorter":NumberInt(29)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_webhook_on_offline_msg","_updatedAt":new Date(1591734400777),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"CRM_Integration","sectionPermissionId":"change-setting-CRM_Integration","settingId":"Livechat_webhook_on_offline_msg","sorter":NumberInt(30)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livechat_webhook_on_visitor_message","_updatedAt":new Date(1591734400789),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"CRM_Integration","sectionPermissionId":"change-setting-CRM_Integration","settingId":"Livechat_webhook_on_visitor_message","sorter":NumberInt(31)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Livestream_enabled","_updatedAt":new Date(1591734399274),"group":"LiveStream & Broadcasting","groupPermissionId":"change-setting-LiveStream & Broadcasting","level":"settings","roles":[],"settingId":"Livestream_enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Log_Exceptions_to_Channel","_updatedAt":new Date(1591734395990),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"settingId":"Log_Exceptions_to_Channel","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Log_File","_updatedAt":new Date(1591734395757),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"settingId":"Log_File","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Log_Level","_updatedAt":new Date(1591734395752),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"settingId":"Log_Level","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Log_Package","_updatedAt":new Date(1591734395754),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"settingId":"Log_Package","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Log_Trace_Methods","_updatedAt":new Date(1591734395761),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"settingId":"Log_Trace_Methods","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Log_Trace_Methods_Filter","_updatedAt":new Date(1591734395763),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"settingId":"Log_Trace_Methods_Filter","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Log_Trace_Subscriptions","_updatedAt":new Date(1591734395765),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"settingId":"Log_Trace_Subscriptions","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Log_Trace_Subscriptions_Filter","_updatedAt":new Date(1591734395767),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"settingId":"Log_Trace_Subscriptions_Filter","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Log_View_Limit","_updatedAt":new Date(1591734395759),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"settingId":"Log_View_Limit","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Logs","_updatedAt":new Date(1591734395745),"level":"settings","roles":[],"settingId":"Logs"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-MapView_Enabled","_updatedAt":new Date(1591734399321),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Google Maps","sectionPermissionId":"change-setting-Google Maps","settingId":"MapView_Enabled","sorter":NumberInt(65)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-MapView_GMapsAPIKey","_updatedAt":new Date(1591734399328),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Google Maps","sectionPermissionId":"change-setting-Google Maps","settingId":"MapView_GMapsAPIKey","sorter":NumberInt(66)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Markdown_Headers","_updatedAt":new Date(1591734397431),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Markdown","sectionPermissionId":"change-setting-Markdown","settingId":"Markdown_Headers","sorter":NumberInt(41)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Markdown_Marked_Breaks","_updatedAt":new Date(1591734397491),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Markdown","sectionPermissionId":"change-setting-Markdown","settingId":"Markdown_Marked_Breaks","sorter":NumberInt(45)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Markdown_Marked_GFM","_updatedAt":new Date(1591734397460),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Markdown","sectionPermissionId":"change-setting-Markdown","settingId":"Markdown_Marked_GFM","sorter":NumberInt(43)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Markdown_Marked_Pedantic","_updatedAt":new Date(1591734397506),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Markdown","sectionPermissionId":"change-setting-Markdown","settingId":"Markdown_Marked_Pedantic","sorter":NumberInt(46)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Markdown_Marked_SmartLists","_updatedAt":new Date(1591734397536),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Markdown","sectionPermissionId":"change-setting-Markdown","settingId":"Markdown_Marked_SmartLists","sorter":NumberInt(47)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Markdown_Marked_Smartypants","_updatedAt":new Date(1591734397553),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Markdown","sectionPermissionId":"change-setting-Markdown","settingId":"Markdown_Marked_Smartypants","sorter":NumberInt(48)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Markdown_Marked_Tables","_updatedAt":new Date(1591734397479),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Markdown","sectionPermissionId":"change-setting-Markdown","settingId":"Markdown_Marked_Tables","sorter":NumberInt(44)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Markdown_Parser","_updatedAt":new Date(1591734397414),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Markdown","sectionPermissionId":"change-setting-Markdown","settingId":"Markdown_Parser","sorter":NumberInt(40)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Markdown_SupportSchemesForLink","_updatedAt":new Date(1591734397449),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Markdown","sectionPermissionId":"change-setting-Markdown","settingId":"Markdown_SupportSchemesForLink","sorter":NumberInt(42)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message","_updatedAt":new Date(1591734395588),"level":"settings","roles":[],"settingId":"Message"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_AllowBadWordsFilter","_updatedAt":new Date(1591734395610),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_AllowBadWordsFilter","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_AllowConvertLongMessagesToAttachment","_updatedAt":new Date(1591734395622),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_AllowConvertLongMessagesToAttachment","sorter":NumberInt(17)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_AllowDeleting","_updatedAt":new Date(1591734395598),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_AllowDeleting","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_AllowDeleting_BlockDeleteInMinutes","_updatedAt":new Date(1591734395600),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_AllowDeleting_BlockDeleteInMinutes","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_AllowDirectMessagesToYourself","_updatedAt":new Date(1591734395603),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_AllowDirectMessagesToYourself","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_AllowEditing","_updatedAt":new Date(1591734395595),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_AllowEditing","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_AllowEditing_BlockEditInMinutes","_updatedAt":new Date(1591734395597),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_AllowEditing_BlockEditInMinutes","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_AllowPinning","_updatedAt":new Date(1591734399337),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_AllowPinning","sorter":NumberInt(67)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_AllowSnippeting","_updatedAt":new Date(1591734399345),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_AllowSnippeting","sorter":NumberInt(68)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_AllowStarring","_updatedAt":new Date(1591734399352),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_AllowStarring","sorter":NumberInt(69)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_AllowUnrecognizedSlashCommand","_updatedAt":new Date(1591734395602),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_AllowUnrecognizedSlashCommand","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_AlwaysSearchRegExp","_updatedAt":new Date(1591734395605),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_AlwaysSearchRegExp","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_Attachments_GroupAttach","_updatedAt":new Date(1591734395590),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Message_Attachments","sectionPermissionId":"change-setting-Message_Attachments","settingId":"Message_Attachments_GroupAttach","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_AudioRecorderEnabled","_updatedAt":new Date(1591734395592),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Message_Audio","sectionPermissionId":"change-setting-Message_Audio","settingId":"Message_AudioRecorderEnabled","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_Audio_bitRate","_updatedAt":new Date(1591734395593),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"section":"Message_Audio","sectionPermissionId":"change-setting-Message_Audio","settingId":"Message_Audio_bitRate","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_BadWordsFilterList","_updatedAt":new Date(1591734395612),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_BadWordsFilterList","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_DateFormat","_updatedAt":new Date(1591734395651),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_DateFormat","sorter":NumberInt(28)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_ErasureType","_updatedAt":new Date(1591734395659),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_ErasureType","sorter":NumberInt(33)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_GroupingPeriod","_updatedAt":new Date(1591734395627),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_GroupingPeriod","sorter":NumberInt(19)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_KeepHistory","_updatedAt":new Date(1591734395614),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_KeepHistory","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_MaxAll","_updatedAt":new Date(1591734395617),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_MaxAll","sorter":NumberInt(15)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_MaxAllowedSize","_updatedAt":new Date(1591734395619),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_MaxAllowedSize","sorter":NumberInt(16)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_QuoteChainLimit","_updatedAt":new Date(1591734395655),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_QuoteChainLimit","sorter":NumberInt(30)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_Read_Receipt_Enabled","_updatedAt":new Date(1591734396270),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_Read_Receipt_Enabled","sorter":NumberInt(38)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_Read_Receipt_Store_Users","_updatedAt":new Date(1591734396272),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_Read_Receipt_Store_Users","sorter":NumberInt(39)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_ShowDeletedStatus","_updatedAt":new Date(1591734395609),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_ShowDeletedStatus","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_ShowEditedStatus","_updatedAt":new Date(1591734395607),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_ShowEditedStatus","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_ShowFormattingTips","_updatedAt":new Date(1591734395625),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_ShowFormattingTips","sorter":NumberInt(18)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_TimeAndDateFormat","_updatedAt":new Date(1591734395653),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_TimeAndDateFormat","sorter":NumberInt(29)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_TimeFormat","_updatedAt":new Date(1591734395644),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_TimeFormat","sorter":NumberInt(27)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Message_VideoRecorderEnabled","_updatedAt":new Date(1591734396227),"group":"Message","groupPermissionId":"change-setting-Message","level":"settings","roles":[],"settingId":"Message_VideoRecorderEnabled","sorter":NumberInt(37)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Meta","_updatedAt":new Date(1591734395661),"level":"settings","roles":[],"settingId":"Meta"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Meta_custom","_updatedAt":new Date(1591734395675),"group":"Meta","groupPermissionId":"change-setting-Meta","level":"settings","roles":[],"settingId":"Meta_custom","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Meta_fb_app_id","_updatedAt":new Date(1591734395667),"group":"Meta","groupPermissionId":"change-setting-Meta","level":"settings","roles":[],"settingId":"Meta_fb_app_id","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Meta_google-site-verification","_updatedAt":new Date(1591734395670),"group":"Meta","groupPermissionId":"change-setting-Meta","level":"settings","roles":[],"settingId":"Meta_google-site-verification","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Meta_language","_updatedAt":new Date(1591734395664),"group":"Meta","groupPermissionId":"change-setting-Meta","level":"settings","roles":[],"settingId":"Meta_language","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Meta_msvalidate01","_updatedAt":new Date(1591734395673),"group":"Meta","groupPermissionId":"change-setting-Meta","level":"settings","roles":[],"settingId":"Meta_msvalidate01","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Meta_robots","_updatedAt":new Date(1591734395668),"group":"Meta","groupPermissionId":"change-setting-Meta","level":"settings","roles":[],"settingId":"Meta_robots","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Notifications_Max_Room_Members","_updatedAt":new Date(1591734395572),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"Notifications","sectionPermissionId":"change-setting-Notifications","settingId":"Notifications_Max_Room_Members","sorter":NumberInt(36)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-OAuth","_updatedAt":new Date(1591734395116),"level":"settings","roles":[],"settingId":"OAuth"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-OTR","_updatedAt":new Date(1591734396138),"level":"settings","roles":[],"settingId":"OTR"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-OTR_Enable","_updatedAt":new Date(1591734396140),"group":"OTR","groupPermissionId":"change-setting-OTR","level":"settings","roles":[],"settingId":"OTR_Enable","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Offline_DM_Email","_updatedAt":new Date(1591734395098),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Subject","sectionPermissionId":"change-setting-Subject","settingId":"Offline_DM_Email","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Offline_Mention_All_Email","_updatedAt":new Date(1591734395103),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Subject","sectionPermissionId":"change-setting-Subject","settingId":"Offline_Mention_All_Email","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Offline_Mention_Email","_updatedAt":new Date(1591734395100),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Subject","sectionPermissionId":"change-setting-Subject","settingId":"Offline_Mention_Email","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Offline_Message_Use_DeepLink","_updatedAt":new Date(1591734396881),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Offline_Message","sectionPermissionId":"change-setting-Offline_Message","settingId":"Offline_Message_Use_DeepLink","sorter":NumberInt(35)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Omnichannel","_updatedAt":new Date(1591734400301),"level":"settings","roles":[],"settingId":"Omnichannel"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Omnichannel_External_Frame_Enabled","_updatedAt":new Date(1591734396931),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"External Frame","sectionPermissionId":"change-setting-External Frame","settingId":"Omnichannel_External_Frame_Enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Omnichannel_External_Frame_Encryption_JWK","_updatedAt":new Date(1591734396976),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"External Frame","sectionPermissionId":"change-setting-External Frame","settingId":"Omnichannel_External_Frame_Encryption_JWK","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Omnichannel_External_Frame_GenerateKey","_updatedAt":new Date(1591734396978),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"External Frame","sectionPermissionId":"change-setting-External Frame","settingId":"Omnichannel_External_Frame_GenerateKey","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Omnichannel_External_Frame_URL","_updatedAt":new Date(1591734396991),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"External Frame","sectionPermissionId":"change-setting-External Frame","settingId":"Omnichannel_External_Frame_URL","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Organization_Email","_updatedAt":new Date(1591734395796),"group":"Setup_Wizard","groupPermissionId":"change-setting-Setup_Wizard","level":"settings","roles":[],"section":"Organization_Info","sectionPermissionId":"change-setting-Organization_Info","settingId":"Organization_Email","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Organization_Name","_updatedAt":new Date(1591734395777),"group":"Setup_Wizard","groupPermissionId":"change-setting-Setup_Wizard","level":"settings","roles":[],"section":"Organization_Info","sectionPermissionId":"change-setting-Organization_Info","settingId":"Organization_Name","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Organization_Type","_updatedAt":new Date(1591734395775),"group":"Setup_Wizard","groupPermissionId":"change-setting-Setup_Wizard","level":"settings","roles":[],"section":"Organization_Info","sectionPermissionId":"change-setting-Organization_Info","settingId":"Organization_Type","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Password_Changed_Email","_updatedAt":new Date(1591734395237),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Password_changed_section","sectionPermissionId":"change-setting-Password_changed_section","settingId":"Password_Changed_Email","sorter":NumberInt(43)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Password_Changed_Email_Subject","_updatedAt":new Date(1591734395235),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Password_changed_section","sectionPermissionId":"change-setting-Password_changed_section","settingId":"Password_Changed_Email_Subject","sorter":NumberInt(42)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-PiwikAdditionalTrackers","_updatedAt":new Date(1591734394981),"group":"Analytics","groupPermissionId":"change-setting-Analytics","level":"settings","roles":[],"section":"Piwik","sectionPermissionId":"change-setting-Piwik","settingId":"PiwikAdditionalTrackers","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-PiwikAnalytics_cookieDomain","_updatedAt":new Date(1591734394986),"group":"Analytics","groupPermissionId":"change-setting-Analytics","level":"settings","roles":[],"section":"Piwik","sectionPermissionId":"change-setting-Piwik","settingId":"PiwikAnalytics_cookieDomain","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-PiwikAnalytics_domains","_updatedAt":new Date(1591734394989),"group":"Analytics","groupPermissionId":"change-setting-Analytics","level":"settings","roles":[],"section":"Piwik","sectionPermissionId":"change-setting-Piwik","settingId":"PiwikAnalytics_domains","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-PiwikAnalytics_enabled","_updatedAt":new Date(1591734394972),"group":"Analytics","groupPermissionId":"change-setting-Analytics","level":"settings","roles":[],"section":"Piwik","sectionPermissionId":"change-setting-Piwik","settingId":"PiwikAnalytics_enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-PiwikAnalytics_prependDomain","_updatedAt":new Date(1591734394984),"group":"Analytics","groupPermissionId":"change-setting-Analytics","level":"settings","roles":[],"section":"Piwik","sectionPermissionId":"change-setting-Piwik","settingId":"PiwikAnalytics_prependDomain","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-PiwikAnalytics_siteId","_updatedAt":new Date(1591734394978),"group":"Analytics","groupPermissionId":"change-setting-Analytics","level":"settings","roles":[],"section":"Piwik","sectionPermissionId":"change-setting-Piwik","settingId":"PiwikAnalytics_siteId","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-PiwikAnalytics_url","_updatedAt":new Date(1591734394975),"group":"Analytics","groupPermissionId":"change-setting-Analytics","level":"settings","roles":[],"section":"Piwik","sectionPermissionId":"change-setting-Piwik","settingId":"PiwikAnalytics_url","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Prometheus_API_User_Agent","_updatedAt":new Date(1591734396897),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"section":"Prometheus","sectionPermissionId":"change-setting-Prometheus","settingId":"Prometheus_API_User_Agent","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Prometheus_Enabled","_updatedAt":new Date(1591734395769),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"section":"Prometheus","sectionPermissionId":"change-setting-Prometheus","settingId":"Prometheus_Enabled","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Prometheus_Garbage_Collector","_updatedAt":new Date(1591734396894),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"section":"Prometheus","sectionPermissionId":"change-setting-Prometheus","settingId":"Prometheus_Garbage_Collector","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Prometheus_Port","_updatedAt":new Date(1591734395771),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"section":"Prometheus","sectionPermissionId":"change-setting-Prometheus","settingId":"Prometheus_Port","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Prometheus_Reset_Interval","_updatedAt":new Date(1591734396892),"group":"Logs","groupPermissionId":"change-setting-Logs","level":"settings","roles":[],"section":"Prometheus","sectionPermissionId":"change-setting-Prometheus","settingId":"Prometheus_Reset_Interval","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push","_updatedAt":new Date(1591734395677),"level":"settings","roles":[],"settingId":"Push"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_apn_cert","_updatedAt":new Date(1591734395692),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"section":"Certificates_and_Keys","sectionPermissionId":"change-setting-Certificates_and_Keys","settingId":"Push_apn_cert","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_apn_dev_cert","_updatedAt":new Date(1591734395697),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"section":"Certificates_and_Keys","sectionPermissionId":"change-setting-Certificates_and_Keys","settingId":"Push_apn_dev_cert","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_apn_dev_key","_updatedAt":new Date(1591734395695),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"section":"Certificates_and_Keys","sectionPermissionId":"change-setting-Certificates_and_Keys","settingId":"Push_apn_dev_key","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_apn_dev_passphrase","_updatedAt":new Date(1591734395693),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"section":"Certificates_and_Keys","sectionPermissionId":"change-setting-Certificates_and_Keys","settingId":"Push_apn_dev_passphrase","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_apn_key","_updatedAt":new Date(1591734395690),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"section":"Certificates_and_Keys","sectionPermissionId":"change-setting-Certificates_and_Keys","settingId":"Push_apn_key","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_apn_passphrase","_updatedAt":new Date(1591734395688),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"section":"Certificates_and_Keys","sectionPermissionId":"change-setting-Certificates_and_Keys","settingId":"Push_apn_passphrase","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_enable","_updatedAt":new Date(1591734395679),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"settingId":"Push_enable","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_enable_gateway","_updatedAt":new Date(1591734395681),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"settingId":"Push_enable_gateway","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_gateway","_updatedAt":new Date(1591734395683),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"settingId":"Push_gateway","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_gcm_api_key","_updatedAt":new Date(1591734395698),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"section":"Certificates_and_Keys","sectionPermissionId":"change-setting-Certificates_and_Keys","settingId":"Push_gcm_api_key","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_gcm_project_number","_updatedAt":new Date(1591734395700),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"section":"Certificates_and_Keys","sectionPermissionId":"change-setting-Certificates_and_Keys","settingId":"Push_gcm_project_number","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_production","_updatedAt":new Date(1591734395685),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"settingId":"Push_production","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_show_message","_updatedAt":new Date(1591734395704),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"section":"Privacy","sectionPermissionId":"change-setting-Privacy","settingId":"Push_show_message","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_show_username_room","_updatedAt":new Date(1591734395702),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"section":"Privacy","sectionPermissionId":"change-setting-Privacy","settingId":"Push_show_username_room","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Push_test_push","_updatedAt":new Date(1591734395686),"group":"Push","groupPermissionId":"change-setting-Push","level":"settings","roles":[],"settingId":"Push_test_push","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Rate Limiter","_updatedAt":new Date(1591734395800),"level":"settings","roles":[],"settingId":"Rate Limiter"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Register_Server","_updatedAt":new Date(1591734395793),"group":"Setup_Wizard","groupPermissionId":"change-setting-Setup_Wizard","level":"settings","roles":[],"section":"Organization_Info","sectionPermissionId":"change-setting-Organization_Info","settingId":"Register_Server","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Restart","_updatedAt":new Date(1591734395561),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Restart","sorter":NumberInt(30)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-RetentionPolicy","_updatedAt":new Date(1591734396141),"level":"settings","roles":[],"settingId":"RetentionPolicy"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-RetentionPolicy_AppliesToChannels","_updatedAt":new Date(1591734396790),"group":"RetentionPolicy","groupPermissionId":"change-setting-RetentionPolicy","level":"settings","roles":[],"section":"Global Policy","sectionPermissionId":"change-setting-Global Policy","settingId":"RetentionPolicy_AppliesToChannels","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-RetentionPolicy_AppliesToDMs","_updatedAt":new Date(1591734396151),"group":"RetentionPolicy","groupPermissionId":"change-setting-RetentionPolicy","level":"settings","roles":[],"section":"Global Policy","sectionPermissionId":"change-setting-Global Policy","settingId":"RetentionPolicy_AppliesToDMs","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-RetentionPolicy_AppliesToGroups","_updatedAt":new Date(1591734396147),"group":"RetentionPolicy","groupPermissionId":"change-setting-RetentionPolicy","level":"settings","roles":[],"section":"Global Policy","sectionPermissionId":"change-setting-Global Policy","settingId":"RetentionPolicy_AppliesToGroups","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-RetentionPolicy_DoNotExcludeDiscussion","_updatedAt":new Date(1591734400291),"group":"RetentionPolicy","groupPermissionId":"change-setting-RetentionPolicy","level":"settings","roles":[],"section":"Global Policy","sectionPermissionId":"change-setting-Global Policy","settingId":"RetentionPolicy_DoNotExcludeDiscussion","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-RetentionPolicy_Enabled","_updatedAt":new Date(1591734396143),"group":"RetentionPolicy","groupPermissionId":"change-setting-RetentionPolicy","level":"settings","roles":[],"settingId":"RetentionPolicy_Enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-RetentionPolicy_ExcludePinned","_updatedAt":new Date(1591734396161),"group":"RetentionPolicy","groupPermissionId":"change-setting-RetentionPolicy","level":"settings","roles":[],"section":"Global Policy","sectionPermissionId":"change-setting-Global Policy","settingId":"RetentionPolicy_ExcludePinned","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-RetentionPolicy_FilesOnly","_updatedAt":new Date(1591734396166),"group":"RetentionPolicy","groupPermissionId":"change-setting-RetentionPolicy","level":"settings","roles":[],"section":"Global Policy","sectionPermissionId":"change-setting-Global Policy","settingId":"RetentionPolicy_FilesOnly","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-RetentionPolicy_MaxAge_Channels","_updatedAt":new Date(1591734396146),"group":"RetentionPolicy","groupPermissionId":"change-setting-RetentionPolicy","level":"settings","roles":[],"section":"Global Policy","sectionPermissionId":"change-setting-Global Policy","settingId":"RetentionPolicy_MaxAge_Channels","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-RetentionPolicy_MaxAge_DMs","_updatedAt":new Date(1591734396152),"group":"RetentionPolicy","groupPermissionId":"change-setting-RetentionPolicy","level":"settings","roles":[],"section":"Global Policy","sectionPermissionId":"change-setting-Global Policy","settingId":"RetentionPolicy_MaxAge_DMs","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-RetentionPolicy_MaxAge_Groups","_updatedAt":new Date(1591734396149),"group":"RetentionPolicy","groupPermissionId":"change-setting-RetentionPolicy","level":"settings","roles":[],"section":"Global Policy","sectionPermissionId":"change-setting-Global Policy","settingId":"RetentionPolicy_MaxAge_Groups","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-RetentionPolicy_Precision","_updatedAt":new Date(1591734396144),"group":"RetentionPolicy","groupPermissionId":"change-setting-RetentionPolicy","level":"settings","roles":[],"settingId":"RetentionPolicy_Precision","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Robot_Instructions_File_Content","_updatedAt":new Date(1591734395565),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Robot_Instructions_File_Content","sorter":NumberInt(32)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML","_updatedAt":new Date(1591734396266),"level":"settings","roles":[],"settingId":"SAML"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default","_updatedAt":new Date(1591734399606),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_allowed_clock_drift","_updatedAt":new Date(1591734399904),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_allowed_clock_drift","sorter":NumberInt(25)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_authn_context_comparison","_updatedAt":new Date(1591734399846),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_authn_context_comparison","sorter":NumberInt(21)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_button_color","_updatedAt":new Date(1591734399711),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_button_color","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_button_label_color","_updatedAt":new Date(1591734399705),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_button_label_color","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_button_label_text","_updatedAt":new Date(1591734399696),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_button_label_text","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_cert","_updatedAt":new Date(1591734399666),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_cert","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_custom_authn_context","_updatedAt":new Date(1591734399815),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_custom_authn_context","sorter":NumberInt(19)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_debug","_updatedAt":new Date(1591734399743),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_debug","sorter":NumberInt(15)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_default_user_role","_updatedAt":new Date(1591734399864),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_default_user_role","sorter":NumberInt(22)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_entry_point","_updatedAt":new Date(1591734399641),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_entry_point","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_generate_username","_updatedAt":new Date(1591734399719),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_generate_username","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_idp_slo_redirect_url","_updatedAt":new Date(1591734399649),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_idp_slo_redirect_url","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_immutable_property","_updatedAt":new Date(1591734399735),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_immutable_property","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_issuer","_updatedAt":new Date(1591734399658),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_issuer","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_logout_behaviour","_updatedAt":new Date(1591734399803),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_logout_behaviour","sorter":NumberInt(18)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_mail_overwrite","_updatedAt":new Date(1591734399788),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_mail_overwrite","sorter":NumberInt(17)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_name_overwrite","_updatedAt":new Date(1591734399768),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_name_overwrite","sorter":NumberInt(16)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_private_key","_updatedAt":new Date(1591734399690),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_private_key","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_provider","_updatedAt":new Date(1591734399628),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_provider","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_public_cert","_updatedAt":new Date(1591734399674),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_public_cert","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_role_attribute_name","_updatedAt":new Date(1591734399876),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_role_attribute_name","sorter":NumberInt(23)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_role_attribute_sync","_updatedAt":new Date(1591734399891),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_role_attribute_sync","sorter":NumberInt(24)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_signature_validation_type","_updatedAt":new Date(1591734399681),"level":"settings","roles":[],"settingId":"SAML_Custom_Default_signature_validation_type","group":"SAML","groupPermissionId":"change-setting-SAML","section":"Default","sectionPermissionId":"change-setting-Default","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_user_data_fieldmap","_updatedAt":new Date(1591734399830),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_user_data_fieldmap","sorter":NumberInt(20)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SAML_Custom_Default_username_normalize","_updatedAt":new Date(1591734399727),"group":"SAML","groupPermissionId":"change-setting-SAML","level":"settings","roles":[],"section":"Default","sectionPermissionId":"change-setting-Default","settingId":"SAML_Custom_Default_username_normalize","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS","_updatedAt":new Date(1591734397027),"level":"settings","roles":[],"settingId":"SMS"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Default_Omnichannel_Department","_updatedAt":new Date(1591734397072),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"settingId":"SMS_Default_Omnichannel_Department","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Enabled","_updatedAt":new Date(1591734397040),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"settingId":"SMS_Enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Mobex_from_number","_updatedAt":new Date(1591734397322),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Mobex","sectionPermissionId":"change-setting-Mobex","settingId":"SMS_Mobex_from_number","sorter":NumberInt(15)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Mobex_from_numbers_list","_updatedAt":new Date(1591734397399),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Mobex","sectionPermissionId":"change-setting-Mobex","settingId":"SMS_Mobex_from_numbers_list","sorter":NumberInt(16)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Mobex_gateway_address","_updatedAt":new Date(1591734397222),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Mobex","sectionPermissionId":"change-setting-Mobex","settingId":"SMS_Mobex_gateway_address","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Mobex_password","_updatedAt":new Date(1591734397277),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Mobex","sectionPermissionId":"change-setting-Mobex","settingId":"SMS_Mobex_password","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Mobex_restful_address","_updatedAt":new Date(1591734397241),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Mobex","sectionPermissionId":"change-setting-Mobex","settingId":"SMS_Mobex_restful_address","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Mobex_username","_updatedAt":new Date(1591734397254),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Mobex","sectionPermissionId":"change-setting-Mobex","settingId":"SMS_Mobex_username","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Service","_updatedAt":new Date(1591734397054),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"settingId":"SMS_Service","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Twilio_Account_SID","_updatedAt":new Date(1591734397084),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Twilio","sectionPermissionId":"change-setting-Twilio","settingId":"SMS_Twilio_Account_SID","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Twilio_FileUpload_Enabled","_updatedAt":new Date(1591734397109),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Twilio","sectionPermissionId":"change-setting-Twilio","settingId":"SMS_Twilio_FileUpload_Enabled","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Twilio_FileUpload_MediaTypeWhiteList","_updatedAt":new Date(1591734397121),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Twilio","sectionPermissionId":"change-setting-Twilio","settingId":"SMS_Twilio_FileUpload_MediaTypeWhiteList","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Twilio_authToken","_updatedAt":new Date(1591734397098),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Twilio","sectionPermissionId":"change-setting-Twilio","settingId":"SMS_Twilio_authToken","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Voxtelesys_FileUpload_Enabled","_updatedAt":new Date(1591734397189),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Voxtelesys","sectionPermissionId":"change-setting-Voxtelesys","settingId":"SMS_Voxtelesys_FileUpload_Enabled","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Voxtelesys_FileUpload_MediaTypeWhiteList","_updatedAt":new Date(1591734397204),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Voxtelesys","sectionPermissionId":"change-setting-Voxtelesys","settingId":"SMS_Voxtelesys_FileUpload_MediaTypeWhiteList","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Voxtelesys_URL","_updatedAt":new Date(1591734397172),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Voxtelesys","sectionPermissionId":"change-setting-Voxtelesys","settingId":"SMS_Voxtelesys_URL","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMS_Voxtelesys_authToken","_updatedAt":new Date(1591734397156),"group":"SMS","groupPermissionId":"change-setting-SMS","level":"settings","roles":[],"section":"Voxtelesys","sectionPermissionId":"change-setting-Voxtelesys","settingId":"SMS_Voxtelesys_authToken","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMTP_Host","_updatedAt":new Date(1591734395172),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"SMTP","sectionPermissionId":"change-setting-SMTP","settingId":"SMTP_Host","sorter":NumberInt(21)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMTP_IgnoreTLS","_updatedAt":new Date(1591734395177),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"SMTP","sectionPermissionId":"change-setting-SMTP","settingId":"SMTP_IgnoreTLS","sorter":NumberInt(23)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMTP_Password","_updatedAt":new Date(1591734395187),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"SMTP","sectionPermissionId":"change-setting-SMTP","settingId":"SMTP_Password","sorter":NumberInt(26)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMTP_Pool","_updatedAt":new Date(1591734395181),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"SMTP","sectionPermissionId":"change-setting-SMTP","settingId":"SMTP_Pool","sorter":NumberInt(24)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMTP_Port","_updatedAt":new Date(1591734395175),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"SMTP","sectionPermissionId":"change-setting-SMTP","settingId":"SMTP_Port","sorter":NumberInt(22)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMTP_Protocol","_updatedAt":new Date(1591734395169),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"SMTP","sectionPermissionId":"change-setting-SMTP","settingId":"SMTP_Protocol","sorter":NumberInt(20)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMTP_Test_Button","_updatedAt":new Date(1591734395193),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"SMTP","sectionPermissionId":"change-setting-SMTP","settingId":"SMTP_Test_Button","sorter":NumberInt(28)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SMTP_Username","_updatedAt":new Date(1591734395184),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"SMTP","sectionPermissionId":"change-setting-SMTP","settingId":"SMTP_Username","sorter":NumberInt(25)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search","_updatedAt":new Date(1591734399997),"level":"settings","roles":[],"settingId":"Search"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.Provider","_updatedAt":new Date(1591734400025),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"settingId":"Search.Provider","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.chatpalProvider.API_Key","_updatedAt":new Date(1591734400084),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"section":"Chatpal Provider","sectionPermissionId":"change-setting-Chatpal Provider","settingId":"Search.chatpalProvider.API_Key","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.chatpalProvider.Backend","_updatedAt":new Date(1591734400070),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"section":"Chatpal Provider","sectionPermissionId":"change-setting-Chatpal Provider","settingId":"Search.chatpalProvider.Backend","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.chatpalProvider.Base_URL","_updatedAt":new Date(1591734400100),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"section":"Chatpal Provider","sectionPermissionId":"change-setting-Chatpal Provider","settingId":"Search.chatpalProvider.Base_URL","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.chatpalProvider.BatchSize","_updatedAt":new Date(1591734400200),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"section":"Chatpal Provider","sectionPermissionId":"change-setting-Chatpal Provider","settingId":"Search.chatpalProvider.BatchSize","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.chatpalProvider.DefaultResultType","_updatedAt":new Date(1591734400151),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"section":"Chatpal Provider","sectionPermissionId":"change-setting-Chatpal Provider","settingId":"Search.chatpalProvider.DefaultResultType","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.chatpalProvider.HTTP_Headers","_updatedAt":new Date(1591734400116),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"section":"Chatpal Provider","sectionPermissionId":"change-setting-Chatpal Provider","settingId":"Search.chatpalProvider.HTTP_Headers","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.chatpalProvider.Main_Language","_updatedAt":new Date(1591734400133),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"section":"Chatpal Provider","sectionPermissionId":"change-setting-Chatpal Provider","settingId":"Search.chatpalProvider.Main_Language","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.chatpalProvider.PageSize","_updatedAt":new Date(1591734400168),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"section":"Chatpal Provider","sectionPermissionId":"change-setting-Chatpal Provider","settingId":"Search.chatpalProvider.PageSize","sorter":NumberInt(9)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.chatpalProvider.SuggestionEnabled","_updatedAt":new Date(1591734400187),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"section":"Chatpal Provider","sectionPermissionId":"change-setting-Chatpal Provider","settingId":"Search.chatpalProvider.SuggestionEnabled","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.chatpalProvider.TimeoutSize","_updatedAt":new Date(1591734400220),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"section":"Chatpal Provider","sectionPermissionId":"change-setting-Chatpal Provider","settingId":"Search.chatpalProvider.TimeoutSize","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.chatpalProvider.WindowSize","_updatedAt":new Date(1591734400235),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"section":"Chatpal Provider","sectionPermissionId":"change-setting-Chatpal Provider","settingId":"Search.chatpalProvider.WindowSize","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.defaultProvider.GlobalSearchEnabled","_updatedAt":new Date(1591734400042),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"section":"Default provider","sectionPermissionId":"change-setting-Default provider","settingId":"Search.defaultProvider.GlobalSearchEnabled","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Search.defaultProvider.PageSize","_updatedAt":new Date(1591734400056),"group":"Search","groupPermissionId":"change-setting-Search","level":"settings","roles":[],"section":"Default provider","sectionPermissionId":"change-setting-Default provider","settingId":"Search.defaultProvider.PageSize","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Send_visitor_navigation_history_livechat_webhook_request","_updatedAt":new Date(1591734400815),"group":"Omnichannel","groupPermissionId":"change-setting-Omnichannel","level":"settings","roles":[],"section":"CRM_Integration","sectionPermissionId":"change-setting-CRM_Integration","settingId":"Send_visitor_navigation_history_livechat_webhook_request","sorter":NumberInt(33)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Server_Type","_updatedAt":new Date(1591734395789),"group":"Setup_Wizard","groupPermissionId":"change-setting-Setup_Wizard","level":"settings","roles":[],"section":"Organization_Info","sectionPermissionId":"change-setting-Organization_Info","settingId":"Server_Type","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Setup_Wizard","_updatedAt":new Date(1591734395773),"level":"settings","roles":[],"settingId":"Setup_Wizard"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Show_Setup_Wizard","_updatedAt":new Date(1591734395511),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Show_Setup_Wizard","sorter":NumberInt(10)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Site_Name","_updatedAt":new Date(1591734395515),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Site_Name","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Site_Url","_updatedAt":new Date(1591734395513),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Site_Url","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Size","_updatedAt":new Date(1591734395782),"group":"Setup_Wizard","groupPermissionId":"change-setting-Setup_Wizard","level":"settings","roles":[],"section":"Organization_Info","sectionPermissionId":"change-setting-Organization_Info","settingId":"Size","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SlackBridge","_updatedAt":new Date(1591734399360),"level":"settings","roles":[],"settingId":"SlackBridge"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SlackBridge_APIToken","_updatedAt":new Date(1591734399376),"group":"SlackBridge","groupPermissionId":"change-setting-SlackBridge","level":"settings","roles":[],"settingId":"SlackBridge_APIToken","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SlackBridge_AliasFormat","_updatedAt":new Date(1591734399417),"group":"SlackBridge","groupPermissionId":"change-setting-SlackBridge","level":"settings","roles":[],"settingId":"SlackBridge_AliasFormat","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SlackBridge_Enabled","_updatedAt":new Date(1591734399367),"group":"SlackBridge","groupPermissionId":"change-setting-SlackBridge","level":"settings","roles":[],"settingId":"SlackBridge_Enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SlackBridge_ExcludeBotnames","_updatedAt":new Date(1591734399425),"group":"SlackBridge","groupPermissionId":"change-setting-SlackBridge","level":"settings","roles":[],"settingId":"SlackBridge_ExcludeBotnames","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SlackBridge_FileUpload_Enabled","_updatedAt":new Date(1591734399389),"group":"SlackBridge","groupPermissionId":"change-setting-SlackBridge","level":"settings","roles":[],"settingId":"SlackBridge_FileUpload_Enabled","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SlackBridge_Out_All","_updatedAt":new Date(1591734399402),"group":"SlackBridge","groupPermissionId":"change-setting-SlackBridge","level":"settings","roles":[],"settingId":"SlackBridge_Out_All","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SlackBridge_Out_Channels","_updatedAt":new Date(1591734399409),"group":"SlackBridge","groupPermissionId":"change-setting-SlackBridge","level":"settings","roles":[],"settingId":"SlackBridge_Out_Channels","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SlackBridge_Out_Enabled","_updatedAt":new Date(1591734399395),"group":"SlackBridge","groupPermissionId":"change-setting-SlackBridge","level":"settings","roles":[],"settingId":"SlackBridge_Out_Enabled","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-SlackBridge_Reactions_Enabled","_updatedAt":new Date(1591734399433),"group":"SlackBridge","groupPermissionId":"change-setting-SlackBridge","level":"settings","roles":[],"settingId":"SlackBridge_Reactions_Enabled","sorter":NumberInt(8)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Smarsh","_updatedAt":new Date(1591734396169),"level":"settings","roles":[],"settingId":"Smarsh"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Smarsh_Email","_updatedAt":new Date(1591734396173),"group":"Smarsh","groupPermissionId":"change-setting-Smarsh","level":"settings","roles":[],"settingId":"Smarsh_Email","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Smarsh_Enabled","_updatedAt":new Date(1591734396170),"group":"Smarsh","groupPermissionId":"change-setting-Smarsh","level":"settings","roles":[],"settingId":"Smarsh_Enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Smarsh_Interval","_updatedAt":new Date(1591734396180),"group":"Smarsh","groupPermissionId":"change-setting-Smarsh","level":"settings","roles":[],"settingId":"Smarsh_Interval","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Smarsh_MissingEmail_Email","_updatedAt":new Date(1591734396176),"group":"Smarsh","groupPermissionId":"change-setting-Smarsh","level":"settings","roles":[],"settingId":"Smarsh_MissingEmail_Email","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Smarsh_Timezone","_updatedAt":new Date(1591734396177),"group":"Smarsh","groupPermissionId":"change-setting-Smarsh","level":"settings","roles":[],"settingId":"Smarsh_Timezone","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Statistics_reporting","_updatedAt":new Date(1591734395570),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"Reporting","sectionPermissionId":"change-setting-Reporting","settingId":"Statistics_reporting","sorter":NumberInt(35)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Store_Last_Message","_updatedAt":new Date(1591734395563),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Store_Last_Message","sorter":NumberInt(31)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Stream_Cast_Address","_updatedAt":new Date(1591734395586),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"Stream_Cast","sectionPermissionId":"change-setting-Stream_Cast","settingId":"Stream_Cast_Address","sorter":NumberInt(43)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Support_Cordova_App","_updatedAt":new Date(1591734395553),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Support_Cordova_App","sorter":NumberInt(27)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Threads","_updatedAt":new Date(1591734399441),"level":"settings","roles":[],"settingId":"Threads"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Threads_enabled","_updatedAt":new Date(1591734399449),"group":"Threads","groupPermissionId":"change-setting-Threads","level":"settings","roles":[],"settingId":"Threads_enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Troubleshoot","_updatedAt":new Date(1591734396899),"level":"settings","roles":[],"settingId":"Troubleshoot"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Troubleshoot_Disable_Data_Exporter_Processor","_updatedAt":new Date(1591734396916),"group":"Troubleshoot","groupPermissionId":"change-setting-Troubleshoot","level":"settings","roles":[],"settingId":"Troubleshoot_Disable_Data_Exporter_Processor","sorter":NumberInt(6)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Troubleshoot_Disable_Instance_Broadcast","_updatedAt":new Date(1591734396906),"group":"Troubleshoot","groupPermissionId":"change-setting-Troubleshoot","level":"settings","roles":[],"settingId":"Troubleshoot_Disable_Instance_Broadcast","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Troubleshoot_Disable_Livechat_Activity_Monitor","_updatedAt":new Date(1591734396911),"group":"Troubleshoot","groupPermissionId":"change-setting-Troubleshoot","level":"settings","roles":[],"settingId":"Troubleshoot_Disable_Livechat_Activity_Monitor","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Troubleshoot_Disable_Notifications","_updatedAt":new Date(1591734396902),"group":"Troubleshoot","groupPermissionId":"change-setting-Troubleshoot","level":"settings","roles":[],"settingId":"Troubleshoot_Disable_Notifications","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Troubleshoot_Disable_Presence_Broadcast","_updatedAt":new Date(1591734396904),"group":"Troubleshoot","groupPermissionId":"change-setting-Troubleshoot","level":"settings","roles":[],"settingId":"Troubleshoot_Disable_Presence_Broadcast","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Troubleshoot_Disable_Sessions_Monitor","_updatedAt":new Date(1591734396909),"group":"Troubleshoot","groupPermissionId":"change-setting-Troubleshoot","level":"settings","roles":[],"settingId":"Troubleshoot_Disable_Sessions_Monitor","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Troubleshoot_Disable_Statistics_Generator","_updatedAt":new Date(1591734396913),"group":"Troubleshoot","groupPermissionId":"change-setting-Troubleshoot","level":"settings","roles":[],"settingId":"Troubleshoot_Disable_Statistics_Generator","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Troubleshoot_Disable_Workspace_Sync","_updatedAt":new Date(1591734396919),"group":"Troubleshoot","groupPermissionId":"change-setting-Troubleshoot","level":"settings","roles":[],"settingId":"Troubleshoot_Disable_Workspace_Sync","sorter":NumberInt(7)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UI_Allow_room_names_with_special_chars","_updatedAt":new Date(1591734395742),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"User_Interface","sectionPermissionId":"change-setting-User_Interface","settingId":"UI_Allow_room_names_with_special_chars","sorter":NumberInt(17)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UI_Click_Direct_Message","_updatedAt":new Date(1591734395738),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"User_Interface","sectionPermissionId":"change-setting-User_Interface","settingId":"UI_Click_Direct_Message","sorter":NumberInt(15)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UI_DisplayRoles","_updatedAt":new Date(1591734395731),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"User_Interface","sectionPermissionId":"change-setting-User_Interface","settingId":"UI_DisplayRoles","sorter":NumberInt(11)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UI_Group_Channels_By_Type","_updatedAt":new Date(1591734395733),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"User_Interface","sectionPermissionId":"change-setting-User_Interface","settingId":"UI_Group_Channels_By_Type","sorter":NumberInt(12)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UI_Show_top_navbar_embedded_layout","_updatedAt":new Date(1591734395744),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"User_Interface","sectionPermissionId":"change-setting-User_Interface","settingId":"UI_Show_top_navbar_embedded_layout","sorter":NumberInt(18)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UI_Unread_Counter_Style","_updatedAt":new Date(1591734395740),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"User_Interface","sectionPermissionId":"change-setting-User_Interface","settingId":"UI_Unread_Counter_Style","sorter":NumberInt(16)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UI_Use_Name_Avatar","_updatedAt":new Date(1591734395735),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"User_Interface","sectionPermissionId":"change-setting-User_Interface","settingId":"UI_Use_Name_Avatar","sorter":NumberInt(13)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UI_Use_Real_Name","_updatedAt":new Date(1591734395736),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"User_Interface","sectionPermissionId":"change-setting-User_Interface","settingId":"UI_Use_Real_Name","sorter":NumberInt(14)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UTF8_Names_Slugify","_updatedAt":new Date(1591734395568),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"UTF8","sectionPermissionId":"change-setting-UTF8","settingId":"UTF8_Names_Slugify","sorter":NumberInt(34)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UTF8_Names_Validation","_updatedAt":new Date(1591734395566),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"UTF8","sectionPermissionId":"change-setting-UTF8","settingId":"UTF8_Names_Validation","sorter":NumberInt(33)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Unread_Count","_updatedAt":new Date(1591734395537),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Unread_Count","sorter":NumberInt(20)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Unread_Count_DM","_updatedAt":new Date(1591734395540),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"settingId":"Unread_Count_DM","sorter":NumberInt(21)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Update_LatestAvailableVersion","_updatedAt":new Date(1591734396269),"group":"General","groupPermissionId":"change-setting-General","level":"settings","roles":[],"section":"Update","sectionPermissionId":"change-setting-Update","settingId":"Update_LatestAvailableVersion","sorter":NumberInt(47)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UserDataDownload","_updatedAt":new Date(1591734396228),"level":"settings","roles":[],"settingId":"UserDataDownload"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UserData_EnableDownload","_updatedAt":new Date(1591734396232),"group":"UserDataDownload","groupPermissionId":"change-setting-UserDataDownload","level":"settings","roles":[],"settingId":"UserData_EnableDownload","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UserData_FileSystemPath","_updatedAt":new Date(1591734396234),"group":"UserDataDownload","groupPermissionId":"change-setting-UserDataDownload","level":"settings","roles":[],"settingId":"UserData_FileSystemPath","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UserData_FileSystemZipPath","_updatedAt":new Date(1591734396235),"group":"UserDataDownload","groupPermissionId":"change-setting-UserDataDownload","level":"settings","roles":[],"settingId":"UserData_FileSystemZipPath","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UserData_MessageLimitPerRequest","_updatedAt":new Date(1591734396239),"group":"UserDataDownload","groupPermissionId":"change-setting-UserDataDownload","level":"settings","roles":[],"settingId":"UserData_MessageLimitPerRequest","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-UserData_ProcessingFrequency","_updatedAt":new Date(1591734396237),"group":"UserDataDownload","groupPermissionId":"change-setting-UserDataDownload","level":"settings","roles":[],"settingId":"UserData_ProcessingFrequency","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Verification_Email","_updatedAt":new Date(1591734395213),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Verification","sectionPermissionId":"change-setting-Verification","settingId":"Verification_Email","sorter":NumberInt(34)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Verification_Email_Subject","_updatedAt":new Date(1591734395211),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Verification","sectionPermissionId":"change-setting-Verification","settingId":"Verification_Email_Subject","sorter":NumberInt(33)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Video Conference","_updatedAt":new Date(1591734399456),"level":"settings","roles":[],"settingId":"Video Conference"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-WebRTC","_updatedAt":new Date(1591734396243),"level":"settings","roles":[],"settingId":"WebRTC"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-WebRTC_Enable_Channel","_updatedAt":new Date(1591734396245),"group":"WebRTC","groupPermissionId":"change-setting-WebRTC","level":"settings","roles":[],"settingId":"WebRTC_Enable_Channel","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-WebRTC_Enable_Direct","_updatedAt":new Date(1591734396248),"group":"WebRTC","groupPermissionId":"change-setting-WebRTC","level":"settings","roles":[],"settingId":"WebRTC_Enable_Direct","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-WebRTC_Enable_Private","_updatedAt":new Date(1591734396246),"group":"WebRTC","groupPermissionId":"change-setting-WebRTC","level":"settings","roles":[],"settingId":"WebRTC_Enable_Private","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-WebRTC_Servers","_updatedAt":new Date(1591734396249),"group":"WebRTC","groupPermissionId":"change-setting-WebRTC","level":"settings","roles":[],"settingId":"WebRTC_Servers","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Webdav Integration","_updatedAt":new Date(1591734396240),"level":"settings","roles":[],"settingId":"Webdav Integration"});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Webdav_Integration_Enabled","_updatedAt":new Date(1591734396242),"group":"Webdav Integration","groupPermissionId":"change-setting-Webdav Integration","level":"settings","roles":[],"settingId":"Webdav_Integration_Enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-Website","_updatedAt":new Date(1591734395786),"group":"Setup_Wizard","groupPermissionId":"change-setting-Setup_Wizard","level":"settings","roles":[],"section":"Organization_Info","sectionPermissionId":"change-setting-Organization_Info","settingId":"Website","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-bigbluebutton_Enabled","_updatedAt":new Date(1591734399463),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"BigBlueButton","sectionPermissionId":"change-setting-BigBlueButton","settingId":"bigbluebutton_Enabled","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-bigbluebutton_enable_c","_updatedAt":new Date(1591734399504),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"BigBlueButton","sectionPermissionId":"change-setting-BigBlueButton","settingId":"bigbluebutton_enable_c","sorter":NumberInt(5)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-bigbluebutton_enable_d","_updatedAt":new Date(1591734399491),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"BigBlueButton","sectionPermissionId":"change-setting-BigBlueButton","settingId":"bigbluebutton_enable_d","sorter":NumberInt(3)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-bigbluebutton_enable_p","_updatedAt":new Date(1591734399497),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"BigBlueButton","sectionPermissionId":"change-setting-BigBlueButton","settingId":"bigbluebutton_enable_p","sorter":NumberInt(4)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-bigbluebutton_server","_updatedAt":new Date(1591734399471),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"BigBlueButton","sectionPermissionId":"change-setting-BigBlueButton","settingId":"bigbluebutton_server","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-bigbluebutton_sharedSecret","_updatedAt":new Date(1591734399484),"group":"Video Conference","groupPermissionId":"change-setting-Video Conference","level":"settings","roles":[],"section":"BigBlueButton","sectionPermissionId":"change-setting-BigBlueButton","settingId":"bigbluebutton_sharedSecret","sorter":NumberInt(2)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-css","_updatedAt":new Date(1591734396792),"level":"settings","roles":[],"settingId":"css","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-email_plain_text_only","_updatedAt":new Date(1591734395092),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Style","sectionPermissionId":"change-setting-Style","settingId":"email_plain_text_only","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-email_style","_updatedAt":new Date(1591734395095),"group":"Email","groupPermissionId":"change-setting-Email","level":"settings","roles":[],"section":"Style","sectionPermissionId":"change-setting-Style","settingId":"email_style","sorter":NumberInt(1)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-attention-color","_updatedAt":new Date(1591734396833),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors","sectionPermissionId":"change-setting-Old Colors","settingId":"theme-color-attention-color","sorter":NumberInt(54)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-component-color","_updatedAt":new Date(1591734396828),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors","sectionPermissionId":"change-setting-Old Colors","settingId":"theme-color-component-color","sorter":NumberInt(49)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-content-background-color","_updatedAt":new Date(1591734396813),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors","sectionPermissionId":"change-setting-Old Colors","settingId":"theme-color-content-background-color","sorter":NumberInt(42)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-custom-scrollbar-color","_updatedAt":new Date(1591734396220),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors (minor)","sectionPermissionId":"change-setting-Old Colors (minor)","settingId":"theme-color-custom-scrollbar-color","sorter":NumberInt(59)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-error-color","_updatedAt":new Date(1591734396984),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors","sectionPermissionId":"change-setting-Old Colors","settingId":"theme-color-error-color","sorter":NumberInt(52)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-info-font-color","_updatedAt":new Date(1591734396217),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors (minor)","sectionPermissionId":"change-setting-Old Colors (minor)","settingId":"theme-color-info-font-color","sorter":NumberInt(58)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-link-font-color","_updatedAt":new Date(1591734396215),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors (minor)","sectionPermissionId":"change-setting-Old Colors (minor)","settingId":"theme-color-link-font-color","sorter":NumberInt(57)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-pending-color","_updatedAt":new Date(1591734396982),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors","sectionPermissionId":"change-setting-Old Colors","settingId":"theme-color-pending-color","sorter":NumberInt(51)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-primary-action-color","_updatedAt":new Date(1591734396820),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors","sectionPermissionId":"change-setting-Old Colors","settingId":"theme-color-primary-action-color","sorter":NumberInt(45)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-primary-background-color","_updatedAt":new Date(1591734396815),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors","sectionPermissionId":"change-setting-Old Colors","settingId":"theme-color-primary-background-color","sorter":NumberInt(43)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-primary-font-color","_updatedAt":new Date(1591734396818),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors","sectionPermissionId":"change-setting-Old Colors","settingId":"theme-color-primary-font-color","sorter":NumberInt(44)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-alert","_updatedAt":new Date(1591734396798),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-alert","sorter":NumberInt(21)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-alert-light","_updatedAt":new Date(1591734396182),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-alert-light","sorter":NumberInt(22)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-alert-message-primary","_updatedAt":new Date(1591734396186),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-alert-message-primary","sorter":NumberInt(27)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-alert-message-primary-background","_updatedAt":new Date(1591734396189),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-alert-message-primary-background","sorter":NumberInt(28)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-alert-message-secondary","_updatedAt":new Date(1591734396191),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-alert-message-secondary","sorter":NumberInt(29)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-alert-message-secondary-background","_updatedAt":new Date(1591734396194),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-alert-message-secondary-background","sorter":NumberInt(30)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-alert-message-warning","_updatedAt":new Date(1591734396196),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-alert-message-warning","sorter":NumberInt(31)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-alert-message-warning-background","_updatedAt":new Date(1591734396198),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-alert-message-warning-background","sorter":NumberInt(32)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-button-primary","_updatedAt":new Date(1591734396804),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-button-primary","sorter":NumberInt(25)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-button-primary-light","_updatedAt":new Date(1591734396184),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-button-primary-light","sorter":NumberInt(26)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-content","_updatedAt":new Date(1591734396811),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-content","sorter":NumberInt(40)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-error","_updatedAt":new Date(1591734396794),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-error","sorter":NumberInt(19)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-error-light","_updatedAt":new Date(1591734396796),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-error-light","sorter":NumberInt(20)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-link-active","_updatedAt":new Date(1591734396209),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-link-active","sorter":NumberInt(41)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-primary","_updatedAt":new Date(1591734396806),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-primary","sorter":NumberInt(33)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-primary-background","_updatedAt":new Date(1591734396923),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-primary-background","sorter":NumberInt(34)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-primary-dark","_updatedAt":new Date(1591734396203),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-primary-dark","sorter":NumberInt(36)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-primary-darkest","_updatedAt":new Date(1591734396201),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-primary-darkest","sorter":NumberInt(35)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-primary-light","_updatedAt":new Date(1591734396809),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-primary-light","sorter":NumberInt(37)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-primary-light-medium","_updatedAt":new Date(1591734396205),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-primary-light-medium","sorter":NumberInt(38)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-primary-lightest","_updatedAt":new Date(1591734396207),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-primary-lightest","sorter":NumberInt(39)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-success","_updatedAt":new Date(1591734396800),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-success","sorter":NumberInt(23)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-rc-color-success-light","_updatedAt":new Date(1591734396802),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Colors","sectionPermissionId":"change-setting-Colors","settingId":"theme-color-rc-color-success-light","sorter":NumberInt(24)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-secondary-action-color","_updatedAt":new Date(1591734396826),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors","sectionPermissionId":"change-setting-Old Colors","settingId":"theme-color-secondary-action-color","sorter":NumberInt(48)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-secondary-background-color","_updatedAt":new Date(1591734396822),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors","sectionPermissionId":"change-setting-Old Colors","settingId":"theme-color-secondary-background-color","sorter":NumberInt(46)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-secondary-font-color","_updatedAt":new Date(1591734396824),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors","sectionPermissionId":"change-setting-Old Colors","settingId":"theme-color-secondary-font-color","sorter":NumberInt(47)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-selection-color","_updatedAt":new Date(1591734396830),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors","sectionPermissionId":"change-setting-Old Colors","settingId":"theme-color-selection-color","sorter":NumberInt(53)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-status-away","_updatedAt":new Date(1591734396837),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors (minor)","sectionPermissionId":"change-setting-Old Colors (minor)","settingId":"theme-color-status-away","sorter":NumberInt(61)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-status-busy","_updatedAt":new Date(1591734396839),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors (minor)","sectionPermissionId":"change-setting-Old Colors (minor)","settingId":"theme-color-status-busy","sorter":NumberInt(62)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-status-offline","_updatedAt":new Date(1591734396841),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors (minor)","sectionPermissionId":"change-setting-Old Colors (minor)","settingId":"theme-color-status-offline","sorter":NumberInt(63)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-status-online","_updatedAt":new Date(1591734396835),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors (minor)","sectionPermissionId":"change-setting-Old Colors (minor)","settingId":"theme-color-status-online","sorter":NumberInt(60)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-success-color","_updatedAt":new Date(1591734396980),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors","sectionPermissionId":"change-setting-Old Colors","settingId":"theme-color-success-color","sorter":NumberInt(50)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-tertiary-background-color","_updatedAt":new Date(1591734396211),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors (minor)","sectionPermissionId":"change-setting-Old Colors (minor)","settingId":"theme-color-tertiary-background-color","sorter":NumberInt(55)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-color-tertiary-font-color","_updatedAt":new Date(1591734396212),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Old Colors (minor)","sectionPermissionId":"change-setting-Old Colors (minor)","settingId":"theme-color-tertiary-font-color","sorter":NumberInt(56)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-custom-css","_updatedAt":new Date(1591734396223),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Custom CSS","sectionPermissionId":"change-setting-Custom CSS","settingId":"theme-custom-css","sorter":NumberInt(65)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-theme-font-body-font-family","_updatedAt":new Date(1591734396221),"group":"Layout","groupPermissionId":"change-setting-Layout","level":"settings","roles":[],"section":"Fonts","sectionPermissionId":"change-setting-Fonts","settingId":"theme-font-body-font-family","sorter":NumberInt(64)});
db.getCollection("rocketchat_permissions").insert({"_id":"change-setting-uniqueID","_updatedAt":new Date(1591734395245),"level":"settings","roles":[],"settingId":"uniqueID","sorter":NumberInt(0)});
db.getCollection("rocketchat_permissions").insert({"_id":"clean-channel-history","_updatedAt":new Date(1584022378434),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"close-livechat-room","_updatedAt":new Date(1584022378642),"roles":["livechat-agent","livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"close-others-livechat-room","_updatedAt":new Date(1584022378645),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"create-c","_updatedAt":new Date(1584022378418),"roles":["admin","user","bot","app"]});
db.getCollection("rocketchat_permissions").insert({"_id":"create-d","_updatedAt":new Date(1584022378420),"roles":["admin","user","bot","app"]});
db.getCollection("rocketchat_permissions").insert({"_id":"create-invite-links","_updatedAt":new Date(1584022378631),"roles":["admin","owner","moderator"]});
db.getCollection("rocketchat_permissions").insert({"_id":"create-p","_updatedAt":new Date(1584022378424),"roles":["admin","user","bot","app"]});
db.getCollection("rocketchat_permissions").insert({"_id":"create-personal-access-tokens","_updatedAt":new Date(1584022378427),"roles":["admin","user"]});
db.getCollection("rocketchat_permissions").insert({"_id":"create-user","_updatedAt":new Date(1584022378431),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"delete-c","_updatedAt":new Date(1584022378438),"roles":["admin","owner"]});
db.getCollection("rocketchat_permissions").insert({"_id":"delete-d","_updatedAt":new Date(1584022378440),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"delete-message","_updatedAt":new Date(1584022378444),"roles":["admin","owner","moderator"]});
db.getCollection("rocketchat_permissions").insert({"_id":"delete-own-message","_updatedAt":new Date(1584022378447),"roles":["admin","user"]});
db.getCollection("rocketchat_permissions").insert({"_id":"delete-p","_updatedAt":new Date(1584022378450),"roles":["admin","owner"]});
db.getCollection("rocketchat_permissions").insert({"_id":"delete-user","_updatedAt":new Date(1584022378453),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"edit-message","_updatedAt":new Date(1584022378457),"roles":["admin","owner","moderator"]});
db.getCollection("rocketchat_permissions").insert({"_id":"edit-other-user-active-status","_updatedAt":new Date(1584022378462),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"edit-other-user-avatar","_updatedAt":new Date(1584022378472),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"edit-other-user-info","_updatedAt":new Date(1584022378466),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"edit-other-user-password","_updatedAt":new Date(1584022378469),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"edit-privileged-setting","_updatedAt":new Date(1584022378474),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"edit-room","_updatedAt":new Date(1584022378478),"roles":["admin","owner","moderator"]});
db.getCollection("rocketchat_permissions").insert({"_id":"edit-room-retention-policy","_updatedAt":new Date(1584022378482),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"force-delete-message","_updatedAt":new Date(1584022378485),"roles":["admin","owner"]});
db.getCollection("rocketchat_permissions").insert({"_id":"join-without-join-code","_updatedAt":new Date(1584022378489),"roles":["admin","bot","app"]});
db.getCollection("rocketchat_permissions").insert({"_id":"leave-c","_updatedAt":new Date(1584022378493),"roles":["admin","user","bot","anonymous","app"]});
db.getCollection("rocketchat_permissions").insert({"_id":"leave-p","_updatedAt":new Date(1584022378498),"roles":["admin","user","bot","anonymous","app"]});
db.getCollection("rocketchat_permissions").insert({"_id":"mail-messages","_updatedAt":new Date(1591734397655),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-apps","_updatedAt":new Date(1591734397237),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-assets","_updatedAt":new Date(1584022378501),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-cloud","_updatedAt":new Date(1591734384324),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-emoji","_updatedAt":new Date(1584022378504),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-incoming-integrations","_updatedAt":new Date(1584022378516),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-livechat-agents","_updatedAt":new Date(1584022378674),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-livechat-departments","_updatedAt":new Date(1584022378677),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-livechat-managers","_updatedAt":new Date(1584022378671),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-oauth-apps","_updatedAt":new Date(1584022378526),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-outgoing-integrations","_updatedAt":new Date(1584022378513),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-own-incoming-integrations","_updatedAt":new Date(1584022378522),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-own-outgoing-integrations","_updatedAt":new Date(1584022378519),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-selected-settings","_updatedAt":new Date(1584022378529),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-sounds","_updatedAt":new Date(1591734397753),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"manage-user-status","_updatedAt":new Date(1584022378507),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"mention-all","_updatedAt":new Date(1584022378533),"roles":["admin","owner","moderator","user"]});
db.getCollection("rocketchat_permissions").insert({"_id":"mention-here","_updatedAt":new Date(1584022378536),"roles":["admin","owner","moderator","user"]});
db.getCollection("rocketchat_permissions").insert({"_id":"mute-user","_updatedAt":new Date(1584022378539),"roles":["admin","owner","moderator"]});
db.getCollection("rocketchat_permissions").insert({"_id":"pin-message","_updatedAt":new Date(1591734398327),"roles":["owner","moderator","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"post-readonly","_updatedAt":new Date(1591734397638),"roles":["admin","owner","moderator"]});
db.getCollection("rocketchat_permissions").insert({"_id":"preview-c-room","_updatedAt":new Date(1584022378619),"roles":["admin","user","anonymous"]});
db.getCollection("rocketchat_permissions").insert({"_id":"remove-closed-livechat-rooms","_updatedAt":new Date(1584022378658),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"remove-user","_updatedAt":new Date(1584022378542),"roles":["admin","owner","moderator"]});
db.getCollection("rocketchat_permissions").insert({"_id":"run-import","_updatedAt":new Date(1584022378546),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"run-migration","_updatedAt":new Date(1584022378549),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"save-others-livechat-room-info","_updatedAt":new Date(1584022378648),"roles":["livechat-manager"]});
db.getCollection("rocketchat_permissions").insert({"_id":"send-many-messages","_updatedAt":new Date(1584022378560),"roles":["admin","bot","app"]});
db.getCollection("rocketchat_permissions").insert({"_id":"set-leader","_updatedAt":new Date(1584022378563),"roles":["admin","owner"]});
db.getCollection("rocketchat_permissions").insert({"_id":"set-moderator","_updatedAt":new Date(1584022378552),"roles":["admin","owner"]});
db.getCollection("rocketchat_permissions").insert({"_id":"set-owner","_updatedAt":new Date(1584022378555),"roles":["admin","owner"]});
db.getCollection("rocketchat_permissions").insert({"_id":"set-react-when-readonly","_updatedAt":new Date(1591734397648),"roles":["admin","owner"]});
db.getCollection("rocketchat_permissions").insert({"_id":"set-readonly","_updatedAt":new Date(1591734397640),"roles":["admin","owner"]});
db.getCollection("rocketchat_permissions").insert({"_id":"snippet-message","_updatedAt":new Date(1591734398341),"roles":["owner","moderator","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"start-discussion","_updatedAt":new Date(1584022382568),"roles":["admin","user","expert","guest"]});
db.getCollection("rocketchat_permissions").insert({"_id":"start-discussion-other-user","_updatedAt":new Date(1584022382572),"roles":["admin","user","expert","owner"]});
db.getCollection("rocketchat_permissions").insert({"_id":"transfer-livechat-guest","_updatedAt":new Date(1584022378668),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"unarchive-room","_updatedAt":new Date(1584022378567),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"user-generate-access-token","_updatedAt":new Date(1584022378575),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-broadcast-member-list","_updatedAt":new Date(1584022378625),"roles":["admin","owner","moderator"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-c-room","_updatedAt":new Date(1584022378570),"roles":["admin","user","bot","app","anonymous"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-d-room","_updatedAt":new Date(1589465222202),"roles":["admin","user","bot","app","guest"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-full-other-user-info","_updatedAt":new Date(1584022378584),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-history","_updatedAt":new Date(1584022378587),"roles":["admin","user","anonymous"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-join-code","_updatedAt":new Date(1584022378594),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-joined-room","_updatedAt":new Date(1584022378591),"roles":["guest","bot","app","anonymous"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-l-room","_updatedAt":new Date(1584022378634),"roles":["livechat-agent","livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-analytics","_updatedAt":new Date(1584022378662),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-appearance","_updatedAt":new Date(1584022378701),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-current-chats","_updatedAt":new Date(1584022378686),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-customfields","_updatedAt":new Date(1584022378695),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-departments","_updatedAt":new Date(1584022378680),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-facebook","_updatedAt":new Date(1584022378706),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-installation","_updatedAt":new Date(1584022378698),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-manager","_updatedAt":new Date(1584022378637),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-officeHours","_updatedAt":new Date(1584022378710),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-queue","_updatedAt":new Date(1584022378665),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-real-time-monitoring","_updatedAt":new Date(1584022378689),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-rooms","_updatedAt":new Date(1584022378639),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-triggers","_updatedAt":new Date(1584022378692),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-livechat-webhooks","_updatedAt":new Date(1584022378704),"roles":["livechat-manager","admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-logs","_updatedAt":new Date(1584022378598),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-other-user-channels","_updatedAt":new Date(1584022378602),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-outside-room","_updatedAt":new Date(1584022378622),"roles":["admin","owner","moderator","user"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-p-room","_updatedAt":new Date(1589465222202),"roles":["admin","user","anonymous","guest"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-privileged-setting","_updatedAt":new Date(1584022378607),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-room-administration","_updatedAt":new Date(1584022378611),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-statistics","_updatedAt":new Date(1584022378613),"roles":["admin"]});
db.getCollection("rocketchat_permissions").insert({"_id":"view-user-administration","_updatedAt":new Date(1584022378616),"roles":["admin"]});

View File

@ -0,0 +1,11 @@
db.getCollection("rocketchat_roles").insert({"_id":"admin","_updatedAt":new Date(1591734394689),"description":"Admin","mandatory2fa":false,"protected":true,"scope":"Users"});
db.getCollection("rocketchat_roles").insert({"_id":"anonymous","_updatedAt":new Date(1591734394716),"description":"","mandatory2fa":false,"protected":true,"scope":"Users"});
db.getCollection("rocketchat_roles").insert({"_id":"app","_updatedAt":new Date(1591734394711),"description":"","mandatory2fa":false,"protected":true,"scope":"Users"});
db.getCollection("rocketchat_roles").insert({"_id":"bot","_updatedAt":new Date(1591734394706),"description":"","mandatory2fa":false,"protected":true,"scope":"Users"});
db.getCollection("rocketchat_roles").insert({"_id":"guest","_updatedAt":new Date(1591734394714),"description":"","mandatory2fa":false,"protected":true,"scope":"Users"});
db.getCollection("rocketchat_roles").insert({"_id":"leader","_updatedAt":new Date(1591734394698),"description":"Leader","mandatory2fa":false,"protected":true,"scope":"Subscriptions"});
db.getCollection("rocketchat_roles").insert({"_id":"livechat-agent","_updatedAt":new Date(1591734394718),"description":"Livechat Agent","mandatory2fa":false,"protected":true,"scope":"Users"});
db.getCollection("rocketchat_roles").insert({"_id":"livechat-manager","_updatedAt":new Date(1591734394720),"description":"Livechat Manager","mandatory2fa":false,"protected":true,"scope":"Users"});
db.getCollection("rocketchat_roles").insert({"_id":"moderator","_updatedAt":new Date(1591734394695),"description":"Moderator","mandatory2fa":false,"protected":true,"scope":"Subscriptions"});
db.getCollection("rocketchat_roles").insert({"_id":"owner","_updatedAt":new Date(1591734394701),"description":"Owner","mandatory2fa":false,"protected":true,"scope":"Subscriptions"});
db.getCollection("rocketchat_roles").insert({"_id":"user","_updatedAt":new Date(1591734394703),"description":"","mandatory2fa":false,"protected":true,"scope":"Users"});

View File

@ -0,0 +1 @@
db.getCollection("rocketchat_room").insert({"_id":"GENERAL","ts":new Date(1584022382998),"t":"c","name":"general","usernames":[],"msgs":NumberInt(3),"usersCount":NumberInt(3),"default":true,"_updatedAt":new Date(1589465366516),"lastMessage":{"_id":"fsy2dZJgmmboowJ8N","t":"uj","rid":"GENERAL","ts":new Date(1584022608462),"msg":"admin","u":{"_id":"nM6vXyDLGGzSPsLNy","username":"admin"},"groupable":false,"_updatedAt":new Date(1584022608462)},"lm":new Date(1584022608462)});

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
db.getCollection("rocketchat_statistics").insert({"_id":"zv7P4mn7CZnCRKnfk","wizard":{"organizationType":"nonprofit","industry":"other","size":"0","country":"unitedKingdom","language":"","serverType":"","registerServer":true},"uniqueId":"2zbFT528GXW2oBwN7","installedAt":new Date(1584022362665),"version":"3.0.3","totalUsers":NumberInt(4),"activeUsers":NumberInt(4),"nonActiveUsers":NumberInt(0),"appUsers":NumberInt(0),"onlineUsers":NumberInt(1),"awayUsers":NumberInt(0),"totalConnectedUsers":NumberInt(1),"offlineUsers":NumberInt(3),"totalRooms":NumberInt(3),"totalChannels":NumberInt(2),"totalPrivateGroups":NumberInt(0),"totalDirect":NumberInt(1),"totalLivechat":NumberInt(0),"totalDiscussions":NumberInt(0),"totalThreads":NumberInt(0),"totalLivechatVisitors":NumberInt(0),"totalLivechatAgents":NumberInt(0),"livechatEnabled":false,"totalMessages":NumberInt(3),"totalChannelMessages":NumberInt(3),"totalPrivateGroupMessages":NumberInt(0),"totalDirectMessages":NumberInt(0),"totalLivechatMessages":NumberInt(0),"federatedServers":NumberInt(0),"federatedUsers":NumberInt(0),"lastLogin":new Date(1584110308788),"lastMessageSentAt":new Date(1584022922478),"lastSeenSubscription":new Date(1584054253513),"os":{"type":"Linux","platform":"linux","arch":"x64","release":"4.19.76-linuxkit","uptime":NumberInt(2021925),"loadavg":[{"$numberDouble":"0.14697265625"},{"$numberDouble":"0.0322265625"},{"$numberDouble":"0.01025390625"}],"totalmem":{"$numberDouble":"8.35098624E+09"},"freemem":{"$numberDouble":"2.621341696E+09"},"cpus":[{"model":"Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz","speed":NumberInt(2600),"times":{"user":NumberInt(25858600),"nice":NumberInt(0),"sys":NumberInt(85134400),"idle":{"$numberDouble":"1.98209867E+10"},"irq":NumberInt(0)}},{"model":"Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz","speed":NumberInt(2600),"times":{"user":NumberInt(24708700),"nice":NumberInt(0),"sys":NumberInt(71585300),"idle":{"$numberDouble":"1.99107066E+10"},"irq":NumberInt(0)}},{"model":"Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz","speed":NumberInt(2600),"times":{"user":NumberInt(24915900),"nice":NumberInt(0),"sys":NumberInt(71185000),"idle":{"$numberDouble":"1.99216669E+10"},"irq":NumberInt(0)}},{"model":"Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz","speed":NumberInt(2600),"times":{"user":NumberInt(24652900),"nice":NumberInt(0),"sys":NumberInt(68993700),"idle":{"$numberDouble":"1.99293535E+10"},"irq":NumberInt(0)}},{"model":"Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz","speed":NumberInt(2600),"times":{"user":NumberInt(26861000),"nice":NumberInt(0),"sys":NumberInt(78875900),"idle":{"$numberDouble":"1.98936536E+10"},"irq":NumberInt(0)}}]},"process":{"nodeVersion":"v12.14.0","pid":NumberInt(8),"uptime":{"$numberDouble":"392816.4318724"}},"deploy":{"method":"docker","platform":"selfinstall"},"uploadsTotal":NumberInt(0),"uploadsTotalSize":NumberInt(0),"migration":{"_id":"control","locked":false,"version":NumberInt(174)},"instanceCount":NumberInt(1),"oplogEnabled":true,"mongoVersion":"4.0.16","mongoStorageEngine":"mmapv1","uniqueUsersOfYesterday":{"year":NumberInt(2020),"month":NumberInt(3),"day":NumberInt(16),"data":[]},"uniqueUsersOfLastMonth":{"year":NumberInt(2020),"month":NumberInt(2),"day":NumberInt(17),"data":[]},"uniqueDevicesOfYesterday":{"year":NumberInt(2020),"month":NumberInt(3),"day":NumberInt(16),"data":[]},"uniqueDevicesOfLastMonth":{"year":NumberInt(2020),"month":NumberInt(3),"day":NumberInt(16),"data":[]},"uniqueOSOfYesterday":{"year":NumberInt(2020),"month":NumberInt(3),"day":NumberInt(16),"data":[]},"uniqueOSOfLastMonth":{"year":NumberInt(2020),"month":NumberInt(3),"day":NumberInt(16),"data":[]},"apps":{"engineVersion":"1.12.0","enabled":true,"totalInstalled":NumberInt(0),"totalActive":NumberInt(0)},"integrations":{"totalIntegrations":NumberInt(0),"totalIncoming":NumberInt(0),"totalIncomingActive":NumberInt(0),"totalOutgoing":NumberInt(0),"totalOutgoingActive":NumberInt(0),"totalWithScriptEnabled":NumberInt(0)},"createdAt":new Date(1584414716293),"_updatedAt":new Date(1584414716293)});

View File

@ -0,0 +1 @@
db.getCollection("rocketchat_subscription").insert({"_id":"KRktZiYdT9DK3dZgJ","open":true,"alert":false,"unread":NumberInt(0),"userMentions":NumberInt(0),"groupMentions":NumberInt(0),"ts":new Date(1584022608447),"rid":"GENERAL","name":"general","t":"c","u":{"_id":"nM6vXyDLGGzSPsLNy","username":"admin","name":"Admin"},"_updatedAt":new Date(1589465366503),"ls":new Date(1589465366503)});

View File

@ -0,0 +1,2 @@
db.getCollection("users").insert({"_id":"nM6vXyDLGGzSPsLNy","createdAt":new Date(1584022531608),"services":{"password":{"bcrypt":"$2b$10$fXL9kVkWeKA7TbP2skwau.Xu3V52q1x/YPfZQ4oYjHhCRPdXwZOQ6"},"email":{"verificationTokens":[{"token":"YadCnp4E2o8lD8ZEyzn320qjoW9QEIGSU1jsaR2840J","address":"admin@example.com","when":new Date(1584022531675)}]},"resume":{"loginTokens":[]}},"emails":[{"address":"admin@example.com","verified":false}],"type":"user","status":"offline","active":true,"_updatedAt":new Date(1589468245023),"roles":["admin"],"name":"Admin","lastLogin":new Date(1589465335818),"statusConnection":"offline","username":"admin","utcOffset":NumberInt(1),"statusDefault":"online","statusText":"Lunch"}); //Password = "password"
db.getCollection("users").insert({"_id":"rocket.cat","createdAt":new Date(1584022383007),"avatarOrigin":"local","name":"Rocket.Cat","username":"rocket.cat","status":"online","statusDefault":"online","utcOffset":NumberInt(0),"active":true,"type":"bot","_updatedAt":new Date(1584022383316),"roles":["bot"]});

View File

@ -0,0 +1,27 @@
version: '2'
services:
mongo:
image: circleci/mongo:4.0
volumes:
- ${DATAROOT}/data/db:/data/db
- ${DATAROOT}/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
environment:
- MONGO_INITDB_DATABASE=rocketchat
mongo-init-replica: # No replicas when testing
image: tianon/true
restart: "no"
command: "true"
entrypoint: ["/true"]
hubot: # No hubot when testing
image: tianon/true
restart: "no"
command: "true"
entrypoint: ["/true"]
mailcatcher:
image: tophfr/mailcatcher
ports:
- 1080:80

31
e2e/docker/runTestsInDocker.sh Executable file
View File

@ -0,0 +1,31 @@
#!/bin/bash
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
ROOT_FOLDER=${SCRIPTPATH%%/e2e*} #Gets path up to (but excluding) "e2e" - this assumes this script is always held within the e2e folder
PAUSE_ON_FAIL_FOR_DEBUG=0
FORCE_DEFAULT_DOCKER_DATA=0 # Set this to 1 to automatically overwrite data.js with the working Docker version
TEST_SUBSET="${1:-}"
function cleanup_and_exit () {
"$SCRIPTPATH/controlRCDemoEnv.sh" stop
exit $1
}
# INFRASTRUCTURE UP
"$SCRIPTPATH/controlRCDemoEnv.sh" startandwait
# RUN TESTS
echo "Running tests"
cd "$ROOT_FOLDER"
if [ $FORCE_DEFAULT_DOCKER_DATA == 1 ]; then
cp "./e2e/data/data.docker.js" "./e2e/data.js"
fi
npx detox test "$ROOT_FOLDER/e2e/tests/$TEST_SUBSET" -c ios.sim.release
TEST_SUCCESS=$?
if [ $TEST_SUCCESS != 0 ] && [ $PAUSE_ON_FAIL_FOR_DEBUG == 1 ]; then
read -n 1 -s -r -p "Paused for debugging failed tests. Press any key to continue." && echo
fi
cleanup_and_exit $TEST_SUCCESS

View File

@ -27,10 +27,10 @@ async function navigateToRegister() {
await expect(element(by.id('register-view'))).toBeVisible();
}
async function login() {
async function login(username, password) {
await waitFor(element(by.id('login-view'))).toBeVisible().withTimeout(2000);
await element(by.id('login-view-email')).replaceText(data.user);
await element(by.id('login-view-password')).replaceText(data.password);
await element(by.id('login-view-email')).replaceText(username);
await element(by.id('login-view-password')).replaceText(password);
await sleep(300);
await element(by.id('login-view-submit')).tap();
await waitFor(element(by.id('rooms-list-view'))).toBeVisible().withTimeout(10000);
@ -52,17 +52,14 @@ async function logout() {
await expect(element(by.id('onboarding-view'))).toBeVisible();
}
async function createUser() {
await navigateToRegister();
await element(by.id('register-view-name')).replaceText(data.user);
await element(by.id('register-view-username')).replaceText(data.user);
await element(by.id('register-view-email')).replaceText(data.email);
await element(by.id('register-view-password')).replaceText(data.password);
await sleep(300);
await element(by.id('register-view-submit')).tap();
await waitFor(element(by.id('rooms-list-view'))).toBeVisible().withTimeout(60000);
await expect(element(by.id('rooms-list-view'))).toBeVisible();
}
async function mockMessage(message) {
await element(by.id('messagebox-input')).tap();
await element(by.id('messagebox-input')).typeText(`${ data.random }${ message }`);
await element(by.id('messagebox-send-message')).tap();
await waitFor(element(by.label(`${ data.random }${ message }`)).atIndex(0)).toExist().withTimeout(60000);
await expect(element(by.label(`${ data.random }${ message }`)).atIndex(0)).toExist();
await element(by.label(`${ data.random }${ message }`)).atIndex(0).tap();
};
async function tapBack() {
await element(by.id('header-back')).atIndex(0).tap();
@ -72,13 +69,22 @@ async function sleep(ms) {
return new Promise(res => setTimeout(res, ms));
}
async function searchRoom(room) {
await element(by.id('rooms-list-view-search')).tap();
await expect(element(by.id('rooms-list-view-search-input'))).toExist();
await waitFor(element(by.id('rooms-list-view-search-input'))).toExist().withTimeout(5000);
await element(by.id('rooms-list-view-search-input')).typeText(room);
await sleep(2000);
}
module.exports = {
navigateToWorkspace,
navigateToLogin,
navigateToRegister,
login,
logout,
createUser,
mockMessage,
tapBack,
sleep
sleep,
searchRoom
};

77
e2e/helpers/data_setup.js Normal file
View File

@ -0,0 +1,77 @@
const axios = require('axios').default;
const data = require('../data');
let server = data.server
const rocketchat = axios.create({
baseURL: `${server}/api/v1/`,
headers: {
'Content-Type': 'application/json;charset=UTF-8',
}
})
const login = async (username, password) => {
console.log(`Logging in as user ${username}`)
const response = await rocketchat.post('login', {
"user": username,
"password": password
})
const userId = response.data.data.userId
const authToken = response.data.data.authToken
rocketchat.defaults.headers.common['X-User-Id'] = userId
rocketchat.defaults.headers.common['X-Auth-Token'] = authToken
}
const createUser = async (username, password, name, email) => {
console.log(`Creating user ${username}`)
try {
await rocketchat.post('users.create', {
"username": username,
"password": password,
"name": name,
"email": email
})
} catch (error) {
console.log(JSON.stringify(error))
throw "Failed to create user"
}
}
const createChannelIfNotExists = async (channelname) => {
console.log(`Creating channel ${channelname}`)
try {
await rocketchat.post('channels.create', {
"name": channelname
})
} catch (createError) {
try { //Maybe it exists already?
await rocketchat.get(`channels.info?roomName=${channelname}`)
} catch (infoError) {
console.log(JSON.stringify(createError))
console.log(JSON.stringify(infoError))
throw "Failed to find or create channel"
}
}
}
const setup = async () => {
await login(data.adminUser, data.adminPassword)
for (var userKey in data.users) {
if (data.users.hasOwnProperty(userKey)) {
const user = data.users[userKey]
await createUser(user.username, user.password, user.username, user.email)
}
}
for (var channelKey in data.channels) {
if (data.channels.hasOwnProperty(channelKey)) {
const channel = data.channels[channelKey]
await createChannelIfNotExists(channel.name)
}
}
return
}
module.exports = setup

View File

@ -1 +0,0 @@
--recursive --timeout 120000 -b

View File

@ -2,7 +2,7 @@ const {
device, expect, element, by, waitFor
} = require('detox');
const data = require('../../data');
const { sleep, createUser } = require('../../helpers/app');
const { sleep, navigateToLogin, login } = require('../../helpers/app');
const checkServer = async(server) => {
const label = `Connected to ${ server }`;
@ -15,7 +15,8 @@ const checkServer = async(server) => {
describe('Change server', () => {
before(async() => {
await createUser();
await navigateToLogin();
await login(data.users.regular.username, data.users.regular.password);
await waitFor(element(by.id('rooms-list-view'))).toBeVisible().withTimeout(10000);
});
@ -41,10 +42,10 @@ describe('Change server', () => {
await waitFor(element(by.id('register-view'))).toBeVisible().withTimeout(2000);
await expect(element(by.id('register-view'))).toBeVisible();
// Register new user
await element(by.id('register-view-name')).replaceText(data.user);
await element(by.id('register-view-username')).replaceText(data.user);
await element(by.id('register-view-email')).replaceText(data.email);
await element(by.id('register-view-password')).replaceText(data.password);
await element(by.id('register-view-name')).replaceText(data.registeringUser.username);
await element(by.id('register-view-username')).replaceText(data.registeringUser.username);
await element(by.id('register-view-email')).replaceText(data.registeringUser.email);
await element(by.id('register-view-password')).replaceText(data.registeringUser.password);
await sleep(1000);
await element(by.id('register-view-submit')).tap();
await waitFor(element(by.id('rooms-list-view'))).toBeVisible().withTimeout(60000);

View File

@ -3,14 +3,17 @@ const {
} = require('detox');
const OTP = require('otp.js');
const GA = OTP.googleAuthenticator;
const { navigateToLogin, login, tapBack, sleep, createUser } = require('../../helpers/app');
const { navigateToLogin, login, mockMessage, tapBack, sleep, searchRoom } = require('../../helpers/app');
const data = require('../../data');
const testuser = data.users.regular
const otheruser = data.users.alternate
describe('Broadcast room', () => {
before(async() => {
await device.launchApp({ permissions: { notifications: 'YES' }, delete: true });
await navigateToLogin();
await login();
await login(testuser.username, testuser.password);
});
it('should create broadcast room', async() => {
@ -18,19 +21,22 @@ describe('Broadcast room', () => {
await waitFor(element(by.id('new-message-view'))).toBeVisible().withTimeout(2000);
await element(by.id('new-message-view-create-channel')).tap();
await waitFor(element(by.id('select-users-view'))).toBeVisible().withTimeout(2000);
await element(by.id('select-users-view-search')).replaceText(data.alternateUser);
await waitFor(element(by.id(`select-users-view-item-${ data.alternateUser }`))).toBeVisible().withTimeout(60000);
await expect(element(by.id(`select-users-view-item-${ data.alternateUser }`))).toBeVisible();
await element(by.id(`select-users-view-item-${ data.alternateUser }`)).tap();
await waitFor(element(by.id(`selected-user-${ data.alternateUser }`))).toBeVisible().withTimeout(5000);
await element(by.id('select-users-view-search')).replaceText(otheruser.username);
await waitFor(element(by.id(`select-users-view-item-${ otheruser.username }`))).toBeVisible().withTimeout(60000);
await expect(element(by.id(`select-users-view-item-${ otheruser.username }`))).toBeVisible();
await element(by.id(`select-users-view-item-${ otheruser.username }`)).tap();
await waitFor(element(by.id(`selected-user-${ otheruser.username }`))).toBeVisible().withTimeout(5000);
await sleep(1000);
await element(by.id('selected-users-view-submit')).tap();
await sleep(1000);
await waitFor(element(by.id('create-channel-view'))).toExist().withTimeout(5000);
await element(by.id('create-channel-name')).replaceText(`broadcast${ data.random }`);
await sleep(1000);
await element(by.id('create-channel-broadcast')).tap();
await sleep(1000);
await sleep(2000);
await element(by.id('create-channel-broadcast')).tap();
if (device.getPlatform() === 'ios') { //Because this tap is FLAKY on iOS
await expect(element(by.id('create-channel-broadcast'))).toHaveValue('1')
}
await sleep(500);
await element(by.id('create-channel-submit')).tap();
await waitFor(element(by.id('room-view'))).toBeVisible().withTimeout(60000);
await expect(element(by.id('room-view'))).toBeVisible();
@ -51,31 +57,25 @@ describe('Broadcast room', () => {
it('should send message', async() => {
await waitFor(element(by.id('room-view'))).toBeVisible().withTimeout(5000);
await element(by.id('messagebox-input')).tap();
await element(by.id('messagebox-input')).typeText(`${ data.random }message`);
await element(by.id('messagebox-send-message')).tap();
await waitFor(element(by.label(`${ data.random }message`)).atIndex(0)).toExist().withTimeout(60000);
await expect(element(by.label(`${ data.random }message`)).atIndex(0)).toBeVisible();
await mockMessage('message');
await tapBack();
});
it('should login as user without write message authorization and enter room', async() => {
await device.launchApp({ permissions: { notifications: 'YES' }, delete: true });
await navigateToLogin();
await element(by.id('login-view-email')).replaceText(data.alternateUser);
await element(by.id('login-view-password')).replaceText(data.alternateUserPassword);
await element(by.id('login-view-email')).replaceText(otheruser.username);
await element(by.id('login-view-password')).replaceText(otheruser.password);
await sleep(1000);
await element(by.id('login-view-submit')).tap();
await waitFor(element(by.id('two-factor'))).toBeVisible().withTimeout(5000);
await expect(element(by.id('two-factor'))).toBeVisible();
const code = GA.gen(data.alternateUserTOTPSecret);
await element(by.id('two-factor-input')).replaceText(code);
await sleep(1000);
await element(by.id('two-factor-send')).tap();
//await waitFor(element(by.id('two-factor'))).toBeVisible().withTimeout(5000);
//await expect(element(by.id('two-factor'))).toBeVisible();
//const code = GA.gen(data.alternateUserTOTPSecret);
//await element(by.id('two-factor-input')).replaceText(code);
//await sleep(1000);
//await element(by.id('two-factor-send')).tap();
await waitFor(element(by.id('rooms-list-view'))).toBeVisible().withTimeout(10000);
await element(by.type('UIScrollView')).atIndex(1).scrollTo('top');
await element(by.id('rooms-list-view-search')).typeText(`broadcast${ data.random }`);
await sleep(2000);
await searchRoom(`broadcast${ data.random }`);
await waitFor(element(by.id(`rooms-list-view-item-broadcast${ data.random }`))).toExist().withTimeout(60000);
await expect(element(by.id(`rooms-list-view-item-broadcast${ data.random }`))).toExist();
await element(by.id(`rooms-list-view-item-broadcast${ data.random }`)).tap();
@ -105,15 +105,11 @@ describe('Broadcast room', () => {
it('should tap on reply button and navigate to direct room', async() => {
await element(by.id('message-broadcast-reply')).tap();
await sleep(1000);
await waitFor(element(by.id(`room-view-title-${ data.user }`))).toBeVisible().withTimeout(5000);
await expect(element(by.id(`room-view-title-${ data.user }`))).toBeVisible();
await waitFor(element(by.id(`room-view-title-${ testuser.username }`))).toBeVisible().withTimeout(5000);
await expect(element(by.id(`room-view-title-${ testuser.username }`))).toBeVisible();
});
it('should reply broadcasted message', async() => {
await element(by.id('messagebox-input')).tap();
await element(by.id('messagebox-input')).typeText(`${ data.random }broadcastreply`);
await element(by.id('messagebox-send-message')).tap();
await waitFor(element(by.label(`${ data.random }broadcastreply`)).atIndex(0)).toBeVisible().withTimeout(60000);
await expect(element(by.label(`${ data.random }broadcastreply`)).atIndex(0)).toBeVisible();
await mockMessage('broadcastreply');
});
});

View File

@ -1,9 +1,11 @@
const {
device, expect, element, by, waitFor
} = require('detox');
const { logout, navigateToLogin, login, sleep } = require('../../helpers/app');
const { navigateToLogin, login, sleep } = require('../../helpers/app');
const data = require('../../data');
const profileChangeUser = data.users.profileChanges
const scrollDown = 200;
async function waitForToast() {
@ -18,7 +20,7 @@ describe('Profile screen', () => {
before(async() => {
await device.launchApp({ permissions: { notifications: 'YES' }, delete: true });
await navigateToLogin();
await login();
await login(profileChangeUser.username, profileChangeUser.password);
await element(by.id('rooms-list-view-sidebar')).tap();
await waitFor(element(by.id('sidebar-view'))).toBeVisible().withTimeout(2000);
await waitFor(element(by.id('sidebar-profile'))).toBeVisible().withTimeout(2000);
@ -80,8 +82,8 @@ describe('Profile screen', () => {
describe('Usage', async() => {
it('should change name and username', async() => {
await element(by.type('UIScrollView')).atIndex(1).swipe('down');
await element(by.id('profile-view-name')).replaceText(`${ data.user }new`);
await element(by.id('profile-view-username')).replaceText(`${ data.user }new`);
await element(by.id('profile-view-name')).replaceText(`${ profileChangeUser.username }new`);
await element(by.id('profile-view-username')).replaceText(`${ profileChangeUser.username }new`);
await sleep(1000);
await element(by.type('UIScrollView')).atIndex(1).swipe('up');
await sleep(1000);
@ -90,10 +92,10 @@ describe('Profile screen', () => {
});
it('should change email and password', async() => {
await element(by.id('profile-view-email')).replaceText(`diego.mello+e2e${ data.random }test@rocket.chat`);
await element(by.id('profile-view-new-password')).replaceText(`${ data.password }new`);
await element(by.id('profile-view-email')).replaceText(`diego.mello+profileChangesNew${ data.random }@rocket.chat`);
await element(by.id('profile-view-new-password')).replaceText(`${ profileChangeUser.password }new`);
await element(by.id('profile-view-submit')).tap();
await element(by.type('_UIAlertControllerTextField')).replaceText(`${ data.password }`)
await element(by.type('_UIAlertControllerTextField')).replaceText(`${ profileChangeUser.password }`)
// For some reason, replaceText does some type of submit, which submits the alert for us
// await element(by.label('Save').and(by.type('_UIAlertControllerActionView'))).tap();
await waitForToast();

View File

@ -1,7 +1,6 @@
const {
device, expect, element, by, waitFor
} = require('detox');
const { logout, navigateToLogin, login } = require('../../helpers/app');
describe('Settings screen', () => {
before(async() => {

View File

@ -2,23 +2,13 @@ const {
device, expect, element, by, waitFor
} = require('detox');
const data = require('../../data');
const { tapBack, sleep } = require('../../helpers/app');
const { mockMessage, tapBack, sleep, searchRoom } = require('../../helpers/app');
const room = 'detox-public';
async function mockMessage(message) {
await element(by.id('messagebox-input')).tap();
await element(by.id('messagebox-input')).typeText(`${ data.random }${ message }`);
await element(by.id('messagebox-send-message')).tap();
await waitFor(element(by.label(`${ data.random }${ message }`)).atIndex(0)).toExist().withTimeout(60000);
await sleep(1000);
};
async function navigateToRoom() {
await sleep(2000);
await element(by.type('UIScrollView')).atIndex(1).scrollTo('top');
await element(by.id('rooms-list-view-search')).typeText(room);
await sleep(2000);
await searchRoom(room);
await waitFor(element(by.id(`rooms-list-view-item-${ room }`)).atIndex(0)).toBeVisible().withTimeout(60000);
await element(by.id(`rooms-list-view-item-${ room }`)).atIndex(0).tap();
await waitFor(element(by.id('room-view'))).toBeVisible().withTimeout(5000);
@ -150,8 +140,6 @@ describe('Join public room', () => {
it('should send message', async() => {
await mockMessage('message');
await expect(element(by.label(`${ data.random }message`)).atIndex(0)).toExist();
await element(by.label(`${ data.random }message`)).atIndex(0).tap();
});
it('should have disable notifications and leave channel', async() => {

View File

@ -1,7 +1,9 @@
const detox = require('detox');
const config = require('../../../package.json').detox;
const config = require('../../package.json').detox;
const dataSetup = require('../helpers/data_setup')
before(async() => {
await dataSetup()
await detox.init(config, { launchApp: false });
await device.launchApp({ permissions: { notifications: 'YES' } });
});

View File

@ -5,6 +5,7 @@ const data = require('../../data');
describe('Onboarding', () => {
before(async() => {
await device.launchApp({ permissions: { notifications: 'YES' }, delete: true });
await waitFor(element(by.id('onboarding-view'))).toBeVisible().withTimeout(2000);
});

View File

@ -28,7 +28,7 @@ describe('Forgot password screen', () => {
describe('Usage', async() => {
it('should reset password and navigate to login', async() => {
await element(by.id('forgot-password-view-email')).replaceText(data.existingEmail);
await element(by.id('forgot-password-view-email')).replaceText(data.users.existing.email);
await element(by.id('forgot-password-view-submit')).tap();
await element(by.text('OK')).tap();
await waitFor(element(by.id('login-view'))).toBeVisible().withTimeout(60000);

View File

@ -37,6 +37,7 @@ describe('Create user screen', () => {
});
describe('Usage', () => {
// FIXME: Detox isn't able to check if it's tappable: https://github.com/wix/Detox/issues/246
// it('should submit invalid email and do nothing', async() => {
// const invalidEmail = 'invalidemail';
@ -48,11 +49,10 @@ describe('Create user screen', () => {
// });
it('should submit email already taken and raise error', async() => {
const invalidEmail = 'invalidemail';
await element(by.id('register-view-name')).replaceText(data.user);
await element(by.id('register-view-username')).replaceText(data.user);
await element(by.id('register-view-email')).replaceText(data.existingEmail);
await element(by.id('register-view-password')).replaceText(data.password);
await element(by.id('register-view-name')).replaceText(data.registeringUser.username);
await element(by.id('register-view-username')).replaceText(data.registeringUser.username);
await element(by.id('register-view-email')).replaceText(data.users.existing.email);
await element(by.id('register-view-password')).replaceText(data.registeringUser.password);
await sleep(300);
await element(by.id('register-view-submit')).tap();
await waitFor(element(by.text('Email already exists. [403]')).atIndex(0)).toExist().withTimeout(10000);
@ -61,11 +61,10 @@ describe('Create user screen', () => {
});
it('should submit username already taken and raise error', async() => {
const invalidEmail = 'invalidemail';
await element(by.id('register-view-name')).replaceText(data.user);
await element(by.id('register-view-username')).replaceText(data.existingName);
await element(by.id('register-view-email')).replaceText(data.email);
await element(by.id('register-view-password')).replaceText(data.password);
await element(by.id('register-view-name')).replaceText(data.registeringUser.username);
await element(by.id('register-view-username')).replaceText(data.users.existing.username);
await element(by.id('register-view-email')).replaceText(data.registeringUser.email);
await element(by.id('register-view-password')).replaceText(data.registeringUser.password);
await sleep(300);
await element(by.id('register-view-submit')).tap();
await waitFor(element(by.text('Username is already in use')).atIndex(0)).toExist().withTimeout(10000);
@ -74,10 +73,10 @@ describe('Create user screen', () => {
});
it('should register', async() => {
await element(by.id('register-view-name')).replaceText(data.user);
await element(by.id('register-view-username')).replaceText(data.user);
await element(by.id('register-view-email')).replaceText(data.email);
await element(by.id('register-view-password')).replaceText(data.password);
await element(by.id('register-view-name')).replaceText(data.registeringUser.username);
await element(by.id('register-view-username')).replaceText(data.registeringUser.username);
await element(by.id('register-view-email')).replaceText(data.registeringUser.email);
await element(by.id('register-view-password')).replaceText(data.registeringUser.password);
await sleep(300);
await element(by.id('register-view-submit')).tap();
await waitFor(element(by.id('rooms-list-view'))).toBeVisible().withTimeout(60000);

View File

@ -56,8 +56,8 @@ describe('Login screen', () => {
});
it('should insert wrong password and get error', async() => {
await element(by.id('login-view-email')).replaceText(data.user);
await element(by.id('login-view-password')).replaceText('error');
await element(by.id('login-view-email')).replaceText(data.users.regular.username);
await element(by.id('login-view-password')).replaceText('NotMyActualPassword');
await sleep(300);
await element(by.id('login-view-submit')).tap();
await waitFor(element(by.text('Your credentials were rejected! Please try again.'))).toBeVisible().withTimeout(10000);
@ -66,7 +66,7 @@ describe('Login screen', () => {
});
it('should login with success', async() => {
await element(by.id('login-view-password')).replaceText(data.password);
await element(by.id('login-view-password')).replaceText(data.users.regular.password);
await sleep(300);
await element(by.id('login-view-submit')).tap();
await waitFor(element(by.id('rooms-list-view'))).toBeVisible().withTimeout(60000);

View File

@ -1,7 +1,7 @@
const {
device, expect, element, by, waitFor
} = require('detox');
const { logout, tapBack, sleep } = require('../../helpers/app');
const { logout, tapBack, sleep, searchRoom } = require('../../helpers/app');
describe('Rooms list screen', () => {
describe('Render', () => {
@ -27,10 +27,7 @@ describe('Rooms list screen', () => {
describe('Usage', () => {
it('should search room and navigate', async() => {
await element(by.type('UIScrollView')).atIndex(1).scrollTo('top');
await waitFor(element(by.id('rooms-list-view-search'))).toExist().withTimeout(2000);
await element(by.id('rooms-list-view-search')).typeText('rocket.cat');
await sleep(2000);
await searchRoom('rocket.cat');
await waitFor(element(by.id('rooms-list-view-item-rocket.cat'))).toBeVisible().withTimeout(60000);
await expect(element(by.id('rooms-list-view-item-rocket.cat'))).toBeVisible();
await element(by.id('rooms-list-view-item-rocket.cat')).tap();
@ -41,7 +38,6 @@ describe('Rooms list screen', () => {
await tapBack();
await waitFor(element(by.id('rooms-list-view'))).toBeVisible().withTimeout(2000);
await expect(element(by.id('rooms-list-view'))).toBeVisible();
// await element(by.id('rooms-list-view-search')).typeText('');
await sleep(2000);
await waitFor(element(by.id('rooms-list-view-item-rocket.cat'))).toExist().withTimeout(60000);
await expect(element(by.id('rooms-list-view-item-rocket.cat'))).toExist();

View File

@ -1,11 +0,0 @@
const detox = require('detox');
const config = require('../../../package.json').detox;
before(async() => {
await detox.init(config, { launchApp: false });
await device.launchApp({ permissions: { notifications: 'YES' } });
});
after(async() => {
await detox.cleanup();
});

Some files were not shown because too many files have changed in this diff Show More