const {contextBridge, ipcRenderer} = require('electron')

contextBridge.exposeInMainWorld('appointment', {
    startBook: (startNumber, endNumber, selectedStore, audioAnalyse, alertBeep) => ipcRenderer.send('start-book', startNumber, endNumber, selectedStore, audioAnalyse, alertBeep),
    scheduleBook: (startNumber, endNumber, selectedStore, audioAnalyse, alertBeep) => ipcRenderer.send('schedule-book', startNumber, endNumber, selectedStore, audioAnalyse, alertBeep),
    clearAllBrowsers: () => ipcRenderer.send('clearAllBrowsers'),
    scanDevices: () => ipcRenderer.invoke('scan-devices')
})

// contextBridge.exposeInMainWorld('appointment', {
//     startBook: (startNumber, endNumber, selectedStore, audioAnalyse, alertBeep) => ipcRenderer.send('schedule-book', startNumber, endNumber, selectedStore, audioAnalyse, alertBeep),
//     clearAllBrowsers: () => ipcRenderer.send('clearAllBrowsers'),
//     scanDevices: () => ipcRenderer.invoke('scan-devices')
// })