"use strict";
const addVideoCallDataToEvent = (bookingReferences, evt) => {
  const videoCallReference = bookingReferences.find((reference) => reference.type.includes("_video"));
  if (videoCallReference) {
    evt.videoCallData = {
      type: videoCallReference.type,
      id: videoCallReference.meetingId,
      password: videoCallReference?.meetingPassword,
      url: videoCallReference.meetingUrl
    };
  }
  return evt;
};
exports.addVideoCallDataToEvent = addVideoCallDataToEvent;
