# By: Riasat Ullah
# This file contains test data for groups.

from constants import var_names
from system_tests import test_tools


groups_list = [
    {
        var_names.group_ref_id: test_tools.get_dummy_reference_id(),
        var_names.group_name: 'C-Level Executives',
        var_names.description: 'All C-Level executives of our company are in this group.',
        var_names.group_type: 'Board'
    },
    {
        var_names.group_ref_id: test_tools.get_dummy_reference_id(),
        var_names.group_name: 'Hollister Paint',
        var_names.description: 'One of our largest clients. Our agreement with them mandates a fast response.',
        var_names.group_type: 'Client'
    },
    {
        var_names.group_ref_id: test_tools.get_dummy_reference_id(),
        var_names.group_name: 'Mindstorm',
        var_names.description: 'They are a software company that develops high tech AI solutions.',
        var_names.group_type: 'Client'
    },
    {
        var_names.group_ref_id: test_tools.get_dummy_reference_id(),
        var_names.group_name: 'Wolf Networks',
        var_names.description: 'Internet infrastructure provider. We help them manage antennas in the midwest.',
        var_names.group_type: 'Client'
    }
]

groups_basic_list = [[x[var_names.group_name], x[var_names.group_ref_id]] for x in groups_list]

people_basic_list = [['John Roberson', test_tools.get_dummy_reference_id()],
                     ['Steven Bose', test_tools.get_dummy_reference_id()],
                     ['Mitchell Bradbury', test_tools.get_dummy_reference_id()],
                     ['Sarah Chesney', test_tools.get_dummy_reference_id()],
                     ['Taylor Childs', test_tools.get_dummy_reference_id()],
                     ['William Persons', test_tools.get_dummy_reference_id()],
                     ['Octavia Thomas', test_tools.get_dummy_reference_id()],
                     ['Neeraj Bhatia', test_tools.get_dummy_reference_id()]]

people_details = {
    people_basic_list[0][1]: {
        var_names.people_ref_id: people_basic_list[0][1],
        var_names.first_name: 'John',
        var_names.last_name: 'Roberson',
        var_names.group: groups_basic_list[0],
        var_names.email: 'john.roberson@apollo.com',
        var_names.iso_country_code: 'US',
        var_names.phone: '+18920764343',
        var_names.chat: None,
        var_names.webhooks: None,
        var_names.title: 'CEO',
        var_names.profile_picture: ''
    },
    people_basic_list[1][1]: {
        var_names.people_ref_id: people_basic_list[1][1],
        var_names.first_name: 'Steven',
        var_names.last_name: 'Bose',
        var_names.group: None,
        var_names.email: 'steven.bose@apollo.com',
        var_names.iso_country_code: 'US',
        var_names.phone: '+16908507781',
        var_names.chat: None,
        var_names.webhooks: None,
        var_names.title: None,
        var_names.profile_picture: ''
    },
    people_basic_list[2][1]: {
        var_names.people_ref_id: people_basic_list[2][1],
        var_names.first_name: 'Mitchell',
        var_names.last_name: 'Bradbury',
        var_names.group: groups_basic_list[1],
        var_names.email: 'mitchell.bradbury@hollister.com',
        var_names.iso_country_code: 'ES',
        var_names.phone: '+34980756409',
        var_names.chat: None,
        var_names.webhooks: None,
        var_names.title: 'Business Associate',
        var_names.profile_picture: ''
    },
    people_basic_list[3][1]: {
        var_names.people_ref_id: people_basic_list[3][1],
        var_names.first_name: 'Sarah',
        var_names.last_name: 'Chesney',
        var_names.group: groups_basic_list[1],
        var_names.email: 'sarah.chesney@hollister.com',
        var_names.iso_country_code: 'ES',
        var_names.phone: '+34666000771',
        var_names.chat: None,
        var_names.webhooks: None,
        var_names.title: 'Business Associate',
        var_names.profile_picture: ''
    },
    people_basic_list[4][1]: {
        var_names.people_ref_id: people_basic_list[4][1],
        var_names.first_name: 'Taylor',
        var_names.last_name: 'Childs',
        var_names.group: groups_basic_list[1],
        var_names.email: 'taylor.childs@hollister.com',
        var_names.iso_country_code: 'US',
        var_names.phone: '+19883224065',
        var_names.chat: None,
        var_names.webhooks: None,
        var_names.title: 'Manager',
        var_names.profile_picture: ''
    },
    people_basic_list[5][1]: {
        var_names.people_ref_id: people_basic_list[5][1],
        var_names.first_name: 'William',
        var_names.last_name: 'Persons',
        var_names.group: groups_basic_list[1],
        var_names.email: 'william.persons@hollister.com',
        var_names.iso_country_code: 'US',
        var_names.phone: '+17654321008',
        var_names.chat: None,
        var_names.webhooks: None,
        var_names.title: 'Manager',
        var_names.profile_picture: ''
    },
    people_basic_list[6][1]: {
        var_names.people_ref_id: people_basic_list[6][1],
        var_names.first_name: 'Octavia',
        var_names.last_name: 'Thomas',
        var_names.group: groups_basic_list[2],
        var_names.email: 'octavia.thomas@mindstorm.com',
        var_names.iso_country_code: 'US',
        var_names.phone: '+16075439000',
        var_names.chat: None,
        var_names.webhooks: None,
        var_names.title: 'CEO',
        var_names.profile_picture: ''
    },
    people_basic_list[7][1]: {
        var_names.people_ref_id: people_basic_list[7][1],
        var_names.first_name: 'Neeraj',
        var_names.last_name: 'Bhatia',
        var_names.group: groups_basic_list[3],
        var_names.email: 'neeraj.bhatia@wolf-networks.com',
        var_names.iso_country_code: 'US',
        var_names.phone: '+13453008123',
        var_names.chat: None,
        var_names.webhooks: None,
        var_names.title: 'CTO',
        var_names.profile_picture: ''
    }
}

groups_details = {
    groups_list[0][var_names.group_ref_id]: {
        **groups_list[0],
        **{
            var_names.people: [people_details[people_basic_list[0][1]],
                               people_details[people_basic_list[1][1]]],
            var_names.internal_id: None,
            var_names.sla_response: None,
            var_names.sla_resolution: None
        }
    },
    groups_list[1][var_names.group_ref_id]: {
        **groups_list[1],
        **{
            var_names.people: [],
            var_names.internal_id: None,
            var_names.sla_response: None,
            var_names.sla_resolution: None
        }
    },
    groups_list[2][var_names.group_ref_id]: {
        **groups_list[2],
        **{
            var_names.people: [],
            var_names.internal_id: None,
            var_names.sla_response: None,
            var_names.sla_resolution: None
        }
    },
    groups_list[3][var_names.group_ref_id]: {
        **groups_list[3],
        **{
            var_names.people: [],
            var_names.internal_id: None,
            var_names.sla_response: None,
            var_names.sla_resolution: None
        }
    }
}
