from CommonServerPython import timedelta
from datetime import datetime

RESPONSE_TICKET = {
    'parent': '', 'made_sla': 'false', 'caused_by': '', 'watch_list': '', 'upon_reject': '',
    'sys_updated_on': '2020-04-02 14:03:31',
    'child_incidents': '', 'hold_reason': '', 'approval_history': '', 'number': 'INC0000039', 'resolved_by': '',
    'sys_updated_by': 'admin',
    'opened_by': {'link': 'demisto.com', 'value': 'test'},
    'user_input': '', 'sys_created_on': '2019-09-05 00:42:29',
    'sys_domain': {'link': 'demisto.com', 'value': 'global'}, 'state': '1', 'sys_created_by': 'admin',
    'knowledge': 'false', 'order': '', 'calendar_stc': '', 'closed_at': '',
    'cmdb_ci': {'link': 'demisto.com', 'value': 'test'}, 'delivery_plan': '', 'impact': '2', 'active': 'true',
    'work_notes_list': '', 'business_service': '', 'priority': '4', 'sys_domain_path': '/', 'rfc': '',
    'time_worked': '', 'expected_start': '', 'opened_at': '2019-09-05 00:41:01', 'business_duration': '',
    'group_list': '', 'work_end': '', 'caller_id': {'link': 'demisto.com', 'value': 'test'},
    'reopened_time': '', 'resolved_at': '', 'approval_set': '', 'subcategory': '', 'work_notes': '',
    'short_description': 'Trouble getting to Oregon mail server', 'close_code': '', 'correlation_display': '',
    'delivery_task': '', 'work_start': '', 'assignment_group': {'link': 'demisto.com', 'value': 'test'},
    'additional_assignee_list': '', 'business_stc': '',
    'description': 'Unable to access Oregon mail server. Is it down?', 'calendar_duration': '', 'close_notes': '',
    'notify': '1', 'sys_class_name': 'incident', 'closed_by': '', 'follow_up': '', 'parent_incident': '',
    'sys_id': 'sys_id', 'contact_type': 'phone', 'reopened_by': '', 'incident_state': '1', 'urgency': '3',
    'problem_id': '', 'company': {'link': 'demisto.com', 'value': 'test'}, 'reassignment_count': '',
    'u_custom_field_test': 'NYC', 'activity_due': '', 'assigned_to': '', 'severity': '3', 'comments': '',
    'approval': 'not requested', 'sla_due': '2019-09-26 00:41:01', 'comments_and_work_notes': '', 'due_date': '',
    'sys_mod_count': '8', 'reopen_count': '', 'sys_tags': '', 'escalation': '0', 'upon_approval': '',
    'correlation_id': '', 'location': {'link': 'demisto.com', 'value': 'test'}, 'category': 'network'
}

RESPONSE_TICKET_ASSIGNED = {
    'result': [
        {
            'parent': '', 'made_sla': 'false', 'caused_by': '', 'watch_list': '', 'upon_reject': '',
            'sys_updated_on': '2020-04-02 14:03:31',
            'child_incidents': '', 'hold_reason': '', 'approval_history': '', 'number': 'INC0000039', 'resolved_by': '',
            'sys_updated_by': 'admin',
            'opened_by': {'link': 'demisto.com', 'value': 'test'},
            'user_input': '', 'sys_created_on': '2019-09-05 00:42:29',
            'sys_domain': {'link': 'demisto.com', 'value': 'global'}, 'state': '1', 'sys_created_by': 'admin',
            'knowledge': 'false', 'order': '', 'calendar_stc': '', 'closed_at': '',
            'cmdb_ci': {'link': 'demisto.com', 'value': 'test'}, 'delivery_plan': '', 'impact': '2', 'active': 'true',
            'work_notes_list': '', 'business_service': '', 'priority': '4', 'sys_domain_path': '/', 'rfc': '',
            'time_worked': '', 'expected_start': '', 'opened_at': '2019-09-05 00:41:01', 'business_duration': '',
            'group_list': '', 'work_end': '', 'caller_id': {'link': 'demisto.com', 'value': 'test'},
            'reopened_time': '', 'resolved_at': '', 'approval_set': '', 'subcategory': '', 'work_notes': '',
            'short_description': 'Trouble getting to Oregon mail server', 'close_code': '', 'correlation_display': '',
            'delivery_task': '', 'work_start': '', 'assignment_group': {'link': 'demisto.com', 'value': 'test'},
            'additional_assignee_list': '', 'business_stc': '',
            'description': 'Unable to access Oregon mail server. Is it down?', 'calendar_duration': '',
            'close_notes': '', 'notify': '1', 'sys_class_name': 'incident',
            'closed_by': '', 'follow_up': '', 'parent_incident': '',
            'sys_id': 'sys_id', 'contact_type': 'phone', 'reopened_by': '', 'incident_state': '1', 'urgency': '3',
            'problem_id': '', 'company': {'link': 'demisto.com', 'value': 'test'}, 'reassignment_count': '',
            'u_custom_field_test': 'NYC', 'activity_due': '', 'assigned_to': {"link": "link", "value": "123"},
            'severity': '3', 'comments': '',
            'approval': 'not requested', 'sla_due': '2019-09-26 00:41:01',
            'comments_and_work_notes': '', 'due_date': '',
            'sys_mod_count': '8', 'reopen_count': '', 'sys_tags': '', 'escalation': '0', 'upon_approval': '',
            'correlation_id': '', 'location': {'link': 'demisto.com', 'value': 'test'}, 'category': 'network'
        }
    ]
}

RESPONSE_TICKET_MIRROR = {'result': [{
    'parent': '', 'made_sla': 'false', 'caused_by': '', 'watch_list': '', 'upon_reject': '',
    'sys_updated_on': '2020-04-02 14:03:31',
    'child_incidents': '', 'hold_reason': '', 'approval_history': '', 'number': 'INC0000039', 'resolved_by': '',
    'sys_updated_by': 'admin',
    'opened_by': {'link': 'demisto.com', 'value': 'test'},
    'user_input': '', 'sys_created_on': '2019-09-05 00:42:29',
    'sys_domain': {'link': 'demisto.com', 'value': 'global'}, 'state': '1', 'sys_created_by': 'admin',
    'knowledge': 'false', 'order': '', 'calendar_stc': '', 'closed_at': '',
    'cmdb_ci': {'link': 'demisto.com', 'value': 'test'}, 'delivery_plan': '', 'impact': '2', 'active': 'true',
    'work_notes_list': '', 'business_service': '', 'priority': '4', 'sys_domain_path': '/', 'rfc': '',
    'time_worked': '', 'expected_start': '', 'opened_at': '2019-09-05 00:41:01', 'business_duration': '',
    'group_list': '', 'work_end': '', 'caller_id': '',
    'reopened_time': '', 'resolved_at': '', 'approval_set': '', 'subcategory': '', 'work_notes': '',
    'short_description': 'Trouble getting to Oregon mail server', 'close_code': '', 'correlation_display': '',
    'delivery_task': '', 'work_start': '', 'assignment_group':
        {"link": "https://dev59633.service-now.com/api/now/table/sys_user_group/8a5055c9c61122780043563ef53438e3",
         "value": "8a5055c9c61122780043563ef53438e3"},
    'additional_assignee_list': '', 'business_stc': '',
    'description': 'Unable to access Oregon mail server. Is it down?', 'calendar_duration': '', 'close_notes': '',
    'notify': '1', 'sys_class_name': 'incident', 'closed_by': '', 'follow_up': '', 'parent_incident': '',
    'sys_id': 'sys_id', 'contact_type': 'phone', 'reopened_by': '', 'incident_state': '1', 'urgency': '3',
    'problem_id': '', 'company': {'link': 'demisto.com', 'value': 'test'}, 'reassignment_count': '',
    'u_custom_field_test': 'NYC', 'activity_due': '', 'assigned_to': '', 'severity': '3', 'comments': '',
    'approval': 'not requested', 'sla_due': '2019-09-26 00:41:01', 'comments_and_work_notes': '', 'due_date': '',
    'sys_mod_count': '8', 'reopen_count': '', 'sys_tags': '', 'escalation': '0', 'upon_approval': '',
    'correlation_id': '', 'location': {'link': 'demisto.com', 'value': 'test'}, 'category': 'network'
    }]
}

USER_RESPONSE = {
    'result': {'first_name': 'Oscar', 'email': 'oscar@example.com'}}


RESPONSE_CLOSING_TICKET_MIRROR_CLOSED = {'result': [{
    'parent': '', 'made_sla': 'false', 'caused_by': '', 'watch_list': '', 'upon_reject': '',
    'sys_updated_on': '2020-04-02 14:03:31',
    'child_incidents': '', 'hold_reason': '', 'approval_history': '', 'number': 'INC0000039', 'resolved_by': '',
    'sys_updated_by': 'admin',
    'opened_by': {'link': 'demisto.com', 'value': 'test'},
    'user_input': '', 'sys_created_on': '2019-09-05 00:42:29',
    'sys_domain': {'link': 'demisto.com', 'value': 'global'}, 'state': '6', 'sys_created_by': 'admin',
    'knowledge': 'false', 'order': '', 'calendar_stc': '', 'closed_at': '2019-09-10 00:41:01',
    'cmdb_ci': {'link': 'demisto.com', 'value': 'test'}, 'delivery_plan': '', 'impact': '2', 'active': 'true',
    'work_notes_list': '', 'business_service': '', 'priority': '4', 'sys_domain_path': '/', 'rfc': '',
    'time_worked': '', 'expected_start': '', 'opened_at': '2019-09-05 00:41:01', 'business_duration': '',
    'group_list': '', 'work_end': '', 'caller_id': '',
    'reopened_time': '', 'approval_set': '', 'subcategory': '', 'work_notes': '',
    'short_description': 'Trouble getting to Oregon mail server', 'close_code': '', 'correlation_display': '',
    'delivery_task': '', 'work_start': '', 'assignment_group': {},
    'additional_assignee_list': '', 'business_stc': '',
    'description': 'Unable to access Oregon mail server. Is it down?', 'calendar_duration': '', 'close_notes': 'Test',
    'notify': '1', 'sys_class_name': 'incident', 'closed_by': '', 'follow_up': '', 'parent_incident': '',
    'sys_id': 'sys_id', 'contact_type': 'phone', 'reopened_by': '', 'incident_state': '1', 'urgency': '3',
    'problem_id': '', 'company': {'link': 'demisto.com', 'value': 'test'}, 'reassignment_count': '',
    'u_custom_field_test': 'NYC', 'activity_due': '', 'assigned_to': '', 'severity': '3', 'comments': '',
    'approval': 'not requested', 'sla_due': '2019-09-26 00:41:01', 'comments_and_work_notes': '', 'due_date': '',
    'sys_mod_count': '8', 'reopen_count': '', 'sys_tags': '', 'escalation': '0', 'upon_approval': '',
    'correlation_id': '', 'location': {'link': 'demisto.com', 'value': 'test'}, 'category': 'network'
    }]
}

RESPONSE_CLOSING_TICKET_MIRROR_RESOLVED = {'result': [{
    'parent': '', 'made_sla': 'false', 'caused_by': '', 'watch_list': '', 'upon_reject': '',
    'sys_updated_on': '2020-04-02 14:03:31',
    'child_incidents': '', 'hold_reason': '', 'approval_history': '', 'number': 'INC0000039', 'resolved_by': '',
    'sys_updated_by': 'admin',
    'opened_by': {'link': 'demisto.com', 'value': 'test'},
    'user_input': '', 'sys_created_on': '2019-09-05 00:42:29',
    'sys_domain': {'link': 'demisto.com', 'value': 'global'}, 'state': '6', 'sys_created_by': 'admin',
    'knowledge': 'false', 'order': '', 'calendar_stc': '', 'resolved_at': '2019-09-10 00:41:01',
    'cmdb_ci': {'link': 'demisto.com', 'value': 'test'}, 'delivery_plan': '', 'impact': '2', 'active': 'true',
    'work_notes_list': '', 'business_service': '', 'priority': '4', 'sys_domain_path': '/', 'rfc': '',
    'time_worked': '', 'expected_start': '', 'opened_at': '2019-09-05 00:41:01', 'business_duration': '',
    'group_list': '', 'work_end': '', 'caller_id': '',
    'reopened_time': '', 'approval_set': '', 'subcategory': '', 'work_notes': '',
    'short_description': 'Trouble getting to Oregon mail server', 'close_code': '', 'correlation_display': '',
    'delivery_task': '', 'work_start': '', 'assignment_group': {},
    'additional_assignee_list': '', 'business_stc': '',
    'description': 'Unable to access Oregon mail server. Is it down?', 'calendar_duration': '', 'close_notes': 'Test',
    'notify': '1', 'sys_class_name': 'incident', 'closed_by': '', 'follow_up': '', 'parent_incident': '',
    'sys_id': 'sys_id', 'contact_type': 'phone', 'reopened_by': '', 'incident_state': '1', 'urgency': '3',
    'problem_id': '', 'company': {'link': 'demisto.com', 'value': 'test'}, 'reassignment_count': '',
    'u_custom_field_test': 'NYC', 'activity_due': '', 'assigned_to': '', 'severity': '3', 'comments': '',
    'approval': 'not requested', 'sla_due': '2019-09-26 00:41:01', 'comments_and_work_notes': '', 'due_date': '',
    'sys_mod_count': '8', 'reopen_count': '', 'sys_tags': '', 'escalation': '0', 'upon_approval': '',
    'correlation_id': '', 'location': {'link': 'demisto.com', 'value': 'test'}, 'category': 'network'
    }]
}

