2012-06-04 16:58:40 +02:00
|
|
|
<?php
|
|
|
|
|
//application details
|
|
|
|
|
$apps[$x]['name'] = "Phones";
|
|
|
|
|
$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';
|
2012-10-11 03:28:18 +02:00
|
|
|
$apps[$x]['description']['en-us'] = 'Phone provisioning list.';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['description']['es-mx'] = '';
|
|
|
|
|
$apps[$x]['description']['de'] = '';
|
|
|
|
|
$apps[$x]['description']['de-ch'] = '';
|
|
|
|
|
$apps[$x]['description']['de-at'] = '';
|
|
|
|
|
$apps[$x]['description']['fr'] = '';
|
|
|
|
|
$apps[$x]['description']['fr-ca'] = '';
|
|
|
|
|
$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
|
|
|
|
|
|
|
|
//menu details
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['en-us'] = 'Phones';
|
|
|
|
|
$apps[$x]['menu'][0]['title']['es-mx'] = '';
|
|
|
|
|
$apps[$x]['menu'][0]['title']['de'] = '';
|
|
|
|
|
$apps[$x]['menu'][0]['title']['de-ch'] = '';
|
|
|
|
|
$apps[$x]['menu'][0]['title']['de-at'] = '';
|
|
|
|
|
$apps[$x]['menu'][0]['title']['fr'] = '';
|
|
|
|
|
$apps[$x]['menu'][0]['title']['fr-ca'] = '';
|
|
|
|
|
$apps[$x]['menu'][0]['title']['fr-ch'] = '';
|
|
|
|
|
$apps[$x]['menu'][0]['title']['pt-pt'] = 'Telefones';
|
|
|
|
|
$apps[$x]['menu'][0]['title']['pt-br'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$apps[$x]['menu'][0]['uuid'] = 'f9dce498-b7f9-740f-e592-9e8ff3dac2a0';
|
|
|
|
|
$apps[$x]['menu'][0]['parent_uuid'] = 'bc96d773-ee57-0cdd-c3ac-2d91aba61b55';
|
|
|
|
|
$apps[$x]['menu'][0]['category'] = 'internal';
|
2012-11-24 03:30:55 +01:00
|
|
|
$apps[$x]['menu'][0]['path'] = '/app/hardware_phones/hardware_phones.php';
|
2012-06-04 16:58:40 +02:00
|
|
|
$apps[$x]['menu'][0]['groups'][] = 'admin';
|
|
|
|
|
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
|
|
|
|
|
|
|
|
|
//permission details
|
|
|
|
|
$apps[$x]['permissions'][0]['name'] = 'phone_view';
|
|
|
|
|
$apps[$x]['permissions'][0]['groups'][] = 'admin';
|
|
|
|
|
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
|
|
|
|
|
|
|
|
|
$apps[$x]['permissions'][1]['name'] = 'phone_add';
|
|
|
|
|
$apps[$x]['permissions'][1]['groups'][] = 'admin';
|
|
|
|
|
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
|
|
|
|
|
|
|
|
|
$apps[$x]['permissions'][2]['name'] = 'phone_edit';
|
|
|
|
|
$apps[$x]['permissions'][2]['groups'][] = 'admin';
|
|
|
|
|
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
|
|
|
|
|
|
|
|
|
$apps[$x]['permissions'][3]['name'] = 'phone_delete';
|
|
|
|
|
$apps[$x]['permissions'][3]['groups'][] = 'admin';
|
|
|
|
|
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
|
|
|
|
|
|
|
|
|
|
//schema details
|
|
|
|
|
$y = 0; //table array index
|
|
|
|
|
$z = 0; //field array index
|
|
|
|
|
$apps[$x]['db'][$y]['table'] = 'v_hardware_phones';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'id';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'hardware_phone_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';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'hardware_phone_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';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$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';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'v_id';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'phone_mac_address';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'phone_label';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'phone_vendor';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'phone_model';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'phone_firmware_version';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'phone_provision_enable';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'phone_template';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'phone_username';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'phone_password';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'phone_time_zone';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'phone_description';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
?>
|