@futdevpro/nts-dynamo 1.14.8 → 1.14.9

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 (283) hide show
  1. package/build/_collections/global-settings.const.d.ts.map +1 -1
  2. package/build/_collections/global-settings.const.js +1 -0
  3. package/build/_collections/global-settings.const.js.map +1 -1
  4. package/build/_models/interfaces/global-settings.interface.d.ts +18 -2
  5. package/build/_models/interfaces/global-settings.interface.d.ts.map +1 -1
  6. package/build/_modules/assistant/_collections/ass-global-settings.const.d.ts +3 -0
  7. package/build/_modules/assistant/_collections/ass-global-settings.const.d.ts.map +1 -0
  8. package/build/_modules/assistant/_collections/ass-global-settings.const.js +15 -0
  9. package/build/_modules/assistant/_collections/ass-global-settings.const.js.map +1 -0
  10. package/build/_modules/assistant/_collections/ass.util.d.ts +16 -0
  11. package/build/_modules/assistant/_collections/ass.util.d.ts.map +1 -0
  12. package/build/_modules/assistant/_collections/ass.util.js +43 -0
  13. package/build/_modules/assistant/_collections/ass.util.js.map +1 -0
  14. package/build/_modules/assistant/_models/ass-global-settings.interface.d.ts +14 -0
  15. package/build/_modules/assistant/_models/ass-global-settings.interface.d.ts.map +1 -0
  16. package/build/_modules/assistant/_models/ass-global-settings.interface.js +3 -0
  17. package/build/_modules/assistant/_models/ass-global-settings.interface.js.map +1 -0
  18. package/build/_modules/assistant/_services/ass-io.control-service.d.ts +23 -0
  19. package/build/_modules/assistant/_services/ass-io.control-service.d.ts.map +1 -0
  20. package/build/_modules/assistant/_services/ass-io.control-service.js +59 -0
  21. package/build/_modules/assistant/_services/ass-io.control-service.js.map +1 -0
  22. package/build/_modules/assistant/_services/ass-main.control-service.d.ts +15 -0
  23. package/build/_modules/assistant/_services/ass-main.control-service.d.ts.map +1 -0
  24. package/build/_modules/assistant/_services/ass-main.control-service.js +12 -0
  25. package/build/_modules/assistant/_services/ass-main.control-service.js.map +1 -0
  26. package/build/_modules/assistant/_services/ass.service-base.d.ts +31 -0
  27. package/build/_modules/assistant/_services/ass.service-base.d.ts.map +1 -0
  28. package/build/_modules/assistant/_services/ass.service-base.js +56 -0
  29. package/build/_modules/assistant/_services/ass.service-base.js.map +1 -0
  30. package/build/_modules/assistant/index.d.ts +7 -0
  31. package/build/_modules/assistant/index.d.ts.map +1 -0
  32. package/build/_modules/assistant/index.js +19 -0
  33. package/build/_modules/assistant/index.js.map +1 -0
  34. package/build/_modules/bot/_collections/bot-default-commands.const.d.ts +3 -0
  35. package/build/_modules/bot/_collections/bot-default-commands.const.d.ts.map +1 -0
  36. package/build/_modules/bot/_collections/bot-default-commands.const.js +14 -0
  37. package/build/_modules/bot/_collections/bot-default-commands.const.js.map +1 -0
  38. package/build/_modules/bot/_collections/bot-global-settings.const.d.ts +3 -0
  39. package/build/_modules/bot/_collections/bot-global-settings.const.d.ts.map +1 -0
  40. package/build/_modules/bot/_collections/bot-global-settings.const.js +32 -0
  41. package/build/_modules/bot/_collections/bot-global-settings.const.js.map +1 -0
  42. package/build/_modules/bot/_collections/bot-operations.util.d.ts +21 -0
  43. package/build/_modules/bot/_collections/bot-operations.util.d.ts.map +1 -0
  44. package/build/_modules/bot/_collections/bot-operations.util.js +74 -0
  45. package/build/_modules/bot/_collections/bot-operations.util.js.map +1 -0
  46. package/build/_modules/bot/_enums/bot-provider.enum.d.ts +7 -0
  47. package/build/_modules/bot/_enums/bot-provider.enum.d.ts.map +1 -0
  48. package/build/_modules/bot/_enums/bot-provider.enum.js +11 -0
  49. package/build/_modules/bot/_enums/bot-provider.enum.js.map +1 -0
  50. package/build/_modules/bot/_models/bot-channel.interface.d.ts +8 -0
  51. package/build/_modules/bot/_models/bot-channel.interface.d.ts.map +1 -0
  52. package/build/_modules/bot/_models/bot-channel.interface.js +3 -0
  53. package/build/_modules/bot/_models/bot-channel.interface.js.map +1 -0
  54. package/build/_modules/bot/_models/bot-command.interface.d.ts +8 -0
  55. package/build/_modules/bot/_models/bot-command.interface.d.ts.map +1 -0
  56. package/build/_modules/bot/_models/bot-command.interface.js +3 -0
  57. package/build/_modules/bot/_models/bot-command.interface.js.map +1 -0
  58. package/build/_modules/bot/_models/bot-global-settings.interface.d.ts +79 -0
  59. package/build/_modules/bot/_models/bot-global-settings.interface.d.ts.map +1 -0
  60. package/build/_modules/bot/_models/bot-global-settings.interface.js +3 -0
  61. package/build/_modules/bot/_models/bot-global-settings.interface.js.map +1 -0
  62. package/build/_modules/bot/_models/bot-last-mention-date.interface.d.ts +7 -0
  63. package/build/_modules/bot/_models/bot-last-mention-date.interface.d.ts.map +1 -0
  64. package/build/_modules/bot/_models/bot-last-mention-date.interface.js +3 -0
  65. package/build/_modules/bot/_models/bot-last-mention-date.interface.js.map +1 -0
  66. package/build/_modules/bot/_models/bot-last-message-date.interface.d.ts +6 -0
  67. package/build/_modules/bot/_models/bot-last-message-date.interface.d.ts.map +1 -0
  68. package/build/_modules/bot/_models/bot-last-message-date.interface.js +3 -0
  69. package/build/_modules/bot/_models/bot-last-message-date.interface.js.map +1 -0
  70. package/build/_modules/bot/_models/bot-message.interface.d.ts +15 -0
  71. package/build/_modules/bot/_models/bot-message.interface.d.ts.map +1 -0
  72. package/build/_modules/bot/_models/bot-message.interface.js +3 -0
  73. package/build/_modules/bot/_models/bot-message.interface.js.map +1 -0
  74. package/build/_modules/bot/_models/bot-provider.interface.d.ts +60 -0
  75. package/build/_modules/bot/_models/bot-provider.interface.d.ts.map +1 -0
  76. package/build/_modules/bot/_models/bot-provider.interface.js +3 -0
  77. package/build/_modules/bot/_models/bot-provider.interface.js.map +1 -0
  78. package/build/_modules/bot/_models/bot-user.interface.d.ts +8 -0
  79. package/build/_modules/bot/_models/bot-user.interface.d.ts.map +1 -0
  80. package/build/_modules/bot/_models/bot-user.interface.js +3 -0
  81. package/build/_modules/bot/_models/bot-user.interface.js.map +1 -0
  82. package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts +11 -0
  83. package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts.map +1 -0
  84. package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js +13 -0
  85. package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js.map +1 -0
  86. package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts +5 -0
  87. package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts.map +1 -0
  88. package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js +19 -0
  89. package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js.map +1 -0
  90. package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts +8 -0
  91. package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts.map +1 -0
  92. package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js +3 -0
  93. package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js.map +1 -0
  94. package/build/_modules/bot/_modules/discord-bot/_services/dib-provider.service.d.ts +53 -0
  95. package/build/_modules/bot/_modules/discord-bot/_services/dib-provider.service.d.ts.map +1 -0
  96. package/build/_modules/bot/_modules/discord-bot/_services/dib-provider.service.js +369 -0
  97. package/build/_modules/bot/_modules/discord-bot/_services/dib-provider.service.js.map +1 -0
  98. package/build/_modules/bot/_modules/discord-bot/index.d.ts +5 -0
  99. package/build/_modules/bot/_modules/discord-bot/index.d.ts.map +1 -0
  100. package/build/_modules/bot/_modules/discord-bot/index.js +16 -0
  101. package/build/_modules/bot/_modules/discord-bot/index.js.map +1 -0
  102. package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts +11 -0
  103. package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts.map +1 -0
  104. package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js +13 -0
  105. package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js.map +1 -0
  106. package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts +7 -0
  107. package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts.map +1 -0
  108. package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.js +3 -0
  109. package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.js.map +1 -0
  110. package/build/_modules/bot/_modules/slack-bot/_services/slb-provider.service.d.ts +40 -0
  111. package/build/_modules/bot/_modules/slack-bot/_services/slb-provider.service.d.ts.map +1 -0
  112. package/build/_modules/bot/_modules/slack-bot/_services/slb-provider.service.js +116 -0
  113. package/build/_modules/bot/_modules/slack-bot/_services/slb-provider.service.js.map +1 -0
  114. package/build/_modules/bot/_modules/slack-bot/index.d.ts +4 -0
  115. package/build/_modules/bot/_modules/slack-bot/index.d.ts.map +1 -0
  116. package/build/_modules/bot/_modules/slack-bot/index.js +15 -0
  117. package/build/_modules/bot/_modules/slack-bot/index.js.map +1 -0
  118. package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts +11 -0
  119. package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts.map +1 -0
  120. package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js +13 -0
  121. package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js.map +1 -0
  122. package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts +7 -0
  123. package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts.map +1 -0
  124. package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.js +3 -0
  125. package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.js.map +1 -0
  126. package/build/_modules/bot/_modules/teams-bot/_services/teb-provider.service.d.ts +40 -0
  127. package/build/_modules/bot/_modules/teams-bot/_services/teb-provider.service.d.ts.map +1 -0
  128. package/build/_modules/bot/_modules/teams-bot/_services/teb-provider.service.js +116 -0
  129. package/build/_modules/bot/_modules/teams-bot/_services/teb-provider.service.js.map +1 -0
  130. package/build/_modules/bot/_modules/teams-bot/index.d.ts +4 -0
  131. package/build/_modules/bot/_modules/teams-bot/index.d.ts.map +1 -0
  132. package/build/_modules/bot/_modules/teams-bot/index.js +15 -0
  133. package/build/_modules/bot/_modules/teams-bot/index.js.map +1 -0
  134. package/build/_modules/bot/_services/bot-commands.control-service.d.ts +15 -0
  135. package/build/_modules/bot/_services/bot-commands.control-service.d.ts.map +1 -0
  136. package/build/_modules/bot/_services/bot-commands.control-service.js +72 -0
  137. package/build/_modules/bot/_services/bot-commands.control-service.js.map +1 -0
  138. package/build/_modules/bot/_services/bot-io.control-service.d.ts +24 -0
  139. package/build/_modules/bot/_services/bot-io.control-service.d.ts.map +1 -0
  140. package/build/_modules/bot/_services/bot-io.control-service.js +207 -0
  141. package/build/_modules/bot/_services/bot-io.control-service.js.map +1 -0
  142. package/build/_modules/bot/_services/bot-main.control-service.d.ts +42 -0
  143. package/build/_modules/bot/_services/bot-main.control-service.d.ts.map +1 -0
  144. package/build/_modules/bot/_services/bot-main.control-service.js +223 -0
  145. package/build/_modules/bot/_services/bot-main.control-service.js.map +1 -0
  146. package/build/_modules/bot/_services/bot-provider-factory.service.d.ts +5 -0
  147. package/build/_modules/bot/_services/bot-provider-factory.service.d.ts.map +1 -0
  148. package/build/_modules/bot/_services/bot-provider-factory.service.js +28 -0
  149. package/build/_modules/bot/_services/bot-provider-factory.service.js.map +1 -0
  150. package/build/_modules/bot/_services/bot-routines.control-service.d.ts +17 -0
  151. package/build/_modules/bot/_services/bot-routines.control-service.d.ts.map +1 -0
  152. package/build/_modules/bot/_services/bot-routines.control-service.js +40 -0
  153. package/build/_modules/bot/_services/bot-routines.control-service.js.map +1 -0
  154. package/build/_modules/bot/index.d.ts +21 -0
  155. package/build/_modules/bot/index.d.ts.map +1 -0
  156. package/build/_modules/bot/index.js +35 -0
  157. package/build/_modules/bot/index.js.map +1 -0
  158. package/build/_modules/defaults/_models/default-user.data-model.d.ts +20 -0
  159. package/build/_modules/defaults/_models/default-user.data-model.d.ts.map +1 -0
  160. package/build/_modules/defaults/_models/default-user.data-model.js +73 -0
  161. package/build/_modules/defaults/_models/default-user.data-model.js.map +1 -0
  162. package/build/_modules/defaults/_services/default-auth.service.d.ts +51 -0
  163. package/build/_modules/defaults/_services/default-auth.service.d.ts.map +1 -0
  164. package/build/_modules/defaults/_services/default-auth.service.js +159 -0
  165. package/build/_modules/defaults/_services/default-auth.service.js.map +1 -0
  166. package/build/_modules/defaults/_services/default-socket-events.service.d.ts +24 -0
  167. package/build/_modules/defaults/_services/default-socket-events.service.d.ts.map +1 -0
  168. package/build/_modules/defaults/_services/default-socket-events.service.js +61 -0
  169. package/build/_modules/defaults/_services/default-socket-events.service.js.map +1 -0
  170. package/build/_modules/defaults/_services/default-user.data-service.d.ts +25 -0
  171. package/build/_modules/defaults/_services/default-user.data-service.d.ts.map +1 -0
  172. package/build/_modules/defaults/_services/default-user.data-service.js +88 -0
  173. package/build/_modules/defaults/_services/default-user.data-service.js.map +1 -0
  174. package/build/_modules/defaults/index.d.ts +5 -0
  175. package/build/_modules/defaults/index.d.ts.map +1 -0
  176. package/build/_modules/defaults/index.js +16 -0
  177. package/build/_modules/defaults/index.js.map +1 -0
  178. package/build/_modules/messaging/_collections/msg-global-settings.const.d.ts +6 -0
  179. package/build/_modules/messaging/_collections/msg-global-settings.const.d.ts.map +1 -0
  180. package/build/_modules/messaging/_collections/msg-global-settings.const.js +27 -0
  181. package/build/_modules/messaging/_collections/msg-global-settings.const.js.map +1 -0
  182. package/build/_modules/messaging/_collections/msg.util.d.ts +25 -0
  183. package/build/_modules/messaging/_collections/msg.util.d.ts.map +1 -0
  184. package/build/_modules/messaging/_collections/msg.util.js +63 -0
  185. package/build/_modules/messaging/_collections/msg.util.js.map +1 -0
  186. package/build/_modules/messaging/_enums/msg-event-key.enum.d.ts +23 -0
  187. package/build/_modules/messaging/_enums/msg-event-key.enum.d.ts.map +1 -0
  188. package/build/_modules/messaging/_enums/msg-event-key.enum.js +32 -0
  189. package/build/_modules/messaging/_enums/msg-event-key.enum.js.map +1 -0
  190. package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts +38 -0
  191. package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts.map +1 -0
  192. package/build/_modules/messaging/_models/msg-global-settings.interface.js +3 -0
  193. package/build/_modules/messaging/_models/msg-global-settings.interface.js.map +1 -0
  194. package/build/_modules/messaging/_services/msg-conversation.data-service.d.ts +29 -0
  195. package/build/_modules/messaging/_services/msg-conversation.data-service.d.ts.map +1 -0
  196. package/build/_modules/messaging/_services/msg-conversation.data-service.js +110 -0
  197. package/build/_modules/messaging/_services/msg-conversation.data-service.js.map +1 -0
  198. package/build/_modules/messaging/_services/msg-events.service.d.ts +62 -0
  199. package/build/_modules/messaging/_services/msg-events.service.d.ts.map +1 -0
  200. package/build/_modules/messaging/_services/msg-events.service.js +204 -0
  201. package/build/_modules/messaging/_services/msg-events.service.js.map +1 -0
  202. package/build/_modules/messaging/_services/msg-integration.control-service.d.ts +26 -0
  203. package/build/_modules/messaging/_services/msg-integration.control-service.d.ts.map +1 -0
  204. package/build/_modules/messaging/_services/msg-integration.control-service.js +126 -0
  205. package/build/_modules/messaging/_services/msg-integration.control-service.js.map +1 -0
  206. package/build/_modules/messaging/_services/msg-main.control-service.d.ts +62 -0
  207. package/build/_modules/messaging/_services/msg-main.control-service.d.ts.map +1 -0
  208. package/build/_modules/messaging/_services/msg-main.control-service.js +408 -0
  209. package/build/_modules/messaging/_services/msg-main.control-service.js.map +1 -0
  210. package/build/_modules/messaging/_services/msg-message.data-service.d.ts +29 -0
  211. package/build/_modules/messaging/_services/msg-message.data-service.d.ts.map +1 -0
  212. package/build/_modules/messaging/_services/msg-message.data-service.js +104 -0
  213. package/build/_modules/messaging/_services/msg-message.data-service.js.map +1 -0
  214. package/build/_modules/messaging/get-messaging-routing-module.util.d.ts +8 -0
  215. package/build/_modules/messaging/get-messaging-routing-module.util.d.ts.map +1 -0
  216. package/build/_modules/messaging/get-messaging-routing-module.util.js +21 -0
  217. package/build/_modules/messaging/get-messaging-routing-module.util.js.map +1 -0
  218. package/build/_modules/messaging/index.d.ts +13 -0
  219. package/build/_modules/messaging/index.d.ts.map +1 -0
  220. package/build/_modules/messaging/index.js +30 -0
  221. package/build/_modules/messaging/index.js.map +1 -0
  222. package/build/_modules/messaging/messaging.controller.d.ts +13 -0
  223. package/build/_modules/messaging/messaging.controller.d.ts.map +1 -0
  224. package/build/_modules/messaging/messaging.controller.js +257 -0
  225. package/build/_modules/messaging/messaging.controller.js.map +1 -0
  226. package/package.json +71 -3
  227. package/src/_collections/global-settings.const.ts +2 -0
  228. package/src/_models/interfaces/global-settings.interface.ts +20 -2
  229. package/src/_modules/assistant/_collections/ass-global-settings.const.ts +13 -0
  230. package/src/_modules/assistant/_collections/ass.util.ts +50 -0
  231. package/src/_modules/assistant/_models/ass-global-settings.interface.ts +15 -0
  232. package/src/_modules/assistant/_services/ass-io.control-service.ts +100 -0
  233. package/src/_modules/assistant/_services/ass-main.control-service.ts +38 -0
  234. package/src/_modules/assistant/_services/ass.service-base.ts +92 -0
  235. package/src/_modules/assistant/index.ts +19 -0
  236. package/src/_modules/bot/_collections/bot-default-commands.const.ts +12 -0
  237. package/src/_modules/bot/_collections/bot-global-settings.const.ts +39 -0
  238. package/src/_modules/bot/_collections/bot-operations.util.ts +149 -0
  239. package/src/_modules/bot/_enums/bot-provider.enum.ts +6 -0
  240. package/src/_modules/bot/_models/bot-channel.interface.ts +7 -0
  241. package/src/_modules/bot/_models/bot-command.interface.ts +8 -0
  242. package/src/_modules/bot/_models/bot-global-settings.interface.ts +87 -0
  243. package/src/_modules/bot/_models/bot-last-mention-date.interface.ts +6 -0
  244. package/src/_modules/bot/_models/bot-last-message-date.interface.ts +5 -0
  245. package/src/_modules/bot/_models/bot-message.interface.ts +14 -0
  246. package/src/_modules/bot/_models/bot-provider.interface.ts +80 -0
  247. package/src/_modules/bot/_models/bot-user.interface.ts +7 -0
  248. package/src/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.ts +18 -0
  249. package/src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts +20 -0
  250. package/src/_modules/bot/_modules/discord-bot/_models/dib-platform.types.ts +9 -0
  251. package/src/_modules/bot/_modules/discord-bot/_services/dib-provider.service.ts +462 -0
  252. package/src/_modules/bot/_modules/discord-bot/index.ts +15 -0
  253. package/src/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.ts +18 -0
  254. package/src/_modules/bot/_modules/slack-bot/_models/slb-platform.types.ts +9 -0
  255. package/src/_modules/bot/_modules/slack-bot/_services/slb-provider.service.ts +152 -0
  256. package/src/_modules/bot/_modules/slack-bot/index.ts +14 -0
  257. package/src/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.ts +18 -0
  258. package/src/_modules/bot/_modules/teams-bot/_models/teb-platform.types.ts +9 -0
  259. package/src/_modules/bot/_modules/teams-bot/_services/teb-provider.service.ts +152 -0
  260. package/src/_modules/bot/_modules/teams-bot/index.ts +14 -0
  261. package/src/_modules/bot/_services/bot-commands.control-service.ts +126 -0
  262. package/src/_modules/bot/_services/bot-io.control-service.ts +325 -0
  263. package/src/_modules/bot/_services/bot-main.control-service.ts +344 -0
  264. package/src/_modules/bot/_services/bot-provider-factory.service.ts +30 -0
  265. package/src/_modules/bot/_services/bot-routines.control-service.ts +83 -0
  266. package/src/_modules/bot/index.ts +36 -0
  267. package/src/_modules/defaults/_models/default-user.data-model.ts +72 -0
  268. package/src/_modules/defaults/_services/default-auth.service.ts +177 -0
  269. package/src/_modules/defaults/_services/default-socket-events.service.ts +61 -0
  270. package/src/_modules/defaults/_services/default-user.data-service.ts +98 -0
  271. package/src/_modules/defaults/index.ts +14 -0
  272. package/src/_modules/messaging/_collections/msg-global-settings.const.ts +27 -0
  273. package/src/_modules/messaging/_collections/msg.util.ts +83 -0
  274. package/src/_modules/messaging/_enums/msg-event-key.enum.ts +31 -0
  275. package/src/_modules/messaging/_models/msg-global-settings.interface.ts +49 -0
  276. package/src/_modules/messaging/_services/msg-conversation.data-service.ts +146 -0
  277. package/src/_modules/messaging/_services/msg-events.service.ts +267 -0
  278. package/src/_modules/messaging/_services/msg-integration.control-service.ts +179 -0
  279. package/src/_modules/messaging/_services/msg-main.control-service.ts +548 -0
  280. package/src/_modules/messaging/_services/msg-message.data-service.ts +129 -0
  281. package/src/_modules/messaging/get-messaging-routing-module.util.ts +26 -0
  282. package/src/_modules/messaging/index.ts +33 -0
  283. package/src/_modules/messaging/messaging.controller.ts +370 -0
