<filename>fn_exchange/fn_exchange/util/customize.py
# -*- coding: utf-8 -*-

"""Generate the Resilient customizations required for fn_exchange"""

from __future__ import print_function
from resilient_circuits.util import *

def codegen_reload_data():
    """Parameters to codegen used to generate the fn_exchange package"""
    reload_params = {"package": u"fn_exchange",
                    "incident_fields": [],
                    "action_fields": [u"exchange_delete_if_no_subfolders", u"exchange_destination_folder_path", u"exchange_email", u"exchange_email_ids", u"exchange_emails", u"exchange_end_date", u"exchange_folder_path", u"exchange_get_email", u"exchange_hard_delete", u"exchange_has_attachments", u"exchange_meeting_body", u"exchange_meeting_end_time", u"exchange_meeting_start_time", u"exchange_meeting_subject", u"exchange_message_body", u"exchange_message_subject", u"exchange_num_emails", u"exchange_optional_attendees", u"exchange_order_by_recency", u"exchange_required_attendees", u"exchange_search_subfolders", u"exchange_sender", u"exchange_start_date"],
                    "function_params": [u"exchange_delete_if_no_subfolders", u"exchange_destination_folder_path", u"exchange_email", u"exchange_email_ids", u"exchange_emails", u"exchange_end_date", u"exchange_folder_path", u"exchange_get_email", u"exchange_hard_delete", u"exchange_has_attachments", u"exchange_meeting_body", u"exchange_meeting_end_time", u"exchange_meeting_start_time", u"exchange_meeting_subject", u"exchange_message_body", u"exchange_message_subject", u"exchange_num_emails", u"exchange_optional_attendees", u"exchange_order_by_recency", u"exchange_required_attendees", u"exchange_search_subfolders", u"exchange_sender", u"exchange_start_date"],
                    "datatables": [],
                    "message_destinations": [u"fn_exchange"],
                    "functions": [u"exchange_create_meeting", u"exchange_delete_emails", u"exchange_find_emails", u"exchange_get_mailbox_info", u"exchange_move_emails", u"exchange_move_folder_contents_and_delete_folder", u"exchange_send_email"],
                    "phases": [],
                    "automatic_tasks": [],
                    "scripts": [],
                    "workflows": [u"example_of_exchange_create_meeting", u"example_of_exchange_delete_emails", u"example_of_exchange_find_emails", u"example_of_exchange_get_mailbox_info", u"example_of_exchange_move_emails", u"example_of_exchange_send_email", u"exchange_move_and_delete_folder"],
                    "actions": [u"Exchange Create Meeting", u"Exchange Delete Emails", u"Exchange Find Emails", u"Exchange Get Mailbox Info", u"Exchange Move Emails", u"Exchange Move Folder Contents and Delete Folder", u"Exchange Send Email"]
                    }
    return reload_params


def customization_data(client=None):
    """Produce any customization definitions (types, fields, message destinations, etc)
       that should be installed by `resilient-circuits customize`
    """

    # This import data contains:
    #   Action fields:
    #     exchange_delete_if_no_subfolders
    #     exchange_destination_folder_path
    #     exchange_email
    #     exchange_email_ids
    #     exchange_emails
    #     exchange_end_date
    #     exchange_folder_path
    #     exchange_get_email
    #     exchange_hard_delete
    #     exchange_has_attachments
    #     exchange_meeting_body
    #     exchange_meeting_end_time
    #     exchange_meeting_start_time
    #     exchange_meeting_subject
    #     exchange_message_body
    #     exchange_message_subject
    #     exchange_num_emails
    #     exchange_optional_attendees
    #     exchange_order_by_recency
    #     exchange_required_attendees
    #     exchange_search_subfolders
    #     exchange_sender
    #     exchange_start_date
    #   Function inputs:
    #     exchange_delete_if_no_subfolders
    #     exchange_destination_folder_path
    #     exchange_email
    #     exchange_email_ids
    #     exchange_emails
    #     exchange_end_date
    #     exchange_folder_path
    #     exchange_get_email
    #     exchange_hard_delete
    #     exchange_has_attachments
    #     exchange_meeting_body
    #     exchange_meeting_end_time
    #     exchange_meeting_start_time
    #     exchange_meeting_subject
    #     exchange_message_body
    #     exchange_message_subject
    #     exchange_num_emails
    #     exchange_optional_attendees
    #     exchange_order_by_recency
    #     exchange_required_attendees
    #     exchange_search_subfolders
    #     exchange_sender
    #     exchange_start_date
    #   Message Destinations:
    #     fn_exchange
    #   Functions:
    #     exchange_create_meeting
    #     exchange_delete_emails
    #     exchange_find_emails
    #     exchange_get_mailbox_info
    #     exchange_move_emails
    #     exchange_move_folder_contents_and_delete_folder
    #     exchange_send_email
    #   Workflows:
    #     example_of_exchange_create_meeting
    #     example_of_exchange_delete_emails
    #     example_of_exchange_find_emails
    #     example_of_exchange_get_mailbox_info
    #     example_of_exchange_move_emails
    #     example_of_exchange_send_email
    #     exchange_move_and_delete_folder
    #   Rules:
    #     Exchange Create Meeting
    #     Exchange Delete Emails
    #     Exchange Find Emails
    #     Exchange Get Mailbox Info
    #     Exchange Move Emails
    #     Exchange Move Folder Contents and Delete Folder
    #     Exchange Send Email


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

