Commit Graph

2 Commits (3ce91f4d76cef189816b3f2b5b83dff19a03fecf)

Author SHA1 Message Date
SYED MUSTUFA AHMED NAQVI 3ce91f4d76 feat: apply photo preprocessing, employee allow-list, and user-sync logging to initial sync
Wire the initial department sync to the new photo processor: downloaded
JPEGs are face-cropped/normalized before FaceDataRecord, and photos with
no detectable face are skipped and logged as FACE_NOT_DETECTED.

Add an optional InitialSyncEmployeeIds allow-list so only selected
employees within the chosen departments are enrolled (empty = whole
department), filtered directly in the SQL query with parameters.

Emit business entries to logs/user_sync_logs for provisioned users
("added successfully", "face enrolled successfully", readable failure
reasons) so onboarded users appear alongside the existing deletion
entries instead of only in internal_logs.
2026-08-15 15:58:30 +05:00
SYED MUSTUFA AHMED NAQVI 9d1e361099 feat: add department-based initial user and face provisioning
Add a configurable initial-sync flow that creates department employees on target Hikvision devices and uploads portal JPEG photos.

Support department-based employee filtering for existing user/template sync.

Discover and retry available Hikvision face libraries, then verify face enrollment after upload.

Extend service configuration and scheduled sync handling for the new onboarding flow.
2026-08-15 15:50:58 +05:00