app_config.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = 'WebRTC';
  4. $apps[$x]['uuid'] = 'd8b0a50b-abf3-49db-b396-b1af8a700c88';
  5. $apps[$x]['category'] = 'WebRTC';
  6. $apps[$x]['subcategory'] = 'Launch vPhone';
  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'] = '';
  11. //permission details
  12. $y = 0;
  13. $apps[$x]['permissions'][$y]['name'] = 'webrtc';
  14. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  15. //$apps[$x]['permissions'][$y]['groups'][] = 'user';
  16. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  17. $y++;
  18. //schema details
  19. $y = 0; //table array index
  20. $z = 0; //field array index
  21. $apps[$x]['db'][$y]['table']['name'] = 'v_webrtc';
  22. $apps[$x]['db'][$y]['table']['parent'] = "";
  23. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
  24. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  25. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  26. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  27. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
  28. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
  29. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
  30. $z++;
  31. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'webrtc_uuid';
  32. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  33. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  34. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  35. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  36. $z++;
  37. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'webrtc_name';
  38. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  39. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the name.';
  40. $z++;
  41. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'webrtc_type';
  42. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  43. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select the type.';
  44. $z++;
  45. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'webrtc_description';
  46. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  47. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the description';
  48. $z++;
  49. $y = 1; //table array index
  50. $z = 0; //field array index
  51. $apps[$x]['db'][$y]['table']['name'] = 'v_webrtc';
  52. $apps[$x]['db'][$y]['table']['parent'] = "";
  53. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
  54. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  55. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  56. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  57. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
  58. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
  59. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
  60. $z++;
  61. ?>