2012-06-04 14:58:40 +00:00
<? php
2014-12-26 03:27:54 +00:00
2012-06-04 14:58:40 +00:00
//application details
$apps [ $x ][ 'name' ] = "Time Conditions" ;
2013-10-01 11:35:07 +00: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 20:15:59 +00:00
$apps [ $x ][ 'description' ][ 'es-cl' ] = "Direcciona llamadas basada en hora del día" ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'description' ][ 'es-mx' ] = "" ;
$apps [ $x ][ 'description' ][ 'de-de' ] = "" ;
$apps [ $x ][ 'description' ][ 'de-ch' ] = "" ;
$apps [ $x ][ 'description' ][ 'de-at' ] = "" ;
2014-10-29 08:51:56 +00:00
$apps [ $x ][ 'description' ][ 'fr-fr' ] = "Redirige les appels en fonction de l'heure." ;
2013-10-01 11:35:07 +00: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 14:58:40 +00:00
2015-08-04 14:52:10 -06: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 13:13:58 -06: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 " ;
2016-08-29 21:06:07 -06:00
$apps [ $x ][ 'destinations' ][ $y ][ 'where' ] = "where (domain_uuid = ' \$ {domain_uuid}' or domain_uuid is null) and app_uuid = '4b821450-926b-175a-af93-a03c441818b1' and dialplan_enabled = 'true' " ;
2015-08-04 14:52:10 -06: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 14:58:40 +00:00
//permission details
2016-08-17 15:19:11 -06:00
$y = 0 ;
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "time_condition_view" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'menu' ][ 'uuid' ] = "67aede56-8623-df2d-6338-ecfbde5825f7" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$y ++ ;
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "time_condition_add" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$y ++ ;
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "time_condition_edit" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$y ++ ;
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "time_condition_delete" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$y ++ ;
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "time_condition_domain" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
2014-12-26 03:27:54 +00:00
2016-08-17 15:19:11 -06:00
?>