app_config.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = 'Email Queue';
  4. $apps[$x]['uuid'] = '5befdf60-a242-445f-91b3-2e9ee3e0ddf7';
  5. $apps[$x]['category'] = 'system';
  6. $apps[$x]['subcategory'] = 'email';
  7. $apps[$x]['version'] = '2.11';
  8. $apps[$x]['license'] = 'Member';
  9. $apps[$x]['url'] = 'http://www.fusionpbx.com';
  10. $apps[$x]['description']['en-us'] = '';
  11. //default settings
  12. $y=0;
  13. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "35c40afc-8b08-45f1-a96c-2f8a5352cd2d";
  14. $apps[$x]['default_settings'][$y]['default_setting_category'] = "email_queue";
  15. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "enabled";
  16. $apps[$x]['default_settings'][$y]['default_setting_name'] = "boolean";
  17. $apps[$x]['default_settings'][$y]['default_setting_value'] = "true";
  18. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  19. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Enable or disable the email queue.";
  20. $y++;
  21. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "237efdc4-ba71-4c8f-8040-28d0e3a3d6bf";
  22. $apps[$x]['default_settings'][$y]['default_setting_category'] = "email_queue";
  23. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "limit";
  24. $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
  25. $apps[$x]['default_settings'][$y]['default_setting_value'] = "30";
  26. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  27. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Limit the records to process at one time.";
  28. $y++;
  29. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "c4905655-2d67-4eda-9df0-029931c12c6f";
  30. $apps[$x]['default_settings'][$y]['default_setting_category'] = "email_queue";
  31. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "interval";
  32. $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
  33. $apps[$x]['default_settings'][$y]['default_setting_value'] = "5";
  34. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  35. $apps[$x]['default_settings'][$y]['default_setting_description'] = "How often to process the email queue. Default 5 seconds.";
  36. $y++;
  37. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "d945ed66-39c1-44eb-b596-49c9399d8018";
  38. $apps[$x]['default_settings'][$y]['default_setting_category'] = "email_queue";
  39. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "retry_limit";
  40. $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
  41. $apps[$x]['default_settings'][$y]['default_setting_value'] = "5";
  42. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  43. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Limit the number of attempts before the email is set to failed.";
  44. $y++;
  45. $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "27c6f91a-7362-4028-95d1-bf05539fdf3b";
  46. $apps[$x]['default_settings'][$y]['default_setting_category'] = "email_queue";
  47. $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "save_response";
  48. $apps[$x]['default_settings'][$y]['default_setting_name'] = "boolean";
  49. $apps[$x]['default_settings'][$y]['default_setting_value'] = "false";
  50. $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  51. $apps[$x]['default_settings'][$y]['default_setting_description'] = "Save the SMTP send response. Use this for debugging SMTP response.";
  52. $y++;
  53. //$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "a9eb5a16-e018-4a83-975e-eee2ed31f923";
  54. //$apps[$x]['default_settings'][$y]['default_setting_category'] = "email_queue";
  55. //$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "retry_interval";
  56. //$apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
  57. //$apps[$x]['default_settings'][$y]['default_setting_value'] = "300";
  58. //$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
  59. //$apps[$x]['default_settings'][$y]['default_setting_description'] = "Time in seconds to wait before trying to email again. Default 300 seconds";
  60. //permission details
  61. $y = 0;
  62. $apps[$x]['permissions'][$y]['name'] = 'email_queue_view';
  63. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  64. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  65. $y++;
  66. $apps[$x]['permissions'][$y]['name'] = 'email_queue_add';
  67. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  68. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  69. $y++;
  70. $apps[$x]['permissions'][$y]['name'] = 'email_queue_edit';
  71. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  72. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  73. $y++;
  74. $apps[$x]['permissions'][$y]['name'] = 'email_queue_delete';
  75. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  76. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  77. $y++;
  78. $apps[$x]['permissions'][$y]['name'] = 'email_queue_all';
  79. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  80. $y++;
  81. $apps[$x]['permissions'][$y]['name'] = 'email_queue_attachment_view';
  82. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  83. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  84. $y++;
  85. $apps[$x]['permissions'][$y]['name'] = 'email_queue_attachment_add';
  86. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  87. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  88. $y++;
  89. $apps[$x]['permissions'][$y]['name'] = 'email_queue_attachment_edit';
  90. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  91. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  92. $y++;
  93. $apps[$x]['permissions'][$y]['name'] = 'email_queue_attachment_delete';
  94. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  95. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  96. $y++;
  97. $apps[$x]['permissions'][$y]['name'] = 'email_queue_attachment_all';
  98. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  99. $y++;
  100. //email queue
  101. $y = 0;
  102. $apps[$x]['db'][$y]['table']['name'] = 'v_email_queue';
  103. $apps[$x]['db'][$y]['table']['parent'] = '';
  104. $z = 0;
  105. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_queue_uuid';
  106. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  107. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  108. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  109. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  110. $z++;
  111. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
  112. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  113. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  114. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  115. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
  116. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
  117. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
  118. $z++;
  119. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'hostname';
  120. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  121. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  122. $z++;
  123. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_date';
  124. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  125. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  126. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  127. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'false';
  128. $z++;
  129. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_from';
  130. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  131. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  132. $z++;
  133. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_to';
  134. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  135. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  136. $z++;
  137. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_subject';
  138. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  139. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  140. $z++;
  141. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_body';
  142. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  143. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  144. $z++;
  145. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_status';
  146. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  147. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  148. $z++;
  149. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_retry_count';
  150. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
  151. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'false';
  152. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
  153. $z++;
  154. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_action_before';
  155. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  156. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  157. $z++;
  158. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_action_after';
  159. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  160. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  161. $z++;
  162. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_uuid';
  163. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  164. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  165. $z++;
  166. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_transcription';
  167. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  168. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  169. $z++;
  170. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'email_response';
  171. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'email_debug';
  172. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  173. //$apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  174. $z++;
  175. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
  176. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  177. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  178. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  179. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  180. $z++;
  181. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
  182. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  183. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  184. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  185. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  186. $z++;
  187. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
  188. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  189. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  190. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  191. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  192. $z++;
  193. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
  194. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  195. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  196. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  197. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  198. //attachments
  199. $y = 6;
  200. $apps[$x]['db'][$y]['table']['name'] = 'v_email_queue_attachments';
  201. $apps[$x]['db'][$y]['table']['parent'] = 'v_email_queue';
  202. $z = 0;
  203. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_queue_attachment_uuid';
  204. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  205. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  206. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  207. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  208. $z++;
  209. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
  210. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  211. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  212. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  213. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
  214. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
  215. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
  216. $z++;
  217. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_queue_uuid';
  218. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  219. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  220. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  221. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
  222. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_email_queue';
  223. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'email_queue_uuid';
  224. $z++;
  225. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_attachment_mime_type';
  226. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  227. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  228. $z++;
  229. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_attachment_type';
  230. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  231. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  232. $z++;
  233. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_attachment_path';
  234. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  235. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  236. $z++;
  237. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_attachment_name';
  238. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  239. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  240. $z++;
  241. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_attachment_base64';
  242. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  243. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  244. $z++;
  245. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_attachment_cid';
  246. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  247. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
  248. $z++;
  249. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_date";
  250. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  251. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  252. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  253. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  254. $z++;
  255. $apps[$x]['db'][$y]['fields'][$z]['name'] = "insert_user";
  256. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  257. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  258. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  259. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  260. $z++;
  261. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_date";
  262. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
  263. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
  264. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
  265. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  266. $z++;
  267. $apps[$x]['db'][$y]['fields'][$z]['name'] = "update_user";
  268. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  269. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  270. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  271. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
  272. ?>