hgs-twilio-class-lib 1.1.50 → 1.1.51

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 (484) hide show
  1. package/lib/aws/abstract/ServiceObjectStore.js +2 -10
  2. package/lib/aws/abstract/ServiceObjectStore.js.map +1 -0
  3. package/lib/aws/abstract/ServiceOpenRequest.js +2 -10
  4. package/lib/aws/abstract/ServiceOpenRequest.js.map +1 -0
  5. package/lib/aws/abstract/ServiceRequest.js +2 -7
  6. package/lib/aws/abstract/ServiceRequest.js.map +1 -0
  7. package/lib/aws/abstract/ServiceResource.js +2 -31
  8. package/lib/aws/abstract/ServiceResource.js.map +1 -0
  9. package/lib/aws/abstract/ServiceResourceFactory.js +2 -14
  10. package/lib/aws/abstract/ServiceResourceFactory.js.map +1 -0
  11. package/lib/aws/abstract/ServiceTransaction.js +2 -11
  12. package/lib/aws/abstract/ServiceTransaction.js.map +1 -0
  13. package/lib/aws/impl/AWSAPIConfig.js +2 -38
  14. package/lib/aws/impl/AWSAPIConfig.js.map +1 -0
  15. package/lib/aws/impl/AWSClient.js +2 -35
  16. package/lib/aws/impl/AWSClient.js.map +1 -0
  17. package/lib/aws/impl/AWSConnectAPIConfig.js +2 -38
  18. package/lib/aws/impl/AWSConnectAPIConfig.js.map +1 -0
  19. package/lib/aws/impl/DynamoDB/DynamoOpenRequest.js +2 -24
  20. package/lib/aws/impl/DynamoDB/DynamoOpenRequest.js.map +1 -0
  21. package/lib/aws/impl/DynamoDB/DynamoRequest.js +2 -21
  22. package/lib/aws/impl/DynamoDB/DynamoRequest.js.map +1 -0
  23. package/lib/aws/impl/DynamoDB/DynamoResourse.js +2 -45
  24. package/lib/aws/impl/DynamoDB/DynamoResourse.js.map +1 -0
  25. package/lib/aws/impl/DynamoDB/DynamoServiceFactory.js +2 -63
  26. package/lib/aws/impl/DynamoDB/DynamoServiceFactory.js.map +1 -0
  27. package/lib/aws/impl/DynamoDB/DynamoTable.js +2 -126
  28. package/lib/aws/impl/DynamoDB/DynamoTable.js.map +1 -0
  29. package/lib/aws/impl/DynamoDB/DynamoTransaction.js +2 -37
  30. package/lib/aws/impl/DynamoDB/DynamoTransaction.js.map +1 -0
  31. package/lib/aws/impl/HoopServices/HoopService.js +2 -124
  32. package/lib/aws/impl/HoopServices/HoopService.js.map +1 -0
  33. package/lib/aws/impl/HoopServices/HoopServiceFactory.js +2 -53
  34. package/lib/aws/impl/HoopServices/HoopServiceFactory.js.map +1 -0
  35. package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.js +2 -24
  36. package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.js.map +1 -0
  37. package/lib/aws/impl/HoopServices/HoopServiceResource.js +2 -46
  38. package/lib/aws/impl/HoopServices/HoopServiceResource.js.map +1 -0
  39. package/lib/aws/impl/HoopServices/HoopServiceTransaction.js +2 -37
  40. package/lib/aws/impl/HoopServices/HoopServiceTransaction.js.map +1 -0
  41. package/lib/aws/interface/IDirection.js +2 -2
  42. package/lib/aws/interface/IDirection.js.map +1 -0
  43. package/lib/aws/interface/ILink.js +2 -2
  44. package/lib/aws/interface/ILink.js.map +1 -0
  45. package/lib/aws/interface/IServiceDBOpenRequest.js +2 -2
  46. package/lib/aws/interface/IServiceDBOpenRequest.js.map +1 -0
  47. package/lib/aws/interface/IServiceObjectStore.js +2 -2
  48. package/lib/aws/interface/IServiceObjectStore.js.map +1 -0
  49. package/lib/aws/interface/IServiceObjectStoreParameters.js +2 -2
  50. package/lib/aws/interface/IServiceObjectStoreParameters.js.map +1 -0
  51. package/lib/aws/interface/IServiceRequest.js +2 -2
  52. package/lib/aws/interface/IServiceRequest.js.map +1 -0
  53. package/lib/aws/interface/IServiceResource.js +2 -2
  54. package/lib/aws/interface/IServiceResource.js.map +1 -0
  55. package/lib/aws/interface/IServiceTransation.js +2 -2
  56. package/lib/aws/interface/IServiceTransation.js.map +1 -0
  57. package/lib/aws/interface/ISubResourceUri.js +2 -2
  58. package/lib/aws/interface/ISubResourceUri.js.map +1 -0
  59. package/lib/aws/interface/ISyncItemData.js +2 -1
  60. package/lib/aws/interface/ISyncItemData.js.map +1 -0
  61. package/lib/aws/interface/ISyncObjectStoreParameters.js +2 -1
  62. package/lib/aws/interface/ISyncObjectStoreParameters.js.map +1 -0
  63. package/lib/aws/interface/ISyncTransactionOptions.js +2 -2
  64. package/lib/aws/interface/ISyncTransactionOptions.js.map +1 -0
  65. package/lib/common/abstract/CommonError.js +2 -12
  66. package/lib/common/abstract/CommonError.js.map +1 -0
  67. package/lib/common/abstract/Database.js +2 -58
  68. package/lib/common/abstract/Database.js.map +1 -0
  69. package/lib/common/abstract/DatabaseClient.js +2 -21
  70. package/lib/common/abstract/DatabaseClient.js.map +1 -0
  71. package/lib/common/abstract/DatabaseClientConfig.js +2 -9
  72. package/lib/common/abstract/DatabaseClientConfig.js.map +1 -0
  73. package/lib/common/abstract/DatabaseFactory.js +2 -32
  74. package/lib/common/abstract/DatabaseFactory.js.map +1 -0
  75. package/lib/common/abstract/DatabaseObjectStore.js +2 -13
  76. package/lib/common/abstract/DatabaseObjectStore.js.map +1 -0
  77. package/lib/common/abstract/DatabaseOpenRequest.js +2 -13
  78. package/lib/common/abstract/DatabaseOpenRequest.js.map +1 -0
  79. package/lib/common/abstract/DatabaseRequest.js +2 -14
  80. package/lib/common/abstract/DatabaseRequest.js.map +1 -0
  81. package/lib/common/abstract/DatabaseTransaction.js +2 -13
  82. package/lib/common/abstract/DatabaseTransaction.js.map +1 -0
  83. package/lib/common/abstract/Filter.js +2 -30
  84. package/lib/common/abstract/Filter.js.map +1 -0
  85. package/lib/common/enum/ErrorTypes.js +2 -9
  86. package/lib/common/enum/ErrorTypes.js.map +1 -0
  87. package/lib/common/enum/FilterTypes.js +2 -14
  88. package/lib/common/enum/FilterTypes.js.map +1 -0
  89. package/lib/common/interface/IDatabaesInfo.js +2 -2
  90. package/lib/common/interface/IDatabaesInfo.js.map +1 -0
  91. package/lib/common/interface/IDatabase.js +2 -2
  92. package/lib/common/interface/IDatabase.js.map +1 -0
  93. package/lib/common/interface/IDatabaseClient.js +2 -2
  94. package/lib/common/interface/IDatabaseClient.js.map +1 -0
  95. package/lib/common/interface/IDatabaseConfig.js +2 -10
  96. package/lib/common/interface/IDatabaseConfig.js.map +1 -0
  97. package/lib/common/interface/IDatabaseDBOpenRequest.js +2 -2
  98. package/lib/common/interface/IDatabaseDBOpenRequest.js.map +1 -0
  99. package/lib/common/interface/IDatabaseFactory.js +2 -2
  100. package/lib/common/interface/IDatabaseFactory.js.map +1 -0
  101. package/lib/common/interface/IDatabaseObjectStore.js +2 -2
  102. package/lib/common/interface/IDatabaseObjectStore.js.map +1 -0
  103. package/lib/common/interface/IDatabaseObjectStoreParameters.js +2 -2
  104. package/lib/common/interface/IDatabaseObjectStoreParameters.js.map +1 -0
  105. package/lib/common/interface/IDatabaseRecord.js +2 -2
  106. package/lib/common/interface/IDatabaseRecord.js.map +1 -0
  107. package/lib/common/interface/IDatabaseRequest.js +2 -2
  108. package/lib/common/interface/IDatabaseRequest.js.map +1 -0
  109. package/lib/common/interface/IDatabaseTransaction.js +2 -2
  110. package/lib/common/interface/IDatabaseTransaction.js.map +1 -0
  111. package/lib/common/interface/IDatabaseTransactionOptions.js +2 -2
  112. package/lib/common/interface/IDatabaseTransactionOptions.js.map +1 -0
  113. package/lib/common/interface/IError.js +2 -2
  114. package/lib/common/interface/IError.js.map +1 -0
  115. package/lib/common/interface/IErrorDetails.js +2 -2
  116. package/lib/common/interface/IErrorDetails.js.map +1 -0
  117. package/lib/common/interface/IFilter.js +2 -2
  118. package/lib/common/interface/IFilter.js.map +1 -0
  119. package/lib/common/type/DatabaseReadyType.js +2 -2
  120. package/lib/common/type/DatabaseReadyType.js.map +1 -0
  121. package/lib/common/type/FilterInputType.js +2 -2
  122. package/lib/common/type/FilterInputType.js.map +1 -0
  123. package/lib/common/type/SearchParameterType.js +2 -3
  124. package/lib/common/type/SearchParameterType.js.map +1 -0
  125. package/lib/common/utils/dateFormat.js +2 -58
  126. package/lib/common/utils/dateFormat.js.map +1 -0
  127. package/lib/common/utils/filter.js +2 -99
  128. package/lib/common/utils/filter.js.map +1 -0
  129. package/lib/common/utils/newFilter.js +2 -126
  130. package/lib/common/utils/newFilter.js.map +1 -0
  131. package/lib/common/utils/pagination.js +2 -9
  132. package/lib/common/utils/pagination.js.map +1 -0
  133. package/lib/common/utils/search.js +2 -14
  134. package/lib/common/utils/search.js.map +1 -0
  135. package/lib/common/utils/sort.js +2 -13
  136. package/lib/common/utils/sort.js.map +1 -0
  137. package/lib/config/AWSConfig.js +2 -9
  138. package/lib/config/AWSConfig.js.map +1 -0
  139. package/lib/config/DatabaseConfig.js +2 -36
  140. package/lib/config/DatabaseConfig.js.map +1 -0
  141. package/lib/config/TwilioConfig.js +2 -7
  142. package/lib/config/TwilioConfig.js.map +1 -0
  143. package/lib/controller/Common.d.ts +0 -1
  144. package/lib/controller/Common.d.ts.map +1 -1
  145. package/lib/controller/Common.js +2 -76
  146. package/lib/controller/Common.js.map +1 -0
  147. package/lib/controller/DatabaseFactoryCollection.js +2 -14
  148. package/lib/controller/DatabaseFactoryCollection.js.map +1 -0
  149. package/lib/controller/MainController.js +2 -174
  150. package/lib/controller/MainController.js.map +1 -0
  151. package/lib/controller/aws/HoopBuisnessHours.js +2 -408
  152. package/lib/controller/aws/HoopBuisnessHours.js.map +1 -0
  153. package/lib/controller/aws/HoopOperationsController.js +2 -86
  154. package/lib/controller/aws/HoopOperationsController.js.map +1 -0
  155. package/lib/controller/aws/HoopOverrideBranchesController.js +2 -40
  156. package/lib/controller/aws/HoopOverrideBranchesController.js.map +1 -0
  157. package/lib/controller/aws/HoopProfilesListController.js +2 -61
  158. package/lib/controller/aws/HoopProfilesListController.js.map +1 -0
  159. package/lib/controller/aws/PlaybackScreenrecordings.js +2 -63
  160. package/lib/controller/aws/PlaybackScreenrecordings.js.map +1 -0
  161. package/lib/controller/twilio/AgentActionsController.js +2 -177
  162. package/lib/controller/twilio/AgentActionsController.js.map +1 -0
  163. package/lib/controller/twilio/AgentScorecardController.js +2 -173
  164. package/lib/controller/twilio/AgentScorecardController.js.map +1 -0
  165. package/lib/controller/twilio/AuditLogController.js +2 -137
  166. package/lib/controller/twilio/AuditLogController.js.map +1 -0
  167. package/lib/controller/twilio/CallLogsController.js +2 -131
  168. package/lib/controller/twilio/CallLogsController.js.map +1 -0
  169. package/lib/controller/twilio/CallbackAndVoicemailController.js +2 -114
  170. package/lib/controller/twilio/CallbackAndVoicemailController.js.map +1 -0
  171. package/lib/controller/twilio/ChannelSettingTaskInfoController.js +2 -117
  172. package/lib/controller/twilio/ChannelSettingTaskInfoController.js.map +1 -0
  173. package/lib/controller/twilio/ChannelSettingsController.js +2 -142
  174. package/lib/controller/twilio/ChannelSettingsController.js.map +1 -0
  175. package/lib/controller/twilio/CxConfigAssetController.d.ts.map +1 -1
  176. package/lib/controller/twilio/CxConfigAssetController.js +2 -128
  177. package/lib/controller/twilio/CxConfigAssetController.js.map +1 -0
  178. package/lib/controller/twilio/CxConfigController.js +2 -112
  179. package/lib/controller/twilio/CxConfigController.js.map +1 -0
  180. package/lib/controller/twilio/CxConfigExternalNumbersController.js +2 -138
  181. package/lib/controller/twilio/CxConfigExternalNumbersController.js.map +1 -0
  182. package/lib/controller/twilio/CxConfigOther.js +2 -128
  183. package/lib/controller/twilio/CxConfigOther.js.map +1 -0
  184. package/lib/controller/twilio/CxConfigQueueMenuController.js +2 -129
  185. package/lib/controller/twilio/CxConfigQueueMenuController.js.map +1 -0
  186. package/lib/controller/twilio/CxConfigUIconfigController.js +2 -132
  187. package/lib/controller/twilio/CxConfigUIconfigController.js.map +1 -0
  188. package/lib/controller/twilio/GPMController.js +2 -151
  189. package/lib/controller/twilio/GPMController.js.map +1 -0
  190. package/lib/controller/twilio/HoopBusinessHoursController.js +2 -285
  191. package/lib/controller/twilio/HoopBusinessHoursController.js.map +1 -0
  192. package/lib/controller/twilio/HoopHolidaysController.js +2 -150
  193. package/lib/controller/twilio/HoopHolidaysController.js.map +1 -0
  194. package/lib/controller/twilio/HoopMainController.js +2 -297
  195. package/lib/controller/twilio/HoopMainController.js.map +1 -0
  196. package/lib/controller/twilio/HoopNotesController.js +2 -149
  197. package/lib/controller/twilio/HoopNotesController.js.map +1 -0
  198. package/lib/controller/twilio/HoopOperationsController.js +2 -138
  199. package/lib/controller/twilio/HoopOperationsController.js.map +1 -0
  200. package/lib/controller/twilio/HoopOverrideBranchesController.js +2 -137
  201. package/lib/controller/twilio/HoopOverrideBranchesController.js.map +1 -0
  202. package/lib/controller/twilio/HoopPartialDaysController.js +2 -150
  203. package/lib/controller/twilio/HoopPartialDaysController.js.map +1 -0
  204. package/lib/controller/twilio/HoopProfilesListController.js +2 -147
  205. package/lib/controller/twilio/HoopProfilesListController.js.map +1 -0
  206. package/lib/controller/twilio/NavigationController.js +2 -170
  207. package/lib/controller/twilio/NavigationController.js.map +1 -0
  208. package/lib/controller/twilio/QualityFormsController.js +2 -129
  209. package/lib/controller/twilio/QualityFormsController.js.map +1 -0
  210. package/lib/controller/twilio/QuickLinkController.js +2 -122
  211. package/lib/controller/twilio/QuickLinkController.js.map +1 -0
  212. package/lib/controller/twilio/RealTimeReportQueueDetailsController.js +2 -126
  213. package/lib/controller/twilio/RealTimeReportQueueDetailsController.js.map +1 -0
  214. package/lib/controller/twilio/RealTimeReportsWGDetailsController.js +2 -160
  215. package/lib/controller/twilio/RealTimeReportsWGDetailsController.js.map +1 -0
  216. package/lib/controller/twilio/TaskInfoPanelController.js +2 -134
  217. package/lib/controller/twilio/TaskInfoPanelController.js.map +1 -0
  218. package/lib/controller/twilio/filterImpl/AgentScorecardFilter.js +2 -52
  219. package/lib/controller/twilio/filterImpl/AgentScorecardFilter.js.map +1 -0
  220. package/lib/controller/twilio/filterImpl/AuditLogsFilter.js +2 -89
  221. package/lib/controller/twilio/filterImpl/AuditLogsFilter.js.map +1 -0
  222. package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.js +2 -81
  223. package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.js.map +1 -0
  224. package/lib/controller/twilio/filterImpl/CallLogsFilter.js +2 -101
  225. package/lib/controller/twilio/filterImpl/CallLogsFilter.js.map +1 -0
  226. package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.js +2 -59
  227. package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.js.map +1 -0
  228. package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.js +2 -67
  229. package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.js.map +1 -0
  230. package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.js +2 -52
  231. package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.js.map +1 -0
  232. package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.js +2 -78
  233. package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.js.map +1 -0
  234. package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.js +2 -51
  235. package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.js.map +1 -0
  236. package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.js +2 -55
  237. package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.js.map +1 -0
  238. package/lib/controller/twilio/filterImpl/HoopNotesFilter.js +2 -51
  239. package/lib/controller/twilio/filterImpl/HoopNotesFilter.js.map +1 -0
  240. package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.js +2 -55
  241. package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.js.map +1 -0
  242. package/lib/controller/twilio/filterImpl/MainFilterService.js +2 -108
  243. package/lib/controller/twilio/filterImpl/MainFilterService.js.map +1 -0
  244. package/lib/controller/twilio/filterImpl/NavigationFilter.js +2 -90
  245. package/lib/controller/twilio/filterImpl/NavigationFilter.js.map +1 -0
  246. package/lib/controller/twilio/filterImpl/QueueDetailsFilter.js +2 -53
  247. package/lib/controller/twilio/filterImpl/QueueDetailsFilter.js.map +1 -0
  248. package/lib/controller/twilio/filterImpl/TaskCompleteFilter.js +2 -62
  249. package/lib/controller/twilio/filterImpl/TaskCompleteFilter.js.map +1 -0
  250. package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.js +2 -52
  251. package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.js.map +1 -0
  252. package/lib/express/ApiResponse.js +2 -11
  253. package/lib/express/ApiResponse.js.map +1 -0
  254. package/lib/express/RequestValidator.js +2 -77
  255. package/lib/express/RequestValidator.js.map +1 -0
  256. package/lib/express/RequireParamsPicker.js +2 -14
  257. package/lib/express/RequireParamsPicker.js.map +1 -0
  258. package/lib/express/ValidateRequireParameters.js +2 -39
  259. package/lib/express/ValidateRequireParameters.js.map +1 -0
  260. package/lib/index.js +2 -100
  261. package/lib/index.js.map +1 -0
  262. package/lib/models/BatchUpdateSkills.model.js +2 -11
  263. package/lib/models/BatchUpdateSkills.model.js.map +1 -0
  264. package/lib/models/CannedMessage.model.js +2 -1
  265. package/lib/models/CannedMessage.model.js.map +1 -0
  266. package/lib/models/ChannelSettingsTaskInfo.model.js +2 -1
  267. package/lib/models/ChannelSettingsTaskInfo.model.js.map +1 -0
  268. package/lib/models/CustomerFeedback.model.js +2 -1
  269. package/lib/models/CustomerFeedback.model.js.map +1 -0
  270. package/lib/models/Filter.model.js +2 -2
  271. package/lib/models/Filter.model.js.map +1 -0
  272. package/lib/models/Hoop.model.js +2 -9
  273. package/lib/models/Hoop.model.js.map +1 -0
  274. package/lib/models/Navigation.model.js +2 -8
  275. package/lib/models/Navigation.model.js.map +1 -0
  276. package/lib/models/Roles.Model.js +2 -1
  277. package/lib/models/Roles.Model.js.map +1 -0
  278. package/lib/models/abstract/BaseModel.js +2 -40
  279. package/lib/models/abstract/BaseModel.js.map +1 -0
  280. package/lib/models/abstract/BaseModelOld.js +2 -13
  281. package/lib/models/abstract/BaseModelOld.js.map +1 -0
  282. package/lib/models/impl/AgentActionsLogsModel.js +2 -89
  283. package/lib/models/impl/AgentActionsLogsModel.js.map +1 -0
  284. package/lib/models/impl/AgentActionsModel.js +2 -60
  285. package/lib/models/impl/AgentActionsModel.js.map +1 -0
  286. package/lib/models/impl/AgentScorecardModel.js +2 -282
  287. package/lib/models/impl/AgentScorecardModel.js.map +1 -0
  288. package/lib/models/impl/AuditLogsModel.js +2 -146
  289. package/lib/models/impl/AuditLogsModel.js.map +1 -0
  290. package/lib/models/impl/CallLogsModel.js +2 -109
  291. package/lib/models/impl/CallLogsModel.js.map +1 -0
  292. package/lib/models/impl/CallStatisticsModel.js +2 -52
  293. package/lib/models/impl/CallStatisticsModel.js.map +1 -0
  294. package/lib/models/impl/CategoryDetailsModel.js +2 -44
  295. package/lib/models/impl/CategoryDetailsModel.js.map +1 -0
  296. package/lib/models/impl/MemberModel.js +2 -170
  297. package/lib/models/impl/MemberModel.js.map +1 -0
  298. package/lib/models/impl/ModelValidationError.js +2 -15
  299. package/lib/models/impl/ModelValidationError.js.map +1 -0
  300. package/lib/models/impl/NavigationModel.js +2 -126
  301. package/lib/models/impl/NavigationModel.js.map +1 -0
  302. package/lib/models/impl/PerformanceStatisticsModel.js +2 -129
  303. package/lib/models/impl/PerformanceStatisticsModel.js.map +1 -0
  304. package/lib/models/impl/PlaybackScreenrecordings.js +2 -133
  305. package/lib/models/impl/PlaybackScreenrecordings.js.map +1 -0
  306. package/lib/models/impl/ProfileModel.js +2 -102
  307. package/lib/models/impl/ProfileModel.js.map +1 -0
  308. package/lib/models/impl/QualityFormsModel.js +2 -150
  309. package/lib/models/impl/QualityFormsModel.js.map +1 -0
  310. package/lib/models/impl/QuestionDetailsModel.js +2 -173
  311. package/lib/models/impl/QuestionDetailsModel.js.map +1 -0
  312. package/lib/models/impl/QueueDetailsModel.js +2 -261
  313. package/lib/models/impl/QueueDetailsModel.js.map +1 -0
  314. package/lib/models/impl/QueueModel.js +2 -156
  315. package/lib/models/impl/QueueModel.js.map +1 -0
  316. package/lib/models/impl/QuickLinkModel.js +2 -122
  317. package/lib/models/impl/QuickLinkModel.js.map +1 -0
  318. package/lib/models/impl/StatisticsNumberDetailsModel.js +2 -72
  319. package/lib/models/impl/StatisticsNumberDetailsModel.js.map +1 -0
  320. package/lib/models/impl/StatisticsTimeDetailsModel.js +2 -72
  321. package/lib/models/impl/StatisticsTimeDetailsModel.js.map +1 -0
  322. package/lib/models/impl/TaskAttributesModel.js +2 -108
  323. package/lib/models/impl/TaskAttributesModel.js.map +1 -0
  324. package/lib/models/impl/TaskChannelModel.js +2 -69
  325. package/lib/models/impl/TaskChannelModel.js.map +1 -0
  326. package/lib/models/impl/TaskComplete.js +2 -1
  327. package/lib/models/impl/TaskComplete.js.map +1 -0
  328. package/lib/models/impl/TaskInfoPanelModel.js +2 -69
  329. package/lib/models/impl/TaskInfoPanelModel.js.map +1 -0
  330. package/lib/models/impl/TaskModel.js +2 -234
  331. package/lib/models/impl/TaskModel.js.map +1 -0
  332. package/lib/models/impl/WorkGroupDetailsModel.js +2 -281
  333. package/lib/models/impl/WorkGroupDetailsModel.js.map +1 -0
  334. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.js +2 -140
  335. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.js.map +1 -0
  336. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.js +2 -12
  337. package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.js.map +1 -0
  338. package/lib/models/impl/callbackandvoicemail/CallbackModel.js +2 -82
  339. package/lib/models/impl/callbackandvoicemail/CallbackModel.js.map +1 -0
  340. package/lib/models/impl/callbackandvoicemail/VoicemailModel.js +2 -108
  341. package/lib/models/impl/callbackandvoicemail/VoicemailModel.js.map +1 -0
  342. package/lib/models/impl/channelsettings/ChannelSettingModel.js +2 -240
  343. package/lib/models/impl/channelsettings/ChannelSettingModel.js.map +1 -0
  344. package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.js +2 -106
  345. package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.js.map +1 -0
  346. package/lib/models/impl/channelsettings/TaskInfoAttributeModel.js +2 -80
  347. package/lib/models/impl/channelsettings/TaskInfoAttributeModel.js.map +1 -0
  348. package/lib/models/impl/channelsettings/TaskInfoModel.js +2 -52
  349. package/lib/models/impl/channelsettings/TaskInfoModel.js.map +1 -0
  350. package/lib/models/impl/cxconfig/CxConfigNamespace.js +2 -20
  351. package/lib/models/impl/cxconfig/CxConfigNamespace.js.map +1 -0
  352. package/lib/models/impl/cxconfig/CxConfigUIConfigModel.js +2 -103
  353. package/lib/models/impl/cxconfig/CxConfigUIConfigModel.js.map +1 -0
  354. package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.js +2 -103
  355. package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.js.map +1 -0
  356. package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.js +2 -149
  357. package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.js.map +1 -0
  358. package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.js +2 -179
  359. package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.js.map +1 -0
  360. package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.js +2 -213
  361. package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.js.map +1 -0
  362. package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.js +2 -96
  363. package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.js.map +1 -0
  364. package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.js +2 -128
  365. package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.js.map +1 -0
  366. package/lib/models/impl/hoop/HoopBusinessHoursModel.js +2 -122
  367. package/lib/models/impl/hoop/HoopBusinessHoursModel.js.map +1 -0
  368. package/lib/models/impl/hoop/HoopDescriptionModel.js +2 -64
  369. package/lib/models/impl/hoop/HoopDescriptionModel.js.map +1 -0
  370. package/lib/models/impl/hoop/HoopHolidaysImplModel.js +2 -118
  371. package/lib/models/impl/hoop/HoopHolidaysImplModel.js.map +1 -0
  372. package/lib/models/impl/hoop/HoopNotesImplModel.js +2 -117
  373. package/lib/models/impl/hoop/HoopNotesImplModel.js.map +1 -0
  374. package/lib/models/impl/hoop/HoopOperationsImplModel.js +2 -161
  375. package/lib/models/impl/hoop/HoopOperationsImplModel.js.map +1 -0
  376. package/lib/models/impl/hoop/HoopOverrideImplModel.js +2 -143
  377. package/lib/models/impl/hoop/HoopOverrideImplModel.js.map +1 -0
  378. package/lib/models/impl/hoop/HoopPartialDaysImplModel.js +2 -140
  379. package/lib/models/impl/hoop/HoopPartialDaysImplModel.js.map +1 -0
  380. package/lib/models/impl/hoop/HoopProfilesListImplModel.js +2 -104
  381. package/lib/models/impl/hoop/HoopProfilesListImplModel.js.map +1 -0
  382. package/lib/models/impl/hoop/HoopWeeklyTimingModel.js +2 -86
  383. package/lib/models/impl/hoop/HoopWeeklyTimingModel.js.map +1 -0
  384. package/lib/models/index.js +2 -53
  385. package/lib/models/index.js.map +1 -0
  386. package/lib/models/interface/IBaseModel.js +2 -2
  387. package/lib/models/interface/IBaseModel.js.map +1 -0
  388. package/lib/models/types/AgentScorecard.type.js +2 -7
  389. package/lib/models/types/AgentScorecard.type.js.map +1 -0
  390. package/lib/models/types/AuditLog.type.js +2 -10
  391. package/lib/models/types/AuditLog.type.js.map +1 -0
  392. package/lib/models/types/CallLog.type.js +2 -10
  393. package/lib/models/types/CallLog.type.js.map +1 -0
  394. package/lib/models/types/ChannelSetting.type.js +2 -11
  395. package/lib/models/types/ChannelSetting.type.js.map +1 -0
  396. package/lib/models/types/CxConfig.type.js +2 -43
  397. package/lib/models/types/CxConfig.type.js.map +1 -0
  398. package/lib/models/types/Hoop.type.js +2 -13
  399. package/lib/models/types/Hoop.type.js.map +1 -0
  400. package/lib/models/types/Navigation.type.js +2 -8
  401. package/lib/models/types/Navigation.type.js.map +1 -0
  402. package/lib/models/types/Profile.type.js +2 -2
  403. package/lib/models/types/Profile.type.js.map +1 -0
  404. package/lib/models/types/QueueDetails.type.js +2 -7
  405. package/lib/models/types/QueueDetails.type.js.map +1 -0
  406. package/lib/models/types/TaskComplete.type.js +2 -6
  407. package/lib/models/types/TaskComplete.type.js.map +1 -0
  408. package/lib/models/types/TaskInfoPanel.type.js +2 -7
  409. package/lib/models/types/TaskInfoPanel.type.js.map +1 -0
  410. package/lib/server.js +2 -39
  411. package/lib/server.js.map +1 -0
  412. package/lib/twilio/abstract/ServiceObjectStore.js +2 -10
  413. package/lib/twilio/abstract/ServiceObjectStore.js.map +1 -0
  414. package/lib/twilio/abstract/ServiceOpenRequest.js +2 -10
  415. package/lib/twilio/abstract/ServiceOpenRequest.js.map +1 -0
  416. package/lib/twilio/abstract/ServiceRequest.js +2 -7
  417. package/lib/twilio/abstract/ServiceRequest.js.map +1 -0
  418. package/lib/twilio/abstract/ServiceResource.js +2 -37
  419. package/lib/twilio/abstract/ServiceResource.js.map +1 -0
  420. package/lib/twilio/abstract/ServiceResourceFactory.js +2 -18
  421. package/lib/twilio/abstract/ServiceResourceFactory.js.map +1 -0
  422. package/lib/twilio/abstract/ServiceTransaction.js +2 -11
  423. package/lib/twilio/abstract/ServiceTransaction.js.map +1 -0
  424. package/lib/twilio/abstract/SyncServiceItemResource.js +2 -60
  425. package/lib/twilio/abstract/SyncServiceItemResource.js.map +1 -0
  426. package/lib/twilio/abstract/TwilioClientConfig.js +2 -1
  427. package/lib/twilio/abstract/TwilioClientConfig.js.map +1 -0
  428. package/lib/twilio/impl/TwilioAPIKeyConfig.js +2 -31
  429. package/lib/twilio/impl/TwilioAPIKeyConfig.js.map +1 -0
  430. package/lib/twilio/impl/TwilioAuthTokenConfig.js +2 -24
  431. package/lib/twilio/impl/TwilioAuthTokenConfig.js.map +1 -0
  432. package/lib/twilio/impl/TwilioClient.js +2 -21
  433. package/lib/twilio/impl/TwilioClient.js.map +1 -0
  434. package/lib/twilio/impl/message/messageService.js +2 -42
  435. package/lib/twilio/impl/message/messageService.js.map +1 -0
  436. package/lib/twilio/impl/sync/SyncDocument.js +2 -52
  437. package/lib/twilio/impl/sync/SyncDocument.js.map +1 -0
  438. package/lib/twilio/impl/sync/SyncDocumentTransaction.js +2 -31
  439. package/lib/twilio/impl/sync/SyncDocumentTransaction.js.map +1 -0
  440. package/lib/twilio/impl/sync/SyncList.js +2 -52
  441. package/lib/twilio/impl/sync/SyncList.js.map +1 -0
  442. package/lib/twilio/impl/sync/SyncListItem.js +2 -22
  443. package/lib/twilio/impl/sync/SyncListItem.js.map +1 -0
  444. package/lib/twilio/impl/sync/SyncListTransaction.js +2 -31
  445. package/lib/twilio/impl/sync/SyncListTransaction.js.map +1 -0
  446. package/lib/twilio/impl/sync/SyncMap.js +2 -139
  447. package/lib/twilio/impl/sync/SyncMap.js.map +1 -0
  448. package/lib/twilio/impl/sync/SyncMapItem.js +2 -7
  449. package/lib/twilio/impl/sync/SyncMapItem.js.map +1 -0
  450. package/lib/twilio/impl/sync/SyncMapTransaction.js +2 -38
  451. package/lib/twilio/impl/sync/SyncMapTransaction.js.map +1 -0
  452. package/lib/twilio/impl/sync/SyncOpenRequest.js +2 -24
  453. package/lib/twilio/impl/sync/SyncOpenRequest.js.map +1 -0
  454. package/lib/twilio/impl/sync/SyncRequest.js +2 -21
  455. package/lib/twilio/impl/sync/SyncRequest.js.map +1 -0
  456. package/lib/twilio/impl/sync/SyncResource.js +2 -97
  457. package/lib/twilio/impl/sync/SyncResource.js.map +1 -0
  458. package/lib/twilio/impl/sync/SyncServiceFactory.js +2 -117
  459. package/lib/twilio/impl/sync/SyncServiceFactory.js.map +1 -0
  460. package/lib/twilio/interface/IDirection.js +2 -2
  461. package/lib/twilio/interface/IDirection.js.map +1 -0
  462. package/lib/twilio/interface/ILink.js +2 -2
  463. package/lib/twilio/interface/ILink.js.map +1 -0
  464. package/lib/twilio/interface/IServiceDBOpenRequest.js +2 -2
  465. package/lib/twilio/interface/IServiceDBOpenRequest.js.map +1 -0
  466. package/lib/twilio/interface/IServiceObjectStore.js +2 -2
  467. package/lib/twilio/interface/IServiceObjectStore.js.map +1 -0
  468. package/lib/twilio/interface/IServiceObjectStoreParameters.js +2 -2
  469. package/lib/twilio/interface/IServiceObjectStoreParameters.js.map +1 -0
  470. package/lib/twilio/interface/IServiceRequest.js +2 -2
  471. package/lib/twilio/interface/IServiceRequest.js.map +1 -0
  472. package/lib/twilio/interface/IServiceResource.js +2 -2
  473. package/lib/twilio/interface/IServiceResource.js.map +1 -0
  474. package/lib/twilio/interface/IServiceTransation.js +2 -2
  475. package/lib/twilio/interface/IServiceTransation.js.map +1 -0
  476. package/lib/twilio/interface/ISubResourceUri.js +2 -2
  477. package/lib/twilio/interface/ISubResourceUri.js.map +1 -0
  478. package/lib/twilio/interface/ISyncItemData.js +2 -1
  479. package/lib/twilio/interface/ISyncItemData.js.map +1 -0
  480. package/lib/twilio/interface/ISyncObjectStoreParameters.js +2 -1
  481. package/lib/twilio/interface/ISyncObjectStoreParameters.js.map +1 -0
  482. package/lib/twilio/interface/ISyncTransactionOptions.js +2 -2
  483. package/lib/twilio/interface/ISyncTransactionOptions.js.map +1 -0
  484. package/package.json +10 -2
