Fork of FusionPBX but with LDAP kinda working
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

861 lines
50 KiB

2 years ago
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = "Fax";
  4. $apps[$x]['uuid'] = "24108154-4ac3-1db6-1551-4731703a4440";
  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'] = "To receive a FAX setup a fax extension and then direct the incoming FAX with a dedicated number or you can detect the FAX tone by using on the Public tab.";
  11. $apps[$x]['description']['en-gb'] = "To receive a FAX setup a fax extension and then direct the incoming FAX with a dedicated number or you can detect the FAX tone by using on the Public tab.";
  12. $apps[$x]['description']['ar-eg'] = "";
  13. $apps[$x]['description']['de-at'] = "Um ein Fax zu empfangen, legen Sie eine Fax-Nebenstelle an und leiten das eingehende Fax über eine dedizierte Rufnummer oder die Faxerkennung in den Einstellungen an das Ziel.";
  14. $apps[$x]['description']['de-ch'] = "";
  15. $apps[$x]['description']['de-de'] = "Um ein Fax zu empfangen, legen Sie eine Fax-Nebenstelle an und leiten das eingehende Fax über eine dedizierte Rufnummer oder die Faxerkennung in den Einstellungen an das Ziel.";
  16. $apps[$x]['description']['es-cl'] = "Para recibir un FAX, configure una extensión y después asigne un número a esta o puede detectar el tono de FAX utilizando la pestaña Público.";
  17. $apps[$x]['description']['es-mx'] = "Para recibir un FAX, configure una extensión y después asigne un número a esta.";
  18. $apps[$x]['description']['fr-ca'] = "Pour recevoir un fax, configurez un éxtension du FAX et après dirigers un nombre vers lui.";
  19. $apps[$x]['description']['fr-fr'] = "Pour recevoir un fax, configurez une extension du FAX et après diriger un numéro vers lui.";
  20. $apps[$x]['description']['he-il'] = "";
  21. $apps[$x]['description']['it-it'] = "";
  22. $apps[$x]['description']['nl-nl'] = "";
  23. $apps[$x]['description']['pl-pl'] = "";
  24. $apps[$x]['description']['pt-br'] = "";
  25. $apps[$x]['description']['pt-pt'] = "Para receber uma configuração de fax uma extensão de fax e, em seguida, direcionar o fax com um número dedicado ou você pode detectar o tom de fax, usando na guia Pública.";
  26. $apps[$x]['description']['ro-ro'] = "";
  27. $apps[$x]['description']['ru-ru'] = "Чтобы принять факс, добавьте внутренний номер для факсов и направьте входящий вызовы на выделенный номер, или вы можете обнаружить FAX-тон, используя вкладку 'Общие'.";
  28. $apps[$x]['description']['sv-se'] = "";
  29. $apps[$x]['description']['uk-ua'] = "";
  30. //destination details
  31. $y=0;
  32. $apps[$x]['destinations'][$y]['type'] = "sql";
  33. $apps[$x]['destinations'][$y]['label'] = "fax";
  34. $apps[$x]['destinations'][$y]['name'] = "fax";
  35. $apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' ";
  36. $apps[$x]['destinations'][$y]['order_by'] = "fax_extension asc";
  37. $apps[$x]['destinations'][$y]['field']['name'] = "fax_name";
  38. $apps[$x]['destinations'][$y]['field']['destination'] = "fax_extension";
  39. $apps[$x]['destinations'][$y]['field']['extension'] = "fax_extension";
  40. $apps[$x]['destinations'][$y]['select_value']['dialplan'] = "transfer:\${destination} XML \${context}";
  41. $apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:transfer \${destination} XML \${context}";
  42. $apps[$x]['destinations'][$y]['select_label'] = "\${destination} \${name}";
  43. //permission details
  44. $y=0;
  45. $apps[$x]['permissions'][$y]['name'] = "fax_extension_view";
  46. $apps[$x]['permissions'][$y]['menu']['uuid'] = "9c9642e4-2b9b-2785-18d0-6c0a4ede2b2f";
  47. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  48. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  49. $apps[$x]['permissions'][$y]['groups'][] = "user";
  50. $y++;
  51. $apps[$x]['permissions'][$y]['name'] = "fax_extension_add";
  52. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  53. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  54. $y++;
  55. $apps[$x]['permissions'][$y]['name'] = "fax_extension_edit";
  56. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  57. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  58. $apps[$x]['permissions'][$y]['groups'][] = "user";
  59. $y++;
  60. $apps[$x]['permissions'][$y]['name'] = "fax_extension_delete";
  61. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  62. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  63. $y++;
  64. $apps[$x]['permissions'][$y]['name'] = "fax_extension_copy";
  65. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  66. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  67. $y++;
  68. $apps[$x]['permissions'][$y]['name'] = "fax_extension_advanced";
  69. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  70. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  71. $y++;
  72. $apps[$x]['permissions'][$y]['name'] = "fax_inbox_view";
  73. $apps[$x]['permissions'][$y]['menu']['uuid'] = "9c9642e4-2b9b-2785-18d0-6c0a4ede2b2f";
  74. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  75. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  76. $apps[$x]['permissions'][$y]['groups'][] = "user";
  77. $y++;
  78. $apps[$x]['permissions'][$y]['name'] = "fax_inbox_delete";
  79. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  80. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  81. $apps[$x]['permissions'][$y]['groups'][] = "user";
  82. $y++;
  83. $apps[$x]['permissions'][$y]['name'] = "fax_sent_view";
  84. $apps[$x]['permissions'][$y]['menu']['uuid'] = "9c9642e4-2b9b-2785-18d0-6c0a4ede2b2f";
  85. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  86. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  87. $apps[$x]['permissions'][$y]['groups'][] = "user";
  88. $y++;
  89. $apps[$x]['permissions'][$y]['name'] = "fax_sent_delete";
  90. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  91. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  92. $apps[$x]['permissions'][$y]['groups'][] = "user";
  93. $y++;
  94. $apps[$x]['permissions'][$y]['name'] = "fax_send";
  95. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  96. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  97. $apps[$x]['permissions'][$y]['groups'][] = "user";
  98. $y++;
  99. $apps[$x]['permissions'][$y]['name'] = "fax_view";
  100. $apps[$x]['permissions'][$y]['menu']['uuid'] = "9c9642e4-2b9b-2785-18d0-6c0a4ede2b2f";
  101. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  102. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  103. $apps[$x]['permissions'][$y]['groups'][] = "user";
  104. $y++;
  105. $apps[$x]['permissions'][$y]['name'] = "fax_add";
  106. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  107. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  108. $y++;
  109. $apps[$x]['permissions'][$y]['name'] = "fax_edit";
  110. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  111. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  112. $y++;
  113. $apps[$x]['permissions'][$y]['name'] = "fax_delete";
  114. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  115. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  116. $y++;
  117. $apps[$x]['permissions'][$y]['name'] = "fax_user_view";
  118. $apps[$x]['permissions'][$y]['menu']['uuid'] = "9c9642e4-2b9b-2785-18d0-6c0a4ede2b2f";
  119. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  120. $apps[$x]['permissions'][$y]['groups'][] = "admin";;
  121. $y++;
  122. $apps[$x]['permissions'][$y]['name'] = "fax_user_add";
  123. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  124. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  125. $y++;
  126. $apps[$x]['permissions'][$y]['name'] = "fax_user_edit";
  127. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  128. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  129. $y++;
  130. $apps[$x]['permissions'][$y]['name'] = "fax_user_delete";
  131. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  132. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  133. $y++;
  134. $apps[$x]['permissions'][$y]['name'] = "fax_log_view";
  135. $apps[$x]['permissions'][$y]['menu']['uuid'] = "9c9642e4-2b9b-2785-18d0-6c0a4ede2b2f";
  136. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  137. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  138. $y++;
  139. $apps[$x]['permissions'][$y]['name'] = "fax_log_delete";
  140. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  141. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  142. $y++;
  143. $apps[$x]['permissions'][$y]['name'] = "fax_file_view";
  144. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  145. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  146. $apps[$x]['permissions'][$y]['groups'][] = "user";
  147. $y++;
  148. $apps[$x]['permissions'][$y]['name'] = "fax_file_add";
  149. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  150. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  151. $y++;
  152. $apps[$x]['permissions'][$y]['name'] = "fax_file_edit";
  153. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  154. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  155. $apps[$x]['permissions'][$y]['groups'][] = "user";
  156. $y++;
  157. $apps[$x]['permissions'][$y]['name'] = "fax_file_delete";
  158. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  159. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  160. $apps[$x]['permissions'][$y]['groups'][] = "user";
  161. $y++;
  162. $apps[$x]['permissions'][$y]['name'] = "fax_active_view";
  163. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  164. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  165. $y++;
  166. $apps[$x]['permissions'][$y]['name'] = "fax_active_all";
  167. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  168. $y++;
  169. $apps[$x]['permissions'][$y]['name'] = "fax_send_greeting";
  170. //$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  171. $y++;
  172. $apps[$x]['permissions'][$y]['name'] = "fax_destinations";
  173. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  174. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  175. $y++;
  176. $apps[$x]['permissions'][$y]['name'] = "fax_extension_view_domain";
  177. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  178. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  179. $y++;
  180. $apps[$x]['permissions'][$y]['name'] = "fax_subject";
  181. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  182. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  183. $apps[$x]['permissions'][$y]['groups'][] = "user";
  184. $y++;
  185. $apps[$x]['permissions'][$y]['name'] = "fax_message";
  186. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  187. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  188. $apps[$x]['permissions'][$y]['groups'][] = "user";
  189. $y++;
  190. $apps[$x]['permissions'][$y]['name'] = "fax_footer";
  191. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  192. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  193. $apps[$x]['permissions'][$y]['groups'][] = "user";
  194. //default settings
  195. $y=0;
  196. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "6840bdb0-eb9d-45bd-a79a-ccb64d08fd97";
  197. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  198. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "allowed_extension";
  199. $apps[$x]['default_settings'][$y]['default_setting_name'] = "array";
  200. $apps[$x]['default_settings'][$y]['default_setting_value'] = ".pdf";
  201. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  202. $apps[$x]['default_settings'][$y]['default_setting_description'] = "";
  203. $y++;
  204. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "7031d8ec-4610-4696-b5b4-9b5f89f2bff1";
  205. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  206. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "allowed_extension";
  207. $apps[$x]['default_settings'][$y]['default_setting_name'] = "array";
  208. $apps[$x]['default_settings'][$y]['default_setting_value'] = ".tif";
  209. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  210. $apps[$x]['default_settings'][$y]['default_setting_description'] = "";
  211. $y++;
  212. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "c3c4487d-62f1-48d1-9fda-048fca830fb9";
  213. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  214. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "allowed_extension";
  215. $apps[$x]['default_settings'][$y]['default_setting_name'] = "array";
  216. $apps[$x]['default_settings'][$y]['default_setting_value'] = ".tiff";
  217. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  218. $apps[$x]['default_settings'][$y]['default_setting_description'] = "";
  219. $y++;
  220. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "cec88775-8aaf-4667-a04d-414b3274e545";
  221. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  222. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "cover_logo";
  223. $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
  224. $apps[$x]['default_settings'][$y]['default_setting_value'] = "";
  225. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
  226. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Path to image/logo file displayed in the header of the cover sheet.";
  227. $y++;
  228. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "6aba55ae-ced9-4853-81d0-33667be763e5";
  229. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  230. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "cover_font";
  231. $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
  232. $apps[$x]['default_settings'][$y]['default_setting_value'] = "times";
  233. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
  234. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Font used to generate cover page. Can be full path to .ttf file or font name alredy installed.";
  235. $y++;
  236. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "549f8854-2377-448f-892c-58a85ac83a56";
  237. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  238. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "cover_footer";
  239. $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
  240. $apps[$x]['default_settings'][$y]['default_setting_value'] = "The information contained in this facsimile is intended for the sole confidential use of the recipient(s) designated above, and may contain confidential and legally privileged information. If you are not the intended recipient, you are hereby notified that the review, disclosure, dissemination, distribution, copying, duplication in any form, and taking of any action in regards to the contents of this document - except with respect to its direct delivery to the intended recipient - is strictly prohibited. Please notify the sender immediately and destroy this cover sheet and all attachments. If stored or viewed electronically, please permanently delete it from your system.";
  241. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  242. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Notice displayed in the footer of the cover sheet.";
  243. $y++;
  244. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "e907df99-6b3a-4864-bd11-681888f20289";
  245. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  246. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "cover_header";
  247. $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
  248. $apps[$x]['default_settings'][$y]['default_setting_value'] = "";
  249. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
  250. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Default information displayed beneath the logo in the header of the cover sheet.";
  251. $y++;
  252. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "8338a404-3966-416e-b4f9-a1ac36c37bd1";
  253. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  254. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "page_size";
  255. $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
  256. $apps[$x]['default_settings'][$y]['default_setting_value'] = "letter";
  257. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  258. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the default page size of new faxes.";
  259. $y++;
  260. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "9fd6cb5f-5824-4cbb-89b2-53066649272e";
  261. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  262. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "resolution";
  263. $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
  264. $apps[$x]['default_settings'][$y]['default_setting_value'] = "fine";
  265. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  266. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the default transmission quality of new faxes.";
  267. $y++;
  268. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "63e55b19-8bf2-4aaa-b7df-a514c62ecfcc";
  269. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  270. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "variable";
  271. $apps[$x]['default_settings'][$y]['default_setting_name'] = "array";
  272. $apps[$x]['default_settings'][$y]['default_setting_value'] = "fax_enable_t38=true";
  273. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  274. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Enable T.38";
  275. $y++;
  276. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "0f07d24a-296a-4798-8478-e6ef1a59f54f";
  277. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  278. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "variable";
  279. $apps[$x]['default_settings'][$y]['default_setting_name'] = "array";
  280. $apps[$x]['default_settings'][$y]['default_setting_value'] = "fax_enable_t38_request=false";
  281. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  282. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Send a T38 reinvite when a fax tone is detected.";
  283. $y++;
  284. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "dce47447-5a52-4b32-ad6f-39cf698dfb72";
  285. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  286. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "variable";
  287. $apps[$x]['default_settings'][$y]['default_setting_name'] = "array";
  288. $apps[$x]['default_settings'][$y]['default_setting_value'] = "t38_passthru=false";
  289. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
  290. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Send a T38 passthru.";
  291. $y++;
  292. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "3be4d0f0-d47d-45e8-9394-90b147793806";
  293. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  294. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "variable";
  295. $apps[$x]['default_settings'][$y]['default_setting_name'] = "array";
  296. $apps[$x]['default_settings'][$y]['default_setting_value'] = "fax_use_ecm=false";
  297. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
  298. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Use error correction mode.";
  299. $y++;
  300. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "7681e5d8-1462-420b-9276-acf4b2156982";
  301. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  302. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "variable";
  303. $apps[$x]['default_settings'][$y]['default_setting_name'] = "array";
  304. $apps[$x]['default_settings'][$y]['default_setting_value'] = "ignore_early_media=true";
  305. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  306. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Ignore ringing to improve fax success rate.";
  307. $y++;
  308. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "80eee263-a22c-4ec9-9df1-397908a274f6";
  309. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  310. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "keep_local";
  311. $apps[$x]['default_settings'][$y]['default_setting_name'] = "boolean";
  312. $apps[$x]['default_settings'][$y]['default_setting_value'] = "true";
  313. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  314. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Keep the file after sending or receiving the fax.";
  315. $y++;
  316. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "63d2cb3c-708a-43c2-b233-a3f4e3367224";
  317. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  318. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "send_mode";
  319. $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
  320. $apps[$x]['default_settings'][$y]['default_setting_value'] = "queue";
  321. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
  322. $apps[$x]['default_settings'][$y]['default_setting_description'] = "";
  323. $y++;
  324. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "d2977fe1-ee7e-4403-b44f-8d86aeb5f310";
  325. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  326. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "send_retry_limit";
  327. $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
  328. $apps[$x]['default_settings'][$y]['default_setting_value'] = "5";
  329. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  330. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Number of attempts to send fax (count only calls with answer)";
  331. $y++;
  332. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "6ca1712b-5a53-4c54-ba53-b2046c89280d";
  333. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  334. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "send_retry_interval";
  335. $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
  336. $apps[$x]['default_settings'][$y]['default_setting_value'] = "15";
  337. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  338. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Delay before we make next call after answered call";
  339. $y++;
  340. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "2c5640d0-493f-4426-b76d-04e378c86d76";
  341. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  342. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "send_no_answer_retry_limit";
  343. $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
  344. $apps[$x]['default_settings'][$y]['default_setting_value'] = "3";
  345. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  346. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Number of unanswered attempts in sequence";
  347. $y++;
  348. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "03820df1-f242-4358-950f-ede87f502e9a";
  349. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  350. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "send_no_answer_retry_interval";
  351. $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
  352. $apps[$x]['default_settings'][$y]['default_setting_value'] = "30";
  353. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  354. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Delay before we make next call after no answered call";
  355. $y++;
  356. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "9ed2e73c-6b82-4a79-83db-b7588f78c675";
  357. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  358. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "send_no_answer_limit";
  359. $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
  360. $apps[$x]['default_settings'][$y]['default_setting_value'] = "3";
  361. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  362. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Giveup reach the destination after this number of sequences";
  363. $y++;
  364. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "c97457b7-da9a-44a6-a4a4-442dbf5fa4fa";
  365. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  366. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "send_no_answer_interval";
  367. $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
  368. $apps[$x]['default_settings'][$y]['default_setting_value'] = "300";
  369. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  370. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Delay before next call sequence";
  371. $y++;
  372. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "325e3b06-1199-40e0-8703-8adf7efd9f4f";
  373. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  374. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "storage_type";
  375. $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
  376. $apps[$x]['default_settings'][$y]['default_setting_value'] = "base64";
  377. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
  378. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Store FAX in base64.";
  379. $y++;
  380. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "762717f6-743d-428f-b345-33b9d84ff099";
  381. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  382. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "smtp_from";
  383. $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
  384. $apps[$x]['default_settings'][$y]['default_setting_value'] = "";
  385. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
  386. $apps[$x]['default_settings'][$y]['default_setting_description'] = "";
  387. $y++;
  388. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "03c6ea15-a0b8-4164-9026-47595981477b";
  389. $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
  390. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "smtp_from_name";
  391. $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
  392. $apps[$x]['default_settings'][$y]['default_setting_value'] = "";
  393. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
  394. $apps[$x]['default_settings'][$y]['default_setting_description'] = "";
  395. //schema details
  396. $y=0;
  397. $apps[$x]['db'][$y]['table']['name'] = "v_fax";
  398. $apps[$x]['db'][$y]['table']['parent'] = "";
  399. $z=0;
  400. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id";
  401. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "fax_id";
  402. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
  403. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
  404. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
  405. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  406. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
  407. $z++;
  408. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_uuid";
  409. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  410. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  411. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  412. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
  413. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  414. $z++;
  415. $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
  416. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  417. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  418. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  419. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  420. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
  421. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
  422. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  423. $z++;
  424. $apps[$x]['db'][$y]['fields'][$z]['name'] = "dialplan_uuid";
  425. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  426. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  427. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  428. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  429. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_dialplans";
  430. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "dialplan_uuid";
  431. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  432. $z++;
  433. $apps[$x]['db'][$y]['fields'][$z]['name'] = "v_id";
  434. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  435. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  436. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
  437. $z++;
  438. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "fax_extension";
  439. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "faxextension";
  440. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  441. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  442. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  443. $z++;
  444. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_destination_number";
  445. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  446. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  447. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  448. $z++;
  449. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_prefix";
  450. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  451. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  452. $z++;
  453. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "fax_name";
  454. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "faxname";
  455. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  456. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  457. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  458. $z++;
  459. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "fax_email";
  460. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "faxemail";
  461. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  462. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  463. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  464. $z++;
  465. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_email_connection_type";
  466. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  467. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "IMAP or POP3 connection.";
  468. $z++;
  469. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_email_connection_host";
  470. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  471. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Server to connect to.";
  472. $z++;
  473. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_email_connection_port";
  474. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  475. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Port to connect to.";
  476. $z++;
  477. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_email_connection_security";
  478. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  479. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enable SSL or TLS encryption.";
  480. $z++;
  481. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_email_connection_validate";
  482. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  483. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Validate certificate or not.";
  484. $z++;
  485. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_email_connection_username";
  486. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  487. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Username for authentication.";
  488. $z++;
  489. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_email_connection_password";
  490. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  491. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Password for authentication.";
  492. $z++;
  493. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_email_connection_mailbox";
  494. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  495. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Mailbox folder to monitor.";
  496. $z++;
  497. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_email_inbound_subject_tag";
  498. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  499. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Subject tag to detect inbound faxes.";
  500. $z++;
  501. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_email_outbound_subject_tag";
  502. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  503. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Subject tag to detect outbound faxes.";
  504. $z++;
  505. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_email_outbound_authorized_senders";
  506. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  507. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Authorized email-to-fax sender addresses.";
  508. $z++;
  509. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_pin_number";
  510. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  511. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  512. $z++;
  513. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_caller_id_name";
  514. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  515. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  516. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  517. $z++;
  518. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_caller_id_number";
  519. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  520. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  521. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  522. $z++;
  523. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_toll_allow";
  524. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  525. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  526. $z++;
  527. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_user_list";
  528. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  529. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  530. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
  531. $z++;
  532. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_forward_number";
  533. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  534. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  535. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  536. $z++;
  537. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_send_greeting";
  538. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  539. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  540. $z++;
  541. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_send_channels";
  542. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  543. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  544. $z++;
  545. //$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "fax_keep_local";
  546. //$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "fax_local";
  547. //$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  548. //$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  549. //$z++;
  550. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "fax_description";
  551. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "faxdescription";
  552. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  553. $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
  554. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  555. $z++;
  556. $apps[$x]['db'][$y]['fields'][$z]['name'] = "accountcode";
  557. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  558. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  559. $y++;
  560. $apps[$x]['db'][$y]['table']['name'] = "v_fax_users";
  561. $apps[$x]['db'][$y]['table']['parent'] = "v_fax";
  562. $z=0;
  563. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id";
  564. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
  565. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
  566. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
  567. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  568. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
  569. $z++;
  570. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_user_uuid";
  571. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  572. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  573. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  574. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
  575. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  576. $z++;
  577. $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
  578. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  579. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  580. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  581. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  582. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
  583. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
  584. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  585. $z++;
  586. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_uuid";
  587. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  588. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  589. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  590. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  591. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_fax";
  592. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "fax_uuid";
  593. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  594. $z++;
  595. $apps[$x]['db'][$y]['fields'][$z]['name'] = "user_uuid";
  596. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  597. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  598. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  599. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  600. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  601. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_users";
  602. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "user_uuid";
  603. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  604. $y++;
  605. $apps[$x]['db'][$y]['table']['name'] = "v_fax_files";
  606. $apps[$x]['db'][$y]['table']['parent'] = "v_fax";
  607. $z=0;
  608. $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
  609. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  610. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  611. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  612. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  613. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
  614. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
  615. $z++;
  616. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_file_uuid";
  617. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  618. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  619. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  620. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
  621. $z++;
  622. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_uuid";
  623. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  624. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  625. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  626. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "FAX server primary key";
  627. $z++;
  628. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_mode";
  629. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  630. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "rx / tx - Rx means receive and Tx means transmit.";
  631. $z++;
  632. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_destination";
  633. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  634. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "tx - fax transmission";
  635. $z++;
  636. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_file_type";
  637. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  638. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "TIF / PDF";
  639. $z++;
  640. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_file_path";
  641. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  642. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  643. $z++;
  644. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_caller_id_name";
  645. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  646. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  647. $z++;
  648. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_caller_id_number";
  649. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  650. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  651. $z++;
  652. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_date";
  653. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "timestamptz";
  654. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "date";
  655. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "timestamp";
  656. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  657. $z++;
  658. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_epoch";
  659. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "numeric";
  660. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "numeric";
  661. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "bigint";
  662. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  663. $z++;
  664. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_base64";
  665. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  666. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  667. $y++;
  668. $apps[$x]['db'][$y]['table']['name'] = "v_fax_logs";
  669. $apps[$x]['db'][$y]['table']['parent'] = "v_fax";
  670. $z=0;
  671. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_log_uuid";
  672. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  673. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  674. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  675. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
  676. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  677. $z++;
  678. $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
  679. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  680. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  681. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  682. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  683. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
  684. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
  685. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  686. $z++;
  687. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_uuid";
  688. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  689. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  690. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  691. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  692. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_fax";
  693. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "fax_uuid";
  694. $z++;
  695. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_success";
  696. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  697. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  698. $z++;
  699. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_result_code";
  700. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  701. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  702. $z++;
  703. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_result_text";
  704. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  705. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  706. $z++;
  707. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_file";
  708. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  709. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  710. $z++;
  711. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_ecm_used";
  712. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  713. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  714. $z++;
  715. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_local_station_id";
  716. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  717. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  718. $z++;
  719. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_document_transferred_pages";
  720. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  721. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  722. $z++;
  723. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_document_total_pages";
  724. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  725. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  726. $z++;
  727. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_image_resolution";
  728. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  729. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  730. $z++;
  731. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_image_size";
  732. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  733. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  734. $z++;
  735. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_bad_rows";
  736. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  737. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  738. $z++;
  739. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_transfer_rate";
  740. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  741. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  742. $z++;
  743. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_retry_attempts";
  744. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  745. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  746. $z++;
  747. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_retry_limit";
  748. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  749. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  750. $z++;
  751. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_retry_sleep";
  752. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  753. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  754. $z++;
  755. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_uri";
  756. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  757. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  758. $z++;
  759. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_duration";
  760. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  761. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  762. $z++;
  763. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_date";
  764. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "timestamptz";
  765. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "date";
  766. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "timestamp";
  767. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  768. $z++;
  769. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_epoch";
  770. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  771. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  772. $y++;
  773. $apps[$x]['db'][$y]['table']['name'] = "v_fax_tasks";
  774. $apps[$x]['db'][$y]['table']['parent'] = "v_fax";
  775. $z=0;
  776. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_task_uuid";
  777. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  778. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  779. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  780. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
  781. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  782. $z++;
  783. $apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_uuid";
  784. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  785. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  786. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  787. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  788. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_fax";
  789. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "fax_uuid";
  790. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "FAX server primary key";
  791. $z++;
  792. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_next_time";
  793. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "timestamptz";
  794. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "date";
  795. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "timestamp";
  796. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  797. $z++;
  798. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_lock_time";
  799. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "timestamptz";
  800. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "date";
  801. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "timestamp";
  802. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  803. $z++;
  804. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_fax_file";
  805. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  806. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  807. $z++;
  808. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_wav_file";
  809. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  810. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  811. $z++;
  812. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_uri";
  813. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  814. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  815. $z++;
  816. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_dial_string";
  817. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  818. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  819. $z++;
  820. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_dtmf";
  821. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  822. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  823. $z++;
  824. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_reply_address";
  825. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  826. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  827. $z++;
  828. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_interrupted";
  829. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  830. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  831. $z++;
  832. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_status";
  833. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  834. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  835. $z++;
  836. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_no_answer_counter";
  837. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  838. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  839. $z++;
  840. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_no_answer_retry_counter";
  841. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  842. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  843. $z++;
  844. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_retry_counter";
  845. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  846. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  847. $z++;
  848. $apps[$x]['db'][$y]['fields'][$z]['name'] = "task_description";
  849. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  850. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  851. ?>