2013-01-05 00:17:37 +00:00
<? php
2014-12-26 03:27:54 +00:00
2013-01-05 00:17:37 +00:00
//application details
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'name' ] = "Conferences" ;
$apps [ $x ][ 'uuid' ] = "b81412e8-7253-91f4-e48e-42fc2c9a38d9" ;
$apps [ $x ][ 'category' ] = "Switch" ;
$apps [ $x ][ 'subcategory' ] = "" ;
2017-06-03 16:00:20 +01:00
$apps [ $x ][ 'version' ] = "1.0" ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'license' ] = "Mozilla Public License 1.1" ;
$apps [ $x ][ 'url' ] = "http://www.fusionpbx.com" ;
2013-09-30 16:21:08 +00:00
$apps [ $x ][ 'description' ][ 'en-us' ] = "Conferences is used to setup conference rooms with a name, description, and optional pin number." ;
2017-06-03 16:00:20 +01:00
$apps [ $x ][ 'description' ][ 'ar-eg' ] = "" ;
2017-04-27 07:41:55 +02:00
$apps [ $x ][ 'description' ][ 'de-at' ] = "Konferenzen wird verwendet, um Konferenzräume mit Namen, Beschreibung und optionaler PIN bereit zu stellen." ;
2017-06-03 16:00:20 +01:00
$apps [ $x ][ 'description' ][ 'de-ch' ] = "" ;
$apps [ $x ][ 'description' ][ 'de-de' ] = "Konferenzen wird verwendet, um Konferenzräume mit Namen, Beschreibung und optionaler PIN bereit zu stellen." ;
$apps [ $x ][ 'description' ][ 'es-cl' ] = "Las conferencias son usadas para configurar salas con un nombre, descripción y un número de acceso (opcional)" ;
$apps [ $x ][ 'description' ][ 'es-mx' ] = "" ;
2013-09-30 16:21:08 +00:00
$apps [ $x ][ 'description' ][ 'fr-ca' ] = "Les conferences sont utilises pour la configuration de chambres avec un nom, descrption et nom d'access (facultatif)" ;
2017-06-03 16:00:20 +01:00
$apps [ $x ][ 'description' ][ 'fr-fr' ] = "Les conferences servent à configurer des salles avec un nom, une description et un code pin facultatif" ;
$apps [ $x ][ 'description' ][ 'he-il' ] = "" ;
$apps [ $x ][ 'description' ][ 'it-it' ] = "" ;
$apps [ $x ][ 'description' ][ 'nl-nl' ] = "" ;
$apps [ $x ][ 'description' ][ 'pl-pl' ] = "" ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'description' ][ 'pt-br' ] = "" ;
2017-06-03 16:00:20 +01:00
$apps [ $x ][ 'description' ][ 'pt-pt' ] = "Conferências é usado para configurar salas de conferências com um nome, descrição e número de pin opcional." ;
$apps [ $x ][ 'description' ][ 'ro-ro' ] = "" ;
$apps [ $x ][ 'description' ][ 'ru-ru' ] = "" ;
$apps [ $x ][ 'description' ][ 'sv-se' ] = "" ;
$apps [ $x ][ 'description' ][ 'uk-ua' ] = "" ;
2013-01-05 00:17:37 +00:00
2015-08-04 14:52:10 -06:00
//destination details
2017-02-15 22:14:00 -07:00
$y = 0 ;
2015-08-04 14:52:10 -06:00
$apps [ $x ][ 'destinations' ][ $y ][ 'type' ] = "sql" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'label' ] = "conferences" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'name' ] = "conferences" ;
2015-08-05 18:17:39 -05:00
$apps [ $x ][ 'destinations' ][ $y ][ 'where' ] = "where domain_uuid = ' \$ {domain_uuid}' and conference_enabled = 'true' " ;
2015-08-04 14:52:10 -06:00
$apps [ $x ][ 'destinations' ][ $y ][ 'order_by' ] = "conference_name asc" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'name' ] = "conference_name" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'destination' ] = "conference_extension" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'description' ] = "conference_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}" ;
2013-01-05 00:17:37 +00:00
//permission details
2017-02-15 22:14:00 -07:00
$y = 0 ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "conference_view" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'menu' ][ 'uuid' ] = "9f2a8c08-3e65-c41c-a716-3b53d42bc4d4" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "user" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
2013-01-05 00:17:37 +00:00
$y ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "conference_add" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
2013-01-05 00:17:37 +00:00
$y ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "conference_edit" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "user" ;
2013-01-05 00:17:37 +00:00
$y ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "conference_delete" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
2013-01-05 00:17:37 +00:00
$y ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "conference_delete" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
2013-09-30 16:21:08 +00:00
$y ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "conference_user_view" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;;
2013-09-30 16:21:08 +00:00
$y ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "conference_user_add" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
2013-09-30 16:21:08 +00:00
$y ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "conference_user_edit" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
2013-09-30 16:21:08 +00:00
$y ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "conference_user_delete" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
2013-01-05 00:17:37 +00:00
//schema details
2017-02-15 22:14:00 -07:00
$y = 0 ;
$apps [ $x ][ 'db' ][ $y ][ 'table' ][ 'name' ] = "v_conferences" ;
$apps [ $x ][ 'db' ][ $y ][ 'table' ][ 'parent' ] = "" ;
$z = 0 ;
2013-10-01 11:35:07 +00: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" ;
2013-01-05 00:17:37 +00:00
$z ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "conference_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" ;
2013-01-05 00:17:37 +00:00
$z ++ ;
2013-10-01 11:35:07 +00: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' ] = "" ;
2013-01-05 00:17:37 +00:00
$z ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "conference_name" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the conference name." ;
2013-01-05 00:17:37 +00:00
$z ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "conference_extension" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the conference extension number." ;
2013-01-05 00:17:37 +00:00
$z ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "conference_pin_number" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Optional pin number to secure access to the conference." ;
2013-01-05 00:17:37 +00:00
$z ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "conference_profile" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Conference Profile is a collection of settings for the conference." ;
2013-01-05 00:17:37 +00:00
$z ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "conference_flags" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Optional conference flags. examples: mute|deaf|waste|moderator" ;
2013-01-05 00:17:37 +00:00
$z ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "conference_order" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "numeric" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the order number." ;
2013-01-05 00:17:37 +00:00
$z ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "conference_description" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the description." ;
2013-01-05 00:17:37 +00:00
$z ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "conference_enabled" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Select whether to enable or disable the conference." ;
2013-01-05 00:17:37 +00:00
2017-06-03 16:00:20 +01:00
$y ++ ;
2017-02-15 22:14:00 -07:00
$apps [ $x ][ 'db' ][ $y ][ 'table' ][ 'name' ] = "v_conference_users" ;
$apps [ $x ][ 'db' ][ $y ][ 'table' ][ 'parent' ] = "v_conferences" ;
$z = 0 ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "conference_user_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' ] = "" ;
2013-01-05 00:17:37 +00:00
$z ++ ;
2013-10-01 11:35:07 +00: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" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "" ;
2013-01-05 00:17:37 +00:00
$z ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "conference_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_conferences" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'key' ][ 'reference' ][ 'field' ] = "conference_uuid" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "" ;
2013-01-05 00:17:37 +00:00
$z ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "user_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_users" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'key' ][ 'reference' ][ 'field' ] = "user_uuid" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "" ;
2013-01-05 00:17:37 +00:00
2017-06-03 16:00:20 +01:00
?>