@@ -1,128 +1,2 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CxConfigOtherController = void 0;
13
- const DatabaseConfig_1 = require("../../config/DatabaseConfig");
14
- const CxConfiguratorOtherModel_1 = require("../../models/impl/cxconfig/CxConfiguratorOtherModel");
15
- const Common_1 = require("../Common");
16
- const CxConfigOtherFilter_1 = require("./filterImpl/CxConfigOtherFilter");
17
- class CxConfigOtherController {
18
- constructor(dbFactory) {
19
- this._dbFactory = dbFactory;
20
- }
21
- add(data) {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- try {
24
- const configother = new CxConfiguratorOtherModel_1.CxConfiguratorOtherModel(data.id, data.name, data.key, data.value, data.description, data.createdAt, data.updatedAt);
25
- if (configother.validationMessages.length > 0) {
26
- throw configother.validationMessages;
27
- }
28
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
29
- const database = databaseConnection.result;
30
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable, "readwrite");
31
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable);
32
- let result = yield table.add(configother.serialize, configother.id);
33
- return result;
34
- }
35
- catch (error) {
36
- const response = (0, Common_1.handleError)(error);
37
- return response;
38
- }
39
- });
40
- }
41
- get(query) {
42
- return __awaiter(this, void 0, void 0, function* () {
43
- try {
44
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
45
- const database = databaseConnection.result;
46
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable, "readwrite");
47
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable);
48
- let result = yield table.get(query.id);
49
- let response = {
50
- data: result,
51
- statusCode: 200,
52
- };
53
- return response;
54
- }
55
- catch (error) {
56
- const response = (0, Common_1.handleError)(error);
57
- return response;
58
- }
59
- });
60
- }
61
- getAll(query) {
62
- return __awaiter(this, void 0, void 0, function* () {
63
- try {
64
- console.log(query);
65
- // changed to Specfic factory as method override is not working
66
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
67
- const database = databaseConnection.result;
68
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable, "readwrite");
69
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable);
70
- const allowedFields = [];
71
- if (query.getFilterContent) {
72
- query.allowedFields = allowedFields;
73
- }
74
- query.category = "CXConfig-Other";
75
- let result = yield table.getAll(query);
76
- if (query.getFilterContent) {
77
- result.filterContent = CxConfigOtherFilter_1.CXConfigOtherFilterService.getFilterData(result.filterOptions);
78
- }
79
- if ("filterOptions" in result) {
80
- delete result.filterOptions;
81
- }
82
- return { result, meta: query };
83
- }
84
- catch (error) {
85
- console.log('error ', error);
86
- return error;
87
- }
88
- });
89
- }
90
- edit(data) {
91
- return __awaiter(this, void 0, void 0, function* () {
92
- try {
93
- const configother = new CxConfiguratorOtherModel_1.CxConfiguratorOtherModel(data.id, data.name, data.key, data.value, data.description, data.createdAt, data.updatedAt);
94
- if (configother.validationMessages.length > 0) {
95
- throw configother.validationMessages;
96
- }
97
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
98
- const database = databaseConnection.result;
99
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable, "readwrite");
100
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable);
101
- const key = configother.id;
102
- let result = yield table.put(configother.serialize, key);
103
- return result;
104
- }
105
- catch (error) {
106
- console.log("error ", error);
107
- return error;
108
- }
109
- });
110
- }
111
- delete(query) {
112
- return __awaiter(this, void 0, void 0, function* () {
113
- try {
114
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
115
- const database = databaseConnection.result;
116
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable, "readwrite");
117
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable);
118
- let result = yield table.delete(query.id);
119
- return result;
120
- }
121
- catch (error) {
122
- const response = (0, Common_1.handleError)(error);
123
- return response;
124
- }
125
- });
126
- }
127
- }
128
- exports.CxConfigOtherController = CxConfigOtherController;
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.CxConfigOtherController=void 0;const e=require("tslib"),t=require("../../config/DatabaseConfig"),a=require("../../models/impl/cxconfig/CxConfiguratorOtherModel"),r=require("../Common"),i=require("./filterImpl/CxConfigOtherFilter");exports.CxConfigOtherController=class{constructor(e){this._dbFactory=e}add(i){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=new a.CxConfiguratorOtherModel(i.id,i.name,i.key,i.value,i.description,i.createdAt,i.updatedAt);if(e.validationMessages.length>0)throw e.validationMessages;const r=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let o=r.transaction(t.databaseConfig.tables.cxConfigOtherTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigOtherTable);return yield o.add(e.serialize,e.id)}catch(e){return(0,r.handleError)(e)}}))}get(a){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let r=e.transaction(t.databaseConfig.tables.cxConfigOtherTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigOtherTable);return{data:yield r.get(a.id),statusCode:200}}catch(e){return(0,r.handleError)(e)}}))}getAll(a){return e.__awaiter(this,void 0,void 0,(function*(){try{console.log(a);const e=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let r=e.transaction(t.databaseConfig.tables.cxConfigOtherTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigOtherTable);const o=[];a.getFilterContent&&(a.allowedFields=o),a.category="CXConfig-Other";let n=yield r.getAll(a);return a.getFilterContent&&(n.filterContent=i.CXConfigOtherFilterService.getFilterData(n.filterOptions)),"filterOptions"in n&&delete n.filterOptions,{result:n,meta:a}}catch(e){return console.log("error ",e),e}}))}edit(r){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=new a.CxConfiguratorOtherModel(r.id,r.name,r.key,r.value,r.description,r.createdAt,r.updatedAt);if(e.validationMessages.length>0)throw e.validationMessages;const i=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let o=i.transaction(t.databaseConfig.tables.cxConfigOtherTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigOtherTable);const n=e.id;return yield o.put(e.serialize,n)}catch(e){return console.log("error ",e),e}}))}delete(a){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let r=e.transaction(t.databaseConfig.tables.cxConfigOtherTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigOtherTable);return yield r.delete(a.id)}catch(e){return(0,r.handleError)(e)}}))}};
2
+ //# sourceMappingURL=CxConfigOther.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CxConfigOther.js","sources":["../../../../controller/twilio/CxConfigOther.ts"],"sourcesContent":[null],"names":["DatabaseConfig_1","require","CxConfiguratorOtherModel_1","Common_1","CxConfigOtherFilter_1","exports","CxConfigOtherController","constructor","dbFactory","this","_dbFactory","add","data","configother","CxConfiguratorOtherModel","id","name","key","value","description","createdAt","updatedAt","validationMessages","length","database","asyncOpen","databaseConfig","databaseName","version","result","table","transaction","tables","cxConfigOtherTable","objectStore","serialize","error","get","query","statusCode","getAll","console","log","allowedFields","getFilterContent","category","filterContent","CXConfigOtherFilterService","getFilterData","filterOptions","meta","edit","put","delete"],"mappings":"uHAG6DA,EAAAC,QAAA,+BAGkCC,EAAAD,QAAA,uDACvDE,EAAAF,QAAA,aACqCG,EAAAH,QAAA,oCAE7EI,QAqJCC,wBArJD,MAEE,WAAAC,CAAYC,GACVC,KAAKC,WAAaF,CACnB,CAEK,GAAAG,CAAIC,sD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EAAMM,mBACRf,EAAOiB,cAAgB1C,EAA0B2C,2BAACC,cAAcnB,EAAOoB,gBAGrE,kBAAmBpB,UACdA,EAAOoB,cAET,CAAEpB,SAAQqB,KAAMZ,EACxB,CAAC,MAAOF,GAEP,OADAK,QAAQC,IAAI,SAAUN,GACfA,CACR,IACF,CAEK,IAAAe,CAAKvC,sDACT,IAEE,MAAMC,EAAc,IAAIX,EAAAY,yBACtBF,EAAKG,GAAIH,EAAKI,KAAMJ,EAAKK,IAAKL,EAAKM,MACnCN,EAAKO,YAAaP,EAAKQ,UAAWR,EAAKS,WAEzC,GAAIR,EAAYS,mBAAmBC,OAAS,EAC1C,MAAMV,EAAYS,mBAEpB,MAKME,SAJEf,KAAKC,WAAWe,UACpBzB,EAAA0B,eAAeC,aACf3B,iBAAe4B,UAEiBC,OAKpC,IAAIC,EAJkBN,EAASO,YAC7B/B,EAAA0B,eAAeM,OAAOC,mBACtB,aAEwBC,YACxBlC,EAAc0B,eAACM,OAAOC,oBAExB,MAAMhB,EAAMJ,EAAYE,GAExB,aADmBe,EAAMsB,IAAIvC,EAAYsB,UAAWlB,EAErD,CAAC,MAAOmB,GAEP,OADAK,QAAQC,IAAI,SAAUN,GACfA,CACR,IACF,CAEK,OAAOE,sDACX,IACE,MAKMd,SAJEf,KAAKC,WAAWe,UACpBzB,EAAA0B,eAAeC,aACf3B,iBAAe4B,UAEiBC,OAKpC,IAAIC,EAJkBN,EAASO,YAC7B/B,EAAA0B,eAAeM,OAAOC,mBACtB,aAEwBC,YACxBlC,EAAc0B,eAACM,OAAOC,oBAGxB,aADmBH,EAAMuB,OAAOf,EAAMvB,GAEvC,CAAC,MAAOqB,GAEP,OADiB,EAAAjC,eAAYiC,EAE9B,IACF"}
@@ -1,129 +1,2 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CxConfigQueueMenuController = void 0;
13
- const DatabaseConfig_1 = require("../../config/DatabaseConfig");
14
- const CxConfiguratorQueueMenuModel_1 = require("../../models/impl/cxconfig/CxConfiguratorQueueMenuModel");
15
- const CxConfigQueueMenuFilter_1 = require("./filterImpl/CxConfigQueueMenuFilter");
16
- class CxConfigQueueMenuController {
17
- constructor(dbFactory) {
18
- this._dbFactory = dbFactory;
19
- }
20
- add(data) {
21
- return __awaiter(this, void 0, void 0, function* () {
22
- try {
23
- const cxqueuemenu = new CxConfiguratorQueueMenuModel_1.CxConfiguratorQueueMenuModel(data.id, data.name, data.category, data.type, data.value, data.language, data.fileName, data.voice, data.order, data.createdAt, data.updatedAt);
24
- if (cxqueuemenu.validationMessages.length > 0) {
25
- throw cxqueuemenu.validationMessages;
26
- }
27
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
28
- const database = databaseConnection.result;
29
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable, "readwrite");
30
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable);
31
- let result = yield table.add(cxqueuemenu.serialize, cxqueuemenu.id);
32
- return result;
33
- }
34
- catch (error) {
35
- console.log('error occrred', error);
36
- throw error;
37
- }
38
- });
39
- }
40
- get(query) {
41
- return __awaiter(this, void 0, void 0, function* () {
42
- try {
43
- console.log(query);
44
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
45
- const database = databaseConnection.result;
46
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable, "readwrite");
47
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable);
48
- let result = yield table.get(query.id);
49
- return result;
50
- }
51
- catch (error) {
52
- console.log('error ', error);
53
- return error;
54
- }
55
- });
56
- }
57
- //Get GPM Messages
58
- getAll(query) {
59
- return __awaiter(this, void 0, void 0, function* () {
60
- try {
61
- console.log(query);
62
- // changed to Specfic factory as method override is not working
63
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
64
- const database = databaseConnection.result;
65
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable, "readwrite");
66
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable);
67
- const allowedFields = [
68
- "type",
69
- "voice",
70
- "order"
71
- ];
72
- if (query.getFilterContent) {
73
- query.allowedFields = allowedFields;
74
- }
75
- query.category = "CXConfig-QueueMenu";
76
- let result = yield table.getAll(query);
77
- if (query.getFilterContent) {
78
- result.filterContent = CxConfigQueueMenuFilter_1.CXConfigQueueMenuFilterService.getFilterData(result.filterOptions);
79
- }
80
- if ("filterOptions" in result) {
81
- delete result.filterOptions;
82
- }
83
- return { result, meta: query };
84
- }
85
- catch (error) {
86
- console.log('error ', error);
87
- return error;
88
- }
89
- });
90
- }
91
- edit(data) {
92
- return __awaiter(this, void 0, void 0, function* () {
93
- try {
94
- const cxqueuemenu = new CxConfiguratorQueueMenuModel_1.CxConfiguratorQueueMenuModel(data.id, data.name, data.category, data.type, data.value, data.language, data.fileName, data.voice, data.order, data.createdAt, data.updatedAt);
95
- if (cxqueuemenu.validationMessages.length > 0) {
96
- throw cxqueuemenu.validationMessages;
97
- }
98
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
99
- const database = databaseConnection.result;
100
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable, "readwrite");
101
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable);
102
- const key = cxqueuemenu.id;
103
- let result = yield table.put(cxqueuemenu.serialize, key);
104
- return result;
105
- }
106
- catch (error) {
107
- console.log('error ', error);
108
- return error;
109
- }
110
- });
111
- }
112
- delete(query) {
113
- return __awaiter(this, void 0, void 0, function* () {
114
- try {
115
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
116
- const database = databaseConnection.result;
117
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable, "readwrite");
118
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable);
119
- let result = yield table.delete(query.id);
120
- return result;
121
- }
122
- catch (error) {
123
- console.log('delete record error ', error);
124
- return error;
125
- }
126
- });
127
- }
128
- }
129
- exports.CxConfigQueueMenuController = CxConfigQueueMenuController;
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.CxConfigQueueMenuController=void 0;const e=require("tslib"),t=require("../../config/DatabaseConfig"),a=require("../../models/impl/cxconfig/CxConfiguratorQueueMenuModel"),o=require("./filterImpl/CxConfigQueueMenuFilter");exports.CxConfigQueueMenuController=class{constructor(e){this._dbFactory=e}add(o){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=new a.CxConfiguratorQueueMenuModel(o.id,o.name,o.category,o.type,o.value,o.language,o.fileName,o.voice,o.order,o.createdAt,o.updatedAt);if(e.validationMessages.length>0)throw e.validationMessages;const n=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let i=n.transaction(t.databaseConfig.tables.cxConfigQueueMenuTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigQueueMenuTable);return yield i.add(e.serialize,e.id)}catch(e){throw console.log("error occrred",e),e}}))}get(a){return e.__awaiter(this,void 0,void 0,(function*(){try{console.log(a);const e=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let o=e.transaction(t.databaseConfig.tables.cxConfigQueueMenuTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigQueueMenuTable);return yield o.get(a.id)}catch(e){return console.log("error ",e),e}}))}getAll(a){return e.__awaiter(this,void 0,void 0,(function*(){try{console.log(a);const e=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let n=e.transaction(t.databaseConfig.tables.cxConfigQueueMenuTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigQueueMenuTable);const i=["type","voice","order"];a.getFilterContent&&(a.allowedFields=i),a.category="CXConfig-QueueMenu";let r=yield n.getAll(a);return a.getFilterContent&&(r.filterContent=o.CXConfigQueueMenuFilterService.getFilterData(r.filterOptions)),"filterOptions"in r&&delete r.filterOptions,{result:r,meta:a}}catch(e){return console.log("error ",e),e}}))}edit(o){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=new a.CxConfiguratorQueueMenuModel(o.id,o.name,o.category,o.type,o.value,o.language,o.fileName,o.voice,o.order,o.createdAt,o.updatedAt);if(e.validationMessages.length>0)throw e.validationMessages;const n=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let i=n.transaction(t.databaseConfig.tables.cxConfigQueueMenuTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigQueueMenuTable);const r=e.id;return yield i.put(e.serialize,r)}catch(e){return console.log("error ",e),e}}))}delete(a){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let o=e.transaction(t.databaseConfig.tables.cxConfigQueueMenuTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigQueueMenuTable);return yield o.delete(a.id)}catch(e){return console.log("delete record error ",e),e}}))}};
2
+ //# sourceMappingURL=CxConfigQueueMenuController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CxConfigQueueMenuController.js","sources":["../../../../controller/twilio/CxConfigQueueMenuController.ts"],"sourcesContent":[null],"names":["DatabaseConfig_1","require","CxConfiguratorQueueMenuModel_1","CxConfigQueueMenuFilter_1","exports","CxConfigQueueMenuController","constructor","dbFactory","this","_dbFactory","add","data","cxqueuemenu","CxConfiguratorQueueMenuModel","id","name","category","type","value","language","fileName","voice","order","createdAt","updatedAt","validationMessages","length","database","asyncOpen","databaseConfig","databaseName","version","result","table","transaction","tables","cxConfigQueueMenuTable","objectStore","serialize","error","console","log","get","query","getAll","allowedFields","getFilterContent","filterContent","CXConfigQueueMenuFilterService","getFilterData","filterOptions","meta","edit","key","put","delete"],"mappings":"2HAG6DA,EAAAC,QAAA,+BAG0CC,EAAAD,QAAA,2DAClBE,EAAAF,QAAA,wCAErFG,QAsHCC,4BAtHD,MAEI,WAAAC,CAAYC,GACRC,KAAKC,WAAaF,CACrB,CAEK,GAAAG,CAAIC,sDACN,IACI,MAAMC,EAAc,IAAIV,EAAAW,6BACpBF,EAAKG,GAAIH,EAAKI,KAAMJ,EAAKK,SAAUL,EAAKM,KAAMN,EAAKO,MACnDP,EAAKQ,SAAUR,EAAKS,SAAUT,EAAKU,MAAOV,EAAKW,MAAOX,EAAKY,UAAWZ,EAAKa,WAG/E,GAAIZ,EAAYa,mBAAmBC,OAAS,EACxC,MAAMd,EAAYa,mBAEtB,MACME,SAD6CnB,KAAKC,WAAWmB,UAAU5B,EAAA6B,eAAeC,aAAc9B,iBAAe+B,UACrFC,OAEpC,IAAIC,EADkBN,EAASO,YAAYlC,EAAA6B,eAAeM,OAAOC,uBAAwB,aAC/DC,YAAYrC,EAAc6B,eAACM,OAAOC,wBAE5D,aADmBH,EAAMvB,IAAIE,EAAY0B,UAAW1B,EAAYE,GAEnE,C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AG/E,GAAIZ,EAAYa,mBAAmBC,OAAS,EACxC,MAAMd,EAAYa,mBAEtB,MACME,SAD6CnB,KAAKC,WAAWmB,UAAU5B,EAAA6B,eAAeC,aAAc9B,iBAAe+B,UACrFC,OAEpC,IAAIC,EADkBN,EAASO,YAAYlC,EAAA6B,eAAeM,OAAOC,uBAAwB,aAC/DC,YAAYrC,EAAc6B,eAACM,OAAOC,wBAC5D,MAAMiB,EAAMzC,EAAYE,GAExB,aADmBmB,EAAMqB,IAAI1C,EAAY0B,UAAWe,EAEvD,CACD,MAAOd,GAEH,OADAC,QAAQC,IAAI,SAAUF,GACfA,CACV,IACJ,CAEK,OAAOI,sDACT,IACI,MACMhB,SAD6CnB,KAAKC,WAAWmB,UAAU5B,EAAA6B,eAAeC,aAAc9B,iBAAe+B,UACrFC,OAEpC,IAAIC,EADkBN,EAASO,YAAYlC,EAAA6B,eAAeM,OAAOC,uBAAwB,aAC/DC,YAAYrC,EAAc6B,eAACM,OAAOC,wBAE5D,aADmBH,EAAMsB,OAAOZ,EAAM7B,GAEzC,CACD,MAAOyB,GAEH,OADAC,QAAQC,IAAI,uBAAwBF,GAC7BA,CACV,IACJ"}
@@ -1,132 +1,2 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CxConfigUIConfigController = void 0;
13
- const DatabaseConfig_1 = require("../../config/DatabaseConfig");
14
- const CxConfigUIConfigModel_1 = require("../../models/impl/cxconfig/CxConfigUIConfigModel");
15
- const CxConfigUIconfigFilter_1 = require("./filterImpl/CxConfigUIconfigFilter");
16
- // Controller class for managing GPM UI Configuration data
17
- class CxConfigUIConfigController {
18
- // Constructor to initialize the database factory
19
- constructor(dbFactory) {
20
- this._dbFactory = dbFactory;
21
- }
22
- // Validates the data before adding it to the database
23
- add(data) {
24
- return __awaiter(this, void 0, void 0, function* () {
25
- try {
26
- const gpmuiconfig = new CxConfigUIConfigModel_1.CxGpmUIConfigModel(data.id, data.name, data.value, data.description, data.createdAt, data.updatedAt);
27
- if (gpmuiconfig.validationMessages.length > 0) {
28
- throw gpmuiconfig.validationMessages;
29
- }
30
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
31
- const database = databaseConnection.result;
32
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable, "readwrite");
33
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable);
34
- let result = yield table.add(gpmuiconfig.serialize, gpmuiconfig.id);
35
- return result;
36
- }
37
- catch (error) {
38
- console.log("error occurred", error);
39
- throw error;
40
- }
41
- });
42
- }
43
- // Method to get a specific GPM UI Configuration data by ID
44
- get(query) {
45
- return __awaiter(this, void 0, void 0, function* () {
46
- try {
47
- console.log(query);
48
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
49
- const database = databaseConnection.result;
50
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable, "readwrite");
51
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable);
52
- let result = yield table.get(query.id);
53
- return result;
54
- }
55
- catch (error) {
56
- console.log("error ", error);
57
- return error;
58
- }
59
- });
60
- }
61
- // Method to get all GPM UI Configuration data based on search parameters
62
- getAll(query) {
63
- return __awaiter(this, void 0, void 0, function* () {
64
- try {
65
- console.log(query);
66
- // Specific factory used as method override is not working
67
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
68
- const database = databaseConnection.result;
69
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable, "readwrite");
70
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable);
71
- const allowedFields = [];
72
- if (query.getFilterContent) {
73
- query.allowedFields = allowedFields;
74
- }
75
- query.category = "CXConfig-UIConfig";
76
- let result = yield table.getAll(query);
77
- if (query.getFilterContent) {
78
- result.filterContent = CxConfigUIconfigFilter_1.CXConfigUIConfigFilterService.getFilterData(result.filterOptions);
79
- }
80
- if ("filterOptions" in result) {
81
- delete result.filterOptions;
82
- }
83
- return { result, meta: query };
84
- }
85
- catch (error) {
86
- console.log("error ", error);
87
- return error;
88
- }
89
- });
90
- }
91
- // Method to edit existing GPM UI Configuration data
92
- // Validates the data before updating it in the database
93
- edit(data) {
94
- return __awaiter(this, void 0, void 0, function* () {
95
- try {
96
- const gpmuiconfig = new CxConfigUIConfigModel_1.CxGpmUIConfigModel(data.id, data.name, data.value, data.description, data.createdAt, data.updatedAt);
97
- if (gpmuiconfig.validationMessages.length > 0) {
98
- throw gpmuiconfig.validationMessages;
99
- }
100
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
101
- const database = databaseConnection.result;
102
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable, "readwrite");
103
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable);
104
- const key = gpmuiconfig.id;
105
- let result = yield table.put(gpmuiconfig.serialize, key);
106
- return result;
107
- }
108
- catch (error) {
109
- console.log("error ", error);
110
- return error;
111
- }
112
- });
113
- }
114
- // Method to delete a specific GPM UI Configuration data by ID
115
- delete(query) {
116
- return __awaiter(this, void 0, void 0, function* () {
117
- try {
118
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
119
- const database = databaseConnection.result;
120
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable, "readwrite");
121
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable);
122
- let result = yield table.delete(query.id);
123
- return result;
124
- }
125
- catch (error) {
126
- console.log("delete record error ", error);
127
- return error;
128
- }
129
- });
130
- }
131
- }
132
- exports.CxConfigUIConfigController = CxConfigUIConfigController;
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.CxConfigUIConfigController=void 0;const e=require("tslib"),t=require("../../config/DatabaseConfig"),a=require("../../models/impl/cxconfig/CxConfigUIConfigModel"),o=require("./filterImpl/CxConfigUIconfigFilter");exports.CxConfigUIConfigController=class{constructor(e){this._dbFactory=e}add(o){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=new a.CxGpmUIConfigModel(o.id,o.name,o.value,o.description,o.createdAt,o.updatedAt);if(e.validationMessages.length>0)throw e.validationMessages;const i=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let n=i.transaction(t.databaseConfig.tables.cxConfigUIconfigTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigUIconfigTable);return yield n.add(e.serialize,e.id)}catch(e){throw console.log("error occurred",e),e}}))}get(a){return e.__awaiter(this,void 0,void 0,(function*(){try{console.log(a);const e=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let o=e.transaction(t.databaseConfig.tables.cxConfigUIconfigTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigUIconfigTable);return yield o.get(a.id)}catch(e){return console.log("error ",e),e}}))}getAll(a){return e.__awaiter(this,void 0,void 0,(function*(){try{console.log(a);const e=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let i=e.transaction(t.databaseConfig.tables.cxConfigUIconfigTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigUIconfigTable);const n=[];a.getFilterContent&&(a.allowedFields=n),a.category="CXConfig-UIConfig";let r=yield i.getAll(a);return a.getFilterContent&&(r.filterContent=o.CXConfigUIConfigFilterService.getFilterData(r.filterOptions)),"filterOptions"in r&&delete r.filterOptions,{result:r,meta:a}}catch(e){return console.log("error ",e),e}}))}edit(o){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=new a.CxGpmUIConfigModel(o.id,o.name,o.value,o.description,o.createdAt,o.updatedAt);if(e.validationMessages.length>0)throw e.validationMessages;const i=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let n=i.transaction(t.databaseConfig.tables.cxConfigUIconfigTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigUIconfigTable);const r=e.id;return yield n.put(e.serialize,r)}catch(e){return console.log("error ",e),e}}))}delete(a){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let o=e.transaction(t.databaseConfig.tables.cxConfigUIconfigTable,"readwrite").objectStore(t.databaseConfig.tables.cxConfigUIconfigTable);return yield o.delete(a.id)}catch(e){return console.log("delete record error ",e),e}}))}};
2
+ //# sourceMappingURL=CxConfigUIconfigController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CxConfigUIconfigController.js","sources":["../../../../controller/twilio/CxConfigUIconfigController.ts"],"sourcesContent":[null],"names":["DatabaseConfig_1","require","CxConfigUIConfigModel_1","CxConfigUIconfigFilter_1","exports","CxConfigUIConfigController","constructor","dbFactory","this","_dbFactory","add","data","gpmuiconfig","CxGpmUIConfigModel","id","name","value","description","createdAt","updatedAt","validationMessages","length","database","asyncOpen","databaseConfig","databaseName","version","result","table","transaction","tables","cxConfigUIconfigTable","objectStore","serialize","error","console","log","get","query","getAll","allowedFields","getFilterContent","category","filterContent","CXConfigUIConfigFilterService","getFilterData","filterOptions","meta","edit","key","put","delete"],"mappings":"0HAG6DA,EAAAC,QAAA,+BAGyBC,EAAAD,QAAA,oDAGHE,EAAAF,QAAA,uCAGnFG,QAsKCC,2BAtKD,MAIE,WAAAC,CAAYC,GACVC,KAAKC,WAAaF,CACnB,CAGK,GAAAG,CAAIC,sDACR,IACE,MAAMC,EAAc,IAAIV,EAAAW,mBACtBF,EAAKG,GACLH,EAAKI,KACLJ,EAAKK,MACLL,EAAKM,YACLN,EAAKO,UACLP,EAAKQ,WAEP,GAAIP,EAAYQ,mBAAmBC,OAAS,EAC1C,MAAMT,EAAYQ,mBAGpB,MAIME,SAJ6Cd,KAAKC,WAAWc,UACjEvB,EAAAwB,eAAeC,aACfzB,iBAAe0B,UAEmBC,OAKpC,IAAIC,EAJkBN,EAASO,YAC7B7B,EAAAwB,eAAeM,OAAOC,sBACtB,aAEwBC,YACxBhC,EAAcwB,eAACM,OAAOC,uBAGxB,aADmBH,EAAMlB,IAAIE,EAAYqB,UAAWrB,EAAYE,GAEjE,CAAC,MAAOoB,GAEP,MADAC,QAAQC,IAAI,iBAAkBF,GACxBA,CACP,IACF,CAGK,GAAAG,CAAIC,sDACR,IACEH,QAAQC,IAAIE,GACZ,MAIMhB,SAJ6Cd,KAAKC,WAAWc,UACjEvB,EAAAwB,eAAeC,aACfzB,iBAAe0B,UAEmBC,OAKpC,IAAIC,EAJkBN,EAASO,YAC7B7B,EAAAwB,eAAeM,OAAOC,sBACtB,aAEwBC,YACxBhC,EAAcwB,eAACM,OAAOC,uBAGxB,aADmBH,EAAMS,IAAIC,EAAMxB,GAEpC,CAAC,MAAOoB,GAEP,OADAC,QAAQC,IAAI,SAAUF,GACfA,CACR,IACF,CAGK,MAAAK,CAAOD,sDACX,IACEH,QAAQC,IAAIE,GAEZ,MAIMhB,SAJ6Cd,KAAKC,WAA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ACM,OAAOC,uBAGxB,aADmBH,EAAMuB,OAAOb,EAAMxB,GAEvC,CAAC,MAAOoB,GAEP,OADAC,QAAQC,IAAI,uBAAwBF,GAC7BA,CACR,IACF"}
@@ -1,151 +1,2 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GPMController = void 0;
13
- const DatabaseConfig_1 = require("../../config/DatabaseConfig");
14
- const CxConfiguratorGPMPromptModel_1 = require("../../models/impl/cxconfig/CxConfiguratorGPMPromptModel");
15
- const CXConfigPromptFilter_1 = require("./filterImpl/CXConfigPromptFilter");
16
- class GPMController {
17
- constructor(dbFactory) {
18
- this._dbFactory = dbFactory;
19
- }
20
- add(data) {
21
- return __awaiter(this, void 0, void 0, function* () {
22
- try {
23
- const gpmprompt = new CxConfiguratorGPMPromptModel_1.CxConfiguratorGPMPromptModel(data.id, data.name, data.type, data.fileType, data.value, data.language, data.voice, data.hints, data.createdAt, data.updatedAt, data.fileLocation);
24
- if (gpmprompt.validationMessages.length > 0) {
25
- throw gpmprompt.validationMessages;
26
- }
27
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
28
- const database = databaseConnection.result;
29
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.gpmTable, "readwrite");
30
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.gpmTable);
31
- const key = gpmprompt.id;
32
- let result = yield table.add(gpmprompt.serialize, key);
33
- return result;
34
- }
35
- catch (error) {
36
- console.log('error ', error);
37
- return error;
38
- }
39
- });
40
- }
41
- get(query) {
42
- return __awaiter(this, void 0, void 0, function* () {
43
- try {
44
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
45
- const database = databaseConnection.result;
46
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.gpmTable, "readwrite");
47
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.gpmTable);
48
- let result = yield table.get(query.id);
49
- return result;
50
- }
51
- catch (error) {
52
- console.log("error ", error);
53
- return error;
54
- }
55
- });
56
- }
57
- //Get GPM Messages
58
- getAll(query) {
59
- return __awaiter(this, void 0, void 0, function* () {
60
- try {
61
- console.log(query);
62
- // changed to Specfic factory as method override is not working
63
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
64
- const database = databaseConnection.result;
65
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.gpmTable, "readwrite");
66
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.gpmTable);
67
- const allowedFields = [
68
- "type",
69
- "language",
70
- "voice"
71
- ];
72
- if (query.getFilterContent) {
73
- query.allowedFields = allowedFields;
74
- }
75
- query.category = "CXConfig-Prompt";
76
- let result = yield table.getAll(query);
77
- if (query.getFilterContent) {
78
- result.filterContent = CXConfigPromptFilter_1.CXConfigPromptFilterService.getFilterData(result.filterOptions);
79
- }
80
- if (query.getPromptForIVR) {
81
- result.items = transformArrayToJson(result.items);
82
- }
83
- if ("filterOptions" in result) {
84
- delete result.filterOptions;
85
- }
86
- return { result, meta: query };
87
- }
88
- catch (error) {
89
- console.log('error ', error);
90
- return error;
91
- }
92
- });
93
- }
94
- edit(data) {
95
- return __awaiter(this, void 0, void 0, function* () {
96
- try {
97
- const gpmprompt = new CxConfiguratorGPMPromptModel_1.CxConfiguratorGPMPromptModel(data.id, data.name, data.type, data.fileType, data.value, data.language, data.voice, data.hints, data.createdAt, data.updatedAt, data.fileLocation);
98
- if (gpmprompt.validationMessages.length > 0) {
99
- throw gpmprompt.validationMessages;
100
- }
101
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
102
- const database = databaseConnection.result;
103
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.gpmTable, "readwrite");
104
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.gpmTable);
105
- const key = gpmprompt.id;
106
- let result = yield table.put(gpmprompt.serialize, key);
107
- return result;
108
- }
109
- catch (error) {
110
- console.log('error ', error);
111
- return error;
112
- }
113
- });
114
- }
115
- // async deleteDatabase(req: Request, res: Response): Promise<void> {
116
- // try {
117
- // const { name } = req.params;
118
- // // changed to Specfic factory as method override is not working
119
- // const databaseConnection: IDBOpenDBRequest = await this._dbFactory.deleteDatabase(name);
120
- // res.json(databaseConnection.result);
121
- // } catch (error: any) {
122
- // console.log('error ', error)
123
- // res.status(500).json({ error: error.message });
124
- // }
125
- // }
126
- delete(query) {
127
- return __awaiter(this, void 0, void 0, function* () {
128
- try {
129
- // const DataValidation = new CxConfiguratorGPMPrompt(query)
130
- const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
131
- const database = databaseConnection.result;
132
- const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.gpmTable, "readwrite");
133
- let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.gpmTable);
134
- let result = yield table.delete(query.id);
135
- return result;
136
- }
137
- catch (error) {
138
- console.log('delete record error ', error);
139
- return error;
140
- }
141
- });
142
- }
143
- }
144
- exports.GPMController = GPMController;
145
- function transformArrayToJson(inputArray) {
146
- return inputArray.reduce((acc, item) => {
147
- const { name, value, voice, language, type, hints } = item;
148
- acc[name] = { value, voice, language, type, hints };
149
- return acc;
150
- }, {});
151
- }
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.GPMController=void 0;const e=require("tslib"),t=require("../../config/DatabaseConfig"),a=require("../../models/impl/cxconfig/CxConfiguratorGPMPromptModel"),o=require("./filterImpl/CXConfigPromptFilter");exports.GPMController=class{constructor(e){this._dbFactory=e}add(o){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=new a.CxConfiguratorGPMPromptModel(o.id,o.name,o.type,o.fileType,o.value,o.language,o.voice,o.hints,o.createdAt,o.updatedAt,o.fileLocation);if(e.validationMessages.length>0)throw e.validationMessages;const r=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let i=r.transaction(t.databaseConfig.tables.gpmTable,"readwrite").objectStore(t.databaseConfig.tables.gpmTable);const n=e.id;return yield i.add(e.serialize,n)}catch(e){return console.log("error ",e),e}}))}get(a){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let o=e.transaction(t.databaseConfig.tables.gpmTable,"readwrite").objectStore(t.databaseConfig.tables.gpmTable);return yield o.get(a.id)}catch(e){return console.log("error ",e),e}}))}getAll(a){return e.__awaiter(this,void 0,void 0,(function*(){try{console.log(a);const e=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let r=e.transaction(t.databaseConfig.tables.gpmTable,"readwrite").objectStore(t.databaseConfig.tables.gpmTable);const i=["type","language","voice"];a.getFilterContent&&(a.allowedFields=i),a.category="CXConfig-Prompt";let n=yield r.getAll(a);return a.getFilterContent&&(n.filterContent=o.CXConfigPromptFilterService.getFilterData(n.filterOptions)),a.getPromptForIVR&&(n.items=n.items.reduce(((e,t)=>{const{name:a,value:o,voice:r,language:i,type:n,hints:s}=t;return e[a]={value:o,voice:r,language:i,type:n,hints:s},e}),{})),"filterOptions"in n&&delete n.filterOptions,{result:n,meta:a}}catch(e){return console.log("error ",e),e}}))}edit(o){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=new a.CxConfiguratorGPMPromptModel(o.id,o.name,o.type,o.fileType,o.value,o.language,o.voice,o.hints,o.createdAt,o.updatedAt,o.fileLocation);if(e.validationMessages.length>0)throw e.validationMessages;const r=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let i=r.transaction(t.databaseConfig.tables.gpmTable,"readwrite").objectStore(t.databaseConfig.tables.gpmTable);const n=e.id;return yield i.put(e.serialize,n)}catch(e){return console.log("error ",e),e}}))}delete(a){return e.__awaiter(this,void 0,void 0,(function*(){try{const e=(yield this._dbFactory.asyncOpen(t.databaseConfig.databaseName,t.databaseConfig.version)).result;let o=e.transaction(t.databaseConfig.tables.gpmTable,"readwrite").objectStore(t.databaseConfig.tables.gpmTable);return yield o.delete(a.id)}catch(e){return console.log("delete record error ",e),e}}))}};
2
+ //# sourceMappingURL=GPMController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GPMController.js","sources":["../../../../controller/twilio/GPMController.ts"],"sourcesContent":[null],"names":["DatabaseConfig_1","require","CxConfiguratorGPMPromptModel_1","CXConfigPromptFilter_1","exports","GPMController","constructor","dbFactory","this","_dbFactory","add","data","gpmprompt","CxConfiguratorGPMPromptModel","id","name","type","fileType","value","language","voice","hints","createdAt","updatedAt","fileLocation","validationMessages","length","database","asyncOpen","databaseConfig","databaseName","version","result","table","transaction","tables","gpmTable","objectStore","key","serialize","error","console","log","get","query","getAll","allowedFields","getFilterContent","category","filterContent","CXConfigPromptFilterService","getFilterData","filterOptions","getPromptForIVR","items","reduce","acc","item","meta","edit","put","delete"],"mappings":"6GAG6DA,EAAAC,QAAA,+BAE0CC,EAAAD,QAAA,2DAExBE,EAAAF,QAAA,qCAE/EG,QAkJCC,cAlJD,MAEE,WAAAC,CAAYC,GACVC,KAAKC,WAAaF,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