RESPONSE_CLOSING_TICKET_MIRROR_CUSTOM = {'result': [{
    'parent': '', 'made_sla': 'false', 'caused_by': '', 'watch_list': '', 'upon_reject': '',
    'sys_updated_on': '2020-04-02 14:03:31',
    'child_incidents': '', 'hold_reason': '', 'approval_history': '', 'number': 'INC0000039', 'resolved_by': '',
    'sys_updated_by': 'admin',
    'opened_by': {'link': 'demisto.com', 'value': 'test'},
    'user_input': '', 'sys_created_on': '2019-09-05 00:42:29',
    'sys_domain': {'link': 'demisto.com', 'value': 'global'}, 'state': '9', 'sys_created_by': 'admin',
    'knowledge': 'false', 'order': '', 'calendar_stc': '',
    'cmdb_ci': {'link': 'demisto.com', 'value': 'test'}, 'delivery_plan': '', 'impact': '2', 'active': 'true',
    'work_notes_list': '', 'business_service': '', 'priority': '4', 'sys_domain_path': '/', 'rfc': '',
    'time_worked': '', 'expected_start': '', 'opened_at': '2019-09-05 00:41:01', 'business_duration': '',
    'group_list': '', 'work_end': '', 'caller_id': '',
    'reopened_time': '', 'approval_set': '', 'subcategory': '', 'work_notes': '',
    'short_description': 'Trouble getting to Oregon mail server', 'close_code': '', 'correlation_display': '',
    'delivery_task': '', 'work_start': '', 'assignment_group': {},
    'additional_assignee_list': '', 'business_stc': '',
    'description': 'Unable to access Oregon mail server. Is it down?', 'calendar_duration': '', 'close_notes': 'Test',
    'notify': '1', 'sys_class_name': 'incident', 'closed_by': '', 'follow_up': '', 'parent_incident': '',
    'sys_id': 'sys_id', 'contact_type': 'phone', 'reopened_by': '', 'incident_state': '1', 'urgency': '3',
    'problem_id': '', 'company': {'link': 'demisto.com', 'value': 'test'}, 'reassignment_count': '',
    'u_custom_field_test': 'NYC', 'activity_due': '', 'assigned_to': '', 'severity': '3', 'comments': '',
    'approval': 'not requested', 'sla_due': '2019-09-26 00:41:01', 'comments_and_work_notes': '', 'due_date': '',
    'sys_mod_count': '8', 'reopen_count': '', 'sys_tags': '', 'escalation': '0', 'upon_approval': '',
    'correlation_id': '', 'location': {'link': 'demisto.com', 'value': 'test'}, 'category': 'network'
    }]
}

RESPONSE_GET_ATTACHMENT = {'result': [{
    'size_bytes': '17', 'file_name': 'test.txt', 'sys_mod_count': '1', 'average_image_color': '', 'image_width': '',
    'sys_updated_on': '2020-08-16 17:54:16', 'sys_tags': '', 'table_name': 'incident',
    'sys_id': 'd722a127dbe6101053482fb74896195d', 'image_height': '', 'sys_updated_by': 'system',
    'download_link': 'https://dev59633.service-now.com/api/now/attachment/d722a127dbe6101053482fb74896195d/file',
    'content_type': 'text/plain', 'sys_created_on': '2020-08-16 17:54:15', 'size_compressed': '35',
    'compressed': 'true', 'state': 'available', 'table_sys_id': 'e6b06163dbe6101053482fb74896194e',
    'chunk_size_bytes': '700000', 'hash': '1669594220a92d73d62727293e988b4213b5b4829de36c3afe43c9b4f3ddf35e',
    'sys_created_by': 'admin'}]}


