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' ] = " Recordings " ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'uuid' ] = " 83913217-c7a2-9e90-925d-a866eb40b60e " ;
$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' ] = " Manager recordings primarily used with an IVR. " ;
2014-02-13 21:15:59 +01:00
$apps [ $x ][ 'description' ][ 'es-cl' ] = " Administrador de grabaciones, utilizadas primordialmente con un IVR " ;
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' ] = " Gestion des enregistrements principalement utilisés dans les IVR " ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'description' ][ 'fr-ca' ] = " " ;
$apps [ $x ][ 'description' ][ 'fr-ch' ] = " " ;
$apps [ $x ][ 'description' ][ 'pt-pt' ] = " Gestor de gravações utilizadas principalmente com um IVR. " ;
$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' ] = " recordings " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'name' ] = " recordings " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'sql' ] = " select recording_uuid as uuid, recording_name as name, recording_filename as destination, recording_description as description from v_recordings " ;
2015-08-06 01:17:39 +02:00
$apps [ $x ][ 'destinations' ][ $y ][ 'where' ] = " where domain_uuid = ' \$ { domain_uuid}' " ;
2015-08-04 22:52:10 +02:00
$apps [ $x ][ 'destinations' ][ $y ][ 'order_by' ] = " recording_name asc " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'uuid' ] = " recording_uuid " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'name' ] = " recording_name " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'destination' ] = " recording_filename " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'description' ] = " recording_description " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'select_value' ][ 'dialplan' ] = " lua:streamfile.lua \$ { destination} " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'select_value' ][ 'ivr' ] = " menu-exec-app:lua streamfile.lua \$ { destination} " ;
$apps [ $x ][ 'destinations' ][ $y ][ 'select_label' ] = " \$ { name} " ;
2012-06-04 16:58:40 +02:00
//permission details
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'permissions' ][ 0 ][ 'name' ] = " recording_view " ;
2013-10-18 00:06:53 +02:00
$apps [ $x ][ 'permissions' ][ 0 ][ 'menu' ][ 'uuid' ] = " e4290fd2-3ccc-a758-1714-660d38453104 " ;
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' ] = " recording_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' ] = " recording_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' ] = " recording_delete " ;
$apps [ $x ][ 'permissions' ][ 3 ][ 'groups' ][] = " admin " ;
$apps [ $x ][ 'permissions' ][ 3 ][ 'groups' ][] = " superadmin " ;
2012-06-04 16:58:40 +02:00
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'permissions' ][ 4 ][ 'name' ] = " recording_upload " ;
$apps [ $x ][ 'permissions' ][ 4 ][ 'groups' ][] = " admin " ;
$apps [ $x ][ 'permissions' ][ 4 ][ 'groups' ][] = " superadmin " ;
2012-06-04 16:58:40 +02:00
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'permissions' ][ 5 ][ 'name' ] = " recording_play " ;
$apps [ $x ][ 'permissions' ][ 5 ][ 'groups' ][] = " user " ;
$apps [ $x ][ 'permissions' ][ 5 ][ 'groups' ][] = " admin " ;
$apps [ $x ][ 'permissions' ][ 5 ][ 'groups' ][] = " superadmin " ;
2012-06-04 16:58:40 +02:00
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'permissions' ][ 6 ][ 'name' ] = " recording_download " ;
$apps [ $x ][ 'permissions' ][ 6 ][ 'groups' ][] = " user " ;
$apps [ $x ][ 'permissions' ][ 6 ][ 'groups' ][] = " admin " ;
$apps [ $x ][ 'permissions' ][ 6 ][ 'groups' ][] = " superadmin " ;
2012-06-04 16:58:40 +02:00
//schema details
$y = 0 ; //table array index
$z = 0 ; //field array index
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'table' ] = " v_recordings " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'text' ] = " id " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'deprecated' ] = " recording_id " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ][ 'pgsql' ] = " serial " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ][ 'sqlite' ] = " integer " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ][ 'mysql' ] = " INT NOT NULL AUTO_INCREMENT " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'deprecated' ] = " true " ;
2012-06-04 16:58:40 +02:00
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " recording_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' ] = " " ;
2012-06-04 16:58:40 +02:00
$z ++ ;
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 " ;
$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' ] = " v_id " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'deprecated' ] = " true " ;
2012-06-04 16:58:40 +02:00
$z ++ ;
2013-10-01 13:35:07 +02:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'text' ] = " recording_filename " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'deprecated' ] = " filename " ;
$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' ][ 'text' ] = " recording_name " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'deprecated' ] = " recordingname " ;
$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' ][ 'text' ] = " recording_description " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'deprecated' ] = " descr " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " " ;
2015-03-22 11:52:10 +01:00
$z ++ ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = " recording_base64 " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = " text " ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = " Recording file encoded in base64. " ;
$z ++ ;
2012-06-04 16:58:40 +02:00
2013-10-18 00:06:53 +02:00
?>