hgs-twilio-class-lib 1.1.71 → 1.1.72

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 (480) hide show
  1. package/README.md +5 -5
  2. package/package.json +56 -56
  3. package/lib/aws/abstract/ServiceObjectStore.d.ts +0 -9
  4. package/lib/aws/abstract/ServiceObjectStore.js +0 -10
  5. package/lib/aws/abstract/ServiceOpenRequest.d.ts +0 -7
  6. package/lib/aws/abstract/ServiceOpenRequest.js +0 -10
  7. package/lib/aws/abstract/ServiceRequest.d.ts +0 -3
  8. package/lib/aws/abstract/ServiceRequest.js +0 -7
  9. package/lib/aws/abstract/ServiceResource.d.ts +0 -20
  10. package/lib/aws/abstract/ServiceResource.js +0 -31
  11. package/lib/aws/abstract/ServiceResourceFactory.d.ts +0 -13
  12. package/lib/aws/abstract/ServiceResourceFactory.js +0 -14
  13. package/lib/aws/abstract/ServiceTransaction.d.ts +0 -6
  14. package/lib/aws/abstract/ServiceTransaction.js +0 -11
  15. package/lib/aws/impl/AWSAPIConfig.d.ts +0 -14
  16. package/lib/aws/impl/AWSAPIConfig.js +0 -38
  17. package/lib/aws/impl/AWSClient.d.ts +0 -5
  18. package/lib/aws/impl/AWSClient.js +0 -21
  19. package/lib/aws/impl/AWSConnectAPIConfig.d.ts +0 -17
  20. package/lib/aws/impl/AWSConnectAPIConfig.js +0 -38
  21. package/lib/aws/impl/DynamoDB/DynamoOpenRequest.d.ts +0 -18
  22. package/lib/aws/impl/DynamoDB/DynamoOpenRequest.js +0 -24
  23. package/lib/aws/impl/DynamoDB/DynamoRequest.d.ts +0 -16
  24. package/lib/aws/impl/DynamoDB/DynamoRequest.js +0 -21
  25. package/lib/aws/impl/DynamoDB/DynamoResourse.d.ts +0 -29
  26. package/lib/aws/impl/DynamoDB/DynamoResourse.js +0 -45
  27. package/lib/aws/impl/DynamoDB/DynamoServiceFactory.d.ts +0 -16
  28. package/lib/aws/impl/DynamoDB/DynamoServiceFactory.js +0 -63
  29. package/lib/aws/impl/DynamoDB/DynamoTable.d.ts +0 -26
  30. package/lib/aws/impl/DynamoDB/DynamoTable.js +0 -126
  31. package/lib/aws/impl/DynamoDB/DynamoTransaction.d.ts +0 -21
  32. package/lib/aws/impl/DynamoDB/DynamoTransaction.js +0 -37
  33. package/lib/aws/impl/HoopServices/HoopService.d.ts +0 -28
  34. package/lib/aws/impl/HoopServices/HoopService.js +0 -124
  35. package/lib/aws/impl/HoopServices/HoopServiceFactory.d.ts +0 -17
  36. package/lib/aws/impl/HoopServices/HoopServiceFactory.js +0 -53
  37. package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.d.ts +0 -18
  38. package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.js +0 -24
  39. package/lib/aws/impl/HoopServices/HoopServiceResource.d.ts +0 -29
  40. package/lib/aws/impl/HoopServices/HoopServiceResource.js +0 -46
  41. package/lib/aws/impl/HoopServices/HoopServiceTransaction.d.ts +0 -22
  42. package/lib/aws/impl/HoopServices/HoopServiceTransaction.js +0 -37
  43. package/lib/aws/interface/IDirection.d.ts +0 -2
  44. package/lib/aws/interface/IDirection.js +0 -2
  45. package/lib/aws/interface/ILink.d.ts +0 -2
  46. package/lib/aws/interface/ILink.js +0 -2
  47. package/lib/aws/interface/IServiceDBOpenRequest.d.ts +0 -3
  48. package/lib/aws/interface/IServiceDBOpenRequest.js +0 -2
  49. package/lib/aws/interface/IServiceObjectStore.d.ts +0 -3
  50. package/lib/aws/interface/IServiceObjectStore.js +0 -2
  51. package/lib/aws/interface/IServiceObjectStoreParameters.d.ts +0 -4
  52. package/lib/aws/interface/IServiceObjectStoreParameters.js +0 -2
  53. package/lib/aws/interface/IServiceRequest.d.ts +0 -3
  54. package/lib/aws/interface/IServiceRequest.js +0 -2
  55. package/lib/aws/interface/IServiceResource.d.ts +0 -7
  56. package/lib/aws/interface/IServiceResource.js +0 -2
  57. package/lib/aws/interface/IServiceTransation.d.ts +0 -3
  58. package/lib/aws/interface/IServiceTransation.js +0 -2
  59. package/lib/aws/interface/ISubResourceUri.d.ts +0 -2
  60. package/lib/aws/interface/ISubResourceUri.js +0 -2
  61. package/lib/aws/interface/ISyncItemData.d.ts +0 -0
  62. package/lib/aws/interface/ISyncItemData.js +0 -1
  63. package/lib/aws/interface/ISyncObjectStoreParameters.d.ts +0 -0
  64. package/lib/aws/interface/ISyncObjectStoreParameters.js +0 -1
  65. package/lib/aws/interface/ISyncTransactionOptions.d.ts +0 -4
  66. package/lib/aws/interface/ISyncTransactionOptions.js +0 -2
  67. package/lib/common/abstract/CommonError.d.ts +0 -8
  68. package/lib/common/abstract/CommonError.js +0 -12
  69. package/lib/common/abstract/Database.d.ts +0 -44
  70. package/lib/common/abstract/Database.js +0 -58
  71. package/lib/common/abstract/DatabaseClient.d.ts +0 -11
  72. package/lib/common/abstract/DatabaseClient.js +0 -21
  73. package/lib/common/abstract/DatabaseClientConfig.d.ts +0 -5
  74. package/lib/common/abstract/DatabaseClientConfig.js +0 -9
  75. package/lib/common/abstract/DatabaseFactory.d.ts +0 -70
  76. package/lib/common/abstract/DatabaseFactory.js +0 -32
  77. package/lib/common/abstract/DatabaseObjectStore.d.ts +0 -29
  78. package/lib/common/abstract/DatabaseObjectStore.js +0 -13
  79. package/lib/common/abstract/DatabaseOpenRequest.d.ts +0 -24
  80. package/lib/common/abstract/DatabaseOpenRequest.js +0 -13
  81. package/lib/common/abstract/DatabaseRequest.d.ts +0 -21
  82. package/lib/common/abstract/DatabaseRequest.js +0 -14
  83. package/lib/common/abstract/DatabaseTransaction.d.ts +0 -22
  84. package/lib/common/abstract/DatabaseTransaction.js +0 -13
  85. package/lib/common/abstract/Filter.d.ts +0 -12
  86. package/lib/common/abstract/Filter.js +0 -30
  87. package/lib/common/enum/ErrorTypes.d.ts +0 -4
  88. package/lib/common/enum/ErrorTypes.js +0 -9
  89. package/lib/common/enum/FilterTypes.d.ts +0 -10
  90. package/lib/common/enum/FilterTypes.js +0 -14
  91. package/lib/common/interface/IDatabaesInfo.d.ts +0 -2
  92. package/lib/common/interface/IDatabaesInfo.js +0 -2
  93. package/lib/common/interface/IDatabase.d.ts +0 -4
  94. package/lib/common/interface/IDatabase.js +0 -2
  95. package/lib/common/interface/IDatabaseClient.d.ts +0 -5
  96. package/lib/common/interface/IDatabaseClient.js +0 -2
  97. package/lib/common/interface/IDatabaseConfig.d.ts +0 -8
  98. package/lib/common/interface/IDatabaseConfig.js +0 -10
  99. package/lib/common/interface/IDatabaseDBOpenRequest.d.ts +0 -2
  100. package/lib/common/interface/IDatabaseDBOpenRequest.js +0 -2
  101. package/lib/common/interface/IDatabaseFactory.d.ts +0 -21
  102. package/lib/common/interface/IDatabaseFactory.js +0 -2
  103. package/lib/common/interface/IDatabaseObjectStore.d.ts +0 -2
  104. package/lib/common/interface/IDatabaseObjectStore.js +0 -2
  105. package/lib/common/interface/IDatabaseObjectStoreParameters.d.ts +0 -2
  106. package/lib/common/interface/IDatabaseObjectStoreParameters.js +0 -2
  107. package/lib/common/interface/IDatabaseRecord.d.ts +0 -2
  108. package/lib/common/interface/IDatabaseRecord.js +0 -2
  109. package/lib/common/interface/IDatabaseRequest.d.ts +0 -2
  110. package/lib/common/interface/IDatabaseRequest.js +0 -2
  111. package/lib/common/interface/IDatabaseTransaction.d.ts +0 -2
  112. package/lib/common/interface/IDatabaseTransaction.js +0 -2
  113. package/lib/common/interface/IDatabaseTransactionOptions.d.ts +0 -2
  114. package/lib/common/interface/IDatabaseTransactionOptions.js +0 -2
  115. package/lib/common/interface/IError.d.ts +0 -5
  116. package/lib/common/interface/IError.js +0 -2
  117. package/lib/common/interface/IErrorDetails.d.ts +0 -6
  118. package/lib/common/interface/IErrorDetails.js +0 -2
  119. package/lib/common/interface/IFilter.d.ts +0 -25
  120. package/lib/common/interface/IFilter.js +0 -2
  121. package/lib/common/type/DatabaseReadyType.d.ts +0 -1
  122. package/lib/common/type/DatabaseReadyType.js +0 -2
  123. package/lib/common/type/FilterInputType.d.ts +0 -1
  124. package/lib/common/type/FilterInputType.js +0 -2
  125. package/lib/common/type/SearchParameterType.d.ts +0 -15
  126. package/lib/common/type/SearchParameterType.js +0 -3
  127. package/lib/common/utils/dateFormat.d.ts +0 -1
  128. package/lib/common/utils/dateFormat.js +0 -58
  129. package/lib/common/utils/filter.d.ts +0 -1
  130. package/lib/common/utils/filter.js +0 -99
  131. package/lib/common/utils/newFilter.d.ts +0 -1
  132. package/lib/common/utils/newFilter.js +0 -126
  133. package/lib/common/utils/pagination.d.ts +0 -1
  134. package/lib/common/utils/pagination.js +0 -9
  135. package/lib/common/utils/search.d.ts +0 -1
  136. package/lib/common/utils/search.js +0 -14
  137. package/lib/common/utils/sort.d.ts +0 -1
  138. package/lib/common/utils/sort.js +0 -29
  139. package/lib/config/AWSConfig.d.ts +0 -6
  140. package/lib/config/AWSConfig.js +0 -9
  141. package/lib/config/DatabaseConfig.d.ts +0 -33
  142. package/lib/config/DatabaseConfig.js +0 -36
  143. package/lib/config/TwilioConfig.d.ts +0 -4
  144. package/lib/config/TwilioConfig.js +0 -7
  145. package/lib/controller/Common.d.ts +0 -20
  146. package/lib/controller/Common.js +0 -57
  147. package/lib/controller/DatabaseFactoryCollection.d.ts +0 -6
  148. package/lib/controller/DatabaseFactoryCollection.js +0 -14
  149. package/lib/controller/MainController.d.ts +0 -6
  150. package/lib/controller/MainController.js +0 -174
  151. package/lib/controller/aws/HoopBuisnessHours.d.ts +0 -23
  152. package/lib/controller/aws/HoopBuisnessHours.js +0 -408
  153. package/lib/controller/aws/HoopOperationsController.d.ts +0 -9
  154. package/lib/controller/aws/HoopOperationsController.js +0 -86
  155. package/lib/controller/aws/HoopOverrideBranchesController.d.ts +0 -7
  156. package/lib/controller/aws/HoopOverrideBranchesController.js +0 -40
  157. package/lib/controller/aws/HoopProfilesListController.d.ts +0 -8
  158. package/lib/controller/aws/HoopProfilesListController.js +0 -61
  159. package/lib/controller/aws/PlaybackScreenrecordings.d.ts +0 -9
  160. package/lib/controller/aws/PlaybackScreenrecordings.js +0 -63
  161. package/lib/controller/twilio/AgentActionsController.d.ts +0 -54
  162. package/lib/controller/twilio/AgentActionsController.js +0 -177
  163. package/lib/controller/twilio/AgentScorecardController.d.ts +0 -53
  164. package/lib/controller/twilio/AgentScorecardController.js +0 -173
  165. package/lib/controller/twilio/AuditLogController.d.ts +0 -15
  166. package/lib/controller/twilio/AuditLogController.js +0 -137
  167. package/lib/controller/twilio/CallLogsController.d.ts +0 -12
  168. package/lib/controller/twilio/CallLogsController.js +0 -131
  169. package/lib/controller/twilio/CallbackAndVoicemailController.d.ts +0 -12
  170. package/lib/controller/twilio/CallbackAndVoicemailController.js +0 -114
  171. package/lib/controller/twilio/ChannelSettingTaskInfoController.d.ts +0 -11
  172. package/lib/controller/twilio/ChannelSettingTaskInfoController.js +0 -117
  173. package/lib/controller/twilio/ChannelSettingsController.d.ts +0 -16
  174. package/lib/controller/twilio/ChannelSettingsController.js +0 -142
  175. package/lib/controller/twilio/CxConfigAssetController.d.ts +0 -12
  176. package/lib/controller/twilio/CxConfigAssetController.js +0 -128
  177. package/lib/controller/twilio/CxConfigController.d.ts +0 -18
  178. package/lib/controller/twilio/CxConfigController.js +0 -112
  179. package/lib/controller/twilio/CxConfigExternalNumbersController.d.ts +0 -12
  180. package/lib/controller/twilio/CxConfigExternalNumbersController.js +0 -138
  181. package/lib/controller/twilio/CxConfigOther.d.ts +0 -16
  182. package/lib/controller/twilio/CxConfigOther.js +0 -138
  183. package/lib/controller/twilio/CxConfigQueueMenuController.d.ts +0 -12
  184. package/lib/controller/twilio/CxConfigQueueMenuController.js +0 -129
  185. package/lib/controller/twilio/CxConfigUIconfigController.d.ts +0 -12
  186. package/lib/controller/twilio/CxConfigUIconfigController.js +0 -132
  187. package/lib/controller/twilio/GPMController.d.ts +0 -12
  188. package/lib/controller/twilio/GPMController.js +0 -151
  189. package/lib/controller/twilio/HoopBusinessHoursController.d.ts +0 -18
  190. package/lib/controller/twilio/HoopBusinessHoursController.js +0 -285
  191. package/lib/controller/twilio/HoopHolidaysController.d.ts +0 -14
  192. package/lib/controller/twilio/HoopHolidaysController.js +0 -152
  193. package/lib/controller/twilio/HoopMainController.d.ts +0 -13
  194. package/lib/controller/twilio/HoopMainController.js +0 -297
  195. package/lib/controller/twilio/HoopNotesController.d.ts +0 -14
  196. package/lib/controller/twilio/HoopNotesController.js +0 -149
  197. package/lib/controller/twilio/HoopOperationsController.d.ts +0 -14
  198. package/lib/controller/twilio/HoopOperationsController.js +0 -138
  199. package/lib/controller/twilio/HoopOverrideBranchesController.d.ts +0 -14
  200. package/lib/controller/twilio/HoopOverrideBranchesController.js +0 -137
  201. package/lib/controller/twilio/HoopPartialDaysController.d.ts +0 -14
  202. package/lib/controller/twilio/HoopPartialDaysController.js +0 -152
  203. package/lib/controller/twilio/HoopProfilesListController.d.ts +0 -14
  204. package/lib/controller/twilio/HoopProfilesListController.js +0 -147
  205. package/lib/controller/twilio/NavigationController.d.ts +0 -13
  206. package/lib/controller/twilio/NavigationController.js +0 -170
  207. package/lib/controller/twilio/QualityFormsController.d.ts +0 -12
  208. package/lib/controller/twilio/QualityFormsController.js +0 -129
  209. package/lib/controller/twilio/QuickLinkController.d.ts +0 -11
  210. package/lib/controller/twilio/QuickLinkController.js +0 -122
  211. package/lib/controller/twilio/RealTimeReportQueueDetailsController.d.ts +0 -14
  212. package/lib/controller/twilio/RealTimeReportQueueDetailsController.js +0 -126
  213. package/lib/controller/twilio/RealTimeReportsWGDetailsController.d.ts +0 -53
  214. package/lib/controller/twilio/RealTimeReportsWGDetailsController.js +0 -160
  215. package/lib/controller/twilio/TaskInfoPanelController.d.ts +0 -15
  216. package/lib/controller/twilio/TaskInfoPanelController.js +0 -134
  217. package/lib/controller/twilio/filterImpl/AgentScorecardFilter.d.ts +0 -12
  218. package/lib/controller/twilio/filterImpl/AgentScorecardFilter.js +0 -52
  219. package/lib/controller/twilio/filterImpl/AuditLogsFilter.d.ts +0 -12
  220. package/lib/controller/twilio/filterImpl/AuditLogsFilter.js +0 -89
  221. package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.d.ts +0 -12
  222. package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.js +0 -81
  223. package/lib/controller/twilio/filterImpl/CallLogsFilter.d.ts +0 -20
  224. package/lib/controller/twilio/filterImpl/CallLogsFilter.js +0 -101
  225. package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.d.ts +0 -12
  226. package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.js +0 -59
  227. package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.d.ts +0 -12
  228. package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.js +0 -67
  229. package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.d.ts +0 -14
  230. package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.js +0 -52
  231. package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.d.ts +0 -17
  232. package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.js +0 -78
  233. package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.d.ts +0 -12
  234. package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.js +0 -51
  235. package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.d.ts +0 -14
  236. package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.js +0 -58
  237. package/lib/controller/twilio/filterImpl/HoopNotesFilter.d.ts +0 -12
  238. package/lib/controller/twilio/filterImpl/HoopNotesFilter.js +0 -51
  239. package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.d.ts +0 -14
  240. package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.js +0 -58
  241. package/lib/controller/twilio/filterImpl/MainFilterService.d.ts +0 -4
  242. package/lib/controller/twilio/filterImpl/MainFilterService.js +0 -108
  243. package/lib/controller/twilio/filterImpl/NavigationFilter.d.ts +0 -20
  244. package/lib/controller/twilio/filterImpl/NavigationFilter.js +0 -90
  245. package/lib/controller/twilio/filterImpl/QueueDetailsFilter.d.ts +0 -14
  246. package/lib/controller/twilio/filterImpl/QueueDetailsFilter.js +0 -53
  247. package/lib/controller/twilio/filterImpl/TaskCompleteFilter.d.ts +0 -12
  248. package/lib/controller/twilio/filterImpl/TaskCompleteFilter.js +0 -62
  249. package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.d.ts +0 -12
  250. package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.js +0 -52
  251. package/lib/express/ApiResponse.d.ts +0 -15
  252. package/lib/express/ApiResponse.js +0 -11
  253. package/lib/express/RequestValidator.d.ts +0 -50
  254. package/lib/express/RequestValidator.js +0 -77
  255. package/lib/express/RequireParamsPicker.d.ts +0 -7
  256. package/lib/express/RequireParamsPicker.js +0 -14
  257. package/lib/express/ValidateRequireParameters.d.ts +0 -3
  258. package/lib/express/ValidateRequireParameters.js +0 -39
  259. package/lib/index.d.ts +0 -39
  260. package/lib/index.js +0 -100
  261. package/lib/models/BatchUpdateSkills.model.d.ts +0 -0
  262. package/lib/models/BatchUpdateSkills.model.js +0 -11
  263. package/lib/models/CannedMessage.model.d.ts +0 -4
  264. package/lib/models/CannedMessage.model.js +0 -1
  265. package/lib/models/ChannelSettingsTaskInfo.model.d.ts +0 -87
  266. package/lib/models/ChannelSettingsTaskInfo.model.js +0 -1
  267. package/lib/models/CustomerFeedback.model.d.ts +0 -9
  268. package/lib/models/CustomerFeedback.model.js +0 -1
  269. package/lib/models/Filter.model.d.ts +0 -15
  270. package/lib/models/Filter.model.js +0 -2
  271. package/lib/models/Hoop.model.d.ts +0 -15
  272. package/lib/models/Hoop.model.js +0 -18
  273. package/lib/models/Navigation.model.d.ts +0 -28
  274. package/lib/models/Navigation.model.js +0 -8
  275. package/lib/models/Roles.Model.d.ts +0 -8
  276. package/lib/models/Roles.Model.js +0 -1
  277. package/lib/models/abstract/BaseModel.d.ts +0 -17
  278. package/lib/models/abstract/BaseModel.js +0 -40
  279. package/lib/models/impl/AgentActionsLogsModel.d.ts +0 -27
  280. package/lib/models/impl/AgentActionsLogsModel.js +0 -89
  281. package/lib/models/impl/AgentActionsModel.d.ts +0 -19
  282. package/lib/models/impl/AgentActionsModel.js +0 -60
  283. package/lib/models/impl/AgentScorecardModel.d.ts +0 -66
  284. package/lib/models/impl/AgentScorecardModel.js +0 -282
  285. package/lib/models/impl/AuditLogsModel.d.ts +0 -31
  286. package/lib/models/impl/AuditLogsModel.js +0 -146
  287. package/lib/models/impl/CallLogsModel.d.ts +0 -37
  288. package/lib/models/impl/CallLogsModel.js +0 -109
  289. package/lib/models/impl/CallStatisticsModel.d.ts +0 -16
  290. package/lib/models/impl/CallStatisticsModel.js +0 -52
  291. package/lib/models/impl/CategoryDetailsModel.d.ts +0 -17
  292. package/lib/models/impl/CategoryDetailsModel.js +0 -44
  293. package/lib/models/impl/MemberModel.d.ts +0 -42
  294. package/lib/models/impl/MemberModel.js +0 -170
  295. package/lib/models/impl/ModelValidationError.d.ts +0 -6
  296. package/lib/models/impl/ModelValidationError.js +0 -15
  297. package/lib/models/impl/NavigationModel.d.ts +0 -39
  298. package/lib/models/impl/NavigationModel.js +0 -126
  299. package/lib/models/impl/PerformanceStatisticsModel.d.ts +0 -41
  300. package/lib/models/impl/PerformanceStatisticsModel.js +0 -129
  301. package/lib/models/impl/PlaybackScreenrecordings.d.ts +0 -39
  302. package/lib/models/impl/PlaybackScreenrecordings.js +0 -133
  303. package/lib/models/impl/ProfileModel.d.ts +0 -23
  304. package/lib/models/impl/ProfileModel.js +0 -102
  305. package/lib/models/impl/QualityFormsModel.d.ts +0 -39
  306. package/lib/models/impl/QualityFormsModel.js +0 -150
  307. package/lib/models/impl/QuestionDetailsModel.d.ts +0 -39
  308. package/lib/models/impl/QuestionDetailsModel.js +0 -173
  309. package/lib/models/impl/QueueDetailsModel.d.ts +0 -63
  310. package/lib/models/impl/QueueDetailsModel.js +0 -261
  311. package/lib/models/impl/QueueModel.d.ts +0 -39
  312. package/lib/models/impl/QueueModel.js +0 -156
  313. package/lib/models/impl/QuickLinkModel.d.ts +0 -24
  314. package/lib/models/impl/QuickLinkModel.js +0 -122
  315. package/lib/models/impl/StatisticsNumberDetailsModel.d.ts +0 -18
  316. package/lib/models/impl/StatisticsNumberDetailsModel.js +0 -72
  317. package/lib/models/impl/StatisticsTimeDetailsModel.d.ts +0 -18
  318. package/lib/models/impl/StatisticsTimeDetailsModel.js +0 -72
  319. package/lib/models/impl/TaskAttributesModel.d.ts +0 -31
  320. package/lib/models/impl/TaskAttributesModel.js +0 -108
  321. package/lib/models/impl/TaskChannelModel.d.ts +0 -15
  322. package/lib/models/impl/TaskChannelModel.js +0 -69
  323. package/lib/models/impl/TaskComplete.d.ts +0 -0
  324. package/lib/models/impl/TaskComplete.js +0 -1
  325. package/lib/models/impl/TaskInfoPanelModel.d.ts +0 -16
  326. package/lib/models/impl/TaskInfoPanelModel.js +0 -69
  327. package/lib/models/impl/TaskModel.d.ts +0 -59
  328. package/lib/models/impl/TaskModel.js +0 -234
  329. package/lib/models/impl/WorkGroupDetailsModel.d.ts +0 -63
  330. package/lib/models/impl/WorkGroupDetailsModel.js +0 -281
  331. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.d.ts +0 -33
  332. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.js +0 -140
  333. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.d.ts +0 -8
  334. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.js +0 -12
  335. package/lib/models/impl/callbackandvoicemail/CallbackModel.d.ts +0 -19
  336. package/lib/models/impl/callbackandvoicemail/CallbackModel.js +0 -82
  337. package/lib/models/impl/callbackandvoicemail/VoicemailModel.d.ts +0 -25
  338. package/lib/models/impl/callbackandvoicemail/VoicemailModel.js +0 -108
  339. package/lib/models/impl/channelsettings/ChannelSettingModel.d.ts +0 -68
  340. package/lib/models/impl/channelsettings/ChannelSettingModel.js +0 -240
  341. package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.d.ts +0 -31
  342. package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.js +0 -106
  343. package/lib/models/impl/channelsettings/TaskInfoAttributeModel.d.ts +0 -25
  344. package/lib/models/impl/channelsettings/TaskInfoAttributeModel.js +0 -80
  345. package/lib/models/impl/channelsettings/TaskInfoModel.d.ts +0 -13
  346. package/lib/models/impl/channelsettings/TaskInfoModel.js +0 -52
  347. package/lib/models/impl/cxconfig/CxConfigNamespace.d.ts +0 -16
  348. package/lib/models/impl/cxconfig/CxConfigNamespace.js +0 -20
  349. package/lib/models/impl/cxconfig/CxConfigUIConfigModel.d.ts +0 -27
  350. package/lib/models/impl/cxconfig/CxConfigUIConfigModel.js +0 -173
  351. package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.d.ts +0 -24
  352. package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.js +0 -103
  353. package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.d.ts +0 -24
  354. package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.js +0 -149
  355. package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.d.ts +0 -27
  356. package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.js +0 -179
  357. package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.d.ts +0 -37
  358. package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.js +0 -197
  359. package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.d.ts +0 -27
  360. package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.js +0 -159
  361. package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.d.ts +0 -40
  362. package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.js +0 -128
  363. package/lib/models/impl/hoop/HoopBusinessHoursModel.d.ts +0 -39
  364. package/lib/models/impl/hoop/HoopBusinessHoursModel.js +0 -122
  365. package/lib/models/impl/hoop/HoopDescriptionModel.d.ts +0 -16
  366. package/lib/models/impl/hoop/HoopDescriptionModel.js +0 -64
  367. package/lib/models/impl/hoop/HoopHolidaysImplModel.d.ts +0 -25
  368. package/lib/models/impl/hoop/HoopHolidaysImplModel.js +0 -118
  369. package/lib/models/impl/hoop/HoopNotesImplModel.d.ts +0 -25
  370. package/lib/models/impl/hoop/HoopNotesImplModel.js +0 -117
  371. package/lib/models/impl/hoop/HoopOperationsImplModel.d.ts +0 -28
  372. package/lib/models/impl/hoop/HoopOperationsImplModel.js +0 -161
  373. package/lib/models/impl/hoop/HoopOverrideImplModel.d.ts +0 -22
  374. package/lib/models/impl/hoop/HoopOverrideImplModel.js +0 -143
  375. package/lib/models/impl/hoop/HoopPartialDaysImplModel.d.ts +0 -31
  376. package/lib/models/impl/hoop/HoopPartialDaysImplModel.js +0 -140
  377. package/lib/models/impl/hoop/HoopProfilesListImplModel.d.ts +0 -22
  378. package/lib/models/impl/hoop/HoopProfilesListImplModel.js +0 -104
  379. package/lib/models/impl/hoop/HoopWeeklyTimingModel.d.ts +0 -22
  380. package/lib/models/impl/hoop/HoopWeeklyTimingModel.js +0 -86
  381. package/lib/models/index.d.ts +0 -25
  382. package/lib/models/index.js +0 -53
  383. package/lib/models/interface/IBaseModel.d.ts +0 -11
  384. package/lib/models/interface/IBaseModel.js +0 -2
  385. package/lib/models/types/AgentScorecard.type.d.ts +0 -6
  386. package/lib/models/types/AgentScorecard.type.js +0 -7
  387. package/lib/models/types/AuditLog.type.d.ts +0 -13
  388. package/lib/models/types/AuditLog.type.js +0 -10
  389. package/lib/models/types/CallLog.type.d.ts +0 -16
  390. package/lib/models/types/CallLog.type.js +0 -10
  391. package/lib/models/types/ChannelSetting.type.d.ts +0 -7
  392. package/lib/models/types/ChannelSetting.type.js +0 -11
  393. package/lib/models/types/CxConfig.type.d.ts +0 -72
  394. package/lib/models/types/CxConfig.type.js +0 -43
  395. package/lib/models/types/Hoop.type.d.ts +0 -9
  396. package/lib/models/types/Hoop.type.js +0 -13
  397. package/lib/models/types/Navigation.type.d.ts +0 -11
  398. package/lib/models/types/Navigation.type.js +0 -8
  399. package/lib/models/types/Profile.type.d.ts +0 -1
  400. package/lib/models/types/Profile.type.js +0 -2
  401. package/lib/models/types/QueueDetails.type.d.ts +0 -6
  402. package/lib/models/types/QueueDetails.type.js +0 -7
  403. package/lib/models/types/TaskComplete.type.d.ts +0 -7
  404. package/lib/models/types/TaskComplete.type.js +0 -6
  405. package/lib/models/types/TaskInfoPanel.type.d.ts +0 -6
  406. package/lib/models/types/TaskInfoPanel.type.js +0 -7
  407. package/lib/server.d.ts +0 -1
  408. package/lib/server.js +0 -39
  409. package/lib/twilio/abstract/ServiceObjectStore.d.ts +0 -6
  410. package/lib/twilio/abstract/ServiceObjectStore.js +0 -10
  411. package/lib/twilio/abstract/ServiceOpenRequest.d.ts +0 -7
  412. package/lib/twilio/abstract/ServiceOpenRequest.js +0 -10
  413. package/lib/twilio/abstract/ServiceRequest.d.ts +0 -3
  414. package/lib/twilio/abstract/ServiceRequest.js +0 -7
  415. package/lib/twilio/abstract/ServiceResource.d.ts +0 -23
  416. package/lib/twilio/abstract/ServiceResource.js +0 -37
  417. package/lib/twilio/abstract/ServiceResourceFactory.d.ts +0 -15
  418. package/lib/twilio/abstract/ServiceResourceFactory.js +0 -18
  419. package/lib/twilio/abstract/ServiceTransaction.d.ts +0 -6
  420. package/lib/twilio/abstract/ServiceTransaction.js +0 -11
  421. package/lib/twilio/abstract/SyncServiceItemResource.d.ts +0 -31
  422. package/lib/twilio/abstract/SyncServiceItemResource.js +0 -60
  423. package/lib/twilio/abstract/TwilioClientConfig.d.ts +0 -0
  424. package/lib/twilio/abstract/TwilioClientConfig.js +0 -1
  425. package/lib/twilio/impl/TwilioAPIKeyConfig.d.ts +0 -14
  426. package/lib/twilio/impl/TwilioAPIKeyConfig.js +0 -31
  427. package/lib/twilio/impl/TwilioAuthTokenConfig.d.ts +0 -11
  428. package/lib/twilio/impl/TwilioAuthTokenConfig.js +0 -24
  429. package/lib/twilio/impl/TwilioClient.d.ts +0 -6
  430. package/lib/twilio/impl/TwilioClient.js +0 -21
  431. package/lib/twilio/impl/message/messageService.d.ts +0 -0
  432. package/lib/twilio/impl/message/messageService.js +0 -42
  433. package/lib/twilio/impl/sync/SyncDocument.d.ts +0 -24
  434. package/lib/twilio/impl/sync/SyncDocument.js +0 -52
  435. package/lib/twilio/impl/sync/SyncDocumentTransaction.d.ts +0 -20
  436. package/lib/twilio/impl/sync/SyncDocumentTransaction.js +0 -31
  437. package/lib/twilio/impl/sync/SyncList.d.ts +0 -24
  438. package/lib/twilio/impl/sync/SyncList.js +0 -52
  439. package/lib/twilio/impl/sync/SyncListItem.d.ts +0 -5
  440. package/lib/twilio/impl/sync/SyncListItem.js +0 -22
  441. package/lib/twilio/impl/sync/SyncListTransaction.d.ts +0 -20
  442. package/lib/twilio/impl/sync/SyncListTransaction.js +0 -31
  443. package/lib/twilio/impl/sync/SyncMap.d.ts +0 -25
  444. package/lib/twilio/impl/sync/SyncMap.js +0 -139
  445. package/lib/twilio/impl/sync/SyncMapItem.d.ts +0 -5
  446. package/lib/twilio/impl/sync/SyncMapItem.js +0 -7
  447. package/lib/twilio/impl/sync/SyncMapTransaction.d.ts +0 -22
  448. package/lib/twilio/impl/sync/SyncMapTransaction.js +0 -38
  449. package/lib/twilio/impl/sync/SyncOpenRequest.d.ts +0 -18
  450. package/lib/twilio/impl/sync/SyncOpenRequest.js +0 -24
  451. package/lib/twilio/impl/sync/SyncRequest.d.ts +0 -16
  452. package/lib/twilio/impl/sync/SyncRequest.js +0 -21
  453. package/lib/twilio/impl/sync/SyncResource.d.ts +0 -50
  454. package/lib/twilio/impl/sync/SyncResource.js +0 -97
  455. package/lib/twilio/impl/sync/SyncServiceFactory.d.ts +0 -22
  456. package/lib/twilio/impl/sync/SyncServiceFactory.js +0 -117
  457. package/lib/twilio/interface/IDirection.d.ts +0 -2
  458. package/lib/twilio/interface/IDirection.js +0 -2
  459. package/lib/twilio/interface/ILink.d.ts +0 -2
  460. package/lib/twilio/interface/ILink.js +0 -2
  461. package/lib/twilio/interface/IServiceDBOpenRequest.d.ts +0 -3
  462. package/lib/twilio/interface/IServiceDBOpenRequest.js +0 -2
  463. package/lib/twilio/interface/IServiceObjectStore.d.ts +0 -3
  464. package/lib/twilio/interface/IServiceObjectStore.js +0 -2
  465. package/lib/twilio/interface/IServiceObjectStoreParameters.d.ts +0 -4
  466. package/lib/twilio/interface/IServiceObjectStoreParameters.js +0 -2
  467. package/lib/twilio/interface/IServiceRequest.d.ts +0 -3
  468. package/lib/twilio/interface/IServiceRequest.js +0 -2
  469. package/lib/twilio/interface/IServiceResource.d.ts +0 -8
  470. package/lib/twilio/interface/IServiceResource.js +0 -2
  471. package/lib/twilio/interface/IServiceTransation.d.ts +0 -3
  472. package/lib/twilio/interface/IServiceTransation.js +0 -2
  473. package/lib/twilio/interface/ISubResourceUri.d.ts +0 -2
  474. package/lib/twilio/interface/ISubResourceUri.js +0 -2
  475. package/lib/twilio/interface/ISyncItemData.d.ts +0 -0
  476. package/lib/twilio/interface/ISyncItemData.js +0 -1
  477. package/lib/twilio/interface/ISyncObjectStoreParameters.d.ts +0 -0
  478. package/lib/twilio/interface/ISyncObjectStoreParameters.js +0 -1
  479. package/lib/twilio/interface/ISyncTransactionOptions.d.ts +0 -4
  480. package/lib/twilio/interface/ISyncTransactionOptions.js +0 -2
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AWSConfig = void 0;
4
- exports.AWSConfig = {
5
- region: "",
6
- service: "",
7
- accessKeyId: "",
8
- secretAccessKey: ""
9
- };
@@ -1,33 +0,0 @@
1
- export declare const databaseConfig: {
2
- databaseName: string;
3
- version: number;
4
- tables: {
5
- gpmTable: string;
6
- hoopProfileList: string;
7
- hoopOverrideBranches: string;
8
- hoopOperations: string;
9
- hoopHolidays: string;
10
- hoopPartialDays: string;
11
- hoopNotes: string;
12
- callLogsTable: string;
13
- cxConfigAssetTable: string;
14
- cxConfigTable: string;
15
- cxConfigOtherTable: string;
16
- cxConfigUIconfigTable: string;
17
- cxConfigExternalNumbersTable: string;
18
- cxConfigQueueMenuTable: string;
19
- callbackAndVoicemailTable: string;
20
- auditLogTable: string;
21
- quickLinksTable: string;
22
- qualityFormsTable: string;
23
- taskcompleteTable: string;
24
- navigationTable: string;
25
- realTimeReportWGDetailsTable: string;
26
- realTimeReportQueueDetailsTable: string;
27
- playbackscreenrecordingsTable: string;
28
- taskInfoPanelTable: string;
29
- channelSettingsTable: string;
30
- agentScorecardTable: string;
31
- agentActionsTable: string;
32
- };
33
- };
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.databaseConfig = void 0;
4
- exports.databaseConfig = {
5
- databaseName: "flex2",
6
- version: 1,
7
- tables: {
8
- gpmTable: "gpm",
9
- hoopProfileList: "hoopProfiles",
10
- hoopOverrideBranches: "hoopOverrideBranches",
11
- hoopOperations: "hoopOperations",
12
- hoopHolidays: "hoopHolidays",
13
- hoopPartialDays: "hoopPartialDays",
14
- hoopNotes: "hoopNotes",
15
- callLogsTable: "callLogs",
16
- cxConfigAssetTable: "cxConfigAsset",
17
- cxConfigTable: "cxConfig",
18
- cxConfigOtherTable: "cxConfigOther",
19
- cxConfigUIconfigTable: "cxConfigUIconfig",
20
- cxConfigExternalNumbersTable: "cxConfigExternalNumbers",
21
- cxConfigQueueMenuTable: "cxConfigQueueMenu",
22
- callbackAndVoicemailTable: "callbackAndVoicemail",
23
- auditLogTable: "auditLog",
24
- quickLinksTable: "quickLinks",
25
- qualityFormsTable: "qualityForms",
26
- taskcompleteTable: "taskcomplete",
27
- navigationTable: "navigation",
28
- realTimeReportWGDetailsTable: "realTimeReportWGDetails",
29
- realTimeReportQueueDetailsTable: "realTimeReportQueueDetails",
30
- playbackscreenrecordingsTable: "Recordings-QA",
31
- taskInfoPanelTable: "taskInfoPanel",
32
- channelSettingsTable: "channelSettings",
33
- agentScorecardTable: "agentScorecard",
34
- agentActionsTable: "agentActions"
35
- },
36
- };
@@ -1,4 +0,0 @@
1
- export declare const TwilioConfig: {
2
- accountSid: string;
3
- authToken: string;
4
- };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TwilioConfig = void 0;
4
- exports.TwilioConfig = {
5
- accountSid: "",
6
- authToken: "",
7
- };
@@ -1,20 +0,0 @@
1
- /**
2
- * Generates a UUID based on the SHA-256 hash of the input text.
3
- * The format follows the standard UUID version 4 structure:
4
- * xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
5
- *
6
- * @param {string} text - The input string used to generate a UUID.
7
- * @returns {string} A UUID generated from the input text.
8
- */
9
- /**
10
- * A common error handler function that processes error messages
11
- * and returns appropriate HTTP status codes and error details.
12
- *
13
- * @param {any} error - The error object to process.
14
- * @returns {object} An object containing the status code and error message.
15
- */
16
- export declare function handleError(error: any): {
17
- statusCode: number;
18
- message: string;
19
- details?: string;
20
- };
@@ -1,57 +0,0 @@
1
- "use strict";
2
- // uuidGenerator.ts
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.handleError = void 0;
5
- // import * as crypto from "crypto";
6
- /**
7
- * Generates a UUID based on the SHA-256 hash of the input text.
8
- * The format follows the standard UUID version 4 structure:
9
- * xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
10
- *
11
- * @param {string} text - The input string used to generate a UUID.
12
- * @returns {string} A UUID generated from the input text.
13
- */
14
- // export function generateUUID(text: string): string {
15
- // // Create a SHA-256 hash of the input text and convert it to a hex string
16
- // const hash = crypto.createHash("sha256").update(text).digest("hex");
17
- // // Format the hash into a UUID version 4 structure
18
- // const uuid = `${hash.slice(0, 8)}-${hash.slice(8, 12)}-4${hash.slice(
19
- // 13,
20
- // 16
21
- // )}-${((parseInt(hash.slice(16, 17), 16) & 0x3) | 0x8).toString(
22
- // 16
23
- // )}${hash.slice(17, 20)}-${hash.slice(20, 32)}`;
24
- // // Return the generated UUID
25
- // return uuid;
26
- // }
27
- /**
28
- * A common error handler function that processes error messages
29
- * and returns appropriate HTTP status codes and error details.
30
- *
31
- * @param {any} error - The error object to process.
32
- * @returns {object} An object containing the status code and error message.
33
- */
34
- function handleError(error) {
35
- // Check if the error is related to "resource not found" and return 404
36
- if (error.message.includes("was not found")) {
37
- return {
38
- statusCode: 404,
39
- message: "Resource not found",
40
- details: error.message,
41
- };
42
- }
43
- // Check if the error is related to "item already exists" and return 409
44
- if (error.message.includes("An Item with given key already exists in the Map")) {
45
- return {
46
- statusCode: 409,
47
- message: "Conflict: An item with the given key already exists.",
48
- };
49
- }
50
- // For other errors, return a general 500 Internal Server Error
51
- return {
52
- statusCode: 500,
53
- message: "Internal Server Error",
54
- details: error.message,
55
- };
56
- }
57
- exports.handleError = handleError;
@@ -1,6 +0,0 @@
1
- import { IDatabaseFactory } from "../common/interface/IDatabaseFactory";
2
- export declare class DatabaseFactoryCollection {
3
- private static _databaseFactoryCollection;
4
- static getdatabaseFactoryCollection(): Map<string, IDatabaseFactory>;
5
- static setdatabaseFactoryCollection(key: string, value: IDatabaseFactory): void;
6
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DatabaseFactoryCollection = void 0;
4
- class DatabaseFactoryCollection {
5
- static getdatabaseFactoryCollection() {
6
- return this._databaseFactoryCollection;
7
- }
8
- static setdatabaseFactoryCollection(key, value) {
9
- this._databaseFactoryCollection.set(key, value);
10
- }
11
- }
12
- exports.DatabaseFactoryCollection = DatabaseFactoryCollection;
13
- // static TwilioSyncFactory = new SyncServiceFactory(twilioClient);
14
- DatabaseFactoryCollection._databaseFactoryCollection = new Map();
@@ -1,6 +0,0 @@
1
- import { Request, Response } from "express";
2
- export declare class MainController {
3
- constructor();
4
- private static controllers;
5
- routeHandler(req: Request, res: Response): Promise<void>;
6
- }
@@ -1,174 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.MainController = void 0;
16
- const DatabaseFactoryCollection_1 = require("./DatabaseFactoryCollection");
17
- const GPMController_1 = require("./twilio/GPMController");
18
- const CallLogsController_1 = require("./twilio/CallLogsController");
19
- const AuditLogController_1 = require("./twilio/AuditLogController");
20
- const TwilioAuthTokenConfig_1 = require("../twilio/impl/TwilioAuthTokenConfig");
21
- const TwilioClient_1 = require("../twilio/impl/TwilioClient");
22
- const SyncServiceFactory_1 = require("../twilio/impl/sync/SyncServiceFactory");
23
- const TwilioConfig_1 = require("../config/TwilioConfig");
24
- const ApiResponse_1 = __importDefault(require("../express/ApiResponse"));
25
- const QuickLinkController_1 = require("./twilio/QuickLinkController");
26
- const NavigationController_1 = require("./twilio/NavigationController");
27
- const CallbackAndVoicemailController_1 = require("./twilio/CallbackAndVoicemailController");
28
- const QualityFormsController_1 = require("./twilio/QualityFormsController");
29
- const RealTimeReportsWGDetailsController_1 = require("./twilio/RealTimeReportsWGDetailsController");
30
- const RealTimeReportQueueDetailsController_1 = require("./twilio/RealTimeReportQueueDetailsController");
31
- const PlaybackScreenrecordings_1 = require("./aws/PlaybackScreenrecordings");
32
- const AWSConnectAPIConfig_1 = require("../aws/impl/AWSConnectAPIConfig");
33
- const AWSClient_1 = require("../aws/impl/AWSClient");
34
- const DynamoServiceFactory_1 = require("../aws/impl/DynamoDB/DynamoServiceFactory");
35
- const AWSConfig_1 = require("../config/AWSConfig");
36
- const CxConfigAssetController_1 = require("./twilio/CxConfigAssetController");
37
- const CxConfigController_1 = require("./twilio/CxConfigController");
38
- const CxConfigOther_1 = require("./twilio/CxConfigOther");
39
- const CxConfigExternalNumbersController_1 = require("./twilio/CxConfigExternalNumbersController");
40
- const CxConfigQueueMenuController_1 = require("./twilio/CxConfigQueueMenuController");
41
- const CxConfigUIconfigController_1 = require("./twilio/CxConfigUIconfigController");
42
- const HoopProfilesListController_1 = require("./twilio/HoopProfilesListController");
43
- const HoopOverrideBranchesController_1 = require("./twilio/HoopOverrideBranchesController");
44
- const HoopOperationsController_1 = require("./twilio/HoopOperationsController");
45
- const HoopHolidaysController_1 = require("./twilio/HoopHolidaysController");
46
- const HoopPartialDaysController_1 = require("./twilio/HoopPartialDaysController");
47
- const HoopBusinessHoursController_1 = require("./twilio/HoopBusinessHoursController");
48
- const HoopNotesController_1 = require("./twilio/HoopNotesController");
49
- const HoopMainController_1 = require("./twilio/HoopMainController");
50
- const HoopProfilesListController_2 = require("./aws/HoopProfilesListController");
51
- const HoopServiceFactory_1 = require("./../aws/impl/HoopServices/HoopServiceFactory");
52
- const HoopOverrideBranchesController_2 = require("./aws/HoopOverrideBranchesController");
53
- const HoopOperationsController_2 = require("./aws/HoopOperationsController");
54
- const HoopBuisnessHours_1 = require("./aws/HoopBuisnessHours");
55
- const ChannelSettingsController_1 = require("./twilio/ChannelSettingsController");
56
- const ChannelSettingTaskInfoController_1 = require("./twilio/ChannelSettingTaskInfoController");
57
- const TaskInfoPanelController_1 = require("./twilio/TaskInfoPanelController");
58
- const AgentScorecardController_1 = require("./twilio/AgentScorecardController");
59
- const AgentActionsController_1 = require("./twilio/AgentActionsController");
60
- let twilConfig = new TwilioAuthTokenConfig_1.TwilioAuthTokenConfig(TwilioConfig_1.TwilioConfig.accountSid, TwilioConfig_1.TwilioConfig.authToken);
61
- let twilioClient = new TwilioClient_1.TwilioClient(twilConfig);
62
- let AwsConfig = new AWSConnectAPIConfig_1.AWSConnectAPIConfig(AWSConfig_1.AWSConfig.region, AWSConfig_1.AWSConfig.service, AWSConfig_1.AWSConfig.accessKeyId, AWSConfig_1.AWSConfig.secretAccessKey);
63
- let AwsClient = new AWSClient_1.AWSClient(AwsConfig);
64
- class MainController {
65
- constructor() {
66
- DatabaseFactoryCollection_1.DatabaseFactoryCollection.setdatabaseFactoryCollection("Twilio", new SyncServiceFactory_1.SyncServiceFactory(twilioClient));
67
- DatabaseFactoryCollection_1.DatabaseFactoryCollection.setdatabaseFactoryCollection("AWS", new DynamoServiceFactory_1.DynamoServiceFactory(AwsClient));
68
- DatabaseFactoryCollection_1.DatabaseFactoryCollection.setdatabaseFactoryCollection("hoop", new HoopServiceFactory_1.HoopServiceFactory(AwsClient));
69
- }
70
- routeHandler(req, res) {
71
- return __awaiter(this, void 0, void 0, function* () {
72
- const urlParts = req.path.split("/");
73
- const controller = urlParts[1];
74
- const method = urlParts[2];
75
- if (!controller || !method) {
76
- res.status(400).json({ error: "Controller and method are required" });
77
- return;
78
- }
79
- const ControllerClass = MainController.controllers[controller];
80
- if (!ControllerClass) {
81
- res.status(404).json({ error: "Controller not found" });
82
- return;
83
- }
84
- // Instantiate the controller with dependencies
85
- const serverName = req.query.server;
86
- console.log('serverName', serverName);
87
- let dataFactory = DatabaseFactoryCollection_1.DatabaseFactoryCollection.getdatabaseFactoryCollection().get(serverName);
88
- const controllerInstance = new ControllerClass(dataFactory);
89
- // Check if the specified method exists in the selected controller class
90
- console.log('dataFactory', dataFactory);
91
- console.log('method', method);
92
- console.log("ControllerClass", ControllerClass);
93
- const selectedMethod = controllerInstance[method];
94
- console.log("selectedMethod", selectedMethod);
95
- console.log("requested method::", req.method);
96
- // Determine the HTTP method and pass request parameters accordingly
97
- switch (req.method) {
98
- case "GET":
99
- {
100
- console.log("query", req.query);
101
- let result = yield selectedMethod.call(controllerInstance, req.query);
102
- console.log('result---', result);
103
- let response = new ApiResponse_1.default(200, "Data Processed", result);
104
- res.json(response);
105
- }
106
- break;
107
- case "POST":
108
- try {
109
- let result = yield selectedMethod.call(controllerInstance, req.body);
110
- console.log("result", result);
111
- let response = new ApiResponse_1.default(200, "Data processed", result);
112
- res.json(response);
113
- }
114
- catch (error) {
115
- console.log("error post", error);
116
- let response = new ApiResponse_1.default(500, "Error while processing the data", "", error);
117
- res.status(500).json(response);
118
- }
119
- break;
120
- case "PUT":
121
- {
122
- let result = yield selectedMethod.call(controllerInstance, req.body);
123
- let response = new ApiResponse_1.default(200, "Data Processed", result);
124
- res.json(response);
125
- }
126
- break;
127
- case "DELETE":
128
- let result = yield selectedMethod.call(controllerInstance, req.body);
129
- let response = new ApiResponse_1.default(200, "Data Processed", result);
130
- res.json(response);
131
- break;
132
- default:
133
- res.status(405).json({ error: "Method Not Allowed" });
134
- }
135
- });
136
- }
137
- }
138
- exports.MainController = MainController;
139
- MainController.controllers = {
140
- gpm: GPMController_1.GPMController, // Assuming dependencies are injected directly into the GPMController constructor,
141
- cxConfigAsset: CxConfigAssetController_1.CxConfigAssetController,
142
- cxConfig: CxConfigController_1.CxConfigController,
143
- cxConfigOther: CxConfigOther_1.CxConfigOtherController,
144
- cxConfigExternalNumbers: CxConfigExternalNumbersController_1.CxConfigExternalNumbersController,
145
- cxConfigUIConfig: CxConfigUIconfigController_1.CxConfigUIConfigController,
146
- cxConfigQueueMenu: CxConfigQueueMenuController_1.CxConfigQueueMenuController,
147
- callLogs: CallLogsController_1.CallLogsController,
148
- audit: AuditLogController_1.AuditLogController,
149
- quickLinks: QuickLinkController_1.QuickLinksController,
150
- playbackscreenrecordings: PlaybackScreenrecordings_1.PlaybackScreenrecordingsController,
151
- callbackAndVoiceMail: CallbackAndVoicemailController_1.CallbackAndVoicemailController,
152
- navaigation: NavigationController_1.NavigationController,
153
- qualityForms: QualityFormsController_1.QualityFormsController,
154
- realtimeReportsWGDetails: RealTimeReportsWGDetailsController_1.RealTimeReportsWGDetailsController,
155
- realtimeQueueDetails: RealTimeReportQueueDetailsController_1.RealTimeReportsQueueDetailsController,
156
- hoopProfilesList: HoopProfilesListController_1.HoopProfilesListController,
157
- hoopOverrideBranches: HoopOverrideBranchesController_1.HoopOverrideBranchesController,
158
- hoopOperations: HoopOperationsController_1.HoopOperationsController,
159
- hoopHolidays: HoopHolidaysController_1.HoopHolidaysController,
160
- hoopPartialDays: HoopPartialDaysController_1.HoopPartialDaysController,
161
- hoopBusinessHours: HoopBusinessHoursController_1.HoopBusinessHoursController,
162
- hoopNotes: HoopNotesController_1.HoopNotesController,
163
- hoopMain: HoopMainController_1.HoopMainController,
164
- hoopProfilesController: HoopProfilesListController_2.HoopProfilesListControllerAConnect,
165
- hoopOverride: HoopOverrideBranchesController_2.HoopOverrideBranchesControllerAConnect,
166
- hoopOperationsController: HoopOperationsController_2.HoopOperationsControllerAConnect,
167
- hoopBuisnessHour: HoopBuisnessHours_1.HoopBusinessHoursControllerAConnect,
168
- taskInfoPanel: TaskInfoPanelController_1.TaskInfoPanelController,
169
- agentScorecard: AgentScorecardController_1.AgentScorecardController,
170
- channelSettings: ChannelSettingsController_1.ChannelSettingsController,
171
- channelSettingsTaskInfo: ChannelSettingTaskInfoController_1.ChannelSettingTaskInfoController,
172
- agentActions: AgentActionsController_1.AgentActionsController
173
- // Add more controllers here as needed
174
- };
@@ -1,23 +0,0 @@
1
- import { HoopServiceFactory } from "../../aws/impl/HoopServices/HoopServiceFactory";
2
- import { HoopBusinessHoursModel } from "../../models/impl/hoop/HoopBusinessHoursModel";
3
- export declare class HoopBusinessHoursControllerAConnect {
4
- private _dbFactory;
5
- constructor(dbFactory: HoopServiceFactory);
6
- /**
7
- * Method to get business hours based on the profile ID.
8
- * @param query - Object containing the profileName and instanceId
9
- * @returns - Business hours status
10
- */
11
- getBusinessHours(query: {
12
- profileName: string;
13
- instanceId: string;
14
- }): Promise<HoopBusinessHoursModel>;
15
- private formatTime;
16
- private evaluateTodayBusinessHours;
17
- private groupWeeklyTimings;
18
- private generateBusinessHoursString;
19
- private findNextReopeningDate;
20
- private checkHolidayOverride;
21
- private determineOpeningTime;
22
- private checkTimingsForToday;
23
- }