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
$apps [ $x ][ 'name' ] = " Time Conditions " ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'uuid' ] = " 4b821450-926b-175a-af93-a03c441818b1 " ;
$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' ] = " Direct calls based on the time of day. " ;
2014-02-13 21:15:59 +01:00
$apps [ $x ][ 'description' ][ 'es-cl' ] = " Direcciona llamadas basada en hora del día " ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'description' ][ 'es-mx' ] = " " ;
$apps [ $x ][ 'description' ][ 'de-de' ] = " " ;
$apps [ $x ][ 'description' ][ 'de-ch' ] = " " ;
$apps [ $x ][ 'description' ][ 'de-at' ] = " " ;
2014-10-29 09:51:56 +01:00
$apps [ $x ][ 'description' ][ 'fr-fr' ] = " Redirige les appels en fonction de l'heure. " ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'description' ][ 'fr-ca' ] = " " ;
$apps [ $x ][ 'description' ][ 'fr-ch' ] = " " ;
$apps [ $x ][ 'description' ][ 'pt-pt' ] = " Chamada directa com base na hora do dia. " ;
$apps [ $x ][ 'description' ][ 'pt-br' ] = " " ;
2012-06-04 16:58:40 +02:00
2015-08-04 22:52:10 +02:00
//destination details
$y = 0 ;
$apps [ $x ][ 'destinations' ][ $y ][ 'type' ] = " sql " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'label' ] = " time_conditions " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'name' ] = " time_conditions " ;
2015-08-11 21:13:58 +02:00
$apps [ $x ][ 'destinations' ][ $y ][ 'sql' ] = " select dialplan_name as name, dialplan_number as destination, dialplan_context as context, dialplan_description as description from v_dialplans " ;
2015-08-06 01:17:39 +02:00
$apps [ $x ][ 'destinations' ][ $y ][ 'where' ] = " where domain_uuid = ' \$ { domain_uuid}' and app_uuid = '4b821450-926b-175a-af93-a03c441818b1' and dialplan_enabled = 'true' " ;
2015-08-04 22:52:10 +02:00
$apps [ $x ][ 'destinations' ][ $y ][ 'order_by' ] = " dialplan_number asc " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'context' ] = " dialplan_context " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'name' ] = " dialplan_name " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'destination' ] = " dialplan_number " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'description' ] = " dialplan_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} \$ { name} \$ { description} " ;
2012-06-04 16:58:40 +02:00
//permission details
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'permissions' ][ 0 ][ 'name' ] = " time_condition_view " ;
2013-10-18 00:06:53 +02:00
$apps [ $x ][ 'permissions' ][ 0 ][ 'menu' ][ 'uuid' ] = " 67aede56-8623-df2d-6338-ecfbde5825f7 " ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'permissions' ][ 0 ][ 'groups' ][] = " admin " ;
$apps [ $x ][ 'permissions' ][ 0 ][ 'groups' ][] = " superadmin " ;
2012-06-04 16:58:40 +02:00
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'permissions' ][ 1 ][ 'name' ] = " time_condition_add " ;
$apps [ $x ][ 'permissions' ][ 1 ][ 'groups' ][] = " admin " ;
$apps [ $x ][ 'permissions' ][ 1 ][ 'groups' ][] = " superadmin " ;
2012-06-04 16:58:40 +02:00
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'permissions' ][ 2 ][ 'name' ] = " time_condition_edit " ;
$apps [ $x ][ 'permissions' ][ 2 ][ 'groups' ][] = " admin " ;
$apps [ $x ][ 'permissions' ][ 2 ][ 'groups' ][] = " superadmin " ;
2012-06-04 16:58:40 +02:00
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'permissions' ][ 3 ][ 'name' ] = " time_condition_delete " ;
$apps [ $x ][ 'permissions' ][ 3 ][ 'groups' ][] = " admin " ;
$apps [ $x ][ 'permissions' ][ 3 ][ 'groups' ][] = " superadmin " ;
2014-12-26 04:27:54 +01:00
2013-10-18 00:06:53 +02:00
?>