app_config.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = 'Dashboard';
  4. $apps[$x]['uuid'] = '55533bef-4f04-434a-92af-999c1e9927f7';
  5. $apps[$x]['category'] = 'system';
  6. $apps[$x]['subcategory'] = '';
  7. $apps[$x]['version'] = '1.1';
  8. $apps[$x]['license'] = 'Mozilla Public License 1.1';
  9. $apps[$x]['url'] = 'http://www.fusionpbx.com';
  10. $apps[$x]['description']['en-us'] = '';
  11. //permission details
  12. $y = 0;
  13. $apps[$x]['permissions'][$y]['name'] = 'dashboard_view';
  14. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  15. $y++;
  16. $apps[$x]['permissions'][$y]['name'] = 'dashboard_add';
  17. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  18. $y++;
  19. $apps[$x]['permissions'][$y]['name'] = 'dashboard_edit';
  20. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  21. $y++;
  22. $apps[$x]['permissions'][$y]['name'] = 'dashboard_delete';
  23. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  24. $y++;
  25. $apps[$x]['permissions'][$y]['name'] = 'dashboard_all';
  26. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  27. $y++;
  28. $apps[$x]['permissions'][$y]['name'] = 'dashboard_group_view';
  29. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  30. $y++;
  31. $apps[$x]['permissions'][$y]['name'] = 'dashboard_group_add';
  32. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  33. $y++;
  34. $apps[$x]['permissions'][$y]['name'] = 'dashboard_group_edit';
  35. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  36. $y++;
  37. $apps[$x]['permissions'][$y]['name'] = 'dashboard_group_delete';
  38. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  39. $y++;
  40. $apps[$x]['permissions'][$y]['name'] = 'dashboard_group_all';
  41. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  42. $y++;
  43. $apps[$x]['permissions'][$y]['name'] = 'dashboard_parent_uuid';
  44. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  45. $y++;
  46. //dashboard
  47. $y = 0;
  48. $apps[$x]['db'][$y]['table']['name'] = 'v_dashboard';
  49. $apps[$x]['db'][$y]['table']['parent'] = '';
  50. $z = 0;
  51. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_uuid';
  52. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  53. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  54. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  55. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  56. $z++;
  57. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_parent_uuid';
  58. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  59. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  60. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  61. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
  62. $z++;
  63. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_name';
  64. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  65. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  66. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard name.';
  67. $z++;
  68. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_path';
  69. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  70. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  71. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard path.';
  72. $z++;
  73. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_icon';
  74. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  75. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  76. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard icon.';
  77. $z++;
  78. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_url';
  79. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  80. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  81. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard url.';
  82. $z++;
  83. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_target';
  84. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  85. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  86. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard target.';
  87. $z++;
  88. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_width';
  89. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
  90. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  91. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard width.';
  92. $z++;
  93. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_height';
  94. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
  95. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  96. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard height.';
  97. $z++;
  98. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_content';
  99. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  100. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  101. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard content.';
  102. $z++;
  103. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_content_text_align';
  104. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  105. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  106. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select the dashboard content text alignment.';
  107. $z++;
  108. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_content_details';
  109. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  110. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  111. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard content details.';
  112. $z++;
  113. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_chart_type';
  114. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  115. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  116. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the chart type.';
  117. $z++;
  118. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_label_enabled';
  119. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'boolean';
  120. $apps[$x]['db'][$y]['fields'][$z]['toggle'] = ['true','false'];
  121. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the label enabled';
  122. $z++;
  123. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'dashboard_label_text_color';
  124. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'dashboard_heading_text_color';
  125. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  126. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  127. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the label text color.';
  128. $z++;
  129. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'dashboard_label_text_color_hover';
  130. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'dashboard_heading_text_color_hover';
  131. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  132. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  133. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the label text color hover.';
  134. $z++;
  135. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'dashboard_label_background_color';
  136. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'dashboard_heading_background_color';
  137. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  138. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  139. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the label background color.';
  140. $z++;
  141. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'dashboard_label_background_color_hover';
  142. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'dashboard_heading_background_color_hover';
  143. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  144. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  145. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the label background color hover.';
  146. $z++;
  147. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_number_text_color';
  148. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  149. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  150. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the number text color.';
  151. $z++;
  152. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_number_text_color_hover';
  153. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  154. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  155. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the number text color hover.';
  156. $z++;
  157. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_background_color';
  158. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  159. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  160. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the background color.';
  161. $z++;
  162. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_background_color_hover';
  163. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  164. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  165. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the background color hover.';
  166. $z++;
  167. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_detail_background_color';
  168. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  169. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  170. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the detail background color.';
  171. $z++;
  172. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_background_gradient_style';
  173. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  174. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  175. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select a background gradient style.';
  176. $z++;
  177. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_background_gradient_angle';
  178. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  179. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  180. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select a background gradient angle.';
  181. $z++;
  182. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_column_span';
  183. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
  184. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  185. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard column span.';
  186. $z++;
  187. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_row_span';
  188. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
  189. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  190. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard row span.';
  191. $z++;
  192. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_details_state';
  193. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  194. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'expanded';
  195. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Set the default state of the widget details.';
  196. $z++;
  197. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_order';
  198. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
  199. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  200. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard order.';
  201. $z++;
  202. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_enabled';
  203. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'boolean';
  204. $apps[$x]['db'][$y]['fields'][$z]['toggle'] = ['true','false'];
  205. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard enabled.';
  206. $z++;
  207. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_description';
  208. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  209. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  210. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard description.';
  211. $z++;
  212. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
  213. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  214. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  215. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  216. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  217. $z++;
  218. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
  219. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  220. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  221. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  222. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  223. $z++;
  224. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
  225. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  226. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  227. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  228. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  229. $z++;
  230. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
  231. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  232. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  233. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  234. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  235. //dashboard groups
  236. $y = 5;
  237. $apps[$x]['db'][$y]['table']['name'] = 'v_dashboard_groups';
  238. $apps[$x]['db'][$y]['table']['parent'] = 'v_dashboard';
  239. $z = 0;
  240. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_group_uuid';
  241. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  242. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  243. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  244. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  245. $z++;
  246. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_uuid';
  247. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  248. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  249. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  250. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
  251. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_dashboard';
  252. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'dashboard_uuid';
  253. $z++;
  254. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'group_uuid';
  255. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  256. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  257. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  258. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'no';
  259. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the group uuid.';
  260. $z++;
  261. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
  262. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  263. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  264. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  265. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  266. $z++;
  267. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
  268. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  269. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  270. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  271. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  272. $z++;
  273. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
  274. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  275. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  276. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  277. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  278. $z++;
  279. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
  280. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  281. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  282. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  283. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  284. //default settings
  285. $y=0;
  286. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "d773dc8d-7af4-4a9b-bd58-18430d383d6a";
  287. $apps[$x]['default_settings'][$y]['default_setting_category'] = "theme";
  288. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "dashboard_chart_border_color";
  289. $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
  290. $apps[$x]['default_settings'][$y]['default_setting_value'] = "#fff";
  291. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
  292. $apps[$x]['default_settings'][$y]['default_setting_description'] = "";
  293. $y++;
  294. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "4fac6d6f-22cb-4d79-af66-d690cb9c8202";
  295. $apps[$x]['default_settings'][$y]['default_setting_category'] = "theme";
  296. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "dashboard_chart_border_width";
  297. $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
  298. $apps[$x]['default_settings'][$y]['default_setting_value'] = "1";
  299. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
  300. $apps[$x]['default_settings'][$y]['default_setting_description'] = "";
  301. ?>