arco-support-request 0.0.87 → 0.0.89

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 (408) hide show
  1. package/karma.conf.js +44 -0
  2. package/ng-package.json +18 -0
  3. package/package.json +11 -22
  4. package/src/lib/Pipe/allpipe.pipe.ts +127 -0
  5. package/src/lib/Pipe/handlebar-helper-register.ts +249 -0
  6. package/src/lib/Pipe/translate.pipe.ts +32 -0
  7. package/src/lib/all-routing.ts +61 -0
  8. package/src/lib/arco-support-request.component.spec.ts +25 -0
  9. package/src/lib/arco-support-request.component.ts +20 -0
  10. package/src/lib/arco-support-request.module.ts +19 -0
  11. package/src/lib/arco-support-request.service.spec.ts +16 -0
  12. package/src/lib/arco-support-request.service.ts +16 -0
  13. package/src/lib/commonstyles/new-style-rtl.css +380 -0
  14. package/src/lib/commonstyles/styles.scss +4334 -0
  15. package/src/lib/core/encodeurl.service.ts +23 -0
  16. package/src/lib/core/global.service.ts +1859 -0
  17. package/src/lib/core/handlebar-helper-register.ts +247 -0
  18. package/src/lib/core/httpcancel.service.ts +21 -0
  19. package/src/lib/core/loader.service.ts +19 -0
  20. package/src/lib/core/loading-provider.service.ts +64 -0
  21. package/src/lib/core/managehttp.interceptor.ts +49 -0
  22. package/src/lib/core/static/jwt.ts +7 -0
  23. package/src/lib/core/token.service.ts +37 -0
  24. package/src/lib/entity-type-setup/activities-create/activities-create.component.html +69 -0
  25. package/src/lib/entity-type-setup/activities-create/activities-create.component.scss +13 -0
  26. package/src/lib/entity-type-setup/activities-create/activities-create.component.spec.ts +25 -0
  27. package/src/lib/entity-type-setup/activities-create/activities-create.component.ts +143 -0
  28. package/src/lib/entity-type-setup/activities-view/activities-view.component.html +19 -0
  29. package/src/lib/entity-type-setup/activities-view/activities-view.component.scss +3 -0
  30. package/src/lib/entity-type-setup/activities-view/activities-view.component.spec.ts +25 -0
  31. package/src/lib/entity-type-setup/activities-view/activities-view.component.ts +53 -0
  32. package/src/lib/entity-type-setup/activity-template/activity-template.component.html +73 -0
  33. package/src/lib/entity-type-setup/activity-template/activity-template.component.scss +0 -0
  34. package/src/lib/entity-type-setup/activity-template/activity-template.component.spec.ts +25 -0
  35. package/src/lib/entity-type-setup/activity-template/activity-template.component.ts +208 -0
  36. package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.html +356 -0
  37. package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.scss +50 -0
  38. package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.spec.ts +25 -0
  39. package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.ts +346 -0
  40. package/src/lib/entity-type-setup/commom-condition/commom-condition.component.html +92 -0
  41. package/src/lib/entity-type-setup/commom-condition/commom-condition.component.scss +90 -0
  42. package/src/lib/entity-type-setup/commom-condition/commom-condition.component.spec.ts +25 -0
  43. package/src/lib/entity-type-setup/commom-condition/commom-condition.component.ts +74 -0
  44. package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.html +57 -0
  45. package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.scss +16 -0
  46. package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.spec.ts +25 -0
  47. package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.ts +59 -0
  48. package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.html +102 -0
  49. package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.scss +3 -0
  50. package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.spec.ts +25 -0
  51. package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.ts +498 -0
  52. package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.html +408 -0
  53. package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.scss +123 -0
  54. package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.spec.ts +25 -0
  55. package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.ts +1073 -0
  56. package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/validation-error.component.ts +84 -0
  57. package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.html +194 -0
  58. package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.scss +81 -0
  59. package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.spec.ts +25 -0
  60. package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.ts +1526 -0
  61. package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.html +137 -0
  62. package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.scss +0 -0
  63. package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.spec.ts +25 -0
  64. package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.ts +1353 -0
  65. package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.html +329 -0
  66. package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.scss +0 -0
  67. package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.spec.ts +25 -0
  68. package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.ts +520 -0
  69. package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.html +609 -0
  70. package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.scss +99 -0
  71. package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.spec.ts +25 -0
  72. package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.ts +784 -0
  73. package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.html +632 -0
  74. package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.scss +261 -0
  75. package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.spec.ts +25 -0
  76. package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.ts +765 -0
  77. package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.html +368 -0
  78. package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.scss +0 -0
  79. package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.spec.ts +25 -0
  80. package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.ts +334 -0
  81. package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.html +500 -0
  82. package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.scss +0 -0
  83. package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.spec.ts +25 -0
  84. package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.ts +862 -0
  85. package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.html +139 -0
  86. package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.scss +14 -0
  87. package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.spec.ts +25 -0
  88. package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.ts +347 -0
  89. package/src/lib/entity-type-setup/entity-category-activities/entity-category-activities.component.html +150 -0
  90. package/src/lib/entity-type-setup/entity-category-activities/entity-category-activities.component.scss +27 -0
  91. package/src/lib/entity-type-setup/entity-category-activities/entity-category-activities.component.ts +384 -0
  92. package/src/lib/entity-type-setup/entity-category-details/entity-category-details.component.html +305 -0
  93. package/src/lib/entity-type-setup/entity-category-details/entity-category-details.component.scss +31 -0
  94. package/src/lib/entity-type-setup/entity-category-details/entity-category-details.component.ts +572 -0
  95. package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.html +610 -0
  96. package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.scss +50 -0
  97. package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.spec.ts +25 -0
  98. package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.ts +633 -0
  99. package/src/lib/entity-type-setup/entity-type-field/entity-type-field.component.html +609 -0
  100. package/src/lib/entity-type-setup/entity-type-field/entity-type-field.component.scss +4 -0
  101. package/src/lib/entity-type-setup/entity-type-field/entity-type-field.component.ts +702 -0
  102. package/src/lib/entity-type-setup/entity-type-form/entity-type-form.component.html +530 -0
  103. package/src/lib/entity-type-setup/entity-type-form/entity-type-form.component.scss +12 -0
  104. package/src/lib/entity-type-setup/entity-type-form/entity-type-form.component.ts +767 -0
  105. package/src/lib/entity-type-setup/entity-type-setup-routing.module.ts +92 -0
  106. package/src/lib/entity-type-setup/entity-type-setup.module.ts +114 -0
  107. package/src/lib/entity-type-setup/events/events.component.html +211 -0
  108. package/src/lib/entity-type-setup/events/events.component.scss +61 -0
  109. package/src/lib/entity-type-setup/events/events.component.spec.ts +25 -0
  110. package/src/lib/entity-type-setup/events/events.component.ts +517 -0
  111. package/src/lib/entity-type-setup/field-type/field-type.component.html +447 -0
  112. package/src/lib/entity-type-setup/field-type/field-type.component.scss +0 -0
  113. package/src/lib/entity-type-setup/field-type/field-type.component.spec.ts +25 -0
  114. package/src/lib/entity-type-setup/field-type/field-type.component.ts +531 -0
  115. package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.html +152 -0
  116. package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.scss +24 -0
  117. package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.spec.ts +25 -0
  118. package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.ts +35 -0
  119. package/src/lib/entity-type-setup/instruction/instruction.component.html +239 -0
  120. package/src/lib/entity-type-setup/instruction/instruction.component.scss +18 -0
  121. package/src/lib/entity-type-setup/instruction/instruction.component.ts +450 -0
  122. package/src/lib/entity-type-setup/interface/entityTypeInterface.ts +1046 -0
  123. package/src/lib/entity-type-setup/interface/eventEnum.ts +191 -0
  124. package/src/lib/entity-type-setup/issue-group/issue-group.component.html +77 -0
  125. package/src/lib/entity-type-setup/issue-group/issue-group.component.scss +0 -0
  126. package/src/lib/entity-type-setup/issue-group/issue-group.component.ts +221 -0
  127. package/src/lib/entity-type-setup/issue-sub-group/issue-sub-group.component.html +192 -0
  128. package/src/lib/entity-type-setup/issue-sub-group/issue-sub-group.component.scss +10 -0
  129. package/src/lib/entity-type-setup/issue-sub-group/issue-sub-group.component.ts +418 -0
  130. package/src/lib/entity-type-setup/issue-sub-group-detail/issue-sub-group-detail.component.html +42 -0
  131. package/src/lib/entity-type-setup/issue-sub-group-detail/issue-sub-group-detail.component.scss +8 -0
  132. package/src/lib/entity-type-setup/issue-sub-group-detail/issue-sub-group-detail.component.ts +52 -0
  133. package/src/lib/entity-type-setup/my-task/my-task.component.html +599 -0
  134. package/src/lib/entity-type-setup/my-task/my-task.component.scss +0 -0
  135. package/src/lib/entity-type-setup/my-task/my-task.component.spec.ts +25 -0
  136. package/src/lib/entity-type-setup/my-task/my-task.component.ts +770 -0
  137. package/src/lib/entity-type-setup/page-form-instance.ts +73 -0
  138. package/src/lib/entity-type-setup/page.interface.classes.ts +43 -0
  139. package/src/lib/entity-type-setup/service/dropdown.directive.ts +12 -0
  140. package/src/lib/entity-type-setup/service/entity-type-setup.service.ts +2901 -0
  141. package/src/lib/entity-type-setup/task-crete/task-crete.component.html +61 -0
  142. package/src/lib/entity-type-setup/task-crete/task-crete.component.scss +0 -0
  143. package/src/lib/entity-type-setup/task-crete/task-crete.component.ts +117 -0
  144. package/src/lib/entity-type-setup/ticket-create/ticket-create.component.html +95 -0
  145. package/src/lib/entity-type-setup/ticket-create/ticket-create.component.scss +23 -0
  146. package/src/lib/entity-type-setup/ticket-create/ticket-create.component.spec.ts +25 -0
  147. package/src/lib/entity-type-setup/ticket-create/ticket-create.component.ts +213 -0
  148. package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.html +240 -0
  149. package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.scss +14 -0
  150. package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.spec.ts +25 -0
  151. package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.ts +404 -0
  152. package/src/lib/search.pipe.spec.ts +8 -0
  153. package/src/lib/search.pipe.ts +21 -0
  154. package/src/lib/support-request/action/action.component.html +122 -0
  155. package/src/lib/support-request/action/action.component.scss +6 -0
  156. package/src/lib/support-request/action/action.component.ts +179 -0
  157. package/src/lib/support-request/case-list/case-list.component.html +280 -0
  158. package/src/lib/support-request/case-list/case-list.component.scss +187 -0
  159. package/src/lib/support-request/case-list/case-list.component.ts +519 -0
  160. package/src/lib/support-request/home/home.component.html +16 -0
  161. package/src/lib/support-request/home/home.component.scss +4 -0
  162. package/src/lib/support-request/home/home.component.ts +23 -0
  163. package/src/lib/support-request/pagination/pagination.component.html +71 -0
  164. package/src/lib/support-request/pagination/pagination.component.scss +77 -0
  165. package/src/lib/support-request/pagination/pagination.component.ts +29 -0
  166. package/src/lib/support-request/request-flow/request-flow.component.html +536 -0
  167. package/src/lib/support-request/request-flow/request-flow.component.scss +2 -0
  168. package/src/lib/support-request/request-flow/request-flow.component.ts +914 -0
  169. package/src/lib/support-request/self-service-flow/self-service-flow.component.html +64 -0
  170. package/src/lib/support-request/self-service-flow/self-service-flow.component.scss +2 -0
  171. package/src/lib/support-request/self-service-flow/self-service-flow.component.ts +105 -0
  172. package/src/lib/support-request/support-request-create/support-request-create.component.html +105 -0
  173. package/src/lib/support-request/support-request-create/support-request-create.component.scss +54 -0
  174. package/src/lib/support-request/support-request-create/support-request-create.component.ts +319 -0
  175. package/src/lib/support-request/support-request-details/support-request-details.component.html +553 -0
  176. package/src/lib/support-request/support-request-details/support-request-details.component.scss +338 -0
  177. package/src/lib/support-request/support-request-details/support-request-details.component.ts +849 -0
  178. package/src/lib/support-request/support-request-index/support-request-index.component.html +4 -0
  179. package/src/lib/support-request/support-request-index/support-request-index.component.scss +0 -0
  180. package/src/lib/support-request/support-request-index/support-request-index.component.ts +16 -0
  181. package/src/lib/support-request/support-request-list/support-request-list.component.html +455 -0
  182. package/src/lib/support-request/support-request-list/support-request-list.component.scss +0 -0
  183. package/src/lib/support-request/support-request-list/support-request-list.component.ts +869 -0
  184. package/src/lib/support-request/support-request-routing.module.ts +21 -0
  185. package/src/lib/support-request/support-request.module.ts +103 -0
  186. package/src/lib/support-request/support-request.service.ts +148 -0
  187. package/src/lib/support-request/supportRequestInterface.ts +6 -0
  188. package/src/lib/task/Interfaces/TaskInterface.ts +164 -0
  189. package/src/lib/task/Services/task.service.spec.ts +16 -0
  190. package/src/lib/task/Services/task.service.ts +354 -0
  191. package/src/lib/task/task-routing.module.ts +12 -0
  192. package/src/lib/task/task.module.ts +23 -0
  193. package/src/lib/template/template.component.html +22 -0
  194. package/src/lib/template/template.component.scss +0 -0
  195. package/src/lib/template/template.component.spec.ts +25 -0
  196. package/src/lib/template/template.component.ts +24 -0
  197. package/src/lib/templates/attachmentsetup/attach-list/attach-list.component.html +83 -0
  198. package/src/lib/templates/attachmentsetup/attach-list/attach-list.component.scss +0 -0
  199. package/src/lib/templates/attachmentsetup/attach-list/attach-list.component.ts +120 -0
  200. package/src/lib/templates/attachmentsetup/attach-popup/attach-popup.component.html +134 -0
  201. package/src/lib/templates/attachmentsetup/attach-popup/attach-popup.component.scss +0 -0
  202. package/src/lib/templates/attachmentsetup/attach-popup/attach-popup.component.ts +185 -0
  203. package/src/lib/templates/attachmentsetup/attachment-api.ts +55 -0
  204. package/src/lib/templates/attachmentsetup/attachment-interface.ts +100 -0
  205. package/src/lib/templates/attachmentsetup/attachment.service.ts +233 -0
  206. package/src/lib/templates/attachmentsetup/attachmentsetup/attachmentsetup.component.html +97 -0
  207. package/src/lib/templates/attachmentsetup/attachmentsetup/attachmentsetup.component.scss +10 -0
  208. package/src/lib/templates/attachmentsetup/attachmentsetup/attachmentsetup.component.ts +367 -0
  209. package/src/lib/templates/attachmentsetup/documenttype/documenttype.component.html +49 -0
  210. package/src/lib/templates/attachmentsetup/documenttype/documenttype.component.scss +0 -0
  211. package/src/lib/templates/attachmentsetup/documenttype/documenttype.component.ts +226 -0
  212. package/src/lib/templates/attachmentsetup/menu-item-data/menu-item-data.component.html +140 -0
  213. package/src/lib/templates/attachmentsetup/menu-item-data/menu-item-data.component.scss +8 -0
  214. package/src/lib/templates/attachmentsetup/menu-item-data/menu-item-data.component.ts +176 -0
  215. package/src/lib/templates/card/card.component.html +56 -0
  216. package/src/lib/templates/card/card.component.scss +0 -0
  217. package/src/lib/templates/card/card.component.spec.ts +25 -0
  218. package/src/lib/templates/card/card.component.ts +306 -0
  219. package/src/lib/templates/dashboard/dashboard.component.html +333 -0
  220. package/src/lib/templates/dashboard/dashboard.component.scss +16 -0
  221. package/src/lib/templates/dashboard/dashboard.component.ts +2290 -0
  222. package/src/lib/templates/details/details.component.html +233 -0
  223. package/src/lib/templates/details/details.component.scss +0 -0
  224. package/src/lib/templates/details/details.component.spec.ts +25 -0
  225. package/src/lib/templates/details/details.component.ts +15 -0
  226. package/src/lib/templates/detailstwo/detailstwo.component.html +694 -0
  227. package/src/lib/templates/detailstwo/detailstwo.component.scss +0 -0
  228. package/src/lib/templates/detailstwo/detailstwo.component.spec.ts +25 -0
  229. package/src/lib/templates/detailstwo/detailstwo.component.ts +15 -0
  230. package/src/lib/templates/dyanamic-page/dyanamic-page.component.html +1 -0
  231. package/src/lib/templates/dyanamic-page/dyanamic-page.component.scss +0 -0
  232. package/src/lib/templates/dyanamic-page/dyanamic-page.component.spec.ts +25 -0
  233. package/src/lib/templates/dyanamic-page/dyanamic-page.component.ts +15 -0
  234. package/src/lib/templates/grid/grid-datatype/grid-datatype.component.ts +39 -0
  235. package/src/lib/templates/grid/grid-service.service.ts +236 -0
  236. package/src/lib/templates/grid/grid.component.html +358 -0
  237. package/src/lib/templates/grid/grid.component.scss +118 -0
  238. package/src/lib/templates/grid/grid.component.spec.ts +25 -0
  239. package/src/lib/templates/grid/grid.component.ts +638 -0
  240. package/src/lib/templates/grid/inner-grid/inner-grid.component.html +1 -0
  241. package/src/lib/templates/grid/inner-grid/inner-grid.component.scss +0 -0
  242. package/src/lib/templates/grid/inner-grid/inner-grid.component.spec.ts +25 -0
  243. package/src/lib/templates/grid/inner-grid/inner-grid.component.ts +15 -0
  244. package/src/lib/templates/home/home.component.html +251 -0
  245. package/src/lib/templates/home/home.component.scss +20 -0
  246. package/src/lib/templates/home/home.component.spec.ts +25 -0
  247. package/src/lib/templates/home/home.component.ts +15 -0
  248. package/src/lib/templates/interface_enum/common-Interface.ts +114 -0
  249. package/src/lib/templates/interface_enum/common-enum.ts +159 -0
  250. package/src/lib/templates/interface_enum/icon-class.ts +1149 -0
  251. package/src/lib/templates/leftside/leftside.component.html +77 -0
  252. package/src/lib/templates/leftside/leftside.component.scss +0 -0
  253. package/src/lib/templates/leftside/leftside.component.spec.ts +25 -0
  254. package/src/lib/templates/leftside/leftside.component.ts +238 -0
  255. package/src/lib/templates/login/login.component.html +93 -0
  256. package/src/lib/templates/login/login.component.scss +110 -0
  257. package/src/lib/templates/login/login.component.spec.ts +25 -0
  258. package/src/lib/templates/login/login.component.ts +142 -0
  259. package/src/lib/templates/main-content/main-content.component.html +31 -0
  260. package/src/lib/templates/main-content/main-content.component.scss +6 -0
  261. package/src/lib/templates/main-content/main-content.component.spec.ts +25 -0
  262. package/src/lib/templates/main-content/main-content.component.ts +24 -0
  263. package/src/lib/templates/menu-item/child-menu/child-menu.component.html +5 -0
  264. package/src/lib/templates/menu-item/child-menu/child-menu.component.scss +3 -0
  265. package/src/lib/templates/menu-item/child-menu/child-menu.component.ts +22 -0
  266. package/src/lib/templates/menu-item/menu-item.component.html +25 -0
  267. package/src/lib/templates/menu-item/menu-item.component.scss +11 -0
  268. package/src/lib/templates/menu-item/menu-item.component.ts +29 -0
  269. package/src/lib/templates/pagination/pagination.component.html +71 -0
  270. package/src/lib/templates/pagination/pagination.component.scss +73 -0
  271. package/src/lib/templates/pagination/pagination.component.ts +29 -0
  272. package/src/lib/templates/pie-chart/pie-chart.component.html +0 -0
  273. package/src/lib/templates/pie-chart/pie-chart.component.scss +0 -0
  274. package/src/lib/templates/pie-chart/pie-chart.component.ts +14 -0
  275. package/src/lib/templates/pipe/multiple-search.pipe.ts +28 -0
  276. package/src/lib/templates/pipe/simple-search.pipe.ts +18 -0
  277. package/src/lib/templates/pipe/translate.pipe.ts +31 -0
  278. package/src/lib/templates/request-flow-dash/request-flow-dash.component.html +16 -0
  279. package/src/lib/templates/request-flow-dash/request-flow-dash.component.scss +0 -0
  280. package/src/lib/templates/request-flow-dash/request-flow-dash.component.spec.ts +25 -0
  281. package/src/lib/templates/request-flow-dash/request-flow-dash.component.ts +59 -0
  282. package/src/lib/templates/table/table.component.html +310 -0
  283. package/src/lib/templates/table/table.component.scss +0 -0
  284. package/src/lib/templates/table/table.component.spec.ts +25 -0
  285. package/src/lib/templates/table/table.component.ts +52 -0
  286. package/src/lib/templates/template.service.ts +43 -0
  287. package/src/lib/templates/templates-routing.module.ts +21 -0
  288. package/src/lib/templates/templates.module.ts +80 -0
  289. package/src/lib/templates/topnav/topnav.component.html +172 -0
  290. package/src/lib/templates/topnav/topnav.component.scss +10 -0
  291. package/src/lib/templates/topnav/topnav.component.spec.ts +25 -0
  292. package/src/lib/templates/topnav/topnav.component.ts +59 -0
  293. package/src/lib/ticket/_interfaces/master-models.ts +66 -0
  294. package/src/lib/ticket/_interfaces/model.ts +252 -0
  295. package/src/lib/ticket/_ticket-services/ticket-api.service.ts +319 -0
  296. package/src/lib/ticket/_ticket-services/ticket-master-api.service.ts +169 -0
  297. package/src/lib/ticket/_ticket-services/ticket-priority.service.ts +86 -0
  298. package/src/lib/ticket/_ticket-services/ticketchannel.service.ts +107 -0
  299. package/src/lib/ticket/ticket-routing.module.ts +12 -0
  300. package/src/lib/ticket/ticket.module.ts +29 -0
  301. package/{public-api.d.ts → src/public-api.ts} +6 -1
  302. package/src/test.ts +26 -0
  303. package/tsconfig.lib.json +25 -0
  304. package/tsconfig.lib.prod.json +10 -0
  305. package/tsconfig.spec.json +17 -0
  306. package/tslint.json +17 -0
  307. package/arco-support-request.d.ts +0 -32
  308. package/arco-support-request.metadata.json +0 -1
  309. package/bundles/arco-support-request.umd.js +0 -11683
  310. package/bundles/arco-support-request.umd.js.map +0 -1
  311. package/bundles/arco-support-request.umd.min.js +0 -2
  312. package/bundles/arco-support-request.umd.min.js.map +0 -1
  313. package/esm2015/arco-support-request.js +0 -33
  314. package/esm2015/lib/Pipe/allpipe.pipe.js +0 -110
  315. package/esm2015/lib/Pipe/translate.pipe.js +0 -31
  316. package/esm2015/lib/arco-support-request.component.js +0 -18
  317. package/esm2015/lib/arco-support-request.module.js +0 -20
  318. package/esm2015/lib/arco-support-request.service.js +0 -19
  319. package/esm2015/lib/core/global.service.js +0 -1783
  320. package/esm2015/lib/core/handlebar-helper-register.js +0 -188
  321. package/esm2015/lib/core/static/jwt.js +0 -8
  322. package/esm2015/lib/entity-type-setup/activities-create/activities-create.component.js +0 -126
  323. package/esm2015/lib/entity-type-setup/activities-view/activities-view.component.js +0 -46
  324. package/esm2015/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.js +0 -367
  325. package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.js +0 -867
  326. package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-field/validation-error.component.js +0 -85
  327. package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.js +0 -1056
  328. package/esm2015/lib/entity-type-setup/interface/entityTypeInterface.js +0 -51
  329. package/esm2015/lib/entity-type-setup/interface/eventEnum.js +0 -84
  330. package/esm2015/lib/entity-type-setup/page-form-instance.js +0 -65
  331. package/esm2015/lib/entity-type-setup/page.interface.classes.js +0 -40
  332. package/esm2015/lib/entity-type-setup/service/entity-type-setup.service.js +0 -1871
  333. package/esm2015/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.js +0 -320
  334. package/esm2015/lib/search.pipe.js +0 -19
  335. package/esm2015/lib/support-request/action/action.component.js +0 -104
  336. package/esm2015/lib/support-request/case-list/case-list.component.js +0 -449
  337. package/esm2015/lib/support-request/home/home.component.js +0 -23
  338. package/esm2015/lib/support-request/pagination/pagination.component.js +0 -34
  339. package/esm2015/lib/support-request/request-flow/request-flow.component.js +0 -733
  340. package/esm2015/lib/support-request/self-service-flow/self-service-flow.component.js +0 -88
  341. package/esm2015/lib/support-request/support-request-create/support-request-create.component.js +0 -270
  342. package/esm2015/lib/support-request/support-request-details/support-request-details.component.js +0 -659
  343. package/esm2015/lib/support-request/support-request-index/support-request-index.component.js +0 -16
  344. package/esm2015/lib/support-request/support-request-routing.module.js +0 -22
  345. package/esm2015/lib/support-request/support-request.module.js +0 -98
  346. package/esm2015/lib/support-request/support-request.service.js +0 -107
  347. package/esm2015/lib/support-request/supportRequestInterface.js +0 -2
  348. package/esm2015/lib/task/Interfaces/TaskInterface.js +0 -7
  349. package/esm2015/lib/task/Services/task.service.js +0 -251
  350. package/esm2015/lib/templates/attachmentsetup/attachment-interface.js +0 -2
  351. package/esm2015/lib/templates/attachmentsetup/attachment.service.js +0 -196
  352. package/esm2015/lib/templates/grid/grid-datatype/grid-datatype.component.js +0 -37
  353. package/esm2015/lib/templates/grid/grid-service.service.js +0 -151
  354. package/esm2015/lib/templates/grid/grid.component.js +0 -604
  355. package/esm2015/lib/templates/grid/inner-grid/inner-grid.component.js +0 -15
  356. package/esm2015/lib/templates/interface_enum/common-Interface.js +0 -2
  357. package/esm2015/lib/templates/interface_enum/common-enum.js +0 -164
  358. package/esm2015/lib/ticket/_interfaces/model.js +0 -2
  359. package/esm2015/lib/ticket/_ticket-services/ticket-api.service.js +0 -232
  360. package/esm2015/public-api.js +0 -9
  361. package/fesm2015/arco-support-request.js +0 -11076
  362. package/fesm2015/arco-support-request.js.map +0 -1
  363. package/lib/Pipe/allpipe.pipe.d.ts +0 -19
  364. package/lib/Pipe/translate.pipe.d.ts +0 -7
  365. package/lib/arco-support-request.component.d.ts +0 -5
  366. package/lib/arco-support-request.module.d.ts +0 -2
  367. package/lib/arco-support-request.service.d.ts +0 -9
  368. package/lib/core/global.service.d.ts +0 -99
  369. package/lib/core/handlebar-helper-register.d.ts +0 -1
  370. package/lib/core/static/jwt.d.ts +0 -7
  371. package/lib/entity-type-setup/activities-create/activities-create.component.d.ts +0 -30
  372. package/lib/entity-type-setup/activities-view/activities-view.component.d.ts +0 -16
  373. package/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.d.ts +0 -67
  374. package/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.d.ts +0 -88
  375. package/lib/entity-type-setup/dynamic/entity-dynamic-field/validation-error.component.d.ts +0 -11
  376. package/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.d.ts +0 -70
  377. package/lib/entity-type-setup/interface/entityTypeInterface.d.ts +0 -917
  378. package/lib/entity-type-setup/interface/eventEnum.d.ts +0 -161
  379. package/lib/entity-type-setup/page-form-instance.d.ts +0 -13
  380. package/lib/entity-type-setup/page.interface.classes.d.ts +0 -33
  381. package/lib/entity-type-setup/service/entity-type-setup.service.d.ts +0 -615
  382. package/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.d.ts +0 -86
  383. package/lib/search.pipe.d.ts +0 -4
  384. package/lib/support-request/action/action.component.d.ts +0 -31
  385. package/lib/support-request/case-list/case-list.component.d.ts +0 -100
  386. package/lib/support-request/home/home.component.d.ts +0 -6
  387. package/lib/support-request/pagination/pagination.component.d.ts +0 -18
  388. package/lib/support-request/request-flow/request-flow.component.d.ts +0 -152
  389. package/lib/support-request/self-service-flow/self-service-flow.component.d.ts +0 -32
  390. package/lib/support-request/support-request-create/support-request-create.component.d.ts +0 -55
  391. package/lib/support-request/support-request-details/support-request-details.component.d.ts +0 -138
  392. package/lib/support-request/support-request-index/support-request-index.component.d.ts +0 -5
  393. package/lib/support-request/support-request-routing.module.d.ts +0 -2
  394. package/lib/support-request/support-request.module.d.ts +0 -2
  395. package/lib/support-request/support-request.service.d.ts +0 -35
  396. package/lib/support-request/supportRequestInterface.d.ts +0 -6
  397. package/lib/task/Interfaces/TaskInterface.d.ts +0 -132
  398. package/lib/task/Services/task.service.d.ts +0 -75
  399. package/lib/templates/attachmentsetup/attachment-interface.d.ts +0 -90
  400. package/lib/templates/attachmentsetup/attachment.service.d.ts +0 -61
  401. package/lib/templates/grid/grid-datatype/grid-datatype.component.d.ts +0 -11
  402. package/lib/templates/grid/grid-service.service.d.ts +0 -45
  403. package/lib/templates/grid/grid.component.d.ts +0 -218
  404. package/lib/templates/grid/inner-grid/inner-grid.component.d.ts +0 -5
  405. package/lib/templates/interface_enum/common-Interface.d.ts +0 -96
  406. package/lib/templates/interface_enum/common-enum.d.ts +0 -134
  407. package/lib/ticket/_interfaces/model.d.ts +0 -192
  408. package/lib/ticket/_ticket-services/ticket-api.service.d.ts +0 -81
