app_config.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = "CDR CSV";
  4. $apps[$x]['uuid'] = '08caaf75-e30b-8b58-e4ad-d9cc76ba2f92';
  5. $apps[$x]['category'] = 'Switch';;
  6. $apps[$x]['subcategory'] = '';
  7. $apps[$x]['version'] = '';
  8. $apps[$x]['license'] = 'Mozilla Public License 1.1';
  9. $apps[$x]['url'] = 'http://www.fusionpbx.com';
  10. $apps[$x]['description']['en'] = 'Call detail records from CSV.';
  11. //permission details
  12. $apps[$x]['permissions'][0]['name'] = 'cdr_csv_view';
  13. $apps[$x]['permissions'][0]['groups'][] = 'admin';
  14. $apps[$x]['permissions'][0]['groups'][] = 'superadmin';
  15. //schema details
  16. $y = 0; //table array index
  17. $z = 0; //field array index
  18. $apps[$x]['db'][$y]['table'] = 'v_cdr';
  19. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'id';
  20. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'cdr_id';
  21. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'serial';
  22. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'integer';
  23. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'INT NOT NULL AUTO_INCREMENT';
  24. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  25. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
  26. $z++;
  27. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
  28. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  29. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  30. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  31. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
  32. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
  33. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
  34. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  35. $z++;
  36. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'v_id';
  37. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  38. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  39. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
  40. $z++;
  41. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'caller_id_name';
  42. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  43. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  44. $z++;
  45. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'caller_id_number';
  46. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  47. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  48. $z++;
  49. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'destination_number';
  50. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  51. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  52. $z++;
  53. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'context';
  54. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  55. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  56. $z++;
  57. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'start_stamp';
  58. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  59. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  60. $z++;
  61. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'answer_stamp';
  62. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  63. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  64. $z++;
  65. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'end_stamp';
  66. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  67. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  68. $z++;
  69. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'duration';
  70. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
  71. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  72. $z++;
  73. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'billsec';
  74. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
  75. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  76. $z++;
  77. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'hangup_cause';
  78. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  79. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  80. $z++;
  81. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'uuid';
  82. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  83. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  84. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  85. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  86. $z++;
  87. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'bleg_uuid';
  88. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  89. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  90. $z++;
  91. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'accountcode';
  92. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  93. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  94. $z++;
  95. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'read_codec';
  96. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  97. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  98. $z++;
  99. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'write_codec';
  100. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  101. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  102. $z++;
  103. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'remote_media_ip';
  104. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  105. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  106. $z++;
  107. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'network_addr';
  108. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  109. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  110. ?>