flexbiz-server 12.4.21 → 12.4.23

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 (1068) hide show
  1. package/package.json +2 -1
  2. package/server/app.js +1 -22
  3. package/server/auths/bearer.js +1 -3
  4. package/server/auths/facebook.js +1 -12
  5. package/server/auths/google.js +1 -13
  6. package/server/auths/local.js +1 -64
  7. package/server/cluster.js +1 -27
  8. package/server/controllers/controller.js +1 -107
  9. package/server/controllers/controllerRPT.js +1 -27
  10. package/server/controllers/controllerUtils.js +1 -76
  11. package/server/controllers/createHandler.js +1 -35
  12. package/server/controllers/createRouteHandler.js +1 -4
  13. package/server/controllers/deleteHandler.js +1 -11
  14. package/server/controllers/deleteManyHandler.js +1 -2
  15. package/server/controllers/exportHandler.js +1 -17
  16. package/server/controllers/findHandler.js +1 -53
  17. package/server/controllers/handlers.js +1 -3
  18. package/server/controllers/historyHandler.js +1 -5
  19. package/server/controllers/importFromExcelHandler.js +1 -14
  20. package/server/controllers/importFromGsHandler.js +1 -10
  21. package/server/controllers/importFromJsonHandler.js +1 -7
  22. package/server/controllers/importHandler.js +1 -21
  23. package/server/controllers/logHandler.js +1 -5
  24. package/server/controllers/rptCreateRouteHandler.js +1 -4
  25. package/server/controllers/rptExcelHandler.js +1 -32
  26. package/server/controllers/rptHandler.js +1 -13
  27. package/server/controllers/updateBookHandler.js +1 -10
  28. package/server/controllers/updateFieldHandler.js +1 -12
  29. package/server/controllers/updateHandler.js +1 -39
  30. package/server/controllers/updateKeyHandler.js +1 -14
  31. package/server/controllers/viewHandler.js +1 -13
  32. package/server/flow/FlowEngine.js +1 -64
  33. package/server/flow/WebhookManager.js +1 -26
  34. package/server/flow/handlers.js +1 -3
  35. package/server/flow/nodes/aiAnalysis.js +1 -9
  36. package/server/flow/nodes/customer.js +1 -15
  37. package/server/flow/nodes/data.js +1 -14
  38. package/server/flow/nodes/debug.js +1 -2
  39. package/server/flow/nodes/delay.js +1 -3
  40. package/server/flow/nodes/email.js +1 -9
  41. package/server/flow/nodes/event.js +1 -11
  42. package/server/flow/nodes/facebook.js +1 -3
  43. package/server/flow/nodes/facebookConversations.js +1 -5
  44. package/server/flow/nodes/facebookCreatePost.js +1 -10
  45. package/server/flow/nodes/facebookSendMessage.js +1 -12
  46. package/server/flow/nodes/forEachItem.js +1 -8
  47. package/server/flow/nodes/function.js +1 -4
  48. package/server/flow/nodes/httprequest.js +1 -7
  49. package/server/flow/nodes/inject.js +1 -12
  50. package/server/flow/nodes/pushNotification.js +1 -5
  51. package/server/flow/nodes/report.js +1 -6
  52. package/server/flow/nodes/saveData.js +1 -2
  53. package/server/flow/nodes/switch.js +1 -20
  54. package/server/flow/nodes/webhook.js +1 -1
  55. package/server/flow/nodes/zaloSendMessage.js +1 -4
  56. package/server/flow/utils.js +1 -2
  57. package/server/global.js +1 -23
  58. package/server/libs/BlockchainTransactionPool.js +1 -3
  59. package/server/libs/WorkerPool.js +1 -4
  60. package/server/libs/WorkerStaticPool.js +1 -16
  61. package/server/libs/WorkerStaticPool_v1.js +1 -5
  62. package/server/libs/assbonus.js +1 -7
  63. package/server/libs/backup.js +1 -2
  64. package/server/libs/blockchainconnect.js +1 -12
  65. package/server/libs/cdpsdiem.js +1 -5
  66. package/server/libs/cdpsdt.js +1 -7
  67. package/server/libs/cdpskh.js +1 -9
  68. package/server/libs/cdpsnphep.js +1 -6
  69. package/server/libs/cdpstk.js +1 -11
  70. package/server/libs/ckcn.js +1 -12
  71. package/server/libs/ckdiem.js +1 -5
  72. package/server/libs/ckdt.js +1 -6
  73. package/server/libs/cknphep.js +1 -6
  74. package/server/libs/cktk.js +1 -4
  75. package/server/libs/cktt.js +1 -9
  76. package/server/libs/ckvt.js +1 -12
  77. package/server/libs/ckvtcapphat.js +1 -6
  78. package/server/libs/ckvtnpp.js +1 -8
  79. package/server/libs/ckvttt.js +1 -11
  80. package/server/libs/createSocaitheongay.js +1 -9
  81. package/server/libs/ctdiem.js +1 -5
  82. package/server/libs/ctvt.js +1 -7
  83. package/server/libs/ctvtnpp.js +1 -7
  84. package/server/libs/ctvttt.js +1 -7
  85. package/server/libs/databanle.js +1 -17
  86. package/server/libs/databanlenpp.js +1 -8
  87. package/server/libs/databanletheongay.js +1 -27
  88. package/server/libs/dkcn.js +1 -10
  89. package/server/libs/dkdiem.js +1 -5
  90. package/server/libs/dkdt.js +1 -6
  91. package/server/libs/dknphep.js +1 -7
  92. package/server/libs/dktk.js +1 -4
  93. package/server/libs/dktt.js +1 -8
  94. package/server/libs/dkvt.js +1 -9
  95. package/server/libs/dkvtnpp.js +1 -7
  96. package/server/libs/dkvttt.js +1 -7
  97. package/server/libs/dncn.js +1 -6
  98. package/server/libs/dntk.js +1 -4
  99. package/server/libs/dntt.js +1 -6
  100. package/server/libs/docs.js +1 -452
  101. package/server/libs/dstkcn.js +1 -1
  102. package/server/libs/dstktt.js +1 -1
  103. package/server/libs/dtbanletheonpp.js +1 -17
  104. package/server/libs/dtbanletheosp.js +1 -15
  105. package/server/libs/dtbanletheospnpp.js +1 -15
  106. package/server/libs/email.js +1 -3
  107. package/server/libs/excel.js +1 -2
  108. package/server/libs/getGiaban.js +1 -67
  109. package/server/libs/getGiabanAsync.js +1 -1
  110. package/server/libs/getNotifies.js +1 -1
  111. package/server/libs/htmlReport.js +1 -9
  112. package/server/libs/initDatabase.js +1 -9
  113. package/server/libs/invoiceEasy.js +1 -109
  114. package/server/libs/invoiceViettel.js +1 -29
  115. package/server/libs/invoiceVnpt.js +1 -22
  116. package/server/libs/kpistatus.js +1 -32
  117. package/server/libs/load-template.js +1 -3
  118. package/server/libs/mailmanagement.js +1 -13
  119. package/server/libs/mongooseDeletePost.js +1 -6
  120. package/server/libs/mongooseLeanId.js +1 -1
  121. package/server/libs/mongoosePatch.js +1 -8
  122. package/server/libs/onepay-payment.js +1 -4
  123. package/server/libs/optimizeBookkeeping.js +1 -14
  124. package/server/libs/parse-template.js +1 -5
  125. package/server/libs/permission.js +1 -51
  126. package/server/libs/phanbokh.js +1 -3
  127. package/server/libs/post-book.js +1 -23
  128. package/server/libs/post-socai.js +1 -25
  129. package/server/libs/post-sokho.js +1 -27
  130. package/server/libs/prototypes.js +1 -29
  131. package/server/libs/psdt.js +1 -1
  132. package/server/libs/pskh.js +1 -1
  133. package/server/libs/pstk.js +1 -1
  134. package/server/libs/redis-cache.js +1 -17
  135. package/server/libs/restore.js +1 -1
  136. package/server/libs/schedule.js +1 -18
  137. package/server/libs/sessionContext.js +2 -14
  138. package/server/libs/textReport.js +1 -3
  139. package/server/libs/thnxt.js +1 -9
  140. package/server/libs/thnxtnpp.js +1 -9
  141. package/server/libs/thnxttt.js +1 -8
  142. package/server/libs/tinhGt.js +1 -7
  143. package/server/libs/tinhGtCapnhatPNK.js +1 -7
  144. package/server/libs/tinhGtPhanboHeSo.js +1 -12
  145. package/server/libs/tinhGtPhanboSltp.js +1 -10
  146. package/server/libs/tinhGtPhanboYtcp.js +1 -11
  147. package/server/libs/tinhGtSltk.js +1 -9
  148. package/server/libs/tinhGtThcppstk.js +1 -10
  149. package/server/libs/tinhGtTrucTiep.js +1 -7
  150. package/server/libs/tinhGtXoa.js +1 -3
  151. package/server/libs/tinhgiatb.js +1 -38
  152. package/server/libs/tinhgiatb1vt.js +1 -5
  153. package/server/libs/tinhhoahong.js +1 -64
  154. package/server/libs/tinhhoahongnpp.js +1 -46
  155. package/server/libs/tinhkhauhao1ts.js +1 -12
  156. package/server/libs/tinhkhauhaots.js +1 -8
  157. package/server/libs/tuoinophaithu.js +1 -10
  158. package/server/libs/tuoinophaitra.js +1 -11
  159. package/server/libs/utils.js +1 -78
  160. package/server/libs/validate.js +1 -4
  161. package/server/libs/validator-acc-cust.js +1 -1
  162. package/server/libs/validator-account.js +1 -4
  163. package/server/libs/validator-vt.js +1 -2
  164. package/server/libs/validator.js +1 -11
  165. package/server/libs/vsocai.js +1 -8
  166. package/server/models/account.js +1 -7
  167. package/server/models/afflink.js +1 -2
  168. package/server/models/app.js +1 -15
  169. package/server/models/approve.js +1 -93
  170. package/server/models/assabcihandler.js +1 -35
  171. package/server/models/assbank.js +1 -19
  172. package/server/models/assbooking.js +1 -4
  173. package/server/models/assbuy.js +1 -3
  174. package/server/models/asscashwithdraw.js +1 -4
  175. package/server/models/assfindhash.js +1 -2
  176. package/server/models/assinvestment.js +1 -13
  177. package/server/models/assissue.js +1 -2
  178. package/server/models/asskey.js +1 -15
  179. package/server/models/assneedtobuy.js +1 -6
  180. package/server/models/assperiod.js +1 -7
  181. package/server/models/assproduct.js +1 -13
  182. package/server/models/assprofitsharing.js +1 -4
  183. package/server/models/assreceiver.js +1 -2
  184. package/server/models/assrequest.js +1 -11
  185. package/server/models/asssell.js +1 -7
  186. package/server/models/asstransaction.js +1 -3
  187. package/server/models/asstransfer.js +1 -4
  188. package/server/models/assuser_identity.js +1 -4
  189. package/server/models/asswithdraw.js +1 -4
  190. package/server/models/attend.js +1 -2
  191. package/server/models/banggiaban.js +1 -8
  192. package/server/models/bangtinhluong.js +1 -6
  193. package/server/models/base.js +1 -1
  194. package/server/models/bds_area.js +1 -4
  195. package/server/models/bds_block.js +1 -3
  196. package/server/models/bds_building.js +1 -4
  197. package/server/models/bds_floor.js +1 -3
  198. package/server/models/bds_floordetail.js +1 -9
  199. package/server/models/bds_nhadat.js +1 -11
  200. package/server/models/bds_nhomnhadat.js +1 -4
  201. package/server/models/bds_phanloainhadat.js +1 -3
  202. package/server/models/bg1.js +1 -9
  203. package/server/models/bg2.js +1 -10
  204. package/server/models/cache.js +1 -3
  205. package/server/models/calllog.js +1 -4
  206. package/server/models/campaign.js +1 -6
  207. package/server/models/cart.js +1 -5
  208. package/server/models/cddiem.js +1 -2
  209. package/server/models/cddt.js +1 -3
  210. package/server/models/cdkh.js +1 -5
  211. package/server/models/cdkhtheongay.js +1 -5
  212. package/server/models/cdnphep.js +1 -2
  213. package/server/models/cdtk.js +1 -3
  214. package/server/models/cdtktheongay.js +1 -3
  215. package/server/models/cdvt.js +1 -5
  216. package/server/models/cdvtnpp.js +1 -6
  217. package/server/models/cdvttheongay.js +1 -5
  218. package/server/models/chamcong.js +1 -7
  219. package/server/models/checkin.js +1 -4
  220. package/server/models/checkinactivity.js +1 -3
  221. package/server/models/checkinkpi.js +1 -4
  222. package/server/models/checkinlocation.js +1 -2
  223. package/server/models/chitieukpi.js +1 -3
  224. package/server/models/chudethaoluan.js +1 -3
  225. package/server/models/ckgtluong.js +1 -2
  226. package/server/models/colleague.js +1 -2
  227. package/server/models/comment.js +1 -4
  228. package/server/models/congdoansx.js +1 -4
  229. package/server/models/congtacvien.js +1 -4
  230. package/server/models/congthuctinhgiaban.js +1 -8
  231. package/server/models/consultant.js +1 -4
  232. package/server/models/contract.js +1 -6
  233. package/server/models/counter.js +1 -2
  234. package/server/models/ctds.js +1 -5
  235. package/server/models/ctds2.js +1 -6
  236. package/server/models/currency.js +1 -3
  237. package/server/models/customer.js +1 -31
  238. package/server/models/databanle.js +1 -8
  239. package/server/models/datlich.js +1 -4
  240. package/server/models/department.js +1 -4
  241. package/server/models/dh2.js +1 -20
  242. package/server/models/diagram.js +1 -2
  243. package/server/models/dinhmucsx.js +1 -8
  244. package/server/models/dkhoc.js +1 -6
  245. package/server/models/dknphep.js +1 -2
  246. package/server/models/dmban.js +1 -4
  247. package/server/models/dmbp.js +1 -12
  248. package/server/models/dmca.js +1 -2
  249. package/server/models/dmchietkhau.js +1 -9
  250. package/server/models/dmchietkhauhd.js +1 -20
  251. package/server/models/dmcpmh.js +1 -2
  252. package/server/models/dmdiemthuong.js +1 -5
  253. package/server/models/dmdoi.js +1 -4
  254. package/server/models/dmdoituongdanhgia.js +1 -2
  255. package/server/models/dmdt.js +1 -8
  256. package/server/models/dmdvt.js +1 -3
  257. package/server/models/dmgiaban.js +1 -9
  258. package/server/models/dmgiamua.js +1 -5
  259. package/server/models/dmgiathitruong.js +1 -5
  260. package/server/models/dmgiathitruong_ngay.js +1 -2
  261. package/server/models/dmgiathitruong_theodoi.js +1 -2
  262. package/server/models/dmhoahonghd.js +1 -9
  263. package/server/models/dmhoahongnpp.js +1 -9
  264. package/server/models/dmkc.js +1 -3
  265. package/server/models/dmkho.js +1 -6
  266. package/server/models/dmkhuyenmai.js +1 -9
  267. package/server/models/dmkhuyenmaihd.js +1 -11
  268. package/server/models/dmletet.js +1 -2
  269. package/server/models/dmlo.js +1 -4
  270. package/server/models/dmloaicong.js +1 -4
  271. package/server/models/dmloaitask.js +1 -2
  272. package/server/models/dmloaits.js +1 -2
  273. package/server/models/dmnckkm.js +1 -4
  274. package/server/models/dmnghiepvu.js +1 -4
  275. package/server/models/dmnguonvon.js +1 -2
  276. package/server/models/dmnhnv.js +1 -4
  277. package/server/models/dmnv.js +1 -17
  278. package/server/models/dmnvt.js +1 -9
  279. package/server/models/dmphatdichvu.js +1 -5
  280. package/server/models/dmphi.js +1 -3
  281. package/server/models/dmqct.js +1 -3
  282. package/server/models/dmqddvt.js +1 -3
  283. package/server/models/dmtanggiamts.js +1 -3
  284. package/server/models/dmto.js +1 -4
  285. package/server/models/dmtt.js +1 -6
  286. package/server/models/dmvt.js +1 -17
  287. package/server/models/dmyt.js +1 -4
  288. package/server/models/dn0.js +1 -13
  289. package/server/models/dnm.js +1 -11
  290. package/server/models/dokho.js +1 -2
  291. package/server/models/domain.js +1 -2
  292. package/server/models/dvcs.js +1 -3
  293. package/server/models/ecomcategories.js +1 -3
  294. package/server/models/ecomcategories_cty.js +1 -3
  295. package/server/models/ecomproductlines.js +1 -2
  296. package/server/models/ecompromotion_flashsales.js +1 -2
  297. package/server/models/ecompromotion_freeships.js +1 -2
  298. package/server/models/email.js +1 -2
  299. package/server/models/endpoint.js +1 -1
  300. package/server/models/events.js +1 -3
  301. package/server/models/evoucher.js +1 -5
  302. package/server/models/experiencejourney.js +1 -2
  303. package/server/models/experiencejourneydata.js +1 -4
  304. package/server/models/experiencejourneypersona.js +1 -3
  305. package/server/models/experiencejourneystage.js +1 -2
  306. package/server/models/exportexceltemplate.js +1 -2
  307. package/server/models/fbconversation.js +1 -15
  308. package/server/models/fbmessage.js +1 -2
  309. package/server/models/fbpage.js +1 -2
  310. package/server/models/fbpost.js +1 -2
  311. package/server/models/fieldright.js +1 -2
  312. package/server/models/file.js +1 -4
  313. package/server/models/financialroadmap.js +1 -3
  314. package/server/models/flow.js +1 -2
  315. package/server/models/flowdata.js +1 -3
  316. package/server/models/folder.js +1 -4
  317. package/server/models/follow.js +1 -2
  318. package/server/models/form.js +1 -3
  319. package/server/models/forminfo.js +1 -5
  320. package/server/models/formvalue.js +1 -3
  321. package/server/models/giaoca.js +1 -4
  322. package/server/models/giatb.js +1 -3
  323. package/server/models/group.js +1 -11
  324. package/server/models/gt_ctgt.js +1 -4
  325. package/server/models/gt_hspb.js +1 -3
  326. package/server/models/gt_sltk.js +1 -3
  327. package/server/models/gt_thcppstk.js +1 -3
  328. package/server/models/hanmucton.js +1 -4
  329. package/server/models/hd1.js +1 -11
  330. package/server/models/hd2.js +1 -27
  331. package/server/models/hd3.js +1 -18
  332. package/server/models/hd4.js +1 -13
  333. package/server/models/hd7.js +1 -17
  334. package/server/models/hd8.js +1 -12
  335. package/server/models/hde.js +1 -11
  336. package/server/models/hlink.js +1 -2
  337. package/server/models/hlinkvalue.js +1 -2
  338. package/server/models/hmcn.js +1 -3
  339. package/server/models/hmcnct.js +1 -2
  340. package/server/models/hspbts.js +1 -4
  341. package/server/models/htl.js +1 -13
  342. package/server/models/importexceltemplate.js +1 -2
  343. package/server/models/introducebonus.js +1 -4
  344. package/server/models/introducecode.js +1 -3
  345. package/server/models/introducer.js +1 -4
  346. package/server/models/kbbtpb.js +1 -7
  347. package/server/models/kbmPttct.js +1 -4
  348. package/server/models/kbmTkgtgt.js +1 -5
  349. package/server/models/kbm_bcdkt.js +1 -4
  350. package/server/models/kbm_kqhdkd.js +1 -3
  351. package/server/models/kbm_lcttgt.js +1 -5
  352. package/server/models/kbm_lctttt.js +1 -4
  353. package/server/models/kbm_pttct.js +1 -4
  354. package/server/models/kbm_tkgtgt.js +1 -5
  355. package/server/models/kbmbcdkt.js +1 -4
  356. package/server/models/kbmbcqt.js +1 -4
  357. package/server/models/kbmkqhdkd.js +1 -3
  358. package/server/models/kbmlcttgt.js +1 -6
  359. package/server/models/kbmlctttt.js +1 -4
  360. package/server/models/kbmtmbctc.js +1 -4
  361. package/server/models/kehoachdtcp.js +1 -3
  362. package/server/models/kehoachmh.js +1 -8
  363. package/server/models/keyresult.js +1 -7
  364. package/server/models/khunghangthanhvien.js +1 -3
  365. package/server/models/label.js +1 -2
  366. package/server/models/labelinfo.js +1 -2
  367. package/server/models/lenhcapphat.js +1 -8
  368. package/server/models/lenhsx.js +1 -8
  369. package/server/models/lienhe.js +1 -4
  370. package/server/models/like_module.js +1 -2
  371. package/server/models/link.js +1 -2
  372. package/server/models/loaidiem.js +1 -2
  373. package/server/models/lock.js +1 -2
  374. package/server/models/log.js +1 -5
  375. package/server/models/mailaccount.js +1 -3
  376. package/server/models/mailgroup.js +1 -3
  377. package/server/models/mailreceived.js +1 -2
  378. package/server/models/mailschedule.js +1 -2
  379. package/server/models/mailsent.js +1 -2
  380. package/server/models/mailtemplate.js +1 -2
  381. package/server/models/maudanhgia.js +1 -2
  382. package/server/models/menuinfo.js +1 -2
  383. package/server/models/message.js +1 -8
  384. package/server/models/message2.js +1 -4
  385. package/server/models/message2setting.js +1 -3
  386. package/server/models/moduleinfo.js +1 -4
  387. package/server/models/momo.js +1 -17
  388. package/server/models/news.js +1 -3
  389. package/server/models/newsfeed.js +1 -4
  390. package/server/models/note.js +1 -2
  391. package/server/models/notification.js +1 -7
  392. package/server/models/okr.js +1 -4
  393. package/server/models/okrdiagram.js +1 -3
  394. package/server/models/onepay.js +1 -24
  395. package/server/models/opportunity.js +1 -4
  396. package/server/models/options.js +1 -2
  397. package/server/models/originimportid.js +1 -1
  398. package/server/models/otp.js +1 -1
  399. package/server/models/parameter.js +1 -2
  400. package/server/models/participant.js +1 -20
  401. package/server/models/partner.js +1 -1
  402. package/server/models/payload.js +1 -1
  403. package/server/models/pbl.js +1 -16
  404. package/server/models/pc0.js +1 -13
  405. package/server/models/pc1.js +1 -14
  406. package/server/models/pc2.js +1 -13
  407. package/server/models/pc3.js +1 -13
  408. package/server/models/pc5.js +1 -8
  409. package/server/models/pc6.js +1 -14
  410. package/server/models/pcl.js +1 -6
  411. package/server/models/pdn.js +1 -9
  412. package/server/models/pdx.js +1 -9
  413. package/server/models/pgh.js +1 -5
  414. package/server/models/phieudanhgia.js +1 -3
  415. package/server/models/pht.js +1 -8
  416. package/server/models/phucap.js +1 -4
  417. package/server/models/pkc.js +1 -6
  418. package/server/models/pkh.js +1 -6
  419. package/server/models/pkk.js +1 -10
  420. package/server/models/pkt.js +1 -12
  421. package/server/models/pn1.js +1 -17
  422. package/server/models/pn2.js +1 -11
  423. package/server/models/pn3.js +1 -13
  424. package/server/models/pn5.js +1 -14
  425. package/server/models/pn6.js +1 -14
  426. package/server/models/pn9.js +1 -17
  427. package/server/models/pnc.js +1 -10
  428. package/server/models/pnh.js +1 -12
  429. package/server/models/pnk.js +1 -10
  430. package/server/models/po1.js +1 -19
  431. package/server/models/ppb.js +1 -6
  432. package/server/models/profile.js +1 -4
  433. package/server/models/pt1.js +1 -12
  434. package/server/models/pt5.js +1 -8
  435. package/server/models/ptl.js +1 -6
  436. package/server/models/ptthanhtoan.js +1 -6
  437. package/server/models/purchase_contract.js +1 -17
  438. package/server/models/pxc.js +1 -9
  439. package/server/models/pxh.js +1 -12
  440. package/server/models/pxk.js +1 -10
  441. package/server/models/qts.js +1 -14
  442. package/server/models/qts_dieuchinh.js +1 -3
  443. package/server/models/qts_dieuchuyen.js +1 -4
  444. package/server/models/quanhuyen.js +1 -2
  445. package/server/models/reason.js +1 -2
  446. package/server/models/receivedinvoice.js +1 -2
  447. package/server/models/reportinfo.js +1 -5
  448. package/server/models/right.js +1 -4
  449. package/server/models/rpt.js +1 -2
  450. package/server/models/rptform.js +1 -5
  451. package/server/models/rptobject.js +1 -2
  452. package/server/models/sale_contract.js +1 -9
  453. package/server/models/schedule.js +1 -16
  454. package/server/models/schedule_log.js +1 -2
  455. package/server/models/service.js +1 -4
  456. package/server/models/shipbook.js +1 -12
  457. package/server/models/shortcut.js +1 -2
  458. package/server/models/smsaccount.js +1 -10
  459. package/server/models/smssend.js +1 -2
  460. package/server/models/so1.js +1 -22
  461. package/server/models/so2.js +1 -10
  462. package/server/models/so3.js +1 -9
  463. package/server/models/so5.js +1 -15
  464. package/server/models/so9.js +1 -19
  465. package/server/models/socai.js +1 -26
  466. package/server/models/socainpp.js +1 -18
  467. package/server/models/socaitc.js +1 -6
  468. package/server/models/socaitmp.js +1 -16
  469. package/server/models/socaitt.js +1 -4
  470. package/server/models/sodiemthuong.js +1 -4
  471. package/server/models/sokho.js +1 -28
  472. package/server/models/sokhocapphat.js +1 -18
  473. package/server/models/sokhokhongton.js +1 -19
  474. package/server/models/sokhonpp.js +1 -19
  475. package/server/models/sokhotc.js +1 -8
  476. package/server/models/sokhott.js +1 -18
  477. package/server/models/sophanbokh.js +1 -3
  478. package/server/models/sosanxuat.js +1 -5
  479. package/server/models/sotinhkh.js +1 -2
  480. package/server/models/spdd_ck.js +1 -3
  481. package/server/models/spdd_dk.js +1 -3
  482. package/server/models/step.js +1 -2
  483. package/server/models/strategicdiagram.js +1 -3
  484. package/server/models/strategicgoal.js +1 -4
  485. package/server/models/strategickpi.js +1 -6
  486. package/server/models/strategicobjective.js +1 -5
  487. package/server/models/strategicplan.js +1 -5
  488. package/server/models/subscribe.js +1 -2
  489. package/server/models/support.js +1 -2
  490. package/server/models/synctime.js +1 -2
  491. package/server/models/sysconfig.js +1 -2
  492. package/server/models/sysgroup.js +1 -2
  493. package/server/models/tableinfo.js +1 -3
  494. package/server/models/task.js +1 -9
  495. package/server/models/taskreg.js +1 -4
  496. package/server/models/tc.js +1 -2
  497. package/server/models/tdttco.js +1 -8
  498. package/server/models/tdttco_tt.js +1 -5
  499. package/server/models/tdttno.js +1 -8
  500. package/server/models/tdttno_tt.js +1 -5
  501. package/server/models/templaterpt.js +1 -2
  502. package/server/models/templatestore.js +1 -3
  503. package/server/models/templatevoucher.js +1 -3
  504. package/server/models/tinhthanh.js +1 -2
  505. package/server/models/tokens.js +1 -2
  506. package/server/models/tontucthoi.js +1 -9
  507. package/server/models/trangthai.js +1 -4
  508. package/server/models/trangthaiapp.js +1 -4
  509. package/server/models/transaction.js +1 -16
  510. package/server/models/trialinfo.js +1 -2
  511. package/server/models/user.js +1 -38
  512. package/server/models/usergroup.js +1 -7
  513. package/server/models/vanchuyen.js +1 -12
  514. package/server/models/vat.js +1 -3
  515. package/server/models/vatra.js +1 -6
  516. package/server/models/vatvao.js +1 -6
  517. package/server/models/versioninfo.js +1 -2
  518. package/server/models/vietqrbanks.js +1 -2
  519. package/server/models/vsocai.js +1 -6
  520. package/server/models/waitevent.js +1 -2
  521. package/server/models/wallet.js +1 -8
  522. package/server/models/warranty.js +1 -3
  523. package/server/models/warrantyclaim.js +1 -2
  524. package/server/models/warrantypolicy.js +1 -1
  525. package/server/models/xaphuong.js +1 -2
  526. package/server/models/xhd.js +1 -10
  527. package/server/models/ytdd_ck.js +1 -4
  528. package/server/models/ytdd_dk.js +1 -4
  529. package/server/models/zalo.js +1 -17
  530. package/server/modules/lists/bg-cddiem.js +1 -6
  531. package/server/modules/lists/bg-cddt.js +1 -7
  532. package/server/modules/lists/bg-cdkh.js +1 -11
  533. package/server/modules/lists/bg-cdnphep.js +1 -6
  534. package/server/modules/lists/bg-cdtk.js +1 -9
  535. package/server/modules/lists/bg-cdvt.js +1 -8
  536. package/server/modules/lists/bg-cdvtnpp.js +1 -8
  537. package/server/modules/lists/ls-account.js +1 -4
  538. package/server/modules/lists/ls-afflink.js +1 -3
  539. package/server/modules/lists/ls-approve.js +1 -4
  540. package/server/modules/lists/ls-assabcihandler.js +1 -3
  541. package/server/modules/lists/ls-assbank.js +1 -3
  542. package/server/modules/lists/ls-assbooking.js +1 -20
  543. package/server/modules/lists/ls-assbuy.js +1 -8
  544. package/server/modules/lists/ls-asscashwithdraw.js +1 -8
  545. package/server/modules/lists/ls-assinvestment.js +1 -31
  546. package/server/modules/lists/ls-assissue.js +1 -3
  547. package/server/modules/lists/ls-asskey.js +1 -41
  548. package/server/modules/lists/ls-assneedtobuy.js +1 -10
  549. package/server/modules/lists/ls-assperiod.js +1 -19
  550. package/server/modules/lists/ls-assproduct.js +1 -9
  551. package/server/modules/lists/ls-assprofitsharing.js +1 -8
  552. package/server/modules/lists/ls-assreceiver.js +1 -3
  553. package/server/modules/lists/ls-assrequest.js +1 -4
  554. package/server/modules/lists/ls-asssell.js +1 -13
  555. package/server/modules/lists/ls-asstransaction.js +1 -3
  556. package/server/modules/lists/ls-asstransfer.js +1 -3
  557. package/server/modules/lists/ls-assuser_identity.js +1 -1
  558. package/server/modules/lists/ls-asswithdraw.js +1 -12
  559. package/server/modules/lists/ls-bangtinhluong.js +1 -2
  560. package/server/modules/lists/ls-bds_area.js +1 -3
  561. package/server/modules/lists/ls-bds_block.js +1 -1
  562. package/server/modules/lists/ls-bds_building.js +1 -3
  563. package/server/modules/lists/ls-bds_dmnhbds.js +1 -6
  564. package/server/modules/lists/ls-bds_floor.js +1 -2
  565. package/server/modules/lists/ls-bds_floordetail.js +1 -19
  566. package/server/modules/lists/ls-bds_nhadat.js +1 -16
  567. package/server/modules/lists/ls-bds_nhomnhadat.js +1 -1
  568. package/server/modules/lists/ls-bds_phanloainhadat.js +1 -1
  569. package/server/modules/lists/ls-calllog.js +1 -4
  570. package/server/modules/lists/ls-campaign.js +1 -1
  571. package/server/modules/lists/ls-cart.js +1 -14
  572. package/server/modules/lists/ls-chamcong.js +1 -3
  573. package/server/modules/lists/ls-checkin.js +1 -12
  574. package/server/modules/lists/ls-checkinactivity.js +1 -8
  575. package/server/modules/lists/ls-checkinkpi.js +1 -3
  576. package/server/modules/lists/ls-checkinlocation.js +1 -1
  577. package/server/modules/lists/ls-chitieukpi.js +1 -1
  578. package/server/modules/lists/ls-chudethaoluan.js +1 -1
  579. package/server/modules/lists/ls-ckgtluong.js +1 -1
  580. package/server/modules/lists/ls-comment.js +1 -9
  581. package/server/modules/lists/ls-congdoansx.js +1 -3
  582. package/server/modules/lists/ls-congtacvien.js +1 -5
  583. package/server/modules/lists/ls-consultant.js +1 -2
  584. package/server/modules/lists/ls-contract.js +1 -7
  585. package/server/modules/lists/ls-ctds.js +1 -4
  586. package/server/modules/lists/ls-ctds2.js +1 -4
  587. package/server/modules/lists/ls-currency.js +1 -1
  588. package/server/modules/lists/ls-customer.js +1 -21
  589. package/server/modules/lists/ls-datlich.js +1 -9
  590. package/server/modules/lists/ls-dckhauhaots.js +1 -3
  591. package/server/modules/lists/ls-department.js +1 -3
  592. package/server/modules/lists/ls-diagram.js +1 -1
  593. package/server/modules/lists/ls-dkhoc.js +1 -6
  594. package/server/modules/lists/ls-dknphep.js +1 -1
  595. package/server/modules/lists/ls-dmban.js +1 -4
  596. package/server/modules/lists/ls-dmbp.js +1 -7
  597. package/server/modules/lists/ls-dmca.js +1 -1
  598. package/server/modules/lists/ls-dmchietkhau.js +1 -19
  599. package/server/modules/lists/ls-dmchietkhauhd.js +1 -4
  600. package/server/modules/lists/ls-dmchucvu.js +1 -2
  601. package/server/modules/lists/ls-dmcpmh.js +1 -1
  602. package/server/modules/lists/ls-dmdiemthuong.js +1 -4
  603. package/server/modules/lists/ls-dmdoi.js +1 -4
  604. package/server/modules/lists/ls-dmdoituongdanhgia.js +1 -1
  605. package/server/modules/lists/ls-dmdt.js +1 -11
  606. package/server/modules/lists/ls-dmdvt.js +1 -2
  607. package/server/modules/lists/ls-dmgiaban.js +1 -4
  608. package/server/modules/lists/ls-dmgiamua.js +1 -4
  609. package/server/modules/lists/ls-dmgiathitruong.js +1 -15
  610. package/server/modules/lists/ls-dmgiathitruong_ngay.js +1 -2
  611. package/server/modules/lists/ls-dmgiathitruong_theodoi.js +1 -1
  612. package/server/modules/lists/ls-dmhoahonghd.js +1 -1
  613. package/server/modules/lists/ls-dmhoahongnpp.js +1 -1
  614. package/server/modules/lists/ls-dmkc.js +1 -3
  615. package/server/modules/lists/ls-dmkho.js +1 -1
  616. package/server/modules/lists/ls-dmkhuyenmai.js +1 -5
  617. package/server/modules/lists/ls-dmkhuyenmaihd.js +1 -3
  618. package/server/modules/lists/ls-dmletet.js +1 -1
  619. package/server/modules/lists/ls-dmlo.js +1 -1
  620. package/server/modules/lists/ls-dmloaicong.js +1 -1
  621. package/server/modules/lists/ls-dmloaits.js +1 -1
  622. package/server/modules/lists/ls-dmnckkm.js +1 -7
  623. package/server/modules/lists/ls-dmnghiepvu.js +1 -1
  624. package/server/modules/lists/ls-dmnguonvon.js +1 -1
  625. package/server/modules/lists/ls-dmnhnv.js +1 -6
  626. package/server/modules/lists/ls-dmnhtask.js +1 -5
  627. package/server/modules/lists/ls-dmnkh.js +1 -6
  628. package/server/modules/lists/ls-dmntt.js +1 -6
  629. package/server/modules/lists/ls-dmnv.js +1 -17
  630. package/server/modules/lists/ls-dmnvt.js +1 -8
  631. package/server/modules/lists/ls-dmphatdichvu.js +1 -3
  632. package/server/modules/lists/ls-dmphi.js +1 -6
  633. package/server/modules/lists/ls-dmqct.js +1 -2
  634. package/server/modules/lists/ls-dmqddvt.js +1 -3
  635. package/server/modules/lists/ls-dmtanggiamts.js +1 -1
  636. package/server/modules/lists/ls-dmto.js +1 -5
  637. package/server/modules/lists/ls-dmtt.js +1 -7
  638. package/server/modules/lists/ls-dmvt.js +1 -68
  639. package/server/modules/lists/ls-dmyt.js +1 -1
  640. package/server/modules/lists/ls-dokho.js +1 -1
  641. package/server/modules/lists/ls-dvcs.js +1 -1
  642. package/server/modules/lists/ls-ecomcategories.js +1 -5
  643. package/server/modules/lists/ls-ecomcategories_cty.js +1 -5
  644. package/server/modules/lists/ls-email.js +1 -4
  645. package/server/modules/lists/ls-events.js +1 -3
  646. package/server/modules/lists/ls-evoucher.js +1 -3
  647. package/server/modules/lists/ls-experiencejourney.js +1 -1
  648. package/server/modules/lists/ls-experiencejourneydata.js +1 -3
  649. package/server/modules/lists/ls-experiencejourneypersona.js +1 -4
  650. package/server/modules/lists/ls-experiencejourneystage.js +1 -1
  651. package/server/modules/lists/ls-fbconversation.js +1 -2
  652. package/server/modules/lists/ls-fbmessage.js +1 -2
  653. package/server/modules/lists/ls-fbpage.js +1 -11
  654. package/server/modules/lists/ls-fbpost.js +1 -2
  655. package/server/modules/lists/ls-file.js +1 -31
  656. package/server/modules/lists/ls-financialroadmap.js +1 -3
  657. package/server/modules/lists/ls-flow.js +1 -6
  658. package/server/modules/lists/ls-flowdata.js +1 -1
  659. package/server/modules/lists/ls-folder.js +1 -1
  660. package/server/modules/lists/ls-form.js +1 -1
  661. package/server/modules/lists/ls-forminfo.js +1 -1
  662. package/server/modules/lists/ls-formvalue.js +1 -1
  663. package/server/modules/lists/ls-giaoca.js +1 -4
  664. package/server/modules/lists/ls-group.js +1 -5
  665. package/server/modules/lists/ls-hlink.js +1 -1
  666. package/server/modules/lists/ls-hlinkvalue.js +1 -1
  667. package/server/modules/lists/ls-hmcn.js +1 -2
  668. package/server/modules/lists/ls-hspbts.js +1 -3
  669. package/server/modules/lists/ls-introducebonus.js +1 -4
  670. package/server/modules/lists/ls-introducecode.js +1 -10
  671. package/server/modules/lists/ls-introducer.js +1 -20
  672. package/server/modules/lists/ls-kbm-bcdkt.js +1 -1
  673. package/server/modules/lists/ls-kbm-bcqt.js +1 -5
  674. package/server/modules/lists/ls-kbm-kqhdkd.js +1 -1
  675. package/server/modules/lists/ls-kbm-lcttgt.js +1 -1
  676. package/server/modules/lists/ls-kbm-lctttt.js +1 -1
  677. package/server/modules/lists/ls-kbm-pttct.js +1 -3
  678. package/server/modules/lists/ls-kbm-tkgtgt.js +1 -3
  679. package/server/modules/lists/ls-kbm-tmbctc.js +1 -3
  680. package/server/modules/lists/ls-kehoachdtcp.js +1 -4
  681. package/server/modules/lists/ls-keyresult.js +1 -7
  682. package/server/modules/lists/ls-khunghangthanhvien.js +1 -1
  683. package/server/modules/lists/ls-kygui.js +1 -19
  684. package/server/modules/lists/ls-label.js +1 -1
  685. package/server/modules/lists/ls-lienhe.js +1 -4
  686. package/server/modules/lists/ls-like-module.js +1 -1
  687. package/server/modules/lists/ls-link.js +1 -1
  688. package/server/modules/lists/ls-loaidiem.js +1 -1
  689. package/server/modules/lists/ls-lock.js +1 -1
  690. package/server/modules/lists/ls-log.js +1 -3
  691. package/server/modules/lists/ls-mailaccount.js +1 -5
  692. package/server/modules/lists/ls-mailreceived.js +1 -5
  693. package/server/modules/lists/ls-mailschedule.js +1 -7
  694. package/server/modules/lists/ls-mailsent.js +1 -4
  695. package/server/modules/lists/ls-mailtemplate.js +1 -4
  696. package/server/modules/lists/ls-maudanhgia.js +1 -3
  697. package/server/modules/lists/ls-message2.js +1 -8
  698. package/server/modules/lists/ls-message2setting.js +1 -5
  699. package/server/modules/lists/ls-news.js +1 -7
  700. package/server/modules/lists/ls-newsfeed.js +1 -4
  701. package/server/modules/lists/ls-note.js +1 -6
  702. package/server/modules/lists/ls-okr.js +1 -5
  703. package/server/modules/lists/ls-okrdiagram.js +1 -1
  704. package/server/modules/lists/ls-opportunity.js +1 -5
  705. package/server/modules/lists/ls-options.js +1 -4
  706. package/server/modules/lists/ls-parameter.js +1 -3
  707. package/server/modules/lists/ls-participant.js +1 -10
  708. package/server/modules/lists/ls-phieudanhgia.js +1 -7
  709. package/server/modules/lists/ls-phucap.js +1 -2
  710. package/server/modules/lists/ls-profile.js +1 -1
  711. package/server/modules/lists/ls-ptthanhtoan.js +1 -3
  712. package/server/modules/lists/ls-qts-dieuchinh.js +1 -2
  713. package/server/modules/lists/ls-qts-dieuchuyen.js +1 -8
  714. package/server/modules/lists/ls-reason.js +1 -1
  715. package/server/modules/lists/ls-rpt.js +1 -5
  716. package/server/modules/lists/ls-rptform.js +1 -4
  717. package/server/modules/lists/ls-service.js +1 -3
  718. package/server/modules/lists/ls-shortcut.js +1 -1
  719. package/server/modules/lists/ls-smsaccount.js +1 -1
  720. package/server/modules/lists/ls-smssend.js +1 -3
  721. package/server/modules/lists/ls-sosanxuat.js +1 -4
  722. package/server/modules/lists/ls-step.js +1 -1
  723. package/server/modules/lists/ls-strategicdiagram.js +1 -1
  724. package/server/modules/lists/ls-strategicgoal.js +1 -3
  725. package/server/modules/lists/ls-strategickpi.js +1 -7
  726. package/server/modules/lists/ls-strategicobjective.js +1 -3
  727. package/server/modules/lists/ls-strategicplan.js +1 -6
  728. package/server/modules/lists/ls-support.js +1 -3
  729. package/server/modules/lists/ls-task.js +1 -34
  730. package/server/modules/lists/ls-taskreg.js +1 -2
  731. package/server/modules/lists/ls-tc.js +1 -1
  732. package/server/modules/lists/ls-templaterpt.js +1 -5
  733. package/server/modules/lists/ls-templatevoucher.js +1 -1
  734. package/server/modules/lists/ls-tontucthoi.js +1 -3
  735. package/server/modules/lists/ls-trangthaiapp.js +1 -3
  736. package/server/modules/lists/ls-transaction.js +1 -4
  737. package/server/modules/lists/ls-usergroup.js +1 -7
  738. package/server/modules/lists/ls-vat.js +1 -1
  739. package/server/modules/lists/ls-vatra.js +1 -5
  740. package/server/modules/lists/ls-vatvao.js +1 -6
  741. package/server/modules/lists/ls-waitevent.js +1 -1
  742. package/server/modules/lists/ls-warranty.js +1 -4
  743. package/server/modules/lists/ls_hanmucton.js +1 -3
  744. package/server/modules/lists/ls_hspb.js +1 -4
  745. package/server/modules/lists/ls_spdd_ck.js +1 -3
  746. package/server/modules/lists/ls_spdd_dk.js +1 -3
  747. package/server/modules/lists/ls_ytdd_ck.js +1 -4
  748. package/server/modules/lists/ls_ytdd_dk.js +1 -4
  749. package/server/modules/lists/sys-attend.js +1 -4
  750. package/server/modules/lists/sys-follow.js +1 -4
  751. package/server/modules/lists/sys-right.js +1 -2
  752. package/server/modules/public/app.js +1 -4
  753. package/server/modules/public/approve.js +1 -37
  754. package/server/modules/public/callin.js +1 -7
  755. package/server/modules/public/comment.js +1 -5
  756. package/server/modules/public/dmnvt.js +1 -4
  757. package/server/modules/public/dmvt.js +1 -9
  758. package/server/modules/public/file.js +1 -11
  759. package/server/modules/public/form.js +1 -7
  760. package/server/modules/public/forminfo.js +1 -1
  761. package/server/modules/public/group.js +1 -4
  762. package/server/modules/public/hlink.js +1 -3
  763. package/server/modules/public/introducecode.js +1 -1
  764. package/server/modules/public/listinfo.js +1 -1
  765. package/server/modules/public/media-webhook.js +1 -1
  766. package/server/modules/public/partner.js +1 -1
  767. package/server/modules/public/paymentCallback.js +1 -32
  768. package/server/modules/public/province.js +1 -1
  769. package/server/modules/public/ptthanhtoan.js +1 -4
  770. package/server/modules/public/subscribe.js +1 -30
  771. package/server/modules/public/support.js +1 -3
  772. package/server/modules/public/tableinfo.js +1 -1
  773. package/server/modules/public/trialinfo.js +1 -4
  774. package/server/modules/public/versioninfo.js +1 -1
  775. package/server/modules/reports/calc-tinhgiatb.js +1 -6
  776. package/server/modules/reports/calc-tinhgiathanh.js +1 -6
  777. package/server/modules/reports/calc-tinhkhauhaots.js +1 -3
  778. package/server/modules/reports/calc-tinhluong.js +1 -37
  779. package/server/modules/reports/rp-analyzedata.js +1 -6
  780. package/server/modules/reports/rp-assbonus.js +1 -4
  781. package/server/modules/reports/rp-assinterest.js +1 -8
  782. package/server/modules/reports/rp-assproductowners.js +1 -3
  783. package/server/modules/reports/rp-asssupply.js +1 -1
  784. package/server/modules/reports/rp-asstransferlog.js +1 -10
  785. package/server/modules/reports/rp-banggiatb.js +1 -3
  786. package/server/modules/reports/rp-bangtinhkhauhao.js +1 -6
  787. package/server/modules/reports/rp-baocaokhachhang.js +1 -6
  788. package/server/modules/reports/rp-bcdkt.js +1 -11
  789. package/server/modules/reports/rp-bcintroducebonus.js +1 -4
  790. package/server/modules/reports/rp-bckhtiemnang.js +1 -3
  791. package/server/modules/reports/rp-bcqt.js +1 -85
  792. package/server/modules/reports/rp-bkct.js +1 -13
  793. package/server/modules/reports/rp-bkshipbook.js +1 -8
  794. package/server/modules/reports/rp-bkvanchuyen.js +1 -8
  795. package/server/modules/reports/rp-bkvatra.js +1 -7
  796. package/server/modules/reports/rp-bkvatvao.js +1 -7
  797. package/server/modules/reports/rp-capnhatsocaitc.js +1 -4
  798. package/server/modules/reports/rp-cdpsdiem.js +1 -4
  799. package/server/modules/reports/rp-cdpsdt.js +1 -5
  800. package/server/modules/reports/rp-cdpskh.js +1 -7
  801. package/server/modules/reports/rp-cdpsnphep.js +1 -3
  802. package/server/modules/reports/rp-cdpstk.js +1 -4
  803. package/server/modules/reports/rp-chitietchitientheohoadon.js +1 -12
  804. package/server/modules/reports/rp-chitiettaisan.js +1 -13
  805. package/server/modules/reports/rp-chitietthutientheohoadon.js +1 -13
  806. package/server/modules/reports/rp-ckcn.js +1 -3
  807. package/server/modules/reports/rp-ckdiem.js +1 -2
  808. package/server/modules/reports/rp-cktk.js +1 -3
  809. package/server/modules/reports/rp-ckvt.js +1 -10
  810. package/server/modules/reports/rp-ckvttheokho.js +1 -4
  811. package/server/modules/reports/rp-ckvttheotg.js +1 -4
  812. package/server/modules/reports/rp-ckvttt.js +1 -3
  813. package/server/modules/reports/rp-congnophaithutheotuoino.js +1 -3
  814. package/server/modules/reports/rp-congnophaitratheotuoino.js +1 -3
  815. package/server/modules/reports/rp-congnosapthu.js +1 -4
  816. package/server/modules/reports/rp-congnosaptra.js +1 -4
  817. package/server/modules/reports/rp-congviectheobp.js +1 -9
  818. package/server/modules/reports/rp-congviectheodt.js +1 -8
  819. package/server/modules/reports/rp-congviectheokh.js +1 -8
  820. package/server/modules/reports/rp-congviectheonv.js +1 -9
  821. package/server/modules/reports/rp-congviectheotimeline.js +1 -6
  822. package/server/modules/reports/rp-ctbanle.js +1 -15
  823. package/server/modules/reports/rp-ctbanle2.js +1 -20
  824. package/server/modules/reports/rp-ctbanlectv.js +1 -20
  825. package/server/modules/reports/rp-ctbanlenpp.js +1 -24
  826. package/server/modules/reports/rp-ctdanhgianhanvien.js +1 -8
  827. package/server/modules/reports/rp-cthangbanbitralai.js +1 -4
  828. package/server/modules/reports/rp-ctmuahang.js +1 -7
  829. package/server/modules/reports/rp-cttralaihang.js +1 -4
  830. package/server/modules/reports/rp-databanle.js +1 -10
  831. package/server/modules/reports/rp-diemthuong.js +1 -2
  832. package/server/modules/reports/rp-dkcn.js +1 -3
  833. package/server/modules/reports/rp-dktk.js +1 -2
  834. package/server/modules/reports/rp-dsnhanviencm.js +1 -9
  835. package/server/modules/reports/rp-dsnhanvientb.js +1 -9
  836. package/server/modules/reports/rp-dtbanlekempk.js +1 -9
  837. package/server/modules/reports/rp-dtbanletheoct.js +1 -23
  838. package/server/modules/reports/rp-dtbanletheoctkempk.js +1 -25
  839. package/server/modules/reports/rp-dtbanletheokh.js +1 -20
  840. package/server/modules/reports/rp-dtbanletheokhnpp.js +1 -19
  841. package/server/modules/reports/rp-dtbanletheokho.js +1 -18
  842. package/server/modules/reports/rp-dtbanletheonam.js +1 -3
  843. package/server/modules/reports/rp-dtbanletheongay.js +1 -1
  844. package/server/modules/reports/rp-dtbanletheonpp.js +1 -23
  845. package/server/modules/reports/rp-dtbanletheonv.js +1 -19
  846. package/server/modules/reports/rp-dtbanletheoquy.js +1 -3
  847. package/server/modules/reports/rp-dtbanletheosp.js +1 -8
  848. package/server/modules/reports/rp-dtbanletheospnpp.js +1 -6
  849. package/server/modules/reports/rp-dtbanletheothang.js +1 -3
  850. package/server/modules/reports/rp-dtbanletheothungan.js +1 -12
  851. package/server/modules/reports/rp-dtbanletheovt.js +1 -2
  852. package/server/modules/reports/rp-dtbanletheovtnpp.js +1 -2
  853. package/server/modules/reports/rp-dutoanthuchitheodt.js +1 -4
  854. package/server/modules/reports/rp-getPXC2PNC.js +1 -8
  855. package/server/modules/reports/rp-getariseofaccountsbymonth.js +1 -4
  856. package/server/modules/reports/rp-getbtpb.js +1 -6
  857. package/server/modules/reports/rp-getcashbycashier.js +1 -7
  858. package/server/modules/reports/rp-getcschietkhau.js +1 -5
  859. package/server/modules/reports/rp-getdinhmuc4lenhcp.js +1 -7
  860. package/server/modules/reports/rp-getdinhmuc4pxk.js +1 -9
  861. package/server/modules/reports/rp-getdk4pht.js +1 -8
  862. package/server/modules/reports/rp-getdk4pkc.js +1 -9
  863. package/server/modules/reports/rp-getdttheoca.js +1 -5
  864. package/server/modules/reports/rp-getinvoice2pay.js +1 -4
  865. package/server/modules/reports/rp-getinvoice2receive.js +1 -4
  866. package/server/modules/reports/rp-getinvoice2return.js +1 -5
  867. package/server/modules/reports/rp-getinvoice2return_bl.js +1 -6
  868. package/server/modules/reports/rp-getkehoachmh4lenhcp.js +1 -4
  869. package/server/modules/reports/rp-getkhauhao.js +1 -7
  870. package/server/modules/reports/rp-getluong.js +1 -8
  871. package/server/modules/reports/rp-getluongchuyen.js +1 -5
  872. package/server/modules/reports/rp-getpn2fee.js +1 -5
  873. package/server/modules/reports/rp-getpn2return.js +1 -5
  874. package/server/modules/reports/rp-getthanhpham4pnk.js +1 -7
  875. package/server/modules/reports/rp-getvc2xhd.js +1 -11
  876. package/server/modules/reports/rp-gt_cpnvltt.js +1 -6
  877. package/server/modules/reports/rp-hangbanbitralai.js +1 -5
  878. package/server/modules/reports/rp-hangthanhvien.js +1 -3
  879. package/server/modules/reports/rp-hoadonbanhangtheohantt.js +1 -5
  880. package/server/modules/reports/rp-hoadonmuahangtheohantt.js +1 -5
  881. package/server/modules/reports/rp-hoahong.js +1 -15
  882. package/server/modules/reports/rp-kcsns.js +1 -19
  883. package/server/modules/reports/rp-kgchamcong.js +1 -7
  884. package/server/modules/reports/rp-khoaso.js +1 -12
  885. package/server/modules/reports/rp-kiemtrasocaitcvssocai.js +1 -6
  886. package/server/modules/reports/rp-kqdanhgianhanvien.js +1 -5
  887. package/server/modules/reports/rp-kqhdkd.js +1 -7
  888. package/server/modules/reports/rp-lcttgt.js +1 -17
  889. package/server/modules/reports/rp-lctttt.js +1 -11
  890. package/server/modules/reports/rp-linkslist.js +1 -4
  891. package/server/modules/reports/rp-phanbochitienchohoadon.js +1 -11
  892. package/server/modules/reports/rp-phanbothutienchohoadon.js +1 -10
  893. package/server/modules/reports/rp-ptbitralai.js +1 -7
  894. package/server/modules/reports/rp-ptcttct.js +1 -22
  895. package/server/modules/reports/rp-ptdonhang.js +1 -8
  896. package/server/modules/reports/rp-pttct.js +1 -49
  897. package/server/modules/reports/rp-pttctkho.js +1 -32
  898. package/server/modules/reports/rp-pttctkho2.js +1 -29
  899. package/server/modules/reports/rp-referredusers.js +1 -1
  900. package/server/modules/reports/rp-sctbhxh.js +1 -4
  901. package/server/modules/reports/rp-sctcnkh.js +1 -17
  902. package/server/modules/reports/rp-sctdiem.js +1 -3
  903. package/server/modules/reports/rp-sctdt.js +1 -7
  904. package/server/modules/reports/rp-sctdtcp.js +1 -11
  905. package/server/modules/reports/rp-sctluong.js +1 -4
  906. package/server/modules/reports/rp-sctthuetncn.js +1 -4
  907. package/server/modules/reports/rp-scttk.js +1 -7
  908. package/server/modules/reports/rp-sctvt.js +1 -5
  909. package/server/modules/reports/rp-sctvt_sl.js +1 -5
  910. package/server/modules/reports/rp-sctvtnpp.js +1 -6
  911. package/server/modules/reports/rp-sctvttt.js +1 -5
  912. package/server/modules/reports/rp-search.js +1 -4
  913. package/server/modules/reports/rp-socai.js +1 -6
  914. package/server/modules/reports/rp-socaitk.js +1 -7
  915. package/server/modules/reports/rp-sochut.js +1 -7
  916. package/server/modules/reports/rp-sokho.js +1 -7
  917. package/server/modules/reports/rp-sokhott.js +1 -5
  918. package/server/modules/reports/rp-sonkbh.js +1 -5
  919. package/server/modules/reports/rp-sonkc.js +1 -6
  920. package/server/modules/reports/rp-sonkct.js +1 -5
  921. package/server/modules/reports/rp-sonkmh.js +1 -5
  922. package/server/modules/reports/rp-sonktt.js +1 -5
  923. package/server/modules/reports/rp-soquy.js +1 -11
  924. package/server/modules/reports/rp-sosanhkhvatt.js +1 -13
  925. package/server/modules/reports/rp-sosanhkhvatt2.js +1 -6
  926. package/server/modules/reports/rp-sotaisan.js +1 -13
  927. package/server/modules/reports/rp-sotiengui.js +1 -7
  928. package/server/modules/reports/rp-taodinhmuctudkhoc.js +1 -5
  929. package/server/modules/reports/rp-thbanhangkempk.js +1 -28
  930. package/server/modules/reports/rp-thdanhgianhanvien.js +1 -9
  931. package/server/modules/reports/rp-thgt.js +1 -6
  932. package/server/modules/reports/rp-thnxt.js +1 -12
  933. package/server/modules/reports/rp-thnxt_sl.js +1 -9
  934. package/server/modules/reports/rp-thnxtnpp.js +1 -10
  935. package/server/modules/reports/rp-thnxttt.js +1 -9
  936. package/server/modules/reports/rp-tkbanhangtheogioithieu.js +1 -9
  937. package/server/modules/reports/rp-tkgioithieukh.js +1 -4
  938. package/server/modules/reports/rp-tkgtgt.js +1 -7
  939. package/server/modules/reports/rp-tmbctc.js +1 -20
  940. package/server/modules/reports/rp-tonghopbanhang.js +1 -6
  941. package/server/modules/reports/rp-tonghopmuahang.js +1 -5
  942. package/server/modules/reports/rp-tonghoptralaihang.js +1 -5
  943. package/server/modules/reports/rp-tongquanbanle.js +1 -20
  944. package/server/modules/reports/rp-tongquanbds.js +1 -3
  945. package/server/modules/reports/rp-tongquancongty.js +1 -6
  946. package/server/modules/reports/rp-tongquanctvnpp.js +1 -12
  947. package/server/modules/reports/rp-tongquannvbh.js +1 -14
  948. package/server/modules/reports/rp-tongquannvnpp.js +1 -5
  949. package/server/modules/reports/rp-uoctinhnvl.js +1 -11
  950. package/server/modules/reports/rp-wallet.js +1 -3
  951. package/server/modules/reports/rpt-tkdiemtichluy.js +1 -9
  952. package/server/modules/systems/sys-app.js +1 -30
  953. package/server/modules/systems/sys-colleague.js +1 -11
  954. package/server/modules/systems/sys-domain.js +1 -4
  955. package/server/modules/systems/sys-ecomproductlines.js +1 -1
  956. package/server/modules/systems/sys-exportexceltemplate.js +1 -4
  957. package/server/modules/systems/sys-fieldright.js +1 -3
  958. package/server/modules/systems/sys-importexceltemplate.js +1 -4
  959. package/server/modules/systems/sys-labelinfo.js +1 -4
  960. package/server/modules/systems/sys-listinfo.js +1 -10
  961. package/server/modules/systems/sys-menuinfo.js +1 -4
  962. package/server/modules/systems/sys-message.js +1 -14
  963. package/server/modules/systems/sys-moduleinfo.js +1 -4
  964. package/server/modules/systems/sys-notification.js +1 -8
  965. package/server/modules/systems/sys-quanhuyen.js +1 -4
  966. package/server/modules/systems/sys-reportinfo.js +1 -4
  967. package/server/modules/systems/sys-rptobject.js +1 -3
  968. package/server/modules/systems/sys-schedule.js +1 -11
  969. package/server/modules/systems/sys-sysconfig.js +1 -3
  970. package/server/modules/systems/sys-sysgroup.js +1 -3
  971. package/server/modules/systems/sys-tableinfo.js +1 -3
  972. package/server/modules/systems/sys-templatestore.js +1 -5
  973. package/server/modules/systems/sys-tinhthanh.js +1 -4
  974. package/server/modules/systems/sys-token.js +1 -3
  975. package/server/modules/systems/sys-trangthai.js +1 -4
  976. package/server/modules/systems/sys-trialinfo.js +1 -3
  977. package/server/modules/systems/sys-user.js +1 -45
  978. package/server/modules/systems/sys-users.js +1 -10
  979. package/server/modules/systems/sys-versioninfo.js +1 -3
  980. package/server/modules/systems/sys-vietqrbanks.js +1 -4
  981. package/server/modules/systems/sys-xaphuong.js +1 -4
  982. package/server/modules/vouchers/vo-banggiaban.js +1 -5
  983. package/server/modules/vouchers/vo-bc1.js +1 -33
  984. package/server/modules/vouchers/vo-bc5.js +1 -15
  985. package/server/modules/vouchers/vo-bg1.js +1 -10
  986. package/server/modules/vouchers/vo-bg2.js +1 -12
  987. package/server/modules/vouchers/vo-bn1.js +1 -35
  988. package/server/modules/vouchers/vo-bn5.js +1 -15
  989. package/server/modules/vouchers/vo-dh2.js +1 -35
  990. package/server/modules/vouchers/vo-dinhmucsx.js +1 -6
  991. package/server/modules/vouchers/vo-dkb.js +1 -21
  992. package/server/modules/vouchers/vo-dn0.js +1 -9
  993. package/server/modules/vouchers/vo-dnm.js +1 -21
  994. package/server/modules/vouchers/vo-hd1.js +1 -36
  995. package/server/modules/vouchers/vo-hd2.js +1 -107
  996. package/server/modules/vouchers/vo-hd3.js +1 -44
  997. package/server/modules/vouchers/vo-hd4.js +1 -13
  998. package/server/modules/vouchers/vo-hd7.js +1 -29
  999. package/server/modules/vouchers/vo-hd8.js +1 -29
  1000. package/server/modules/vouchers/vo-hde.js +1 -40
  1001. package/server/modules/vouchers/vo-htl.js +1 -11
  1002. package/server/modules/vouchers/vo-kbbtpb.js +1 -6
  1003. package/server/modules/vouchers/vo-kehoachmh.js +1 -13
  1004. package/server/modules/vouchers/vo-lenhcapphat.js +1 -10
  1005. package/server/modules/vouchers/vo-lenhsx.js +1 -12
  1006. package/server/modules/vouchers/vo-pbl.js +1 -93
  1007. package/server/modules/vouchers/vo-pc0.js +1 -14
  1008. package/server/modules/vouchers/vo-pc1.js +1 -31
  1009. package/server/modules/vouchers/vo-pc2.js +1 -24
  1010. package/server/modules/vouchers/vo-pc3.js +1 -14
  1011. package/server/modules/vouchers/vo-pc5.js +1 -15
  1012. package/server/modules/vouchers/vo-pc6.js +1 -19
  1013. package/server/modules/vouchers/vo-pcl.js +1 -7
  1014. package/server/modules/vouchers/vo-pdn.js +1 -11
  1015. package/server/modules/vouchers/vo-pdx.js +1 -9
  1016. package/server/modules/vouchers/vo-pgh.js +1 -19
  1017. package/server/modules/vouchers/vo-pht.js +1 -7
  1018. package/server/modules/vouchers/vo-pkc.js +1 -7
  1019. package/server/modules/vouchers/vo-pkh.js +1 -10
  1020. package/server/modules/vouchers/vo-pkk.js +1 -12
  1021. package/server/modules/vouchers/vo-pkt.js +1 -13
  1022. package/server/modules/vouchers/vo-pn1.js +1 -33
  1023. package/server/modules/vouchers/vo-pn2.js +1 -16
  1024. package/server/modules/vouchers/vo-pn3.js +1 -18
  1025. package/server/modules/vouchers/vo-pn5.js +1 -19
  1026. package/server/modules/vouchers/vo-pn6.js +1 -18
  1027. package/server/modules/vouchers/vo-pn9.js +1 -22
  1028. package/server/modules/vouchers/vo-pnc.js +1 -20
  1029. package/server/modules/vouchers/vo-pnh.js +1 -20
  1030. package/server/modules/vouchers/vo-pnk.js +1 -14
  1031. package/server/modules/vouchers/vo-pnknpp.js +1 -12
  1032. package/server/modules/vouchers/vo-po1.js +1 -15
  1033. package/server/modules/vouchers/vo-ppb.js +1 -8
  1034. package/server/modules/vouchers/vo-pt1.js +1 -21
  1035. package/server/modules/vouchers/vo-pt5.js +1 -15
  1036. package/server/modules/vouchers/vo-ptl.js +1 -8
  1037. package/server/modules/vouchers/vo-purchase_contract.js +1 -9
  1038. package/server/modules/vouchers/vo-pxc.js +1 -22
  1039. package/server/modules/vouchers/vo-pxh.js +1 -28
  1040. package/server/modules/vouchers/vo-pxk.js +1 -15
  1041. package/server/modules/vouchers/vo-pxknpp.js +1 -14
  1042. package/server/modules/vouchers/vo-qts.js +1 -12
  1043. package/server/modules/vouchers/vo-sale_contract.js +1 -11
  1044. package/server/modules/vouchers/vo-shipbook.js +1 -17
  1045. package/server/modules/vouchers/vo-so1.js +1 -126
  1046. package/server/modules/vouchers/vo-so2.js +1 -37
  1047. package/server/modules/vouchers/vo-so3.js +1 -41
  1048. package/server/modules/vouchers/vo-so5.js +1 -57
  1049. package/server/modules/vouchers/vo-so7.js +1 -97
  1050. package/server/modules/vouchers/vo-so9.js +1 -119
  1051. package/server/modules/vouchers/vo-vanchuyen.js +1 -14
  1052. package/server/modules/vouchers/vo-xhd.js +1 -33
  1053. package/server/route.js +1 -51
  1054. package/server/services/invoiceFetcher.js +1 -15
  1055. package/server/sslConfig.js +1 -2
  1056. package/server/transactionMiddleware.js +1 -5
  1057. package/server/workers/backupApp.js +1 -9
  1058. package/server/workers/calcGrid.js +1 -9
  1059. package/server/workers/customerOnImport.js +1 -8
  1060. package/server/workers/dmvtOnImport.js +1 -9
  1061. package/server/workers/excelParser.js +1 -9
  1062. package/server/workers/inputWorker.js +1 -6
  1063. package/server/workers/pushNotify.js +1 -10
  1064. package/server/workers/reportWorker.js +1 -7
  1065. package/server/workers/restoreApp.js +1 -23
  1066. package/server/workers/runScript.js +1 -4
  1067. package/server/workers/sendEmail.js +1 -13
  1068. package/server/workers/webhook.js +1 -5