@@ -0,0 +1,548 @@
1
+ import { DyNTS_SingletonService } from '../../../_services/base/singleton.service';
2
+ import { DyFM_Error, DyFM_Log } from '@futdevpro/fsm-dynamo';
3
+ import {
4
+ DyFM_Msg_Message,
5
+ DyFM_Msg_Conversation,
6
+ DyFM_Msg_Status,
7
+ DyFM_Msg_Reaction,
8
+ DyFM_Msg_Participant,
9
+ DyFM_Msg_ParticipantRole,
10
+ DyFM_Msg_Type,
11
+ DyFM_Msg_ConversationType,
12
+ } from '@futdevpro/fsm-dynamo/messaging';
13
+
14
+ import { DyNTS_global_settings } from '../../../_collections/global-settings.const';
15
+ import { DyNTS_Msg_Message_DataService } from './msg-message.data-service';
16
+ import { DyNTS_Msg_Conversation_DataService } from './msg-conversation.data-service';
17
+ import { DyNTS_Msg_Events_Service } from './msg-events.service';
18
+
19
+ /**
20
+ * Main Messaging Control Service
21
+ * Handles all business logic for messaging operations
22
+ */
23
+ export class DyNTS_Msg_Main_ControlService extends DyNTS_SingletonService {
24
+
25
+ static getInstance(): DyNTS_Msg_Main_ControlService {
26
+ return DyNTS_Msg_Main_ControlService.getSingletonInstance();
27
+ }
28
+
29
+ private eventsService = DyNTS_Msg_Events_Service.getInstance();
30
+
31
+ /**
32
+ * Send a message
33
+ */
34
+ async sendMessage(
35
+ conversationId: string,
36
+ messageData: Partial<DyFM_Msg_Message>,
37
+ senderId: string,
38
+ issuer: string
39
+ ): Promise<DyFM_Msg_Message> {
40
+ try {
41
+ // Create message
42
+ const message = new DyFM_Msg_Message({
43
+ conversationId,
44
+ senderId,
45
+ content: messageData.content || '',
46
+ type: messageData.type || DyFM_Msg_Type.text,
47
+ status: DyFM_Msg_Status.sent,
48
+ sentAt: new Date(),
49
+ __createdBy: issuer,
50
+ __lastModifiedBy: issuer,
51
+ ...messageData,
52
+ });
53
+
54
+ // Save message
55
+ const messageService = new DyNTS_Msg_Message_DataService({
56
+ message,
57
+ issuer,
58
+ });
59
+ await messageService.saveData(messageService.data, false, false);
60
+
61
+ // Update conversation last message
62
+ const conversationService = new DyNTS_Msg_Conversation_DataService({
63
+ issuer,
64
+ });
65
+ await conversationService.updateLastMessage(
66
+ conversationId,
67
+ messageService.data._id!,
68
+ message.content.substring(0, 100)
69
+ );
70
+
71
+ // Emit event
72
+ this.eventsService.emitMessageSent(messageService.data, conversationId);
73
+
74
+ return messageService.data;
75
+ } catch (error) {
76
+ throw new DyFM_Error({
77
+ ...this.getDefaultErrorSettings('sendMessage', error, issuer),
78
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-SM`,
79
+ userMessage: 'Failed to send message.',
80
+ });
81
+ }
82
+ }
83
+
84
+ /**
85
+ * Edit a message
86
+ */
87
+ async editMessage(
88
+ messageId: string,
89
+ content: string,
90
+ userId: string,
91
+ issuer: string
92
+ ): Promise<DyFM_Msg_Message> {
93
+ try {
94
+ const messageService = new DyNTS_Msg_Message_DataService({
95
+ issuer,
96
+ });
97
+
98
+ const message = await messageService.getDataById(messageId);
99
+
100
+ if (!message) {
101
+ throw new Error('Message not found');
102
+ }
103
+
104
+ if (message.senderId !== userId) {
105
+ throw new Error('Unauthorized: Only the message sender can edit it');
106
+ }
107
+
108
+ message.content = content;
109
+ message.editedAt = new Date();
110
+ message.status = DyFM_Msg_Status.sent; // Keep as sent since edited is not a status
111
+ message.__lastModifiedBy = issuer;
112
+
113
+ await messageService.saveData(message, false, false);
114
+
115
+ // Emit event
116
+ this.eventsService.emitMessageUpdated(messageService.data, message.conversationId);
117
+
118
+ return messageService.data;
119
+ } catch (error) {
120
+ throw new DyFM_Error({
121
+ ...this.getDefaultErrorSettings('editMessage', error, issuer),
122
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-EM`,
123
+ userMessage: 'Failed to edit message.',
124
+ });
125
+ }
126
+ }
127
+
128
+ /**
129
+ * Delete a message
130
+ */
131
+ async deleteMessage(
132
+ messageId: string,
133
+ userId: string,
134
+ issuer: string
135
+ ): Promise<void> {
136
+ try {
137
+ const messageService = new DyNTS_Msg_Message_DataService({
138
+ issuer,
139
+ });
140
+
141
+ const message = await messageService.getDataById(messageId);
142
+
143
+ if (!message) {
144
+ throw new Error('Message not found');
145
+ }
146
+
147
+ if (message.senderId !== userId) {
148
+ throw new Error('Unauthorized: Only the message sender can delete it');
149
+ }
150
+
151
+ const conversationId = message.conversationId;
152
+ await messageService.deleteData(messageId);
153
+
154
+ // Emit event
155
+ this.eventsService.emitMessageDeleted(messageId, conversationId);
156
+ } catch (error) {
157
+ throw new DyFM_Error({
158
+ ...this.getDefaultErrorSettings('deleteMessage', error, issuer),
159
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-DM`,
160
+ userMessage: 'Failed to delete message.',
161
+ });
162
+ }
163
+ }
164
+
165
+ /**
166
+ * Mark messages as read
167
+ */
168
+ async markMessagesAsRead(
169
+ messageIds: string[],
170
+ userId: string,
171
+ issuer: string
172
+ ): Promise<{ success: boolean; count: number }> {
173
+ try {
174
+ const messageService = new DyNTS_Msg_Message_DataService({
175
+ issuer,
176
+ });
177
+
178
+ for (const messageId of messageIds) {
179
+ await messageService.markAsRead(messageId, userId);
180
+
181
+ // Get message to get conversationId for event
182
+ const message = await messageService.getDataById(messageId);
183
+ this.eventsService.emitMessageRead(messageId, userId, message.conversationId);
184
+ }
185
+
186
+ return { success: true, count: messageIds.length };
187
+ } catch (error) {
188
+ throw new DyFM_Error({
189
+ ...this.getDefaultErrorSettings('markMessagesAsRead', error, issuer),
190
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-MAR`,
191
+ userMessage: 'Failed to mark messages as read.',
192
+ });
193
+ }
194
+ }
195
+
196
+ /**
197
+ * Add reaction to message
198
+ */
199
+ async addReaction(
200
+ messageId: string,
201
+ emoji: string,
202
+ userId: string,
203
+ issuer: string
204
+ ): Promise<DyFM_Msg_Message> {
205
+ try {
206
+ const messageService = new DyNTS_Msg_Message_DataService({
207
+ issuer,
208
+ });
209
+
210
+ const message = await messageService.getDataById(messageId);
211
+
212
+ if (!message) {
213
+ throw new Error('Message not found');
214
+ }
215
+
216
+ if (!message.reactions) {
217
+ message.reactions = [];
218
+ }
219
+
220
+ // Check if user already reacted with this emoji
221
+ const existingReaction = message.reactions.find((r: any) => r.emoji === emoji && r.userId === userId);
222
+
223
+ if (!existingReaction) {
224
+ const newReaction = {
225
+ emoji,
226
+ userId,
227
+ reactedAt: new Date(),
228
+ } as any;
229
+ message.reactions.push(newReaction);
230
+
231
+ await messageService.saveData(message, false, false);
232
+
233
+ // Emit event
234
+ this.eventsService.emitReactionAdded(messageId, newReaction);
235
+ }
236
+
237
+ return messageService.data;
238
+ } catch (error) {
239
+ throw new DyFM_Error({
240
+ ...this.getDefaultErrorSettings('addReaction', error, issuer),
241
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-AR`,
242
+ userMessage: 'Failed to add reaction.',
243
+ });
244
+ }
245
+ }
246
+
247
+ /**
248
+ * Remove reaction from message
249
+ */
250
+ async removeReaction(
251
+ messageId: string,
252
+ emoji: string,
253
+ userId: string,
254
+ issuer: string
255
+ ): Promise<DyFM_Msg_Message> {
256
+ try {
257
+ const messageService = new DyNTS_Msg_Message_DataService({
258
+ issuer,
259
+ });
260
+
261
+ const message = await messageService.getDataById(messageId);
262
+
263
+ if (!message) {
264
+ throw new Error('Message not found');
265
+ }
266
+
267
+ if (!message.reactions) {
268
+ message.reactions = [];
269
+ }
270
+
271
+ // Remove user's reaction with this emoji
272
+ const initialLength = message.reactions.length;
273
+ message.reactions = message.reactions.filter((r: any) => !(r.emoji === emoji && r.userId === userId));
274
+
275
+ if (message.reactions.length < initialLength) {
276
+ await messageService.saveData(message, false, false);
277
+
278
+ // Emit event
279
+ this.eventsService.emitReactionRemoved(messageId, userId, emoji);
280
+ }
281
+
282
+ return messageService.data;
283
+ } catch (error) {
284
+ throw new DyFM_Error({
285
+ ...this.getDefaultErrorSettings('removeReaction', error, issuer),
286
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-RR`,
287
+ userMessage: 'Failed to remove reaction.',
288
+ });
289
+ }
290
+ }
291
+
292
+ /**
293
+ * Create conversation
294
+ */
295
+ async createConversation(
296
+ conversationData: Partial<DyFM_Msg_Conversation>,
297
+ creatorId: string,
298
+ issuer: string
299
+ ): Promise<DyFM_Msg_Conversation> {
300
+ try {
301
+ // Ensure creator is in participants
302
+ if (!conversationData.participants?.some(p => p.userId === creatorId)) {
303
+ if (!conversationData.participants) {
304
+ conversationData.participants = [];
305
+ }
306
+ conversationData.participants.push({
307
+ userId: creatorId,
308
+ role: DyFM_Msg_ParticipantRole.owner,
309
+ joinedAt: new Date(),
310
+ });
311
+ }
312
+
313
+ const conversation = new DyFM_Msg_Conversation({
314
+ type: conversationData.type || DyFM_Msg_ConversationType.direct,
315
+ participants: conversationData.participants || [],
316
+ __createdBy: issuer,
317
+ __lastModifiedBy: issuer,
318
+ ...conversationData,
319
+ });
320
+
321
+ const conversationService = new DyNTS_Msg_Conversation_DataService({
322
+ conversation,
323
+ issuer,
324
+ });
325
+
326
+ await conversationService.saveData(conversationService.data, false, false);
327
+
328
+ // Emit event
329
+ const participantIds = conversationService.data.participants?.map(p => p.userId) || [];
330
+ this.eventsService.emitConversationCreated(conversationService.data, participantIds);
331
+
332
+ return conversationService.data;
333
+ } catch (error) {
334
+ throw new DyFM_Error({
335
+ ...this.getDefaultErrorSettings('createConversation', error, issuer),
336
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-CC`,
337
+ userMessage: 'Failed to create conversation.',
338
+ });
339
+ }
340
+ }
341
+
342
+ /**
343
+ * Update conversation
344
+ */
345
+ async updateConversation(
346
+ conversationId: string,
347
+ updateData: Partial<DyFM_Msg_Conversation>,
348
+ userId: string,
349
+ issuer: string
350
+ ): Promise<DyFM_Msg_Conversation> {
351
+ try {
352
+ const conversationService = new DyNTS_Msg_Conversation_DataService({
353
+ issuer,
354
+ });
355
+
356
+ const conversation = await conversationService.getDataById(conversationId);
357
+
358
+ if (!conversation) {
359
+ throw new Error('Conversation not found');
360
+ }
361
+
362
+ // Check if user is participant
363
+ const isParticipant = conversation.participants?.some(p => p.userId === userId);
364
+ if (!isParticipant) {
365
+ throw new Error('Unauthorized: User is not a participant in this conversation');
366
+ }
367
+
368
+ Object.assign(conversation, updateData);
369
+ conversation.__lastModifiedBy = issuer;
370
+
371
+ await conversationService.saveData(conversation, false, false);
372
+
373
+ // Emit event
374
+ this.eventsService.emitConversationUpdated(conversationService.data);
375
+
376
+ return conversationService.data;
377
+ } catch (error) {
378
+ throw new DyFM_Error({
379
+ ...this.getDefaultErrorSettings('updateConversation', error, issuer),
380
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-UC`,
381
+ userMessage: 'Failed to update conversation.',
382
+ });
383
+ }
384
+ }
385
+
386
+ /**
387
+ * Delete conversation
388
+ */
389
+ async deleteConversation(
390
+ conversationId: string,
391
+ userId: string,
392
+ issuer: string
393
+ ): Promise<void> {
394
+ try {
395
+ const conversationService = new DyNTS_Msg_Conversation_DataService({
396
+ issuer,
397
+ });
398
+
399
+ const conversation = await conversationService.getDataById(conversationId);
400
+
401
+ if (!conversation) {
402
+ throw new Error('Conversation not found');
403
+ }
404
+
405
+ // Check if user is owner or admin
406
+ const isOwnerOrAdmin = conversation.participants?.some(p =>
407
+ p.userId === userId && (p.role === DyFM_Msg_ParticipantRole.owner || p.role === DyFM_Msg_ParticipantRole.admin)
408
+ );
409
+ if (!isOwnerOrAdmin) {
410
+ throw new Error('Unauthorized: Only owners or admins can delete conversations');
411
+ }
412
+
413
+ await conversationService.deleteData(conversationId);
414
+
415
+ // Emit event
416
+ this.eventsService.emitConversationDeleted(conversationId);
417
+ } catch (error) {
418
+ throw new DyFM_Error({
419
+ ...this.getDefaultErrorSettings('deleteConversation', error, issuer),
420
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-DC`,
421
+ userMessage: 'Failed to delete conversation.',
422
+ });
423
+ }
424
+ }
425
+
426
+ /**
427
+ * Add participant to conversation
428
+ */
429
+ async addParticipant(
430
+ conversationId: string,
431
+ newUserId: string,
432
+ role: DyFM_Msg_ParticipantRole = DyFM_Msg_ParticipantRole.member,
433
+ requesterId: string,
434
+ issuer: string
435
+ ): Promise<void> {
436
+ try {
437
+ const conversationService = new DyNTS_Msg_Conversation_DataService({
438
+ issuer,
439
+ });
440
+
441
+ const conversation = await conversationService.getDataById(conversationId);
442
+
443
+ if (!conversation) {
444
+ throw new Error('Conversation not found');
445
+ }
446
+
447
+ // Check if requester is owner or admin
448
+ const isOwnerOrAdmin = conversation.participants?.some(p =>
449
+ p.userId === requesterId && (p.role === DyFM_Msg_ParticipantRole.owner || p.role === DyFM_Msg_ParticipantRole.admin)
450
+ );
451
+ if (!isOwnerOrAdmin) {
452
+ throw new Error('Unauthorized: Only owners or admins can add participants');
453
+ }
454
+
455
+ const newParticipant: DyFM_Msg_Participant = {
456
+ userId: newUserId,
457
+ role,
458
+ joinedAt: new Date(),
459
+ };
460
+
461
+ await conversationService.addParticipant(conversationId, newParticipant);
462
+
463
+ // Emit event
464
+ this.eventsService.emitParticipantAdded(conversationId, newUserId);
465
+ } catch (error) {
466
+ throw new DyFM_Error({
467
+ ...this.getDefaultErrorSettings('addParticipant', error, issuer),
468
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-AP`,
469
+ userMessage: 'Failed to add participant.',
470
+ });
471
+ }
472
+ }
473
+
474
+ /**
475
+ * Remove participant from conversation
476
+ */
477
+ async removeParticipant(
478
+ conversationId: string,
479
+ userIdToRemove: string,
480
+ requesterId: string,
481
+ issuer: string
482
+ ): Promise<void> {
483
+ try {
484
+ const conversationService = new DyNTS_Msg_Conversation_DataService({
485
+ issuer,
486
+ });
487
+
488
+ const conversation = await conversationService.getDataById(conversationId);
489
+
490
+ if (!conversation) {
491
+ throw new Error('Conversation not found');
492
+ }
493
+
494
+ // Check if requester is owner or admin, or removing themselves
495
+ const isOwnerOrAdmin = conversation.participants?.some(p =>
496
+ p.userId === requesterId && (p.role === DyFM_Msg_ParticipantRole.owner || p.role === DyFM_Msg_ParticipantRole.admin)
497
+ );
498
+ const isSelfRemoval = requesterId === userIdToRemove;
499
+
500
+ if (!isOwnerOrAdmin && !isSelfRemoval) {
501
+ throw new Error('Unauthorized: Only owners, admins, or the user themselves can remove participants');
502
+ }
503
+
504
+ await conversationService.removeParticipant(conversationId, userIdToRemove);
505
+
506
+ // Emit event
507
+ this.eventsService.emitParticipantRemoved(conversationId, userIdToRemove);
508
+ } catch (error) {
509
+ throw new DyFM_Error({
510
+ ...this.getDefaultErrorSettings('removeParticipant', error, issuer),
511
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-RP`,
512
+ userMessage: 'Failed to remove participant.',
513
+ });
514
+ }
515
+ }
516
+
517
+ /**
518
+ * Get agent process steps for a message
519
+ */
520
+ async getAgentProcessSteps(
521
+ messageId: string,
522
+ issuer: string
523
+ ): Promise<any[]> {
524
+ try {
525
+ const messageService = new DyNTS_Msg_Message_DataService({
526
+ issuer,
527
+ });
528
+
529
+ const message = await messageService.getDataById(messageId);
530
+
531
+ if (!message) {
532
+ throw new Error('Message not found');
533
+ }
534
+
535
+ if (!message.agentProcessSteps) {
536
+ throw new Error('No agent process steps found for this message');
537
+ }
538
+
539
+ return message.agentProcessSteps;
540
+ } catch (error) {
541
+ throw new DyFM_Error({
542
+ ...this.getDefaultErrorSettings('getAgentProcessSteps', error, issuer),
543
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-GAPS`,
544
+ userMessage: 'Failed to get agent process steps.',
545
+ });
546
+ }
547
+ }
548
+ }
@@ -0,0 +1,129 @@
1
+ import { Request } from 'express';
2
+ import { DyFM_Error, DyFM_DBFilter } from '@futdevpro/fsm-dynamo';
3
+ import {
4
+ DyFM_Msg_Message,
5
+ DyFM_msgMessage_dataParams,
6
+ DyFM_Msg_Status,
7
+ } from '@futdevpro/fsm-dynamo/messaging';
8
+
9
+ import { DyNTS_DataService } from '../../../_services/base/data.service';
10
+ import { DyNTS_global_settings } from '../../../_collections/global-settings.const';
11
+
12
+ /**
13
+ * Message Data Service
14
+ * Handles CRUD operations for messages
15
+ */
16
+ export class DyNTS_Msg_Message_DataService extends DyNTS_DataService<DyFM_Msg_Message> {
17
+
18
+ constructor(
19
+ set: {
20
+ message?: DyFM_Msg_Message;
21
+ issuer: string;
22
+ }
23
+ ) {
24
+ super(
25
+ new DyFM_Msg_Message(set?.message),
26
+ DyFM_msgMessage_dataParams,
27
+ set.issuer
28
+ );
29
+ }
30
+
31
+ /**
32
+ * Get messages for a conversation
33
+ */
34
+ async getConversationMessages(
35
+ conversationId: string,
36
+ limit?: number,
37
+ skip?: number
38
+ ): Promise<DyFM_Msg_Message[]> {
39
+ try {
40
+ const maxLimit = DyNTS_global_settings.messaging_settings?.maxMessagesPerLoad || 50;
41
+ const actualLimit = limit && limit < maxLimit ? limit : maxLimit;
42
+
43
+ await this.dataDBService
44
+ .find({ conversationId, __deleted: { $exists: false } } as DyFM_DBFilter<DyFM_Msg_Message>)
45
+ .then((res: DyFM_Msg_Message[]) => {
46
+ this.dataList = res
47
+ .sort((a, b) => (b.sentAt?.getTime() || 0) - (a.sentAt?.getTime() || 0))
48
+ .slice(skip || 0, (skip || 0) + actualLimit);
49
+ });
50
+
51
+ return this.dataList;
52
+ } catch (error) {
53
+ throw new DyFM_Error({
54
+ ...this.getDefaultErrorSettings('getConversationMessages', error),
55
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-GCM`,
56
+ userMessage: 'Failed to retrieve conversation messages.',
57
+ });
58
+ }
59
+ }
60
+
61
+ /**
62
+ * Mark message as delivered
63
+ */
64
+ async markAsDelivered(messageId: string): Promise<void> {
65
+ try {
66
+ const message = await this.getDataById(messageId);
67
+
68
+ if (!message) {
69
+ throw new Error('Message not found');
70
+ }
71
+
72
+ message.status = DyFM_Msg_Status.delivered;
73
+ message.deliveredAt = new Date();
74
+
75
+ await this.saveData(message);
76
+ } catch (error) {
77
+ throw new DyFM_Error({
78
+ ...this.getDefaultErrorSettings('markAsDelivered', error),
79
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-MAD`,
80
+ userMessage: 'Failed to mark message as delivered.',
81
+ });
82
+ }
83
+ }
84
+
85
+ /**
86
+ * Mark message as read
87
+ */
88
+ async markAsRead(messageId: string, userId: string): Promise<void> {
89
+ try {
90
+ const message = await this.getDataById(messageId);
91
+
92
+ if (!message) {
93
+ throw new Error('Message not found');
94
+ }
95
+
96
+ message.status = DyFM_Msg_Status.read;
97
+ message.readAt = new Date();
98
+
99
+ await this.saveData(message);
100
+ } catch (error) {
101
+ throw new DyFM_Error({
102
+ ...this.getDefaultErrorSettings('markAsRead', error),
103
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-MAR`,
104
+ userMessage: 'Failed to mark message as read.',
105
+ });
106
+ }
107
+ }
108
+
109
+ /**
110
+ * Get thread messages
111
+ */
112
+ async getThreadMessages(threadId: string): Promise<DyFM_Msg_Message[]> {
113
+ try {
114
+ await this.dataDBService
115
+ .find({ parentMessageId: threadId, __deleted: { $exists: false } } as DyFM_DBFilter<DyFM_Msg_Message>)
116
+ .then((res: DyFM_Msg_Message[]) => {
117
+ this.dataList = res.sort((a, b) => (a.sentAt?.getTime() || 0) - (b.sentAt?.getTime() || 0));
118
+ });
119
+
120
+ return this.dataList;
121
+ } catch (error) {
122
+ throw new DyFM_Error({
123
+ ...this.getDefaultErrorSettings('getThreadMessages', error),
124
+ errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-GTM`,
125
+ userMessage: 'Failed to retrieve thread messages.',
126
+ });
127
+ }
128
+ }
129
+ }
@@ -0,0 +1,26 @@
1
+ import { DyFM_msgModule_settings } from '@futdevpro/fsm-dynamo/messaging';
2
+ import { DyNTS_RouteSecurity } from '../../_enums/route-security.enum';
3
+ import {
4
+ DyNTS_RoutingModule_Settings
5
+ } from '../../_models/interfaces/routing-module-settings.interface';
6
+ import { DyNTS_RoutingModule } from '../../_services/route/routing-module.service';
7
+ import { DyNTS_Messaging_Controller } from './messaging.controller';
8
+
9
+ /**
10
+ * Get messaging routing module
11
+ * Creates and configures the messaging module routes
12
+ */
13
+ export function DyNTS_getMessagingRoutingModule(
14
+ securityOverride?: DyNTS_RouteSecurity
15
+ ): DyNTS_RoutingModule {
16
+ const set: DyNTS_RoutingModule_Settings = {
17
+ route: DyFM_msgModule_settings.mainRoute,
18
+ controllers: [DyNTS_Messaging_Controller.getInstance()],
19
+ };
20
+
21
+ if (securityOverride) {
22
+ set.securityOverride = securityOverride;
23
+ }
24
+
25
+ return new DyNTS_RoutingModule(set);
26
+ }