app_config.php 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = 'Device Logs';
  4. $apps[$x]['uuid'] = '78b1e5c7-5028-43e7-a05b-a36b44f87087';
  5. $apps[$x]['category'] = '';
  6. $apps[$x]['subcategory'] = '';
  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. //permission details
  12. $y = 0;
  13. $apps[$x]['permissions'][$y]['name'] = 'device_log_view';
  14. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  15. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  16. $y++;
  17. $apps[$x]['permissions'][$y]['name'] = 'device_log_add';
  18. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  19. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  20. $y++;
  21. $apps[$x]['permissions'][$y]['name'] = 'device_log_edit';
  22. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  23. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  24. $y++;
  25. $apps[$x]['permissions'][$y]['name'] = 'device_log_delete';
  26. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  27. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  28. $y++;
  29. $apps[$x]['permissions'][$y]['name'] = 'device_log_all';
  30. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  31. $y++;
  32. //device Logs
  33. $y = 0;
  34. $apps[$x]['db'][$y]['table']['name'] = 'v_device_logs';
  35. $apps[$x]['db'][$y]['table']['parent'] = '';
  36. $z = 0;
  37. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'device_log_uuid';
  38. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  39. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  40. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  41. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  42. $z++;
  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. $z++;
  51. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'device_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]['search_by'] = 'false';
  56. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the device uuid.';
  57. $z++;
  58. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'timestamp';
  59. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  60. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  61. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  62. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'false';
  63. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the http content body.';
  64. $z++;
  65. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_address";
  66. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "device_mac_address";
  67. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  68. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  69. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the device mac address.';
  70. $z++;
  71. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'request_scheme';
  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 request scheme.';
  75. $z++;
  76. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'http_host';
  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 http host.';
  80. $z++;
  81. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'server_port';
  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 server port.';
  85. $z++;
  86. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'server_protocol';
  87. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  88. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  89. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the http protocol.';
  90. $z++;
  91. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'query_string';
  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 query string.';
  95. $z++;
  96. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'remote_address';
  97. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  98. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  99. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the remote address.';
  100. $z++;
  101. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'http_user_agent';
  102. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  103. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  104. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the user agent.';
  105. $z++;
  106. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'http_status';
  107. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  108. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  109. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the http status.';
  110. $z++;
  111. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'http_status_code';
  112. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  113. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  114. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the http status code.';
  115. $z++;
  116. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'http_content_body';
  117. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  118. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'false';
  119. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the http content body.';
  120. $z++;
  121. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
  122. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  123. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  124. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  125. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  126. $z++;
  127. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
  128. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  129. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  130. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  131. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  132. $z++;
  133. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
  134. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  135. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  136. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  137. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  138. $z++;
  139. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
  140. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  141. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  142. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  143. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  144. ?>