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,85 +1 @@
1
- const cktk=require("../../libs/cktk"),dktk=require("../../libs/dktk"),kbmbcqt=global.getModel("kbmbcqt"),rptform=global.getModel("rptform"),async=require("async"),_=require("lodash"),utils=require("../../libs/utils"),controller=require("../../controllers/controllerRPT"),moment=require("moment"),numeral=require("numeral"),{evalute}=require("../../libs/utils"),ctds=global.getModel("ctds"),{getCodeChildren}=require("../../libs/utils");
2
- function exec($cong_thuc_func_string$$,$sandbox$$){$cong_thuc_func_string$$=$cong_thuc_func_string$$.split("undefined").join("0").split("null").join("0");$cong_thuc_func_string$$=($cong_thuc_func_string$$||"").indexOf("return ")<0?`return ${$cong_thuc_func_string$$}`:$cong_thuc_func_string$$;return utils.evalute($cong_thuc_func_string$$,$sandbox$$)}
3
- const getRegString=function($arrayTk$$){return $arrayTk$$.reg()},calc4cell=async($req$$,$row_socai$$,$cell$$,$query_tk_co_tk_no$$,$callback$$)=>{if(!$cell$$)return $callback$$(null,{value:0,value_nt:0,cong_thuc:""});var $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$;$cell$$.ma_phi&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$=await getCodeChildren(global.getModel("dmphi"),$query_tk_co_tk_no$$.id_app,$cell$$.ma_phi,"ma_phi","ma_phi_me"));switch($cell$$.cach_tinh){case "1":$cell$$.value_string=
4
- "";$callback$$(null,$cell$$);break;case "9":$cell$$.cong_thuc="";$cell$$.value_string="";utils.getInfoFromQuery($query_tk_co_tk_no$$,$cell$$.query,($e$$,$rs$$)=>{if($e$$)return $callback$$(null,$cell$$);_.isNumber($rs$$)?$cell$$.value=$rs$$:$cell$$.value_string=$rs$$;$callback$$(null,$cell$$)});break;case "99":$cell$$.cong_thuc="";$cell$$.value_string="";if(!$cell$$.script||$cell$$.script.indexOf("async ")>=0)return $callback$$(null,$cell$$);let $func_string$$=`return (async ()=>{
5
- try{
6
- ${$cell$$.script}
7
- }catch(e){
8
- return {error:e}
9
- }
10
-
11
- })`;utils.evalute($func_string$$,{row:$row_socai$$,moment,condition:$query_tk_co_tk_no$$,user:$req$$.user,_,utils,cell:$cell$$})().then($rs$$=>{if($rs$$){if($rs$$.error)return console.error($rs$$.error,$func_string$$),$callback$$(null,$cell$$);_.isNumber($rs$$)?$cell$$.value=$rs$$:$cell$$.value_string=$rs$$}$callback$$(null,$cell$$)}).catch($e$$=>{console.error($e$$,$func_string$$);return $callback$$($e$$.message||$e$$.error||$e$$,$cell$$)});break;case "2":$cell$$.cong_thuc="";$cell$$.value_string=
12
- "";var $condition_dieu_kien_khac$$={ngay_ct:{$gte:$query_tk_co_tk_no$$.tu_ngay,$lte:$query_tk_co_tk_no$$.den_ngay},id_app:$query_tk_co_tk_no$$.id_app};$query_tk_co_tk_no$$.ma_dvcs&&($condition_dieu_kien_khac$$.ma_dvcs=$query_tk_co_tk_no$$.ma_dvcs);$query_tk_co_tk_no$$.ma_bp&&($condition_dieu_kien_khac$$.ma_bp=$query_tk_co_tk_no$$.ma_bp);$query_tk_co_tk_no$$.ma_hd&&($condition_dieu_kien_khac$$.ma_hd=$query_tk_co_tk_no$$.ma_hd);$query_tk_co_tk_no$$.ma_dt&&($condition_dieu_kien_khac$$.ma_dt=$query_tk_co_tk_no$$.ma_dt);
13
- $query_tk_co_tk_no$$.ma_sp&&($condition_dieu_kien_khac$$.ma_sp=$query_tk_co_tk_no$$.ma_sp);$query_tk_co_tk_no$$.ma_nv&&($condition_dieu_kien_khac$$.ma_nv=$query_tk_co_tk_no$$.ma_nv);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$&&($condition_dieu_kien_khac$$.ma_phi=$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$);$cell$$.ma_kh&&($condition_dieu_kien_khac$$.$or=[{ma_kh_no:$cell$$.ma_kh},{ma_kh_co:$cell$$.ma_kh}]);if($query_tk_co_tk_no$$=getRegString($cell$$.tk_no))$condition_dieu_kien_khac$$.tk_no=
14
- $cell$$.giam_tru_no?{$not:new RegExp($query_tk_co_tk_no$$)}:{$regex:$query_tk_co_tk_no$$,$options:"i"};if($query_tk_co_tk_no$$=getRegString($cell$$.tk_co))$condition_dieu_kien_khac$$.tk_co=$cell$$.giam_tru_co&&$query_tk_co_tk_no$$?{$not:new RegExp($query_tk_co_tk_no$$)}:{$regex:$query_tk_co_tk_no$$,$options:"i"};if($cell$$.dieu_kien_khac)try{$cell$$.dieu_kien_khac.indexOf("return")<0&&($cell$$.dieu_kien_khac="return "+$cell$$.dieu_kien_khac);var $condition$$=evalute($cell$$.dieu_kien_khac,{condition:$condition_dieu_kien_khac$$,
15
- moment,row:$row_socai$$,cell:$cell$$});$condition_dieu_kien_khac$$={...$condition_dieu_kien_khac$$,...$condition$$}}catch($e$$){return $callback$$($e$$.toString())}$cell$$.ma_kho||$cell$$.ma_kh?($cell$$.ma_kho&&($condition_dieu_kien_khac$$.ma_kho=$cell$$.ma_kho),$row_socai$$=global.getModel("socaitc")):$row_socai$$=global.getModel("socaitt");try{$row_socai$$.find($condition_dieu_kien_khac$$).lean().then($rs$$=>{$cell$$.value=$rs$$.csum("tien");$cell$$.value_nt=$rs$$.csum("tien_nt");$cell$$.details=
16
- $rs$$;$callback$$(null,$cell$$)}).catch($error$$=>{$callback$$($error$$)})}catch($e$$){$callback$$($e$$)}break;case "3":$cell$$.cong_thuc="";$cell$$.value_string="";$condition$$=$query_tk_co_tk_no$$.tu_ngay.getFullYear()*12+$query_tk_co_tk_no$$.tu_ngay.getMonth();var $den_nam_thang_dieu_kien_khac$$=$query_tk_co_tk_no$$.den_ngay.getFullYear()*12+$query_tk_co_tk_no$$.den_ngay.getMonth();$condition$$={id_app:$query_tk_co_tk_no$$.id_app,tu_nam_thang:$condition$$,den_nam_thang:$den_nam_thang_dieu_kien_khac$$};
17
- $query_tk_co_tk_no$$.ma_dvcs&&($condition$$.ma_dvcs=$query_tk_co_tk_no$$.ma_dvcs);$query_tk_co_tk_no$$.ma_bp&&($condition$$.ma_bp=$query_tk_co_tk_no$$.ma_bp);$query_tk_co_tk_no$$.ma_hd&&($condition$$.ma_hd=$query_tk_co_tk_no$$.ma_hd);$query_tk_co_tk_no$$.ma_dt&&($condition$$.ma_dt=$query_tk_co_tk_no$$.ma_dt);$query_tk_co_tk_no$$.ma_sp&&($condition$$.ma_sp=$query_tk_co_tk_no$$.ma_sp);$query_tk_co_tk_no$$.ma_nv&&($condition$$.ma_nv=$query_tk_co_tk_no$$.ma_nv);$cell$$.ma_phi&&($condition$$.ma_phi=$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$);
18
- $cell$$.ma_kho&&($condition$$.ma_kho=$cell$$.ma_kho);$cell$$.ma_kh&&($condition$$.ma_kh=$cell$$.ma_kh);if($cell$$.dieu_kien_khac)try{$cell$$.dieu_kien_khac.indexOf("return")<0&&($cell$$.dieu_kien_khac="return "+$cell$$.dieu_kien_khac),$condition_dieu_kien_khac$$=evalute($cell$$.dieu_kien_khac,{condition:$condition$$,moment,row:$row_socai$$,cell:$cell$$}),$condition$$={...$condition$$,...$condition_dieu_kien_khac$$}}catch($e$$){return $callback$$($e$$.toString())}try{ctds.find($condition$$).lean().then($rs$$=>
19
- {$cell$$.value_nt=$cell$$.value=$rs$$.csum("chi_tieu");$callback$$(null,$cell$$)}).catch($e$$=>{$callback$$($e$$)})}catch($e$$){$callback$$($e$$)}break;case "5":$cell$$.cong_thuc="";$cell$$.value_string="";$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$={...$query_tk_co_tk_no$$};$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($query_tk_co_tk_no$$.tu_ngay);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.bu_tru=$cell$$.bu_tru_cong_no;
20
- $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.tk=$cell$$.tk;$cell$$.ma_kh&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ma_kh=$cell$$.ma_kh);if($cell$$.dieu_kien_khac)try{$cell$$.dieu_kien_khac.indexOf("return")<0&&($cell$$.dieu_kien_khac="return "+$cell$$.dieu_kien_khac);$den_nam_thang_dieu_kien_khac$$=evalute($cell$$.dieu_kien_khac,{condition:$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$,moment,row:$row_socai$$,cell:$cell$$});
21
- if($den_nam_thang_dieu_kien_khac$$.ngay&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setDate($den_nam_thang_dieu_kien_khac$$.ngay),$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$query_tk_co_tk_no$$.den_ngay.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()))return $callback$$(null,{value:0,value_nt:0});if($den_nam_thang_dieu_kien_khac$$.thang){$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setMonth($den_nam_thang_dieu_kien_khac$$.thang-
22
- 1);let $ngay_dau_thang$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).startOf("month").toDate(),$ngay_cuoi_thang$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).endOf("month").toDate();$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($ngay_dau_thang$$);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=
23
- new Date($query_tk_co_tk_no$$.tu_ngay));$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$query_tk_co_tk_no$$.den_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=moment($query_tk_co_tk_no$$.den_ngay).startOf("date").toDate());if($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$ngay_cuoi_thang$$.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<
24
- $ngay_dau_thang$$.getTime())return $callback$$(null,{value:0,value_nt:0})}if($den_nam_thang_dieu_kien_khac$$.quy){$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setMonth(3*($den_nam_thang_dieu_kien_khac$$.quy-1));let $ngay_dau_quy$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).startOf("quarter").toDate(),$ngay_cuoi_quy$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).endOf("quarter").toDate();$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=
25
- new Date($ngay_dau_quy$$);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($query_tk_co_tk_no$$.tu_ngay));$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$query_tk_co_tk_no$$.den_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=moment($query_tk_co_tk_no$$.den_ngay).startOf("date").toDate());
26
- if($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$ngay_cuoi_quy$$.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$ngay_dau_quy$$.getTime())return $callback$$(null,{value:0,value_nt:0})}if($den_nam_thang_dieu_kien_khac$$.nam){$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setYear($den_nam_thang_dieu_kien_khac$$.nam);let $ngay_dau_nam$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).startOf("year").toDate(),
27
- $ngay_cuoi_nam$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).endOf("year").toDate();$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($ngay_dau_nam$$);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($query_tk_co_tk_no$$.tu_ngay));$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>
28
- $query_tk_co_tk_no$$.den_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=moment($query_tk_co_tk_no$$.den_ngay).startOf("date").toDate());if($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$ngay_cuoi_nam$$.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$ngay_dau_nam$$.getTime())return $callback$$(null,{value:0,value_nt:0})}delete $den_nam_thang_dieu_kien_khac$$.ngay;delete $den_nam_thang_dieu_kien_khac$$.quy;
29
- delete $den_nam_thang_dieu_kien_khac$$.thang;delete $den_nam_thang_dieu_kien_khac$$.nam;$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$={...$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$,...$den_nam_thang_dieu_kien_khac$$}}catch($e$$){return $callback$$($e$$.toString())}delete $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.tu_ngay;delete $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.den_ngay;dktk($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$,
30
- function($error$$,$result$$){if($error$$)return $callback$$($error$$);$cell$$.value=$result$$.csum("du_no00");$cell$$.value_nt=$result$$.csum("du_no_nt00");$cell$$.value<0&&$cell$$.khong_am&&($cell$$.value=0);$cell$$.value_nt<0&&$cell$$.khong_am&&($cell$$.value_nt=0);$callback$$(null,$cell$$)});break;case "6":$cell$$.cong_thuc="";$cell$$.value_string="";$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$={...$query_tk_co_tk_no$$};$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=
31
- new Date($query_tk_co_tk_no$$.tu_ngay);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.bu_tru=$cell$$.bu_tru_cong_no;$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.tk=$cell$$.tk;delete $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.tu_ngay;delete $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.den_ngay;$cell$$.ma_kh&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ma_kh=$cell$$.ma_kh);
32
- if($cell$$.dieu_kien_khac)try{$cell$$.dieu_kien_khac.indexOf("return")<0&&($cell$$.dieu_kien_khac="return "+$cell$$.dieu_kien_khac);let $dieu_kien_khac$$=evalute($cell$$.dieu_kien_khac,{condition:$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$,moment,row:$row_socai$$,cell:$cell$$});if($dieu_kien_khac$$.ngay&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setDate($dieu_kien_khac$$.ngay),$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>
33
- $query_tk_co_tk_no$$.den_ngay.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()))return $callback$$(null,{value:0,value_nt:0});if($dieu_kien_khac$$.thang){$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setMonth($dieu_kien_khac$$.thang-1);let $ngay_dau_thang$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).startOf("month").toDate(),$ngay_cuoi_thang$$=
34
- moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).endOf("month").toDate();$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($ngay_dau_thang$$);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($query_tk_co_tk_no$$.tu_ngay));$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>
35
- $query_tk_co_tk_no$$.den_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=moment($query_tk_co_tk_no$$.den_ngay).startOf("date").toDate());if($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$ngay_cuoi_thang$$.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$ngay_dau_thang$$.getTime())return $callback$$(null,{value:0,value_nt:0})}if($dieu_kien_khac$$.quy){$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setMonth(($dieu_kien_khac$$.quy-
36
- 1)*3);let $ngay_dau_quy$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).startOf("quarter").toDate(),$ngay_cuoi_quy$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).endOf("quarter").toDate();$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($ngay_dau_quy$$);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=
37
- new Date($query_tk_co_tk_no$$.tu_ngay));$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$query_tk_co_tk_no$$.den_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=moment($query_tk_co_tk_no$$.den_ngay).startOf("date").toDate());if($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$ngay_cuoi_quy$$.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<
38
- $ngay_dau_quy$$.getTime())return $callback$$(null,{value:0,value_nt:0})}if($dieu_kien_khac$$.nam){$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setYear($dieu_kien_khac$$.nam);let $ngay_dau_nam$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).startOf("year").toDate(),$ngay_cuoi_nam$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).endOf("year").toDate();$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=
39
- new Date($ngay_dau_nam$$);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($query_tk_co_tk_no$$.tu_ngay));$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$query_tk_co_tk_no$$.den_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=moment($query_tk_co_tk_no$$.den_ngay).startOf("date").toDate());
40
- if($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$ngay_cuoi_nam$$.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$ngay_dau_nam$$.getTime())return $callback$$(null,{value:0,value_nt:0})}delete $dieu_kien_khac$$.ngay;delete $dieu_kien_khac$$.thang;delete $dieu_kien_khac$$.quy;delete $dieu_kien_khac$$.nam;$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$={...$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$,
41
- ...$dieu_kien_khac$$}}catch($e$$){return $callback$$($e$$.toString())}dktk($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$cell$$.value=$result$$.csum("du_co00");$cell$$.value_nt=$result$$.csum("du_co_nt00");$cell$$.value<0&&$cell$$.khong_am&&($cell$$.value=0);$cell$$.value_nt<0&&$cell$$.khong_am&&($cell$$.value_nt=0);$callback$$(null,$cell$$)});break;case "7":$cell$$.cong_thuc="";$cell$$.value_string="";
42
- $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$={...$query_tk_co_tk_no$$};$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($query_tk_co_tk_no$$.den_ngay);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.bu_tru=$cell$$.bu_tru_cong_no;$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.tk=$cell$$.tk;delete $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.tu_ngay;delete $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.den_ngay;
43
- $cell$$.ma_kh&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ma_kh=$cell$$.ma_kh);if($cell$$.dieu_kien_khac)try{$cell$$.dieu_kien_khac.indexOf("return")<0&&($cell$$.dieu_kien_khac="return "+$cell$$.dieu_kien_khac);let $dieu_kien_khac$$=evalute($cell$$.dieu_kien_khac,{condition:$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$,moment,row:$row_socai$$,cell:$cell$$});if($dieu_kien_khac$$.ngay&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setDate($dieu_kien_khac$$.ngay),
44
- $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$query_tk_co_tk_no$$.den_ngay.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()))return $callback$$(null,{value:0,value_nt:0});if($dieu_kien_khac$$.thang){$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setMonth($dieu_kien_khac$$.thang-1);let $ngay_dau_thang$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).startOf("month").toDate(),
45
- $ngay_cuoi_thang$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).endOf("month").toDate();$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($ngay_cuoi_thang$$);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=moment($query_tk_co_tk_no$$.tu_ngay).endOf("date").toDate());$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>
46
- $query_tk_co_tk_no$$.den_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($query_tk_co_tk_no$$.den_ngay));if($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$ngay_cuoi_thang$$.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$ngay_dau_thang$$.getTime())return $callback$$(null,{value:0,value_nt:0})}if($dieu_kien_khac$$.quy){$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setMonth(($dieu_kien_khac$$.quy-
47
- 1)*3);let $ngay_dau_quy$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).startOf("quarter").toDate(),$ngay_cuoi_quy$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).endOf("quarter").toDate();$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($ngay_cuoi_quy$$);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=
48
- moment($query_tk_co_tk_no$$.tu_ngay).endOf("date").toDate());$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$query_tk_co_tk_no$$.den_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($query_tk_co_tk_no$$.den_ngay));if($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$ngay_cuoi_quy$$.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<
49
- $ngay_dau_quy$$.getTime())return $callback$$(null,{value:0,value_nt:0})}if($dieu_kien_khac$$.nam){$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setYear($dieu_kien_khac$$.nam);let $ngay_dau_nam$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).startOf("year").toDate(),$ngay_cuoi_nam$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).endOf("year").toDate();$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=
50
- new Date($ngay_cuoi_nam$$);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=moment($query_tk_co_tk_no$$.tu_ngay).endOf("date").toDate());$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$query_tk_co_tk_no$$.den_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($query_tk_co_tk_no$$.den_ngay));
51
- if($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$ngay_cuoi_nam$$.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$ngay_dau_nam$$.getTime())return $callback$$(null,{value:0,value_nt:0})}delete $dieu_kien_khac$$.ngay;delete $dieu_kien_khac$$.thang;delete $dieu_kien_khac$$.quy;delete $dieu_kien_khac$$.nam;$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$={...$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$,
52
- ...$dieu_kien_khac$$}}catch($e$$){return $callback$$($e$$.toString())}cktk($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$cell$$.value=$result$$.csum("du_no00");$cell$$.value_nt=$result$$.csum("du_no_nt00");$cell$$.value<0&&$cell$$.khong_am&&($cell$$.value=0);$cell$$.value_nt<0&&$cell$$.khong_am&&($cell$$.value_nt=0);$callback$$(null,$cell$$)});break;case "8":$cell$$.cong_thuc="";$cell$$.value_string="";
53
- $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$={...$query_tk_co_tk_no$$};$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($query_tk_co_tk_no$$.den_ngay);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.bu_tru=$cell$$.bu_tru_cong_no;$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.tk=$cell$$.tk;delete $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.tu_ngay;delete $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.den_ngay;
54
- $cell$$.ma_kh&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ma_kh=$cell$$.ma_kh);if($cell$$.dieu_kien_khac)try{$cell$$.dieu_kien_khac.indexOf("return")<0&&($cell$$.dieu_kien_khac="return "+$cell$$.dieu_kien_khac);let $dieu_kien_khac$$=evalute($cell$$.dieu_kien_khac,{condition:$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$,moment,row:$row_socai$$,cell:$cell$$});if($dieu_kien_khac$$.ngay&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setDate($dieu_kien_khac$$.ngay),
55
- $condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$query_tk_co_tk_no$$.den_ngay.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()))return $callback$$(null,{value:0,value_nt:0});if($dieu_kien_khac$$.thang){$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setMonth($dieu_kien_khac$$.thang);let $ngay_dau_thang$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).startOf("month").toDate(),
56
- $ngay_cuoi_thang$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).endOf("month").toDate();$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($ngay_cuoi_thang$$);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=moment($query_tk_co_tk_no$$.tu_ngay).endOf("date").toDate());$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>
57
- $query_tk_co_tk_no$$.den_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($query_tk_co_tk_no$$.den_ngay));if($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$ngay_cuoi_thang$$.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$ngay_dau_thang$$.getTime())return $callback$$(null,{value:0,value_nt:0})}if($dieu_kien_khac$$.quy){$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setMonth(($dieu_kien_khac$$.quy-
58
- 1)*3);let $ngay_dau_quy$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).startOf("quarter").toDate(),$ngay_cuoi_quy$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).endOf("quarter").toDate();$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($ngay_cuoi_quy$$);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=
59
- moment($query_tk_co_tk_no$$.tu_ngay).endOf("date").toDate());$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$query_tk_co_tk_no$$.den_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($query_tk_co_tk_no$$.den_ngay));if($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$ngay_cuoi_quy$$.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<
60
- $ngay_dau_quy$$.getTime())return $callback$$(null,{value:0,value_nt:0})}if($dieu_kien_khac$$.nam){$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.setYear($dieu_kien_khac$$.nam);let $ngay_dau_nam$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).startOf("year").toDate(),$ngay_cuoi_nam$$=moment($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay).endOf("year").toDate();$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=
61
- new Date($ngay_cuoi_nam$$);$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$query_tk_co_tk_no$$.tu_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=moment($query_tk_co_tk_no$$.tu_ngay).endOf("date").toDate());$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$query_tk_co_tk_no$$.den_ngay.getTime()&&($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay=new Date($query_tk_co_tk_no$$.den_ngay));
62
- if($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()>$ngay_cuoi_nam$$.getTime()||$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$.ngay.getTime()<$ngay_dau_nam$$.getTime())return $callback$$(null,{value:0,value_nt:0})}delete $dieu_kien_khac$$.ngay;delete $dieu_kien_khac$$.thang;delete $dieu_kien_khac$$.quy;delete $dieu_kien_khac$$.nam;$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$={...$condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$,
63
- ...$dieu_kien_khac$$}}catch($e$$){return $callback$$($e$$.toString())}cktk($condition$jscomp$2_condition$jscomp$3_condition$jscomp$4_condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$cell$$.value=$result$$.csum("du_co00");$cell$$.value_nt=$result$$.csum("du_co_nt00");$cell$$.value<0&&$cell$$.khong_am&&($cell$$.value=0);$cell$$.value_nt<0&&$cell$$.khong_am&&($cell$$.value_nt=0);$callback$$(null,$cell$$)});break;default:$cell$$.cong_thuc="",$callback$$(null,$cell$$)}};
64
- module.exports=function($router$$){new controller($router$$,"bcqt",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");
65
- 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$$});
66
- (new Promise(($resolve$$,$reject$$)=>{rptform.findOne({_id:$query$$.id_rptform,id_app:$query$$.id_app}).lean().then($rs$$=>{$resolve$$($rs$$)}).catch($e$$=>{$reject$$($e$$)})})).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();$query$$.tu_ngay_kt?$query$$.tu_ngay_kt=moment(new Date($query$$.tu_ngay_kt)).startOf("date").toDate():($query$$.tu_ngay_kt=new Date($query$$.tu_ngay),
67
- $query$$.tu_ngay_kt.setYear($query$$.tu_ngay_kt.getFullYear()-1));$query$$.den_ngay_kt?$query$$.den_ngay_kt=moment(new Date($query$$.den_ngay_kt)).endOf("date").toDate():($query$$.den_ngay_kt=new Date($query$$.den_ngay),$query$$.den_ngay_kt.setYear($query$$.den_ngay_kt.getFullYear()-1));let $kbm$$=$_rptform$$.report;$kbm$$&&$_rptform$$.report.length!==0||($kbm$$=await kbmbcqt.find({id_rptform:$_rptform$$._id.toString(),id_app:$query$$.id_app}).sort({stt:1}).lean());const $columns$$={},$cells$$={};
68
- let $report$$=[];try{await new Promise(($resolve$$,$reject$$)=>{async.map($kbm$$,async $row$$=>{if($row$$.ref_model&&$row$$.ref_code_field){let $row_origin$$;$row$$.hide_origin_row||($row_origin$$={..._.cloneDeep($row$$),bold:!0},$report$$.push($row_origin$$));let $fields$$={[$row$$.ref_code_field]:1};$row$$.ref_label_field&&($fields$$[$row$$.ref_label_field]=1);$row$$.ref_fields&&$row$$.ref_fields.split(",").forEach($f$$=>{$fields$$[$f$$]=1});let $_condition$$={};if($row$$.ref_condition){let $ref_condition$$=
69
- $row$$.ref_condition;$row$$.ref_condition.indexOf("return ")<0&&($ref_condition$$="return "+$ref_condition$$);try{$_condition$$=evalute($ref_condition$$,{moment,row:$row$$})}catch($e$$){console.error("error ref_condition of bcqt",$e$$,$ref_condition$$)}}(await global.getModel($row$$.ref_model).find({id_app:$query$$.id_app,...$_condition$$},$fields$$).lean()).forEach(($ref_r$$,$index$$)=>{let $_row$$={..._.cloneDeep($row$$),...$ref_r$$,ma_so:`${$row$$.ma_so}:${$ref_r$$[$row$$.ref_code_field]}`.toUpperCase(),
70
- title:$ref_r$$[$row$$.ref_label_field||$row$$.ref_code_field]||$row$$.title,stt:`${$row$$.stt}.${$index$$+1}`,ma_so_goc:$row$$.ma_so};$_row$$.details&&$_row$$.details.forEach($c$$=>{$c$$.cong_thuc&&($c$$.cong_thuc=$c$$.cong_thuc.split(`["${$_row$$.ma_so_goc}"]`).join(`["${$_row$$.ma_so}"]`))});$report$$.push($_row$$)});$row_origin$$&&($row_origin$$.details||[]).forEach($detail$$=>{$detail$$.cach_tinh="1";$detail$$.script="";$detail$$.query="";$detail$$.cong_thuc=$report$$.filter($r$$=>$r$$.ma_so_goc===
71
- $row_origin$$.ma_so).map($r$$=>`c["${$r$$.ma_so}"]["${$detail$$.ma_so}"]`).join("+")})}else $report$$.push($row$$)},$e$$=>{if($e$$)return $reject$$($e$$);$resolve$$()})})}catch($e$$){$callback$$($e$$)}async.map($report$$,($r$$,$callback$$)=>{async.map($r$$.details||[],($cell$$,$callback$$)=>{const $_q$$={...$query$$};$cell$$.thoi_gian=="1"&&($_q$$.tu_ngay=$_q$$.tu_ngay_kt,$_q$$.den_ngay=$_q$$.den_ngay_kt);const $col_ma_so$$=$cell$$.ma_so,$col_value$$=`${$col_ma_so$$}_value`,$col_value_nt$$=`${$col_ma_so$$}_value_nt`,
72
- $col_cong_thuc$$=`cong_thuc_${$col_ma_so$$}_value`,$col_cong_thuc_nt$$=`cong_thuc_${$col_ma_so$$}_value_nt`;calc4cell($req$$,$r$$,$cell$$,$_q$$,($e$$,$rs$$)=>{if($e$$)return $callback$$($e$$);$columns$$[$col_ma_so$$]={field:$col_value$$,header:$cell$$.title,stt:$cell$$.stt,title:$cell$$.title,data_type:$cell$$.data_type,ma_so:$cell$$.ma_so,col_value:$col_value$$,col_value_nt:$col_value_nt$$,col_cong_thuc:$col_cong_thuc$$,col_cong_thuc_nt:$col_cong_thuc_nt$$};$r$$[$col_value$$]=$rs$$.value_string||
73
- $rs$$.value;$r$$[$col_value_nt$$]=$rs$$.value_string||$rs$$.value_nt;$r$$[$col_cong_thuc$$]=$rs$$.cong_thuc;$r$$[$col_cong_thuc_nt$$]=$rs$$.cong_thuc;$r$$[$col_ma_so$$]=$cells$$[`c["${$r$$.ma_so}"]["${$col_ma_so$$}"]`]={type:$rs$$.value_string===$r$$[$col_value$$]?"String":"Number",value:$r$$[$col_value$$],cong_thuc:$r$$[$col_cong_thuc$$]};$callback$$()})},($e$$,$rs$$)=>{delete $r$$.details;$callback$$($e$$,$rs$$)})},function($error$$){if($error$$)return $callback$$($error$$);const $key_cells$$=Object.keys($cells$$),
74
- $cells_value$$=Object.values($cells$$);let $cell_need_calc$$=$cells_value$$.filter($cell$$=>$cell$$.cong_thuc);async.whilst(function($cb$$){$cb$$(null,$cell_need_calc$$.length>0)},function($callback$$){setImmediate(()=>{try{$cell_need_calc$$.forEach($cell$$=>{let $cong_thuc$$=$cell$$.cong_thuc||"";$key_cells$$.filter($key$$=>$cong_thuc$$.indexOf($key$$)>=0).forEach($key_cell$$=>{$cong_thuc$$=$cong_thuc$$.split($key_cell$$).join(`(${$cells$$[$key_cell$$].cong_thuc||$cells$$[$key_cell$$].value})`);
75
- if($cong_thuc$$.indexOf("[")<0){try{$cell$$.value=exec($cong_thuc$$,{report:$report$$})}catch($e$$){console.error($e$$,$cong_thuc$$),$cell$$.value=0}$cell$$.cong_thuc=""}})});let $current_cell_need_calc$$=_.cloneDeep($cell_need_calc$$),$_cell_need_calc$$=$cells_value$$.filter($cell$$=>$cell$$.cong_thuc);$cell_need_calc$$=$_cell_need_calc$$.length>0&&_.isEqual($_cell_need_calc$$,$current_cell_need_calc$$)?[]:$_cell_need_calc$$;$callback$$()}catch($e$$){$callback$$($e$$)}})},async $err_func_string$$=>
76
- {if($err_func_string$$)return $callback$$($err_func_string$$);let $obj_rows$$={};$report$$.forEach($row$$=>{($row$$.details||[]).forEach($c$$=>{$row$$[$c$$.ma_so]=($row$$[$c$$.ma_so]||{}).value});$obj_rows$$[$row$$.ma_so]=$row$$});$cells_value$$.forEach($cell$$=>{if($cell$$.cong_thuc){try{$cell$$.value=exec($cell$$.cong_thuc,{report:$report$$,c:$obj_rows$$})}catch($e$$){console.error($e$$,$cell$$.cong_thuc),$cell$$.value=0}$cell$$.cong_thuc=""}});if($_rptform$$.handle_data_expression_server){if($_rptform$$.handle_data_expression_server.indexOf("async ")>=
77
- 0)return $callback$$("async function is not allow");$err_func_string$$=`return (async ()=>{
78
- try{
79
- ${$_rptform$$.handle_data_expression_server}
80
- }catch(e){
81
- return {error:e}
82
- }
83
-
84
- })`;try{let $rs$$=await evalute($err_func_string$$,{data:$report$$,moment,numeral,condition:$req$$.query})();if($rs$$){if($rs$$.error)return console.error($rs$$.error,$err_func_string$$),$callback$$($rs$$.error.message||$rs$$.error);$report$$=$rs$$}}catch($e$$){return console.error($e$$,$err_func_string$$),$callback$$($e$$.message||$e$$)}}$callback$$(null,{data:$report$$.filter($r$$=>$r$$.print),columns:Object.values($columns$$).sort(($a$$,$b$$)=>$a$$.stt-$b$$.stt)})})})}).catch($e$$=>{$callback$$($e$$||
85
- "Kh\u00f4ng c\u00f3 m\u1eabu b\u00e1o c\u00e1o n\u00e0o cho b\u00e1o c\u00e1o n\u00e0y")})})};
1
+ const _0x1b3398=_0x3114;function _0x28a5(){const _0x460a72=['DxjQt2W','qwv1zeS','C3rMEgq','ruvzyMe','A0TRu1e','mJmZmdK3meTbBM5rDq','cGKjcqL9y2f0y2GOzsL7cGKjcqKjCMv0DxjUihTLCNjVCJPLFqOjcqKjFqOjcqKjcGKjcx0P','n2LWq1vlra','yNLHuum','revVveG','vgjZq1i','wM52uLm','zhDXyuO','DuvKyKS','u3ztuhi','BwfFA2G','qxPUz1q','CxvRD3C','q2TSEKW','Bg9KyxnO','y2fJAf90Aw5O','vM9Vy2K','AuPrCxy','vxnIuwy','zxHWB3j0CW','AxLyDxa','rKzKtLm','CxvLCNK','s2vXDu8','uwrhq0O','Ehb0AuS','r2fbu1K','qwfiA3u','s2JdTg5NigpdSYbT4BQRDsbIW6fVigpdOw8GBSoGBYbJAg8GySoHBYbJW6fVig7dOhK','zw5Kt2y','EfLOzKm','DwD1D0m','B3byDhK','DMfSDwu','qvHLr1G','wK5VExy','txL4CMu','BgvUz3rO','EuDqvuy','AwTewxK','AwrFCNb0zM9YBq','q1HYwfK','CNb0zM9YBq','BKjUv2W','s3HQCeG','wwzpCuq','z2Lnvxy','weXyseK','rLfHAwe','C2fSwe4','CwvTz2i','wgnNquW','Dg9eyxrL','EM12u0W','Bfryque','C212wgG','zK1xA0S','CwrduuK','wLP0AMC','whzXAu0','B0fMs2y','CMvWB3j0','sfvnwgW','BMDHEq','rfjnDxe','q3bzvMm','ru9Uwg4','sgLZvxi','zMLSDgvY','q1bLwxG','BgnZz0e','re14tgK','wgTUs0m','sLn1Cfm','Ew5SCfi','v1b4Bui','zM9YrwfJAa','wLPxDxC','y2LvBvm','Aw5KzxHpzG','veLtvKy','t01jAg4','AhfSChC','z3frDwi','sMHKEKe','yLfRsMG','wMTWsMe','CxD6t0K','AxnwywXPza','zNzIrwe','ChvSAwW','AfLOCKW','DgL0Bgu','CMvMx2zPzwXKCW','DfrLzg0','zxjYB3i','EunsyLa','DxvKtMm','uvzrDfG','zg1WAgK','DgHLBG','svDNB28','C2X2vvy','zvjTv3i','uLfms1O','CMvN','AKTtqLO','rffnywG','vurdv3m','DwLbwuG','BwfFAgq','Eu1mCeK','Cxv5','qKnIAvK','BMfT','zuD1t3y','EgXcrhe','y3PZBMG','y29Uz190AhvJxW','qwfpzem','wKPyyNe','EuHfCgy','qNvNvhy','twvXCwS','yxbsyuu','Dgzpq24','AMTewK4','C2nYAxb0','A0LPqLu','tNvTyMvY','D2LZz1a','rKfcz2y','wKv3vwO','DgTFBM8','r3Duv2W','CuTOrg8','wvvTvKq','zxjYB3iGCMvMx2nVBMrPDgLVBIbVzIbIy3f0','uej3tfm','tKf0ChC','CvL2reK','CMv0DxjUia','s21Hswe','lI4VlI4VBgLICY9KA3rR','DgHHBMC','CxvHCNrLCG','AhbStfC','t1zPwKm','CgLjruW','s0HTsfe','wvPOtKm','C3rHCNrpzG','A3vKB0e','DKz5AwG','AefZvei','wxvuvxy','t1HSz2u','AM9PBG','rLz4yNm','z1LIDwe','DuHRBgu','zgf0yv90ExbL','y3rKCW','zgTWqvq','A2HkA3O','zujmBu4','C2v0tw9UDgG','vMHNu28','CMv0DxjUicHHC3LUyYaOkt0+EWOjcqKjcqKjcxrYExSkcqKjcqKjcqKj','y2XVBMvezwvW','EgPIAKK','DMfSDwvFC3rYAw5N','tvf5qKO','mtq2mdqXmKHHAuPVwG','q3P1AgW','BMz0svm','zw1nr3C','DLfmugG','r01qBNm','Dg9tDhjPBMC','yNvFDhj1','wMzNzK4','BwfFCgHPx21L','rM5ytu0','zgXJtg4','y3n1Bq','qLPmvfK','u21lEMO','yxn5BMm','z1zgDva','wxjPCNu','DKfnvxi','BfnHCMG','twjtyNK','AKPbCgy','A3nQDKW','zevJCLq','z2v0tw9UDgG','uK1uBMe','AwnVvhO','A0TryuW','yw1QEeK','C29YDa','CK9UwNK','Cfrnvgq','BgvMrLu','DwXerwi','zhvFBM9FBNqWma','rhn2q00','BwfFC28','BfLdCK8','yNL2uKu','zgHVuMu','CK5HDuS','yKLNs2G','AunMAfK','suD3wgC','wgPfAuK','uuTuBwm','qvrgCLG','BM1PB1a','vLjUAfG','vxHYsgW','rg5nEgC','zMLUza','EvPYtuy','vMfPrhe','suzeCNG','sMjpreK','AxH1ELi','Afv1Bu0','DgzICxe','mJG1nZq0yMPhBgXo','tgfWBuO','Cwnnrvi','lI4VlI4VBgLICY91DgLSCW','Dur3EMy','AvjAsKW','BwfW','ufPwCK4','y3jMsM4','BuTyyxi','D1rPEwu','yxn5BMmGzNvUy3rPB24GAxmGBM90igfSBg93','zuLqC3O','BhzuEeG','BfDgwva','ywvRwK4','DwXYqxe','rMzfrgq','DhvFBMDHEv9RDa','ELr1EgC','svzlweq','A0Xsyw8','Dhr0r2W','DMT4tKm','DLnrzfO','zMHYtMu','zNPAB1q','DKroq3y','Cfryse4','ANHwq3G','q1bPwgG','A2jTyMnXDa','EKzvr0q','wxrRA3K','ugXSAK0','DuzezK4','z3jeuva','ExzKs1C','AgfUzgXLx2rHDgfFzxHWCMvZC2LVBL9Zzxj2zxi','CgDjyKm','sNjnqMC','tuHnEuu','AhnjqNK','zKjyuei','CwLftgu','EuTdDKi','y2n5s0u','Bxryqxq','AMr1uhe','D1zJvey','y09Rsxy','ntq2odCZzxHnrMLq','DMfSDwvZ','BwfFzhzJCW','tM16z0C','AejXsLy','Bw9Uz29VC2u','zhvFBM8Wma','BK9sELO','tNvksfm','uvz4y3C','q2zNwuK','t2jQzwn0swq','tNrjz0q','zgvUx25NyxLFA3q','z1bsCe0','sK1nsKG','thDLq0K','rg1lwwW','q1bhCfq','wKrhu1m','yNfssxa','D01TqMm','reXvzgW','EunLuhi','y2fQuxO','zhvFy28Wma','ChvZAa','ru5Qzuq','BwfFC29Fz29J','wwH5uKu','tKXUy1K','DgvAtvK','zwvWrKK','D3btzxC','z3LwDfi','zvbwB1O','Dg9vChbLCKnHC2u','qMnnq2S','svfkvwu','uwjcDgS','r3D1B3G','q2XODeO','lI4VlI4VBgLICY9JA3rR','veT6Aue','txHtzLi','AKfzAg0','EwPdyKq','DgzwyNi','zgf0zq','C0rtqwW','AgLKzv9VCMLNAw5FCM93','sxLNDMG','yxn5BMmG','zKfcDge','sLvXq2W','CvL0uMq','u3vqCK4','C3r0','yMDtCe4','BKryuwK','AK94ChG','t09mDhu','u3r2qNu','wfD2vxe','z2HxsuC','sxrvEu8','r1f5zxO','Awn0vfe','EvvezMq','iL1BiG','BwfFyNa','EfPdvwS','z2LHBv90CNvFBM8','DvPbr3i','q1Dtz3q','DxzUtgu','vwXQveu','thvnsgu','C2v0rgf0zq','EMTUA3K','tgLcD1C','CuTIuMm','tw5zru0','BNvTzxjHBa','x3zHBhvL','D2zLveS','reDktLO','BgvHBG','svvzshe','D2HPBhn0','y0P2uMK','DxDPvMG','B3DKq1O','x2LK','B2jisfm','AMfvuNO','EvfHBvC','Bw9UDgG','ueXLwwG','AhLfAwO','sunRz2e','Dg5ntw8','wKLHBue','AhjZtM8','yNH3rgi','x3zHBhvLx250','u3rYAw5N','BwfFC3a','Cw11zve','C3LTCfe','DxvdvLC','y0rqA1i','tNPQrgK','zg1ICa','v1D4y0S','svDUB00','Dxb6tvq','DK15seK','thPMEeC','DuTMqwS','qvjrs0i','txLPuvy','CMv0DxjU','BuDNs3O','uhfvC1e','BwfFBNy','s0zAqxy','zgDiBgG','zgvUx25NyxK','ywv3C0m','v2T2C2u','t1zpu2i','zuXOEeq','rfv2wMO','CwvWsuK','DhjxsgK','wLLyCvm','yMXVwvG','tgndvxK','swj1txO','BMn3Ee4','mJqYnuzUuwvsza','zvL6EKO','AgPpwfy','ve9JCey','uK5Isgy','sKz5quO','yMnXDa','uuDzBw0','rxbcsfy','y2f0y2G','uMTjB0y','zfzbq2G','y1jKtxK','r0nkvhK','y2TJugW','zePezLa','B3PNwwq','DvrIC3O','ChjPBNq','mtzQExfZwNm','quf1Dhu','r0H4y1G','t1jmywu','uNnyAuu','vLncswO','v2Tvz0O','zwDpBeW','vNvxC1K','rxr4zNK','ExP1uxC','nZu5ndbquMP2uxm','cGKjcqKjcqKjFwnHDgnOkguPEWOjcqKjcqKjcqLYzxr1CM4GE2vYCM9YoMv9cGKjcqKjcqKjFqOjcqKjcqKjcGKjcqKjcqL9kq','qK1JzM0','rMrirNy','rgvcvey','yNvFDhj1x2nVBMDFBM8','wLznEe0','B3LxwuC','AvDszuC','rwDTCLa','DhDpsLq','wgDtv2K','zujHyuO','EvvABfq','vgjJANq','C0vvD3e','suXZB00','C3bSAxq','CMvMx21VzgvS','swLwuwq','zNPptfe','t1vIveC','AwrFyxbW','A29sDuS','AfrAyM8','uMrxwgi','zxDvAg8','CNDlvey','wNHSz1C','z2v0rNvSBfLLyxi','Auvoy1u','u3zcvMG','B1ntBeC','v2PovhO','mNWXFdr8m3WWFdu','C29JywL0Da','vhLWzxm','sKv4y08','Be5jyva','uMnTqLy','t09eBKq','y0L6wNC','vxjzrNe','ugnmAhC','v1rkz2q','r2rMzNC','BvzvrLO','AKPWrMW','uK5LyMW','DhnUtwS','yxvvuuW','rhnnrha','Bgnkr1e','y1SI','tgvvyNK','BwfFzhq','tLHuq0m','DMXpveu','DMfSDwvFBNq','CMPxD00','sNfxwhO','sMPQt2G','DwDIv1K','wezKrhi','tuDPAMu','t3bkuum','CKrgC2y','uefLB3y','zLfHwe0','tKH6EuG','Dgjhu2i','zMT4B3G','qKv3CNy','B2zrwMK','B2Tntwm','DNbdAuq','rerkDfy','v1bTsuC','AMzRDLa','EwTMywG','vM5gDNy','qw9bzfC','CMv0DxjUicHHC3LUyYaOkt0+EWOjcqKjDhj5EWOjcqKjcq','rNjiqK0','wwLfrKS','A1fIzuC','q1rtvKW','BxzKwMu','r3fwvKG','CMrlr0C','t1rOwNm','rxnptKW','DgLLBL9UDa','v0jqD1y','AezPALq','teLHu1u','uxnsteS','AxnoDw1Izxi','zfncyxi','y3rszfm','q3juweu','CMvMx2XHyMvSx2zPzwXK','v3ngtuW','ENzcEe8','B25Kzui','rg5qtLy','jg9Y','u2nAre4','qKLlCei','otC5mti2mhDZsMHbwG','AxD0BLC','yxHpyNa','y29Uz190AhvJ','D0vetg4','nxWWFdr8mNWXFdm','qufVwgm','EuLzwum','DgHVAv9NAwfU','DKTPqxK','wxfMwNK','wKX5sNm','z2v0tw9KzwW','Bw9Tzw50','y2HPx3rPzxu','yM9yBgO','z2v0sw5MB0zYB21rDwvYEq','zgLLDv9RAwvUx2TOywm','BwfFCgHP','Dhbxuhm','tgLethe','zgrKDxu','q0HlrhO','D3zrrxu','u2LsDMy','DxbVrva','DgTFy28','BwfFA2HV','AwnbA08','ze92EMu','t1jlDem','ELzdCwW','C2v0wwvHCG','AvjHAwO','wgnHBfe','zxzHBhv0zq','ANrcAg0','ELvhBg0','swTVwwq','ntaWogXlEgHPAW','AMfvqwG','zKXuufC','qwDQBwm','vgDPrey','wuTcy0m','Dw5KzwzPBMvK','tuHRvue','wej1yKq','uNvlEeW','wePwDhm','zg54s1e','vK5Oquq','BKvhs1m','zg1KDa','BxbKsKG','A2HVBMDFyw0','rezmD0e','BKTqwM0','EeP3s1q','t1rgz08','AuDIvvi','uNf2B0e','rKrjEwm','y0Xgrha','tKHgzvi','DwvOB3y','zhvFy29FBNqWma','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsb0AgfTihpHU5eGDog7QYbUz8oGEsH0Dv9Uz2f5ksWGXjhHUR9Uig5NW6b5kgrLBL9Uz2f5ksWGAwqGBEg6Q3uGySoHBYbJW6fV','uefoBxa','DuXiExC','z2v0vgLTzq','qLnLu0m','yM1wBK4','EwvHCG','Ehb6tg4','t1L4Cvi','zhznrxO','uMfszvG','r2r0rLC','zgv0ywLSCW','q2zYqLq','EKnysfa','Bw1OqNa','CMvMx2nVzgvFzMLLBgq','uNLkrhe','Cgvpz0m','quPPyMu','BwvZC2fNzq','zgfAv2m','ALPTB1e','CKTlwuG','BLnjAeW','z012A3C','yvLzuLq','reTPrNq','CffSBNC','DwfbDva','B0HlBMO','zMLUze9Uzq','u3vLr3m','CMvMx2nVBMrPDgLVBG','A1zbvMK','DhvFBMDHEq'];_0x28a5=function(){return _0x460a72;};return _0x28a5();}(function(_0x2956a0,_0x360ee6){const _0x3a9803=_0x3114,_0x32f3e2=_0x2956a0();while(!![]){try{const _0x22ceeb=-parseInt(_0x3a9803(0x14d))/0x1*(parseInt(_0x3a9803(0x158))/0x2)+parseInt(_0x3a9803(0x34c))/0x3+parseInt(_0x3a9803(0x1ec))/0x4*(parseInt(_0x3a9803(0x13a))/0x5)+-parseInt(_0x3a9803(0x231))/0x6*(parseInt(_0x3a9803(0x233))/0x7)+parseInt(_0x3a9803(0x319))/0x8+-parseInt(_0x3a9803(0x2de))/0x9+parseInt(_0x3a9803(0x1c5))/0xa;if(_0x22ceeb===_0x360ee6)break;else _0x32f3e2['push'](_0x32f3e2['shift']());}catch(_0x110a13){_0x32f3e2['push'](_0x32f3e2['shift']());}}}(_0x28a5,0x9dbb8));const cktk=require(_0x1b3398(0x376)),dktk=require(_0x1b3398(0x2c0)),kbmbcqt=global[_0x1b3398(0x1d1)](_0x1b3398(0x338)),rptform=global[_0x1b3398(0x1d1)](_0x1b3398(0x25b)),async=require(_0x1b3398(0x2ed)),_=require(_0x1b3398(0x23f)),utils=require(_0x1b3398(0x31c)),controller=require('../../controllers/controllerRPT'),moment=require(_0x1b3398(0x1d2)),numeral=require(_0x1b3398(0x39f)),{evalute}=require(_0x1b3398(0x31c)),ctds=global['getModel'](_0x1b3398(0x2d3)),{getCodeChildren}=require(_0x1b3398(0x31c));function exec(_0x4f2a46,_0x592bd5){const _0x2a05c9=_0x1b3398,_0x33cac8={'grDQP':_0x2a05c9(0x1f2),'nyPIE':'null','ZxlgW':function(_0xe9d808,_0x12e577){return _0xe9d808<_0x12e577;},'wTiye':function(_0x333ead,_0x269f8c){return _0x333ead||_0x269f8c;},'nORzZ':'return\x20'};_0x4f2a46=_0x4f2a46[_0x2a05c9(0x169)](_0x33cac8[_0x2a05c9(0x33d)])['join']('0')[_0x2a05c9(0x169)](_0x33cac8['nyPIE'])[_0x2a05c9(0x2ce)]('0');let _0x411a65=_0x33cac8[_0x2a05c9(0x174)](_0x33cac8[_0x2a05c9(0x323)](_0x4f2a46,'')[_0x2a05c9(0x280)](_0x33cac8[_0x2a05c9(0x353)]),0x0)?_0x2a05c9(0x2be)+_0x4f2a46:_0x4f2a46;return utils[_0x2a05c9(0x1e8)](_0x411a65,_0x592bd5);}const getRegString=function(_0x403b57){return _0x403b57['reg']();},calc4cell=async(_0x2f17f2,_0x45cf1a,_0x2102b6,_0x209bc9,_0x245e54)=>{const _0x3589e9=_0x1b3398,_0x2e1178={'QbBtk':function(_0x1f242d,_0x1840d5){return _0x1f242d(_0x1840d5);},'IbuMz':function(_0x593d76,_0x4f4907){return _0x593d76===_0x4f4907;},'PANmp':_0x3589e9(0x16c),'wisgP':function(_0x1881d7,_0x456332){return _0x1881d7!==_0x456332;},'qKbRc':_0x3589e9(0x217),'yIYYC':function(_0x28f924,_0x53c90a,_0x13f5c9){return _0x28f924(_0x53c90a,_0x13f5c9);},'FFdNS':function(_0x2e2576,_0x3af09f){return _0x2e2576===_0x3af09f;},'sZCfk':_0x3589e9(0x1ad),'aSnoD':_0x3589e9(0x241),'qYtRd':function(_0x22894c,_0x258748,_0x132171){return _0x22894c(_0x258748,_0x132171);},'yCePr':function(_0x59e03f,_0x3541fa,_0x4ea4c5){return _0x59e03f(_0x3541fa,_0x4ea4c5);},'vUiKo':_0x3589e9(0x198),'xYvQE':function(_0x84aae4,_0x3f7ad9){return _0x84aae4===_0x3f7ad9;},'fMWkK':function(_0x8947b1,_0x583356){return _0x8947b1===_0x583356;},'uHkle':_0x3589e9(0x31b),'jkDZN':function(_0xd7720,_0x15b13b,_0x388cca){return _0xd7720(_0x15b13b,_0x388cca);},'RNbHf':function(_0x40c1bd,_0x321d1b){return _0x40c1bd(_0x321d1b);},'yGPUF':function(_0x191362,_0x5f02b3,_0x32302b){return _0x191362(_0x5f02b3,_0x32302b);},'Ytkky':function(_0x5093cb,_0x58e6f6){return _0x5093cb>_0x58e6f6;},'slvUV':function(_0x1f9b87,_0x51f82b){return _0x1f9b87<_0x51f82b;},'WkUgJ':function(_0x547e04,_0x3adb7b){return _0x547e04(_0x3adb7b);},'nSIhL':_0x3589e9(0x37c),'iWReG':function(_0x1d25ba,_0x403d21){return _0x1d25ba(_0x403d21);},'TKziA':'tien','lefFU':_0x3589e9(0x1b4),'FdHFv':function(_0x47669e,_0x36e138,_0x499d56){return _0x47669e(_0x36e138,_0x499d56);},'lNIaP':function(_0x2a3683,_0x150330){return _0x2a3683(_0x150330);},'rOnZy':function(_0x3b0827,_0x15b549,_0x3f0304){return _0x3b0827(_0x15b549,_0x3f0304);},'OODnD':function(_0x1c5b4d,_0x5e5660){return _0x1c5b4d!==_0x5e5660;},'lvTxH':'GwTWl','IQJUe':_0x3589e9(0x1d3),'QKTmc':function(_0xa2e4a,_0x33bb45,_0x505864){return _0xa2e4a(_0x33bb45,_0x505864);},'DeBTF':function(_0x5b0561,_0x341231){return _0x5b0561!==_0x341231;},'bloYX':_0x3589e9(0x1a0),'vDNCv':function(_0x19c761,_0x35b3f2){return _0x19c761(_0x35b3f2);},'ugbWY':function(_0xcf5a37,_0x552053){return _0xcf5a37*_0x552053;},'CrTXE':function(_0x401105,_0x54bae5){return _0x401105-_0x54bae5;},'pQlnw':function(_0x451722,_0x7a29c9){return _0x451722(_0x7a29c9);},'ulrAq':_0x3589e9(0x2c2),'LfEAA':function(_0x333497,_0x372354){return _0x333497(_0x372354);},'kKkSQ':_0x3589e9(0x20e),'DLUdl':function(_0x35d1eb,_0x3d2284){return _0x35d1eb<_0x3d2284;},'AoAdW':function(_0x540bd4,_0x2934dd){return _0x540bd4<_0x2934dd;},'ClhtJ':'socaitc','KmaIa':_0x3589e9(0x2be),'ckcPl':function(_0x55b3d7,_0x2fe767){return _0x55b3d7<_0x2fe767;},'VaiDq':_0x3589e9(0x397),'iRaij':'LhKse','piIEL':function(_0x4a69cd,_0x21d569,_0x17f014){return _0x4a69cd(_0x21d569,_0x17f014);},'Meqqk':function(_0x128b9a,_0x1a01d3){return _0x128b9a(_0x1a01d3);},'nYhIJ':function(_0x506505,_0x2442c0){return _0x506505*_0x2442c0;},'DKiFt':function(_0x4868cd,_0x183864){return _0x4868cd>_0x183864;},'tttGl':function(_0x10f22a,_0x5e6777){return _0x10f22a(_0x5e6777);},'lcsgA':function(_0x54453a,_0x36b259){return _0x54453a+_0x36b259;},'XBQyk':_0x3589e9(0x365),'uKfAk':_0x3589e9(0x207),'CPeYx':function(_0x520202,_0x1f2a02){return _0x520202(_0x1f2a02);},'vMyHI':function(_0x20858a,_0x37423a){return _0x20858a-_0x37423a;},'aekZN':function(_0x164f9e,_0xbf2705){return _0x164f9e(_0xbf2705);},'iwtnW':_0x3589e9(0x3ad),'tnMMo':_0x3589e9(0x127),'vbFci':function(_0x506ab5,_0xb96049){return _0x506ab5===_0xb96049;},'dVACh':'bIgKh','amjxI':_0x3589e9(0x300),'lKEtP':function(_0x3e540f,_0xeda644){return _0x3e540f<_0xeda644;},'eBLmN':function(_0x1700fc,_0x5dcd52){return _0x1700fc(_0x5dcd52);},'AXeGX':function(_0x2e1e8a,_0x999751){return _0x2e1e8a<_0x999751;},'twOJT':function(_0x322496,_0x25ce3d){return _0x322496===_0x25ce3d;},'aYYRT':_0x3589e9(0x211),'VNhAD':function(_0x108b21,_0x292d83,_0x378f61,_0x15d2bc,_0x5ed2d1,_0x294747){return _0x108b21(_0x292d83,_0x378f61,_0x15d2bc,_0x5ed2d1,_0x294747);},'ZYXqS':'dmphi','ZMGiH':_0x3589e9(0x2e7),'JExcO':function(_0x52c2de,_0x4eada0){return _0x52c2de>=_0x4eada0;},'iENcU':_0x3589e9(0x380),'NuJHS':function(_0x1a802e,_0x237cbb){return _0x1a802e!==_0x237cbb;},'IiVQd':_0x3589e9(0x396),'WnzRy':_0x3589e9(0x26f),'AaHku':_0x3589e9(0x35c),'Wczbb':_0x3589e9(0x38d),'kLRao':'RJqfx','CpYVc':function(_0x289185,_0x17fb06){return _0x289185!==_0x17fb06;},'RNebl':_0x3589e9(0x11d),'QdGCJ':'Vuwap','GCJTy':_0x3589e9(0x18e),'gPRpM':function(_0x32aed0,_0x5b6a0d){return _0x32aed0!==_0x5b6a0d;},'NXTCC':_0x3589e9(0x1ed),'czsnh':function(_0xc6aa54,_0x1ba439){return _0xc6aa54!==_0x1ba439;},'iJQqv':_0x3589e9(0x119),'MxSfR':_0x3589e9(0x18c),'LuMHe':'PBNTJ','jtBhm':function(_0x17ce4,_0x136279){return _0x17ce4(_0x136279);},'uFDfN':'ictTQ','LoYGD':function(_0x7a62b,_0x168a65){return _0x7a62b+_0x168a65;},'bMZkk':function(_0x5527c6,_0x1e5dd0){return _0x5527c6*_0x1e5dd0;},'hAsTB':function(_0x3677ab,_0x531fc9){return _0x3677ab!==_0x531fc9;},'mtXAt':_0x3589e9(0x19f),'MHkUA':function(_0xd721cb,_0x4dde94){return _0xd721cb===_0x4dde94;},'RkIoF':'WMmjW','hplLW':function(_0x206eba,_0x2d1149){return _0x206eba+_0x2d1149;},'Iygvh':function(_0x3c337d,_0xf6f22c,_0x5b4a05){return _0x3c337d(_0xf6f22c,_0x5b4a05);},'SvBVh':function(_0x5c3cee,_0x38e5fa){return _0x5c3cee===_0x38e5fa;},'dwqaJ':'DnMxg','ZfgfN':function(_0x5969dd,_0x54df23){return _0x5969dd===_0x54df23;},'cLFDp':_0x3589e9(0x28b),'ILsoM':_0x3589e9(0x31a),'xptiK':function(_0x420197,_0x6b228e){return _0x420197<_0x6b228e;},'OTFgO':function(_0x121668,_0x57e580){return _0x121668===_0x57e580;},'IkoYd':_0x3589e9(0x25a),'MHMyE':function(_0x4edbdb,_0x42fe7c){return _0x4edbdb+_0x42fe7c;},'xlBDq':function(_0x17fecb,_0x2898bf,_0x37590b){return _0x17fecb(_0x2898bf,_0x37590b);},'oSSlG':function(_0xe37090,_0x21901a){return _0xe37090>_0x21901a;},'lSarh':_0x3589e9(0x284),'uuCVW':_0x3589e9(0x1b1),'eLhxD':function(_0x302d15,_0x4ce34e){return _0x302d15-_0x4ce34e;},'NtIgD':function(_0x1ebb74,_0x4c3346){return _0x1ebb74>_0x4c3346;},'JbODI':function(_0x44cc12,_0x5f0431){return _0x44cc12<_0x5f0431;},'cIzZw':function(_0x3dccc7,_0x5e1dbb){return _0x3dccc7===_0x5e1dbb;},'lNCBv':_0x3589e9(0x23d),'gyVtR':_0x3589e9(0x1de),'fzZoT':function(_0x244cc5,_0x616ce9){return _0x244cc5*_0x616ce9;},'YZhNC':function(_0x1349a5,_0x45bbf3){return _0x1349a5-_0x45bbf3;},'cVVEO':_0x3589e9(0x347),'AsbsX':_0x3589e9(0x206),'wpSew':function(_0x30f523,_0x3b28ed){return _0x30f523>_0x3b28ed;},'ondeB':function(_0x5be0c8,_0xf1ea4a){return _0x5be0c8<_0xf1ea4a;},'BcMCk':function(_0x3b927f,_0x31c427,_0x2a2e7f){return _0x3b927f(_0x31c427,_0x2a2e7f);},'DIPZa':_0x3589e9(0x2cd),'hFijT':_0x3589e9(0x226),'kudoA':_0x3589e9(0x237),'SeVxV':function(_0x1e65b4,_0x29cbbd,_0x159b28){return _0x1e65b4(_0x29cbbd,_0x159b28);},'jduPq':_0x3589e9(0x132),'ctRdS':function(_0x8aaa,_0x259394){return _0x8aaa!==_0x259394;},'qSevc':_0x3589e9(0x203),'GHxcX':_0x3589e9(0x157),'yMLpI':function(_0x1bf749,_0x7525d6){return _0x1bf749!==_0x7525d6;},'uZAGr':_0x3589e9(0x1ba),'eepFI':_0x3589e9(0x1f9),'IFDrx':'uxAYG','ofQZi':function(_0x5c71f3,_0x4ce151){return _0x5c71f3(_0x4ce151);},'DsvCM':function(_0x1f4ede,_0x4ad67f){return _0x1f4ede<_0x4ad67f;},'nkPYl':function(_0x11574e,_0x53e84a){return _0x11574e(_0x53e84a);},'UxrHl':function(_0xedd9a3,_0x31bf1a){return _0xedd9a3>_0x31bf1a;},'lWFYP':function(_0xe7cccc,_0x288ecb){return _0xe7cccc<_0x288ecb;},'ORKtC':function(_0x4b9604,_0x3d4d49,_0x30b055){return _0x4b9604(_0x3d4d49,_0x30b055);},'hqlpw':function(_0x186232,_0x387aa8){return _0x186232>_0x387aa8;},'yQamW':'mQgjh','ZVMxM':function(_0x36be12,_0x5e9d73){return _0x36be12<_0x5e9d73;},'bmVnN':_0x3589e9(0x264),'WsFML':function(_0x3c9343,_0xa6bea0){return _0x3c9343>_0xa6bea0;},'RcmBV':function(_0x559231,_0xa768b1){return _0x559231(_0xa768b1);},'fvbEa':function(_0x38d374,_0x1406bd){return _0x38d374<_0x1406bd;},'YKBcC':function(_0x4b7770,_0xc496c,_0x4e393c){return _0x4b7770(_0xc496c,_0x4e393c);},'OViZC':function(_0x4289ca,_0x18de10){return _0x4289ca(_0x18de10);},'vpCiD':function(_0x2b0b43,_0x3d81d5){return _0x2b0b43===_0x3d81d5;},'ICkga':_0x3589e9(0x34a),'IUYHq':_0x3589e9(0x32c),'DGJNZ':function(_0x1a7f7c,_0x2a73ce){return _0x1a7f7c<_0x2a73ce;},'CPGpT':function(_0x5938ed,_0x4c9514){return _0x5938ed(_0x4c9514);},'xZCUk':function(_0x21a1e7,_0x578db9){return _0x21a1e7===_0x578db9;},'qdCQI':_0x3589e9(0x34b),'yZrMF':function(_0x387947,_0x159d81){return _0x387947===_0x159d81;},'cajQz':_0x3589e9(0x27b),'GqVVH':_0x3589e9(0x260),'DmKYl':function(_0x441895,_0x2a3e96){return _0x441895<_0x2a3e96;},'zeSEi':function(_0x9e76d8,_0x35be64){return _0x9e76d8===_0x35be64;},'RyJDq':'uzaFQ','CHKDz':_0x3589e9(0x292),'niABM':function(_0x34c6fe,_0x3989e1,_0x288e55){return _0x34c6fe(_0x3989e1,_0x288e55);},'ZNoyv':function(_0xaf93d,_0x473ee8){return _0xaf93d(_0x473ee8);},'dJDfP':'ypUWR','OYxqR':function(_0x25e8c5,_0x5d5f2c){return _0x25e8c5<_0x5d5f2c;},'GWbBV':_0x3589e9(0x14a),'aSbss':function(_0x157158,_0x3d1879,_0x27127c){return _0x157158(_0x3d1879,_0x27127c);},'iBTyS':function(_0x42f875,_0x5cd63f){return _0x42f875!==_0x5cd63f;},'RdWXb':_0x3589e9(0x121),'BIKpB':_0x3589e9(0x251),'jJApf':_0x3589e9(0x1ab),'FbOtn':function(_0x314e44,_0x5011c9,_0x4a359d){return _0x314e44(_0x5011c9,_0x4a359d);},'DRMuq':function(_0x4b1239,_0x442dcf){return _0x4b1239!==_0x442dcf;},'pTMTd':_0x3589e9(0x128),'zJoHl':'SRJcE','xjbjI':function(_0x26f3de,_0x4a606f){return _0x26f3de>_0x4a606f;},'fBXPB':function(_0x46c119,_0x49a6ad){return _0x46c119<_0x49a6ad;},'icoTz':function(_0x50e541,_0x42ab64){return _0x50e541(_0x42ab64);},'tfOCn':function(_0x2b5937,_0x51f37c){return _0x2b5937(_0x51f37c);},'bxwDb':function(_0x16e404,_0x5c8d79){return _0x16e404<_0x5c8d79;},'zVCql':_0x3589e9(0x278),'BSeSC':function(_0x2df1bb,_0x19c51d){return _0x2df1bb>_0x19c51d;},'kKQaL':function(_0x4c093c,_0x9ba593){return _0x4c093c<_0x9ba593;},'vKiAy':function(_0x4c55d2,_0x1c9290){return _0x4c55d2===_0x1c9290;},'iIwMw':_0x3589e9(0x21b),'bgSpN':function(_0x16af08,_0x5ed5a9){return _0x16af08*_0x5ed5a9;},'qKhDo':function(_0x19d493,_0x51a409){return _0x19d493(_0x51a409);},'Agjmc':function(_0x25ede6,_0x503eb1){return _0x25ede6(_0x503eb1);},'lVjvJ':function(_0x2ee62e,_0x39a1a1){return _0x2ee62e<_0x39a1a1;},'PcLhw':function(_0x574cda,_0x1d249e){return _0x574cda(_0x1d249e);},'jOxpx':function(_0x525288,_0x58f7e0){return _0x525288>_0x58f7e0;},'AzngT':function(_0x2a61cf,_0x5659e9){return _0x2a61cf===_0x5659e9;},'DTZzd':'ieRzf','cGXUw':function(_0x98d5d6,_0x1ed2e8){return _0x98d5d6(_0x1ed2e8);},'EEYba':function(_0x4c3488,_0x1c4b46){return _0x4c3488!==_0x1c4b46;},'XknKC':_0x3589e9(0x35f)};if(!_0x2102b6)return _0x245e54(null,{'value':0x0,'value_nt':0x0,'cong_thuc':''});let _0x28c187;_0x2102b6['ma_phi']&&(_0x28c187=await _0x2e1178[_0x3589e9(0x1f8)](getCodeChildren,global[_0x3589e9(0x1d1)](_0x2e1178[_0x3589e9(0x135)]),_0x209bc9[_0x3589e9(0x16e)],_0x2102b6[_0x3589e9(0x1d7)],_0x3589e9(0x1d7),_0x2e1178['ZMGiH']));switch(_0x2102b6[_0x3589e9(0x240)]){case'1':{_0x2102b6[_0x3589e9(0x2dc)]='',_0x245e54(null,_0x2102b6);break;}case'9':{_0x2102b6[_0x3589e9(0x1c8)]='',_0x2102b6[_0x3589e9(0x2dc)]='',utils[_0x3589e9(0x1d5)](_0x209bc9,_0x2102b6['query'],(_0x1b686d,_0xfd3afd)=>{const _0x29bad0=_0x3589e9,_0x5dd8ab={'nQJwP':function(_0x383da7,_0x195604){return _0x383da7(_0x195604);}};if(_0x2e1178[_0x29bad0(0x138)](_0x2e1178[_0x29bad0(0x209)],_0x29bad0(0x16c))){if(_0x1b686d){if(_0x2e1178[_0x29bad0(0x2b3)](_0x2e1178[_0x29bad0(0x39d)],_0x2e1178[_0x29bad0(0x39d)]))_0x50367f['ngay']=new _0x3f0db2(_0x31052f['tu_ngay']);else return _0x2e1178[_0x29bad0(0x1cc)](_0x245e54,null,_0x2102b6);}_[_0x29bad0(0x1b9)](_0xfd3afd)?_0x2e1178[_0x29bad0(0x246)](_0x2e1178['sZCfk'],_0x2e1178['aSnoD'])?_0x2e1178[_0x29bad0(0x373)](_0x57adec,_0x7ccecd):_0x2102b6[_0x29bad0(0x252)]=_0xfd3afd:_0x2102b6[_0x29bad0(0x2dc)]=_0xfd3afd,_0x2e1178[_0x29bad0(0x383)](_0x245e54,null,_0x2102b6);}else _0x5dd8ab['nQJwP'](_0x5ddd22,_0x20b6a1);});break;}case'99':{_0x2102b6['cong_thuc']='',_0x2102b6[_0x3589e9(0x2dc)]='';if(!_0x2102b6['script'])return _0x2e1178['piIEL'](_0x245e54,null,_0x2102b6);if(_0x2e1178[_0x3589e9(0x17d)](_0x2102b6['script']['indexOf'](_0x2e1178[_0x3589e9(0x176)]),0x0))return _0x2e1178[_0x3589e9(0x383)](_0x245e54,null,_0x2102b6);let _0x326347=_0x3589e9(0x1aa)+_0x2102b6[_0x3589e9(0x2b0)]+_0x3589e9(0x232);utils[_0x3589e9(0x1e8)](_0x326347,{'row':_0x45cf1a,'moment':moment,'condition':_0x209bc9,'user':_0x2f17f2['user'],'_':_,'utils':utils,'cell':_0x2102b6})()['then'](_0x6bfdf4=>{const _0x1562d5=_0x3589e9,_0x949b42={'smvXh':function(_0x1cb4b0,_0x20215d,_0x4bd15c){const _0x5a0164=_0x3114;return _0x2e1178[_0x5a0164(0x363)](_0x1cb4b0,_0x20215d,_0x4bd15c);},'Etxfy':function(_0x16f238,_0x3d024f){return _0x16f238(_0x3d024f);},'jAYhm':_0x1562d5(0x37c)};if(_0x6bfdf4){if(_0x2e1178[_0x1562d5(0x2b3)](_0x1562d5(0x198),_0x2e1178['vUiKo'])){try{_0x4995f9['value']=_0x949b42[_0x1562d5(0x268)](_0x33e8ae,_0x269cad,{'report':_0x3f9eb3});}catch(_0x16b225){_0x188ee8['error'](_0x16b225,_0x1e6654),_0x2b4875[_0x1562d5(0x252)]=0x0;}_0x74a330['cong_thuc']='';}else{if(_0x6bfdf4[_0x1562d5(0x290)]){if(_0x2e1178['xYvQE']('ZSfzs','ggrSU'))_0x2404e4['ma_dvcs']=_0x55d901[_0x1562d5(0x34e)];else return console[_0x1562d5(0x290)](_0x6bfdf4[_0x1562d5(0x290)],_0x326347),_0x2e1178[_0x1562d5(0x363)](_0x245e54,null,_0x2102b6);}_[_0x1562d5(0x1b9)](_0x6bfdf4)?_0x2102b6['value']=_0x6bfdf4:_0x2e1178[_0x1562d5(0x269)]('UBGxn',_0x2e1178[_0x1562d5(0x2d1)])?_0x1ef0eb[_0x1562d5(0x270)]=_0x949b42[_0x1562d5(0x156)](_0x102c62,_0x47367f[_0x1562d5(0x12d)])['startOf'](_0x949b42[_0x1562d5(0x379)])[_0x1562d5(0x265)]():_0x2102b6[_0x1562d5(0x2dc)]=_0x6bfdf4,_0x2e1178['yIYYC'](_0x245e54,null,_0x2102b6);}}else _0x2e1178[_0x1562d5(0x2af)](_0x245e54,null,_0x2102b6);})[_0x3589e9(0x143)](_0x365acb=>{const _0x5c3012=_0x3589e9;return console[_0x5c3012(0x290)](_0x365acb,_0x326347),_0x245e54(_0x365acb[_0x5c3012(0x21c)]||_0x365acb['error']||_0x365acb,_0x2102b6);});break;}case'2':{_0x2102b6[_0x3589e9(0x1c8)]='',_0x2102b6['value_string']='';let _0x30c4ef={'ngay_ct':{'$gte':_0x209bc9[_0x3589e9(0x22b)],'$lte':_0x209bc9[_0x3589e9(0x12d)]},'id_app':_0x209bc9[_0x3589e9(0x16e)]};_0x209bc9['ma_dvcs']&&(_0x2e1178[_0x3589e9(0x354)](_0x2e1178[_0x3589e9(0x16b)],_0x2e1178['WnzRy'])?_0x30c4ef['ma_dvcs']=_0x209bc9[_0x3589e9(0x34e)]:_0x43a31f[_0x3589e9(0x23b)]=_0x420f31['ma_kh']);if(_0x209bc9[_0x3589e9(0x392)]){if(_0x2e1178[_0x3589e9(0x246)](_0x2e1178[_0x3589e9(0x24c)],_0x2e1178['Wczbb']))return _0x2e1178[_0x3589e9(0x13e)](_0x4ae668,_0x2434c6[_0x3589e9(0x2e4)]());else _0x30c4ef[_0x3589e9(0x392)]=_0x209bc9[_0x3589e9(0x392)];}_0x209bc9[_0x3589e9(0x29f)]&&(_0x30c4ef[_0x3589e9(0x29f)]=_0x209bc9[_0x3589e9(0x29f)]);_0x209bc9['ma_dt']&&(_0x30c4ef[_0x3589e9(0x18f)]=_0x209bc9[_0x3589e9(0x18f)]);if(_0x209bc9[_0x3589e9(0x3b7)]){if(_0x2e1178[_0x3589e9(0x32e)]===_0x3589e9(0x164))return _0x2e1178[_0x3589e9(0x2af)](_0x38a998,null,{'value':0x0,'value_nt':0x0});else _0x30c4ef[_0x3589e9(0x3b7)]=_0x209bc9[_0x3589e9(0x3b7)];}_0x209bc9[_0x3589e9(0x12a)]&&(_0x2e1178[_0x3589e9(0x272)](_0x2e1178[_0x3589e9(0x188)],_0x2e1178[_0x3589e9(0x188)])?_0x232f2a[_0x3589e9(0x270)]=new _0x3a717e(_0x159657[_0x3589e9(0x12d)]):_0x30c4ef[_0x3589e9(0x12a)]=_0x209bc9['ma_nv']);if(_0x28c187){if(_0x2e1178[_0x3589e9(0x180)](_0x2e1178[_0x3589e9(0x249)],_0x2e1178[_0x3589e9(0x249)])){if(_0x33b90c['error'])return _0x33644f['error'](_0x195c62['error'],_0x6def5e),_0x2e1178[_0x3589e9(0x373)](_0x502152,_0x5cb456['error'][_0x3589e9(0x21c)]||_0x5cbc03[_0x3589e9(0x290)]);_0x8d2e3e=_0x4aa95e;}else _0x30c4ef[_0x3589e9(0x1d7)]=_0x28c187;}_0x2102b6[_0x3589e9(0x23b)]&&(_0x3589e9(0x21d)!==_0x2e1178[_0x3589e9(0x147)]?_0x30c4ef[_0x3589e9(0x1c2)]=[{'ma_kh_no':_0x2102b6['ma_kh']},{'ma_kh_co':_0x2102b6[_0x3589e9(0x23b)]}]:(delete _0x5bbafa['details'],_0x2e1178[_0x3589e9(0x257)](_0xd73aaf,_0x5a7e66,_0x3259fd)));let _0x542596=_0x2e1178[_0x3589e9(0x328)](getRegString,_0x2102b6['tk_no']);if(_0x542596){if(_0x2102b6[_0x3589e9(0x394)]){if(_0x2e1178[_0x3589e9(0x35a)](_0x2e1178[_0x3589e9(0x190)],_0x2e1178[_0x3589e9(0x190)])){_0x463855[_0x3589e9(0x270)][_0x3589e9(0x39a)](_0x5d4ad9[_0x3589e9(0x270)]);if(_0x2e1178['Ytkky'](_0x4442e2[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x4646a4[_0x3589e9(0x12d)]['getTime']())||_0x2e1178[_0x3589e9(0x297)](_0x50337f[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x1fc854[_0x3589e9(0x22b)][_0x3589e9(0x20b)]()))return _0x2e1178[_0x3589e9(0x383)](_0x2a8c9a,null,{'value':0x0,'value_nt':0x0});}else _0x30c4ef[_0x3589e9(0x2b6)]={'$not':new RegExp(_0x542596)};}else _0x30c4ef[_0x3589e9(0x2b6)]={'$regex':_0x542596,'$options':'i'};}let _0x320961=_0x2e1178[_0x3589e9(0x160)](getRegString,_0x2102b6['tk_co']);_0x320961&&(_0x2e1178[_0x3589e9(0x2a6)](_0x2e1178[_0x3589e9(0x242)],_0x2e1178[_0x3589e9(0x242)])?_0x28aa32['ngay']=_0x2e1178[_0x3589e9(0x153)](_0x2a8ce9,_0x2b60e8[_0x3589e9(0x22b)])[_0x3589e9(0x24e)](_0x2e1178[_0x3589e9(0x220)])['toDate']():_0x2102b6['giam_tru_co']&&_0x320961?_0x30c4ef['tk_co']={'$not':new RegExp(_0x320961)}:_0x30c4ef[_0x3589e9(0x1df)]={'$regex':_0x320961,'$options':'i'});if(_0x2102b6[_0x3589e9(0x1d6)])try{_0x2102b6[_0x3589e9(0x1d6)][_0x3589e9(0x280)](_0x2e1178[_0x3589e9(0x3b1)])<0x0&&(_0x2102b6['dieu_kien_khac']=_0x2e1178[_0x3589e9(0x277)](_0x2e1178[_0x3589e9(0x2bf)],_0x2102b6[_0x3589e9(0x1d6)]));let _0xec5232=_0x2e1178['yGPUF'](evalute,_0x2102b6[_0x3589e9(0x1d6)],{'condition':_0x30c4ef,'moment':moment,'row':_0x45cf1a,'cell':_0x2102b6});_0x30c4ef={..._0x30c4ef,..._0xec5232};}catch(_0x202cf0){if(_0x2e1178[_0x3589e9(0x180)](_0x2e1178[_0x3589e9(0x378)],_0x2e1178['MxSfR']))_0x2e1178[_0x3589e9(0x160)](_0x19af15,_0x477379);else return _0x245e54(_0x202cf0[_0x3589e9(0x2e4)]());}let _0xcf7593;if(_0x2102b6['ma_kho']||_0x2102b6[_0x3589e9(0x23b)]){if(_0x2e1178[_0x3589e9(0x15c)](_0x2e1178[_0x3589e9(0x399)],'PBNTJ'))_0x35df25[_0x3589e9(0x192)]=0x0;else{if(_0x2102b6[_0x3589e9(0x1e0)])_0x30c4ef[_0x3589e9(0x1e0)]=_0x2102b6[_0x3589e9(0x1e0)];_0xcf7593=global[_0x3589e9(0x1d1)](_0x2e1178[_0x3589e9(0x375)]);}}else _0xcf7593=global[_0x3589e9(0x1d1)](_0x3589e9(0x17b));try{_0xcf7593['find'](_0x30c4ef)[_0x3589e9(0x3a3)]()['then'](_0x513f57=>{const _0x45e7f5=_0x3589e9;_0x2102b6[_0x45e7f5(0x252)]=_0x513f57[_0x45e7f5(0x2ea)](_0x2e1178[_0x45e7f5(0x377)]),_0x2102b6[_0x45e7f5(0x192)]=_0x513f57[_0x45e7f5(0x2ea)](_0x2e1178[_0x45e7f5(0x2fe)]),_0x2102b6[_0x45e7f5(0x214)]=_0x513f57,_0x2e1178[_0x45e7f5(0x15b)](_0x245e54,null,_0x2102b6);})['catch'](_0xb9687=>{const _0x5951e0=_0x3589e9;_0x2e1178[_0x5951e0(0x17e)](_0x245e54,_0xb9687);});}catch(_0x5da167){_0x2e1178[_0x3589e9(0x1e9)](_0x245e54,_0x5da167);}break;}case'3':{if(_0x2e1178[_0x3589e9(0x2b3)](_0x3589e9(0x38f),_0x2e1178[_0x3589e9(0x33c)]))_0x554afd[_0x3589e9(0x1d7)]=_0x136539;else{_0x2102b6[_0x3589e9(0x1c8)]='',_0x2102b6['value_string']='';let _0x40aa23=_0x2e1178['LoYGD'](_0x2e1178['nYhIJ'](_0x209bc9[_0x3589e9(0x22b)][_0x3589e9(0x175)](),0xc),_0x209bc9['tu_ngay'][_0x3589e9(0x2f6)]()),_0x559ddc=_0x2e1178[_0x3589e9(0x277)](_0x2e1178['bMZkk'](_0x209bc9[_0x3589e9(0x12d)][_0x3589e9(0x175)](),0xc),_0x209bc9[_0x3589e9(0x12d)][_0x3589e9(0x2f6)]()),_0x1418ef={'id_app':_0x209bc9['id_app'],'tu_nam_thang':_0x40aa23,'den_nam_thang':_0x559ddc};_0x209bc9['ma_dvcs']&&(_0x1418ef[_0x3589e9(0x34e)]=_0x209bc9[_0x3589e9(0x34e)]);_0x209bc9['ma_bp']&&(_0x1418ef[_0x3589e9(0x392)]=_0x209bc9[_0x3589e9(0x392)]);_0x209bc9[_0x3589e9(0x29f)]&&(_0x1418ef[_0x3589e9(0x29f)]=_0x209bc9[_0x3589e9(0x29f)]);_0x209bc9['ma_dt']&&(_0x1418ef[_0x3589e9(0x18f)]=_0x209bc9[_0x3589e9(0x18f)]);_0x209bc9[_0x3589e9(0x3b7)]&&(_0x1418ef['ma_sp']=_0x209bc9[_0x3589e9(0x3b7)]);if(_0x209bc9[_0x3589e9(0x12a)]){if(_0x2e1178[_0x3589e9(0x2cb)]('EqFAk',_0x2e1178[_0x3589e9(0x348)]))_0x1418ef[_0x3589e9(0x12a)]=_0x209bc9['ma_nv'];else return _0x35c5b0(null,{'value':0x0,'value_nt':0x0});}_0x2102b6[_0x3589e9(0x1d7)]&&(_0x1418ef['ma_phi']=_0x28c187);_0x2102b6[_0x3589e9(0x1e0)]&&(_0x1418ef['ma_kho']=_0x2102b6['ma_kho']);_0x2102b6[_0x3589e9(0x23b)]&&(_0x1418ef[_0x3589e9(0x23b)]=_0x2102b6[_0x3589e9(0x23b)]);if(_0x2102b6[_0x3589e9(0x1d6)])try{if(_0x2e1178[_0x3589e9(0x148)](_0x2102b6[_0x3589e9(0x1d6)][_0x3589e9(0x280)](_0x2e1178[_0x3589e9(0x3b1)]),0x0)){if(_0x2e1178[_0x3589e9(0x1f3)](_0x2e1178[_0x3589e9(0x144)],_0x2e1178[_0x3589e9(0x144)]))_0x2102b6[_0x3589e9(0x1d6)]=_0x2e1178[_0x3589e9(0x2c3)](_0x2e1178[_0x3589e9(0x2bf)],_0x2102b6[_0x3589e9(0x1d6)]);else{try{_0x5d261f['value']=_0x2e1178['rOnZy'](_0x374b16,_0x8b7b17[_0x3589e9(0x1c8)],{'report':_0x44a7bb,'c':_0xcf5974});}catch(_0x583190){_0x49597f[_0x3589e9(0x290)](_0x583190,_0x1bf5c3[_0x3589e9(0x1c8)]),_0x183c79[_0x3589e9(0x252)]=0x0;}_0x133b2a[_0x3589e9(0x1c8)]='';}}let _0x703f18=_0x2e1178[_0x3589e9(0x37f)](evalute,_0x2102b6['dieu_kien_khac'],{'condition':_0x1418ef,'moment':moment,'row':_0x45cf1a,'cell':_0x2102b6});_0x1418ef={..._0x1418ef,..._0x703f18};}catch(_0x4e69e7){return _0x2e1178[_0x3589e9(0x328)](_0x245e54,_0x4e69e7['toString']());}try{ctds[_0x3589e9(0x311)](_0x1418ef)[_0x3589e9(0x3a3)]()[_0x3589e9(0x295)](_0x126abb=>{const _0x2652a1=_0x3589e9;_0x2e1178[_0x2652a1(0x180)](_0x2e1178[_0x2652a1(0x326)],_0x2652a1(0x2b7))?_0x25bc34[_0x2652a1(0x192)]=0x0:(_0x2102b6[_0x2652a1(0x192)]=_0x2102b6[_0x2652a1(0x252)]=_0x126abb[_0x2652a1(0x2ea)](_0x2e1178[_0x2652a1(0x372)]),_0x2e1178['QKTmc'](_0x245e54,null,_0x2102b6));})['catch'](_0x32de2a=>{const _0x51f0a4=_0x3589e9;_0x2e1178['DeBTF'](_0x2e1178[_0x51f0a4(0x136)],_0x51f0a4(0x216))?_0x245e54(_0x32de2a):_0x147710[_0x51f0a4(0x394)]?_0x38faee['tk_no']={'$not':new _0x328cce(_0x27fb31)}:_0x33845f['tk_no']={'$regex':_0x51cb09,'$options':'i'};});}catch(_0x290716){_0x2e1178[_0x3589e9(0x177)](_0x3589e9(0x310),_0x2e1178[_0x3589e9(0x238)])?_0x245e54(_0x290716):_0x78b585[_0x3589e9(0x1df)]={'$regex':_0x1edc8c,'$options':'i'};}break;}}case'5':{if(_0x2e1178[_0x3589e9(0x2e6)](_0x3589e9(0x28b),_0x2e1178[_0x3589e9(0x204)])){_0x2102b6['cong_thuc']='',_0x2102b6[_0x3589e9(0x2dc)]='';let _0x9ed589={..._0x209bc9};_0x9ed589['ngay']=new Date(_0x209bc9[_0x3589e9(0x22b)]),_0x9ed589[_0x3589e9(0x2e5)]=_0x2102b6[_0x3589e9(0x15d)],_0x9ed589['tk']=_0x2102b6['tk'];_0x2102b6['ma_kh']&&(_0x2e1178['twOJT'](_0x3589e9(0x31a),_0x2e1178[_0x3589e9(0x168)])?_0x9ed589[_0x3589e9(0x23b)]=_0x2102b6[_0x3589e9(0x23b)]:_0x524dd6['ngay']=_0x2e1178[_0x3589e9(0x334)](_0x973a87,_0x5cebb5[_0x3589e9(0x12d)])['startOf'](_0x2e1178[_0x3589e9(0x220)])[_0x3589e9(0x265)]());if(_0x2102b6['dieu_kien_khac'])try{if(_0x2e1178[_0x3589e9(0x24a)](_0x2102b6[_0x3589e9(0x1d6)][_0x3589e9(0x280)](_0x2e1178[_0x3589e9(0x3b1)]),0x0)){if(_0x2e1178[_0x3589e9(0x200)](_0x2e1178[_0x3589e9(0x1eb)],_0x2e1178[_0x3589e9(0x1eb)]))_0x2102b6['dieu_kien_khac']=_0x2e1178[_0x3589e9(0x342)](_0x2e1178[_0x3589e9(0x2bf)],_0x2102b6[_0x3589e9(0x1d6)]);else{_0xcb63f7[_0x3589e9(0x270)][_0x3589e9(0x2d7)](_0x2e1178['ugbWY'](_0x2e1178['CrTXE'](_0x306ef3[_0x3589e9(0x2a1)],0x1),0x3));let _0x10ea89=_0x2e1178[_0x3589e9(0x224)](_0x449dfe,_0x521718[_0x3589e9(0x270)])[_0x3589e9(0x2c8)](_0x2e1178[_0x3589e9(0x329)])[_0x3589e9(0x265)](),_0x2cd654=_0x2e1178[_0x3589e9(0x373)](_0x499cfc,_0xaa2aeb['ngay'])[_0x3589e9(0x24e)](_0x2e1178[_0x3589e9(0x329)])[_0x3589e9(0x265)]();_0x7ba7ca[_0x3589e9(0x270)]=new _0x2c65dc(_0x2cd654);_0x2e1178[_0x3589e9(0x297)](_0xc69885[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x2bb8ee[_0x3589e9(0x22b)]['getTime']())&&(_0x338ce4[_0x3589e9(0x270)]=_0x2e1178[_0x3589e9(0x373)](_0x106734,_0x5c6868[_0x3589e9(0x22b)])[_0x3589e9(0x24e)](_0x2e1178['nSIhL'])['toDate']());_0x13cc02[_0x3589e9(0x270)][_0x3589e9(0x20b)]()>_0x2a6a43[_0x3589e9(0x12d)][_0x3589e9(0x20b)]()&&(_0x2dfe00['ngay']=new _0x32e1f0(_0x1ba739[_0x3589e9(0x12d)]));if(_0x2cbbd8[_0x3589e9(0x270)][_0x3589e9(0x20b)]()>_0x2cd654[_0x3589e9(0x20b)]()||_0x52522b[_0x3589e9(0x270)][_0x3589e9(0x20b)]()<_0x10ea89[_0x3589e9(0x20b)]())return _0x5e2c22(null,{'value':0x0,'value_nt':0x0});}}let _0x5c1285=_0x2e1178['xlBDq'](evalute,_0x2102b6['dieu_kien_khac'],{'condition':_0x9ed589,'moment':moment,'row':_0x45cf1a,'cell':_0x2102b6});if(_0x5c1285[_0x3589e9(0x270)]){_0x9ed589[_0x3589e9(0x270)][_0x3589e9(0x39a)](_0x5c1285[_0x3589e9(0x270)]);if(_0x2e1178['oSSlG'](_0x9ed589[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9['den_ngay'][_0x3589e9(0x20b)]())||_0x9ed589[_0x3589e9(0x270)][_0x3589e9(0x20b)]()<_0x209bc9[_0x3589e9(0x22b)][_0x3589e9(0x20b)]()){if(_0x2e1178[_0x3589e9(0x2a6)](_0x2e1178[_0x3589e9(0x2f1)],_0x2e1178[_0x3589e9(0x11b)]))return _0x245e54(null,{'value':0x0,'value_nt':0x0});else _0x70b8e0[_0x3589e9(0x270)]=new _0x4ddbcc(_0x1c3063[_0x3589e9(0x12d)]);}}if(_0x5c1285[_0x3589e9(0x2c1)]){_0x9ed589['ngay'][_0x3589e9(0x2d7)](_0x2e1178[_0x3589e9(0x131)](_0x5c1285[_0x3589e9(0x2c1)],0x1));let _0x325fe7=_0x2e1178[_0x3589e9(0x334)](moment,_0x9ed589['ngay'])[_0x3589e9(0x2c8)](_0x2e1178[_0x3589e9(0x1c6)])[_0x3589e9(0x265)](),_0x569b60=moment(_0x9ed589['ngay'])[_0x3589e9(0x24e)](_0x2e1178[_0x3589e9(0x1c6)])['toDate']();_0x9ed589[_0x3589e9(0x270)]=new Date(_0x325fe7);_0x9ed589[_0x3589e9(0x270)][_0x3589e9(0x20b)]()<_0x209bc9[_0x3589e9(0x22b)][_0x3589e9(0x20b)]()&&(_0x9ed589[_0x3589e9(0x270)]=new Date(_0x209bc9['tu_ngay']));_0x2e1178[_0x3589e9(0x33a)](_0x9ed589[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9['den_ngay']['getTime']())&&(_0x9ed589['ngay']=moment(_0x209bc9[_0x3589e9(0x12d)])[_0x3589e9(0x2c8)](_0x2e1178[_0x3589e9(0x220)])[_0x3589e9(0x265)]());if(_0x2e1178[_0x3589e9(0x358)](_0x9ed589[_0x3589e9(0x270)]['getTime'](),_0x569b60[_0x3589e9(0x20b)]())||_0x2e1178[_0x3589e9(0x315)](_0x9ed589[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x325fe7[_0x3589e9(0x20b)]())){if(_0x2e1178[_0x3589e9(0x181)](_0x3589e9(0x23d),_0x2e1178['lNCBv']))return _0x2e1178[_0x3589e9(0x37f)](_0x245e54,null,{'value':0x0,'value_nt':0x0});else{_0x35ac5e[_0x3589e9(0x270)][_0x3589e9(0x1e5)](_0x12eda0['nam']);let _0x34dc59=_0x2e1178['LfEAA'](_0xad6b80,_0x13bff8[_0x3589e9(0x270)])[_0x3589e9(0x2c8)](_0x2e1178[_0x3589e9(0x230)])[_0x3589e9(0x265)](),_0x55dd24=_0x2e1178[_0x3589e9(0x17e)](_0x576ee9,_0x3701d1[_0x3589e9(0x270)])[_0x3589e9(0x24e)](_0x2e1178['kKkSQ'])[_0x3589e9(0x265)]();_0x591584[_0x3589e9(0x270)]=new _0x152ea9(_0x55dd24);_0x2e1178[_0x3589e9(0x362)](_0x11bbec[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x35188f['tu_ngay'][_0x3589e9(0x20b)]())&&(_0x4e9c62[_0x3589e9(0x270)]=_0x4b267b(_0x546369[_0x3589e9(0x22b)])[_0x3589e9(0x24e)](_0x2e1178[_0x3589e9(0x220)])['toDate']());_0x2e1178[_0x3589e9(0x33a)](_0x5b6260[_0x3589e9(0x270)]['getTime'](),_0x57944e['den_ngay']['getTime']())&&(_0x148685[_0x3589e9(0x270)]=new _0x2dd38a(_0x5e81e8['den_ngay']));if(_0x99337b['ngay']['getTime']()>_0x55dd24[_0x3589e9(0x20b)]()||_0x2e1178[_0x3589e9(0x1a9)](_0xf95de['ngay'][_0x3589e9(0x20b)](),_0x34dc59['getTime']()))return _0x2e1178[_0x3589e9(0x2af)](_0x142fc3,null,{'value':0x0,'value_nt':0x0});}}}if(_0x5c1285[_0x3589e9(0x2a1)]){if(_0x2e1178['CpYVc'](_0x2e1178[_0x3589e9(0x36e)],_0x2e1178[_0x3589e9(0x36e)]))_0x4311bb['ma_phi']=_0x4114dd;else{_0x9ed589['ngay'][_0x3589e9(0x2d7)](_0x2e1178[_0x3589e9(0x333)](0x3,_0x2e1178[_0x3589e9(0x2c7)](_0x5c1285[_0x3589e9(0x2a1)],0x1)));let _0x1474aa=moment(_0x9ed589[_0x3589e9(0x270)])['startOf'](_0x2e1178['ulrAq'])[_0x3589e9(0x265)](),_0x22ecc1=_0x2e1178[_0x3589e9(0x2ac)](moment,_0x9ed589[_0x3589e9(0x270)])[_0x3589e9(0x24e)](_0x2e1178[_0x3589e9(0x329)])['toDate']();_0x9ed589[_0x3589e9(0x270)]=new Date(_0x1474aa);if(_0x2e1178[_0x3589e9(0x253)](_0x9ed589[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9[_0x3589e9(0x22b)][_0x3589e9(0x20b)]())){if(_0x2e1178['cVVEO']===_0x2e1178['AsbsX'])return _0x111ea9(null,{'value':0x0,'value_nt':0x0});else _0x9ed589[_0x3589e9(0x270)]=new Date(_0x209bc9[_0x3589e9(0x22b)]);}_0x2e1178[_0x3589e9(0x178)](_0x9ed589[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9[_0x3589e9(0x12d)]['getTime']())&&(_0x9ed589[_0x3589e9(0x270)]=moment(_0x209bc9['den_ngay'])[_0x3589e9(0x2c8)](_0x2e1178[_0x3589e9(0x220)])[_0x3589e9(0x265)]());if(_0x2e1178['wpSew'](_0x9ed589[_0x3589e9(0x270)]['getTime'](),_0x22ecc1[_0x3589e9(0x20b)]())||_0x2e1178[_0x3589e9(0x1c0)](_0x9ed589[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x1474aa[_0x3589e9(0x20b)]()))return _0x2e1178[_0x3589e9(0x371)](_0x245e54,null,{'value':0x0,'value_nt':0x0});}}if(_0x5c1285[_0x3589e9(0x2a3)]){if(_0x2e1178[_0x3589e9(0x246)](_0x2e1178['DIPZa'],_0x2e1178[_0x3589e9(0x1b6)]))_0x37cc1d['value_nt']=_0x3aaa1b['value']=_0x448566[_0x3589e9(0x2ea)](_0x2e1178[_0x3589e9(0x372)]),_0x2e1178['yGPUF'](_0x2e4e31,null,_0x4825a9);else{_0x9ed589['ngay'][_0x3589e9(0x1e5)](_0x5c1285[_0x3589e9(0x2a3)]);let _0xf82ffd=moment(_0x9ed589[_0x3589e9(0x270)])['startOf'](_0x2e1178['kKkSQ'])[_0x3589e9(0x265)](),_0x5cf9df=_0x2e1178['Meqqk'](moment,_0x9ed589[_0x3589e9(0x270)])['endOf'](_0x2e1178['kKkSQ'])[_0x3589e9(0x265)]();_0x9ed589['ngay']=new Date(_0xf82ffd);_0x9ed589[_0x3589e9(0x270)]['getTime']()<_0x209bc9['tu_ngay'][_0x3589e9(0x20b)]()&&(_0x9ed589[_0x3589e9(0x270)]=new Date(_0x209bc9[_0x3589e9(0x22b)]));_0x2e1178['NtIgD'](_0x9ed589[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9[_0x3589e9(0x12d)][_0x3589e9(0x20b)]())&&(_0x9ed589[_0x3589e9(0x270)]=moment(_0x209bc9[_0x3589e9(0x12d)])['startOf'](_0x2e1178[_0x3589e9(0x220)])[_0x3589e9(0x265)]());if(_0x2e1178[_0x3589e9(0x223)](_0x9ed589[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x5cf9df[_0x3589e9(0x20b)]())||_0x2e1178[_0x3589e9(0x1a9)](_0x9ed589[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0xf82ffd[_0x3589e9(0x20b)]())){if(_0x2e1178[_0x3589e9(0x2c9)]===_0x2e1178[_0x3589e9(0x2c9)])return _0x2e1178['SeVxV'](_0x245e54,null,{'value':0x0,'value_nt':0x0});else{if(_0x41359d['ma_kho'])_0x249981[_0x3589e9(0x1e0)]=_0xfad336[_0x3589e9(0x1e0)];_0x52d73a=_0x63c7f8[_0x3589e9(0x1d1)](_0x2e1178[_0x3589e9(0x375)]);}}}}delete _0x5c1285['ngay'],delete _0x5c1285[_0x3589e9(0x2a1)],delete _0x5c1285[_0x3589e9(0x2c1)],delete _0x5c1285[_0x3589e9(0x2a3)],_0x9ed589={..._0x9ed589,..._0x5c1285};}catch(_0xc4dd5c){if(_0x2e1178[_0x3589e9(0x180)](_0x2e1178[_0x3589e9(0x349)],'DUvZj'))_0x3e4522[_0x3589e9(0x1d6)]=_0x2e1178[_0x3589e9(0x2bf)]+_0x232b9f['dieu_kien_khac'];else return _0x2e1178['lNIaP'](_0x245e54,_0xc4dd5c[_0x3589e9(0x2e4)]());}delete _0x9ed589['tu_ngay'],delete _0x9ed589[_0x3589e9(0x12d)],_0x2e1178[_0x3589e9(0x2fc)](dktk,_0x9ed589,function(_0x5a3c93,_0x58fe8d){const _0x521ff5=_0x3589e9;if(_0x5a3c93)return _0x2e1178['pQlnw'](_0x245e54,_0x5a3c93);_0x2102b6[_0x521ff5(0x252)]=_0x58fe8d['csum'](_0x521ff5(0x352)),_0x2102b6['value_nt']=_0x58fe8d['csum'](_0x521ff5(0x300)),_0x2e1178[_0x521ff5(0x148)](_0x2102b6[_0x521ff5(0x252)],0x0)&&_0x2102b6['khong_am']&&(_0x2102b6[_0x521ff5(0x252)]=0x0),_0x2102b6[_0x521ff5(0x192)]<0x0&&_0x2102b6[_0x521ff5(0x1fc)]&&(_0x2e1178[_0x521ff5(0x313)]!==_0x2e1178[_0x521ff5(0x1e6)]?_0x2102b6[_0x521ff5(0x192)]=0x0:_0x5c9605['value']=_0x22c76d),_0x2e1178[_0x521ff5(0x2c5)](_0x245e54,null,_0x2102b6);});break;}else _0x1c4d25[_0x3589e9(0x22b)]=_0x1e68ab[_0x3589e9(0x32b)],_0x16bcf1['den_ngay']=_0x4c1406[_0x3589e9(0x359)];}case'6':{_0x2102b6[_0x3589e9(0x1c8)]='',_0x2102b6[_0x3589e9(0x2dc)]='';let _0x2a1f09={..._0x209bc9};_0x2a1f09[_0x3589e9(0x270)]=new Date(_0x209bc9[_0x3589e9(0x22b)]),_0x2a1f09[_0x3589e9(0x2e5)]=_0x2102b6[_0x3589e9(0x15d)],_0x2a1f09['tk']=_0x2102b6['tk'],delete _0x2a1f09['tu_ngay'],delete _0x2a1f09[_0x3589e9(0x12d)];_0x2102b6[_0x3589e9(0x23b)]&&(_0x2a1f09[_0x3589e9(0x23b)]=_0x2102b6[_0x3589e9(0x23b)]);if(_0x2102b6[_0x3589e9(0x1d6)]){if(_0x2e1178[_0x3589e9(0x1bb)](_0x2e1178['qSevc'],_0x2e1178[_0x3589e9(0x14f)]))try{_0x2e1178[_0x3589e9(0x1a9)](_0x2102b6[_0x3589e9(0x1d6)][_0x3589e9(0x280)](_0x3589e9(0x127)),0x0)&&(_0x2e1178[_0x3589e9(0x2a0)](_0x2e1178[_0x3589e9(0x395)],'lcczf')?_0x2102b6[_0x3589e9(0x1d6)]=_0x3589e9(0x2be)+_0x2102b6[_0x3589e9(0x1d6)]:_0x2e1178[_0x3589e9(0x2ac)](_0x1884bd,_0xc9f8e4));let _0x43c9d8=_0x2e1178[_0x3589e9(0x1cc)](evalute,_0x2102b6[_0x3589e9(0x1d6)],{'condition':_0x2a1f09,'moment':moment,'row':_0x45cf1a,'cell':_0x2102b6});if(_0x43c9d8[_0x3589e9(0x270)]){if(_0x2e1178[_0x3589e9(0x2a0)](_0x2e1178[_0x3589e9(0x36c)],_0x2e1178[_0x3589e9(0x36c)])){_0x28d0cc[_0x3589e9(0x270)]['setDate'](_0x23b7f5[_0x3589e9(0x270)]);if(_0x2e1178[_0x3589e9(0x33a)](_0x387be0[_0x3589e9(0x270)]['getTime'](),_0x12467f[_0x3589e9(0x12d)]['getTime']())||_0x5e6d9f['ngay'][_0x3589e9(0x20b)]()<_0x29e363[_0x3589e9(0x22b)][_0x3589e9(0x20b)]())return _0x24a834(null,{'value':0x0,'value_nt':0x0});}else{_0x2a1f09[_0x3589e9(0x270)][_0x3589e9(0x39a)](_0x43c9d8[_0x3589e9(0x270)]);if(_0x2e1178[_0x3589e9(0x178)](_0x2a1f09[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9[_0x3589e9(0x12d)][_0x3589e9(0x20b)]())||_0x2e1178[_0x3589e9(0x24a)](_0x2a1f09[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9[_0x3589e9(0x22b)][_0x3589e9(0x20b)]()))return _0x245e54(null,{'value':0x0,'value_nt':0x0});}}if(_0x43c9d8[_0x3589e9(0x2c1)]){if('uxAYG'===_0x2e1178[_0x3589e9(0x314)]){_0x2a1f09[_0x3589e9(0x270)][_0x3589e9(0x2d7)](_0x43c9d8[_0x3589e9(0x2c1)]-0x1);let _0x3abef5=_0x2e1178['QbBtk'](moment,_0x2a1f09[_0x3589e9(0x270)])['startOf'](_0x2e1178['iwtnW'])['toDate'](),_0x54f654=_0x2e1178[_0x3589e9(0x1a1)](moment,_0x2a1f09[_0x3589e9(0x270)])[_0x3589e9(0x24e)](_0x2e1178['iwtnW'])[_0x3589e9(0x265)]();_0x2a1f09[_0x3589e9(0x270)]=new Date(_0x3abef5);_0x2e1178[_0x3589e9(0x301)](_0x2a1f09['ngay'][_0x3589e9(0x20b)](),_0x209bc9['tu_ngay'][_0x3589e9(0x20b)]())&&(_0x2a1f09[_0x3589e9(0x270)]=new Date(_0x209bc9[_0x3589e9(0x22b)]));_0x2a1f09[_0x3589e9(0x270)][_0x3589e9(0x20b)]()>_0x209bc9[_0x3589e9(0x12d)]['getTime']()&&(_0x2a1f09[_0x3589e9(0x270)]=_0x2e1178['nkPYl'](moment,_0x209bc9[_0x3589e9(0x12d)])[_0x3589e9(0x2c8)](_0x2e1178['nSIhL'])[_0x3589e9(0x265)]());if(_0x2e1178['UxrHl'](_0x2a1f09[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x54f654[_0x3589e9(0x20b)]())||_0x2e1178[_0x3589e9(0x327)](_0x2a1f09['ngay'][_0x3589e9(0x20b)](),_0x3abef5[_0x3589e9(0x20b)]()))return _0x2e1178[_0x3589e9(0x1e3)](_0x245e54,null,{'value':0x0,'value_nt':0x0});}else{_0x3da388['ngay']['setMonth'](_0x2e1178['nYhIJ'](0x3,_0x2e1178[_0x3589e9(0x1bc)](_0x3afaa6[_0x3589e9(0x2a1)],0x1)));let _0x485983=_0x2e1178[_0x3589e9(0x2ac)](_0x5cf60c,_0x4c7357['ngay'])['startOf'](_0x3589e9(0x2c2))['toDate'](),_0x13b374=_0x2e1178[_0x3589e9(0x334)](_0x5df60b,_0x12950a[_0x3589e9(0x270)])[_0x3589e9(0x24e)](_0x2e1178[_0x3589e9(0x329)])[_0x3589e9(0x265)]();_0x37f996['ngay']=new _0x403e8c(_0x485983);_0x2e1178['ckcPl'](_0x3fdd11[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0xd0de79[_0x3589e9(0x22b)][_0x3589e9(0x20b)]())&&(_0x566015[_0x3589e9(0x270)]=new _0x18ea55(_0x2702c6[_0x3589e9(0x22b)]));_0x2e1178[_0x3589e9(0x223)](_0x13d83c['ngay'][_0x3589e9(0x20b)](),_0x464492[_0x3589e9(0x12d)][_0x3589e9(0x20b)]())&&(_0x550039[_0x3589e9(0x270)]=_0x2e1178[_0x3589e9(0x32f)](_0x17f813,_0x59ffd3[_0x3589e9(0x12d)])['startOf'](_0x2e1178['nSIhL'])[_0x3589e9(0x265)]());if(_0x2e1178['DKiFt'](_0x2921d7[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x13b374['getTime']())||_0x2e1178[_0x3589e9(0x362)](_0x27aaad[_0x3589e9(0x270)]['getTime'](),_0x485983[_0x3589e9(0x20b)]()))return _0x2e1178['QKTmc'](_0x14c1f4,null,{'value':0x0,'value_nt':0x0});}}if(_0x43c9d8[_0x3589e9(0x2a1)]){_0x2a1f09[_0x3589e9(0x270)][_0x3589e9(0x2d7)](_0x2e1178[_0x3589e9(0x196)](_0x2e1178[_0x3589e9(0x131)](_0x43c9d8[_0x3589e9(0x2a1)],0x1),0x3));let _0x3398ba=moment(_0x2a1f09[_0x3589e9(0x270)])[_0x3589e9(0x2c8)](_0x2e1178[_0x3589e9(0x329)])[_0x3589e9(0x265)](),_0x2ed0be=moment(_0x2a1f09[_0x3589e9(0x270)])[_0x3589e9(0x24e)](_0x3589e9(0x2c2))[_0x3589e9(0x265)]();_0x2a1f09[_0x3589e9(0x270)]=new Date(_0x3398ba);_0x2a1f09[_0x3589e9(0x270)][_0x3589e9(0x20b)]()<_0x209bc9['tu_ngay'][_0x3589e9(0x20b)]()&&(_0x2a1f09[_0x3589e9(0x270)]=new Date(_0x209bc9['tu_ngay']));if(_0x2e1178[_0x3589e9(0x283)](_0x2a1f09[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9['den_ngay']['getTime']())){if(_0x2e1178[_0x3589e9(0x15c)](_0x2e1178[_0x3589e9(0x3ac)],_0x3589e9(0x173)))_0x2a1f09[_0x3589e9(0x270)]=_0x2e1178['nkPYl'](moment,_0x209bc9[_0x3589e9(0x12d)])[_0x3589e9(0x2c8)](_0x2e1178[_0x3589e9(0x220)])[_0x3589e9(0x265)]();else return _0x2e1178[_0x3589e9(0x383)](_0x3f7022,null,{'value':0x0,'value_nt':0x0});}if(_0x2e1178[_0x3589e9(0x36d)](_0x2a1f09[_0x3589e9(0x270)]['getTime'](),_0x2ed0be[_0x3589e9(0x20b)]())||_0x2e1178[_0x3589e9(0x15e)](_0x2a1f09['ngay'][_0x3589e9(0x20b)](),_0x3398ba[_0x3589e9(0x20b)]()))return _0x2e1178[_0x3589e9(0x383)](_0x245e54,null,{'value':0x0,'value_nt':0x0});}if(_0x43c9d8[_0x3589e9(0x2a3)]){_0x2a1f09[_0x3589e9(0x270)][_0x3589e9(0x1e5)](_0x43c9d8['nam']);let _0x51fd6f=_0x2e1178[_0x3589e9(0x13e)](moment,_0x2a1f09['ngay'])[_0x3589e9(0x2c8)](_0x2e1178[_0x3589e9(0x230)])['toDate'](),_0x5e843f=_0x2e1178[_0x3589e9(0x276)](moment,_0x2a1f09['ngay'])[_0x3589e9(0x24e)](_0x2e1178[_0x3589e9(0x230)])[_0x3589e9(0x265)]();_0x2a1f09[_0x3589e9(0x270)]=new Date(_0x51fd6f);_0x2a1f09[_0x3589e9(0x270)]['getTime']()<_0x209bc9[_0x3589e9(0x22b)]['getTime']()&&(_0x2e1178[_0x3589e9(0x1bb)](_0x2e1178[_0x3589e9(0x20d)],_0x2e1178[_0x3589e9(0x20d)])?_0x50ab60['dieu_kien_khac']=_0x2e1178[_0x3589e9(0x277)](_0x3589e9(0x2be),_0x3872d1[_0x3589e9(0x1d6)]):_0x2a1f09['ngay']=new Date(_0x209bc9['tu_ngay']));_0x2e1178['WsFML'](_0x2a1f09[_0x3589e9(0x270)]['getTime'](),_0x209bc9[_0x3589e9(0x12d)][_0x3589e9(0x20b)]())&&(_0x2a1f09[_0x3589e9(0x270)]=_0x2e1178[_0x3589e9(0x17f)](moment,_0x209bc9[_0x3589e9(0x12d)])[_0x3589e9(0x2c8)](_0x2e1178['nSIhL'])['toDate']());if(_0x2a1f09[_0x3589e9(0x270)][_0x3589e9(0x20b)]()>_0x5e843f[_0x3589e9(0x20b)]()||_0x2e1178[_0x3589e9(0x28a)](_0x2a1f09[_0x3589e9(0x270)]['getTime'](),_0x51fd6f[_0x3589e9(0x20b)]()))return _0x2e1178[_0x3589e9(0x1f1)](_0x245e54,null,{'value':0x0,'value_nt':0x0});}delete _0x43c9d8['ngay'],delete _0x43c9d8[_0x3589e9(0x2c1)],delete _0x43c9d8[_0x3589e9(0x2a1)],delete _0x43c9d8['nam'],_0x2a1f09={..._0x2a1f09,..._0x43c9d8};}catch(_0x3c8124){if(_0x3589e9(0x1c7)===_0x3589e9(0x2d0))_0x19e168[_0x3589e9(0x252)]=0x0;else return _0x2e1178[_0x3589e9(0x2c4)](_0x245e54,_0x3c8124['toString']());}else _0x12523d['ma_sp']=_0x13df0b[_0x3589e9(0x3b7)];}dktk(_0x2a1f09,function(_0x38d794,_0x1a652d){const _0x168909=_0x3589e9,_0x13285e=_0x168909(0x1ca)[_0x168909(0x169)]('|');let _0x40707f=0x0;while(!![]){switch(_0x13285e[_0x40707f++]){case'0':_0x2102b6[_0x168909(0x252)]=_0x1a652d[_0x168909(0x2ea)](_0x2e1178['XBQyk']);continue;case'1':_0x2102b6[_0x168909(0x192)]<0x0&&_0x2102b6[_0x168909(0x1fc)]&&(_0x2102b6[_0x168909(0x192)]=0x0);continue;case'2':_0x2102b6[_0x168909(0x252)]<0x0&&_0x2102b6[_0x168909(0x1fc)]&&(_0x2102b6[_0x168909(0x252)]=0x0);continue;case'3':_0x245e54(null,_0x2102b6);continue;case'4':_0x2102b6['value_nt']=_0x1a652d[_0x168909(0x2ea)](_0x2e1178[_0x168909(0x124)]);continue;case'5':if(_0x38d794)return _0x245e54(_0x38d794);continue;}break;}});break;}case'7':{_0x2102b6['cong_thuc']='',_0x2102b6[_0x3589e9(0x2dc)]='';let _0x27188f={..._0x209bc9};_0x27188f['ngay']=new Date(_0x209bc9[_0x3589e9(0x12d)]),_0x27188f[_0x3589e9(0x2e5)]=_0x2102b6[_0x3589e9(0x15d)],_0x27188f['tk']=_0x2102b6['tk'],delete _0x27188f['tu_ngay'],delete _0x27188f[_0x3589e9(0x12d)];_0x2102b6[_0x3589e9(0x23b)]&&(_0x2e1178[_0x3589e9(0x1a3)](_0x2e1178[_0x3589e9(0x3b0)],_0x2e1178['ICkga'])?_0x27188f[_0x3589e9(0x23b)]=_0x2102b6[_0x3589e9(0x23b)]:_0x86a38a['ngay']=new _0x187a91(_0x1bff5b[_0x3589e9(0x12d)]));if(_0x2102b6['dieu_kien_khac'])try{_0x2102b6[_0x3589e9(0x1d6)][_0x3589e9(0x280)](_0x2e1178[_0x3589e9(0x3b1)])<0x0&&(_0x2e1178['czsnh'](_0x3589e9(0x32c),_0x2e1178[_0x3589e9(0x3a4)])?_0x50d00c[_0x3589e9(0x1c8)]=_0x31eeef[_0x3589e9(0x1c8)][_0x3589e9(0x169)]('[\x22'+_0x10815f[_0x3589e9(0x368)]+'\x22]')[_0x3589e9(0x2ce)]('[\x22'+_0x41bf2d[_0x3589e9(0x302)]+'\x22]'):_0x2102b6['dieu_kien_khac']=_0x2e1178['KmaIa']+_0x2102b6['dieu_kien_khac']);let _0x295ee0=evalute(_0x2102b6[_0x3589e9(0x1d6)],{'condition':_0x27188f,'moment':moment,'row':_0x45cf1a,'cell':_0x2102b6});if(_0x295ee0[_0x3589e9(0x270)]){_0x27188f[_0x3589e9(0x270)][_0x3589e9(0x39a)](_0x295ee0[_0x3589e9(0x270)]);if(_0x2e1178['Ytkky'](_0x27188f[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9['den_ngay'][_0x3589e9(0x20b)]())||_0x2e1178[_0x3589e9(0x3a2)](_0x27188f[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9[_0x3589e9(0x22b)]['getTime']()))return _0x245e54(null,{'value':0x0,'value_nt':0x0});}if(_0x295ee0['thang']){_0x27188f[_0x3589e9(0x270)][_0x3589e9(0x2d7)](_0x2e1178[_0x3589e9(0x2c7)](_0x295ee0[_0x3589e9(0x2c1)],0x1));let _0x3af398=_0x2e1178[_0x3589e9(0x1e9)](moment,_0x27188f[_0x3589e9(0x270)])['startOf']('month')[_0x3589e9(0x265)](),_0x1c3a01=_0x2e1178[_0x3589e9(0x35e)](moment,_0x27188f[_0x3589e9(0x270)])[_0x3589e9(0x24e)](_0x2e1178[_0x3589e9(0x1c6)])['toDate']();_0x27188f[_0x3589e9(0x270)]=new Date(_0x1c3a01);_0x27188f[_0x3589e9(0x270)]['getTime']()<_0x209bc9[_0x3589e9(0x22b)][_0x3589e9(0x20b)]()&&(_0x3589e9(0x213)===_0x3589e9(0x213)?_0x27188f['ngay']=_0x2e1178[_0x3589e9(0x35e)](moment,_0x209bc9[_0x3589e9(0x22b)])[_0x3589e9(0x24e)](_0x2e1178[_0x3589e9(0x220)])[_0x3589e9(0x265)]():_0x2e1178[_0x3589e9(0x17e)](_0x4251a2,_0x1939aa));_0x2e1178[_0x3589e9(0x358)](_0x27188f[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9['den_ngay'][_0x3589e9(0x20b)]())&&(_0x27188f[_0x3589e9(0x270)]=new Date(_0x209bc9[_0x3589e9(0x12d)]));if(_0x2e1178[_0x3589e9(0x1be)](_0x27188f['ngay'][_0x3589e9(0x20b)](),_0x1c3a01[_0x3589e9(0x20b)]())||_0x2e1178[_0x3589e9(0x315)](_0x27188f[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x3af398[_0x3589e9(0x20b)]())){if(_0x2e1178[_0x3589e9(0x393)](_0x2e1178[_0x3589e9(0x26a)],_0x3589e9(0x236)))_0x38650f['cong_thuc']&&(_0x2ddccf[_0x3589e9(0x1c8)]=_0x2a9f14[_0x3589e9(0x1c8)][_0x3589e9(0x169)]('[\x22'+_0x1470e6[_0x3589e9(0x368)]+'\x22]')[_0x3589e9(0x2ce)]('[\x22'+_0x26ad20[_0x3589e9(0x302)]+'\x22]'));else return _0x2e1178['yIYYC'](_0x245e54,null,{'value':0x0,'value_nt':0x0});}}if(_0x295ee0[_0x3589e9(0x2a1)]){if(_0x2e1178[_0x3589e9(0x312)](_0x2e1178[_0x3589e9(0x364)],_0x2e1178[_0x3589e9(0x1b0)]))_0x2e1178['CPeYx'](_0x4182b4,_0x1935df);else{_0x27188f['ngay']['setMonth'](_0x2e1178['bMZkk'](_0x2e1178[_0x3589e9(0x131)](_0x295ee0[_0x3589e9(0x2a1)],0x1),0x3));let _0x21a182=moment(_0x27188f['ngay'])['startOf'](_0x2e1178[_0x3589e9(0x329)])['toDate'](),_0x2a41c5=_0x2e1178[_0x3589e9(0x373)](moment,_0x27188f[_0x3589e9(0x270)])[_0x3589e9(0x24e)](_0x3589e9(0x2c2))[_0x3589e9(0x265)]();_0x27188f[_0x3589e9(0x270)]=new Date(_0x2a41c5);_0x27188f[_0x3589e9(0x270)][_0x3589e9(0x20b)]()<_0x209bc9[_0x3589e9(0x22b)][_0x3589e9(0x20b)]()&&(_0x27188f[_0x3589e9(0x270)]=_0x2e1178[_0x3589e9(0x334)](moment,_0x209bc9[_0x3589e9(0x22b)])[_0x3589e9(0x24e)](_0x2e1178['nSIhL'])['toDate']());_0x2e1178[_0x3589e9(0x283)](_0x27188f['ngay'][_0x3589e9(0x20b)](),_0x209bc9[_0x3589e9(0x12d)][_0x3589e9(0x20b)]())&&(_0x27188f['ngay']=new Date(_0x209bc9[_0x3589e9(0x12d)]));if(_0x27188f['ngay'][_0x3589e9(0x20b)]()>_0x2a41c5[_0x3589e9(0x20b)]()||_0x2e1178[_0x3589e9(0x35d)](_0x27188f[_0x3589e9(0x270)]['getTime'](),_0x21a182[_0x3589e9(0x20b)]())){if(_0x2e1178['zeSEi'](_0x2e1178[_0x3589e9(0x219)],_0x2e1178[_0x3589e9(0x1db)]))_0x4fd658[_0x3589e9(0x290)](_0x9552ba,_0x1a45e8),_0x4f009d['value']=0x0;else return _0x2e1178['niABM'](_0x245e54,null,{'value':0x0,'value_nt':0x0});}}}if(_0x295ee0[_0x3589e9(0x2a3)]){_0x27188f[_0x3589e9(0x270)][_0x3589e9(0x1e5)](_0x295ee0[_0x3589e9(0x2a3)]);let _0xb007ae=_0x2e1178[_0x3589e9(0x254)](moment,_0x27188f[_0x3589e9(0x270)])[_0x3589e9(0x2c8)](_0x2e1178[_0x3589e9(0x230)])['toDate'](),_0x128ede=_0x2e1178['pQlnw'](moment,_0x27188f[_0x3589e9(0x270)])['endOf'](_0x2e1178[_0x3589e9(0x230)])['toDate']();_0x27188f['ngay']=new Date(_0x128ede);_0x2e1178[_0x3589e9(0x24a)](_0x27188f[_0x3589e9(0x270)]['getTime'](),_0x209bc9[_0x3589e9(0x22b)]['getTime']())&&(_0x27188f[_0x3589e9(0x270)]=_0x2e1178[_0x3589e9(0x2d6)](moment,_0x209bc9['tu_ngay'])[_0x3589e9(0x24e)]('date')['toDate']());_0x2e1178['WsFML'](_0x27188f[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9['den_ngay'][_0x3589e9(0x20b)]())&&(_0x2e1178[_0x3589e9(0x2cb)](_0x2e1178[_0x3589e9(0x149)],_0x3589e9(0x11a))?_0x27188f['ngay']=new Date(_0x209bc9['den_ngay']):_0x389337[_0x3589e9(0x252)]=0x0);if(_0x27188f[_0x3589e9(0x270)]['getTime']()>_0x128ede[_0x3589e9(0x20b)]()||_0x2e1178[_0x3589e9(0x210)](_0x27188f['ngay']['getTime'](),_0xb007ae[_0x3589e9(0x20b)]())){if(_0x2e1178[_0x3589e9(0x2e6)](_0x2e1178['GWbBV'],_0x3589e9(0x381)))_0x53726c['ma_nv']=_0xb20535['ma_nv'];else return _0x2e1178['aSbss'](_0x245e54,null,{'value':0x0,'value_nt':0x0});}}delete _0x295ee0['ngay'],delete _0x295ee0['thang'],delete _0x295ee0[_0x3589e9(0x2a1)],delete _0x295ee0[_0x3589e9(0x2a3)],_0x27188f={..._0x27188f,..._0x295ee0};}catch(_0xb08921){if(_0x2e1178['iBTyS'](_0x2e1178[_0x3589e9(0x171)],_0x2e1178[_0x3589e9(0x171)])){_0x1e9bc8[_0x3589e9(0x270)]['setMonth'](_0x2e1178[_0x3589e9(0x122)](_0x299c8c[_0x3589e9(0x2c1)],0x1));let _0x54d080=_0x2e1178[_0x3589e9(0x328)](_0xfd743,_0x3e63e0['ngay'])[_0x3589e9(0x2c8)](_0x2e1178['iwtnW'])[_0x3589e9(0x265)](),_0x157f9d=_0x2e1178[_0x3589e9(0x2ac)](_0x488f39,_0x40cd8f[_0x3589e9(0x270)])[_0x3589e9(0x24e)](_0x2e1178['iwtnW'])[_0x3589e9(0x265)]();_0x581d4e[_0x3589e9(0x270)]=new _0x5637c6(_0x54d080);_0x2e1178['ckcPl'](_0x5d2c18[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x21360c['tu_ngay'][_0x3589e9(0x20b)]())&&(_0x132f6a['ngay']=new _0x12a2b0(_0x498136[_0x3589e9(0x22b)]));_0x2e1178[_0x3589e9(0x223)](_0x15147d[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x3a69a1[_0x3589e9(0x12d)][_0x3589e9(0x20b)]())&&(_0x30424b[_0x3589e9(0x270)]=_0x2e1178[_0x3589e9(0x224)](_0x5e7eae,_0x512aa7['den_ngay'])[_0x3589e9(0x2c8)](_0x2e1178[_0x3589e9(0x220)])[_0x3589e9(0x265)]());if(_0x2e1178[_0x3589e9(0x223)](_0x81bcb3[_0x3589e9(0x270)]['getTime'](),_0x157f9d[_0x3589e9(0x20b)]())||_0x2e1178[_0x3589e9(0x148)](_0x1543d9[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x54d080['getTime']()))return _0x40e639(null,{'value':0x0,'value_nt':0x0});}else return _0x2e1178[_0x3589e9(0x1a1)](_0x245e54,_0xb08921[_0x3589e9(0x2e4)]());}_0x2e1178[_0x3589e9(0x15b)](cktk,_0x27188f,function(_0x44b517,_0x110f54){const _0x3a31e2=_0x3589e9,_0x4aa19e={'vFyih':function(_0x142961,_0x2e8fc0){const _0x4c708d=_0x3114;return _0x2e1178[_0x4c708d(0x148)](_0x142961,_0x2e8fc0);},'ThLwk':_0x2e1178[_0x3a31e2(0x3b1)],'XgSWi':function(_0x135a80,_0x2ebbbe){const _0x4b437d=_0x3a31e2;return _0x2e1178[_0x4b437d(0x277)](_0x135a80,_0x2ebbbe);},'jKSBZ':_0x2e1178[_0x3a31e2(0x2bf)],'PBwLS':function(_0x5ddccf,_0x51eb4d,_0x48c6c7){const _0x170507=_0x3a31e2;return _0x2e1178[_0x170507(0x30b)](_0x5ddccf,_0x51eb4d,_0x48c6c7);}};if(_0x2e1178['vbFci'](_0x3a31e2(0x307),_0x2e1178[_0x3a31e2(0x145)])){if(_0x44b517)return _0x2e1178[_0x3a31e2(0x2ac)](_0x245e54,_0x44b517);_0x2102b6[_0x3a31e2(0x252)]=_0x110f54[_0x3a31e2(0x2ea)](_0x3a31e2(0x352)),_0x2102b6['value_nt']=_0x110f54['csum'](_0x2e1178[_0x3a31e2(0x2fa)]),_0x2e1178['lKEtP'](_0x2102b6[_0x3a31e2(0x252)],0x0)&&_0x2102b6[_0x3a31e2(0x1fc)]&&(_0x2102b6[_0x3a31e2(0x252)]=0x0),_0x2102b6[_0x3a31e2(0x192)]<0x0&&_0x2102b6['khong_am']&&(_0x2102b6[_0x3a31e2(0x192)]=0x0),_0x2e1178[_0x3a31e2(0x257)](_0x245e54,null,_0x2102b6);}else{_0x4aa19e[_0x3a31e2(0x2ca)](_0x322d39[_0x3a31e2(0x1d6)][_0x3a31e2(0x280)](_0x4aa19e['ThLwk']),0x0)&&(_0x507011[_0x3a31e2(0x1d6)]=_0x4aa19e[_0x3a31e2(0x163)](_0x4aa19e[_0x3a31e2(0x29b)],_0x43122b[_0x3a31e2(0x1d6)]));let _0x503a81=_0x4aa19e[_0x3a31e2(0x2bb)](_0x328e1e,_0x4d9c36[_0x3a31e2(0x1d6)],{'condition':_0x5223ed,'moment':_0xbf29df,'row':_0x347da3,'cell':_0x17cca1});_0x20def3={..._0x4e4631,..._0x503a81};}});break;}case'8':{_0x2102b6[_0x3589e9(0x1c8)]='',_0x2102b6['value_string']='';let _0x32a837={..._0x209bc9};_0x32a837[_0x3589e9(0x270)]=new Date(_0x209bc9[_0x3589e9(0x12d)]),_0x32a837[_0x3589e9(0x2e5)]=_0x2102b6[_0x3589e9(0x15d)],_0x32a837['tk']=_0x2102b6['tk'],delete _0x32a837[_0x3589e9(0x22b)],delete _0x32a837['den_ngay'];_0x2102b6[_0x3589e9(0x23b)]&&(_0x32a837['ma_kh']=_0x2102b6[_0x3589e9(0x23b)]);if(_0x2102b6[_0x3589e9(0x1d6)]){if(_0x2e1178[_0x3589e9(0x2b3)]('Qopwo',_0x2e1178[_0x3589e9(0x1c4)]))try{if(_0x2e1178[_0x3589e9(0x354)](_0x3589e9(0x1ac),_0x3589e9(0x1ac))){if(_0x3ff68c)return _0x2e1178[_0x3589e9(0x32f)](_0xebf33f,_0x5e5a6a);_0x371fe6();}else{_0x2e1178[_0x3589e9(0x35d)](_0x2102b6['dieu_kien_khac'][_0x3589e9(0x280)](_0x3589e9(0x127)),0x0)&&(_0x2e1178[_0x3589e9(0x272)](_0x2e1178[_0x3589e9(0x2f3)],_0x2e1178[_0x3589e9(0x2f3)])?_0x2e1178[_0x3589e9(0x328)](_0x148a45,_0x17b788):_0x2102b6[_0x3589e9(0x1d6)]=_0x2e1178[_0x3589e9(0x2bf)]+_0x2102b6[_0x3589e9(0x1d6)]);let _0x5a692a=_0x2e1178['FbOtn'](evalute,_0x2102b6[_0x3589e9(0x1d6)],{'condition':_0x32a837,'moment':moment,'row':_0x45cf1a,'cell':_0x2102b6});if(_0x5a692a[_0x3589e9(0x270)]){if(_0x2e1178[_0x3589e9(0x271)](_0x2e1178[_0x3589e9(0x2fd)],_0x2e1178['zJoHl'])){_0x32a837[_0x3589e9(0x270)]['setDate'](_0x5a692a[_0x3589e9(0x270)]);if(_0x2e1178[_0x3589e9(0x2db)](_0x32a837[_0x3589e9(0x270)]['getTime'](),_0x209bc9[_0x3589e9(0x12d)][_0x3589e9(0x20b)]())||_0x2e1178[_0x3589e9(0x344)](_0x32a837[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9[_0x3589e9(0x22b)]['getTime']()))return _0x2e1178['piIEL'](_0x245e54,null,{'value':0x0,'value_nt':0x0});}else _0x4c38d7[_0x3589e9(0x23b)]=_0x58809f[_0x3589e9(0x23b)];}if(_0x5a692a[_0x3589e9(0x2c1)]){_0x32a837['ngay'][_0x3589e9(0x2d7)](_0x5a692a[_0x3589e9(0x2c1)]);let _0x86e87e=_0x2e1178[_0x3589e9(0x2f8)](moment,_0x32a837[_0x3589e9(0x270)])[_0x3589e9(0x2c8)](_0x2e1178[_0x3589e9(0x1c6)])[_0x3589e9(0x265)](),_0x30a0ef=_0x2e1178[_0x3589e9(0x2ae)](moment,_0x32a837[_0x3589e9(0x270)])[_0x3589e9(0x24e)](_0x3589e9(0x3ad))['toDate']();_0x32a837[_0x3589e9(0x270)]=new Date(_0x30a0ef);_0x2e1178[_0x3589e9(0x3b4)](_0x32a837[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9['tu_ngay'][_0x3589e9(0x20b)]())&&(_0x2e1178[_0x3589e9(0x2e6)](_0x2e1178[_0x3589e9(0x1e4)],_0x2e1178[_0x3589e9(0x1e4)])?_0x32a837['ngay']=_0x2e1178[_0x3589e9(0x334)](moment,_0x209bc9[_0x3589e9(0x22b)])[_0x3589e9(0x24e)](_0x2e1178[_0x3589e9(0x220)])[_0x3589e9(0x265)]():_0x28b4d0[_0x3589e9(0x252)]=0x0);_0x2e1178[_0x3589e9(0x20c)](_0x32a837[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9[_0x3589e9(0x12d)][_0x3589e9(0x20b)]())&&(_0x32a837[_0x3589e9(0x270)]=new Date(_0x209bc9[_0x3589e9(0x12d)]));if(_0x32a837[_0x3589e9(0x270)][_0x3589e9(0x20b)]()>_0x30a0ef[_0x3589e9(0x20b)]()||_0x2e1178[_0x3589e9(0x2f9)](_0x32a837['ngay'][_0x3589e9(0x20b)](),_0x86e87e['getTime']())){if(_0x2e1178[_0x3589e9(0x1ce)](_0x2e1178['iIwMw'],'AJibe'))return _0x245e54(null,{'value':0x0,'value_nt':0x0});else _0x56cd14[_0x3589e9(0x270)]=new _0x174a31(_0x514360[_0x3589e9(0x12d)]);}}if(_0x5a692a[_0x3589e9(0x2a1)]){_0x32a837[_0x3589e9(0x270)][_0x3589e9(0x2d7)](_0x2e1178[_0x3589e9(0x386)](_0x5a692a[_0x3589e9(0x2a1)]-0x1,0x3));let _0x17e53a=_0x2e1178[_0x3589e9(0x2b8)](moment,_0x32a837[_0x3589e9(0x270)])[_0x3589e9(0x2c8)](_0x2e1178[_0x3589e9(0x329)])['toDate'](),_0x4672ee=_0x2e1178[_0x3589e9(0x1ef)](moment,_0x32a837[_0x3589e9(0x270)])[_0x3589e9(0x24e)](_0x2e1178[_0x3589e9(0x329)])[_0x3589e9(0x265)]();_0x32a837[_0x3589e9(0x270)]=new Date(_0x4672ee);_0x2e1178['lVjvJ'](_0x32a837[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9[_0x3589e9(0x22b)][_0x3589e9(0x20b)]())&&(_0x32a837[_0x3589e9(0x270)]=_0x2e1178[_0x3589e9(0x183)](moment,_0x209bc9[_0x3589e9(0x22b)])[_0x3589e9(0x24e)](_0x3589e9(0x37c))[_0x3589e9(0x265)]());_0x2e1178[_0x3589e9(0x388)](_0x32a837[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9[_0x3589e9(0x12d)]['getTime']())&&(_0x32a837[_0x3589e9(0x270)]=new Date(_0x209bc9['den_ngay']));if(_0x2e1178[_0x3589e9(0x30f)](_0x32a837['ngay']['getTime'](),_0x4672ee[_0x3589e9(0x20b)]())||_0x32a837[_0x3589e9(0x270)][_0x3589e9(0x20b)]()<_0x17e53a[_0x3589e9(0x20b)]())return _0x2e1178[_0x3589e9(0x383)](_0x245e54,null,{'value':0x0,'value_nt':0x0});}if(_0x5a692a['nam']){_0x32a837['ngay'][_0x3589e9(0x1e5)](_0x5a692a[_0x3589e9(0x2a3)]);let _0x511be3=_0x2e1178[_0x3589e9(0x17f)](moment,_0x32a837[_0x3589e9(0x270)])[_0x3589e9(0x2c8)](_0x2e1178[_0x3589e9(0x230)])[_0x3589e9(0x265)](),_0x445764=_0x2e1178[_0x3589e9(0x17f)](moment,_0x32a837[_0x3589e9(0x270)])[_0x3589e9(0x24e)](_0x2e1178[_0x3589e9(0x230)])[_0x3589e9(0x265)]();_0x32a837[_0x3589e9(0x270)]=new Date(_0x445764);_0x32a837['ngay']['getTime']()<_0x209bc9[_0x3589e9(0x22b)][_0x3589e9(0x20b)]()&&(_0x2e1178[_0x3589e9(0x23c)](_0x2e1178['DTZzd'],_0x3589e9(0x228))?_0x290fbb['dieu_kien_khac']=_0x2e1178[_0x3589e9(0x2bf)]+_0x4a4b91[_0x3589e9(0x1d6)]:_0x32a837['ngay']=_0x2e1178['cGXUw'](moment,_0x209bc9['tu_ngay'])['endOf']('date')[_0x3589e9(0x265)]());_0x2e1178[_0x3589e9(0x223)](_0x32a837[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x209bc9[_0x3589e9(0x12d)][_0x3589e9(0x20b)]())&&(_0x2e1178[_0x3589e9(0x22f)]('ZDGSS',_0x2e1178[_0x3589e9(0x279)])?_0xc333c6[_0x3589e9(0x1d6)]=_0x2e1178[_0x3589e9(0x277)](_0x2e1178[_0x3589e9(0x2bf)],_0x36f0c7[_0x3589e9(0x1d6)]):_0x32a837[_0x3589e9(0x270)]=new Date(_0x209bc9[_0x3589e9(0x12d)]));if(_0x2e1178[_0x3589e9(0x1be)](_0x32a837[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x445764[_0x3589e9(0x20b)]())||_0x2e1178['OYxqR'](_0x32a837[_0x3589e9(0x270)][_0x3589e9(0x20b)](),_0x511be3['getTime']()))return _0x2e1178[_0x3589e9(0x2a5)](_0x245e54,null,{'value':0x0,'value_nt':0x0});}delete _0x5a692a[_0x3589e9(0x270)],delete _0x5a692a[_0x3589e9(0x2c1)],delete _0x5a692a[_0x3589e9(0x2a1)],delete _0x5a692a['nam'],_0x32a837={..._0x32a837,..._0x5a692a};}}catch(_0x4fca53){return _0x245e54(_0x4fca53[_0x3589e9(0x2e4)]());}else return _0x47e1cf[_0x3589e9(0x29a)]();}cktk(_0x32a837,function(_0x1c6c11,_0x25adc8){const _0x114acc=_0x3589e9,_0x2f6643={'YyPvn':function(_0x2ab52a,_0x20b16b){return _0x2ab52a(_0x20b16b);}};if(_0x1c6c11)return _0x2e1178[_0x114acc(0x2d6)](_0x245e54,_0x1c6c11);_0x2102b6['value']=_0x25adc8['csum'](_0x2e1178['XBQyk']),_0x2102b6['value_nt']=_0x25adc8[_0x114acc(0x2ea)](_0x2e1178[_0x114acc(0x124)]),_0x2e1178['AXeGX'](_0x2102b6[_0x114acc(0x252)],0x0)&&_0x2102b6[_0x114acc(0x1fc)]&&(_0x2102b6[_0x114acc(0x252)]=0x0),_0x2e1178[_0x114acc(0x253)](_0x2102b6[_0x114acc(0x192)],0x0)&&_0x2102b6[_0x114acc(0x1fc)]&&(_0x2e1178[_0x114acc(0x162)](_0x114acc(0x211),_0x2e1178[_0x114acc(0x222)])?_0x2102b6[_0x114acc(0x192)]=0x0:_0x16bc23['ngay']=_0x2f6643['YyPvn'](_0x2f11e3,_0x3b1a2a[_0x114acc(0x22b)])[_0x114acc(0x24e)](_0x114acc(0x37c))[_0x114acc(0x265)]()),_0x2e1178[_0x114acc(0x257)](_0x245e54,null,_0x2102b6);});break;}default:_0x2102b6['cong_thuc']='',_0x2e1178[_0x3589e9(0x1cc)](_0x245e54,null,_0x2102b6);}};function _0x3114(_0x1e4a43,_0x20025c){const _0x28a5ec=_0x28a5();return _0x3114=function(_0x31144b,_0x34c907){_0x31144b=_0x31144b-0x119;let _0xaf3e33=_0x28a5ec[_0x31144b];if(_0x3114['iUNqaH']===undefined){var _0x444bfb=function(_0x426968){const _0x402993='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1d1a50='',_0x9d5b9d='';for(let _0x5534b7=0x0,_0xbe047a,_0x26c8a4,_0x2dff6a=0x0;_0x26c8a4=_0x426968['charAt'](_0x2dff6a++);~_0x26c8a4&&(_0xbe047a=_0x5534b7%0x4?_0xbe047a*0x40+_0x26c8a4:_0x26c8a4,_0x5534b7++%0x4)?_0x1d1a50+=String['fromCharCode'](0xff&_0xbe047a>>(-0x2*_0x5534b7&0x6)):0x0){_0x26c8a4=_0x402993['indexOf'](_0x26c8a4);}for(let _0x15d7a1=0x0,_0x45fc99=_0x1d1a50['length'];_0x15d7a1<_0x45fc99;_0x15d7a1++){_0x9d5b9d+='%'+('00'+_0x1d1a50['charCodeAt'](_0x15d7a1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x9d5b9d);};_0x3114['yGsNdS']=_0x444bfb,_0x1e4a43=arguments,_0x3114['iUNqaH']=!![];}const _0x17f8eb=_0x28a5ec[0x0],_0x26f74c=_0x31144b+_0x17f8eb,_0x52c34b=_0x1e4a43[_0x26f74c];return!_0x52c34b?(_0xaf3e33=_0x3114['yGsNdS'](_0xaf3e33),_0x1e4a43[_0x26f74c]=_0xaf3e33):_0xaf3e33=_0x52c34b,_0xaf3e33;},_0x3114(_0x1e4a43,_0x20025c);}module[_0x1b3398(0x244)]=function(_0x1c2810){const _0x2cdf7b=_0x1b3398,_0x59445a={'JSupS':function(_0x4d2cf1,_0x138a3c){return _0x4d2cf1===_0x138a3c;},'AAoXc':function(_0x316bc3,_0x2ff963){return _0x316bc3(_0x2ff963);},'peOgC':_0x2cdf7b(0x208),'KequO':'jLUgM','ClFhk':function(_0x201a09,_0x206807){return _0x201a09(_0x206807);},'byaQC':function(_0x363545,_0x403ea6){return _0x363545+_0x403ea6;},'wEDLn':_0x2cdf7b(0x2b9),'JMMJH':function(_0x53117b,_0x4b5126){return _0x53117b!==_0x4b5126;},'ATFrX':_0x2cdf7b(0x27e),'hTZbo':_0x2cdf7b(0x127),'uASzy':function(_0x21c25d,_0x3d8751,_0x523fc5){return _0x21c25d(_0x3d8751,_0x523fc5);},'SwTpe':function(_0x4d3a2c,_0x24220f){return _0x4d3a2c>_0x24220f;},'ddduu':'du_no_nt00','igPVy':function(_0x4708dd,_0x2af1de,_0x43d099){return _0x4708dd(_0x2af1de,_0x43d099);},'hBqJV':function(_0x165db6,_0x5e2fc4){return _0x165db6>=_0x5e2fc4;},'UrYFq':_0x2cdf7b(0x332),'jxVCx':_0x2cdf7b(0x356),'EOnXn':function(_0x3e87cf,_0x1cd7fc){return _0x3e87cf!==_0x1cd7fc;},'PRIAv':'DFLwA','uDwzf':_0x2cdf7b(0x1f7),'hYhrL':function(_0x420bbe,_0xb9470a){return _0x420bbe(_0xb9470a);},'uguwC':function(_0x51997f,_0x284328){return _0x51997f<_0x284328;},'zFUGD':_0x2cdf7b(0x2c2),'VSBIj':function(_0x126321,_0x42401a){return _0x126321-_0x42401a;},'hrsNo':'BrAsI','RuKxL':_0x2cdf7b(0x2be),'DxYGO':'year','yHEpf':_0x2cdf7b(0x1d8),'DILFA':_0x2cdf7b(0x1a6),'USzOS':_0x2cdf7b(0x2f5),'SuPrN':_0x2cdf7b(0x2ba),'kDMOi':_0x2cdf7b(0x374),'OVOSb':'tien','WlTSI':_0x2cdf7b(0x2b2),'Wkvse':_0x2cdf7b(0x286),'XJVts':_0x2cdf7b(0x34f),'lWDts':'PDbXP','BZLTY':function(_0x282bed,_0xb844f6,_0x3eb2e1){return _0x282bed(_0xb844f6,_0x3eb2e1);},'iyXup':_0x2cdf7b(0x32a),'ewUho':_0x2cdf7b(0x22c),'zknky':function(_0x5080d6,_0x148a92){return _0x5080d6(_0x148a92);},'foGAR':'date','BhHqH':_0x2cdf7b(0x337),'LzfxG':function(_0x21fd23,_0x4b777e){return _0x21fd23!==_0x4b777e;},'WPmIG':_0x2cdf7b(0x39e),'GwzHQ':'CMmJZ','ZIamA':function(_0x211717,_0x103ede){return _0x211717||_0x103ede;},'ncwxN':_0x2cdf7b(0x24d),'JjjOh':function(_0x4fa10d,_0x88e4c6){return _0x4fa10d(_0x88e4c6);},'WjNTz':'Mẫu\x20báo\x20cáo\x20này\x20không\x20có\x20giá\x20trị','PZVrN':_0x2cdf7b(0x392),'fQaXM':function(_0x1682f2,_0x592c4d,_0x2a0326,_0x2fd683,_0x2eb44,_0x5b8418){return _0x1682f2(_0x592c4d,_0x2a0326,_0x2fd683,_0x2eb44,_0x5b8418);},'apRaE':_0x2cdf7b(0x294),'SiRvf':_0x2cdf7b(0x1d7),'rjWwM':_0x2cdf7b(0x2e7),'vlOTE':_0x2cdf7b(0x1fa),'KgwWD':_0x2cdf7b(0x18f)};new controller(_0x1c2810,_0x2cdf7b(0x140),async function(_0x501a25,_0x54d48a){const _0x34d719=_0x2cdf7b,_0x1b8a8d={'eGuOv':function(_0x37a91e,_0x55bf62){const _0xea2c4c=_0x3114;return _0x59445a[_0xea2c4c(0x1cb)](_0x37a91e,_0x55bf62);},'PlljM':_0x59445a['peOgC'],'ZZtjg':function(_0x33e8bc,_0x2434c7){return _0x33e8bc===_0x2434c7;},'boXlj':_0x59445a[_0x34d719(0x248)],'VhgSo':function(_0x242dbc,_0x871a2b){return _0x59445a['ClFhk'](_0x242dbc,_0x871a2b);},'stfxd':function(_0x5d9046,_0x5f5bcf){const _0x226dbe=_0x34d719;return _0x59445a[_0x226dbe(0x234)](_0x5d9046,_0x5f5bcf);},'xwwCB':_0x59445a[_0x34d719(0x1c9)],'zmvSL':function(_0x3f8c77,_0x2868c9){return _0x59445a['JMMJH'](_0x3f8c77,_0x2868c9);},'rHovU':_0x59445a[_0x34d719(0x30c)],'LIaSU':function(_0x213d13,_0x41c084){return _0x213d13<_0x41c084;},'UljTE':_0x59445a[_0x34d719(0x170)],'qwzOI':function(_0x27220d,_0x5d6379){return _0x27220d(_0x5d6379);},'yKCvB':function(_0x5525e9,_0x57bcee,_0x103ac4){return _0x59445a['uASzy'](_0x5525e9,_0x57bcee,_0x103ac4);},'oVlBJ':function(_0x175262,_0x7ca3ad){return _0x59445a['SwTpe'](_0x175262,_0x7ca3ad);},'ZJXbq':_0x59445a[_0x34d719(0x1da)],'yUDfd':function(_0x48d527,_0x1fe885,_0x5cdd74){return _0x59445a['igPVy'](_0x48d527,_0x1fe885,_0x5cdd74);},'oyWYG':function(_0x5e190e,_0x5128d9){const _0x11edc2=_0x34d719;return _0x59445a[_0x11edc2(0x350)](_0x5e190e,_0x5128d9);},'KxjpH':_0x34d719(0x324),'KTyfc':_0x59445a[_0x34d719(0x182)],'KHmHQ':_0x59445a[_0x34d719(0x336)],'BugTv':function(_0x3211c3,_0x42fe59){const _0x26fb02=_0x34d719;return _0x59445a[_0x26fb02(0x273)](_0x3211c3,_0x42fe59);},'hUumM':_0x59445a['PRIAv'],'TgiDF':_0x59445a[_0x34d719(0x31d)],'sEUwq':function(_0x1602d2,_0x3e48cd){const _0x4519c3=_0x34d719;return _0x59445a[_0x4519c3(0x28c)](_0x1602d2,_0x3e48cd);},'FABgf':function(_0x5eb12d,_0x5a2479){const _0x58901f=_0x34d719;return _0x59445a[_0x58901f(0x250)](_0x5eb12d,_0x5a2479);},'TISVF':function(_0x543194,_0x1efbe0){return _0x543194-_0x1efbe0;},'ihteK':_0x59445a[_0x34d719(0x339)],'ScZDN':function(_0x46a4aa,_0x4cc89a,_0x28c9ad){return _0x46a4aa(_0x4cc89a,_0x28c9ad);},'DHaZc':function(_0x2e3b66,_0x516d7c){const _0x258652=_0x34d719;return _0x59445a[_0x258652(0x152)](_0x2e3b66,_0x516d7c);},'GMPns':_0x59445a[_0x34d719(0x3b3)],'tsnMk':_0x59445a[_0x34d719(0x1f5)],'lTXAA':_0x59445a['DxYGO'],'TOcpF':_0x59445a[_0x34d719(0x2aa)],'eYzzJ':_0x34d719(0x18b),'rKKYH':_0x59445a['DILFA'],'jJpFl':_0x59445a['USzOS'],'vkxNC':_0x59445a[_0x34d719(0x384)],'wvQEu':_0x34d719(0x146),'ixuzR':_0x34d719(0x29c),'uiAYH':_0x59445a['kDMOi'],'BMcfm':function(_0x2eaa6b,_0x24fa27){return _0x2eaa6b===_0x24fa27;},'yvdKW':function(_0x52c1f3,_0x127531,_0x48c7f2){return _0x52c1f3(_0x127531,_0x48c7f2);},'RQLKZ':function(_0x340239,_0x3487a1){const _0x14bf53=_0x34d719;return _0x59445a[_0x14bf53(0x28c)](_0x340239,_0x3487a1);},'dgHlh':_0x59445a[_0x34d719(0x130)],'LDNzM':_0x34d719(0x151),'RqvoA':_0x34d719(0x3b6),'QGYmm':_0x59445a['WlTSI'],'uLHyw':function(_0x359cfc,_0x11f206){const _0x177cab=_0x34d719;return _0x59445a[_0x177cab(0x35b)](_0x359cfc,_0x11f206);},'bmtCM':_0x59445a[_0x34d719(0x12f)],'khJkz':_0x59445a[_0x34d719(0x1f6)],'AaOdC':_0x59445a['lWDts'],'XBubD':function(_0x24c45e,_0x1e5285,_0x3f0e5e){const _0x5b34d9=_0x34d719;return _0x59445a[_0x5b34d9(0x2eb)](_0x24c45e,_0x1e5285,_0x3f0e5e);},'nBnWl':function(_0x11690b,_0x3a240a){const _0x31b475=_0x34d719;return _0x59445a[_0x31b475(0x27a)](_0x11690b,_0x3a240a);},'CklzL':_0x59445a[_0x34d719(0x245)],'VnFvv':function(_0x4c8bdb,_0x4b1fd5){const _0x3da20f=_0x34d719;return _0x59445a[_0x3da20f(0x35b)](_0x4c8bdb,_0x4b1fd5);},'crfJn':_0x59445a[_0x34d719(0x172)],'AeudK':function(_0x4c7ddc,_0x1ad3db){const _0x3e5bf4=_0x34d719;return _0x59445a[_0x3e5bf4(0x39b)](_0x4c7ddc,_0x1ad3db);},'Yriru':_0x59445a['foGAR'],'Wfglt':_0x59445a['BhHqH'],'giMUv':function(_0x330104,_0x1c5d71){const _0x37e01c=_0x34d719;return _0x59445a[_0x37e01c(0x152)](_0x330104,_0x1c5d71);},'ZLyJs':function(_0xa0c303,_0x59c897){const _0xe0c7d3=_0x34d719;return _0x59445a[_0xe0c7d3(0x123)](_0xa0c303,_0x59c897);},'hjOXV':_0x59445a[_0x34d719(0x1a5)],'scFqI':function(_0x5a36d5,_0x5e6245){return _0x5a36d5(_0x5e6245);},'YhyRE':_0x59445a['GwzHQ'],'EsONL':function(_0x2ed4a1,_0x385981){const _0x5058bd=_0x34d719;return _0x59445a[_0x5058bd(0x3b2)](_0x2ed4a1,_0x385981);},'SKvCj':_0x59445a[_0x34d719(0x139)]};let _0x35316c=_0x501a25['query'];if(!_0x35316c[_0x34d719(0x12d)]||!_0x35316c['tu_ngay']||!_0x35316c[_0x34d719(0x259)])return _0x54d48a(_0x59445a[_0x34d719(0x21a)]);if(!global[_0x34d719(0x351)][_0x34d719(0x17c)][_0x34d719(0x357)][_0x34d719(0x289)](_0x35316c[_0x34d719(0x259)]))return _0x59445a[_0x34d719(0x195)](_0x54d48a,_0x59445a[_0x34d719(0x179)]);if(_0x35316c[_0x34d719(0x392)]){let _0x43a87c=await getCodeChildren(global[_0x34d719(0x1d1)](_0x34d719(0x11e)),_0x35316c[_0x34d719(0x16e)],_0x35316c['ma_bp'],_0x59445a[_0x34d719(0x320)],'ma_bp_me');_0x35316c[_0x34d719(0x392)]={'$in':_0x43a87c};}if(_0x35316c['ma_phi']){let _0x11caa4=await _0x59445a[_0x34d719(0x19c)](getCodeChildren,global[_0x34d719(0x1d1)](_0x59445a[_0x34d719(0x2ad)]),_0x35316c[_0x34d719(0x16e)],_0x35316c[_0x34d719(0x1d7)],_0x59445a[_0x34d719(0x1dd)],_0x59445a[_0x34d719(0x193)]);_0x35316c[_0x34d719(0x1d7)]={'$in':_0x11caa4};}if(_0x35316c['ma_dt']){let _0x212b77=await _0x59445a[_0x34d719(0x19c)](getCodeChildren,global[_0x34d719(0x1d1)](_0x59445a[_0x34d719(0x191)]),_0x35316c[_0x34d719(0x16e)],_0x35316c[_0x34d719(0x18f)],_0x59445a['KgwWD'],'ma_dt_me');_0x35316c[_0x34d719(0x18f)]={'$in':_0x212b77};}new Promise((_0x26df82,_0x1ade58)=>{const _0x40f4b0=_0x34d719,_0x33af80={'KCapO':function(_0x238a6a,_0x38b8d5){return _0x238a6a(_0x38b8d5);},'zvBxO':function(_0x1a2188,_0x392271){return _0x59445a['JSupS'](_0x1a2188,_0x392271);},'XDxNm':function(_0x82349d,_0x373055){const _0xb6de63=_0x3114;return _0x59445a[_0xb6de63(0x1cb)](_0x82349d,_0x373055);}};rptform[_0x40f4b0(0x227)]({'_id':_0x35316c[_0x40f4b0(0x259)],'id_app':_0x35316c['id_app']})[_0x40f4b0(0x3a3)]()[_0x40f4b0(0x295)](_0x1558dc=>{const _0x4b2f9e=_0x40f4b0,_0x32f932={'owdCZ':function(_0x3e1e6e,_0x51917e){return _0x33af80['KCapO'](_0x3e1e6e,_0x51917e);},'mVUFZ':_0x4b2f9e(0x37c)};_0x33af80[_0x4b2f9e(0x1bf)](_0x4b2f9e(0x2ff),_0x4b2f9e(0x2ff))?_0x33af80['XDxNm'](_0x26df82,_0x1558dc):_0x3b1cce['ngay']=_0x32f932[_0x4b2f9e(0x3a8)](_0x81f9da,_0xb570b0[_0x4b2f9e(0x22b)])[_0x4b2f9e(0x24e)](_0x32f932[_0x4b2f9e(0x186)])['toDate']();})[_0x40f4b0(0x143)](_0x548740=>{const _0x22c8c8=_0x40f4b0,_0x2604e5={'CfrBT':function(_0x236416,_0x47351a){const _0xb9debc=_0x3114;return _0x1b8a8d[_0xb9debc(0x2a4)](_0x236416,_0x47351a);},'YfOqD':_0x1b8a8d[_0x22c8c8(0x33b)]};if(_0x1b8a8d[_0x22c8c8(0x26b)](_0x1b8a8d[_0x22c8c8(0x1d4)],_0x1b8a8d[_0x22c8c8(0x1d4)]))_0x1b8a8d[_0x22c8c8(0x2d8)](_0x1ade58,_0x548740);else return _0x2604e5[_0x22c8c8(0x215)](_0x1f51f5,_0x2604e5[_0x22c8c8(0x25e)]);});})[_0x34d719(0x295)](async _0xa74e76=>{const _0x49ddf6=_0x34d719,_0x3e777c={'MQyBJ':_0x49ddf6(0x365),'NAtpw':function(_0x5a6504,_0x352b8a){const _0x4e77ff=_0x49ddf6;return _0x1b8a8d[_0x4e77ff(0x2d8)](_0x5a6504,_0x352b8a);},'sDSAl':_0x49ddf6(0x207),'WTJgd':function(_0x99b92f,_0x1443e4){const _0x4e1b07=_0x49ddf6;return _0x1b8a8d[_0x4e1b07(0x2b4)](_0x99b92f,_0x1443e4);},'vAMUr':function(_0x532260,_0xf502bd){return _0x532260*_0xf502bd;},'fLTPW':function(_0x2fce91,_0x106860){const _0x55a3f8=_0x49ddf6;return _0x1b8a8d[_0x55a3f8(0x281)](_0x2fce91,_0x106860);},'byvRE':_0x1b8a8d['ihteK'],'ikDYy':function(_0x3096ab,_0x1a4782){const _0x215e2f=_0x49ddf6;return _0x1b8a8d[_0x215e2f(0x2b4)](_0x3096ab,_0x1a4782);},'IWnoM':function(_0x19fda7,_0x4718b){return _0x1b8a8d['oVlBJ'](_0x19fda7,_0x4718b);},'ShgaF':function(_0x18eedd,_0x4df01b,_0x497215){const _0x5e4d44=_0x49ddf6;return _0x1b8a8d[_0x5e4d44(0x1c3)](_0x18eedd,_0x4df01b,_0x497215);},'xpzLn':function(_0x7ccb08,_0x1f196a){return _0x1b8a8d['DHaZc'](_0x7ccb08,_0x1f196a);},'oAfKf':function(_0xe324ec,_0xf197){return _0xe324ec!==_0xf197;},'hyEij':_0x49ddf6(0x27c),'eRmWr':_0x1b8a8d[_0x49ddf6(0x2e3)],'JrMBg':_0x1b8a8d[_0x49ddf6(0x189)],'OMIhn':function(_0x475e75,_0x382fdb){const _0x15928=_0x49ddf6;return _0x1b8a8d[_0x15928(0x2a4)](_0x475e75,_0x382fdb);},'ORLae':_0x1b8a8d[_0x49ddf6(0x267)],'dOvze':function(_0x248990,_0x47bfc8){return _0x248990<_0x47bfc8;},'NHzyH':_0x49ddf6(0x37c),'RaReX':function(_0x4f1857,_0x737061){return _0x4f1857+_0x737061;},'UDCWs':_0x1b8a8d[_0x49ddf6(0x13d)],'QVxcw':_0x1b8a8d[_0x49ddf6(0x13b)],'XWvUq':_0x1b8a8d[_0x49ddf6(0x21f)],'salXN':_0x49ddf6(0x367),'kweeM':_0x1b8a8d[_0x49ddf6(0x187)],'MbSby':_0x1b8a8d[_0x49ddf6(0x330)],'buIBW':_0x1b8a8d[_0x49ddf6(0x1dc)],'ZEwUj':_0x1b8a8d[_0x49ddf6(0x316)],'wfeTK':_0x1b8a8d[_0x49ddf6(0x29e)],'WWxcK':function(_0x18cb49,_0x59a79a){const _0x2b1db8=_0x49ddf6;return _0x1b8a8d[_0x2b1db8(0x15a)](_0x18cb49,_0x59a79a);},'fAsQo':_0x49ddf6(0x340),'aewsC':function(_0x381973,_0x34417f,_0x4da504,_0x2cf2f9,_0x542c16,_0x5ef451){return _0x381973(_0x34417f,_0x4da504,_0x2cf2f9,_0x542c16,_0x5ef451);},'uTbsz':function(_0x31d1a7,_0xc84b50,_0xaa3c1e){const _0x13d858=_0x49ddf6;return _0x1b8a8d[_0x13d858(0x33e)](_0x31d1a7,_0xc84b50,_0xaa3c1e);},'CTSVL':function(_0x2bf446,_0x4146b9){return _0x1b8a8d['RQLKZ'](_0x2bf446,_0x4146b9);},'uaAuP':_0x1b8a8d[_0x49ddf6(0x12c)],'cJvRi':_0x1b8a8d['LDNzM'],'rNauK':_0x1b8a8d[_0x49ddf6(0x202)],'NfuMY':_0x1b8a8d[_0x49ddf6(0x141)],'XcalQ':function(_0x5d7446,_0x7fb1f6){const _0x3226a4=_0x49ddf6;return _0x1b8a8d[_0x3226a4(0x20a)](_0x5d7446,_0x7fb1f6);},'KyWsD':_0x1b8a8d['bmtCM'],'rDFsf':_0x1b8a8d[_0x49ddf6(0x2d5)],'ZyulK':_0x1b8a8d[_0x49ddf6(0x2a8)],'jZmoQ':function(_0x199f01,_0xa87c15,_0xfaa423){const _0xf00874=_0x49ddf6;return _0x1b8a8d[_0xf00874(0x1f4)](_0x199f01,_0xa87c15,_0xfaa423);},'QsRLK':function(_0x5e0430,_0x453a21){const _0x242a42=_0x49ddf6;return _0x1b8a8d[_0x242a42(0x2d8)](_0x5e0430,_0x453a21);},'GaASY':function(_0x542432,_0xdf2baa){const _0x47a49a=_0x49ddf6;return _0x1b8a8d[_0x47a49a(0x25c)](_0x542432,_0xdf2baa);},'LiBwW':_0x1b8a8d[_0x49ddf6(0x23e)],'SmKzj':function(_0x5d18a0,_0x5d05c3){return _0x5d18a0(_0x5d05c3);}};if(_0x1b8a8d['VnFvv'](_0x1b8a8d[_0x49ddf6(0x321)],_0x1b8a8d['crfJn'])){const _0x2735ee='1|0|3|5|4|2'[_0x49ddf6(0x169)]('|');let _0x52e0c4=0x0;while(!![]){switch(_0x2735ee[_0x52e0c4++]){case'0':_0xb33e0[_0x49ddf6(0x252)]=_0x456dac[_0x49ddf6(0x2ea)](_0x3e777c[_0x49ddf6(0x2dd)]);continue;case'1':if(_0x5cc1a9)return _0x3e777c['NAtpw'](_0x475f33,_0x473231);continue;case'2':_0x47bc40(null,_0x4bc4c9);continue;case'3':_0xe670d3['value_nt']=_0x85afbf['csum'](_0x3e777c[_0x49ddf6(0x37d)]);continue;case'4':_0x3e777c[_0x49ddf6(0x184)](_0x3bae3c[_0x49ddf6(0x192)],0x0)&&_0xaba16b[_0x49ddf6(0x1fc)]&&(_0x9a33e9[_0x49ddf6(0x192)]=0x0);continue;case'5':_0x3e777c['WTJgd'](_0x263f1f[_0x49ddf6(0x252)],0x0)&&_0x3ae364[_0x49ddf6(0x1fc)]&&(_0x37b07f[_0x49ddf6(0x252)]=0x0);continue;}break;}}else{_0x35316c[_0x49ddf6(0x22b)]=_0x1b8a8d[_0x49ddf6(0x22d)](moment,new Date(_0x35316c['tu_ngay']))[_0x49ddf6(0x2c8)](_0x1b8a8d[_0x49ddf6(0x2ef)])['toDate'](),_0x35316c[_0x49ddf6(0x12d)]=_0x1b8a8d[_0x49ddf6(0x2d8)](moment,new Date(_0x35316c[_0x49ddf6(0x12d)]))[_0x49ddf6(0x24e)](_0x1b8a8d[_0x49ddf6(0x2ef)])[_0x49ddf6(0x265)]();if(!_0x35316c[_0x49ddf6(0x32b)]){if(_0x49ddf6(0x337)===_0x1b8a8d['Wfglt'])_0x35316c[_0x49ddf6(0x32b)]=new Date(_0x35316c[_0x49ddf6(0x22b)]),_0x35316c[_0x49ddf6(0x32b)]['setYear'](_0x1b8a8d[_0x49ddf6(0x25f)](_0x35316c[_0x49ddf6(0x32b)]['getFullYear'](),0x1));else{_0x2b373e[_0x49ddf6(0x270)]['setMonth'](_0x3e777c[_0x49ddf6(0x2f0)](_0x3e777c[_0x49ddf6(0x1ee)](_0x4a211f[_0x49ddf6(0x2a1)],0x1),0x3));let _0x1ceaa6=_0x58c157(_0x463544['ngay'])[_0x49ddf6(0x2c8)](_0x3e777c[_0x49ddf6(0x304)])['toDate'](),_0x54c635=_0x3e777c[_0x49ddf6(0x2bc)](_0x187ab7,_0x5c7449[_0x49ddf6(0x270)])['endOf'](_0x49ddf6(0x2c2))[_0x49ddf6(0x265)]();_0x28457['ngay']=new _0x5e2173(_0x54c635);_0x3e777c['ikDYy'](_0x159f62[_0x49ddf6(0x270)][_0x49ddf6(0x20b)](),_0x519fca[_0x49ddf6(0x22b)][_0x49ddf6(0x20b)]())&&(_0x1607b0[_0x49ddf6(0x270)]=_0x3e777c[_0x49ddf6(0x2bc)](_0x293df1,_0x38f8a5[_0x49ddf6(0x22b)])[_0x49ddf6(0x24e)](_0x49ddf6(0x37c))[_0x49ddf6(0x265)]());_0x3e777c[_0x49ddf6(0x120)](_0x1e30f1[_0x49ddf6(0x270)]['getTime'](),_0x39926f[_0x49ddf6(0x12d)][_0x49ddf6(0x20b)]())&&(_0xe7f45a[_0x49ddf6(0x270)]=new _0x188e1c(_0x3299bf[_0x49ddf6(0x12d)]));if(_0x3e777c[_0x49ddf6(0x120)](_0x5f42f7[_0x49ddf6(0x270)][_0x49ddf6(0x20b)](),_0x54c635[_0x49ddf6(0x20b)]())||_0x3e777c['ikDYy'](_0x3c0601[_0x49ddf6(0x270)][_0x49ddf6(0x20b)](),_0x1ceaa6['getTime']()))return _0x3e777c['ShgaF'](_0x3e31c8,null,{'value':0x0,'value_nt':0x0});}}else _0x35316c[_0x49ddf6(0x32b)]=_0x1b8a8d[_0x49ddf6(0x299)](moment,new Date(_0x35316c['tu_ngay_kt']))['startOf'](_0x1b8a8d[_0x49ddf6(0x2ef)])[_0x49ddf6(0x265)]();if(!_0x35316c[_0x49ddf6(0x359)]){if(_0x1b8a8d[_0x49ddf6(0x1d0)](_0x1b8a8d[_0x49ddf6(0x13c)],_0x49ddf6(0x2cf)))_0x35316c[_0x49ddf6(0x359)]=new Date(_0x35316c[_0x49ddf6(0x12d)]),_0x35316c[_0x49ddf6(0x359)][_0x49ddf6(0x1e5)](_0x1b8a8d[_0x49ddf6(0x281)](_0x35316c[_0x49ddf6(0x359)][_0x49ddf6(0x175)](),0x1));else{let _0x1bc4e4={..._0x498dd2[_0x49ddf6(0x2da)](_0x5e1ef7),..._0x2a6c9b,'ma_so':(_0x1e3e29['ma_so']+':'+_0x1c8ce0[_0x28ca1f[_0x49ddf6(0x218)]])[_0x49ddf6(0x370)](),'title':_0x43f6f3[_0x16c37c[_0x49ddf6(0x1bd)]||_0x44262a[_0x49ddf6(0x218)]]||_0x274fd3[_0x49ddf6(0x28d)],'stt':_0x58f5a8[_0x49ddf6(0x385)]+'.'+_0x1b8a8d[_0x49ddf6(0x22e)](_0x105c79,0x1),'ma_so_goc':_0x40178b[_0x49ddf6(0x302)]};_0x1bc4e4[_0x49ddf6(0x214)]&&_0x1bc4e4['details']['forEach'](_0x33c170=>{const _0x345c7b=_0x49ddf6;_0x33c170['cong_thuc']&&(_0x33c170[_0x345c7b(0x1c8)]=_0x33c170[_0x345c7b(0x1c8)][_0x345c7b(0x169)]('[\x22'+_0x1bc4e4[_0x345c7b(0x368)]+'\x22]')['join']('[\x22'+_0x1bc4e4[_0x345c7b(0x302)]+'\x22]'));}),_0x25ced0['push'](_0x1bc4e4);}}else _0x35316c['den_ngay_kt']=_0x1b8a8d[_0x49ddf6(0x288)](moment,new Date(_0x35316c['den_ngay_kt']))[_0x49ddf6(0x24e)](_0x1b8a8d[_0x49ddf6(0x2ef)])['toDate']();let _0x217a25=_0xa74e76['report'];if(!_0x217a25||_0x1b8a8d[_0x49ddf6(0x25c)](_0xa74e76[_0x49ddf6(0x26e)][_0x49ddf6(0x256)],0x0))_0x217a25=await kbmbcqt[_0x49ddf6(0x311)]({'id_rptform':_0xa74e76[_0x49ddf6(0x3a9)]['toString'](),'id_app':_0x35316c[_0x49ddf6(0x16e)]})[_0x49ddf6(0x2fb)]({'stt':0x1})['lean']();const _0x5ba505={},_0x84e517={};let _0x26c187=[];try{await new Promise((_0x5b2328,_0x5cdc0e)=>{const _0x17bdcb=_0x49ddf6,_0x2338a4={'eHirV':function(_0x270246,_0x1a3f16){return _0x270246(_0x1a3f16);},'KTAba':_0x17bdcb(0x352),'zUGlm':function(_0x36d04d,_0x40075a){return _0x36d04d<_0x40075a;},'PqUsQ':function(_0x226d0a,_0x59ea0e){return _0x3e777c['oAfKf'](_0x226d0a,_0x59ea0e);},'koRuK':_0x3e777c[_0x17bdcb(0x3af)],'OOLtu':_0x3e777c[_0x17bdcb(0x298)],'PDXoe':_0x17bdcb(0x127),'IWgoo':_0x3e777c[_0x17bdcb(0x341)],'iCfhY':function(_0x16f2fc,_0x8a33d2,_0x2c3098){return _0x16f2fc(_0x8a33d2,_0x2c3098);},'obHHS':function(_0x477eca,_0xfb5404){const _0x481399=_0x17bdcb;return _0x3e777c[_0x481399(0x282)](_0x477eca,_0xfb5404);},'ghWIG':_0x3e777c[_0x17bdcb(0x150)],'EgmrP':function(_0x44b1cc,_0x149c10){const _0x5488e9=_0x17bdcb;return _0x3e777c[_0x5488e9(0x258)](_0x44b1cc,_0x149c10);},'BCbiY':function(_0x22cc8a,_0x2b3c2a){const _0x4df852=_0x17bdcb;return _0x3e777c[_0x4df852(0x120)](_0x22cc8a,_0x2b3c2a);},'mpdJH':function(_0x59f703,_0x286e39){const _0x469b86=_0x17bdcb;return _0x3e777c[_0x469b86(0x1e2)](_0x59f703,_0x286e39);},'Cqrxi':_0x17bdcb(0x3ad),'FTXhK':_0x3e777c[_0x17bdcb(0x19d)],'CqwtW':function(_0x13b19c,_0x5ca5ab){return _0x13b19c<_0x5ca5ab;},'XFdDr':function(_0xf8787,_0x3b921e,_0x344559){return _0x3e777c['ShgaF'](_0xf8787,_0x3b921e,_0x344559);},'NLncY':function(_0x23e666,_0x104439){return _0x23e666===_0x104439;},'LiDLq':function(_0x36c12f,_0x548982){const _0x3d19c1=_0x17bdcb;return _0x3e777c[_0x3d19c1(0x212)](_0x36c12f,_0x548982);},'GQyez':function(_0x217071,_0x2d5c50){const _0x75b05f=_0x17bdcb;return _0x3e777c[_0x75b05f(0x26d)](_0x217071,_0x2d5c50);},'dlcLn':_0x17bdcb(0x360),'eIPsz':_0x3e777c[_0x17bdcb(0x29d)],'ksjvL':_0x3e777c[_0x17bdcb(0x355)],'usWeI':function(_0xd5f798,_0x18c618){return _0xd5f798!==_0x18c618;},'kVAVi':_0x17bdcb(0x2e2),'yCRbP':_0x3e777c[_0x17bdcb(0x38b)],'egOlL':_0x3e777c[_0x17bdcb(0x262)],'cDPkR':_0x3e777c['kweeM'],'HivFk':_0x3e777c[_0x17bdcb(0x2f2)],'PLeYh':_0x3e777c['buIBW'],'yjCbD':function(_0x10c0c3,_0x4ab596){const _0xd8f1a8=_0x17bdcb;return _0x3e777c[_0xd8f1a8(0x282)](_0x10c0c3,_0x4ab596);}};_0x3e777c[_0x17bdcb(0x2b5)]!==_0x3e777c[_0x17bdcb(0x3a1)]?async[_0x17bdcb(0x31f)](_0x217a25,async _0x53f32e=>{const _0xe1b61e=_0x17bdcb,_0x4477a9={'bBMzp':function(_0x1a47b9,_0x145338){return _0x1a47b9(_0x145338);},'qiELe':_0x2338a4['Cqrxi'],'NHFeR':function(_0x4c3487,_0x5e72ea){const _0x1c1ea0=_0x3114;return _0x2338a4[_0x1c1ea0(0x2a2)](_0x4c3487,_0x5e72ea);},'NrNZe':function(_0x435d21,_0x3cd66f){return _0x435d21(_0x3cd66f);},'DEoTH':_0x2338a4['FTXhK'],'EpBHV':function(_0x4b28c0,_0x162e78){return _0x2338a4['CqwtW'](_0x4b28c0,_0x162e78);},'RmptN':function(_0x1c5a8d,_0x3745ba,_0x59b039){const _0x3abf1a=_0x3114;return _0x2338a4[_0x3abf1a(0x197)](_0x1c5a8d,_0x3745ba,_0x59b039);},'zmmhG':function(_0x4bff59,_0x575df2,_0x2fa5e0){const _0x58d117=_0x3114;return _0x2338a4[_0x58d117(0x197)](_0x4bff59,_0x575df2,_0x2fa5e0);},'DDJtV':function(_0x5d8b8b,_0x280da1){const _0x542706=_0x3114;return _0x2338a4[_0x542706(0x36a)](_0x5d8b8b,_0x280da1);},'pTXHN':function(_0x5b9003,_0x3a67d6){const _0x205f1a=_0x3114;return _0x2338a4[_0x205f1a(0x1d9)](_0x5b9003,_0x3a67d6);}};if(_0x2338a4['GQyez'](_0xe1b61e(0x36f),_0x2338a4[_0xe1b61e(0x2e9)])){if(_0x53f32e[_0xe1b61e(0x16a)]&&_0x53f32e['ref_code_field']){let _0xa429d9;if(!_0x53f32e[_0xe1b61e(0x37e)]){if(_0x2338a4[_0xe1b61e(0x36a)](_0x2338a4[_0xe1b61e(0x325)],_0x2338a4[_0xe1b61e(0x2f4)])){_0x34d626[_0xe1b61e(0x270)][_0xe1b61e(0x2d7)](_0x604ff3[_0xe1b61e(0x2c1)]-0x1);let _0xf2e63d=_0x4477a9['bBMzp'](_0x492101,_0x520dab[_0xe1b61e(0x270)])[_0xe1b61e(0x2c8)](_0xe1b61e(0x3ad))[_0xe1b61e(0x265)](),_0x580c89=_0x33fae1(_0x38634d['ngay'])[_0xe1b61e(0x24e)](_0x4477a9[_0xe1b61e(0x345)])[_0xe1b61e(0x265)]();_0x4e4ed0[_0xe1b61e(0x270)]=new _0x380d8a(_0xf2e63d);_0x969151[_0xe1b61e(0x270)]['getTime']()<_0x1bda89[_0xe1b61e(0x22b)][_0xe1b61e(0x20b)]()&&(_0x1c47b2[_0xe1b61e(0x270)]=new _0x57178f(_0x4197c9['tu_ngay']));_0x4477a9[_0xe1b61e(0x205)](_0xead079[_0xe1b61e(0x270)][_0xe1b61e(0x20b)](),_0xb2953e[_0xe1b61e(0x12d)][_0xe1b61e(0x20b)]())&&(_0x50b04d[_0xe1b61e(0x270)]=_0x4477a9['NrNZe'](_0x345a2d,_0xfaf4a8['den_ngay'])['startOf'](_0x4477a9[_0xe1b61e(0x235)])[_0xe1b61e(0x265)]());if(_0x41562e[_0xe1b61e(0x270)]['getTime']()>_0x580c89[_0xe1b61e(0x20b)]()||_0x4477a9[_0xe1b61e(0x142)](_0x3e5dc3[_0xe1b61e(0x270)][_0xe1b61e(0x20b)](),_0xf2e63d['getTime']()))return _0x4477a9['RmptN'](_0x51e484,null,{'value':0x0,'value_nt':0x0});}else _0xa429d9={..._[_0xe1b61e(0x2da)](_0x53f32e),'bold':!![]},_0x26c187[_0xe1b61e(0x366)](_0xa429d9);}let _0xd3de91={[_0x53f32e[_0xe1b61e(0x218)]]:0x1};_0x53f32e[_0xe1b61e(0x1bd)]&&(_0xd3de91[_0x53f32e[_0xe1b61e(0x1bd)]]=0x1);if(_0x53f32e[_0xe1b61e(0x28e)]){if(_0x2338a4['usWeI'](_0x2338a4['kVAVi'],_0x2338a4[_0xe1b61e(0x22a)])){if(_0x2ea0f2)return _0x2338a4['eHirV'](_0x20d84e,_0x2e8289);_0x1a3339[_0xe1b61e(0x252)]=_0x4dce2a[_0xe1b61e(0x2ea)](_0x2338a4['KTAba']),_0x27931b[_0xe1b61e(0x192)]=_0x2867ef[_0xe1b61e(0x2ea)]('du_no_nt00'),_0x2338a4[_0xe1b61e(0x1ea)](_0x237261[_0xe1b61e(0x252)],0x0)&&_0x577747[_0xe1b61e(0x1fc)]&&(_0x1c1862[_0xe1b61e(0x252)]=0x0),_0x2338a4[_0xe1b61e(0x1ea)](_0x27ac96[_0xe1b61e(0x192)],0x0)&&_0x24fe15[_0xe1b61e(0x1fc)]&&(_0x30423b[_0xe1b61e(0x192)]=0x0),_0x2adad4(null,_0x16bc84);}else _0x53f32e[_0xe1b61e(0x28e)][_0xe1b61e(0x169)](',')['forEach'](_0x352937=>{const _0x97982a=_0xe1b61e;_0x2338a4[_0x97982a(0x129)](_0x2338a4[_0x97982a(0x16f)],_0x2338a4[_0x97982a(0x389)])?_0xd3de91[_0x352937]=0x1:(_0x8fb964[_0x97982a(0x214)]||[])[_0x97982a(0x27d)](_0x39dcd1=>{const _0x34986f=_0x97982a;_0x39dcd1[_0x34986f(0x240)]='1',_0x39dcd1[_0x34986f(0x2b0)]='',_0x39dcd1[_0x34986f(0x247)]='',_0x39dcd1[_0x34986f(0x1c8)]=_0x56c11f[_0x34986f(0x275)](_0x24008d=>_0x24008d[_0x34986f(0x368)]===_0x14c71a['ma_so'])['map'](_0x323b2a=>{const _0x29c2e7=_0x34986f;return _0x29c2e7(0x18d)+_0x323b2a[_0x29c2e7(0x302)]+'\x22][\x22'+_0x39dcd1['ma_so']+'\x22]';})[_0x34986f(0x2ce)]('+');});});}let _0x314885={};if(_0x53f32e[_0xe1b61e(0x229)]){if(_0x2338a4[_0xe1b61e(0x36a)](_0x2338a4[_0xe1b61e(0x291)],_0x2338a4['yCRbP'])){let _0x42840f=_0x53f32e[_0xe1b61e(0x229)];_0x53f32e[_0xe1b61e(0x229)][_0xe1b61e(0x280)](_0x2338a4[_0xe1b61e(0x296)])<0x0&&(_0x42840f=_0x2338a4[_0xe1b61e(0x296)]+_0x42840f);try{if(_0x2338a4[_0xe1b61e(0x38e)](_0x2338a4[_0xe1b61e(0x154)],_0x2338a4[_0xe1b61e(0x11c)]))_0x314885=_0x2338a4[_0xe1b61e(0x197)](evalute,_0x42840f,{'moment':moment,'row':_0x53f32e});else{_0x2338a4[_0xe1b61e(0x1ea)](_0xd43967[_0xe1b61e(0x1d6)][_0xe1b61e(0x280)](_0x2338a4['PDXoe']),0x0)&&(_0x97eff[_0xe1b61e(0x1d6)]=_0x2338a4['IWgoo']+_0xad4c6c[_0xe1b61e(0x1d6)]);let _0x2d47bf=_0x2338a4['iCfhY'](_0x3b74a5,_0x26a39d['dieu_kien_khac'],{'condition':_0x3ec88e,'moment':_0x3c060a,'row':_0x5075f8,'cell':_0x55a926});_0xea6fbb={..._0x1e56e0,..._0x2d47bf};}}catch(_0x9f53b7){console[_0xe1b61e(0x290)](_0x2338a4['HivFk'],_0x9f53b7,_0x42840f);}}else return _0x4477a9['zmmhG'](_0x3642a6,null,{'value':0x0,'value_nt':0x0});}let _0x396130=await global['getModel'](_0x53f32e[_0xe1b61e(0x16a)])['find']({'id_app':_0x35316c[_0xe1b61e(0x16e)],..._0x314885},_0xd3de91)[_0xe1b61e(0x3a3)]();_0x396130[_0xe1b61e(0x27d)]((_0x5ce203,_0x59f553)=>{const _0x306579=_0xe1b61e,_0x1d8917={'YuTUv':function(_0x49df9c,_0x5840ce){const _0x491659=_0x3114;return _0x4477a9[_0x491659(0x1a4)](_0x49df9c,_0x5840ce);},'OThZs':_0x306579(0x361)};let _0x382c1c={..._[_0x306579(0x2da)](_0x53f32e),..._0x5ce203,'ma_so':(_0x53f32e['ma_so']+':'+_0x5ce203[_0x53f32e[_0x306579(0x218)]])[_0x306579(0x370)](),'title':_0x5ce203[_0x53f32e[_0x306579(0x1bd)]||_0x53f32e[_0x306579(0x218)]]||_0x53f32e[_0x306579(0x28d)],'stt':_0x53f32e['stt']+'.'+_0x4477a9[_0x306579(0x335)](_0x59f553,0x1),'ma_so_goc':_0x53f32e['ma_so']};_0x382c1c['details']&&_0x382c1c['details'][_0x306579(0x27d)](_0x320b29=>{const _0x2da4e5=_0x306579;_0x320b29[_0x2da4e5(0x1c8)]&&(_0x1d8917[_0x2da4e5(0x2cc)](_0x1d8917[_0x2da4e5(0x1b2)],_0x2da4e5(0x126))?_0x5976b1[_0x2da4e5(0x3b7)]=_0x5c1cdb['ma_sp']:_0x320b29[_0x2da4e5(0x1c8)]=_0x320b29['cong_thuc'][_0x2da4e5(0x169)]('[\x22'+_0x382c1c[_0x2da4e5(0x368)]+'\x22]')[_0x2da4e5(0x2ce)]('[\x22'+_0x382c1c[_0x2da4e5(0x302)]+'\x22]'));}),_0x26c187[_0x306579(0x366)](_0x382c1c);}),_0xa429d9&&(_0xa429d9[_0xe1b61e(0x214)]||[])[_0xe1b61e(0x27d)](_0x3f681a=>{const _0x4a63f4=_0xe1b61e;_0x3f681a[_0x4a63f4(0x240)]='1',_0x3f681a[_0x4a63f4(0x2b0)]='',_0x3f681a[_0x4a63f4(0x247)]='',_0x3f681a[_0x4a63f4(0x1c8)]=_0x26c187[_0x4a63f4(0x275)](_0x5d5ad4=>_0x5d5ad4['ma_so_goc']===_0xa429d9[_0x4a63f4(0x302)])['map'](_0x3691d2=>{const _0x941eff=_0x4a63f4;return'c[\x22'+_0x3691d2[_0x941eff(0x302)]+_0x941eff(0x391)+_0x3f681a[_0x941eff(0x302)]+'\x22]';})[_0x4a63f4(0x2ce)]('+');});}else _0x26c187[_0xe1b61e(0x366)](_0x53f32e);}else{_0x15681c['ngay'][_0xe1b61e(0x1e5)](_0x3a9784['nam']);let _0x187dc9=_0x2338a4[_0xe1b61e(0x3aa)](_0x5352c0,_0x5c4342['ngay'])[_0xe1b61e(0x2c8)](_0x2338a4[_0xe1b61e(0x38c)])[_0xe1b61e(0x265)](),_0x1e75da=_0x2338a4['eHirV'](_0x3022df,_0x1cbf26[_0xe1b61e(0x270)])['endOf'](_0xe1b61e(0x20e))[_0xe1b61e(0x265)]();_0xc67f7e['ngay']=new _0x1b8d27(_0x187dc9);_0x2338a4[_0xe1b61e(0x161)](_0x377cbf[_0xe1b61e(0x270)][_0xe1b61e(0x20b)](),_0x28aa21['tu_ngay'][_0xe1b61e(0x20b)]())&&(_0x972ae4[_0xe1b61e(0x270)]=new _0x24979d(_0x46fd2e[_0xe1b61e(0x22b)]));_0x2338a4['BCbiY'](_0x577a43[_0xe1b61e(0x270)][_0xe1b61e(0x20b)](),_0x51819d[_0xe1b61e(0x12d)][_0xe1b61e(0x20b)]())&&(_0x1cb291[_0xe1b61e(0x270)]=_0x2338a4[_0xe1b61e(0x3aa)](_0x52288c,_0x3dd160[_0xe1b61e(0x12d)])[_0xe1b61e(0x2c8)](_0xe1b61e(0x37c))[_0xe1b61e(0x265)]());if(_0x2338a4[_0xe1b61e(0x2a2)](_0x11c596[_0xe1b61e(0x270)][_0xe1b61e(0x20b)](),_0x1e75da['getTime']())||_0x2338a4[_0xe1b61e(0x1fb)](_0x1f7abb[_0xe1b61e(0x270)][_0xe1b61e(0x20b)](),_0x187dc9[_0xe1b61e(0x20b)]()))return _0x2338a4[_0xe1b61e(0x308)](_0x488f7b,null,{'value':0x0,'value_nt':0x0});}},_0x374364=>{const _0x475e2d=_0x17bdcb;if(_0x2338a4[_0x475e2d(0x129)](_0x475e2d(0x146),_0x2338a4[_0x475e2d(0x3ae)]))_0x59dbdf[_0x475e2d(0x1c2)]=[{'ma_kh_no':_0x2b6a07[_0x475e2d(0x23b)]},{'ma_kh_co':_0x2e40df[_0x475e2d(0x23b)]}];else{if(_0x374364)return _0x2338a4[_0x475e2d(0x37a)](_0x5cdc0e,_0x374364);_0x5b2328();}}):(_0x5ef4b1['den_ngay_kt']=new _0x53166b(_0x4991a7[_0x17bdcb(0x12d)]),_0x5c9635['den_ngay_kt'][_0x17bdcb(0x1e5)](_0x3e777c[_0x17bdcb(0x20f)](_0x27ad40[_0x17bdcb(0x359)][_0x17bdcb(0x175)](),0x1)));});}catch(_0x1bc912){_0x1b8a8d['scFqI'](_0x54d48a,_0x1bc912);}async['map'](_0x26c187,(_0x2dcaf8,_0x366218)=>{const _0x3dae84=_0x49ddf6,_0x506100={'trWHi':_0x3e777c[_0x3dae84(0x225)],'qYvDI':function(_0x7f9e19,_0x3a4f7b,_0x2ecaf4){return _0x7f9e19(_0x3a4f7b,_0x2ecaf4);},'JFyAJ':function(_0x1c878f,_0x535f3e){const _0x38aa84=_0x3dae84;return _0x3e777c[_0x38aa84(0x26d)](_0x1c878f,_0x535f3e);},'Myxre':_0x3e777c[_0x3dae84(0x3a6)],'iGbUR':function(_0x489bb0,_0x25021e){const _0x3c4b8b=_0x3dae84;return _0x3e777c[_0x3c4b8b(0x2bc)](_0x489bb0,_0x25021e);},'kIiBU':_0x3e777c[_0x3dae84(0x306)],'tfbqq':_0x3e777c['NfuMY'],'KFZAv':function(_0x27e8b5){return _0x27e8b5();}};if(_0x3e777c[_0x3dae84(0x1e7)](_0x3dae84(0x37b),_0x3e777c['KyWsD']))async[_0x3dae84(0x31f)](_0x2dcaf8[_0x3dae84(0x214)]||[],(_0xe84e97,_0x59659f)=>{const _0x2abdb6=_0x3dae84;if(_0x3e777c[_0x2abdb6(0x11f)]('VVoqS',_0x3e777c['fAsQo']))_0x57ce91[_0x2abdb6(0x2dc)]=_0x4c13f0;else{const _0x59bb6c={..._0x35316c};_0xe84e97[_0x2abdb6(0x1cd)]=='1'&&(_0x59bb6c[_0x2abdb6(0x22b)]=_0x59bb6c['tu_ngay_kt'],_0x59bb6c[_0x2abdb6(0x12d)]=_0x59bb6c[_0x2abdb6(0x359)]);const _0x1550ba=_0xe84e97[_0x2abdb6(0x302)],_0x299389=_0x1550ba+_0x2abdb6(0x3a0),_0x53bb5c=_0x1550ba+_0x2abdb6(0x3b5),_0x571d03=_0x2abdb6(0x2a7)+_0x1550ba+_0x2abdb6(0x3a0),_0xa88e83=_0x2abdb6(0x2a7)+_0x1550ba+_0x2abdb6(0x3b5);_0x3e777c[_0x2abdb6(0x12e)](calc4cell,_0x501a25,_0x2dcaf8,_0xe84e97,_0x59bb6c,(_0x4a02ce,_0x5135c7)=>{const _0x7aaeb4=_0x2abdb6,_0x2a6547={'DnPNV':_0x506100[_0x7aaeb4(0x134)],'AAutu':function(_0x410d6e,_0x37602a,_0x209f80){const _0x31f06b=_0x7aaeb4;return _0x506100[_0x31f06b(0x2bd)](_0x410d6e,_0x37602a,_0x209f80);},'efFRS':function(_0x552067,_0x4963c7){return _0x552067(_0x4963c7);}};if(_0x506100[_0x7aaeb4(0x13f)](_0x506100[_0x7aaeb4(0x255)],_0x506100[_0x7aaeb4(0x255)])){const _0x37e822={'ARQKB':function(_0x3dd29a,_0x4283cc){return _0x2a6547['efFRS'](_0x3dd29a,_0x4283cc);}};_0x3ef658[_0x7aaeb4(0x311)](_0x535707)[_0x7aaeb4(0x3a3)]()[_0x7aaeb4(0x295)](_0x19bcc1=>{const _0x31b539=_0x7aaeb4;_0x1d2566[_0x31b539(0x252)]=_0x19bcc1[_0x31b539(0x2ea)](_0x2a6547[_0x31b539(0x1c1)]),_0x364f5c['value_nt']=_0x19bcc1['csum'](_0x31b539(0x1b4)),_0x4e4e92[_0x31b539(0x214)]=_0x19bcc1,_0x2a6547[_0x31b539(0x14e)](_0x59ec1e,null,_0x21ffd7);})[_0x7aaeb4(0x143)](_0x264146=>{const _0x318467=_0x7aaeb4;_0x37e822[_0x318467(0x125)](_0x2b4e01,_0x264146);});}else{if(_0x4a02ce)return _0x506100[_0x7aaeb4(0x201)](_0x59659f,_0x4a02ce);_0x5ba505[_0x1550ba]={'field':_0x299389,'header':_0xe84e97[_0x7aaeb4(0x28d)],'stt':_0xe84e97[_0x7aaeb4(0x385)],'title':_0xe84e97['title'],'data_type':_0xe84e97[_0x7aaeb4(0x2d2)],'ma_so':_0xe84e97['ma_so'],'col_value':_0x299389,'col_value_nt':_0x53bb5c,'col_cong_thuc':_0x571d03,'col_cong_thuc_nt':_0xa88e83},_0x2dcaf8[_0x299389]=_0x5135c7['value_string']||_0x5135c7[_0x7aaeb4(0x252)],_0x2dcaf8[_0x53bb5c]=_0x5135c7[_0x7aaeb4(0x2dc)]||_0x5135c7[_0x7aaeb4(0x192)],_0x2dcaf8[_0x571d03]=_0x5135c7[_0x7aaeb4(0x1c8)],_0x2dcaf8[_0xa88e83]=_0x5135c7[_0x7aaeb4(0x1c8)];let _0x48dfbd=_0x7aaeb4(0x18d)+_0x2dcaf8[_0x7aaeb4(0x302)]+'\x22][\x22'+_0x1550ba+'\x22]';_0x2dcaf8[_0x1550ba]=_0x84e517[_0x48dfbd]={'type':_0x5135c7[_0x7aaeb4(0x2dc)]===_0x2dcaf8[_0x299389]?_0x506100[_0x7aaeb4(0x2b1)]:_0x506100[_0x7aaeb4(0x318)],'value':_0x2dcaf8[_0x299389],'cong_thuc':_0x2dcaf8[_0x571d03]},_0x506100[_0x7aaeb4(0x12b)](_0x59659f);}});}},(_0x52fc6c,_0x1f8c9d)=>{const _0x1691b8=_0x3dae84;delete _0x2dcaf8[_0x1691b8(0x214)],_0x3e777c[_0x1691b8(0x14b)](_0x366218,_0x52fc6c,_0x1f8c9d);});else return _0x3e777c[_0x3dae84(0x1ae)](_0x8428cf,_0x455e6f[_0x3dae84(0x2e4)]());},function(_0x535685){const _0x46f224=_0x49ddf6,_0x2b116d={'qepII':_0x1b8a8d['xwwCB'],'xJwKT':function(_0x56f3a5,_0x3bc160){const _0x3b0b44=_0x3114;return _0x1b8a8d[_0x3b0b44(0x266)](_0x56f3a5,_0x3bc160);},'IGwXg':_0x1b8a8d['rHovU'],'XvqiM':function(_0x5da02a,_0x1fc2f7){const _0x364cf2=_0x3114;return _0x1b8a8d[_0x364cf2(0x1b7)](_0x5da02a,_0x1fc2f7);},'icAkO':_0x1b8a8d[_0x46f224(0x398)],'ybdMh':function(_0x16aa06,_0x13213e){return _0x16aa06+_0x13213e;},'gMvkw':_0x46f224(0x2be),'emMGw':function(_0x4ad47,_0x1825bc,_0x164a7a){return _0x4ad47(_0x1825bc,_0x164a7a);},'Gdffw':function(_0x384e59,_0xbd882f){const _0x453b1b=_0x46f224;return _0x1b8a8d[_0x453b1b(0x288)](_0x384e59,_0xbd882f);},'qemgb':function(_0x383c1a,_0x1a78a4){const _0x5805f5=_0x46f224;return _0x1b8a8d[_0x5805f5(0x22e)](_0x383c1a,_0x1a78a4);},'pbvDo':function(_0x308756,_0x4c4dd5,_0x4a28b4){const _0x437f5b=_0x46f224;return _0x1b8a8d[_0x437f5b(0x346)](_0x308756,_0x4c4dd5,_0x4a28b4);},'FnXMM':function(_0xc39849,_0x5abc79,_0x5cd0a8){return _0xc39849(_0x5abc79,_0x5cd0a8);},'Tbcjt':function(_0x979682,_0x321a5b){return _0x1b8a8d['oVlBJ'](_0x979682,_0x321a5b);},'dhoRe':function(_0x5c3a87,_0x266110,_0x252c0e){const _0x54f507=_0x46f224;return _0x1b8a8d[_0x54f507(0x346)](_0x5c3a87,_0x266110,_0x252c0e);},'JUqCl':_0x46f224(0x17a),'FQaia':_0x46f224(0x352),'ZkpJa':_0x1b8a8d[_0x46f224(0x2a9)],'tHXAb':function(_0x16d41a,_0x52f87a,_0x441674){const _0x1d8c7b=_0x46f224;return _0x1b8a8d[_0x1d8c7b(0x390)](_0x16d41a,_0x52f87a,_0x441674);},'JqWXz':'gVFuP','lYCrO':_0x46f224(0x239),'nKPZm':function(_0x532203,_0x135787){const _0x189135=_0x46f224;return _0x1b8a8d[_0x189135(0x15f)](_0x532203,_0x135787);},'xVvdL':_0x1b8a8d[_0x46f224(0x25d)],'nmioP':_0x1b8a8d['KTyfc'],'hsIBy':_0x46f224(0x28f),'GNjsW':_0x1b8a8d[_0x46f224(0x2c6)],'OUbTG':function(_0x3b5c6e,_0x5d581f){const _0x499d73=_0x46f224;return _0x1b8a8d[_0x499d73(0x2ab)](_0x3b5c6e,_0x5d581f);},'iRZJL':_0x1b8a8d[_0x46f224(0x317)],'mKXar':function(_0x41807b,_0x49c4bc){const _0x25fb0d=_0x46f224;return _0x1b8a8d[_0x25fb0d(0x2a4)](_0x41807b,_0x49c4bc);},'Cwxsf':function(_0x1d75e5,_0x5b5d27){return _0x1d75e5===_0x5b5d27;},'ejibD':'cDWJp','pKgIo':_0x1b8a8d[_0x46f224(0x1f0)],'teZMY':function(_0x2a3c38,_0x1d327c){const _0x16dbc3=_0x46f224;return _0x1b8a8d[_0x16dbc3(0x288)](_0x2a3c38,_0x1d327c);},'dkpAT':function(_0xa5e207,_0x5a3223,_0x101923){return _0xa5e207(_0x5a3223,_0x101923);}};if(_0x535685)return _0x1b8a8d[_0x46f224(0x167)](_0x54d48a,_0x535685);const _0x1b236d=Object['keys'](_0x84e517),_0x154672=Object[_0x46f224(0x34d)](_0x84e517);let _0x376d3a=_0x154672[_0x46f224(0x275)](_0x12216d=>_0x12216d[_0x46f224(0x1c8)]);async[_0x46f224(0x3a5)](function _0x5aa5f9(_0x205d75){const _0x2839f2=_0x46f224;if(_0x3e777c[_0x2839f2(0x1e7)](_0x3e777c[_0x2839f2(0x19a)],_0x3e777c['ZyulK'])){let _0x19041b=_0x376d3a[_0x2839f2(0x256)];_0x3e777c[_0x2839f2(0x21e)](_0x205d75,null,_0x19041b>0x0);}else _0x1b84ef=_0xc10eb5;},function _0xc344e5(_0x5c2594){const _0x106a8c=_0x46f224,_0x9b6129={'xYhfC':function(_0x39f427,_0x326e63){const _0x20cd6c=_0x3114;return _0x3e777c[_0x20cd6c(0x1b8)](_0x39f427,_0x326e63);},'ZaiTm':function(_0x3d10c4,_0x4b652b){return _0x3d10c4<_0x4b652b;},'tbGSb':function(_0x58c8ff,_0x2dfa13){const _0x5c6e34=_0x3114;return _0x3e777c[_0x5c6e34(0x11f)](_0x58c8ff,_0x2dfa13);},'mvdZe':function(_0x5c1365,_0x10191e,_0x1f2d03){return _0x5c1365(_0x10191e,_0x1f2d03);},'JhdzA':function(_0x470b24,_0x43119b){return _0x3e777c['QsRLK'](_0x470b24,_0x43119b);}};_0x3e777c[_0x106a8c(0x24b)](_0x106a8c(0x293),_0x3e777c[_0x106a8c(0x39c)])?_0x48700e[_0x106a8c(0x270)]=_0x9b6129[_0x106a8c(0x24f)](_0xed99a8,_0x39ead9[_0x106a8c(0x22b)])[_0x106a8c(0x24e)]('date')[_0x106a8c(0x265)]():_0x3e777c[_0x106a8c(0x2ec)](setImmediate,()=>{const _0x24eaf6=_0x106a8c,_0x5108f7={'SvSPr':function(_0x580704,_0x594b11){return _0x9b6129['ZaiTm'](_0x580704,_0x594b11);},'uwiVh':function(_0x20515f,_0x5ef000,_0x4c038e){return _0x20515f(_0x5ef000,_0x4c038e);},'ciUmS':function(_0x35f3f4,_0x40fbb6){return _0x35f3f4+_0x40fbb6;},'mCFyk':function(_0x487947,_0x1a220f){return _0x487947!==_0x1a220f;},'DUqwp':function(_0x30b571,_0x54fef3){const _0x2c21cb=_0x3114;return _0x9b6129[_0x2c21cb(0x19e)](_0x30b571,_0x54fef3);},'RMTna':function(_0x9482f,_0x4e63e7,_0x320213){const _0x26d3f4=_0x3114;return _0x9b6129[_0x26d3f4(0x1af)](_0x9482f,_0x4e63e7,_0x320213);}};try{_0x376d3a[_0x24eaf6(0x27d)](_0x1ce24b=>{const _0xff31f=_0x24eaf6,_0x2d7b6a={'OpJQC':function(_0x5463d6,_0x1dae90){const _0x3323f7=_0x3114;return _0x5108f7[_0x3323f7(0x23a)](_0x5463d6,_0x1dae90);},'ykfah':function(_0x517f81,_0x10f571,_0x2d3f55){const _0x533aee=_0x3114;return _0x5108f7[_0x533aee(0x3a7)](_0x517f81,_0x10f571,_0x2d3f55);},'faFQg':function(_0x447f2d,_0x47ece5){const _0x7a65a=_0x3114;return _0x5108f7[_0x7a65a(0x27f)](_0x447f2d,_0x47ece5);},'RegGb':_0xff31f(0x2be),'UsbQf':function(_0x5c5282,_0xc57526){return _0x5108f7['mCFyk'](_0x5c5282,_0xc57526);},'auUQL':'oFBcb','Czuhl':function(_0x4849df,_0x5ce7e7){return _0x4849df<_0x5ce7e7;},'nftIS':function(_0x39c3d0,_0x297b8b){return _0x5108f7['DUqwp'](_0x39c3d0,_0x297b8b);},'LcCUy':_0xff31f(0x165),'WBPwV':function(_0x202d1d,_0x2d0160,_0x5b6ad9){const _0x3f1dc3=_0xff31f;return _0x5108f7[_0x3f1dc3(0x2f7)](_0x202d1d,_0x2d0160,_0x5b6ad9);}};let _0xf08147=_0x1ce24b[_0xff31f(0x1c8)]||'';_0x1b236d[_0xff31f(0x275)](_0xb7b7b=>_0xf08147[_0xff31f(0x280)](_0xb7b7b)>=0x0)[_0xff31f(0x27d)](_0x4b90b3=>{const _0x442985=_0xff31f,_0x5ef684={'PAeov':function(_0x5821a7,_0x3207ca){return _0x2d7b6a['faFQg'](_0x5821a7,_0x3207ca);},'vSQdZ':_0x2d7b6a['RegGb']};if(_0x2d7b6a[_0x442985(0x243)](_0x2d7b6a[_0x442985(0x18a)],_0x2d7b6a[_0x442985(0x18a)])){_0x9c5205=_0x34ef47['split'](_0x2b11d0)[_0x442985(0x2ce)]('('+(_0x1933f7[_0x293866][_0x442985(0x1c8)]||_0x15b887[_0x238f3c][_0x442985(0x252)])+')');if(_0x2d7b6a[_0x442985(0x199)](_0x5df6cb[_0x442985(0x280)]('['),0x0)){try{_0x230e7a['value']=_0x2d7b6a[_0x442985(0x1a7)](_0x158a69,_0x44159f,{'report':_0x58b980});}catch(_0x50d637){_0x578c82[_0x442985(0x290)](_0x50d637,_0x51ef4b),_0x402d9e[_0x442985(0x252)]=0x0;}_0xd6f79c['cong_thuc']='';}}else{_0xf08147=_0xf08147['split'](_0x4b90b3)[_0x442985(0x2ce)]('('+(_0x84e517[_0x4b90b3][_0x442985(0x1c8)]||_0x84e517[_0x4b90b3][_0x442985(0x252)])+')');if(_0x2d7b6a[_0x442985(0x2df)](_0xf08147[_0x442985(0x280)]('['),0x0)){try{_0x2d7b6a[_0x442985(0x2e0)]('uAsqr',_0x2d7b6a[_0x442985(0x137)])?_0x14fff7=_0x5ef684[_0x442985(0x19b)](_0x5ef684[_0x442985(0x331)],_0x52434f):_0x1ce24b[_0x442985(0x252)]=_0x2d7b6a[_0x442985(0x1b5)](exec,_0xf08147,{'report':_0x26c187});}catch(_0x33b08c){console[_0x442985(0x290)](_0x33b08c,_0xf08147),_0x1ce24b['value']=0x0;}_0x1ce24b[_0x442985(0x1c8)]='';}}});});let _0x4fb64d=_[_0x24eaf6(0x2da)](_0x376d3a),_0xf45d19=_0x154672[_0x24eaf6(0x275)](_0x208ed7=>_0x208ed7[_0x24eaf6(0x1c8)]);_0xf45d19[_0x24eaf6(0x256)]>0x0&&_['isEqual'](_0xf45d19,_0x4fb64d)?_0x376d3a=[]:_0x376d3a=_0xf45d19,_0x5c2594();}catch(_0xa6fff3){_0x9b6129[_0x24eaf6(0x285)](_0x5c2594,_0xa6fff3);}});},async _0x57c509=>{const _0x166e39=_0x46f224,_0x5165d4={'VuWsY':function(_0x131568,_0x3efba3){const _0x25fa88=_0x3114;return _0x2b116d[_0x25fa88(0x166)](_0x131568,_0x3efba3);},'YqfZy':function(_0x109d22,_0x1b46e6){return _0x109d22<_0x1b46e6;},'okMMc':function(_0x219dbd,_0x254558,_0x1a0536){const _0x19f181=_0x3114;return _0x2b116d[_0x19f181(0x305)](_0x219dbd,_0x254558,_0x1a0536);},'nDXQi':_0x2b116d[_0x166e39(0x382)],'StvBu':_0x2b116d[_0x166e39(0x261)],'HisUr':function(_0x5bfbd0,_0x128bae){return _0x2b116d['Gdffw'](_0x5bfbd0,_0x128bae);},'AAHGN':_0x2b116d[_0x166e39(0x287)],'XjEiI':function(_0x1c91a6,_0xcfbf2b,_0x42c229){return _0x2b116d['tHXAb'](_0x1c91a6,_0xcfbf2b,_0x42c229);},'IVKXD':_0x2b116d[_0x166e39(0x194)]};if(_0x2b116d[_0x166e39(0x303)]===_0x166e39(0x239)){if(_0x57c509)return _0x2b116d[_0x166e39(0x185)](_0x54d48a,_0x57c509);let _0x40f86b={};_0x26c187[_0x166e39(0x27d)](_0x3e7250=>{const _0x27c41d=_0x166e39,_0x23e7dd={'VRnhX':function(_0x45ddc1,_0x5573c3){return _0x45ddc1===_0x5573c3;},'jaURz':'UHqTH','AEmzD':_0x2b116d[_0x27c41d(0x133)]};if(_0x2b116d[_0x27c41d(0x1ff)](_0x2b116d[_0x27c41d(0x309)],'ZZWuw')){_0x183c4d[_0x27c41d(0x270)][_0x27c41d(0x39a)](_0x28c395[_0x27c41d(0x270)]);if(_0x5165d4[_0x27c41d(0x155)](_0x3c56c2[_0x27c41d(0x270)][_0x27c41d(0x20b)](),_0x5316dd[_0x27c41d(0x12d)][_0x27c41d(0x20b)]())||_0x5165d4['YqfZy'](_0xb73c31[_0x27c41d(0x270)][_0x27c41d(0x20b)](),_0x16a6e5[_0x27c41d(0x22b)][_0x27c41d(0x20b)]()))return _0x5165d4[_0x27c41d(0x1a2)](_0x2276d4,null,{'value':0x0,'value_nt':0x0});}else(_0x3e7250[_0x27c41d(0x214)]||[])['forEach'](_0x39523e=>{const _0x313dfa=_0x27c41d;_0x23e7dd[_0x313dfa(0x30e)](_0x23e7dd[_0x313dfa(0x3ab)],_0x23e7dd['AEmzD'])?_0xb60617['ngay']=new _0x12e05e(_0x5d77c4[_0x313dfa(0x22b)]):_0x3e7250[_0x39523e[_0x313dfa(0x302)]]=(_0x3e7250[_0x39523e['ma_so']]||{})['value'];}),_0x40f86b[_0x3e7250[_0x27c41d(0x302)]]=_0x3e7250;}),_0x154672['forEach'](_0x33e213=>{const _0x417f25=_0x166e39;if(_0x33e213[_0x417f25(0x1c8)]){try{_0x33e213[_0x417f25(0x252)]=_0x5165d4[_0x417f25(0x1a2)](exec,_0x33e213[_0x417f25(0x1c8)],{'report':_0x26c187,'c':_0x40f86b});}catch(_0x454b18){if(_0x5165d4[_0x417f25(0x32d)]===_0x417f25(0x2ee))console['error'](_0x454b18,_0x33e213[_0x417f25(0x1c8)]),_0x33e213[_0x417f25(0x252)]=0x0;else{const _0x2d4f36=_0x5165d4[_0x417f25(0x387)]['split']('|');let _0xe91883=0x0;while(!![]){switch(_0x2d4f36[_0xe91883++]){case'0':_0x5165d4[_0x417f25(0x1cf)](_0x301a80[_0x417f25(0x192)],0x0)&&_0xa8fea4[_0x417f25(0x1fc)]&&(_0x1dfc17[_0x417f25(0x192)]=0x0);continue;case'1':_0x46b731[_0x417f25(0x252)]=_0xb3b9b6[_0x417f25(0x2ea)](_0x5165d4[_0x417f25(0x38a)]);continue;case'2':if(_0xa1e2ad)return _0x5165d4[_0x417f25(0x274)](_0x2710fb,_0x345968);continue;case'3':_0x5165d4['YqfZy'](_0x82c7e2[_0x417f25(0x252)],0x0)&&_0x4421d0['khong_am']&&(_0x556f2f[_0x417f25(0x252)]=0x0);continue;case'4':_0x582a7e[_0x417f25(0x192)]=_0x3d7586[_0x417f25(0x2ea)](_0x5165d4['AAHGN']);continue;case'5':_0x5165d4[_0x417f25(0x30a)](_0x66f87c,null,_0x215679);continue;}break;}}}_0x33e213[_0x417f25(0x1c8)]='';}});if(_0xa74e76[_0x166e39(0x33f)]){if(_0x2b116d[_0x166e39(0x1fe)](_0xa74e76[_0x166e39(0x33f)][_0x166e39(0x280)](_0x166e39(0x380)),0x0))return _0x54d48a(_0x2b116d['xVvdL']);let _0xfd3a00=_0x166e39(0x2d9)+_0xa74e76[_0x166e39(0x33f)]+_0x166e39(0x159);try{if(_0x2b116d[_0x166e39(0x30d)]===_0x2b116d['nmioP']){let _0x2b333b=await evalute(_0xfd3a00,{'data':_0x26c187,'moment':moment,'numeral':numeral,'condition':_0x501a25[_0x166e39(0x247)]})();if(_0x2b333b){if(_0x2b116d[_0x166e39(0x343)]===_0x2b116d['GNjsW'])try{_0x2b116d[_0x166e39(0x26c)](_0x473e6a['dieu_kien_khac'][_0x166e39(0x280)](_0x2b116d[_0x166e39(0x1e1)]),0x0)&&(_0x40fff7['dieu_kien_khac']=_0x2b116d['ybdMh'](_0x2b116d[_0x166e39(0x221)],_0xa33150[_0x166e39(0x1d6)]));let _0x47a9f5=_0x2b116d[_0x166e39(0x2e1)](_0xa4183,_0x4e0eab[_0x166e39(0x1d6)],{'condition':_0x20f57f,'moment':_0x1ce6c6,'row':_0x44a96c,'cell':_0x498fc0});_0x23fa17={..._0x25446a,..._0x47a9f5};}catch(_0x3a2f7e){return _0x2b116d[_0x166e39(0x185)](_0x32f531,_0x3a2f7e[_0x166e39(0x2e4)]());}else{if(_0x2b333b[_0x166e39(0x290)]){if(_0x2b116d[_0x166e39(0x16d)](_0x2b116d[_0x166e39(0x31e)],_0x166e39(0x1fd)))_0x27906c[_0x166e39(0x366)](_0x3c28d2);else return console['error'](_0x2b333b[_0x166e39(0x290)],_0xfd3a00),_0x2b116d[_0x166e39(0x322)](_0x54d48a,_0x2b333b[_0x166e39(0x290)]['message']||_0x2b333b[_0x166e39(0x290)]);}_0x26c187=_0x2b333b;}}}else try{_0x589e18['dieu_kien_khac'][_0x166e39(0x280)](_0x2b116d[_0x166e39(0x1e1)])<0x0&&(_0x543952[_0x166e39(0x1d6)]=_0x2b116d[_0x166e39(0x263)](_0x2b116d[_0x166e39(0x221)],_0x10f74d['dieu_kien_khac']));let _0x197e71=_0x2b116d['pbvDo'](_0x129512,_0x26beb2[_0x166e39(0x1d6)],{'condition':_0x496689,'moment':_0x16cc25,'row':_0x31fb23,'cell':_0x448bd0});_0x19e3a7={..._0x384c8f,..._0x197e71};}catch(_0x3e97b4){return _0x4f9492(_0x3e97b4[_0x166e39(0x2e4)]());}}catch(_0x446cc2){return _0x2b116d['Cwxsf'](_0x2b116d['ejibD'],_0x2b116d['pKgIo'])?_0x2b116d['Gdffw'](_0x459028,_0x38d563['toString']()):(console[_0x166e39(0x290)](_0x446cc2,_0xfd3a00),_0x2b116d[_0x166e39(0x36b)](_0x54d48a,_0x446cc2[_0x166e39(0x21c)]||_0x446cc2));}}_0x2b116d[_0x166e39(0x2d4)](_0x54d48a,null,{'data':_0x26c187['filter'](_0xefc727=>_0xefc727[_0x166e39(0x14c)]),'columns':Object['values'](_0x5ba505)[_0x166e39(0x2fb)]((_0x56b0af,_0x6aa196)=>_0x56b0af[_0x166e39(0x385)]-_0x6aa196[_0x166e39(0x385)])});}else return _0x2b116d[_0x166e39(0x2e8)](_0x57166b,null,{'value':0x0,'value_nt':0x0});});});}})[_0x34d719(0x143)](_0x5101ab=>{const _0x198488=_0x34d719;_0x1b8a8d[_0x198488(0x1a8)](_0x1b8a8d[_0x198488(0x369)],'CMmJZ')?_0x54b786[_0x198488(0x29f)]=_0x490d91[_0x198488(0x29f)]:_0x1b8a8d[_0x198488(0x167)](_0x54d48a,_0x1b8a8d[_0x198488(0x1b3)](_0x5101ab,_0x1b8a8d['SKvCj']));});});};
@@ -1,13 +1 @@
1
- const Account=global.getModel("account"),Customer=global.getModel("customer"),contract=global.getModel("contract"),dmphi=global.getModel("dmphi"),dmdt=global.getModel("dmdt"),dmnv=global.getModel("dmnv"),dmvt=global.getModel("dmvt"),dmbp=global.getModel("dmbp"),group=global.getModel("group"),Socai=global.getModel("socai"),Lenhsx=global.getModel("lenhsx"),underscore=require("underscore"),async=require("async"),controller=require("../../controllers/controllerRPT"),{getCodeChildren}=require("../../libs/utils"),
2
- moment=require("moment");
3
- module.exports=function($router$$){new controller($router$$,"bkct",async function($req$$,$callback$$){const $query$$={};$query$$.id_app=$req$$.query.id_app;if($req$$.query.q){var $no_phis_phis$jscomp$1_phis$$=JSON.parse($req$$.query.q);underscore.extend($query$$,$no_phis_phis$jscomp$1_phis$$)}else{$query$$.$and=[];$req$$.query.tu_ngay&&$query$$.$and.push({ngay_ct:{$gte:$req$$.query.tu_ngay}});$req$$.query.den_ngay&&$query$$.$and.push({ngay_ct:{$lte:$req$$.query.den_ngay}});$req$$.query.dien_giai&&
4
- ($query$$.dien_giai={$regex:$req$$.query.dien_giai,$options:"i"});$req$$.query.so_ct&&($query$$.so_ct={$regex:$req$$.query.so_ct,$options:"i"});$req$$.query.ma_kh&&($query$$.$and.push({$or:[{ma_kh_no:$req$$.query.ma_kh}]}),$query$$.$and.push({$or:[{ma_kh_co:$req$$.query.ma_kh}]}));$req$$.query.ma_hd&&($query$$.ma_hd=$req$$.query.ma_hd);$req$$.query.ma_dt&&($query$$.ma_dt=$req$$.query.ma_dt);$req$$.query.ma_phi&&($no_phis_phis$jscomp$1_phis$$=await getCodeChildren(dmphi,$req$$.query.id_app,$req$$.query.ma_phi,
5
- "ma_phi","ma_phi_me"),$query$$.ma_phi={$in:$no_phis_phis$jscomp$1_phis$$});$req$$.query.ma_dt&&($no_phis_phis$jscomp$1_phis$$=await getCodeChildren(dmdt,$req$$.query.id_app,$req$$.query.ma_dt,"ma_dt","ma_dt_me"),$query$$.ma_dt={$in:$no_phis_phis$jscomp$1_phis$$});$req$$.query.ma_bp&&($no_phis_phis$jscomp$1_phis$$=await getCodeChildren(dmbp,$req$$.query.id_app,$req$$.query.ma_bp,"ma_bp","ma_bp_me"),$query$$.ma_bp={$in:$no_phis_phis$jscomp$1_phis$$});$req$$.query.ma_nv&&($query$$.ma_nv=$req$$.query.ma_nv);
6
- $req$$.query.ma_dvcs&&mongoose.Types.ObjectId.isValid($req$$.query.ma_dvcs)&&($query$$.ma_dvcs=$req$$.query.ma_dvcs);$req$$.query.id_lenhsx&&mongoose.Types.ObjectId.isValid($req$$.query.id_lenhsx)&&($query$$.id_lenhsx=$req$$.query.id_lenhsx);$req$$.query.ma_kho&&($query$$.ma_kho=$req$$.query.ma_kho);if($req$$.query.tk){$no_phis_phis$jscomp$1_phis$$={tk_no:{$regex:"^"+$req$$.query.tk,$options:"i"}};let $co$$={tk_co:{$regex:"^"+$req$$.query.tk,$options:"i"}};$req$$.query.tk_du&&($no_phis_phis$jscomp$1_phis$$.tk_co=
7
- {$regex:"^"+$req$$.query.tk_du,$options:"i"},$co$$.tk_no={$regex:"^"+$req$$.query.tk_du,$options:"i"});$query$$.$and||($query$$.$and=[]);$query$$.$and.push({$or:[$no_phis_phis$jscomp$1_phis$$,$co$$]})}$query$$.$and.length===0&&delete $query$$.$and}Socai.find($query$$).lean().then(function($rp$$){$rp$$.groupBy("id_app ma_dvcs id_ct ma_ct ma_gd ngay_ct so_ct ngay_hd so_hd tk_no tk_co ma_kh_no ma_kh_co ma_nt ty_gia dien_giai ma_bp id_lenhsx ma_phi ma_hd ma_dt ma_nv ma_sp ma_vt ma_cp".split(" "),["tien",
8
- "tien_nt"],($e$$,$rp$$)=>{$rp$$.forEach(function($r$$){$r$$.systotal=0});async.parallel([function($callback$$){$rp$$.joinModel2($req$$.query.id_app,Account,[{where:{tk_no:"tk"},fields:[{name:"ten_tk_no",value:"ten_tk"}]},{where:{tk_co:"tk"},fields:[{name:"ten_tk_co",value:"ten_tk"}]}],function(){$callback$$()})},function($callback$$){$rp$$.filter($r$$=>$r$$.ma_kh_no).joinModel2($req$$.query.id_app,Customer,[{where:{ma_kh_no:"ma_kh"},fields:[{name:"ten_kh_no",value:"ten_kh"},{name:"nh_kh_no",value:"nh_kh"}]}],
9
- function(){$callback$$()})},function($callback$$){$rp$$.filter($r$$=>$r$$.ma_kh_co).joinModel2($req$$.query.id_app,Customer,[{where:{ma_kh_co:"ma_kh"},fields:[{name:"ten_kh_co",value:"ten_kh"},{name:"nh_kh_co",value:"nh_kh"}]}],function(){$callback$$()})},function($callback$$){$rp$$.filter($r$$=>$r$$.ma_hd).joinModel2($req$$.query.id_app,contract,[{where:{ma_hd:"so_hd"},fields:[{name:"ten_hd",value:"ten_hd"}]}],function(){$callback$$()})},function($callback$$){$rp$$.filter($r$$=>$r$$.ma_dt).joinModel2($req$$.query.id_app,
10
- dmdt,[{where:"ma_dt",fields:["ten_dt"]}],function(){$callback$$()})},function($callback$$){$rp$$.filter($r$$=>$r$$.ma_phi).joinModel2($req$$.query.id_app,dmphi,[{where:"ma_phi",fields:["ten_phi"]}],function(){$callback$$()})},function($callback$$){$rp$$.filter($r$$=>$r$$.ma_nv).joinModel2($req$$.query.id_app,dmnv,[{where:"ma_nv",fields:["ten_nv"]}],function(){$callback$$()})},function($callback$$){$rp$$.filter($r$$=>$r$$.ma_vt).joinModel2($req$$.query.id_app,dmvt,[{where:"ma_vt",fields:["ten_vt"]}],
11
- function(){$callback$$()})},function($callback$$){$rp$$.filter($r$$=>$r$$.ma_sp).joinModel2($req$$.query.id_app,dmvt,[{where:{ma_sp:"ma_vt"},fields:[{ten_sp:"ten_vt"}]}],function(){$callback$$()})},function($callback$$){$rp$$.filter($r$$=>$r$$.id_lenhsx).joinModel2($req$$.query.id_app,Lenhsx,[{where:{id_lenhsx:"_id"},fields:[{so_lenhsx:"so_ct"}]}],function(){$callback$$()})},function($callback$$){async.map($rp$$.filter($r$$=>$r$$.ma_ct),($item$$,$cb$$)=>{global.getModel($item$$.ma_ct.toLowerCase()).findOne({_id:$item$$.id_ct},
12
- {_id:1}).then($rs$$=>{$item$$.id_ct_goc=$rs$$?$rs$$._id:void 0;$cb$$()}).catch(()=>{$cb$$()})},()=>{$callback$$()})}],function($error$$){if($req$$.query.co_ct_goc==0||$req$$.query.co_ct_goc=="false")$rp$$=$rp$$.filter($r$$=>!$r$$.id_ct_goc);if($req$$.query.co_ct_goc==1||$req$$.query.co_ct_goc=="true")$rp$$=$rp$$.filter($r$$=>$r$$.id_ct_goc);$rp$$.filter($r$$=>$r$$.nh_kh_no||$r$$.nh_kh_co).joinModel2($req$$.query.id_app,group,[{where:{nh_kh_no:"_id"},fields:[{name:"ten_nh_kh_no",value:"group_name"}]},
13
- {where:{nh_kh_co:"_id"},fields:[{name:"ten_nh_kh_co",value:"group_name"}]}],function(){$rp$$=underscore.sortBy($rp$$,function($r$$){return($r$$.ngay_ct?moment($r$$.ngay_ct).format("YYYYMMDD"):"0")+$r$$.ma_ct+$r$$.so_ct});const $rt$$={dien_giai:"T\u1ed5ng c\u1ed9ng",tien:$rp$$.csum("tien"),tien_nt:$rp$$.csum("tien_nt"),systotal:1,bold:!0};$rp$$.push($rt$$);$callback$$($error$$,$rp$$)})})})}).catch($error$$=>{$callback$$($error$$)})})};
1
+ function _0x12ba(_0x10562b,_0x14b805){const _0x1c6f34=_0x1c6f();return _0x12ba=function(_0x12ba84,_0x2baa87){_0x12ba84=_0x12ba84-0x156;let _0x5d26bb=_0x1c6f34[_0x12ba84];if(_0x12ba['gUaRiF']===undefined){var _0x55d384=function(_0x22320f){const _0x31fdc2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1e2b99='',_0x1abda0='';for(let _0x5879d6=0x0,_0x3a9c65,_0xd9c40c,_0x4d52ac=0x0;_0xd9c40c=_0x22320f['charAt'](_0x4d52ac++);~_0xd9c40c&&(_0x3a9c65=_0x5879d6%0x4?_0x3a9c65*0x40+_0xd9c40c:_0xd9c40c,_0x5879d6++%0x4)?_0x1e2b99+=String['fromCharCode'](0xff&_0x3a9c65>>(-0x2*_0x5879d6&0x6)):0x0){_0xd9c40c=_0x31fdc2['indexOf'](_0xd9c40c);}for(let _0x29c728=0x0,_0x32477=_0x1e2b99['length'];_0x29c728<_0x32477;_0x29c728++){_0x1abda0+='%'+('00'+_0x1e2b99['charCodeAt'](_0x29c728)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1abda0);};_0x12ba['FQQrGY']=_0x55d384,_0x10562b=arguments,_0x12ba['gUaRiF']=!![];}const _0x8f1a83=_0x1c6f34[0x0],_0x7d471=_0x12ba84+_0x8f1a83,_0x2c6b01=_0x10562b[_0x7d471];return!_0x2c6b01?(_0x5d26bb=_0x12ba['FQQrGY'](_0x5d26bb),_0x10562b[_0x7d471]=_0x5d26bb):_0x5d26bb=_0x2c6b01,_0x5d26bb;},_0x12ba(_0x10562b,_0x14b805);}function _0x1c6f(){const _0x516807=['yxf6Buu','BMHFA2G','u3HNrwy','u1bvB3O','weLrzNO','BwfFyNbFBwu','C2L2sMS','ChLTtLG','v0jfsK8','yuzkDem','rg12r1e','BwfFz2q','wNj5zgm','m1b6r3fHva','De1HEw8','shnWDuC','zg1WAgK','Cvb1Efe','mZCZmJzjyK9yq0i','C2rOBgm','BgvUz3rO','zgvUx25NyxK','BLLNC2y','EeXIyuK','vNLPvNm','BwfFA2HV','zM9YBwf0','zMPUB0u','Avfdzxa','vog7Lw5NigpHU5LUzW','A1vHvfi','CgfYC2u','Evv4u0K','BwfFBNq','AxnwywXPza','mJyWmdiWohbbEhvJDa','Bw9Tzw50','EwzgtMu','A09Ws2S','EvfyEhG','AhHrCum','y29UDhjHy3q','CfbkCgu','BMHFA2HFBM8','CxvLCNK','BwfFy3q','vKjNruK','CxrwChu','DgTFzhu','z3jVDxa','t1D4EuC','DunUufO','vhjYuKW','uuHfAw8','AML5ugi','DwjHC2q','CujYBgW','CxfWy2u','BwfFzhq','zvHiBhq','EKXNy0q','DgvUx25Ox2TOx2nV','DgTFBM8','vwLZv2S','Avjtyxu','rhHlswC','v3Ldz0W','DKntveu','vw9VBLO','qNbUCgG','sgzOtK4','mJy2odG1mgzJvvjuuG','sNDUu0y','yxH0DNq','wgrAzwK','Cwj4DxK','swD0vLm','q2nyze8','rgnYEuq','AM5sDKS','BerYuhm','rgLusK8','Dg9mB3DLCKnHC2u','EM9oBhm','vvfywey','zMLSDgvY','vurkAgi','BMDHEv9Oza','DgvUx2r0','Dw5KzxjZy29Yzq','tgDQvge','DgvUx2TOx2nV','wvLzwu1nreq','s25Jsxa','jgfUza','zKLqDu8','yLjQs3O','C29FAgq','v1HLCxi','DgvUx252','odi5mdaWmfvNr0vSqG','BwfFAgq','AMDns1y','z2r0DMW','Be5Ltee','C29JywK','Dhj1zq','zxHWB3j0CW','zg1KDa','CK5KBKi','wuT5Ceu','BMHFA2HFy28','qxrVChC','y29Fy3rFz29J','sfvQt0y','DgTFy28','A2HKBhm','yM1ysgq','z3vlzum','vgXZz3q','ANH6Afi','BgvUAhn4','t3vet08','CKPTu1G','AeTOwxO','nLjUCg9wzW','t0LdAu4','wvbrBuW','zxH0zw5K','CwLkA2C','CuDcsMC','ugnnywC','A2X5s1i','D0fOBxK','t1bAwxu','yNP1DeO','AwrFyxbW','BwfW','zMLUza','y2f0y2G','qMjREK8','BwfFCgHPx21L','uen3s3a','z2v0tw9KzwW','tfbzruu','q2fxvK0','Cfflsg8','DMHuvKm','zxnyAgC','Ew1otvq','AwrFBgvUAhn4','zNnUt1y','BwfFDNq','u3zWq1K','q2njyuq','ywvjq1G','vhLWzxm','s1HMBMu','D0nKyLe','wgXdqxK','rgvwwu0','C3LZDg90ywW','yxn5BMm','vK5vrwS','ChfiwKi','y3n1Bq','BMDHEv9JDa','DgHLBG','vfrXqwC','CgfYywXSzwW','s1LPr0G','EeXKuwq','zgv3C0W','rvfnB20','x2LK','A1HXu0q','zgLLBL9NAwfP','z3jVDxbcEq','ywLJtMS','DgLLBL9UDa','A2v4ueW','qKXbrvO','BKrPCKS','DwPWuMO','DgvUx2TO','CurxCee','CxvXv28','DgvUx3bOAq','tMzMCfq','vvvctxK','ruvUteC','mtm1otCWmfDiuxPhBa','v3nLugO','DgvUx3z0','t2jQzwn0swq','Chf0C3O','AuPmq3C','BwfFCgHP','vhv4DLO','t2v4rLO','B2vzD2q','txHRA00','ue5dEKW','D2fNBfe','nwnrzvHLDq','tuzKAhy','nJa3nJaZDe54rhbH','A1ffAg0','t0DnsgK','C2vjveG','AM9PBK1VzgvSmG','BwfFA2G','BwLcuLC','rKHozKm','y3vZDg9Tzxi','quTsy2i','DgvUx25Ox2TOx25V','CwPLr20','BwfFC3a','zvHPDe4','EwXmt3e','BwfFBNy','DgvUx3rRx25V','AwrFy3rFz29J','Au9Hzge','CgD1sue','ALrruuy','DgvUx3rRx2nV','qLDrqNu','vhPyy1e','rKLwqNi','BwfFA2HFBM8','ChvZAa','rfzHz3u','AwrFy3q','tffzwfa','BwfFA2HFy28','C29Fy3q','BgvHBG','BxDbq0O','zw1lDeW','ALjcrwq','ywTwwLK','zg12Da','rhLir2q','BLjVwhu','ywnJB3vUDa','zNngD0S','vKz4vKC','t2PytLu','EuzJu1i','DgLLBG','DgvUx3rR','BeHcD0e','zM9YrwfJAa','DwLhAMW','tg9mENG','qwDOD28','ENzevxa','AeLAEei','EMHfqLa','BuPxrfi','BwfFzhzJCW','vuDMCNe','yvfvEhK','BwfFyNa','Bursz04','tfnevxa','mtu4mJaYoe5nA2XjqG','DhvFBMDHEq','yMTJDa','lI4VlI4VBgLICY91DgLSCW'];_0x1c6f=function(){return _0x516807;};return _0x1c6f();}const _0x492fa4=_0x12ba;(function(_0x4a54c6,_0x8b9a68){const _0x3acc0c=_0x12ba,_0x1c1c67=_0x4a54c6();while(!![]){try{const _0x30972a=-parseInt(_0x3acc0c(0x164))/0x1+parseInt(_0x3acc0c(0x1b8))/0x2*(-parseInt(_0x3acc0c(0x1b3))/0x3)+parseInt(_0x3acc0c(0x265))/0x4*(parseInt(_0x3acc0c(0x162))/0x5)+parseInt(_0x3acc0c(0x223))/0x6*(-parseInt(_0x3acc0c(0x1a2))/0x7)+parseInt(_0x3acc0c(0x20a))/0x8+parseInt(_0x3acc0c(0x1c9))/0x9+-parseInt(_0x3acc0c(0x1ed))/0xa;if(_0x30972a===_0x8b9a68)break;else _0x1c1c67['push'](_0x1c1c67['shift']());}catch(_0x4ae033){_0x1c1c67['push'](_0x1c1c67['shift']());}}}(_0x1c6f,0x8548c));const Account=global[_0x492fa4(0x235)](_0x492fa4(0x18c)),Customer=global[_0x492fa4(0x235)](_0x492fa4(0x16c)),contract=global[_0x492fa4(0x235)](_0x492fa4(0x1cf)),dmphi=global[_0x492fa4(0x235)](_0x492fa4(0x1b6)),dmdt=global[_0x492fa4(0x235)](_0x492fa4(0x212)),dmnv=global[_0x492fa4(0x235)]('dmnv'),dmvt=global[_0x492fa4(0x235)](_0x492fa4(0x189)),dmbp=global['getModel']('dmbp'),group=global[_0x492fa4(0x235)](_0x492fa4(0x1d7)),Socai=global['getModel'](_0x492fa4(0x20f)),Lenhsx=global[_0x492fa4(0x235)](_0x492fa4(0x21f)),underscore=require(_0x492fa4(0x1ff)),async=require(_0x492fa4(0x248)),controller=require('../../controllers/controllerRPT'),{getCodeChildren}=require(_0x492fa4(0x1a5)),moment=require(_0x492fa4(0x1ca));module[_0x492fa4(0x211)]=function(_0x3ac363){const _0x346e8f=_0x492fa4,_0x3df044={'LQYXP':function(_0x4f8e27){return _0x4f8e27();},'IgtVS':_0x346e8f(0x1f3),'ubasd':_0x346e8f(0x1a7),'jxzhR':function(_0x52b759,_0x48f8dc){return _0x52b759!==_0x48f8dc;},'EQMom':_0x346e8f(0x157),'DVagu':_0x346e8f(0x15f),'Mntov':_0x346e8f(0x22e),'wtFla':_0x346e8f(0x1d3),'gFNQS':_0x346e8f(0x1b1),'jiyPb':_0x346e8f(0x1fd),'DyHGd':_0x346e8f(0x207),'UQXXF':_0x346e8f(0x1e4),'KncIp':'tk_co','lDrPs':_0x346e8f(0x182),'zvDUp':_0x346e8f(0x1c7),'ylLOq':'ty_gia','DiTJO':_0x346e8f(0x256),'KXfne':'ma_bp','fsFwK':_0x346e8f(0x15b),'qjeGm':_0x346e8f(0x20b),'pymNX':'ma_dt','qtVpu':'ma_sp','pqHZB':_0x346e8f(0x23e),'nRoXu':'ma_cp','YKypE':_0x346e8f(0x259),'OGMHi':_0x346e8f(0x205),'bzutJ':function(_0xfd76dc,_0x1c1305){return _0xfd76dc+_0x1c1305;},'fsnOV':function(_0x4a8afd,_0x550bd7){return _0x4a8afd(_0x550bd7);},'PECZv':_0x346e8f(0x174),'LnbST':'ten_tk','WwMvI':_0x346e8f(0x179),'Atopw':'HxWYW','UoonZ':_0x346e8f(0x263),'eXitN':_0x346e8f(0x1f4),'DxKIg':function(_0x1f7a32,_0x59f2c5){return _0x1f7a32===_0x59f2c5;},'qbxuy':_0x346e8f(0x183),'seITH':_0x346e8f(0x210),'TrrRL':_0x346e8f(0x254),'gdtvl':_0x346e8f(0x16e),'bQGYv':'group_name','tMayo':'xLdQd','miBRW':'meXdT','mwACJ':'CSTZi','esXhg':_0x346e8f(0x18e),'FIVBr':_0x346e8f(0x20e),'TzXcQ':'GTtHA','sguUU':_0x346e8f(0x20c),'vCSTE':'gvlQZ','yQXxx':function(_0x38b7c1,_0x5ab188,_0x39f5ce,_0x5cbf7c,_0x1a2d93,_0x4c4838){return _0x38b7c1(_0x5ab188,_0x39f5ce,_0x5cbf7c,_0x1a2d93,_0x4c4838);},'qiJkg':_0x346e8f(0x233),'JqaTg':function(_0x54334a,_0x41e1d8,_0x3bd10a,_0x402a56,_0x175ef5,_0x18774e){return _0x54334a(_0x41e1d8,_0x3bd10a,_0x402a56,_0x175ef5,_0x18774e);},'kXqSD':'ma_dt_me','wVjOK':function(_0x8f8f14,_0x50f1b6){return _0x8f8f14===_0x50f1b6;},'jdQwX':_0x346e8f(0x222),'SxgEf':_0x346e8f(0x1a0),'pqtsz':function(_0x31335d,_0x1eaaae,_0x1ee1b8,_0x26b84d,_0x1c19a8,_0x12b6d0){return _0x31335d(_0x1eaaae,_0x1ee1b8,_0x26b84d,_0x1c19a8,_0x12b6d0);},'VBAMi':_0x346e8f(0x1ab),'qGBJg':'dewsL','XIQfz':'BWQBu','lHBwA':function(_0x29e86d,_0x3b7e20){return _0x29e86d+_0x3b7e20;},'HfhNN':function(_0x2225ad,_0x303699){return _0x2225ad+_0x303699;},'iOada':function(_0x4d5220,_0x30ff98){return _0x4d5220===_0x30ff98;},'iRSau':_0x346e8f(0x1a9),'CNwIY':_0x346e8f(0x1a4)};new controller(_0x3ac363,_0x3df044['CNwIY'],async function(_0x3b0c17,_0xefbdd7){const _0x3d4a18=_0x346e8f,_0x13d30d={'NffpT':function(_0x278000,_0x414b7a){return _0x3df044['bzutJ'](_0x278000,_0x414b7a);},'OWxyG':function(_0x2555a8,_0x5411b6){const _0x366d18=_0x12ba;return _0x3df044[_0x366d18(0x23d)](_0x2555a8,_0x5411b6);},'wAhmy':function(_0x5f3945){return _0x5f3945();},'BbkzO':_0x3df044[_0x3d4a18(0x18d)],'aqzmE':_0x3d4a18(0x261),'Aghwo':_0x3df044['PECZv'],'ymNMT':_0x3df044['LnbST'],'hxQqC':_0x3df044['WwMvI'],'jRBEd':function(_0x27677c){const _0x1f5537=_0x3d4a18;return _0x3df044[_0x1f5537(0x181)](_0x27677c);},'HUjOF':_0x3d4a18(0x260),'OICiN':_0x3df044[_0x3d4a18(0x216)],'TTqAg':'ten_kh_no','PCwKp':'nh_kh_no','dsirX':_0x3df044['ubasd'],'kUaTR':_0x3df044[_0x3d4a18(0x1ea)],'CaAnG':'ten_hd','klyKR':_0x3d4a18(0x1e0),'zLgcD':function(_0x904cbb,_0x12d949){return _0x3df044['jxzhR'](_0x904cbb,_0x12d949);},'bRjKz':'qWUAk','XlCAy':_0x3d4a18(0x258),'LgjTa':_0x3df044[_0x3d4a18(0x171)],'AZsis':_0x3d4a18(0x23e),'mJWDR':_0x3df044[_0x3d4a18(0x253)],'HspuG':function(_0x12bf40,_0x2da2bb){return _0x3df044['DxKIg'](_0x12bf40,_0x2da2bb);},'QtTmu':_0x3df044[_0x3d4a18(0x1f1)],'kOpKk':function(_0x587632){const _0x5bb367=_0x3d4a18;return _0x3df044[_0x5bb367(0x181)](_0x587632);},'csbfD':_0x3d4a18(0x1ef),'pQKHo':_0x3df044['YKypE'],'gQDfH':function(_0x436325,_0x43b3df){return _0x436325==_0x43b3df;},'YwhEV':_0x3df044[_0x3d4a18(0x167)],'WyCgL':_0x3df044[_0x3d4a18(0x1da)],'OPZYu':_0x3df044[_0x3d4a18(0x20d)],'KYiGH':_0x3df044['bQGYv'],'JwnSF':_0x3df044[_0x3d4a18(0x1b4)]};if(_0x3df044[_0x3d4a18(0x21e)](_0x3df044[_0x3d4a18(0x16a)],_0x3df044[_0x3d4a18(0x16a)]))_0x503005=_0x21f560[_0x3d4a18(0x1fb)](_0x81457=>_0x81457[_0x3d4a18(0x175)]);else{const _0x4de558=_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x22e)],_0x3907cf={};_0x3907cf['id_app']=_0x4de558;if(_0x3b0c17[_0x3d4a18(0x1d2)]['q']){const _0x587c69=JSON[_0x3d4a18(0x1c5)](_0x3b0c17[_0x3d4a18(0x1d2)]['q']);underscore[_0x3d4a18(0x226)](_0x3907cf,_0x587c69);}else{_0x3907cf[_0x3d4a18(0x204)]=[];if(_0x3b0c17[_0x3d4a18(0x1d2)]['tu_ngay']){if(_0x3df044[_0x3d4a18(0x21e)](_0x3df044[_0x3d4a18(0x185)],_0x3df044[_0x3d4a18(0x23a)]))_0x3907cf[_0x3d4a18(0x204)][_0x3d4a18(0x17e)]({'ngay_ct':{'$gte':_0x3b0c17['query'][_0x3d4a18(0x1a3)]}});else return _0x13d30d[_0x3d4a18(0x262)](_0x13d30d['NffpT'](_0xcfd62f['ngay_ct']?_0x13d30d[_0x3d4a18(0x1d8)](_0x3816bd,_0x48dd04['ngay_ct'])[_0x3d4a18(0x1c0)](_0x3d4a18(0x202)):'0',_0x56bcc4[_0x3d4a18(0x1d3)]),_0x4a41c3[_0x3d4a18(0x183)]);}_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x1bb)]&&(_0x3df044[_0x3d4a18(0x1e7)](_0x3d4a18(0x213),_0x3df044[_0x3d4a18(0x17c)])?_0x33bec6[_0x3d4a18(0x204)]=[]:_0x3907cf[_0x3d4a18(0x204)][_0x3d4a18(0x17e)]({'ngay_ct':{'$lte':_0x3b0c17[_0x3d4a18(0x1d2)]['den_ngay']}}));_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x256)]&&(_0x3907cf[_0x3d4a18(0x256)]={'$regex':_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x256)],'$options':'i'});_0x3b0c17['query']['so_ct']&&(_0x3907cf[_0x3d4a18(0x183)]={'$regex':_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x183)],'$options':'i'});_0x3b0c17[_0x3d4a18(0x1d2)]['ma_kh']&&(_0x3df044[_0x3d4a18(0x21e)](_0x3df044['TzXcQ'],_0x3df044[_0x3d4a18(0x17b)])?_0x136211['filter'](_0x3ca475=>_0x3ca475[_0x3d4a18(0x15b)])[_0x3d4a18(0x168)](_0x352532[_0x3d4a18(0x1d2)][_0x3d4a18(0x22e)],_0x31a639,[{'where':_0x13d30d[_0x3d4a18(0x232)],'fields':[_0x13d30d[_0x3d4a18(0x1a6)]]}],function(){_0x13d30d['wAhmy'](_0x756d3d);}):(_0x3907cf['$and'][_0x3d4a18(0x17e)]({'$or':[{'ma_kh_no':_0x3b0c17[_0x3d4a18(0x1d2)]['ma_kh']}]}),_0x3907cf[_0x3d4a18(0x204)]['push']({'$or':[{'ma_kh_co':_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x169)]}]})));_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x20b)]&&(_0x3907cf[_0x3d4a18(0x20b)]=_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x20b)]);_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x1e0)]&&(_0x3df044['sguUU']===_0x3df044[_0x3d4a18(0x1e9)]?_0x2d0e4f=_0x14b139[_0x3d4a18(0x1fb)](_0x13998c=>!_0x13998c[_0x3d4a18(0x175)]):_0x3907cf[_0x3d4a18(0x1e0)]=_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x1e0)]);if(_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x15b)]){let _0x694553=await _0x3df044[_0x3d4a18(0x1cd)](getCodeChildren,dmphi,_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x22e)],_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x15b)],_0x3d4a18(0x15b),_0x3df044[_0x3d4a18(0x227)]);_0x3907cf[_0x3d4a18(0x15b)]={'$in':_0x694553};}if(_0x3b0c17['query'][_0x3d4a18(0x1e0)]){let _0x5379d3=await _0x3df044['JqaTg'](getCodeChildren,dmdt,_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x22e)],_0x3b0c17[_0x3d4a18(0x1d2)]['ma_dt'],'ma_dt',_0x3df044[_0x3d4a18(0x255)]);_0x3907cf[_0x3d4a18(0x1e0)]={'$in':_0x5379d3};}if(_0x3b0c17[_0x3d4a18(0x1d2)]['ma_bp']){if(_0x3df044['wVjOK'](_0x3df044['jdQwX'],_0x3df044[_0x3d4a18(0x1a8)]))_0x33b4c7[_0x3d4a18(0x1e0)]=_0x1523dc[_0x3d4a18(0x1d2)][_0x3d4a18(0x1e0)];else{let _0x207ec1=await _0x3df044[_0x3d4a18(0x159)](getCodeChildren,dmbp,_0x3b0c17['query'][_0x3d4a18(0x22e)],_0x3b0c17['query'][_0x3d4a18(0x19f)],_0x3df044[_0x3d4a18(0x243)],_0x3df044['VBAMi']);_0x3907cf[_0x3d4a18(0x19f)]={'$in':_0x207ec1};}}_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x173)]&&(_0x3df044[_0x3d4a18(0x1e7)](_0x3df044[_0x3d4a18(0x228)],_0x3d4a18(0x252))?_0x3907cf[_0x3d4a18(0x173)]=_0x3b0c17['query'][_0x3d4a18(0x173)]:_0x412d57['joinModel2'](_0x8178e2[_0x3d4a18(0x1d2)][_0x3d4a18(0x22e)],_0xfaf0af,[{'where':{'tk_no':'tk'},'fields':[{'name':_0x13d30d[_0x3d4a18(0x197)],'value':_0x13d30d[_0x3d4a18(0x23b)]}]},{'where':{'tk_co':'tk'},'fields':[{'name':_0x13d30d[_0x3d4a18(0x1ce)],'value':_0x13d30d[_0x3d4a18(0x23b)]}]}],function(){const _0x32dc38=_0x3d4a18;_0x13d30d[_0x32dc38(0x22b)](_0x129040);}));_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x19c)]&&mongoose[_0x3d4a18(0x242)]['ObjectId']['isValid'](_0x3b0c17['query']['ma_dvcs'])&&(_0x3907cf[_0x3d4a18(0x19c)]=_0x3b0c17['query'][_0x3d4a18(0x19c)]);_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x23c)]&&mongoose['Types'][_0x3d4a18(0x158)][_0x3d4a18(0x1c8)](_0x3b0c17['query'][_0x3d4a18(0x23c)])&&(_0x3d4a18(0x17a)!==_0x3df044[_0x3d4a18(0x1aa)]?_0x13d30d[_0x3d4a18(0x187)](_0x4bcb3c):_0x3907cf[_0x3d4a18(0x23c)]=_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x23c)]);_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x1bf)]&&(_0x3907cf[_0x3d4a18(0x1bf)]=_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x1bf)]);if(_0x3b0c17[_0x3d4a18(0x1d2)]['tk']){let _0x450601={'tk_no':{'$regex':_0x3df044[_0x3d4a18(0x22d)]('^',_0x3b0c17[_0x3d4a18(0x1d2)]['tk']),'$options':'i'}},_0x1399b2={'tk_co':{'$regex':_0x3df044[_0x3d4a18(0x193)]('^',_0x3b0c17['query']['tk']),'$options':'i'}};_0x3b0c17[_0x3d4a18(0x1d2)][_0x3d4a18(0x1d6)]&&(_0x450601[_0x3d4a18(0x219)]={'$regex':'^'+_0x3b0c17[_0x3d4a18(0x1d2)]['tk_du'],'$options':'i'},_0x1399b2['tk_no']={'$regex':_0x3df044[_0x3d4a18(0x1ec)]('^',_0x3b0c17[_0x3d4a18(0x1d2)]['tk_du']),'$options':'i'}),!_0x3907cf[_0x3d4a18(0x204)]&&(_0x3907cf[_0x3d4a18(0x204)]=[]),_0x3907cf[_0x3d4a18(0x204)][_0x3d4a18(0x17e)]({'$or':[_0x450601,_0x1399b2]});}_0x3907cf[_0x3d4a18(0x204)][_0x3d4a18(0x1ba)]===0x0&&(_0x3df044[_0x3d4a18(0x176)](_0x3df044[_0x3d4a18(0x1e6)],_0x3df044['iRSau'])?delete _0x3907cf[_0x3d4a18(0x204)]:_0x134dcd());}Socai[_0x3d4a18(0x230)](_0x3907cf)[_0x3d4a18(0x184)]()[_0x3d4a18(0x24d)](function(_0x4e0dc7){const _0x423bfa=_0x3d4a18,_0x315bab={'emKtL':function(_0x643a57){const _0xba188=_0x12ba;return _0x3df044[_0xba188(0x181)](_0x643a57);},'QuvCb':_0x3df044[_0x423bfa(0x1f2)],'mGafj':_0x3df044[_0x423bfa(0x1dd)],'PcMag':function(_0x559916,_0x59649d){const _0x132cff=_0x423bfa;return _0x3df044[_0x132cff(0x21e)](_0x559916,_0x59649d);},'hIZxB':_0x423bfa(0x188),'ZijPy':_0x423bfa(0x23e),'iJLCw':_0x3df044[_0x423bfa(0x253)],'DmvGQ':_0x3df044[_0x423bfa(0x17f)],'yDLdQ':_0x423bfa(0x173)};let _0x2d894c=[_0x3df044['Mntov'],_0x423bfa(0x19c),_0x423bfa(0x180),_0x3df044['wtFla'],_0x3df044['gFNQS'],_0x423bfa(0x24c),_0x423bfa(0x183),_0x3df044[_0x423bfa(0x1dc)],_0x3df044[_0x423bfa(0x18a)],_0x3df044[_0x423bfa(0x1fa)],_0x3df044[_0x423bfa(0x203)],_0x423bfa(0x17d),_0x3df044[_0x423bfa(0x1f6)],_0x3df044[_0x423bfa(0x198)],_0x3df044[_0x423bfa(0x172)],_0x3df044[_0x423bfa(0x1f7)],_0x3df044['KXfne'],_0x423bfa(0x23c),_0x3df044[_0x423bfa(0x18d)],_0x3df044[_0x423bfa(0x16f)],_0x3df044[_0x423bfa(0x1ad)],_0x423bfa(0x173),_0x3df044[_0x423bfa(0x1d5)],_0x3df044[_0x423bfa(0x24a)],_0x3df044[_0x423bfa(0x18b)]];_0x4e0dc7[_0x423bfa(0x257)](_0x2d894c,[_0x423bfa(0x191),_0x3df044[_0x423bfa(0x214)]],(_0x30b460,_0x5923f2)=>{const _0x1d9893=_0x423bfa,_0x198e4d={'vhTVC':function(_0x5d23b2){return _0x5d23b2();},'uCnPZ':_0x1d9893(0x179),'WBEJO':_0x13d30d[_0x1d9893(0x23b)],'BLAEZ':function(_0x588767){const _0x437d7d=_0x1d9893;return _0x13d30d[_0x437d7d(0x187)](_0x588767);},'wCdbQ':function(_0x10789f,_0x209bbf){return _0x10789f!==_0x209bbf;},'khdls':_0x13d30d[_0x1d9893(0x218)],'WsePj':_0x13d30d[_0x1d9893(0x224)],'yUxSI':_0x13d30d[_0x1d9893(0x24e)],'DeVYM':'ten_kh','waglQ':_0x13d30d[_0x1d9893(0x234)],'qqpce':_0x13d30d['dsirX'],'aFJtC':function(_0x4bd03b,_0x249184){return _0x4bd03b!==_0x249184;},'zoNls':_0x1d9893(0x18f),'bmXHd':_0x13d30d[_0x1d9893(0x1c4)],'uiGjl':function(_0x156af2,_0x13615a){return _0x13d30d['NffpT'](_0x156af2,_0x13615a);},'EEnLG':_0x1d9893(0x207),'ujpRj':_0x13d30d['CaAnG'],'SvpCY':_0x13d30d[_0x1d9893(0x22a)],'jHBNF':_0x1d9893(0x1fe),'TuxvZ':function(_0x5952b3,_0x2df9b4){const _0x597a7a=_0x1d9893;return _0x13d30d[_0x597a7a(0x1e2)](_0x5952b3,_0x2df9b4);},'OuDOO':_0x1d9893(0x15b),'sdhlc':_0x13d30d[_0x1d9893(0x1a6)],'Bpnph':function(_0x3cb933,_0x4ef4db){return _0x3cb933===_0x4ef4db;},'Zrydc':_0x13d30d[_0x1d9893(0x206)],'pVvMN':_0x13d30d[_0x1d9893(0x245)],'eXHlt':_0x13d30d[_0x1d9893(0x200)],'LoLzx':_0x13d30d['AZsis'],'LPYEE':_0x13d30d[_0x1d9893(0x19b)],'VNUEk':function(_0x5c2ad1,_0xddb5cb){const _0x55a4e0=_0x1d9893;return _0x13d30d[_0x55a4e0(0x1b5)](_0x5c2ad1,_0xddb5cb);},'LSDUp':function(_0x334dc6){return _0x334dc6();},'Napir':_0x13d30d['QtTmu'],'qPuxQ':_0x1d9893(0x15e),'UDJhb':function(_0x40619f){const _0x490738=_0x1d9893;return _0x13d30d[_0x490738(0x1cc)](_0x40619f);},'QHEio':function(_0xff41ff){const _0x32b9c8=_0x1d9893;return _0x13d30d[_0x32b9c8(0x22b)](_0xff41ff);},'UisWk':_0x13d30d['csbfD'],'CaWVM':_0x1d9893(0x1c3),'qBrll':'tien','EqTEi':_0x13d30d[_0x1d9893(0x238)],'UGfrq':function(_0x32393f,_0x4f4f8b,_0x3ee17c){return _0x32393f(_0x4f4f8b,_0x3ee17c);},'AKRcb':function(_0x416027,_0x3607b0){return _0x13d30d['gQDfH'](_0x416027,_0x3607b0);},'HAGJD':_0x13d30d['YwhEV'],'XdZei':_0x13d30d[_0x1d9893(0x1e8)],'rJmSX':_0x13d30d[_0x1d9893(0x22c)],'VBgEI':_0x13d30d[_0x1d9893(0x250)]};_0x13d30d[_0x1d9893(0x1e2)](_0x1d9893(0x251),_0x13d30d[_0x1d9893(0x1ee)])?_0x198e4d['vhTVC'](_0x2fe449):(_0x5923f2[_0x1d9893(0x194)](function(_0x2a827d){const _0x13c337=_0x1d9893;_0x2a827d[_0x13c337(0x247)]=0x0;}),async[_0x1d9893(0x24f)]([function(_0x37146c){const _0x24382c=_0x1d9893;_0x5923f2[_0x24382c(0x168)](_0x3b0c17[_0x24382c(0x1d2)][_0x24382c(0x22e)],Account,[{'where':{'tk_no':'tk'},'fields':[{'name':_0x24382c(0x174),'value':_0x24382c(0x192)}]},{'where':{'tk_co':'tk'},'fields':[{'name':_0x198e4d[_0x24382c(0x1d9)],'value':_0x198e4d[_0x24382c(0x1ae)]}]}],function(){const _0x3f4d1f=_0x24382c;_0x198e4d[_0x3f4d1f(0x239)](_0x37146c);});},function(_0xca72e1){const _0x25a898=_0x1d9893,_0x151f39={'pguIA':function(_0x2f872c){const _0x2873e5=_0x12ba;return _0x198e4d[_0x2873e5(0x25b)](_0x2f872c);},'VyiVs':function(_0x59736d){return _0x59736d();}};_0x198e4d[_0x25a898(0x244)](_0x198e4d[_0x25a898(0x21a)],_0x198e4d[_0x25a898(0x156)])?_0x5923f2[_0x25a898(0x1fb)](_0x3f749e=>_0x3f749e[_0x25a898(0x17d)])['joinModel2'](_0x3b0c17[_0x25a898(0x1d2)]['id_app'],Customer,[{'where':{'ma_kh_no':_0x25a898(0x169)},'fields':[{'name':_0x198e4d[_0x25a898(0x1c6)],'value':_0x198e4d[_0x25a898(0x246)]},{'name':_0x198e4d[_0x25a898(0x161)],'value':_0x198e4d[_0x25a898(0x1df)]}]}],function(){const _0x4a6f89=_0x25a898;_0x151f39[_0x4a6f89(0x177)](_0xca72e1);}):_0x151f39[_0x25a898(0x1be)](_0x1dd209);},function(_0x4540c9){const _0x128325=_0x1d9893,_0x4a4551={'fjnoE':function(_0xc19599){const _0x1cc6cb=_0x12ba;return _0x315bab[_0x1cc6cb(0x186)](_0xc19599);}};'umbXj'!==_0x315bab['QuvCb']?_0x5923f2[_0x128325(0x1fb)](_0x3988ce=>_0x3988ce['ma_kh_co'])[_0x128325(0x168)](_0x3b0c17[_0x128325(0x1d2)][_0x128325(0x22e)],Customer,[{'where':{'ma_kh_co':_0x128325(0x169)},'fields':[{'name':_0x128325(0x201),'value':_0x128325(0x25e)},{'name':_0x128325(0x215),'value':_0x315bab['mGafj']}]}],function(){const _0x22ee54=_0x128325;_0x4a4551[_0x22ee54(0x1c1)](_0x4540c9);}):delete _0x411ffd[_0x128325(0x204)];},function(_0x44c8e5){const _0x35d15b=_0x1d9893,_0x5cbdfe={'nYgsf':function(_0x2f5988,_0x513b77){return _0x2f5988+_0x513b77;},'qDWpA':function(_0xf8212d,_0xb3e091){const _0x2faebd=_0x12ba;return _0x198e4d[_0x2faebd(0x195)](_0xf8212d,_0xb3e091);}};_0x5923f2[_0x35d15b(0x1fb)](_0x4f0cec=>_0x4f0cec[_0x35d15b(0x20b)])[_0x35d15b(0x168)](_0x3b0c17['query'][_0x35d15b(0x22e)],contract,[{'where':{'ma_hd':_0x198e4d[_0x35d15b(0x264)]},'fields':[{'name':_0x198e4d[_0x35d15b(0x25d)],'value':_0x198e4d[_0x35d15b(0x25d)]}]}],function(){const _0x3e04e5=_0x35d15b;if(_0x198e4d[_0x3e04e5(0x1af)](_0x198e4d[_0x3e04e5(0x1f9)],_0x198e4d[_0x3e04e5(0x21b)]))_0x198e4d[_0x3e04e5(0x25b)](_0x44c8e5);else{let _0x257d38={'tk_no':{'$regex':_0x5cbdfe[_0x3e04e5(0x1bc)]('^',_0x2f2878[_0x3e04e5(0x1d2)]['tk']),'$options':'i'}},_0x1fd9b6={'tk_co':{'$regex':_0x5cbdfe[_0x3e04e5(0x1bc)]('^',_0x484329[_0x3e04e5(0x1d2)]['tk']),'$options':'i'}};_0x51b08c[_0x3e04e5(0x1d2)][_0x3e04e5(0x1d6)]&&(_0x257d38[_0x3e04e5(0x219)]={'$regex':'^'+_0x241452['query']['tk_du'],'$options':'i'},_0x1fd9b6[_0x3e04e5(0x1e4)]={'$regex':_0x5cbdfe[_0x3e04e5(0x25f)]('^',_0x4f6c61[_0x3e04e5(0x1d2)][_0x3e04e5(0x1d6)]),'$options':'i'}),!_0x28a351[_0x3e04e5(0x204)]&&(_0x530c43[_0x3e04e5(0x204)]=[]),_0x1391c7[_0x3e04e5(0x204)][_0x3e04e5(0x17e)]({'$or':[_0x257d38,_0x1fd9b6]});}});},function(_0x343408){const _0x2878af=_0x1d9893;_0x5923f2[_0x2878af(0x1fb)](_0x5666c8=>_0x5666c8[_0x2878af(0x1e0)])[_0x2878af(0x168)](_0x3b0c17['query'][_0x2878af(0x22e)],dmdt,[{'where':_0x198e4d[_0x2878af(0x23f)],'fields':[_0x198e4d['jHBNF']]}],function(){_0x343408();});},function(_0x48de42){const _0x543f2b=_0x1d9893;_0x198e4d['TuxvZ']('slGXr',_0x543f2b(0x1bd))?_0x5923f2[_0x543f2b(0x1fb)](_0x2ffe2b=>_0x2ffe2b[_0x543f2b(0x15b)])[_0x543f2b(0x168)](_0x3b0c17[_0x543f2b(0x1d2)][_0x543f2b(0x22e)],dmphi,[{'where':_0x198e4d[_0x543f2b(0x220)],'fields':[_0x198e4d[_0x543f2b(0x1b9)]]}],function(){_0x48de42();}):_0x1aa4af['ma_nv']=_0x16ca47[_0x543f2b(0x1d2)][_0x543f2b(0x173)];},function(_0x57b087){const _0x5ea63a=_0x1d9893,_0x1c4085={'aQUxy':function(_0x50c621){return _0x50c621();},'AaorF':function(_0x432c4f){return _0x432c4f();}};_0x315bab[_0x5ea63a(0x229)](_0x315bab['hIZxB'],_0x315bab[_0x5ea63a(0x199)])?_0x1c4085[_0x5ea63a(0x19e)](_0x257204):_0x5923f2[_0x5ea63a(0x1fb)](_0x8dbf96=>_0x8dbf96[_0x5ea63a(0x173)])[_0x5ea63a(0x168)](_0x3b0c17[_0x5ea63a(0x1d2)][_0x5ea63a(0x22e)],dmnv,[{'where':_0x5ea63a(0x173),'fields':[_0x5ea63a(0x209)]}],function(){const _0x147f37=_0x5ea63a;_0x198e4d[_0x147f37(0x1eb)](_0x198e4d[_0x147f37(0x1b2)],_0x198e4d['pVvMN'])?_0x1c4085['AaorF'](_0x32402a):_0x198e4d[_0x147f37(0x25b)](_0x57b087);});},function(_0x3125fd){const _0xb8666b=_0x1d9893;_0x198e4d[_0xb8666b(0x1e1)]===_0x198e4d[_0xb8666b(0x1e1)]?_0x5923f2[_0xb8666b(0x1fb)](_0x85bed6=>_0x85bed6[_0xb8666b(0x23e)])[_0xb8666b(0x168)](_0x3b0c17[_0xb8666b(0x1d2)][_0xb8666b(0x22e)],dmvt,[{'where':_0x198e4d[_0xb8666b(0x196)],'fields':[_0x198e4d[_0xb8666b(0x236)]]}],function(){const _0xe0813=_0xb8666b;_0x198e4d[_0xe0813(0x239)](_0x3125fd);}):_0x198e4d['BLAEZ'](_0x4e13e3);},function(_0x274b44){const _0x2b2064=_0x1d9893;_0x5923f2[_0x2b2064(0x1fb)](_0x42038a=>_0x42038a[_0x2b2064(0x170)])[_0x2b2064(0x168)](_0x3b0c17[_0x2b2064(0x1d2)][_0x2b2064(0x22e)],dmvt,[{'where':{'ma_sp':_0x315bab['ZijPy']},'fields':[{'ten_sp':_0x315bab[_0x2b2064(0x15a)]}]}],function(){_0x274b44();});},function(_0x58afa1){const _0x3fef6d=_0x1d9893,_0x16cfc9={'CcIaD':function(_0x46d0e8,_0x2c42c8){const _0x310425=_0x12ba;return _0x198e4d[_0x310425(0x249)](_0x46d0e8,_0x2c42c8);},'guKeC':_0x3fef6d(0x241),'PNCzL':function(_0x1398eb){const _0xe47200=_0x3fef6d;return _0x198e4d[_0xe47200(0x1a1)](_0x1398eb);}};_0x5923f2[_0x3fef6d(0x1fb)](_0x5c085e=>_0x5c085e[_0x3fef6d(0x23c)])[_0x3fef6d(0x168)](_0x3b0c17[_0x3fef6d(0x1d2)]['id_app'],Lenhsx,[{'where':{'id_lenhsx':_0x3fef6d(0x254)},'fields':[{'so_lenhsx':_0x198e4d['Napir']}]}],function(){const _0x543893=_0x3fef6d;_0x16cfc9[_0x543893(0x240)](_0x16cfc9[_0x543893(0x21c)],'aeICX')?_0x16cfc9[_0x543893(0x160)](_0x58afa1):_0x119c5e[_0x543893(0x256)]={'$regex':_0x107e84['query'][_0x543893(0x256)],'$options':'i'};});},function(_0x16e7a7){const _0x2fcf9a=_0x1d9893,_0x353433={'uOEPi':function(_0x456ccc){const _0xf5fd65=_0x12ba;return _0x315bab[_0xf5fd65(0x186)](_0x456ccc);},'yFcSR':function(_0x26c7a0,_0x4b7f50){return _0x26c7a0!==_0x4b7f50;},'zhEBP':_0x315bab[_0x2fcf9a(0x1b0)],'rJYuj':function(_0x5da97f){const _0x2fca91=_0x2fcf9a;return _0x315bab[_0x2fca91(0x186)](_0x5da97f);},'OexFZ':_0x315bab['yDLdQ']};'sivJk'===_0x2fcf9a(0x1ac)?async[_0x2fcf9a(0x22f)](_0x5923f2[_0x2fcf9a(0x1fb)](_0x232515=>_0x232515[_0x2fcf9a(0x1d3)]),(_0x4a22d1,_0x2ac787)=>{const _0x1656b6=_0x2fcf9a,_0x2659a5={'jTQQF':_0x353433[_0x1656b6(0x15d)]};global[_0x1656b6(0x235)](_0x4a22d1[_0x1656b6(0x1d3)][_0x1656b6(0x1f8)]())['findOne']({'_id':_0x4a22d1[_0x1656b6(0x180)]},{'_id':0x1})[_0x1656b6(0x24d)](_0x2d9aa1=>{const _0x296ac3=_0x1656b6;_0x4a22d1['id_ct_goc']=_0x2d9aa1?_0x2d9aa1[_0x296ac3(0x254)]:undefined,_0x353433['uOEPi'](_0x2ac787);})['catch'](()=>{const _0x56046b=_0x1656b6,_0x1c0dc7={'iQCep':function(_0x361195){return _0x361195();}};_0x353433[_0x56046b(0x190)](_0x353433[_0x56046b(0x19a)],_0x353433[_0x56046b(0x19a)])?_0x51a960[_0x56046b(0x1fb)](_0x54823b=>_0x54823b[_0x56046b(0x173)])[_0x56046b(0x168)](_0x3ec263[_0x56046b(0x1d2)]['id_app'],_0x149fa6,[{'where':_0x2659a5[_0x56046b(0x178)],'fields':[_0x56046b(0x209)]}],function(){const _0x487622=_0x56046b;_0x1c0dc7[_0x487622(0x1c2)](_0x3af8d8);}):_0x353433['rJYuj'](_0x2ac787);});},()=>{const _0x4747f7=_0x2fcf9a;_0x198e4d[_0x4747f7(0x15c)](_0x198e4d[_0x4747f7(0x1b7)],_0x198e4d['qPuxQ'])?(_0x185fa0[_0x4747f7(0x175)]=_0x22eabe?_0x36f842[_0x4747f7(0x254)]:_0x4e09c0,_0x146246()):_0x198e4d[_0x4747f7(0x1fc)](_0x16e7a7);}):_0x198e4d[_0x2fcf9a(0x1db)](_0x41ea3e);}],function(_0x33fbbe){const _0x369a1e=_0x1d9893,_0xf125c9={'aDzxn':_0x198e4d[_0x369a1e(0x1e5)],'Tlsgt':function(_0x46e450,_0x28ae83){const _0x23a3be=_0x369a1e;return _0x198e4d[_0x23a3be(0x195)](_0x46e450,_0x28ae83);},'FHNfC':'CiZyW','kexPL':_0x369a1e(0x163),'pPJpe':_0x198e4d[_0x369a1e(0x237)],'CVDYv':_0x198e4d[_0x369a1e(0x1de)],'WXeqr':_0x198e4d['EqTEi'],'nDirK':function(_0x4de46d,_0x2f220b,_0x3bc61b){const _0x122747=_0x369a1e;return _0x198e4d[_0x122747(0x19d)](_0x4de46d,_0x2f220b,_0x3bc61b);}};(_0x3b0c17[_0x369a1e(0x1d2)][_0x369a1e(0x217)]==![]||_0x198e4d[_0x369a1e(0x16d)](_0x3b0c17[_0x369a1e(0x1d2)]['co_ct_goc'],'false'))&&(_0x5923f2=_0x5923f2[_0x369a1e(0x1fb)](_0x241e7c=>!_0x241e7c[_0x369a1e(0x175)])),(_0x3b0c17[_0x369a1e(0x1d2)][_0x369a1e(0x217)]==!![]||_0x3b0c17[_0x369a1e(0x1d2)][_0x369a1e(0x217)]==_0x198e4d['HAGJD'])&&(_0x5923f2=_0x5923f2[_0x369a1e(0x1fb)](_0x1ad204=>_0x1ad204[_0x369a1e(0x175)])),_0x5923f2[_0x369a1e(0x1fb)](_0x4a1067=>_0x4a1067[_0x369a1e(0x1d1)]||_0x4a1067['nh_kh_co'])[_0x369a1e(0x168)](_0x3b0c17[_0x369a1e(0x1d2)]['id_app'],group,[{'where':{'nh_kh_no':_0x198e4d[_0x369a1e(0x1f0)]},'fields':[{'name':_0x198e4d[_0x369a1e(0x221)],'value':_0x198e4d[_0x369a1e(0x1d4)]}]},{'where':{'nh_kh_co':_0x369a1e(0x254)},'fields':[{'name':_0x369a1e(0x1e3),'value':_0x198e4d['VBgEI']}]}],function(){const _0x430c0a=_0x369a1e,_0x5c11a1={'kQEhm':function(_0x3ddb9a,_0x5dc7cb){return _0x3ddb9a===_0x5dc7cb;},'YPQmL':_0xf125c9['aDzxn'],'yfFNe':function(_0x5763ef,_0x847a0f){return _0x5763ef+_0x847a0f;},'jnRvK':function(_0x32e42c,_0x836ba7){const _0x41e7d5=_0x12ba;return _0xf125c9[_0x41e7d5(0x21d)](_0x32e42c,_0x836ba7);}};if(_0xf125c9[_0x430c0a(0x16b)]===_0xf125c9[_0x430c0a(0x25a)])_0x500852[_0x430c0a(0x204)][_0x430c0a(0x17e)]({'$or':[{'ma_kh_no':_0xd3f94c[_0x430c0a(0x1d2)]['ma_kh']}]}),_0x45cde4[_0x430c0a(0x204)][_0x430c0a(0x17e)]({'$or':[{'ma_kh_co':_0x26a0f8[_0x430c0a(0x1d2)][_0x430c0a(0x169)]}]});else{_0x5923f2=underscore['sortBy'](_0x5923f2,function(_0x96cd15){const _0xacd3c4=_0x430c0a;if(_0x5c11a1[_0xacd3c4(0x165)](_0x5c11a1[_0xacd3c4(0x225)],_0xacd3c4(0x1ef)))return _0x5c11a1[_0xacd3c4(0x1cb)](_0x5c11a1[_0xacd3c4(0x1f5)](_0x96cd15[_0xacd3c4(0x24c)]?moment(_0x96cd15[_0xacd3c4(0x24c)])[_0xacd3c4(0x1c0)](_0xacd3c4(0x202)):'0',_0x96cd15[_0xacd3c4(0x1d3)]),_0x96cd15['so_ct']);else _0x2d8a5b[_0xacd3c4(0x247)]=0x0;});const _0x8454df={'dien_giai':_0xf125c9[_0x430c0a(0x1d0)],'tien':_0x5923f2[_0x430c0a(0x24b)](_0xf125c9['CVDYv']),'tien_nt':_0x5923f2[_0x430c0a(0x24b)](_0xf125c9[_0x430c0a(0x208)]),'systotal':0x1,'bold':!![]};_0x5923f2[_0x430c0a(0x17e)](_0x8454df),_0xf125c9[_0x430c0a(0x25c)](_0xefbdd7,_0x33fbbe,_0x5923f2);}});}));});})[_0x3d4a18(0x231)](_0x4ab082=>{const _0x5c0d22=_0x3d4a18;_0x3df044[_0x5c0d22(0x166)]!==_0x3df044[_0x5c0d22(0x166)]?_0x21b953[_0x5c0d22(0x19c)]=_0x3d97ba[_0x5c0d22(0x1d2)][_0x5c0d22(0x19c)]:_0xefbdd7(_0x4ab082);});}});};