app_config.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = "Call ACL";
  4. $apps[$x]['uuid'] = "32aeff16-c7bf-439b-a54d-2568a7e0cec0";
  5. $apps[$x]['category'] = "Switch";
  6. $apps[$x]['subcategory'] = "";
  7. $apps[$x]['version'] = "1.0";
  8. $apps[$x]['license'] = "Mozilla Public License 1.1";
  9. $apps[$x]['url'] = "http://www.fusionpbx.com";
  10. $apps[$x]['description']['en-us'] = "A tool to make call ACL across domain";
  11. //permission details
  12. $y=0;
  13. $apps[$x]['permissions'][$y]['name'] = "call_acl_view";
  14. $apps[$x]['permissions'][$y]['menu']['uuid'] = "0674b1b7-e487-4563-bd07-1b1d4dc6e64d";
  15. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  16. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  17. $y++;
  18. $apps[$x]['permissions'][$y]['name'] = "call_acl_add";
  19. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  20. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  21. $y++;
  22. $apps[$x]['permissions'][$y]['name'] = "call_acl_edit";
  23. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  24. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  25. $y++;
  26. $apps[$x]['permissions'][$y]['name'] = "call_acl_delete";
  27. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  28. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  29. //default settings
  30. $y = 0;
  31. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = '3c1b5c71-bd6a-446c-b3a2-b5215c212f28';
  32. $apps[$x]['default_settings'][$y]['default_setting_category'] = 'call_acl';
  33. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = 'max_order';
  34. $apps[$x]['default_settings'][$y]['default_setting_name'] = 'numeric';
  35. $apps[$x]['default_settings'][$y]['default_setting_value'] = '20';
  36. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = 'true';
  37. $apps[$x]['default_settings'][$y]['default_setting_description'] = 'Maximum order number to select';
  38. //schema details
  39. $y=0;
  40. $apps[$x]['db'][$y]['table']['name'] = "v_call_acl";
  41. $apps[$x]['db'][$y]['table']['parent'] = "";
  42. $z=0;
  43. $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
  44. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  45. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  46. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  47. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  48. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
  49. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
  50. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  51. $z++;
  52. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_acl_uuid";
  53. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  54. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  55. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  56. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
  57. $z++;
  58. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_acl_order";
  59. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  60. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Order";
  61. $z++;
  62. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_acl_name";
  63. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  64. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the name.";
  65. $z++;
  66. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_acl_source";
  67. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  68. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Call ACL source to be checked against";
  69. $z++;
  70. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_acl_destination";
  71. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  72. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Call ACL destination to be checked against";
  73. $z++;
  74. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_acl_action";
  75. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  76. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Action for call.";
  77. $z++;
  78. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_acl_enabled";
  79. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  80. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enable/disable ACL rule";
  81. ?>