@@ -0,0 +1,2901 @@
1
+ import { HttpClient, HttpHeaders } from '@angular/common/http';
2
+ import { Injectable } from '@angular/core';
3
+ import { CriteriaBuilder } from '../../templates/grid/grid-service.service';
4
+ import {
5
+ INameTypeVal,
6
+ INameVal,
7
+ IRestConfig,
8
+ ISearchCriteria,
9
+ ISortingField,
10
+ } from '../../templates/interface_enum/common-Interface';
11
+ import {
12
+ ActivityTemplateCVM,
13
+ CommentsCVM,
14
+ CommentsUVM,
15
+ CommentsVM,
16
+ IActionCVM,
17
+ IEntityCategoryVM,
18
+ IEntityTypeWFProcessStageAssignmentCVM,
19
+ IEntityTypeWFProcessStageAssignmentUVM,
20
+ IEntityTypeWFProcessStageAssignmentVM,
21
+ IEntityTypeWFProcessStageStatusCVM,
22
+ IEntityTypeWFProcessStageStatusUVM,
23
+ IEntityTypeWFProcessStageStatusVM,
24
+ IEntityWFstageCVM,
25
+ IEntityWFstageUVM,
26
+ IEntityWFstageVM,
27
+ IEventConditionCVM,
28
+ IEventCVM,
29
+ ISlaCVM,
30
+ ISlaLineCVM,
31
+ WfProcessStageStatusFieldCVM,
32
+ WfProcessStageStatusFieldUVM,
33
+ WfProcessStageStatusFieldVM,
34
+ } from '../interface/entityTypeInterface';
35
+ import { environment } from '../../arco-support-request.service';
36
+ import {
37
+ EntityTypeFieldCVM,
38
+ EntityTypeFieldUVM,
39
+ EntityTypeFormCVM,
40
+ EntityTypeFormUVM,
41
+ EntityTypeSetUpCVM,
42
+ EntityTypeSetUpUVM,
43
+ EntityTypeSetUpVM,
44
+ } from '../interface/entityTypeInterface';
45
+ import { BehaviorSubject, Observable, Subject } from 'rxjs';
46
+ import {
47
+ AssignmentData,
48
+ AssignmentIssueGroup,
49
+ AssignmentRequester,
50
+ } from '../../templates/attachmentsetup/attachment-interface';
51
+ import { ISysEventActionCVM } from '../interface/eventEnum';
52
+ import { nullSafeIsEquivalent } from '@angular/compiler/src/output/output_ast';
53
+ import {
54
+ categoryrequestertypeCVM,
55
+ TicketGroupCVM,
56
+ TicketGroupUVM,
57
+ TicketGroupVM,
58
+ TicketSubGroupCVM,
59
+ TicketSubGroupUVM,
60
+ TicketSubGroupVM,
61
+ } from '../../ticket/_interfaces/model';
62
+ import { GlobalService } from '../../core/global.service';
63
+ @Injectable({
64
+ providedIn: 'root',
65
+ })
66
+ export class EntityTypeSetupService {
67
+ constructor(private http: HttpClient,
68
+ private globalService: GlobalService) {
69
+ this.globalService.onHostUrlChange.subscribe(x => {
70
+ environment.ServerUrl = x.Url +"/productivity/api/v1/";
71
+ });
72
+ }
73
+
74
+ onPlaceHolderSelect: BehaviorSubject<{ placeholder: any,Type:any }> =
75
+ new BehaviorSubject<{
76
+ placeholder: any;Type:any;
77
+ }>({ placeholder: null,Type:null });
78
+
79
+ public IsPopupOpen: boolean = false;
80
+
81
+ public serverURL: string;
82
+ private v1: string;
83
+
84
+ public EntityTypeRecId1: any;
85
+ public StageRecId: any;
86
+
87
+ public showpopup: Subject<any> = new Subject();
88
+
89
+ open() {
90
+ this.IsPopupOpen = true;
91
+ }
92
+
93
+ close() {
94
+ this.IsPopupOpen = false;
95
+ }
96
+
97
+ onshowWorkflowPopup: BehaviorSubject<{
98
+ showWorkflowPopup?: boolean;
99
+ fieldConfig?: any[];
100
+ isUpdateField?: boolean;
101
+ ActionCondition?: any;
102
+ isFileAttach?: boolean;
103
+ GridRecId?: number;
104
+ MenuRecId?: number;
105
+ ProcessId?: string;
106
+ CurrentStage?: any;
107
+ Items?: any;
108
+ }> = new BehaviorSubject<{
109
+ showWorkflowPopup?: boolean;
110
+ fieldConfig?: any[];
111
+ isUpdateField?: boolean;
112
+ ActionCondition?: any;
113
+ isFileAttach?: boolean;
114
+ GridRecId?: number;
115
+ MenuRecId?: number;
116
+ ProcessId?: string;
117
+ CurrentStage?: any;
118
+ Items?: any;
119
+ }>({
120
+ showWorkflowPopup: false,
121
+ fieldConfig: [],
122
+ isUpdateField: null,
123
+ ActionCondition: null,
124
+ isFileAttach: false,
125
+ GridRecId: null,
126
+ MenuRecId: null,
127
+ ProcessId: null,
128
+ CurrentStage: null,
129
+ Items: null,
130
+ });
131
+
132
+ public dataTypeValue = [
133
+ { Id: 1, Type: 'string' },
134
+ { Id: 2, Type: 'int' },
135
+ { Id: 3, Type: 'date' },
136
+ { Id: 4, Type: 'dateTime' },
137
+ { Id: 5, Type: 'decimal' },
138
+ { Id: 6, Type: 'timeSpan' },
139
+ { Id: 7, Type: 'image' },
140
+ { Id: 8, Type: 'dropdown' },
141
+ { Id: 9, Type: 'bool' },
142
+ { Id: 10, Type: 'textarea' },
143
+ { Id: 11, Type: 'file' },
144
+ { Id: 19, Type: 'htmleditor' },
145
+ ];
146
+
147
+ EntityTypeRecId = null;
148
+
149
+ getMethod(url) {
150
+ return this.http.get(url);
151
+ }
152
+
153
+ uploadFiles(
154
+ files,
155
+ obj: { docType: string; docName: string; recId: number | string }
156
+ ) {
157
+
158
+ // let url_ = this.Attach_serverURL + this.commonURL + "/documenttype/uploadfile?RecId=" + Obj.RecId + "&Title=" + Obj.Title + "&Tablename=" + Obj.Tablename + "&CurrentController=" + Obj.CurrentController + "&CurrentAction=" + Obj.CurrentAction + "&DocumentType=" + Obj.DocumentType + "&DocumentVersion=" + Obj.DocumentVersion + "&FileName=" + Obj.FileName;
159
+ let url_ =
160
+ this.serverURL +
161
+ this.v1 +
162
+ `/common/documenttype/uploadfile?DocumentType=${obj.docType}&FileName=${obj.docName}&RecId=${obj.recId}`;
163
+ url_ = url_.replace(/[?&]$/, '');
164
+
165
+ // const content_ = Obj;
166
+
167
+ // let options_: any = {
168
+ // body: content_,
169
+ // observe: "response",
170
+ // // formData:files,
171
+ // responseType: "blob",
172
+ // headers: new HttpHeaders({
173
+ // "Content-Type": "application/json",
174
+ // "Accept": "application/json"
175
+ // })
176
+ // };
177
+
178
+ return this.http.post(url_, files);
179
+ }
180
+
181
+ getEnumForEntityType() {
182
+ let url = environment.ServerUrl + 'entitytype/getenumdropdown';
183
+ return this.http.get<CommentsVM[]>(url);
184
+ }
185
+
186
+ getComments(criteriastr: ISearchCriteria) {
187
+ let url = environment.ServerUrl + 'entitytype/comments';
188
+ return this.http.get<CommentsVM[]>(url, CriteriaBuilder(criteriastr));
189
+ }
190
+
191
+ getSingleComments(RecId: number) {
192
+ let url = environment.ServerUrl + 'entitytype/comments/' + RecId;
193
+ return this.http.get<CommentsVM>(url);
194
+ }
195
+
196
+ createComments(data: CommentsCVM) {
197
+ let url = environment.ServerUrl + 'entitytype/comments/add';
198
+ return this.http.post(url, data);
199
+ }
200
+
201
+ updateComments(data: CommentsUVM) {
202
+ let url = environment.ServerUrl + 'entitytype/comments/update';
203
+ return this.http.put(url, data);
204
+ }
205
+
206
+ deleteComments(RecIds: number[]) {
207
+ let url = environment.ServerUrl + 'entitytype/comments?recIds=' + RecIds;
208
+ return this.http.delete(url);
209
+ }
210
+
211
+ getWfProcessStageStatusFieldByActionRecId(
212
+ criteriastr: ISearchCriteria,
213
+ ActionRecId: number
214
+ ) {
215
+ // alert("a")
216
+
217
+ let url =
218
+ environment.ServerUrl +
219
+ 'entitytype/wfprocessstagestatusfield?ActionRecId=' +
220
+ ActionRecId;
221
+ return this.http.get<WfProcessStageStatusFieldVM[]>(
222
+ url,
223
+ CriteriaBuilder(criteriastr)
224
+ );
225
+ }
226
+
227
+ getWfProcessStageStatusField(criteriastr: ISearchCriteria) {
228
+ let url = environment.ServerUrl + 'entitytype/wfprocessstagestatusfield';
229
+ return this.http.get<WfProcessStageStatusFieldVM[]>(
230
+ url,
231
+ CriteriaBuilder(criteriastr)
232
+ );
233
+ }
234
+
235
+ getSingleWfProcessStageStatusField(RecId: number) {
236
+ let url =
237
+ environment.ServerUrl + 'entitytype/wfprocessstagestatusfield/' + RecId;
238
+ return this.http.get<WfProcessStageStatusFieldVM>(url);
239
+ }
240
+
241
+ createWfProcessStageStatusField(data: WfProcessStageStatusFieldCVM) {
242
+
243
+ let url =
244
+ environment.ServerUrl + 'entitytype/wfprocessstagestatusfield/add';
245
+ return this.http.post(url, data);
246
+ }
247
+
248
+ updateWfProcessStageStatusField(data: WfProcessStageStatusFieldUVM) {
249
+ let url =
250
+ environment.ServerUrl + 'entitytype/wfprocessstagestatusfield/update';
251
+ return this.http.put(url, data);
252
+ }
253
+
254
+ deleteWfProcessStageStatusField(RecIds: number[]) {
255
+ let url =
256
+ environment.ServerUrl +
257
+ 'entitytype/wfprocessstagestatusfield?recIds=' +
258
+ RecIds;
259
+ return this.http.delete(url);
260
+ }
261
+
262
+ //------------------------setup------------------//
263
+
264
+ getSingleWfStage(RecID: any) {
265
+ const url = EntityWfStage.GetSinglewfstage(RecID);
266
+ return this.http.get(url);
267
+ }
268
+
269
+ getEntityTypeDropdowns(EnumName: string) {
270
+ const url = EntityWfStage.getEntityTypeDropDown(EnumName);
271
+ return this.http.get(url);
272
+ }
273
+
274
+ getNextStageDropDown(EnumRecord: number) {
275
+ const url = EntityWfStage.GetNextStageDropDown(EnumRecord);
276
+ return this.http.get(url);
277
+ }
278
+
279
+ getEnumDropDown(EnumName: string) {
280
+ const url = EntityWfStage.getEntityTypeDropDown(EnumName);
281
+ return this.http.get(url);
282
+ }
283
+
284
+ getlistview(EntityTypeId: number) {
285
+ const url = EntityTypeSetUp.getlistview(EntityTypeId);
286
+ return this.http.get(url);
287
+ }
288
+
289
+ getCaseDropDown(caseType) {
290
+ const url = EntityWfStage.getCaseTypeDropDown(caseType);
291
+ return this.http.get(url);
292
+ }
293
+
294
+ getEntityRecorddrop(EnumRecord: number) {
295
+ const url = EntityWfStage.GetEntityRecordDropDown(EnumRecord);
296
+ return this.http.get(url);
297
+ }
298
+
299
+ getEntityActionDropdown(RecId: number) {
300
+ const url = EntityWfStage.GetEntityActionDropDown(RecId);
301
+ return this.http.get(url);
302
+ }
303
+
304
+ getAssignmentByStageId(
305
+ criteriastr: ISearchCriteria,
306
+ stageRecId
307
+ ): Observable<IEntityWFstageVM[]> {
308
+ const wfStagelist =
309
+ EntityWfStage.GetwfprocessstageassignmentByStageRecId(stageRecId);
310
+ return this.http.get<IEntityWFstageVM[]>(wfStagelist, {
311
+ params: CriteriaBuilder(criteriastr),
312
+ });
313
+ }
314
+ getAssignmentByEntityTypeId(
315
+ criteriastr: ISearchCriteria,
316
+ EntityTypeId
317
+ ): Observable<IEntityWFstageVM[]> {
318
+ const wfStagelist =
319
+ EntityWfStage.GetwfprocessstageassignmentByEntityTypeId(EntityTypeId);
320
+ return this.http.get<IEntityWFstageVM[]>(wfStagelist, {
321
+ params: CriteriaBuilder(criteriastr),
322
+ });
323
+ }
324
+
325
+ getShortKeyCannedResponse(searchterm?: string) {
326
+
327
+ const url = ShortKeyCannedResponse.getShortCannedRespones(searchterm);
328
+ return this.http.get(url);
329
+ }
330
+
331
+ getAllWfStage(
332
+ criteriastr: ISearchCriteria,
333
+ EntityTypeId,
334
+ showallpending?
335
+ ): Observable<IEntityWFstageVM[]> {
336
+ if (!showallpending)
337
+ showallpending = false
338
+ const wfStagelist = EntityWfStage.Getwfstage(EntityTypeId,showallpending);
339
+ return this.http.get<IEntityWFstageVM[]>(wfStagelist, {
340
+ params: CriteriaBuilder(criteriastr),
341
+ });
342
+ }
343
+
344
+ getWfStageEnumdropdown(enumname: string) {
345
+ const url = EntityWfStage.getWfStageEnumdropdown(enumname, 'Productivity');
346
+ return this.http.get(url);
347
+ }
348
+
349
+ getWfStage(EntityTypeId: number, recordStatus: number) {
350
+
351
+ const url = EntityWfStage.getWfStages(EntityTypeId, recordStatus);
352
+ return this.http.get(url);
353
+ }
354
+
355
+ postWfStage(data: IEntityWFstageCVM) {
356
+ const wfstagelist = EntityWfStage.Postwfstage();
357
+ return this.http.post(wfstagelist, data);
358
+ }
359
+
360
+ postWfStagePublic(data: IEntityWFstageCVM) {
361
+
362
+ const wfstagelist = EntityWfStage.PostwfstagePublic();
363
+ return this.http.post(wfstagelist, data);
364
+ }
365
+
366
+ putWfStage(data: IEntityWFstageUVM) {
367
+ const updat = EntityWfStage.Putwfstage();
368
+ return this.http.put(updat, data);
369
+ }
370
+
371
+ updateWfStagePublic(data: IEntityWFstageUVM) {
372
+ const updat = EntityWfStage.PutwfPublicstage();
373
+ return this.http.put(updat, data);
374
+ }
375
+
376
+ deleteWfStage(RecId: number[]) {
377
+ const dele = EntityWfStage.Deletewfstage(RecId);
378
+ return this.http.delete(dele);
379
+ }
380
+
381
+ deleteWfProcessStageStatus(RecId: number[]) {
382
+ const dele = EntityWfStage.Deletewfprocessstagestatus(RecId);
383
+ return this.http.delete(dele);
384
+ }
385
+
386
+ getSingleWfProcessAssignment(RecID: any) {
387
+ const url =
388
+ Entitywfprocessstageassignment.GetSinglewfprocessstageassignment(RecID);
389
+ return this.http.get(url);
390
+ }
391
+
392
+ getAllWfProcessAssignment(
393
+ criteriastr: ISearchCriteria
394
+ ): Observable<IEntityTypeWFProcessStageAssignmentVM[]> {
395
+ const wfProcessAssignmentlist =
396
+ Entitywfprocessstageassignment.Getwfprocessstageassignment();
397
+ return this.http.get<IEntityTypeWFProcessStageAssignmentVM[]>(
398
+ wfProcessAssignmentlist,
399
+ { params: CriteriaBuilder(criteriastr) }
400
+ );
401
+ }
402
+
403
+ getAllWfProcessAssignmentByStageRecId(
404
+ criteriastr: ISearchCriteria,
405
+ StageRecId
406
+ ): Observable<IEntityTypeWFProcessStageAssignmentVM[]> {
407
+ const wfProcessAssignmentlist =
408
+ Entitywfprocessstageassignment.GetwfprocessstageassignmentByStageRecId(
409
+ StageRecId
410
+ );
411
+ return this.http.get<IEntityTypeWFProcessStageAssignmentVM[]>(
412
+ wfProcessAssignmentlist,
413
+ { params: CriteriaBuilder(criteriastr) }
414
+ );
415
+ }
416
+
417
+ postWfProcessAssignment(data: IEntityTypeWFProcessStageAssignmentCVM) {
418
+ const wfProcessAssignmentlist =
419
+ Entitywfprocessstageassignment.Postwfprocessstageassignment();
420
+ return this.http.post(wfProcessAssignmentlist, data);
421
+ }
422
+
423
+ putWfProcessAssignment(data: IEntityTypeWFProcessStageAssignmentUVM) {
424
+ const updat = Entitywfprocessstageassignment.Putwfprocessstageassignment();
425
+ return this.http.put(updat, data);
426
+ }
427
+ deleteWfProcessAssignment(RecId: number[]) {
428
+ const dele =
429
+ Entitywfprocessstageassignment.Deletewfprocessstageassignment(RecId);
430
+ return this.http.delete(dele);
431
+ }
432
+ getAssignAssignment(StageRecId: any) {
433
+ const url = AssignmentUserRole.GetAssignUser(StageRecId);
434
+ return this.http.get(url);
435
+ }
436
+
437
+ PostTicketMappingTypeAssign(data) {
438
+ const Typelist = AssignmentUserRole.PostAssignUser();
439
+ return this.http.post(Typelist, data);
440
+ }
441
+
442
+ PostUserAssignmentByStageRecId(data) {
443
+
444
+ const st = data.URIds.map((x) => 'URIds=' + x).join('&');
445
+ let url_ = `${environment.ServerUrl}/entitytype/wfprocessstageassignment/assingnuser?${st}&StageRecId=${data.StageRecId}`;
446
+ return this.http.post(url_, null);
447
+ }
448
+
449
+ PostUserUnAssignmentByStageRecId(data) {
450
+
451
+ const st = data.URIds.map((x) => 'URIds=' + x).join('&');
452
+ let url_ = `${environment.ServerUrl}/entitytype/wfprocessstageassignment/unassingnuser?${st}&StageRecId=${data.StageRecId}`;
453
+ return this.http.post(url_, null);
454
+ }
455
+
456
+ TicketMappingTypeUnassign(data) {
457
+ const Typelist = AssignmentUserRole.PostUnassignUser();
458
+ return this.http.post(Typelist, data);
459
+ }
460
+
461
+ PostAssignmentRoleTypeAssignByStageRecId(data) {
462
+
463
+ const st = data.URIds.map((x) => 'URIds=' + x).join('&');
464
+ let url_ = `${environment.ServerUrl}/entitytype/wfprocessstageassignment/assingnrole?${st}&StageRecId=${data.StageRecId}`;
465
+ return this.http.post(url_, null);
466
+ }
467
+
468
+ PostAssignmentRoleTypeUnassignRecId(data) {
469
+
470
+ const st = data.URIds.map((x) => 'URIds=' + x).join('&');
471
+ let url_ = `${environment.ServerUrl}/entitytype/wfprocessstageassignment/unassingnrole?${st}&StageRecId=${data.StageRecId}`;
472
+ return this.http.post(url_, null);
473
+ }
474
+
475
+ PostAssignmentRoleTypeAssignByStageRecIds(data, StageRecId) {
476
+
477
+ const Typelist = AssignmentUserRole.PostAssignRole(StageRecId);
478
+ return this.http.post(Typelist, data);
479
+ }
480
+
481
+ // PostAssignmentRoleTypeAssign(data){
482
+ // const Typelist = AssignmentUserRole.PostAssignRole();
483
+ // return this.http.post(Typelist,data);
484
+ // }
485
+
486
+ PostAssignmentRoleTypeUnassign(data) {
487
+ const Typelist = AssignmentUserRole.PostUnAssignRole();
488
+ return this.http.post(Typelist, data);
489
+ }
490
+
491
+ getRoleUserwise() {
492
+ const userwise = AssignmentUserRole.GetRoleSelect();
493
+ return this.http.get(userwise);
494
+ }
495
+
496
+ getRolesUserwise() {
497
+ const userwises = AssignmentUserRole.GetUserSelect();
498
+ return this.http.get(userwises);
499
+ }
500
+
501
+ getRolewithUserwise(EntityTypeRecId: number, URIds: number) {
502
+ const userwise = AssignmentUserRole.GetRoleUserWise(EntityTypeRecId, URIds);
503
+ return this.http.get(userwise);
504
+ }
505
+
506
+ getRoleswithUserwise(EntityTypeRecId: number, URIds: number) {
507
+ const userwises = AssignmentUserRole.GetRolesUserWise(
508
+ EntityTypeRecId,
509
+ URIds
510
+ );
511
+ return this.http.get(userwises);
512
+ }
513
+
514
+ PostAssignmentRolesAssignByStageRecId(data) {
515
+
516
+ const st = data.StageRecId.map((x) => 'StageRecId=' + x).join('&');
517
+ let url_ = `${environment.ServerUrl}entitytype/wfprocessstageassignment/stagestatus/assingnrole?${st}&URIds=${data.URIds}`;
518
+ return this.http.post(url_, null);
519
+ }
520
+
521
+ PostAssignmentRolesUnAssignByStageRecId(data) {
522
+
523
+ const st = data.StageRecId.map((x) => 'StageRecId=' + x).join('&');
524
+ let url_ = `${environment.ServerUrl}entitytype/wfprocessstageassignment/stagestatus/unassingnrole?${st}&URIds=${data.URIds}`;
525
+ return this.http.post(url_, null);
526
+ }
527
+
528
+ PostUserAssignByStageRecId(data) {
529
+
530
+ const st = data.StageRecId.map((x) => 'StageRecId=' + x).join('&');
531
+ let url_ = `${environment.ServerUrl}entitytype/wfprocessstageassignment/stagestatus/assingnuser?${st}&URIds=${data.URIds}`;
532
+ return this.http.post(url_, null);
533
+ }
534
+
535
+ PostUsersUnAssignByStageRecId(data) {
536
+
537
+ const st = data.StageRecId.map((x) => 'StageRecId=' + x).join('&');
538
+ let url_ = `${environment.ServerUrl}entitytype/wfprocessstageassignment/stagestatus/unassingnuser?${st}&URIds=${data.URIds}`;
539
+ return this.http.post(url_, null);
540
+ }
541
+ getSingleWfProcessStage(RecID: any) {
542
+ const url = Entitywfprocessstagestatus.GetSinglewfprocessstagestatus(RecID);
543
+ return this.http.get(url);
544
+ }
545
+
546
+ getWfProcessStageByStageRecId(
547
+ criteriastr: ISearchCriteria,
548
+ StageRecId: number
549
+ ): Observable<IEntityTypeWFProcessStageStatusVM[]> {
550
+
551
+ const wfProcessStatuslist =
552
+ Entitywfprocessstagestatus.GetwfprocessstagestatusByStageRecId(
553
+ StageRecId
554
+ );
555
+ return this.http.get<IEntityTypeWFProcessStageStatusVM[]>(
556
+ wfProcessStatuslist,
557
+ { params: CriteriaBuilder(criteriastr) }
558
+ );
559
+ }
560
+
561
+ getAllWfProcessStage(
562
+ criteriastr: ISearchCriteria,
563
+ StageRecId: number
564
+ ): Observable<IEntityTypeWFProcessStageStatusVM[]> {
565
+ const wfProcessStatuslist =
566
+ Entitywfprocessstagestatus.Getwfprocessstagestatus();
567
+ return this.http.get<IEntityTypeWFProcessStageStatusVM[]>(
568
+ wfProcessStatuslist,
569
+ { params: CriteriaBuilder(criteriastr) }
570
+ );
571
+ }
572
+
573
+ postWfProcessStage(data: IEntityTypeWFProcessStageStatusCVM) {
574
+ const wfProcessStatuslist =
575
+ Entitywfprocessstagestatus.Postwfprocessstagestatus();
576
+ return this.http.post(wfProcessStatuslist, data);
577
+ }
578
+
579
+ postWfProcessStagePublic(data: IEntityTypeWFProcessStageStatusCVM) {
580
+ const wfProcessStatuslist =
581
+ Entitywfprocessstagestatus.PostwfprocessstagestatusPublic();
582
+ return this.http.post(wfProcessStatuslist, data);
583
+ }
584
+
585
+ getAllEvent(EntityTypeId: number) {
586
+
587
+ const url = EntityEvent.getAllEvents(EntityTypeId);
588
+ return this.http.get(url);
589
+ }
590
+
591
+ getAllActionGroup(criteriastr: ISearchCriteria) {
592
+
593
+ const url = EntityEvent.getAllActionGroup();
594
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
595
+ }
596
+
597
+ getAllActionGroupByEntityTypeRecId(
598
+ criteriastr: ISearchCriteria,
599
+ EntityTypeRecId
600
+ ) {
601
+
602
+ const url = EntityEvent.getAllActionGroupByEntityTypeRecId(EntityTypeRecId);
603
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
604
+ }
605
+
606
+ getActivityTemplate(CaseTypeId) {
607
+
608
+ const url = EntityEvent.getActivityTemplate(CaseTypeId);
609
+ return this.http.get(url);
610
+ }
611
+
612
+ GetSingleActionCondition(recId: number) {
613
+
614
+ const url = EntityEvent.GetSingleEventCondition(recId);
615
+ return this.http.get(url);
616
+ }
617
+
618
+ GetSingleEvents(recId: number) {
619
+
620
+ const url = EntityEvent.GetSingleEvents(recId);
621
+ return this.http.get(url);
622
+ }
623
+
624
+ GetEventsHistory(criteriastr: ISearchCriteria, EventRecId) {
625
+
626
+ const url = EntityEvent.GetEventsHistory(EventRecId);
627
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
628
+ }
629
+
630
+ GetSingleAction(recId: number) {
631
+
632
+ const url = EntityEvent.GetSingleAction(recId);
633
+ return this.http.get(url);
634
+ }
635
+
636
+ getAllEvents(criteriastr: ISearchCriteria) {
637
+
638
+ const url = EntityEvent.getAllEventsWithoutType();
639
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
640
+ }
641
+
642
+ getEventsFollowupcommentsbyrefrecid(
643
+ criteriastr: ISearchCriteria,
644
+ refRecId,
645
+ entitytyperecid,
646
+ refTableName
647
+ ) {
648
+
649
+ const url = EntityEvent.getEventsFollowupcommentsbyrefrecid(
650
+ refRecId,
651
+ entitytyperecid,
652
+ refTableName
653
+ );
654
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
655
+ }
656
+
657
+ getAllEventsByEntityTypeRecId(EntityTypeRecId) {
658
+
659
+ const url = EntityEvent.getAllEventsWithType(EntityTypeRecId);
660
+ return this.http.get(url);
661
+ }
662
+
663
+ getAllEventsByEntityTypeRecIdList(
664
+ EntityTypeRecId,
665
+ criteriastr: ISearchCriteria
666
+ ) {
667
+
668
+ const url = EntityEvent.getAllEventsWithType(EntityTypeRecId);
669
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
670
+ }
671
+
672
+ getAllActionsByEntityTypeId(EntityTypeId: number) {
673
+
674
+ const url = EntityEvent.getAllActionsByEntityTypeId(EntityTypeId);
675
+ return this.http.get(url);
676
+ }
677
+
678
+ getActionsByActionGroupId(criteriastr: ISearchCriteria, actionGroupId) {
679
+
680
+ const url = EntityEvent.getActionsByActionGroupId(actionGroupId);
681
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
682
+ }
683
+
684
+ deleteAction(RecId: number[]) {
685
+ const url = EntityEvent.deleteAction(RecId);
686
+ return this.http.delete(url);
687
+ }
688
+
689
+ getAllActions(criteriastr: ISearchCriteria) {
690
+
691
+ const url = EntityEvent.getAllActions();
692
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
693
+ }
694
+
695
+ getAllActionsByEntityTypeRecId(
696
+ EntityTypeRecId,
697
+ criteriastr: ISearchCriteria
698
+ ) {
699
+
700
+ const url = EntityEvent.getAllActionsByEntityTypeRecId(EntityTypeRecId);
701
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
702
+ }
703
+
704
+ getEventCondition(recId: number) {
705
+
706
+ const url = EntityEvent.getEventsConditions(recId);
707
+ return this.http.get(url);
708
+ }
709
+
710
+ deleteEvent(RecId: number[]) {
711
+ const url = EntityEvent.deleteEvents(RecId);
712
+ return this.http.delete(url);
713
+ }
714
+
715
+ getEventAction(EventName: string) {
716
+
717
+ const url = EntityEvent.getEventAction(EventName);
718
+ return this.http.get(url);
719
+ }
720
+
721
+ postEventAction(data: ISysEventActionCVM) {
722
+ const url = EntityEvent.postEventAction();
723
+ return this.http.post(url, data);
724
+ }
725
+
726
+ deleteEventAction(RecId: number[]) {
727
+ const url = EntityEvent.deleteEventAction(RecId);
728
+ return this.http.delete(url);
729
+ }
730
+
731
+ putEventAction(data: ISysEventActionCVM) {
732
+ const url = EntityEvent.putEventAction();
733
+ return this.http.put(url, data);
734
+ }
735
+
736
+ postEvent(data: IEventCVM) {
737
+ const EventList = EntityEvent.PostEventAdd();
738
+ return this.http.post(EventList, data);
739
+ }
740
+
741
+ postAction(data: IActionCVM) {
742
+ const ActionList = EntityEvent.PostActionAdd();
743
+ return this.http.post(ActionList, data);
744
+ }
745
+
746
+ putAction(data: IActionCVM) {
747
+ const ActionList = EntityEvent.PutActionAdd();
748
+ return this.http.put(ActionList, data);
749
+ }
750
+
751
+ postActionGroup(data) {
752
+ const ActionList = EntityEvent.PostActionGroupAdd();
753
+ return this.http.post(ActionList, data);
754
+ }
755
+
756
+ putActionGroup(data) {
757
+ const ActionList = EntityEvent.putActionGroup();
758
+ return this.http.put(ActionList, data);
759
+ }
760
+
761
+ postEventActive(recId, comments) {
762
+
763
+ const url = EntityEvent.PostEventActive(recId, comments);
764
+ return this.http.post(url, null);
765
+ }
766
+
767
+ postActionActive(recId, comments) {
768
+ const url = EntityEvent.PostActionActive(recId, comments);
769
+ return this.http.post(url, null);
770
+ }
771
+
772
+ postActive(recId, comments) {
773
+ const url = EntityEvent.PostActive(recId, comments);
774
+ return this.http.post(url, null);
775
+ }
776
+
777
+ postActionDeActive(recId, comments) {
778
+ const url = EntityEvent.PostActionDeActive(recId, comments);
779
+ return this.http.post(url, null);
780
+ }
781
+
782
+ postEventDeActive(recId, comments) {
783
+ const url = EntityEvent.PostEventDeActive(recId, comments);
784
+ return this.http.post(url, null);
785
+ }
786
+
787
+ postDeActive(recId, comments) {
788
+ const url = EntityEvent.PostDeActive(recId, comments);
789
+ return this.http.post(url, null);
790
+ }
791
+
792
+ postEventCondition(data: IEventConditionCVM) {
793
+ const EventList = EntityEvent.PostEventConditionAdd();
794
+ return this.http.post(EventList, data);
795
+ }
796
+
797
+ putEventCondition(data) {
798
+ const url = EntityEvent.putEventCondition();
799
+ return this.http.put(url, data);
800
+ }
801
+
802
+ getValidate(EntityTypeRecId: number) {
803
+ const url = EntityEvent.setValidation(EntityTypeRecId);
804
+ return this.http.get(url);
805
+ }
806
+
807
+ getRequester(RequesterTypeId: string) {
808
+ const url = EntityEvent.setdropdownrequester(RequesterTypeId);
809
+ return this.http.get(url);
810
+ }
811
+
812
+ getSla(EntityTypeId: number) {
813
+
814
+ const url = Sla.getAllSla(EntityTypeId);
815
+ return this.http.get(url);
816
+ }
817
+
818
+ getSlaLine(criteriastr: ISearchCriteria, SLARecId: number) {
819
+
820
+ const url = Sla.getSlaLines(SLARecId);
821
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
822
+ }
823
+
824
+ postSlaActive(recId, comments) {
825
+
826
+ const url = Sla.PostSlaActive(recId, comments);
827
+ return this.http.post(url, null);
828
+ }
829
+
830
+ postSlaDeActive(recId, comments) {
831
+ const url = Sla.PostSlaDeActive(recId, comments);
832
+ return this.http.post(url, null);
833
+ }
834
+
835
+ addSla(data: ISlaCVM) {
836
+
837
+ const EventList = Sla.PostSlaAdd();
838
+
839
+ return this.http.post(EventList, data);
840
+ }
841
+
842
+ addSlaLine(data: ISlaLineCVM) {
843
+ const EventList = Sla.PostSlaLineAdd();
844
+ return this.http.post(EventList, data);
845
+ }
846
+
847
+ updateSlaLine(data: ISlaLineCVM) {
848
+ const url = Sla.putSlaLine();
849
+ return this.http.put(url, data);
850
+ }
851
+
852
+ updateSla(data: ISlaCVM) {
853
+ const url = Sla.putSla();
854
+ return this.http.put(url, data);
855
+ }
856
+
857
+ deleteSla(RecId: number[]) {
858
+ const url = Sla.deleteSla(RecId);
859
+ return this.http.delete(url);
860
+ }
861
+
862
+ deleteSlaLine(RecId: number[]) {
863
+ const url = Sla.deleteSlaLine(RecId);
864
+ return this.http.delete(url);
865
+ }
866
+
867
+ putWfProcessStage(data: IEntityTypeWFProcessStageStatusUVM) {
868
+ const updat = Entitywfprocessstagestatus.Putwfprocessstagestatus();
869
+ return this.http.put(updat, data);
870
+ }
871
+
872
+ putWfProcessStagePublic(data: IEntityTypeWFProcessStageStatusUVM) {
873
+ const updat = Entitywfprocessstagestatus.PutwfprocessstagestatusPublic();
874
+ return this.http.put(updat, data);
875
+ }
876
+
877
+ deleteWfProcessStage(RecId: number[]) {
878
+ const dele = Entitywfprocessstagestatus.Deletewfprocessstagestatus(RecId);
879
+ return this.http.delete(dele);
880
+ }
881
+
882
+ // -------------------Dynamic --------------- //
883
+
884
+ dynamicAPi(
885
+ restData: IRestConfig,
886
+ FormValues?: any,
887
+ searchCriteria?: ISearchCriteria,
888
+ SearchText?: any,
889
+ isHavecriteria?: boolean
890
+ ) {
891
+ // alert('get service');
892
+
893
+ let params = this.setparameter(
894
+ restData.QueryStrings,
895
+ FormValues,
896
+ SearchText,
897
+ isHavecriteria
898
+ );
899
+ let headers = this.setHeaders(restData.Headers, FormValues);
900
+ let parameter = this.getArraycolumn(params);
901
+
902
+ let _url = restData.URL + parameter;
903
+ // searchCriteria = this.setCriteriaField(restData.QueryStrings,FormValues,searchCriteria)
904
+
905
+ let _responseType:any = restData.ResponseType?restData.ResponseType:'json'
906
+
907
+
908
+ switch (restData.Method) {
909
+ case 'GET': {
910
+
911
+ return this.http.get<any>(_url, {
912
+ params: CriteriaBuilder(searchCriteria),
913
+ responseType: _responseType,
914
+ headers:headers
915
+ });
916
+ break;
917
+ }
918
+ case 'POST': {
919
+ return this.http.post<any>(_url, restData.Body ,{
920
+ responseType: _responseType,
921
+ headers:headers
922
+ });
923
+ break;
924
+ }
925
+ case 'PUT': {
926
+ return this.http.put<any>(_url, restData.Body,{
927
+ responseType: _responseType,
928
+ headers:headers
929
+ });
930
+ break;
931
+ }
932
+ case 'DELETE': {
933
+ return this.http.delete<any>(_url,{
934
+ responseType: _responseType,
935
+ headers:headers
936
+ });
937
+ break;
938
+ }
939
+ default: {
940
+ return this.http.get<any>(_url,{
941
+ responseType: _responseType,
942
+ headers:headers
943
+ });
944
+ }
945
+ }
946
+ }
947
+
948
+ setparameter(
949
+ parameters: INameTypeVal[],
950
+ FormValues,
951
+ SearchText?,
952
+ isHavecriteria?: boolean
953
+ ) {
954
+
955
+ let params: INameVal[] = [];
956
+
957
+ parameters.forEach((element) => {
958
+ if (element.Type == 'FieldValue') {
959
+ let temp: INameVal = {
960
+ Name: element.Name,
961
+ Value: FormValues[element.Value],
962
+ };
963
+ // if(!element.IsCriteriaField)
964
+ params.push(temp);
965
+ }
966
+
967
+ else if (element.Type == 'SearchValue') {
968
+ if (SearchText && !isHavecriteria) {
969
+ let temp: INameVal = {
970
+ Name: element.Name,
971
+ Value: SearchText,
972
+ };
973
+ params.push(temp);
974
+ }
975
+ }
976
+ else {
977
+ let temp: INameVal = { Name: element.Name, Value: element.Value };
978
+ params.push(temp);
979
+ }
980
+
981
+ });
982
+
983
+ return params;
984
+ }
985
+ getArraycolumn(column: INameVal[] = []) {
986
+ if (Array.isArray(column) && column.length > 0) {
987
+ let str = '';
988
+ let i = 0;
989
+ column.forEach((x) => {
990
+
991
+ if (i == 0) str += `?${x.Name}=${x.Value ? x.Value : '' }`;
992
+ else str += `&${x.Name}=${x.Value ? x.Value : ''}`;
993
+ i++;
994
+ });
995
+ return str;
996
+ } else return '';
997
+ }
998
+ setHeaders(header: INameTypeVal[],FormValues) {
999
+ let headers = new HttpHeaders();
1000
+ header.forEach((element) => {
1001
+ headers = headers.set(element.Name,
1002
+ element.Type == 'FieldValue' ? FormValues[element.Value]:element.Value);
1003
+ });
1004
+ return headers;
1005
+ }
1006
+
1007
+ getDyamicUrl(url) {
1008
+ let _url = `${environment.ServerUrl}/${url}`;
1009
+ return this.http.get(_url);
1010
+ }
1011
+ getFieldList() {
1012
+ const url = EntityTypeSetUp.getAllEntityTypeSetup();
1013
+ return this.http.get(url);
1014
+ }
1015
+
1016
+ setCriteriaField(parameters: INameTypeVal[],FormValues,searchCriteria){
1017
+ let criteria = null;
1018
+ parameters.forEach((element) => {
1019
+ if(element.IsCriteriaField && element.Type != 'SearchValue'){
1020
+
1021
+ if(searchCriteria && searchCriteria.Where){
1022
+ let filterobj = {
1023
+ Field: element.Name,
1024
+ Operator: 'Contains',
1025
+ TableAlias: '',
1026
+ Value: FormValues[element.Value],
1027
+ };
1028
+ if(filterobj.Value)
1029
+ searchCriteria.Where.push(filterobj);
1030
+ criteria = searchCriteria;
1031
+ }else{
1032
+ if(!searchCriteria){
1033
+ let SortingField: ISortingField = { field: null, direction: null } as any;
1034
+ searchCriteria ={
1035
+ Pagging: {
1036
+ PageNo: 1,
1037
+ PageSize: 100,
1038
+ },
1039
+ Where: [],
1040
+ SortOrder: SortingField,
1041
+ }
1042
+ }
1043
+
1044
+ searchCriteria.Where = [];
1045
+
1046
+ let filterobj = {
1047
+ Field: element.Name,
1048
+ Operator: 'Contains',
1049
+ TableAlias: '',
1050
+ Value: FormValues[element.Value],
1051
+ };
1052
+
1053
+ if(filterobj.Value)
1054
+ searchCriteria.Where.push(filterobj)
1055
+
1056
+ criteria = searchCriteria;
1057
+ }
1058
+ }
1059
+ });
1060
+ return criteria
1061
+ }
1062
+
1063
+ // ------------------ Favorites --------------
1064
+
1065
+ favoriteAndRecent() {
1066
+
1067
+ const url = Favorites.favoriteandrecent();
1068
+ return this.http.get(url);
1069
+ }
1070
+
1071
+ getFavorites(EntityTypeId) {
1072
+
1073
+ const url = Favorites.getFavorites(EntityTypeId);
1074
+ return this.http.get(url);
1075
+ }
1076
+ getFavoriteAndRecent() {
1077
+
1078
+ const url = Favorites.getFavoriteAndRecent();
1079
+ return this.http.get(url);
1080
+ }
1081
+ addRecent(EntityTypeId) {
1082
+
1083
+ const url = Favorites.addRecent(EntityTypeId);
1084
+ return this.http.post(url, null);
1085
+ }
1086
+ addFavorites(EntityTypeId) {
1087
+
1088
+ const url = Favorites.addFavorites(EntityTypeId);
1089
+ return this.http.post(url, null);
1090
+ }
1091
+ removeFavorites(EntityTypeId) {
1092
+
1093
+ const url = Favorites.removeFavorites(EntityTypeId);
1094
+ return this.http.delete(url);
1095
+ }
1096
+
1097
+ //------------------------setup------------------//
1098
+ getAllEntityTypeSetup(criteriastr: ISearchCriteria) {
1099
+
1100
+ const url = EntityTypeSetUp.getAllEntityTypeSetup();
1101
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1102
+ }
1103
+ getAllEntityTypeSetupForDropDown() {
1104
+
1105
+ const url = EntityTypeSetUp.getAllEntityTypeSetup();
1106
+ return this.http.get(url);
1107
+ }
1108
+
1109
+ getActiveEntityTypeSetup(
1110
+ criteriastr: ISearchCriteria,
1111
+ EntityType,
1112
+ CategoryId?
1113
+ ) {
1114
+
1115
+ const url = EntityTypeSetUp.getActiveEntityTypeSetup(
1116
+ EntityType,
1117
+ CategoryId
1118
+ );
1119
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1120
+ }
1121
+
1122
+ getAllAssinedActivites(criteriastr: ISearchCriteria, EntityTypeId) {
1123
+
1124
+ const url = EntityTypeSetUp.getAllAssinedActivites(EntityTypeId);
1125
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1126
+ }
1127
+
1128
+ getActiveEntityForm(EntityTypeRecId) {
1129
+
1130
+ const url = EntityTypeSetUp.getActiveEntityForm(EntityTypeRecId);
1131
+ return this.http.get(url);
1132
+ }
1133
+
1134
+ getActiveEntityFormByList(EntityTypeRecId) {
1135
+
1136
+ const url = EntityTypeSetUp.getActiveEntityFormbyList(EntityTypeRecId);
1137
+ return this.http.get(url);
1138
+ }
1139
+
1140
+ getActiveEntityFormByDetails(EntityTypeRecId) {
1141
+
1142
+ const url = EntityTypeSetUp.getActiveEntityFormbyDetails(EntityTypeRecId);
1143
+ return this.http.get(url);
1144
+ }
1145
+
1146
+ getSingleEntityTypeSetupById(RecId: number) {
1147
+ const url = EntityTypeSetUp.getSingleEntityTypeSetupById(RecId);
1148
+ return this.http.get(url);
1149
+ }
1150
+
1151
+ postEntityTypeSetup(data: EntityTypeSetUpCVM) {
1152
+ const url = EntityTypeSetUp.postEntityTypeSetup();
1153
+ return this.http.post(url, data);
1154
+ }
1155
+ putEntityTypeSetup(data: EntityTypeSetUpUVM) {
1156
+
1157
+ const url = EntityTypeSetUp.putEntityTypeSetup();
1158
+ return this.http.put(url, data);
1159
+ }
1160
+ deleteEntityTypeSetup(RecId: number[]) {
1161
+ const url = EntityTypeSetUp.deleteEntityTypeSetup(RecId);
1162
+ return this.http.delete(url);
1163
+ }
1164
+
1165
+ getEntityTypeDropdown(EnumName: string) {
1166
+ const url = EntityTypeSetUp.getEntityTypeDropdown(EnumName);
1167
+ return this.http.get(url);
1168
+ }
1169
+
1170
+ getEntitySetupTemplate(EntityType: any, CategoryId?: any) {
1171
+ const url = EntityTypeSetUp.getEntitySetupTemplate(EntityType, CategoryId);
1172
+ return this.http.get(url);
1173
+ }
1174
+
1175
+ getDocumentTypeAssignUnAssign(MenuRecId: number) {
1176
+ const url = EntityTypeSetUp.getDocumentTypeAssignUnAssign(MenuRecId);
1177
+ return this.http.get(url);
1178
+ }
1179
+ assignDocumentType(data: AssignmentData) {
1180
+
1181
+ const st = data.DocumentTypeRecId.map((x) => 'DocumentTypeRecId=' + x).join(
1182
+ '&'
1183
+ );
1184
+ let url_ = `${environment.ServerUrl}security/documenttype/entitytype/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
1185
+ return this.http.post(url_, null);
1186
+ }
1187
+ unassignDocumentType(data: AssignmentData) {
1188
+ const st = data.DocumentTypeRecId.map((x) => 'DocumentTypeRecId=' + x).join(
1189
+ '&'
1190
+ );
1191
+ let url_ = `${environment.ServerUrl}security/documenttype/entitytype/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
1192
+ return this.http.post(url_, data);
1193
+ }
1194
+
1195
+ getAllRules(EntityTypeId: number) {
1196
+
1197
+ const url = EntityTypeSetUp.getAllRules(EntityTypeId);
1198
+ return this.http.get(url);
1199
+ }
1200
+
1201
+ getAllRulesWithTemplateData(EntityTypeId: number) {
1202
+
1203
+ const url = EntityTypeSetUp.getAllRulesWithTemplateData(EntityTypeId);
1204
+ return this.http.get(url);
1205
+ }
1206
+
1207
+ getSingleRules(EntityTypeId: number, FormRecId: number) {
1208
+
1209
+ const url = EntityTypeSetUp.getSinglelRules(EntityTypeId, FormRecId);
1210
+ return this.http.get(url);
1211
+ }
1212
+
1213
+ // ------------------------- Entity Category -------------------------
1214
+
1215
+ getSingleEntityCategoryById(RecId: number) {
1216
+ const url = EntityTypeSetUp.getEntityCategoryById(RecId);
1217
+ return this.http.get(url);
1218
+ }
1219
+
1220
+ getAllEntityCategory(criteriastr?: ISearchCriteria) {
1221
+
1222
+ const url = EntityTypeSetUp.getAllEntityTypeCategory();
1223
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1224
+ }
1225
+
1226
+ getAllEntityCategoryTask(criteriastr?: ISearchCriteria) {
1227
+
1228
+ const url = EntityTypeSetUp.getEntityTypTask();
1229
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1230
+ }
1231
+
1232
+ createEntityCategory(data: IEntityCategoryVM) {
1233
+ const url = EntityTypeSetUp.createEntityCategory();
1234
+ return this.http.post(url, data);
1235
+ }
1236
+ updateEntityCategory(data: IEntityCategoryVM) {
1237
+ const url = EntityTypeSetUp.updateEntityCategory();
1238
+ return this.http.put(url, data);
1239
+ }
1240
+ deletEntityCategory(RecId: number[]) {
1241
+ const url = EntityTypeSetUp.deleteEntityCategory(RecId);
1242
+ return this.http.delete(url);
1243
+ }
1244
+
1245
+ getLookupValuseByLookupId(LookupTypeId) {
1246
+ const url = EntityTypeSetUp.getLookupValuseByLookupId(LookupTypeId);
1247
+ return this.http.get(url);
1248
+ }
1249
+
1250
+ getRequestereType() {
1251
+ const url = EntityTypeSetUp.getRequesterType();
1252
+ return this.http.get(url);
1253
+ }
1254
+
1255
+ getFieldType() {
1256
+
1257
+ const url = EntityTypeSetUp.getFieldType();
1258
+ return this.http.get(url);
1259
+ }
1260
+
1261
+ assignRequesterType(data: AssignmentRequester) {
1262
+
1263
+ const st = data.RelationIds.map((x) => 'RelationIds=' + x).join('&');
1264
+ let url_ = `${environment.ServerUrl}categorytypeteams/assingnrequestertype?CategoryId=${data.CategoryId}&${st}`;
1265
+ return this.http.post(url_, null);
1266
+ }
1267
+ unassignRequesterType(data: AssignmentRequester) {
1268
+
1269
+ const st = data.RelationIds.map((x) => 'RelationIds=' + x).join('&');
1270
+ let url_ = `${environment.ServerUrl}categorytypeteams/unassingnrequestertype?CategoryId=${data.CategoryId}&${st}`;
1271
+ return this.http.post(url_, null);
1272
+ }
1273
+
1274
+ getassignandunassignrequester(CategoryId: string) {
1275
+ const url = EntityTypeSetUp.getassignunassignrequester(CategoryId);
1276
+ return this.http.get(url);
1277
+ }
1278
+
1279
+ // ----------------------- ActivityTemplate ----------------------------
1280
+
1281
+ getSingleActivityTemplateById(RecId: number) {
1282
+
1283
+ const url = EntityTypeSetUp.getActivityTemplateById(RecId);
1284
+ return this.http.get(url);
1285
+ }
1286
+
1287
+ getAllActivityTemplate(criteriastr?: ISearchCriteria, Actiontype?: number) {
1288
+
1289
+ const url = EntityTypeSetUp.getActivityTemplate(Actiontype);
1290
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1291
+ }
1292
+
1293
+ createActivityTemplate(data: ActivityTemplateCVM) {
1294
+ const url = EntityTypeSetUp.createActivityTemplate();
1295
+ return this.http.post(url, data);
1296
+ }
1297
+ updateActivityTemplate(data: ActivityTemplateCVM) {
1298
+ const url = EntityTypeSetUp.updateActivityTemplate();
1299
+ return this.http.put(url, data);
1300
+ }
1301
+ deletActivityTemplate(RecId: number[]) {
1302
+ const url = EntityTypeSetUp.deleteActivityTemplate(RecId);
1303
+ return this.http.delete(url);
1304
+ }
1305
+
1306
+ //-------------------------------field------------------------
1307
+
1308
+ getTimerEventDropdown(EnumName: string) {
1309
+ const url = EntityWfStage.getEntityTypeDropdown(EnumName);
1310
+ return this.http.get(url);
1311
+ }
1312
+
1313
+ getAllEntityTypeField(criteriastr: ISearchCriteria, EntityTypeId: number) {
1314
+
1315
+ const url = EntityTypeField.getAllEntityTypeField(EntityTypeId);
1316
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1317
+ }
1318
+
1319
+ getAllEntityTypeFieldWithDynamic(
1320
+ criteriastr: ISearchCriteria,
1321
+ EntityTypeId: number
1322
+ ) {
1323
+
1324
+ const url = EntityTypeField.getAllEntityTypeFieldWithDynamic(EntityTypeId);
1325
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1326
+ }
1327
+
1328
+ getAllDefaultEntityTypeField(EntityTypeId: number) {
1329
+
1330
+ const url = EntityTypeField.getAllDefaultEntityTypeField(EntityTypeId);
1331
+ return this.http.get(url);
1332
+ }
1333
+
1334
+ getSingleEntityTypeFieldById(RecId: number) {
1335
+ const url = EntityTypeField.getSingleEntityTypeFieldById(RecId);
1336
+ return this.http.get(url);
1337
+ }
1338
+ postEntityTypeField(data: EntityTypeFieldCVM) {
1339
+ const url = EntityTypeField.postEntityTypeField();
1340
+ return this.http.post(url, data);
1341
+ }
1342
+
1343
+ putEntityTypeField(data: EntityTypeFieldUVM) {
1344
+ const url = EntityTypeField.putEntityTypeField();
1345
+ return this.http.put(url, data);
1346
+ }
1347
+
1348
+ deleteEntityTypeField(RecId: number[]) {
1349
+ const url = EntityTypeField.deleteEntityTypeField(RecId);
1350
+ return this.http.delete(url);
1351
+ }
1352
+
1353
+ getApiUrl(ApiUrl: string) {
1354
+
1355
+ let url = `${environment.ServerUrl}${ApiUrl}`;
1356
+ return this.http.get(url);
1357
+ }
1358
+
1359
+ //-------------------------form-----------------------------
1360
+
1361
+ getAllEntityTypeForm(criteriastr: ISearchCriteria, EntityTypeId: number) {
1362
+
1363
+ const url = EntityTypeForm.getAllEntityTypeForm(EntityTypeId);
1364
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1365
+ }
1366
+
1367
+ getEntityTypeForm(
1368
+ criteriastr: ISearchCriteria,
1369
+ EntityTypeId: number,
1370
+ FormType: number
1371
+ ) {
1372
+
1373
+ const url = EntityTypeForm.getEntityTypeForm(EntityTypeId, FormType);
1374
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1375
+ }
1376
+ getSingleEntityTypeFormById(RecId: number) {
1377
+
1378
+ const url = EntityTypeForm.getSingleEntityTypeFormById(RecId);
1379
+ return this.http.get(url);
1380
+ }
1381
+
1382
+ getSingleFormStatus(RecId: number, Status: number) {
1383
+ const url = EntityTypeForm.getStatusUpdate(RecId, Status);
1384
+ return this.http.get(url);
1385
+ }
1386
+ postEntityTypeForm(data: EntityTypeFormCVM) {
1387
+ const url = EntityTypeForm.postEntityTypeForm();
1388
+ return this.http.post(url, data);
1389
+ }
1390
+
1391
+ postEntityTypeFormData(
1392
+ data: EntityTypeFormCVM,
1393
+ EntityTypeRecId: number,
1394
+ FormType: number,
1395
+ Version?: number
1396
+ ) {
1397
+ const url = EntityTypeForm.postEntityTypeFormData(
1398
+ EntityTypeRecId,
1399
+ FormType,
1400
+ Version
1401
+ );
1402
+ return this.http.post(url, data);
1403
+ }
1404
+
1405
+ putEntityTypeForm(data: EntityTypeFormUVM) {
1406
+ const url = EntityTypeForm.putEntityTypeForm();
1407
+ return this.http.put(url, data);
1408
+ }
1409
+ deleteEntityTypeForm(RecId: number[]) {
1410
+ const url = EntityTypeForm.deleteEntityTypeForm(RecId);
1411
+ return this.http.delete(url);
1412
+ }
1413
+
1414
+ // ---------------------------
1415
+
1416
+ // urlGetDynamicTaskGet(criteriastr: ISearchCriteria) {
1417
+ // const url = taskAPIs.getDynamicTaskGet();
1418
+ // return this.http.get<any>(url, { params: CriteriaBuilder(criteriastr) });
1419
+ // }
1420
+
1421
+ urlGetDynamicTask(criteriastr: ISearchCriteria, EntityTypeId: number) {
1422
+
1423
+ const url = EntityTypeDynamic.getAllEntityTypeTask(EntityTypeId);
1424
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1425
+ }
1426
+
1427
+ urlGetDynamicTaskSingleByRecId(recId: number) {
1428
+ return this.http.get<any>(EntityTypeDynamic.getSingleTaskByRecId(recId));
1429
+ }
1430
+
1431
+ urlGetDynamicTicketSingleByRecId(recId: number) {
1432
+ return this.http.get<any>(EntityTypeDynamic.getSingleTicketByRecId(recId));
1433
+ }
1434
+
1435
+ urlGetDynamicTicketJoinSingleByRecId(recId: number, entityTypeRecId: number) {
1436
+ return this.http.get<any>(
1437
+ EntityTypeDynamic.getSingleTicketJoinByRecId(recId, entityTypeRecId)
1438
+ );
1439
+ }
1440
+
1441
+ urlPostTicketWfAction(
1442
+ RecIds: number,
1443
+ stageId,
1444
+ action,
1445
+ comments,
1446
+ updateFileds,
1447
+ updateFieldsObject,
1448
+ EntityTypeId
1449
+ ) {
1450
+
1451
+ let updateFiledsString = JSON.stringify(updateFileds);
1452
+
1453
+ let obj: any = {
1454
+ RecIds: [RecIds],
1455
+ RecId: 0,
1456
+ StageId: stageId,
1457
+ Action: action,
1458
+ Comments: comments,
1459
+ RefFields: updateFieldsObject,
1460
+ RecordStatus: 0,
1461
+ };
1462
+
1463
+ let url_ =
1464
+ environment.ServerUrl +
1465
+ 'entitytype/ticket/wfAction?entitytyperecid=' +
1466
+ EntityTypeId;
1467
+ return this.http.post(url_, obj);
1468
+ }
1469
+
1470
+ urlPostTicketWfActionMultiple(
1471
+ RecIds: number[],
1472
+ stageId,
1473
+ action,
1474
+ comments,
1475
+ updateFileds,
1476
+ updateFieldsObject,
1477
+ EntityTypeId
1478
+ ) {
1479
+
1480
+ let updateFiledsString = JSON.stringify(updateFileds);
1481
+
1482
+ let obj: any = {
1483
+ RecIds: RecIds,
1484
+ RecId: 0,
1485
+ StageId: stageId,
1486
+ Action: action,
1487
+ Comments: comments,
1488
+ RefFields: updateFieldsObject,
1489
+ RecordStatus: 0,
1490
+ };
1491
+
1492
+ let url_ =
1493
+ environment.ServerUrl +
1494
+ 'entitytype/ticket/wfAction?entitytyperecid=' +
1495
+ EntityTypeId;
1496
+ return this.http.post(url_, obj);
1497
+ }
1498
+
1499
+ urlPostTaskWfAction(
1500
+ RecIds: number,
1501
+ stageId,
1502
+ action,
1503
+ comments,
1504
+ updateFileds,
1505
+ updateFieldsObject,
1506
+ EntityTypeId
1507
+ ) {
1508
+
1509
+ let updateFiledsString = JSON.stringify(updateFileds);
1510
+
1511
+ let obj: any = {
1512
+ RecIds: [RecIds],
1513
+ RecId: 0,
1514
+ StageId: stageId,
1515
+ Action: action,
1516
+ Comments: comments,
1517
+ RefFields: updateFieldsObject,
1518
+ RecordStatus: 0,
1519
+ };
1520
+
1521
+ let url_ =
1522
+ environment.ServerUrl +
1523
+ 'entitytype/ticket/wfAction?entitytyperecid=' +
1524
+ EntityTypeId;
1525
+ return this.http.post(url_, obj);
1526
+ }
1527
+
1528
+ getWfInsProcessStageComments(
1529
+ criteriastr: ISearchCriteria,
1530
+ EntityTypeId,
1531
+ refRecId
1532
+ ): Observable<IEntityWFstageVM[]> {
1533
+ const wfStagelist = EntityTypeDynamic.Getwfinsprocessstagecomments(
1534
+ EntityTypeId,
1535
+ refRecId
1536
+ );
1537
+ return this.http.get<IEntityWFstageVM[]>(wfStagelist, {
1538
+ params: CriteriaBuilder(criteriastr),
1539
+ });
1540
+ }
1541
+
1542
+ postTicketComments(file, values) {
1543
+
1544
+
1545
+ // let Url = environment.ServerUrl + "task/followupcomments/create="+values;
1546
+ let Url = `${environment.ServerUrl}entitytype/ticket/comments/create?RefRecId=${values.refRecId}&comments=${values.comments}&refernceFields=${values.refernceFields}`;
1547
+
1548
+ if (file && file.length > 0) {
1549
+ let formData: FormData = new FormData();
1550
+ let _file: File = file[0];
1551
+ formData.append('Files', _file, file.name);
1552
+ return this.http.post(Url, formData);
1553
+ }
1554
+
1555
+ return this.http.post(Url, null);
1556
+
1557
+ // return this.http.post<any>(taskAPIs.PostComments(), values);
1558
+ }
1559
+
1560
+ postTaskComments(file, values) {
1561
+
1562
+
1563
+ // let Url = environment.ServerUrl + "task/followupcomments/create="+values;
1564
+ let Url = `${environment.ServerUrl}task/followupcomments/create?RefRecId=${values.refRecId}&entitytyperecid=${values.entitytyperecid}&FollowUp=${values.commnets}`;
1565
+
1566
+ if (file && file.length > 0) {
1567
+ let formData: FormData = new FormData();
1568
+ let _file: File = file[0];
1569
+ formData.append('Files', _file, file.name);
1570
+ return this.http.post(Url, formData);
1571
+ }
1572
+
1573
+ return this.http.post(Url, null);
1574
+
1575
+ // return this.http.post<any>(taskAPIs.PostComments(), values);
1576
+ }
1577
+
1578
+ // urlPostTicketWfAction(RecIds: number[], stageId, action, comments, updateFileds) {
1579
+ //
1580
+ // return this.http.get<any>(EntityTypeDynamic.postTicketWfAction(RecIds, stageId, action, comments, updateFileds));
1581
+ // }
1582
+
1583
+ urlGetWfStageAction(EntityTypeId: number, StageId: number) {
1584
+
1585
+ return this.http.get<any>(
1586
+ EntityTypeDynamic.getWfStageAction(EntityTypeId, StageId)
1587
+ );
1588
+ }
1589
+
1590
+ urlGetStatusField(ActionRecId: number) {
1591
+
1592
+ return this.http.get<any>(EntityTypeDynamic.getStatusField(ActionRecId));
1593
+ }
1594
+
1595
+ urlGetDynamicTicket(criteriastr: ISearchCriteria, EntityTypeId: number) {
1596
+
1597
+ const url = EntityTypeDynamic.getAllEntityTypeTicket(EntityTypeId);
1598
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1599
+ }
1600
+
1601
+ UrlPostDynamicCreate(EntityTicketModel: string) {
1602
+ const url = EntityTypeDynamic.PostDynamicTicket(EntityTicketModel);
1603
+ return this.http.post(url, EntityTicketModel);
1604
+ }
1605
+
1606
+ EntityTypeTicketCreate(EntityTicketModel: string) {
1607
+ const url = EntityTypeDynamic.EntityTypeTicketCreate(EntityTicketModel);
1608
+ return this.http.post(url, null);
1609
+ }
1610
+
1611
+ EntityTypeTaskCreate(EntityTaskModel: string) {
1612
+ const url = EntityTypeDynamic.EntityTypeTaskCreate(EntityTaskModel);
1613
+ return this.http.post(url, null);
1614
+ }
1615
+
1616
+ GetEntityTypeId() {
1617
+ const url = EntityTypeDynamic.getEntityTpeId();
1618
+ return this.http.get(url);
1619
+ }
1620
+ //----------------------myAssigned Cases------------------------------//
1621
+ getAllMyAssignedCases(criteriastr: ISearchCriteria, CategoryId: any, Type?) {
1622
+
1623
+ let url = EntityTypeMyAssignedCases.getAllMyAssignedCases(CategoryId, Type);
1624
+ if (Type == 'Inbox') {
1625
+ url = EntityTypeMyAssignedCases.getAllMyInbox(CategoryId);
1626
+ }
1627
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1628
+ }
1629
+
1630
+ getmyassigncase(criteriastr: ISearchCriteria, Type?) {
1631
+
1632
+ let url = EntityTypeMyAssignedCases.getmyassigncase(Type);
1633
+ // if (Type == "Inbox") {
1634
+ // url = EntityTypeMyAssignedCases.getAllMyInbox(CategoryId);
1635
+ // }
1636
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1637
+ }
1638
+
1639
+ getMyAssignedCasesByRecId(RecId: number) {
1640
+ const url = EntityTypeMyAssignedCases.getMyAssignedCasesByRecId(RecId);
1641
+ return this.http.get(url);
1642
+ }
1643
+ createMyAssignedCases(data: any) {
1644
+ const url = EntityTypeMyAssignedCases.postMyAssignedCases();
1645
+ return this.http.post(url, data);
1646
+ }
1647
+ updateMyAssignedCases(data: any) {
1648
+ const url = EntityTypeMyAssignedCases.putMyAssignedCases();
1649
+ return this.http.put(url, data);
1650
+ }
1651
+ deleteMyAssignedCases(RecId: number[]) {
1652
+ const url = EntityTypeMyAssignedCases.deleteMyAssignedCases(RecId);
1653
+ return this.http.delete(url);
1654
+ }
1655
+
1656
+ // Field type api.
1657
+
1658
+ getAllFieldType(criteriastr: ISearchCriteria = null) {
1659
+
1660
+ const url = environment.ServerUrl + 'fieldtype';
1661
+ if (criteriastr == null) {
1662
+ return this.http.get(url);
1663
+ } else {
1664
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1665
+ }
1666
+ }
1667
+ getSingleFieldType(RecId: number) {
1668
+ const url = environment.ServerUrl + 'fieldtype/' + RecId;
1669
+ return this.http.get(url);
1670
+ }
1671
+ createFieldType(data: any) {
1672
+ const url = environment.ServerUrl + 'fieldtype/add';
1673
+ return this.http.post(url, data);
1674
+ }
1675
+ updateFieldType(data: any) {
1676
+ const url = environment.ServerUrl + 'fieldtype/update';
1677
+ return this.http.put(url, data);
1678
+ }
1679
+ deleteFieldType(RecId: number[]) {
1680
+ const url = environment.ServerUrl + 'fieldtype?recIds=' + RecId;
1681
+ return this.http.delete(url);
1682
+ }
1683
+
1684
+ //----------------------myAssigned Cases------------------------------//
1685
+ //----------------------myAssigned Cases------------------------------//
1686
+
1687
+ ///////Dynmaic Apis /////
1688
+
1689
+ getDynamicAll(criteriastr: ISearchCriteria, entityTypeRecId: any,processStageId?,CustomerId?) {
1690
+
1691
+ let url = dynamic.getDynamicAll(entityTypeRecId,processStageId);
1692
+ if(CustomerId){
1693
+ url += '&CustomerId='+CustomerId
1694
+ }
1695
+
1696
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1697
+ }
1698
+ getDynamicAllForSupportReq(
1699
+ criteriastr: ISearchCriteria,
1700
+ entityTypeRecId: any
1701
+ ) {
1702
+
1703
+ const url = dynamic.getDynamicAllForSupportReq(entityTypeRecId);
1704
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1705
+ }
1706
+
1707
+ dynamicGet(
1708
+ criteriastr: ISearchCriteria,
1709
+ entityTypeRecId: any,
1710
+ filterStatusId: any
1711
+ ) {
1712
+
1713
+ const url = dynamic.dynamicGet(entityTypeRecId, filterStatusId);
1714
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1715
+ }
1716
+
1717
+ dynamicTaskGetByEntityTypeId(
1718
+ criteriastr: ISearchCriteria,
1719
+ EntityTypeId,
1720
+ StausId?: any
1721
+ ) {
1722
+
1723
+ let url = dynamic.dynamicTaskGetByEntityTypeRecId(EntityTypeId, StausId);
1724
+ if (StausId) {
1725
+ url = dynamic.dynamicTaskGetByEntityTypeRecIdAndStatusId(
1726
+ EntityTypeId,
1727
+ StausId
1728
+ );
1729
+ }
1730
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1731
+ }
1732
+
1733
+ getDynamicById(entityTypeRecId: number, RecId: number) {
1734
+ const url = dynamic.getDynamicById(entityTypeRecId, RecId);
1735
+ return this.http.get(url);
1736
+ }
1737
+ // createDynamic(data: any, file?: any, fileObj?: any[]) {
1738
+ //
1739
+ // const DoctypeRecIds = fileObj
1740
+ // .map((x) => 'DoctypeRecIds=' + x.DoctypeRecId)
1741
+ // .join('&');
1742
+ // let url = dynamic.insertDynamic(data);
1743
+ // url = `${url}&${DoctypeRecIds}`;
1744
+ // return this.http.post(url, file);
1745
+ // }
1746
+
1747
+ createDynamic(data: any, file?: any, fileObj?: any[]) {
1748
+
1749
+ let url = dynamic.insertDynamic(data);
1750
+ if (fileObj && fileObj.length > 0) {
1751
+ const DoctypeRecIds = fileObj
1752
+ .map((x) => 'DoctypeRecIds=' + x.DoctypeRecId)
1753
+ .join('&');
1754
+ url = `${url}&${DoctypeRecIds}`;
1755
+ }
1756
+ return this.http.post(url, file);
1757
+ }
1758
+
1759
+ updateDynamic(data: any) {
1760
+ const url = dynamic.updateDynamic(data);
1761
+ return this.http.put(url, null);
1762
+ }
1763
+ deleteDynamic(entityTypeRecId: number, RecId: number) {
1764
+ const url = dynamic.deleteDynamicById(entityTypeRecId, RecId);
1765
+ return this.http.delete(url);
1766
+ }
1767
+
1768
+ dynamicTaskGet(
1769
+ criteriastr: ISearchCriteria,
1770
+ filterStatusId: any,
1771
+ StausId?: any
1772
+ ) {
1773
+
1774
+ let url = dynamic.dynamicTaskGet(filterStatusId, StausId);
1775
+ if (StausId) {
1776
+ if (!filterStatusId || filterStatusId == 'alltask')
1777
+ url = dynamic.dynamicTaskGetByStausIdAndfilterStatus(
1778
+ filterStatusId,
1779
+ StausId
1780
+ );
1781
+ }
1782
+
1783
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1784
+ }
1785
+
1786
+ getDynamicAllActivity(
1787
+ criteriastr: ISearchCriteria,
1788
+ entityTypeRecId: any,
1789
+ ActivityTypeId: number
1790
+ ) {
1791
+
1792
+ const url = dynamic.getDynamicAllActivity(entityTypeRecId, ActivityTypeId);
1793
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1794
+ }
1795
+
1796
+ getDynamicActivityByRefRecid(
1797
+ criteriastr: ISearchCriteria,
1798
+ entityTypeRecId: any,
1799
+ ActivityTypeId: number,
1800
+ RefRecid
1801
+ ) {
1802
+
1803
+ const url = dynamic.getDynamicActivityByRefRecid(
1804
+ entityTypeRecId,
1805
+ ActivityTypeId,
1806
+ RefRecid
1807
+ );
1808
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1809
+ }
1810
+
1811
+ getActivityUploadFile(RefRecId: number, EntityTypeId: number,ActivityTypeId:number) {
1812
+
1813
+ const url = dynamic.getActivityUploadFile(RefRecId, EntityTypeId,ActivityTypeId);
1814
+ return this.http.get(url);
1815
+ }
1816
+
1817
+ // getDynamicById(entityTypeRecId: number, RecId: number) {
1818
+ // const url = dynamic.getDynamicById(entityTypeRecId, RecId);
1819
+ // return this.http.get(url);
1820
+ // }
1821
+ // createDynamic(data: any) {
1822
+ // const url = dynamic.insertDynamic(data);
1823
+ // return this.http.post(url, null);
1824
+ // }
1825
+ // updateDynamic(data: any) {
1826
+ // const url = dynamic.updateDynamic(data);
1827
+ // return this.http.put(url, null);
1828
+ // }
1829
+ // deleteDynamic(entityTypeRecId: number, RecId: number) {
1830
+ // const url = dynamic.deleteDynamicById(entityTypeRecId, RecId);
1831
+ // return this.http.delete(url);
1832
+ // }
1833
+
1834
+ getDynamicByEntityRefrecid(
1835
+ entityTypeRecId: number,
1836
+ RefTypeId: number,
1837
+ criteriastr,
1838
+ ActivityId?: number
1839
+ ) {
1840
+ let url = dynamic.getDynamicRefRecidEntity(entityTypeRecId, RefTypeId);
1841
+ if (ActivityId) {
1842
+ url = url + '&ActivityId=' + ActivityId;
1843
+ }
1844
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1845
+ }
1846
+
1847
+ //------------------------category-Teams----------------------------//
1848
+
1849
+ getAllCategoryTypeTeams(criteriastr: ISearchCriteria, CategoryId: any) {
1850
+
1851
+ const url = EntityTypeCategoryTypeTeams.getAllCategoryTypeTeams(CategoryId);
1852
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1853
+ }
1854
+ getCategoryTypeTeamsByRecId(RecId: number) {
1855
+ const url = EntityTypeCategoryTypeTeams.getCategoryTypeTeamsByRecId(RecId);
1856
+ return this.http.get(url);
1857
+ }
1858
+ createCategoryTypeTeams(data: any) {
1859
+ const url = EntityTypeCategoryTypeTeams.postCategoryTypeTeams();
1860
+ return this.http.post(url, data);
1861
+ }
1862
+ updateCategoryTypeTeams(data: any) {
1863
+ const url = EntityTypeCategoryTypeTeams.putCategoryTypeTeams();
1864
+ return this.http.put(url, data);
1865
+ }
1866
+ deleteCategoryTypeTeams(RecId: number[]) {
1867
+ const url = EntityTypeCategoryTypeTeams.deleteCategoryTypeTeams(RecId);
1868
+ return this.http.delete(url);
1869
+ }
1870
+ getAssignmentsDepartmentsAndRoles(CategoryId: string) {
1871
+ const url =
1872
+ EntityTypeCategoryTypeTeams.getAssignmentsDepartmentsAndRoles(CategoryId);
1873
+ return this.http.get(url);
1874
+ }
1875
+ assignRoles(CategoryId: string, RelationIds: string[]) {
1876
+ const re = RelationIds.map((x) => 'RelationIds=' + x).join('&');
1877
+ const url = EntityTypeCategoryTypeTeams.assignRole();
1878
+ let url_ = `${url}?${re}&CategoryId=${CategoryId}`;
1879
+ return this.http.post(url_, null);
1880
+ }
1881
+ unAssignRoles(CategoryId: string, RelationIds: string[]) {
1882
+ const re = RelationIds.map((x) => 'RelationIds=' + x).join('&');
1883
+ const url = EntityTypeCategoryTypeTeams.unAssignRole();
1884
+ let url_ = `${url}?${re}&CategoryId=${CategoryId}`;
1885
+ return this.http.post(url_, null);
1886
+ }
1887
+ assignDepartment(CategoryId: string, RelationIds: string[]) {
1888
+ const re = RelationIds.map((x) => 'RelationIds=' + x).join('&');
1889
+ const url = EntityTypeCategoryTypeTeams.assignDepartment();
1890
+ let url_ = `${url}?${re}&CategoryId=${CategoryId}`;
1891
+ return this.http.post(url_, null);
1892
+ }
1893
+ unAssignDepartment(CategoryId: string, RelationIds: string[]) {
1894
+ const re = RelationIds.map((x) => 'RelationIds=' + x).join('&');
1895
+ const url = EntityTypeCategoryTypeTeams.unAssignDepartment();
1896
+ let url_ = `${url}?${re}&CategoryId=${CategoryId}`;
1897
+ return this.http.post(url_, null);
1898
+ }
1899
+
1900
+ validatetoken(token: string) {
1901
+ const url = loginauth.validatetoken(token);
1902
+ return this.http.get(url);
1903
+ }
1904
+ //------------------------category- Teams----------------------------//
1905
+
1906
+ //------------------------category-Activities----------------------------//
1907
+
1908
+ getAllCategoryTypeActivities(criteriastr: ISearchCriteria, CategoryId: any) {
1909
+
1910
+ const url =
1911
+ EntityTypeCategoryTypeActivities.getAllCategoryTypeActivities(CategoryId);
1912
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
1913
+ }
1914
+ getCategoryTypeActivitiesByRecId(RecId: number) {
1915
+ const url =
1916
+ EntityTypeCategoryTypeActivities.getCategoryTypeActivitiesByRecId(RecId);
1917
+ return this.http.get(url);
1918
+ }
1919
+ postCategoryTypeActivities(data: any) {
1920
+ const url = EntityTypeCategoryTypeActivities.postCategoryTypeActivities();
1921
+ return this.http.post(url, data);
1922
+ }
1923
+ putCategoryTypeActivities(data: any) {
1924
+ const url = EntityTypeCategoryTypeActivities.putCategoryTypeActivities();
1925
+ return this.http.put(url, data);
1926
+ }
1927
+ deleteCategoryTypeActivities(RecId: number[]) {
1928
+ const url =
1929
+ EntityTypeCategoryTypeActivities.deleteCategoryTypeActivities(RecId);
1930
+ return this.http.delete(url);
1931
+ }
1932
+
1933
+ getAssignmentsActivities(CategoryId: string) {
1934
+ const url =
1935
+ EntityTypeCategoryTypeActivities.getAssignmentsActivities(CategoryId);
1936
+ return this.http.get(url);
1937
+ }
1938
+ assignActivities(CategoryId: string, Activitys: string[]) {
1939
+ const re = Activitys.map((x) => 'Activitys=' + x).join('&');
1940
+ const url = EntityTypeCategoryTypeActivities.assignActivities();
1941
+ let url_ = `${url}?${re}&CategoryId=${CategoryId}`;
1942
+ return this.http.post(url_, null);
1943
+ }
1944
+ unAssignActivities(CategoryId: string, Activitys: string[]) {
1945
+ const re = Activitys.map((x) => 'Activitys=' + x).join('&');
1946
+ const url = EntityTypeCategoryTypeActivities.unAssignActivities();
1947
+ let url_ = `${url}?${re}&CategoryId=${CategoryId}`;
1948
+ return this.http.post(url_, null);
1949
+ }
1950
+ //------------------------category-Activities end----------------------------//
1951
+ //////---------------------------issueGroup--------------------------------------------/////
1952
+ getGroupData(criteriastr: ISearchCriteria) {
1953
+ let url = environment.ServerUrl + 'ticketmaster/group';
1954
+ return this.http.get<TicketGroupVM[]>(url, {
1955
+ params: CriteriaBuilder(criteriastr),
1956
+ });
1957
+ }
1958
+
1959
+ getSingleGroupData(RecId: number) {
1960
+ let url = environment.ServerUrl + 'ticketmaster/group/single/' + RecId;
1961
+ return this.http.get<TicketGroupVM>(url);
1962
+ }
1963
+
1964
+ createGroupData(data: TicketGroupCVM, file?) {
1965
+
1966
+ let datas: any = JSON.stringify(data);
1967
+ let url = `${environment.ServerUrl}ticketmaster/group/create?data=${datas}`;
1968
+ if (file && file.length > 0) {
1969
+ let formData: FormData = new FormData();
1970
+ let _file: File = file[0];
1971
+ formData.append('Files', _file, _file.name);
1972
+ return this.http.post(url, formData);
1973
+ }
1974
+ return this.http.post(url, null);
1975
+ }
1976
+
1977
+ updateGroupData(data: TicketGroupUVM,file?) {
1978
+ let datas:any = JSON.stringify(data);
1979
+ let url = environment.ServerUrl + `ticketmaster/group/update?data=${datas}`;
1980
+ if (file && file.length > 0) {
1981
+ let formData: FormData = new FormData();
1982
+ let _file: File = file[0];
1983
+ formData.append('Files', _file, _file.name);
1984
+ return this.http.post(url, formData);
1985
+ }
1986
+ return this.http.post(url, null);
1987
+ }
1988
+
1989
+ deleteGroupData(RecId: number) {
1990
+ let url = environment.ServerUrl + 'ticketmaster/group/' + RecId;
1991
+ return this.http.delete(url);
1992
+ }
1993
+
1994
+ assignIssueGroup(data: AssignmentIssueGroup) {
1995
+
1996
+ const st = data.RequesterTypes.map((x) => 'RequesterTypes=' + x).join('&');
1997
+ let url_ = `${environment.ServerUrl}issuegrouprequestermapping/assign?IssueGroupId=${data.IssueGroupId}&${st}`;
1998
+ return this.http.post(url_, null);
1999
+ }
2000
+ unassignIssueGroup(data: AssignmentIssueGroup) {
2001
+
2002
+ const st = data.RequesterTypes.map((x) => 'RequesterTypes=' + x).join('&');
2003
+ let url_ = `${environment.ServerUrl}issuegrouprequestermapping/unassign?IssueGroupId=${data.IssueGroupId}&${st}`;
2004
+ return this.http.post(url_, null);
2005
+ }
2006
+
2007
+ getassignandunassignIssueGroup(IssueGroupId: string) {
2008
+ const url = EntityTypeSetUp.getassignunassignissuegroup(IssueGroupId);
2009
+ return this.http.get(url);
2010
+ }
2011
+
2012
+ // -------------categoryrequestertype---------------
2013
+
2014
+ getcategoryrequestertype(criteriastr?: ISearchCriteria) {
2015
+ let url = environment.ServerUrl + 'categoryrequestertype';
2016
+ return this.http.get<TicketGroupVM[]>(url, {
2017
+ params: CriteriaBuilder(criteriastr),
2018
+ });
2019
+ }
2020
+
2021
+ getsupportRequestData(criteriastr: ISearchCriteria,Usertype:string,RequesterId:string,Source:string,processStageId:string) {
2022
+
2023
+ let url = environment.ServerUrl + 'entitytype/supportrequestbyrequestertype?Usertype='+Usertype+'&UserFieldId='+RequesterId+'&processStageId='+processStageId;
2024
+ return this.http.get(url, {
2025
+ params: CriteriaBuilder(criteriastr),
2026
+ });
2027
+ }
2028
+
2029
+
2030
+ createcategoryrequestertype(data: categoryrequestertypeCVM) {
2031
+
2032
+ let url = environment.ServerUrl + 'categoryrequestertype/add';
2033
+ return this.http.post(url, data);
2034
+ }
2035
+
2036
+ updatecategoryrequestertype(data: categoryrequestertypeCVM) {
2037
+ let url = environment.ServerUrl + 'categoryrequestertype/update';
2038
+ return this.http.put(url, data);
2039
+ }
2040
+
2041
+ getSinglecategoryrequestertype(RecId: number) {
2042
+ let url = environment.ServerUrl + 'categoryrequestertype/' + RecId;
2043
+ return this.http.get<TicketGroupVM>(url);
2044
+ }
2045
+
2046
+ deletecategoryrequestertype(RecId: number[]) {
2047
+ const url = categoryrequestertype.deleteCategoryTypeActivities(RecId);
2048
+ return this.http.delete(url);
2049
+ categoryrequestertype;
2050
+ }
2051
+
2052
+ //////---------------------------issuesubGroup--------------------------------------------/////
2053
+
2054
+ getSubGroupData(criteriastr: ISearchCriteria) {
2055
+ let url = environment.ServerUrl + 'ticketmaster/subgroup';
2056
+ return this.http.get<TicketSubGroupVM>(url, {
2057
+ params: CriteriaBuilder(criteriastr),
2058
+ });
2059
+ }
2060
+ getSingleSubGroupDataByRecId(RecId: number) {
2061
+ let url =
2062
+ environment.ServerUrl + 'ticketmaster/subgroup/getsingle/' + RecId;
2063
+ return this.http.get(url);
2064
+ }
2065
+
2066
+ getSubGroupDataByGroupId(criteriastr: ISearchCriteria, GroupId: number) {
2067
+ let url =
2068
+ environment.ServerUrl +
2069
+ 'ticketmaster/subgroup/bygroupId?groupId=' +
2070
+ GroupId;
2071
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
2072
+ }
2073
+
2074
+ createSubGroupData(data: TicketSubGroupCVM, file?) {
2075
+ let datas: any = JSON.stringify(data);
2076
+ let url =
2077
+ environment.ServerUrl + `ticketmaster/subgroup/create?data=${datas}`;
2078
+ if (file && file.length > 0) {
2079
+ let formData: FormData = new FormData();
2080
+ let _file: File = file[0];
2081
+ formData.append('Files', _file, _file.name);
2082
+ return this.http.post(url, formData);
2083
+ }
2084
+ return this.http.post(url, null);
2085
+ }
2086
+
2087
+ updateSubGroupData(data: TicketSubGroupUVM, file?) {
2088
+ let datas: any = JSON.stringify(data);
2089
+ let url =
2090
+ environment.ServerUrl + `ticketmaster/subgroup/update?data=${datas}`;
2091
+ if (file && file.length > 0) {
2092
+ let formData: FormData = new FormData();
2093
+ let _file: File = file[0];
2094
+ formData.append('Files', _file, _file.name);
2095
+ return this.http.post(url, formData);
2096
+ }
2097
+ return this.http.post(url, null);
2098
+ }
2099
+
2100
+ deleteSubGroupData(RecId: number) {
2101
+ let url = environment.ServerUrl + 'ticketmaster/subgroup/' + RecId;
2102
+ return this.http.delete(url);
2103
+ }
2104
+
2105
+ //-----------------------------assignmets for subGroup----------------------------//
2106
+ getAssignmentsForSubGroup(SubGroupId: string) {
2107
+ const url = IssueSubGroup.getAssignmentsForSubGroup(SubGroupId);
2108
+ return this.http.get(url);
2109
+ }
2110
+ assignSubGroup(SubGroupId: string, CaseTypeIds: number[]) {
2111
+ const re = CaseTypeIds.map((x) => 'CaseTypeIds=' + x).join('&');
2112
+ const url = IssueSubGroup.assignSubGroup();
2113
+ let url_ = `${url}?${re}&SubGroupId=${SubGroupId}`;
2114
+ return this.http.post(url_, null);
2115
+ }
2116
+ unAssignSubGroup(SubGroupId: string, CaseTypeIds: number[]) {
2117
+ const re = CaseTypeIds.map((x) => 'CaseTypeIds=' + x).join('&');
2118
+ const url = IssueSubGroup.unAssignSubGroup();
2119
+ let url_ = `${url}?${re}&SubGroupId=${SubGroupId}`;
2120
+ return this.http.post(url_, null);
2121
+ }
2122
+ /////////-----------------------instruction------------------------------
2123
+ getAllInstruction(criteriastr: ISearchCriteria) {
2124
+ const url = Instruction.getAllInstruction();
2125
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
2126
+ }
2127
+ getSingleInstruction(RecId: number) {
2128
+ const url = Instruction.getSingleInstruction(RecId);
2129
+ return this.http.get(url);
2130
+ }
2131
+ createInstruction(data: any) {
2132
+ const url = Instruction.createInstruction();
2133
+ return this.http.post(url, data);
2134
+ }
2135
+ updateInstruction(data: any) {
2136
+ const url = Instruction.updateInstruction();
2137
+ return this.http.put(url, data);
2138
+ }
2139
+ deleteInstruction(RecIds: number[]) {
2140
+ const url = Instruction.deleteInstruction(RecIds);
2141
+ return this.http.delete(url);
2142
+ }
2143
+ getAssignmentsForInstruction(InstructionId: number) {
2144
+ const url = Instruction.getAssignmentForInstruction(InstructionId);
2145
+ return this.http.get(url);
2146
+ }
2147
+ assignInstruction(InstructionRecId: number, SubGroupIds: number[]) {
2148
+ const re = SubGroupIds.map((x) => 'SubGroupIds=' + x).join('&');
2149
+ const url = Instruction.assignInstruction();
2150
+ let url_ = `${url}?${re}&InstructionRecId=${InstructionRecId}`;
2151
+ return this.http.post(url_, null);
2152
+ }
2153
+ unAssignInstruction(InstructionRecId: number, SubGroupIds: number[]) {
2154
+ const re = SubGroupIds.map((x) => 'SubGroupIds=' + x).join('&');
2155
+ const url = Instruction.unAssignInstruction();
2156
+ let url_ = `${url}?${re}&InstructionRecId=${InstructionRecId}`;
2157
+ return this.http.post(url_, null);
2158
+ }
2159
+ getInstructionDropDown(subGroupId: string) {
2160
+ let url =
2161
+ environment.ServerUrl +
2162
+ 'subgroupassingnment/instructionbysubgroup?SubGroupId=' +
2163
+ subGroupId;
2164
+ return this.http.get(url);
2165
+ }
2166
+ // ------------------------------------assignments for instruction in isssue sub group details---------------------------------------------------//
2167
+ getAssignmentsForInstructionbySubGroupId(subGroupId: string) {
2168
+ let url =
2169
+ environment.ServerUrl +
2170
+ 'subgroupassingnment/instructionbysubgroupid/assignandunassign?SubGroupId=' +
2171
+ subGroupId;
2172
+ return this.http.get(url);
2173
+ }
2174
+ assignInstructionBySubGroupId(
2175
+ SubGroupId: string,
2176
+ InstructionRecId: number[]
2177
+ ) {
2178
+ const re = InstructionRecId.map((x) => 'InstructionRecId=' + x).join('&');
2179
+ let url =
2180
+ environment.ServerUrl +
2181
+ 'subgroupassingnment/instructionbysubgroupid/assign';
2182
+ let url_ = `${url}?${re}&SubGroupId=${SubGroupId}`;
2183
+ return this.http.post(url_, null);
2184
+ }
2185
+ unAssignInstructionBySubGroupId(
2186
+ SubGroupId: string,
2187
+ InstructionRecId: number[]
2188
+ ) {
2189
+ const re = InstructionRecId.map((x) => 'InstructionRecId=' + x).join('&');
2190
+ let url =
2191
+ environment.ServerUrl +
2192
+ 'subgroupassingnment/instructionbysubgroupid/unassign';
2193
+ let url_ = `${url}?${re}&SubGroupId=${SubGroupId}`;
2194
+ return this.http.post(url_, null);
2195
+ }
2196
+ /////////-----------------------canned response------------------------------
2197
+ getAllCannedResponse(criteriastr: ISearchCriteria) {
2198
+ const url = CannedResponse.getAllCannedResponse();
2199
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
2200
+ }
2201
+ getSingleCannedResponse(RecId: number) {
2202
+ const url = CannedResponse.getSingleCannedResponse(RecId);
2203
+ return this.http.get(url);
2204
+ }
2205
+ createCannedResponse(data: any) {
2206
+ const url = CannedResponse.createCannedResponse();
2207
+ return this.http.post(url, data);
2208
+ }
2209
+ updateCannedResponse(data: any) {
2210
+ const url = CannedResponse.updateCannedResponse();
2211
+ return this.http.put(url, data);
2212
+ }
2213
+ deleteCannedResponse(RecIds: number[]) {
2214
+ const url = CannedResponse.deleteCannedResponse(RecIds);
2215
+ return this.http.delete(url);
2216
+ }
2217
+
2218
+ getAllIssueCrud(criteriastr: ISearchCriteria, IssueId: string) {
2219
+ const url = IssueCrud.getAllIssueCrud(IssueId);
2220
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
2221
+ }
2222
+ getSingleIssueCrud(RecId: number) {
2223
+ const url = IssueCrud.getSingleIssueCrud(RecId);
2224
+ return this.http.get(url);
2225
+ }
2226
+ createIssueCrud(data: any) {
2227
+ const url = IssueCrud.createIssueCrud();
2228
+ return this.http.post(url, data);
2229
+ }
2230
+ updateIssueCrud(data: any) {
2231
+ const url = IssueCrud.updateIssueCrud();
2232
+ return this.http.put(url, data);
2233
+ }
2234
+ deleteIssueCrud(RecIds: number[]) {
2235
+ const url = IssueCrud.deleteIssueCrud(RecIds);
2236
+ return this.http.delete(url);
2237
+ }
2238
+ getExportAllGridData(Url: string,columnDef:string,filename:string,QueryString:string) {
2239
+ const url = ExportGrid.getExportAllGridData(Url,columnDef,filename,QueryString);
2240
+ return this.http.get(url,{ responseType: "blob"});
2241
+ }
2242
+ /////////----------------------->. Document Template .<------------------------------
2243
+ getDocumentTemplate(EntityRecId: number,criteriastr) {
2244
+ const url = DocumentTemplate.getDocumentTemplate(EntityRecId);
2245
+ return this.http.get(url,{params:CriteriaBuilder(criteriastr)});
2246
+ }
2247
+ downloadDocumentTemplate(entityTypeRecId: number, refRecid: number, activityRecId: number) {
2248
+ const url = DocumentTemplate.downloadDocumentTemplate(entityTypeRecId,refRecid,activityRecId);
2249
+ return url;
2250
+ }
2251
+ }
2252
+ // ------------------------------------------
2253
+ export const EntityWfStage = {
2254
+ Getwfstage: (EntityTypeId,showallpending?) =>
2255
+ `${environment.ServerUrl}entitytype/wfstage?EntityTypeId=${EntityTypeId}&showallpending=${showallpending}`,
2256
+
2257
+ getWfStageEnumdropdown: (enumname: string, domainmodule: string) =>
2258
+ `${environment.ServerUrl}entitytype/getenumdropdown?enumname=${enumname}&domainmodule=${domainmodule}`,
2259
+
2260
+ getWfStages: (EntityTypeId: number, recordstatus: number) =>
2261
+ `${environment.ServerUrl}entitytype/wfstage?EntityTypeId=${EntityTypeId}&recordstatus=${recordstatus}`,
2262
+
2263
+ GetwfprocessstageassignmentByStageRecId: (stageRecId) =>
2264
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment?StageRecId=${stageRecId}`,
2265
+
2266
+ GetwfprocessstageassignmentByEntityTypeId: (CaseTypeId) =>
2267
+ `${environment.ServerUrl}entitytype/wfprocessstageassignmentbycasetypeid?CaseTypeId=${CaseTypeId}`,
2268
+
2269
+ Postwfstage: () => `${environment.ServerUrl}entitytype/wfstage/add`,
2270
+
2271
+ PostwfstagePublic: () =>
2272
+ `${environment.ServerUrl}entitytype/wfstage/public/add`,
2273
+
2274
+ PutwfPublicstage: () =>
2275
+ `${environment.ServerUrl}entitytype/wfstage/public/update`,
2276
+
2277
+ Putwfstage: () => `${environment.ServerUrl}entitytype/wfstage/update`,
2278
+
2279
+ GetSinglewfstage: (recId: any) =>
2280
+ `${environment.ServerUrl}entitytype/wfstage/${recId}`,
2281
+
2282
+ Deletewfstage: (RecId: number[]) =>
2283
+ `${environment.ServerUrl}entitytype/wfstage?recIds=${RecId}`,
2284
+
2285
+ Deletewfprocessstagestatus: (RecId: number[]) =>
2286
+ `${environment.ServerUrl}entitytype/wfprocessstagestatus?recIds=${RecId}`,
2287
+
2288
+ getEntityTypeDropDown: (EnumName: string) =>
2289
+ `${environment.ServerUrl}entitytype/getenumdropdown?enumname=${EnumName}`,
2290
+
2291
+ getCaseTypeDropDown: (caseType) =>
2292
+ `${environment.ServerUrl}entitytype/setup/active?entityType=${caseType}`,
2293
+
2294
+ GetEntityRecordDropDown: (EntityTypeId: number) =>
2295
+ `${environment.ServerUrl}entitytype/recordstatusbyentitytypeid?EntityTypeId=${EntityTypeId}`,
2296
+
2297
+ GetNextStageDropDown: (EntityTypeId: number) =>
2298
+ `${environment.ServerUrl}entitytype/wfstage?EntityTypeId=${EntityTypeId}`,
2299
+
2300
+ getEntityTypeDropdown: (EnumName: string) =>
2301
+ `${environment.ServerUrl}entitytype/getenumdropdown?enumname=${EnumName}`,
2302
+
2303
+ GetEntityActionDropDown: (RecId: number) =>
2304
+ `${environment.ServerUrl}entitytype/wfstage/action/${RecId}`,
2305
+ };
2306
+
2307
+ export const Entitywfprocessstageassignment = {
2308
+ Getwfprocessstageassignment: () =>
2309
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment`,
2310
+
2311
+ GetwfprocessstageassignmentByStageRecId: (StageRecId) =>
2312
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment`,
2313
+
2314
+ Postwfprocessstageassignment: () =>
2315
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/add`,
2316
+
2317
+ Putwfprocessstageassignment: () =>
2318
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/update`,
2319
+
2320
+ GetSinglewfprocessstageassignment: (recId: any) =>
2321
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/${recId}`,
2322
+
2323
+ Deletewfprocessstageassignment: (RecId: number[]) =>
2324
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment?recIds=${RecId}`,
2325
+ };
2326
+
2327
+ export const Entitywfprocessstagestatus = {
2328
+ GetwfprocessstagestatusByStageRecId: (StageRecId) =>
2329
+ `${environment.ServerUrl}entitytype/wfprocessstagestatus?StageRecId=${StageRecId}`,
2330
+
2331
+ Getwfprocessstagestatus: () =>
2332
+ `${environment.ServerUrl}entitytype/wfprocessstagestatus`,
2333
+
2334
+ Postwfprocessstagestatus: () =>
2335
+ `${environment.ServerUrl}entitytype/wfprocessstagestatus/add`,
2336
+
2337
+ PostwfprocessstagestatusPublic: () =>
2338
+ `${environment.ServerUrl}entitytype/wfprocessstagestatus/public/add`,
2339
+
2340
+ Putwfprocessstagestatus: () =>
2341
+ `${environment.ServerUrl}entitytype/wfprocessstagestatus/update`,
2342
+
2343
+ PutwfprocessstagestatusPublic: () =>
2344
+ `${environment.ServerUrl}entitytype/wfprocessstagestatus/public/update`,
2345
+
2346
+ GetSinglewfprocessstagestatus: (recId: any) =>
2347
+ `${environment.ServerUrl}entitytype/wfprocessstagestatus/${recId}`,
2348
+
2349
+ Deletewfprocessstagestatus: (RecId: number[]) =>
2350
+ `${environment.ServerUrl}entitytype/wfprocessstagestatus?recIds=${RecId}`,
2351
+ };
2352
+
2353
+ export const EntityEvent = {
2354
+ PostEventAdd: () => `${environment.ServerUrl}entitytype/event/add`,
2355
+
2356
+ PostActionAdd: () => `${environment.ServerUrl}entitytype/eventaction/add`,
2357
+
2358
+ PutActionAdd: () => `${environment.ServerUrl}entitytype/eventaction/update`,
2359
+
2360
+ PostActionGroupAdd: () =>
2361
+ `${environment.ServerUrl}entitytype/eventcondition/add`,
2362
+
2363
+ putActionGroup: () =>
2364
+ `${environment.ServerUrl}entitytype/eventcondition/update`,
2365
+
2366
+ PostEventActive: (recId, comments) =>
2367
+ `${environment.ServerUrl}entitytype/event/activate?recid=${recId}&comments=${comments}`,
2368
+
2369
+ PostActionActive: (recId, comments) =>
2370
+ `${environment.ServerUrl}entitytype/eventaction/activate?recid=${recId}&comments=${comments}`,
2371
+
2372
+ PostActive: (recId, comments) =>
2373
+ `${environment.ServerUrl}entitytype/setup/activate?recid=${recId}&comments=${comments}`,
2374
+
2375
+ PostEventDeActive: (recId, comments) =>
2376
+ `${environment.ServerUrl}entitytype/event/deactivate?recid=${recId}&comments=${comments}`,
2377
+
2378
+ PostActionDeActive: (recId, comments) =>
2379
+ `${environment.ServerUrl}entitytype/eventaction/deactivate?recid=${recId}&comments=${comments}`,
2380
+
2381
+ PostDeActive: (recId, comments) =>
2382
+ `${environment.ServerUrl}entitytype/setup/deactivate?recid=${recId}&comments=${comments}`,
2383
+
2384
+ PostEventConditionAdd: () =>
2385
+ `${environment.ServerUrl}entitytype/eventcondition/add`,
2386
+
2387
+ GetSingleEventCondition: (recId: any) =>
2388
+ `${environment.ServerUrl}entitytype/eventcondition/${recId}`,
2389
+
2390
+ GetSingleEvents: (recId: any) =>
2391
+ `${environment.ServerUrl}entitytype/event/${recId}`,
2392
+
2393
+ GetEventsHistory: (EventRecId: any) =>
2394
+ `${environment.ServerUrl}entitytype/eventactionprocesshistorybyreferenceid?EventRecId=${EventRecId}`,
2395
+
2396
+ GetSingleAction: (recId: any) =>
2397
+ `${environment.ServerUrl}entitytype/eventaction/${recId}`,
2398
+
2399
+ getAllEvents: (EntityTypeId: number) =>
2400
+ `${environment.ServerUrl}entitytype/event?EntityTypeRecId=${EntityTypeId}`,
2401
+
2402
+ getAllEventsByEntityTypeRecId: (EntityTypeId: number) =>
2403
+ `${environment.ServerUrl}entitytype/event?EntityTypeRecId=${EntityTypeId}`,
2404
+
2405
+ getAllEventsWithoutType: () => `${environment.ServerUrl}entitytype/event`,
2406
+
2407
+ getAllEventsWithType: (EntityTypeRecId) =>
2408
+ `${environment.ServerUrl}entitytype/event?EntityTypeRecId=${EntityTypeRecId}`,
2409
+
2410
+ getEventsFollowupcommentsbyrefrecid: (
2411
+ refRecId,
2412
+ entitytyperecid,
2413
+ refTableName
2414
+ ) =>
2415
+ `${environment.ServerUrl}task/followupcomments/byrefrecid?refRecId=${refRecId}&entitytyperecid=${entitytyperecid}&refTableName=${refTableName}`,
2416
+
2417
+ getAllActionGroup: () => `${environment.ServerUrl}entitytype/eventcondition`,
2418
+
2419
+ getAllActionGroupByEntityTypeRecId: (EntityTypeId) =>
2420
+ `${environment.ServerUrl}entitytype/eventcondition?EntityTypeRecId=${EntityTypeId}`,
2421
+
2422
+ getActivityTemplate: (CasetypeId) =>
2423
+ `${environment.ServerUrl}templateactivity?CasetypeId=${CasetypeId}`,
2424
+
2425
+ getAllActionsByEntityTypeId: (EntityTypeId: number) =>
2426
+ `${environment.ServerUrl}entitytype/eventactionbycasetypeid?EntityTypeRecId=${EntityTypeId}`,
2427
+
2428
+ getAllActions: () =>
2429
+ `${environment.ServerUrl}entitytype/eventactionbycasetypeid`,
2430
+
2431
+ getAllActionsByEntityTypeRecId: (EntityTypeRecId) =>
2432
+ `${environment.ServerUrl}entitytype/eventactionbycasetypeid?EntityTypeRecId=${EntityTypeRecId}`,
2433
+
2434
+ getActionsByActionGroupId: (actionGroupId) =>
2435
+ `${environment.ServerUrl}entitytype/eventactionbycasetypeid?ConditionRecId=${actionGroupId}`,
2436
+
2437
+ deleteAction: (RecIds: number[]) =>
2438
+ `${environment.ServerUrl}entitytype/eventaction?recIds=${RecIds}`,
2439
+
2440
+ getEventsConditions: (EventRecId: number) =>
2441
+ `${environment.ServerUrl}entitytype/eventcondition/${EventRecId}`,
2442
+
2443
+ deleteEvents: (RecIds: number[]) =>
2444
+ `${environment.ServerUrl}entitytype/event?recIds=${RecIds}`,
2445
+
2446
+ getEventAction: (EventName) =>
2447
+ `${environment.ServerUrl}entitytype/eventaction?EventName=${EventName}`,
2448
+
2449
+ postEventAction: () => `${environment.ServerUrl}entitytype/eventaction/add`,
2450
+
2451
+ putEventAction: () => `${environment.ServerUrl}entitytype/eventaction/update`,
2452
+
2453
+ putEventCondition: () =>
2454
+ `${environment.ServerUrl}entitytype/eventcondition/update`,
2455
+
2456
+ deleteEventAction: (RecIds: number[]) =>
2457
+ `${environment.ServerUrl}entitytype/eventaction?recIds=${RecIds}`,
2458
+
2459
+ setValidation: (EntityTypeRecId: number) =>
2460
+ `${environment.ServerUrl}entitytype/setup/validate?EntityTypeRecId=${EntityTypeRecId}`,
2461
+
2462
+ setdropdownrequester: (RequesterTypeId: string) =>
2463
+ `${environment.ServerUrl}entitytype/setup/requestertype?RequesterTypeId=${RequesterTypeId}`,
2464
+ };
2465
+
2466
+ export const Sla = {
2467
+ PostSlaAdd: () => `${environment.ServerUrl}entitytype/sla/add`,
2468
+
2469
+ getAllSla: (EntityTypeId: number) =>
2470
+ `${environment.ServerUrl}entitytype/sla?CaseTypeId=${EntityTypeId}`,
2471
+
2472
+ getSlaLines: (SLARecId: number) =>
2473
+ `${environment.ServerUrl}entitytype/sla/lines/withstage?SLARecId=${SLARecId}`,
2474
+
2475
+ deleteSla: (RecIds: number[]) =>
2476
+ `${environment.ServerUrl}entitytype/sla?recIds=${RecIds}`,
2477
+
2478
+ deleteSlaLine: (RecIds: number[]) =>
2479
+ `${environment.ServerUrl}entitytype/sla/lines?recIds=${RecIds}`,
2480
+
2481
+ putSla: () => `${environment.ServerUrl}entitytype/sla/update`,
2482
+
2483
+ putSlaLine: () => `${environment.ServerUrl}entitytype/sla/lines/update`,
2484
+
2485
+ PostSlaLineAdd: () => `${environment.ServerUrl}entitytype/sla/lines/add`,
2486
+
2487
+ PostSlaActive: (recId, comments) =>
2488
+ `${environment.ServerUrl}entitytype/sla/activate?recid=${recId}&comments=${comments}`,
2489
+
2490
+ PostSlaDeActive: (recId, comments) =>
2491
+ `${environment.ServerUrl}entitytype/sla/deactivate?recid=${recId}&comments=${comments}`,
2492
+ };
2493
+
2494
+ export const AssignmentUserRole = {
2495
+ GetAssignUser: (StageRecId: number) =>
2496
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/usersandroles?StageRecId=${StageRecId}`,
2497
+
2498
+ PostAssignUser: () =>
2499
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/assingnuser`,
2500
+
2501
+ PostUnassignUser: () =>
2502
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/unassingnuser`,
2503
+
2504
+ PostAssignRole: (StageRecId) =>
2505
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/assingnrole&StageRecId=${StageRecId}`,
2506
+
2507
+ PostUnAssignRole: () =>
2508
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/unassingnrole`,
2509
+
2510
+ GetRoleSelect: () => `${environment.ServerUrl}security/rolemaster`,
2511
+
2512
+ GetUserSelect: () => `${environment.ServerUrl}security/user/assigntodropdown`,
2513
+
2514
+ GetRoleUserWise: (EntityTypeRecId: number, URIds: number) =>
2515
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/stagestatusrole?EntityTypeRecId=${EntityTypeRecId}&URIds=${URIds}`,
2516
+
2517
+ GetRolesUserWise: (EntityTypeRecId: number, URIds: number) =>
2518
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/stagestatususer?EntityTypeRecId=${EntityTypeRecId}&URIds=${URIds}`,
2519
+
2520
+ PostRoleUserwise: (StageRecId: number, URIds: number) =>
2521
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/stagestatus/assingnrole?StageRecId=${StageRecId}&URIds=${URIds}`,
2522
+
2523
+ PostRolesUserwise: (StageRecId: number, URIds: number) =>
2524
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/stagestatus/unassingnrole?StageRecId=${StageRecId}&URIds=${URIds}`,
2525
+
2526
+ PostUserwise: (StageRecId: number, URIds: number) =>
2527
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/stagestatus/unassingnuser?StageRecId=${StageRecId}&URIds=${URIds}`,
2528
+
2529
+ PostUserswise: (StageRecId: number, URIds: number) =>
2530
+ `${environment.ServerUrl}entitytype/wfprocessstageassignment/stagestatus/assingnuser?StageRecId=${StageRecId}&URIds=${URIds}`,
2531
+ };
2532
+
2533
+ export const Favorites = {
2534
+ getFavoriteAndRecent: () =>
2535
+ `${environment.ServerUrl}entitytype/favoriteandrecent`,
2536
+
2537
+ favoriteandrecent: () =>
2538
+ `${environment.ServerUrl}entitytype/favoriteandrecent`,
2539
+
2540
+ getFavorites: (EntityType) =>
2541
+ `${environment.ServerUrl}entitytype/favorite/${EntityType}`,
2542
+ addFavorites: (EntityType) =>
2543
+ `${environment.ServerUrl}entitytype/favorite/add?CaseTypeId=${EntityType}`,
2544
+ addRecent: (EntityType) =>
2545
+ `${environment.ServerUrl}entitytype/recent/add?CaseTypeId=${EntityType}`,
2546
+ removeFavorites: (EntityType) =>
2547
+ `${environment.ServerUrl}entitytype/favorite/?CaseTypeIds=${EntityType}`,
2548
+ };
2549
+
2550
+ export const EntityTypeSetUp = {
2551
+ getAllEntityTypeSetup: () => `${environment.ServerUrl}entitytype/setup`,
2552
+ getAllAssinedActivites: (EntityTypeId) =>
2553
+ `${environment.ServerUrl}entitytype/setup/assined/activites?EntityTypeRecId=${EntityTypeId}`,
2554
+ getActiveEntityTypeSetup: (EntityType, CategoryId?) =>
2555
+ `${environment.ServerUrl}entitytype/setup/active?entityType=${EntityType}&CategoryId=${CategoryId}`,
2556
+
2557
+ getActiveEntityForm: (EntityTypeRecId) =>
2558
+ `${environment.ServerUrl}entitytype/form/activationrecord/${EntityTypeRecId}`,
2559
+ getActiveEntityFormbyList: (EntityTypeRecId) =>
2560
+ `${environment.ServerUrl}entitytype/form/activationrecordbylist/${EntityTypeRecId}`,
2561
+ getActiveEntityFormbyDetails: (EntityTypeRecId) =>
2562
+ `${environment.ServerUrl}entitytype/form/activationrecorddetails/${EntityTypeRecId}`,
2563
+ getSingleEntityTypeSetupById: (RecId: number) =>
2564
+ `${environment.ServerUrl}entitytype/setup/${RecId}`,
2565
+
2566
+ getEntitySetupTemplate: (EntityType: number, CategoryId?: any) =>
2567
+ `${environment.ServerUrl}entitytype/setup/dynamictemplate?entityType=${EntityType}&CategoryId=${CategoryId}`,
2568
+
2569
+ postEntityTypeSetup: () => `${environment.ServerUrl}entitytype/setup/add`,
2570
+ putEntityTypeSetup: () => `${environment.ServerUrl}entitytype/setup/update`,
2571
+ deleteEntityTypeSetup: (RecIds: number[]) =>
2572
+ `${environment.ServerUrl}entitytype/setup?recIds=${RecIds}`,
2573
+ getEntityTypeDropdown: (EnumName: string) =>
2574
+ `${environment.ServerUrl}entitytype/getenumdropdown?enumname=${EnumName}`,
2575
+ getDocumentTypeAssignUnAssign: (MenuRecId: number) =>
2576
+ `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${MenuRecId}`,
2577
+ assignDocumentType: () =>
2578
+ `${environment.ServerUrl}security/documenttype/entitytype/assign`,
2579
+ unassignDocumentType: () =>
2580
+ `${environment.ServerUrl}security/documenttype/entitytype/unassign`,
2581
+ getAllRules: (EntityTypeId: number) =>
2582
+ `${environment.ServerUrl}/entitytype/rulesdata/${EntityTypeId}`,
2583
+ getAllRulesWithTemplateData: (EntityTypeId: number) =>
2584
+ `${environment.ServerUrl}/entitytype/ruleswithtemplatedata/${EntityTypeId}`,
2585
+
2586
+ getSinglelRules: (EntityTypeId: number, FormRecId: number) =>
2587
+ `${environment.ServerUrl}entitytype/rulesdata/byformrecid?EntityTypeRecId=${EntityTypeId}&FormRecId=${FormRecId}`,
2588
+
2589
+ getEntityCategoryById: (RecId: number) =>
2590
+ `${environment.ServerUrl}entitytype/categorytype/${RecId}`,
2591
+ getAllEntityTypeCategory: () =>
2592
+ `${environment.ServerUrl}entitytype/categorytype`,
2593
+
2594
+ getEntityTypTask: () =>
2595
+ `${environment.ServerUrl}entitytype/setup/active?entityType=20`,
2596
+
2597
+ createEntityCategory: () =>
2598
+ `${environment.ServerUrl}entitytype/categorytype/add`,
2599
+ updateEntityCategory: () =>
2600
+ `${environment.ServerUrl}entitytype/categorytype/update`,
2601
+ deleteEntityCategory: (RecIds: number[]) =>
2602
+ `${environment.ServerUrl}entitytype/categorytype?recIds=${RecIds}`,
2603
+
2604
+ getLookupValuseByLookupId: (LookupTypeId: number[]) =>
2605
+ `${environment.ServerUrl}lookupvalues/GetAllByLookTypeId/${LookupTypeId}`,
2606
+
2607
+ getRequesterType: () => `${environment.ServerUrl}categoryrequestertype`,
2608
+
2609
+ getFieldType: () => `${environment.ServerUrl}fieldtype`,
2610
+
2611
+ getassignunassignrequester: (CategoryId: string) =>
2612
+ `${environment.ServerUrl}categorytypeteams/requestertype?CategoryId=${CategoryId}`,
2613
+
2614
+ getassignunassignissuegroup: (IssueGroupId: string) =>
2615
+ `${environment.ServerUrl}issuegrouprequestermapping/assignandunassign?IssueGroupId=${IssueGroupId}`,
2616
+
2617
+ getlistview: (EntityTypeId: number) =>
2618
+ `${environment.ServerUrl}entitytype/field/listview?EntityTypeId=${EntityTypeId}`,
2619
+
2620
+ getActivityTemplate: (Actiontype?: number) =>
2621
+ `${environment.ServerUrl}entitytype/activitytemplate?Actiontype=${Actiontype}`,
2622
+ getActivityTemplateById: (RecId: number) =>
2623
+ `${environment.ServerUrl}entitytype/activitytemplate/${RecId}`,
2624
+
2625
+ createActivityTemplate: () =>
2626
+ `${environment.ServerUrl}entitytype/activitytemplate/add`,
2627
+ updateActivityTemplate: () =>
2628
+ `${environment.ServerUrl}entitytype/activitytemplate/update`,
2629
+ deleteActivityTemplate: (RecIds: number[]) =>
2630
+ `${environment.ServerUrl}entitytype/activitytemplate?recIds=${RecIds}`,
2631
+ };
2632
+ export const EntityTypeField = {
2633
+ getAllEntityTypeField: (EntityTypeId: number) =>
2634
+ `${environment.ServerUrl}entitytype/field?EntityTypeId=${EntityTypeId}`,
2635
+ getAllEntityTypeFieldWithDynamic: (EntityTypeId: number) =>
2636
+ `${environment.ServerUrl}entitytype/field/eventlistview?EntityTypeId=${EntityTypeId}`,
2637
+ getAllDefaultEntityTypeField: (EntityTypeId: number) =>
2638
+ `${environment.ServerUrl}entitytype/field?EntityTypeId=${EntityTypeId}`,
2639
+ getSingleEntityTypeFieldById: (RecId: number) =>
2640
+ `${environment.ServerUrl}entitytype/field/${RecId}`,
2641
+ postEntityTypeField: () => `${environment.ServerUrl}entitytype/field/add`,
2642
+ putEntityTypeField: () => `${environment.ServerUrl}entitytype/field/update`,
2643
+ deleteEntityTypeField: (RecIds: number[]) =>
2644
+ `${environment.ServerUrl}entitytype/field?recIds=${RecIds}`,
2645
+ };
2646
+ export const EntityTypeForm = {
2647
+ getEntityTypeForm: (EntityTypeId: number, FormType: number) =>
2648
+ `${environment.ServerUrl}entitytype/form?EntityTypeId=${EntityTypeId}&FormType=${FormType}`,
2649
+ getAllEntityTypeForm: (EntityTypeId: number) =>
2650
+ `${environment.ServerUrl}entitytype/form?EntityTypeId=${EntityTypeId}`,
2651
+ getSingleEntityTypeFormById: (RecId: number) =>
2652
+ `${environment.ServerUrl}entitytype/form/${RecId}`,
2653
+ getStatusUpdate: (RecId: number, Status: number) =>
2654
+ `${environment.ServerUrl}entitytype/form/updatestatus?RecId=${RecId}&Status=${Status}`,
2655
+ postEntityTypeForm: () => `${environment.ServerUrl}entitytype/form/add`,
2656
+ postEntityTypeFormData: (
2657
+ EntityTypeRecId: number,
2658
+ FormType: number,
2659
+ Version?: number
2660
+ ) =>
2661
+ `${environment.ServerUrl}entitytype/form/addnew?EntityTypeRecId=${EntityTypeRecId}&FormType=${FormType}&Version=${Version}`,
2662
+ putEntityTypeForm: () => `${environment.ServerUrl}entitytype/form/update`,
2663
+ deleteEntityTypeForm: (RecIds: number[]) =>
2664
+ `${environment.ServerUrl}entitytype/form?recIds=${RecIds}`,
2665
+ };
2666
+
2667
+ export const EntityTypeDynamic = {
2668
+ getAllEntityTypeTask: (EntityTypeId: number) =>
2669
+ `${environment.ServerUrl}entitytype/task?entityTypeRecId=${EntityTypeId}`,
2670
+
2671
+ getSingleTaskByRecId: (recId: number) =>
2672
+ `${environment.ServerUrl}entitytype/task/${recId}`,
2673
+
2674
+ getSingleTicketByRecId: (recId: number) =>
2675
+ `${environment.ServerUrl}entitytype/ticket/${recId}`,
2676
+
2677
+ getSingleTicketJoinByRecId: (recId: number, entityTypeRecId: number) =>
2678
+ `${environment.ServerUrl}entitytype/ticketfieldjoin/${recId}/${entityTypeRecId}`,
2679
+
2680
+ getWfStageAction: (EntityTypeId: number, StageId: number) =>
2681
+ `${environment.ServerUrl}entitytype/wfstageaction?EntityTypeId=${EntityTypeId}&StageId=${StageId}`,
2682
+
2683
+ // postTicketWfAction: (RecIds, stageId, action, comments, updateFileds) => `${environment.ServerUrl}entitytype/ticket/wfAction?EntityTypeId=${EntityTypeId}&StageId=${StageId}`,
2684
+
2685
+ Getwfinsprocessstagecomments: (entitytyperecid: number, refrecid: number) =>
2686
+ `${environment.ServerUrl}entitytype/wfinsprocessstagecomments?entitytyperecid=${entitytyperecid}&refrecid=${refrecid}`,
2687
+
2688
+ getStatusField: (ActionRecId: number) =>
2689
+ `${environment.ServerUrl}entitytype/wfprocessstagestatusfield?ActionRecId=${ActionRecId}`,
2690
+
2691
+ getAllEntityTypeTicket: (EntityTypeId: number) =>
2692
+ `${environment.ServerUrl}entitytype/ticket?entityTypeRecId=` + EntityTypeId,
2693
+
2694
+ EntityTypeTicketCreate: (EntityTicketModel: string) =>
2695
+ `${environment.ServerUrl}entitytype/ticket/create?EntityTicketModel=${EntityTicketModel}`,
2696
+
2697
+ EntityTypeTaskCreate: (EntityTaskModel: string) =>
2698
+ `${environment.ServerUrl}entitytype/task/create?EntityTaskModel=${EntityTaskModel}`,
2699
+
2700
+ getSingleEntityTypeFieldById: (RecId: number) =>
2701
+ `${environment.ServerUrl}entitytype/field/${RecId}`,
2702
+
2703
+ postEntityTypeField: () => `${environment.ServerUrl}entitytype/field/add`,
2704
+
2705
+ putEntityTypeField: () => `${environment.ServerUrl}entitytype/field/update`,
2706
+
2707
+ deleteEntityTypeField: (RecIds: number[]) =>
2708
+ `${environment.ServerUrl}entitytype/field?recIds=${RecIds}`,
2709
+
2710
+ PostDynamicTicket: (EntityTicketModel: string) =>
2711
+ `${environment.ServerUrl}entitytype/ticket/create?EntityTicketModel=${EntityTicketModel}`,
2712
+
2713
+ getEntityTpeId: () => `${environment.ServerUrl}entitytype/setup/active`,
2714
+ };
2715
+
2716
+ export const EntityTypeMyAssignedCases = {
2717
+ getAllMyAssignedCases: (CategoryId: number, type) =>
2718
+ `${environment.ServerUrl}entitytype/myassigncase?CategoryId=${CategoryId}&filter=${type}`,
2719
+
2720
+ getmyassigncase: (type) =>
2721
+ `${environment.ServerUrl}entitytype/myassigncase?filter=${type}`,
2722
+
2723
+ getAllMyInbox: (CategoryId: number) =>
2724
+ `${environment.ServerUrl}entitytype/myassigncase?CategoryId=${CategoryId}&filter=Participate`,
2725
+ getMyAssignedCasesByRecId: (RecId: number) =>
2726
+ `${environment.ServerUrl}entitytype/myassigncase/${RecId}`,
2727
+ postMyAssignedCases: () =>
2728
+ `${environment.ServerUrl}entitytype/myassigncase/add`,
2729
+ putMyAssignedCases: () =>
2730
+ `${environment.ServerUrl}entitytype/myassigncase/update`,
2731
+ deleteMyAssignedCases: (RecIds: number[]) =>
2732
+ `${environment.ServerUrl}entitytype/myassigncase?recIds=${RecIds}`,
2733
+ };
2734
+
2735
+ export const dynamic = {
2736
+ getDynamicAll: (entityTypeRecId: number,processStageId?) =>
2737
+ `${environment.ServerUrl}entitytype/dynamic/get/?entityTypeRecId=${entityTypeRecId}&processStageId=${processStageId}`,
2738
+ getDynamicAllForSupportReq: (entityTypeRecId: number) =>
2739
+ `${environment.ServerUrl}entitytype/dynamic/get/?entityTypeRecId=${entityTypeRecId}`,
2740
+
2741
+ dynamicTaskGet: (filterStatusId: any, StausId) =>
2742
+ `${environment.ServerUrl}entitytype/dynamic/task/get?filterStatusId=${filterStatusId}&StatusId=${StausId}`,
2743
+
2744
+ dynamicTaskGetByEntityTypeRecId: (EntityTypeRecId, StatusId: any) =>
2745
+ `${environment.ServerUrl}entitytype/dynamic/task/get?EntityTypeRecId=${EntityTypeRecId}&StatusId=${StatusId}`,
2746
+
2747
+ dynamicTaskGetByCreatedSource: (SourceId,SourceEntityTypeId, SourceType: any) =>
2748
+ `${environment.ServerUrl}entitytype/dynamic/task/get?SourceId=${SourceId}&SourceType=${SourceType}&SourceEntityTypeId=${SourceEntityTypeId}`,
2749
+
2750
+ dynamicGet: (entityTypeRecId: number, filterStatusId: any) =>
2751
+ `${environment.ServerUrl}entitytype/dynamic/get/?entityTypeRecId=${entityTypeRecId}&StatusId=${filterStatusId}`,
2752
+ // dynamicTaskGet: (filterStatusId:any) =>`${environment.ServerUrl}entitytype/dynamic/task/get?filterStatusId=${filterStatusId}`,
2753
+ dynamicTaskGetByEntityTypeRecIdAndStatusId: (
2754
+ EntityTypeRecId,
2755
+ StatusId: any
2756
+ ) =>
2757
+ `${environment.ServerUrl}entitytype/dynamic/task/get?EntityTypeRecId=${EntityTypeRecId}&StatusId=${StatusId}`,
2758
+ // dynamicTaskGetByEntityTypeRecId: (EntityTypeRecId) =>`${environment.ServerUrl}entitytype/dynamic/task/get?EntityTypeRecId=${EntityTypeRecId}`,
2759
+ dynamicTaskGetByStausId: (StatusId: any) =>
2760
+ `${environment.ServerUrl}entitytype/dynamic/task/get?StatusId=${StatusId}`,
2761
+ dynamicTaskGetByStausIdAndfilterStatus: (filterStatusId, StatusId: any) =>
2762
+ `${environment.ServerUrl}entitytype/dynamic/task/get?filterStatusId=${filterStatusId}&StatusId=${StatusId}`,
2763
+
2764
+ getDynamicAllActivity: (entityTypeRecId: number, ActivityTypeId: number) =>
2765
+ `${environment.ServerUrl}entitytype/dynamic/get/?entityTypeRecId=${entityTypeRecId}&ActivityTypeId=${ActivityTypeId}`,
2766
+
2767
+ getDynamicActivityByRefRecid: (
2768
+ entityTypeRecId: number,
2769
+ ActivityTypeId: number,
2770
+ RefRecid: number
2771
+ ) =>
2772
+ `${environment.ServerUrl}entitytype/dynamic/get/?entityTypeRecId=${entityTypeRecId}&processStageId=0&ActivityTypeId=${ActivityTypeId}&ReftypeId=${RefRecid}`,
2773
+
2774
+ getActivityUploadFile: (RefRecId: number, EntityTypeId: number,ActivityTypeId:number) =>
2775
+ `${environment.ServerUrl}/getuploadfilesbyreferanceparams?RefRecId=${RefRecId}&EntityTypeId=${EntityTypeId}&ActivityTypeId=${ActivityTypeId}`,
2776
+
2777
+
2778
+ getDynamicById: (entityTypeRecId: number, RecId: number) =>
2779
+ `${environment.ServerUrl}/entitytype/dynamic/${RecId}/${entityTypeRecId}`,
2780
+ insertDynamic: (EntityData) =>
2781
+ `${environment.ServerUrl}/entitytype/dynamic/insert?EntityData=${EntityData}`,
2782
+ updateDynamic: (EntityData) =>
2783
+ `${environment.ServerUrl}entitytype/dynamic/update?EntityData=${EntityData}`,
2784
+ deleteDynamicById: (entityTypeRecid: number, RecId: number) =>
2785
+ `${environment.ServerUrl}entitytype/dynamic/delete?entityTypeRecid=${entityTypeRecid}&recId=${RecId}`,
2786
+
2787
+ getDynamicRefRecidEntity: (entityTypeRecId: number, RefTypeId: number) =>
2788
+ `${environment.ServerUrl}entitytype/dynamic/activity/get?entityTypeRecId=${entityTypeRecId}&RefTypeId=${RefTypeId}`,
2789
+ };
2790
+
2791
+ export const EntityTypeCategoryTypeTeams = {
2792
+ getAllCategoryTypeTeams: (CategoryId: number) =>
2793
+ `${environment.ServerUrl}categorytypeteams?CategoryId=${CategoryId}`,
2794
+ getCategoryTypeTeamsByRecId: (RecId: number) =>
2795
+ `${environment.ServerUrl}categorytypeteams/${RecId}`,
2796
+ postCategoryTypeTeams: () => `${environment.ServerUrl}categorytypeteams/add`,
2797
+ putCategoryTypeTeams: () =>
2798
+ `${environment.ServerUrl}categorytypeteams/update`,
2799
+ deleteCategoryTypeTeams: (RecIds: number[]) =>
2800
+ `${environment.ServerUrl}categorytypeteams?recIds=${RecIds}`,
2801
+ getAssignmentsDepartmentsAndRoles: (CategoryId: any) =>
2802
+ `${environment.ServerUrl}categorytypeteams/departmentsandroles?CategoryId=${CategoryId}`,
2803
+ assignRole: () => `${environment.ServerUrl}categorytypeteams/assingnrole`,
2804
+ unAssignRole: () => `${environment.ServerUrl}categorytypeteams/unassingnrole`,
2805
+ assignDepartment: () =>
2806
+ `${environment.ServerUrl}categorytypeteams/assingndepartment`,
2807
+ unAssignDepartment: () =>
2808
+ `${environment.ServerUrl}categorytypeteams/unassingndepartment`,
2809
+ };
2810
+
2811
+ export const EntityTypeCategoryTypeActivities = {
2812
+ getAllCategoryTypeActivities: (CategoryId: number) =>
2813
+ `${environment.ServerUrl}categorytypeactivity?CategoryId=${CategoryId}`,
2814
+ getCategoryTypeActivitiesByRecId: (RecId: number) =>
2815
+ `${environment.ServerUrl}categorytypeactivity/${RecId}`,
2816
+ postCategoryTypeActivities: () =>
2817
+ `${environment.ServerUrl}categorytypeactivity/add`,
2818
+ putCategoryTypeActivities: () =>
2819
+ `${environment.ServerUrl}categorytypeactivity/update`,
2820
+ deleteCategoryTypeActivities: (RecIds: number[]) =>
2821
+ `${environment.ServerUrl}categorytypeactivity?recIds=${RecIds}`,
2822
+ getAssignmentsActivities: (CategoryId: any) =>
2823
+ `${environment.ServerUrl}categorytypeactivity/assignandunassign?CategoryId=${CategoryId}`,
2824
+ assignActivities: () => `${environment.ServerUrl}categorytypeactivity/assign`,
2825
+ unAssignActivities: () =>
2826
+ `${environment.ServerUrl}categorytypeactivity/unassign`,
2827
+ };
2828
+ export const IssueSubGroup = {
2829
+ getAssignmentsForSubGroup: (SubGroupId: string) =>
2830
+ `${environment.ServerUrl}subgroupassingnment/assignandunassign?SubGroupId=${SubGroupId}`,
2831
+ assignSubGroup: () => `${environment.ServerUrl}subgroupassingnment/assign`,
2832
+ unAssignSubGroup: () =>
2833
+ `${environment.ServerUrl}subgroupassingnment/unassign`,
2834
+ };
2835
+
2836
+ export const categoryrequestertype = {
2837
+ deleteCategoryTypeActivities: (RecIds: number[]) =>
2838
+ `${environment.ServerUrl}categoryrequestertype?recIds=${RecIds}`,
2839
+ };
2840
+
2841
+ export const Instruction = {
2842
+ getAllInstruction: () => `${environment.ServerUrl}subgroup/instruction`,
2843
+ getSingleInstruction: (RecId: number) =>
2844
+ `${environment.ServerUrl}subgroup/instruction/${RecId}`,
2845
+ createInstruction: () => `${environment.ServerUrl}subgroup/instruction/add`,
2846
+ updateInstruction: () =>
2847
+ `${environment.ServerUrl}subgroup/instruction/update`,
2848
+ deleteInstruction: (recIds: number[]) =>
2849
+ `${environment.ServerUrl}subgroup/instruction?recIds=${recIds}`,
2850
+ getAssignmentForInstruction: (InstructionId: number) =>
2851
+ `${environment.ServerUrl}subgroupassingnment/instruction/assignandunassign?InstructionRecId=${InstructionId}`,
2852
+ assignInstruction: () =>
2853
+ `${environment.ServerUrl}subgroupassingnment/instruction/assign`,
2854
+ unAssignInstruction: () =>
2855
+ `${environment.ServerUrl}subgroupassingnment/instruction/unassign`,
2856
+ };
2857
+
2858
+ export const ShortKeyCannedResponse = {
2859
+ getShortCannedRespones: (searchterm: string) =>
2860
+ `${environment.ServerUrl}entitytype/cannedresponsebyshortcode?searchterm=${searchterm}`,
2861
+ };
2862
+ export const CannedResponse = {
2863
+ getAllCannedResponse: () =>
2864
+ `${environment.ServerUrl}entitytype/cannedresponse`,
2865
+ getSingleCannedResponse: (RecId: number) =>
2866
+ `${environment.ServerUrl}entitytype/cannedresponse/${RecId}`,
2867
+ createCannedResponse: () =>
2868
+ `${environment.ServerUrl}entitytype/cannedresponse/add`,
2869
+ updateCannedResponse: () =>
2870
+ `${environment.ServerUrl}entitytype/cannedresponse/update`,
2871
+ deleteCannedResponse: (recIds: number[]) =>
2872
+ `${environment.ServerUrl}entitytype/cannedresponse?recIds=${recIds}`,
2873
+ };
2874
+
2875
+ export const IssueCrud = {
2876
+ getAllIssueCrud: (IssueId: string) =>
2877
+ `${environment.ServerUrl}issuecaserequestermapping?IssueId=${IssueId}`,
2878
+ getSingleIssueCrud: (RecId: number) =>
2879
+ `${environment.ServerUrl}issuecaserequestermapping/${RecId}`,
2880
+ createIssueCrud: () =>
2881
+ `${environment.ServerUrl}issuecaserequestermapping/add`,
2882
+ updateIssueCrud: () =>
2883
+ `${environment.ServerUrl}issuecaserequestermapping/update`,
2884
+ deleteIssueCrud: (recIds: number[]) =>
2885
+ `${environment.ServerUrl}issuecaserequestermapping?recIds=${recIds}`,
2886
+ };
2887
+
2888
+ export const loginauth = {
2889
+ validatetoken: (Token: string) =>
2890
+ `${environment.ServerUrl}api/security/ValidateSecurityToken?Token=${Token}`,
2891
+ };
2892
+ export const ExportGrid = {
2893
+ getExportAllGridData: (Url: string,columnDef:string,filename:string,QueryString:string) =>
2894
+ `${environment.ServerUrl}exportdatabyrestapicall?apiUrl=${Url}&columnDef=${columnDef}&filename=${filename}&QueryString=${QueryString}`,
2895
+ }
2896
+ export const DocumentTemplate = {
2897
+ getDocumentTemplate: (CasetypeId: number) =>
2898
+ `${environment.ServerUrl}templateactivitybycaseid?CasetypeId=${CasetypeId}`,
2899
+ downloadDocumentTemplate: (entityTypeRecId: number,refRecid:number,activityRecId:number) =>
2900
+ `${environment.ServerUrl}entitytype/activitytemplate/downloadfiles?entityTypeRecId=${entityTypeRecId}&refRecid=${refRecid}&activityRecId=${activityRecId}`,
2901
+ }