RESPONSE_MULTIPLE_TICKET = [
    {
        'parent': '', 'made_sla': 'false', 'caused_by': '', 'watch_list': '', 'upon_reject': '',
        'sys_updated_on': '2020-04-02 14:03:31',
        'child_incidents': '', 'hold_reason': '', 'approval_history': '', 'number': 'INC0000040', 'resolved_by': '',
        'sys_updated_by': 'admin',
        'opened_by': {'link': 'demisto.com', 'value': 'test2'},
        'user_input': '', 'sys_created_on': '2019-09-05 00:42:29',
        'sys_domain': {'link': 'demisto.com', 'value': 'global'}, 'state': '1', 'sys_created_by': 'admin',
        'knowledge': 'false', 'order': '', 'calendar_stc': '', 'closed_at': '',
        'cmdb_ci': {'link': 'demisto.com', 'value': 'test'}, 'delivery_plan': '', 'impact': '2', 'active': 'true',
        'work_notes_list': '', 'business_service': '', 'priority': '4', 'sys_domain_path': '/', 'rfc': '',
        'time_worked': '', 'expected_start': '', 'opened_at': '2019-09-05 00:41:01', 'business_duration': '',
        'group_list': '', 'work_end': '', 'caller_id': {'link': 'demisto.com', 'value': 'test'},
        'reopened_time': '', 'resolved_at': '', 'approval_set': '', 'subcategory': '', 'work_notes': '',
        'short_description': 'Trouble getting to Oregon mail server', 'close_code': '', 'correlation_display': '',
        'delivery_task': '', 'work_start': '', 'assignment_group': {'link': 'demisto.com', 'value': 'test'},
        'additional_assignee_list': '', 'business_stc': '',
        'description': 'Unable to access Oregon mail server. Is it down?', 'calendar_duration': '', 'close_notes': '',
        'notify': '1', 'sys_class_name': 'incident', 'closed_by': '', 'follow_up': '', 'parent_incident': '',
        'sys_id': 'sys_id', 'contact_type': 'phone', 'reopened_by': '', 'incident_state': '1', 'urgency': '3',
        'problem_id': '', 'company': {'link': 'demisto.com', 'value': 'test'}, 'reassignment_count': '',
        'u_custom_field_test': 'NYC', 'activity_due': '', 'assigned_to': '', 'severity': '3', 'comments': '',
        'approval': 'not requested', 'sla_due': '2019-09-26 00:41:01', 'comments_and_work_notes': '', 'due_date': '',
        'sys_mod_count': '8', 'reopen_count': '', 'sys_tags': '', 'escalation': '0', 'upon_approval': '',
        'correlation_id': '', 'location': {'link': 'demisto.com', 'value': 'test'}, 'category': 'network'
    },
    {
        'parent': '', 'made_sla': 'false', 'caused_by': '', 'watch_list': '', 'upon_reject': '',
        'sys_updated_on': '2020-04-02 14:03:31',
        'child_incidents': '', 'hold_reason': '', 'approval_history': '', 'number': 'INC0000039', 'resolved_by': '',
        'sys_updated_by': 'admin',
        'opened_by': {'link': 'demisto.com', 'value': 'test'},
        'user_input': '', 'sys_created_on': '2019-09-05 00:42:29',
        'sys_domain': {'link': 'demisto.com', 'value': 'global'}, 'state': '1', 'sys_created_by': 'admin',
        'knowledge': 'false', 'order': '', 'calendar_stc': '', 'closed_at': '',
        'cmdb_ci': {'link': 'demisto.com', 'value': 'test'}, 'delivery_plan': '', 'impact': '2', 'active': 'true',
        'work_notes_list': '', 'business_service': '', 'priority': '4', 'sys_domain_path': '/', 'rfc': '',
        'time_worked': '', 'expected_start': '', 'opened_at': '2019-09-05 00:41:01', 'business_duration': '',
        'group_list': '', 'work_end': '', 'caller_id': {'link': 'demisto.com', 'value': 'test'},
        'reopened_time': '', 'resolved_at': '', 'approval_set': '', 'subcategory': '', 'work_notes': '',
        'short_description': 'Trouble getting to Oregon mail server', 'close_code': '', 'correlation_display': '',
        'delivery_task': '', 'work_start': '', 'assignment_group': {'link': 'demisto.com', 'value': 'test'},
        'additional_assignee_list': '', 'business_stc': '',
        'description': 'Unable to access Oregon mail server. Is it down?', 'calendar_duration': '', 'close_notes': '',
        'notify': '1', 'sys_class_name': 'incident', 'closed_by': '', 'follow_up': '', 'parent_incident': '',
        'sys_id': 'sys_id', 'contact_type': 'phone', 'reopened_by': '', 'incident_state': '1', 'urgency': '3',
        'problem_id': '', 'company': {'link': 'demisto.com', 'value': 'test'}, 'reassignment_count': '',
        'u_custom_field_test': 'NYC', 'activity_due': '', 'assigned_to': '', 'severity': '3', 'comments': '',
        'approval': 'not requested', 'sla_due': '2019-09-26 00:41:01', 'comments_and_work_notes': '', 'due_date': '',
        'sys_mod_count': '8', 'reopen_count': '', 'sys_tags': '', 'escalation': '0', 'upon_approval': '',
        'correlation_id': '', 'location': {'link': 'demisto.com', 'value': 'test'}, 'category': 'network'
    }
]
RESPONSE_UPDATE_TICKET = {
    'result': {
        'parent': '', 'made_sla': 'false', 'caused_by': '', 'watch_list': '', 'upon_reject': '',
        'sys_updated_on': '2020-04-02 14:03:31',
        'child_incidents': '', 'hold_reason': '', 'approval_history': '', 'number': 'INC0000039', 'resolved_by': '',
        'sys_updated_by': 'admin',
        'opened_by': {'link': 'demisto.com', 'value': 'test'},
        'user_input': '', 'sys_created_on': '2019-09-05 00:42:29',
        'sys_domain': {'link': 'demisto.com', 'value': 'global'}, 'state': '1', 'sys_created_by': 'admin',
        'knowledge': 'false', 'order': '', 'calendar_stc': '', 'closed_at': '',
        'cmdb_ci': {'link': 'demisto.com', 'value': 'test'}, 'delivery_plan': '', 'impact': '2', 'active': 'true',
        'work_notes_list': '', 'business_service': '', 'priority': '4', 'sys_domain_path': '/', 'rfc': '',
        'time_worked': '', 'expected_start': '', 'opened_at': '2019-09-05 00:41:01', 'business_duration': '',
        'group_list': '', 'work_end': '', 'caller_id': {'link': 'demisto.com', 'value': 'test'},
        'reopened_time': '', 'resolved_at': '', 'approval_set': '', 'subcategory': '', 'work_notes': '',
        'short_description': 'Trouble getting to Oregon mail server', 'close_code': '', 'correlation_display': '',
        'delivery_task': '', 'work_start': '', 'assignment_group': {'link': 'demisto.com', 'value': 'test'},
        'additional_assignee_list': '', 'business_stc': '',
        'description': 'Unable to access Oregon mail server. Is it down?', 'calendar_duration': '', 'close_notes': '',
        'notify': '1', 'sys_class_name': 'incident', 'closed_by': '', 'follow_up': '', 'parent_incident': '',
        'sys_id': 'sys_id', 'contact_type': 'phone', 'reopened_by': '', 'incident_state': '1', 'urgency': '3',
        'problem_id': '', 'company': {'link': 'demisto.com', 'value': 'test'}, 'reassignment_count': '',
        'u_custom_field_test': 'NYC', 'activity_due': '', 'assigned_to': '', 'severity': '3', 'comments': '',
        'approval': 'not requested', 'sla_due': '2019-09-26 00:41:01', 'comments_and_work_notes': '', 'due_date': '',
        'sys_mod_count': '8', 'reopen_count': '', 'sys_tags': '', 'escalation': '0', 'upon_approval': '',
        'correlation_id': '', 'location': {'link': 'demisto.com', 'value': 'test'}, 'category': 'network'
    }
}
RESPONSE_CREATE_TICKET = {
    "result": {
        "active": "true",
        "activity_due": "",
        "additional_assignee_list": "",
        "approval": "not requested",
        "approval_history": "",
        "approval_set": "",
        "assigned_to": "",
        "assignment_group": "",
        "business_duration": "",
        "business_service": "",
        "business_stc": "",
        "calendar_duration": "",
        "calendar_stc": "",
        "caller_id": "",
        "category": "inquiry",
        "caused_by": "",
        "child_incidents": "0",
        "close_code": "",
        "close_notes": "",
        "closed_at": "",
        "closed_by": "",
        "cmdb_ci": "",
        "comments": "",
        "comments_and_work_notes": "",
        "company": "",
        "contact_type": "",
        "correlation_display": "",
        "correlation_id": "",
        "delivery_plan": "",
        "delivery_task": "",
        "description": "creating a test ticket",
        "due_date": "",
        "escalation": "0",
        "expected_start": "",
        "follow_up": "",
        "group_list": "",
        "hold_reason": "",
        "impact": "3",
        "incident_state": "1",
        "knowledge": "false",
        "location": "",
        "made_sla": "true",
        "notify": "1",
        "number": "INC0010007",
        "opened_at": "2020-04-06 13:04:44",
        "opened_by": {
            "link": "demisto.com",
            "value": "test"
        },
        "order": "",
        "parent": "",
        "parent_incident": "",
        "priority": "5",
        "problem_id": "",
        "reassignment_count": "0",
        "reopen_count": "0",
        "reopened_by": "",
        "reopened_time": "",
        "resolved_at": "",
        "resolved_by": "",
        "rfc": "",
        "severity": "3",
        "short_description": "",
        "sla_due": "2020-10-10 10:10:11",
        "state": "1",
        "subcategory": "",
        "sys_class_name": "incident",
        "sys_created_by": "admin",
        "sys_created_on": "2020-04-06 13:04:44",
        "sys_domain": {
            "link": "demisto.com",
            "value": "global"
        },
        "sys_domain_path": "/",
        "sys_id": "sys_id",
        "sys_mod_count": "0",
        "sys_tags": "",
        "sys_updated_by": "admin",
        "sys_updated_on": "2020-04-06 13:04:44",
        "time_worked": "",
        "u_custom_field_test": "",
        "upon_approval": "proceed",
        "upon_reject": "cancel",
        "urgency": "3",
        "user_input": "",
        "watch_list": "",
        "work_end": "",
        "work_notes": "",
        "work_notes_list": "",
        "work_start": ""
    }
}
RESPONSE_CREATE_TICKET_WITH_OUT_JSON = "The ticket was successfully created."
RESPONSE_UPDATE_TICKET_SC_REQ = {
    "result": {
        "active": "true",
        "activity_due": "",
        "additional_assignee_list": "",
        "approval": "requested",
        "approval_history": "",
        "approval_set": "",
        "assigned_to": "",
        "assignment_group": "",
        "backordered": "false",
        "billable": "false",
        "business_duration": "",
        "business_service": "",
        "calendar_duration": "",
        "cat_item": {
            "link": "demisto.com",
            "value": "admin"
        },
        "close_notes": "",
        "closed_at": "",
        "closed_by": "",
        "cmdb_ci": "",
        "comments": "",
        "comments_and_work_notes": "",
        "company": "",
        "configuration_item": "",
        "contact_type": "",
        "context": {
            "link": "demisto.com",
            "value": "admin"
        },
        "correlation_display": "",
        "correlation_id": "",
        "delivery_plan": "",
        "delivery_task": "",
        "description": "",
        "due_date": "2020-04-18 15:33:00",
        "escalation": "0",
        "estimated_delivery": "",
        "expected_start": "",
        "follow_up": "",
        "group_list": "",
        "impact": "3",
        "knowledge": "false",
        "location": "",
        "made_sla": "true",
        "number": "RITM0010028",
        "opened_at": "2020-04-16 15:33:00",
        "opened_by": {
            "link": "demisto.com",
            "value": "admin"
        },
        "order": "",
        "order_guide": "",
        "parent": "",
        "price": "139.99",
        "priority": "4",
        "quantity": "1",
        "reassignment_count": "0",
        "recurring_frequency": "",
        "recurring_price": "0",
        "request": {
            "link": "demisto.com",
            "value": "admin"
        },
        "sc_catalog": "",
        "short_description": "Microsoft Access",
        "sla_due": "",
        "stage": "fulfillment",
        "state": "1",
        "sys_class_name": "sc_req_item",
        "sys_created_by": "admin",
        "sys_created_on": "2020-04-16 15:33:00",
        "sys_domain": {
            "link": "demisto.com",
            "value": "global"
        },
        "sys_domain_path": "/",
        "sys_id": "1234",
        "sys_mod_count": "2",
        "sys_tags": "",
        "sys_updated_by": "admin",
        "sys_updated_on": "2020-04-21 07:35:26",
        "time_worked": "",
        "upon_approval": "proceed",
        "upon_reject": "cancel",
        "urgency": "3",
        "user_input": "",
        "watch_list": "",
        "work_end": "",
        "work_notes": "",
        "work_notes_list": "",
        "work_start": ""
    }
}
RESPONSE_UPDATE_TICKET_ADDITIONAL = {
    "result": {
        "active": "true",
        "activity_due": "",
        "additional_assignee_list": "",
        "approval": "rejected",
        "approval_history": "",
        "approval_set": "",
        "assigned_to": "",
        "assignment_group": {
            "link": "demisto.com",
            "value": "admin"
        },
        "business_duration": "",
        "business_service": "",
        "business_stc": "",
        "calendar_duration": "",
        "calendar_stc": "",
        "caller_id": {
            "link": "demisto.com",
            "value": "admin"
        },
        "category": "network",
        "caused_by": "",
        "child_incidents": "",
        "close_code": "",
        "close_notes": "",
        "closed_at": "",
        "closed_by": "",
        "cmdb_ci": {
            "link": "demisto.com",
            "value": "admin"
        },
        "comments": "",
        "comments_and_work_notes": "",
        "company": {
            "link": "demisto.com",
            "value": "admin"
        },
        "contact_type": "phone",
        "correlation_display": "",
        "correlation_id": "",
        "delivery_plan": "",
        "delivery_task": "",
        "description": "Unable to access Oregon mail server. Is it down?",
        "due_date": "",
        "escalation": "0",
        "expected_start": "",
        "follow_up": "",
        "group_list": "",
        "hold_reason": "",
        "impact": "3",
        "incident_state": "1",
        "knowledge": "false",
        "location": {
            "link": "demisto.com",
            "value": "admin"
        },
        "made_sla": "false",
        "notify": "1",
        "number": "INC0000039",
        "opened_at": "2019-09-05 00:41:01",
        "opened_by": {
            "link": "demisto.com",
            "value": "admin"
        },
        "order": "",
        "parent": "",
        "parent_incident": "",
        "priority": "5",
        "problem_id": "",
        "reassignment_count": "",
        "reopen_count": "",
        "reopened_by": "",
        "reopened_time": "",
        "resolved_at": "",
        "resolved_by": "",
        "rfc": "",
        "severity": "3",
        "short_description": "Trouble getting to Oregon mail server",
        "sla_due": "2019-09-26 00:41:01",
        "state": "1",
        "subcategory": "",
        "sys_class_name": "incident",
        "sys_created_by": "admin",
        "sys_created_on": "2019-09-05 00:42:29",
        "sys_domain": {
            "link": "demisto.com",
            "value": "admin"
        },
        "sys_domain_path": "/",
        "sys_id": "1234",
        "sys_mod_count": "15",
        "sys_tags": "",
        "sys_updated_by": "admin",
        "sys_updated_on": "2020-04-22 07:50:03",
        "time_worked": "",
        "u_custom_field_test": "eyy123",
        "upon_approval": "",
        "upon_reject": "",
        "urgency": "3",
        "user_input": "",
        "watch_list": "",
        "work_end": "",
        "work_notes": "",
        "work_notes_list": "",
        "work_start": ""
    }
}
RESPONSE_QUERY_TICKETS = {
    "result": [
        {
            "active": "false",
            "activity_due": "",
            "additional_assignee_list": "",
            "approval": "",
            "approval_history": "",
            "approval_set": "",
            "assigned_to": {
                "link": "demisto.com",
                "value": "admin"
            },
            "assignment_group": {
                "link": "demisto.com",
                "value": "admin"
            },
            "business_duration": "1970-01-22 21:46:21",
            "business_service": "",
            "business_stc": "1892781",
            "calendar_duration": "1970-04-02 20:46:21",
            "calendar_stc": "7937181",
            "caller_id": {
                "link": "demisto.com",
                "value": "admin"
            },
            "category": "network",
            "caused_by": "",
            "child_incidents": "",
            "close_code": "Closed/Resolved by Caller",
            "close_notes": "Closed before close notes were made mandatory\n\t\t",
            "closed_at": "2019-09-03 23:10:06",
            "closed_by": {
                "link": "demisto.com",
                "value": "admin"
            },
            "cmdb_ci": {
                "link": "demisto.com",
                "value": "admin"
            },
            "comments": "",
            "comments_and_work_notes": "",
            "company": "",
            "contact_type": "",
            "correlation_display": "",
            "correlation_id": "",
            "delivery_plan": "",
            "delivery_task": "",
            "description": "User can't access email on mail.company.com.\n\t\t",
            "due_date": "",
            "escalation": "0",
            "expected_start": "",
            "follow_up": "",
            "group_list": "",
            "hold_reason": "",
            "impact": "1",
            "incident_state": "7",
            "knowledge": "false",
            "location": {
                "link": "demisto.com",
                "value": "admin"
            },
            "made_sla": "false",
            "notify": "1",
            "number": "INC0000001",
            "opened_at": "2019-09-02 23:09:51",
            "opened_by": {
                "link": "demisto.com",
                "value": "admin"
            },
            "order": "",
            "parent": "",
            "parent_incident": "",
            "priority": "1",
            "problem_id": {
                "link": "demisto.com",
                "value": "admin"
            },
            "reassignment_count": "1",
            "reopen_count": "",
            "reopened_by": "",
            "reopened_time": "",
            "resolved_at": "2019-12-03 19:56:12",
            "resolved_by": {
                "link": "demisto.com",
                "value": "admin"
            },
            "rfc": "",
            "severity": "1",
            "short_description": "Can't read email",
            "sla_due": "",
            "state": "7",
            "subcategory": "",
            "sys_class_name": "incident",
            "sys_created_by": "pat",
            "sys_created_on": "2018-04-03 18:24:13",
            "sys_domain": {
                "link": "demisto.com",
                "value": "global"
            },
            "sys_domain_path": "/",
            "sys_id": "sys_id",
            "sys_mod_count": "21",
            "sys_tags": "",
            "sys_updated_by": "admin",
            "sys_updated_on": "2019-12-03 20:16:07",
            "time_worked": "",
            "u_custom_field_test": "",
            "upon_approval": "",
            "upon_reject": "",
            "urgency": "1",
            "user_input": "",
            "watch_list": "",
            "work_end": "",
            "work_notes": "",
            "work_notes_list": "",
            "work_start": ""
        },
        {
            "active": "true",
            "activity_due": "2019-12-03 21:51:11",
            "additional_assignee_list": "",
            "approval": "",
            "approval_history": "",
            "approval_set": "",
            "assigned_to": {
                "link": "demisto.com",
                "value": "admin"
            },
            "assignment_group": {
                "link": "demisto.com",
                "value": "admin"
            },
            "business_duration": "",
            "business_service": "",
            "business_stc": "",
            "calendar_duration": "",
            "calendar_stc": "",
            "caller_id": {
                "link": "demisto.com",
                "value": "admin"
            },
            "category": "network",
            "caused_by": "",
            "child_incidents": "",
            "close_code": "",
            "close_notes": "",
            "closed_at": "",
            "closed_by": "",
            "cmdb_ci": {
                "link": "demisto.com",
                "value": "admin"
            },
            "comments": "",
            "comments_and_work_notes": "",
            "company": "",
            "contact_type": "",
            "correlation_display": "",
            "correlation_id": "",
            "delivery_plan": "",
            "delivery_task": "",
            "description": "User can't get to any of his files on the file server.",
            "due_date": "",
            "escalation": "3",
            "expected_start": "",
            "follow_up": "",
            "group_list": "",
            "hold_reason": "4",
            "impact": "1",
            "incident_state": "3",
            "knowledge": "false",
            "location": {
                "link": "demisto.com",
                "value": "admin"
            },
            "made_sla": "false",
            "notify": "1",
            "number": "INC0000002",
            "opened_at": "2019-08-27 23:07:12",
            "opened_by": {
                "link": "demisto.com",
                "value": "admin"
            },
            "order": "",
            "parent": "",
            "parent_incident": "",
            "priority": "1",
            "problem_id": {
                "link": "demisto.com",
                "value": "admin"
            },
            "reassignment_count": "1",
            "reopen_count": "",
            "reopened_by": "",
            "reopened_time": "",
            "resolved_at": "",
            "resolved_by": "",
            "rfc": "",
            "severity": "1",
            "short_description": "Network file shares access issue",
            "sla_due": "",
            "state": "3",
            "subcategory": "",
            "sys_class_name": "incident",
            "sys_created_by": "pat",
            "sys_created_on": "2018-03-23 22:30:06",
            "sys_domain": {
                "link": "demisto.com",
                "value": "global"
            },
            "sys_domain_path": "/",
            "sys_id": "sys_id",
            "sys_mod_count": "17",
            "sys_tags": "",
            "sys_updated_by": "admin",
            "sys_updated_on": "2019-12-03 19:51:11",
            "time_worked": "",
            "u_custom_field_test": "",
            "upon_approval": "",
            "upon_reject": "",
            "urgency": "1",
            "user_input": "",
            "watch_list": "",
            "work_end": "",
            "work_notes": "",
            "work_notes_list": "",
            "work_start": ""
        },
        {
            "active": "true",
            "activity_due": "2019-12-03 21:51:14",
            "additional_assignee_list": "",
            "approval": "",
            "approval_history": "",
            "approval_set": "",
            "assigned_to": {
                "link": "demisto.com",
                "value": "admin"
            },
            "assignment_group": {
                "link": "demisto.com",
                "value": "admin"
            },
            "business_duration": "",
            "business_service": "",
            "business_stc": "",
            "calendar_duration": "",
            "calendar_stc": "",
            "caller_id": {
                "link": "demisto.com",
                "value": "admin"
            },
            "category": "network",
            "caused_by": "",
            "child_incidents": "",
            "close_code": "",
            "close_notes": "",
            "closed_at": "",
            "closed_by": "",
            "cmdb_ci": "",
            "comments": "",
            "comments_and_work_notes": "",
            "company": {
                "link": "demisto.com",
                "value": "admin"
            },
            "contact_type": "",
            "correlation_display": "",
            "correlation_id": "",
            "delivery_plan": "",
            "delivery_task": "",
            "description": "I just moved from floor 2 to floor 3 and my laptop cannot connect to any wireless network.",
            "due_date": "",
            "escalation": "0",
            "expected_start": "",
            "follow_up": "",
            "group_list": "",
            "hold_reason": "",
            "impact": "1",
            "incident_state": "2",
            "knowledge": "false",
            "location": {
                "link": "demisto.com",
                "value": "admin"
            },
            "made_sla": "false",
            "notify": "1",
            "number": "INC0000003",
            "opened_at": "2019-09-03 23:07:30",
            "opened_by": {
                "link": "demisto.com",
                "value": "admin"
            },
            "order": "",
            "parent": "",
            "parent_incident": "",
            "priority": "1",
            "problem_id": "",
            "reassignment_count": "2",
            "reopen_count": "",
            "reopened_by": "",
            "reopened_time": "",
            "resolved_at": "",
            "resolved_by": "",
            "rfc": "",
            "severity": "1",
            "short_description": "Wireless access is down in my area",
            "sla_due": "",
            "state": "2",
            "subcategory": "",
            "sys_class_name": "incident",
            "sys_created_by": "admin",
            "sys_created_on": "2018-04-07 14:41:46",
            "sys_domain": {
                "link": "demisto.com",
                "value": "global"
            },
            "sys_domain_path": "/",
            "sys_id": "sys_id",
            "sys_mod_count": "12",
            "sys_tags": "",
            "sys_updated_by": "admin",
            "sys_updated_on": "2019-12-03 19:51:14",
            "time_worked": "",
            "u_custom_field_test": "",
            "upon_approval": "",
            "upon_reject": "",
            "urgency": "1",
            "user_input": "",
            "watch_list": "",
            "work_end": "",
            "work_notes": "",
            "work_notes_list": "",
            "work_start": ""
        }
    ]
}
RESPONSE_QUERY_TICKETS_EXCLUDE_REFERENCE_LINK = {
    "result": [
        {
            "parent": "",
            "made_sla": "false",
            "caused_by": "",
            "watch_list": "",
            "upon_reject": "",
            "sys_updated_on": "06/08/2020 13:16:07",
            "child_incidents": "",
            "hold_reason": "",
            "task_effective_number": "INC0000001",
            "approval_history": "",
            "number": "INC0000001",
            "resolved_by": "System Administrator",
            "sys_updated_by": "admin",
            "opened_by": "Joe Employee",
            "user_input": "",
            "sys_created_on": "06/12/2018 10:24:13",
            "sys_domain": "global",
            "state": "Closed",
            "route_reason": "",
            "sys_created_by": "pat",
            "knowledge": "false",
            "order": "",
            "calendar_stc": "7,937,181",
            "closed_at": "07/05/2020 16:10:06",
            "cmdb_ci": "MailServerUS",
            "delivery_plan": "",
            "contract": "",
            "impact": "1 - High",
            "active": "false",
            "work_notes_list": "",
            "business_service": "",
            "priority": "1 - Critical",
            "sys_domain_path": "/",
            "rfc": "",
            "time_worked": "",
            "expected_start": "",
            "opened_at": "06/05/2020 16:09:51",
            "business_duration": "21 Days 21 Hours 46 Minutes",
            "group_list": "",
            "work_end": "",
            "caller_id": "Fred Luddy",
            "reopened_time": "",
            "resolved_at": "06/08/2020 12:56:12",
            "approval_set": "",
            "subcategory": "",
            "work_notes": "",
            "universal_request": "",
            "short_description": "Can't read email",
            "close_code": "Closed/Resolved by Caller",
            "correlation_display": "",
            "delivery_task": "",
            "work_start": "",
            "assignment_group": "Service Desk",
            "additional_assignee_list": "",
            "business_stc": "1,892,781",
            "description": "User can't access email on mail.company.com.\n\t\t",
            "calendar_duration": "91 Days 20 Hours 46 Minutes",
            "close_notes": "Closed before close notes were made mandatory\n\t\t",
            "notify": "Do Not Notify",
            "service_offering": "",
            "sys_class_name": "Incident",
            "closed_by": "Don Goodliffe",
            "follow_up": "",
            "parent_incident": "",
            "sys_id": "9c573169c611228700193229fff72400",
            "contact_type": "",
            "reopened_by": "",
            "incident_state": "Closed",
            "urgency": "1 - High",
            "problem_id": "PRB0000007",
            "company": "",
            "reassignment_count": "1",
            "activity_due": "UNKNOWN",
            "assigned_to": "Charlie Whitherspoon",
            "severity": "1 - High",
            "comments": "",
            "approval": "",
            "sla_due": "UNKNOWN",
            "comments_and_work_notes": "",
            "due_date": "",
            "sys_mod_count": "21",
            "reopen_count": "",
            "sys_tags": "",
            "escalation": "Normal",
            "upon_approval": "",
            "correlation_id": "",
            "location": "2617 South Robinson Avenue, Oklahoma City,OK",
            "category": "Network"
        }
    ]
}
RESPONSE_ADD_LINK = {
    "result": {
        "active": "false",
        "activity_due": "",
        "additional_assignee_list": "",
        "approval": "",
        "approval_history": "",
        "approval_set": "",
        "assigned_to": {
            "link": "demisto.com",
            "value": "admin"
        },
        "assignment_group": {
            "link": "demisto.com",
            "value": "admin"
        },
        "business_duration": "1970-01-22 21:46:21",
        "business_service": "",
        "business_stc": "1892781",
        "calendar_duration": "1970-04-02 20:46:21",
        "calendar_stc": "7937181",
        "caller_id": {
            "link": "demisto.com",
            "value": "admin"
        },
        "category": "network",
        "caused_by": "",
        "child_incidents": "",
        "close_code": "Closed/Resolved by Caller",
        "close_notes": "Closed before close notes were made mandatory\n\t\t",
        "closed_at": "2019-09-03 23:10:06",
        "closed_by": {
            "link": "demisto.com",
            "value": "admin"
        },
        "cmdb_ci": {
            "link": "demisto.com",
            "value": "admin"
        },
        "comments": "",
        "comments_and_work_notes": "",
        "company": {
            "link": "demisto.com",
            "value": "admin"
        },
        "contact_type": "",
        "correlation_display": "",
        "correlation_id": "",
        "delivery_plan": "",
        "delivery_task": "",
        "description": "User can't access email on mail.company.com.\n\t\t",
        "due_date": "",
        "escalation": "0",
        "expected_start": "",
        "follow_up": "",
        "group_list": "",
        "hold_reason": "",
        "impact": "1",
        "incident_state": "7",
        "knowledge": "false",
        "location": {
            "link": "demisto.com",
            "value": "admin"
        },
        "made_sla": "false",
        "notify": "1",
        "number": "INC0000001",
        "opened_at": "2019-09-02 23:09:51",
        "opened_by": {
            "link": "demisto.com",
            "value": "admin"
        },
        "order": "",
        "parent": "",
        "parent_incident": "",
        "priority": "1",
        "problem_id": {
            "link": "demisto.com",
            "value": "admin"
        },
        "reassignment_count": "1",
        "reopen_count": "",
        "reopened_by": "",
        "reopened_time": "",
        "resolved_at": "2019-12-03 19:56:12",
        "resolved_by": {
            "link": "demisto.com",
            "value": "admin"
        },
        "rfc": "",
        "severity": "1",
        "short_description": "Can't read email",
        "sla_due": "",
        "state": "7",
        "subcategory": "",
        "sys_class_name": "incident",
        "sys_created_by": "pat",
        "sys_created_on": "2018-04-03 18:24:13",
        "sys_domain": {
            "link": "demisto.com",
            "value": "global"
        },
        "sys_domain_path": "/",
        "sys_id": "sys_id",
        "sys_mod_count": "23",
        "sys_tags": "",
        "sys_updated_by": "admin",
        "sys_updated_on": "2020-04-07 07:26:01",
        "time_worked": "",
        "u_custom_field_test": "",
        "upon_approval": "",
        "upon_reject": "",
        "urgency": "1",
        "user_input": "",
        "watch_list": "",
        "work_end": "",
        "work_notes": "",
        "work_notes_list": "",
        "work_start": ""
    }
}
RESPONSE_ADD_COMMENT = {
    "result": {
        "active": "false",
        "activity_due": "",
        "additional_assignee_list": "",
        "approval": "",
        "approval_history": "",
        "approval_set": "",
        "assigned_to": {
            "link": "demisto.com",
            "value": "admin"
        },
        "assignment_group": {
            "link": "demisto.com",
            "value": "admin"
        },
        "business_duration": "1970-01-22 21:46:21",
        "business_service": "",
        "business_stc": "1892781",
        "calendar_duration": "1970-04-02 20:46:21",
        "calendar_stc": "7937181",
        "caller_id": {
            "link": "demisto.com",
            "value": "admin"
        },
        "category": "network",
        "caused_by": "",
        "child_incidents": "",
        "close_code": "Closed/Resolved by Caller",
        "close_notes": "Closed before close notes were made mandatory\n\t\t",
        "closed_at": "2019-09-03 23:10:06",
        "closed_by": {
            "link": "demisto.com",
            "value": "admin"
        },
        "cmdb_ci": {
            "link": "demisto.com",
            "value": "admin"
        },
        "comments": "",
        "comments_and_work_notes": "",
        "company": {
            "link": "demisto.com",
            "value": "admin"
        },
        "contact_type": "",
        "correlation_display": "",
        "correlation_id": "",
        "delivery_plan": "",
        "delivery_task": "",
        "description": "User can't access email on mail.company.com.\n\t\t",
        "due_date": "",
        "escalation": "0",
        "expected_start": "",
        "follow_up": "",
        "group_list": "",
        "hold_reason": "",
        "impact": "1",
        "incident_state": "7",
        "knowledge": "false",
        "location": {
            "link": "demisto.com",
            "value": "admin"
        },
        "made_sla": "false",
        "notify": "1",
        "number": "INC0000001",
        "opened_at": "2019-09-02 23:09:51",
        "opened_by": {
            "link": "demisto.com",
            "value": "admin"
        },
        "order": "",
        "parent": "",
        "parent_incident": "",
        "priority": "1",
        "problem_id": {
            "link": "demisto.com",
            "value": "admin"
        },
        "reassignment_count": "1",
        "reopen_count": "",
        "reopened_by": "",
        "reopened_time": "",
        "resolved_at": "2019-12-03 19:56:12",
        "resolved_by": {
            "link": "demisto.com",
            "value": "admin"
        },
        "rfc": "",
        "severity": "1",
        "short_description": "Can't read email",
        "sla_due": "",
        "state": "7",
        "subcategory": "",
        "sys_class_name": "incident",
        "sys_created_by": "pat",
        "sys_created_on": "2018-04-03 18:24:13",
        "sys_domain": {
            "link": "demisto.com",
            "value": "global"
        },
        "sys_domain_path": "/",
        "sys_id": "sys_id",
        "sys_mod_count": "23",
        "sys_tags": "",
        "sys_updated_by": "admin",
        "sys_updated_on": "2020-04-07 07:26:01",
        "time_worked": "",
        "u_custom_field_test": "",
        "upon_approval": "",
        "upon_reject": "",
        "urgency": "1",
        "user_input": "",
        "watch_list": "",
        "work_end": "",
        "work_notes": "",
        "work_notes_list": "",
        "work_start": ""
    }
}
RESPONSE_UPLOAD_FILE = {
    "result": {
        "average_image_color": "",
        "chunk_size_bytes": "734003",
        "compressed": "true",
        "content_type": "text/plain",
        "download_link": "test_link",
        "file_name": "test_file",
        "image_height": "",
        "image_width": "",
        "size_bytes": "224925",
        "size_compressed": "163377",
        "state": "pending",
        "sys_created_by": "admin",
        "sys_created_on": "2020-04-07 08:07:44",
        "sys_id": "system_id",
        "sys_mod_count": "0",
        "sys_tags": "",
        "sys_updated_by": "admin",
        "sys_updated_on": "2020-04-07 08:07:44",
        "table_name": "incident",
        "table_sys_id": "system_id"
    }
}
RESPONSE_GET_TICKET_NOTES = {
    "result": [
        {
            "element": "work_notes",
            "element_id": "element_id",
            "name": "incident",
            "sys_created_by": "admin",
            "sys_created_on": "2020-04-07 07:32:12",
            "sys_id": "sys_id",
            "sys_tags": "",
            "value": "[code]\u003ca class=\"web\" target=\"_blank\" href=\"http://www.demisto.com\""
                     " \u003edemsito_link\u003c/a\u003e[/code]"
        },
        {
            "element": "work_notes",
            "element_id": "element_id",
            "name": "incident",
            "sys_created_by": "admin",
            "sys_created_on": "2020-04-07 07:25:51",
            "sys_id": "sys_id",
            "sys_tags": "",
            "value": "[code]\u003ca class=\"web\" target=\"_blank\" href=\"http://www.demisto.com\""
                     " \u003edemsito_link\u003c/a\u003e[/code]"
        },
        {
            "element": "work_notes",
            "element_id": "element_id",
            "name": "incident",
            "sys_created_by": "admin",
            "sys_created_on": "2020-04-07 07:46:34",
            "sys_id": "sys_id",
            "sys_tags": "",
            "value": "Nice work!"
        },
        {
            "element": "work_notes",
            "element_id": "element_id",
            "name": "incident",
            "sys_created_by": "admin",
            "sys_created_on": "2020-04-07 07:46:25",
            "sys_id": "sys_id",
            "sys_tags": "",
            "value": "Nice work!"
        },
        {
            "element": "work_notes",
            "element_id": "9c573169c611228700193229fff72400",
            "name": "incident",
            "sys_created_by": "admin",
            "sys_created_on": "2020-04-07 07:26:01",
            "sys_id": "d31a605ddb845010ebea8a18489619e2",
            "sys_tags": "",
            "value": "[code]\u003ca class=\"web\" target=\"_blank\" href=\"http://www.demisto.com\""
                     " \u003edemsito_link\u003c/a\u003e[/code]"
        }
    ]
}
RESPONSE_GET_RECORD = {
    "result": {
        "acquisition_method": "",
        "asset_tag": "P1000479",
        "assigned": "2017-10-31 07:00:00",
        "assigned_to": {
            "link": "demisto.com",
            "value": "admin"
        },
        "beneficiary": "",
        "checked_in": "",
        "checked_out": "",
        "ci": {
            "link": "demisto.com",
            "value": "admin"
        },
        "comments": "",
        "company": {
            "link": "demisto.com",
            "value": "admin"
        },
        "cost": "1799.99",
        "cost_center": {
            "link": "demisto.com",
            "value": "admin"
        },
        "delivery_date": "2017-04-20 07:00:00",
        "department": {
            "link": "demisto.com",
            "value": "admin"
        },
        "depreciated_amount": "1023.64",
        "depreciation": {
            "link": "demisto.com",
            "value": "admin"
        },
        "depreciation_date": "2017-06-03 07:00:00",
        "display_name": "P1000479 - Apple MacBook Pro 15\"",
        "disposal_reason": "",
        "due": "",
        "due_in": "",
        "expenditure_type": "",
        "gl_account": "",
        "install_date": "2017-06-02 07:00:00",
        "install_status": "1",
        "invoice_number": "",
        "justification": "",
        "lease_id": "",
        "location": {
            "link": "demisto.com",
            "value": "admin"
        },
        "managed_by": "",
        "model": {
            "link": "demisto.com",
            "value": "admin"
        },
        "model_category": {
            "link": "demisto.com",
            "value": "admin"
        },
        "old_status": "",
        "old_substatus": "",
        "order_date": "2017-03-27 07:00:00",
        "owned_by": "",
        "parent": "",
        "po_number": "PO100004",
        "pre_allocated": "false",
        "purchase_date": "2017-04-09",
        "quantity": "1",
        "request_line": "",
        "resale_price": "0",
        "reserved_for": "",
        "residual": "776.35",
        "residual_date": "2020-04-07",
        "retired": "",
        "retirement_date": "",
        "salvage_value": "0",
        "serial_number": "BQP-854-D33246-GH",
        "skip_sync": "false",
        "stockroom": "",
        "substatus": "",
        "support_group": "",
        "supported_by": "",
        "sys_class_name": "alm_hardware",
        "sys_created_by": "admin",
        "sys_created_on": "2019-02-23 08:14:21",
        "sys_domain": {
            "link": "demisto.com",
            "value": "global"
        },
        "sys_domain_path": "/",
        "sys_id": "sys_id",
        "sys_mod_count": "18",
        "sys_tags": "",
        "sys_updated_by": "system",
        "sys_updated_on": "2020-04-07 06:31:50",
        "vendor": {
            "link": "demisto.com",
            "value": "admin"
        },
        "warranty_expiration": "2020-06-01",
        "work_notes": ""
    }
}
RESPONSE_UPDATE_RECORD = {
    "result": {
        "acquisition_method": "",
        "asset_tag": "P1000479",
        "assigned": "2017-10-31 07:00:00",
        "assigned_to": {
            "link": "demisto.com",
            "value": "admin"
        },
        "beneficiary": "",
        "checked_in": "",
        "checked_out": "",
        "ci": {
            "link": "demisto.com",
            "value": "admin"
        },
        "comments": "",
        "company": {
            "link": "demisto.com",
            "value": "admin"
        },
        "cost": "1799.99",
        "cost_center": {
            "link": "demisto.com",
            "value": "admin"
        },
        "delivery_date": "2017-04-20 07:00:00",
        "department": {
            "link": "demisto.com",
            "value": "admin"
        },
        "depreciated_amount": "1023.64",
        "depreciation": {
            "link": "demisto.com",
            "value": "admin"
        },
        "depreciation_date": "2017-06-03 07:00:00",
        "display_name": "P1000479 - Apple MacBook Pro 15\"",
        "disposal_reason": "",
        "due": "",
        "due_in": "",
        "expenditure_type": "",
        "gl_account": "",
        "install_date": "2017-06-02 07:00:00",
        "install_status": "1",
        "invoice_number": "",
        "justification": "",
        "lease_id": "",
        "location": {
            "link": "demisto.com",
            "value": "admin"
        },
        "managed_by": "",
        "model": {
            "link": "demisto.com",
            "value": "admin"
        },
        "model_category": {
            "link": "demisto.com",
            "value": "admin"
        },
        "old_status": "",
        "old_substatus": "",
        "order_date": "2017-03-27 07:00:00",
        "owned_by": "",
        "parent": "",
        "po_number": "PO100004",
        "pre_allocated": "false",
        "purchase_date": "2017-04-09",
        "quantity": "1",
        "request_line": "",
        "resale_price": "0",
        "reserved_for": "",
        "residual": "776.35",
        "residual_date": "2020-04-07",
        "retired": "",
        "retirement_date": "",
        "salvage_value": "0",
        "serial_number": "BQP-854-D33246-GH",
        "skip_sync": "false",
        "stockroom": "",
        "substatus": "",
        "support_group": "",
        "supported_by": "",
        "sys_class_name": "alm_hardware",
        "sys_created_by": "admin",
        "sys_created_on": "2019-02-23 08:14:21",
        "sys_domain": {
            "link": "demisto.com",
            "value": "global"
        },
        "sys_domain_path": "/",
        "sys_id": "sys_id",
        "sys_mod_count": "18",
        "sys_tags": "",
        "sys_updated_by": "system",
        "sys_updated_on": "2020-04-07 06:31:50",
        "vendor": {
            "link": "demisto.com",
            "value": "admin"
        },
        "warranty_expiration": "2020-06-01",
        "work_notes": ""
    }
}
RESPONSE_CREATE_RECORD = {
    "result": {
        'parent': '', 'skip_sync': 'false', 'residual_date': '', 'residual': '0',
        'sys_updated_on': '2020-04-07 12:48:38', 'request_line': '', 'sys_updated_by': 'admin',
        'due_in': '', 'model_category': '', 'sys_created_on': '2020-04-07 12:48:38',
        'sys_domain': {'link': 'demisto.com', 'value': 'global'}, 'disposal_reason': '', 'model': '',
        'install_date': '', 'gl_account': '', 'invoice_number': '', 'sys_created_by': 'admin',
        'warranty_expiration': '', 'asset_tag': 'P4325434', 'depreciated_amount': '0', 'substatus': '',
        'pre_allocated': 'false', 'owned_by': '', 'checked_out': '', 'display_name': 'P4325434 -',
        'sys_domain_path': '/', 'delivery_date': '', 'retirement_date': '', 'beneficiary': '',
        'install_status': '1', 'cost_center': '', 'supported_by': '', 'assigned': '', 'purchase_date': '',
        'work_notes': '', 'managed_by': '', 'sys_class_name': 'alm_asset', 'sys_id': 'sys_id', 'po_number': '',
        'stockroom': '', 'checked_in': '', 'resale_price': '0', 'vendor': '', 'company': '', 'retired': '',
        'justification': '', 'department': '', 'expenditure_type': '', 'depreciation': '', 'assigned_to': '',
        'depreciation_date': '', 'old_status': '', 'comments': '', 'cost': '0', 'quantity': '1',
        'acquisition_method': '', 'ci': '', 'sys_mod_count': '0', 'old_substatus': '', 'serial_number': '',
        'sys_tags': '', 'order_date': '', 'support_group': '', 'reserved_for': '', 'due': '', 'location': '',
        'lease_id': '', 'salvage_value': '0'
    }
}
RESPONSE_QUERY_TABLE = {
    "result": [
        {
            "acquisition_method": "",
            "asset_tag": "P1000807",
            "assigned": "2018-08-07 07:00:00",
            "assigned_to": {
                "link": "demisto.com",
                "value": "admin"
            },
            "beneficiary": "",
            "checked_in": "",
            "checked_out": "",
            "ci": {
                "link": "demisto.com",
                "value": "admin"
            },
            "comments": "",
            "company": {
                "link": "demisto.com",
                "value": "admin"
            },
            "cost": "2499.99",
            "cost_center": {
                "link": "demisto.com",
                "value": "admin"
            },
            "delivery_date": "2018-03-14 08:00:00",
            "department": {
                "link": "demisto.com",
                "value": "admin"
            },
            "depreciated_amount": "934.59",
            "depreciation": {
                "link": "demisto.com",
                "value": "admin"
            },
            "depreciation_date": "2018-05-27 07:00:00",
            "display_name": "P1000807 - Apple MacBook Pro 17\"",
            "disposal_reason": "",
            "due": "",
            "due_in": "",
            "expenditure_type": "",
            "gl_account": "",
            "install_date": "2018-05-26 07:00:00",
            "install_status": "1",
            "invoice_number": "",
            "justification": "",
            "lease_id": "",
            "location": {
                "link": "demisto.com",
                "value": "admin"
            },
            "managed_by": "",
            "model": {
                "link": "demisto.com",
                "value": "admin"
            },
            "model_category": {
                "link": "demisto.com",
                "value": "admin"
            },
            "old_status": "",
            "old_substatus": "",
            "order_date": "2018-02-22 08:00:00",
            "owned_by": "",
            "parent": "",
            "po_number": "PO100008",
            "pre_allocated": "false",
            "purchase_date": "2018-03-09",
            "quantity": "1",
            "request_line": "",
            "resale_price": "0",
            "reserved_for": "",
            "residual": "1565.4",
            "residual_date": "2020-04-09",
            "retired": "",
            "retirement_date": "",
            "salvage_value": "0",
            "serial_number": "IKS-131-F44462-HL",
            "skip_sync": "false",
            "stockroom": "",
            "substatus": "",
            "support_group": "",
            "supported_by": "",
            "sys_class_name": "alm_hardware",
            "sys_created_by": "admin",
            "sys_created_on": "2019-02-23 08:14:09",
            "sys_domain": {
                "link": "demisto.com",
                "value": "global"
            },
            "sys_domain_path": "/",
            "sys_id": "sys_id2",
            "sys_mod_count": "20",
            "sys_tags": "",
            "sys_updated_by": "system",
            "sys_updated_on": "2020-04-09 06:20:19",
            "vendor": {
                "link": "demisto.com",
                "value": "admin"
            },
            "warranty_expiration": "2021-05-25",
            "work_notes": ""
        },
        {
            "acquisition_method": "",
            "asset_tag": "P1000637",
            "assigned": "2019-07-03 07:00:00",
            "assigned_to": {
                "link": "demisto.com",
                "value": "admin"
            },
            "beneficiary": "",
            "checked_in": "",
            "checked_out": "",
            "ci": {
                "link": "demisto.com",
                "value": "admin"
            },
            "comments": "",
            "company": {
                "link": "demisto.com",
                "value": "admin"
            },
            "cost": "1599.99",
            "cost_center": {
                "link": "demisto.com",
                "value": "admin"
            },
            "delivery_date": "2018-12-19 08:00:00",
            "department": {
                "link": "demisto.com",
                "value": "admin"
            },
            "depreciated_amount": "389.71",
            "depreciation": {
                "link": "admin",
                "value": "demisto.com"
            },
            "depreciation_date": "2019-01-19 08:00:00",
            "display_name": "P1000637 - Apple MacBook Air 13\"",
            "disposal_reason": "",
            "due": "",
            "due_in": "",
            "expenditure_type": "",
            "gl_account": "",
            "install_date": "2019-01-18 08:00:00",
            "install_status": "1",
            "invoice_number": "",
            "justification": "",
            "lease_id": "",
            "location": {
                "link": "demisto.com",
                "value": "admin"
            },
            "managed_by": "",
            "model": {
                "link": "demisto.com",
                "value": "admin"
            },
            "model_category": {
                "link": "demisto.com",
                "value": "admin"
            },
            "old_status": "",
            "old_substatus": "",
            "order_date": "2018-11-24 08:00:00",
            "owned_by": "",
            "parent": "",
            "po_number": "PO100011",
            "pre_allocated": "false",
            "purchase_date": "2018-12-09",
            "quantity": "1",
            "request_line": "",
            "resale_price": "0",
            "reserved_for": "",
            "residual": "1210.28",
            "residual_date": "2020-04-09",
            "retired": "",
            "retirement_date": "",
            "salvage_value": "0",
            "serial_number": "BXV-671-O15099-HI",
            "skip_sync": "false",
            "stockroom": "",
            "substatus": "",
            "support_group": "",
            "supported_by": "",
            "sys_class_name": "alm_hardware",
            "sys_created_by": "admin",
            "sys_created_on": "2019-02-23 08:13:36",
            "sys_domain": {
                "link": "demisto.com",
                "value": "global"
            },
            "sys_domain_path": "/",
            "sys_id": "sys_id3",
            "sys_mod_count": "20",
            "sys_tags": "",
            "sys_updated_by": "system",
            "sys_updated_on": "2020-04-09 06:20:19",
            "vendor": {
                "link": "demisto.com",
                "value": "admin"
            },
            "warranty_expiration": "2022-01-17",
            "work_notes": ""
        },
        {
            "acquisition_method": "",
            "asset_tag": "P1000412",
            "assigned": "2017-08-17 07:00:00",
            "assigned_to": {
                "link": "demisto.com",
                "value": "admin"
            },
            "beneficiary": "",
            "checked_in": "",
            "checked_out": "",
            "ci": {
                "link": "demisto.com",
                "value": "admin"
            },
            "comments": "",
            "company": {
                "link": "demisto.com",
                "value": "admin"
            },
            "cost": "2499.99",
            "cost_center": {
                "link": "demisto.com",
                "value": "admin"
            },
            "delivery_date": "2017-01-20 08:00:00",
            "department": {
                "link": "demisto.com",
                "value": "admin"
            },
            "depreciated_amount": "1564.03",
            "depreciation": {
                "link": "demisto.com",
                "value": "admin"
            },
            "depreciation_date": "2017-02-20 08:00:00",
            "display_name": "P1000412 - Apple MacBook Pro 17\"",
            "disposal_reason": "",
            "due": "",
            "due_in": "",
            "expenditure_type": "",
            "gl_account": "",
            "install_date": "2017-02-19 08:00:00",
            "install_status": "1",
            "invoice_number": "",
            "justification": "",
            "lease_id": "",
            "location": {
                "link": "demisto.com",
                "value": "admin"
            },
            "managed_by": "",
            "model": {
                "link": "demisto.com",
                "value": "admin"
            },
            "model_category": {
                "link": "demisto.com",
                "value": "admin"
            },
            "old_status": "",
            "old_substatus": "",
            "order_date": "2016-12-28 08:00:00",
            "owned_by": "",
            "parent": "",
            "po_number": "PO100002",
            "pre_allocated": "false",
            "purchase_date": "2017-01-09",
            "quantity": "1",
            "request_line": "",
            "resale_price": "0",
            "reserved_for": "",
            "residual": "935.96",
            "residual_date": "2020-04-09",
            "retired": "",
            "retirement_date": "",
            "salvage_value": "0",
            "serial_number": "FQC-294-U60540-FN",
            "skip_sync": "false",
            "stockroom": "",
            "substatus": "",
            "support_group": "",
            "supported_by": "",
            "sys_class_name": "alm_hardware",
            "sys_created_by": "admin",
            "sys_created_on": "2019-02-23 08:13:40",
            "sys_domain": {
                "link": "demisto.com",
                "value": "global"
            },
            "sys_domain_path": "/",
            "sys_id": "sys_id4",
            "sys_mod_count": "21",
            "sys_tags": "",
            "sys_updated_by": "system",
            "sys_updated_on": "2020-04-09 06:20:20",
            "vendor": {
                "link": "demisto.com",
                "value": "admin"
            },
            "warranty_expiration": "2020-02-19",
            "work_notes": ""
        }
    ]
}
RESPONSE_QUERY_TABLE_SYS_PARAMS = {
    "result": [
        {
            "active": {
                "display_value": "true",
                "value": "true"
            },
            "activity_due": {
                "display_value": "UNKNOWN",
                "value": ""
            },
            "additional_assignee_list": {
                "display_value": "",
                "value": ""
            },
            "approval": {
                "display_value": "Not Yet Requested",
                "value": "not requested"
            },
            "approval_history": {
                "display_value": "",
                "value": ""
            },
            "approval_set": {
                "display_value": "",
                "value": ""
            },
            "assigned_to": {
                "display_value": "",
                "value": ""
            },
            "assignment_group": {
                "display_value": "Procurement",
                "value": "1234"
            },
            "business_duration": {
                "display_value": "",
                "value": ""
            },
            "business_service": {
                "display_value": "",
                "value": ""
            },
            "calendar_duration": {
                "display_value": "",
                "value": ""
            },
            "calendar_stc": {
                "display_value": "",
                "value": ""
            },
            "close_notes": {
                "display_value": "",
                "value": ""
            },
            "closed_at": {
                "display_value": "",
                "value": ""
            },
            "closed_by": {
                "display_value": "",
                "value": ""
            },
            "cmdb_ci": {
                "display_value": "",
                "value": ""
            },
            "comments": {
                "display_value": "",
                "value": ""
            },
            "comments_and_work_notes": {
                "display_value": "",
                "value": ""
            },
            "company": {
                "display_value": "",
                "value": ""
            },
            "contact_type": {
                "display_value": None,
                "value": ""
            },
            "contract": {
                "display_value": "",
                "value": ""
            },
            "correlation_display": {
                "display_value": "",
                "value": ""
            },
            "correlation_id": {
                "display_value": "",
                "value": ""
            },
            "delivery_plan": {
                "display_value": "",
                "value": ""
            },
            "delivery_task": {
                "display_value": "",
                "value": ""
            },
            "description": {
                "display_value": "Order from vendor or move from in-stock inventory\n\t\t",
                "value": "Order from vendor or move from in-stock inventory\n\t\t"
            },
            "due_date": {
                "display_value": "2020-04-20 13:58:46",
                "value": "2020-04-20 20:58:46"
            },
            "escalation": {
                "display_value": "Normal",
                "value": "0"
            },
            "expected_start": {
                "display_value": "2020-04-20 13:58:46",
                "value": "2020-04-20 20:58:46"
            },
            "follow_up": {
                "display_value": "",
                "value": ""
            },
            "group_list": {
                "display_value": "",
                "value": ""
            },
            "impact": {
                "display_value": "3 - Low",
                "value": "3"
            },
            "knowledge": {
                "display_value": "false",
                "value": "false"
            },
            "location": {
                "display_value": "",
                "value": ""
            },
            "made_sla": {
                "display_value": "true",
                "value": "true"
            },
            "number": {
                "display_value": "TASK0000001",
                "value": "TASK0000001"
            },
            "opened_at": {
                "display_value": "2020-04-20 13:58:46",
                "value": "2020-04-20 20:58:46"
            },
            "opened_by": {
                "display_value": "System Administrator",
                "value": "1234"
            },
            "order": {
                "display_value": "",
                "value": ""
            },
            "parent": {
                "display_value": "RITM0000001",
                "value": "aeed229047801200e0ef563dbb9a71c2"
            },
            "priority": {
                "display_value": "4 - Low",
                "value": "4"
            },
            "reassignment_count": {
                "display_value": "0",
                "value": "0"
            },
            "request": {
                "display_value": "REQ0000001",
                "value": "1234"
            },
            "request_item": {
                "display_value": "RITM0000001",
                "value": "1234"
            },
            "sc_catalog": {
                "display_value": "",
                "value": ""
            },
            "service_offering": {
                "display_value": "",
                "value": ""
            },
            "short_description": {
                "display_value": "Order from vendor or move from in-stock inventory\n\t\t",
                "value": "Order from vendor or move from in-stock inventory\n\t\t"
            },
            "skills": {
                "display_value": "",
                "value": ""
            },
            "sla_due": {
                "display_value": "UNKNOWN",
                "value": ""
            },
            "state": {
                "display_value": "Open",
                "value": "1"
            },
            "sys_class_name": {
                "display_value": "Catalog Task",
                "value": "sc_task"
            },
            "sys_created_by": {
                "display_value": "admin",
                "value": "admin"
            },
            "sys_created_on": {
                "display_value": "2020-04-20 13:58:46",
                "value": "2020-04-20 20:58:46"
            },
            "sys_domain": {
                "display_value": "global",
                "value": "global"
            },
            "sys_domain_path": {
                "display_value": "/",
                "value": "/"
            },
            "sys_id": {
                "display_value": "1234",
                "value": "1234"
            },
            "sys_mod_count": {
                "display_value": "0",
                "value": "0"
            },
            "sys_tags": {
                "display_value": "",
                "value": ""
            },
            "sys_updated_by": {
                "display_value": "admin",
                "value": "admin"
            },
            "sys_updated_on": {
                "display_value": "2020-04-20 13:58:46",
                "value": "2020-04-20 20:58:46"
            },
            "time_worked": {
                "display_value": "",
                "value": ""
            },
            "upon_approval": {
                "display_value": "Proceed to Next Task",
                "value": "proceed"
            },
            "upon_reject": {
                "display_value": "Cancel all future Tasks",
                "value": "cancel"
            },
            "urgency": {
                "display_value": "3 - Low",
                "value": "3"
            },
            "user_input": {
                "display_value": "",
                "value": ""
            },
            "watch_list": {
                "display_value": "",
                "value": ""
            },
            "work_end": {
                "display_value": "",
                "value": ""
            },
            "work_notes": {
                "display_value": "",
                "value": ""
            },
            "work_notes_list": {
                "display_value": "",
                "value": ""
            },
            "work_start": {
                "display_value": "",
                "value": ""
            }
        }
    ]
}
RESPONSE_LIST_TABLE_FIELDS = {
    "result": [
        {
            "acquisition_method": "",
            "asset_tag": "P1000479",
            "assigned": "2017-10-31 07:00:00",
            "assigned_to": {
                "link": "demisto.com",
                "value": "admin"
            },
            "beneficiary": "",
            "checked_in": "",
            "checked_out": "",
            "ci": {
                "link": "demisto.com",
                "value": "admin"
            },
            "comments": "",
            "company": {
                "link": "demisto.com",
                "value": "admin"
            },
            "cost": "1799.99",
            "cost_center": {
                "link": "demisto.com",
                "value": "admin"
            },
            "delivery_date": "2017-04-20 07:00:00",
            "department": {
                "link": "demisto.com",
                "value": "admin"
            },
            "depreciated_amount": "1025.61",
            "depreciation": {
                "link": "demisto.com",
                "value": "admin"
            },
            "depreciation_date": "2017-06-03 07:00:00",
            "display_name": "P1000479 - Apple MacBook Pro 15\"",
            "disposal_reason": "",
            "due": "",
            "due_in": "",
            "expenditure_type": "",
            "gl_account": "",
            "install_date": "2017-06-02 07:00:00",
            "install_status": "1",
            "invoice_number": "",
            "justification": "",
            "lease_id": "",
            "location": {
                "link": "demisto.com",
                "value": "admin"
            },
            "managed_by": "",
            "model": {
                "link": "demisto.com",
                "value": "admin"
            },
            "model_category": {
                "link": "demisto.com",
                "value": "admin"
            },
            "old_status": "",
            "old_substatus": "",
            "order_date": "2017-03-27 07:00:00",
            "owned_by": "",
            "parent": "",
            "po_number": "PO100004",
            "pre_allocated": "false",
            "purchase_date": "2017-04-09",
            "quantity": "1",
            "request_line": "",
            "resale_price": "0",
            "reserved_for": "",
            "residual": "774.38",
            "residual_date": "2020-04-09",
            "retired": "",
            "retirement_date": "",
            "salvage_value": "0",
            "serial_number": "BQP-854-D33246-GH",
            "skip_sync": "false",
            "stockroom": "",
            "substatus": "",
            "support_group": "",
            "supported_by": "",
            "sys_class_name": "alm_hardware",
            "sys_created_by": "admin",
            "sys_created_on": "2019-02-23 08:14:21",
            "sys_domain": {
                "link": "demisto.com",
                "value": "global"
            },
            "sys_domain_path": "/",
            "sys_id": "00a96c0d3790200044e0bfc8bcbe5dc3",
            "sys_mod_count": "20",
            "sys_tags": "",
            "sys_updated_by": "system",
            "sys_updated_on": "2020-04-09 06:20:10",
            "vendor": {
                "link": "demisto.com",
                "value": "admin"
            },
            "warranty_expiration": "2020-06-01",
            "work_notes": ""
        }
    ]
}
RESPONSE_QUERY_COMPUTERS = {
    "result": {
        "asset": {
            "link": "demisto.com",
            "value": "a"
        },
        "asset_tag": "P1000357",
        "assigned": "2017-09-09 07:00:00",
        "assigned_to": {
            "link": "demisto.com",
            "value": "admin"
        },
        "assignment_group": "",
        "attributes": "",
        "can_print": "false",
        "category": "Hardware",
        "cd_rom": "false",
        "cd_speed": "",
        "change_control": "",
        "chassis_type": "",
        "checked_in": "",
        "checked_out": "",
        "comments": "",
        "company": {
            "link": "demisto.com",
            "value": "admin"
        },
        "correlation_id": "",
        "cost": "1329",
        "cost_cc": "USD",
        "cost_center": {
            "link": "demisto.com",
            "value": "a"
        },
        "cpu_core_count": "1",
        "cpu_core_thread": "",
        "cpu_count": "1",
        "cpu_manufacturer": "",
        "cpu_name": "",
        "cpu_speed": "",
        "cpu_type": "",
        "default_gateway": "",
        "delivery_date": "2017-05-21 07:00:00",
        "department": {
            "link": "demisto.com",
            "value": "a"
        },
        "discovery_source": "",
        "disk_space": "",
        "dns_domain": "",
        "due": "",
        "due_in": "",
        "fault_count": "0",
        "first_discovered": "",
        "floppy": "",
        "form_factor": "",
        "fqdn": "",
        "gl_account": "",
        "hardware_status": "installed",
        "hardware_substatus": "",
        "install_date": "2017-07-29 07:00:00",
        "install_status": "1",
        "invoice_number": "",
        "ip_address": "",
        "justification": "",
        "last_discovered": "",
        "lease_id": "",
        "location": {
            "link": "demisto.com",
            "value": "a"
        },
        "mac_address": "",
        "maintenance_schedule": "",
        "managed_by": "",
        "manufacturer": {
            "link": "demisto.com",
            "value": "a"
        },
        "model_id": {
            "link": "demisto.com",
            "value": "a"
        },
        "model_number": "",
        "monitor": "false",
        "name": "Precision T5500 Workstation",
        "object_id": "",
        "operational_status": "1",
        "order_date": "2017-04-26 07:00:00",
        "os": "Windows XP Professional",
        "os_address_width": "",
        "os_domain": "",
        "os_service_pack": "",
        "os_version": "",
        "owned_by": "",
        "po_number": "PO100005",
        "purchase_date": "2017-05-09",
        "ram": "",
        "schedule": "",
        "serial_number": "VVM-370-F60616-KN",
        "short_description": "",
        "skip_sync": "false",
        "start_date": "",
        "subcategory": "Computer",
        "support_group": "",
        "supported_by": "",
        "sys_class_name": "cmdb_ci_computer",
        "sys_class_path": "/!!/!2/!(",
        "sys_created_by": "admin",
        "sys_created_on": "2012-02-18 08:14:45",
        "sys_domain": {
            "link": "demisto.com",
            "value": "global"
        },
        "sys_domain_path": "/",
        "sys_id": "1234",
        "sys_mod_count": "18",
        "sys_tags": "",
        "sys_updated_by": "system",
        "sys_updated_on": "2020-04-09 06:20:21",
        "unverified": "false",
        "vendor": {
            "link": "demisto.com",
            "value": "a"
        },
        "virtual": "false",
        "warranty_expiration": "2020-07-28"
    }
}
RESPONSE_GET_TABLE_NAME = {
    "result": [
        {
            "access": "",
            "actions_access": "true",
            "alter_access": "true",
            "client_scripts_access": "true",
            "configuration_access": "false",
            "create_access": "true",
            "create_access_controls": "false",
            "delete_access": "false",
            "extension_model": "",
            "is_extendable": "false",
            "label": "ACE",
            "live_feed_enabled": "false",
            "name": "cmdb_ci_lb_ace",
            "number_ref": "",
            "read_access": "true",
            "super_class": {
                "link": "demisto.com",
                "value": "admin"
            },
            "sys_class_code": "!.",
            "sys_class_name": "sys_db_object",
            "sys_class_path": "/!!/!2/!(/!!/!$/!.",
            "sys_created_by": "system",
            "sys_created_on": "2019-12-04 05:02:05",
            "sys_id": "123",
            "sys_mod_count": "0",
            "sys_name": "CMDB CI Lb Ace",
            "sys_package": {
                "link": "demisto.com",
                "value": "admin"
            },
            "sys_policy": "",
            "sys_scope": {
                "link": "demisto.com",
                "value": "global"
            },
            "sys_update_name": "sys_db_object_547a54c1e86100107850694c2d9d2d3e",
            "sys_updated_by": "system",
            "sys_updated_on": "2019-12-04 05:02:05",
            "update_access": "true",
            "user_role": "",
            "ws_access": "true"
        }
    ]
}
RESPONSE_ADD_TAG = {
    "result": {
        "auto": "",
        "comments": "",
        "id_display": "INC0000009",
        "id_type": "Incident",
        "label": {
            "link": "demisto.com",
            "value": "admin"
        },
        "notify_onchange": "false",
        "notify_script": "",
        "notify_when": "",
        "read": "no",
        "reference_count": "",
        "sys_created_by": "admin",
        "sys_created_on": "2020-04-30 08:59:33",
        "sys_id": "1234",
        "sys_mod_count": "0",
        "sys_tags": "",
        "sys_updated_by": "admin",
        "sys_updated_on": "2020-04-30 08:59:33",
        "table": "",
        "table_key": "",
        "title": "title",
        "url": "incident.do?sys_id=1234\u0026sysparm_view=",
        "view_name": ""
    }
}
RESPONSE_QUERY_ITEMS = {
    "result": [
        {
            "active": "true",
            "availability": "on_both",
            "billable": "false",
            "category": {
                "link": "demisto.com",
                "value": "admin"
            },
            "cost": "0",
            "custom_cart": "",
            "delivery_plan": "",
            "delivery_plan_script": "",
            "delivery_time": "1970-01-03 00:00:00",
            "description": "desc",
            "display_price_property": "non_zero",
            "entitlement_script": "",
            "flow_designer_flow": "",
            "group": "",
            "hide_sp": "false",
            "icon": "",
            "ignore_price": "false",
            "image": "",
            "list_price": "0",
            "location": "",
            "mandatory_attachment": "false",
            "meta": "",
            "mobile_hide_price": "false",
            "mobile_picture": "",
            "mobile_picture_type": "use_desktop_picture",
            "model": {
                "link": "demisto.com",
                "value": "admin"
            },
            "name": "Apple iPad 3",
            "no_attachment_v2": "false",
            "no_cart": "false",
            "no_cart_v2": "false",
            "no_delivery_time_v2": "false",
            "no_order": "false",
            "no_order_now": "false",
            "no_proceed_checkout": "false",
            "no_quantity": "false",
            "no_quantity_v2": "false",
            "no_search": "false",
            "no_wishlist_v2": "false",
            "omit_price": "false",
            "order": "0",
            "ordered_item_link": "",
            "picture": "",
            "preview": "JavaScript",
            "price": "600",
            "recurring_frequency": "",
            "recurring_price": "0",
            "request_method": "",
            "roles": "",
            "sc_catalogs": "catalog",
            "sc_ic_item_staging": "",
            "sc_ic_version": "",
            "short_description": "Apple iPad 3",
            "show_variable_help_on_load": "false",
            "start_closed": "false",
            "sys_class_name": "pc_hardware_cat_item",
            "sys_created_by": "admin",
            "sys_created_on": "2013-12-08 15:22:04",
            "sys_id": "123",
            "sys_mod_count": "17",
            "sys_name": "Apple iPad 3",
            "sys_package": {
                "link": "demisto.com",
                "value": "admin"
            },
            "sys_policy": "",
            "sys_scope": {
                "link": "demisto.com",
                "value": "global"
            },
            "sys_tags": "",
            "sys_update_name": "pc_hardware_cat_item_060f3afa3731300054b6a3549dbe5d3e",
            "sys_updated_by": "admin",
            "sys_updated_on": "2016-03-17 21:26:33",
            "template": "",
            "type": "item",
            "use_sc_layout": "true",
            "vendor": {
                "link": "demisto.com",
                "value": "admin"
            },
            "visible_bundle": "true",
            "visible_guide": "true",
            "visible_standalone": "true",
            "workflow": {
                "link": "demisto.com",
                "value": "admin"
            }
        },
        {
            "active": "true",
            "availability": "on_desktop",
            "billable": "false",
            "category": {
                "link": "demisto.com",
                "value": "admin"
            },
            "cost": "50",
            "custom_cart": "",
            "delivery_plan": "",
            "delivery_plan_script": "",
            "delivery_time": "1970-01-03 00:00:00",
            "description": "desc",
            "display_price_property": "non_zero",
            "entitlement_script": "",
            "flow_designer_flow": "",
            "group": "",
            "hide_sp": "false",
            "icon": "",
            "ignore_price": "false",
            "image": "",
            "list_price": "0",
            "location": "",
            "mandatory_attachment": "false",
            "meta": "",
            "mobile_hide_price": "false",
            "mobile_picture": "",
            "mobile_picture_type": "use_desktop_picture",
            "model": "",
            "name": "Belkin iPad Mini Case",
            "no_attachment_v2": "false",
            "no_cart": "false",
            "no_cart_v2": "false",
            "no_delivery_time_v2": "false",
            "no_order": "false",
            "no_order_now": "false",
            "no_proceed_checkout": "false",
            "no_quantity": "false",
            "no_quantity_v2": "false",
            "no_search": "false",
            "no_wishlist_v2": "false",
            "omit_price": "false",
            "order": "0",
            "ordered_item_link": "",
            "picture": "",
            "preview": "JavaScript",
            "price": "50",
            "recurring_frequency": "monthly",
            "recurring_price": "0",
            "request_method": "",
            "roles": "",
            "sc_catalogs": "catalog",
            "sc_ic_item_staging": "",
            "sc_ic_version": "",
            "short_description": "Belkin iPad Mini 2 Case",
            "show_variable_help_on_load": "false",
            "start_closed": "false",
            "sys_class_name": "pc_hardware_cat_item",
            "sys_created_by": "johanneke.stam",
            "sys_created_on": "2014-12-10 12:13:20",
            "sys_id": "1234",
            "sys_mod_count": "12",
            "sys_name": "Belkin iPad Mini Case",
            "sys_package": {
                "link": "demisto.com",
                "value": "admin"
            },
            "sys_policy": "",
            "sys_scope": {
                "link": "demisto.com",
                "value": "global"
            },
            "sys_tags": "",
            "sys_update_name": "pc_hardware_cat_item_90af095bcd38798071a208d710d1b64f",
            "sys_updated_by": "admin",
            "sys_updated_on": "2016-03-16 00:42:51",
            "template": "",
            "type": "item",
            "use_sc_layout": "true",
            "vendor": "",
            "visible_bundle": "true",
            "visible_guide": "true",
            "visible_standalone": "true",
            "workflow": {
                "link": "demisto.com",
                "value": "admin"
            }
        }
    ]
}
RESPONSE_ITEM_DETAILS = {
    "result": {
        "catalogs": [
            {
                "active": True,
                "sys_id": "1234",
                "title": "Service Catalog"
            }
        ],
        "categories": [
            {
                "active": True,
                "category": {
                    "active": True,
                    "sys_id": "1234",
                    "title": "Mobiles"
                },
                "sys_id": "1234",
                "title": "Hardware"
            }
        ],
        "category": {
            "sys_id": "1234",
            "title": "Mobiles"
        },
        "client_script": {
            "onChange": [],
            "onLoad": [],
            "onSubmit": []
        },
        "content_type": "",
        "data_lookup": [],
        "description": "desc",
        "icon": "images/service_catalog/generic_small.gifx",
        "kb_article": "",
        "local_currency": "USD",
        "localized_price": "$599.99",
        "localized_recurring_price": "$30.00",
        "mandatory_attachment": False,
        "name": "Apple iPhone 5",
        "order": 10,
        "picture": "pic.iix",
        "price": "$599.99",
        "price_currency": "USD",
        "recurring_frequency": "Monthly",
        "recurring_price": "$30.00",
        "recurring_price_currency": "USD",
        "request_method": "",
        "short_description": "Apple iPhone 5",
        "show_delivery_time": False,
        "show_price": True,
        "show_quantity": True,
        "show_wishlist": True,
        "sys_class_name": "pc_hardware_cat_item",
        "sys_id": "1234",
        "type": "catalog_item",
        "ui_policy": [
            {
                "actions": [],
                "condition_fields": [],
                "conditions": [],
                "debug": False,
                "onload": True,
                "reverse": False,
                "script_false": "",
                "script_true": "",
                "short_description": "Hide allocated carrier",
                "source_table": "catalog_ui_policy",
                "sys_id": "sys_id",
                "table": "(catalog)"
            }
        ],
        "url": "",
        "variables": [
            {
                "attributes": "edge_encryption_enabled=true",
                "choices": [
                    {
                        "index": 0,
                        "label": "-- None --",
                        "value": ""
                    },
                    {
                        "index": 1,
                        "label": "AT \u0026 T Mobility",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "at_and_t_mobility"
                    },
                    {
                        "index": 2,
                        "label": "Cricket Wireless",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "cricket_wireless"
                    },
                    {
                        "index": 3,
                        "label": "MetroPCS",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "metropcs"
                    },
                    {
                        "index": 4,
                        "label": "Sprint Nextel",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "sprint_nextel"
                    },
                    {
                        "index": 5,
                        "label": "T-Mobile USA",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "t_mobile_usa"
                    },
                    {
                        "index": 6,
                        "label": "TracFone Wireless",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "tracfone_wireless"
                    },
                    {
                        "index": 7,
                        "label": "U.S. Cellular",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "us_cellular"
                    },
                    {
                        "index": 8,
                        "label": "Verizon Wireless",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "verizon_wireless"
                    }
                ],
                "display_type": "Select Box",
                "displayvalue": "",
                "friendly_type": "select_box",
                "help_text": "",
                "id": "id",
                "label": "Allocated carrier",
                "mandatory": False,
                "max_length": 0,
                "name": "carrier",
                "read_only": False,
                "render_label": True,
                "type": 5,
                "value": ""
            },
            {
                "attributes": "edge_encryption_enabled=true",
                "choices": [
                    {
                        "index": 0,
                        "label": "-- None --",
                        "value": ""
                    },
                    {
                        "index": 1,
                        "label": "500MB",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 1,
                        "recurring_price_currency": "USD",
                        "value": "500MB"
                    },
                    {
                        "index": 2,
                        "label": "Unlimited",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 4,
                        "recurring_price_currency": "USD",
                        "value": "unlimited"
                    }
                ],
                "display_type": "Select Box",
                "displayvalue": "",
                "friendly_type": "select_box",
                "help_text": "",
                "id": "id",
                "label": "Monthly data allowance",
                "mandatory": False,
                "max_length": 0,
                "name": "data_plan",
                "read_only": False,
                "render_label": True,
                "type": 5,
                "value": ""
            },
            {
                "attributes": "edge_encryption_enabled=true",
                "choices": [
                    {
                        "index": 0,
                        "label": "12 Months",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "twelve_months"
                    },
                    {
                        "index": 1,
                        "label": "18 Months",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": -2,
                        "recurring_price_currency": "USD",
                        "value": "eighteen_months"
                    },
                    {
                        "index": 2,
                        "label": "24 Months",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": -4,
                        "recurring_price_currency": "USD",
                        "value": "twentyfour_months"
                    }
                ],
                "display_type": "Select Box",
                "displayvalue": "",
                "friendly_type": "select_box",
                "help_text": "",
                "id": "id",
                "label": "Contract duration",
                "mandatory": False,
                "max_length": 0,
                "name": "duration",
                "read_only": False,
                "render_label": True,
                "type": 5,
                "value": ""
            },
            {
                "attributes": "edge_encryption_enabled=true",
                "choices": [
                    {
                        "index": 0,
                        "label": "Black",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "black"
                    },
                    {
                        "index": 1,
                        "label": "Slate",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "slate"
                    }
                ],
                "display_type": "Select Box",
                "displayvalue": "",
                "friendly_type": "select_box",
                "help_text": "",
                "id": "id",
                "label": "Color",
                "mandatory": False,
                "max_length": 0,
                "name": "color",
                "read_only": False,
                "render_label": True,
                "type": 5,
                "value": ""
            },
            {
                "attributes": "edge_encryption_enabled=true",
                "choices": [
                    {
                        "index": 0,
                        "label": "64GB",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "sixtyfour"
                    },
                    {
                        "index": 1,
                        "label": "32GB",
                        "price": 50,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "thirtytwo"
                    },
                    {
                        "index": 2,
                        "label": "16GB",
                        "price": 0,
                        "price_currency": "USD",
                        "recurring_price": 0,
                        "recurring_price_currency": "USD",
                        "value": "sixteen"
                    }
                ],
                "display_type": "Select Box",
                "displayvalue": "64GB",
                "friendly_type": "select_box",
                "help_text": "",
                "id": "id",
                "label": "Storage",
                "mandatory": False,
                "max_length": 0,
                "name": "storage",
                "read_only": False,
                "render_label": True,
                "type": 5,
                "value": "sixtyfour"
            }
        ],
        "visible_standalone": True
    }
}
RESPONSE_CREATE_ITEM_ORDER = {
    "result": {
        "number": "REQ0010002",
        "request_id": "1234",
        "request_number": "REQ0010002",
        "sys_id": "12",
        "table": "sc_request"
    }
}
RESPONSE_DOCUMENT_ROUTE = {
    "result": {
        "display_name": "Incident: INC0000060",
        "document_id": "document_id",
        "document_table": "incident",
        "queue": "queue_id",
        "sys_id": "work_item_id"
    }
}
RESPONSE_FETCH = {
    'result':
        [
            {
                'parent': '', 'made_sla': 'false', 'caused_by': '', 'watch_list': '', 'upon_reject': '',
                'sys_updated_on': '2020-04-02 14:03:31',
                'child_incidents': '', 'hold_reason': '', 'approval_history': '', 'number': 'INC0000040',
                'resolved_by': '',
                'sys_updated_by': 'admin',
                'opened_by': {'link': 'demisto.com', 'value': 'test2'},
                'user_input': '', 'sys_created_on': '2019-09-05 00:42:29',
                'sys_domain': {'link': 'demisto.com', 'value': 'global'}, 'state': '1', 'sys_created_by': 'admin',
                'knowledge': 'false', 'order': '', 'calendar_stc': '', 'closed_at': '',
                'cmdb_ci': {'link': 'demisto.com', 'value': 'test'}, 'delivery_plan': '', 'impact': '2',
                'active': 'true',
                'work_notes_list': '', 'business_service': '', 'priority': '4', 'sys_domain_path': '/', 'rfc': '',
                'time_worked': '', 'expected_start': '',
                'opened_at': '',
                'business_duration': '',
                'group_list': '', 'work_end': '', 'caller_id': {'link': 'demisto.com', 'value': 'test'},
                'reopened_time': '', 'resolved_at': '', 'approval_set': '', 'subcategory': '', 'work_notes': '',
                'short_description': 'Trouble getting to Oregon mail server', 'close_code': '',
                'correlation_display': '',
                'delivery_task': '', 'work_start': '', 'assignment_group': {'link': 'demisto.com', 'value': 'test'},
                'additional_assignee_list': '', 'business_stc': '',
                'description': 'Unable to access Oregon mail server. Is it down?', 'calendar_duration': '',
                'close_notes': '',
                'notify': '1', 'sys_class_name': 'incident', 'closed_by': '', 'follow_up': '', 'parent_incident': '',
                'sys_id': 'sys_id', 'contact_type': 'phone', 'reopened_by': '', 'incident_state': '1', 'urgency': '3',
                'problem_id': '', 'company': {'link': 'demisto.com', 'value': 'test'}, 'reassignment_count': '',
                'u_custom_field_test': 'NYC', 'activity_due': '', 'assigned_to': '', 'severity': '3', 'comments': '',
                'approval': 'not requested', 'sla_due': '2019-09-26 00:41:01', 'comments_and_work_notes': '',
                'due_date': '',
                'sys_mod_count': '8', 'reopen_count': '', 'sys_tags': '', 'escalation': '0', 'upon_approval': '',
                'correlation_id': '', 'location': {'link': 'demisto.com', 'value': 'test'}, 'category': 'network'
            },
            {
                'parent': '', 'made_sla': 'false', 'caused_by': '', 'watch_list': '', 'upon_reject': '',
                'sys_updated_on': '2020-04-02 14:03:31',
                'child_incidents': '', 'hold_reason': '', 'approval_history': '', 'number': 'INC0000039',
                'resolved_by': '',
                'sys_updated_by': 'admin',
                'opened_by': {'link': 'demisto.com', 'value': 'test'},
                'user_input': '', 'sys_created_on': '2019-09-05 00:42:29',
                'sys_domain': {'link': 'demisto.com', 'value': 'global'}, 'state': '1', 'sys_created_by': 'admin',
                'knowledge': 'false', 'order': '', 'calendar_stc': '', 'closed_at': '',
                'cmdb_ci': {'link': 'demisto.com', 'value': 'test'}, 'delivery_plan': '', 'impact': '2',
                'active': 'true',
                'work_notes_list': '', 'business_service': '', 'priority': '4', 'sys_domain_path': '/', 'rfc': '',
                'time_worked': '', 'expected_start': '',
                'opened_at': '',
                'business_duration': '',
                'group_list': '', 'work_end': '', 'caller_id': {'link': 'demisto.com', 'value': 'test'},
                'reopened_time': '', 'resolved_at': '', 'approval_set': '', 'subcategory': '', 'work_notes': '',
                'short_description': 'Trouble getting to Oregon mail server', 'close_code': '',
                'correlation_display': '',
                'delivery_task': '', 'work_start': '', 'assignment_group': {'link': 'demisto.com', 'value': 'test'},
                'additional_assignee_list': '', 'business_stc': '',
                'description': 'Unable to access Oregon mail server. Is it down?', 'calendar_duration': '',
                'close_notes': '',
                'notify': '1', 'sys_class_name': 'incident', 'closed_by': '', 'follow_up': '', 'parent_incident': '',
                'sys_id': 'sys_id', 'contact_type': 'phone', 'reopened_by': '', 'incident_state': '1', 'urgency': '3',
                'problem_id': '', 'company': {'link': 'demisto.com', 'value': 'test'}, 'reassignment_count': '',
                'u_custom_field_test': 'NYC', 'activity_due': '', 'assigned_to': '', 'severity': '3', 'comments': '',
                'approval': 'not requested', 'sla_due': '2019-09-26 00:41:01', 'comments_and_work_notes': '',
                'due_date': '',
                'sys_mod_count': '8', 'reopen_count': '', 'sys_tags': '', 'escalation': '0', 'upon_approval': '',
                'correlation_id': '', 'location': {'link': 'demisto.com', 'value': 'test'}, 'category': 'network'
            }
        ]
}
RESPONSE_FETCH_ATTACHMENTS_TICKET = {
    "result": [
        {
            "active": "false",
            "activity_due": "2016-12-13 01:26:36",
            "additional_assignee_list": "",
            "approval": "not requested",
            "approval_history": "",
            "approval_set": "",
            "assigned_to": {
                "link": "https://dev61466.service-now.com/api/now/table/sys_user/5137153cc611227c000bbd1bd8cd2007",
                "value": "5137153cc611227c000bbd1bd8cd2007"
            },
            "assignment_group": {
                "link": "https://dev61466.service-now.com/api/now/table/sys_user_group/287ebd7da9fe198100f92cc8d1d2154e",
                "value": "287ebd7da9fe198100f92cc8d1d2154e"
            },
            "business_duration": "1970-01-01 08:00:00",
            "business_service": {
                "link": "https://dev61466.service-now.com/api/now/table/cmdb_ci_service/27d32778c0a8000b00db970eeaa60f16",
                "value": "27d32778c0a8000b00db970eeaa60f16"
            },
            "business_stc": "28800",
            "calendar_duration": "1970-01-02 04:23:17",
            "calendar_stc": "102197",
            "caller_id": {
                "link": "https://dev61466.service-now.com/api/now/table/sys_user/681ccaf9c0a8016400b98a06818d57c7",
                "value": "681ccaf9c0a8016400b98a06818d57c7"
            },
            "category": "inquiry",
            "caused_by": "",
            "child_incidents": "0",
            "close_code": "Solved (Permanently)",
            "close_notes": "This incident is resolved.",
            "closed_at": "2016-12-14 02:46:44",
            "closed_by": {
                "link": "https://dev61466.service-now.com/api/now/table/sys_user/681ccaf9c0a8016400b98a06818d57c7",
                "value": "681ccaf9c0a8016400b98a06818d57c7"
            },
            "cmdb_ci": {
                "link": "https://dev61466.service-now.com/api/now/table/cmdb_ci/109562a3c611227500a7b7ff98cc0dc7",
                "value": "109562a3c611227500a7b7ff98cc0dc7"
            },
            "comments": "",
            "comments_and_work_notes": "",
            "company": {
                "link": "https://dev61466.service-now.com/api/now/table/core_company/31bea3d53790200044e0bfc8bcbe5dec",
                "value": "31bea3d53790200044e0bfc8bcbe5dec"
            },
            "contact_type": "self-service",
            "contract": "",
            "correlation_display": "",
            "correlation_id": "",
            "delivery_plan": "",
            "delivery_task": "",
            "description": "I am unable to connect to the email server. It appears to be down.",
            "due_date": "",
            "escalation": "0",
            "expected_start": "",
            "follow_up": "",
            "group_list": "",
            "hold_reason": "",
            "impact": "2",
            "incident_state": "7",
            "knowledge": "false",
            "location": "",
            "made_sla": "true",
            "notify": "1",
            "number": "INC0000060",
            "opened_at": '',
            "opened_by": {
                "link": "https://dev61466.service-now.com/api/now/table/sys_user/681ccaf9c0a8016400b98a06818d57c7",
                "value": "681ccaf9c0a8016400b98a06818d57c7"
            },
            "order": "",
            "parent": "",
            "parent_incident": "",
            "priority": "3",
            "problem_id": "",
            "reassignment_count": "2",
            "reopen_count": "0",
            "reopened_by": "",
            "reopened_time": "",
            "resolved_at": "2016-12-13 21:43:14",
            "resolved_by": {
                "link": "https://dev61466.service-now.com/api/now/table/sys_user/5137153cc611227c000bbd1bd8cd2007",
                "value": "5137153cc611227c000bbd1bd8cd2007"
            },
            "rfc": "",
            "service_offering": "",
            "severity": "3",
            "short_description": "Unable to connect to email",
            "skills": "",
            "sla_due": "",
            "state": "7",
            "subcategory": "email",
            "sys_class_name": "incident",
            "sys_created_by": "employee",
            "sys_created_on": "2016-12-12 15:19:57",
            "sys_domain": {
                "link": "https://dev61466.service-now.com/api/now/table/sys_user_group/global",
                "value": "global"
            },
            "sys_domain_path": "/",
            "sys_id": "1c741bd70b2322007518478d83673af3",
            "sys_mod_count": "16",
            "sys_tags": "",
            "sys_updated_by": "admin",
            "sys_updated_on": "2020-05-07 09:36:13",
            "time_worked": "",
            "upon_approval": "proceed",
            "upon_reject": "cancel",
            "urgency": "2",
            "user_input": "",
            "watch_list": "",
            "work_end": "",
            "work_notes": "",
            "work_notes_list": "",
            "work_start": ""
        }
    ]
}
RESPONSE_FETCH_ATTACHMENTS_FILE = [
    {'Contents': '', 'ContentsFormat': 'text', 'Type': 3, 'File': 'wireframe', 'FileID': 'file_id'}
]

