芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/cloud.pulsehost.co.uk/modules/RocketChatWebclient/js/Settings.js
'use strict'; var _ = require('underscore'), Types = require('%PathToCoreWebclientModule%/js/utils/Types.js') ; module.exports = { ServerModuleName: '%ModuleName%', HashModuleName: 'chat', ChatUrl: '', AllowAddMeetingLinkToEvent: false, MeetingLinkUrl: '', /** * Initializes settings from AppData object sections. * * @param {Object} oAppData Object contained modules settings. */ init: function (oAppData) { var oAppDataSection = oAppData['%ModuleName%']; if (!_.isEmpty(oAppDataSection)) { this.ChatUrl = Types.pString(oAppDataSection.ChatUrl); this.AllowAddMeetingLinkToEvent = Types.pBool(oAppDataSection.AllowAddMeetingLinkToEvent); this.MeetingLinkUrl = Types.pString(oAppDataSection.MeetingLinkUrl); } } };