112 lines
5.6 KiB
PHP
112 lines
5.6 KiB
PHP
<?php
|
|
//application details
|
|
$apps[$x]['name'] = "Call Block";
|
|
$apps[$x]['uuid'] = "9ed63276-e085-4897-839c-4f2e36d92d6c";
|
|
$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'] = "A tool to block incoming numbers.";
|
|
$apps[$x]['description']['es-cl'] = "Una herramineta para bloquear números entrantes";
|
|
$apps[$x]['description']['de-de'] = "";
|
|
$apps[$x]['description']['de-ch'] = "";
|
|
$apps[$x]['description']['de-at'] = "";
|
|
$apps[$x]['description']['fr-fr'] = "Outil pour bloquer les numéro d'appelant";
|
|
$apps[$x]['description']['fr-ca'] = "";
|
|
$apps[$x]['description']['fr-ch'] = "";
|
|
$apps[$x]['description']['pt-pt'] = "Uma ferramenta para bloquear números indesejados";
|
|
$apps[$x]['description']['pt-br'] = "";
|
|
|
|
//menu details
|
|
$apps[$x]['menu'][0]['title']['en-us'] = "Call Block";
|
|
$apps[$x]['menu'][0]['title']['es-cl'] = "Bloqueo de llamadas";
|
|
$apps[$x]['menu'][0]['title']['de-de'] = "";
|
|
$apps[$x]['menu'][0]['title']['de-ch'] = "";
|
|
$apps[$x]['menu'][0]['title']['de-at'] = "";
|
|
$apps[$x]['menu'][0]['title']['fr-fr'] = "Blocage d'appel";
|
|
$apps[$x]['menu'][0]['title']['fr-ca'] = "";
|
|
$apps[$x]['menu'][0]['title']['fr-ch'] = "";
|
|
$apps[$x]['menu'][0]['title']['pt-pt'] = "Bloqueio de Chamadas";
|
|
$apps[$x]['menu'][0]['title']['pt-br'] = "";
|
|
$apps[$x]['menu'][0]['uuid'] = "29295c90-b1b9-440b-9c7E-c8363c6e8975";
|
|
$apps[$x]['menu'][0]['parent_uuid'] = "fd29e39c-c936-f5fc-8e2b-611681b266b5";
|
|
$apps[$x]['menu'][0]['category'] = "internal";
|
|
$apps[$x]['menu'][0]['path'] = "/app/call_block/call_block.php";
|
|
$apps[$x]['menu'][0]['groups'][] = "user";
|
|
$apps[$x]['menu'][0]['groups'][] = "admin";
|
|
$apps[$x]['menu'][0]['groups'][] = "superadmin";
|
|
|
|
//permission details
|
|
$y = 0;
|
|
$apps[$x]['permissions'][$y]['name'] = "call_block_view";
|
|
$apps[$x]['permissions'][$y]['menu']['uuid'] = "29295c90-b1b9-440b-9c7E-c8363c6e8975";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "user";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "call_block_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'] = "call_block_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'] = "call_block_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_call_block";
|
|
$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']['text'] = "call_block_uuid";
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "blocked_caller_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']['text'] = "call_block_name";
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "blocked_caller_name";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Enter the name.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_block_number";
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "blocked_caller_number";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Enter the full phone number.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_block_count";
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "blocked_call_count";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Number of calls.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_block_action";
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "blocked_call_action";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Action for call.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "date_added";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Date/Time number was added.";
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_block_enabled";
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "block_call_enabled";
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Enable/disable blocking the call.";
|
|
$z++;
|
|
?>
|