@@ -1,49 +1 @@
1
- const cktk=require("../../libs/cktk"),dktk=require("../../libs/dktk"),kbmpttct=global.getModel("kbmPttct"),rptform=global.getModel("rptform"),async=require("async"),_=require("lodash"),utils=require("../../libs/utils"),controller=require("../../controllers/controllerRPT"),moment=require("moment"),numeral=require("numeral"),getRegString=function($arrayTk$$){return $arrayTk$$.reg()},{getCodeChildren}=require("../../libs/utils");
2
- module.exports=function($router$$){new controller($router$$,"pttct",async function($req$$,$callback$$){let $query$$=$req$$.query;if(!$query$$.den_ngay||!$query$$.tu_ngay||!$query$$.id_rptform)return $callback$$("B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u tham s\u1ed1 t\u1eeb ng\u00e0y(tu_ngay), \u0111\u1ebfn ng\u00e0y(den_ngay), id m\u1eabu b\u00e1o c\u00e1o");if(!global.mongoose.Types.ObjectId.isValid($query$$.id_rptform))return $callback$$("M\u1eabu b\u00e1o c\u00e1o n\u00e0y kh\u00f4ng c\u00f3 gi\u00e1 tr\u1ecb");
3
- if($query$$.ma_bp){var $bps_dts_phis$$=await getCodeChildren(global.getModel("dmbp"),$query$$.id_app,$query$$.ma_bp,"ma_bp","ma_bp_me");$query$$.ma_bp={$in:$bps_dts_phis$$}}$query$$.ma_phi&&($bps_dts_phis$$=await getCodeChildren(global.getModel("dmphi"),$query$$.id_app,$query$$.ma_phi,"ma_phi","ma_phi_me"),$query$$.ma_phi={$in:$bps_dts_phis$$});$query$$.ma_dt&&($bps_dts_phis$$=await getCodeChildren(global.getModel("dmdt"),$query$$.id_app,$query$$.ma_dt,"ma_dt","ma_dt_me"),$query$$.ma_dt={$in:$bps_dts_phis$$});
4
- (new Promise(($resolve$$,$reject$$)=>{rptform.findOne({_id:$query$$.id_rptform,id_app:$query$$.id_app}).lean().exec(($e$$,$rs$$)=>{if($e$$||!$rs$$)return $reject$$($e$$);$resolve$$($rs$$)})})).then(async $_rptform$$=>{$query$$.tu_ngay=moment(new Date($query$$.tu_ngay)).startOf("date").toDate();$query$$.den_ngay=moment(new Date($query$$.den_ngay)).endOf("date").toDate();let $report$$=$_rptform$$.report;$report$$&&$_rptform$$.report.length!==0||($report$$=await kbmpttct.find({id_rptform:$_rptform$$._id.toString(),
5
- id_app:$query$$.id_app}).sort({stt:1}).lean());let $kys$$=[];switch($query$$.loai_ky){case "ngay":for(var $tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($query$$.tu_ngay).startOf("date").toDate();$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getTime()<$query$$.den_ngay.getTime();){var $den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).endOf("date").toDate();
6
- $den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$.getTime()>$query$$.den_ngay.getTime()&&($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=$query$$.den_ngay);$kys$$.push({field:`so_${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getDate()}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+1}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,header:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getDate()}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+
7
- 1}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,datatype:"Number",ma_ky:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getDate()}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+1}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,ten_ky:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getDate()}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+
8
- 1}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,tu_ngay:$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$,den_ngay:$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$});$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$).add(1,"days").startOf("date").toDate()}$kys$$.push({ma_ky:"tong_cong",ten_ky:"T\u1ed5ng c\u1ed9ng",
9
- datatype:"Number",tu_ngay:moment($query$$.tu_ngay).startOf("date").toDate(),den_ngay:moment($query$$.den_ngay).endOf("date").toDate()});break;case "tuan":for($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($query$$.tu_ngay).startOf("date").toDate();$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getTime()<$query$$.den_ngay.getTime();)$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).endOf("week").toDate(),
10
- $den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$.getTime()>$query$$.den_ngay.getTime()&&($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=$query$$.den_ngay),$kys$$.push({field:`so_${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("weeks")}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,header:`Tu\u1ea7n ${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("weeks")}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,
11
- ma_ky:`${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("weeks")}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,ten_ky:`Tu\u1ea7n ${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("weeks")}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,tu_ngay:$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$,den_ngay:$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$}),
12
- $tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$).add(1,"days").startOf("date").toDate();$kys$$.push({ma_ky:"tong_cong",ten_ky:"T\u1ed5ng c\u1ed9ng",datatype:"Number",tu_ngay:moment($query$$.tu_ngay).startOf("date").toDate(),den_ngay:moment($query$$.den_ngay).endOf("date").toDate()});break;case "thang":for($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($query$$.tu_ngay).startOf("date").toDate();$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getTime()<
13
- $query$$.den_ngay.getTime();)$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).endOf("month").toDate(),$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$.getTime()>$query$$.den_ngay.getTime()&&($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=$query$$.den_ngay),$kys$$.push({field:`so_${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+
14
- 1}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,header:`Th\u00e1ng ${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+1}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,datatype:"Number",ma_ky:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+1}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,ten_ky:`Th\u00e1ng ${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+
15
- 1}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,tu_ngay:$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$,den_ngay:$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$}),$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$).add(1,"days").startOf("date").toDate();$kys$$.push({ma_ky:"tong_cong",ten_ky:"T\u1ed5ng c\u1ed9ng",
16
- datatype:"Number",tu_ngay:moment($query$$.tu_ngay).startOf("date").toDate(),den_ngay:moment($query$$.den_ngay).endOf("date").toDate()});break;case "quy":for($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($query$$.tu_ngay).startOf("date").toDate();$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getTime()<$query$$.den_ngay.getTime();)$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).endOf("quarters").toDate(),
17
- $den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$.getTime()>$query$$.den_ngay.getTime()&&($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=$query$$.den_ngay),$kys$$.push({field:`so_${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("quarters")}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,header:`${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("quarters")}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,
18
- datatype:"Number",ma_ky:`${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("quarters")}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,ten_ky:`${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("quarters")}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,tu_ngay:$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$,den_ngay:$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$}),
19
- $tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$).add(1,"days").startOf("date").toDate();$kys$$.push({ma_ky:"tong_cong",ten_ky:"T\u1ed5ng c\u1ed9ng",datatype:"Number",tu_ngay:moment($query$$.tu_ngay).startOf("date").toDate(),den_ngay:moment($query$$.den_ngay).endOf("date").toDate()});break;case "nam":for($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($query$$.tu_ngay).startOf("date").toDate();$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getTime()<
20
- $query$$.den_ngay.getTime();)$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).endOf("year").toDate(),$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$.getTime()>$query$$.den_ngay.getTime()&&($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=$query$$.den_ngay),$kys$$.push({field:`so_${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,
21
- header:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,ma_ky:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,ten_ky:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,tu_ngay:$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$,den_ngay:$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$}),$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=
22
- moment($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$).add(1,"days").startOf("date").toDate();$kys$$.push({ma_ky:"tong_cong",ten_ky:"T\u1ed5ng c\u1ed9ng",datatype:"Number",tu_ngay:moment($query$$.tu_ngay).startOf("date").toDate(),den_ngay:moment($query$$.den_ngay).endOf("date").toDate()});break;case "kn":$kys$$=[{field:"so_kn",header:"Gi\u00e1 tr\u1ecb",datatype:"Number",ma_ky:"kn",ten_ky:"Gi\u00e1 tr\u1ecb",tu_ngay:$query$$.tu_ngay,den_ngay:$query$$.den_ngay}];break;default:$query$$.tu_ngay_kt=
23
- new Date($query$$.tu_ngay),$query$$.tu_ngay_kt.setYear($query$$.tu_ngay_kt.getFullYear()-1),$query$$.den_ngay_kt=new Date($query$$.den_ngay),$query$$.den_ngay_kt.setYear($query$$.den_ngay_kt.getFullYear()-1),$kys$$=[{field:"so_kt",header:"K\u1ef3 tr\u01b0\u1edbc",datatype:"Number",ma_ky:"kt",ten_ky:"K\u1ef3 tr\u01b0\u1edbc",tu_ngay:$query$$.tu_ngay_kt,den_ngay:$query$$.den_ngay_kt},{field:"so_kn",header:"K\u1ef3 n\u00e0y",datatype:"Number",ma_ky:"kn",ten_ky:"K\u1ef3 n\u00e0y",tu_ngay:$query$$.tu_ngay,
24
- den_ngay:$query$$.den_ngay}]}async.map($report$$,($r$$,$c1$$)=>{setImmediate(()=>{switch($r$$.cach_tinh){case "9":$r$$.cong_thuc="";utils.getInfoFromQuery($query$$,$r$$.query,($e$$,$rs$$)=>{if($e$$)return $c1$$();_.isNumber($rs$$)?($r$$.so_kn=$rs$$,$r$$.so_kn_nt=$rs$$,$r$$.so_kt=$rs$$,$r$$.so_kt_nt=$rs$$):$r$$.value_string=$rs$$;$c1$$()});break;case "2":$r$$.cong_thuc="";async.map($kys$$,($ky$$,$callback$$)=>{setImmediate(async()=>{let $condition$$={ngay_ct:{$gte:$ky$$.tu_ngay,$lte:$ky$$.den_ngay},
25
- id_app:$query$$.id_app};$query$$.ma_dvcs&&($condition$$.ma_dvcs=$query$$.ma_dvcs);$query$$.ma_bp&&($condition$$.ma_bp=$query$$.ma_bp);$query$$.ma_hd&&($condition$$.ma_hd=$query$$.ma_hd);$query$$.ma_dt&&($condition$$.ma_dt=$query$$.ma_dt);$query$$.ma_sp&&($condition$$.ma_sp=$query$$.ma_sp);$query$$.ma_nv&&($condition$$.ma_nv=$query$$.ma_nv);$r$$.ma_phi&&($condition$$.ma_phi={$in:await getCodeChildren(global.getModel("dmphi"),$query$$.id_app,$r$$.ma_phi,"ma_phi","ma_phi_me")});var $tk_co_tk_no$$=getRegString($r$$.tk_no);
26
- $tk_co_tk_no$$&&($condition$$.tk_no=$r$$.giam_tru_no?{$not:new RegExp($tk_co_tk_no$$)}:{$regex:$tk_co_tk_no$$,$options:"i"});if($tk_co_tk_no$$=getRegString($r$$.tk_co))$condition$$.tk_co=$r$$.giam_tru_co&&$tk_co_tk_no$$?{$not:new RegExp($tk_co_tk_no$$)}:{$regex:$tk_co_tk_no$$,$options:"i"};if($r$$.dieu_kien_khac)try{$r$$.dieu_kien_khac.indexOf("{")<0&&($r$$.dieu_kien_khac="{"+$r$$.dieu_kien_khac+"}");var $socai_str_func$$=$r$$.dieu_kien_khac;$socai_str_func$$.indexOf("return ")<0&&($socai_str_func$$=
27
- `return ${$socai_str_func$$}`);let $dieu_kien_khac$$=utils.evalute($socai_str_func$$,{moment,condition:$condition$$,row:$r$$});$condition$$={...$condition$$,...$dieu_kien_khac$$}}catch($e$$){return $callback$$($e$$.toString())}$r$$.ma_kho?($condition$$.ma_kho=$r$$.ma_kho,$socai_str_func$$=global.getModel("socaitc")):$socai_str_func$$=global.getModel("socaitt");$socai_str_func$$.find($condition$$).lean().exec(($error$$,$rs$$)=>{if($error$$)return $callback$$($error$$);$r$$[`so_${$ky$$.ma_ky}`]=$rs$$.csum("tien");
28
- $r$$[`so_${$ky$$.ma_ky}_nt`]=$rs$$.csum("tien_nt");$callback$$(null,$r$$)})})},($e$$,$rs$$)=>{$c1$$($e$$,$rs$$)});break;case "5":$r$$.cong_thuc="";async.map($kys$$,($ky$$,$callback$$)=>{let $condition$$={...$query$$};$condition$$.ngay=$ky$$.tu_ngay;$condition$$.bu_tru=$r$$.bu_tru_cong_no;$condition$$.tk=$r$$.tk;delete $condition$$.tu_ngay;delete $condition$$.den_ngay;dktk($condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$r$$[`so_${$ky$$.ma_ky}`]=$result$$.csum("du_no00");
29
- $r$$[`so_${$ky$$.ma_ky}_nt`]=$result$$.csum("du_no_nt00");$r$$[`so_${$ky$$.ma_ky}`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}`]=0);$r$$[`so_${$ky$$.ma_ky}_nt`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}_nt`]=0);$callback$$(null,$r$$)})},($e$$,$rs$$)=>{$c1$$($e$$,$rs$$)});break;case "6":$r$$.cong_thuc="";async.map($kys$$,($ky$$,$callback$$)=>{let $condition$$={...$query$$};$condition$$.ngay=$ky$$.tu_ngay;$condition$$.bu_tru=$r$$.bu_tru_cong_no;$condition$$.tk=$r$$.tk;delete $condition$$.tu_ngay;delete $condition$$.den_ngay;
30
- dktk($condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$r$$[`so_${$ky$$.ma_ky}`]=$result$$.csum("du_co00");$r$$[`so_${$ky$$.ma_ky}_nt`]=$result$$.csum("du_co_nt00");$r$$[`so_${$ky$$.ma_ky}`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}`]=0);$r$$[`so_${$ky$$.ma_ky}_nt`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}_nt`]=0);$callback$$(null,$r$$)})},($e$$,$rs$$)=>{$c1$$($e$$,$rs$$)});break;case "7":$r$$.cong_thuc="";async.map($kys$$,($ky$$,$callback$$)=>{let $condition$$=
31
- {...$query$$};$condition$$.ngay=$ky$$.den_ngay;$condition$$.bu_tru=$r$$.bu_tru_cong_no;$condition$$.tk=$r$$.tk;delete $condition$$.tu_ngay;delete $condition$$.den_ngay;cktk($condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$r$$[`so_${$ky$$.ma_ky}`]=$result$$.csum("du_no00");$r$$[`so_${$ky$$.ma_ky}_nt`]=$result$$.csum("du_no_nt00");$r$$[`so_${$ky$$.ma_ky}`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}`]=0);$r$$[`so_${$ky$$.ma_ky}_nt`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}_nt`]=
32
- 0);$callback$$(null,$r$$)})},($e$$,$rs$$)=>{$c1$$($e$$,$rs$$)});break;case "8":$r$$.cong_thuc="";async.map($kys$$,($ky$$,$callback$$)=>{let $condition$$={...$query$$};$condition$$.ngay=$ky$$.den_ngay;$condition$$.bu_tru=$r$$.bu_tru_cong_no;$condition$$.tk=$r$$.tk;delete $condition$$.tu_ngay;delete $condition$$.den_ngay;cktk($condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$r$$[`so_${$ky$$.ma_ky}`]=$result$$.csum("du_co00");$r$$[`so_${$ky$$.ma_ky}_nt`]=$result$$.csum("du_co_nt00");
33
- $r$$[`so_${$ky$$.ma_ky}`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}`]=0);$r$$[`so_${$ky$$.ma_ky}_nt`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}_nt`]=0);$callback$$(null,$r$$)})},($e$$,$rs$$)=>{$c1$$($e$$,$rs$$)});break;case "99":if(!$r$$.script)return $c1$$(null,$r$$);if($r$$.script.indexOf("async ")>=0)return $c1$$("async function is not allow");let $func_string$$=`return (async ()=>{
34
- try{
35
- ${$r$$.script}
36
- }catch(e){
37
- return {error:e}
38
- }
39
-
40
- })`;$r$$.cong_thuc="";utils.evalute($func_string$$,{row:$r$$,moment,condition:$query$$,user:$req$$.user,_,utils})().then($rs$$=>{if($rs$$&&$rs$$.error)return console.error($rs$$.error,$func_string$$),$c1$$($rs$$.error.message||$rs$$.error.error||$rs$$.error);$c1$$(null,$r$$)}).catch($e$$=>{console.error($e$$,$func_string$$);return $c1$$($e$$.message||$e$$.error||$e$$)});break;default:$c1$$(null,$r$$)}})},function($error$$){if($error$$)return $callback$$($error$$);$error$$=$kys$$.map($k$$=>
41
- `so_${$k$$.ma_ky},so_${$k$$.ma_ky}_nt`).join(",");utils.calcGrid($report$$,$error$$,async function($data$$){if($_rptform$$.handle_data_expression_server){if($_rptform$$.handle_data_expression_server.indexOf("async ")>=0)return $callback$$("async function is not allow");let $func_string$$=`return (async ()=>{
42
- try{
43
- ${$_rptform$$.handle_data_expression_server}
44
- }catch(e){
45
- return {error:e}
46
- }
47
-
48
- })`;try{let $rs$$=await utils.evalute($func_string$$,{data:$data$$,moment,numeral,condition:$req$$.query})();if($rs$$){if($rs$$.error)return console.error($rs$$.error,$func_string$$),$callback$$($rs$$.error.message||$rs$$.error);$data$$=$rs$$}}catch($e$$){return console.error($e$$,$func_string$$),$callback$$($e$$.message||$e$$)}}$req$$.query.loai_ky?$callback$$(null,{data:$data$$.filter($r$$=>$r$$.print),columns:$kys$$}):$callback$$(null,$data$$.filter($r$$=>$r$$.print))})})}).catch($e$$=>{$callback$$($e$$||
49
- "Kh\u00f4ng c\u00f3 m\u1eabu b\u00e1o c\u00e1o n\u00e0o cho b\u00e1o c\u00e1o n\u00e0y")})})};
1
+ const _0x59f0e9=_0x40b0;(function(_0x504247,_0x2fb32b){const _0x2ee855=_0x40b0,_0x570b85=_0x504247();while(!![]){try{const _0x391ab6=-parseInt(_0x2ee855(0x203))/0x1*(-parseInt(_0x2ee855(0x1e4))/0x2)+parseInt(_0x2ee855(0x1c1))/0x3*(-parseInt(_0x2ee855(0x28a))/0x4)+parseInt(_0x2ee855(0x2a1))/0x5+parseInt(_0x2ee855(0x297))/0x6+-parseInt(_0x2ee855(0x187))/0x7+parseInt(_0x2ee855(0x17b))/0x8*(parseInt(_0x2ee855(0x25a))/0x9)+-parseInt(_0x2ee855(0x1b2))/0xa;if(_0x391ab6===_0x2fb32b)break;else _0x570b85['push'](_0x570b85['shift']());}catch(_0x28e92e){_0x570b85['push'](_0x570b85['shift']());}}}(_0x2c93,0xa12a8));const cktk=require(_0x59f0e9(0x2b2)),dktk=require('../../libs/dktk'),kbmpttct=global['getModel']('kbmPttct'),rptform=global[_0x59f0e9(0x1eb)](_0x59f0e9(0x2a8)),async=require(_0x59f0e9(0x19a)),_=require(_0x59f0e9(0x1bb)),utils=require(_0x59f0e9(0x316)),controller=require(_0x59f0e9(0x22d)),moment=require(_0x59f0e9(0x2a3)),numeral=require(_0x59f0e9(0x14a)),getRegString=function(_0x4de320){return _0x4de320['reg']();},{getCodeChildren}=require(_0x59f0e9(0x316));function _0x40b0(_0x5000bf,_0x4cfbd7){const _0x2c9331=_0x2c93();return _0x40b0=function(_0x40b044,_0x37d3e5){_0x40b044=_0x40b044-0x144;let _0x4e5f9a=_0x2c9331[_0x40b044];if(_0x40b0['JKlPIh']===undefined){var _0x3fbdf7=function(_0xf63e56){const _0x5bbbde='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4eb286='',_0x381d67='';for(let _0xfd7e87=0x0,_0x46ec24,_0x5b8aaf,_0x5ee5dd=0x0;_0x5b8aaf=_0xf63e56['charAt'](_0x5ee5dd++);~_0x5b8aaf&&(_0x46ec24=_0xfd7e87%0x4?_0x46ec24*0x40+_0x5b8aaf:_0x5b8aaf,_0xfd7e87++%0x4)?_0x4eb286+=String['fromCharCode'](0xff&_0x46ec24>>(-0x2*_0xfd7e87&0x6)):0x0){_0x5b8aaf=_0x5bbbde['indexOf'](_0x5b8aaf);}for(let _0x242dda=0x0,_0x242038=_0x4eb286['length'];_0x242dda<_0x242038;_0x242dda++){_0x381d67+='%'+('00'+_0x4eb286['charCodeAt'](_0x242dda)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x381d67);};_0x40b0['wtWiru']=_0x3fbdf7,_0x5000bf=arguments,_0x40b0['JKlPIh']=!![];}const _0x4f8fb2=_0x2c9331[0x0],_0x4237cf=_0x40b044+_0x4f8fb2,_0x3a4085=_0x5000bf[_0x4237cf];return!_0x3a4085?(_0x4e5f9a=_0x40b0['wtWiru'](_0x4e5f9a),_0x5000bf[_0x4237cf]=_0x4e5f9a):_0x4e5f9a=_0x3a4085,_0x4e5f9a;},_0x40b0(_0x5000bf,_0x4cfbd7);}module[_0x59f0e9(0x2e9)]=function(_0x529e17){const _0x479327=_0x59f0e9,_0x3ee3a1={'SfgDN':function(_0x34d388,_0x5dd8c9){return _0x34d388!==_0x5dd8c9;},'lhoth':_0x479327(0x1a1),'IBMzG':function(_0x31ed05,_0x449156){return _0x31ed05(_0x449156);},'IcqBj':'weeks','XoZBP':'days','qzXGi':_0x479327(0x252),'yzkmx':function(_0x18031d,_0xefa18e,_0x140c70){return _0x18031d(_0xefa18e,_0x140c70);},'tLRIa':function(_0x593674,_0x273e7a,_0x32232b){return _0x593674(_0x273e7a,_0x32232b);},'KCQqQ':'Mẫu\x20báo\x20cáo\x20này\x20không\x20có\x20giá\x20trị','qhVGg':function(_0x104212,_0x3fbf92){return _0x104212>_0x3fbf92;},'CtLCi':function(_0x1f7de7,_0x33d2f6){return _0x1f7de7+_0x33d2f6;},'quBLf':_0x479327(0x188),'DTBMt':_0x479327(0x1b4),'EXsQM':_0x479327(0x2ef),'SWTvd':_0x479327(0x183),'uhgJV':'ma_phi_me','beSKN':'byJiF','KeRxF':_0x479327(0x1ad),'QfFIo':_0x479327(0x2fd),'tfZLP':'xQHlX','BuWpr':'rTHor','Viqca':'du_no00','zfUso':'YGJoG','SDJhE':_0x479327(0x19e),'Pkbdd':'nIyCx','zRote':_0x479327(0x152),'bLgcG':_0x479327(0x179),'mRWzJ':_0x479327(0x2e8),'BCpXS':function(_0x5973e5,_0x5968e2){return _0x5973e5>=_0x5968e2;},'WDXMc':_0x479327(0x30b),'hOMEn':_0x479327(0x191),'EJKCY':function(_0xdef770,_0x2e5513){return _0xdef770===_0x2e5513;},'lMKpk':_0x479327(0x2b1),'eXwzD':function(_0x4e8724){return _0x4e8724();},'szYHP':function(_0xc2369a,_0x5ad6fa){return _0xc2369a===_0x5ad6fa;},'Umcwt':_0x479327(0x265),'YSwGP':function(_0x3cccd7,_0x2c0a7d){return _0x3cccd7(_0x2c0a7d);},'jJsLd':function(_0xd38326,_0x5dc3ca){return _0xd38326<_0x5dc3ca;},'ozLGt':_0x479327(0x281),'gVDgq':function(_0x56732d,_0x257553){return _0x56732d>_0x257553;},'iBuEn':_0x479327(0x1d5),'TyLHS':_0x479327(0x1e9),'iqndv':_0x479327(0x255),'PALQw':'thang','nOnFf':function(_0x12c2f3,_0x34333d){return _0x12c2f3!==_0x34333d;},'cTreO':_0x479327(0x2e3),'odGyo':function(_0xdd18ac,_0xb186ca){return _0xdd18ac!==_0xb186ca;},'qdbMy':_0x479327(0x1f0),'ycOKa':function(_0xd4ee22,_0x135919){return _0xd4ee22+_0x135919;},'YtCyP':function(_0xb8c38,_0x5480a6){return _0xb8c38(_0x5480a6);},'DuaJI':function(_0x18c3ed,_0x374017){return _0x18c3ed<_0x374017;},'QBsAK':_0x479327(0x2c9),'oCJPU':function(_0x509260,_0x14fb33){return _0x509260>_0x14fb33;},'bnPXp':_0x479327(0x31b),'HQAUF':function(_0x22a76b,_0x1f29d4){return _0x22a76b(_0x1f29d4);},'aJEJp':_0x479327(0x24f),'VMuIQ':function(_0x51f1c5,_0x97905b){return _0x51f1c5(_0x97905b);},'abQNN':_0x479327(0x22f),'oirIt':'vhBts','jEWar':_0x479327(0x170),'NYLmz':_0x479327(0x23a),'pxLeT':_0x479327(0x1d4),'zEBHy':function(_0x3563a3,_0x5363a7){return _0x3563a3||_0x5363a7;},'TrNvk':_0x479327(0x2a6),'dWnDt':function(_0x396000,_0x4930b2){return _0x396000!==_0x4930b2;},'yECWB':_0x479327(0x2ba),'BUtIn':function(_0x926e0b,_0x6dfef6,_0x29a4a8,_0x14d412,_0x1fdcbd,_0x4498a7){return _0x926e0b(_0x6dfef6,_0x29a4a8,_0x14d412,_0x1fdcbd,_0x4498a7);},'kjqFC':function(_0x2c5f9e,_0x2ca53f){return _0x2c5f9e===_0x2ca53f;},'oNNmT':_0x479327(0x2df),'HLxfW':function(_0x3b3707,_0x49e1cb,_0x411f31,_0x495453,_0x594531,_0x2b227e){return _0x3b3707(_0x49e1cb,_0x411f31,_0x495453,_0x594531,_0x2b227e);},'pEuDi':_0x479327(0x21d),'DYptW':_0x479327(0x28d),'YtVGy':_0x479327(0x239),'iIawe':_0x479327(0x1a3)};new controller(_0x529e17,_0x3ee3a1['iIawe'],async function(_0x1ebf4a,_0x5d9436){const _0x2fc02e=_0x479327,_0x33abb3={'ZoMOn':function(_0x5e8377,_0x25ff5c){const _0x394cef=_0x40b0;return _0x3ee3a1[_0x394cef(0x19d)](_0x5e8377,_0x25ff5c);},'aNgbM':_0x2fc02e(0x16b),'FlCHz':_0x3ee3a1[_0x2fc02e(0x217)],'czSEo':function(_0x38db4b,_0x38999c){return _0x38db4b||_0x38999c;},'mjsmR':function(_0x1e3adc,_0x61c6eb){return _0x3ee3a1['IBMzG'](_0x1e3adc,_0x61c6eb);},'ubHJh':_0x2fc02e(0x256),'LllKY':_0x3ee3a1[_0x2fc02e(0x29a)],'SDchx':_0x3ee3a1[_0x2fc02e(0x195)],'vQeQc':_0x3ee3a1['qzXGi'],'sKoiS':function(_0x250c92,_0x597a9b,_0x1f7782){const _0xf4fed7=_0x2fc02e;return _0x3ee3a1[_0xf4fed7(0x18b)](_0x250c92,_0x597a9b,_0x1f7782);},'wfmXc':function(_0x240487,_0x9cd973,_0x2644f6){const _0x316f0a=_0x2fc02e;return _0x3ee3a1[_0x316f0a(0x22e)](_0x240487,_0x9cd973,_0x2644f6);},'xPdkf':_0x3ee3a1[_0x2fc02e(0x200)],'FsWhn':function(_0x480beb,_0x4fcbfa){const _0x3f0711=_0x2fc02e;return _0x3ee3a1[_0x3f0711(0x16e)](_0x480beb,_0x4fcbfa);},'ibyvv':function(_0x224575,_0x195568){const _0x1c53d9=_0x2fc02e;return _0x3ee3a1[_0x1c53d9(0x1a8)](_0x224575,_0x195568);},'XPdHE':_0x3ee3a1['quBLf'],'Ptmjo':_0x3ee3a1[_0x2fc02e(0x259)],'HbOZB':_0x3ee3a1[_0x2fc02e(0x2d3)],'Oldro':_0x3ee3a1[_0x2fc02e(0x161)],'kDqwA':_0x3ee3a1[_0x2fc02e(0x169)],'gWrDY':_0x3ee3a1[_0x2fc02e(0x14b)],'wBMmk':_0x3ee3a1[_0x2fc02e(0x17e)],'MZMre':_0x3ee3a1[_0x2fc02e(0x1d9)],'PpSRG':_0x3ee3a1[_0x2fc02e(0x1ce)],'lfkaS':_0x3ee3a1[_0x2fc02e(0x163)],'QzCmz':_0x3ee3a1[_0x2fc02e(0x278)],'Fccao':_0x3ee3a1[_0x2fc02e(0x27c)],'fBmpw':_0x3ee3a1[_0x2fc02e(0x2ff)],'HzMnd':'cyinF','dfOoy':_0x3ee3a1[_0x2fc02e(0x16f)],'LYXwQ':_0x3ee3a1[_0x2fc02e(0x2b8)],'vSlUs':_0x3ee3a1[_0x2fc02e(0x24d)],'fEAHH':_0x3ee3a1['mRWzJ'],'QhqKU':function(_0x42239d,_0x1c1157){return _0x3ee3a1['BCpXS'](_0x42239d,_0x1c1157);},'XeyQU':_0x3ee3a1[_0x2fc02e(0x1ca)],'lFoRj':_0x2fc02e(0x2a4),'jjWBr':_0x3ee3a1[_0x2fc02e(0x31d)],'ayFfg':function(_0x5c276d,_0x5e1ded){const _0x310e1b=_0x2fc02e;return _0x3ee3a1[_0x310e1b(0x160)](_0x5c276d,_0x5e1ded);},'JUwDA':_0x3ee3a1[_0x2fc02e(0x159)],'RQoBg':function(_0x5e65a5){const _0x164455=_0x2fc02e;return _0x3ee3a1[_0x164455(0x1d6)](_0x5e65a5);},'tzPwT':function(_0x2c27dd,_0x419fd3){const _0x17147c=_0x2fc02e;return _0x3ee3a1[_0x17147c(0x26c)](_0x2c27dd,_0x419fd3);},'VSLLV':_0x3ee3a1[_0x2fc02e(0x31e)],'hpWDm':function(_0xe45fff,_0x3f0f42){const _0x2090f6=_0x2fc02e;return _0x3ee3a1[_0x2090f6(0x1e0)](_0xe45fff,_0x3f0f42);},'zgObL':function(_0x2167ef,_0x39a726){const _0xfdab8f=_0x2fc02e;return _0x3ee3a1[_0xfdab8f(0x300)](_0x2167ef,_0x39a726);},'Xncea':_0x3ee3a1[_0x2fc02e(0x212)],'syxGj':'rdotv','TSpTl':function(_0x5428d4,_0x3ebb04){const _0x5c4e18=_0x2fc02e;return _0x3ee3a1[_0x5c4e18(0x1d2)](_0x5428d4,_0x3ebb04);},'OAlfT':function(_0x3c14b3,_0x53e7b1){return _0x3ee3a1['gVDgq'](_0x3c14b3,_0x53e7b1);},'PuhPe':function(_0x5e3642,_0x296973){const _0x32e87a=_0x2fc02e;return _0x3ee3a1[_0x32e87a(0x1a8)](_0x5e3642,_0x296973);},'wEibQ':_0x2fc02e(0x268),'GAjtx':function(_0x5e74e4,_0x511494){const _0x1b7121=_0x2fc02e;return _0x3ee3a1[_0x1b7121(0x1a8)](_0x5e74e4,_0x511494);},'Xhndl':_0x3ee3a1[_0x2fc02e(0x2f3)],'gsLCd':_0x3ee3a1[_0x2fc02e(0x145)],'YEQLL':function(_0x286c8e,_0x500cf9){return _0x286c8e(_0x500cf9);},'Lvzfm':_0x3ee3a1[_0x2fc02e(0x1ab)],'owGDI':function(_0x36e585,_0x17a0e0){return _0x36e585(_0x17a0e0);},'TpSiz':_0x3ee3a1[_0x2fc02e(0x23b)],'XBNLC':function(_0x15b278,_0x4523af){const _0x5a2c04=_0x2fc02e;return _0x3ee3a1[_0x5a2c04(0x298)](_0x15b278,_0x4523af);},'yVgqh':_0x3ee3a1[_0x2fc02e(0x25b)],'cyaip':_0x2fc02e(0x1f3),'XrnwM':function(_0x3f6ca0,_0x36c62c){return _0x3ee3a1['odGyo'](_0x3f6ca0,_0x36c62c);},'XrAkQ':_0x3ee3a1[_0x2fc02e(0x199)],'qDuFs':_0x2fc02e(0x15b),'oAYyG':function(_0x28f448,_0xf1f5bd){const _0x4fa699=_0x2fc02e;return _0x3ee3a1[_0x4fa699(0x1fb)](_0x28f448,_0xf1f5bd);},'bepLz':function(_0x2e6bee,_0xa98e21){const _0x1c5462=_0x2fc02e;return _0x3ee3a1[_0x1c5462(0x298)](_0x2e6bee,_0xa98e21);},'bheis':function(_0x4f578b,_0x302f21){return _0x3ee3a1['ycOKa'](_0x4f578b,_0x302f21);},'BNjXr':function(_0x55b160,_0xa3fcfd){return _0x55b160+_0xa3fcfd;},'yGzQS':function(_0x47f170,_0x3c57bc){const _0x1f6c52=_0x2fc02e;return _0x3ee3a1[_0x1f6c52(0x16a)](_0x47f170,_0x3c57bc);},'hLzyT':'quy','HzUCB':function(_0x288331,_0x2c5377){const _0x344c61=_0x2fc02e;return _0x3ee3a1[_0x344c61(0x272)](_0x288331,_0x2c5377);},'hYfhv':function(_0x3579ec,_0x5a6835){const _0x211536=_0x2fc02e;return _0x3ee3a1[_0x211536(0x298)](_0x3579ec,_0x5a6835);},'Rogtb':'bldvM','MlbZB':_0x3ee3a1[_0x2fc02e(0x1d0)],'IEehX':function(_0x100cb7,_0x455daf){return _0x3ee3a1['oCJPU'](_0x100cb7,_0x455daf);},'NLgHt':function(_0x572222,_0x46894c){return _0x572222!==_0x46894c;},'znckS':_0x3ee3a1[_0x2fc02e(0x223)],'uWHMf':function(_0x3fc151,_0x2b280e){const _0x2d5942=_0x2fc02e;return _0x3ee3a1[_0x2d5942(0x24b)](_0x3fc151,_0x2b280e);},'JQunY':function(_0x278ebb,_0x3b67d0){const _0x4f5bd8=_0x2fc02e;return _0x3ee3a1[_0x4f5bd8(0x1d2)](_0x278ebb,_0x3b67d0);},'xgVJl':_0x2fc02e(0x266),'kcQGm':_0x3ee3a1['aJEJp'],'XsnRY':function(_0x19c1da,_0x1edd2f){const _0x345fb9=_0x2fc02e;return _0x3ee3a1[_0x345fb9(0x15a)](_0x19c1da,_0x1edd2f);},'dfSCa':_0x3ee3a1[_0x2fc02e(0x243)],'MCDNQ':function(_0x38e337,_0x55a86e){return _0x3ee3a1['VMuIQ'](_0x38e337,_0x55a86e);},'GkoOM':function(_0x3aae98,_0x539a3a){return _0x3aae98!==_0x539a3a;},'wHMgh':_0x3ee3a1[_0x2fc02e(0x20e)],'RoLGy':_0x3ee3a1[_0x2fc02e(0x28e)],'HrRjv':_0x3ee3a1[_0x2fc02e(0x1dc)],'IxToL':function(_0x1d1601,_0x3a324c){return _0x1d1601-_0x3a324c;},'NDeur':_0x3ee3a1[_0x2fc02e(0x241)],'TsNCr':function(_0x95c006,_0x40fcf7){const _0x244c48=_0x2fc02e;return _0x3ee3a1[_0x244c48(0x20f)](_0x95c006,_0x40fcf7);}};let _0x52d191=_0x1ebf4a['query'];if(!_0x52d191[_0x2fc02e(0x313)]||!_0x52d191[_0x2fc02e(0x205)]||!_0x52d191['id_rptform'])return _0x3ee3a1[_0x2fc02e(0x24b)](_0x5d9436,_0x3ee3a1['TrNvk']);if(!global[_0x2fc02e(0x2f0)][_0x2fc02e(0x225)][_0x2fc02e(0x1ae)]['isValid'](_0x52d191['id_rptform'])){if(_0x3ee3a1[_0x2fc02e(0x2e2)]('dRyfZ',_0x3ee3a1[_0x2fc02e(0x1a5)]))_0x783631[_0x2fc02e(0x2f9)+_0x48f631[_0x2fc02e(0x1d3)]+_0x2fc02e(0x291)]=0x0;else return _0x5d9436(_0x3ee3a1['KCQqQ']);}if(_0x52d191[_0x2fc02e(0x2d8)]){let _0x155952=await _0x3ee3a1[_0x2fc02e(0x206)](getCodeChildren,global[_0x2fc02e(0x1eb)]('dmbp'),_0x52d191[_0x2fc02e(0x2a2)],_0x52d191[_0x2fc02e(0x2d8)],_0x2fc02e(0x2d8),_0x2fc02e(0x213));_0x52d191[_0x2fc02e(0x2d8)]={'$in':_0x155952};}if(_0x52d191[_0x2fc02e(0x28d)]){if(_0x3ee3a1['kjqFC'](_0x3ee3a1[_0x2fc02e(0x2c5)],_0x3ee3a1[_0x2fc02e(0x2c5)])){let _0x20d2ee=await _0x3ee3a1['HLxfW'](getCodeChildren,global[_0x2fc02e(0x1eb)](_0x3ee3a1[_0x2fc02e(0x305)]),_0x52d191[_0x2fc02e(0x2a2)],_0x52d191[_0x2fc02e(0x28d)],_0x3ee3a1[_0x2fc02e(0x230)],_0x3ee3a1[_0x2fc02e(0x169)]);_0x52d191['ma_phi']={'$in':_0x20d2ee};}else return _0x5bbbde['reg']();}if(_0x52d191[_0x2fc02e(0x239)]){let _0xb632b6=await getCodeChildren(global[_0x2fc02e(0x1eb)](_0x2fc02e(0x1f9)),_0x52d191['id_app'],_0x52d191[_0x2fc02e(0x239)],_0x3ee3a1[_0x2fc02e(0x1db)],'ma_dt_me');_0x52d191['ma_dt']={'$in':_0xb632b6};}new Promise((_0x4a0fb7,_0x26b3ae)=>{const _0x447f7a=_0x2fc02e;rptform[_0x447f7a(0x1a7)]({'_id':_0x52d191['id_rptform'],'id_app':_0x52d191['id_app']})[_0x447f7a(0x2c0)]()[_0x447f7a(0x176)]((_0x313af9,_0x46095e)=>{const _0x32dd3a=_0x447f7a,_0x5a4519={'dbsGs':function(_0x1671bf,_0x388be9,_0x433c36){return _0x1671bf(_0x388be9,_0x433c36);}};if(_0x33abb3[_0x32dd3a(0x1c8)](_0x33abb3['aNgbM'],_0x33abb3[_0x32dd3a(0x158)])){if(_0x33abb3[_0x32dd3a(0x20b)](_0x313af9,!_0x46095e))return _0x26b3ae(_0x313af9);_0x33abb3[_0x32dd3a(0x1de)](_0x4a0fb7,_0x46095e);}else _0x5a4519['dbsGs'](_0x4a05f2,_0x38e08a,_0x100816);});})['then'](async _0x21ce99=>{const _0xa179ce=_0x2fc02e,_0x419b54={'hNGlk':function(_0x9284cf,_0x315def){return _0x33abb3['mjsmR'](_0x9284cf,_0x315def);},'MhreY':_0x33abb3[_0xa179ce(0x2c8)],'dVofa':function(_0x5c6ed8,_0x2562f1){const _0x3a6522=_0xa179ce;return _0x33abb3[_0x3a6522(0x1de)](_0x5c6ed8,_0x2562f1);},'BsoqY':'date','cpULA':function(_0x5ab6c7,_0x265cb8){const _0x343aa6=_0xa179ce;return _0x33abb3[_0x343aa6(0x201)](_0x5ab6c7,_0x265cb8);},'zsNlI':function(_0x5444e2,_0xe65c8a){const _0x15b39b=_0xa179ce;return _0x33abb3[_0x15b39b(0x144)](_0x5444e2,_0xe65c8a);},'ewDZA':_0x33abb3[_0xa179ce(0x27e)],'TEwNK':function(_0x21c96d,_0x2bbebf,_0x5140f0){return _0x21c96d(_0x2bbebf,_0x5140f0);},'kKHps':function(_0x5b9c20,_0x5c9608){return _0x5b9c20===_0x5c9608;},'iHxmn':_0x33abb3[_0xa179ce(0x2ad)],'oYgRD':_0xa179ce(0x146),'raYDh':_0x33abb3[_0xa179ce(0x2fc)],'lVxvg':_0x33abb3[_0xa179ce(0x221)],'iozVG':function(_0x2b3325,_0x5df383){return _0x33abb3['ZoMOn'](_0x2b3325,_0x5df383);},'CUfTL':_0x33abb3[_0xa179ce(0x150)],'NlJHv':_0x33abb3[_0xa179ce(0x26e)],'eJSKU':_0x33abb3[_0xa179ce(0x215)],'JGfgW':_0x33abb3[_0xa179ce(0x2a5)],'nDaBc':_0x33abb3[_0xa179ce(0x214)],'OMDLT':_0x33abb3[_0xa179ce(0x23c)],'ZuHeW':_0x33abb3[_0xa179ce(0x1d7)],'DNyXh':_0x33abb3[_0xa179ce(0x2c4)],'oSvcJ':_0x33abb3['Fccao'],'kEYIe':_0x33abb3[_0xa179ce(0x1ec)],'eoyTj':function(_0x1d202b,_0x3d730c){return _0x1d202b||_0x3d730c;},'UoKFh':_0x33abb3[_0xa179ce(0x1fa)],'ZkUmJ':function(_0x57494b,_0x415042){return _0x57494b!==_0x415042;},'bbtAc':_0x33abb3[_0xa179ce(0x180)],'MiTXU':_0x33abb3[_0xa179ce(0x226)],'ruMJI':_0x33abb3[_0xa179ce(0x271)],'yCBbC':_0xa179ce(0x27d),'AUrOU':_0x33abb3[_0xa179ce(0x1b6)],'TiJIu':function(_0x2e2a88,_0x573033){const _0x4eddcb=_0xa179ce;return _0x33abb3[_0x4eddcb(0x178)](_0x2e2a88,_0x573033);},'vjSqQ':_0x33abb3[_0xa179ce(0x1f7)],'XGSXT':_0x33abb3[_0xa179ce(0x194)],'mTOvf':_0x33abb3['jjWBr'],'RcatD':function(_0x321c72,_0x489b3c){const _0x1f713d=_0xa179ce;return _0x33abb3[_0x1f713d(0x248)](_0x321c72,_0x489b3c);},'TSTPL':_0xa179ce(0x240),'ojBNv':function(_0x44eb7c,_0x56780){return _0x44eb7c===_0x56780;},'siomV':_0xa179ce(0x30d),'LcVKF':function(_0x52f089,_0x256760,_0x311a7f){const _0x23c966=_0xa179ce;return _0x33abb3[_0x23c966(0x2c2)](_0x52f089,_0x256760,_0x311a7f);},'skDCY':_0x33abb3[_0xa179ce(0x1b8)],'oCSpx':function(_0x2b9a82,_0x24fd5e){const _0x1a4c55=_0xa179ce;return _0x33abb3[_0x1a4c55(0x1de)](_0x2b9a82,_0x24fd5e);},'FIzDY':function(_0x29fbc6,_0x254b3e,_0x2f1a0b){return _0x29fbc6(_0x254b3e,_0x2f1a0b);},'MJpqD':function(_0x425feb){return _0x33abb3['RQoBg'](_0x425feb);},'HMbNH':function(_0x548b1d,_0x16eebc){const _0x10c8ce=_0xa179ce;return _0x33abb3[_0x10c8ce(0x248)](_0x548b1d,_0x16eebc);},'WkZkT':function(_0x48b59c,_0x48ee86){const _0x6492b2=_0xa179ce;return _0x33abb3[_0x6492b2(0x1de)](_0x48b59c,_0x48ee86);}};_0x52d191['tu_ngay']=_0x33abb3[_0xa179ce(0x1de)](moment,new Date(_0x52d191[_0xa179ce(0x205)]))[_0xa179ce(0x1fc)](_0xa179ce(0x252))[_0xa179ce(0x25f)](),_0x52d191['den_ngay']=_0x33abb3[_0xa179ce(0x1de)](moment,new Date(_0x52d191[_0xa179ce(0x313)]))[_0xa179ce(0x2b0)](_0x33abb3['vQeQc'])['toDate']();let _0x2211a5=_0x21ce99['report'];if(!_0x2211a5||_0x33abb3['tzPwT'](_0x21ce99['report'][_0xa179ce(0x310)],0x0))_0x2211a5=await kbmpttct[_0xa179ce(0x16c)]({'id_rptform':_0x21ce99['_id'][_0xa179ce(0x257)](),'id_app':_0x52d191[_0xa179ce(0x2a2)]})[_0xa179ce(0x192)]({'stt':0x1})[_0xa179ce(0x2c0)]();let _0x412abf=[];switch(_0x52d191[_0xa179ce(0x208)]){case _0x33abb3[_0xa179ce(0x258)]:{let _0x9f056e=_0x33abb3[_0xa179ce(0x18d)](moment,_0x52d191['tu_ngay'])[_0xa179ce(0x1fc)](_0x33abb3[_0xa179ce(0x27f)])['toDate']();while(_0x33abb3[_0xa179ce(0x30f)](_0x9f056e['getTime'](),_0x52d191[_0xa179ce(0x313)]['getTime']())){if(_0x33abb3[_0xa179ce(0x1c8)](_0x33abb3[_0xa179ce(0x15c)],_0x33abb3[_0xa179ce(0x25c)])){let _0x259e85=_0x33abb3[_0xa179ce(0x31f)](moment,_0x9f056e)[_0xa179ce(0x2b0)](_0x33abb3[_0xa179ce(0x27f)])[_0xa179ce(0x25f)]();_0x33abb3[_0xa179ce(0x29b)](_0x259e85[_0xa179ce(0x197)](),_0x52d191[_0xa179ce(0x313)][_0xa179ce(0x197)]())&&(_0x259e85=_0x52d191[_0xa179ce(0x313)]),_0x412abf[_0xa179ce(0x1f6)]({'field':_0xa179ce(0x2f9)+_0x9f056e[_0xa179ce(0x318)]()+'-'+(_0x9f056e['getMonth']()+0x1)+'-'+_0x9f056e[_0xa179ce(0x26a)](),'header':_0x9f056e[_0xa179ce(0x318)]()+'/'+_0x33abb3['PuhPe'](_0x9f056e['getMonth'](),0x1)+'/'+_0x9f056e[_0xa179ce(0x26a)](),'datatype':_0x33abb3[_0xa179ce(0x1df)],'ma_ky':_0x9f056e['getDate']()+'-'+(_0x9f056e[_0xa179ce(0x2cd)]()+0x1)+'-'+_0x9f056e[_0xa179ce(0x26a)](),'ten_ky':_0x9f056e[_0xa179ce(0x318)]()+'/'+_0x33abb3['GAjtx'](_0x9f056e[_0xa179ce(0x2cd)](),0x1)+'/'+_0x9f056e[_0xa179ce(0x26a)](),'tu_ngay':_0x9f056e,'den_ngay':_0x259e85}),_0x9f056e=moment(_0x259e85)[_0xa179ce(0x211)](0x1,_0x33abb3['SDchx'])[_0xa179ce(0x1fc)](_0xa179ce(0x252))['toDate']();}else return _0x419b54[_0xa179ce(0x19f)](_0x46ec24,_0x419b54[_0xa179ce(0x308)]);}_0x412abf[_0xa179ce(0x1f6)]({'ma_ky':_0xa179ce(0x24a),'ten_ky':'Tổng\x20cộng','datatype':_0xa179ce(0x268),'tu_ngay':moment(_0x52d191[_0xa179ce(0x205)])['startOf'](_0xa179ce(0x252))[_0xa179ce(0x25f)](),'den_ngay':moment(_0x52d191[_0xa179ce(0x313)])[_0xa179ce(0x2b0)](_0x33abb3['vQeQc'])[_0xa179ce(0x25f)]()});break;}case _0x33abb3[_0xa179ce(0x2dd)]:{if(_0x33abb3[_0xa179ce(0x248)](_0x33abb3[_0xa179ce(0x1cb)],_0x33abb3[_0xa179ce(0x1cb)])){let _0x1a3ec9=_0x33abb3[_0xa179ce(0x147)](moment,_0x52d191[_0xa179ce(0x205)])[_0xa179ce(0x1fc)](_0x33abb3['vQeQc'])[_0xa179ce(0x25f)]();while(_0x33abb3[_0xa179ce(0x30f)](_0x1a3ec9[_0xa179ce(0x197)](),_0x52d191[_0xa179ce(0x313)][_0xa179ce(0x197)]())){let _0x158545=moment(_0x1a3ec9)[_0xa179ce(0x2b0)](_0x33abb3[_0xa179ce(0x2b9)])[_0xa179ce(0x25f)]();_0x158545[_0xa179ce(0x197)]()>_0x52d191[_0xa179ce(0x313)][_0xa179ce(0x197)]()&&(_0x33abb3[_0xa179ce(0x149)](_0x33abb3[_0xa179ce(0x263)],_0xa179ce(0x175))?(_0xf2e61e[_0xa179ce(0x2d2)]=_0x4357f4,_0x55e4c7['so_kn_nt']=_0x2e2ac9,_0x10f39f[_0xa179ce(0x174)]=_0x4c2abe,_0x1daf2c[_0xa179ce(0x21b)]=_0x446ff7):_0x158545=_0x52d191['den_ngay']),_0x412abf[_0xa179ce(0x1f6)]({'field':_0xa179ce(0x2f9)+_0x33abb3[_0xa179ce(0x147)](moment,_0x1a3ec9)['get'](_0xa179ce(0x209))+'-'+_0x1a3ec9[_0xa179ce(0x26a)](),'header':_0xa179ce(0x2a7)+_0x33abb3['TSpTl'](moment,_0x1a3ec9)[_0xa179ce(0x304)](_0x33abb3[_0xa179ce(0x16d)])+'/'+_0x1a3ec9[_0xa179ce(0x26a)](),'ma_ky':_0x33abb3[_0xa179ce(0x1b9)](moment,_0x1a3ec9)[_0xa179ce(0x304)](_0x33abb3[_0xa179ce(0x16d)])+'-'+_0x1a3ec9['getFullYear'](),'ten_ky':_0xa179ce(0x2a7)+_0x33abb3[_0xa179ce(0x18d)](moment,_0x1a3ec9)[_0xa179ce(0x304)](_0x33abb3[_0xa179ce(0x16d)])+'/'+_0x1a3ec9[_0xa179ce(0x26a)](),'tu_ngay':_0x1a3ec9,'den_ngay':_0x158545}),_0x1a3ec9=_0x33abb3['TSpTl'](moment,_0x158545)[_0xa179ce(0x211)](0x1,_0x33abb3[_0xa179ce(0x27e)])[_0xa179ce(0x1fc)](_0x33abb3['vQeQc'])[_0xa179ce(0x25f)]();}_0x412abf[_0xa179ce(0x1f6)]({'ma_ky':_0xa179ce(0x24a),'ten_ky':_0xa179ce(0x2ea),'datatype':_0x33abb3[_0xa179ce(0x1df)],'tu_ngay':moment(_0x52d191[_0xa179ce(0x205)])['startOf'](_0x33abb3[_0xa179ce(0x27f)])[_0xa179ce(0x25f)](),'den_ngay':moment(_0x52d191[_0xa179ce(0x313)])[_0xa179ce(0x2b0)](_0x33abb3[_0xa179ce(0x27f)])[_0xa179ce(0x25f)]()});break;}else{let _0x5f3dfe=_0x33abb3['mjsmR'](_0x5d302b,_0x43e31d)[_0xa179ce(0x2b0)](_0x33abb3[_0xa179ce(0x2b9)])[_0xa179ce(0x25f)]();_0x5f3dfe[_0xa179ce(0x197)]()>_0xf58e10[_0xa179ce(0x313)]['getTime']()&&(_0x5f3dfe=_0x250d5c[_0xa179ce(0x313)]),_0x37e8de[_0xa179ce(0x1f6)]({'field':_0xa179ce(0x2f9)+_0x2751ed(_0x29260d)['get'](_0x33abb3[_0xa179ce(0x16d)])+'-'+_0x3428ea[_0xa179ce(0x26a)](),'header':_0xa179ce(0x2a7)+_0x33abb3[_0xa179ce(0x1de)](_0x59cfa7,_0x49f3b3)[_0xa179ce(0x304)]('weeks')+'/'+_0x4a3d31[_0xa179ce(0x26a)](),'ma_ky':_0x33abb3['mjsmR'](_0x5b1b87,_0x21888d)[_0xa179ce(0x304)](_0x33abb3['LllKY'])+'-'+_0x32da3f[_0xa179ce(0x26a)](),'ten_ky':_0xa179ce(0x2a7)+_0x33abb3[_0xa179ce(0x1de)](_0x3a5c63,_0x469eab)['get'](_0xa179ce(0x209))+'/'+_0x4a922b[_0xa179ce(0x26a)](),'tu_ngay':_0x2eea6c,'den_ngay':_0x5f3dfe}),_0x2984f5=_0x49b852(_0x5f3dfe)['add'](0x1,_0x33abb3[_0xa179ce(0x27e)])[_0xa179ce(0x1fc)](_0x33abb3[_0xa179ce(0x27f)])[_0xa179ce(0x25f)]();}}case _0x33abb3[_0xa179ce(0x288)]:{if(_0x33abb3[_0xa179ce(0x25d)](_0x33abb3[_0xa179ce(0x1bd)],_0x33abb3[_0xa179ce(0x2c3)])){let _0x32526b=_0x33abb3[_0xa179ce(0x1b9)](moment,_0x52d191[_0xa179ce(0x205)])[_0xa179ce(0x1fc)](_0x33abb3['vQeQc'])[_0xa179ce(0x25f)]();while(_0x33abb3[_0xa179ce(0x30f)](_0x32526b[_0xa179ce(0x197)](),_0x52d191[_0xa179ce(0x313)][_0xa179ce(0x197)]())){if(_0x33abb3[_0xa179ce(0x2ce)](_0x33abb3[_0xa179ce(0x2ab)],_0x33abb3[_0xa179ce(0x220)])){let _0x163676=_0x33abb3[_0xa179ce(0x1b9)](moment,_0x32526b)[_0xa179ce(0x2b0)](_0xa179ce(0x2f2))[_0xa179ce(0x25f)]();_0x33abb3['oAYyG'](_0x163676[_0xa179ce(0x197)](),_0x52d191[_0xa179ce(0x313)]['getTime']())&&(_0x33abb3[_0xa179ce(0x207)]('JCwzg','dxbwq')?_0x163676=_0x52d191[_0xa179ce(0x313)]:_0x25c4d6['tk_co']={'$not':new _0x47c219(_0x413421)}),_0x412abf[_0xa179ce(0x1f6)]({'field':'so_'+_0x33abb3[_0xa179ce(0x2af)](_0x32526b[_0xa179ce(0x2cd)](),0x1)+'-'+_0x32526b[_0xa179ce(0x26a)](),'header':_0xa179ce(0x2e4)+_0x33abb3['BNjXr'](_0x32526b['getMonth'](),0x1)+'/'+_0x32526b['getFullYear'](),'datatype':'Number','ma_ky':_0x32526b[_0xa179ce(0x2cd)]()+0x1+'-'+_0x32526b['getFullYear'](),'ten_ky':_0xa179ce(0x2e4)+(_0x32526b[_0xa179ce(0x2cd)]()+0x1)+'/'+_0x32526b[_0xa179ce(0x26a)](),'tu_ngay':_0x32526b,'den_ngay':_0x163676}),_0x32526b=moment(_0x163676)['add'](0x1,_0x33abb3[_0xa179ce(0x27e)])['startOf'](_0x33abb3[_0xa179ce(0x27f)])[_0xa179ce(0x25f)]();}else _0x5b7b21['value_string']=_0x57ac4e;}_0x412abf[_0xa179ce(0x1f6)]({'ma_ky':_0xa179ce(0x24a),'ten_ky':'Tổng\x20cộng','datatype':_0x33abb3[_0xa179ce(0x1df)],'tu_ngay':_0x33abb3[_0xa179ce(0x1de)](moment,_0x52d191[_0xa179ce(0x205)])[_0xa179ce(0x1fc)](_0x33abb3[_0xa179ce(0x27f)])[_0xa179ce(0x25f)](),'den_ngay':_0x33abb3[_0xa179ce(0x28b)](moment,_0x52d191[_0xa179ce(0x313)])[_0xa179ce(0x2b0)](_0x33abb3[_0xa179ce(0x27f)])[_0xa179ce(0x25f)]()});break;}else _0x4f78d2[_0xa179ce(0x229)]=_0x41559a['ma_nv'];}case _0x33abb3['hLzyT']:{let _0x1e92d7=_0x33abb3[_0xa179ce(0x147)](moment,_0x52d191[_0xa179ce(0x205)])[_0xa179ce(0x1fc)](_0x33abb3['vQeQc'])[_0xa179ce(0x25f)]();while(_0x33abb3[_0xa179ce(0x24e)](_0x1e92d7[_0xa179ce(0x197)](),_0x52d191[_0xa179ce(0x313)][_0xa179ce(0x197)]())){if(_0x33abb3['hYfhv'](_0x33abb3[_0xa179ce(0x2d9)],_0xa179ce(0x166))){let _0x23e4e9=_0x33abb3[_0xa179ce(0x18d)](moment,_0x1e92d7)[_0xa179ce(0x2b0)](_0x33abb3[_0xa179ce(0x2f8)])['toDate']();if(_0x33abb3[_0xa179ce(0x1ee)](_0x23e4e9['getTime'](),_0x52d191[_0xa179ce(0x313)][_0xa179ce(0x197)]())){if(_0x33abb3[_0xa179ce(0x14d)](_0x33abb3['znckS'],_0x33abb3[_0xa179ce(0x2d4)])){let _0x94141c=_0x419b54[_0xa179ce(0x2e0)](_0x28dfcd,_0x2d1df1)[_0xa179ce(0x2b0)](_0x419b54[_0xa179ce(0x309)])[_0xa179ce(0x25f)]();_0x419b54['cpULA'](_0x94141c[_0xa179ce(0x197)](),_0x560a1e['den_ngay']['getTime']())&&(_0x94141c=_0x1371e7[_0xa179ce(0x313)]),_0x5e1ba9['push']({'field':'so_'+_0x2c0a67[_0xa179ce(0x318)]()+'-'+(_0x2f5d72[_0xa179ce(0x2cd)]()+0x1)+'-'+_0x504162[_0xa179ce(0x26a)](),'header':_0x5a1e99[_0xa179ce(0x318)]()+'/'+_0x419b54['zsNlI'](_0x2c99aa[_0xa179ce(0x2cd)](),0x1)+'/'+_0x3e1584[_0xa179ce(0x26a)](),'datatype':'Number','ma_ky':_0x5b673b[_0xa179ce(0x318)]()+'-'+(_0x2b2cf2[_0xa179ce(0x2cd)]()+0x1)+'-'+_0x115f62['getFullYear'](),'ten_ky':_0xf4832a[_0xa179ce(0x318)]()+'/'+_0x419b54[_0xa179ce(0x296)](_0x293c15['getMonth'](),0x1)+'/'+_0x21f775[_0xa179ce(0x26a)](),'tu_ngay':_0x534d3c,'den_ngay':_0x94141c}),_0x2ef996=_0x419b54[_0xa179ce(0x2e0)](_0x377e00,_0x94141c)[_0xa179ce(0x211)](0x1,_0x419b54[_0xa179ce(0x1bf)])[_0xa179ce(0x1fc)](_0x419b54[_0xa179ce(0x309)])['toDate']();}else _0x23e4e9=_0x52d191[_0xa179ce(0x313)];}_0x412abf[_0xa179ce(0x1f6)]({'field':'so_'+_0x33abb3['uWHMf'](moment,_0x1e92d7)[_0xa179ce(0x304)](_0x33abb3[_0xa179ce(0x2f8)])+'-'+_0x1e92d7['getFullYear'](),'header':_0x33abb3[_0xa179ce(0x1b9)](moment,_0x1e92d7)[_0xa179ce(0x304)](_0x33abb3[_0xa179ce(0x2f8)])+'/'+_0x1e92d7[_0xa179ce(0x26a)](),'datatype':_0x33abb3[_0xa179ce(0x1df)],'ma_ky':_0x33abb3['TSpTl'](moment,_0x1e92d7)[_0xa179ce(0x304)](_0x33abb3[_0xa179ce(0x2f8)])+'-'+_0x1e92d7[_0xa179ce(0x26a)](),'ten_ky':moment(_0x1e92d7)[_0xa179ce(0x304)](_0x33abb3[_0xa179ce(0x2f8)])+'/'+_0x1e92d7[_0xa179ce(0x26a)](),'tu_ngay':_0x1e92d7,'den_ngay':_0x23e4e9}),_0x1e92d7=moment(_0x23e4e9)['add'](0x1,'days')[_0xa179ce(0x1fc)](_0x33abb3['vQeQc'])['toDate']();}else _0x33abb3[_0xa179ce(0x154)](_0x231920,_0xd3b64c,_0x1292aa);}_0x412abf[_0xa179ce(0x1f6)]({'ma_ky':_0xa179ce(0x24a),'ten_ky':'Tổng\x20cộng','datatype':_0x33abb3[_0xa179ce(0x1df)],'tu_ngay':_0x33abb3[_0xa179ce(0x1b9)](moment,_0x52d191['tu_ngay'])[_0xa179ce(0x1fc)](_0x33abb3[_0xa179ce(0x27f)])['toDate'](),'den_ngay':_0x33abb3[_0xa179ce(0x19b)](moment,_0x52d191[_0xa179ce(0x313)])['endOf'](_0xa179ce(0x252))[_0xa179ce(0x25f)]()});break;}case _0x33abb3[_0xa179ce(0x190)]:{if(_0x33abb3[_0xa179ce(0x149)](_0x33abb3[_0xa179ce(0x2a9)],_0x33abb3[_0xa179ce(0x2a9)])){let _0x3ff1d7=_0x33abb3[_0xa179ce(0x2be)](moment,_0x52d191['tu_ngay'])[_0xa179ce(0x1fc)]('date')[_0xa179ce(0x25f)]();while(_0x3ff1d7['getTime']()<_0x52d191['den_ngay'][_0xa179ce(0x197)]()){if(_0x33abb3[_0xa179ce(0x1c8)](_0x33abb3[_0xa179ce(0x185)],_0x33abb3['dfSCa']))_0x195f0b=_0x22cc87[_0xa179ce(0x313)];else{let _0x1fc4c0=moment(_0x3ff1d7)[_0xa179ce(0x2b0)](_0x33abb3[_0xa179ce(0x1b8)])[_0xa179ce(0x25f)]();_0x1fc4c0[_0xa179ce(0x197)]()>_0x52d191[_0xa179ce(0x313)][_0xa179ce(0x197)]()&&(_0x1fc4c0=_0x52d191[_0xa179ce(0x313)]),_0x412abf['push']({'field':_0xa179ce(0x2f9)+_0x3ff1d7[_0xa179ce(0x26a)](),'header':''+_0x3ff1d7['getFullYear'](),'ma_ky':''+_0x3ff1d7['getFullYear'](),'ten_ky':''+_0x3ff1d7[_0xa179ce(0x26a)](),'tu_ngay':_0x3ff1d7,'den_ngay':_0x1fc4c0}),_0x3ff1d7=moment(_0x1fc4c0)[_0xa179ce(0x211)](0x1,_0x33abb3['SDchx'])[_0xa179ce(0x1fc)](_0x33abb3[_0xa179ce(0x27f)])['toDate']();}}_0x412abf[_0xa179ce(0x1f6)]({'ma_ky':_0xa179ce(0x24a),'ten_ky':_0xa179ce(0x2ea),'datatype':_0x33abb3['wEibQ'],'tu_ngay':moment(_0x52d191['tu_ngay'])[_0xa179ce(0x1fc)]('date')[_0xa179ce(0x25f)](),'den_ngay':_0x33abb3['MCDNQ'](moment,_0x52d191['den_ngay'])[_0xa179ce(0x2b0)](_0x33abb3[_0xa179ce(0x27f)])[_0xa179ce(0x25f)]()});break;}else _0x419b54[_0xa179ce(0x2ae)](_0xfadc30,null,_0x89dd76[_0xa179ce(0x1e7)](_0x328e44=>_0x328e44[_0xa179ce(0x236)]));}case'kn':{if(_0x33abb3[_0xa179ce(0x189)]('vhBts',_0x33abb3[_0xa179ce(0x2a0)]))_0x33abb3[_0xa179ce(0x2c2)](_0x17dde1,null,_0x3d696f);else{_0x412abf=[{'field':_0xa179ce(0x2d2),'header':_0xa179ce(0x170),'datatype':_0x33abb3[_0xa179ce(0x1df)],'ma_ky':'kn','ten_ky':_0x33abb3[_0xa179ce(0x270)],'tu_ngay':_0x52d191[_0xa179ce(0x205)],'den_ngay':_0x52d191['den_ngay']}];break;}}default:{const _0x3427b2=_0x33abb3[_0xa179ce(0x1a9)]['split']('|');let _0x45caa9=0x0;while(!![]){switch(_0x3427b2[_0x45caa9++]){case'0':_0x52d191[_0xa179ce(0x1af)][_0xa179ce(0x18a)](_0x33abb3[_0xa179ce(0x293)](_0x52d191['tu_ngay_kt']['getFullYear'](),0x1));continue;case'1':_0x52d191[_0xa179ce(0x173)]=new Date(_0x52d191[_0xa179ce(0x313)]);continue;case'2':_0x412abf=[{'field':_0xa179ce(0x174),'header':_0xa179ce(0x1d4),'datatype':_0x33abb3[_0xa179ce(0x1df)],'ma_ky':'kt','ten_ky':_0x33abb3[_0xa179ce(0x1ed)],'tu_ngay':_0x52d191['tu_ngay_kt'],'den_ngay':_0x52d191[_0xa179ce(0x173)]},{'field':_0xa179ce(0x2d2),'header':'Kỳ\x20này','datatype':_0xa179ce(0x268),'ma_ky':'kn','ten_ky':_0xa179ce(0x186),'tu_ngay':_0x52d191['tu_ngay'],'den_ngay':_0x52d191[_0xa179ce(0x313)]}];continue;case'3':_0x52d191[_0xa179ce(0x173)][_0xa179ce(0x18a)](_0x52d191[_0xa179ce(0x173)]['getFullYear']()-0x1);continue;case'4':_0x52d191[_0xa179ce(0x1af)]=new Date(_0x52d191[_0xa179ce(0x205)]);continue;}break;}}}async[_0xa179ce(0x2ed)](_0x2211a5,(_0x4d27f2,_0x218153)=>{const _0x36a5e8=_0xa179ce,_0x168773={'UZKZz':function(_0x7730f6,_0x4d498b){return _0x7730f6!==_0x4d498b;},'bArmY':'caQDu','JoRpX':function(_0x23d7b2,_0x156c6a,_0x1ef40c){return _0x23d7b2(_0x156c6a,_0x1ef40c);},'ujJGM':function(_0x723a0,_0x125c8b){return _0x723a0(_0x125c8b);},'emrZE':function(_0x1592d5,_0x48dd50,_0x2dad4f){return _0x1592d5(_0x48dd50,_0x2dad4f);},'abCwu':function(_0x14dcfb,_0x185506,_0x60884e){return _0x14dcfb(_0x185506,_0x60884e);},'BfbEw':function(_0x67ed23,_0x201d7a){const _0x48ca36=_0x40b0;return _0x419b54[_0x48ca36(0x22a)](_0x67ed23,_0x201d7a);},'tLgNT':_0x419b54[_0x36a5e8(0x171)],'jnnDs':_0x419b54['oYgRD'],'SvtTs':function(_0x4cdaa1,_0x3bd714){return _0x4cdaa1<_0x3bd714;},'OLeQW':_0x419b54[_0x36a5e8(0x20c)],'cFAPk':function(_0x3ff8c3,_0x112597){return _0x419b54['hNGlk'](_0x3ff8c3,_0x112597);},'IpCqc':_0x36a5e8(0x2d7),'jSCOb':_0x419b54['lVxvg'],'bGqmu':function(_0x44c03a,_0x25f665){const _0xcff5d4=_0x36a5e8;return _0x419b54[_0xcff5d4(0x182)](_0x44c03a,_0x25f665);},'jsUxT':_0x419b54[_0x36a5e8(0x292)],'IeGeE':_0x36a5e8(0x28d),'hTRoL':_0x419b54[_0x36a5e8(0x14f)],'nLTnD':_0x419b54[_0x36a5e8(0x1e2)],'xoNse':_0x419b54[_0x36a5e8(0x302)],'ygJlr':function(_0x460b1e,_0x59abb7){return _0x460b1e+_0x59abb7;},'HFHSL':_0x419b54[_0x36a5e8(0x15d)],'UAoWx':_0x36a5e8(0x1b7),'NfJMV':_0x36a5e8(0x29f),'KzKqb':_0x419b54[_0x36a5e8(0x18e)],'RwrJF':_0x419b54[_0x36a5e8(0x2f5)],'iYUfe':_0x419b54['DNyXh'],'JqKMM':'ZYliG','iEQcs':_0x419b54[_0x36a5e8(0x2f4)],'AJxLD':_0x419b54[_0x36a5e8(0x1c0)],'rPPHe':function(_0x2633ba,_0x50e781){const _0x49a4ea=_0x36a5e8;return _0x419b54[_0x49a4ea(0x1f8)](_0x2633ba,_0x50e781);},'FhnDo':_0x36a5e8(0x2b6),'jApvL':_0x419b54['UoKFh'],'fceae':function(_0x27d3bf,_0x21e2e7){const _0x55514e=_0x36a5e8;return _0x419b54[_0x55514e(0x249)](_0x27d3bf,_0x21e2e7);},'OaIhh':_0x419b54['bbtAc'],'GIvNB':_0x36a5e8(0x25e),'ZklAG':function(_0x2ebe34,_0x1c2dce,_0x443c42){const _0x783ac9=_0x36a5e8;return _0x419b54[_0x783ac9(0x2ae)](_0x2ebe34,_0x1c2dce,_0x443c42);},'tixZV':_0x36a5e8(0x269),'ztTbh':_0x419b54[_0x36a5e8(0x181)],'DECky':_0x419b54[_0x36a5e8(0x274)],'wQEyG':_0x419b54[_0x36a5e8(0x202)],'lXBGr':'mJVjB','ABuFf':function(_0x35f9e9,_0x33ea5f){return _0x35f9e9>=_0x33ea5f;}};_0x419b54[_0x36a5e8(0x2e0)](setImmediate,()=>{const _0x3b5a9e=_0x36a5e8,_0x5a7134={'zaPFV':function(_0x5b177a,_0x4d4a5a){return _0x168773['BfbEw'](_0x5b177a,_0x4d4a5a);},'NmUaE':_0x168773['tLgNT'],'omcpV':function(_0x1d663f){return _0x1d663f();},'iJEWU':_0x168773[_0x3b5a9e(0x2bb)],'qecUr':function(_0x40a71f,_0x8efa3d){return _0x168773['SvtTs'](_0x40a71f,_0x8efa3d);},'DwMBz':_0x168773[_0x3b5a9e(0x17c)],'LXIkI':function(_0xa85429,_0x274a0d,_0x3718e8){const _0x26eae1=_0x3b5a9e;return _0x168773[_0x26eae1(0x1fd)](_0xa85429,_0x274a0d,_0x3718e8);},'cUXQm':function(_0x46c0c8,_0x164796){return _0x168773['cFAPk'](_0x46c0c8,_0x164796);},'BgPhX':_0x3b5a9e(0x1d1),'JwgJg':_0x3b5a9e(0x273),'gAMOW':_0x168773[_0x3b5a9e(0x2ca)],'AnGWA':_0x168773['jSCOb'],'nDREa':function(_0x216355,_0x5ca826){const _0x288d91=_0x3b5a9e;return _0x168773[_0x288d91(0x157)](_0x216355,_0x5ca826);},'iPLly':_0x3b5a9e(0x2fa),'RHPAo':function(_0x53a789,_0x24cc46){const _0x1c14cc=_0x3b5a9e;return _0x168773[_0x1c14cc(0x1e5)](_0x53a789,_0x24cc46);},'DVhSG':_0x168773[_0x3b5a9e(0x2cb)],'AVbFP':_0x3b5a9e(0x21d),'rXjjM':_0x168773['IeGeE'],'NEBhQ':_0x168773[_0x3b5a9e(0x2e7)],'YnmOK':function(_0x1bbfce,_0x41f52f){return _0x1bbfce===_0x41f52f;},'WrIva':_0x3b5a9e(0x2cc),'mRjcA':function(_0x326b7e,_0x275305){const _0x190829=_0x3b5a9e;return _0x168773[_0x190829(0x19c)](_0x326b7e,_0x275305);},'UvSSb':function(_0x1bc471,_0x246857){return _0x168773['BfbEw'](_0x1bc471,_0x246857);},'wJZng':_0x168773[_0x3b5a9e(0x17d)],'BOcrh':_0x168773[_0x3b5a9e(0x1b3)],'uIsTl':function(_0x210a6b,_0xcf8424){return _0x168773['ygJlr'](_0x210a6b,_0xcf8424);},'kXmty':function(_0x164691,_0xdb238e){return _0x164691(_0xdb238e);},'ImJkd':_0x168773[_0x3b5a9e(0x2dc)],'iYZHt':_0x168773[_0x3b5a9e(0x15f)],'lsfOt':_0x168773[_0x3b5a9e(0x285)],'qtKHB':_0x168773[_0x3b5a9e(0x204)],'FpzNv':_0x3b5a9e(0x286),'ZMbKI':_0x168773['RwrJF'],'OLMwc':_0x168773['iYUfe'],'EFrLk':function(_0x33a1c6,_0x23536f){const _0x357ef7=_0x3b5a9e;return _0x168773[_0x357ef7(0x1e5)](_0x33a1c6,_0x23536f);},'FGyKe':_0x168773[_0x3b5a9e(0x1aa)],'PUYHK':function(_0xb653c7,_0x2b39dd){return _0x168773['SvtTs'](_0xb653c7,_0x2b39dd);},'qpMKv':_0x168773[_0x3b5a9e(0x1dd)],'zBSil':_0x3b5a9e(0x2e1),'vBWZN':_0x168773[_0x3b5a9e(0x148)],'IixqK':function(_0x1eef0c,_0x14a403){return _0x1eef0c<_0x14a403;},'FHAsr':function(_0x4955a7,_0x2ba1c3){const _0x3f77ec=_0x3b5a9e;return _0x168773[_0x3f77ec(0x2bf)](_0x4955a7,_0x2ba1c3);},'esCyu':function(_0x13ffc4,_0x341590){return _0x168773['rPPHe'](_0x13ffc4,_0x341590);},'tQlBL':function(_0x197bed,_0x1d8b37){return _0x197bed(_0x1d8b37);},'DnZKv':_0x168773['FhnDo'],'gBpAC':_0x168773['jApvL'],'gzmIy':function(_0xfda9c0,_0x2ca331){return _0x168773['fceae'](_0xfda9c0,_0x2ca331);},'XSxyC':'XCnlj','FwEEQ':function(_0x1481f9,_0x56024a){return _0x1481f9<_0x56024a;},'oFPHE':_0x168773[_0x3b5a9e(0x27b)],'cdoeu':_0x168773[_0x3b5a9e(0x31a)],'BVkaa':'HKNXA','fOBHG':function(_0x2b4022,_0x552039,_0x211012){const _0x3fb03a=_0x3b5a9e;return _0x168773[_0x3fb03a(0x21e)](_0x2b4022,_0x552039,_0x211012);},'RWUju':function(_0xbad2e0,_0x1eb646){const _0x2947d4=_0x3b5a9e;return _0x168773[_0x2947d4(0x2bf)](_0xbad2e0,_0x1eb646);},'iLphr':function(_0x3a6cc5,_0x3ffcf7){return _0x3a6cc5===_0x3ffcf7;},'pQILU':_0x168773['tixZV'],'haxyM':_0x168773['ztTbh'],'jnDrO':_0x3b5a9e(0x26d),'hFeDM':function(_0x297035,_0x1bd9cb){const _0x4ca2f9=_0x3b5a9e;return _0x168773[_0x4ca2f9(0x19c)](_0x297035,_0x1bd9cb);}};if(_0x168773['BfbEw'](_0x168773[_0x3b5a9e(0x2da)],_0x168773['wQEyG']))_0x4972ed[_0x3b5a9e(0x2f9)+_0x5264cc[_0x3b5a9e(0x1d3)]]=0x0;else switch(_0x4d27f2['cach_tinh']){case'9':{_0x4d27f2[_0x3b5a9e(0x2d6)]='',utils[_0x3b5a9e(0x2f1)](_0x52d191,_0x4d27f2[_0x3b5a9e(0x287)],(_0x486d1f,_0x7ee175)=>{const _0x3b6dca=_0x3b5a9e;if(_0x486d1f){if(_0x5a7134[_0x3b6dca(0x2b7)](_0x5a7134[_0x3b6dca(0x184)],_0x5a7134['NmUaE']))return _0x218153();else _0x448dba(_0x1064c0,_0x5c23ea);}_[_0x3b6dca(0x1a2)](_0x7ee175)?(_0x4d27f2['so_kn']=_0x7ee175,_0x4d27f2['so_kn_nt']=_0x7ee175,_0x4d27f2['so_kt']=_0x7ee175,_0x4d27f2[_0x3b6dca(0x21b)]=_0x7ee175):_0x4d27f2[_0x3b6dca(0x1cf)]=_0x7ee175,_0x5a7134['omcpV'](_0x218153);});break;}case'2':{if(_0x168773[_0x3b5a9e(0x216)](_0x168773['lXBGr'],_0x168773[_0x3b5a9e(0x20d)])){_0x4d27f2[_0x3b5a9e(0x2d6)]='',async[_0x3b5a9e(0x2ed)](_0x412abf,(_0x351829,_0x1e8e91)=>{const _0x2270d1=_0x3b5a9e,_0x227ab7={'bSlVm':_0x5a7134[_0x2270d1(0x28c)],'KvsMN':function(_0x15b298,_0x40ed0d){return _0x5a7134['qecUr'](_0x15b298,_0x40ed0d);},'sRmLp':_0x5a7134[_0x2270d1(0x290)],'eaanE':function(_0x33cb55,_0xf9c6d6,_0x2f621c){const _0x108b25=_0x2270d1;return _0x5a7134[_0x108b25(0x235)](_0x33cb55,_0xf9c6d6,_0x2f621c);},'nkAFH':_0x2270d1(0x2ec),'BJANx':function(_0x1a020c,_0x56f0f9){const _0x494189=_0x2270d1;return _0x5a7134[_0x494189(0x264)](_0x1a020c,_0x56f0f9);},'NeISS':_0x5a7134[_0x2270d1(0x233)],'AphWr':function(_0xb3072f,_0x220f8d){return _0xb3072f+_0x220f8d;},'QlCan':_0x5a7134[_0x2270d1(0x26f)],'ZhESK':_0x5a7134[_0x2270d1(0x2de)],'CGvBv':_0x5a7134['AnGWA'],'njUxi':function(_0x286ca9,_0x17674d){return _0x5a7134['nDREa'](_0x286ca9,_0x17674d);},'JClDq':_0x2270d1(0x307),'iFYOT':_0x5a7134[_0x2270d1(0x303)],'iGLqM':function(_0x30490a,_0x5446fe){return _0x5a7134['RHPAo'](_0x30490a,_0x5446fe);},'TiVYU':_0x5a7134[_0x2270d1(0x198)],'LgBvs':function(_0x594471,_0x4b9f2d,_0x3a55d6,_0x380f02,_0x5348d9,_0x43cb7f){return _0x594471(_0x4b9f2d,_0x3a55d6,_0x380f02,_0x5348d9,_0x43cb7f);},'bEhSX':_0x5a7134['AVbFP'],'BFtMc':_0x5a7134[_0x2270d1(0x210)],'mIRqn':_0x5a7134[_0x2270d1(0x21f)],'QPURz':function(_0x43a3c0,_0x134ecd){return _0x43a3c0(_0x134ecd);},'qcGOp':function(_0xe7ed7d,_0x2eed30){const _0x1d017c=_0x2270d1;return _0x5a7134[_0x1d017c(0x277)](_0xe7ed7d,_0x2eed30);},'XIndP':_0x5a7134[_0x2270d1(0x1f5)],'fUjfM':function(_0x34e96e,_0x5bb48b){const _0x3b3f45=_0x2270d1;return _0x5a7134[_0x3b3f45(0x284)](_0x34e96e,_0x5bb48b);},'IVvfd':function(_0x20be4f,_0x42cb3e){const _0x3e8052=_0x2270d1;return _0x5a7134[_0x3e8052(0x1c3)](_0x20be4f,_0x42cb3e);},'dVScg':_0x5a7134[_0x2270d1(0x280)],'WLwMB':'OUIRA','TiQdB':_0x5a7134[_0x2270d1(0x196)],'TrgRQ':function(_0x3c2355,_0x4d6fc3){const _0x4628c3=_0x2270d1;return _0x5a7134[_0x4628c3(0x22b)](_0x3c2355,_0x4d6fc3);},'DcEMy':'RTKBK','tnxum':function(_0x50d26f,_0x39794a){const _0xc7fcd0=_0x2270d1;return _0x5a7134[_0xc7fcd0(0x2f7)](_0x50d26f,_0x39794a);},'ulDAa':_0x5a7134[_0x2270d1(0x31c)],'FOphR':_0x5a7134[_0x2270d1(0x153)],'OlZpO':_0x5a7134[_0x2270d1(0x1e1)]};_0x5a7134[_0x2270d1(0x289)](_0x5a7134[_0x2270d1(0x250)],_0x5a7134[_0x2270d1(0x2aa)])?_0x5a7134['cUXQm'](setImmediate,async()=>{const _0x13cadb=_0x2270d1,_0x14f84f={'YesNC':function(_0x32323b,_0x523bc6){return _0x32323b+_0x523bc6;},'uucfS':function(_0x3b6245,_0x12b761){return _0x227ab7['AphWr'](_0x3b6245,_0x12b761);},'AVFYs':'socaitt','OBTGq':_0x227ab7['QlCan'],'LNvdY':_0x227ab7[_0x13cadb(0x222)],'haXDP':_0x227ab7[_0x13cadb(0x282)],'EJVxf':function(_0x1ec42c,_0x1617ca){const _0x454852=_0x13cadb;return _0x227ab7[_0x454852(0x1cc)](_0x1ec42c,_0x1617ca);},'PfmJz':_0x227ab7[_0x13cadb(0x1f4)],'LJnqV':_0x227ab7[_0x13cadb(0x30a)],'RNMaC':function(_0x95e47f,_0xb4fba5,_0x13122f){const _0xc78cfc=_0x13cadb;return _0x227ab7[_0xc78cfc(0x2cf)](_0x95e47f,_0xb4fba5,_0x13122f);}};let _0x4a1db4={'ngay_ct':{'$gte':_0x351829[_0x13cadb(0x205)],'$lte':_0x351829['den_ngay']},'id_app':_0x52d191[_0x13cadb(0x2a2)]};_0x52d191[_0x13cadb(0x165)]&&(_0x4a1db4['ma_dvcs']=_0x52d191[_0x13cadb(0x165)]);_0x52d191[_0x13cadb(0x2d8)]&&(_0x227ab7['iGLqM'](_0x13cadb(0x1c6),_0x13cadb(0x1c6))?_0x30661c['dieu_kien_khac']=_0x14f84f[_0x13cadb(0x2ee)](_0x14f84f[_0x13cadb(0x1b1)]('{',_0x363e89[_0x13cadb(0x315)]),'}'):_0x4a1db4['ma_bp']=_0x52d191[_0x13cadb(0x2d8)]);_0x52d191['ma_hd']&&(_0x4a1db4[_0x13cadb(0x21c)]=_0x52d191[_0x13cadb(0x21c)]);_0x52d191[_0x13cadb(0x239)]&&(_0x4a1db4[_0x13cadb(0x239)]=_0x52d191['ma_dt']);_0x52d191[_0x13cadb(0x301)]&&(_0x4a1db4[_0x13cadb(0x301)]=_0x52d191['ma_sp']);if(_0x52d191[_0x13cadb(0x229)]){if(_0x227ab7[_0x13cadb(0x168)]!==_0x227ab7[_0x13cadb(0x168)]){const _0x27fb0a=_0x227ab7[_0x13cadb(0x164)][_0x13cadb(0x20a)]('|');let _0x300ce4=0x0;while(!![]){switch(_0x27fb0a[_0x300ce4++]){case'0':_0x227ab7[_0x13cadb(0x231)](_0x48350f[_0x13cadb(0x2f9)+_0x4773dd[_0x13cadb(0x1d3)]+'_nt'],0x0)&&_0x297f99[_0x13cadb(0x1c4)]&&(_0x3e018f[_0x13cadb(0x2f9)+_0x4606a7[_0x13cadb(0x1d3)]+_0x13cadb(0x291)]=0x0);continue;case'1':_0x49d7fc[_0x13cadb(0x2f9)+_0x32d358['ma_ky']]<0x0&&_0x90cd02[_0x13cadb(0x1c4)]&&(_0x33c649['so_'+_0x4be671['ma_ky']]=0x0);continue;case'2':_0x17fe54[_0x13cadb(0x2f9)+_0x230a1f[_0x13cadb(0x1d3)]+_0x13cadb(0x291)]=_0x2a4a74[_0x13cadb(0x23e)](_0x227ab7[_0x13cadb(0x314)]);continue;case'3':_0x227ab7[_0x13cadb(0x2cf)](_0x1ea9a6,null,_0x2181c9);continue;case'4':_0x47453c[_0x13cadb(0x2f9)+_0x586975[_0x13cadb(0x1d3)]]=_0xf9dc8c[_0x13cadb(0x23e)](_0x227ab7['nkAFH']);continue;case'5':if(_0x300a80)return _0x227ab7[_0x13cadb(0x2c1)](_0x4fca1c,_0x1dd0a9);continue;}break;}}else _0x4a1db4[_0x13cadb(0x229)]=_0x52d191['ma_nv'];}_0x4d27f2[_0x13cadb(0x28d)]&&(_0x4a1db4['ma_phi']={'$in':await _0x227ab7[_0x13cadb(0x228)](getCodeChildren,global['getModel'](_0x227ab7[_0x13cadb(0x218)]),_0x52d191['id_app'],_0x4d27f2[_0x13cadb(0x28d)],_0x227ab7[_0x13cadb(0x1ea)],_0x227ab7[_0x13cadb(0x232)])});let _0xeae7d8=_0x227ab7[_0x13cadb(0x1f1)](getRegString,_0x4d27f2['tk_no']);_0xeae7d8&&(_0x227ab7['qcGOp'](_0x227ab7[_0x13cadb(0x22c)],_0x227ab7[_0x13cadb(0x22c)])?_0x4d27f2[_0x13cadb(0x1ef)]?_0x4a1db4[_0x13cadb(0x253)]={'$not':new RegExp(_0xeae7d8)}:_0x4a1db4['tk_no']={'$regex':_0xeae7d8,'$options':'i'}:_0x4ac50b[_0x13cadb(0x2d8)]=_0x4ce058[_0x13cadb(0x2d8)]);let _0x5789f5=_0x227ab7[_0x13cadb(0x1e8)](getRegString,_0x4d27f2[_0x13cadb(0x1a0)]);_0x5789f5&&(_0x4d27f2[_0x13cadb(0x299)]&&_0x5789f5?_0x4a1db4['tk_co']={'$not':new RegExp(_0x5789f5)}:_0x4a1db4[_0x13cadb(0x1a0)]={'$regex':_0x5789f5,'$options':'i'});if(_0x4d27f2[_0x13cadb(0x315)])try{if(_0x227ab7[_0x13cadb(0x193)](_0x227ab7[_0x13cadb(0x2e6)],_0x227ab7[_0x13cadb(0x1ba)])){const _0x5bb3c1={'tvBAG':function(_0xf537c,_0x422d84){return _0x227ab7['BJANx'](_0xf537c,_0x422d84);},'zSGCb':_0x227ab7['NeISS'],'pjzOc':function(_0x90334f,_0x470dce){return _0x90334f<_0x470dce;}};let _0x1325f1={..._0x2ee09e};_0x1325f1[_0x13cadb(0x265)]=_0x2322b1[_0x13cadb(0x313)],_0x1325f1['bu_tru']=_0x138b53[_0x13cadb(0x167)],_0x1325f1['tk']=_0x7a6c0f['tk'],delete _0x1325f1['tu_ngay'],delete _0x1325f1[_0x13cadb(0x313)],_0x2e2058(_0x1325f1,function(_0x5e80dd,_0x32b59e){const _0x41d5bc=_0x13cadb,_0x53f0ab='1|3|2|4|5|0'['split']('|');let _0x4e031c=0x0;while(!![]){switch(_0x53f0ab[_0x4e031c++]){case'0':_0xd9bb2e(null,_0x479597);continue;case'1':if(_0x5e80dd)return _0x5bb3c1[_0x41d5bc(0x27a)](_0xcdb214,_0x5e80dd);continue;case'2':_0x337e03[_0x41d5bc(0x2f9)+_0x28bfe7[_0x41d5bc(0x1d3)]+_0x41d5bc(0x291)]=_0x32b59e['csum']('du_co_nt00');continue;case'3':_0x262b00[_0x41d5bc(0x2f9)+_0x50d73c[_0x41d5bc(0x1d3)]]=_0x32b59e[_0x41d5bc(0x23e)](_0x5bb3c1['zSGCb']);continue;case'4':_0x5bb3c1['pjzOc'](_0x239331['so_'+_0x3791fd[_0x41d5bc(0x1d3)]],0x0)&&_0x3034b3[_0x41d5bc(0x1c4)]&&(_0x56dbc8[_0x41d5bc(0x2f9)+_0xb4e47a[_0x41d5bc(0x1d3)]]=0x0);continue;case'5':_0x5bb3c1['pjzOc'](_0x32d4ac[_0x41d5bc(0x2f9)+_0x48a7e3[_0x41d5bc(0x1d3)]+_0x41d5bc(0x291)],0x0)&&_0x4f2ad5['khong_am']&&(_0x58b8ec[_0x41d5bc(0x2f9)+_0x9a10e6[_0x41d5bc(0x1d3)]+_0x41d5bc(0x291)]=0x0);continue;}break;}});}else{_0x4d27f2[_0x13cadb(0x315)][_0x13cadb(0x317)]('{')<0x0&&(_0x227ab7['TiQdB']!==_0x227ab7['TiQdB']?_0x2d4d3c[_0x13cadb(0x299)]&&_0x44f09f?_0x40b815[_0x13cadb(0x1a0)]={'$not':new _0x3dac9a(_0x4edef6)}:_0x42ece3[_0x13cadb(0x1a0)]={'$regex':_0x3e9da7,'$options':'i'}:_0x4d27f2[_0x13cadb(0x315)]=_0x227ab7[_0x13cadb(0x2b4)](_0x227ab7[_0x13cadb(0x1e6)]('{',_0x4d27f2[_0x13cadb(0x315)]),'}'));let _0x248ec7=_0x4d27f2[_0x13cadb(0x315)];_0x248ec7['indexOf'](_0x13cadb(0x254))<0x0&&(_0x248ec7=_0x13cadb(0x254)+_0x248ec7);let _0x3df375=utils['evalute'](_0x248ec7,{'moment':moment,'condition':_0x4a1db4,'row':_0x4d27f2});_0x4a1db4={..._0x4a1db4,..._0x3df375};}}catch(_0x3b9ef2){if(_0x227ab7[_0x13cadb(0x1f2)](_0x227ab7[_0x13cadb(0x14c)],_0x13cadb(0x30e)))_0x29f205[_0x13cadb(0x2f9)+_0x4706f9[_0x13cadb(0x1d3)]]=0x0;else return _0x227ab7['tnxum'](_0x1e8e91,_0x3b9ef2[_0x13cadb(0x257)]());}let _0x12a65d;_0x4d27f2[_0x13cadb(0x319)]?_0x227ab7[_0x13cadb(0x28f)](_0x227ab7['ulDAa'],_0x227ab7['FOphR'])?_0x1b33d6=_0x49fe8b[_0x13cadb(0x1eb)](_0x14f84f[_0x13cadb(0x26b)]):(_0x4a1db4[_0x13cadb(0x319)]=_0x4d27f2[_0x13cadb(0x319)],_0x12a65d=global[_0x13cadb(0x1eb)](_0x227ab7['OlZpO'])):_0x12a65d=global[_0x13cadb(0x1eb)]('socaitt'),_0x12a65d[_0x13cadb(0x16c)](_0x4a1db4)[_0x13cadb(0x2c0)]()['exec']((_0x5472d7,_0x76fed9)=>{const _0x59baf6=_0x13cadb,_0x21f2b0={'GBviL':_0x14f84f[_0x59baf6(0x2f6)]};if(_0x14f84f[_0x59baf6(0x1cd)]===_0x14f84f[_0x59baf6(0x2d5)])_0x17f6df(_0x3b036b||_0x21f2b0[_0x59baf6(0x1a6)]);else{if(_0x5472d7)return _0x14f84f['EJVxf'](_0x1e8e91,_0x5472d7);_0x4d27f2[_0x59baf6(0x2f9)+_0x351829[_0x59baf6(0x1d3)]]=_0x76fed9['csum'](_0x14f84f[_0x59baf6(0x1ff)]),_0x4d27f2['so_'+_0x351829['ma_ky']+_0x59baf6(0x291)]=_0x76fed9[_0x59baf6(0x23e)](_0x14f84f[_0x59baf6(0x2b5)]),_0x14f84f[_0x59baf6(0x1a4)](_0x1e8e91,null,_0x4d27f2);}});}):_0x472680[_0x2270d1(0x21c)]=_0x371958[_0x2270d1(0x21c)];},(_0xe85ac4,_0xefa821)=>{_0x218153(_0xe85ac4,_0xefa821);});break;}else _0x68e638[_0x3b5a9e(0x1a0)]={'$regex':_0x36d87c,'$options':'i'};}case'5':{_0x4d27f2[_0x3b5a9e(0x2d6)]='',async[_0x3b5a9e(0x2ed)](_0x412abf,(_0x2f1d65,_0x564b59)=>{const _0x1763bf=_0x3b5a9e;if(_0x168773[_0x1763bf(0x262)](_0x168773['bArmY'],_0x1763bf(0x219))){let _0x246aa7={..._0x52d191};_0x246aa7[_0x1763bf(0x265)]=_0x2f1d65[_0x1763bf(0x205)],_0x246aa7[_0x1763bf(0x294)]=_0x4d27f2[_0x1763bf(0x167)],_0x246aa7['tk']=_0x4d27f2['tk'],delete _0x246aa7[_0x1763bf(0x205)],delete _0x246aa7['den_ngay'],_0x168773[_0x1763bf(0x1c5)](dktk,_0x246aa7,function(_0x2886e0,_0x1ef2eb){const _0x4dc774=_0x1763bf,_0x443b9c={'xylRc':function(_0x533560,_0x2d4c64){return _0x533560(_0x2d4c64);}};if(_0x5a7134[_0x4dc774(0x1c3)](_0x4dc774(0x155),_0x5a7134[_0x4dc774(0x2ac)]))_0x5ac41e='return\x20'+_0x2a81a1;else{if(_0x2886e0)return _0x5a7134[_0x4dc774(0x264)](_0x564b59,_0x2886e0);_0x4d27f2['so_'+_0x2f1d65[_0x4dc774(0x1d3)]]=_0x1ef2eb[_0x4dc774(0x23e)](_0x5a7134['OLMwc']),_0x4d27f2['so_'+_0x2f1d65[_0x4dc774(0x1d3)]+_0x4dc774(0x291)]=_0x1ef2eb['csum'](_0x5a7134[_0x4dc774(0x290)]);if(_0x5a7134[_0x4dc774(0x247)](_0x4d27f2[_0x4dc774(0x2f9)+_0x2f1d65['ma_ky']],0x0)&&_0x4d27f2[_0x4dc774(0x1c4)]){if(_0x5a7134[_0x4dc774(0x17a)](_0x5a7134[_0x4dc774(0x2db)],'ZYliG'))return _0x19d8a9[_0x4dc774(0x2fe)](_0x304318['error'],_0x571627),_0x443b9c[_0x4dc774(0x29d)](_0x54275a,_0x265144[_0x4dc774(0x2fe)][_0x4dc774(0x2bc)]||_0x4a0b85[_0x4dc774(0x2fe)][_0x4dc774(0x2fe)]||_0x57312b[_0x4dc774(0x2fe)]);else _0x4d27f2[_0x4dc774(0x2f9)+_0x2f1d65['ma_ky']]=0x0;}_0x5a7134[_0x4dc774(0x1d8)](_0x4d27f2[_0x4dc774(0x2f9)+_0x2f1d65[_0x4dc774(0x1d3)]+'_nt'],0x0)&&_0x4d27f2[_0x4dc774(0x1c4)]&&(_0x5a7134[_0x4dc774(0x1c3)](_0x5a7134[_0x4dc774(0x2bd)],_0x5a7134['qpMKv'])?_0x4d27f2[_0x4dc774(0x2f9)+_0x2f1d65[_0x4dc774(0x1d3)]+_0x4dc774(0x291)]=0x0:_0x3501f4['so_'+_0x1556aa['ma_ky']+'_nt']=0x0),_0x5a7134[_0x4dc774(0x235)](_0x564b59,null,_0x4d27f2);}});}else _0x147530[_0x1763bf(0x2f9)+_0xfa143f[_0x1763bf(0x1d3)]+_0x1763bf(0x291)]=0x0;},(_0x1bffc8,_0x3f3a8f)=>{_0x218153(_0x1bffc8,_0x3f3a8f);});break;}case'6':{_0x4d27f2[_0x3b5a9e(0x2d6)]='',async[_0x3b5a9e(0x2ed)](_0x412abf,(_0x3eb9ab,_0x473f4e)=>{const _0x4616f5=_0x3b5a9e,_0x3eb399={'VTurm':function(_0x57bb61,_0xc08a52){const _0x31a5b7=_0x40b0;return _0x5a7134[_0x31a5b7(0x156)](_0x57bb61,_0xc08a52);},'zYRAZ':function(_0x517f43,_0x589861){const _0x3784fe=_0x40b0;return _0x5a7134[_0x3784fe(0x283)](_0x517f43,_0x589861);}};if(_0x5a7134['zaPFV'](_0x5a7134[_0x4616f5(0x306)],_0x5a7134[_0x4616f5(0x245)])){if(_0x3eb399[_0x4616f5(0x162)](_0x3fe542,!_0x32f277))return _0x378d3a(_0x21df4e);_0x3eb399[_0x4616f5(0x29e)](_0x5238d7,_0x3e1744);}else{let _0x4e4b89={..._0x52d191};_0x4e4b89['ngay']=_0x3eb9ab['tu_ngay'],_0x4e4b89['bu_tru']=_0x4d27f2['bu_tru_cong_no'],_0x4e4b89['tk']=_0x4d27f2['tk'],delete _0x4e4b89[_0x4616f5(0x205)],delete _0x4e4b89[_0x4616f5(0x313)],_0x5a7134[_0x4616f5(0x235)](dktk,_0x4e4b89,function(_0x2cd435,_0x4b6e7a){const _0x9e5344=_0x4616f5,_0x198388=_0x5a7134[_0x9e5344(0x2c6)]['split']('|');let _0x32a102=0x0;while(!![]){switch(_0x198388[_0x32a102++]){case'0':if(_0x2cd435)return _0x473f4e(_0x2cd435);continue;case'1':_0x4d27f2[_0x9e5344(0x2f9)+_0x3eb9ab[_0x9e5344(0x1d3)]]=_0x4b6e7a[_0x9e5344(0x23e)](_0x5a7134[_0x9e5344(0x233)]);continue;case'2':_0x4d27f2[_0x9e5344(0x2f9)+_0x3eb9ab[_0x9e5344(0x1d3)]+_0x9e5344(0x291)]=_0x4b6e7a['csum'](_0x5a7134['vBWZN']);continue;case'3':_0x5a7134[_0x9e5344(0x1da)](_0x4d27f2['so_'+_0x3eb9ab[_0x9e5344(0x1d3)]],0x0)&&_0x4d27f2[_0x9e5344(0x1c4)]&&(_0x4d27f2[_0x9e5344(0x2f9)+_0x3eb9ab[_0x9e5344(0x1d3)]]=0x0);continue;case'4':_0x5a7134[_0x9e5344(0x235)](_0x473f4e,null,_0x4d27f2);continue;case'5':_0x5a7134[_0x9e5344(0x244)](_0x4d27f2[_0x9e5344(0x2f9)+_0x3eb9ab[_0x9e5344(0x1d3)]+_0x9e5344(0x291)],0x0)&&_0x4d27f2[_0x9e5344(0x1c4)]&&(_0x4d27f2[_0x9e5344(0x2f9)+_0x3eb9ab[_0x9e5344(0x1d3)]+'_nt']=0x0);continue;}break;}});}},(_0x575e5b,_0x2d1b3d)=>{_0x5a7134['LXIkI'](_0x218153,_0x575e5b,_0x2d1b3d);});break;}case'7':{_0x4d27f2[_0x3b5a9e(0x2d6)]='',async[_0x3b5a9e(0x2ed)](_0x412abf,(_0x2b7aad,_0x2adc84)=>{const _0x56f740=_0x3b5a9e,_0x53efb5={'HJuYb':function(_0x545568,_0x105fde,_0x33610b){return _0x5a7134['LXIkI'](_0x545568,_0x105fde,_0x33610b);}};if(_0x5a7134['cdoeu']!==_0x5a7134['BVkaa']){let _0x104231={..._0x52d191};_0x104231[_0x56f740(0x265)]=_0x2b7aad[_0x56f740(0x313)],_0x104231[_0x56f740(0x294)]=_0x4d27f2['bu_tru_cong_no'],_0x104231['tk']=_0x4d27f2['tk'],delete _0x104231[_0x56f740(0x205)],delete _0x104231[_0x56f740(0x313)],cktk(_0x104231,function(_0x46a8fc,_0x2d4934){const _0x2ab54a=_0x56f740;if(_0x46a8fc)return _0x5a7134['cUXQm'](_0x2adc84,_0x46a8fc);_0x4d27f2['so_'+_0x2b7aad[_0x2ab54a(0x1d3)]]=_0x2d4934[_0x2ab54a(0x23e)](_0x5a7134[_0x2ab54a(0x1b5)]),_0x4d27f2['so_'+_0x2b7aad[_0x2ab54a(0x1d3)]+'_nt']=_0x2d4934[_0x2ab54a(0x23e)](_0x5a7134[_0x2ab54a(0x290)]),_0x4d27f2[_0x2ab54a(0x2f9)+_0x2b7aad[_0x2ab54a(0x1d3)]]<0x0&&_0x4d27f2[_0x2ab54a(0x1c4)]&&(_0x5a7134[_0x2ab54a(0x1b0)](_0x5a7134[_0x2ab54a(0x275)],_0x5a7134[_0x2ab54a(0x275)])?_0x1edb69[_0x2ab54a(0x2f9)+_0x3ea8ef[_0x2ab54a(0x1d3)]]=0x0:_0x4d27f2['so_'+_0x2b7aad[_0x2ab54a(0x1d3)]]=0x0),_0x5a7134[_0x2ab54a(0x2fb)](_0x4d27f2[_0x2ab54a(0x2f9)+_0x2b7aad[_0x2ab54a(0x1d3)]+'_nt'],0x0)&&_0x4d27f2[_0x2ab54a(0x1c4)]&&(_0x5a7134[_0x2ab54a(0x2b7)](_0x5a7134[_0x2ab54a(0x2eb)],_0x2ab54a(0x312))?_0x49966a[_0x2ab54a(0x1ef)]?_0x22217a[_0x2ab54a(0x253)]={'$not':new _0x31e569(_0x24d95d)}:_0x573ccf[_0x2ab54a(0x253)]={'$regex':_0x14163a,'$options':'i'}:_0x4d27f2[_0x2ab54a(0x2f9)+_0x2b7aad[_0x2ab54a(0x1d3)]+_0x2ab54a(0x291)]=0x0),_0x5a7134['LXIkI'](_0x2adc84,null,_0x4d27f2);});}else _0x53efb5[_0x56f740(0x29c)](_0x3c8a9,null,{'data':_0x3570fa[_0x56f740(0x1e7)](_0x45b5e9=>_0x45b5e9[_0x56f740(0x236)]),'columns':_0x7e7c2d});},(_0x130d4e,_0x4ffe4a)=>{const _0x30ba38=_0x3b5a9e;_0x5a7134[_0x30ba38(0x267)](_0x218153,_0x130d4e,_0x4ffe4a);});break;}case'8':{_0x4d27f2[_0x3b5a9e(0x2d6)]='',async[_0x3b5a9e(0x2ed)](_0x412abf,(_0x3938eb,_0x31a676)=>{const _0x4603e7=_0x3b5a9e,_0x51a4e0={'IKDJj':function(_0xefe92e,_0x43bb7d){const _0x572f3d=_0x40b0;return _0x168773[_0x572f3d(0x19c)](_0xefe92e,_0x43bb7d);}};let _0x43936d={..._0x52d191};_0x43936d[_0x4603e7(0x265)]=_0x3938eb[_0x4603e7(0x313)],_0x43936d[_0x4603e7(0x294)]=_0x4d27f2['bu_tru_cong_no'],_0x43936d['tk']=_0x4d27f2['tk'],delete _0x43936d[_0x4603e7(0x205)],delete _0x43936d[_0x4603e7(0x313)],_0x168773[_0x4603e7(0x1fd)](cktk,_0x43936d,function(_0xa4158e,_0x467520){const _0x22ac8f=_0x4603e7;if(_0xa4158e)return _0x5a7134[_0x22ac8f(0x283)](_0x31a676,_0xa4158e);_0x4d27f2['so_'+_0x3938eb[_0x22ac8f(0x1d3)]]=_0x467520['csum'](_0x5a7134[_0x22ac8f(0x233)]),_0x4d27f2['so_'+_0x3938eb[_0x22ac8f(0x1d3)]+'_nt']=_0x467520[_0x22ac8f(0x23e)](_0x5a7134[_0x22ac8f(0x276)]);if(_0x5a7134['RWUju'](_0x4d27f2[_0x22ac8f(0x2f9)+_0x3938eb['ma_ky']],0x0)&&_0x4d27f2['khong_am']){if(_0x5a7134[_0x22ac8f(0x261)](_0x5a7134[_0x22ac8f(0x238)],_0x5a7134[_0x22ac8f(0x18f)])){if(_0x6286f8[_0x22ac8f(0x2fe)])return _0x135478['error'](_0x2e09f0[_0x22ac8f(0x2fe)],_0x3cf59d),_0x51a4e0[_0x22ac8f(0x2d0)](_0x1477de,_0x5f0840[_0x22ac8f(0x2fe)][_0x22ac8f(0x2bc)]||_0x4ad449['error']['error']||_0x5b92a1[_0x22ac8f(0x2fe)]);_0x417791(null,_0x3e936a);}else _0x4d27f2[_0x22ac8f(0x2f9)+_0x3938eb[_0x22ac8f(0x1d3)]]=0x0;}_0x5a7134['FHAsr'](_0x4d27f2[_0x22ac8f(0x2f9)+_0x3938eb[_0x22ac8f(0x1d3)]+_0x22ac8f(0x291)],0x0)&&_0x4d27f2['khong_am']&&(_0x4d27f2[_0x22ac8f(0x2f9)+_0x3938eb['ma_ky']+_0x22ac8f(0x291)]=0x0),_0x5a7134[_0x22ac8f(0x267)](_0x31a676,null,_0x4d27f2);});},(_0xdea235,_0x4d84c9)=>{const _0x564c7d=_0x3b5a9e;_0x168773[_0x564c7d(0x1c9)](_0x218153,_0xdea235,_0x4d84c9);});break;}case'99':{if(!_0x4d27f2['script'])return _0x168773[_0x3b5a9e(0x1c9)](_0x218153,null,_0x4d27f2);if(_0x168773['ABuFf'](_0x4d27f2[_0x3b5a9e(0x172)][_0x3b5a9e(0x317)](_0x3b5a9e(0x30b)),0x0))return _0x218153(_0x3b5a9e(0x2a4));let _0x473f78=_0x3b5a9e(0x18c)+_0x4d27f2[_0x3b5a9e(0x172)]+'\x0a\x09\x09\x09\x09\x09\x09\x09\x09}catch(e){\x0a\x09\x09\x09\x09\x09\x09\x09\x09\x09return\x20{error:e}\x0a\x09\x09\x09\x09\x09\x09\x09\x09}\x0a\x09\x09\x09\x09\x09\x09\x09\x09\x0a\x09\x09\x09\x09\x09\x09\x09})';_0x4d27f2[_0x3b5a9e(0x2d6)]='',utils[_0x3b5a9e(0x1c7)](_0x473f78,{'row':_0x4d27f2,'moment':moment,'condition':_0x52d191,'user':_0x1ebf4a[_0x3b5a9e(0x242)],'_':_,'utils':utils})()[_0x3b5a9e(0x1fe)](_0x25b477=>{const _0x307376=_0x3b5a9e;if(_0x25b477){if(_0x5a7134[_0x307376(0x289)](_0x5a7134[_0x307376(0x234)],_0x5a7134[_0x307376(0x234)]))_0x5a7134[_0x307376(0x235)](_0x4ed1f8,_0x48f54b,_0x4edfc1);else{if(_0x25b477[_0x307376(0x2fe)])return console[_0x307376(0x2fe)](_0x25b477[_0x307376(0x2fe)],_0x473f78),_0x5a7134[_0x307376(0x2e5)](_0x218153,_0x25b477[_0x307376(0x2fe)][_0x307376(0x2bc)]||_0x25b477[_0x307376(0x2fe)][_0x307376(0x2fe)]||_0x25b477[_0x307376(0x2fe)]);_0x218153(null,_0x4d27f2);}}else _0x5a7134['fOBHG'](_0x218153,null,_0x4d27f2);})[_0x3b5a9e(0x14e)](_0x421f09=>{const _0x5ad53b=_0x3b5a9e;return console['error'](_0x421f09,_0x473f78),_0x218153(_0x421f09['message']||_0x421f09[_0x5ad53b(0x2fe)]||_0x421f09);});break;}default:_0x168773['emrZE'](_0x218153,null,_0x4d27f2);}});},function(_0x45fad6){const _0x4d3a19=_0xa179ce,_0xadfe20={'UiidP':function(_0xddc896,_0x825f3f){const _0x1545c2=_0x40b0;return _0x419b54[_0x1545c2(0x19f)](_0xddc896,_0x825f3f);},'fwZIS':function(_0x299160,_0x54b2c5,_0x2339b8){const _0x5b9290=_0x40b0;return _0x419b54[_0x5b9290(0x24c)](_0x299160,_0x54b2c5,_0x2339b8);},'qBFPH':function(_0x5e9eee,_0x3225aa,_0x319a80){return _0x5e9eee(_0x3225aa,_0x319a80);},'WyAaq':function(_0x350ff2){const _0x44ae2f=_0x40b0;return _0x419b54[_0x44ae2f(0x2d1)](_0x350ff2);}};if(_0x419b54[_0x4d3a19(0x17f)](_0x4d3a19(0x21a),_0x4d3a19(0x21a))){if(_0x45fad6)return _0x419b54[_0x4d3a19(0x2b3)](_0x5d9436,_0x45fad6);let _0xcca2cd=_0x412abf[_0x4d3a19(0x2ed)](_0x5db001=>'so_'+_0x5db001[_0x4d3a19(0x1d3)]+',so_'+_0x5db001['ma_ky']+'_nt')[_0x4d3a19(0x311)](',');utils[_0x4d3a19(0x2c7)](_0x2211a5,_0xcca2cd,async function(_0x2544a4){const _0x5d7c11=_0x4d3a19;if(_0x419b54[_0x5d7c11(0x1bc)]!==_0x419b54['AUrOU'])return _0x124ccd[_0x5d7c11(0x2fe)](_0x5b6974['error'],_0x33d1b1),_0xadfe20['UiidP'](_0xc3e287,_0x2b3f3a[_0x5d7c11(0x2fe)][_0x5d7c11(0x2bc)]||_0x37460a[_0x5d7c11(0x2fe)]);else{if(_0x21ce99['handle_data_expression_server']){if(_0x419b54['TiJIu'](_0x21ce99[_0x5d7c11(0x30c)]['indexOf'](_0x419b54[_0x5d7c11(0x15e)]),0x0))return _0x5d9436(_0x419b54[_0x5d7c11(0x279)]);let _0x524e68='return\x20(async\x20()=>{\x0a\x09\x09\x09\x09\x09\x09\x09try{\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+_0x21ce99['handle_data_expression_server']+'\x0a\x09\x09\x09\x09\x09\x09\x09}catch(e){\x0a\x09\x09\x09\x09\x09\x09\x09\x09return\x20{error:e}\x0a\x09\x09\x09\x09\x09\x09\x09}\x0a\x09\x09\x09\x09\x09\x09\x0a\x09\x09\x09\x09\x09\x09})';try{if(_0x419b54[_0x5d7c11(0x22a)](_0x419b54[_0x5d7c11(0x295)],_0x5d7c11(0x227)))_0x29e85e=_0x2ab74f[_0x5d7c11(0x313)];else{let _0x581c64=await utils[_0x5d7c11(0x1c7)](_0x524e68,{'data':_0x2544a4,'moment':moment,'numeral':numeral,'condition':_0x1ebf4a[_0x5d7c11(0x287)]})();if(_0x581c64){if(_0x419b54[_0x5d7c11(0x260)](_0x419b54[_0x5d7c11(0x237)],_0x419b54[_0x5d7c11(0x237)])){if(_0x581c64[_0x5d7c11(0x2fe)]){if(_0x419b54[_0x5d7c11(0x177)](_0x5d7c11(0x1e3),_0x5d7c11(0x1e3)))return console[_0x5d7c11(0x2fe)](_0x581c64['error'],_0x524e68),_0x419b54[_0x5d7c11(0x19f)](_0x5d9436,_0x581c64[_0x5d7c11(0x2fe)]['message']||_0x581c64[_0x5d7c11(0x2fe)]);else _0x33dc02['tk_no']={'$regex':_0x4fa541,'$options':'i'};}_0x2544a4=_0x581c64;}else{if(_0x59b580){if(_0x5bc011[_0x5d7c11(0x2fe)])return _0x4a60e2[_0x5d7c11(0x2fe)](_0x1013f6[_0x5d7c11(0x2fe)],_0xefcac8),_0xadfe20['UiidP'](_0x35b726,_0xc00b3e[_0x5d7c11(0x2fe)][_0x5d7c11(0x2bc)]||_0x429fb2[_0x5d7c11(0x2fe)][_0x5d7c11(0x2fe)]||_0x36fb56[_0x5d7c11(0x2fe)]);_0xadfe20[_0x5d7c11(0x251)](_0x3b7bab,null,_0x22844d);}else _0xadfe20[_0x5d7c11(0x1ac)](_0x37fda4,null,_0xf050c7);}}}}catch(_0xf21146){return console[_0x5d7c11(0x2fe)](_0xf21146,_0x524e68),_0x419b54[_0x5d7c11(0x19f)](_0x5d9436,_0xf21146[_0x5d7c11(0x2bc)]||_0xf21146);}}if(_0x1ebf4a['query'][_0x5d7c11(0x208)])_0x5d9436(null,{'data':_0x2544a4[_0x5d7c11(0x1e7)](_0x14ee6a=>_0x14ee6a[_0x5d7c11(0x236)]),'columns':_0x412abf});else{if(_0x419b54[_0x5d7c11(0x260)](_0x419b54[_0x5d7c11(0x23d)],'AhYgb')){if(_0x2eed8b)return _0xadfe20[_0x5d7c11(0x151)](_0x3e826e);_0x1c90bf[_0x5d7c11(0x1a2)](_0xa1f3a7)?(_0x4f1172['so_kn']=_0x3f1025,_0x4e5e1f[_0x5d7c11(0x1c2)]=_0xefb974,_0x25b67d['so_kt']=_0x1735ef,_0x189fab[_0x5d7c11(0x21b)]=_0x330286):_0x25161f[_0x5d7c11(0x1cf)]=_0x2eab46,_0x50c261();}else _0x419b54[_0x5d7c11(0x224)](_0x5d9436,null,_0x2544a4[_0x5d7c11(0x1e7)](_0x4fdf3d=>_0x4fdf3d['print']));}}});}else{let _0x42553c=_0x419b54['hNGlk'](_0x4bc661,_0x5cdffd)['endOf'](_0x419b54[_0x4d3a19(0x246)])[_0x4d3a19(0x25f)]();_0x42553c[_0x4d3a19(0x197)]()>_0x4fc72f['den_ngay'][_0x4d3a19(0x197)]()&&(_0x42553c=_0xebdaf8['den_ngay']),_0x1b644e[_0x4d3a19(0x1f6)]({'field':'so_'+_0x5a1b99['getFullYear'](),'header':''+_0x131438[_0x4d3a19(0x26a)](),'ma_ky':''+_0x20c834['getFullYear'](),'ten_ky':''+_0x48003c[_0x4d3a19(0x26a)](),'tu_ngay':_0x34b397,'den_ngay':_0x42553c}),_0x30d298=_0x419b54[_0x4d3a19(0x23f)](_0x87ec9d,_0x42553c)[_0x4d3a19(0x211)](0x1,_0x419b54[_0x4d3a19(0x1bf)])[_0x4d3a19(0x1fc)](_0x419b54[_0x4d3a19(0x309)])[_0x4d3a19(0x25f)]();}});})[_0x2fc02e(0x14e)](_0x5b765c=>{const _0x2467e6=_0x2fc02e;_0x33abb3[_0x2467e6(0x19b)](_0x5d9436,_0x33abb3[_0x2467e6(0x1be)](_0x5b765c,_0x2467e6(0x273)));});});};function _0x2c93(){const _0x461db9=['wxrdEva','yNHqz3e','zMLUza','tgXSs1K','CwHwr2C','ugTIzgq','r2NdOsb0CUg7IW','AuH4Bw4','C2nYAxb0','zgvUx25NyxLFA3q','C29FA3q','A092A1O','zxHLyW','B2PctNy','uwHXs1u','B1PpCuW','ruzYtgS','mJy1mJG0oe5qzhLyua','t0XLuvC','BKXuBKq','s2vsEey','se1ItKG','zgzpB3K','twLuwfu','Aw96vKC','q0DYywi','tM1vyuu','zgztq2e','s+g7SYbUW6b5','nZi0ntuXohP5CffrEa','swDLs1K','r2TVt00','C2v0wwvHCG','ExPRBxG','CMv0DxjUicHHC3LUyYaOkt0+EWOjcqKjcqKjcxrYExSkcqKjcqKjcqKj','Ahbxrg0','t01etfq','Agf4Eu0','EgDwsMW','t291DLm','C29YDa','svz2zMq','BezVuMO','wg9AqLa','qK9JCMG','z2v0vgLTzq','rfzOu0C','CwrItxK','yxn5BMm','sLf1BLK','DwPkr00','u2zNre4','zhvFy29FBNqWma','Ae5hBgS','DgTFy28','Du1sA3i','AxnoDw1Izxi','Chr0y3q','uK5nyum','Euvdv0i','r0j2AuW','zMLUze9Uzq','q3rmq2K','shjsANy','sNfltu0','AxfUzhy','CujgueG','uKDqy0S','t2jQzwn0swq','DhvFBMDHEv9RDa','z3PTsxK','DxvJzLm','odKWodG3mhz2DfbQAq','Eg9oC2u','zhvFBM9FBNqWma','t0XnD2m','zKvbseG','CKr6ufC','sLv3ree','B3DhreK','v0X3tui','Bg9KyxnO','qvvYt1u','EvzNCwG','vhnoq3i','zxDewKe','A0vzswu','m1vrsK1SEG','C29FA25FBNq','vxztu2i','A2HVBMDFyw0','sM9sCfG','seDvCKy','zxzHBhv0zq','wM9nt24','ywjdD3u','v0rytwm','z3nmq2q','BMPvEgK','te52zfK','DgzAtfa','DMfSDwvFC3rYAw5N','uujZquS','zhvFy28Wma','sujnEKC','BwfFA3K','s+g7SYb0CSAW4BUByW','DhvHBG','zvH3EKq','BgzRyvm','ufvzseS','uwzgsw8','swL4CuS','wxrwr3K','tLLmBxO','Auvry3m','BwPZBvi','D0vPyLe','wvn3r1a','BhnMt3q','zuPts1u','vgzdtuq','ngnIBxDZAG','yKDXBxu','vhjNuLe','zMLSDgvY','zLvQzK0','A1bLC0K','qKz0twm','z2v0tw9KzwW','zKjTChC','tKrLDxi','suvLAfG','z2LHBv90CNvFBM8','EM1XEuW','uvbvuNO','AuDmCu0','CLr2Aee','sKnSrhe','v3jjDMe','ChvZAa','wgv5uvu','zw95vgO','zg1KDa','shPnBMq','z1zez3e','C3rHCNrpzG','zw1YwKu','DgHLBG','ugzTsNO','s0nrCve','rNnxAg4','EuncyKm','mZq1mtyWExvHtxPz','s3PlCwi','DhvFBMDHEq','qLv0sw4','yMvWthO','Bg9HAv9REq','D2vLA3m','C3bSAxq','y3Ptrw8','CMfzrgG','BfHcr3i','B2LYsxq','EKvcshK','CLHQAK0','ywrK','B3Pmr3q','BwfFyNbFBwu','tvPnCMu','z1DYrfK','qMzIrxC','BgHVDgG','yKvOu1G','EeHKA1y','AerzyvO','C29FA3rFBNq','BwfFAgq','zg1WAgK','wMTSquC','tKvcAfe','Cur1rNm','sgjpwKi','wMHfu0S','yM5qwha','tgnws0y','vhLWzxm','tfLyD1e','tMDxuve','tgDcDNm','BwfFBNy','A0TiChm','DuLZvgW','weLUzfa','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCLjqva','DeXsswe','tMfSzha','rfLWDfC','s3zZtu4','BuLsCw4','qMDqAfG','AM5eCK8','tfHjA0K','ChjPBNq','vfnuueW','Cffjtfu','BwfFzhq','nhWWFdf8m3WY','uefmuxC','uhbtuKC','C2LVBvy','y3n1Bq','B0ntChG','ANv1tvi','ChHmzvq','DxnLCG','ywjrtK4','rKHbC3i','z0jWqum','C2Teq1K','CwvJvxi','yxLgzMC','wMTvBuO','Dg9Uz19JB25N','sffbvuy','rKL6rfK','yKXNy0C','shPvq0i','rNrorNu','Cxrlsei','zNDAsvm','zgf0zq','DgTFBM8','CMv0DxjUia','s0nqB2u','D2vLAW','Dg9tDhjPBMC','vLnmtfy','rfrctxq','mtHHEeHOu0W','y1rYzu8','C3L4r2O','wejotem','yurYCwW','Dg9eyxrL','uMnHDeq','AuXWAhi','vvPlwNO','thz6zM0','y1vyuw0','BMDHEq','BMfT','zK9cseC','tNvTyMvY','DuHpwKq','z2v0rNvSBfLLyxi','qvzgwxm','C3Pzsfa','Cfjsuvm','A0rXD0e','sNDNsMC','uM9mr3K','DLnSvxm','rhvHsKK','s2JdTg5NigpdSYbT4BQRDsbIW6fVigpdOw8GBSoGBYbJAg8GySoHBYbJW6fVig7dOhK','CNvnsKK','wfn4Eum','DKjxwK4','ww5Tt0S','vMLXy2e','weDtwfq','DhzcquC','t2fjAgG','EMzvC28','D0Dhsey','u0rJAhG','DLfLuwm','D0PABMC','z1rzve0','q0D2qNy','DffSqKW','BvjQy0e','tMzktvy','wuzey0K','CxvLCNK','vhbtAxO','uKHqqw8','mJeYnJaXmK1vD29bCW','EuD6uvm','AuPfv1u','BwfFCgHP','AKvxyxi','Cwnht3a','rhDnqNO','x250','q1vMveW','sxHuB0W','yNvFDhj1','BvrpDMy','ENnoBeK','nJyWmZq4mfLUyK1rvq','BK9UrMy','z2LHBv90CNvFy28','swnXqMO','t0fSzLq','seP1wwi','EhLSuMm','ELLsqvO','C29JywL0yW','D0Hnz2G','mZmXnZq0mezpAevgyq','AwrFyxbW','Bw9Tzw50','yxn5BMmGzNvUy3rPB24GAxmGBM90igfSBg93','D0jnBwS','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsb0AgfTihpHU5eGDog7QYbUz8oGEsH0Dv9Uz2f5ksWGXjhHUR9Uig5NW6b5kgrLBL9Uz2f5ksWGAwqGBEg6Q3uGySoHBYbJW6fV','vhxHUQDUia','CNb0zM9YBq','A2nrr20','rNb6tNy','whjbA1e','wK1Is0K','wfbKseu','vev3tKS','yMHLAxm','zw5Kt2y','EwvHCG','lI4VlI4VBgLICY9JA3rR','v2TAA1q','qxbOv3i','tePUCvy','ruv0s28','EMfqrLy','ELjVDgu','DwjisMG','zfj5zLO','AM5Urhm','BwvZC2fNzq','Cxbns3y','whnUuLK','u3z0vhm','BgvHBG','qKPbtNG','D2zTwgm','y3LHAxa','uxPdBxO','B05oBvq','EKjtAwW','y2fSy0DYAwq','EfbKA2y','CxvHCNrLCNm','sxbdCwm','ANnvEfq','q0TkEMe','z2v0tw9UDgG','whjUD00','zwfHBKu','suTesMO','tuPWCuq','C29FA24','rvHZuu0','EM5JA1m','Agfyrfa','y29Uz190AhvJ','z0TyAuy','BwfFyNa','uM9NDgi','revdA3K','rKD5s2u','seziu0W','wgHUzgW','z0fnt1C','u0TwDKe','zfzVzMe','mhWXFdj8m3W1Fdq','zfDUrhq','AKffCfy','vgJdOw5Nia','AezLre0','zfzty2C','AfrsB0W','sLP1BvO','zxHWB3j0CW','vog7Lw5NigpHU5LUzW','B0zqseu','zhvFBM8Wma','BwfW','wwvZtKm','vffvwwC','Bw9Uz29VC2u','z2v0sw5MB0zYB21rDwvYEq','Bw9UDgG','Auj1rw4','B1n2y0O','wNvizvC','t0jur3e','A1HTDhK','twXIwKi','C29F','DgLLBL9UDa','rNDfrve','uhrTAM8','yxDbEvC','zxjYB3i','u0rkAeu','AKPZtgq','BwfFC3a','sKDMz1C','AvbmBhK','z2v0','Cev1rgK','rg5As3y','DgLLBG','twHYzvK','qNnVCvK','Auzzt1q','yxn5BMmG','AgfUzgXLx2rHDgfFzxHWCMvZC2LVBL9Zzxj2zxi','CujmDuK','uLrlqKS','EMDpyKW','BgvUz3rO','AM9PBG','shzArvG','zgvUx25NyxK','C1jTtha','zgLLDv9RAwvUx2TOywm','lI4VlI4VBgLICY91DgLSCW','Aw5KzxHpzG','z2v0rgf0zq','BwfFA2HV','r0L2tKi','yK93zem','sw1kA2q','Ae9nrw4','vw1JD3q','vfnWvgW','Awj5DNy','vhLmsfm','nxW0Fdj8mxWWFdm','wuvrteW','quP4teq','DhPqD1q','BNvTzxjHBa','yMvts04','rgnftxK','tKXNshq','y2f0y2G','tMXkshy','t2XKCM8','v3Lbyxe','z2HqB2S','AvLAshq','C0TVAvm','vgHOCgO','zxndExu','y0zbugS','rMXdshO','Be1lCgS','vK11sve','B1b1D20','wg5Jzwe','BKrHqMm','DMPtCve','vufVv3G','ruPlq1K','u1DuDMq','vLr1CM0','qNvxChi','yLnSvM0','BwfFzhzJCW','A2niEfm','yNvFDhj1x2nVBMDFBM8','vgLwwvu','DwHNsLy'];_0x2c93=function(){return _0x461db9;};return _0x2c93();}
@@ -1,32 +1 @@
1
- const rptobject=global.getModel("rptobject"),dmkh=global.getModel("customer"),utils=require("../../libs/utils"),kbmpttct=global.getModel("kbmPttct"),async=require("async"),_=require("lodash"),{calcGrid,evalute}=require("../../libs/utils"),controller=require("../../controllers/controllerRPT"),rptform=global.getModel("rptform"),moment=require("moment"),numeral=require("numeral"),{getCodeChildren}=require("../../libs/utils"),getRegString=function($arrayTk$$){if($arrayTk$$)return $arrayTk$$.reg()};
2
- module.exports=function($router$$){new controller($router$$,"pttctkho",async($req$$,$callback$$)=>{const $query$$=$req$$.query;if(!($query$$.den_ngay&&$query$$.tu_ngay&&$query$$.id_rptform&&$query$$.bao_cao_theo))return $callback$$("B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u tham s\u1ed1 t\u1eeb ng\u00e0y(tu_ngay), \u0111\u1ebfn ng\u00e0y(den_ngay), m\u1eabu (id_rptform), \u0110\u1ed1i t\u01b0\u1ee3ng b\u00e1o c\u00e1o(bao_cao_theo)");if(!global.mongoose.Types.ObjectId.isValid($query$$.id_rptform))return $callback$$("M\u1eabu b\u00e1o c\u00e1o n\u00e0y kh\u00f4ng c\u00f3 gi\u00e1 tr\u1ecb");
3
- if($query$$.ma_bp){var $bps_dts_phis$$=await getCodeChildren(global.getModel("dmbp"),$query$$.id_app,$query$$.ma_bp,"ma_bp","ma_bp_me");$query$$.ma_bp={$in:$bps_dts_phis$$}}$query$$.ma_phi&&($bps_dts_phis$$=await getCodeChildren(global.getModel("dmphi"),$query$$.id_app,$query$$.ma_phi,"ma_phi","ma_phi_me"),$query$$.ma_phi={$in:$bps_dts_phis$$});$query$$.ma_dt&&($bps_dts_phis$$=await getCodeChildren(global.getModel("dmdt"),$query$$.id_app,$query$$.ma_dt,"ma_dt","ma_dt_me"),$query$$.ma_dt={$in:$bps_dts_phis$$});
4
- const $_rptform$$=await rptform.findOne({_id:$query$$.id_rptform,id_app:$query$$.id_app});if(!$_rptform$$)return $callback$$("M\u1eabu b\u00e1o c\u00e1o n\u00e0y kh\u00f4ng c\u00f3 gi\u00e1 tr\u1ecb");$query$$.tu_ngay=moment(new Date($query$$.tu_ngay)).startOf("date").toDate();$query$$.den_ngay=moment(new Date($query$$.den_ngay)).endOf("date").toDate();const $bao_cao_theo$$=$query$$.bao_cao_theo;let $report$$=$_rptform$$.report;$report$$&&$_rptform$$.report.length!==0||($report$$=await kbmpttct.find({id_rptform:$_rptform$$._id.toString(),
5
- id_app:$query$$.id_app}).sort({stt:1}).lean());async.parallel({dsobj:function($callback$$){if($bao_cao_theo$$=="thang_nam"){for(var $ds_quy_nam_ds_thang_nam$$=[],$currentDate_currentDate$$=new Date($query$$.tu_ngay);$currentDate_currentDate$$<=$query$$.den_ngay;){var $current_quarter_tu_ngay$$=Math.max(moment($currentDate_currentDate$$).startOf("month").toDate(),$query$$.tu_ngay),$den_ngay_tu_ngay$$=Math.min(moment($currentDate_currentDate$$).endOf("month").toDate(),$query$$.den_ngay);$ds_quy_nam_ds_thang_nam$$.push({field:"ngay_ct",
6
- ten_obj:`Th\u00e1ng ${$currentDate_currentDate$$.getMonth()+1}/${$currentDate_currentDate$$.getFullYear()}`,ma_obj:{$gte:$current_quarter_tu_ngay$$,$lte:$den_ngay_tu_ngay$$}});$currentDate_currentDate$$.setMonth($currentDate_currentDate$$.getMonth()+1)}console.log($bao_cao_theo$$,$ds_quy_nam_ds_thang_nam$$);return $callback$$(null,$ds_quy_nam_ds_thang_nam$$)}if($bao_cao_theo$$=="quy_nam"){$ds_quy_nam_ds_thang_nam$$=[];for($currentDate_currentDate$$=new Date($query$$.tu_ngay);$currentDate_currentDate$$<=
7
- $query$$.den_ngay;){$current_quarter_tu_ngay$$=moment($currentDate_currentDate$$).quarter();$den_ngay_tu_ngay$$=Math.max(moment($currentDate_currentDate$$).startOf("quarter").toDate(),$query$$.tu_ngay);let $den_ngay$$=Math.min(moment($currentDate_currentDate$$).endOf("quarter").toDate(),$query$$.den_ngay);$ds_quy_nam_ds_thang_nam$$.push({field:"ngay_ct",ten_obj:`Qu\u00fd ${$current_quarter_tu_ngay$$}/${$currentDate_currentDate$$.getFullYear()}`,ma_obj:{$gte:$den_ngay_tu_ngay$$,$lte:$den_ngay$$}});
8
- $currentDate_currentDate$$=moment($currentDate_currentDate$$).quarter($current_quarter_tu_ngay$$+1).toDate()}console.log($bao_cao_theo$$,$ds_quy_nam_ds_thang_nam$$);return $callback$$(null,$ds_quy_nam_ds_thang_nam$$)}rptobject.findOne({code_rpt:"pttctkho",ma_obj:$bao_cao_theo$$}).lean().exec(async function($e_modelBaocaotheo$$,$rptobj$$){if($e_modelBaocaotheo$$)return $callback$$($e_modelBaocaotheo$$);if(!$rptobj$$)return $callback$$("Kh\u00f4ng th\u1ec3 b\u00e1o c\u00e1o theo \u0111\u1ed1i t\u01b0\u1ee3ng n\u00e0y");
9
- $e_modelBaocaotheo$$=global.getModel(""+$rptobj$$.model_obj);let $query_ds_bc_theo$$={id_app:$query$$.id_app,status:!0};$query$$[$bao_cao_theo$$]&&_.has($e_modelBaocaotheo$$.schema.paths,$bao_cao_theo$$)&&($query_ds_bc_theo$$[$bao_cao_theo$$]=$query$$[$bao_cao_theo$$]);$query$$.phu_trach&&_.has($e_modelBaocaotheo$$.schema.paths,"phu_trach")&&($query_ds_bc_theo$$.phu_trach=$query$$.phu_trach);if($query$$.nh_kh&&!$query$$.ma_kh&&$rptobj$$.model_obj=="customer"){let $dskh$$=(await dmkh.find({id_app:$query$$.id_app,
10
- status:!0,nh_kh:$query$$.nh_kh},{ma_kh:1})).map($r$$=>$r$$.ma_kh);$query_ds_bc_theo$$.ma_kh={$in:$dskh$$}}$e_modelBaocaotheo$$.find($query_ds_bc_theo$$).lean().exec(function($e$$,$rs$$){if($e$$)return $callback$$($e$$);$rs$$.forEach(function($r$$){$r$$.ma_obj=$r$$[$rptobj$$.value_field];$r$$.ten_obj=$r$$[$rptobj$$.header_field]});$callback$$(null,$rs$$)})})}},function($e$$,$rs$$){if($e$$)return $callback$$($e$$);let $ds_obj$$=$rs$$.dsobj;async.map($report$$,function($r$$,$c1$$){setImmediate(()=>{if($r$$.cach_tinh===
11
- "9")$r$$.cong_thuc="",async.map($ds_obj$$,function($kho$$,$callback$$){utils.getInfoFromQuery($kho$$,$r$$.query,($e$$,$rs$$)=>{if($e$$)return $callback$$($e$$);_.isNumber($rs$$)?($r$$[$kho$$.ma_obj]=$rs$$,$r$$[$kho$$.ma_obj+"_nt"]=$rs$$):$r$$[$kho$$.ma_obj+"_string"]=$rs$$;$callback$$()})},$e$$=>{$c1$$($e$$,$r$$)});else if($r$$.cach_tinh==="2")$r$$.cong_thuc="",async.map($ds_obj$$,function($kho$$,$callback$$){setImmediate(async()=>{let $condition$$={ngay_ct:{$gte:$query$$.tu_ngay,$lte:$query$$.den_ngay},
12
- id_app:$query$$.id_app};$bao_cao_theo$$.toLowerCase()==="ma_kh"?$condition$$.$or=[{ma_kh_co:$kho$$.ma_obj},{ma_kh_no:$kho$$.ma_obj}]:$condition$$[$kho$$.field||$bao_cao_theo$$]=$kho$$.ma_obj;$query$$.ma_dvcs&&($condition$$.ma_dvcs=$query$$.ma_dvcs);$bao_cao_theo$$!="ma_bp"&&$query$$.ma_bp&&($condition$$.ma_bp=$query$$.ma_bp);$query$$.ma_hd&&($condition$$.ma_hd=$query$$.ma_hd);$bao_cao_theo$$!="ma_dt"&&$query$$.ma_dt&&($condition$$.ma_dt=$query$$.ma_dt);$query$$.ma_sp&&($condition$$.ma_sp=$query$$.ma_sp);
13
- $query$$.ma_nv&&($condition$$.ma_nv=$query$$.ma_nv);$bao_cao_theo$$!="ma_phi"&&$r$$.ma_phi&&($condition$$.ma_phi={$in:await getCodeChildren(global.getModel("dmphi"),$query$$.id_app,$r$$.ma_phi,"ma_phi","ma_phi_me")});var $tk_co_tk_no$$=getRegString($r$$.tk_no);$tk_co_tk_no$$&&($condition$$.tk_no=$r$$.giam_tru_no?{$not:new RegExp($tk_co_tk_no$$)}:{$regex:$tk_co_tk_no$$,$options:"i"});if($tk_co_tk_no$$=getRegString($r$$.tk_co))$condition$$.tk_co=$r$$.giam_tru_co&&$tk_co_tk_no$$?{$not:new RegExp($tk_co_tk_no$$)}:
14
- {$regex:$tk_co_tk_no$$,$options:"i"};if($r$$.dieu_kien_khac)try{$r$$.dieu_kien_khac.indexOf("{")<0&&($r$$.dieu_kien_khac="{"+$r$$.dieu_kien_khac+"}");var $socai_str_func$$=$r$$.dieu_kien_khac;$socai_str_func$$.indexOf("return ")<0&&($socai_str_func$$=`return ${$socai_str_func$$}`);let $dieu_kien_khac$$=utils.evalute($socai_str_func$$,{moment,condition:$condition$$,row:$r$$});$condition$$={...$condition$$,...$dieu_kien_khac$$}}catch($e$$){$callback$$($e$$.toString())}$r$$.ma_kho?($condition$$.ma_kho=
15
- $r$$.ma_kho,$socai_str_func$$=global.getModel("socaitc")):$socai_str_func$$=global.getModel("socaitt");$socai_str_func$$.find($condition$$,{tien:1,tien_nt:1}).lean().exec(function($error$$,$rs$$){if($error$$)return $callback$$($error$$);$error$$=$rs$$.csum("tien");$rs$$=$rs$$.csum("tien_nt");if($error$$||$rs$$)$r$$[$kho$$.ma_obj]=$error$$,$r$$[$kho$$.ma_obj+"_nt"]=$rs$$,$kho$$.has_data=!0;$callback$$(null,$r$$)})})},function($e$$){$c1$$($e$$)});else if($r$$.cach_tinh==="99"&&$r$$.script){$r$$.cong_thuc=
16
- "";if($r$$.script.indexOf("async ")>=0)return $c1$$("async function is not allow");let $func_string$$=`return (async ()=>{
17
- try{
18
- ${$r$$.script}
19
- }catch(e){
20
- return {error:e}
21
- }
22
-
23
- })`;evalute($func_string$$,{row:$r$$,moment,condition:$query$$,user:$req$$.user,_,utils})().then($rs$$=>{if($rs$$&&$rs$$.error)return console.error($rs$$.error,$func_string$$),$c1$$($rs$$.error.message||$rs$$.error);$c1$$(null,$r$$)}).catch($e$$=>{console.error($e$$,$func_string$$);return $c1$$($e$$.message||$e$$)})}else $c1$$(null,$r$$)})},function($error$$){if($error$$)return $callback$$($error$$);let $kho_cols$$="";$ds_obj$$=$ds_obj$$.filter($o$$=>$o$$.has_data);$ds_obj$$.forEach(function($kho$$){$kho_cols$$=
24
- $kho_cols$$?$kho_cols$$+","+$kho$$.ma_obj+","+$kho$$.ma_obj+"_nt":$kho$$.ma_obj+","+$kho$$.ma_obj+"_nt";$kho$$.field=$kho$$.ma_obj;$kho$$.header=$kho$$.ten_obj;$kho$$.datatype="Number"});calcGrid($report$$,$kho_cols$$,async function($rs$$){let $_ds_obj$$=[];$ds_obj$$.forEach(function($kho$$){let $v$$=0;$rs$$&&$rs$$.forEach(function($r$$){$v$$+=Math.abs($r$$[$kho$$.ma_obj]||0)});$v$$&&$_ds_obj$$.push($kho$$)});$rs$$.forEach(function($r$$){$r$$.khong_tinh_tong||($r$$.total=0,$r$$.total_nt=0,$ds_obj$$.forEach(function($kho$$){$r$$.total+=
25
- $r$$[$kho$$.ma_obj]?$r$$[$kho$$.ma_obj]:0;$r$$.total_nt+=$r$$[$kho$$.ma_obj+"_nt"]?$r$$[$kho$$.ma_obj+"_nt"]:0}))});if($_rptform$$.handle_data_expression_server){if($_rptform$$.handle_data_expression_server.indexOf("async ")>=0)return $callback$$("async function is not allow");let $func_string$$=`return (async ()=>{
26
- try{
27
- ${$_rptform$$.handle_data_expression_server}
28
- }catch(e){
29
- return {error:e}
30
- }
31
-
32
- })`;try{if(($rs$$=await utils.evalute($func_string$$,{data:$rs$$,moment,numeral,condition:$req$$.query})())&&$rs$$.error)return console.error($rs$$.error,$func_string$$),$callback$$($rs$$.error.message||$rs$$.error)}catch($e$$){return console.error($e$$,$func_string$$),$callback$$($e$$.message||$e$$)}}$callback$$(null,{rows:$rs$$.filter($r$$=>$r$$.print!==!1),columns:$_ds_obj$$})})})})})};
1
+ const _0xdf9fed=_0x569e;(function(_0x1fe439,_0x11f9b0){const _0x20c6d3=_0x569e,_0x5897c6=_0x1fe439();while(!![]){try{const _0x14d2bd=-parseInt(_0x20c6d3(0x2b8))/0x1*(parseInt(_0x20c6d3(0x1db))/0x2)+parseInt(_0x20c6d3(0x28f))/0x3+-parseInt(_0x20c6d3(0x27f))/0x4*(-parseInt(_0x20c6d3(0x281))/0x5)+-parseInt(_0x20c6d3(0x1ac))/0x6*(-parseInt(_0x20c6d3(0x269))/0x7)+parseInt(_0x20c6d3(0x2bd))/0x8*(-parseInt(_0x20c6d3(0x212))/0x9)+parseInt(_0x20c6d3(0x24c))/0xa*(-parseInt(_0x20c6d3(0x189))/0xb)+-parseInt(_0x20c6d3(0x243))/0xc*(-parseInt(_0x20c6d3(0x25a))/0xd);if(_0x14d2bd===_0x11f9b0)break;else _0x5897c6['push'](_0x5897c6['shift']());}catch(_0x3242df){_0x5897c6['push'](_0x5897c6['shift']());}}}(_0x36bd,0xd1bc9));const rptobject=global[_0xdf9fed(0x2ad)]('rptobject'),dmkh=global['getModel'](_0xdf9fed(0x28c)),utils=require(_0xdf9fed(0x26a)),kbmpttct=global[_0xdf9fed(0x2ad)](_0xdf9fed(0x28d)),async=require('async'),_=require('lodash'),{calcGrid,evalute}=require(_0xdf9fed(0x26a)),controller=require(_0xdf9fed(0x262)),rptform=global[_0xdf9fed(0x2ad)](_0xdf9fed(0x1ca)),moment=require(_0xdf9fed(0x239)),numeral=require(_0xdf9fed(0x26c)),{getCodeChildren}=require('../../libs/utils'),getRegString=function(_0x1783cc){const _0x1c29e8=_0xdf9fed;if(!_0x1783cc)return;return _0x1783cc[_0x1c29e8(0x23d)]();};module['exports']=function(_0x393523){const _0x153cd7=_0xdf9fed,_0xe2530={'oeOkV':function(_0x1568eb,_0x593e3a){return _0x1568eb+_0x593e3a;},'WVHfm':function(_0x4a820c,_0x2e0467){return _0x4a820c(_0x2e0467);},'OBDPe':function(_0x35f2c1,_0x430841){return _0x35f2c1+_0x430841;},'MnXhf':function(_0x119c39,_0x5a3c59){return _0x119c39!==_0x5a3c59;},'bomVt':function(_0xf21ec4,_0x2b925c){return _0xf21ec4(_0x2b925c);},'hcBqp':function(_0x2901ad,_0x53d8ec){return _0x2901ad===_0x53d8ec;},'ngokn':_0x153cd7(0x2d6),'zEZaB':function(_0x1858f7,_0x476296){return _0x1858f7==_0x476296;},'DTwPl':'xIZaa','Qjouw':_0x153cd7(0x2be),'ILxDx':function(_0x126483,_0x51b9c6){return _0x126483(_0x51b9c6);},'MczVG':_0x153cd7(0x258),'ILGXL':_0x153cd7(0x23b),'suIll':function(_0x182eef,_0x52faa8,_0x4c610d){return _0x182eef(_0x52faa8,_0x4c610d);},'AEzBx':_0x153cd7(0x22e),'mBSjH':function(_0x37fcd9,_0x39f18c){return _0x37fcd9<=_0x39f18c;},'mevgg':_0x153cd7(0x272),'IhLgF':function(_0x435acf,_0x1c1207,_0x608816){return _0x435acf(_0x1c1207,_0x608816);},'CnBVB':function(_0xc62a4f,_0x420654){return _0xc62a4f===_0x420654;},'drHEt':_0x153cd7(0x1ed),'nkMTx':_0x153cd7(0x1fd),'DjRJV':function(_0x518679,_0x40d980){return _0x518679+_0x40d980;},'mMRvI':_0x153cd7(0x282),'usfKZ':function(_0x14013a,_0x1aca6e){return _0x14013a+_0x1aca6e;},'wIJcy':_0x153cd7(0x186),'ZznnV':_0x153cd7(0x20e),'cshpS':function(_0x9d6989,_0x4d82f,_0x1a5258,_0x319c5a){return _0x9d6989(_0x4d82f,_0x1a5258,_0x319c5a);},'ANUyk':function(_0x350374,_0x382750,_0x29890e){return _0x350374(_0x382750,_0x29890e);},'OTFEA':function(_0x407069,_0x842701){return _0x407069!==_0x842701;},'XdUgB':_0x153cd7(0x298),'aKSjj':'xFOIK','BVbrn':function(_0x271a10){return _0x271a10();},'BkKwY':function(_0x5387ae,_0x4a427d){return _0x5387ae<=_0x4a427d;},'WyWqO':'SmfJb','kTpcV':_0x153cd7(0x2e6),'KxGOt':'ZOmCy','BhdpE':_0x153cd7(0x192),'lUfwh':_0x153cd7(0x293),'OeNNW':'UtJMH','ZlBwj':_0x153cd7(0x2c5),'MeIGQ':_0x153cd7(0x2ea),'CSruX':function(_0x3a8267,_0x5dd1a0){return _0x3a8267<_0x5dd1a0;},'SnUmu':'return\x20','Vjvrq':_0x153cd7(0x2b0),'Mftac':_0x153cd7(0x24e),'pCMla':'IcNMX','bLCYr':'xlTkv','WXxTq':_0x153cd7(0x2a4),'dwNit':'Mẫu\x20báo\x20cáo\x20này\x20không\x20có\x20giá\x20trị','UWUCr':function(_0x5654c0,_0x297dd2,_0x2e3bfc,_0x22461f,_0x261da2,_0x3eca61){return _0x5654c0(_0x297dd2,_0x2e3bfc,_0x22461f,_0x261da2,_0x3eca61);},'soCKw':_0x153cd7(0x203),'fqlIa':_0x153cd7(0x1d6),'DyOgX':_0x153cd7(0x1d9),'vWJYV':'dmphi','PFijm':'ma_phi','uuySG':function(_0x1f23a2,_0x49fd80,_0x15504f,_0x5bdb45,_0xb5a4e0,_0xf4b677){return _0x1f23a2(_0x49fd80,_0x15504f,_0x5bdb45,_0xb5a4e0,_0xf4b677);},'fLtAZ':_0x153cd7(0x2b3),'vSVqp':_0x153cd7(0x1c1),'FzSEJ':_0x153cd7(0x292)},_0x1194d2=_0x153cd7(0x244);new controller(_0x393523,_0x1194d2,async(_0x2e536f,_0x368071)=>{const _0x407f05=_0x153cd7,_0x48ac03={'lQtEq':function(_0x27c615,_0x48ef05,_0x268da1){const _0x178291=_0x569e;return _0xe2530[_0x178291(0x1b3)](_0x27c615,_0x48ef05,_0x268da1);},'KHUJQ':function(_0x29c17f,_0x454b4d){const _0x33f83c=_0x569e;return _0xe2530[_0x33f83c(0x247)](_0x29c17f,_0x454b4d);},'RJIKV':_0x407f05(0x2a4),'MlHna':function(_0x3c994c,_0x49689e){const _0x549541=_0x407f05;return _0xe2530[_0x549541(0x2c0)](_0x3c994c,_0x49689e);},'UuKUv':_0xe2530[_0x407f05(0x225)],'bStLo':_0xe2530[_0x407f05(0x204)],'TikwV':function(_0x6a2a3){const _0x2223ce=_0x407f05;return _0xe2530[_0x2223ce(0x2cc)](_0x6a2a3);},'yEitG':function(_0x534fd1,_0x14938b){const _0x38a2df=_0x407f05;return _0xe2530[_0x38a2df(0x1a8)](_0x534fd1,_0x14938b);},'Tqydq':function(_0x2ce581,_0xd425f5){const _0x3de590=_0x407f05;return _0xe2530[_0x3de590(0x2ba)](_0x2ce581,_0xd425f5);},'YVLAX':function(_0x1d3507,_0x2af13c){const _0x279d57=_0x407f05;return _0xe2530[_0x279d57(0x2d3)](_0x1d3507,_0x2af13c);},'VMYRK':_0xe2530[_0x407f05(0x1ad)],'uoczR':_0x407f05(0x2e1),'hGQUK':_0xe2530['kTpcV'],'GXtUu':_0xe2530[_0x407f05(0x187)],'qUvcb':_0xe2530[_0x407f05(0x2a6)],'OxIuU':_0xe2530[_0x407f05(0x19f)],'iMGtX':_0xe2530[_0x407f05(0x277)],'KkTXQ':_0xe2530[_0x407f05(0x178)],'ZKXrr':_0x407f05(0x23e),'MiyYo':_0xe2530['MeIGQ'],'JNOaT':_0x407f05(0x1f3),'nXgvT':function(_0x3a3c3a,_0x177a3b){const _0x111d9e=_0x407f05;return _0xe2530[_0x111d9e(0x21e)](_0x3a3c3a,_0x177a3b);},'lqkFk':function(_0x4a76ce,_0x2b656d){return _0x4a76ce+_0x2b656d;},'bWXSt':_0xe2530[_0x407f05(0x24f)],'iLQmw':_0x407f05(0x2cf),'iCgjT':'socaitc','DXWbJ':function(_0x2d9f2d,_0x3bd808){return _0x2d9f2d===_0x3bd808;},'mCffU':_0x407f05(0x2a1),'QjgTa':_0xe2530[_0x407f05(0x230)],'Oltkg':_0xe2530['Mftac'],'pwPui':function(_0x5f5b3c,_0x38788a,_0x4baf62){return _0x5f5b3c(_0x38788a,_0x4baf62);},'yaRDy':function(_0x3d69a7,_0x500d78){return _0x3d69a7===_0x500d78;},'SGiTU':_0xe2530[_0x407f05(0x1e7)],'QlPlR':_0x407f05(0x2b1)};if(_0xe2530[_0x407f05(0x2d5)]!=='xlTkv')_0x562ff5(null,_0x5b0d58);else{const _0x216494=_0x2e536f['query'];if(!_0x216494[_0x407f05(0x197)]||!_0x216494['tu_ngay']||!_0x216494[_0x407f05(0x2ca)]||!_0x216494[_0x407f05(0x1aa)])return _0x368071(_0xe2530[_0x407f05(0x209)]);if(!global[_0x407f05(0x1e9)][_0x407f05(0x273)][_0x407f05(0x2b9)]['isValid'](_0x216494[_0x407f05(0x2ca)]))return _0x368071(_0xe2530['dwNit']);if(_0x216494[_0x407f05(0x1d6)]){let _0x32c86b=await _0xe2530[_0x407f05(0x22c)](getCodeChildren,global[_0x407f05(0x2ad)](_0xe2530['soCKw']),_0x216494[_0x407f05(0x2f6)],_0x216494[_0x407f05(0x1d6)],_0xe2530[_0x407f05(0x1d1)],_0xe2530[_0x407f05(0x276)]);_0x216494[_0x407f05(0x1d6)]={'$in':_0x32c86b};}if(_0x216494[_0x407f05(0x268)]){let _0x43eba3=await _0xe2530[_0x407f05(0x22c)](getCodeChildren,global[_0x407f05(0x2ad)](_0xe2530[_0x407f05(0x2ac)]),_0x216494[_0x407f05(0x2f6)],_0x216494[_0x407f05(0x268)],_0xe2530[_0x407f05(0x1d8)],_0x407f05(0x23e));_0x216494[_0x407f05(0x268)]={'$in':_0x43eba3};}if(_0x216494[_0x407f05(0x192)]){let _0x394773=await _0xe2530[_0x407f05(0x18a)](getCodeChildren,global[_0x407f05(0x2ad)](_0xe2530[_0x407f05(0x1f1)]),_0x216494[_0x407f05(0x2f6)],_0x216494[_0x407f05(0x192)],_0xe2530[_0x407f05(0x2a6)],_0xe2530[_0x407f05(0x188)]);_0x216494[_0x407f05(0x192)]={'$in':_0x394773};}const _0x595ae0=await rptform[_0x407f05(0x18c)]({'_id':_0x216494[_0x407f05(0x2ca)],'id_app':_0x216494['id_app']});if(!_0x595ae0)return _0xe2530[_0x407f05(0x2ba)](_0x368071,_0xe2530[_0x407f05(0x29a)]);_0x216494['tu_ngay']=moment(new Date(_0x216494['tu_ngay']))[_0x407f05(0x20b)](_0xe2530['FzSEJ'])[_0x407f05(0x219)](),_0x216494[_0x407f05(0x197)]=moment(new Date(_0x216494['den_ngay']))[_0x407f05(0x283)](_0xe2530[_0x407f05(0x1de)])[_0x407f05(0x219)]();const _0x42c5d4=_0x216494[_0x407f05(0x1aa)];let _0xb4e6ed=_0x595ae0[_0x407f05(0x267)];if(!_0xb4e6ed||_0x595ae0['report'][_0x407f05(0x19b)]===0x0)_0xb4e6ed=await kbmpttct[_0x407f05(0x1af)]({'id_rptform':_0x595ae0[_0x407f05(0x2d7)][_0x407f05(0x2a8)](),'id_app':_0x216494[_0x407f05(0x2f6)]})['sort']({'stt':0x1})[_0x407f05(0x181)]();async['parallel']({'dsobj':function(_0xcd6f0a){const _0x294a52=_0x407f05,_0x258c5f={'hTCAW':function(_0x6c7432,_0x565a10){const _0x23b106=_0x569e;return _0xe2530[_0x23b106(0x242)](_0x6c7432,_0x565a10);},'iJjBS':function(_0x532b57,_0x34035c){const _0x531fac=_0x569e;return _0xe2530[_0x531fac(0x2ba)](_0x532b57,_0x34035c);},'gNzoZ':function(_0x4716d2,_0x520fc4){return _0xe2530['OBDPe'](_0x4716d2,_0x520fc4);},'rCjuI':function(_0x17c2b9,_0x41aa4d){const _0x443000=_0x569e;return _0xe2530[_0x443000(0x284)](_0x17c2b9,_0x41aa4d);},'Bvxzx':function(_0x29add5,_0x475949){return _0x29add5(_0x475949);},'zDAcT':function(_0x5f2e9f,_0x2cfdc5){const _0x399683=_0x569e;return _0xe2530[_0x399683(0x1a4)](_0x5f2e9f,_0x2cfdc5);},'yJIza':function(_0x117a67,_0x262ce9){const _0x58b0cd=_0x569e;return _0xe2530[_0x58b0cd(0x2cb)](_0x117a67,_0x262ce9);},'ngBJf':_0xe2530[_0x294a52(0x2c6)],'EMkzU':_0x294a52(0x2d2),'IZFOp':function(_0x16ed6a,_0x263fe6){const _0x529cc8=_0x294a52;return _0xe2530[_0x529cc8(0x250)](_0x16ed6a,_0x263fe6);},'PaIKY':'customer','SgYkq':'ylMox','pVtwA':_0xe2530[_0x294a52(0x1f0)]};if(_0xe2530[_0x294a52(0x227)]!==_0xe2530['Qjouw'])_0x48ac03[_0x294a52(0x1ba)](_0x25c8de,null,_0x437469);else{if(_0x42c5d4==_0x294a52(0x2aa)){const _0x4909e2=[],_0x8b335=new Date(_0x216494[_0x294a52(0x1b5)]);while(_0x8b335<=_0x216494[_0x294a52(0x197)]){let _0x4e8718=Math[_0x294a52(0x248)](_0xe2530[_0x294a52(0x280)](moment,_0x8b335)[_0x294a52(0x20b)](_0xe2530[_0x294a52(0x210)])[_0x294a52(0x219)](),_0x216494['tu_ngay']),_0x23018e=Math[_0x294a52(0x237)](_0xe2530[_0x294a52(0x2ba)](moment,_0x8b335)[_0x294a52(0x283)](_0xe2530['MczVG'])['toDate'](),_0x216494['den_ngay']);_0x4909e2[_0x294a52(0x1da)]({'field':_0xe2530['ILGXL'],'ten_obj':_0x294a52(0x2a7)+_0xe2530[_0x294a52(0x2d3)](_0x8b335[_0x294a52(0x28b)](),0x1)+'/'+_0x8b335[_0x294a52(0x27e)](),'ma_obj':{'$gte':_0x4e8718,'$lte':_0x23018e}}),_0x8b335[_0x294a52(0x1a7)](_0xe2530[_0x294a52(0x242)](_0x8b335[_0x294a52(0x28b)](),0x1));}return console[_0x294a52(0x232)](_0x42c5d4,_0x4909e2),_0xe2530[_0x294a52(0x1b2)](_0xcd6f0a,null,_0x4909e2);}if(_0xe2530['zEZaB'](_0x42c5d4,_0xe2530[_0x294a52(0x217)])){const _0x10c29e=[];let _0x5d3bf2=new Date(_0x216494[_0x294a52(0x1b5)]);while(_0xe2530['mBSjH'](_0x5d3bf2,_0x216494[_0x294a52(0x197)])){let _0xd945e7=_0xe2530[_0x294a52(0x1a4)](moment,_0x5d3bf2)[_0x294a52(0x272)](),_0x3f809f=Math[_0x294a52(0x248)](_0xe2530['WVHfm'](moment,_0x5d3bf2)['startOf'](_0xe2530['mevgg'])[_0x294a52(0x219)](),_0x216494[_0x294a52(0x1b5)]),_0x5a6941=Math['min'](_0xe2530[_0x294a52(0x2ba)](moment,_0x5d3bf2)[_0x294a52(0x283)](_0x294a52(0x272))['toDate'](),_0x216494['den_ngay']);_0x10c29e[_0x294a52(0x1da)]({'field':_0xe2530[_0x294a52(0x1dd)],'ten_obj':_0x294a52(0x2ef)+_0xd945e7+'/'+_0x5d3bf2[_0x294a52(0x27e)](),'ma_obj':{'$gte':_0x3f809f,'$lte':_0x5a6941}}),_0x5d3bf2=moment(_0x5d3bf2)[_0x294a52(0x272)](_0xd945e7+0x1)[_0x294a52(0x219)]();}return console[_0x294a52(0x232)](_0x42c5d4,_0x10c29e),_0xe2530[_0x294a52(0x1e0)](_0xcd6f0a,null,_0x10c29e);}rptobject[_0x294a52(0x18c)]({'code_rpt':_0x1194d2,'ma_obj':_0x42c5d4})['lean']()['exec'](async function(_0x495fc5,_0x2f392b){const _0x2724f8=_0x294a52,_0x145a9a={'rgFGW':function(_0x38805e,_0x1bfdf5){const _0x4338c3=_0x569e;return _0x258c5f[_0x4338c3(0x1f4)](_0x38805e,_0x1bfdf5);},'YoUgc':_0x2724f8(0x2c1),'BimgM':function(_0x15c6fb,_0x72763d){const _0x31495b=_0x2724f8;return _0x258c5f[_0x31495b(0x27c)](_0x15c6fb,_0x72763d);},'ijkyf':function(_0x4c9f96){return _0x4c9f96();},'ODWiW':function(_0x6e07af,_0xedc2cc){const _0x1e506b=_0x2724f8;return _0x258c5f[_0x1e506b(0x198)](_0x6e07af,_0xedc2cc);},'fXuFC':_0x2724f8(0x19e),'CcRzE':function(_0x556f48,_0x1b9249,_0x1ec692){return _0x556f48(_0x1b9249,_0x1ec692);}};if(_0x495fc5)return _0x258c5f[_0x2724f8(0x2c3)](_0xcd6f0a,_0x495fc5);if(!_0x2f392b)return _0x258c5f['zDAcT'](_0xcd6f0a,_0x2724f8(0x1a1));let _0x5d78c1=global[_0x2724f8(0x2ad)](_0x258c5f['gNzoZ']('',_0x2f392b['model_obj'])),_0x319563={'id_app':_0x216494[_0x2724f8(0x2f6)],'status':!![]};_0x216494[_0x42c5d4]&&_['has'](_0x5d78c1['schema'][_0x2724f8(0x27a)],_0x42c5d4)&&(_0x258c5f[_0x2724f8(0x289)](_0x258c5f[_0x2724f8(0x2f0)],_0x2724f8(0x2d6))?_0x319563[_0x42c5d4]=_0x216494[_0x42c5d4]:_0x1c68c9[_0x2724f8(0x23c)]=_0x258c5f['hTCAW']('{'+_0x31d61d[_0x2724f8(0x23c)],'}'));_0x216494[_0x258c5f['EMkzU']]&&_[_0x2724f8(0x2d0)](_0x5d78c1['schema'][_0x2724f8(0x27a)],_0x258c5f[_0x2724f8(0x2dd)])&&(_0x319563[_0x258c5f[_0x2724f8(0x2dd)]]=_0x216494['phu_trach']);if(_0x216494[_0x2724f8(0x177)]&&!_0x216494['ma_kh']&&_0x258c5f[_0x2724f8(0x2df)](_0x2f392b[_0x2724f8(0x20a)],_0x258c5f[_0x2724f8(0x1c0)])){if(_0x258c5f['SgYkq']===_0x258c5f[_0x2724f8(0x2e9)]){if(_0x413aa4)return _0x145a9a['rgFGW'](_0x4672b7,_0x4d4ae9);_0x5bf840[_0x2724f8(0x223)](_0x210f79)?(_0x71d419[_0x14c29f['ma_obj']]=_0x1478ec,_0x35b12c[_0x527d7d[_0x2724f8(0x2b4)]+_0x145a9a['YoUgc']]=_0x1569c8):_0x5c79eb[_0x145a9a[_0x2724f8(0x1e6)](_0x5941fb['ma_obj'],_0x2724f8(0x257))]=_0x5484ee,_0x145a9a[_0x2724f8(0x190)](_0x1c7f39);}else{let _0x31404e=(await dmkh[_0x2724f8(0x1af)]({'id_app':_0x216494['id_app'],'status':!![],'nh_kh':_0x216494['nh_kh']},{'ma_kh':0x1}))['map'](_0x594f7b=>_0x594f7b['ma_kh']);_0x319563[_0x2724f8(0x1bf)]={'$in':_0x31404e};}}_0x5d78c1[_0x2724f8(0x1af)](_0x319563)['lean']()[_0x2724f8(0x259)](function(_0x44a741,_0x196e49){const _0x38063b=_0x2724f8,_0x5ae44a={'RnNXp':function(_0x5ef9ba,_0x652548,_0x5edbb1){return _0x5ef9ba(_0x652548,_0x5edbb1);}};if(_0x44a741)return _0x145a9a[_0x38063b(0x1fa)](_0xcd6f0a,_0x44a741);_0x196e49[_0x38063b(0x199)](function(_0xa61af1){const _0x174749=_0x38063b;_0x145a9a[_0x174749(0x211)](_0x145a9a[_0x174749(0x1a3)],_0x145a9a[_0x174749(0x1a3)])?_0x5ae44a[_0x174749(0x2e2)](_0xe726da,_0x4470d6,_0x1787ff):(_0xa61af1[_0x174749(0x2b4)]=_0xa61af1[_0x2f392b[_0x174749(0x194)]],_0xa61af1[_0x174749(0x229)]=_0xa61af1[_0x2f392b[_0x174749(0x1e8)]]);}),_0x145a9a[_0x38063b(0x2a0)](_0xcd6f0a,null,_0x196e49);});});}}},function(_0x3a3d90,_0x4b6c37){const _0x169bd0=_0x407f05,_0x7196ba={'XBWPx':_0x169bd0(0x1f5),'BPreQ':function(_0x759d99,_0xe6919e){const _0x26795b=_0x169bd0;return _0xe2530[_0x26795b(0x242)](_0x759d99,_0xe6919e);},'fdWHQ':function(_0x4a9bd5,_0x1edb80){const _0x920f70=_0x169bd0;return _0xe2530[_0x920f70(0x1c4)](_0x4a9bd5,_0x1edb80);},'jaAHv':_0x169bd0(0x1e1),'wNLCm':_0xe2530['drHEt'],'NUoqA':function(_0xfe78cb,_0x31a89a){return _0xfe78cb!==_0x31a89a;},'dnlFw':'kfZSn','DdJhL':_0x169bd0(0x179),'ULcoM':function(_0x297e68,_0x2d32d1){const _0x4abdd8=_0x169bd0;return _0xe2530[_0x4abdd8(0x2ba)](_0x297e68,_0x2d32d1);},'OGkkY':_0xe2530[_0x169bd0(0x24b)],'wQbPF':_0x169bd0(0x2c1),'oOSAQ':function(_0x4fa7f0,_0x3e6b17){return _0x4fa7f0!==_0x3e6b17;},'gcsps':function(_0x13e550,_0x4cc099){return _0xe2530['oeOkV'](_0x13e550,_0x4cc099);},'raIWU':function(_0x1abf2f,_0x46f7c5){const _0x187651=_0x169bd0;return _0xe2530[_0x187651(0x2d3)](_0x1abf2f,_0x46f7c5);},'XmSjM':function(_0x6baa7d,_0x1fd7ae){return _0xe2530['DjRJV'](_0x6baa7d,_0x1fd7ae);},'jIDaU':_0xe2530['mMRvI'],'eaUMj':function(_0x2b5f9f,_0x17899a){return _0xe2530['usfKZ'](_0x2b5f9f,_0x17899a);},'XMSqR':_0xe2530['wIJcy'],'WoBdl':_0xe2530[_0x169bd0(0x287)],'AoQeN':function(_0x1d5e5a,_0x1d7c3b,_0x3032af,_0x5cb799){return _0xe2530['cshpS'](_0x1d5e5a,_0x1d7c3b,_0x3032af,_0x5cb799);}};if(_0x3a3d90)return _0xe2530[_0x169bd0(0x1a4)](_0x368071,_0x3a3d90);let _0x50c805=_0x4b6c37['dsobj'];async[_0x169bd0(0x1c7)](_0xb4e6ed,function(_0x3d7d00,_0x5a432e){const _0x523862=_0x169bd0,_0x10116d={'JncCg':function(_0x37479a,_0x3048f9){return _0x48ac03['KHUJQ'](_0x37479a,_0x3048f9);},'RgAls':_0x523862(0x2c1),'Fyvvb':function(_0x40d2a2,_0x278711,_0x45b1bd){const _0xa99e4d=_0x523862;return _0x48ac03[_0xa99e4d(0x1ba)](_0x40d2a2,_0x278711,_0x45b1bd);},'cTGmG':_0x48ac03[_0x523862(0x18b)],'VRVJg':function(_0x279a2f,_0x5482f8){return _0x279a2f===_0x5482f8;},'TgtrI':'TGNYL','prvOf':function(_0x550a61,_0x54ab16){const _0x756ac0=_0x523862;return _0x48ac03[_0x756ac0(0x2c9)](_0x550a61,_0x54ab16);},'ujYri':_0x48ac03[_0x523862(0x25c)],'XPoEk':_0x48ac03[_0x523862(0x1f6)],'eMuxb':function(_0x3bd16f,_0x4d5f19,_0x2a2688){return _0x48ac03['lQtEq'](_0x3bd16f,_0x4d5f19,_0x2a2688);},'ppDsM':function(_0x28f170,_0x674648){return _0x28f170+_0x674648;},'eSYmK':_0x523862(0x257),'zahOd':function(_0x2e45be){const _0x56439e=_0x523862;return _0x48ac03[_0x56439e(0x274)](_0x2e45be);},'utbGa':function(_0x25578a,_0x40ae90){return _0x25578a(_0x40ae90);},'pSCmP':_0x523862(0x258),'alPfW':function(_0x28d3d8,_0x452668){return _0x48ac03['yEitG'](_0x28d3d8,_0x452668);},'cFdkg':function(_0x5439a6,_0x50bf54){return _0x48ac03['Tqydq'](_0x5439a6,_0x50bf54);},'vHFST':_0x523862(0x2dc),'wsijA':function(_0x441816,_0x213c92){return _0x441816||_0x213c92;},'zhMwY':function(_0x2441c7,_0x2fc701){const _0xaf2de4=_0x523862;return _0x48ac03[_0xaf2de4(0x2e8)](_0x2441c7,_0x2fc701);},'liXBZ':_0x48ac03['VMYRK'],'NMxJb':function(_0xedc22b,_0x6c4092){return _0xedc22b===_0x6c4092;},'pwjDr':_0x523862(0x18f),'yMGdN':_0x48ac03[_0x523862(0x196)],'gNPXD':_0x48ac03[_0x523862(0x226)],'HTPsE':_0x48ac03['GXtUu'],'CFWpK':function(_0x236fd1,_0x4a4dc3){return _0x236fd1!=_0x4a4dc3;},'Eyepg':_0x48ac03['qUvcb'],'aWYbi':_0x48ac03['OxIuU'],'XXCyR':_0x48ac03[_0x523862(0x21c)],'UbIWU':_0x48ac03[_0x523862(0x1ab)],'MyVHJ':_0x523862(0x1ff),'tNMAT':_0x48ac03[_0x523862(0x19d)],'JSwcX':_0x48ac03[_0x523862(0x255)],'ShuPs':_0x48ac03[_0x523862(0x215)],'QnDuH':_0x523862(0x22d),'cNJwh':function(_0x5268ab,_0x34fdec){const _0xed6751=_0x523862;return _0x48ac03[_0xed6751(0x286)](_0x5268ab,_0x34fdec);},'SDmpt':'vDOmL','WOPEL':function(_0x5ab280,_0x46eeeb){const _0x17a05b=_0x523862;return _0x48ac03[_0x17a05b(0x2c8)](_0x5ab280,_0x46eeeb);},'TOCRt':_0x48ac03[_0x523862(0x1b8)],'zpQXW':_0x523862(0x23f),'RiZnT':_0x48ac03['iLQmw'],'wCLtE':_0x48ac03[_0x523862(0x231)],'YbCOt':function(_0x343f34,_0x4e27eb){const _0x4342ac=_0x523862;return _0x48ac03[_0x4342ac(0x2c4)](_0x343f34,_0x4e27eb);},'wUMYL':_0x48ac03['mCffU'],'gzjzO':_0x523862(0x1c3),'AAbBV':function(_0x16dcba,_0x520d1f){return _0x16dcba===_0x520d1f;},'IPnUs':_0x523862(0x245),'YDulO':_0x523862(0x265),'DgRhx':_0x48ac03['QjgTa'],'pnOvK':_0x48ac03[_0x523862(0x24d)],'scKiV':function(_0xd5fa0a,_0x28e94c,_0x476aa0){const _0x28ee2a=_0x523862;return _0x48ac03[_0x28ee2a(0x1cd)](_0xd5fa0a,_0x28e94c,_0x476aa0);}};if(_0x48ac03['yaRDy'](_0x48ac03['SGiTU'],_0x48ac03['QlPlR'])){const _0x513469={'aesnY':function(_0x15c0e1,_0x3fd327){const _0x4ccc7e=_0x523862;return _0x10116d[_0x4ccc7e(0x202)](_0x15c0e1,_0x3fd327);}};let _0x18ed1e=0x0;_0x3090ce&&_0x5ba490['forEach'](function(_0x3f61e3){_0x18ed1e=_0x513469['aesnY'](_0x18ed1e,_0x4aabbe['abs'](_0x3f61e3[_0x235e77['ma_obj']]||0x0));}),_0x18ed1e&&_0x4701e8[_0x523862(0x1da)](_0x327162);}else _0x48ac03[_0x523862(0x1f2)](setImmediate,()=>{const _0x1928a5=_0x523862,_0x2b4288={'ORnZD':function(_0x3d87e7,_0x26026e){return _0x3d87e7(_0x26026e);},'gMVwW':function(_0x36a417,_0x28c64b){const _0x4d942c=_0x569e;return _0x10116d[_0x4d942c(0x299)](_0x36a417,_0x28c64b);},'TnoKf':_0x1928a5(0x2b7),'gtVdI':function(_0x4f24f0,_0xdd1d8e){const _0x4997c7=_0x1928a5;return _0x10116d[_0x4997c7(0x1e4)](_0x4f24f0,_0xdd1d8e);},'NOVis':_0x10116d['eSYmK'],'iHhYH':function(_0x594ae5){const _0x1d4d16=_0x1928a5;return _0x10116d[_0x1d4d16(0x1fb)](_0x594ae5);},'PYHGz':function(_0x249701,_0x249c6f,_0x3c980a){return _0x249701(_0x249c6f,_0x3c980a);},'OWtgn':function(_0x5d52c1,_0x2098c4){const _0x5d01b9=_0x1928a5;return _0x10116d[_0x5d01b9(0x21d)](_0x5d52c1,_0x2098c4);},'NMVKD':_0x10116d[_0x1928a5(0x22a)],'MSzyQ':function(_0x3df574,_0x52352a){return _0x3df574+_0x52352a;},'lytCM':function(_0x586bbd,_0xa797d3){const _0x37fcfa=_0x1928a5;return _0x10116d[_0x37fcfa(0x2b2)](_0x586bbd,_0xa797d3);},'Zwiiw':function(_0x4ed911,_0x4000c0){const _0x41274f=_0x1928a5;return _0x10116d[_0x41274f(0x21d)](_0x4ed911,_0x4000c0);},'frMua':_0x1928a5(0x272),'oxFcV':function(_0x4ece37,_0x183bd4){const _0x34712a=_0x1928a5;return _0x10116d[_0x34712a(0x2d8)](_0x4ece37,_0x183bd4);},'gxgvU':_0x10116d['vHFST'],'lQtRg':function(_0xf3af7c,_0x45086d){const _0x35ddea=_0x1928a5;return _0x10116d[_0x35ddea(0x18d)](_0xf3af7c,_0x45086d);},'RMqMO':function(_0x45049f,_0x31bf67){const _0xc4193=_0x1928a5;return _0x10116d[_0xc4193(0x2e5)](_0x45049f,_0x31bf67);},'WfNfY':_0x10116d[_0x1928a5(0x184)],'ihqNl':function(_0xf70345,_0xc506ea){return _0xf70345===_0xc506ea;},'Xqryo':_0x1928a5(0x294),'dusul':_0x10116d[_0x1928a5(0x1c8)],'iGGkd':function(_0x3c0e0c,_0x360817){const _0x38eef6=_0x1928a5;return _0x10116d[_0x38eef6(0x261)](_0x3c0e0c,_0x360817);},'zSKEc':'ma_kh','DoqvL':function(_0x108250,_0xda4b2d){const _0x419971=_0x1928a5;return _0x10116d[_0x419971(0x299)](_0x108250,_0xda4b2d);},'LugBV':_0x10116d[_0x1928a5(0x22b)],'wmKbQ':_0x10116d['yMGdN'],'elqem':_0x10116d[_0x1928a5(0x1f8)],'MunEt':_0x10116d[_0x1928a5(0x29c)],'YOokb':function(_0x264e6a,_0x5c3816){const _0x5bc261=_0x1928a5;return _0x10116d[_0x5bc261(0x1cc)](_0x264e6a,_0x5c3816);},'wNGwk':_0x10116d[_0x1928a5(0x1c9)],'MnwLM':_0x10116d['aWYbi'],'SfRSC':_0x10116d[_0x1928a5(0x1d4)],'PkXcR':_0x10116d['UbIWU'],'TLaLb':'ma_phi','SKgRv':_0x10116d[_0x1928a5(0x2e0)],'ONLVX':_0x10116d[_0x1928a5(0x1bc)],'nOzGW':_0x10116d[_0x1928a5(0x20f)],'iDAwC':_0x10116d['ShuPs'],'DePCK':_0x10116d[_0x1928a5(0x21b)],'VJeVM':function(_0x5ef9c3,_0x419afc){const _0x225e0a=_0x1928a5;return _0x10116d[_0x225e0a(0x1bb)](_0x5ef9c3,_0x419afc);},'UemCc':_0x10116d['SDmpt'],'csmPn':function(_0x11bab4,_0x4a79af){const _0x3ca179=_0x1928a5;return _0x10116d[_0x3ca179(0x1e4)](_0x11bab4,_0x4a79af);},'POTJS':function(_0x54ba72,_0x1c0cb9){const _0x3df408=_0x1928a5;return _0x10116d[_0x3df408(0x2de)](_0x54ba72,_0x1c0cb9);},'QKDNh':_0x10116d['TOCRt'],'zVWXh':function(_0x462f36,_0x1e423f){const _0x9d439=_0x1928a5;return _0x10116d[_0x9d439(0x261)](_0x462f36,_0x1e423f);},'aZwfD':_0x10116d['zpQXW'],'Ghwxf':_0x10116d[_0x1928a5(0x240)],'ppGKn':_0x10116d['wCLtE']};if(_0x10116d[_0x1928a5(0x220)](_0x3d7d00[_0x1928a5(0x2ab)],'9'))_0x3d7d00['cong_thuc']='',async[_0x1928a5(0x1c7)](_0x50c805,function(_0x135c28,_0x2ddb46){const _0x12f1d1=_0x1928a5;utils['getInfoFromQuery'](_0x135c28,_0x3d7d00[_0x12f1d1(0x278)],(_0x36f8c6,_0x551225)=>{const _0x4d19d7=_0x12f1d1;if(_0x36f8c6)return _0x2b4288[_0x4d19d7(0x246)](_0x2ddb46,_0x36f8c6);_['isNumber'](_0x551225)?_0x2b4288[_0x4d19d7(0x1e3)](_0x2b4288[_0x4d19d7(0x2a2)],_0x2b4288[_0x4d19d7(0x2a2)])?_0x490188[_0x4d19d7(0x238)]=_0x540b10['ma_dvcs']:(_0x3d7d00[_0x135c28[_0x4d19d7(0x2b4)]]=_0x551225,_0x3d7d00[_0x135c28[_0x4d19d7(0x2b4)]+_0x4d19d7(0x2c1)]=_0x551225):_0x3d7d00[_0x2b4288[_0x4d19d7(0x2ed)](_0x135c28['ma_obj'],_0x2b4288['NOVis'])]=_0x551225,_0x2b4288[_0x4d19d7(0x295)](_0x2ddb46);});},_0x374a0c=>{_0x2b4288['PYHGz'](_0x5a432e,_0x374a0c,_0x3d7d00);});else{if(_0x10116d['wUMYL']!==_0x10116d[_0x1928a5(0x208)]){if(_0x10116d[_0x1928a5(0x1eb)](_0x3d7d00['cach_tinh'],'2'))_0x3d7d00['cong_thuc']='',async[_0x1928a5(0x1c7)](_0x50c805,function(_0x3aeeda,_0x34c247){const _0x4323b2=_0x1928a5,_0x1fcfda={'FbWMu':function(_0x329573,_0x506da3){const _0x4e7d42=_0x569e;return _0x10116d[_0x4e7d42(0x202)](_0x329573,_0x506da3);},'vPoVj':function(_0x2057ec,_0x298645){return _0x2057ec+_0x298645;},'ycSug':_0x10116d[_0x4323b2(0x184)],'sWvGf':function(_0x5b64ad,_0x4f5951,_0x70eed3){const _0x7c6a90=_0x4323b2;return _0x10116d[_0x7c6a90(0x1cb)](_0x5b64ad,_0x4f5951,_0x70eed3);}};setImmediate(async()=>{const _0x3f94bb=_0x4323b2,_0x598a20={'idbet':function(_0x320a66,_0x197237){const _0x41bc5c=_0x569e;return _0x2b4288[_0x41bc5c(0x28e)](_0x320a66,_0x197237);},'aCPnc':_0x2b4288[_0x3f94bb(0x241)],'oBJyA':function(_0x921974,_0x4d9e72){const _0x11653b=_0x3f94bb;return _0x2b4288[_0x11653b(0x2c7)](_0x921974,_0x4d9e72);},'bqwIX':function(_0x3bc5ae,_0x298db3){const _0xe1736d=_0x3f94bb;return _0x2b4288[_0xe1736d(0x1a6)](_0x3bc5ae,_0x298db3);},'TTULm':function(_0x3d84f3,_0x309620){return _0x3d84f3(_0x309620);},'pQWBu':_0x3f94bb(0x23b),'UhqnU':function(_0x1bcb28,_0x976e0d){const _0x419a5b=_0x3f94bb;return _0x2b4288[_0x419a5b(0x2c7)](_0x1bcb28,_0x976e0d);},'YRoMM':function(_0x143664,_0xc14d04,_0x30b4d6){const _0x11977e=_0x3f94bb;return _0x2b4288[_0x11977e(0x1d0)](_0x143664,_0xc14d04,_0x30b4d6);},'pULeb':function(_0x56a1de,_0x6db2e1){return _0x2b4288['Zwiiw'](_0x56a1de,_0x6db2e1);},'FnSgy':_0x2b4288[_0x3f94bb(0x2db)],'JdgKU':function(_0x4f30ed,_0xeba0d9,_0x557399){const _0xec834c=_0x3f94bb;return _0x2b4288[_0xec834c(0x1d0)](_0x4f30ed,_0xeba0d9,_0x557399);},'KzCyJ':function(_0x51664c,_0x476223){return _0x51664c+_0x476223;},'RoJWa':function(_0x5f38c1,_0x1e7aa0){return _0x2b4288['oxFcV'](_0x5f38c1,_0x1e7aa0);},'PMMeo':_0x2b4288[_0x3f94bb(0x218)],'iFcSo':function(_0x3f7acc,_0x58f9a1){const _0x1c29e0=_0x3f94bb;return _0x2b4288[_0x1c29e0(0x2c2)](_0x3f7acc,_0x58f9a1);},'BMtCf':function(_0x590ddd,_0x315256){const _0x1ede30=_0x3f94bb;return _0x2b4288[_0x1ede30(0x260)](_0x590ddd,_0x315256);},'hCWii':_0x2b4288['WfNfY']};if(_0x2b4288[_0x3f94bb(0x22f)](_0x2b4288[_0x3f94bb(0x251)],_0x2b4288[_0x3f94bb(0x2f5)])){let _0x35f137=_0x314669['max'](_0x598a20['idbet'](_0x27dbc8,_0x16f5dc)[_0x3f94bb(0x20b)](_0x598a20[_0x3f94bb(0x1a2)])[_0x3f94bb(0x219)](),_0x1a3da3[_0x3f94bb(0x1b5)]),_0x5ac48c=_0x5d9138[_0x3f94bb(0x237)](_0x598a20[_0x3f94bb(0x2cd)](_0x1d198a,_0xe95d1f)[_0x3f94bb(0x283)](_0x3f94bb(0x258))[_0x3f94bb(0x219)](),_0x262e10[_0x3f94bb(0x197)]);_0x2ea136[_0x3f94bb(0x1da)]({'field':_0x3f94bb(0x23b),'ten_obj':_0x3f94bb(0x2a7)+_0x598a20['oBJyA'](_0x1097ce[_0x3f94bb(0x28b)](),0x1)+'/'+_0x28ff6e[_0x3f94bb(0x27e)](),'ma_obj':{'$gte':_0x35f137,'$lte':_0x5ac48c}}),_0x32529e[_0x3f94bb(0x1a7)](_0x598a20['oBJyA'](_0x19e556[_0x3f94bb(0x28b)](),0x1));}else{let _0x115283={'ngay_ct':{'$gte':_0x216494[_0x3f94bb(0x1b5)],'$lte':_0x216494[_0x3f94bb(0x197)]},'id_app':_0x216494[_0x3f94bb(0x2f6)]};_0x2b4288[_0x3f94bb(0x288)](_0x42c5d4[_0x3f94bb(0x1e2)](),_0x2b4288['zSKEc'])?_0x115283['$or']=[{'ma_kh_co':_0x3aeeda['ma_obj']},{'ma_kh_no':_0x3aeeda[_0x3f94bb(0x2b4)]}]:_0x2b4288['DoqvL'](_0x2b4288[_0x3f94bb(0x2bb)],_0x2b4288['wmKbQ'])?_0x115283[_0x3aeeda['field']||_0x42c5d4]=_0x3aeeda[_0x3f94bb(0x2b4)]:_0x23cae5=_0x1fcfda[_0x3f94bb(0x2f2)](_0x35d040,_0x548a52[_0x3f94bb(0x228)](_0x4e9a00[_0x2f076b[_0x3f94bb(0x2b4)]]||0x0));_0x216494['ma_dvcs']&&(_0x115283[_0x3f94bb(0x238)]=_0x216494[_0x3f94bb(0x238)]);_0x42c5d4!='ma_bp'&&_0x216494['ma_bp']&&(_0x2b4288[_0x3f94bb(0x25e)]!==_0x2b4288[_0x3f94bb(0x25e)]?_0x1d3aed[_0x47104e]=_0x5e7fa1[_0x3b490d]:_0x115283[_0x3f94bb(0x1d6)]=_0x216494[_0x3f94bb(0x1d6)]);if(_0x216494[_0x3f94bb(0x2eb)]){if(_0x2b4288[_0x3f94bb(0x1a9)]!==_0x2b4288[_0x3f94bb(0x1a9)]){const _0x457141=[],_0x4eb1e7=new _0x19af4d(_0x46e9c4[_0x3f94bb(0x1b5)]);while(_0x598a20[_0x3f94bb(0x1a5)](_0x4eb1e7,_0x183283['den_ngay'])){let _0x1e0d4f=_0x348add[_0x3f94bb(0x248)](_0x598a20[_0x3f94bb(0x21a)](_0x15cbaf,_0x4eb1e7)['startOf'](_0x598a20[_0x3f94bb(0x1a2)])[_0x3f94bb(0x219)](),_0x3a6de5['tu_ngay']),_0x201865=_0x48455a[_0x3f94bb(0x237)](_0x598a20[_0x3f94bb(0x21a)](_0x1e6276,_0x4eb1e7)[_0x3f94bb(0x283)](_0x598a20['aCPnc'])[_0x3f94bb(0x219)](),_0x1d51d2[_0x3f94bb(0x197)]);_0x457141[_0x3f94bb(0x1da)]({'field':_0x598a20[_0x3f94bb(0x26b)],'ten_obj':_0x3f94bb(0x2a7)+_0x598a20[_0x3f94bb(0x249)](_0x4eb1e7[_0x3f94bb(0x28b)](),0x1)+'/'+_0x4eb1e7['getFullYear'](),'ma_obj':{'$gte':_0x1e0d4f,'$lte':_0x201865}}),_0x4eb1e7[_0x3f94bb(0x1a7)](_0x598a20['oBJyA'](_0x4eb1e7[_0x3f94bb(0x28b)](),0x1));}return _0x4970a8[_0x3f94bb(0x232)](_0x156169,_0x457141),_0x598a20[_0x3f94bb(0x1c2)](_0x39dfce,null,_0x457141);}else _0x115283[_0x3f94bb(0x2eb)]=_0x216494[_0x3f94bb(0x2eb)];}if(_0x2b4288[_0x3f94bb(0x2bc)](_0x42c5d4,_0x2b4288[_0x3f94bb(0x20c)])&&_0x216494['ma_dt']){if(_0x2b4288[_0x3f94bb(0x26f)]===_0x2b4288['SfRSC']){const _0x5dc44d=[];let _0x51b113=new _0x5ae49d(_0x37dfed['tu_ngay']);while(_0x51b113<=_0x4d5332[_0x3f94bb(0x197)]){let _0x2204a4=_0x12329b(_0x51b113)[_0x3f94bb(0x272)](),_0x199d14=_0x1bd4fa[_0x3f94bb(0x248)](_0x598a20[_0x3f94bb(0x25b)](_0x11cd57,_0x51b113)['startOf'](_0x598a20[_0x3f94bb(0x1d5)])['toDate'](),_0x4091eb[_0x3f94bb(0x1b5)]),_0x342fa3=_0x1ce1c9[_0x3f94bb(0x237)](_0x598a20['TTULm'](_0x7520a2,_0x51b113)[_0x3f94bb(0x283)](_0x598a20[_0x3f94bb(0x1d5)])['toDate'](),_0x788d1e['den_ngay']);_0x5dc44d[_0x3f94bb(0x1da)]({'field':_0x598a20['pQWBu'],'ten_obj':_0x3f94bb(0x2ef)+_0x2204a4+'/'+_0x51b113['getFullYear'](),'ma_obj':{'$gte':_0x199d14,'$lte':_0x342fa3}}),_0x51b113=_0x598a20[_0x3f94bb(0x21a)](_0x2e2c47,_0x51b113)[_0x3f94bb(0x272)](_0x598a20['oBJyA'](_0x2204a4,0x1))[_0x3f94bb(0x219)]();}return _0x2dcd51[_0x3f94bb(0x232)](_0x3c3fb1,_0x5dc44d),_0x598a20['JdgKU'](_0x27311e,null,_0x5dc44d);}else _0x115283[_0x3f94bb(0x192)]=_0x216494[_0x3f94bb(0x192)];}_0x216494[_0x3f94bb(0x182)]&&(_0x115283[_0x3f94bb(0x182)]=_0x216494[_0x3f94bb(0x182)]);_0x216494[_0x3f94bb(0x296)]&&(_0x2b4288[_0x3f94bb(0x2a3)](_0x2b4288[_0x3f94bb(0x2da)],_0x2b4288[_0x3f94bb(0x2da)])?(_0xd3a51a[_0x20fb64['ma_obj']]=_0x3fdce5,_0x3ce878[_0x1fcfda[_0x3f94bb(0x1ae)](_0x2cb310[_0x3f94bb(0x2b4)],_0x1fcfda['ycSug'])]=_0x559800):_0x115283[_0x3f94bb(0x296)]=_0x216494[_0x3f94bb(0x296)]);_0x42c5d4!=_0x2b4288[_0x3f94bb(0x2f1)]&&_0x3d7d00[_0x3f94bb(0x268)]&&(_0x115283[_0x3f94bb(0x268)]={'$in':await getCodeChildren(global[_0x3f94bb(0x2ad)](_0x2b4288['SKgRv']),_0x216494[_0x3f94bb(0x2f6)],_0x3d7d00['ma_phi'],_0x2b4288[_0x3f94bb(0x2f1)],_0x2b4288['ONLVX'])});let _0x58f9c5=_0x2b4288[_0x3f94bb(0x1ec)](getRegString,_0x3d7d00[_0x3f94bb(0x1ef)]);_0x58f9c5&&(_0x3d7d00[_0x3f94bb(0x221)]?_0x2b4288['nOzGW']!==_0x2b4288[_0x3f94bb(0x2ce)]?_0x115283[_0x3f94bb(0x1ef)]={'$not':new RegExp(_0x58f9c5)}:_0x477f6d['giam_tru_no']?_0x30b15d['tk_no']={'$not':new _0x530b55(_0x253a63)}:_0x4274df[_0x3f94bb(0x1ef)]={'$regex':_0x5cf00c,'$options':'i'}:_0x115283[_0x3f94bb(0x1ef)]={'$regex':_0x58f9c5,'$options':'i'});let _0x328ab8=_0x2b4288[_0x3f94bb(0x28e)](getRegString,_0x3d7d00[_0x3f94bb(0x1c6)]);_0x328ab8&&(_0x3d7d00['giam_tru_co']&&_0x328ab8?_0x115283[_0x3f94bb(0x1c6)]={'$not':new RegExp(_0x328ab8)}:_0x115283['tk_co']={'$regex':_0x328ab8,'$options':'i'});if(_0x3d7d00[_0x3f94bb(0x23c)])try{if(_0x2b4288[_0x3f94bb(0x2e7)]!==_0x2b4288[_0x3f94bb(0x2e7)]){if(_0x36d46f)return _0x12625e(_0x8e57a1);_0x12ce70['forEach'](function(_0x582806){const _0x3687bd=_0x3f94bb;_0x582806[_0x3687bd(0x2b4)]=_0x582806[_0x24b1cb[_0x3687bd(0x194)]],_0x582806[_0x3687bd(0x229)]=_0x582806[_0x5e054e['header_field']];}),_0x1fcfda['sWvGf'](_0x244686,null,_0x22c475);}else{if(_0x2b4288[_0x3f94bb(0x24a)](_0x3d7d00[_0x3f94bb(0x23c)][_0x3f94bb(0x1f7)]('{'),0x0)){if(_0x2b4288['gMVwW'](_0x2b4288['UemCc'],'fHvcc'))_0x3d7d00[_0x3f94bb(0x23c)]=_0x2b4288['csmPn'](_0x2b4288[_0x3f94bb(0x17b)]('{',_0x3d7d00['dieu_kien_khac']),'}');else{const _0x2766f5={'DQGpH':function(_0x403ad9,_0x2a1bda){const _0x2ab703=_0x3f94bb;return _0x598a20[_0x2ab703(0x2b5)](_0x403ad9,_0x2a1bda);},'UNcWB':_0x3f94bb(0x2c1)};!_0x293968['khong_tinh_tong']&&(_0x69f811['total']=0x0,_0x4f939f[_0x3f94bb(0x1d2)]=0x0,_0x44ea89[_0x3f94bb(0x199)](function(_0x36e2b6){const _0x5040b8=_0x3f94bb;_0x3394f1['total']=_0x2766f5[_0x5040b8(0x1c5)](_0x293eff[_0x5040b8(0x1b7)],_0x3a771d[_0x36e2b6[_0x5040b8(0x2b4)]]?_0x5bc398[_0x36e2b6['ma_obj']]:0x0),_0x29bdbb[_0x5040b8(0x1d2)]=_0x2766f5[_0x5040b8(0x1c5)](_0x33f6fc[_0x5040b8(0x1d2)],_0x290516[_0x2766f5[_0x5040b8(0x1c5)](_0x36e2b6[_0x5040b8(0x2b4)],_0x2766f5['UNcWB'])]?_0x289ff0[_0x36e2b6[_0x5040b8(0x2b4)]+_0x2766f5[_0x5040b8(0x180)]]:0x0);}));}}let _0x4a0426=_0x3d7d00[_0x3f94bb(0x23c)];_0x2b4288[_0x3f94bb(0x24a)](_0x4a0426['indexOf'](_0x2b4288[_0x3f94bb(0x183)]),0x0)&&(_0x2b4288[_0x3f94bb(0x216)](_0x2b4288[_0x3f94bb(0x2f4)],_0x3f94bb(0x23f))?_0x4a0426='return\x20'+_0x4a0426:_0x4e0a38[_0x57b21e[_0x3f94bb(0x290)]||_0x2ab7f6]=_0x502d20[_0x3f94bb(0x2b4)]);let _0x38f5df=utils['evalute'](_0x4a0426,{'moment':moment,'condition':_0x115283,'row':_0x3d7d00});_0x115283={..._0x115283,..._0x38f5df};}}catch(_0xaa07e4){_0x2b4288[_0x3f94bb(0x1b0)]!==_0x2b4288['Ghwxf']?_0x214fae[_0x3f94bb(0x192)]=_0x1f129c[_0x3f94bb(0x192)]:_0x2b4288[_0x3f94bb(0x1ec)](_0x34c247,_0xaa07e4['toString']());}let _0x3df5bd;_0x3d7d00[_0x3f94bb(0x1ee)]?(_0x115283[_0x3f94bb(0x1ee)]=_0x3d7d00[_0x3f94bb(0x1ee)],_0x3df5bd=global[_0x3f94bb(0x2ad)](_0x2b4288['ppGKn'])):_0x3df5bd=global['getModel'](_0x3f94bb(0x1fd)),_0x3df5bd['find'](_0x115283,{'tien':0x1,'tien_nt':0x1})[_0x3f94bb(0x181)]()[_0x3f94bb(0x259)](function(_0x44d596,_0x5c0941){const _0x369646=_0x3f94bb;if(_0x44d596)return _0x598a20['RoJWa'](_0x34c247,_0x44d596);let _0x77f814=_0x5c0941[_0x369646(0x266)](_0x369646(0x285)),_0x1111b9=_0x5c0941[_0x369646(0x266)](_0x598a20[_0x369646(0x25f)]);_0x598a20[_0x369646(0x1df)](_0x77f814,_0x1111b9)&&(_0x3d7d00[_0x3aeeda[_0x369646(0x2b4)]]=_0x77f814,_0x3d7d00[_0x598a20['BMtCf'](_0x3aeeda[_0x369646(0x2b4)],_0x598a20[_0x369646(0x200)])]=_0x1111b9,_0x3aeeda['has_data']=!![]),_0x34c247(null,_0x3d7d00);});}});},function(_0x2d7f43){_0x5a432e(_0x2d7f43);});else{if(_0x10116d[_0x1928a5(0x299)](_0x10116d[_0x1928a5(0x1be)],_0x1928a5(0x245)))_0x5bd2ae[_0x1928a5(0x296)]=_0x23027b[_0x1928a5(0x296)];else{if(_0x3d7d00[_0x1928a5(0x2ab)]==='99'&&_0x3d7d00[_0x1928a5(0x26e)]){if(_0x10116d[_0x1928a5(0x234)]!==_0x10116d[_0x1928a5(0x234)])return _0x35f5ba(_0x10116d[_0x1928a5(0x2b6)]);else{_0x3d7d00[_0x1928a5(0x253)]='';if(_0x3d7d00[_0x1928a5(0x26e)][_0x1928a5(0x1f7)](_0x10116d['DgRhx'])>=0x0)return _0x5a432e(_0x10116d[_0x1928a5(0x2af)]);let _0x26532a=_0x1928a5(0x263)+_0x3d7d00['script']+_0x1928a5(0x2f3);_0x10116d['scKiV'](evalute,_0x26532a,{'row':_0x3d7d00,'moment':moment,'condition':_0x216494,'user':_0x2e536f[_0x1928a5(0x26d)],'_':_,'utils':utils})()['then'](_0x26e74f=>{const _0x43e361=_0x1928a5;if(_0x10116d[_0x43e361(0x29d)](_0x10116d['TgtrI'],_0x43e361(0x19a)))_0x22566e[_0x43e361(0x1ef)]={'$regex':_0x56a56a,'$options':'i'};else{if(_0x26e74f){if(_0x10116d[_0x43e361(0x299)](_0x10116d[_0x43e361(0x252)],_0x10116d[_0x43e361(0x17f)])){if(_0x26e74f[_0x43e361(0x2d9)])return console[_0x43e361(0x2d9)](_0x26e74f[_0x43e361(0x2d9)],_0x26532a),_0x5a432e(_0x26e74f[_0x43e361(0x2d9)][_0x43e361(0x222)]||_0x26e74f[_0x43e361(0x2d9)]);_0x5a432e(null,_0x3d7d00);}else return _0x2b4288[_0x43e361(0x246)](_0x4c0549,_0x3b3a00);}else _0x10116d['eMuxb'](_0x5a432e,null,_0x3d7d00);}})[_0x1928a5(0x1d3)](_0x1f6086=>{const _0x5d8de7=_0x1928a5;return console['error'](_0x1f6086,_0x26532a),_0x2b4288[_0x5d8de7(0x246)](_0x5a432e,_0x1f6086['message']||_0x1f6086);});}}else _0x5a432e(null,_0x3d7d00);}}}else _0x1b98bc['ma_bp']=_0x15a9ca['ma_bp'];}});},function(_0x4b1af8){const _0x566c80=_0x169bd0,_0x209939={'YesZI':_0x7196ba[_0x566c80(0x233)],'MGmxL':function(_0x4610d0,_0xfbd26d){const _0x54e07e=_0x566c80;return _0x7196ba[_0x54e07e(0x235)](_0x4610d0,_0xfbd26d);},'sYBKF':_0x7196ba[_0x566c80(0x264)],'HOtJU':function(_0xb0c6c1,_0xffcfaa){const _0x2c5706=_0x566c80;return _0x7196ba[_0x2c5706(0x235)](_0xb0c6c1,_0xffcfaa);},'myxAA':function(_0x280ae2,_0x466253){const _0x5c5e30=_0x566c80;return _0x7196ba[_0x5c5e30(0x235)](_0x280ae2,_0x466253);},'XLZwl':function(_0x553ef4,_0x16e256){return _0x553ef4+_0x16e256;},'cuKya':function(_0x51b572,_0x34e363){const _0x458d54=_0x566c80;return _0x7196ba[_0x458d54(0x254)](_0x51b572,_0x34e363);},'ZjnBR':function(_0x3a59f3,_0x52cce4){return _0x3a59f3+_0x52cce4;},'oNHZC':function(_0x3d3d01,_0x1b331b){const _0x3ae09b=_0x566c80;return _0x7196ba[_0x3ae09b(0x25d)](_0x3d3d01,_0x1b331b);},'tnRbc':function(_0x1d9db6,_0x58cab8){const _0xe9727=_0x566c80;return _0x7196ba[_0xe9727(0x195)](_0x1d9db6,_0x58cab8);},'WLHmH':function(_0x443af9,_0xa17901){const _0x2a844e=_0x566c80;return _0x7196ba[_0x2a844e(0x206)](_0x443af9,_0xa17901);},'esqXx':_0x7196ba['jIDaU'],'JbTCI':function(_0x59c3f2,_0x5629e7){return _0x7196ba['eaUMj'](_0x59c3f2,_0x5629e7);},'TSibY':_0x7196ba[_0x566c80(0x214)],'enRrr':_0x7196ba[_0x566c80(0x1bd)]};if(_0x4b1af8)return _0x7196ba[_0x566c80(0x18e)](_0x368071,_0x4b1af8);let _0x3dedbd='';_0x50c805=_0x50c805[_0x566c80(0x1b4)](_0x14486d=>_0x14486d[_0x566c80(0x224)]),_0x50c805[_0x566c80(0x199)](function(_0x5dfcba){const _0x37af42=_0x566c80,_0x3456fa={'GyZVj':function(_0x19cb41,_0x1c65cf){const _0x590c92=_0x569e;return _0x209939[_0x590c92(0x2a9)](_0x19cb41,_0x1c65cf);},'TSNBr':_0x209939['sYBKF'],'nzURx':function(_0x10ef55,_0x789569){return _0x209939['HOtJU'](_0x10ef55,_0x789569);},'PGjnE':function(_0x1cdd57,_0x59cfa0){return _0x209939['myxAA'](_0x1cdd57,_0x59cfa0);},'MCDpo':function(_0x4ca6c8,_0x422dbd){const _0xfdbafe=_0x569e;return _0x209939[_0xfdbafe(0x205)](_0x4ca6c8,_0x422dbd);}};_0x209939[_0x37af42(0x236)]('iSrbW','BGGlk')?(_0x3dedbd?_0x3dedbd=_0x209939[_0x37af42(0x270)](_0x209939[_0x37af42(0x28a)](_0x209939[_0x37af42(0x207)](_0x209939['tnRbc'](_0x209939['WLHmH'](_0x3dedbd,','),_0x5dfcba[_0x37af42(0x2b4)]),','),_0x5dfcba[_0x37af42(0x2b4)]),_0x209939[_0x37af42(0x1e5)]):_0x209939[_0x37af42(0x236)](_0x209939[_0x37af42(0x1dc)],_0x209939[_0x37af42(0x1dc)])?(_0x193c2a?_0x5ac6fb=_0x3456fa[_0x37af42(0x17c)](_0x3456fa[_0x37af42(0x17c)](_0x16c2bd,',')+_0x2e2603['ma_obj']+','+_0x5bdeac[_0x37af42(0x2b4)],_0x3456fa['TSNBr']):_0x22181d=_0x3456fa[_0x37af42(0x1a0)](_0x3456fa[_0x37af42(0x1fc)](_0x3456fa[_0x37af42(0x291)](_0x314bed[_0x37af42(0x2b4)],','),_0x18e377[_0x37af42(0x2b4)]),_0x3456fa[_0x37af42(0x2bf)]),_0x1aee19[_0x37af42(0x290)]=_0x151b85[_0x37af42(0x2b4)],_0x1bd3ca[_0x37af42(0x1b6)]=_0x4f56cd[_0x37af42(0x229)],_0x6073a6[_0x37af42(0x1cf)]='Number'):_0x3dedbd=_0x209939[_0x37af42(0x29b)](_0x5dfcba[_0x37af42(0x2b4)]+','+_0x5dfcba[_0x37af42(0x2b4)],'_nt'),_0x5dfcba['field']=_0x5dfcba[_0x37af42(0x2b4)],_0x5dfcba['header']=_0x5dfcba[_0x37af42(0x229)],_0x5dfcba[_0x37af42(0x1cf)]=_0x209939[_0x37af42(0x1ea)]):_0x54e770=_0x4ea0e7[_0x37af42(0x2ad)](_0x209939[_0x37af42(0x20d)]);}),_0x7196ba[_0x566c80(0x271)](calcGrid,_0xb4e6ed,_0x3dedbd,async function(_0x2233e5){const _0x1aafe7=_0x566c80,_0x125e27={'bMTGk':_0x1aafe7(0x1b1),'bpFGn':function(_0x403b05,_0x6aca68){return _0x403b05(_0x6aca68);},'daRjm':_0x7196ba[_0x1aafe7(0x191)],'EBulN':function(_0x4b350b,_0x3140cc){const _0x1fffea=_0x1aafe7;return _0x7196ba[_0x1fffea(0x235)](_0x4b350b,_0x3140cc);},'ttvxa':function(_0x4899c1,_0x5a5d34){const _0x274661=_0x1aafe7;return _0x7196ba[_0x274661(0x17e)](_0x4899c1,_0x5a5d34);},'XHzvr':_0x1aafe7(0x201),'jCxBb':_0x7196ba[_0x1aafe7(0x1d7)],'CJAIz':function(_0x5c72d8,_0x1d9d44){return _0x5c72d8!==_0x1d9d44;},'XYHai':_0x1aafe7(0x29e),'AMPkH':_0x7196ba[_0x1aafe7(0x2ae)]};let _0x35ec33=[];_0x50c805[_0x1aafe7(0x199)](function(_0x257b15){const _0x44070f=_0x1aafe7;if(_0x125e27[_0x44070f(0x185)](_0x125e27['XHzvr'],_0x125e27[_0x44070f(0x23a)]))_0x4d2fbd[_0x44070f(0x1ee)]=_0x1a153a[_0x44070f(0x1ee)],_0x4687e5=_0x15d0d6[_0x44070f(0x2ad)](_0x125e27[_0x44070f(0x2a5)]);else{let _0x176c5c=0x0;if(_0x2233e5){if(_0x125e27['CJAIz'](_0x125e27[_0x44070f(0x27b)],_0x125e27['XYHai']))return _0x125e27[_0x44070f(0x1f9)](_0x29dead,_0x125e27[_0x44070f(0x279)]);else _0x2233e5['forEach'](function(_0x2eb539){const _0x22490e=_0x44070f;_0x176c5c=_0x125e27[_0x22490e(0x17d)](_0x176c5c,Math[_0x22490e(0x228)](_0x2eb539[_0x257b15[_0x22490e(0x2b4)]]||0x0));});}_0x176c5c&&(_0x125e27[_0x44070f(0x185)](_0x125e27[_0x44070f(0x1fe)],'mLtUu')?_0x35ec33[_0x44070f(0x1da)](_0x257b15):(_0x26fed6[_0x44070f(0x2b4)]=_0x480bea[_0x125866[_0x44070f(0x194)]],_0x5941e1['ten_obj']=_0x418b92[_0x4ce651[_0x44070f(0x1e8)]]));}}),_0x2233e5[_0x1aafe7(0x199)](function(_0x3e760b){const _0x185c68=_0x1aafe7,_0x190bac={'VbMYI':function(_0x104dd7,_0x466f2c){const _0x3d6441=_0x569e;return _0x209939[_0x3d6441(0x2a9)](_0x104dd7,_0x466f2c);},'phQiX':_0x185c68(0x2c1),'pknjn':function(_0x413ad5,_0x1e24fe){const _0x5d629c=_0x185c68;return _0x209939[_0x5d629c(0x236)](_0x413ad5,_0x1e24fe);},'PwCME':_0x209939[_0x185c68(0x27d)],'moTeL':function(_0x208911,_0x19abcf){return _0x208911+_0x19abcf;}};!_0x3e760b[_0x185c68(0x2ec)]&&(_0x3e760b[_0x185c68(0x1b7)]=0x0,_0x3e760b[_0x185c68(0x1d2)]=0x0,_0x50c805[_0x185c68(0x199)](function(_0x8c5155){const _0x4d76c8=_0x185c68,_0xf981bc={'aJjDe':function(_0x23ad73,_0x4c09af){return _0x23ad73+_0x4c09af;},'Ltrrg':function(_0x5aaae7,_0xb7cf7c){const _0x4ea4f5=_0x569e;return _0x190bac[_0x4ea4f5(0x193)](_0x5aaae7,_0xb7cf7c);},'znbME':_0x190bac[_0x4d76c8(0x1ce)]};_0x190bac[_0x4d76c8(0x2d1)](_0x190bac[_0x4d76c8(0x2d4)],_0x190bac['PwCME'])?_0x359c06=_0xf981bc[_0x4d76c8(0x275)](_0xf981bc[_0x4d76c8(0x256)](_0x4e43f2[_0x4d76c8(0x2b4)],','),_0x147e3b[_0x4d76c8(0x2b4)])+_0xf981bc['znbME']:(_0x3e760b['total']=_0x190bac[_0x4d76c8(0x17a)](_0x3e760b[_0x4d76c8(0x1b7)],_0x3e760b[_0x8c5155['ma_obj']]?_0x3e760b[_0x8c5155['ma_obj']]:0x0),_0x3e760b[_0x4d76c8(0x1d2)]=_0x3e760b['total_nt']+(_0x3e760b[_0x190bac[_0x4d76c8(0x17a)](_0x8c5155[_0x4d76c8(0x2b4)],_0x190bac['phQiX'])]?_0x3e760b[_0x190bac['moTeL'](_0x8c5155[_0x4d76c8(0x2b4)],_0x190bac[_0x4d76c8(0x1ce)])]:0x0));}));});if(_0x595ae0[_0x1aafe7(0x21f)]){if(_0x595ae0[_0x1aafe7(0x21f)][_0x1aafe7(0x1f7)](_0x1aafe7(0x2b0))>=0x0)return _0x368071(_0x1aafe7(0x24e));let _0x47d84c=_0x1aafe7(0x2e3)+_0x595ae0[_0x1aafe7(0x21f)]+_0x1aafe7(0x2e4);try{_0x2233e5=await utils['evalute'](_0x47d84c,{'data':_0x2233e5,'moment':moment,'numeral':numeral,'condition':_0x2e536f[_0x1aafe7(0x278)]})();if(_0x2233e5){if(_0x7196ba[_0x1aafe7(0x1b9)](_0x7196ba[_0x1aafe7(0x29f)],_0x1aafe7(0x297))){if(_0x2233e5[_0x1aafe7(0x2d9)]){if(_0x7196ba[_0x1aafe7(0x17e)](_0x7196ba[_0x1aafe7(0x2ee)],_0x7196ba[_0x1aafe7(0x2ee)]))return console['error'](_0x2233e5[_0x1aafe7(0x2d9)],_0x47d84c),_0x368071(_0x2233e5[_0x1aafe7(0x2d9)][_0x1aafe7(0x222)]||_0x2233e5['error']);else _0x70b552=_0x1aafe7(0x213)+_0x3f8b48;}}else{if(!_0x3da6aa)return;return _0xda5239[_0x1aafe7(0x23d)]();}}}catch(_0x55e2bd){return console[_0x1aafe7(0x2d9)](_0x55e2bd,_0x47d84c),_0x7196ba[_0x1aafe7(0x18e)](_0x368071,_0x55e2bd[_0x1aafe7(0x222)]||_0x55e2bd);}}_0x368071(null,{'rows':_0x2233e5[_0x1aafe7(0x1b4)](_0x113eed=>_0x113eed[_0x1aafe7(0x19c)]!==![]),'columns':_0x35ec33});});});});}});};function _0x569e(_0x5acb69,_0x3d173a){const _0x36bdb3=_0x36bd();return _0x569e=function(_0x569ee2,_0x5589ab){_0x569ee2=_0x569ee2-0x177;let _0x2930f7=_0x36bdb3[_0x569ee2];if(_0x569e['heVRLx']===undefined){var _0x3071d3=function(_0x33e623){const _0x13be3a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3da6aa='',_0xda5239='';for(let _0x20e94a=0x0,_0x35f5ba,_0x16f9de,_0x29dead=0x0;_0x16f9de=_0x33e623['charAt'](_0x29dead++);~_0x16f9de&&(_0x35f5ba=_0x20e94a%0x4?_0x35f5ba*0x40+_0x16f9de:_0x16f9de,_0x20e94a++%0x4)?_0x3da6aa+=String['fromCharCode'](0xff&_0x35f5ba>>(-0x2*_0x20e94a&0x6)):0x0){_0x16f9de=_0x13be3a['indexOf'](_0x16f9de);}for(let _0x157abb=0x0,_0x3ff708=_0x3da6aa['length'];_0x157abb<_0x3ff708;_0x157abb++){_0xda5239+='%'+('00'+_0x3da6aa['charCodeAt'](_0x157abb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xda5239);};_0x569e['OJMjiO']=_0x3071d3,_0x5acb69=arguments,_0x569e['heVRLx']=!![];}const _0x12882b=_0x36bdb3[0x0],_0x25a05f=_0x569ee2+_0x12882b,_0x4bce68=_0x5acb69[_0x25a05f];return!_0x4bce68?(_0x2930f7=_0x569e['OJMjiO'](_0x2930f7),_0x5acb69[_0x25a05f]=_0x2930f7):_0x2930f7=_0x4bce68,_0x2930f7;},_0x569e(_0x5acb69,_0x3d173a);}function _0x36bd(){const _0x51d70f=['zM9YrwfJAa','zwvbBg8','BgvUz3rO','ChjPBNq','wKTyCNi','yvfPBLq','BfvMD2G','BNPvuNG','s2JdTg5NihrO4BUdigldOw8Gy8oHBYb0AgvVimsr4BUrAsb0XRdHU6nUzYbUW6b5','yunqBMm','zLH1rKm','yM9TvNq','yNf3svG','BhL0q00','C2v0tw9UDgG','qMTlD1K','txvUrxq','yMfVx2nHB190AgvV','s2Tuwfe','nJbrrxvMwfu','v3LxCu8','DLbVvMO','zMLUza','r2H3Egy','C29JywL0yW','C3vjBgW','qu5vEwS','zMLSDgvY','DhvFBMDHEq','AgvHzgvY','Dg90ywW','yLDyu3q','tLvVCue','Bff0rxe','y05kD2G','De5nqvq','v29czgW','svbUvxm','BwfFA2G','ugfjs1K','BwfFzhrFBwu','wvjVtu0','C2jgzeG','q25cvKi','rffhCeG','DgTFy28','BwfW','BgLyqLO','rxLLCgC','CNb0zM9YBq','rNL2DMi','q0zxCeS','ChDqDwK','CgHrAvG','zgf0yxr5Cgu','ufLir3O','zNfSswe','Dg90ywXFBNq','y2f0y2G','wfHdEvi','rM5tz3K','BwfFyNa','AMfbshy','uezPAM0','BwfFyNbFBwu','ChvZAa','mtK1otyZoernAxjira','zxnXwhG','suXhweW','rNPtruO','AuzJu28','swHmz0y','quX5wMu','Dg9mB3DLCKnHC2u','z01wD1C','ChbeC00','C1Lcs0y','qMLTz00','CennBge','AgvHzgvYx2zPzwXK','Bw9Uz29VC2u','vfnPyLK','qufIqLy','B3Hgy1y','BuX0vxu','BwfFA2HV','DgTFBM8','rfr3ugW','zKX0qvO','vhf5zhe','DKPbEMK','AuPQqLm','tEg6Q3uGySoHBYbJW6fVig7dOhKGA2JdTg5NigpdSYbNACoHihrY4BUl','yLn0tg8','Aw5KzxHpzG','z05qweq','yNbgr24','CMDgr1C','EMfOt2q','ueDQBKu','C29JywL0Da','qu1qA0G','zg1WAgK','AenxAwK','zfLUuLm','sM5Jq2C','zg1ICa','yuTtAMO','weXAD2W','wg1tAK0','B05iwKm','z3PQEK8','v1H4vhe','Bw9KzwXFB2jQ','C3rHCNrpzG','D05hD2S','wwvZwKK','t0Livw8','sLn3y1G','twn6vKC','t0rxAvC','owjSq1LcrW','CMv0DxjUia','we1tCvi','sK5pyvq','ELzxwgG','quv6qNG','z3HNDLu','Dg9eyxrL','vfrvtg0','uw5eDuG','Au1hDfG','DxrIr2e','q1nYDvG','AgfUzgXLx2rHDgfFzxHWCMvZC2LVBL9Zzxj2zxi','wwjdt3q','z2LHBv90CNvFBM8','BwvZC2fNzq','AxnoDw1Izxi','AgfZx2rHDge','wgrvz0i','AeDrvuS','uwPVDxC','ywjZ','DgvUx29IAG','CfndBva','ChDQrhi','vvDvq3i','AxfRyLG','Cxv5x25HBq','AwHXtMW','vMP2CNe','AunNALq','Bg9N','t0DRA1K','wur1Be8','qLbYzve','y3vlEwe','BwLU','BwfFzhzJCW','Bw9Tzw50','AKn4qMi','BMDHEv9JDa','zgLLDv9RAwvUx2TOywm','CMvN','BwfFCgHPx21L','yKDYDgW','uMLABLq','tK1ws0q','B2vpA1y','mtmYnZeYotjrtgfVC2W','Chr0y3rRAg8','wKnfD2i','t1jUwKq','DxnMs1O','Bwf4','vwHXBLu','vKPLvK0','BMTnvhG','mZbLzuLpCe4','t2X0A2C','yxn5BMmGzNvUy3rPB24GAxmGBM90igfSBg93','u25vBxu','EKvAyui','whfYEw8','DwPzCMK','y29Uz190AhvJ','B09tqve','twL5ww8','thrYCMC','x3n0CMLUzW','Bw9UDgG','zxHLyW','mtnyD2HYt0y','Cfvmzwi','vxvlvxy','z2nZChm','zwXXzw0','ue1nzw8','uK1Xtu8','tK14sMi','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCLjqva','CMv0DxjUicHHC3LUyYaOkt0+EWOjcqKjcqKjcqL0CNL7cGKjcqKjcqKjcqK','D1fIuey','D0HUrwe','y3n1Bq','CMvWB3j0','BwfFCgHP','ndCXmdu4ywPoserx','lI4VlI4VBgLICY91DgLSCW','CffxqNu','BNvTzxjHBa','DxnLCG','C2nYAxb0','tw53te0','se90sLu','qw9rzu4','CxvHCNrLCG','vhLWzxm','vgLRD1y','yuPQrgu','rhLpz1G','t2votLC','CxvLCNK','zgfsAM0','Cgf0Ahm','wfLiywK','z056B1O','zw5sCNi','z2v0rNvSBfLLyxi','nhrqzNf6tG','suX4rhG','ntqYmdi2nvjVBxr6vW','sLfuB2q','zw5Kt2y','tw5yAgy','DgLLBG','BLHNDLq','wNPUBLy','AuDhA2q','EuPjEMe','wMPUqLi','z2v0tw9UDgG','y3vZDg9Tzxi','A2jTuhr0y3q','t1D0z24','mZm1nZK5ou1xBLf4Aq','zMLLBgq','tuneCg8','zgf0zq','sKT2rKi','DKj0AhO','AuHOwuG','BwfFBNy','uMT6rKy','u2DJBeS','Chj2t2y','zhDoAxq','sMjuq0K','sfrqC0u','vLjwsMC','Awf3v3C','zg5SrNC','q2nsEKu','BwvsrwK','vg5Vs2y','rg9XDKW','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsb0AgfTihpHU5eGDog7QYbUz8oGEsH0Dv9Uz2f5ksWGXjhHUR9Uig5NW6b5kgrLBL9Uz2f5ksWGBEg6Q3uGkgLKx3jWDgzVCM0PlcdeKog7KwKGDmAW4BUJBMCGySoHBYbJW6fVkgjHB19Jyw9FDgHLBYK','yK1ur2S','qMHKCeu','vgJdOw5Nia','Dg9tDhjPBMC','tuDTEeW','DgHHBMDFBMfT','y2fJAf90Aw5O','DLDkwvy','z2v0tw9KzwW','D05mq20','Cg5pDKS','yxn5BMmG','ENf2v1G','ywXqzLC','zg1KDa','BwfFB2jQ','s3PdEuO','y1rhBuC','zgDwBxa','munPvxnvDG','t2jQzwn0swq','v1zizM0','thvNqLy','wu9VA2i','mtmXmJGXmtjUA0TUvNq','sxjtt3u','vfnoqNi','t1rgrue','x250','Bff0uMC','qNz4ENG','rfHxyKO','BeLJqwu','BMDVA24','tvn6Eve','BhfRrMS','twXiBMe','AwrFCNb0zM9YBq','AgncCxa','qLzICM4','AwrIzxq','AurbD0m','BKzguKS','AgfZ','CgTUAM4','CgH1x3rYywnO','t0jeugu','uhDdtuu','yKXdwxi','yLrYDeW','x2LK','y0zKA2C','zxjYB3i','ugTyy1i','zNjnDwe','DgLLBL9UDa','ru1RELu','v09qruW','svPgt3a','txLwseO','ywjYBKi','uM5owha','CMv0DxjUicHHC3LUyYaOkt0+EWOjcqKjcqKjDhj5EWOjcqKjcqKjcq','cGKjcqKjcqL9y2f0y2GOzsL7cGKjcqKjcqKjCMv0DxjUihTLCNjVCJPLFqOjcqKjcqKjFqOjcqKjcqKkcqKjcqKjFsK','EMHnD1K','rKXlDvG','rgvqq0S','wvzmqvG','Cfz0D0e','BMzArwm','BwfFAgq','A2HVBMDFDgLUAf90B25N','z3rwzeK','rgrkAeW','uxxdVsa','BMDcsMy','veXHtgi','rMjxtxu','cGKjcqKjcqKjcx1JyxrJAcHLkxSkcqKjcqKjcqKjcxjLDhvYBIb7zxjYB3i6zx0kcqKjcqKjcqKjFqOjcqKjcqKjcqKkcqKjcqKjcqL9kq','yvP3zKq','zhvZDwW','AwrFyxbW','BMHFA2G','wMXcD2O','C2DVDfK','Bw9uzuW','ue9usLm','r3LAvMO','ruj1Be4','zMrxsfe','wfbVrwS','vu5Jv0i','BgvHBG','BwfFC3a','uuTetMG','uMDbBhm','Dhr2Ege','tNvTyMvY','s3Hht3q','DLnwCxa','mtG0mtK2mxjgqNDWzG','Dxv5u0C','uKPjs1y','zMLUze9Uzq','D3nPAKe','vuXJB00','z2Duswy','AwPREwy','wejxuhG','BwfFzhq','vMjnwuK','DMfSDwvFzMLLBgq','CMfjv1u','Dw9JELi','zgvUx25NyxK','CKnQDuK'];_0x36bd=function(){return _0x51d70f;};return _0x36bd();}