106 lines
5.0 KiB
PHP
106 lines
5.0 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-mx'] = '';
|
|
$apps[$x]['description']['de-de'] = '';
|
|
$apps[$x]['description']['de-ch'] = '';
|
|
$apps[$x]['description']['de-at'] = '';
|
|
$apps[$x]['description']['fr-fr'] = '';
|
|
$apps[$x]['description']['fr-ca'] = '';
|
|
$apps[$x]['description']['fr-ch'] = '';
|
|
$apps[$x]['description']['pt-pt'] = '';
|
|
$apps[$x]['description']['pt-br'] = '';
|
|
|
|
//menu details
|
|
$apps[$x]['menu'][0]['title']['en-us'] = 'Call Block';
|
|
$apps[$x]['menu'][0]['title']['es-mx'] = '';
|
|
$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'] = '';
|
|
$apps[$x]['menu'][0]['title']['fr-ca'] = '';
|
|
$apps[$x]['menu'][0]['title']['fr-ch'] = '';
|
|
$apps[$x]['menu'][0]['title']['pt-pt'] = '';
|
|
$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'] = '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'] = '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'] = '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'] = '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'] = '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++;
|
|
?>
|