2012-06-04 16:58:40 +02:00
< ? php
2014-12-26 04:27:54 +01:00
2012-06-04 16:58:40 +02:00
//application details
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'name' ] = " Destinations " ;
$apps [ $x ][ 'uuid' ] = " 5ec89622-b19c-3559-64f0-afde802ab139 " ;
$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' ] = " Used to define external destination numbers. " ;
2014-02-13 21:15:59 +01:00
$apps [ $x ][ 'description' ][ 'es-cl' ] = " Utilizado para definir números de destino externos. " ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'description' ][ 'es-mx' ] = " Utilizado para definir numeros destinos externos. " ;
$apps [ $x ][ 'description' ][ 'de-de' ] = " " ;
$apps [ $x ][ 'description' ][ 'de-ch' ] = " " ;
$apps [ $x ][ 'description' ][ 'de-at' ] = " " ;
2013-09-17 22:02:19 +02:00
$apps [ $x ][ 'description' ][ 'fr-fr' ] = " Défini les numéros externes. " ;
2013-09-30 18:16:32 +02:00
$apps [ $x ][ 'description' ][ 'fr-ca' ] = " Usé pour définir cibler nombres externe. " ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'description' ][ 'fr-ch' ] = " " ;
$apps [ $x ][ 'description' ][ 'pt-pt' ] = " Utilizado para definir os números de destino externos. " ;
$apps [ $x ][ 'description' ][ 'pt-br' ] = " " ;
2012-06-04 16:58:40 +02:00
2015-08-04 22:52:10 +02:00
//destination details
2017-02-16 06:20:16 +01:00
$y = 0 ;
2015-08-04 22:52:10 +02:00
$apps [ $x ][ 'destinations' ][ $y ][ 'type' ] = " sql " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'label' ] = " destinations " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'name' ] = " destinations " ;
2015-08-11 21:24:07 +02:00
$apps [ $x ][ 'destinations' ][ $y ][ 'sql' ] = " select destination_number as destination, destination_context as context, destination_description as description from v_destinations " ;
2015-08-07 06:21:10 +02:00
$apps [ $x ][ 'destinations' ][ $y ][ 'where' ] = " where domain_uuid = ' \$ { domain_uuid}' and destination_type = 'outbound' and destination_enabled = 'true' " ;
2015-08-04 22:52:10 +02:00
$apps [ $x ][ 'destinations' ][ $y ][ 'order_by' ] = " destination_number asc " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'uuid' ] = " destination_uuid " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'context' ] = " destination_context " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'destination' ] = " destination_number " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'description' ] = " destination_description " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'select_value' ][ 'dialplan' ] = " transfer: \$ { destination} XML \$ { context} " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'select_value' ][ 'ivr' ] = " menu-exec-app:transfer \$ { destination} XML \$ { context} " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'select_label' ] = " \$ { destination} \$ { description} " ;
2012-06-04 16:58:40 +02:00
//permission details
2017-02-16 06:20:16 +01:00
$y = 0 ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = " destination_view " ;
$apps [ $x ][ 'permissions' ][ $y ][ 'menu' ][ 'uuid' ] = " fd2a708a-ff03-c707-c19d-5a4194375eba " ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = " superadmin " ;
2015-01-12 22:12:27 +01:00
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = " admin " ;
2012-06-04 16:58:40 +02:00
$y ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = " destination_add " ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = " superadmin " ;
2015-01-12 22:12:27 +01:00
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = " admin " ;
2012-06-04 16:58:40 +02:00
$y ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = " destination_edit " ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = " superadmin " ;
2015-01-12 22:12:27 +01:00
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = " admin " ;
2012-06-04 16:58:40 +02:00
$y ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = " destination_delete " ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = " superadmin " ;
2015-01-12 22:12:27 +01:00
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = " admin " ;
2012-06-04 16:58:40 +02:00
$y ++ ;
2015-01-25 09:24:32 +01:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = 'destination_domain' ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = 'superadmin' ;
$y ++ ;
2015-03-29 03:33:56 +02:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = 'destination_all' ;
2015-03-07 13:59:53 +01:00
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = 'superadmin' ;
$y ++ ;
2012-06-04 16:58:40 +02:00
//schema details
2017-02-16 06:20:16 +01:00
$y = 0 ;
$apps [ $x ][ 'db' ][ $y ][ 'table' ][ 'name' ] = " v_destinations " ;
$apps [ $x ][ 'db' ][ $y ][ 'table' ][ 'parent' ] = " " ;
$z = 0 ;
2013-10-01 13:35:07 +02:00
$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 " ;
2012-06-04 16:58:40 +02:00
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " 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 " ;
2012-06-04 16:58:40 +02:00
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " dialplan_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_dialplans " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'key' ][ 'reference' ][ 'field' ] = " dialplan_uuid " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " " ;
2012-10-23 12:00:03 +02:00
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " fax_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_fax " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'key' ][ 'reference' ][ 'field' ] = " fax_uuid " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " " ;
2013-01-05 01:28:08 +01:00
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'text' ] = " destination_type " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'deprecated' ] = " destination_name " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " Select the type. " ;
2012-10-23 12:00:03 +02:00
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'text' ] = " destination_number " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'deprecated' ] = " destination_extension " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " Enter the number. " ;
2012-10-23 12:00:03 +02:00
$z ++ ;
2016-03-17 20:22:03 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " destination_number_regex " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " Regular Expression version of destination number " ;
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " destination_caller_id_name " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " Enter the caller id name. " ;
2012-10-23 12:00:03 +02:00
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " destination_caller_id_number " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " Enter the caller id number. " ;
2012-06-04 16:58:40 +02:00
$z ++ ;
2014-08-02 06:41:00 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " destination_cid_name_prefix " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " Enter the caller id name prefix. " ;
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " destination_context " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " Enter the context. " ;
2012-06-04 16:58:40 +02:00
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " destination_app " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " Enter the application. " ;
2012-10-23 12:00:03 +02:00
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " destination_data " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " Enter the data. " ;
2012-06-04 16:58:40 +02:00
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " destination_enabled " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " " ;
2012-06-04 16:58:40 +02:00
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " destination_description " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " Enter the description. " ;
2012-06-04 16:58:40 +02:00
$z ++ ;
2014-07-14 00:29:25 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " destination_accountcode " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " Enter the accountcode. " ;
$z ++ ;
2014-12-26 04:27:54 +01:00
2017-02-16 06:20:16 +01:00
?>