v_config.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = "User Contacts";
  4. $apps[$x]['uuid'] = 'c82c2d32-301f-d3bd-50ad-34d75419c778';
  5. $apps[$x]['category'] = 'System';
  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'] = 'Manage User Contacts.';
  11. //menu details
  12. $apps[$x]['menu'][0]['title']['en'] = 'User Contacts';
  13. $apps[$x]['menu'][0]['uuid'] = '87ac2ec3-fa23-2a60-6de6-07ac2a8aa4d9';
  14. $apps[$x]['menu'][0]['parent_uuid'] = 'fd29e39c-c936-f5fc-8e2b-611681b266b5';
  15. $apps[$x]['menu'][0]['category'] = 'internal';
  16. $apps[$x]['menu'][0]['path'] = '/app/user_contacts/users.php';
  17. $apps[$x]['menu'][0]['groups'][] = 'admin';
  18. $apps[$x]['menu'][0]['groups'][] = 'superadmin';
  19. //permission details
  20. $apps[$x]['permissions'][0]['name'] = 'contacts_view';
  21. $apps[$x]['permissions'][0]['groups'][] = 'admin';
  22. $apps[$x]['permissions'][0]['groups'][] = 'superadmin';
  23. $apps[$x]['permissions'][1]['name'] = 'contacts_add';
  24. $apps[$x]['permissions'][1]['groups'][] = 'admin';
  25. $apps[$x]['permissions'][1]['groups'][] = 'superadmin';
  26. $apps[$x]['permissions'][2]['name'] = 'contacts_edit';
  27. $apps[$x]['permissions'][2]['groups'][] = 'admin';
  28. $apps[$x]['permissions'][2]['groups'][] = 'superadmin';
  29. $apps[$x]['permissions'][3]['name'] = 'contacts_delete';
  30. $apps[$x]['permissions'][3]['groups'][] = 'admin';
  31. $apps[$x]['permissions'][3]['groups'][] = 'superadmin';
  32. //schema details
  33. $y = 0; //table array index
  34. $z = 0; //field array index
  35. $apps[$x]['db'][$y]['table'] = 'v_users';
  36. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'id';
  37. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'serial';
  38. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'integer';
  39. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'INT NOT NULL AUTO_INCREMENT';
  40. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  41. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
  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'] = 'foreign';
  48. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  49. $z++;
  50. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'v_id';
  51. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  52. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  53. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
  54. $z++;
  55. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_uuid';
  56. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  57. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  58. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  59. $apps[$x]['db'][$y]['fields'][$z]['key'] = 'primary';
  60. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  61. $z++;
  62. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'username';
  63. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  64. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  65. $z++;
  66. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'password';
  67. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  68. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  69. $z++;
  70. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'salt';
  71. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  72. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  73. $z++;
  74. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_type';
  75. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  76. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  77. $z++;
  78. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_category';
  79. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  80. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  81. $z++;
  82. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_first_name';
  83. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  84. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  85. $z++;
  86. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_last_name';
  87. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  88. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  89. $z++;
  90. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_company_name';
  91. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  92. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  93. $z++;
  94. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_physical_address_1';
  95. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  96. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  97. $z++;
  98. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_physical_address_2';
  99. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  100. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  101. $z++;
  102. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_physical_city';
  103. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  104. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  105. $z++;
  106. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_physical_state_province';
  107. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  108. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  109. $z++;
  110. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_physical_country';
  111. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  112. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  113. $z++;
  114. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_physical_postal_code';
  115. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  116. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  117. $z++;
  118. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_mailing_address_1';
  119. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  120. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  121. $z++;
  122. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_mailing_address_2';
  123. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  124. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  125. $z++;
  126. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_mailing_city';
  127. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  128. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  129. $z++;
  130. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_mailing_state_province';
  131. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  132. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  133. $z++;
  134. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_mailing_country';
  135. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  136. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  137. $z++;
  138. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_mailing_postal_code';
  139. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  140. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  141. $z++;
  142. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_billing_address_1';
  143. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  144. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  145. $z++;
  146. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_billing_address_2';
  147. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  148. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  149. $z++;
  150. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_billing_city';
  151. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  152. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  153. $z++;
  154. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_billing_state_province';
  155. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  156. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  157. $z++;
  158. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_billing_country';
  159. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  160. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  161. $z++;
  162. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_billing_postal_code';
  163. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  164. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  165. $z++;
  166. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_shipping_address_1';
  167. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  168. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  169. $z++;
  170. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_shipping_address_2';
  171. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  172. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  173. $z++;
  174. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_shipping_city';
  175. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  176. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  177. $z++;
  178. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_shipping_state_province';
  179. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  180. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  181. $z++;
  182. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_shipping_country';
  183. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  184. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  185. $z++;
  186. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_shipping_postal_code';
  187. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  188. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  189. $z++;
  190. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_url';
  191. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  192. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  193. $z++;
  194. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_1';
  195. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  196. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  197. $z++;
  198. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_1_ext';
  199. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  200. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  201. $z++;
  202. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_2';
  203. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  204. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  205. $z++;
  206. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_2_ext';
  207. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  208. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  209. $z++;
  210. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_mobile';
  211. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  212. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  213. $z++;
  214. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_emergency_mobile';
  215. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  216. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  217. $z++;
  218. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_email_emergency';
  219. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  220. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  221. $z++;
  222. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_phone_fax';
  223. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  224. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  225. $z++;
  226. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_template_name';
  227. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  228. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  229. $z++;
  230. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_email';
  231. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  232. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  233. $z++;
  234. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_notes';
  235. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  236. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  237. $z++;
  238. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_optional_1';
  239. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  240. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  241. $z++;
  242. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_optional_2';
  243. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  244. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  245. $z++;
  246. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_status';
  247. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  248. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  249. $z++;
  250. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_time_zone';
  251. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  252. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  253. $z++;
  254. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_add_user';
  255. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  256. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  257. $z++;
  258. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_add_date';
  259. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  260. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  261. $z++;
  262. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'customer_id';
  263. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
  264. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  265. ?>