MIRROR_COMMENTS_RESPONSE = {'result': [{
    'sys_id': '549fc0bfdbaa101053482fb748961941', 'sys_created_on': '2020-08-17 06:31:49', 'name': 'incident',
    'element_id': '9bf0f1afdbe6101053482fb748961908', 'sys_tags': '', 'value': 'This is a comment',
    'sys_created_by': 'admin', 'element': 'comments'}]}

RESPONSE_COMMENTS_DISPLAY_VALUE = {
        'result': {'sys_created_on': {'display_value': '2022-11-21 20:59:49', 'value': '2022-11-21 19:59:49'},
                   'sys_created_by': {'display_value': 'admin', 'value': 'admin'},
                   'sys_id': {'display_value': '123456789', 'value': '123456789'},
                   'urgency': {'display_value': '3 - Low', 'value': '3'},
                   'severity': {'display_value': '3 - Low', 'value': '3'},
                   'comments': {'display_value':
                                '2022-11-21 22:50:34 - System Administrator (Additional comments)\nSecond comment'
                                '\n\n Mirrored from Cortex XSOAR\n\n'
                                '2022-11-21 21:45:37 - Test User (Additional comments)\nFirst comment\n\n',
                                'value': ''}}}

RESPONSE_COMMENTS_DISPLAY_VALUE_NO_COMMENTS = {
        'result': {'sys_created_on': {'display_value': '2022-11-21 09:59:49', 'value': '2022-11-21 08:59:49'},
                   'sys_created_by': {'display_value': 'admin', 'value': 'admin'},
                   'sys_id': {'display_value': '123456789', 'value': '123456789'},
                   'urgency': {'display_value': '3 - Low', 'value': '3'},
                   'severity': {'display_value': '3 - Low', 'value': '3'},
                   'comments': {'display_value': '', 'value': ''}}}

