def create_breaches_data(
        self, breaches_results, company_name, company_guid, max_date
    ):
        """Create breaches data for a specific company.

        Args:
            breaches_results (list): List of breaches data.
            company_name (str): Name of the company.
            company_guid (str): GUID of the company.
            max_date (str): Maximum date of breaches data.

        Returns:
            body (list): List of breaches data.
            max_date (str): Maximum date of breaches data.
        """
        body = []
        if max_date == "0000-01-01":
            for breach in breaches_results:
                date_created = breach.get("date_created", "")
                if date_created and date_created > max_date:
                    max_date = date_created
                breach["company_name"] = company_name
                breach["company_guid"] = company_guid
                body.append(breach)
        else:
            for breach in breaches_results:
                date_created = breach.get("date_created", "")
                if date_created and date_created > max_date:
                    max_date = date_created
                    breach["company_name"] = company_name
                    breach["company_guid"] = company_guid
                    body.append(breach)
        return body, max_date
Create breaches data for a specific company.

        Args:
            breaches_results (list): List of breaches data.
            company_name (str): Name of the company.
            company_guid (str): GUID of the company.
            max_date (str): Maximum date of breaches data.

        Returns:
            body (list): List of breaches data.
            max_date (str): Maximum date of breaches data.
        
Solutions/BitSight/Data Connectors/BitSightDataConnector/BreachesDetails/bitsight_breaches.py