Some checks failed
CI / verify (push) Has been cancelled
Weekday 10am Eastern cron exports all Webex Calling locations whose name starts with "Store" to a legacy-format CSV (+E164,Store XXXX), diffs against the previous baseline, and posts the file plus a change summary to a configured Webex space. - src/webex/storePhones.js: paginated GET /telephony/config/locations - src/services/storePhoneExport.js: CSV format, filename, diff, message - src/webex/messages.js: bot-token multipart POST /messages with file - src/jobs/storePhoneExport.js + cron in src/index.js - scripts/exportStorePhones.js for manual runs (npm run export-store-phones) - Persist baseline + archives under data/store-phone-export/ (gitignored) - Dockerfile: create /app/data for volume mount in prod - CI: align node-version with Dockerfile (20) Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
392 B
JavaScript
14 lines
392 B
JavaScript
#!/usr/bin/env node
|
|
/**
|
|
* Manual trigger for the daily store phone export job.
|
|
* Useful for testing without waiting for the weekday 10am cron.
|
|
*
|
|
* Usage:
|
|
* node scripts/exportStorePhones.js
|
|
*
|
|
* Requires STORE_PHONE_EXPORT_ROOM_ID (and the usual Webex credentials)
|
|
* in .env.
|
|
*/
|
|
import { runStorePhoneExport } from '../src/jobs/storePhoneExport.js';
|
|
|
|
await runStorePhoneExport();
|