2012-06-04 16:58:40 +02:00
|
|
|
<?php
|
2014-12-26 04:27:54 +01:00
|
|
|
|
2012-06-04 16:58:40 +02:00
|
|
|
//application details
|
2013-03-20 17:53:37 +01:00
|
|
|
$apps[$x]['name'] = "Devices";
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['uuid'] = "4efa1a1a-32e7-bf83-534b-6c8299958a8e";
|
2013-12-10 16:05:16 +01:00
|
|
|
$apps[$x]['category'] = "Switch";
|
2013-10-01 13:35:07 +02:00
|
|
|
$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.";
|
2014-02-13 21:15:59 +01:00
|
|
|
$apps[$x]['description']['es-cl'] = "Provicionamiento de dispositivos.";
|
2013-10-01 13:35:07 +02:00
|
|
|
$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'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
//permission details
|
2013-06-09 22:46:14 +02:00
|
|
|
$y = 0;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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";
|
2013-06-09 22:46:14 +02:00
|
|
|
$y++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "device_add";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
2013-06-09 22:46:14 +02:00
|
|
|
$y++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "device_edit";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
2013-06-09 22:46:14 +02:00
|
|
|
$y++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "device_delete";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
2013-09-30 18:21:08 +02:00
|
|
|
$y++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "device_extension_view";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
2013-09-30 18:21:08 +02:00
|
|
|
$y++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "device_extension_add";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
2013-09-30 18:21:08 +02:00
|
|
|
$y++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "device_extension_edit";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
2013-09-30 18:21:08 +02:00
|
|
|
$y++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "device_extension_delete";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
2013-09-30 18:21:08 +02:00
|
|
|
$y++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "device_line_view";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
2013-09-30 18:21:08 +02:00
|
|
|
$y++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "device_line_add";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
2013-09-30 18:21:08 +02:00
|
|
|
$y++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "device_line_edit";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
2013-09-30 18:21:08 +02:00
|
|
|
$y++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "device_line_delete";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
2013-12-10 16:05:16 +01:00
|
|
|
$y++;
|
2015-05-21 00:24:19 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = 'device_line_password';
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
|
|
|
$y++;
|
2013-11-14 02:48:37 +01:00
|
|
|
$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++;
|
2013-12-17 17:19:54 +01:00
|
|
|
$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_delete';
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
|
|
|
$y++;
|
2014-05-08 11:22:35 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = 'device_domain';
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
|
|
|
$y++;
|
2015-02-15 01:33:56 +01:00
|
|
|
$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';
|
2015-03-07 22:35:18 +01:00
|
|
|
$y++;
|
2015-03-29 03:33:56 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = 'device_all';
|
2015-03-07 22:35:18 +01:00
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
//schema details
|
|
|
|
|
$y = 0; //table array index
|
|
|
|
|
$z = 0; //field array index
|
2013-10-01 13:35:07 +02:00
|
|
|
$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";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2015-02-15 01:33:56 +01:00
|
|
|
$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++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_provision_enable";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "phone_provision_enable";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2015-04-12 02:12:48 +02:00
|
|
|
$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++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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'] = "";
|
2014-02-25 08:46:25 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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'] = "";
|
2013-03-20 17:53:37 +01:00
|
|
|
|
|
|
|
|
$y = 1; //table array index
|
|
|
|
|
$z = 0; //field array index
|
2013-10-01 13:35:07 +02:00
|
|
|
$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";
|
2013-06-09 22:46:14 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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";
|
2013-06-09 22:46:14 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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";
|
2013-06-09 22:46:14 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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.";
|
2013-06-09 22:46:14 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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.";
|
2013-06-09 22:46:14 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "outbound_proxy";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the outbound proxy.";
|
2013-06-09 22:46:14 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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.";
|
2013-06-09 22:46:14 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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.";
|
2013-06-09 22:46:14 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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.";
|
2013-06-09 22:46:14 +02:00
|
|
|
$z++;
|
2013-10-01 13:35:07 +02:00
|
|
|
$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.";
|
2013-06-09 22:46:14 +02:00
|
|
|
$z++;
|
2013-12-17 17:19:54 +01:00
|
|
|
$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++;
|
2015-05-19 18:09:04 +02:00
|
|
|
$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++;
|
2013-12-10 16:05:16 +01:00
|
|
|
|
2013-12-17 17:19:54 +01:00
|
|
|
$y = 2; //table array index
|
2013-11-14 02:48:37 +01:00
|
|
|
$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++;
|
2013-12-10 16:05:16 +01:00
|
|
|
$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++;
|
2013-11-14 02:48:37 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_category";
|
2013-11-24 01:35:02 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
2013-11-14 02:48:37 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_subcategory";
|
2013-11-24 01:35:02 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
2013-11-14 02:48:37 +01:00
|
|
|
$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++;
|
2013-12-17 17:19:54 +01:00
|
|
|
|
|
|
|
|
$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++;
|
2015-02-15 01:33:56 +01:00
|
|
|
$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++;
|
2013-12-17 17:19:54 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'device_key_id';
|
2014-02-07 13:26:20 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
|
2013-12-17 17:19:54 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select the key ID.';
|
|
|
|
|
$z++;
|
2013-12-29 07:49:28 +01:00
|
|
|
$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++;
|
2013-12-17 17:19:54 +01:00
|
|
|
$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++;
|
2014-01-03 09:05:46 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'device_key_line';
|
2015-02-15 21:41:39 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
|
2014-01-03 09:05:46 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the value.';
|
|
|
|
|
$z++;
|
2013-12-17 17:19:54 +01:00
|
|
|
$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++;
|
2014-01-04 05:40:40 +01:00
|
|
|
$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++;
|
2013-12-17 17:19:54 +01:00
|
|
|
$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++;
|
|
|
|
|
|
2015-02-15 01:33:56 +01:00
|
|
|
$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++;
|
|
|
|
|
|
2013-12-29 07:47:25 +01:00
|
|
|
?>
|