# -*- coding: utf-8 -*-

"""Generate the Resilient customizations required for rc-data-feed-plugin-resilientfeed"""

try:
    from resilient import ImportDefinition
except ImportError:
    # Support Apps running on resilient-circuits < v35.0.195
    from resilient_circuits.util import ImportDefinition


def codegen_reload_data():
    """
    Parameters required reload codegen for the rc-data-feed-plugin-resilientfeed package
    """
    return {
        "package": u"rc-data-feed-plugin-resilientfeed",
        "message_destinations": [u"feed_data_unused", u"feed_data_resilient"],
        "functions": [u"data_feeder_sync_incidents"],
        "workflows": [u"data_feeder_sync_incidents"],
        "actions": [u"Data Feeder: Artifact", u"Data Feeder: Note", u"Data Feeder: Attachment", u"Data Feeder: Sync Incidents", u"Data Feeder: Task", u"Data Feeder: Milestone", u"Data Feeder: Incident"],
        "incident_fields": [u"df_org_id", u"df_host", u"df_create_date", u"df_inc_id"],
        "incident_artifact_types": [],
        "datatables": [],
        "automatic_tasks": [],
        "scripts": []
    }


def customization_data(client=None):
    """
    Returns a Generator of ImportDefinitions (Customizations).
    Install them using `resilient-circuits customize`

    Contents:
    - Message Destinations:
        - feed_data_unused
        - feed_data_resilient
    - Functions:
        - data_feeder_sync_incidents
    - Workflows:
        - data_feeder_sync_incidents
    - Rules:
        - Data Feeder: Artifact
        - Data Feeder: Note
        - Data Feeder: Attachment
        - Data Feeder: Sync Incidents
        - Data Feeder: Task
        - Data Feeder: Milestone
        - Data Feeder: Incident
    - Incident Fields:
        - df_org_id
        - df_host
        - df_create_date
        - df_inc_id
    """

    yield ImportDefinition(u"""
<KEY>
""")

# -*- coding: utf-8 -*-

"""Generate the Resilient customizations required for rc-data-feed-plugin-resilientfeed"""

try:
    from resilient import ImportDefinition
except ImportError:
    # Support Apps running on resilient-circuits < v35.0.195
    from resilient_circuits.util import ImportDefinition


def codegen_reload_data():
    """
    Parameters required reload codegen for the rc-data-feed-plugin-resilientfeed package
    """
    return {
        "package": u"rc-data-feed-plugin-resilientfeed",
        "message_destinations": [u"feed_data_unused", u"feed_data_resilient"],
        "functions": [u"data_feeder_sync_incidents"],
        "workflows": [u"data_feeder_sync_incidents"],
        "actions": [u"Data Feeder: Artifact", u"Data Feeder: Note", u"Data Feeder: Attachment", u"Data Feeder: Sync Incidents", u"Data Feeder: Task", u"Data Feeder: Milestone", u"Data Feeder: Incident"],
        "incident_fields": [u"df_org_id", u"df_host", u"df_create_date", u"df_inc_id"],
        "incident_artifact_types": [],
        "datatables": [],
        "automatic_tasks": [],
        "scripts": []
    }


def customization_data(client=None):
    """
    Returns a Generator of ImportDefinitions (Customizations).
    Install them using `resilient-circuits customize`

    Contents:
    - Message Destinations:
        - feed_data_unused
        - feed_data_resilient
    - Functions:
        - data_feeder_sync_incidents
    - Workflows:
        - data_feeder_sync_incidents
    - Rules:
        - Data Feeder: Artifact
        - Data Feeder: Note
        - Data Feeder: Attachment
        - Data Feeder: Sync Incidents
        - Data Feeder: Task
        - Data Feeder: Milestone
        - Data Feeder: Incident
    - Incident Fields:
        - df_org_id
        - df_host
        - df_create_date
        - df_inc_id
    """

    yield ImportDefinition(u"""
<KEY>
""")

# -*- coding: utf-8 -*- Generate the Resilient customizations required for rc-data-feed-plugin-resilientfeed # Support Apps running on resilient-circuits < v35.0.195 Parameters required reload codegen for the rc-data-feed-plugin-resilientfeed package Returns a Generator of ImportDefinitions (Customizations).     Install them using `resilient-circuits customize`      Contents:     - Message Destinations:         - feed_data_unused         - feed_data_resilient     - Functions:         - data_feeder_sync_incidents     - Workflows:         - data_feeder_sync_incidents     - Rules:         - Data Feeder: Artifact         - Data Feeder: Note         - Data Feeder: Attachment         - Data Feeder: Sync Incidents         - Data Feeder: Task         - Data Feeder: Milestone         - Data Feeder: Incident     - Incident Fields:         - df_org_id         - df_host         - df_create_date         - df_inc_id <KEY>