def get_cofense_threat_type(self, indicators):
        """To convert sentinel indicator type to cofense accepted indicator type."""
        # getting indicator type.
        sentinel_indicator_pattern_type = indicators.get("properties", {}).get(
            "patternType", None
        )
        cofense_indicator_pattern_type = None
        # if indicator type is url in sentinel then URL in cofense.
        if sentinel_indicator_pattern_type == "url":
            cofense_indicator_pattern_type = "URL"

        # if indicator type is domain-name in sentinel then Hostname in cofense.
        elif sentinel_indicator_pattern_type == "domain-name":
            cofense_indicator_pattern_type = "Hostname"

        # if indicator type is file in sentinel then MD5 or SHA256 in cofense.
        elif sentinel_indicator_pattern_type == "file":
            sentinel_indicator_pattern = indicators.get("properties", {}).get(
                "pattern", None
            )
            if sentinel_indicator_pattern is not None:
                sentinel_file_pattern = sentinel_indicator_pattern.split("'")[1]

                if sentinel_file_pattern == "MD5":
                    cofense_indicator_pattern_type = "MD5"
                elif sentinel_file_pattern == "SHA-256":
                    cofense_indicator_pattern_type = "SHA256"
                else:
                    cofense_indicator_pattern_type = None
            else:
                cofense_indicator_pattern_type = None
        else:
            cofense_indicator_pattern_type = None

        return cofense_indicator_pattern_type
To convert sentinel indicator type to cofense accepted indicator type.
Solutions/CofenseTriage/Data Connectors/CofenseTriageDataConnector/NonCofenseBasedIndicatorCreatorToCofense/sentinel_to_cofense_mapping.py