2015-02-14 06:32:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
//application details
|
|
|
|
|
$apps[$x]['name'] = "Phrases";
|
|
|
|
|
$apps[$x]['uuid'] = "5c6f597c-9b78-11e4-89d3-123b93f75cba";
|
|
|
|
|
$apps[$x]['category'] = "Switch";;
|
|
|
|
|
$apps[$x]['subcategory'] = "";
|
|
|
|
|
$apps[$x]['version'] = "0.1";
|
|
|
|
|
$apps[$x]['license'] = "Mozilla Public License 1.1";
|
|
|
|
|
$apps[$x]['url'] = "http://www.fusionpbx.com";
|
2017-04-27 07:41:55 +02:00
|
|
|
$apps[$x]['description']['en-us'] = "Manage phrases primarily used with an IVR.";
|
2020-03-20 21:47:13 +01:00
|
|
|
$apps[$x]['description']['en-gb'] = "Manage phrases primarily used with an IVR.";
|
2017-06-03 17:00:20 +02:00
|
|
|
$apps[$x]['description']['ar-eg'] = "";
|
|
|
|
|
$apps[$x]['description']['de-at'] = "Phrasen verwalten. Diese werden hauptsächlich für Anrufzentralen (IVR) verwendet.";
|
|
|
|
|
$apps[$x]['description']['de-ch'] = "";
|
|
|
|
|
$apps[$x]['description']['de-de'] = "Phrasen verwalten. Diese werden hauptsächlich für Anrufzentralen (IVR) verwendet.";
|
2015-02-14 06:32:43 +01:00
|
|
|
$apps[$x]['description']['es-cl'] = "Administrador de grabaciones, utilizadas primordialmente con un IVR";
|
|
|
|
|
$apps[$x]['description']['es-mx'] = "";
|
|
|
|
|
$apps[$x]['description']['fr-ca'] = "";
|
2017-06-03 17:00:20 +02:00
|
|
|
$apps[$x]['description']['fr-fr'] = "Gestion des enregistrements principalement utilisés dans les IVR";
|
|
|
|
|
$apps[$x]['description']['he-il'] = "";
|
|
|
|
|
$apps[$x]['description']['it-it'] = "";
|
2019-11-23 18:14:27 +01:00
|
|
|
$apps[$x]['description']['nl-nl'] = "Beheer de uitspraken die vooral bij een IVR gebruikt worden.";
|
2017-06-03 17:00:20 +02:00
|
|
|
$apps[$x]['description']['pl-pl'] = "";
|
2015-02-14 06:32:43 +01:00
|
|
|
$apps[$x]['description']['pt-br'] = "";
|
2017-06-03 17:00:20 +02:00
|
|
|
$apps[$x]['description']['pt-pt'] = "Gestor de gravações utilizadas principalmente com um IVR.";
|
|
|
|
|
$apps[$x]['description']['ro-ro'] = "";
|
|
|
|
|
$apps[$x]['description']['ru-ru'] = "";
|
|
|
|
|
$apps[$x]['description']['sv-se'] = "";
|
|
|
|
|
$apps[$x]['description']['uk-ua'] = "";
|
2015-02-14 06:32:43 +01:00
|
|
|
|
2015-08-04 22:52:10 +02:00
|
|
|
//destination details
|
2017-02-16 06:52:35 +01:00
|
|
|
$y=0;
|
2015-08-04 22:52:10 +02:00
|
|
|
$apps[$x]['destinations'][$y]['type'] = "sql";
|
|
|
|
|
$apps[$x]['destinations'][$y]['label'] = "phrases";
|
|
|
|
|
$apps[$x]['destinations'][$y]['name'] = "phrases";
|
2015-08-06 01:17:39 +02:00
|
|
|
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and phrase_enabled = 'true' ";
|
2015-08-04 22:52:10 +02:00
|
|
|
$apps[$x]['destinations'][$y]['order_by'] = "phrase_name asc";
|
2016-02-04 16:49:03 +01:00
|
|
|
$apps[$x]['destinations'][$y]['field']['uuid'] = "phrase_uuid";
|
2015-08-04 22:52:10 +02:00
|
|
|
$apps[$x]['destinations'][$y]['field']['name'] = "phrase_name";
|
|
|
|
|
$apps[$x]['destinations'][$y]['field']['destination'] = "phrase_name";
|
2016-02-04 16:49:03 +01:00
|
|
|
$apps[$x]['destinations'][$y]['select_value']['dialplan'] = "phrase:\${uuid}";
|
|
|
|
|
$apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:phrase \${uuid}";
|
2015-08-04 22:52:10 +02:00
|
|
|
$apps[$x]['destinations'][$y]['select_label'] = "\${name}";
|
|
|
|
|
|
2015-02-14 06:32:43 +01:00
|
|
|
//permission details
|
2017-02-16 06:52:35 +01:00
|
|
|
$y=0;
|
2016-07-23 08:08:10 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "phrase_view";
|
|
|
|
|
$apps[$x]['permissions'][$y]['menu']['uuid'] = "a5caa6dc-a6d7-41c3-a484-e556ffd0d2ff";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$y++;
|
|
|
|
|
$apps[$x]['permissions'][$y]['name'] = "phrase_add";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$y++;
|
|
|
|
|
$apps[$x]['permissions'][$y]['name'] = "phrase_edit";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$y++;
|
|
|
|
|
$apps[$x]['permissions'][$y]['name'] = "phrase_delete";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$y++;
|
2022-01-20 23:54:42 +01:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "phrase_all";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$y++;
|
2016-07-23 08:08:10 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "phrase_play";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "user";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$y++;
|
2020-05-09 06:11:48 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "phrase_execute";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
|
|
|
$y++;
|
2016-07-23 08:08:10 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "phrase_domain";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
2020-01-21 17:43:19 +01:00
|
|
|
$y++;
|
2020-02-17 23:30:35 +01:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = "phrase_destinations";
|
2020-01-21 17:43:19 +01:00
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
2015-02-14 06:32:43 +01:00
|
|
|
|
2019-07-30 09:51:41 +02:00
|
|
|
//cache details
|
|
|
|
|
$apps[$x]['cache']['key'] = "languages.\${phrase_language}";
|
|
|
|
|
|
2015-02-14 06:32:43 +01:00
|
|
|
//schema details
|
2017-02-16 06:52:35 +01:00
|
|
|
$y=0;
|
|
|
|
|
$apps[$x]['db'][$y]['table']['name'] = "v_phrases";
|
|
|
|
|
$apps[$x]['db'][$y]['table']['parent'] = "";
|
|
|
|
|
$z=0;
|
2015-02-14 06:32:43 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "phrase_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";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$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";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "phrase_name";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
2020-01-09 04:51:46 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
|
2015-02-14 06:32:43 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "phrase_language";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
2020-01-09 04:51:46 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "phrase_enabled";
|
2015-02-14 06:32:43 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
2020-01-09 04:51:46 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "phrase_description";
|
2015-02-14 06:32:43 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
2020-01-09 04:51:46 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
|
2015-02-14 06:32:43 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
2022-09-18 08:54:37 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
|
|
|
|
|
$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]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
|
|
|
|
|
$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]['description']['en-us'] = "";
|
2015-02-14 06:32:43 +01:00
|
|
|
|
2017-02-16 06:52:35 +01:00
|
|
|
$y++;
|
|
|
|
|
$apps[$x]['db'][$y]['table']['name'] = "v_phrase_details";
|
|
|
|
|
$apps[$x]['db'][$y]['table']['parent'] = "v_phrases";
|
|
|
|
|
$z=0;
|
2015-02-14 06:32:43 +01:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "phrase_detail_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";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "phrase_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_phrases";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "phrase_uuid";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$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";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "phrase_detail_group";
|
|
|
|
|
$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'] = "phrase_detail_tag";
|
|
|
|
|
$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'] = "phrase_detail_pattern";
|
|
|
|
|
$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'] = "phrase_detail_function";
|
|
|
|
|
$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'] = "phrase_detail_data";
|
|
|
|
|
$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'] = "phrase_detail_method";
|
|
|
|
|
$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'] = "phrase_detail_type";
|
|
|
|
|
$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'] = "phrase_detail_order";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
2022-09-18 08:54:37 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
|
|
|
|
|
$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]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
|
|
|
|
|
$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]['description']['en-us'] = "";
|
2015-02-14 06:32:43 +01:00
|
|
|
|
2022-09-18 08:54:37 +02:00
|
|
|
?>
|