easywork-common-lib 1.0.378 → 1.0.380

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/dist/common/index.d.ts +0 -1
  2. package/dist/common/index.js +0 -1
  3. package/dist/common/index.js.map +1 -1
  4. package/dist/entities/app_config/app-config.entity.d.ts +1 -1
  5. package/dist/entities/app_config/app-config.entity.js +2 -2
  6. package/dist/entities/app_config/app-config.entity.js.map +1 -1
  7. package/dist/entities/currency.entity.d.ts +1 -1
  8. package/dist/entities/currency.entity.js +2 -2
  9. package/dist/entities/currency.entity.js.map +1 -1
  10. package/dist/entities/drive/attached_object.entity.d.ts +1 -1
  11. package/dist/entities/drive/attached_object.entity.js +2 -2
  12. package/dist/entities/drive/attached_object.entity.js.map +1 -1
  13. package/dist/entities/drive/file.entity.d.ts +1 -1
  14. package/dist/entities/drive/file.entity.js +2 -2
  15. package/dist/entities/drive/file.entity.js.map +1 -1
  16. package/dist/entities/drive/folder.entity.d.ts +1 -1
  17. package/dist/entities/drive/folder.entity.js +2 -2
  18. package/dist/entities/drive/folder.entity.js.map +1 -1
  19. package/dist/entities/easyapp/filter-view.entity.d.ts +1 -1
  20. package/dist/entities/easyapp/filter-view.entity.js +2 -2
  21. package/dist/entities/easyapp/filter-view.entity.js.map +1 -1
  22. package/dist/entities/email.entity.d.ts +1 -1
  23. package/dist/entities/email.entity.js +2 -2
  24. package/dist/entities/email.entity.js.map +1 -1
  25. package/dist/entities/group.entity.d.ts +1 -1
  26. package/dist/entities/group.entity.js +2 -2
  27. package/dist/entities/group.entity.js.map +1 -1
  28. package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +1 -1
  29. package/dist/entities/helpers/sales/common/client_sources.entity.js +2 -2
  30. package/dist/entities/helpers/sales/common/client_sources.entity.js.map +1 -1
  31. package/dist/entities/helpers/sales/common/client_types.entity.d.ts +1 -1
  32. package/dist/entities/helpers/sales/common/client_types.entity.js +2 -2
  33. package/dist/entities/helpers/sales/common/client_types.entity.js.map +1 -1
  34. package/dist/entities/helpers/sales/lead/h_lead_source.entity.d.ts +1 -1
  35. package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +2 -2
  36. package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +1 -1
  37. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.d.ts +1 -1
  38. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +2 -2
  39. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +1 -1
  40. package/dist/entities/helpers/sales/lead/h_lead_types.entity.d.ts +1 -1
  41. package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +2 -2
  42. package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +1 -1
  43. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.d.ts +1 -1
  44. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js +2 -2
  45. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js.map +1 -1
  46. package/dist/entities/imap-config.entity.d.ts +1 -1
  47. package/dist/entities/imap-config.entity.js +2 -2
  48. package/dist/entities/imap-config.entity.js.map +1 -1
  49. package/dist/entities/menu-permissions.entity.d.ts +1 -1
  50. package/dist/entities/menu-permissions.entity.js +2 -2
  51. package/dist/entities/menu-permissions.entity.js.map +1 -1
  52. package/dist/entities/notifications/notification.entity.d.ts +1 -1
  53. package/dist/entities/notifications/notification.entity.js +2 -2
  54. package/dist/entities/notifications/notification.entity.js.map +1 -1
  55. package/dist/entities/notifications/push-token.entity.d.ts +1 -1
  56. package/dist/entities/notifications/push-token.entity.js +2 -2
  57. package/dist/entities/notifications/push-token.entity.js.map +1 -1
  58. package/dist/entities/otp-log.entity.d.ts +1 -1
  59. package/dist/entities/otp-log.entity.js +2 -2
  60. package/dist/entities/otp-log.entity.js.map +1 -1
  61. package/dist/entities/permission.entity.d.ts +1 -1
  62. package/dist/entities/permission.entity.js +2 -2
  63. package/dist/entities/permission.entity.js.map +1 -1
  64. package/dist/entities/phone.entity.d.ts +1 -1
  65. package/dist/entities/phone.entity.js +2 -2
  66. package/dist/entities/phone.entity.js.map +1 -1
  67. package/dist/entities/protocol.entity.d.ts +1 -1
  68. package/dist/entities/protocol.entity.js +2 -2
  69. package/dist/entities/protocol.entity.js.map +1 -1
  70. package/dist/entities/refresh-token.entity.d.ts +1 -1
  71. package/dist/entities/refresh-token.entity.js +2 -2
  72. package/dist/entities/refresh-token.entity.js.map +1 -1
  73. package/dist/entities/role.entity.d.ts +1 -1
  74. package/dist/entities/role.entity.js +2 -2
  75. package/dist/entities/role.entity.js.map +1 -1
  76. package/dist/entities/sales/agente-intermediario.entity.d.ts +1 -1
  77. package/dist/entities/sales/agente-intermediario.entity.js +2 -2
  78. package/dist/entities/sales/agente-intermediario.entity.js.map +1 -1
  79. package/dist/entities/sales/beneficiarios/person.entity.d.ts +1 -1
  80. package/dist/entities/sales/beneficiarios/person.entity.js +2 -2
  81. package/dist/entities/sales/beneficiarios/person.entity.js.map +1 -1
  82. package/dist/entities/sales/beneficiarios/vehicle.entity.d.ts +1 -1
  83. package/dist/entities/sales/beneficiarios/vehicle.entity.js +2 -2
  84. package/dist/entities/sales/beneficiarios/vehicle.entity.js.map +1 -1
  85. package/dist/entities/sales/contact-comment.entity.d.ts +1 -1
  86. package/dist/entities/sales/contact-comment.entity.js +2 -2
  87. package/dist/entities/sales/contact-comment.entity.js.map +1 -1
  88. package/dist/entities/sales/contact.entity.d.ts +1 -1
  89. package/dist/entities/sales/contact.entity.js +2 -2
  90. package/dist/entities/sales/contact.entity.js.map +1 -1
  91. package/dist/entities/sales/lead-comment.entity.d.ts +1 -1
  92. package/dist/entities/sales/lead-comment.entity.js +2 -2
  93. package/dist/entities/sales/lead-comment.entity.js.map +1 -1
  94. package/dist/entities/sales/lead.entity.d.ts +1 -1
  95. package/dist/entities/sales/lead.entity.js +2 -2
  96. package/dist/entities/sales/lead.entity.js.map +1 -1
  97. package/dist/entities/sales/poliza-comment.entity.d.ts +1 -1
  98. package/dist/entities/sales/poliza-comment.entity.js +2 -2
  99. package/dist/entities/sales/poliza-comment.entity.js.map +1 -1
  100. package/dist/entities/sales/poliza.entity.d.ts +1 -1
  101. package/dist/entities/sales/poliza.entity.js +2 -2
  102. package/dist/entities/sales/poliza.entity.js.map +1 -1
  103. package/dist/entities/sales/poliza_siniestro.entity.d.ts +1 -1
  104. package/dist/entities/sales/poliza_siniestro.entity.js +2 -2
  105. package/dist/entities/sales/poliza_siniestro.entity.js.map +1 -1
  106. package/dist/entities/sales/receipt-sub-agente.entity.d.ts +1 -1
  107. package/dist/entities/sales/receipt-sub-agente.entity.js +2 -2
  108. package/dist/entities/sales/receipt-sub-agente.entity.js.map +1 -1
  109. package/dist/entities/sales/receipt.entity.d.ts +1 -1
  110. package/dist/entities/sales/receipt.entity.js +2 -2
  111. package/dist/entities/sales/receipt.entity.js.map +1 -1
  112. package/dist/entities/tag.entity.d.ts +1 -1
  113. package/dist/entities/tag.entity.js +2 -2
  114. package/dist/entities/tag.entity.js.map +1 -1
  115. package/dist/entities/thirdparty/email-config.entity.d.ts +1 -1
  116. package/dist/entities/thirdparty/email-config.entity.js +2 -2
  117. package/dist/entities/thirdparty/email-config.entity.js.map +1 -1
  118. package/dist/entities/thirdparty/email.entity.d.ts +1 -1
  119. package/dist/entities/thirdparty/email.entity.js +2 -2
  120. package/dist/entities/thirdparty/email.entity.js.map +1 -1
  121. package/dist/entities/thirdparty/oauth.entity.d.ts +1 -1
  122. package/dist/entities/thirdparty/oauth.entity.js +2 -2
  123. package/dist/entities/thirdparty/oauth.entity.js.map +1 -1
  124. package/dist/entities/thirdparty/service.entity.d.ts +1 -1
  125. package/dist/entities/thirdparty/service.entity.js +2 -2
  126. package/dist/entities/thirdparty/service.entity.js.map +1 -1
  127. package/dist/entities/thirdparty/user-email-relation.entity.d.ts +1 -1
  128. package/dist/entities/thirdparty/user-email-relation.entity.js +2 -2
  129. package/dist/entities/thirdparty/user-email-relation.entity.js.map +1 -1
  130. package/dist/entities/tools/calendar/event.entity.d.ts +2 -1
  131. package/dist/entities/tools/calendar/event.entity.js +2 -1
  132. package/dist/entities/tools/calendar/event.entity.js.map +1 -1
  133. package/dist/entities/tools/task-comment.entity.d.ts +1 -1
  134. package/dist/entities/tools/task-comment.entity.js +2 -2
  135. package/dist/entities/tools/task-comment.entity.js.map +1 -1
  136. package/dist/entities/tools/task.entity.d.ts +1 -1
  137. package/dist/entities/tools/task.entity.js +2 -2
  138. package/dist/entities/tools/task.entity.js.map +1 -1
  139. package/package.json +1 -1
  140. package/tsconfig.json +1 -1
  141. package/tsconfig.tsbuildinfo +1 -1
  142. package/dist/common/@types/enums/crm.enum.d.ts +0 -8
  143. package/dist/common/@types/enums/crm.enum.js +0 -14
  144. package/dist/common/@types/enums/crm.enum.js.map +0 -1
  145. package/dist/common/@types/enums/index.d.ts +0 -3
  146. package/dist/common/@types/enums/index.js +0 -20
  147. package/dist/common/@types/enums/index.js.map +0 -1
  148. package/dist/common/@types/enums/misc.enum.d.ts +0 -60
  149. package/dist/common/@types/enums/misc.enum.js +0 -81
  150. package/dist/common/@types/enums/misc.enum.js.map +0 -1
  151. package/dist/common/@types/enums/permission.enum.d.ts +0 -13
  152. package/dist/common/@types/enums/permission.enum.js +0 -19
  153. package/dist/common/@types/enums/permission.enum.js.map +0 -1
  154. package/dist/common/@types/index.d.ts +0 -2
  155. package/dist/common/@types/index.js +0 -19
  156. package/dist/common/@types/index.js.map +0 -1
  157. package/dist/common/@types/interfaces/authentication.interface.d.ts +0 -17
  158. package/dist/common/@types/interfaces/authentication.interface.js +0 -3
  159. package/dist/common/@types/interfaces/authentication.interface.js.map +0 -1
  160. package/dist/common/@types/interfaces/crm.interface.d.ts +0 -131
  161. package/dist/common/@types/interfaces/crm.interface.js +0 -3
  162. package/dist/common/@types/interfaces/crm.interface.js.map +0 -1
  163. package/dist/common/@types/interfaces/file.interface.d.ts +0 -14
  164. package/dist/common/@types/interfaces/file.interface.js +0 -3
  165. package/dist/common/@types/interfaces/file.interface.js.map +0 -1
  166. package/dist/common/@types/interfaces/index.d.ts +0 -5
  167. package/dist/common/@types/interfaces/index.js +0 -22
  168. package/dist/common/@types/interfaces/index.js.map +0 -1
  169. package/dist/common/@types/interfaces/mail.interface.d.ts +0 -9
  170. package/dist/common/@types/interfaces/mail.interface.js +0 -3
  171. package/dist/common/@types/interfaces/mail.interface.js.map +0 -1
  172. package/dist/common/@types/interfaces/validator.interface.d.ts +0 -41
  173. package/dist/common/@types/interfaces/validator.interface.js +0 -3
  174. package/dist/common/@types/interfaces/validator.interface.js.map +0 -1
  175. package/dist/common/constants/app.contants.d.ts +0 -16
  176. package/dist/common/constants/app.contants.js +0 -78
  177. package/dist/common/constants/app.contants.js.map +0 -1
  178. package/dist/common/constants/index.d.ts +0 -2
  179. package/dist/common/constants/index.js +0 -19
  180. package/dist/common/constants/index.js.map +0 -1
  181. package/dist/common/constants/regex.constant.d.ts +0 -6
  182. package/dist/common/constants/regex.constant.js +0 -10
  183. package/dist/common/constants/regex.constant.js.map +0 -1
  184. package/dist/common/database/base.entity.js +0 -142
  185. package/dist/common/database/base.entity.js.map +0 -1
  186. package/dist/common/database/index.d.ts +0 -1
  187. package/dist/common/database/index.js +0 -18
  188. package/dist/common/database/index.js.map +0 -1
  189. package/dist/common/dtos/index.d.ts +0 -1
  190. package/dist/common/dtos/index.js +0 -18
  191. package/dist/common/dtos/index.js.map +0 -1
  192. package/dist/common/dtos/send-notification.dto.d.ts +0 -11
  193. package/dist/common/dtos/send-notification.dto.js +0 -60
  194. package/dist/common/dtos/send-notification.dto.js.map +0 -1
  195. package/dist/common/enums/drive.enum.d.ts +0 -20
  196. package/dist/common/enums/drive.enum.js +0 -26
  197. package/dist/common/enums/drive.enum.js.map +0 -1
  198. package/dist/common/enums/index.d.ts +0 -4
  199. package/dist/common/enums/index.js +0 -21
  200. package/dist/common/enums/index.js.map +0 -1
  201. package/dist/common/enums/notification.enum.d.ts +0 -32
  202. package/dist/common/enums/notification.enum.js +0 -39
  203. package/dist/common/enums/notification.enum.js.map +0 -1
  204. package/dist/common/enums/sales.enum.d.ts +0 -31
  205. package/dist/common/enums/sales.enum.js +0 -41
  206. package/dist/common/enums/sales.enum.js.map +0 -1
  207. package/dist/common/enums/tools.enum.d.ts +0 -19
  208. package/dist/common/enums/tools.enum.js +0 -26
  209. package/dist/common/enums/tools.enum.js.map +0 -1
  210. package/dist/common/functions/cripto.d.ts +0 -1
  211. package/dist/common/functions/cripto.js +0 -8
  212. package/dist/common/functions/cripto.js.map +0 -1
  213. package/dist/common/functions/image.d.ts +0 -2
  214. package/dist/common/functions/image.js +0 -14
  215. package/dist/common/functions/image.js.map +0 -1
  216. package/dist/common/functions/index.d.ts +0 -2
  217. package/dist/common/functions/index.js +0 -19
  218. package/dist/common/functions/index.js.map +0 -1
  219. package/dist/common/helpers/app.utils.d.ts +0 -5
  220. package/dist/common/helpers/app.utils.js +0 -32
  221. package/dist/common/helpers/app.utils.js.map +0 -1
  222. package/dist/common/helpers/helpers.utils.d.ts +0 -5
  223. package/dist/common/helpers/helpers.utils.js +0 -26
  224. package/dist/common/helpers/helpers.utils.js.map +0 -1
  225. package/dist/common/helpers/index.d.ts +0 -2
  226. package/dist/common/helpers/index.js +0 -19
  227. package/dist/common/helpers/index.js.map +0 -1
  228. package/dist/common/interceptors/index.d.ts +0 -1
  229. package/dist/common/interceptors/index.js +0 -18
  230. package/dist/common/interceptors/index.js.map +0 -1
  231. package/dist/common/interceptors/security.interceptor.d.ts +0 -5
  232. package/dist/common/interceptors/security.interceptor.js +0 -22
  233. package/dist/common/interceptors/security.interceptor.js.map +0 -1
  234. package/dist/entities/helpers/index.js +0 -21
  235. package/dist/entities/helpers/index.js.map +0 -1
  236. package/dist/entities/helpers/sales/contact/contact_sources.entity.d.ts +0 -5
  237. package/dist/entities/helpers/sales/contact/contact_sources.entity.js +0 -36
  238. package/dist/entities/helpers/sales/contact/contact_sources.entity.js.map +0 -1
  239. package/dist/entities/helpers/sales/contact/contact_types.entity.d.ts +0 -5
  240. package/dist/entities/helpers/sales/contact/contact_types.entity.js +0 -36
  241. package/dist/entities/helpers/sales/contact/contact_types.entity.js.map +0 -1
  242. package/dist/entities/helpers/sales/index.js +0 -23
  243. package/dist/entities/helpers/sales/index.js.map +0 -1
  244. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.d.ts +0 -5
  245. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js +0 -30
  246. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js.map +0 -1
  247. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.d.ts +0 -5
  248. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js +0 -30
  249. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js.map +0 -1
  250. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.d.ts +0 -5
  251. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js +0 -33
  252. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js.map +0 -1
  253. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.d.ts +0 -6
  254. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +0 -39
  255. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +0 -1
  256. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.d.ts +0 -6
  257. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +0 -39
  258. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +0 -1
  259. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.d.ts +0 -5
  260. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js +0 -30
  261. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js.map +0 -1
  262. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.d.ts +0 -6
  263. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js +0 -36
  264. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js.map +0 -1
  265. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.d.ts +0 -5
  266. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +0 -33
  267. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +0 -1
  268. package/dist/entities/helpers/sales/poliza/index.js +0 -26
  269. package/dist/entities/helpers/sales/poliza/index.js.map +0 -1
  270. package/dist/entities/imap-folder.entity.d.ts +0 -7
  271. package/dist/entities/imap-folder.entity.js +0 -41
  272. package/dist/entities/imap-folder.entity.js.map +0 -1
  273. package/dist/entities/oauth.entity.d.ts +0 -16
  274. package/dist/entities/oauth.entity.js +0 -83
  275. package/dist/entities/oauth.entity.js.map +0 -1
  276. package/dist/entities/profile.entity.js +0 -55
  277. package/dist/entities/profile.entity.js.map +0 -1
  278. package/dist/entities/thirdparty/email-config.d.ts +0 -1
  279. package/dist/entities/thirdparty/email-config.js +0 -3
  280. package/dist/entities/thirdparty/email-config.js.map +0 -1
  281. package/dist/entities/tools/task-list-field.d.ts +0 -5
  282. package/dist/entities/tools/task-list-field.js +0 -39
  283. package/dist/entities/tools/task-list-field.js.map +0 -1
  284. package/dist/entities/user/group.entity.d.ts +0 -5
  285. package/dist/entities/user/group.entity.js +0 -33
  286. package/dist/entities/user/group.entity.js.map +0 -1
  287. package/dist/entities/user/index.d.ts +0 -6
  288. package/dist/entities/user/index.js +0 -23
  289. package/dist/entities/user/index.js.map +0 -1
  290. package/dist/entities/user/menu-permissions.entity.d.ts +0 -7
  291. package/dist/entities/user/menu-permissions.entity.js +0 -42
  292. package/dist/entities/user/menu-permissions.entity.js.map +0 -1
  293. package/dist/entities/user/profile.entity.d.ts +0 -9
  294. package/dist/entities/user/profile.entity.js +0 -56
  295. package/dist/entities/user/profile.entity.js.map +0 -1
  296. package/dist/entities/user/role.entity.d.ts +0 -5
  297. package/dist/entities/user/role.entity.js +0 -36
  298. package/dist/entities/user/role.entity.js.map +0 -1
  299. package/dist/entities/user/user.entity.d.ts +0 -28
  300. package/dist/entities/user/user.entity.js +0 -160
  301. package/dist/entities/user/user.entity.js.map +0 -1
  302. package/dist/entities/user_entity/group.entity.d.ts +0 -5
  303. package/dist/entities/user_entity/group.entity.js +0 -33
  304. package/dist/entities/user_entity/group.entity.js.map +0 -1
  305. package/dist/entities/user_entity/index.d.ts +0 -6
  306. package/dist/entities/user_entity/index.js +0 -23
  307. package/dist/entities/user_entity/index.js.map +0 -1
  308. package/dist/entities/user_entity/menu-permissions.entity.d.ts +0 -7
  309. package/dist/entities/user_entity/menu-permissions.entity.js +0 -42
  310. package/dist/entities/user_entity/menu-permissions.entity.js.map +0 -1
  311. package/dist/entities/user_entity/profile.entity.d.ts +0 -9
  312. package/dist/entities/user_entity/profile.entity.js +0 -56
  313. package/dist/entities/user_entity/profile.entity.js.map +0 -1
  314. package/dist/entities/user_entity/role.entity.d.ts +0 -5
  315. package/dist/entities/user_entity/role.entity.js +0 -36
  316. package/dist/entities/user_entity/role.entity.js.map +0 -1
  317. package/dist/entities/user_entity/user.entity.d.ts +0 -28
  318. package/dist/entities/user_entity/user.entity.js +0 -160
  319. package/dist/entities/user_entity/user.entity.js.map +0 -1
  320. package/dist/eslint.config.d.ts +0 -2
  321. package/dist/eslint.config.js +0 -46
  322. package/dist/eslint.config.js.map +0 -1
  323. package/dist/modules/notifier/notifier.module.d.ts +0 -4
  324. package/dist/modules/notifier/notifier.module.js +0 -52
  325. package/dist/modules/notifier/notifier.module.js.map +0 -1
  326. package/dist/modules/notifier/notifier.service.d.ts +0 -19
  327. package/dist/modules/notifier/notifier.service.js +0 -231
  328. package/dist/modules/notifier/notifier.service.js.map +0 -1
  329. package/dist/modules/notifier/scheduler.service.d.ts +0 -9
  330. package/dist/modules/notifier/scheduler.service.js +0 -40
  331. package/dist/modules/notifier/scheduler.service.js.map +0 -1
  332. package/dist/modules/queue/notifiers/calendar.notifier.d.ts +0 -2
  333. package/dist/modules/queue/notifiers/calendar.notifier.js +0 -17
  334. package/dist/modules/queue/notifiers/calendar.notifier.js.map +0 -1
  335. package/dist/modules/queue/scheduler.service.js +0 -40
  336. package/dist/modules/queue/scheduler.service.js.map +0 -1
  337. package/dist/modules/queue/subservices/calendar.service.d.ts +0 -2
  338. package/dist/modules/queue/subservices/calendar.service.js +0 -17
  339. package/dist/modules/queue/subservices/calendar.service.js.map +0 -1
  340. package/dist/modules/queue/subservices/contact.service.d.ts +0 -7
  341. package/dist/modules/queue/subservices/contact.service.js +0 -49
  342. package/dist/modules/queue/subservices/contact.service.js.map +0 -1
  343. package/dist/modules/queue/subservices/index.d.ts +0 -3
  344. package/dist/modules/queue/subservices/index.js +0 -20
  345. package/dist/modules/queue/subservices/index.js.map +0 -1
  346. package/dist/modules/queue/subservices/task.service.d.ts +0 -12
  347. package/dist/modules/queue/subservices/task.service.js +0 -173
  348. package/dist/modules/queue/subservices/task.service.js.map +0 -1
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.CalendarService = void 0;
10
- const common_1 = require("@nestjs/common");
11
- let CalendarService = class CalendarService {
12
- };
13
- exports.CalendarService = CalendarService;
14
- exports.CalendarService = CalendarService = __decorate([
15
- (0, common_1.Injectable)()
16
- ], CalendarService);
17
- //# sourceMappingURL=calendar.notifier.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calendar.notifier.js","sourceRoot":"","sources":["../../../../src/modules/queue/notifiers/calendar.notifier.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAGrC,IAAM,eAAe,GAArB,MAAM,eAAe;CAAI,CAAA;AAAnB,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;GACA,eAAe,CAAI"}
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.EasySchedulerService = void 0;
16
- const nestjs_rabbitmq_1 = require("@golevelup/nestjs-rabbitmq");
17
- const common_1 = require("@nestjs/common");
18
- const logger = new common_1.Logger("EasySchedulerService");
19
- let EasySchedulerService = class EasySchedulerService {
20
- amqpConnection;
21
- exchangeName;
22
- routingKey;
23
- constructor(amqpConnection, exchangeName, routingKey) {
24
- this.amqpConnection = amqpConnection;
25
- this.exchangeName = exchangeName;
26
- this.routingKey = routingKey;
27
- }
28
- async scheduleTaskAlerts(task) {
29
- logger.debug(`Add Task schedule Service...`);
30
- await this.amqpConnection.publish(this.exchangeName, this.routingKey, task);
31
- }
32
- };
33
- exports.EasySchedulerService = EasySchedulerService;
34
- exports.EasySchedulerService = EasySchedulerService = __decorate([
35
- (0, common_1.Injectable)(),
36
- __param(1, (0, common_1.Inject)('EXCHANGE_NAME')),
37
- __param(2, (0, common_1.Inject)('SCHEDULER_ROUTING_KEY')),
38
- __metadata("design:paramtypes", [nestjs_rabbitmq_1.AmqpConnection, String, String])
39
- ], EasySchedulerService);
40
- //# sourceMappingURL=scheduler.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scheduler.service.js","sourceRoot":"","sources":["../../../src/modules/queue/scheduler.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAA4D;AAC5D,2CAA4D;AAG5D,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,sBAAsB,CAAC,CAAC;AAG3C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAER;IACyB;IACQ;IAHtD,YACqB,cAA8B,EACL,YAAoB,EACZ,UAAkB;QAFnD,mBAAc,GAAd,cAAc,CAAgB;QACL,iBAAY,GAAZ,YAAY,CAAQ;QACZ,eAAU,GAAV,UAAU,CAAQ;IACpE,CAAC;IAEL,KAAK,CAAC,kBAAkB,CAAC,IAAU;QACjC,MAAM,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAC7C,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;CAEJ,CAAA;AAZY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,eAAM,EAAC,eAAe,CAAC,CAAA;IACvB,WAAA,IAAA,eAAM,EAAC,uBAAuB,CAAC,CAAA;qCAFC,gCAAc;GAF1C,oBAAoB,CAYhC"}
@@ -1,2 +0,0 @@
1
- export declare class CalendarService {
2
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.CalendarService = void 0;
10
- const common_1 = require("@nestjs/common");
11
- let CalendarService = class CalendarService {
12
- };
13
- exports.CalendarService = CalendarService;
14
- exports.CalendarService = CalendarService = __decorate([
15
- (0, common_1.Injectable)()
16
- ], CalendarService);
17
- //# sourceMappingURL=calendar.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calendar.service.js","sourceRoot":"","sources":["../../../../src/modules/queue/subservices/calendar.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAGrC,IAAM,eAAe,GAArB,MAAM,eAAe;CAAG,CAAA;AAAlB,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;GACA,eAAe,CAAG"}
@@ -1,7 +0,0 @@
1
- import { EasyNotifierService } from '../notifier.service';
2
- import { Contact, ContactComment } from '../../../entities';
3
- export declare class ContactNotifierService {
4
- private readonly parent;
5
- constructor(parent: EasyNotifierService);
6
- notifyNewCommentContact(contact: Contact, comment: ContactComment, recipientsId: string[]): Promise<void>;
7
- }
@@ -1,49 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ContactNotifierService = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const notifier_service_1 = require("../notifier.service");
15
- const common_2 = require("../../../common");
16
- let ContactNotifierService = class ContactNotifierService {
17
- parent;
18
- constructor(parent) {
19
- this.parent = parent;
20
- }
21
- async notifyNewCommentContact(contact, comment, recipientsId) {
22
- const commentText = comment.comment.slice(0, 20);
23
- const content = `${comment.createdBy.name} comentó en el contacto: <a href="/sales/contacts/contact/${contact.id}?show=true" style="color:#170f6b">[${contact.name}]</a>. Texto del comentario: ${commentText}`;
24
- const metadata = {
25
- contactId: contact.id,
26
- commentId: comment.id,
27
- contactOwnerId: contact.createdBy?.id,
28
- commentOwnerId: comment.createdBy?.id,
29
- contactAssignedId: contact?.assignedBy?.id,
30
- };
31
- const notificationDto = {
32
- title: "New Comment",
33
- content,
34
- recipientsId,
35
- entityId: contact.id,
36
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
37
- category: common_2.NotificationCategory.CRM,
38
- subCategory: common_2.NotificationSubcategory.CONTACT_NEW_COMMENT,
39
- metadata,
40
- };
41
- await this.parent.sendNotification(notificationDto);
42
- }
43
- };
44
- exports.ContactNotifierService = ContactNotifierService;
45
- exports.ContactNotifierService = ContactNotifierService = __decorate([
46
- (0, common_1.Injectable)(),
47
- __metadata("design:paramtypes", [notifier_service_1.EasyNotifierService])
48
- ], ContactNotifierService);
49
- //# sourceMappingURL=contact.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contact.service.js","sourceRoot":"","sources":["../../../../src/modules/queue/subservices/contact.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,0DAA0D;AAE1D,4CAA0H;AAGnH,IAAM,sBAAsB,GAA5B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0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./contact.service"), exports);
18
- __exportStar(require("./task.service"), exports);
19
- __exportStar(require("./calendar.service"), exports);
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/queue/subservices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,iDAA+B;AAC/B,qDAAmC"}
@@ -1,12 +0,0 @@
1
- import { EasyNotifierService } from '../notifier.service';
2
- import { Task, TaskComment } from '../../../entities';
3
- export declare class TaskNotifierService {
4
- private readonly parent;
5
- constructor(parent: EasyNotifierService);
6
- notifyTaskCompletion(task: Task, recipientsId: string[]): Promise<void>;
7
- notifyTaskOverdue(task: Task, recipientsId: string[]): Promise<void>;
8
- notifyTaskContinue(task: Task, recipientsId: string[]): Promise<void>;
9
- notifyNewTask(task: Task, recipientsId: string[]): Promise<void>;
10
- notifyTaskUpdate(task: Task, recipientsId: string[], changedFields: string[]): Promise<void>;
11
- notifyNewComment(task: Task, comment: TaskComment, recipientsId: string[]): Promise<void>;
12
- }
@@ -1,173 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.TaskNotifierService = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const notifier_service_1 = require("../notifier.service");
15
- const common_2 = require("../../../common");
16
- let TaskNotifierService = class TaskNotifierService {
17
- parent;
18
- constructor(parent) {
19
- this.parent = parent;
20
- }
21
- async notifyTaskCompletion(task, recipientsId) {
22
- const metadata = {
23
- taskId: task.id,
24
- taskOwnerId: task.createdBy.id,
25
- taskResponsibleId: task.responsible[0].id,
26
- };
27
- const notificationDto = {
28
- title: "Task Completed",
29
- content: `The task ${task.name} has been completed`,
30
- recipientsId,
31
- entityId: task.id,
32
- channels: [common_2.NotificationChannel.APP],
33
- category: common_2.NotificationCategory.TASK,
34
- subCategory: common_2.NotificationSubcategory.TASK_COMPLETED,
35
- metadata,
36
- };
37
- await this.parent.sendNotification(notificationDto);
38
- }
39
- async notifyTaskOverdue(task, recipientsId) {
40
- const metadata = {
41
- taskId: task.id,
42
- taskOwnerId: task.createdBy.id,
43
- taskResponsibleId: task.responsible[0].id,
44
- };
45
- const notificationDto = {
46
- title: "Task Overdue",
47
- content: `La tarea [#${task.number}] - ${task.name} está atrasada`,
48
- recipientsId,
49
- entityId: task.id,
50
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
51
- category: common_2.NotificationCategory.TASK,
52
- subCategory: common_2.NotificationSubcategory.TASK_OVERDUE,
53
- metadata,
54
- };
55
- await this.parent.sendNotification(notificationDto);
56
- }
57
- async notifyTaskContinue(task, recipientsId) {
58
- const metadata = {
59
- taskId: task.id,
60
- taskOwnerId: task.createdBy.id,
61
- taskResponsibleId: task.responsible[0].id,
62
- };
63
- const notificationDto = {
64
- title: "Task Continue",
65
- content: `La tarea #${task.number} - ${task.name}, ha sido reanudada`,
66
- recipientsId,
67
- entityId: task.id,
68
- channels: [common_2.NotificationChannel.APP],
69
- category: common_2.NotificationCategory.TASK,
70
- subCategory: common_2.NotificationSubcategory.TASK_UPDATED,
71
- metadata,
72
- };
73
- await this.parent.sendNotification(notificationDto);
74
- }
75
- async notifyNewTask(task, recipientsId) {
76
- const fechaLimite = task.deadline ? `<br/>Fecha Limite:${new Date(task.deadline)}` : ``;
77
- const observadores = task.observers.length > 0 ? `<br/>Observadores: ${task.observers.map(observer => observer.username).join(", ")}` : ``;
78
- const responsible = task.responsible.length > 0 ? `<br/>Persona Responsable: ${task.responsible.map(responsible => responsible.username).join(", ")}` : ``;
79
- const participants = task.participants.length > 0 ? `<br/>Participantes: ${task.participants.map(participant => participant.username).join(", ")}` : ``;
80
- const content = `Nueva Tarea agregada: <a href="/tools/tasks/task/${task.id}?show=true" style="color:blue">[${task.name}]</a>${responsible}${observadores}${participants}${fechaLimite}`;
81
- const metadata = {
82
- taskId: task.id,
83
- taskOwnerId: task.createdBy.id,
84
- taskResponsibleId: task.responsible[0].id,
85
- };
86
- const notificationDto = {
87
- title: "New Task",
88
- content,
89
- recipientsId,
90
- entityId: task.id,
91
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
92
- category: common_2.NotificationCategory.TASK,
93
- subCategory: common_2.NotificationSubcategory.NEW_TASK,
94
- metadata,
95
- };
96
- await this.parent.sendNotification(notificationDto);
97
- }
98
- async notifyTaskUpdate(task, recipientsId, changedFields) {
99
- const metadata = {
100
- taskId: task.id,
101
- taskOwnerId: task.createdBy.id,
102
- taskResponsibleId: task.responsible[0].id,
103
- };
104
- const createNotificationDto = (content, recipients) => ({
105
- title: "Task Update",
106
- content,
107
- recipientsId: recipients,
108
- entityId: task.id,
109
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
110
- category: common_2.NotificationCategory.TASK,
111
- subCategory: common_2.NotificationSubcategory.TASK_UPDATED,
112
- metadata,
113
- });
114
- const taskLink = `<a href="/tools/tasks/task/${task.id}?show=true" style="color:blue">[${task.name}]</a>`;
115
- let content = `Tarea #${task.number} - ${taskLink}`;
116
- if (changedFields.length === 0) {
117
- content += " - ha sido actualizada";
118
- await this.parent.sendNotification(createNotificationDto(content, recipientsId));
119
- return;
120
- }
121
- content += " - se actualizó:";
122
- if (changedFields.includes("deadline")) {
123
- if (task.deadline) {
124
- const deadLine = new Date(task.deadline);
125
- content += `<br/>Fecha Limite cambiada: ${deadLine.getDate()}/${deadLine.getMonth() + 1}/${deadLine.getFullYear()}`;
126
- }
127
- else {
128
- content += `<br/>Fecha Limite cambiada: Ninguna`;
129
- }
130
- }
131
- if (changedFields.includes("responsible")) {
132
- content = `Se le asignó la tarea #${task.number} - ${taskLink}`;
133
- await this.parent.sendNotification(createNotificationDto(content, [task.responsible[0].id]));
134
- }
135
- else {
136
- if (changedFields.includes("name"))
137
- content += `<br/>Nombre: ${task.name}`;
138
- if (changedFields.includes("description"))
139
- content += `<br/>Descripción: ${task.description}`;
140
- if (changedFields.includes("status"))
141
- content += `<br/>Estado: ${task.status}`;
142
- await this.parent.sendNotification(createNotificationDto(content, recipientsId));
143
- }
144
- }
145
- async notifyNewComment(task, comment, recipientsId) {
146
- const commentText = comment.comment.slice(0, 20);
147
- const content = `${comment.createdBy.name} comentó en la tarea: <a href="/tools/tasks/task/${task.id}?show=true" style="color:#170f6b">[${task.name}]</a>. Texto del comentario: ${commentText}`;
148
- const metadata = {
149
- taskId: task.id,
150
- commentId: comment.id,
151
- taskOwnerId: task.createdBy.id,
152
- commentOwnerId: comment.createdBy.id,
153
- taskResponsibleId: task.responsible[0].id,
154
- };
155
- const notificationDto = {
156
- title: "New Comment",
157
- content,
158
- recipientsId,
159
- entityId: task.id,
160
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
161
- category: common_2.NotificationCategory.TASK,
162
- subCategory: common_2.NotificationSubcategory.TASK_NEW_COMMNET,
163
- metadata,
164
- };
165
- await this.parent.sendNotification(notificationDto);
166
- }
167
- };
168
- exports.TaskNotifierService = TaskNotifierService;
169
- exports.TaskNotifierService = TaskNotifierService = __decorate([
170
- (0, common_1.Injectable)(),
171
- __metadata("design:paramtypes", [notifier_service_1.EasyNotifierService])
172
- ], TaskNotifierService);
173
- //# sourceMappingURL=task.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"task.service.js","sourceRoot":"","sources":["../../../../src/modules/queue/subservices/task.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,0DAA0D;AAC1D,4CAA0H;AAInH,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IACD;IAA7B,YAA6B,MAA2B;QAA3B,WAAM,GAAN,MAAM,CAAqB;IAAG,CAAC;IAE5D,KAAK,CAAC,oBAAoB,CAAC,IAAU,EAAE,YAAsB;QAC3D,MAAM,QAAQ,GAAG;YACb,MAAM,EAAE,IAAI,CAAC,EAAE;YACf,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE;YAC9B,iBAAiB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE;SAC5C,CAAC;QACF,MAAM,eAAe,GAAwB;YACzC,KAAK,EAAE,gBAAgB;YACvB,OAAO,EAAE,YAAY,IAAI,CAAC,IAAI,qBAAqB;YACnD,YAAY;YACZ,QAAQ,EAAE,IAAI,CAAC,EAAE;YACjB,QAAQ,EAAE,CAAC,4BAAmB,CAAC,GAAG,CAAC;YACnC,QAAQ,EAAE,6B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