Zaptilo BUSY Connector - install on the Windows PC that runs BUSY
=================================================================
Optional. You only need this for automatic payment reminders and for sending
invoices automatically when you save them. Sending from BUSY's SMS button needs
no install: it only needs the URL we give you.

You need
  - Node.js LTS (18 or newer) from https://nodejs.org
  - The bridge URL and key from us (connect@zaptilo.ai)
  - BUSY exporting its outstanding bills (and, for auto-send, vouchers) to CSV
    files in a fixed folder, for example C:\BusyExports

Steps
  1. Unzip this folder to C:\ZaptiloBusy so that C:\ZaptiloBusy\src\cli.js exists.
  2. Copy config.sample.json to config.json (same folder). Open it in Notepad and
     fill in bridgeUrl, key, the export file paths (use \\ in paths) and the
     column names that BUSY's export uses.
  3. Test it once. In a Command Prompt:
       node C:\ZaptiloBusy\src\cli.js --config C:\ZaptiloBusy\config.json --once
     It should print:  uploaded N bill(s): OK bills=N
  4. Run it every hour, also after a restart. In a Command Prompt opened with
     "Run as administrator":
       schtasks /Create /TN "Zaptilo BUSY Connector" /SC HOURLY /MO 1 /RU SYSTEM /RL HIGHEST /TR "\"C:\Program Files\nodejs\node.exe\" C:\ZaptiloBusy\src\cli.js --config C:\ZaptiloBusy\config.json --once"
       schtasks /Run /TN "Zaptilo BUSY Connector"
  5. Look at connector.log next to config.json after the first run. It records
     counts and errors only, never customer names or numbers.

To remove it
       schtasks /Delete /TN "Zaptilo BUSY Connector" /F
  then delete C:\ZaptiloBusy.

Notes
  - The connector only reads the export files. It never opens BUSY's data files.
  - config.sample.json holds example values only. Replace them with yours.
  - The files are not code-signed, so Windows SmartScreen may warn when you open them.
  - README.md in this folder explains every config field.

Help: connect@zaptilo.ai
