249 lines
13 KiB
PHP
249 lines
13 KiB
PHP
<?php
|
|
|
|
//application details
|
|
$apps[$x]['name'] = "Voicemail";
|
|
$apps[$x]['uuid'] = "b523c2d2-64cd-46f1-9520-ca4b4098e044";
|
|
$apps[$x]['category'] = "";
|
|
$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'] = "";
|
|
$apps[$x]['description']['fr-fr'] = "";
|
|
|
|
//permission details
|
|
$y = 0;
|
|
$apps[$x]['permissions'][$y]['name'] = "voicemail_view";
|
|
$apps[$x]['permissions'][$y]['menu']['uuid'] = "0347f82a-62a0-49d0-bacd-511d080c46d5";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "voicemail_add";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "voicemail_edit";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "user";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "voicemail_delete";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "voicemail_message_view";
|
|
$apps[$x]['permissions'][$y]['menu']['uuid'] = "0347f82a-62a0-49d0-bacd-511d080c46d5";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "user";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "voicemail_message_add";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "user";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "voicemail_message_edit";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "voicemail_message_delete";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "user";
|
|
$y++;
|
|
|
|
//schema details
|
|
$y = 0; //table array index
|
|
$z = 0; //field array index
|
|
$apps[$x]['db'][$y]['table'] = "v_voicemails";
|
|
$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'] = "voicemail_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'] = "voicemail_id";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the voicemail id.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_password";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the voicemail password.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "greeting_id";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select the greeting id.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_mail_to";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the email address to send voicemail to.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_attach_file";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Choose whether to attach the file to the email.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_file";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select a listening option to include with the email notification.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_local_after_email";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Choose to keep the voicemail file after sending the email.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_enabled";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select to enable or disable this voicemail.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_description";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_name_base64";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
$z++;
|
|
|
|
$y = 1; //table array index
|
|
$z = 0; //field array index
|
|
$apps[$x]['db'][$y]['table'] = "v_voicemail_messages";
|
|
$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'] = "voicemail_message_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'] = "voicemail_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";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "created_epoch";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Created epoch";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "read_epoch";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Read epoch";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "caller_id_name";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Caller ID Name";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "caller_id_number";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Caller ID Number";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "message_length";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Voicemail message length.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "message_status";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Voicemail message status";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "message_priority";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Voicemail message priority.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "message_base64";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Voicemail file encoded in base64.";
|
|
$z++;
|
|
|
|
$y = 2; //table array index
|
|
$z = 0; //field array index
|
|
$apps[$x]['db'][$y]['table'] = "v_voicemail_destinations";
|
|
$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'] = "voicemail_destination_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'] = "voicemail_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_voicemails";
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "voicemail_uuid";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_uuid_copy";
|
|
$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_voicemails";
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "voicemail_uuid";
|
|
$z++;
|
|
|
|
$y = 3; //table array index
|
|
$z = 0; //field array index
|
|
$apps[$x]['db'][$y]['table'] = "v_voicemail_options";
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_option_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'] = "voicemail_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_voicemails";
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "voicemail_uuid";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "voicemail_option_digits";
|
|
$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'] = "voicemail_option_action";
|
|
$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'] = "voicemail_option_param";
|
|
$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'] = "voicemail_option_order";
|
|
$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']['text'] = "voicemail_option_description";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
$z++;
|
|
?>
|