2012-09-14 20:50:34 +00:00
<? php
2014-12-26 03:27:54 +00:00
2012-09-14 20:50:34 +00:00
//application details
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'name' ] = "Call Flows" ;
$apps [ $x ][ 'uuid' ] = "b1b70f85-6b42-429b-8c5a-60c8b02b7d14" ;
$apps [ $x ][ 'category' ] = "" ;
$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" ;
2017-06-03 16:00:20 +01:00
$apps [ $x ][ 'description' ][ 'en-us' ] = "Direct calls between two destinations by calling a feature code." ;
2020-03-20 20:47:13 +00:00
$apps [ $x ][ 'description' ][ 'en-gb' ] = "Direct calls between two destinations by calling a feature code." ;
2017-06-03 16:00:20 +01:00
$apps [ $x ][ 'description' ][ 'ar-eg' ] = "" ;
2017-06-30 23:23:01 +02:00
$apps [ $x ][ 'description' ][ 'de-at' ] = "Anrufe zwischen zwei Ziele anhand eines Funktions-Codes steuern." ;
2017-06-03 16:00:20 +01:00
$apps [ $x ][ 'description' ][ 'de-ch' ] = "" ;
2017-06-30 23:23:01 +02:00
$apps [ $x ][ 'description' ][ 'de-de' ] = "Anrufe zwischen zwei Ziele anhand eines Funktions-Codes steuern." ;
2017-06-03 16:00:20 +01:00
$apps [ $x ][ 'description' ][ 'es-cl' ] = "" ;
$apps [ $x ][ 'description' ][ 'es-mx' ] = "" ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'description' ][ 'fr-ca' ] = "" ;
2017-06-03 16:00:20 +01:00
$apps [ $x ][ 'description' ][ 'fr-fr' ] = "" ;
$apps [ $x ][ 'description' ][ 'he-il' ] = "" ;
$apps [ $x ][ 'description' ][ 'it-it' ] = "" ;
2019-11-17 22:15:26 +01:00
$apps [ $x ][ 'description' ][ 'nl-nl' ] = "Directe oproepen tussen twee bestemmingen via een feature code." ;
2017-06-03 16:00:20 +01:00
$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' ] = "" ;
$apps [ $x ][ 'description' ][ 'ro-ro' ] = "" ;
$apps [ $x ][ 'description' ][ 'ru-ru' ] = "" ;
$apps [ $x ][ 'description' ][ 'sv-se' ] = "" ;
$apps [ $x ][ 'description' ][ 'uk-ua' ] = "" ;
2012-09-14 20:50:34 +00:00
2015-08-04 14:52:10 -06:00
//destination details
2017-02-15 21:32:45 -07:00
$y = 0 ;
2015-08-04 14:52:10 -06:00
$apps [ $x ][ 'destinations' ][ $y ][ 'type' ] = "sql" ;
2022-02-04 11:47:13 -07:00
$apps [ $x ][ 'destinations' ][ $y ][ 'label' ] = "call_flows" ;
2015-08-04 14:52:10 -06:00
$apps [ $x ][ 'destinations' ][ $y ][ 'name' ] = "call_flows" ;
2022-02-04 10:14:13 -07:00
$apps [ $x ][ 'destinations' ][ $y ][ 'sql' ] = "select call_flow_name as name, call_flow_uuid as uuid, call_flow_extension as destination, call_flow_context as context from v_call_flows " ;
2020-04-03 17:36:18 -06:00
$apps [ $x ][ 'destinations' ][ $y ][ 'where' ] = "where domain_uuid = ' \$ {domain_uuid}' and call_flow_enabled = 'true' " ;
2015-08-04 14:52:10 -06:00
$apps [ $x ][ 'destinations' ][ $y ][ 'order_by' ] = "call_flow_name asc" ;
2020-08-24 08:35:42 -06:00
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'call_flow_uuid' ] = "call_flow_uuid" ;
2015-08-04 14:52:10 -06:00
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'name' ] = "call_flow_name" ;
2022-02-03 18:28:20 -07:00
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'destination' ] = "destination" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'extension' ] = "destination" ;
2022-02-04 10:14:13 -07:00
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'context' ] = "context" ;
2015-08-04 14:52:10 -06:00
$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}" ;
2022-01-17 14:44:09 -07:00
$apps [ $x ][ 'destinations' ][ $y ][ 'select_label' ] = " \$ {destination} \$ {name}" ;
$y ++ ;
$apps [ $x ][ 'destinations' ][ $y ][ 'type' ] = "sql" ;
2022-02-04 11:47:13 -07:00
$apps [ $x ][ 'destinations' ][ $y ][ 'label' ] = "call_flows" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'name' ] = "call_flows" ;
2022-02-03 18:28:20 -07:00
$apps [ $x ][ 'destinations' ][ $y ][ 'sql' ] = "select call_flow_name as name, call_flow_uuid as uuid, call_flow_extension as extension, call_flow_feature_code as destination, call_flow_context as context from v_call_flows " ;
2022-01-17 14:44:09 -07:00
$apps [ $x ][ 'destinations' ][ $y ][ 'where' ] = "where domain_uuid = ' \$ {domain_uuid}' and call_flow_enabled = 'true' " ;
2022-02-03 18:28:20 -07:00
$apps [ $x ][ 'destinations' ][ $y ][ 'order_by' ] = "call_flow_extension asc" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'uuid' ] = "uuid" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'name' ] = "name" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'destination' ] = "destination" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'extension' ] = "extension" ;
$apps [ $x ][ 'destinations' ][ $y ][ 'field' ][ 'context' ] = "context" ;
2022-01-17 14:44:09 -07:00
$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}" ;
2015-08-04 14:52:10 -06:00
$apps [ $x ][ 'destinations' ][ $y ][ 'select_label' ] = " \$ {destination} \$ {name}" ;
2012-09-14 20:50:34 +00:00
//permission details
2017-02-15 21:32:45 -07:00
$y = 0 ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "call_flow_view" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'menu' ][ 'uuid' ] = "b0939384-7055-44e8-8b4c-9f72293e1878" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
2012-09-14 20:50:34 +00:00
$y ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "call_flow_add" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
2012-09-14 20:50:34 +00:00
$y ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "call_flow_edit" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
2012-09-14 20:50:34 +00:00
$y ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "call_flow_delete" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
2018-01-25 15:30:47 -07:00
$y ++ ;
2022-01-20 15:54:42 -07:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "call_flow_all" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$y ++ ;
2018-01-25 15:30:47 -07:00
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "call_flow_context" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
2020-01-21 11:43:19 -05:00
$y ++ ;
$apps [ $x ][ 'permissions' ][ $y ][ 'name' ] = "call_flow_destinations" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "superadmin" ;
$apps [ $x ][ 'permissions' ][ $y ][ 'groups' ][] = "admin" ;
$y ++ ;
2012-09-14 20:50:34 +00:00
2019-07-30 01:39:55 -06:00
//cache details
$apps [ $x ][ 'cache' ][ 'key' ] = "dialplan. \$ {call_flow_context}" ;
2012-09-14 20:50:34 +00:00
//schema details
2017-02-15 21:32:45 -07:00
$y = 0 ;
$apps [ $x ][ 'db' ][ $y ][ 'table' ][ 'name' ] = "v_call_flows" ;
$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" ;
$z ++ ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_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" ;
$z ++ ;
$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)" ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "" ;
2013-10-01 11:35:07 +00:00
$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" ;
$z ++ ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_name" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2020-01-08 13:08:04 -07:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'search' ] = 'true' ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the name." ;
2013-10-01 11:35:07 +00:00
$z ++ ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_extension" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2020-01-08 13:08:04 -07:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'search' ] = 'true' ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the extension number." ;
2013-10-01 11:35:07 +00:00
$z ++ ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_feature_code" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2020-01-08 13:08:04 -07:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'search' ] = 'true' ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the feature code." ;
2013-10-01 11:35:07 +00:00
$z ++ ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_context" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2020-01-08 13:08:04 -07:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'search' ] = 'true' ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the context." ;
2013-10-01 11:35:07 +00:00
$z ++ ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_status" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Select the status." ;
2013-10-01 11:35:07 +00:00
$z ++ ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_pin_number" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2020-01-08 13:08:04 -07:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'search' ] = 'true' ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the PIN number." ;
2013-10-01 11:35:07 +00:00
$z ++ ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_label" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2020-01-08 13:08:04 -07:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'search' ] = 'true' ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the label." ;
2013-10-01 11:35:07 +00:00
$z ++ ;
2016-06-11 09:04:42 -06:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_sound" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Select the sound." ;
2016-06-11 09:04:42 -06:00
$z ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_app" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the application." ;
2013-10-01 11:35:07 +00:00
$z ++ ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_data" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the application data." ;
2013-10-01 11:35:07 +00:00
$z ++ ;
2016-06-11 09:04:42 -06:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'text' ] = "call_flow_alternate_label" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'deprecated' ] = "call_flow_anti_label" ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2020-01-08 13:08:04 -07:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'search' ] = 'true' ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the alternate label." ;
2013-10-01 11:35:07 +00:00
$z ++ ;
2016-06-11 09:04:42 -06:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_alternate_sound" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Select the alternate sound." ;
2016-06-11 09:04:42 -06:00
$z ++ ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'text' ] = "call_flow_alternate_app" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'deprecated' ] = "call_flow_anti_app" ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the alternate application." ;
2013-10-01 11:35:07 +00:00
$z ++ ;
2016-06-11 09:04:42 -06:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'text' ] = "call_flow_alternate_data" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ][ 'deprecated' ] = "call_flow_anti_data" ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the alernate application data." ;
2013-10-01 11:35:07 +00:00
$z ++ ;
2020-04-02 19:23:25 -04:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_enabled" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'search' ] = 'true' ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Select whether to enable or disable the call flow" ;
$z ++ ;
2013-10-01 11:35:07 +00:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'name' ] = "call_flow_description" ;
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'type' ] = "text" ;
2020-01-08 13:08:04 -07:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'search' ] = 'true' ;
2017-06-03 19:34:19 +01:00
$apps [ $x ][ 'db' ][ $y ][ 'fields' ][ $z ][ 'description' ][ 'en-us' ] = "Enter the description." ;
2016-06-11 09:04:42 -06:00
2018-01-25 15:30:47 -07:00
?>