This commit is contained in:
FusionPBX 2017-02-15 21:09:22 -07:00 committed by GitHub
parent cc5a9ee55e
commit ede28fa474
1 changed files with 20 additions and 24 deletions

View File

@ -12,7 +12,7 @@
$apps[$x]['description']['fr-fr'] = ""; $apps[$x]['description']['fr-fr'] = "";
//destination details //destination details
$y = 0; $y=0;
$apps[$x]['destinations'][$y]['type'] = "sql"; $apps[$x]['destinations'][$y]['type'] = "sql";
$apps[$x]['destinations'][$y]['label'] = "voicemails"; $apps[$x]['destinations'][$y]['label'] = "voicemails";
$apps[$x]['destinations'][$y]['name'] = "voicemails"; $apps[$x]['destinations'][$y]['name'] = "voicemails";
@ -25,7 +25,7 @@
$apps[$x]['destinations'][$y]['select_label'] = "\${destination} \${description}"; $apps[$x]['destinations'][$y]['select_label'] = "\${destination} \${description}";
//permission details //permission details
$y = 0; $y=0;
$apps[$x]['permissions'][$y]['name'] = "voicemail_view"; $apps[$x]['permissions'][$y]['name'] = "voicemail_view";
$apps[$x]['permissions'][$y]['menu']['uuid'] = "0347f82a-62a0-49d0-bacd-511d080c46d5"; $apps[$x]['permissions'][$y]['menu']['uuid'] = "0347f82a-62a0-49d0-bacd-511d080c46d5";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
@ -66,13 +66,9 @@
$y++; $y++;
$apps[$x]['permissions'][$y]['name'] = "voicemail_sms_edit"; $apps[$x]['permissions'][$y]['name'] = "voicemail_sms_edit";
$y++; $y++;
$apps[$x]['permissions'][$y]['name'] = "voicemail_transcription_edit";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$apps[$x]['permissions'][$y]['groups'][] = "admin";
$y++;
//default settings //default settings
$y = 0; $y=0;
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = '1cf61dea-42b5-4799-b9fa-f2c3bd29e933'; $apps[$x]['default_settings'][$y]['default_setting_uuid'] = '1cf61dea-42b5-4799-b9fa-f2c3bd29e933';
$apps[$x]['default_settings'][$y]['default_setting_category'] = 'voicemail'; $apps[$x]['default_settings'][$y]['default_setting_category'] = 'voicemail';
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = 'voicemail_file'; $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = 'voicemail_file';
@ -130,9 +126,10 @@
$apps[$x]['default_settings'][$y]['default_setting_description'] = 'Enable display of @domain_name after voicemail_id when rendering emails.'; $apps[$x]['default_settings'][$y]['default_setting_description'] = 'Enable display of @domain_name after voicemail_id when rendering emails.';
//schema details //schema details
$y = 0; //table array index $y=0;
$z = 0; //field array index $apps[$x]['db'][$y]['table']['name'] = "v_voicemails";
$apps[$x]['db'][$y]['table'] = "v_voicemails"; $apps[$x]['db'][$y]['table']['parent'] = "";
$z=0;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid"; $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']['pgsql'] = "uuid";
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
@ -171,10 +168,6 @@
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the sms did to send voicemail to."; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the sms did to send voicemail to.";
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_transcription_enabled";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "If voicemail transcription is enabled for this user";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_attach_file"; $apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_attach_file";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $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."; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Choose whether to attach the file to the email.";
@ -200,9 +193,10 @@
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++; $z++;
$y = 1; //table array index $y++;
$z = 0; //field array index $apps[$x]['db'][$y]['table']['name'] = "v_voicemail_messages";
$apps[$x]['db'][$y]['table'] = "v_voicemail_messages"; $apps[$x]['db'][$y]['table']['parent'] = "v_voicemails";
$z=0;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid"; $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']['pgsql'] = "uuid";
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
@ -255,7 +249,6 @@
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Voicemail intro encoded in base64."; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Voicemail intro encoded in base64.";
$z++; $z++;
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "message_base64"; $apps[$x]['db'][$y]['fields'][$z]['name'] = "message_base64";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Voicemail file encoded in base64."; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Voicemail file encoded in base64.";
@ -265,9 +258,10 @@
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Voicemail transcription."; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Voicemail transcription.";
$z++; $z++;
$y = 2; //table array index $y++;
$z = 0; //field array index $apps[$x]['db'][$y]['table']['name'] = "v_voicemail_destinations";
$apps[$x]['db'][$y]['table'] = "v_voicemail_destinations"; $apps[$x]['db'][$y]['table']['parent'] = "v_voicemails";
$z=0;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid"; $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']['pgsql'] = "uuid";
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
@ -299,9 +293,10 @@
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "voicemail_uuid"; $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "voicemail_uuid";
$z++; $z++;
$y = 3; //table array index $y++;
$z = 0; //field array index $apps[$x]['db'][$y]['table']['name'] = "v_voicemail_options";
$apps[$x]['db'][$y]['table'] = "v_voicemail_options"; $apps[$x]['db'][$y]['table']['parent'] = "v_voicemails";
$z=0;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_option_uuid"; $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']['pgsql'] = "uuid";
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
@ -344,4 +339,5 @@
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++; $z++;
?> ?>