<?php

	//application details
		$apps[$x]['name'] = "Devices";
		$apps[$x]['uuid'] = "4efa1a1a-32e7-bf83-534b-6c8299958a8e";
		$apps[$x]['category'] = "Switch";
		$apps[$x]['subcategory'] = "";
		$apps[$x]['version'] = "1.1";
		$apps[$x]['license'] = "Mozilla Public License 1.1";
		$apps[$x]['url'] = "http://www.fusionpbx.com";
		$apps[$x]['description']['en-us'] = "Devices for provisioning.";
		$apps[$x]['description']['en-gb'] = "Devices for provisioning.";
		$apps[$x]['description']['ar-eg'] = "";
		$apps[$x]['description']['de-at'] = "Geräte die verwaltet werden sollen.";
		$apps[$x]['description']['de-ch'] = "";
		$apps[$x]['description']['de-de'] = "Geräte die verwaltet werden sollen.";
		$apps[$x]['description']['es-cl'] = "Provicionamiento de dispositivos.";
		$apps[$x]['description']['es-mx'] = "Provicionamiento de dispositivos.";
		$apps[$x]['description']['fr-ca'] = "Dispositifs pour provisionnement.";
		$apps[$x]['description']['fr-fr'] = "Equipements pour provisioning.";
		$apps[$x]['description']['he-il'] = "";
		$apps[$x]['description']['it-it'] = "";
		$apps[$x]['description']['nl-nl'] = "Voorzieningen voor toestellen.";
		$apps[$x]['description']['pl-pl'] = "";
		$apps[$x]['description']['pt-br'] = "Provisionamento de telefones IP.";
		$apps[$x]['description']['pt-pt'] = "Lista de provisionamento de Telefone.";
		$apps[$x]['description']['ro-ro'] = "";
		$apps[$x]['description']['ru-ru'] = "Устройства для автопровижинга";
		$apps[$x]['description']['sv-se'] = "";
		$apps[$x]['description']['uk-ua'] = "";

	//permission details
		$y=0;
		$apps[$x]['permissions'][$y]['name'] = "device_view";
		$apps[$x]['permissions'][$y]['menu']['uuid'] = "f9dce498-b7f9-740f-e592-9e8ff3dac2a0";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_add";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_edit";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_delete";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_mac_address";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_label";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_template";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_files";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		//$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_import";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_extension_view";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_extension_add";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_extension_edit";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_extension_delete";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_view";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_add";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_edit";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_delete";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_server_address";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_server_address_primary";
		//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_server_address_secondary";
		//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_label";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_display_name";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_password";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_auth_id";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_transport";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_port";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_shared";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_register_expires";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_key_line";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_key_extension";
		//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_outbound_proxy_primary";
		//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		//$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_line_outbound_proxy_secondary";
		//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_setting_view";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_setting_add";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_setting_edit";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_setting_delete";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_key_view";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_key_add";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_key_edit";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_key_id";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_key_delete";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_key_protected";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_domain";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_user";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_username_password";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_alternate";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_all";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_domain_all";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_location";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_model";
		//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_firmware";
		//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_enable";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_description";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_view";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_add";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_edit";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_delete";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_restore";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_function_view";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_function_add";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_function_edit";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_function_delete";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_delete";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_function_group_view";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_function_group_add";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_function_group_edit";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_vendor_function_group_delete";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_view';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_add';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_edit';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_delete';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_all';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_profile_domain";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_key_view';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_key_add';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_key_edit';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_key_delete';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_key_all';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_setting_view';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_setting_add';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_setting_edit';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_setting_delete';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_profile_setting_all';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_export';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_key_icon';
		$y++;

	//default settings
		$y = 0;
		$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "e05a4745-ea59-47a7-8e7f-5db7d2a5c273";
		$apps[$x]['default_settings'][$y]['default_setting_category'] = "limit";
		$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "devices";
		$apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
		$apps[$x]['default_settings'][$y]['default_setting_value'] = "3";
		$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
		$apps[$x]['default_settings'][$y]['default_setting_description'] = "";
		$y++;
		$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "3d847335-be0a-4130-9c38-0f1d906f3eea";
		$apps[$x]['default_settings'][$y]['default_setting_category'] = "devices";
		$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "profile_key_add_rows";
		$apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
		$apps[$x]['default_settings'][$y]['default_setting_value'] = "10";
		$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
		$apps[$x]['default_settings'][$y]['default_setting_description'] = "";
		$y++;
		$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "53ccbe30-0a40-46af-a31e-12899d6c8e05";
		$apps[$x]['default_settings'][$y]['default_setting_category'] = "devices";
		$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "profile_key_edit_rows";
		$apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
		$apps[$x]['default_settings'][$y]['default_setting_value'] = "3";
		$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
		$apps[$x]['default_settings'][$y]['default_setting_description'] = "";

	//schema details
		$y=0;
		$apps[$x]['db'][$y]['table']['name'] = "v_devices";
		$apps[$x]['db'][$y]['table']['parent'] = "";
		$z=0;
		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id";
		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "hardware_device_id";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "hardware_device_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_profile_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_device_profiles";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "device_profile_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "v_id";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_mac_address";
		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "phone_mac_address";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_label";
		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "phone_label";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_vendor";
		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "phone_vendor";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_location";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_model";
		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "phone_model";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_firmware_version";
		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "phone_firmware_version";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_enabled";
		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "device_provision_enable";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_enabled_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "timestamptz";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "timestamp";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_template";
		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "phone_template";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_user_uuid";
		//$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "user_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_users";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "user_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_username";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_password";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_uuid_alternate";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_devices";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "device_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_time_zone";
		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "phone_time_zone";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_description";
		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "phone_description";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_provisioned_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "timestamptz";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "timestamp";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_provisioned_method";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_provisioned_ip";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_provisioned_agent";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";

		$y++;
		$apps[$x]['db'][$y]['table']['name'] = "v_device_lines";
		$apps[$x]['db'][$y]['table']['parent'] = "v_devices";
		$z=0;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_line_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_devices";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "device_uuid";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "line_number";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select the line number.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "server_address";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the sip server address.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "server_address_primary";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the sip server primary address.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "server_address_secondary";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the sip server secondary address.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "outbound_proxy_primary";
		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "outbound_proxy";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the outbound proxy.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "outbound_proxy_secondary";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the outbound proxy.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "label";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the label.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "display_name";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the display name.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_id";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the user id.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "auth_id";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the auth ID.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "password";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the password.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "sip_port";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "sip_transport";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "register_expires";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "shared_line";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "enabled";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";

		$y++;
		$apps[$x]['db'][$y]['table']['name'] = "v_device_settings";
		$apps[$x]['db'][$y]['table']['parent'] = "v_devices";
		$z=0;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_devices";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "device_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_category";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_subcategory";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_name";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_value";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_enabled";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_description";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_profile_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_device_profiles";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "device_profile_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";

		$y++;
		$apps[$x]['db'][$y]['table']['name'] = "v_device_keys";
		$apps[$x]['db'][$y]['table']['parent'] = "v_devices";
		$z=0;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_key_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_devices";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "device_uuid";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_profile_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_device_profiles";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "device_profile_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_key_id";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select the key ID.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_key_category";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select the type.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_key_vendor";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the vendor.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_key_type";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select the type.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_key_subtype";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select the subtype.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_key_line";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the value.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_key_value";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the value.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_key_extension";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the extension.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_key_protected";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select whether to protect this key from the user group.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_key_label";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the label.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_key_icon";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "ICON Name.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";

		$y++;
		$apps[$x]['db'][$y]['table']['name'] = "v_device_profiles";
		$apps[$x]['db'][$y]['table']['parent'] = "";
		$z=0;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_profile_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_profile_name";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_profile_enabled";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_profile_description";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";

		$y++;
		$apps[$x]['db'][$y]['table']['name'] = 'v_device_profile_keys';
		$apps[$x]['db'][$y]['table']['parent'] = 'v_device_profiles';
		$z = 0;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'device_profile_key_uuid';
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'device_profile_uuid';
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_device_profiles';
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'device_profile_uuid';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_key_id';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the device key id.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_key_category';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the device key category.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_key_vendor';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the device key vendor.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_key_type';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the device key type.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_key_subtype';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the device key type.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_key_line';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the device key line.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_key_value';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the device key value.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_key_extension';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the device key extension.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_key_protected';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the device key protected.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_key_label';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the device key label.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_key_icon';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the device key icon.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";

		$y++;
		$apps[$x]['db'][$y]['table']['name'] = 'v_device_profile_settings';
		$apps[$x]['db'][$y]['table']['parent'] = 'v_device_profiles';
		$z = 0;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'device_profile_setting_uuid';
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'device_profile_uuid';
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_device_profiles';
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'device_profile_uuid';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_setting_name';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the profile setting name.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_setting_value';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the profile setting value.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_setting_enabled';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the profile setting enabled.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile_setting_description';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the profile setting description.';
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";

		$y++;
		$apps[$x]['db'][$y]['table']['name'] = "v_device_vendors";
		$apps[$x]['db'][$y]['table']['parent'] = "";
		$z=0;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_vendor_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "name";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the name.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "enabled";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Set the status of the vendor.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "description";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";

		$y++;
		$apps[$x]['db'][$y]['table']['name'] = "v_device_vendor_functions";
		$apps[$x]['db'][$y]['table']['parent'] = "v_device_vendors";
		$z=0;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_vendor_function_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_vendor_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_device_vendors";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "device_vendor_uuid";
		$z++;
		//$apps[$x]['db'][$y]['fields'][$z]['name'] = "label";
		//$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		//$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		//$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the label.";
		//$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "type";
		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "name";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the type.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "subtype";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the subtype.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "value";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the value.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "enabled";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Set the status of the function.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "description";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description.";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";

		$y++;
		$apps[$x]['db'][$y]['table']['name'] = "v_device_vendor_function_groups";
		$apps[$x]['db'][$y]['table']['parent'] = "v_device_vendor_functions";
		$z=0;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_vendor_function_group_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_vendor_function_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_menus";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "menu_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_vendor_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_menu_items";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "menu_item_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_name";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_groups";
		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "group_uuid";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;
		$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";

	//yealink details
		$y=0;
		$vendors[$y]['uuid'] = "c795c58e-7fcc-4aa1-bcc3-e23d9bc45209";
		$vendors[$y]['name'] = "yealink";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "e0dfc266-bdab-43b3-8554-aa905e290114";
		$vendors[$y]['functions'][$z]['label'] = "label-na";
		$vendors[$y]['functions'][$z]['type'] = "na";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "0";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "236061aa-2ae8-4547-a3d3-e112976c47bc";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['type'] = "line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "15";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "7384b1f7-46d1-4b36-a8c5-3f50c845b62c";
		$vendors[$y]['functions'][$z]['label'] = "label-conference";
		$vendors[$y]['functions'][$z]['type'] = "conference";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "1";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a1a1df6b-20db-4611-ae9a-cdea26648455";
		$vendors[$y]['functions'][$z]['label'] = "label-forward";
		$vendors[$y]['functions'][$z]['type'] = "forward";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "2";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "3252a1be-0b76-447e-932c-916e18f1e36c";
		$vendors[$y]['functions'][$z]['label'] = "label-transfer";
		$vendors[$y]['functions'][$z]['type'] = "transfer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "3";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "401e9880-2db8-4e85-8ccb-562a457b4ce2";
		$vendors[$y]['functions'][$z]['label'] = "label-hold";
		$vendors[$y]['functions'][$z]['type'] = "hold";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "4";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "f562dd59-d065-4ea9-b6c6-af0dbdc4a2b0";
		$vendors[$y]['functions'][$z]['label'] = "label-dnd";
		$vendors[$y]['functions'][$z]['type'] = "dnd";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "5";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "45408d0a-4635-4088-bf06-714a80115132";
		$vendors[$y]['functions'][$z]['label'] = "label-redial";
		$vendors[$y]['functions'][$z]['type'] = "redial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "6";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "4ec2ab32-5aeb-4c7d-98fe-2541fa0ca06c";
		$vendors[$y]['functions'][$z]['label'] = "label-call_return";
		$vendors[$y]['functions'][$z]['type'] = "call_return";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "7";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "33a54620-d188-4510-8876-b5a98dd5452c";
		$vendors[$y]['functions'][$z]['label'] = "label-sms";
		$vendors[$y]['functions'][$z]['type'] = "sms";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "8";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "5e72cbd5-43f1-420b-aad7-758c54019255";
		$vendors[$y]['functions'][$z]['label'] = "label-call_pickup";
		$vendors[$y]['functions'][$z]['type'] = "call_pickup";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "9";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "9c0ee92c-7753-4cff-b07d-1a01081a8933";
		$vendors[$y]['functions'][$z]['label'] = "label-call_park";
		$vendors[$y]['functions'][$z]['type'] = "call_park";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "10";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d14860ff-22e1-4e32-ab68-a29877814780";
		$vendors[$y]['functions'][$z]['label'] = "label-dtmf";
		$vendors[$y]['functions'][$z]['type'] = "dtmf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "11";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "390f5b0f-1db8-475a-80e1-43a20680934c";
		$vendors[$y]['functions'][$z]['label'] = "label-voicemail";
		$vendors[$y]['functions'][$z]['type'] = "voicemail";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "12";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "2dca0d4d-5fc5-4d1b-b7b2-965dc1219fd3";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "13";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "e8f16d57-eb7c-4c0e-aaf2-3348059d18ed";
		$vendors[$y]['functions'][$z]['label'] = "label-intercom";
		$vendors[$y]['functions'][$z]['type'] = "intercom";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "14";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "170fb2d6-2439-44dd-a3d2-6d9223acc863";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['type'] = "blf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "16";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "64dfb845-48c6-40e9-8225-5ffde5deb772";
		$vendors[$y]['functions'][$z]['label'] = "label-url";
		$vendors[$y]['functions'][$z]['type'] = "url";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "17";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "55e6d0d7-a2e8-4da5-8934-5ab3786add6d";
		$vendors[$y]['functions'][$z]['label'] = "label-public_hold";
		$vendors[$y]['functions'][$z]['type'] = "public_hold";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "19";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "10451c99-c39a-4fc7-b679-9edfbe7dad64";
		$vendors[$y]['functions'][$z]['label'] = "label-private";
		$vendors[$y]['functions'][$z]['type'] = "private";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "20";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "66f35f0f-1c94-4f31-8c9e-2e8f237f3b78";
		$vendors[$y]['functions'][$z]['label'] = "label-shared_line";
		$vendors[$y]['functions'][$z]['type'] = "shared_line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "21";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "474ddf54-12bd-4120-8721-000af92b1e9d";
		$vendors[$y]['functions'][$z]['label'] = "label-xml_group";
		$vendors[$y]['functions'][$z]['type'] = "xml_group";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "22";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "98837b7a-5550-47bb-ac2f-7a699ea1eb46";
		$vendors[$y]['functions'][$z]['label'] = "label-group_pickup";
		$vendors[$y]['functions'][$z]['type'] = "group_pickup";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "23";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "aca0127d-f6ac-49bb-b9ce-5dfed806467c";
		$vendors[$y]['functions'][$z]['label'] = "label-paging";
		$vendors[$y]['functions'][$z]['type'] = "paging";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "24";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "52ed6be6-3b7f-4090-80f8-16c41b34901c";
		$vendors[$y]['functions'][$z]['label'] = "label-record";
		$vendors[$y]['functions'][$z]['type'] = "record";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "25";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "387f0592-3100-4336-b30e-7793e2cf4982";
		$vendors[$y]['functions'][$z]['label'] = "label-xml_browser";
		$vendors[$y]['functions'][$z]['type'] = "xml_browser";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "27";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "57916839-4a4f-48db-906c-e9157b1cb596";
		$vendors[$y]['functions'][$z]['label'] = "label-history";
		$vendors[$y]['functions'][$z]['type'] = "history";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "28";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "5cc84adc-e8f5-4425-90de-aa856d55ff8a";
		$vendors[$y]['functions'][$z]['label'] = "label-directory";
		$vendors[$y]['functions'][$z]['type'] = "directory";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "29";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "b37b1bd0-1f41-4df1-bcdb-99e4a2e134f6";
		$vendors[$y]['functions'][$z]['label'] = "label-menu";
		$vendors[$y]['functions'][$z]['type'] = "menu";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "30";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "4af6c554-de80-4c81-bd95-2e678277912b";
		$vendors[$y]['functions'][$z]['label'] = "label-new_sms";
		$vendors[$y]['functions'][$z]['type'] = "new_sms";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "32";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "26af7b6d-3bf9-4ed5-821e-badd0909b416";
		$vendors[$y]['functions'][$z]['label'] = "label-status";
		$vendors[$y]['functions'][$z]['type'] = "status";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "33";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "034f9eca-809c-49b9-bcd3-0318e030fe05";
		$vendors[$y]['functions'][$z]['label'] = "label-hot_desking";
		$vendors[$y]['functions'][$z]['type'] = "hot_desking";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "34";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "6674f177-ba2c-41c9-9c9f-1bcc8d02e769";
		$vendors[$y]['functions'][$z]['label'] = "label-url_record";
		$vendors[$y]['functions'][$z]['type'] = "url_record";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "35";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "eabd5324-f01a-4210-882b-805368d50a06";
		$vendors[$y]['functions'][$z]['label'] = "label-ldap";
		$vendors[$y]['functions'][$z]['type'] = "ldap";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "38";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "e241efea-c81e-4bbf-bf21-5ffdbf8cf705";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_list";
		$vendors[$y]['functions'][$z]['type'] = "blf_list";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "39";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d8c2b139-e3d6-4f71-b4cf-d213bf5009f2";
		$vendors[$y]['functions'][$z]['label'] = "label-prefix";
		$vendors[$y]['functions'][$z]['type'] = "prefix";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "40";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d1b1966b-4607-4c8f-b00b-7dbf7e721cd4";
		$vendors[$y]['functions'][$z]['label'] = "label-zero_sp_touch";
		$vendors[$y]['functions'][$z]['type'] = "zero_sp_touch";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "41";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d631ffb7-5bc9-43b6-a7d3-99a8645330bd";
		$vendors[$y]['functions'][$z]['label'] = "label-acd";
		$vendors[$y]['functions'][$z]['type'] = "acd";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "42";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "cd2ba79c-75ca-425f-a89a-1ff4d39808bc";
		$vendors[$y]['functions'][$z]['label'] = "label-local_phonebook";
		$vendors[$y]['functions'][$z]['type'] = "local_phonebook";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "43";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "456ed439-cc22-4b35-b803-9bed1d817720";
		$vendors[$y]['functions'][$z]['label'] = "label-broadsoft_phonebook";
		$vendors[$y]['functions'][$z]['type'] = "broadsoft_phonebook";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "44";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "57b49527-3d88-44ef-ad9e-b48fce326551";
		$vendors[$y]['functions'][$z]['label'] = "label-local_group";
		$vendors[$y]['functions'][$z]['type'] = "local_group";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "45";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "4b470213-e279-4695-b53f-3d125640caed";
		$vendors[$y]['functions'][$z]['label'] = "label-broadsoft_group";
		$vendors[$y]['functions'][$z]['type'] = "broadsoft_group";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "46";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "90634c22-b09c-4536-90e3-3ff3387c02aa";
		$vendors[$y]['functions'][$z]['label'] = "label-xml_directory";
		$vendors[$y]['functions'][$z]['type'] = "xml_directory";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "47";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "c52a8e09-ee56-489f-a69f-730ed8a32f07";
		$vendors[$y]['functions'][$z]['label'] = "label-switch_account_up";
		$vendors[$y]['functions'][$z]['type'] = "switch_account_up";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "48";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a3ac5013-6cb3-42e6-a77d-9ff3377495b3";
		$vendors[$y]['functions'][$z]['label'] = "label-switch_account_down";
		$vendors[$y]['functions'][$z]['type'] = "switch_account_down";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "49";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d9202df4-2deb-481d-8441-ee77909bcd22";
		$vendors[$y]['functions'][$z]['label'] = "label-keypad_lock";
		$vendors[$y]['functions'][$z]['type'] = "keypad_lock";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "50";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "1d7494ce-f416-43f7-b26f-2817c758a1c5";
		$vendors[$y]['functions'][$z]['label'] = "label-paging_list";
		$vendors[$y]['functions'][$z]['type'] = "paging_list";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "66";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "2effe694-8d44-4757-b3df-8217fd13dcd5";
		$vendors[$y]['functions'][$z]['label'] = "label-custom";
		$vendors[$y]['functions'][$z]['type'] = "custom";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "73";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;

	//snom details
		$y++;
		$vendors[$y]['uuid'] = "8b0ce477-92c7-4bbc-a4fd-ee09c261fa2e";
		$vendors[$y]['name'] = "snom";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "64cee4e3-d123-4507-b359-9138b1146fc8";
		$vendors[$y]['functions'][$z]['label'] = "label-none";
		$vendors[$y]['functions'][$z]['type'] = "none";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "none";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "5e373a17-a0b8-403c-b82c-4c769d134174";
		$vendors[$y]['functions'][$z]['label'] = "label-url";
		$vendors[$y]['functions'][$z]['type'] = "url";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "action_url";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "18b6cb1c-5c49-4511-a56d-63dd6a279cfd";
		$vendors[$y]['functions'][$z]['label'] = "label-auto_answer";
		$vendors[$y]['functions'][$z]['type'] = "auto_answer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "auto_answer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "c7b07a76-1a34-4206-894d-30392940bf84";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['type'] = "blf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "blf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "0545fef7-e2b8-4108-847a-1d41a94706f3";
		$vendors[$y]['functions'][$z]['label'] = "label-button";
		$vendors[$y]['functions'][$z]['type'] = "button";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "button";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "3d190209-ff69-4008-929d-2997acc72329";
		$vendors[$y]['functions'][$z]['label'] = "label-call_agent";
		$vendors[$y]['functions'][$z]['type'] = "call_agent";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "call_agent";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "7c447273-3795-44c5-ac1a-88b6abb752c1";
		$vendors[$y]['functions'][$z]['label'] = "label-conference";
		$vendors[$y]['functions'][$z]['type'] = "conference";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "conference";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "09b8182d-655a-4366-ac96-ddac6d726251";
		$vendors[$y]['functions'][$z]['label'] = "label-dtmf";
		$vendors[$y]['functions'][$z]['type'] = "dtmf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "dtmf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "0386cf10-ae8e-40bb-ae3d-cda9a4ea0118";
		$vendors[$y]['functions'][$z]['label'] = "label-extension";
		$vendors[$y]['functions'][$z]['type'] = "extension";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "dest";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "b6a95df7-8f62-44b5-b54b-4297e6705015";
		$vendors[$y]['functions'][$z]['label'] = "label-redirect";
		$vendors[$y]['functions'][$z]['type'] = "redirect";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "redirect";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "706fad4b-ebc6-4437-ad93-abb8a8c15275";
		$vendors[$y]['functions'][$z]['label'] = "label-intercom";
		$vendors[$y]['functions'][$z]['type'] = "intercom";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "icom";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "ffb3cb46-f01b-4859-977d-26b9937d17d1";
		$vendors[$y]['functions'][$z]['label'] = "label-ivr";
		$vendors[$y]['functions'][$z]['type'] = "ivr";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "ivr";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "630b679d-e3c5-422e-a5d6-b167e4d2b01a";
		$vendors[$y]['functions'][$z]['label'] = "label-key_event";
		$vendors[$y]['functions'][$z]['type'] = "key_event";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "keyevent";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "5b155bd3-f717-4dad-9f11-0971605b44fc";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['type'] = "line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "line";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "80c6ebc8-d8dd-4327-af2a-6a57fb15610b";
		$vendors[$y]['functions'][$z]['label'] = "label-multicast_page";
		$vendors[$y]['functions'][$z]['type'] = "multicast_page";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "multicast";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "dd5995ae-2d18-47ec-b7c3-9abfb02457f5";
		$vendors[$y]['functions'][$z]['label'] = "label-orbit";
		$vendors[$y]['functions'][$z]['type'] = "orbit";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "orbit";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "2aab02e3-402a-4ecd-aee6-0f78b7dca5f4";
		$vendors[$y]['functions'][$z]['label'] = "label-presence";
		$vendors[$y]['functions'][$z]['type'] = "presence";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "presence";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "c4fe0550-26aa-400d-8c09-618723a57087";
		$vendors[$y]['functions'][$z]['label'] = "label-p2t";
		$vendors[$y]['functions'][$z]['type'] = "p2t";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "p2t";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "e976a144-a343-4761-a735-621f190e2708";
		$vendors[$y]['functions'][$z]['label'] = "label-shared_line";
		$vendors[$y]['functions'][$z]['type'] = "shared_line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "mult";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a3a12477-1012-4350-8717-ce8c8a279a7a";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "speed";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "347c332a-751c-4c35-93a6-1ded6d710249";
		$vendors[$y]['functions'][$z]['label'] = "label-transfer";
		$vendors[$y]['functions'][$z]['type'] = "transfer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "transfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "971596e7-5958-4116-add0-b2b321a916f6";
		$vendors[$y]['functions'][$z]['label'] = "label-record";
		$vendors[$y]['functions'][$z]['type'] = "record";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "recorder";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

	//poly details
		$y++;
		$vendors[$y]['uuid'] = "cac9a0e3-a7d4-426a-bd6d-a14f7d6a6350";
		$vendors[$y]['name'] = "poly";
		$z=0;

	//polycom details
		$y++;
		$vendors[$y]['uuid'] = "6baf1a7e-7a43-4a66-9007-bbb911bf947b";
		$vendors[$y]['name'] = "polycom";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "15d0c92d-91e9-43e9-b35d-85f1d5e35fff";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['type'] = "line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "line";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "f18e9a26-09e3-476f-8bd4-35a257a6872b";
		$vendors[$y]['functions'][$z]['label'] = "label-automata";
		$vendors[$y]['functions'][$z]['type'] = "automata";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "automata";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "617e4474-c381-4ef8-950a-2b29b67ed8e3";
		$vendors[$y]['functions'][$z]['label'] = "label-normal";
		$vendors[$y]['functions'][$z]['type'] = "normal";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "normal";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "6f8ac180-b741-4c94-9d45-87fa39fe340b";
		$vendors[$y]['functions'][$z]['label'] = "label-messages";
		$vendors[$y]['functions'][$z]['type'] = "messages";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Messages";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "b0ae3068-fc45-44cf-b052-b8705740acb2";
		$vendors[$y]['functions'][$z]['label'] = "label-micmute";
		$vendors[$y]['functions'][$z]['type'] = "micmute";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "MicMute";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d9cdb61a-3821-4a3a-833b-5beaab212997";
		$vendors[$y]['functions'][$z]['label'] = "label-redial";
		$vendors[$y]['functions'][$z]['type'] = "redial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Redial";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "202352b8-beac-4861-8220-4489533c3679";
		$vendors[$y]['functions'][$z]['label'] = "label-null";
		$vendors[$y]['functions'][$z]['type'] = "null";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Null";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "0205cce8-2796-4f3d-97c0-dbe51add6270";
		$vendors[$y]['functions'][$z]['label'] = "label-url";
		$vendors[$y]['functions'][$z]['type'] = "url";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "URL";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

	//aastra details
		$y++;
		$vendors[$y]['uuid'] = "a287e444-95e0-47c4-9742-0a8cec73c799";
		$vendors[$y]['name'] = "aastra";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "913b6eca-3795-4d7d-9403-bbf56276afd4";
		$vendors[$y]['functions'][$z]['label'] = "label-none";
		$vendors[$y]['functions'][$z]['type'] = "none";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "none";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "e2f048a2-441d-4488-89cf-ef3b573189b8";
		$vendors[$y]['functions'][$z]['label'] = "label-empty";
		$vendors[$y]['functions'][$z]['type'] = "empty";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "empty";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "8dd7f00e-8f0a-4b73-aa51-98a1ade5b670";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['type'] = "blf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "blf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "c921464e-f7cb-45f7-8dd8-8b8bf3c00ae1";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_xfer";
		$vendors[$y]['functions'][$z]['type'] = "blf_xfer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "blfxfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "41a6ce08-39ad-4476-b83f-df53e5425114";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_list";
		$vendors[$y]['functions'][$z]['type'] = "blf_list";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "list";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d0a67640-951c-4587-b266-fc27b1e290db";
		$vendors[$y]['functions'][$z]['label'] = "label-callers";
		$vendors[$y]['functions'][$z]['type'] = "callers";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "callers";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "62320c4e-e68d-43bb-b29a-0e08af9e0855";
		$vendors[$y]['functions'][$z]['label'] = "label-call_forward";
		$vendors[$y]['functions'][$z]['type'] = "call_forward";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "callforward";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d919273a-4500-45d0-ba59-f544e3766815";
		$vendors[$y]['functions'][$z]['label'] = "label-conf";
		$vendors[$y]['functions'][$z]['type'] = "conf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "conf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "abeeedea-9a2f-4092-8884-f8e9f3f7fce0";
		$vendors[$y]['functions'][$z]['label'] = "label-dnd";
		$vendors[$y]['functions'][$z]['type'] = "dnd";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "dnd";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "b5e56de3-65b4-44e9-8f4b-8943c0ddfd50";
		$vendors[$y]['functions'][$z]['label'] = "label-directory";
		$vendors[$y]['functions'][$z]['type'] = "directory";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "directory";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "3111a723-0e2e-4627-bcdc-c6f19a6b8836";
		$vendors[$y]['functions'][$z]['label'] = "label-flash";
		$vendors[$y]['functions'][$z]['type'] = "flash";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "flash";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "7daaf215-4396-4535-9a27-57d1ce67904b";
		$vendors[$y]['functions'][$z]['label'] = "label-filter";
		$vendors[$y]['functions'][$z]['type'] = "filter";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "filter";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "b2eb0361-b7fa-43bb-a481-e041dd76c91f";
		$vendors[$y]['functions'][$z]['label'] = "label-icom";
		$vendors[$y]['functions'][$z]['type'] = "icom";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "icom";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "5869b457-97b3-4e52-9a38-435347d039f4";
		$vendors[$y]['functions'][$z]['label'] = "label-lcr";
		$vendors[$y]['functions'][$z]['type'] = "lcr";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "lcr";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "dc4f8dcc-7922-4b74-aa69-188dc84046c2";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['type'] = "line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "line";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "11ff4c26-ca8a-4fa8-ab5e-7a175de644ea";
		$vendors[$y]['functions'][$z]['label'] = "label-page";
		$vendors[$y]['functions'][$z]['type'] = "page";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "paging";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "75481dd7-171c-42f0-8202-37ba9bba29b5";
		$vendors[$y]['functions'][$z]['label'] = "label-park";
		$vendors[$y]['functions'][$z]['type'] = "park";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "park";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "10342103-7f20-4811-89a0-7227dad9f91a";
		$vendors[$y]['functions'][$z]['label'] = "label-phonelock";
		$vendors[$y]['functions'][$z]['type'] = "phonelock";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "phonelock";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a91d0cfb-f175-4012-a687-6f7c7a500d5d";
		$vendors[$y]['functions'][$z]['label'] = "label-pickup";
		$vendors[$y]['functions'][$z]['type'] = "pickup";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "pickup";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "caf029fd-ffca-466a-9019-ff3c89ecda08";
		$vendors[$y]['functions'][$z]['label'] = "label-redial";
		$vendors[$y]['functions'][$z]['type'] = "redial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "redial";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "bf9f3003-7593-419f-87b2-ff54e8890d93";
		$vendors[$y]['functions'][$z]['label'] = "label-sprecode";
		$vendors[$y]['functions'][$z]['type'] = "sprecode";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "sprecode";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d539860f-7dfb-4922-805f-9d5d2363a5d4";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "speeddial";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "16aa117d-0dd9-4954-b24a-e8f3403acd6c";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial_xfer";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial_xfer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "speeddialxfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "358589e9-8be0-4931-a329-7a9e902ab4b8";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial_conf";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial_conf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "speeddialconf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "2b9245f8-f3ac-4af1-b679-8506ac069ff4";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial_mwi";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial_mwi";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "speeddialmwi";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "6dfc8f00-b813-4424-9a6f-fe3e15ff976a";
		$vendors[$y]['functions'][$z]['label'] = "label-xfer";
		$vendors[$y]['functions'][$z]['type'] = "xfer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "xfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "c6208fd1-b81e-4349-a2f1-769710df41df";
		$vendors[$y]['functions'][$z]['label'] = "label-xml";
		$vendors[$y]['functions'][$z]['type'] = "xml";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "xml";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

	//cisco details
		$y++;
		$vendors[$y]['uuid'] = "cbedd8ac-e3f0-45ac-9fd8-dc3089ca133a";
		$vendors[$y]['name'] = "cisco";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "199c6379-e628-4a64-8136-04905b6f739b";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['type'] = "blf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "blf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "eb008983-a2b3-411f-baab-10fe5cc152d7";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['type'] = "line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "line";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "73805147-a9e5-4e26-9573-cdbeadf1703f";
		$vendors[$y]['functions'][$z]['label'] = "label-disabled";
		$vendors[$y]['functions'][$z]['type'] = "disabled";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "disabled";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "72f610e3-2803-404a-96d8-74bfcc6adabe";
		$vendors[$y]['functions'][$z]['label'] = "label-shared_line";
		$vendors[$y]['functions'][$z]['type'] = "shared_line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "shared";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

	//linksys details
		$y++;
		$vendors[$y]['uuid'] = "8116f44f-ccd6-46d5-8e65-46cc2c8cca32";
		$vendors[$y]['name'] = "linksys";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "d0a48ae2-0b8a-4f0c-9006-e062e2e3a39c";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['type'] = "line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "line";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a971c5ab-e473-417a-b2f4-8a0473159722";
		$vendors[$y]['functions'][$z]['label'] = "label-disabled";
		$vendors[$y]['functions'][$z]['type'] = "disabled";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "disabled";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "9a23351d-2578-438f-8a94-7b1190f69c28";
		$vendors[$y]['functions'][$z]['label'] = "label-shared_line";
		$vendors[$y]['functions'][$z]['type'] = "shared_line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "shared";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

	//escene details
		$y++;
		$vendors[$y]['uuid'] = "30f714c0-b364-4d5b-83f6-d778eaf0dfd0";
		$vendors[$y]['name'] = "escene";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "eeba34d5-c146-4a15-b183-5f2cbfb5ac3f";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['type'] = "blf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "1";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "15484a5e-7cc2-40bf-ab07-030b8b6aa8f1";
		$vendors[$y]['functions'][$z]['label'] = "label-call_park";
		$vendors[$y]['functions'][$z]['type'] = "call_park";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "7";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "edb0075a-844b-47c0-9987-457d71f8ed2d";
		$vendors[$y]['functions'][$z]['label'] = "label-dtmf";
		$vendors[$y]['functions'][$z]['type'] = "dtmf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "4";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "36b07f22-6696-455b-a9a7-45523a5a056d";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "5";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "e6ca8bb7-203d-4285-ab35-577cfc64bd37";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial_prefix";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial_prefix";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "2";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "1819d16d-4cbe-4e28-bd15-bb8df3165b7b";
		$vendors[$y]['functions'][$z]['label'] = "label-intercom";
		$vendors[$y]['functions'][$z]['type'] = "intercom";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "8";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d6aab974-6c8d-4a51-b098-6994ee383284";
		$vendors[$y]['functions'][$z]['label'] = "label-pickup";
		$vendors[$y]['functions'][$z]['type'] = "pickup";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "9";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d81175b6-4d49-4537-84e7-81d665743c7d";
		$vendors[$y]['functions'][$z]['label'] = "label-broadsoft_group";
		$vendors[$y]['functions'][$z]['type'] = "broadsoft_group";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "11";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		//BLA type 3 Paging type 6

	//escene programmable details
		$y++;
		$vendors[$y]['uuid'] = "425ae7ef-a25a-402e-91f0-c4a1fbc45cf9";
		$vendors[$y]['name'] = "escene programmable";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "e523fd42-03e6-4d8d-a6d4-e91777536a58";
		$vendors[$y]['functions'][$z]['label'] = "label-default";
		$vendors[$y]['functions'][$z]['type'] = "default";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "0";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Default";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "70d81149-66a2-4311-98b7-63fa8562e27e";
		$vendors[$y]['functions'][$z]['label'] = "label-redial";
		$vendors[$y]['functions'][$z]['type'] = "redial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "1";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Redial";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "c8f0ce02-95e5-4d28-82e2-c2c141d0ff4e";
		$vendors[$y]['functions'][$z]['label'] = "label-dnd";
		$vendors[$y]['functions'][$z]['type'] = "dnd";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "2";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "DND";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "466b3206-a52f-47a4-8d17-8a55a21936e6";
		$vendors[$y]['functions'][$z]['label'] = "label-phone_book";
		$vendors[$y]['functions'][$z]['type'] = "phone_book";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "3";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Contacts";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "f2a83ada-0871-4931-abc1-76586c0b5539";
		$vendors[$y]['functions'][$z]['label'] = "label-ent_phone_book";
		$vendors[$y]['functions'][$z]['type'] = "ent_phone_book";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "4";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Enterprise Phonebook";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "632b689e-7333-4d7c-b2bd-e13474816bd6";
		$vendors[$y]['functions'][$z]['label'] = "label-ldap";
		$vendors[$y]['functions'][$z]['type'] = "ldap";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "5";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "LDAP";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "bfe8d2d9-dacc-4789-b0f3-83c60e0b4f1a";
		$vendors[$y]['functions'][$z]['label'] = "label-directory";
		$vendors[$y]['functions'][$z]['type'] = "directory";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "6";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Directory";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "9cf990cf-5d11-420b-9316-6c25e73b081b";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "7";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Speed Dial";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "503c86e2-7670-49b0-b2d8-a72497730a17";
		$vendors[$y]['functions'][$z]['label'] = "label-call_log";
		$vendors[$y]['functions'][$z]['type'] = "call_log";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "8";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Call List";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "78cec073-4782-464b-8156-ff6e4247409f";
		$vendors[$y]['functions'][$z]['label'] = "label-missed_calls";
		$vendors[$y]['functions'][$z]['type'] = "missed_calls";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "9";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Missed Calls";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "44a3ee60-3154-4490-978d-f7c3d1b54ce9";
		$vendors[$y]['functions'][$z]['label'] = "label-received_calls";
		$vendors[$y]['functions'][$z]['type'] = "received_calls";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "10";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Received Calls";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "0f9c9343-7c6d-4b6f-87cf-bfa23cbf22ac";
		$vendors[$y]['functions'][$z]['label'] = "label-dialed_calls";
		$vendors[$y]['functions'][$z]['type'] = "dialed_calls";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "11";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Dialed Calls";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "165d8867-af41-4a7c-9a19-013b95f6c9b3";
		$vendors[$y]['functions'][$z]['label'] = "label-menu";
		$vendors[$y]['functions'][$z]['type'] = "menu";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "12";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Menu";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "153d19a7-a43d-4608-92b7-bede80fb14db";
		$vendors[$y]['functions'][$z]['label'] = "label-sms";
		$vendors[$y]['functions'][$z]['type'] = "sms";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "13";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "SMS";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "2c504bd8-0f9f-46d3-9cc1-bbedf19fa221";
		$vendors[$y]['functions'][$z]['label'] = "label-new_sms";
		$vendors[$y]['functions'][$z]['type'] = "new_sms";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "14";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "New SMS";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "396f323b-8aa9-4539-a41e-3acc985b8f30";
		$vendors[$y]['functions'][$z]['label'] = "label-forward";
		$vendors[$y]['functions'][$z]['type'] = "forward";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "15";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Call Forward";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "54834857-0c8e-4206-828c-e47d09996a7f";
		$vendors[$y]['functions'][$z]['label'] = "label-status";
		$vendors[$y]['functions'][$z]['type'] = "status";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "16";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "View Status";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d4be90e4-4776-4cfd-b013-bd5db5976111";
		$vendors[$y]['functions'][$z]['label'] = "label-enable_account";
		$vendors[$y]['functions'][$z]['type'] = "enable_account";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "17";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Enable/Disable SIP Account";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "cd08d06c-6f9a-4d37-a485-81538a9e18f2";
		$vendors[$y]['functions'][$z]['label'] = "label-xml_browser";
		$vendors[$y]['functions'][$z]['type'] = "xml_browser";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "18";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['enabled'] = "false";
		$vendors[$y]['functions'][$z]['description'] = "XML Browser";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a6eafa1b-e31e-4e6c-b414-3358b199b04c";
		$vendors[$y]['functions'][$z]['label'] = "label-provison_now";
		$vendors[$y]['functions'][$z]['type'] = "provison_now";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "19";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Auto Provison Now";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "c1486704-152b-483d-9b23-f24be29cc62e";
		$vendors[$y]['functions'][$z]['label'] = "label-hot_desking";
		$vendors[$y]['functions'][$z]['type'] = "hot_desking";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "20";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['description'] = "Hot Desking";

	//grandstream details
		$y++;
		$vendors[$y]['uuid'] = "c486dd68-1462-4128-901e-d902d17d1951";
		$vendors[$y]['name'] = "grandstream";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "6515209e-62cb-4c32-966d-ba3d3a29e5bf";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['type'] = "line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "line";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "4378015c-e7b0-4e64-bc89-b12a4e11edec";
		$vendors[$y]['functions'][$z]['label'] = "label-shared_line";
		$vendors[$y]['functions'][$z]['type'] = "shared_line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "shared line";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "02497780-6197-4c66-b208-5e94222dab32";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "speed dial";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "0ebe3c35-9831-432f-bd36-a2deee8d411b";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['type'] = "blf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "blf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "92aca6be-e8c7-4e0c-bd45-42e12833dde5";
		$vendors[$y]['functions'][$z]['label'] = "label-presence_watcher";
		$vendors[$y]['functions'][$z]['type'] = "presence_watcher";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "presence watcher";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "962aa410-d803-41a2-bfdc-46610b932037";
		$vendors[$y]['functions'][$z]['label'] = "label-eventlist_blf";
		$vendors[$y]['functions'][$z]['type'] = "eventlist_blf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "eventlist blf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "93ac59e6-167e-4343-ad39-ba00bce1e6cf";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial_active";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial_active";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "speed dial active";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "14994544-b7e6-4191-adc3-d815a65bb0cc";
		$vendors[$y]['functions'][$z]['label'] = "label-dial_dtmf";
		$vendors[$y]['functions'][$z]['type'] = "dial_dtmf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "dial dtmf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a7e159bd-552c-49c2-af70-b7b76c549cec";
		$vendors[$y]['functions'][$z]['label'] = "label-voicemail";
		$vendors[$y]['functions'][$z]['type'] = "voicemail";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "voicemail";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "f7d4ac4d-b30a-449e-982d-e820ba73de0b";
		$vendors[$y]['functions'][$z]['label'] = "label-call_return";
		$vendors[$y]['functions'][$z]['type'] = "call_return";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "call return";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d4f2ebbe-775f-4018-9122-e8df470511bb";
		$vendors[$y]['functions'][$z]['label'] = "label-transfer";
		$vendors[$y]['functions'][$z]['type'] = "transfer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "transfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "be83e643-8477-4dec-942a-00bb00a032d8";
		$vendors[$y]['functions'][$z]['label'] = "label-call_park";
		$vendors[$y]['functions'][$z]['type'] = "call_park";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "call park";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "bc318271-5232-477e-ab53-01b3532f74a9";
		$vendors[$y]['functions'][$z]['label'] = "label-intercom";
		$vendors[$y]['functions'][$z]['type'] = "intercom";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "intercom";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "0853b370-e319-4aa9-bb74-ac1d0c248cac";
		$vendors[$y]['functions'][$z]['label'] = "label-ldap_search";
		$vendors[$y]['functions'][$z]['type'] = "ldap_search";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "ldap search";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "bbb4c3f9-7a2f-4670-a194-e7ab92c5c3d1";
		$vendors[$y]['functions'][$z]['label'] = "label-conference";
		$vendors[$y]['functions'][$z]['type'] = "conference";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "conference";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "8434d505-36e0-422c-a1ab-8950e7849829";
		$vendors[$y]['functions'][$z]['label'] = "label-menu";
		$vendors[$y]['functions'][$z]['type'] = "menu";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "menu";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "4792c9dd-9342-4894-9987-61c45e46e7d7";
		$vendors[$y]['functions'][$z]['label'] = "label-monitored_call_park";
		$vendors[$y]['functions'][$z]['type'] = "monitored_call_park";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "monitored call park";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "27edbba6-14bb-48e8-8fa6-25f86bfc9ccc";
		$vendors[$y]['functions'][$z]['label'] = "label-multicast_paging";
		$vendors[$y]['functions'][$z]['type'] = "multicast_paging";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "multicast paging";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d28bc679-b984-49a7-963f-7e5d9fc4dbcb";
		$vendors[$y]['functions'][$z]['label'] = "label-record";
		$vendors[$y]['functions'][$z]['type'] = "record";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "record";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "f99f55b8-113e-4fbb-aed1-84af66f5320c";
		$vendors[$y]['functions'][$z]['label'] = "label-none";
		$vendors[$y]['functions'][$z]['type'] = "none";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "none";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "5fab2239-b72c-404a-a392-251e22770ec5";
		$vendors[$y]['functions'][$z]['label'] = "label-phonebook";
		$vendors[$y]['functions'][$z]['type'] = "phonebook";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "phonebook";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

	//mitel details
		$y++;
		$vendors[$y]['uuid'] = "03931359-917e-455b-b4fc-f875c530b79c";
		$vendors[$y]['name'] = "mitel";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "5d62bf2f-7797-4e05-925a-b33e4c938a58";
		$vendors[$y]['functions'][$z]['label'] = "label-not_programmed";
		$vendors[$y]['functions'][$z]['type'] = "not_programmed";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "0";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "2efd0520-a8f2-4693-883f-75a5c4ae0dde";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "1";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "5512aa21-40c3-4e03-993c-a36dd6b2ff10";
		$vendors[$y]['functions'][$z]['label'] = "label-shared_line";
		$vendors[$y]['functions'][$z]['type'] = "shared_line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "5";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "39fee448-180a-4baa-b58c-0bdffc46218c";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['type'] = "line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "6";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "6326e2b8-065f-4cb0-bec6-3bff9de5438a";
		$vendors[$y]['functions'][$z]['label'] = "label-call_log";
		$vendors[$y]['functions'][$z]['type'] = "call_log";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "2";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a2483ded-16f5-4fe5-8d12-4b5a94957119";
		$vendors[$y]['functions'][$z]['label'] = "label-phone_book";
		$vendors[$y]['functions'][$z]['type'] = "phone_book";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "15";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "637b1422-8787-457a-b033-54775a35d2ca";
		$vendors[$y]['functions'][$z]['label'] = "label-forward";
		$vendors[$y]['functions'][$z]['type'] = "forward";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "16";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "7095e930-fa2e-4e06-8093-fc15924c8152";
		$vendors[$y]['functions'][$z]['label'] = "label-dnd";
		$vendors[$y]['functions'][$z]['type'] = "dnd";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "17";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "085e018f-c032-4533-a6b9-dc30628dea2e";
		$vendors[$y]['functions'][$z]['label'] = "label-advisory_message";
		$vendors[$y]['functions'][$z]['type'] = "advisory_message";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "3";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a36be3d8-bbbb-404f-8aa4-a5ed9e487fb5";
		$vendors[$y]['functions'][$z]['label'] = "label-pc_application";
		$vendors[$y]['functions'][$z]['type'] = "pc_application";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "18";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d6aeb136-eb88-4412-afd6-56a34d2f021e";
		$vendors[$y]['functions'][$z]['label'] = "label-headset_on_off";
		$vendors[$y]['functions'][$z]['type'] = "headset_on_off";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "4";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "40845813-9e78-411e-89ef-a52439d47622";
		$vendors[$y]['functions'][$z]['label'] = "label-rss_feed";
		$vendors[$y]['functions'][$z]['type'] = "rss_feed";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "19";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "c95ab0a9-81da-4582-9443-9c55d161a75e";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial_blf";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial_blf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "27";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "7204d088-77e9-4128-a156-d3838b02eeb1";
		$vendors[$y]['functions'][$z]['label'] = "label-url";
		$vendors[$y]['functions'][$z]['type'] = "url";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "19";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

	//sangoma details
		$y++;
		$vendors[$y]['uuid'] = "6a495141-7443-47d9-976d-59f8590b03cf";
		$vendors[$y]['name'] = "sangoma";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "6aa17aa6-2f8f-4a86-8ae4-78a621501b38";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['type'] = "line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "1";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "bac93b63-f61c-481e-99d6-b2aa8cedd05a";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "2";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "9039dfa1-9ca4-4908-bc93-56295ea65b01";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['type'] = "blf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "3";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a033a6f0-e097-48fd-bd32-79b9869fec64";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_list";
		$vendors[$y]['functions'][$z]['type'] = "blf_list";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "4";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "972e31b0-b1d2-4297-8f81-33f2381e385c";
		$vendors[$y]['functions'][$z]['label'] = "label-voicemail";
		$vendors[$y]['functions'][$z]['type'] = "voicemail";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "5";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "7a206b38-f415-45b3-9b06-be17f7ebd408";
		$vendors[$y]['functions'][$z]['label'] = "label-direct_pickup";
		$vendors[$y]['functions'][$z]['type'] = "direct_pickup";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "6";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "9f407e7f-ba2d-40de-9ab3-2a6cf82cb290";
		$vendors[$y]['functions'][$z]['label'] = "label-group_pickup";
		$vendors[$y]['functions'][$z]['type'] = "group_pickup";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "7";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "ad751a17-438a-4e0f-b00f-e50c0842ada8";
		$vendors[$y]['functions'][$z]['label'] = "label-park";
		$vendors[$y]['functions'][$z]['type'] = "park";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "8";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "49ca8bc1-bbab-42f0-bf8b-1eec800f7dc5";
		$vendors[$y]['functions'][$z]['label'] = "label-intercom";
		$vendors[$y]['functions'][$z]['type'] = "intercom";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "9";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "07869844-1647-4699-a707-98aac0301630";
		$vendors[$y]['functions'][$z]['label'] = "label-dtmf";
		$vendors[$y]['functions'][$z]['type'] = "dtmf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "10";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "cc5b1533-063e-4993-a24a-25c3c6f6c2b5";
		$vendors[$y]['functions'][$z]['label'] = "label-prefix";
		$vendors[$y]['functions'][$z]['type'] = "prefix";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "11";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "f412d8cc-b17f-4407-a960-7fc8069230ca";
		$vendors[$y]['functions'][$z]['label'] = "label-local_group";
		$vendors[$y]['functions'][$z]['type'] = "local_group";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "12";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "fe20acd2-ded3-4c22-a670-940776c53259";
		$vendors[$y]['functions'][$z]['label'] = "label-xml_group";
		$vendors[$y]['functions'][$z]['type'] = "xml_group";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "13";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "695bf25c-fc96-4751-a5e4-a696d8503e29";
		$vendors[$y]['functions'][$z]['label'] = "label-xml_browser";
		$vendors[$y]['functions'][$z]['type'] = "xml_browser";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "14";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "0f783f47-7a80-4169-844d-5de74cb6a82d";
		$vendors[$y]['functions'][$z]['label'] = "label-ldap";
		$vendors[$y]['functions'][$z]['type'] = "ldap";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "15";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "8264a629-8eab-44fe-b584-208ab86fd316";
		$vendors[$y]['functions'][$z]['label'] = "label-broadsoft_group";
		$vendors[$y]['functions'][$z]['type'] = "broadsoft_group";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "16";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "668da944-3e66-4010-818a-74f88c476778";
		$vendors[$y]['functions'][$z]['label'] = "label-conference";
		$vendors[$y]['functions'][$z]['type'] = "conference";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "17";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "3905b3c2-56e2-451a-b0c3-5efef3035204";
		$vendors[$y]['functions'][$z]['label'] = "label-forward";
		$vendors[$y]['functions'][$z]['type'] = "forward";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "18";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "ed3ddaef-377a-4430-a3bb-437cad65b326";
		$vendors[$y]['functions'][$z]['label'] = "label-transfer";
		$vendors[$y]['functions'][$z]['type'] = "transfer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "19";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a22a0db5-6bf6-4716-81ea-07977ccd086e";
		$vendors[$y]['functions'][$z]['label'] = "label-hold";
		$vendors[$y]['functions'][$z]['type'] = "hold";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "20";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "51510fa0-2e2c-4528-b0fb-31794a327baa";
		$vendors[$y]['functions'][$z]['label'] = "label-dnd";
		$vendors[$y]['functions'][$z]['type'] = "dnd";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "21";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "02256a8f-0212-4cd9-9a95-5e5de98830db";
		$vendors[$y]['functions'][$z]['label'] = "label-redial";
		$vendors[$y]['functions'][$z]['type'] = "redial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "22";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "87ef2737-deff-4988-9755-03bb615a0899";
		$vendors[$y]['functions'][$z]['label'] = "label-park_return";
		$vendors[$y]['functions'][$z]['type'] = "park_return";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "23";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d6ee7d09-0cc7-4a07-82aa-64d126be6d34";
		$vendors[$y]['functions'][$z]['label'] = "label-sms";
		$vendors[$y]['functions'][$z]['type'] = "sms";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "24";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "13f64d30-7474-4bb9-b58c-6ad9c8567f22";
		$vendors[$y]['functions'][$z]['label'] = "label-record";
		$vendors[$y]['functions'][$z]['type'] = "record";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "25";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "c5553bad-d0d0-42ab-8ee6-e4395fe33743";
		$vendors[$y]['functions'][$z]['label'] = "label-url_record";
		$vendors[$y]['functions'][$z]['type'] = "url_record";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "26";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "dc6872fe-cc82-490d-ba0e-da9dd5ad9f0f";
		$vendors[$y]['functions'][$z]['label'] = "label-paging";
		$vendors[$y]['functions'][$z]['type'] = "paging";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "27";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "196d53ff-02f3-4954-8c26-69d4aa04bd64";
		$vendors[$y]['functions'][$z]['label'] = "label-group_listening";
		$vendors[$y]['functions'][$z]['type'] = "group_listening";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "28";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "02aa6f3a-fcdb-4f1b-b617-ffef8cee6319";
		$vendors[$y]['functions'][$z]['label'] = "label-public_hold";
		$vendors[$y]['functions'][$z]['type'] = "public_hold";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "29";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "c7e07789-4797-4dea-bb20-d82c1943f5dd";
		$vendors[$y]['functions'][$z]['label'] = "label-private_hold";
		$vendors[$y]['functions'][$z]['type'] = "private_hold";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "30";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "2a66228e-17eb-4b7b-ad91-5e8f39e02ec7";
		$vendors[$y]['functions'][$z]['label'] = "label-shared_line";
		$vendors[$y]['functions'][$z]['type'] = "shared_line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "31";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "eda7b9ff-15b3-452b-9738-f91abcb9fd36";
		$vendors[$y]['functions'][$z]['label'] = "label-hot_desking";
		$vendors[$y]['functions'][$z]['type'] = "hot_desking";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "32";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "4d87a1ab-6cb5-4c67-9b6e-dff5f5116a52";
		$vendors[$y]['functions'][$z]['label'] = "label-acd";
		$vendors[$y]['functions'][$z]['type'] = "acd";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "33";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "18fb8dd3-c114-4ae5-b342-91c4930f1555";
		$vendors[$y]['functions'][$z]['label'] = "label-zero_touch";
		$vendors[$y]['functions'][$z]['type'] = "zero_touch";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "34";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "eea35252-f9d6-49fa-8cb5-760f99a99584";
		$vendors[$y]['functions'][$z]['label'] = "label-url";
		$vendors[$y]['functions'][$z]['type'] = "url";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "35";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "6a8e6877-d269-4930-bd21-7413b4f9f506";
		$vendors[$y]['functions'][$z]['label'] = "label-multicast_paging";
		$vendors[$y]['functions'][$z]['type'] = "multicast_paging";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "47";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

	//audiocodes details
		$y++; //vendors array index
		$vendors[$y]['uuid'] = "c4a8bfa2-e91f-4adb-a1df-24c51ef506c7";
		$vendors[$y]['name'] = "audiocodes";
		$z=0; //functions array index
		$vendors[$y]['functions'][$z]['uuid'] = "297a5086-5b4e-4c1e-8cfd-121a3c2897b6";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['type'] = "blf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "SPEED_DIAL_BLF";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "91197b89-4732-496a-9613-dd8ce866103f";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "SPEED_DIAL";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "abd132d4-9ab4-4a74-8cc7-35094f262fe6";
		$vendors[$y]['functions'][$z]['label'] = "label-page";
		$vendors[$y]['functions'][$z]['type'] = "page";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "PAGING";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

	//obihai details
		$y++; //vendors array index
		$vendors[$y]['uuid'] = "bd2ffe34-30c4-441a-9c1d-5ec0773b9c9b";
		$vendors[$y]['name'] = "obihai";
		$z=0; //functions array index
		$vendors[$y]['functions'][$z]['uuid'] = "c8d8b7bc-4147-457e-ab4b-4cda74e93677";
		$vendors[$y]['functions'][$z]['label'] = "label-auto_answer_intercom";
		$vendors[$y]['functions'][$z]['type'] = "auto_answer_intercom";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Auto Answer Intercom";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "9d7a0a3f-107b-4704-b392-79f760dba4d7";
		$vendors[$y]['functions'][$z]['label'] = "label-acd_sign_on_off";
		$vendors[$y]['functions'][$z]['type'] = "acd_sign_on_off";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "ACD Sign On/Off";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "6c0d2162-c38b-4a02-87da-849f17966efa";
		$vendors[$y]['functions'][$z]['label'] = "label-blind_transfer";
		$vendors[$y]['functions'][$z]['type'] = "blind_transfer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Blind Transfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a5f4b846-b4f4-4d87-aad3-5547863c8dc2";
		$vendors[$y]['functions'][$z]['label'] = "label-block_anonymous_call";
		$vendors[$y]['functions'][$z]['type'] = "block_anonymous_call";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Block Anonymous Call";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "f141ee5a-2793-4fcd-baa7-fd8ec81547f5";
		$vendors[$y]['functions'][$z]['label'] = "label-block_caller_id";
		$vendors[$y]['functions'][$z]['type'] = "block_caller_id";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Block Caller ID";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "4b50cf27-657b-4438-9305-682bae78ee28";
		$vendors[$y]['functions'][$z]['label'] = "label-busy_lamp_field";
		$vendors[$y]['functions'][$z]['type'] = "busy_lamp_field";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Busy Lamp Field";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "3dd5ae9a-5325-40e9-9600-e37cf68540e8";
		$vendors[$y]['functions'][$z]['label'] = "label-call_appearance";
		$vendors[$y]['functions'][$z]['type'] = "call_appearance";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Call Appearance";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a085b52d-3bae-44e8-975a-fce680149387";
		$vendors[$y]['functions'][$z]['label'] = "label-call_forward";
		$vendors[$y]['functions'][$z]['type'] = "call_forward";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Call Forward";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "9b961505-c12f-491b-a0cb-d2b6b31bd366";
		$vendors[$y]['functions'][$z]['label'] = "label-call_park_monitor";
		$vendors[$y]['functions'][$z]['type'] = "call_park_monitor";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Call Park Monitor";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "353f5426-988a-48e3-9faa-9412ae7a4f7c";
		$vendors[$y]['functions'][$z]['label'] = "label-call_waiting";
		$vendors[$y]['functions'][$z]['type'] = "call_waiting";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Call Waiting";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "b1135d34-cc02-4097-a0c4-67dfa4821935";
		$vendors[$y]['functions'][$z]['label'] = "label-conference";
		$vendors[$y]['functions'][$z]['type'] = "conference";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "conference";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "250305df-ec18-4a07-95d0-7b195daf9189";
		$vendors[$y]['functions'][$z]['label'] = "label-disposition_code";
		$vendors[$y]['functions'][$z]['type'] = "disposition_code";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Disposition Code";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "2768e33a-52ad-495a-be20-cc400b48cc18";
		$vendors[$y]['functions'][$z]['label'] = "label-do_not_disturb";
		$vendors[$y]['functions'][$z]['type'] = "do_not_disturb";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Do Not Disturb";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "cf3205fe-53f3-4987-9472-1bbe72d8fe68";
		$vendors[$y]['functions'][$z]['label'] = "label-do_not_ring";
		$vendors[$y]['functions'][$z]['type'] = "do_not_ring";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Do Not Ring";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "47e4ff7c-fa68-4dc4-8e8e-a3aa0b56676f";
		$vendors[$y]['functions'][$z]['label'] = "label-exec_filter_on_off";
		$vendors[$y]['functions'][$z]['type'] = "exec_filter_on_off";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Exec Filter On/Off";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "71cfcccb-9195-4355-ac8f-f91452b9be3c";
		$vendors[$y]['functions'][$z]['label'] = "label-exec_assistant";
		$vendors[$y]['functions'][$z]['type'] = "exec_assistant";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Exec Assistant";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "446ad3c8-44c9-4c05-b444-31dcea9519f2";
		$vendors[$y]['functions'][$z]['label'] = "label-hold";
		$vendors[$y]['functions'][$z]['type'] = "hold";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Hold";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "59aa75f0-2402-467a-93bf-a5680a84609a";
		$vendors[$y]['functions'][$z]['label'] = "label-hoteling";
		$vendors[$y]['functions'][$z]['type'] = "hoteling";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Hoteling";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "01157f62-8ca7-4225-babd-f4f336e0f813";
		$vendors[$y]['functions'][$z]['label'] = "label-line_monitor";
		$vendors[$y]['functions'][$z]['type'] = "line_monitor";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Line Monitor";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "9b36ac40-3466-4c2b-aa32-4f6dc406eb91";
		$vendors[$y]['functions'][$z]['label'] = "label-next_tab";
		$vendors[$y]['functions'][$z]['type'] = "next_tab";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Next Tab";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "cf1e2cdb-88eb-417c-89b8-45b3e9e2d72d";
		$vendors[$y]['functions'][$z]['label'] = "label-message_status";
		$vendors[$y]['functions'][$z]['type'] = "message_status";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Message Status";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "f2221e92-84ec-42a1-a1e5-d5d18fa5ae91";
		$vendors[$y]['functions'][$z]['label'] = "label-page_group_1";
		$vendors[$y]['functions'][$z]['type'] = "page_group_1";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Page Group 1";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "9a21cf63-585d-4fac-ae06-5d1731d67b7f";
		$vendors[$y]['functions'][$z]['label'] = "label-page_group_2";
		$vendors[$y]['functions'][$z]['type'] = "page_group_2";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Page Group 2";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "5ad6d94c-02b6-465f-b87d-92596b4b0dd1";
		$vendors[$y]['functions'][$z]['label'] = "label-presence_monitor";
		$vendors[$y]['functions'][$z]['type'] = "presence_monitor";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Presence Monitor";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "26c56899-360f-44fe-b56c-8e1846604fce";
		$vendors[$y]['functions'][$z]['label'] = "label-security_class";
		$vendors[$y]['functions'][$z]['type'] = "security_class";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Security Class";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a1ddfe50-0875-495e-baae-6aaa378b25e8";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Speed Dial";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "cf4d625e-a9f2-4f3f-b71a-bc3095ba945b";
		$vendors[$y]['functions'][$z]['label'] = "label-transfer";
		$vendors[$y]['functions'][$z]['type'] = "transfer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Transfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "3d3df849-97c0-4170-93b4-246306b43c54";
		$vendors[$y]['functions'][$z]['label'] = "label-action_url";
		$vendors[$y]['functions'][$z]['type'] = "action_url";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Action URL";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "46f2646c-4eaa-4e4e-a8c0-8f757d888dd0";
		$vendors[$y]['functions'][$z]['label'] = "label-add_to_conference";
		$vendors[$y]['functions'][$z]['type'] = "add_to_conference";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "Add to Conference";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;

	//htek details
		$y++;
		$vendors[$y]['uuid'] = "d0449b9e-4f03-4931-a808-30ece1dffcc3";
		$vendors[$y]['name'] = "htek";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "8a334c6c-7479-49f9-813f-bd82e419d69f";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['type'] = "line";
		$vendors[$y]['functions'][$z]['value'] = "1";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "298ea214-4773-42e8-ac9b-b72c10be6a75";
		$vendors[$y]['functions'][$z]['label'] = "label-na";
		$vendors[$y]['functions'][$z]['type'] = "na";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "0";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "f2b3069f-02f6-4035-bccc-2c8c9a37f3fa";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "2";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "40d23525-b7a3-47dd-b36b-2ba48a7e0fcf";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['type'] = "blf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "3";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "89808f7b-90e5-4d57-a5b6-c2bf0b4f817b";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_list";
		$vendors[$y]['functions'][$z]['type'] = "blf_list";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "4";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "9beff3fb-9d96-4008-8387-ec31b49d4122";
		$vendors[$y]['functions'][$z]['label'] = "label-voicemail";
		$vendors[$y]['functions'][$z]['type'] = "voicemail";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "5";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "52d87e74-84a6-4430-bc39-5c902dc41756";
		$vendors[$y]['functions'][$z]['label'] = "label-direct_pickup";
		$vendors[$y]['functions'][$z]['type'] = "direct_pickup";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "6";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "b88a32da-75b9-4b09-a95e-b03adaca0dde";
		$vendors[$y]['functions'][$z]['label'] = "label-group_pickup";
		$vendors[$y]['functions'][$z]['type'] = "group_pickup";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "7";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "6463cac0-5fa3-433e-8bd5-7a0eb81e104e";
		$vendors[$y]['functions'][$z]['label'] = "label-call_park";
		$vendors[$y]['functions'][$z]['type'] = "call_park";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "8";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "b0455157-921e-4484-a60b-d95ee24ccb3f";
		$vendors[$y]['functions'][$z]['label'] = "label-intercom";
		$vendors[$y]['functions'][$z]['type'] = "intercom";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "9";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "f718ffaf-d9ea-4a53-a8c6-edd88d82ccf5";
		$vendors[$y]['functions'][$z]['label'] = "label-dtmf";
		$vendors[$y]['functions'][$z]['type'] = "dtmf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "10";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "cadba14d-683c-4db5-a472-99e9d317b2ff";
		$vendors[$y]['functions'][$z]['label'] = "label-prefix";
		$vendors[$y]['functions'][$z]['type'] = "prefix";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "11";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "191f0b48-c6b5-4419-bc7a-284dffbeea62";
		$vendors[$y]['functions'][$z]['label'] = "label-local_group";
		$vendors[$y]['functions'][$z]['type'] = "local_group";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "12";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "45d7bcfa-5509-4b5c-b21d-3a92574e0b97";
		$vendors[$y]['functions'][$z]['label'] = "label-xml_group";
		$vendors[$y]['functions'][$z]['type'] = "xml_group";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "13";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d2077c8e-07e4-4674-9390-e583698ecb4b";
		$vendors[$y]['functions'][$z]['label'] = "label-xml_browser";
		$vendors[$y]['functions'][$z]['type'] = "xml_browser";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "14";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "506afb1c-98a8-4dfa-bb7e-2172f38c1ba7";
		$vendors[$y]['functions'][$z]['label'] = "label-ldap";
		$vendors[$y]['functions'][$z]['type'] = "ldap";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "15";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "0532fc63-00ec-46b1-9f33-d16950584c54";
		$vendors[$y]['functions'][$z]['label'] = "label-broadsoft_group";
		$vendors[$y]['functions'][$z]['type'] = "broadsoft_group";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "16";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "bc92fa00-bf86-4d92-9cea-498e5d732929";
		$vendors[$y]['functions'][$z]['label'] = "label-conference";
		$vendors[$y]['functions'][$z]['type'] = "conference";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "17";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "595fe50f-385d-40cd-89dc-df30a08cb2fb";
		$vendors[$y]['functions'][$z]['label'] = "label-forward";
		$vendors[$y]['functions'][$z]['type'] = "forward";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "18";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "7df77bbd-f80a-4206-9e53-ecf9a8d030b4";
		$vendors[$y]['functions'][$z]['label'] = "label-transfer";
		$vendors[$y]['functions'][$z]['type'] = "transfer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "19";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "5353a9a0-0575-4883-a27f-f1730a2d825d";
		$vendors[$y]['functions'][$z]['label'] = "label-hold";
		$vendors[$y]['functions'][$z]['type'] = "hold";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "20";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "ffcf5a3f-af47-40a6-93d8-7713ff9f9630";
		$vendors[$y]['functions'][$z]['label'] = "label-dnd";
		$vendors[$y]['functions'][$z]['type'] = "dnd";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "21";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "e04f001c-95b8-486d-a688-427d29acdf7e";
		$vendors[$y]['functions'][$z]['label'] = "label-redial";
		$vendors[$y]['functions'][$z]['type'] = "redial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "22";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "59db5c21-f7f7-4071-9fd5-e601e205a8e6";
		$vendors[$y]['functions'][$z]['label'] = "label-park_return";
		$vendors[$y]['functions'][$z]['type'] = "park_return";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "23";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "5c0c2283-7fab-48ce-9d16-4a337aa08d5a";
		$vendors[$y]['functions'][$z]['label'] = "label-sms";
		$vendors[$y]['functions'][$z]['type'] = "sms";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "24";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "de04995d-6e06-4130-8ea6-194eab31f13e";
		$vendors[$y]['functions'][$z]['label'] = "label-record";
		$vendors[$y]['functions'][$z]['type'] = "record";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "25";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "fb6debc7-2143-4080-aa22-ad24959d5712";
		$vendors[$y]['functions'][$z]['label'] = "label-url_record";
		$vendors[$y]['functions'][$z]['type'] = "url_record";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "26";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "aac9c0b6-9bca-4e84-883b-076549e7a558";
		$vendors[$y]['functions'][$z]['label'] = "label-paging";
		$vendors[$y]['functions'][$z]['type'] = "paging";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "27";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "211175b1-9eb8-4c5f-a08a-8e4cc1e38c0e";
		$vendors[$y]['functions'][$z]['label'] = "label-group_listening";
		$vendors[$y]['functions'][$z]['type'] = "group_listening";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "28";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "25c57eeb-6282-45b3-8378-8f8d2c7b5b05";
		$vendors[$y]['functions'][$z]['label'] = "label-public_hold";
		$vendors[$y]['functions'][$z]['type'] = "public_hold";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "29";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "28884e0c-bbab-46cf-ba9f-ccc9bfd5e21d";
		$vendors[$y]['functions'][$z]['label'] = "label-private_hold";
		$vendors[$y]['functions'][$z]['type'] = "private_hold";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "30";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d1fa55b2-8580-495a-a1ae-bfdeab9e6890";
		$vendors[$y]['functions'][$z]['label'] = "label-shared_line";
		$vendors[$y]['functions'][$z]['type'] = "shared_line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "31";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "80f9ea17-3879-4b53-b382-bfb4e6d58f12";
		$vendors[$y]['functions'][$z]['label'] = "label-hot_desking";
		$vendors[$y]['functions'][$z]['type'] = "hot_desking";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "32";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "c34e46d8-d94b-4b63-94e8-fe18358a6954";
		$vendors[$y]['functions'][$z]['label'] = "label-acd";
		$vendors[$y]['functions'][$z]['type'] = "acd";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "33";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "0e76495c-a163-4311-abc4-827d6a595407";
		$vendors[$y]['functions'][$z]['label'] = "label-zero_touch";
		$vendors[$y]['functions'][$z]['type'] = "zero_touch";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "34";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "88189986-24b9-4fbc-b4c7-fb698384aec4";
		$vendors[$y]['functions'][$z]['label'] = "label-url";
		$vendors[$y]['functions'][$z]['type'] = "url";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "35";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a470c72e-4cda-4c2f-9a2c-e905f349a31e";
		$vendors[$y]['functions'][$z]['label'] = "label-multicast_paging";
		$vendors[$y]['functions'][$z]['type'] = "multicast_paging";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "47";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

	//fanvil details
		$y++;
		$vendors[$y]['uuid'] = "cb966a64-34b8-4825-b05a-f243adc0014f";
		$vendors[$y]['name'] = "fanvil";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "1050ef7d-219f-4a7d-9944-2b3e7a949c43";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['type'] = "line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "1";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "9f67c457-f04d-45a5-bf4c-cbf11fbc4340";
		$vendors[$y]['functions'][$z]['label'] = "label-voicemail";
		$vendors[$y]['functions'][$z]['type'] = "voicemail";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "2";
		$vendors[$y]['functions'][$z]['description'] = "You can press the key to listen to voice messages and configure the line. The LED is on if a new voice message is received.";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "392bfdeb-cae1-4829-a704-d75bcd3fb2ab";
		$vendors[$y]['functions'][$z]['label'] = "label-none";
		$vendors[$y]['functions'][$z]['type'] = "none";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "3";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "5fc20c48-e619-4671-86d1-3fa88a83d88c";
		$vendors[$y]['functions'][$z]['label'] = "label-intercom";
		$vendors[$y]['functions'][$z]['type'] = "intercom";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "i";
		$vendors[$y]['functions'][$z]['description'] = "Directly speak without answering the call.";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "1cc1b4ff-52cd-4ea7-ab15-5930fc530fec";
		$vendors[$y]['functions'][$z]['label'] = "label-call_park";
		$vendors[$y]['functions'][$z]['type'] = "call_park";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "c";
		$vendors[$y]['functions'][$z]['description'] = "If you need to move to another place during a call, use this function.";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "330ac56c-c87e-4a65-a0bd-5f8332faeeab";
		$vendors[$y]['functions'][$z]['label'] = "label-call_forward";
		$vendors[$y]['functions'][$z]['type'] = "call_forward";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "a";
		$vendors[$y]['functions'][$z]['description'] = "When receiving a call, you can press the key to transfer the call to the specified number.";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "6f5d1a1d-19f8-48bb-b4e1-f934b710988f";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "f";
		$vendors[$y]['functions'][$z]['description'] = "Automatically call the specified number when key is pressed. (No BFL)";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "b047d0d7-27a8-4a82-ba7f-44efb5bf1734";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_new";
		$vendors[$y]['functions'][$z]['type'] = "blf_new";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "bc";
		$vendors[$y]['functions'][$z]['description'] = "BLF - New Call";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "89664b9e-9366-4c7f-9a92-3ecfdfa7e91b";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_new_video";
		$vendors[$y]['functions'][$z]['type'] = "blf_new_video";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "bcV";
		$vendors[$y]['functions'][$z]['description'] = "BLF - New Video Call";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "e80b6d6d-dedc-456d-9118-8d8f010a0697";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_bxfer";
		$vendors[$y]['functions'][$z]['type'] = "blf_bxfer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "bb";
		$vendors[$y]['functions'][$z]['description'] = "BLF - Blind Transfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "55b0a1df-a9a1-48c7-9665-e84925631a6d";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_axfer";
		$vendors[$y]['functions'][$z]['type'] = "blf_axfer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "ba";
		$vendors[$y]['functions'][$z]['description'] = "BLF - Attended Transfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "9066d58e-7395-4cd0-8a52-e7fa3c24ad54";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_conference";
		$vendors[$y]['functions'][$z]['type'] = "blf_conference";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "bf";
		$vendors[$y]['functions'][$z]['description'] = "BLF - Conference";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "ae238960-aa4c-4d92-b560-848814ed8df8";
		$vendors[$y]['functions'][$z]['label'] = "label-mwi";
		$vendors[$y]['functions'][$z]['type'] = "mwi";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "m";
		$vendors[$y]['functions'][$z]['description'] = "MWI - *97 Voicemail";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "830c3a51-dd04-4ef2-af4a-7a41b702648b";
		$vendors[$y]['functions'][$z]['label'] = "label-multicast_paging";
		$vendors[$y]['functions'][$z]['type'] = "multicast_paging";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "14";
		$vendors[$y]['functions'][$z]['description'] = "Multicast Paging";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;

	//algo details
		$y++;
		$vendors[$y]['uuid'] = "dc5ffcb9-5195-4fb8-8b23-f4216ed7f0f6";
		$vendors[$y]['name'] = "algo";
		$z=0;

	//atcom details
		$y++;
		$vendors[$y]['uuid'] = "da636c41-4551-444b-8b8b-f01fac95bfb5";
		$vendors[$y]['name'] = "atcom";
		$z=0;

	//digium details
		$y++;
		$vendors[$y]['uuid'] = "9ec868f0-8c18-42f1-8eb0-8e80b10891c2";
		$vendors[$y]['name'] = "digium";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "279141ad-473f-48d2-b1f2-331565411dc4";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "speed_dial";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "8a76f8d9-8fa6-445c-8b92-4dcfae09b54d";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['type'] = "blf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "blf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;

	//panasonic details
		$y++;
		$vendors[$y]['uuid'] = "86cd5298-3599-4254-9ce5-ce84a31a3596";
		$vendors[$y]['name'] = "panasonic";
		$z=0;

	//spectralink details
		$y++;
		$vendors[$y]['uuid'] = "699676f9-2690-492b-a40b-043653a8b7d5";
		$vendors[$y]['name'] = "spectralink";
		$z=0;

	//vtech details
		$y++;
		$vendors[$y]['uuid'] = "d07e0905-9788-4039-ba8e-ca1b50fbf643";
		$vendors[$y]['name'] = "vtech";
		$z=0;

	//flyingvoice details
		$y++;
		$vendors[$y]['uuid'] = "";
		$vendors[$y]['name'] = "flyingvoice";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-na";
		$vendors[$y]['functions'][$z]['type'] = "na";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "0";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['type'] = "line";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "15";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-conference";
		$vendors[$y]['functions'][$z]['type'] = "conference";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "1";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-forward";
		$vendors[$y]['functions'][$z]['type'] = "forward";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "2";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-transfer";
		$vendors[$y]['functions'][$z]['type'] = "transfer";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "3";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-hold";
		$vendors[$y]['functions'][$z]['type'] = "hold";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "4";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-dnd";
		$vendors[$y]['functions'][$z]['type'] = "dnd";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "5";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-redial";
		$vendors[$y]['functions'][$z]['type'] = "redial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "6";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-call_pickup";
		$vendors[$y]['functions'][$z]['type'] = "call_pickup";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "9";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-call_park";
		$vendors[$y]['functions'][$z]['type'] = "call_park";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "10";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-dtmf";
		$vendors[$y]['functions'][$z]['type'] = "dtmf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "11";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-voicemail";
		$vendors[$y]['functions'][$z]['type'] = "voicemail";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "12";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['type'] = "speed_dial";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "13";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-intercom";
		$vendors[$y]['functions'][$z]['type'] = "intercom";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "14";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['type'] = "blf";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "16";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-public_hold";
		$vendors[$y]['functions'][$z]['type'] = "public_hold";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "19";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-private";
		$vendors[$y]['functions'][$z]['type'] = "private";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "20";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-group_pickup";
		$vendors[$y]['functions'][$z]['type'] = "group_pickup";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "23";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-paging";
		$vendors[$y]['functions'][$z]['type'] = "paging";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "24";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-record";
		$vendors[$y]['functions'][$z]['type'] = "record";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "25";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-xml_browser";
		$vendors[$y]['functions'][$z]['type'] = "xml_browser";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "27";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-history";
		$vendors[$y]['functions'][$z]['type'] = "history";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "28";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-directory";
		$vendors[$y]['functions'][$z]['type'] = "directory";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "29";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-menu";
		$vendors[$y]['functions'][$z]['type'] = "menu";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "30";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-new_sms";
		$vendors[$y]['functions'][$z]['type'] = "new_sms";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "32";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-status";
		$vendors[$y]['functions'][$z]['type'] = "status";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "33";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-url_record";
		$vendors[$y]['functions'][$z]['type'] = "url_record";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "35";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-ldap";
		$vendors[$y]['functions'][$z]['type'] = "ldap";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "38";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_list";
		$vendors[$y]['functions'][$z]['type'] = "blf_list";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "39";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-local_phonebook";
		$vendors[$y]['functions'][$z]['type'] = "local_phonebook";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "43";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-local_group";
		$vendors[$y]['functions'][$z]['type'] = "local_group";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "45";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-switch_account_up";
		$vendors[$y]['functions'][$z]['type'] = "switch_account_up";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "48";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-switch_account_down";
		$vendors[$y]['functions'][$z]['type'] = "switch_account_down";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "49";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "";
		$vendors[$y]['functions'][$z]['label'] = "label-paging_list";
		$vendors[$y]['functions'][$z]['type'] = "paging_list";
		$vendors[$y]['functions'][$z]['subtype'] = "";
		$vendors[$y]['functions'][$z]['value'] = "66";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;

	//yeastar details
		$y++;
		$vendors[$y]['uuid'] = "0f5b8507-3799-4a95-848b-1edfd5484869";
		$vendors[$y]['name'] = "yeastar";

	//telekonnectors details
		$y++;
		$vendors[$y]['uuid'] = "89959f8f-946a-4d4d-be7f-1385bf8b0d64";
		$vendors[$y]['name'] = "telekonnectors";
		$z=0;
		$vendors[$y]['functions'][$z]['uuid'] = "e0a8724c-00cf-48b2-a720-fb9d5b6138bd";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['name'] = "line";
		$vendors[$y]['functions'][$z]['value'] = "1";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "f0b90ca4-789b-4506-8759-f7b6d9f3de84";
		$vendors[$y]['functions'][$z]['label'] = "label-voicemail";
		$vendors[$y]['functions'][$z]['name'] = "voicemail";
		$vendors[$y]['functions'][$z]['value'] = "2";
		$vendors[$y]['functions'][$z]['description'] = "You can press the key to listen to voice messages and configure the line. The LED is on if a new voice message is received.";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "bcc98c1d-6439-4e4e-861f-a314ad73c4d2";
		$vendors[$y]['functions'][$z]['label'] = "label-none";
		$vendors[$y]['functions'][$z]['name'] = "none";
		$vendors[$y]['functions'][$z]['value'] = "3";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "362c807f-9285-47a1-b6cd-869906cb0d09";
		$vendors[$y]['functions'][$z]['label'] = "label-intercom";
		$vendors[$y]['functions'][$z]['name'] = "intercom";
		$vendors[$y]['functions'][$z]['value'] = "i";
		$vendors[$y]['functions'][$z]['description'] = "Directly speak without answering the call.";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "764d2e10-956a-4981-976d-90f5f7844d3b";
		$vendors[$y]['functions'][$z]['label'] = "label-call_park";
		$vendors[$y]['functions'][$z]['name'] = "call_park";
		$vendors[$y]['functions'][$z]['value'] = "c";
		$vendors[$y]['functions'][$z]['description'] = "If you need to move to another place during a call, use this function.";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "2db58854-30c9-49f2-961c-4f3c5a68bab0";
		$vendors[$y]['functions'][$z]['label'] = "label-call_forward";
		$vendors[$y]['functions'][$z]['name'] = "call_forward";
		$vendors[$y]['functions'][$z]['value'] = "a";
		$vendors[$y]['functions'][$z]['description'] = "When receiving a call, you can press the key to transfer the call to the specified number.";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d5035ae5-8fbf-4f77-b128-427f2dd12c94";
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['name'] = "speed_dial";
		$vendors[$y]['functions'][$z]['value'] = "f";
		$vendors[$y]['functions'][$z]['description'] = "Automatically call the specified number when key is pressed. (No BFL)";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "6239d755-216b-46e9-8e91-4b56dbc1d1b8";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_new";
		$vendors[$y]['functions'][$z]['name'] = "blf_new";
		$vendors[$y]['functions'][$z]['value'] = "bc";
		$vendors[$y]['functions'][$z]['description'] = "BLF - New Call";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "a1ed7304-309e-4693-bd16-84407b647676";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_bxfer";
		$vendors[$y]['functions'][$z]['name'] = "blf_bxfer";
		$vendors[$y]['functions'][$z]['value'] = "bb";
		$vendors[$y]['functions'][$z]['description'] = "BLF - Blind Transfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "6a80b5ef-7772-448c-a507-895392875e2f";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_axfer";
		$vendors[$y]['functions'][$z]['name'] = "blf_axfer";
		$vendors[$y]['functions'][$z]['value'] = "ba";
		$vendors[$y]['functions'][$z]['description'] = "BLF - Attended Transfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "4f724ec1-88bb-4f0e-a0ea-91c38c6dbae1";
		$vendors[$y]['functions'][$z]['label'] = "label-blf_conference";
		$vendors[$y]['functions'][$z]['name'] = "blf_conference";
		$vendors[$y]['functions'][$z]['value'] = "bf";
		$vendors[$y]['functions'][$z]['description'] = "BLF - Conference";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "92ccbd64-4b5a-43b6-874e-27dbdb80b146";
		$vendors[$y]['functions'][$z]['label'] = "label-mwi";
		$vendors[$y]['functions'][$z]['name'] = "mwi";
		$vendors[$y]['functions'][$z]['value'] = "m";
		$vendors[$y]['functions'][$z]['description'] = "MWI";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "d1c84262-cc77-49a7-923f-df4d7bbab903";
		$vendors[$y]['functions'][$z]['label'] = "label-presence";
		$vendors[$y]['functions'][$z]['name'] = "presence";
		$vendors[$y]['functions'][$z]['value'] = "p";
		$vendors[$y]['functions'][$z]['description'] = "Presence";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['uuid'] = "5aa2a694-edec-4f38-85ab-66d959cd8771";
		$vendors[$y]['functions'][$z]['label'] = "label-dtmf";
		$vendors[$y]['functions'][$z]['name'] = "dtmf";
		$vendors[$y]['functions'][$z]['value'] = "bd";
		$vendors[$y]['functions'][$z]['description'] = "BLF/DTMF";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

?>
