1. Old Flow
1.1. If Image Already Present For Resident And Employee
1.1.1. It Trigger Remove Face Worker
1.1.1.1. Remove Face Worker
1.1.1.1.1. Inside of the worker We find employee or resident and remove all face from the Device.
1.1.1.1.2. After remove all images from the device finally resident or employee image gets deleted.
1.2. If Image Not Present For Resident Or Employee
1.2.1. Register Face Worker
1.2.1.1. Inside of the worker we find the employee and upload his image into AWS.
1.2.1.2. After upload an image into AWS into then we create and image record with AWS link for the employee or resident.
1.2.1.2.1. Reindex Worker
1.2.1.3. After creating and reindex image, We create image record for all actively present vizitin device. And Finally we publish MQTT for all device which we create a record.
1.2.1.4. Finally we delete image file in local.
2. New Flow
2.1. Register Face Worker
2.1.1. Inside of the worker first We upload image into AWS.
2.1.2. After uploading image and switching tenant first check image already present for employee or resident.
2.1.2.1. If Image already Present
2.1.2.1.1. We call Remove face service File.
2.1.2.2. If Image Not Present
2.1.2.2.1. After upload an image into AWS into then we create and image record with AWS link for the employee or resident.
2.1.2.2.2. After creating and reindex image, We create image record for all actively present vizitin device. And Finally we publish MQTT for all device which we create a record.
2.1.2.2.3. Finally we delete image file in local.