RESPONSE_MIRROR_FILE_ENTRY = [
    {'Contents': '', 'ContentsFormat': 'text', 'Type': 3, 'File': 'test.txt',
     'FileID': '20eb1079-d6c3-47cf-81bf-95968f93f6d3'}]

RESPONSE_ASSIGNMENT_GROUP = {'result': {'parent': '', 'manager':
    {'link': 'https://dev59633.service-now.com/api/now/table/sys_user/b6b364e253131300e321ddeeff7b121b',
     'value': 'b6b364e253131300e321ddeeff7b121b'}, 'roles': '', 'sys_mod_count': '0', 'active': 'true',
                                       'description': '', 'source': '', 'sys_updated_on': '2020-07-11 09:50:32',
                                       'sys_tags': '', 'type': '', 'sys_id': '679434f053231300e321ddeeff7b12d8',
                                       'sys_updated_by': 'admin', 'cost_center': '', 'default_assignee': '',
                                       'sys_created_on': '2020-07-11 09:50:32', 'name': 'Help Desk',
                                       'exclude_manager': 'false', 'email': '', 'include_members': 'false',
                                       'sys_created_by': 'admin'}}


RESPONSE_MIRROR_FILE_ENTRY_FROM_XSOAR = [{'Contents': '', 'ContentsFormat': 'text', 'Type': 3,
                                          'File': 'test_mirrored_from_xsoar.txt',
                                          'FileID': '20eb1079-d6c3-47cf-81bf-95968f93f6d3'}]

