;

  ipcRenderer.send('data-transport-ready', 'receiver');
  
  async function importData(file) {
    const exists = await fs.pathExists(file);
    if (!exists) {
      ipcRenderer.send('data-importer-finished');
      return;
    }
    try {
      const data = await fs.readJson(file);
      const factory = new ImportFactory();
      const errors = await factory.importData(data);
      if (errors) {
        console.error(errors);
      }
    } catch (e) {
      ipcRenderer.send('db-error', e.message, e.stac