app_config.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = 'Dialplan Tools';
  4. $apps[$x]['uuid'] = 'dbe1a32f-4cf2-4986-af22-154ef66abfae';
  5. $apps[$x]['category'] = 'Switch';
  6. $apps[$x]['subcategory'] = 'Dialplan';
  7. $apps[$x]['version'] = '1.3';
  8. $apps[$x]['license'] = 'BSD';
  9. $apps[$x]['url'] = 'http://www.fusionpbx.com';
  10. $apps[$x]['description']['en-us'] = '';
  11. //destination details
  12. $y=0;
  13. $apps[$x]['destinations'][$y]['type'] = "sql";
  14. $apps[$x]['destinations'][$y]['label'] = "dialplan_tools";
  15. $apps[$x]['destinations'][$y]['name'] = "dialplan_tools";
  16. $apps[$x]['destinations'][$y]['where'] = "where (domain_uuid = '\${domain_uuid}' or domain_uuid is null) and enabled = 'true' ";
  17. $apps[$x]['destinations'][$y]['order_by'] = "name asc";
  18. $apps[$x]['destinations'][$y]['field']['dialplan_tool_uuid'] = "dialplan_tool_uuid";
  19. $apps[$x]['destinations'][$y]['field']['name'] = "name";
  20. $apps[$x]['destinations'][$y]['field']['application'] = "application";
  21. $apps[$x]['destinations'][$y]['field']['data'] = "data";
  22. $apps[$x]['destinations'][$y]['select_value']['dialplan'] = "\${application}:\${data}";
  23. $apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:\${application} \${data}";
  24. $apps[$x]['destinations'][$y]['select_label'] = "\${name}";
  25. //permission details
  26. $y = 0;
  27. $apps[$x]['permissions'][$y]['name'] = 'dialplan_tool_view';
  28. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  29. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  30. $y++;
  31. $apps[$x]['permissions'][$y]['name'] = 'dialplan_tool_add';
  32. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  33. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  34. $y++;
  35. $apps[$x]['permissions'][$y]['name'] = 'dialplan_tool_edit';
  36. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  37. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  38. $y++;
  39. $apps[$x]['permissions'][$y]['name'] = 'dialplan_tool_delete';
  40. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  41. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  42. $y++;
  43. $apps[$x]['permissions'][$y]['name'] = 'dialplan_tool_domain';
  44. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  45. $y++;
  46. $apps[$x]['permissions'][$y]['name'] = 'dialplan_tool_all';
  47. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  48. $y++;
  49. $apps[$x]['permissions'][$y]['name'] = 'dialplan_tool_destinations';
  50. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  51. $y++;
  52. //Dialplan Tools
  53. $y = 0;
  54. $apps[$x]['db'][$y]['table']['name'] = 'v_dialplan_tools';
  55. $apps[$x]['db'][$y]['table']['parent'] = '';
  56. $z = 0;
  57. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dialplan_tool_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'] = 'primary';
  62. $z++;
  63. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
  64. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  65. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  66. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  67. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
  68. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
  69. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
  70. $z++;
  71. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'name';
  72. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  73. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  74. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the name.';
  75. $z++;
  76. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'application';
  77. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  78. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  79. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the application';
  80. $z++;
  81. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'data';
  82. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  83. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  84. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the data.';
  85. $z++;
  86. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'enabled';
  87. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'boolean';
  88. $apps[$x]['db'][$y]['fields'][$z]['toggle'] = ['true','false'];
  89. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select to enable or disable.';
  90. $z++;
  91. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'description';
  92. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  93. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  94. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the description.';
  95. $z++;
  96. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
  97. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  98. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  99. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  100. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  101. $z++;
  102. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
  103. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  104. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  105. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  106. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  107. $z++;
  108. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
  109. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  110. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  111. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  112. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  113. $z++;
  114. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
  115. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  116. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  117. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  118. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  119. ?>