MIRROR_COMMENTS_RESPONSE_FROM_XSOAR = {'result': [{
    'sys_id': '549fc0bfdbaa101053482fb748961941', 'sys_created_on': '2020-08-17 06:31:49', 'name': 'incident',
    'element_id': '9bf0f1afdbe6101053482fb748961908', 'sys_tags': '',
    'value': 'This is a comment\n\n Mirrored from Cortex XSOAR', 'sys_created_by': 'admin', 'element': 'comments'}]}

MIRROR_ENTRIES = [
    {'Contents': '', 'ContentsFormat': 'text', 'type': 3, 'File': 'test.txt',
     'FileID': '20eb1079-d6c3-47cf-81bf-95968f93f6d3'},
    {'type': None, 'category': None, 'contents': 'This is a comment', 'contentsFormat': None,
     'tags': ['comments', 'work_notes'], 'note': True}]

MIRROR_ENTRIES_WITH_EMPTY_USERNAME = [
    {'Contents': '', 'ContentsFormat': 'text', 'type': 3, 'File': 'test.txt',
     'FileID': '20eb1079-d6c3-47cf-81bf-95968f93f6d3', 'user': ''},
    {'type': None, 'category': None, 'contents': 'This is a comment', 'contentsFormat': None,
     'tags': ['comments', 'work_notes'], 'note': True, 'user': ''}]

OAUTH_PARAMS = {
    'insecure': False,
    'credentials': {
        'identifier': 'user1',
        'password:': '12345'
    },
    'proxy': False,
    'client_id': 'client_id',
    'client_secret': 'client_secret',
    'use_oauth': True
}

RESPONSE_GENERIC_TICKET = {
    'sys_created_by': 'svc.SecOps_SplunkPhantom',
    'sys_class_name': 'sn_si_incident'
}