<?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'] = "";
		$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']['es-cl'] = "Provicionamiento de dispositivos.";
		$apps[$x]['description']['es-mx'] = "Provicionamiento de dispositivos.";
		$apps[$x]['description']['de-de'] = "";
		$apps[$x]['description']['de-ch'] = "";
		$apps[$x]['description']['de-at'] = "";
		$apps[$x]['description']['fr-fr'] = "Equipements pour provisioning.";
		$apps[$x]['description']['fr-ca'] = "Dispositifs pour provisionnement.";
		$apps[$x]['description']['fr-ch'] = "";
		$apps[$x]['description']['pt-pt'] = "Lista de provisionamento de Telefone.";
		$apps[$x]['description']['pt-br'] = "";

	//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_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_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';
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_line_register_expires';
		//$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_key_line';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_key_extension';
		//$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_outbound_proxy_primary';
		//$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$y++;
		$apps[$x]['permissions'][$y]['name'] = 'device_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';
		$apps[$x]['permissions'][$y]['groups'][] = 'admin';
		$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_profile_view";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_profile_add";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_profile_edit";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
		$y++;
		$apps[$x]['permissions'][$y]['name'] = "device_profile_delete";
		$apps[$x]['permissions'][$y]['groups'][] = "admin";
		$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_all';
		$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
		$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_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_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++;

	//schema details
		$y = 0; //table array index
		$z = 0; //field array index
		$apps[$x]['db'][$y]['table'] = "v_devices";
		$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]['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]['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]['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']['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]['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]['description']['en-us'] = "";

		$y = 1; //table array index
		$z = 0; //field array index
		$apps[$x]['db'][$y]['table'] = "v_device_lines";
		$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']['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'] = "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'] = "enabled";
		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
		$z++;

		$y = 2; //table array index
		$z = 0; //field array index
		$apps[$x]['db'][$y]['table'] = "v_device_settings";
		$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++;

		$y = 3; //table array index
		$z = 0; //field array index
		$apps[$x]['db'][$y]['table'] = 'v_device_keys';
		$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'] = "";
		$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_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++;

		$y = 4; //table array index
		$z = 0; //field array index
		$apps[$x]['db'][$y]['table'] = 'v_device_profiles';
		$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]['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]['description']['en-us'] = "";
		$z++;

		$y = 5; //table array index
		$z = 0; //field array index
		$apps[$x]['db'][$y]['table'] = 'v_device_vendors';
		$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++;

		$y = 6; //table array index
		$z = 0; //field array index
		$apps[$x]['db'][$y]['table'] = 'v_device_vendor_functions';
		$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_vendor';
		$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]['description']['en-us'] = 'Enter the label.';
		//$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'] = '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'] = 'enabled';
		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
		$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]['description']['en-us'] = 'Enter the description.';
		$z++;

		$y = 7; //table array index
		$z = 0; //field array index
		$apps[$x]['db'][$y]['table'] = "v_device_vendor_function_groups";
		$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'] = "";


	//vendor details
		$y=0; //vendor array index
		$z=0; //functions array index
		$vendors[$y]['name'] = "yealink";
		$vendors[$y]['functions'][$z]['label'] = "label-na";
		$vendors[$y]['functions'][$z]['name'] = "na";
		$vendors[$y]['functions'][$z]['value'] = "0";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['name'] = "line";
		$vendors[$y]['functions'][$z]['value'] = "15";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-conference";
		$vendors[$y]['functions'][$z]['name'] = "conference";
		$vendors[$y]['functions'][$z]['value'] = "1";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-forward";
		$vendors[$y]['functions'][$z]['name'] = "forward";
		$vendors[$y]['functions'][$z]['value'] = "2";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-transfer";
		$vendors[$y]['functions'][$z]['name'] = "transfer";
		$vendors[$y]['functions'][$z]['value'] = "3";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-hold";
		$vendors[$y]['functions'][$z]['name'] = "hold";
		$vendors[$y]['functions'][$z]['value'] = "4";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-dnd";
		$vendors[$y]['functions'][$z]['name'] = "dnd";
		$vendors[$y]['functions'][$z]['value'] = "5";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-redial";
		$vendors[$y]['functions'][$z]['name'] = "redial";
		$vendors[$y]['functions'][$z]['value'] = "6";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-call_return";
		$vendors[$y]['functions'][$z]['name'] = "call_return";
		$vendors[$y]['functions'][$z]['value'] = "7";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-sms";
		$vendors[$y]['functions'][$z]['name'] = "sms";
		$vendors[$y]['functions'][$z]['value'] = "8";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-call_pickup";
		$vendors[$y]['functions'][$z]['name'] = "call_pickup";
		$vendors[$y]['functions'][$z]['value'] = "9";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-call_park";
		$vendors[$y]['functions'][$z]['name'] = "call_park";
		$vendors[$y]['functions'][$z]['value'] = "10";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-dtmf";
		$vendors[$y]['functions'][$z]['name'] = "dtmf";
		$vendors[$y]['functions'][$z]['value'] = "11";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-voicemail";
		$vendors[$y]['functions'][$z]['name'] = "voicemail";
		$vendors[$y]['functions'][$z]['value'] = "12";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['name'] = "speed_dial";
		$vendors[$y]['functions'][$z]['value'] = "13";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-intercom";
		$vendors[$y]['functions'][$z]['name'] = "intercom";
		$vendors[$y]['functions'][$z]['value'] = "14";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['name'] = "blf";
		$vendors[$y]['functions'][$z]['value'] = "16";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-url";
		$vendors[$y]['functions'][$z]['name'] = "url";
		$vendors[$y]['functions'][$z]['value'] = "17";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-public_hold";
		$vendors[$y]['functions'][$z]['name'] = "public_hold";
		$vendors[$y]['functions'][$z]['value'] = "19";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-private";
		$vendors[$y]['functions'][$z]['name'] = "private";
		$vendors[$y]['functions'][$z]['value'] = "20";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-shared_line";
		$vendors[$y]['functions'][$z]['name'] = "shared_line";
		$vendors[$y]['functions'][$z]['value'] = "21";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-xml_group";
		$vendors[$y]['functions'][$z]['name'] = "xml_group";
		$vendors[$y]['functions'][$z]['value'] = "22";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-group_pickup";
		$vendors[$y]['functions'][$z]['name'] = "group_pickup";
		$vendors[$y]['functions'][$z]['value'] = "23";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-paging";
		$vendors[$y]['functions'][$z]['name'] = "paging";
		$vendors[$y]['functions'][$z]['value'] = "24";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-record";
		$vendors[$y]['functions'][$z]['name'] = "record";
		$vendors[$y]['functions'][$z]['value'] = "25";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-xml_browser";
		$vendors[$y]['functions'][$z]['name'] = "xml_browser";
		$vendors[$y]['functions'][$z]['value'] = "27";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-history";
		$vendors[$y]['functions'][$z]['name'] = "history";
		$vendors[$y]['functions'][$z]['value'] = "28";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-directory";
		$vendors[$y]['functions'][$z]['name'] = "directory";
		$vendors[$y]['functions'][$z]['value'] = "29";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-menu";
		$vendors[$y]['functions'][$z]['name'] = "menu";
		$vendors[$y]['functions'][$z]['value'] = "30";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-new_sms";
		$vendors[$y]['functions'][$z]['name'] = "new_sms";
		$vendors[$y]['functions'][$z]['value'] = "32";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-status";
		$vendors[$y]['functions'][$z]['name'] = "status";
		$vendors[$y]['functions'][$z]['value'] = "33";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-hot_desking";
		$vendors[$y]['functions'][$z]['name'] = "hot_desking";
		$vendors[$y]['functions'][$z]['value'] = "34";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-url_record";
		$vendors[$y]['functions'][$z]['name'] = "url_record";
		$vendors[$y]['functions'][$z]['value'] = "35";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-ldap";
		$vendors[$y]['functions'][$z]['name'] = "ldap";
		$vendors[$y]['functions'][$z]['value'] = "38";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-blf_list";
		$vendors[$y]['functions'][$z]['name'] = "blf_list";
		$vendors[$y]['functions'][$z]['value'] = "39";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-prefix";
		$vendors[$y]['functions'][$z]['name'] = "prefix";
		$vendors[$y]['functions'][$z]['value'] = "40";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-zero_sp_touch";
		$vendors[$y]['functions'][$z]['name'] = "zero_sp_touch";
		$vendors[$y]['functions'][$z]['value'] = "41";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-acd";
		$vendors[$y]['functions'][$z]['name'] = "acd";
		$vendors[$y]['functions'][$z]['value'] = "42";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-local_phonebook";
		$vendors[$y]['functions'][$z]['name'] = "local_phonebook";
		$vendors[$y]['functions'][$z]['value'] = "43";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-broadsoft_phonebook";
		$vendors[$y]['functions'][$z]['name'] = "broadsoft_phonebook";
		$vendors[$y]['functions'][$z]['value'] = "44";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-local_group";
		$vendors[$y]['functions'][$z]['name'] = "local_group";
		$vendors[$y]['functions'][$z]['value'] = "45";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-broadsoft_group";
		$vendors[$y]['functions'][$z]['name'] = "broadsoft_group";
		$vendors[$y]['functions'][$z]['value'] = "46";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-xml_directory";
		$vendors[$y]['functions'][$z]['name'] = "xml_directory";
		$vendors[$y]['functions'][$z]['value'] = "47";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-switch_account_up";
		$vendors[$y]['functions'][$z]['name'] = "switch_account_up";
		$vendors[$y]['functions'][$z]['value'] = "48";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-switch_account_down";
		$vendors[$y]['functions'][$z]['name'] = "switch_account_down";
		$vendors[$y]['functions'][$z]['value'] = "49";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-keypad_lock";
		$vendors[$y]['functions'][$z]['name'] = "keypad_lock";
		$vendors[$y]['functions'][$z]['value'] = "50";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;

		$y++; //vendors array index
		$z=0; //functions array index
		$vendors[$y]['name'] = "snom";
		$vendors[$y]['functions'][$z]['label'] = "label-none";
		$vendors[$y]['functions'][$z]['name'] = "none";
		$vendors[$y]['functions'][$z]['value'] = "none";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-url";
		$vendors[$y]['functions'][$z]['name'] = "url";
		$vendors[$y]['functions'][$z]['value'] = "action_url";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-auto_answer";
		$vendors[$y]['functions'][$z]['name'] = "auto_answer";
		$vendors[$y]['functions'][$z]['value'] = "auto_answer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['name'] = "blf";
		$vendors[$y]['functions'][$z]['value'] = "blf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-button";
		$vendors[$y]['functions'][$z]['name'] = "button";
		$vendors[$y]['functions'][$z]['value'] = "button";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-call_agent";
		$vendors[$y]['functions'][$z]['name'] = "call_agent";
		$vendors[$y]['functions'][$z]['value'] = "call_agent";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-conference";
		$vendors[$y]['functions'][$z]['name'] = "conference";
		$vendors[$y]['functions'][$z]['value'] = "conference";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-dtmf";
		$vendors[$y]['functions'][$z]['name'] = "dtmf";
		$vendors[$y]['functions'][$z]['value'] = "dtmf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-extension";
		$vendors[$y]['functions'][$z]['name'] = "extension";
		$vendors[$y]['functions'][$z]['value'] = "dest";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-redirect";
		$vendors[$y]['functions'][$z]['name'] = "redirect";
		$vendors[$y]['functions'][$z]['value'] = "redirect";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-intercom";
		$vendors[$y]['functions'][$z]['name'] = "intercom";
		$vendors[$y]['functions'][$z]['value'] = "icom";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-ivr";
		$vendors[$y]['functions'][$z]['name'] = "ivr";
		$vendors[$y]['functions'][$z]['value'] = "ivr";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-key_event";
		$vendors[$y]['functions'][$z]['name'] = "key_event";
		$vendors[$y]['functions'][$z]['value'] = "keyevent";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['name'] = "line";
		$vendors[$y]['functions'][$z]['value'] = "line";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-multicast_page";
		$vendors[$y]['functions'][$z]['name'] = "multicast_page";
		$vendors[$y]['functions'][$z]['value'] = "multicast";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-orbit";
		$vendors[$y]['functions'][$z]['name'] = "orbit";
		$vendors[$y]['functions'][$z]['value'] = "orbit";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-presence";
		$vendors[$y]['functions'][$z]['name'] = "presence";
		$vendors[$y]['functions'][$z]['value'] = "presence";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-p2t";
		$vendors[$y]['functions'][$z]['name'] = "p2t";
		$vendors[$y]['functions'][$z]['value'] = "p2t";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-shared_line";
		$vendors[$y]['functions'][$z]['name'] = "shared_line";
		$vendors[$y]['functions'][$z]['value'] = "mult";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['name'] = "speed_dial";
		$vendors[$y]['functions'][$z]['value'] = "speed";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-transfer";
		$vendors[$y]['functions'][$z]['name'] = "transfer";
		$vendors[$y]['functions'][$z]['value'] = "transfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-record";
		$vendors[$y]['functions'][$z]['name'] = "record";
		$vendors[$y]['functions'][$z]['value'] = "recorder";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;

		$y++; //vendors array index
		$z=0; //functions array index
		$vendors[$y]['name'] = "polycom";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['name'] = "line";
		$vendors[$y]['functions'][$z]['value'] = "line";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-automata";
		$vendors[$y]['functions'][$z]['name'] = "automata";
		$vendors[$y]['functions'][$z]['value'] = "automata";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-normal";
		$vendors[$y]['functions'][$z]['name'] = "normal";
		$vendors[$y]['functions'][$z]['value'] = "normal";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-messages";
		$vendors[$y]['functions'][$z]['name'] = "messages";
		$vendors[$y]['functions'][$z]['value'] = "Messages";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-micmute";
		$vendors[$y]['functions'][$z]['name'] = "micmute";
		$vendors[$y]['functions'][$z]['value'] = "MicMute";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-redial";
		$vendors[$y]['functions'][$z]['name'] = "redial";
		$vendors[$y]['functions'][$z]['value'] = "Redial";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-null";
		$vendors[$y]['functions'][$z]['name'] = "null";
		$vendors[$y]['functions'][$z]['value'] = "Null";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-speeddial";
		$vendors[$y]['functions'][$z]['name'] = "speeddial";
		$vendors[$y]['functions'][$z]['value'] = "SpeedDial";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-speeddialmenu";
		$vendors[$y]['functions'][$z]['name'] = "speeddialmenu";
		$vendors[$y]['functions'][$z]['value'] = "SpeedDialMenu";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-url";
		$vendors[$y]['functions'][$z]['name'] = "url";
		$vendors[$y]['functions'][$z]['value'] = "URL";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

		$y++; //vendors array index
		$z=0; //functions array index
		$vendors[$y]['name'] = "aastra";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['name'] = "blf";
		$vendors[$y]['functions'][$z]['value'] = "blf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-blf_xfer";
		$vendors[$y]['functions'][$z]['name'] = "blf_xfer";
		$vendors[$y]['functions'][$z]['value'] = "blfxfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-callers";
		$vendors[$y]['functions'][$z]['name'] = "callers";
		$vendors[$y]['functions'][$z]['value'] = "callers";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-dnd";
		$vendors[$y]['functions'][$z]['name'] = "dnd";
		$vendors[$y]['functions'][$z]['value'] = "dnd";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['name'] = "speed_dial";
		$vendors[$y]['functions'][$z]['value'] = "speeddial";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-xfer";
		$vendors[$y]['functions'][$z]['name'] = "xfer";
		$vendors[$y]['functions'][$z]['value'] = "xfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

		$y++; //vendors array index
		$z=0; //functions array index
		$vendors[$y]['name'] = "cisco";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['name'] = "blf";
		$vendors[$y]['functions'][$z]['value'] = "blf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['name'] = "line";
		$vendors[$y]['functions'][$z]['value'] = "line";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-disabled";
		$vendors[$y]['functions'][$z]['name'] = "disabled";
		$vendors[$y]['functions'][$z]['value'] = "disabled";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

		$y++; //vendors array index
		$z=0; //functions array index
		$vendors[$y]['name'] = "escene";
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['name'] = "blf";
		$vendors[$y]['functions'][$z]['value'] = "1";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-call_park";
		$vendors[$y]['functions'][$z]['name'] = "call_park";
		$vendors[$y]['functions'][$z]['value'] = "7";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-dtmf";
		$vendors[$y]['functions'][$z]['name'] = "dtmf";
		$vendors[$y]['functions'][$z]['value'] = "4";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['name'] = "speed_dial";
		$vendors[$y]['functions'][$z]['value'] = "5";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial_prefix";
		$vendors[$y]['functions'][$z]['name'] = "speed_dial_prefix";
		$vendors[$y]['functions'][$z]['value'] = "2";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-intercom";
		$vendors[$y]['functions'][$z]['name'] = "intercom";
		$vendors[$y]['functions'][$z]['value'] = "8";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-pickup";
		$vendors[$y]['functions'][$z]['name'] = "pickup";
		$vendors[$y]['functions'][$z]['value'] = "9";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-broadsoft_group";
		$vendors[$y]['functions'][$z]['name'] = "broadsoft_group";
		$vendors[$y]['functions'][$z]['value'] = "11";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		//BLA type 3 Paging type 6

		$y++; //vendors array index
		$z=0; //functions array index
		$vendors[$y]['name'] = "escene programmable";
		$vendors[$y]['functions'][$z]['label'] = "label-default";
		$vendors[$y]['functions'][$z]['name'] = "default";
		$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]['label'] = "label-redial";
		$vendors[$y]['functions'][$z]['name'] = "redial";
		$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]['label'] = "label-dnd";
		$vendors[$y]['functions'][$z]['name'] = "dnd";
		$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]['label'] = "label-phone_book";
		$vendors[$y]['functions'][$z]['name'] = "phone_book";
		$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]['label'] = "label-ent_phone_book";
		$vendors[$y]['functions'][$z]['name'] = "ent_phone_book";
		$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]['label'] = "label-ldap";
		$vendors[$y]['functions'][$z]['name'] = "ldap";
		$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]['label'] = "label-directory";
		$vendors[$y]['functions'][$z]['name'] = "directory";
		$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]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['name'] = "speed_dial";
		$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]['label'] = "label-call_log";
		$vendors[$y]['functions'][$z]['name'] = "call_log";
		$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]['label'] = "label-missed_calls";
		$vendors[$y]['functions'][$z]['name'] = "missed_calls";
		$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]['label'] = "label-received_calls";
		$vendors[$y]['functions'][$z]['name'] = "received_calls";
		$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]['label'] = "label-dialed_calls";
		$vendors[$y]['functions'][$z]['name'] = "dialed_calls";
		$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]['label'] = "label-menu";
		$vendors[$y]['functions'][$z]['name'] = "menu";
		$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]['label'] = "label-sms";
		$vendors[$y]['functions'][$z]['name'] = "sms";
		$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]['label'] = "label-new_sms";
		$vendors[$y]['functions'][$z]['name'] = "new_sms";
		$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]['label'] = "label-forward";
		$vendors[$y]['functions'][$z]['name'] = "forward";
		$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]['label'] = "label-status";
		$vendors[$y]['functions'][$z]['name'] = "status";
		$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]['label'] = "label-enable_account";
		$vendors[$y]['functions'][$z]['name'] = "enable_account";
		$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]['label'] = "label-xml_browser";
		$vendors[$y]['functions'][$z]['name'] = "xml_browser";
		$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]['label'] = "label-provison_now";
		$vendors[$y]['functions'][$z]['name'] = "provison_now";
		$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]['label'] = "label-hot_desking";
		$vendors[$y]['functions'][$z]['name'] = "hot_desking";
		$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";
		$z++;

		$y++; //vendors array index
		$z=0; //functions array index
		$vendors[$y]['name'] = "grandstream";
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['name'] = "line";
		$vendors[$y]['functions'][$z]['value'] = "line";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-shared_line";
		$vendors[$y]['functions'][$z]['name'] = "shared_line";
		$vendors[$y]['functions'][$z]['value'] = "shared line";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['name'] = "speed dial";
		$vendors[$y]['functions'][$z]['value'] = "speed dial";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-blf";
		$vendors[$y]['functions'][$z]['name'] = "blf";
		$vendors[$y]['functions'][$z]['value'] = "blf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-presence_watcher";
		$vendors[$y]['functions'][$z]['name'] = "presence_watcher";
		$vendors[$y]['functions'][$z]['value'] = "presence watcher";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-eventlist_blf";
		$vendors[$y]['functions'][$z]['name'] = "eventlist_blf";
		$vendors[$y]['functions'][$z]['value'] = "eventlist blf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial_active";
		$vendors[$y]['functions'][$z]['name'] = "speed_dial_active";
		$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]['label'] = "label-dial_dtmf";
		$vendors[$y]['functions'][$z]['name'] = "dial_dtmf";
		$vendors[$y]['functions'][$z]['value'] = "dial dtmf";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-voicemail";
		$vendors[$y]['functions'][$z]['name'] = "voicemail";
		$vendors[$y]['functions'][$z]['value'] = "voicemail";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-call_return";
		$vendors[$y]['functions'][$z]['name'] = "call_return";
		$vendors[$y]['functions'][$z]['value'] = "call return";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-transfer";
		$vendors[$y]['functions'][$z]['name'] = "transfer";
		$vendors[$y]['functions'][$z]['value'] = "transfer";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-call_park";
		$vendors[$y]['functions'][$z]['name'] = "call_park";
		$vendors[$y]['functions'][$z]['value'] = "call park";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-intercom";
		$vendors[$y]['functions'][$z]['name'] = "intercom";
		$vendors[$y]['functions'][$z]['value'] = "intercom";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-ldap_search";
		$vendors[$y]['functions'][$z]['name'] = "ldap_search";
		$vendors[$y]['functions'][$z]['value'] = "ldap search";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";

		$y++; //vendors array index
		$z=0; //functions array index
		$vendors[$y]['name'] = "mitel";
		$vendors[$y]['functions'][$z]['label'] = "label-not_programmed";
		$vendors[$y]['functions'][$z]['name'] = "not_programmed";
		$vendors[$y]['functions'][$z]['value'] = "0";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
		$vendors[$y]['functions'][$z]['name'] = "speed_dial";
		$vendors[$y]['functions'][$z]['value'] = "1";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-shared_line";
		$vendors[$y]['functions'][$z]['name'] = "shared_line";
		$vendors[$y]['functions'][$z]['value'] = "5";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-line";
		$vendors[$y]['functions'][$z]['name'] = "line";
		$vendors[$y]['functions'][$z]['value'] = "6";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-call_log";
		$vendors[$y]['functions'][$z]['name'] = "call_log";
		$vendors[$y]['functions'][$z]['value'] = "2";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-phone_book";
		$vendors[$y]['functions'][$z]['name'] = "phone_book";
		$vendors[$y]['functions'][$z]['value'] = "15";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-forward";
		$vendors[$y]['functions'][$z]['name'] = "forward";
		$vendors[$y]['functions'][$z]['value'] = "16";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-dnd";
		$vendors[$y]['functions'][$z]['name'] = "dnd";
		$vendors[$y]['functions'][$z]['value'] = "17";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-advisory_message";
		$vendors[$y]['functions'][$z]['name'] = "advisory_message";
		$vendors[$y]['functions'][$z]['value'] = "3";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-pc_application";
		$vendors[$y]['functions'][$z]['name'] = "pc_application";
		$vendors[$y]['functions'][$z]['value'] = "18";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-headset_on_off";
		$vendors[$y]['functions'][$z]['name'] = "headset_on_off";
		$vendors[$y]['functions'][$z]['value'] = "4";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-rss_feed";
		$vendors[$y]['functions'][$z]['name'] = "rss_feed";
		$vendors[$y]['functions'][$z]['value'] = "19";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-speed_dial_blf";
		$vendors[$y]['functions'][$z]['name'] = "speed_dial_blf";
		$vendors[$y]['functions'][$z]['value'] = "27";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		$z++;
		$vendors[$y]['functions'][$z]['label'] = "label-url";
		$vendors[$y]['functions'][$z]['name'] = "url";
		$vendors[$y]['functions'][$z]['value'] = "19";
		$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
		$vendors[$y]['functions'][$z]['groups'][] = "admin";
		/*
		0 - not programmed
		1 - speed dial
		2 - callLog
		3 - advisoryMsg (on/off)
		4 - headset(on/off)
		5 - shared line
		6 - Line 1
		7 - Line 2
		8 - Line 3
		9 - Line 4
		10 - Line 5
		11 - Line 6
		12 - Line 7
		13 - Line 8
		15 - phonebook
		16 - call forwarding
		17 - do not disturb
		18 - PC Application
		19 - RSS Feed URL / Branding /Notes
		21 - Superkey (5304 set only)
		22 - Redial key (5304 set only)
		23 - Hold key (5304 set only)
		24 - Trans/Conf key (5304 set only)
		25 - Message key (5304 set only)
		26 - Cancel key (5304 set only)
		27 - Speed Dial & BLF

		Mitel web interface shows html_application
		*/

?>