<filename>fn_exchange/fn_exchange/util/customize.py
# -*- coding: utf-8 -*-

"""Generate the Resilient customizations required for fn_exchange"""

from __future__ import print_function
from resilient_circuits.util import *

def codegen_reload_data():
    """Parameters to codegen used to generate the fn_exchange package"""
    reload_params = {"package": u"fn_exchange",
                    "incident_fields": [],
                    "action_fields": [u"exchange_delete_if_no_subfolders", u"exchange_destination_folder_path", u"exchange_email", u"exchange_email_ids", u"exchange_emails", u"exchange_end_date", u"exchange_folder_path", u"exchange_get_email", u"exchange_hard_delete", u"exchange_has_attachments", u"exchange_meeting_body", u"exchange_meeting_end_time", u"exchange_meeting_start_time", u"exchange_meeting_subject", u"exchange_message_body", u"exchange_message_subject", u"exchange_num_emails", u"exchange_optional_attendees", u"exchange_order_by_recency", u"exchange_required_attendees", u"exchange_search_subfolders", u"exchange_sender", u"exchange_start_date"],
                    "function_params": [u"exchange_delete_if_no_subfolders", u"exchange_destination_folder_path", u"exchange_email", u"exchange_email_ids", u"exchange_emails", u"exchange_end_date", u"exchange_folder_path", u"exchange_get_email", u"exchange_hard_delete", u"exchange_has_attachments", u"exchange_meeting_body", u"exchange_meeting_end_time", u"exchange_meeting_start_time", u"exchange_meeting_subject", u"exchange_message_body", u"exchange_message_subject", u"exchange_num_emails", u"exchange_optional_attendees", u"exchange_order_by_recency", u"exchange_required_attendees", u"exchange_search_subfolders", u"exchange_sender", u"exchange_start_date"],
                    "datatables": [],
                    "message_destinations": [u"fn_exchange"],
                    "functions": [u"exchange_create_meeting", u"exchange_delete_emails", u"exchange_find_emails", u"exchange_get_mailbox_info", u"exchange_move_emails", u"exchange_move_folder_contents_and_delete_folder", u"exchange_send_email"],
                    "phases": [],
                    "automatic_tasks": [],
                    "scripts": [],
                    "workflows": [u"example_of_exchange_create_meeting", u"example_of_exchange_delete_emails", u"example_of_exchange_find_emails", u"example_of_exchange_get_mailbox_info", u"example_of_exchange_move_emails", u"example_of_exchange_send_email", u"exchange_move_and_delete_folder"],
                    "actions": [u"Exchange Create Meeting", u"Exchange Delete Emails", u"Exchange Find Emails", u"Exchange Get Mailbox Info", u"Exchange Move Emails", u"Exchange Move Folder Contents and Delete Folder", u"Exchange Send Email"]
                    }
    return reload_params


