in lti-components/web/src/utils/ScheduledEvent.js [139:158]
constructor(eventPayload = {}, principal) {
this.__payload.eventId = eventPayload.eventId || ``;
this.__payload.eventGroupId = eventPayload.eventGroupId || ``;
this.__meeetingMetrics = eventPayload.meetingMetrics;
this.__meetingInfo = eventPayload.meetingInfo;
Object.entries(eventPayload.attributes || {}).forEach(([attributeName, attributeValue]) => {
this.setAttr(attributeName, attributeValue);
});
if (this.__payload.attributes.date) {
this.__moment = moment(this.__payload.attributes.date);
this.__momentEnd = moment(this.__payload.attributes.date).add(this.getAttr(`duration`, 3600), `seconds`);
}
if (!this.__payload.attributes.meeting.status) {
this.setStatus(ScheduledEvent.STATUS.SCHEDULED, principal);
}
}