{
  "name": "brightcall-commbot-webhook",
  "version": "1.0.0",
  "description": "Webhook bridge for unanswered BrightCall AI calls to Commbot templates",
  "author": "PSI",
  "main": "desktop/main.js",
  "scripts": {
    "start": "node server.js",
    "desktop:dev": "electron .",
    "desktop:build": "electron-builder --win portable",
    "desktop:build:setup": "electron-builder --win nsis"
  },
  "engines": {
    "node": ">=18"
  },
  "dependencies": {
    "axios": "^1.9.0",
    "dotenv": "^16.4.5",
    "express": "^4.21.2",
    "multer": "^2.1.1"
  },
  "devDependencies": {
    "electron": "^35.1.5",
    "electron-builder": "^26.0.12",
    "png-to-ico": "^3.0.1"
  },
  "build": {
    "appId": "com.psi.whatsappautomation",
    "productName": "WhatsApp Automation",
    "asar": true,
    "asarUnpack": [
      "desktop/assets/**"
    ],
    "extraResources": [
      ".env",
      ".env.example"
    ],
    "files": [
      "desktop/**/*",
      "public/**/*",
      "server.js",
      "package.json",
      "runtime-settings.json"
    ],
    "win": {
      "signAndEditExecutable": false,
      "icon": "desktop/assets/company-logo.ico",
      "target": [
        {
          "target": "portable",
          "arch": [
            "x64"
          ]
        }
      ],
      "artifactName": "WhatsApp-Automation-${version}.${ext}"
    },
    "nsis": {
      "oneClick": false,
      "allowToChangeInstallationDirectory": true,
      "createDesktopShortcut": true,
      "createStartMenuShortcut": true,
      "shortcutName": "WhatsApp Automation",
      "artifactName": "WhatsApp-Automation-Setup-${version}.${ext}"
    }
  }
}