def customization_data(client=None):
    """Produce any customization definitions (types, fields, message destinations, etc)
       that should be installed by `resilient-circuits customize`
    """

    # This import data contains:
    #   Action fields:
    #     exchange_delete_if_no_subfolders
    #     exchange_destination_folder_path
    #     exchange_email
    #     exchange_email_ids
    #     exchange_emails
    #     exchange_end_date
    #     exchange_folder_path
    #     exchange_get_email
    #     exchange_hard_delete
    #     exchange_has_attachments
    #     exchange_meeting_body
    #     exchange_meeting_end_time
    #     exchange_meeting_start_time
    #     exchange_meeting_subject
    #     exchange_message_body
    #     exchange_message_subject
    #     exchange_num_emails
    #     exchange_optional_attendees
    #     exchange_order_by_recency
    #     exchange_required_attendees
    #     exchange_search_subfolders
    #     exchange_sender
    #     exchange_start_date
    #   Function inputs:
    #     exchange_delete_if_no_subfolders
    #     exchange_destination_folder_path
    #     exchange_email
    #     exchange_email_ids
    #     exchange_emails
    #     exchange_end_date
    #     exchange_folder_path
    #     exchange_get_email
    #     exchange_hard_delete
    #     exchange_has_attachments
    #     exchange_meeting_body
    #     exchange_meeting_end_time
    #     exchange_meeting_start_time
    #     exchange_meeting_subject
    #     exchange_message_body
    #     exchange_message_subject
    #     exchange_num_emails
    #     exchange_optional_attendees
    #     exchange_order_by_recency
    #     exchange_required_attendees
    #     exchange_search_subfolders
    #     exchange_sender
    #     exchange_start_date
    #   Message Destinations:
    #     fn_exchange
    #   Functions:
    #     exchange_create_meeting
    #     exchange_delete_emails
    #     exchange_find_emails
    #     exchange_get_mailbox_info
    #     exchange_move_emails
    #     exchange_move_folder_contents_and_delete_folder
    #     exchange_send_email
    #   Workflows:
    #     example_of_exchange_create_meeting
    #     example_of_exchange_delete_emails
    #     example_of_exchange_find_emails
    #     example_of_exchange_get_mailbox_info
    #     example_of_exchange_move_emails
    #     example_of_exchange_send_email
    #     exchange_move_and_delete_folder
    #   Rules:
    #     Exchange Create Meeting
    #     Exchange Delete Emails
    #     Exchange Find Emails
    #     Exchange Get Mailbox Info
    #     Exchange Move Emails
    #     Exchange Move Folder Contents and Delete Folder
    #     Exchange Send Email


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

# -*- coding: utf-8 -*- Generate the Resilient customizations required for fn_exchange Parameters to codegen used to generate the fn_exchange package Produce any customization definitions (types, fields, message destinations, etc)        that should be installed by `resilient-circuits customize` # This import data contains: #   Action fields: #     exchange_delete_if_no_subfolders #     exchange_destination_folder_path #     exchange_email #     exchange_email_ids #     exchange_emails #     exchange_end_date #     exchange_folder_path #     exchange_get_email #     exchange_hard_delete #     exchange_has_attachments #     exchange_meeting_body #     exchange_meeting_end_time #     exchange_meeting_start_time #     exchange_meeting_subject #     exchange_message_body #     exchange_message_subject #     exchange_num_emails #     exchange_optional_attendees #     exchange_order_by_recency #     exchange_required_attendees #     exchange_search_subfolders #     exchange_sender #     exchange_start_date #   Function inputs: #     exchange_delete_if_no_subfolders #     exchange_destination_folder_path #     exchange_email #     exchange_email_ids #     exchange_emails #     exchange_end_date #     exchange_folder_path #     exchange_get_email #     exchange_hard_delete #     exchange_has_attachments #     exchange_meeting_body #     exchange_meeting_end_time #     exchange_meeting_start_time #     exchange_meeting_subject #     exchange_message_body #     exchange_message_subject #     exchange_num_emails #     exchange_optional_attendees #     exchange_order_by_recency #     exchange_required_attendees #     exchange_search_subfolders #     exchange_sender #     exchange_start_date #   Message Destinations: #     fn_exchange #   Functions: #     exchange_create_meeting #     exchange_delete_emails #     exchange_find_emails #     exchange_get_mailbox_info #     exchange_move_emails #     exchange_move_folder_contents_and_delete_folder #     exchange_send_email #   Workflows: #     example_of_exchange_create_meeting #     example_of_exchange_delete_emails #     example_of_exchange_find_emails #     example_of_exchange_get_mailbox_info #     example_of_exchange_move_emails #     example_of_exchange_send_email #     exchange_move_and_delete_folder #   Rules: #     Exchange Create Meeting #     Exchange Delete Emails #     Exchange Find Emails #     Exchange Get Mailbox Info #     Exchange Move Emails #     Exchange Move Folder Contents and Delete Folder #     Exchange Send Email <KEY> <KEY>