flexbiz-server 12.4.21 → 12.4.22

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,37 +1 @@
1
- const options=global.getModel("options"),PostSocai=require("../../libs/post-socai"),transaction=global.getModel("transaction"),dvcs=global.getModel("dvcs"),Evoucher=global.getModel("evoucher"),department=global.getModel("department"),dmcpmh=global.getModel("dmcpmh"),customer=global.getModel("customer"),service=global.getModel("service"),dmdt=global.getModel("dmdt"),dmphi=global.getModel("dmphi"),contract=global.getModel("contract"),trangthai=global.getModel("trangthai"),currency=global.getModel("currency"),
2
- ptthanhtoan=global.getModel("ptthanhtoan"),dmdiemthuong=global.getModel("dmdiemthuong"),onepay=global.getModel("onepay"),model=global.getModel("so2"),controller=require("../../controllers/controller"),async=require("async"),Moment=require("moment"),ma_ct="SO2",ckdiem=require("../../libs/ckdiem"),getPointBalance=async($id_app$$,$sender_email$$)=>new Promise(($resolve$$,$reject$$)=>{ckdiem({id_app:$id_app$$,email:$sender_email$$},($e$$,$rs$$)=>{if($e$$)return $reject$$(Error($e$$));$resolve$$($rs$$.length===
3
- 0?0:$rs$$[0].ton00)})}),createTransactionPayment=async function($obj$$){await transaction.deleteTrans({id_ct:$obj$$._id.toString()});if($obj$$.paymentByPoints){var $description$$=$obj$$.dien_giai;if(!$description$$&&$obj$$.details&&$obj$$.details.length>0&&($description$$=$obj$$.details[0].service_name,!$description$$))try{$description$$=await service.getInfo($obj$$.id_app,{service_code:$obj$$.details[0].service_code},"service_name")}catch($e$$){console.log($e$$.message,$obj$$.details[0].service_code)}await transaction.createTrans({id_app:$obj$$.id_app,
4
- sender_email:$obj$$.user_created,receiver_email:$obj$$.id_app,amount:$obj$$.paymentByPoints,description:`Thanh to\u00e1n d\u1ecbch v\u1ee5 ${$description$$||""}`,otherData:{ma_ct:$obj$$.ma_ct,so_ct:$obj$$.so_ct,ngay_ct:$obj$$.ngay_ct,id_ct:$obj$$._id.toString()}})}},createTransactionBonus=async function($obj$$){if($obj$$.trang_thai!="5"&&$obj$$.trang_thai!="4")return await transaction.deleteTrans({id_ct:$obj$$._id.toString()+":bonus"},"Tr\u1ea3 l\u1ea1i \u0111i\u1ec3m th\u01b0\u1edfng \u0111\u1ec3 t\u00ednh l\u1ea1i"),
5
- null;var $amount_ckdiemthuong_kh_ty_le_diem_thuong$$=await customer.findOne({id_app:$obj$$.id_app,ma_kh:$obj$$.ma_kh});if($amount_ckdiemthuong_kh_ty_le_diem_thuong$$){var $lan_mua_old_trans_sl_t_tien$$=(await model.find({id_app:$obj$$.id_app,ma_kh:$obj$$.ma_kh,ngay_ct:{$lte:$obj$$.ngay_ct}})).length+1,$now$$=Moment(new Date).startOf("date").toDate();$amount_ckdiemthuong_kh_ty_le_diem_thuong$$=await dmdiemthuong.find({id_app:$obj$$.id_app,status:!0,ma_kh:{$in:[null,"",$amount_ckdiemthuong_kh_ty_le_diem_thuong$$.ma_kh]},
6
- nh_kh:{$in:[null,"",$amount_ckdiemthuong_kh_ty_le_diem_thuong$$.nh_kh]},hieu_luc_tu:{$lte:$now$$},hieu_luc_den:{$gte:$now$$},ap_dung_lan_mua_thu:{$in:[0,$lan_mua_old_trans_sl_t_tien$$]}}).sort({hieu_luc_tu:-1}).limit(1);if($amount_ckdiemthuong_kh_ty_le_diem_thuong$$.length===0)await transaction.deleteTrans({id_ct:$obj$$._id.toString()+":bonus"},"Tr\u1ea3 l\u1ea1i \u0111i\u1ec3m th\u01b0\u1edfng \u0111\u1ec3 t\u00ednh l\u1ea1i");else{if($amount_ckdiemthuong_kh_ty_le_diem_thuong$$[0].tien){$amount_ckdiemthuong_kh_ty_le_diem_thuong$$=
7
- $amount_ckdiemthuong_kh_ty_le_diem_thuong$$[0].diem/$amount_ckdiemthuong_kh_ty_le_diem_thuong$$[0].tien;if(!$amount_ckdiemthuong_kh_ty_le_diem_thuong$$)return;$lan_mua_old_trans_sl_t_tien$$=$obj$$.details.map($d$$=>$d$$.tien_hang-($d$$.tien_ck||0)).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$amount_ckdiemthuong_kh_ty_le_diem_thuong$$=Math.roundBy($lan_mua_old_trans_sl_t_tien$$*$amount_ckdiemthuong_kh_ty_le_diem_thuong$$,0)}else $lan_mua_old_trans_sl_t_tien$$=$obj$$.details.filter($d$$=>$d$$.tien_hang).map($d$$=>
8
- $d$$.sl_xuat||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0),$amount_ckdiemthuong_kh_ty_le_diem_thuong$$=Math.roundBy($amount_ckdiemthuong_kh_ty_le_diem_thuong$$[0].diem*$lan_mua_old_trans_sl_t_tien$$,0);if($amount_ckdiemthuong_kh_ty_le_diem_thuong$$){if($lan_mua_old_trans_sl_t_tien$$=await transaction.findOne({id_ct:$obj$$._id.toString()+":bonus"}),!$lan_mua_old_trans_sl_t_tien$$||$lan_mua_old_trans_sl_t_tien$$.amount!==$amount_ckdiemthuong_kh_ty_le_diem_thuong$$)return await transaction.deleteTrans({id_ct:$obj$$._id.toString()+
9
- ":bonus"},"Tr\u1ea3 l\u1ea1i \u0111i\u1ec3m th\u01b0\u1edfng \u0111\u1ec3 t\u00ednh l\u1ea1i"),await transaction.createTrans({id_app:$obj$$.id_app,sender_email:$obj$$.id_app,receiver_email:$obj$$.user_created,amount:$amount_ckdiemthuong_kh_ty_le_diem_thuong$$,description:"\u0110i\u1ec3m th\u01b0\u1edfng s\u1eed d\u1ee5ng d\u1ecbch v\u1ee5",otherData:{ma_ct:$obj$$.ma_ct,so_ct:$obj$$.so_ct,ngay_ct:$obj$$.ngay_ct,id_ct:$obj$$._id.toString()+":bonus"}})}else await transaction.deleteTrans({id_ct:$obj$$._id.toString()+
10
- ":bonus"},"Tr\u1ea3 l\u1ea1i \u0111i\u1ec3m th\u01b0\u1edfng \u0111\u1ec3 t\u00ednh l\u1ea1i")}}else await transaction.deleteTrans({id_ct:$obj$$._id.toString()+":bonus"},"Tr\u1ea3 l\u1ea1i \u0111i\u1ec3m th\u01b0\u1edfng \u0111\u1ec3 t\u00ednh l\u1ea1i")},isFree=async($id_app$$,$department_code$$,$ngay_den$$,$ngay_di$$)=>{if(!await department.getInfo($id_app$$,{department_code:$department_code$$},"auto_check_available"))return!0;let $condition$$={id_app:$id_app$$,details:{$elemMatch:{department_code:$department_code$$}},
11
- $or:[{ngay_den:{$gte:$ngay_den$$,$lte:$ngay_di$$}},{ngay_di:{$gte:$ngay_den$$,$lte:$ngay_di$$}},{$and:[{ngay_den:{$lte:$ngay_di$$}},{ngay_di:{$gte:$ngay_di$$}}]}],trang_thai:{$ne:"9"}};return new Promise(($resolve$$,$reject$$)=>{model.findOne($condition$$).lean().exec(($e$$,$rs$$)=>$e$$?$reject$$(Error($e$$.message)):$rs$$?$resolve$$(!1):$resolve$$(!0))})},checkEvoucher=($user$$,$obj$$)=>($obj$$.evouchers||[]).map($ev$$=>new Promise(($resolve$$,$reject$$)=>{(async()=>{const $_e$$=await Evoucher.findOne({_id:$ev$$._id});
12
- if(!$_e$$)return $reject$$(Error(`Th\u1ebb mua h\u00e0ng ${$ev$$.ma} kh\u00f4ng t\u1ed3n t\u1ea1i`));if($_e$$.id_ct_used&&$_e$$.id_ct_used!==($obj$$._id||"").toString())return $reject$$(Error(`Th\u1ebb mua h\u00e0ng ${$ev$$.ma} \u0111\u00e3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng`));if($_e$$.user&&$_e$$.user!==($obj$$.user_created||$user$$.email))return $reject$$(Error(`Th\u1ebb mua h\u00e0ng ${$ev$$.ma} kh\u00f4ng h\u1ee3p l\u1ec7`));var $date_created_so_tien_giam$$=new Date($obj$$.date_created);if(Moment($_e$$.hieu_luc_den).endOf("date").toDate().getTime()<
13
- $date_created_so_tien_giam$$.getTime())return $reject$$(Error(`Th\u1ebb mua h\u00e0ng ${$ev$$.ma} \u0111\u00e3 h\u1ebft h\u1ea1n s\u1eed d\u1ee5ng`));$date_created_so_tien_giam$$=$_e$$.so_tien;$_e$$.ty_le&&($date_created_so_tien_giam$$=Math.roundBy($obj$$.details.map($d$$=>$d$$.tien_hang_nt).reduce(($a$$,$b$$)=>$a$$+$b$$,0)*$_e$$.ty_le/100));$_e$$.so_tien_max&&$date_created_so_tien_giam$$>$_e$$.so_tien_max&&($date_created_so_tien_giam$$=$_e$$.so_tien_max);if($ev$$.so_tien_giam!==$date_created_so_tien_giam$$)return $reject$$(Error(`S\u1ed1 ti\u1ec1n gi\u1ea3m cho th\u1ebb ${$ev$$.ma} kh\u00f4ng h\u1ee3p l\u1ec7`));
14
- $resolve$$(!0)})()})),valid=async function($user$$,$obj$$,$next$$){try{var $_checkEvoucher_i$$=checkEvoucher($user$$,$obj$$);await Promise.all($_checkEvoucher_i$$)}catch($e$$){return $next$$($e$$.message)}if($obj$$.paymentByPoints)try{var $detail_he_so_qd$$=await currency.getRate($obj$$.id_app,$obj$$.ma_nt);$obj$$.tien_paymentByPoints=$obj$$.paymentByPoints*$detail_he_so_qd$$}catch($e$$){return $next$$($e$$.message)}for($_checkEvoucher_i$$=0;$_checkEvoucher_i$$<$obj$$.details.length;$_checkEvoucher_i$$++)$detail_he_so_qd$$=
15
- $obj$$.details[$_checkEvoucher_i$$],$detail_he_so_qd$$.line=$_checkEvoucher_i$$,$obj$$.ma_nt==="VND"&&($detail_he_so_qd$$.tien=$detail_he_so_qd$$.tien_nt,$detail_he_so_qd$$.tien_hang=$detail_he_so_qd$$.tien_hang_nt,$detail_he_so_qd$$.tien_ck=$detail_he_so_qd$$.tien_ck_nt,$detail_he_so_qd$$.gia_ban=$detail_he_so_qd$$.gia_ban_nt);$obj$$.ma_dvcs?$next$$(null,$obj$$):dvcs.findOne({id_app:$user$$.current_id_app},{_id:1},function($error$$,$dv$$){return $error$$?$next$$($error$$):$dv$$?($obj$$.ma_dvcs=$dv$$._id.toString(),
16
- $next$$(null,$obj$$)):$next$$("C\u00f4ng ty/c\u1eeda h\u00e0ng n\u00e0y ch\u01b0a c\u00f3 m\u1ed9t \u0111\u01a1n v\u1ecb c\u01a1 s\u1edf n\u00e0o")})};
17
- module.exports=function($contr_router$$){$contr_router$$=new controller($contr_router$$,model,ma_ct.toLowerCase(),{isVoucher:!0,sort:{trang_thai:1,ngay_ct:-1,so_ct:-1},onErrorCreating:async($user$$,$obj$$,$next$$)=>{if($obj$$.id_trans)try{await transaction.deleteTrans($obj$$.id_trans)}catch($e$$){return $next$$($e$$.message)}$next$$(null,$obj$$)},onErrorUpdating:async($user$$,$obj$$,$next$$,$old_obj$$)=>{if($obj$$.id_trans)try{await transaction.deleteTrans($obj$$.id_trans)}catch($e$$){return $next$$($e$$.message)}if($old_obj$$.id_trans)try{await transaction.deleteTrans($old_obj$$.id_trans)}catch($e$$){return $next$$($e$$.message)}$next$$(null,
18
- $obj$$)}});$contr_router$$.route();$contr_router$$.post=function($obj$$,$fn$$){$fn$$||=function(){};async.series({post_socai:function($callback$$){options.findOne({id_app:$obj$$.id_app,id_func:ma_ct.toLowerCase()}).lean().exec(function($error$$,$rs$$){let $option$$;$option$$=$rs$$?$rs$$.option||{}:{};(new Promise($resolve$$=>{if($obj$$.pt_thanh_toan)ptthanhtoan.findOne({id_app:$obj$$.id_app,_id:$obj$$.pt_thanh_toan}).lean().exec(($e$$,$pt$$)=>{$e$$&&console.log($e$$);$resolve$$($pt$$||{})});else return $resolve$$({})})).then($pt$$=>
19
- {$option$$.tk_tien=$pt$$.tk_tien||$option$$.tk_tien||"1111";$option$$.tk_cn=$pt$$.tk_cn||$option$$.tk_cn||"131111";$option$$.tk_tien_dc=$option$$.tk_cn;$option$$.tk_dt=$pt$$.tk_dt||$option$$.tk_dt||"51111";$option$$.tk_tl=$pt$$.tk_tl||$option$$.tk_tl||"52131";$option$$.tk_ck=$pt$$.tk_ck||$option$$.tk_ck||"5211";$option$$.ma_kh=$obj$$.pt_giao_hang=="1"||$pt$$.tra_truoc?$pt$$.ma_kh||$obj$$.ma_kh:$obj$$.dich_vu_giao_hang||$pt$$.ma_kh||$obj$$.ma_kh;const $details$$=[];if($pt$$.tra_truoc&&!$pt$$.thanh_toan_bang_diem){var $detail$$=
20
- {...$obj$$};$detail$$.tk_co=$option$$.tk_cn;$detail$$.tk_no=$option$$.tk_tien;$detail$$.ma_kh=$option$$.ma_kh;$detail$$.tien_nt=$obj$$.details.map($d$$=>$d$$.tien_nt).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$detail$$.tien=$obj$$.details.map($d$$=>$d$$.tien).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$detail$$.tien_nt+=$obj$$.ctcpbhs.map($c$$=>$c$$.tien_cp_nt).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$detail$$.tien+=$obj$$.ctcpbhs.map($c$$=>$c$$.tien_cp).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$details$$.push($detail$$)}$obj$$.details.forEach(function($d$jscomp$6_detail$$){$d$jscomp$6_detail$$=
21
- {...$d$jscomp$6_detail$$};$d$jscomp$6_detail$$.tk_co=$option$$.tk_dt;$d$jscomp$6_detail$$.ma_kh=$option$$.ma_kh;$d$jscomp$6_detail$$.ngay_ct=$obj$$.ngay_giao_hang||$obj$$.ngay_ct;$d$jscomp$6_detail$$.tk_no=$pt$$.tra_truoc?$option$$.tk_cn:$obj$$.pt_giao_hang!=="1"&&$option$$.tk_tien_dc?$option$$.tk_tien_dc:$option$$.tk_tien;$d$jscomp$6_detail$$.tien_nt=$d$jscomp$6_detail$$.tien_hang_nt;$d$jscomp$6_detail$$.tien=$d$jscomp$6_detail$$.tien_hang;$details$$.push($d$jscomp$6_detail$$)});$obj$$.ctcpbhs&&
22
- $obj$$.ctcpbhs.forEach(function($d$jscomp$7_detail$$){$d$jscomp$7_detail$$={...$d$jscomp$7_detail$$};$d$jscomp$7_detail$$.tk_co=$option$$.tk_dt;$d$jscomp$7_detail$$.ma_kh=$option$$.ma_kh;$d$jscomp$7_detail$$.ngay_ct=$obj$$.ngay_giao_hang||$obj$$.ngay_ct;$d$jscomp$7_detail$$.tk_no=$pt$$.tra_truoc?$option$$.tk_cn:$obj$$.pt_giao_hang!=="1"&&$option$$.tk_tien_dc?$option$$.tk_tien_dc:$option$$.tk_tien;$d$jscomp$7_detail$$.tien_nt=$d$jscomp$7_detail$$.tien_cp_nt;$d$jscomp$7_detail$$.tien=$d$jscomp$7_detail$$.tien_cp;
23
- $details$$.push($d$jscomp$7_detail$$)});$obj$$.details.forEach(function($d$jscomp$8_detail$$){$d$jscomp$8_detail$$={...$d$jscomp$8_detail$$};$d$jscomp$8_detail$$.tk_no=$option$$.tk_ck;$d$jscomp$8_detail$$.ma_kh=$option$$.ma_kh;$d$jscomp$8_detail$$.ngay_ct=$obj$$.ngay_giao_hang||$obj$$.ngay_ct;$d$jscomp$8_detail$$.tk_co=$pt$$.tra_truoc?$option$$.tk_cn:$option$$.tk_tien;$d$jscomp$8_detail$$.tien_nt=$d$jscomp$8_detail$$.tien_ck_nt;$d$jscomp$8_detail$$.tien=$d$jscomp$8_detail$$.tien_ck;$details$$.push($d$jscomp$8_detail$$)});
24
- if($obj$$.tien_ck_hd||$obj$$.tien_evoucher)$detail$$={},$detail$$.tk_no=$option$$.tk_ck,$detail$$.tk_co=$obj$$.tien_thu&&$obj$$.t_tt==$obj$$.tien_thu?$option$$.tk_tien:$option$$.tk_cn,$detail$$.tien_nt=($obj$$.tien_ck_hd||0)+($obj$$.tien_evoucher||0),$detail$$.tien=$detail$$.tien_nt,$detail$$.ma_kh=$option$$.ma_kh,$details$$.push($detail$$);(new PostSocai($obj$$,$details$$)).run(function($e$$,$rs$$){$callback$$($e$$,$rs$$)})})})}},function($e$$,$rs$$){$fn$$($e$$,$rs$$)})};$contr_router$$.creating=
25
- async function($user$$,$obj$$,$next$$){if(!$obj$$.details||$obj$$.details.length===0)return $next$$("Y\u00eau c\u1ea7u ch\u1ecdn m\u1ed9t ph\u00f2ng");for(let $i$$=0;$i$$<$obj$$.details.length;$i$$++)if(!await isFree($obj$$.id_app,$obj$$.details[$i$$].department_code,$obj$$.ngay_den,$obj$$.ngay_di))return $next$$("Ph\u00f2ng n\u00e0y hi\u1ec7n t\u1ea1i \u0111\u00e3 c\u00f3 ng\u01b0\u1eddi \u0111\u1eb7t. B\u1ea1n vui l\u00f2ng ch\u1ecdn ph\u00f2ng kh\u00e1c");valid($user$$,$obj$$,async $error$$=>{if($error$$)return $next$$($error$$);
26
- if(!$obj$$.paymentByPoints)return $next$$(null,$obj$$);try{if(await getPointBalance($user$$.current_id_app,$user$$.email)<$obj$$.paymentByPoints)return $next$$("B\u1ea1n kh\u00f4ng c\u00f3 \u0111\u1ee7 \u0111i\u1ec3m \u0111\u1ec3 th\u1ef1c hi\u1ec7n giao d\u1ecbch n\u00e0y.");$next$$(null,$obj$$)}catch($e$$){$next$$($e$$.message)}})};$contr_router$$.created=async function($user$$,$obj$$,$next$$){try{let $virtual_payment_client_url$$=await onepay.createVirtualPaymentClientURL($obj$$,$user$$.clientIp);
27
- model.findOneAndUpdate({_id:$obj$$._id},{virtual_payment_client_url:$virtual_payment_client_url$$},$e$$=>{$e$$&&console.log("error create Virtual Payment ClientURL",$e$$.message)});$obj$$.virtual_payment_client_url=$virtual_payment_client_url$$}catch($e$$){console.log("Error create Virtual Payment ClientURL",$e$$.message),$obj$$.virtual_payment_client_url=""}await createTransactionPayment($obj$$);await createTransactionBonus($obj$$);$obj$$.evouchers&&await Promise.all($obj$$.evouchers.map($e$$=>Evoucher.findOneAndUpdate({_id:$e$$._id},
28
- {id_ct_used:$obj$$._id.toString()})));$next$$(null,$obj$$)};$contr_router$$.updating=function($user$$,$data$$,$obj$$,$next$$){valid($user$$,$data$$,async $error$$=>{if($error$$)return $next$$($error$$);if(($obj$$.paymentByPoints||0)!==($data$$.paymentByPoints||0))return $next$$("B\u1ea1n kh\u00f4ng th\u1ec3 c\u1eadp nh\u1eadt s\u1ed1 \u0111i\u1ec3m thanh to\u00e1n.");$next$$(null,$data$$,$obj$$)})};$contr_router$$.updated=async function($user$$,$obj$$,$next$$){try{let $virtual_payment_client_url$$=
29
- await onepay.createVirtualPaymentClientURL($obj$$,$user$$.clientIp);model.findOneAndUpdate({_id:$obj$$._id},{virtual_payment_client_url:$virtual_payment_client_url$$},$e$$=>{$e$$&&console.log("error create Virtual Payment ClientURL",$e$$.message)});$obj$$.virtual_payment_client_url=$virtual_payment_client_url$$}catch($e$$){console.log("Error create Virtual Payment ClientURL",$e$$.message),$obj$$.virtual_payment_client_url=""}$obj$$.trang_thai=="9"?(await transaction.deleteTrans({id_ct:$obj$$._id.toString()}),
30
- await transaction.deleteTrans({id_ct:$obj$$._id.toString()+":bonus"},"Tr\u1ea3 l\u1ea1i \u0111i\u1ec3m th\u01b0\u1edfng")):await createTransactionBonus($obj$$);await Evoucher.updateMany({id_ct_used:$obj$$._id.toString()},{id_ct_used:""});$obj$$.evouchers&&await Promise.all($obj$$.evouchers.map($e$$=>Evoucher.findOneAndUpdate({_id:$e$$._id},{id_ct_used:$obj$$._id.toString()})));$next$$(null,$obj$$)};$contr_router$$.deleting=function($user$$,$obj$$,$next$$){$next$$(null,$obj$$)};$contr_router$$.deleted=
31
- async function($user$$,$obj$$,$next$$){await transaction.deleteTrans({id_ct:$obj$$._id.toString()});await transaction.deleteTrans({id_ct:$obj$$._id.toString()+":bonus"},"Tr\u1ea3 l\u1ea1i \u0111i\u1ec3m th\u01b0\u1edfng");$obj$$.evouchers&&await Promise.all($obj$$.evouchers.map($e$$=>Evoucher.findOneAndUpdate({_id:$e$$._id},{id_ct_used:""})));$next$$(null,$obj$$)};$contr_router$$.view=function($user$$,$items$$,$fn$$){let $id_app$$=$user$$.current_id_app;async.series({kh:function($callback$$){$items$$.joinModel2($id_app$$,
32
- customer,[{where:"ma_kh",fields:"ten_kh"}],function(){$callback$$()})},dich_vu_giao_hang:function($callback$$){$items$$.joinModel2($id_app$$,customer,[{where:{dich_vu_giao_hang:"ma_kh"},fields:{ten_dich_vu_giao_hang:"ten_kh"}}],function(){$callback$$()})},trangthai:function($callback$$){$items$$.joinModel2(null,trangthai,[{where:{trang_thai:"ma_trang_thai",ma_ct:"ma_ct"},fields:["ten_trang_thai","color"]}],function(){$callback$$()})},ptthanhtoan:function($callback$$){$items$$.joinModel2($id_app$$,
33
- ptthanhtoan,[{where:{pt_thanh_toan:"_id"},fields:{ten_pt_thanh_toan:"ten"}}],function(){$callback$$()})},t_tien:function($callback$$){$items$$.forEach(function($r$$){$r$$.details?($r$$.t_sl=$r$$.details.csum("sl_xuat"),$r$$.t_tien_hang=$r$$.details.csum("tien_hang"),$r$$.t_tien_hang_nt=$r$$.details.csum("tien_hang_nt"),$r$$.t_ck=$r$$.details.csum("tien_ck")+$r$$.tien_ck_hd,$r$$.t_ck_nt=$r$$.details.csum("tien_ck_nt")+$r$$.tien_ck_hd):($r$$.t_sl=0,$r$$.t_tien_hang=0,$r$$.t_tien_hang_nt=0,$r$$.t_ck=
34
- 0,$r$$.t_ck_nt=0);$r$$.t_tien=$r$$.t_tien_hang-$r$$.t_ck;$r$$.t_tien_nt=$r$$.t_tien_hang_nt-$r$$.t_ck_nt;$r$$.ctcpbhs?($r$$.t_cp_cpb_nt=$r$$.ctcpbhs.csum("tien_cp_nt"),$r$$.t_cp_cpb=$r$$.ctcpbhs.csum("tien_cp")):($r$$.t_cp_cpb_nt=0,$r$$.t_cp_cpb=0);$r$$.t_tt_nt=$r$$.t_tien_nt+$r$$.t_cp_cpb_nt;$r$$.t_tt=$r$$.t_tien+$r$$.t_cp_cpb});$callback$$()},details_vt:function($callback$$){async.each($items$$,function($details$jscomp$1_r$$,$callback1$$){$details$jscomp$1_r$$=$details$jscomp$1_r$$.details||[];
35
- $details$jscomp$1_r$$.forEach($d$$=>{$d$$.obj_model="department"});$details$jscomp$1_r$$.joinModel2($id_app$$,department,[{where:"department_code",fields:["department_name","picture",{code:"department_code"},{title:"department_name"},{obj_id:"_id"}]}],function(){$callback1$$()})},function(){$callback$$()})},details_dt:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.details||[]).joinModel2($id_app$$,dmdt,[{where:"ma_dt",fields:"ten_dt"}],function(){$callback1$$()})},
36
- function(){$callback$$()})},details_contract:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.details||[]).joinModel2($id_app$$,contract,[{where:{ma_hd:"so_hd"},fields:"ten_hd"}],function(){$callback1$$()})},function(){$callback$$()})},details_phi:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.details||[]).joinModel2($id_app$$,dmphi,[{where:"ma_phi",fields:"ten_phi"}],function(){$callback1$$()})},function(){$callback$$()})},details_cpbh:function($callback$$){async.each($items$$,
37
- function($ctcpbhs_r$$,$callback1$$){($ctcpbhs_r$$=$ctcpbhs_r$$.ctcpbhs)?$ctcpbhs_r$$.joinModel2($id_app$$,dmcpmh,[{where:"ma_cp",fields:"ten_cp"}],function(){$callback1$$()}):$callback1$$()},function(){$callback$$()})}},function(){$fn$$(null,$items$$)})}};
1
+ const _0x1291d9=_0x2a29;(function(_0x240a0c,_0x5f53ab){const _0x1c4d7e=_0x2a29,_0x19d714=_0x240a0c();while(!![]){try{const _0x583cbc=-parseInt(_0x1c4d7e(0x224))/0x1+-parseInt(_0x1c4d7e(0xfa))/0x2+-parseInt(_0x1c4d7e(0x196))/0x3+parseInt(_0x1c4d7e(0x1cd))/0x4*(-parseInt(_0x1c4d7e(0x283))/0x5)+parseInt(_0x1c4d7e(0x247))/0x6+parseInt(_0x1c4d7e(0x177))/0x7+parseInt(_0x1c4d7e(0x207))/0x8;if(_0x583cbc===_0x5f53ab)break;else _0x19d714['push'](_0x19d714['shift']());}catch(_0x4ca891){_0x19d714['push'](_0x19d714['shift']());}}}(_0x4924,0xda7c1));const _0x2ca94e=(function(){const _0x59672e=_0x2a29,_0x294628={'KqYoI':_0x59672e(0x2db),'WWcAf':function(_0xfd8ca9,_0x4f6ffe){return _0xfd8ca9===_0x4f6ffe;},'svcSv':_0x59672e(0x154),'Tijzs':'PIqOW','HHZFs':function(_0x29de18,_0x57a4c4,_0x5d3371){return _0x29de18(_0x57a4c4,_0x5d3371);}};let _0x555ff3=!![];return function(_0xfc7661,_0x41819f){const _0x341711={'BTZnt':function(_0x5ecff4,_0x3cce9b){return _0x5ecff4(_0x3cce9b);},'mqgZx':function(_0x137de3,_0x1d9f4d){const _0x4b045c=_0x2a29;return _0x294628[_0x4b045c(0x2b3)](_0x137de3,_0x1d9f4d);},'LDDvq':function(_0x6c51b,_0x1d26c0,_0x378aab){const _0x4f9f7e=_0x2a29;return _0x294628[_0x4f9f7e(0x25f)](_0x6c51b,_0x1d26c0,_0x378aab);}},_0x376286=_0x555ff3?function(){const _0x33c92f=_0x2a29;if(_0x294628[_0x33c92f(0x2ad)]===_0x33c92f(0x1c0)){const _0x3a80f9={'voUKd':function(_0x20a874,_0x19d753){const _0x162609=_0x33c92f;return _0x341711[_0x162609(0x255)](_0x20a874,_0x19d753);},'UIevM':function(_0x2f96a8,_0x883319){const _0xf50d3c=_0x33c92f;return _0x341711[_0xf50d3c(0x16f)](_0x2f96a8,_0x883319);}};_0x341711[_0x33c92f(0x181)](_0x14b342,{'id_app':_0x310b11,'email':_0x1bd186},(_0x6d1c19,_0x1cec30)=>{const _0x53b7d2=_0x33c92f;if(_0x6d1c19)return _0x41986d(new _0x4f5a7d(_0x6d1c19));_0x3a80f9['voUKd'](_0x1d4523,_0x3a80f9[_0x53b7d2(0x2a9)](_0x1cec30[_0x53b7d2(0x236)],0x0)?0x0:_0x1cec30[0x0][_0x53b7d2(0x139)]);});}else{if(_0x41819f){if(_0x294628[_0x33c92f(0x2b3)](_0x294628[_0x33c92f(0x2c0)],_0x294628[_0x33c92f(0x242)]))_0x203bbd(_0x4e93ab,_0xd119d3);else{const _0x317a70=_0x41819f[_0x33c92f(0x12c)](_0xfc7661,arguments);return _0x41819f=null,_0x317a70;}}}}:function(){};return _0x555ff3=![],_0x376286;};}()),_0x288c07=_0x2ca94e(this,function(){const _0x1e9391=_0x2a29,_0x2177d7={'dXlJl':_0x1e9391(0x132)};return _0x288c07['toString']()[_0x1e9391(0xc4)](_0x2177d7[_0x1e9391(0xb0)])['toString']()[_0x1e9391(0x289)](_0x288c07)[_0x1e9391(0xc4)](_0x2177d7['dXlJl']);});_0x288c07();const options=global[_0x1291d9(0x2bf)](_0x1291d9(0xda)),PostSocai=require('../../libs/post-socai'),transaction=global['getModel'](_0x1291d9(0x21b)),dvcs=global['getModel']('dvcs'),Evoucher=global[_0x1291d9(0x2bf)](_0x1291d9(0xbc)),department=global[_0x1291d9(0x2bf)](_0x1291d9(0x215)),dmcpmh=global['getModel'](_0x1291d9(0x22f)),customer=global[_0x1291d9(0x2bf)](_0x1291d9(0x156)),service=global['getModel'](_0x1291d9(0x10f)),dmdt=global['getModel']('dmdt'),dmphi=global[_0x1291d9(0x2bf)]('dmphi'),contract=global[_0x1291d9(0x2bf)]('contract'),trangthai=global[_0x1291d9(0x2bf)](_0x1291d9(0xa1)),currency=global[_0x1291d9(0x2bf)](_0x1291d9(0x1e4)),ptthanhtoan=global[_0x1291d9(0x2bf)](_0x1291d9(0x121)),dmdiemthuong=global[_0x1291d9(0x2bf)](_0x1291d9(0x98)),onepay=global[_0x1291d9(0x2bf)](_0x1291d9(0x191)),model=global['getModel'](_0x1291d9(0x1d4)),controller=require(_0x1291d9(0x14f)),async=require(_0x1291d9(0x176)),Moment=require(_0x1291d9(0xfd)),ma_ct=_0x1291d9(0xa2),ckdiem=require('../../libs/ckdiem'),getPointBalance=async(_0x298b50,_0x33be8a)=>{const _0x5b8cf6={'lWXDU':function(_0x546e26,_0x1754e4){return _0x546e26(_0x1754e4);},'sAFBs':function(_0x4b8462,_0x1b7fef){return _0x4b8462===_0x1b7fef;},'OUjep':function(_0x13046a,_0x52b55c,_0x28f38d){return _0x13046a(_0x52b55c,_0x28f38d);}},_0x3be37f=new Promise((_0x55e1b1,_0x5c894e)=>{const _0x5de1b9=_0x2a29;_0x5b8cf6[_0x5de1b9(0xe7)](ckdiem,{'id_app':_0x298b50,'email':_0x33be8a},(_0x539f17,_0x50069c)=>{const _0x1370b2=_0x5de1b9;if(_0x539f17)return _0x5c894e(new Error(_0x539f17));_0x5b8cf6[_0x1370b2(0x24c)](_0x55e1b1,_0x5b8cf6[_0x1370b2(0xde)](_0x50069c[_0x1370b2(0x236)],0x0)?0x0:_0x50069c[0x0][_0x1370b2(0x139)]);});});return _0x3be37f;},createTransactionPayment=async function(_0x331a75){const _0x129a24=_0x1291d9,_0x46cca9={'ooKBN':function(_0x43c6cf,_0x8d6043){return _0x43c6cf(_0x8d6043);},'eHDyX':function(_0x440b8f){return _0x440b8f();},'trQeq':function(_0x502f67,_0x5e1fd3){return _0x502f67===_0x5e1fd3;},'UPXpf':_0x129a24(0x2a0),'TaTeP':'cdRyP'};await transaction[_0x129a24(0xd3)]({'id_ct':_0x331a75['_id']['toString']()});if(!_0x331a75['paymentByPoints']){if(_0x46cca9[_0x129a24(0x206)](_0x129a24(0x290),_0x46cca9[_0x129a24(0xdb)]))return _0x46cca9[_0x129a24(0x15b)](_0x1eb0ad,{});else return;}let _0x1313ef=_0x331a75[_0x129a24(0x186)];if(!_0x1313ef&&_0x331a75[_0x129a24(0xbd)]&&_0x331a75[_0x129a24(0xbd)][_0x129a24(0x236)]>0x0){_0x1313ef=_0x331a75[_0x129a24(0xbd)][0x0][_0x129a24(0x2b5)];if(!_0x1313ef)try{_0x1313ef=await service[_0x129a24(0x2a4)](_0x331a75[_0x129a24(0xef)],{'service_code':_0x331a75[_0x129a24(0xbd)][0x0][_0x129a24(0x193)]},_0x129a24(0x2b5));}catch(_0xb82b2a){_0x46cca9['trQeq'](_0x46cca9[_0x129a24(0x23e)],_0x129a24(0x270))?_0x46cca9[_0x129a24(0x234)](_0x1c9ae4):console['log'](_0xb82b2a[_0x129a24(0xad)],_0x331a75[_0x129a24(0xbd)][0x0]['service_code']);}}await transaction[_0x129a24(0x13e)]({'id_app':_0x331a75[_0x129a24(0xef)],'sender_email':_0x331a75[_0x129a24(0x23d)],'receiver_email':_0x331a75[_0x129a24(0xef)],'amount':_0x331a75[_0x129a24(0x261)],'description':'Thanh\x20toán\x20dịch\x20vụ\x20'+(_0x1313ef||''),'otherData':{'ma_ct':_0x331a75['ma_ct'],'so_ct':_0x331a75[_0x129a24(0xb9)],'ngay_ct':_0x331a75['ngay_ct'],'id_ct':_0x331a75[_0x129a24(0x17b)][_0x129a24(0x275)]()}});},createTransactionBonus=async function(_0x2ff2d){const _0x309b5a=_0x1291d9,_0x1fae93={'BLaPQ':function(_0x447615,_0x1ce981){return _0x447615(_0x1ce981);},'xzEdc':function(_0x3114e9,_0x516d07){return _0x3114e9(_0x516d07);},'zrXvN':function(_0x5ec4b0,_0x2d2282){return _0x5ec4b0||_0x2d2282;},'CpXSc':function(_0x2406ed,_0x276ce4,_0x1dab62){return _0x2406ed(_0x276ce4,_0x1dab62);},'GFLfG':function(_0x52a2fc){return _0x52a2fc();},'sJxvC':'so_hd','ohrLg':function(_0xb99eab,_0x54e7bb){return _0xb99eab==_0x54e7bb;},'BEuEc':function(_0x291b81,_0x44fbd7){return _0x291b81===_0x44fbd7;},'pmLZP':'OpPja','KPMTv':function(_0x3e9653,_0x763b5d){return _0x3e9653+_0x763b5d;},'KppAE':_0x309b5a(0x208),'rukng':_0x309b5a(0x29d),'DTodF':function(_0x5d5391,_0x56045f){return _0x5d5391!==_0x56045f;},'vhWRO':_0x309b5a(0x167),'DhNZd':_0x309b5a(0x233),'lcyjD':function(_0x234c54,_0x30f75b){return _0x234c54+_0x30f75b;},'OYWgp':function(_0x545734,_0x593548){return _0x545734+_0x593548;},'fqqFD':_0x309b5a(0x1be),'ihDOq':'yNGqe','rvaUH':_0x309b5a(0x282),'KAmeQ':'ccUSP','XfQpn':function(_0x3e236d,_0x3c9e29){return _0x3e236d*_0x3c9e29;},'wyXlO':'RRIsZ','vpGQv':function(_0x156961,_0xb3fac3){return _0x156961+_0xb3fac3;},'NEIRh':_0x309b5a(0xe2)};if(!(_0x2ff2d['trang_thai']=='5'||_0x1fae93['ohrLg'](_0x2ff2d[_0x309b5a(0x122)],'4'))){if(_0x1fae93[_0x309b5a(0x19f)](_0x1fae93[_0x309b5a(0xa0)],_0x1fae93[_0x309b5a(0xa0)]))return await transaction[_0x309b5a(0xd3)]({'id_ct':_0x1fae93[_0x309b5a(0x235)](_0x2ff2d[_0x309b5a(0x17b)][_0x309b5a(0x275)](),_0x1fae93['KppAE'])},_0x1fae93[_0x309b5a(0x1d5)]),null;else{if(_0x5a704e)return _0x1fae93['BLaPQ'](_0x1345bd,new _0x164081(_0x58ea4f[_0x309b5a(0xad)]));if(_0x2532db)return _0x1fae93[_0x309b5a(0x263)](_0x559aad,![]);return _0x1fae93[_0x309b5a(0x2cf)](_0x239438,!![]);}}let _0x4e4f4f=await customer[_0x309b5a(0xfb)]({'id_app':_0x2ff2d[_0x309b5a(0xef)],'ma_kh':_0x2ff2d[_0x309b5a(0x9e)]});if(!_0x4e4f4f){if(_0x1fae93[_0x309b5a(0x2af)](_0x1fae93[_0x309b5a(0x169)],_0x1fae93[_0x309b5a(0x136)])){await transaction[_0x309b5a(0xd3)]({'id_ct':_0x1fae93[_0x309b5a(0x96)](_0x2ff2d['_id'][_0x309b5a(0x275)](),_0x1fae93[_0x309b5a(0x1e3)])},_0x1fae93[_0x309b5a(0x1d5)]);return;}else{const _0x1530a3={'NyBRw':function(_0x672050,_0x5dca73){return _0x672050(_0x5dca73);},'gPrKo':function(_0x3e5c88,_0x12fdac){const _0x14ccf9=_0x309b5a;return _0x1fae93[_0x14ccf9(0x1b8)](_0x3e5c88,_0x12fdac);}};_0x56cc84[_0x309b5a(0xfb)]({'id_app':_0x3e41cd[_0x309b5a(0xef)],'_id':_0xc62dd2[_0x309b5a(0x114)]})['lean']()[_0x309b5a(0x1ea)]((_0x508408,_0x2963ab)=>{const _0x2b457e=_0x309b5a;if(_0x508408)_0x2a2518[_0x2b457e(0x2c5)](_0x508408);_0x1530a3[_0x2b457e(0x91)](_0x206f5f,_0x1530a3[_0x2b457e(0x12a)](_0x2963ab,{}));});}}let _0x750780=_0x1fae93[_0x309b5a(0x17f)]((await model[_0x309b5a(0x24f)]({'id_app':_0x2ff2d[_0x309b5a(0xef)],'ma_kh':_0x2ff2d[_0x309b5a(0x9e)],'ngay_ct':{'$lte':_0x2ff2d['ngay_ct']}}))['length'],0x1),_0x2c025b,_0x56d83d=_0x1fae93[_0x309b5a(0x263)](Moment,new Date())['startOf'](_0x1fae93[_0x309b5a(0x1a1)])[_0x309b5a(0x2be)](),_0x253152={'id_app':_0x2ff2d[_0x309b5a(0xef)],'status':!![],'ma_kh':{'$in':[null,'',_0x4e4f4f[_0x309b5a(0x9e)]]},'nh_kh':{'$in':[null,'',_0x4e4f4f[_0x309b5a(0x2d8)]]},'hieu_luc_tu':{'$lte':_0x56d83d},'hieu_luc_den':{'$gte':_0x56d83d},'ap_dung_lan_mua_thu':{'$in':[0x0,_0x750780]}},_0x212941=await dmdiemthuong['find'](_0x253152)[_0x309b5a(0x2d0)]({'hieu_luc_tu':-0x1})[_0x309b5a(0x99)](0x1);if(_0x212941[_0x309b5a(0x236)]===0x0){if(_0x1fae93[_0x309b5a(0x2af)](_0x1fae93[_0x309b5a(0x19d)],_0x309b5a(0x25b)))_0x1fae93[_0x309b5a(0x25c)](_0x5cca6d,null,_0x49631e);else{await transaction[_0x309b5a(0xd3)]({'id_ct':_0x1fae93[_0x309b5a(0x235)](_0x2ff2d[_0x309b5a(0x17b)]['toString'](),_0x309b5a(0x208))},_0x1fae93[_0x309b5a(0x1d5)]);return;}}if(!_0x212941[0x0][_0x309b5a(0x222)]){if(_0x1fae93[_0x309b5a(0x29b)]===_0x1fae93['KAmeQ'])_0x35465a['tien']=_0xf55e61[_0x309b5a(0x2a2)],_0x2ff7f6[_0x309b5a(0x26e)]=_0x19c3b1[_0x309b5a(0x1bb)],_0x5489a0[_0x309b5a(0x1b9)]=_0x5ec2ee[_0x309b5a(0xea)],_0x4080f2[_0x309b5a(0x133)]=_0x2d1143[_0x309b5a(0x209)];else{let _0x471203=_0x2ff2d[_0x309b5a(0xbd)][_0x309b5a(0x2df)](_0x149368=>_0x149368[_0x309b5a(0x26e)])[_0x309b5a(0x9c)](_0x4db7b1=>_0x4db7b1['sl_xuat']||0x0)[_0x309b5a(0x108)]((_0x45592c,_0x897fa8)=>_0x45592c+_0x897fa8,0x0);_0x2c025b=Math[_0x309b5a(0x27d)](_0x212941[0x0][_0x309b5a(0x232)]*_0x471203,0x0);}}else{let _0xa444e3=_0x212941[0x0][_0x309b5a(0x232)]/_0x212941[0x0][_0x309b5a(0x222)];if(!_0xa444e3)return;let _0x2e8099=_0x2ff2d['details']['map'](_0x20f506=>_0x20f506['tien_hang']-(_0x20f506[_0x309b5a(0x1b9)]||0x0))['reduce']((_0x24e328,_0x3c7147)=>_0x24e328+_0x3c7147,0x0);_0x2c025b=Math[_0x309b5a(0x27d)](_0x1fae93[_0x309b5a(0x29e)](_0x2e8099,_0xa444e3),0x0);}if(!_0x2c025b){await transaction[_0x309b5a(0xd3)]({'id_ct':_0x2ff2d[_0x309b5a(0x17b)]['toString']()+_0x309b5a(0x208)},_0x309b5a(0x29d));return;}let _0x4d4f9b=await transaction[_0x309b5a(0xfb)]({'id_ct':_0x1fae93['OYWgp'](_0x2ff2d[_0x309b5a(0x17b)]['toString'](),_0x1fae93[_0x309b5a(0x1e3)])});if(_0x4d4f9b&&_0x4d4f9b['amount']===_0x2c025b){if(_0x1fae93[_0x309b5a(0x2af)](_0x1fae93[_0x309b5a(0x22c)],_0x1fae93[_0x309b5a(0x22c)])){const _0x4cd2f2={'YuOJb':function(_0x4c154){return _0x1fae93['GFLfG'](_0x4c154);}},_0x306b8a=_0x75c6b[_0x309b5a(0xbd)]||[];_0x306b8a[_0x309b5a(0x170)](_0x1b6e6a,_0x489b7b,[{'where':{'ma_hd':_0x1fae93[_0x309b5a(0x130)]},'fields':'ten_hd'}],function(){const _0x10b85d=_0x309b5a;_0x4cd2f2[_0x10b85d(0x2c9)](_0x4043c6);});}else return;}await transaction['deleteTrans']({'id_ct':_0x1fae93[_0x309b5a(0x8f)](_0x2ff2d['_id'][_0x309b5a(0x275)](),_0x1fae93[_0x309b5a(0x1e3)])},_0x1fae93['rukng']);const _0xd2ca01=await transaction[_0x309b5a(0x13e)]({'id_app':_0x2ff2d[_0x309b5a(0xef)],'sender_email':_0x2ff2d[_0x309b5a(0xef)],'receiver_email':_0x2ff2d[_0x309b5a(0x23d)],'amount':_0x2c025b,'description':_0x1fae93[_0x309b5a(0x2ac)],'otherData':{'ma_ct':_0x2ff2d[_0x309b5a(0x161)],'so_ct':_0x2ff2d['so_ct'],'ngay_ct':_0x2ff2d[_0x309b5a(0x1da)],'id_ct':_0x2ff2d[_0x309b5a(0x17b)][_0x309b5a(0x275)]()+_0x1fae93[_0x309b5a(0x1e3)]}});return _0xd2ca01;},isFree=async(_0x28a47b,_0x2423b1,_0x213df7,_0x3a7326)=>{const _0x5baf8f=_0x1291d9,_0x1ab40b={'MOvPa':_0x5baf8f(0xd1),'MQdhL':_0x5baf8f(0xed),'DgovX':_0x5baf8f(0x12f)};let _0x1f7709=await department[_0x5baf8f(0x2a4)](_0x28a47b,{'department_code':_0x2423b1},_0x1ab40b[_0x5baf8f(0xfe)]);if(!_0x1f7709)return!![];let _0x5d4898={'id_app':_0x28a47b,'details':{'$elemMatch':{'department_code':_0x2423b1}},'$or':[{'ngay_den':{'$gte':_0x213df7,'$lte':_0x3a7326}},{'ngay_di':{'$gte':_0x213df7,'$lte':_0x3a7326}},{'$and':[{'ngay_den':{'$lte':_0x3a7326}},{'ngay_di':{'$gte':_0x3a7326}}]}],'trang_thai':{'$ne':'9'}},_0x46709c=new Promise((_0x1efbdd,_0x378c8b)=>{const _0x52fd61=_0x5baf8f,_0x2548cd={'TgKhw':_0x1ab40b['MOvPa'],'xNdpi':function(_0x3c001d,_0x2297d9){return _0x3c001d(_0x2297d9);}};_0x1ab40b[_0x52fd61(0x22d)]===_0x52fd61(0xe3)?(_0x151cff['log'](_0x2548cd[_0x52fd61(0x25d)],_0x4d248f[_0x52fd61(0xad)]),_0x3a7b6e['virtual_payment_client_url']=''):model['findOne'](_0x5d4898)[_0x52fd61(0x17d)]()['exec']((_0x60b7bd,_0x27d9e9)=>{const _0x36e20d=_0x52fd61;if(_0x60b7bd)return _0x378c8b(new Error(_0x60b7bd[_0x36e20d(0xad)]));if(_0x27d9e9)return _0x1efbdd(![]);return _0x2548cd[_0x36e20d(0xf2)](_0x1efbdd,!![]);});});return _0x46709c;},checkEvoucher=(_0x3f56f7,_0x26585f)=>{const _0x33c0c0=_0x1291d9,_0x5ceca2={'fOXtB':function(_0x3c4c4c,_0x5f2e01){return _0x3c4c4c(_0x5f2e01);},'dQapR':function(_0x3319b5,_0x3421eb){return _0x3319b5===_0x3421eb;},'xmleH':_0x33c0c0(0x253),'QloNa':function(_0x34343c,_0x54db03){return _0x34343c*_0x54db03;},'EcrRl':function(_0x529396,_0x56e312){return _0x529396>_0x56e312;},'Wxlod':function(_0x4a5f7e,_0x4267d1){return _0x4a5f7e!==_0x4267d1;},'lhroB':'pbTzN','FfONi':function(_0x135980,_0x45b6f7){return _0x135980!==_0x45b6f7;}};return(_0x26585f['evouchers']||[])['map'](_0xefe499=>{const _0xc9cf56=_0x33c0c0,_0xdc46e3={'NEsNj':function(_0x249ea5,_0xfdd32d){const _0x12ee28=_0x2a29;return _0x5ceca2[_0x12ee28(0x183)](_0x249ea5,_0xfdd32d);},'oJCkU':function(_0x44192c,_0x400bcb){const _0x164d1e=_0x2a29;return _0x5ceca2[_0x164d1e(0x183)](_0x44192c,_0x400bcb);},'YVKYT':function(_0x49b0ef,_0x19eeab){return _0x49b0ef!==_0x19eeab;},'uhbaK':function(_0x15606b,_0x5becd9){return _0x5ceca2['fOXtB'](_0x15606b,_0x5becd9);},'Enpwa':function(_0x4b6c42,_0x22c007){return _0x4b6c42<_0x22c007;},'EsmBb':function(_0x51fa14,_0x5e7bb8){const _0x2280a2=_0x2a29;return _0x5ceca2[_0x2280a2(0xee)](_0x51fa14,_0x5e7bb8);},'LVRkP':_0x5ceca2['xmleH'],'hKOsT':function(_0x51ad86,_0x42a2e7){const _0x1948d2=_0x2a29;return _0x5ceca2[_0x1948d2(0x100)](_0x51ad86,_0x42a2e7);},'cZGco':_0xc9cf56(0x213),'clxau':function(_0x529edd,_0x40c4c1){const _0x395f7b=_0xc9cf56;return _0x5ceca2[_0x395f7b(0x254)](_0x529edd,_0x40c4c1);},'ZGSwC':function(_0x496a15,_0x541407){const _0x2458d9=_0xc9cf56;return _0x5ceca2[_0x2458d9(0x2c2)](_0x496a15,_0x541407);},'yJOOm':function(_0x273f74,_0x43b6b3){return _0x273f74!==_0x43b6b3;},'oSHQA':_0x5ceca2['lhroB']};if(_0x5ceca2[_0xc9cf56(0x175)](_0xc9cf56(0x95),_0xc9cf56(0x25a)))return new Promise((_0x5a4b8b,_0x519e6d)=>{const _0x5dcd0d=_0xc9cf56,_0x2d2410={'jiZww':function(_0x2387dc,_0x21c0d9){const _0x22af34=_0x2a29;return _0xdc46e3[_0x22af34(0x2a3)](_0x2387dc,_0x21c0d9);},'UuIfA':function(_0x33fc8a,_0x363445){const _0x48ef45=_0x2a29;return _0xdc46e3[_0x48ef45(0x25e)](_0x33fc8a,_0x363445);},'cKEpW':function(_0x560609,_0x27e103){return _0xdc46e3['YVKYT'](_0x560609,_0x27e103);},'yzrNh':function(_0x8115d8,_0x4fb42b){return _0xdc46e3['YVKYT'](_0x8115d8,_0x4fb42b);},'MKHHK':function(_0x266c40,_0x122ed2){const _0x23bd86=_0x2a29;return _0xdc46e3[_0x23bd86(0x1ac)](_0x266c40,_0x122ed2);},'dpKyZ':function(_0x27eea8,_0x23206b){const _0x44dc6f=_0x2a29;return _0xdc46e3[_0x44dc6f(0x125)](_0x27eea8,_0x23206b);},'fsZyL':_0x5dcd0d(0x1be),'mULQZ':function(_0x596965,_0x34c78d){const _0x1a3f8d=_0x5dcd0d;return _0xdc46e3[_0x1a3f8d(0xd5)](_0x596965,_0x34c78d);},'bqcOn':_0xdc46e3[_0x5dcd0d(0x135)],'HilJi':function(_0x206778,_0x4b0742){const _0x6f4e3d=_0x5dcd0d;return _0xdc46e3[_0x6f4e3d(0x90)](_0x206778,_0x4b0742);},'CLnQw':_0xdc46e3[_0x5dcd0d(0x299)],'xQwOr':_0x5dcd0d(0xab),'ticJE':function(_0x171392,_0x2021b0){const _0x355598=_0x5dcd0d;return _0xdc46e3[_0x355598(0x1ee)](_0x171392,_0x2021b0);},'aNcEz':function(_0x93eefd,_0x30d5c6){return _0xdc46e3['ZGSwC'](_0x93eefd,_0x30d5c6);},'JrkQv':function(_0x3a376b,_0x6bc760){const _0x3d9823=_0x5dcd0d;return _0xdc46e3[_0x3d9823(0x2a3)](_0x3a376b,_0x6bc760);},'VgdTj':function(_0x4bf73f,_0x321597){const _0x21a2cc=_0x5dcd0d;return _0xdc46e3[_0x21a2cc(0x1ac)](_0x4bf73f,_0x321597);}};if(_0xdc46e3[_0x5dcd0d(0x24d)](_0xdc46e3[_0x5dcd0d(0x1f5)],_0xdc46e3['oSHQA'])){if(_0x332a1e>_0xa36bca['so_tien_max'])_0x520244=_0x2f9480[_0x5dcd0d(0x18e)];}else((async()=>{const _0x21e984=_0x5dcd0d,_0x578d12={'rVxYy':function(_0x26bb86,_0x24eae7){return _0x2d2410['jiZww'](_0x26bb86,_0x24eae7);}},_0x394dbc=await Evoucher['findOne']({'_id':_0xefe499['_id']});if(!_0x394dbc)return _0x2d2410[_0x21e984(0xcf)](_0x519e6d,new Error(_0x21e984(0xb7)+_0xefe499['ma']+_0x21e984(0x126)));if(_0x394dbc['id_ct_used']&&_0x2d2410[_0x21e984(0x278)](_0x394dbc['id_ct_used'],(_0x26585f['_id']||'')[_0x21e984(0x275)]()))return _0x2d2410[_0x21e984(0xdd)](_0x519e6d,new Error(_0x21e984(0xb7)+_0xefe499['ma']+'\x20đã\x20được\x20sử\x20dụng'));if(_0x394dbc[_0x21e984(0x257)]&&_0x2d2410['yzrNh'](_0x394dbc[_0x21e984(0x257)],_0x26585f[_0x21e984(0x23d)]||_0x3f56f7[_0x21e984(0x105)]))return _0x2d2410['MKHHK'](_0x519e6d,new Error(_0x21e984(0xb7)+_0xefe499['ma']+'\x20không\x20hợp\x20lệ'));const _0x4a0fc3=new Date(_0x26585f['date_created']);if(_0x2d2410[_0x21e984(0x118)](_0x2d2410[_0x21e984(0xdd)](Moment,_0x394dbc[_0x21e984(0x10d)])['endOf'](_0x2d2410[_0x21e984(0x2e2)])[_0x21e984(0x2be)]()[_0x21e984(0xe9)](),_0x4a0fc3[_0x21e984(0xe9)]()))return _0x2d2410[_0x21e984(0xcf)](_0x519e6d,new Error(_0x21e984(0xb7)+_0xefe499['ma']+_0x21e984(0x2da)));let _0x6a2ba7=_0x394dbc[_0x21e984(0x243)];_0x394dbc['ty_le']&&(_0x2d2410[_0x21e984(0x22b)](_0x21e984(0x158),_0x2d2410[_0x21e984(0xb4)])?_0x3088b4[_0x21e984(0x27a)]=_0x1d9032['tk_cn']:_0x6a2ba7=Math[_0x21e984(0x27d)](_0x2d2410['HilJi'](_0x26585f['details']['map'](_0x4fccb6=>_0x4fccb6[_0x21e984(0x1bb)])['reduce']((_0x5ec398,_0x38586b)=>_0x5ec398+_0x38586b,0x0),_0x394dbc[_0x21e984(0x15d)])/0x64));if(_0x394dbc[_0x21e984(0x18e)]){if(_0x2d2410[_0x21e984(0x2d6)]!==_0x2d2410[_0x21e984(0x1df)]){if(_0x2d2410[_0x21e984(0x2e4)](_0x6a2ba7,_0x394dbc[_0x21e984(0x18e)]))_0x6a2ba7=_0x394dbc['so_tien_max'];}else _0x21a965[_0x21e984(0xfb)](_0x3833db)[_0x21e984(0x17d)]()[_0x21e984(0x1ea)]((_0x52d92c,_0x4a081a)=>{const _0x978e2d=_0x21e984;if(_0x52d92c)return _0x578d12[_0x978e2d(0x1ec)](_0x15b3c0,new _0x58ac4f(_0x52d92c[_0x978e2d(0xad)]));if(_0x4a081a)return _0x578d12[_0x978e2d(0x1ec)](_0x4af6ae,![]);return _0x578d12[_0x978e2d(0x1ec)](_0x4cf81c,!![]);});}if(_0x2d2410[_0x21e984(0x1f2)](_0xefe499[_0x21e984(0xc9)],_0x6a2ba7))return _0x2d2410['JrkQv'](_0x519e6d,new Error(_0x21e984(0x26a)+_0xefe499['ma']+_0x21e984(0x226)));_0x2d2410[_0x21e984(0x26d)](_0x5a4b8b,!![]);})());});else _0x5824aa[_0xc9cf56(0x27a)]=_0x104239[_0xc9cf56(0x2b8)];});},valid=async function(_0x33c33d,_0x553067,_0x7ca80e){const _0x5a168c=_0x1291d9,_0xfeb777={'DdZpw':function(_0x28d9cc,_0x279aa1){return _0x28d9cc(_0x279aa1);},'lTgMl':function(_0x5dfe91){return _0x5dfe91();},'VAPlg':function(_0x4a3b16,_0x191954){return _0x4a3b16!==_0x191954;},'VbMsq':_0x5a168c(0x2a5),'zBBWo':'zneIA','HGdZj':function(_0x174b97,_0x32d698){return _0x174b97(_0x32d698);},'QKZAk':function(_0x7fa6f9,_0x293874){return _0x7fa6f9(_0x293874);},'Rtlab':_0x5a168c(0xba),'SSSJd':_0x5a168c(0xc1),'KhQBy':function(_0x417f66,_0x36a8d4,_0x4139cb){return _0x417f66(_0x36a8d4,_0x4139cb);},'gjZqu':function(_0x5f4f2d,_0x30c558){return _0x5f4f2d(_0x30c558);},'PuUdR':function(_0x4765b8,_0x413143){return _0x4765b8(_0x413143);},'agkQD':function(_0x1e375a,_0x156be9){return _0x1e375a<_0x156be9;},'yAVWi':function(_0x52fe27,_0x321c04){return _0x52fe27===_0x321c04;},'cfCWS':'VND'};try{if(_0xfeb777[_0x5a168c(0x2e3)]!==_0xfeb777['SSSJd'])return _0xfeb777[_0x5a168c(0x144)](_0x3e0026,_0x5a168c(0x16b));else{const _0x3eb4d4=_0xfeb777[_0x5a168c(0x1ab)](checkEvoucher,_0x33c33d,_0x553067);await Promise[_0x5a168c(0x12e)](_0x3eb4d4);}}catch(_0x19fb82){return _0xfeb777['gjZqu'](_0x7ca80e,_0x19fb82['message']);}if(_0x553067[_0x5a168c(0x261)])try{let _0x85776f=await currency[_0x5a168c(0xbf)](_0x553067[_0x5a168c(0xef)],_0x553067[_0x5a168c(0xdf)]);_0x553067[_0x5a168c(0xf5)]=_0x553067[_0x5a168c(0x261)]*_0x85776f;}catch(_0x4e02b7){return _0xfeb777[_0x5a168c(0x1c8)](_0x7ca80e,_0x4e02b7[_0x5a168c(0xad)]);}for(let _0x32e770=0x0;_0xfeb777[_0x5a168c(0x29a)](_0x32e770,_0x553067[_0x5a168c(0xbd)][_0x5a168c(0x236)]);_0x32e770++){const _0x50abaa=_0x553067['details'][_0x32e770];_0x50abaa[_0x5a168c(0x141)]=_0x32e770,_0xfeb777[_0x5a168c(0xa7)](_0x553067[_0x5a168c(0xdf)],_0xfeb777[_0x5a168c(0x1bc)])&&(_0x50abaa[_0x5a168c(0x222)]=_0x50abaa[_0x5a168c(0x2a2)],_0x50abaa[_0x5a168c(0x26e)]=_0x50abaa['tien_hang_nt'],_0x50abaa['tien_ck']=_0x50abaa[_0x5a168c(0xea)],_0x50abaa[_0x5a168c(0x133)]=_0x50abaa['gia_ban_nt']);}!_0x553067[_0x5a168c(0xe6)]?dvcs[_0x5a168c(0xfb)]({'id_app':_0x33c33d[_0x5a168c(0x19c)]},{'_id':0x1},function(_0xe5af51,_0x29c60b){const _0x9f38fc=_0x5a168c;if(_0xfeb777[_0x9f38fc(0x28c)](_0xfeb777['VbMsq'],_0xfeb777[_0x9f38fc(0x147)])){if(_0xe5af51)return _0xfeb777[_0x9f38fc(0x2bc)](_0x7ca80e,_0xe5af51);return _0x29c60b?(_0x553067[_0x9f38fc(0xe6)]=_0x29c60b[_0x9f38fc(0x17b)][_0x9f38fc(0x275)](),_0x7ca80e(null,_0x553067)):_0xfeb777['QKZAk'](_0x7ca80e,_0xfeb777['Rtlab']);}else _0xfeb777[_0x9f38fc(0x2e5)](_0x399415);}):_0x7ca80e(null,_0x553067);};function _0x4924(){const _0x348b7c=['EunOAum','zxjYB3iGy3jLyxrLifzPCNr1ywWGugf5BwvUDcbdBgLLBNrvuKW','vefzBfO','AgLLDv9SDwnFzgvU','EMLAsNm','C2vYDMLJzq','BfnJwhi','uuL5yKq','DgHLBG','ug96thi','ChrFDgHHBMHFDg9HBG','whPXBLa','u3n5Bgm','ru1kyKq','zhblEvO','AxrvBuG','tuLqseK','D3vTu08','DgvUx2HK','BMDws2G','rLfHCee','zNbRyw0','yu9Qq08','Chr0AgfUAhrVyw4','DhjHBMDFDgHHAq','B3vbvgu','uLngAKm','rw5WD2e','igTOW7rUzYb04BUtBIb04BQHAq','y1DpBNi','uLzlEeW','z3PtthO','z1bYs28','wxvMCfG','yxbWBhK','z0zAEK0','ywXS','yxv0B19JAgvJA19HDMfPBgfIBgu','C0P4DKm','sfffA08','kcGOlISPkYKRksSK','z2LHx2jHBG','q2zSuMC','tfzsA1a','rgHowMq','Cu9TtNe','Duvrr2S','Dg9Umda','wgjHAMS','u1fJD1i','CxLZv2y','DxfbDxm','y3jLyxrLvhjHBNm','z3rszwO','CeTJv1i','BgLUzq','uxrPBem','vLPUz2O','rgrAChC','vLjhvKC','zgvSzxrLza','EKjcv28','Cwjlww8','sNPhBwm','u1vtBNu','EKLsA2q','Df90AwvUx250','BwfMzMW','DgTFzhq','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCG','svPlDxi','AxLOuvu','v3zMv24','EMjJBgS','renIC2q','tgjAy1i','y3vZDg9Tzxi','Df9JCf9JCgi','sejZq2C','Berpv0u','AgzyBgS','B29lqK4','BuTdCwm','DhLFBgu','ru5OEwS','s3LVC2e','AgTQz1a','BwfFy3q','wuPSA24','Df9ZBa','reHwAvi','s2vZBKC','wM9UCvO','ELjQz1m','C29FAgq','DMHxuK8','wKz0u1q','qUg6Ow4GA2JdTg5NihrO4BUdigpHUQ1Wig5O4BQTDcbZ4BUrimsrAEg7G20GDgHHBMGGDg/dOw4U','C3bSAxq','mtmXmteX','Df9JCf9JCgjFBNq','BxfNwNG','AM9PBK1VzgvSmG','Cg9ZDa','CNjjALC','EurNsNG','BxLqyNO','rMzptMK','yxn5BMm','odGZmdiYugrlEwPT','v2vXBeG','AhbWy3K','Au1kEfy','x2LK','r2jjq3i','BgvHBG','wwfTwe8','t1Lxz3a','DLLxExG','tereDNe','weTkDvC','zK9yDei','wuHOEgG','zePcC0m','zgLLBL9NAwfP','s3f1uLO','DNbir3e','nxW0Fdj8nNWWFdf8mW','CwTwDLq','sMfhwxK','Ag1MuNi','BMDHEv9NAwfVx2HHBMC','C29FDgLLBL9TyxG','yurUz1y','BwfFDhjHBMDFDgHHAq','B25LCgf5','v0ryD3O','C2vYDMLJzv9JB2rL','wvDWsMi','sM9wt2u','nti0ndu5n3zgtg5hzW','uuXJzxm','CwTrA0y','Bxfit3O','CgTHvfe','z0DyuLi','y3vYCMvUDf9Pzf9HCha','AwHet3e','ugXMte0','qKv1rwm','zMLUze9UzufUzfvWzgf0zq','zNfXrKq','u21or3O','u2DRwu0','y29dywi','zM9YrwfJAa','vhlHUQmGBog6OwKGXjfP4BUdBsb0AmAW4BUFBMC','C3rmuuG','AgfivwS','ChvHu1O','ntiXmq','s2HrqNK','DwHIyuS','B2jQx21VzgvS','ruf4uwG','zg5lwfG','vu5ezfi','AMHcB2i','r2vnEhm','CxDuBg0','A2Toz1G','wCoQDsbJ4BQNDsbJAog7Jw4GBEg7MxqGCgJdSM5N','B2rkCeO','Buz6AKy','ENjyDK4','DgLLBL9JAW','tMDOEuu','DgLLBL9Oyw5Nx250','y2zdv1m','DMLLDW','zgf0zq','y3rJCgjOCW','s2XeuLG','B1jutgW','rhj5CNG','weviCgy','u09SELu','AMzrsvq','AfHdywy','Cw1Hr24','uhvvzfi','EMD3yxi','Dg9mB3DLCKnHC2u','DgvUx2r0','BwfWu2vYAwvZ','nejXC25LEq','whvnv1K','ALvbtw8','zgvWyxj0BwvUDf9Uyw1L','BuTsD3e','yxrvDM8','yKTgu3u','C28Y','CNvRBMC','BgnTzuu','thbuwgi','DgLLBL9JA19Oza','D2nwzLu','BMDHEv9JDa','q3Hmvxu','BNfkEwG','qUg6Ow4GA2JdTg5NigpdSYdeKEg7PYdeKwNHU4nTimsr4BUdihrO4BUXyYbOAEg7H24Gz2LHBYbK4BUly2GGBSoGEs4','qvzLqMG','Eff3t3i','EKzevNq','tNrSu3C','DwPzBw0','s3bWquu','y3vYCMvUy3K','BvzhuxO','uensD1u','u2v0vK4','t3n0uMS','uNbutwS','zxHLyW','ugDyr0K','CLz4wxK','uunosfu','y2X4yxu','EenTt24','Df90Da','DgvUx2TO','yu5JrxO','vMfgrMe','DMjwDMu','B1niuue','zfz3CMq','vKrxDhu','D01xreK','vM5YExe','DwrVBwG','DgHHBMHFDg9HBL9Iyw5Nx2rPzw0','DNj3D3m','DuXAt1i','BhDXAuW','DxbKyxrLtwfUEq','CufmANO','BNDcDwi','zunHCgm','ExDxt3m','wNDsC2G','uMf6Ceq','Dhjrzxe','mJCXnZqWmJrNC09sD3O','oMjVBNvZ','z2LHx2jHBL9UDa','u0f2tuO','Df90AwvU','Au1Jtge','uMfTuNu','DgvUx2nW','EfLvuNO','whjrquO','EwPUt00','EMfXwMi','zNbHsum','rvz0zxC','zgvWyxj0BwvUDa','sKHdDKW','ywPvEfy','vhPMBLK','AMXwv1m','AvP4Eei','DhjHBNnHy3rPB24','twX5vue','r3rpq0W','BLHMCKK','rePlEgC','wgDMEw4','mhW1Fdn8mNW0Fdz8mq','DgLLBG','zxPAveG','mta5ndi0owPTBvnqAW','Dg9WDK8','igTOW7rUzYbO4BUJCcbS4BUh','rNHsuei','DgTFBM8','sLbjuNO','sLrevvC','BvvmuvO','D3LyBe8','tvfKAeW','swLpsgm','zg1JCg1O','DgTFDgW','BK5XqxG','zgLLBq','C2nQqMq','zuHeEvG','s1bnvhy','BgvUz3rO','s3fHC3O','tLjtEvm','sKr1qwO','sw5zvLa','DhjHx3rYDw9J','A1Hxt1a','DxnLCL9JCMvHDgvK','vgfuzva','DgvUx3rYyw5Nx3rOywK','y3jLyxrLvMLYDhvHBfbHEw1LBNrdBgLLBNrvuKW','Df9JAW','vgLQENm','C29FDgLLBG','y3jLyxrPBMC','y25RExC','ALPjtuu','nJm0nZq3mLDmuNjUrW','DgLLBL90Ahu','AKzOANq','zNPWzLm','DgLLBL9JCa','BfDyrfu','EuPpt20','zxHWB3j0CW','zMLUza','y29SB3i','wvjwv08','Df9JA19UDa','u3HnreO','rwnYuMW','qLrABNq','C2XFEhvHDa','DxnLCG','swfHtuW','B0j5q24','s2j2v1m','Eu5hCwu','q3byu2m','vgDlAhC','B0PdA1u','seHArNm','swPpsvC','Cgf5BwvUDej5ug9PBNrZ','uhDQzhm','EhPfzgm','BMDHEv9Kzw4','qw9ergu','uKzrDuy','zwfJAa','ufrNAwu','ug1Qufq','u+g7Ksb0AEg7Gw4Gz2NHUQnTignOBYb0Aog6UYa','qLP5zw0','EeXvEgm','vMDKvgO','DgLLBL9Oyw5N','tvPxqu4','Auvvvgy','ntiXmZe','rvvhyvK','C1nfEKS','BK1WvK4','Dg9tDhjPBMC','sg1eBgS','Df90AwvUx2HHBMDFBNq','y0TfCfC','vevwDvq','DgTFy28','BMzoBfq','qxr3re4','CM91BMrcEq','ChvZAa','CvDkBfy','r3PIAxu','BhvjwfC','yNreCKq','mZm1ody1nxfXC29HrW','C0nTv3C','uLfOrgm','s1jwAMW','DMLYDhvHBf9WyxLTzw50x2nSAwvUDf91CMW','D1nksLK','y29UC3rYDwn0B3i','vhPAD1u','ug5Ywhu','vKfqBgC','y252Evy','t0fnwKy','BMjPwwS','uKPrv3O','te9QA1q','sg1Ky1u','BwfFzhq','suD0u3C','wKHuD3O','D05kqvC','tvPtBfO','BwfFy3a','y1Phy28','ywDRuuq','CNzHvuG','zxzVDwnOzxjZ','vhlHUQmGBog6OwKGXjfP4BUdBsb0AmAW4BUFBMCGXjhHU4mGDmoTBMGGBog6OwK','wgzrCg4','CxzSExK','ruvxDK0','r1P3Ahm','DgLLBL9UDa','tKvZtMO','z2v0sw5MBW','rfjHy0m','t3vwA1q','uhbMr20','wvPys1i','vuLLDK0','s3nkDMu','y3n1Bq','tKvjuMG','s3fzB0K','Duzbvw4','rfrVzey','B3b0Aw9U','qvvbuuK','BwfFCgHP','v1DJqwy','wg5HBw0','C2vYDMLJzv9Uyw1L','DgTFy24','rNvJqxK','DgTFDgLLBG','Dgf4AKO','rePoz3C','Evrxvha','seDKwMO','t1z4Dhm','Dg9eyxrL','z2v0tw9KzwW','C3zJu3y','Dgnms1e','v3HSB2q','DgLLBL9LDM91y2HLCG','s2PxD0m','Bg9N','EgTlwMu','BMDHEv9KAq','uvz5sfu','wxvpsMi','v2Dquxe','Ew9MzMO','sKX6AvK','y2XPzw50sxa','C3juAwO','qKXHufe','C29YDa','CgH6yuO','qu5rvMO','DMner0O','CfPdC0u','Cw9Vwfa','q0XUuxC','DgTFy2S','BMHFA2G','vwzUwum','imsrW6mGAog6V3qGAog6Ow4GC+g7RsbK4BULBMC','qunjuKy','uxflvK4','rxvnDw4','tvL5txa','zMLSDgvY','DgTFDgLLBL9KyW','AwrFDhjHBNm','zNnAEuW','u1ntsMq','DgLJsKu','BfrNtwW','weveD28','DNbhuxy','AeTpC1q','tNLcuNC','ywrXvNy','whbOueq','EhfYB0S','C09eEhC','Bgn5AKq','yKLxAKK','zg1KAwvTDgH1B25N','BgLTAxq','yuPkwwu','C2vYAwvZ','BwfW','vNrgrK0','BwfFA2G','seHXsMe','Cg1mwLa','DhjHBMD0AgfP','u08Y','v0fJtue','C1jwyKq','vLHPyxC','wvfpC2W','Eufwv2K','u2HXrNy','teLKr3m','tgrorfG','C25MD1O','zgvWyxj0BwvUDf9JB2rL','BwvZC2fNzq','ruXRDwe','whHeAMi','zfHSsMW','y1fMz3y','DgLLBL9JCf9UDa','zfHiy2S','yNfJt24','q0LVwwK','txbQu2K','vgJHURSGBxvHigJdOg5Nia','DxbKyxrPBMC','C29Fy3q','q8o0BMCGDhKVy+g7RweGAmoGBMCGBSoGEsbJAmAWysbJW7mGBEg7MxqGXjhgOw4GDUg7IYbJXQeGC+g7NYbUW6bV','svDmD2S','zxzVDwnOzxi','zgv0ywLSCW','wvHmsuS','z2v0uMf0zq','ANLJu2i','yvbAuNq','ChrFz2LHB19Oyw5N','shnHqxG','C2vHCMnO','seDIvMm','y0f3CxG','rg1otxK','zwzfyMu','C29FDgLLBL9NAwfT','DgvUx3bOAq','seDss3C','nteXmte','y3Lls0W','Df90AwvUx2HHBMC','vxvjzKe','uMLHvwS','rxjYB3iGy3jLyxrLifzPCNr1ywWGugf5BwvUDcbdBgLLBNrvuKW','Awryvge','zgvSzxrLvhjHBNm','vunHvgG','rxnTqMi','DKDtAxa','DgvU','s1LoDfe','mxWYFdz8nxWZFdr8ma','B3b0Aw9UCW','vvbyCgy','AvrbwMS','AMLAD3C','C0fgqNm','BwfFBNq','r2nyEha','Ee9yBMm','XjbP4BUdBsb0AmAW4BUFBMCGC+g7RsbK4BULBMCGzog7I2nOihBHU6u','CuDtv2e','txveENy','ze1dBvi','BwfFzhzJCW','t1vQzxa','B01JA0K','z2v0vgLTzq','DgLLBL9JA19UDa','zu56veO','ENzWDu4','D0Tsv0C','zffHCfi','AwrFyxbW','ALvMvuu','mteXmq','Ee5KCgK','q0XTv3u','CNvU','DgLLBL9WyxLTzw50qNLqB2LUDhm','z3Pvvum','wMTyB0S','CgTrDxi','A0LPtui','mZqZndm4y2PNsKPS','zMLUze9Uzq','seDPBK4','Bw9Tzw50','rgDVDLG','BwnrC0W','uwXVtMe','z3LPEw0','CLHdCgq','vwjwseW','rNHpB0S','zw1HAwW','BK5ZB3K','ALfvt3G','CMvKDwnL','CwrezfC'];_0x4924=function(){return _0x348b7c;};return _0x4924();}function _0x2a29(_0x2cea8d,_0x14fc4b){const _0x5f34c7=_0x4924();return _0x2a29=function(_0x288c07,_0x2ca94e){_0x288c07=_0x288c07-0x8e;let _0x49244c=_0x5f34c7[_0x288c07];if(_0x2a29['pXjNmI']===undefined){var _0x2a2961=function(_0x4dca9b){const _0x153d99='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x251b3f='',_0x4f88c3='',_0xbc6c55=_0x251b3f+_0x2a2961;for(let _0x32150a=0x0,_0x57a37c,_0x3a1cf7,_0x52a932=0x0;_0x3a1cf7=_0x4dca9b['charAt'](_0x52a932++);~_0x3a1cf7&&(_0x57a37c=_0x32150a%0x4?_0x57a37c*0x40+_0x3a1cf7:_0x3a1cf7,_0x32150a++%0x4)?_0x251b3f+=_0xbc6c55['charCodeAt'](_0x52a932+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x57a37c>>(-0x2*_0x32150a&0x6)):_0x32150a:0x0){_0x3a1cf7=_0x153d99['indexOf'](_0x3a1cf7);}for(let _0x19aff9=0x0,_0x53c49c=_0x251b3f['length'];_0x19aff9<_0x53c49c;_0x19aff9++){_0x4f88c3+='%'+('00'+_0x251b3f['charCodeAt'](_0x19aff9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4f88c3);};_0x2a29['swXGIM']=_0x2a2961,_0x2cea8d=arguments,_0x2a29['pXjNmI']=!![];}const _0x3203d7=_0x5f34c7[0x0],_0x5b5355=_0x288c07+_0x3203d7,_0x457d85=_0x2cea8d[_0x5b5355];if(!_0x457d85){const _0x3e946a=function(_0x13ff09){this['XQMIcb']=_0x13ff09,this['aXaKsy']=[0x1,0x0,0x0],this['nhcDgi']=function(){return'newState';},this['AgxCym']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['MKPoMA']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3e946a['prototype']['PakERQ']=function(){const _0x3f1c4b=new RegExp(this['AgxCym']+this['MKPoMA']),_0x35f4bd=_0x3f1c4b['test'](this['nhcDgi']['toString']())?--this['aXaKsy'][0x1]:--this['aXaKsy'][0x0];return this['yJwLKg'](_0x35f4bd);},_0x3e946a['prototype']['yJwLKg']=function(_0x2e92c0){if(!Boolean(~_0x2e92c0))return _0x2e92c0;return this['MQsFkZ'](this['XQMIcb']);},_0x3e946a['prototype']['MQsFkZ']=function(_0x26f6a7){for(let _0x116533=0x0,_0x32439c=this['aXaKsy']['length'];_0x116533<_0x32439c;_0x116533++){this['aXaKsy']['push'](Math['round'](Math['random']())),_0x32439c=this['aXaKsy']['length'];}return _0x26f6a7(this['aXaKsy'][0x0]);},new _0x3e946a(_0x2a29)['PakERQ'](),_0x49244c=_0x2a29['swXGIM'](_0x49244c),_0x2cea8d[_0x5b5355]=_0x49244c;}else _0x49244c=_0x457d85;return _0x49244c;},_0x2a29(_0x2cea8d,_0x14fc4b);}module[_0x1291d9(0x24e)]=function(_0x44b839){const _0x34f482=_0x1291d9,_0x481b87={'maffl':_0x34f482(0xe8),'RpTMk':function(_0x598053,_0x30e1c5){return _0x598053(_0x30e1c5);},'KYNtQ':_0x34f482(0x9e),'WvfWn':'bhHPa','efEbe':function(_0x32260f,_0xa781d9){return _0x32260f===_0xa781d9;},'RSFjC':_0x34f482(0x93),'HQEkO':_0x34f482(0xb3),'AoDDe':_0x34f482(0x97),'TEVuT':_0x34f482(0x104),'JHCvL':_0x34f482(0x268),'HmdcU':'YQrPu','dJBsC':function(_0x3a3e66,_0x1a900d,_0x538f4d){return _0x3a3e66(_0x1a900d,_0x538f4d);},'KsJve':_0x34f482(0x298),'taxjJ':function(_0x35e2f1){return _0x35e2f1();},'AtwDN':function(_0x23a73f,_0x50d801){return _0x23a73f!==_0x50d801;},'JoVOe':_0x34f482(0x2dc),'cnvyV':'AFIPG','wcVfU':function(_0x2cfd23,_0x43f651){return _0x2cfd23||_0x43f651;},'zgwar':_0x34f482(0x18f),'TzZwU':'ejPID','lHMeE':_0x34f482(0x149),'hkjgP':_0x34f482(0x168),'pZCsE':_0x34f482(0x1e8),'QVyHU':'NeCib','qooXP':'bvUtA','UfnYC':'uefHu','ZcySm':_0x34f482(0xe0),'iMcLa':_0x34f482(0x271),'ZHTwz':_0x34f482(0x1aa),'iZxxB':_0x34f482(0x13c),'CLmWu':function(_0xfbf068,_0x2c6e0a){return _0xfbf068===_0x2c6e0a;},'vhnqx':_0x34f482(0x9f),'oRTLl':'lWfQp','dnKXX':function(_0x20fe8f,_0xf736e7){return _0x20fe8f+_0xf736e7;},'yTWTp':_0x34f482(0xb5),'cyKKL':function(_0xbe44cf,_0xd7e6b3){return _0xbe44cf==_0xd7e6b3;},'InYVP':function(_0x53fa98){return _0x53fa98();},'XEHpf':function(_0x3b70f5,_0x226198){return _0x3b70f5*_0x226198;},'TSYxZ':_0x34f482(0x11f),'CKdPf':_0x34f482(0xbe),'jQUOx':function(_0x4c9f0c,_0x8e7966,_0x194fa4,_0xe27334){return _0x4c9f0c(_0x8e7966,_0x194fa4,_0xe27334);},'nUSDC':_0x34f482(0x17e),'jjNKb':function(_0x17c2dd,_0x3bf0f8){return _0x17c2dd!==_0x3bf0f8;},'BxOus':'PlfLM','ziZJs':function(_0x25060c,_0x1c26cf){return _0x25060c===_0x1c26cf;},'RyxjC':'pWuZs','HsaAx':function(_0x1603c8,_0x338d78,_0x1602fe){return _0x1603c8(_0x338d78,_0x1602fe);},'aOjCO':_0x34f482(0x1b1),'wMWDI':function(_0x1ef772,_0x10b7b8){return _0x1ef772<_0x10b7b8;},'ZwRsh':function(_0x1fd87e,_0x196b2d){return _0x1fd87e(_0x196b2d);},'ANlyJ':_0x34f482(0x296),'mcQsL':function(_0x218ae0,_0x2f6d34){return _0x218ae0===_0x2f6d34;},'LbZcR':_0x34f482(0x1b5),'GkNlp':function(_0x59dd80,_0x43c1b1){return _0x59dd80<_0x43c1b1;},'YWpJb':function(_0x4d7612,_0x236391,_0x771260,_0x4b6030,_0x44967c){return _0x4d7612(_0x236391,_0x771260,_0x4b6030,_0x44967c);},'XzqnP':'Phòng\x20này\x20hiện\x20tại\x20đã\x20có\x20người\x20đặt.\x20Bạn\x20vui\x20lòng\x20chọn\x20phòng\x20khác','ogPWj':_0x34f482(0x28b),'migSV':_0x34f482(0x221),'bDmRr':function(_0xb2b6e6,_0x3bad4c){return _0xb2b6e6-_0x3bad4c;},'DJKxg':'wkagX','tvtWu':function(_0x44a5c2,_0x268c7a){return _0x44a5c2!==_0x268c7a;},'luIXW':_0x34f482(0xd1),'MZWAN':function(_0x56b42d,_0x4b08aa){return _0x56b42d(_0x4b08aa);},'KesnG':function(_0x42dae4,_0x3c50d8,_0x11abad){return _0x42dae4(_0x3c50d8,_0x11abad);},'RFQuF':function(_0x3e130a,_0x8c0294){return _0x3e130a(_0x8c0294);},'dMCmR':function(_0x5e26f8,_0x42b12f){return _0x5e26f8!==_0x42b12f;},'Dryrx':function(_0x1c3025,_0x48f77b,_0x48614e,_0x1ff2ae){return _0x1c3025(_0x48f77b,_0x48614e,_0x1ff2ae);},'myPbz':'(((.+)+)+)+$','WRbGY':_0x34f482(0x10b),'qWJlV':_0x34f482(0xb2),'MAUjX':'tien_cp','gRkHu':_0x34f482(0xd0),'vbVve':function(_0x4997bf,_0x3c216b){return _0x4997bf===_0x3c216b;},'Xnamm':_0x34f482(0xca),'JaGYy':_0x34f482(0x23c),'ifFyf':function(_0x463eda,_0x25c2a3){return _0x463eda==_0x25c2a3;},'EMJbD':_0x34f482(0x208),'ajUxV':_0x34f482(0x1a6),'OmGlc':function(_0x3002e3,_0x525b57){return _0x3002e3===_0x525b57;},'KjWwC':'hsZtL','UbVHL':_0x34f482(0x1ce),'WDXwz':function(_0x6c49fc,_0x3419fa){return _0x6c49fc(_0x3419fa);},'MlyUA':'sCmWw','cNtcO':function(_0x523b1d,_0x12ac84){return _0x523b1d===_0x12ac84;},'RVhrL':function(_0x5e8129,_0x242617){return _0x5e8129!==_0x242617;},'TzfnY':_0x34f482(0x220),'QtilC':'HPLso','IiOHc':_0x34f482(0x229),'udomh':function(_0x188ce3,_0x283d5a){return _0x188ce3+_0x283d5a;},'itUmH':_0x34f482(0x1f1),'IjOIW':_0x34f482(0x212),'PozLr':_0x34f482(0x294),'iqgJC':_0x34f482(0x17b),'yMDIc':_0x34f482(0xd7),'EUGaY':function(_0x4c2f69,_0x2c01ec){return _0x4c2f69===_0x2c01ec;},'fzpfS':_0x34f482(0x203),'MIPHI':_0x34f482(0x293),'pVUtD':_0x34f482(0x1cb),'Gzbiu':function(_0x1227f2,_0x330e5e){return _0x1227f2===_0x330e5e;},'cnkyw':_0x34f482(0x2ca),'iyhQU':'Kpmgy','IsFfv':function(_0x58a5ae,_0x17456a){return _0x58a5ae===_0x17456a;},'Xbajk':_0x34f482(0x201),'lcmeE':'MIqTf','dtJYX':function(_0x32ab9e,_0x5fe5ef){return _0x32ab9e!==_0x5fe5ef;},'vYWyx':'mkkJl','SAvMJ':_0x34f482(0xf7),'gtRej':_0x34f482(0x190),'xYURz':_0x34f482(0x161),'haHUk':_0x34f482(0x250),'selvO':function(_0x54d50d,_0x56bd21,_0x2f406b){return _0x54d50d(_0x56bd21,_0x2f406b);},'VZngj':function(_0x30df77,_0x258315){return _0x30df77+_0x258315;},'QCNHU':_0x34f482(0xea),'IZKur':'tien_hang_nt','SUSnu':_0x34f482(0x26e),'RVKxL':_0x34f482(0xd9),'rAZGj':_0x34f482(0x215),'oZlty':_0x34f482(0xac),'gGXRR':_0x34f482(0x1d0),'XxDjb':'picture','YZXKR':function(_0x32e3b6){return _0x32e3b6();},'coCab':_0x34f482(0xba),'yDgJx':'TxnYz','EAxQh':function(_0x394e23,_0x3867){return _0x394e23/_0x3867;},'JDfus':_0x34f482(0x2b2),'veIuc':_0x34f482(0x1ef),'TAYlZ':'gwIsq','oopzu':_0x34f482(0x20e),'jfQIT':function(_0xb3bb04){return _0xb3bb04();},'lScXr':function(_0x195da4){return _0x195da4();},'eCapc':function(_0xe6621e){return _0xe6621e();},'mqHOz':'LlHhJ','iTAZk':'OpPDi'},_0x1dcf47=new controller(_0x44b839,model,ma_ct['toLowerCase'](),{'isVoucher':!![],'sort':{'trang_thai':0x1,'ngay_ct':-0x1,'so_ct':-0x1},'onErrorCreating':async(_0x289cb7,_0x5b1929,_0x41b27f)=>{const _0x4a612b=_0x34f482;if(_0x481b87[_0x4a612b(0x14d)]!==_0x481b87[_0x4a612b(0x14d)])_0x76efbc[_0x4a612b(0x228)]=_0x565975[_0x4a612b(0x2e0)];else{if(_0x5b1929[_0x4a612b(0x2e1)])try{await transaction[_0x4a612b(0xd3)](_0x5b1929['id_trans']);}catch(_0x41ff1f){return _0x481b87[_0x4a612b(0x1e9)](_0x41b27f,_0x41ff1f[_0x4a612b(0xad)]);}_0x41b27f(null,_0x5b1929);}},'onErrorUpdating':async(_0x11900c,_0x429074,_0x59df2c,_0x2b42d1)=>{const _0x429b5f=_0x34f482,_0x4562c9={'jUAMo':_0x481b87[_0x429b5f(0xd8)],'yjnOM':'ten_kh','nXfrI':function(_0x5892ee,_0x2cde47){const _0x533b58=_0x429b5f;return _0x481b87[_0x533b58(0x1e9)](_0x5892ee,_0x2cde47);}};if(_0x481b87[_0x429b5f(0x152)]===_0x481b87[_0x429b5f(0x152)]){if(_0x429074[_0x429b5f(0x2e1)]){if(_0x481b87[_0x429b5f(0xc8)](_0x481b87[_0x429b5f(0x124)],_0x481b87[_0x429b5f(0x131)]))_0x51827d[_0x429b5f(0x228)]=_0x3d095a[_0x429b5f(0x2b8)];else try{await transaction['deleteTrans'](_0x429074['id_trans']);}catch(_0x5d993e){return _0x59df2c(_0x5d993e[_0x429b5f(0xad)]);}}if(_0x2b42d1[_0x429b5f(0x2e1)]){if(_0x481b87['efEbe'](_0x481b87[_0x429b5f(0x265)],_0x481b87[_0x429b5f(0x279)]))_0x2cc614[_0x429b5f(0x228)]=_0xf143b9[_0x429b5f(0x2b6)];else try{_0x481b87[_0x429b5f(0x216)]===_0x481b87[_0x429b5f(0x292)]?_0x5eade9[_0x429b5f(0x170)](_0x339b33,_0x50f2a5,[{'where':{'dich_vu_giao_hang':_0x4562c9[_0x429b5f(0x1cf)]},'fields':{'ten_dich_vu_giao_hang':_0x4562c9[_0x429b5f(0x211)]}}],function(){_0x4997df();}):await transaction[_0x429b5f(0xd3)](_0x2b42d1['id_trans']);}catch(_0x57bd0c){return _0x481b87[_0x429b5f(0x1e9)](_0x59df2c,_0x57bd0c[_0x429b5f(0xad)]);}}_0x481b87[_0x429b5f(0x185)](_0x59df2c,null,_0x429074);}else return _0x4562c9[_0x429b5f(0x21e)](_0x170961,_0x12021e[_0x429b5f(0xad)]);}});_0x1dcf47['route'](),_0x1dcf47[_0x34f482(0x171)]=function(_0x51820d,_0x73eea1){const _0x127a6a=_0x34f482,_0x508cc4={'jlVWS':function(_0x1c9abf){return _0x481b87['InYVP'](_0x1c9abf);},'idXTa':function(_0x427756,_0x5650b1){const _0x1854e1=_0x2a29;return _0x481b87[_0x1854e1(0x1c3)](_0x427756,_0x5650b1);},'XEDwo':_0x481b87['KsJve'],'HGbVc':_0x481b87['TSYxZ'],'qALjz':function(_0x121504,_0xa59745){const _0x5d7be7=_0x2a29;return _0x481b87[_0x5d7be7(0x27c)](_0x121504,_0xa59745);},'GbICr':_0x481b87['CKdPf'],'PpfGm':function(_0x323252,_0x1c04f4){return _0x323252!==_0x1c04f4;},'ydDRi':function(_0x5717b8,_0x442c04,_0x26a94a,_0x5885eb){const _0x384845=_0x2a29;return _0x481b87[_0x384845(0x107)](_0x5717b8,_0x442c04,_0x26a94a,_0x5885eb);},'gyiym':function(_0x547cb1,_0x4bca10){return _0x547cb1(_0x4bca10);},'YQwHh':function(_0x1832e6,_0x2619d5){return _0x481b87['AtwDN'](_0x1832e6,_0x2619d5);},'mVGQz':_0x481b87['nUSDC'],'QLwGH':function(_0x2630a9,_0x362d45){return _0x481b87['jjNKb'](_0x2630a9,_0x362d45);},'kCiGO':_0x481b87['BxOus'],'TyisT':function(_0x51380d){return _0x481b87['taxjJ'](_0x51380d);},'VXiaw':function(_0x419dd7,_0x2b5d8d){const _0x20d486=_0x2a29;return _0x481b87[_0x20d486(0x10e)](_0x419dd7,_0x2b5d8d);},'qvlyy':_0x481b87['RyxjC'],'PCRwU':function(_0x19abce,_0x39e2f0,_0x362e2b){const _0x39435a=_0x2a29;return _0x481b87[_0x39435a(0xc3)](_0x19abce,_0x39e2f0,_0x362e2b);}};if(_0x481b87[_0x127a6a(0xf3)](_0x481b87[_0x127a6a(0x120)],_0x127a6a(0x1b1))){if(!_0x73eea1)_0x73eea1=function(){};async[_0x127a6a(0x9b)]({'post_socai':function(_0x1a249b){const _0x27a02a=_0x127a6a,_0x20262b={'cQfgv':_0x481b87[_0x27a02a(0x2aa)],'PgXGI':function(_0x493f75){const _0xd667c5=_0x27a02a;return _0x481b87[_0xd667c5(0x2b9)](_0x493f75);},'bKFSu':function(_0x3b2a43,_0x8c91d0){const _0x37a488=_0x27a02a;return _0x481b87[_0x37a488(0x27c)](_0x3b2a43,_0x8c91d0);},'MuDzv':_0x481b87[_0x27a02a(0x195)],'ELkua':_0x481b87[_0x27a02a(0x28d)],'KnuZz':function(_0x2b3cff,_0x404519){return _0x481b87['RpTMk'](_0x2b3cff,_0x404519);},'zvpuN':function(_0x4a68c3,_0xeff6bb){const _0x46530d=_0x27a02a;return _0x481b87[_0x46530d(0x1d9)](_0x4a68c3,_0xeff6bb);},'FucAy':function(_0x2092cb,_0xed6df3){return _0x481b87['AtwDN'](_0x2092cb,_0xed6df3);},'VRGVG':_0x481b87[_0x27a02a(0x1c9)],'pkQur':function(_0x1d4cd5,_0x2d9d56){return _0x1d4cd5===_0x2d9d56;},'cAwqx':_0x481b87[_0x27a02a(0x28a)],'Vnryq':_0x481b87['lHMeE'],'XrQAJ':_0x481b87[_0x27a02a(0x160)],'ekJWm':_0x481b87[_0x27a02a(0x2d4)],'uLZOR':_0x481b87[_0x27a02a(0x2c8)],'UCaTh':_0x481b87[_0x27a02a(0x2d5)],'hppcy':_0x481b87[_0x27a02a(0x2d9)],'ZFtST':function(_0x2a7c77,_0x33a597,_0x2c5e4e){const _0x219dec=_0x27a02a;return _0x481b87[_0x219dec(0x185)](_0x2a7c77,_0x33a597,_0x2c5e4e);},'ujYmm':_0x481b87['ZcySm'],'RamRu':_0x27a02a(0xf1),'VDWtu':_0x27a02a(0x16d),'jycSb':_0x481b87[_0x27a02a(0x20c)],'GUFwH':_0x481b87[_0x27a02a(0x295)],'FDKPf':function(_0x384555,_0xe02f39){return _0x384555!=_0xe02f39;},'YHhxh':_0x481b87[_0x27a02a(0x21a)],'ENHge':function(_0x235a3a,_0x4930b1){const _0x28ba26=_0x27a02a;return _0x481b87[_0x28ba26(0xf3)](_0x235a3a,_0x4930b1);},'xkKZe':_0x481b87['vhnqx'],'CflRg':_0x481b87[_0x27a02a(0x1c1)],'srTij':function(_0x189ecf,_0x118258){const _0x3b2945=_0x27a02a;return _0x481b87[_0x3b2945(0x1af)](_0x189ecf,_0x118258);},'yChiC':function(_0x56ea4a,_0x12129a){const _0x56f406=_0x27a02a;return _0x481b87[_0x56f406(0x27c)](_0x56ea4a,_0x12129a);},'xqroK':_0x481b87[_0x27a02a(0x2bb)],'lwqiL':function(_0x5e72fc,_0x3d19dc){const _0x12db7f=_0x27a02a;return _0x481b87[_0x12db7f(0xcd)](_0x5e72fc,_0x3d19dc);},'oByCn':function(_0x19acc7,_0x1f8e09){return _0x19acc7+_0x1f8e09;}};options['findOne']({'id_app':_0x51820d['id_app'],'id_func':ma_ct[_0x27a02a(0x1ca)]()})['lean']()[_0x27a02a(0x1ea)](function(_0x399dd5,_0x26a3ea){const _0x4a4b76=_0x27a02a,_0x3621df={'MYyMp':function(_0x5abdc4){const _0x71db84=_0x2a29;return _0x508cc4[_0x71db84(0x219)](_0x5abdc4);},'ngVKh':function(_0x1b47bd){return _0x1b47bd();},'Kyosa':function(_0x21658c,_0x47baab){const _0x6baa63=_0x2a29;return _0x508cc4[_0x6baa63(0xd2)](_0x21658c,_0x47baab);},'aJJYe':_0x508cc4[_0x4a4b76(0x8e)],'nbiYk':function(_0x4db8c0,_0xa7585e){return _0x4db8c0===_0xa7585e;},'jFhjt':_0x4a4b76(0xe1),'uqAus':_0x508cc4[_0x4a4b76(0xc5)],'EVtew':function(_0x229f9f,_0x39b441){const _0x4bf2e8=_0x4a4b76;return _0x508cc4[_0x4bf2e8(0x200)](_0x229f9f,_0x39b441);},'OVxts':_0x508cc4[_0x4a4b76(0x17c)],'IfuaA':function(_0x84afb3,_0x14cea9){const _0x1a0db1=_0x4a4b76;return _0x508cc4[_0x1a0db1(0x2a7)](_0x84afb3,_0x14cea9);},'zFDVt':function(_0x51b34b,_0x553c12){return _0x51b34b(_0x553c12);},'LpTXb':function(_0x2cc065,_0x542dce,_0x21c4cc,_0x5a2e8a){return _0x508cc4['ydDRi'](_0x2cc065,_0x542dce,_0x21c4cc,_0x5a2e8a);},'QIybD':function(_0x1a66f3,_0x4895da){const _0x3ca16b=_0x4a4b76;return _0x508cc4[_0x3ca16b(0x101)](_0x1a66f3,_0x4895da);},'hXCaf':function(_0x196865,_0x16f7ed){return _0x508cc4['YQwHh'](_0x196865,_0x16f7ed);},'tcLKQ':_0x508cc4[_0x4a4b76(0x1e5)],'vGSip':function(_0x5adfb4,_0x463afe){const _0x29bc77=_0x4a4b76;return _0x508cc4[_0x29bc77(0x101)](_0x5adfb4,_0x463afe);}};let _0x280cd8;if(!_0x26a3ea){if(_0x508cc4['QLwGH'](_0x4a4b76(0x19e),_0x508cc4['kCiGO'])){const _0xb585ac=_0x36ae07[_0x4a4b76(0x1bf)];_0xb585ac?_0xb585ac[_0x4a4b76(0x170)](_0x2d48a3,_0x24cc6d,[{'where':_0x20262b[_0x4a4b76(0xb1)],'fields':'ten_cp'}],function(){_0x3621df['MYyMp'](_0x4dc8bc);}):_0x20262b[_0x4a4b76(0x1eb)](_0x5a6969);}else _0x280cd8={};}else _0x280cd8=_0x26a3ea[_0x4a4b76(0x2b0)]||{};new Promise(_0x46fabf=>{const _0x3bb19f=_0x4a4b76,_0x380cb2={'FxRPB':function(_0x4d44a3){return _0x4d44a3();},'jZIME':function(_0x5c5d00,_0x384890){return _0x20262b['bKFSu'](_0x5c5d00,_0x384890);},'adqVv':_0x20262b[_0x3bb19f(0xe4)],'MKDEe':_0x20262b[_0x3bb19f(0xae)],'SuGjs':function(_0x32a0a7,_0x191f97){return _0x20262b['KnuZz'](_0x32a0a7,_0x191f97);},'NRSyS':function(_0x5d2cf8,_0x17f466){const _0x15ac1f=_0x3bb19f;return _0x20262b[_0x15ac1f(0xec)](_0x5d2cf8,_0x17f466);}};if(!_0x51820d['pt_thanh_toan']){if(_0x20262b[_0x3bb19f(0x2b7)](_0x20262b[_0x3bb19f(0x145)],_0x3bb19f(0x18f)))_0x380cb2[_0x3bb19f(0x227)](_0x19bd6d);else return _0x46fabf({});}else _0x20262b[_0x3bb19f(0xf8)](_0x20262b[_0x3bb19f(0xc6)],_0x20262b[_0x3bb19f(0x1f9)])?_0x3621df[_0x3bb19f(0x11d)](_0x181655):ptthanhtoan[_0x3bb19f(0xfb)]({'id_app':_0x51820d[_0x3bb19f(0xef)],'_id':_0x51820d[_0x3bb19f(0x114)]})[_0x3bb19f(0x17d)]()[_0x3bb19f(0x1ea)]((_0x262f74,_0x3cf1d0)=>{const _0x282a43=_0x3bb19f;if(_0x380cb2[_0x282a43(0x246)](_0x380cb2[_0x282a43(0x92)],_0x380cb2['MKDEe'])){if(_0x262f74)console[_0x282a43(0x2c5)](_0x262f74);_0x380cb2['SuGjs'](_0x46fabf,_0x380cb2[_0x282a43(0x238)](_0x3cf1d0,{}));}else return _0x1d385d[_0x282a43(0xe6)]=_0x52c88d[_0x282a43(0x17b)][_0x282a43(0x275)](),_0x1d061e(null,_0x15040d);});})[_0x4a4b76(0x112)](_0x16dcd5=>{const _0x124fc1=_0x4a4b76,_0x285d6f={'qbKYo':_0x20262b[_0x124fc1(0x210)],'JTDUW':function(_0x3c4407){return _0x3c4407();},'KCVtt':function(_0xb4ac02,_0x2f7e7f){return _0xb4ac02===_0x2f7e7f;},'vcDGJ':_0x20262b['ekJWm'],'GeMxs':_0x20262b[_0x124fc1(0x1fd)],'LdNDX':_0x20262b[_0x124fc1(0xd4)],'ZonqZ':_0x20262b[_0x124fc1(0x179)],'koBDK':function(_0x3213bd,_0xcdb01f){const _0x3b84dd=_0x124fc1;return _0x20262b[_0x3b84dd(0xf8)](_0x3213bd,_0xcdb01f);},'AGwZF':'NtlSw','YJlkn':function(_0x558ef9,_0x25398c,_0xee3b8d){const _0x1db65f=_0x124fc1;return _0x20262b[_0x1db65f(0x16a)](_0x558ef9,_0x25398c,_0xee3b8d);}};if(_0x20262b[_0x124fc1(0xf8)](_0x20262b[_0x124fc1(0x1e2)],'GcXxp')){_0x280cd8[_0x124fc1(0x2b8)]=_0x16dcd5[_0x124fc1(0x2b8)]||_0x280cd8[_0x124fc1(0x2b8)]||_0x20262b[_0x124fc1(0x20d)],_0x280cd8[_0x124fc1(0x2b6)]=_0x16dcd5[_0x124fc1(0x2b6)]||_0x280cd8[_0x124fc1(0x2b6)]||_0x20262b[_0x124fc1(0x1f7)],_0x280cd8[_0x124fc1(0x2e0)]=_0x280cd8[_0x124fc1(0x2b6)],_0x280cd8[_0x124fc1(0x14e)]=_0x16dcd5[_0x124fc1(0x14e)]||_0x280cd8[_0x124fc1(0x14e)]||_0x124fc1(0xcc),_0x280cd8[_0x124fc1(0x230)]=_0x16dcd5[_0x124fc1(0x230)]||_0x280cd8['tk_tl']||_0x20262b[_0x124fc1(0xc0)],_0x280cd8[_0x124fc1(0x2d7)]=_0x16dcd5[_0x124fc1(0x2d7)]||_0x280cd8['tk_ck']||_0x20262b['GUFwH'];if(_0x20262b['FDKPf'](_0x51820d[_0x124fc1(0xc2)],'1')&&!_0x16dcd5[_0x124fc1(0x23b)]){if(_0x20262b[_0x124fc1(0x1d3)](_0x20262b['YHhxh'],_0x20262b[_0x124fc1(0x184)]))return _0x5e4d10(_0x3c3f30['message']);else _0x280cd8['ma_kh']=_0x51820d['dich_vu_giao_hang']||_0x16dcd5[_0x124fc1(0x9e)]||_0x51820d[_0x124fc1(0x9e)];}else _0x280cd8[_0x124fc1(0x9e)]=_0x16dcd5[_0x124fc1(0x9e)]||_0x51820d[_0x124fc1(0x9e)];const _0x3c6d06=[];if(_0x16dcd5[_0x124fc1(0x23b)]&&!_0x16dcd5[_0x124fc1(0x1fb)]){if(_0x20262b['ENHge'](_0x20262b[_0x124fc1(0x2c6)],_0x20262b[_0x124fc1(0x134)])){let _0x2c2d1b=_0x441d3a[_0x124fc1(0xbd)][_0x124fc1(0x2df)](_0x5b7a21=>_0x5b7a21[_0x124fc1(0x26e)])[_0x124fc1(0x9c)](_0x26ebaf=>_0x26ebaf[_0x124fc1(0x256)]||0x0)[_0x124fc1(0x108)]((_0x48ccb2,_0x10bb73)=>_0x48ccb2+_0x10bb73,0x0);_0x5267d1=_0x47ba8b[_0x124fc1(0x27d)](_0x3621df[_0x124fc1(0x15f)](_0x212158[0x0]['diem'],_0x2c2d1b),0x0);}else{let _0x1f9566={..._0x51820d};_0x1f9566['tk_co']=_0x280cd8[_0x124fc1(0x2b6)],_0x1f9566[_0x124fc1(0x228)]=_0x280cd8[_0x124fc1(0x2b8)],_0x1f9566[_0x124fc1(0x9e)]=_0x280cd8[_0x124fc1(0x9e)],_0x1f9566[_0x124fc1(0x2a2)]=_0x51820d['details'][_0x124fc1(0x9c)](_0x54d4e3=>_0x54d4e3[_0x124fc1(0x2a2)])[_0x124fc1(0x108)]((_0x2dfa44,_0x5851b8)=>_0x2dfa44+_0x5851b8,0x0),_0x1f9566['tien']=_0x51820d[_0x124fc1(0xbd)][_0x124fc1(0x9c)](_0x230a2e=>_0x230a2e[_0x124fc1(0x222)])[_0x124fc1(0x108)]((_0x348f79,_0x444643)=>_0x348f79+_0x444643,0x0),_0x1f9566['tien_nt']=_0x20262b[_0x124fc1(0x2ce)](_0x1f9566['tien_nt'],_0x51820d[_0x124fc1(0x1bf)][_0x124fc1(0x9c)](_0x1f75bf=>_0x1f75bf[_0x124fc1(0xb2)])[_0x124fc1(0x108)]((_0x1ca89c,_0x422c26)=>_0x1ca89c+_0x422c26,0x0)),_0x1f9566[_0x124fc1(0x222)]=_0x20262b[_0x124fc1(0x2ce)](_0x1f9566[_0x124fc1(0x222)],_0x51820d[_0x124fc1(0x1bf)]['map'](_0x9cdf59=>_0x9cdf59[_0x124fc1(0x24b)])[_0x124fc1(0x108)]((_0x41c838,_0x25a3a5)=>_0x41c838+_0x25a3a5,0x0)),_0x3c6d06['push'](_0x1f9566);}}_0x51820d[_0x124fc1(0xbd)]['forEach'](function(_0x5631d5){const _0x18440f=_0x124fc1,_0x2526a2={'Kqasz':function(_0x95ea52){const _0x3f742d=_0x2a29;return _0x3621df[_0x3f742d(0x2de)](_0x95ea52);},'FQapA':_0x3621df[_0x18440f(0x9a)],'vrwws':function(_0x57c9d9){const _0x576a0b=_0x18440f;return _0x3621df[_0x576a0b(0x2de)](_0x57c9d9);}};if(_0x3621df[_0x18440f(0x28f)](_0x3621df[_0x18440f(0x249)],_0x3621df[_0x18440f(0x13d)]))_0x304d7c[_0x18440f(0x170)](_0x143759,_0x5a882e,[{'where':_0x2526a2[_0x18440f(0x11e)],'fields':_0x18440f(0x20e)}],function(){const _0x57f04a=_0x18440f;_0x2526a2[_0x57f04a(0x237)](_0x28703b);});else{let _0x16852a={..._0x5631d5};_0x16852a[_0x18440f(0x27a)]=_0x280cd8[_0x18440f(0x14e)],_0x16852a[_0x18440f(0x9e)]=_0x280cd8[_0x18440f(0x9e)],_0x16852a[_0x18440f(0x1da)]=_0x51820d[_0x18440f(0x18d)]||_0x51820d[_0x18440f(0x1da)];if(_0x16dcd5[_0x18440f(0x23b)])_0x16852a[_0x18440f(0x228)]=_0x280cd8[_0x18440f(0x2b6)];else{if(_0x3621df[_0x18440f(0x214)](_0x51820d['pt_giao_hang'],'1')&&_0x280cd8[_0x18440f(0x2e0)])_0x16852a[_0x18440f(0x228)]=_0x280cd8['tk_tien_dc'];else{if(_0x3621df[_0x18440f(0x2bd)]!==_0x3621df[_0x18440f(0x2bd)]){const _0x377d8e={'giwAD':function(_0xa77f4){return _0xa77f4();},'RazpD':_0x285d6f[_0x18440f(0x148)],'pkaTQ':_0x18440f(0x11c)};_0x3d0efc['mapSeries'](_0x13fc1c,function(_0x271c6f,_0x3cf7c3){const _0x116f18=_0x18440f,_0x1f5e54=_0x271c6f[_0x116f18(0xbd)]||[];_0x1f5e54['joinModel2'](_0xad8c6a,_0x6a247d,[{'where':{'ma_hd':_0x377d8e[_0x116f18(0x205)]},'fields':_0x377d8e[_0x116f18(0x19a)]}],function(){_0x377d8e['giwAD'](_0x3cf7c3);});},function(){const _0xe9b447=_0x18440f;_0x2526a2[_0xe9b447(0x1fc)](_0x43eba5);});}else _0x16852a[_0x18440f(0x228)]=_0x280cd8['tk_tien'];}}_0x16852a[_0x18440f(0x2a2)]=_0x16852a[_0x18440f(0x1bb)],_0x16852a[_0x18440f(0x222)]=_0x16852a[_0x18440f(0x26e)],_0x3c6d06[_0x18440f(0x27e)](_0x16852a);}});if(_0x51820d['ctcpbhs']){if(_0x20262b[_0x124fc1(0x10a)](_0x20262b['xqroK'],_0x20262b[_0x124fc1(0x94)])){if(_0x365173)return _0x4c17a7(_0x582e55);if(_0x3621df['IfuaA'](_0x43f3a9[_0x124fc1(0x261)]||0x0,_0x4b5bbc[_0x124fc1(0x261)]||0x0))return _0x3621df['zFDVt'](_0x4bf1f9,_0x124fc1(0x16b));_0x3621df[_0x124fc1(0x1d7)](_0x412f69,null,_0x590b7b,_0x3f6f58);}else _0x51820d[_0x124fc1(0x1bf)]['forEach'](function(_0x4549fb){const _0x2d9c7e=_0x124fc1,_0x180b59={'SetVN':function(_0x362718,_0x271ef0){const _0x2ec6e0=_0x2a29;return _0x3621df[_0x2ec6e0(0x111)](_0x362718,_0x271ef0);}};let _0x5a631b={..._0x4549fb};_0x5a631b[_0x2d9c7e(0x27a)]=_0x280cd8[_0x2d9c7e(0x14e)],_0x5a631b[_0x2d9c7e(0x9e)]=_0x280cd8[_0x2d9c7e(0x9e)],_0x5a631b[_0x2d9c7e(0x1da)]=_0x51820d['ngay_giao_hang']||_0x51820d[_0x2d9c7e(0x1da)];if(_0x16dcd5[_0x2d9c7e(0x23b)])_0x5a631b['tk_no']=_0x280cd8[_0x2d9c7e(0x2b6)];else{if(_0x3621df[_0x2d9c7e(0x1c6)](_0x51820d[_0x2d9c7e(0xc2)],'1')&&_0x280cd8[_0x2d9c7e(0x2e0)]){if(_0x3621df[_0x2d9c7e(0x28f)](_0x3621df[_0x2d9c7e(0x2c1)],_0x2d9c7e(0xa9)))return _0x180b59[_0x2d9c7e(0x1e7)](_0x2244c1,new _0x242582(_0x2d9c7e(0xb7)+_0x53a319['ma']+'\x20đã\x20được\x20sử\x20dụng'));else _0x5a631b['tk_no']=_0x280cd8[_0x2d9c7e(0x2e0)];}else _0x5a631b['tk_no']=_0x280cd8['tk_tien'];}_0x5a631b['tien_nt']=_0x5a631b[_0x2d9c7e(0xb2)],_0x5a631b[_0x2d9c7e(0x222)]=_0x5a631b[_0x2d9c7e(0x24b)],_0x3c6d06[_0x2d9c7e(0x27e)](_0x5a631b);});}_0x51820d[_0x124fc1(0xbd)][_0x124fc1(0x1a5)](function(_0x58d3ab){const _0x705e08=_0x124fc1,_0x6d4f44={'cLRbH':function(_0x1d52c9){const _0x1da8e6=_0x2a29;return _0x285d6f[_0x1da8e6(0x22a)](_0x1d52c9);}};if(_0x285d6f['KCVtt'](_0x285d6f[_0x705e08(0x2d3)],_0x285d6f[_0x705e08(0x1b2)]))_0x6d4f44['cLRbH'](_0x5b9a74);else{let _0x54f890={..._0x58d3ab};_0x54f890[_0x705e08(0x228)]=_0x280cd8[_0x705e08(0x2d7)],_0x54f890[_0x705e08(0x9e)]=_0x280cd8['ma_kh'],_0x54f890['ngay_ct']=_0x51820d['ngay_giao_hang']||_0x51820d[_0x705e08(0x1da)];if(_0x16dcd5['tra_truoc'])_0x54f890['tk_co']=_0x280cd8[_0x705e08(0x2b6)];else{if(_0x285d6f[_0x705e08(0xaa)]===_0x285d6f[_0x705e08(0x166)])return _0x2e158b[_0x705e08(0x1a0)]({'_id':_0x20282c[_0x705e08(0x17b)]},{'id_ct_used':_0x3332f4['_id'][_0x705e08(0x275)]()});else _0x54f890['tk_co']=_0x280cd8[_0x705e08(0x2b8)];}_0x54f890[_0x705e08(0x2a2)]=_0x54f890[_0x705e08(0xea)],_0x54f890[_0x705e08(0x222)]=_0x54f890[_0x705e08(0x1b9)],_0x3c6d06[_0x705e08(0x27e)](_0x54f890);}});if(_0x51820d[_0x124fc1(0x1d8)]||_0x51820d[_0x124fc1(0x2c3)]){let _0x3c3897={};_0x3c3897[_0x124fc1(0x228)]=_0x280cd8[_0x124fc1(0x2d7)],_0x51820d[_0x124fc1(0x248)]&&_0x20262b[_0x124fc1(0x1fe)](_0x51820d[_0x124fc1(0x1f0)],_0x51820d[_0x124fc1(0x248)])?_0x3c3897[_0x124fc1(0x27a)]=_0x280cd8[_0x124fc1(0x2b8)]:_0x3c3897[_0x124fc1(0x27a)]=_0x280cd8[_0x124fc1(0x2b6)],_0x3c3897[_0x124fc1(0x2a2)]=_0x20262b[_0x124fc1(0x259)](_0x51820d[_0x124fc1(0x1d8)]||0x0,_0x51820d[_0x124fc1(0x2c3)]||0x0),_0x3c3897[_0x124fc1(0x222)]=_0x3c3897[_0x124fc1(0x2a2)],_0x3c3897[_0x124fc1(0x9e)]=_0x280cd8[_0x124fc1(0x9e)],_0x3c6d06[_0x124fc1(0x27e)](_0x3c3897);}const _0x156e9a=new PostSocai(_0x51820d,_0x3c6d06);_0x156e9a[_0x124fc1(0xf4)](function(_0x1722d9,_0x4b0346){const _0x3405e7=_0x124fc1;_0x285d6f['koBDK'](_0x3405e7(0x1e1),_0x285d6f['AGwZF'])?_0x285d6f[_0x3405e7(0x162)](_0x1a249b,_0x1722d9,_0x4b0346):_0x177077={};});}else{const _0x357510={'puaSZ':function(_0x1d88d2,_0x439722){const _0x1e8825=_0x124fc1;return _0x3621df[_0x1e8825(0xd6)](_0x1d88d2,_0x439722);},'topvO':function(_0x269ba5,_0x4b7731){const _0x22cc64=_0x124fc1;return _0x3621df[_0x22cc64(0x1e0)](_0x269ba5,_0x4b7731);},'CxLUu':function(_0x3b8f73,_0x218135){return _0x3621df['nbiYk'](_0x3b8f73,_0x218135);}},_0x4730b5=new _0x1deb37((_0x5c33d3,_0x40f125)=>{_0xf8706b({'id_app':_0x1a856c,'email':_0x141599},(_0x2b5b79,_0x400952)=>{const _0x421e79=_0x2a29;if(_0x2b5b79)return _0x357510[_0x421e79(0x1a9)](_0x40f125,new _0x5ad4e9(_0x2b5b79));_0x357510[_0x421e79(0x225)](_0x5c33d3,_0x357510[_0x421e79(0x1db)](_0x400952[_0x421e79(0x236)],0x0)?0x0:_0x400952[0x0][_0x421e79(0x139)]);});});return _0x4730b5;}});});}},function(_0x31dec9,_0x2b3dca){const _0x45be35=_0x127a6a;_0x508cc4[_0x45be35(0xa5)](_0x508cc4[_0x45be35(0x29f)],_0x508cc4[_0x45be35(0x29f)])?_0x508cc4[_0x45be35(0x1e6)](_0x73eea1,_0x31dec9,_0x2b3dca):_0x508cc4['TyisT'](_0x3bfca5);});}else _0x5dbca5['tk_no']=_0x1048bd[_0x127a6a(0x2e0)];},_0x1dcf47[_0x34f482(0x244)]=async function(_0xb515d3,_0x166147,_0x109ead){const _0xca41b=_0x34f482,_0x39f5ff={'kTxXY':function(_0x5eb080){return _0x5eb080();},'Liqkx':function(_0x7bfff9,_0x2f573e,_0x31c91b){return _0x7bfff9(_0x2f573e,_0x31c91b);},'sRVbD':function(_0x8a7a14,_0x5be55b,_0x409d0a){return _0x481b87['dJBsC'](_0x8a7a14,_0x5be55b,_0x409d0a);},'bfKzc':function(_0x134386,_0x3078c4){const _0x4a4d7e=_0x2a29;return _0x481b87[_0x4a4d7e(0x1f8)](_0x134386,_0x3078c4);},'uFAUn':function(_0x1857b2,_0x152e2c){const _0x2b647d=_0x2a29;return _0x481b87[_0x2b647d(0x204)](_0x1857b2,_0x152e2c);},'kIiMB':function(_0x12ccc5,_0xc09a76){const _0x4cde5d=_0x2a29;return _0x481b87[_0x4cde5d(0x27c)](_0x12ccc5,_0xc09a76);},'QLces':_0x481b87['ANlyJ']};if(!_0x166147[_0xca41b(0xbd)]||_0x481b87[_0xca41b(0xff)](_0x166147['details'][_0xca41b(0x236)],0x0))return _0x109ead(_0x481b87[_0xca41b(0x155)]);for(let _0x43edff=0x0;_0x481b87['GkNlp'](_0x43edff,_0x166147[_0xca41b(0xbd)][_0xca41b(0x236)]);_0x43edff++){let _0x5a8e9d=await _0x481b87[_0xca41b(0x194)](isFree,_0x166147[_0xca41b(0xef)],_0x166147['details'][_0x43edff][_0xca41b(0xac)],_0x166147[_0xca41b(0x264)],_0x166147[_0xca41b(0x2c7)]);if(!_0x5a8e9d){if('OfNdl'!==_0xca41b(0x286))return _0x481b87['RpTMk'](_0x109ead,_0x481b87[_0xca41b(0x115)]);else _0x39f5ff['kTxXY'](_0x5be8b2);}}_0x481b87[_0xca41b(0x107)](valid,_0xb515d3,_0x166147,async _0x4a5f0d=>{const _0x586427=_0xca41b;if(_0x4a5f0d)return _0x109ead(_0x4a5f0d);if(!_0x166147[_0x586427(0x261)])return _0x39f5ff[_0x586427(0xa4)](_0x109ead,null,_0x166147);try{let _0xa9d583=await _0x39f5ff[_0x586427(0xa4)](getPointBalance,_0xb515d3[_0x586427(0x19c)],_0xb515d3[_0x586427(0x105)]);if(_0x39f5ff['bfKzc'](_0xa9d583,_0x166147[_0x586427(0x261)]))return _0x39f5ff[_0x586427(0x2ae)](_0x109ead,_0x586427(0x1dd));_0x109ead(null,_0x166147);}catch(_0x220d5f){_0x39f5ff[_0x586427(0xf9)](_0x39f5ff[_0x586427(0x197)],_0x39f5ff['QLces'])?_0x39f5ff['Liqkx'](_0x5650c6,null,_0x44be9b):_0x109ead(_0x220d5f[_0x586427(0xad)]);}});},_0x1dcf47['created']=async function(_0x205193,_0x252150,_0x4b88c0){const _0x28555f=_0x34f482,_0x102de8={'qOmNq':function(_0x532506,_0x3330fa){const _0x41ccfe=_0x2a29;return _0x481b87[_0x41ccfe(0x1e9)](_0x532506,_0x3330fa);},'XKJuW':_0x481b87['migSV'],'YufpX':function(_0x249e91,_0x2758da){return _0x481b87['bDmRr'](_0x249e91,_0x2758da);}};if(_0x481b87[_0x28555f(0x21f)]==='wkagX'){try{let _0x54948f=await onepay[_0x28555f(0x240)](_0x252150,_0x205193[_0x28555f(0x2cd)]);model[_0x28555f(0x1a0)]({'_id':_0x252150[_0x28555f(0x17b)]},{'virtual_payment_client_url':_0x54948f},_0x491e21=>{const _0x5e22f8=_0x28555f;if(_0x491e21)console[_0x5e22f8(0x2c5)]('error\x20create\x20Virtual\x20Payment\x20ClientURL',_0x491e21[_0x5e22f8(0xad)]);}),_0x252150[_0x28555f(0x287)]=_0x54948f;}catch(_0x3441d2){if(_0x481b87['tvtWu'](_0x28555f(0x1b4),_0x28555f(0x297)))console[_0x28555f(0x2c5)](_0x481b87['luIXW'],_0x3441d2['message']),_0x252150[_0x28555f(0x287)]='';else{const _0x2ddcaa=_0x19aff9?function(){const _0x5aec56=_0x28555f;if(_0x2e92c0){const _0x7e6bd9=_0x4a0a55[_0x5aec56(0x12c)](_0x5f2083,arguments);return _0x9e253c=null,_0x7e6bd9;}}:function(){};return _0x35f4bd=![],_0x2ddcaa;}}await createTransactionPayment(_0x252150),await _0x481b87[_0x28555f(0x26f)](createTransactionBonus,_0x252150),_0x252150['evouchers']&&await Promise[_0x28555f(0x12e)](_0x252150['evouchers']['map'](_0x4ba374=>{const _0x5a0bb5=_0x28555f;return _0x5a0bb5(0x28e)!==_0x481b87['ogPWj']?Evoucher[_0x5a0bb5(0x1a0)]({'_id':_0x4ba374[_0x5a0bb5(0x17b)]},{'id_ct_used':_0x252150[_0x5a0bb5(0x17b)]['toString']()}):_0x102de8[_0x5a0bb5(0x137)](_0xbfd239,_0x21712c['message']);})),_0x481b87[_0x28555f(0x165)](_0x4b88c0,null,_0x252150);}else{const _0xc8d83=_0x102de8[_0x28555f(0x182)][_0x28555f(0x16c)]('|');let _0x49402e=0x0;while(!![]){switch(_0xc8d83[_0x49402e++]){case'0':_0x4b5792[_0x28555f(0x163)]=0x0;continue;case'1':_0x1bc9a5['t_tien_nt']=_0x102de8[_0x28555f(0x12b)](_0x616e50['t_tien_hang_nt'],_0x386c61[_0x28555f(0x252)]);continue;case'2':_0x389db8[_0x28555f(0x241)]=0x0;continue;case'3':_0x2718ea[_0x28555f(0x277)]=0x0;continue;case'4':_0x1224d5[_0x28555f(0x252)]=0x0;continue;case'5':_0x2287c9[_0x28555f(0xce)]=0x0;continue;case'6':_0x1e4804[_0x28555f(0x20b)]=_0x102de8[_0x28555f(0x12b)](_0x38dc22[_0x28555f(0xce)],_0x28c511[_0x28555f(0x241)]);continue;}break;}}},_0x1dcf47[_0x34f482(0xb8)]=function(_0x27b45d,_0x5c1aa6,_0x975036,_0x3ff524){const _0x380ca9=_0x34f482,_0x377dcf={'NghyE':_0x481b87[_0x380ca9(0x174)]};_0x481b87[_0x380ca9(0x107)](valid,_0x27b45d,_0x5c1aa6,async _0x1afa7f=>{const _0x140381=_0x380ca9;if(_0x140381(0x1b3)!=='qwTlm')return _0xcca5d0[_0x140381(0x275)]()[_0x140381(0xc4)](hCadQO[_0x140381(0x1ba)])[_0x140381(0x275)]()[_0x140381(0x289)](_0x4ac6b2)['search'](hCadQO[_0x140381(0x1ba)]);else{if(_0x1afa7f)return _0x481b87['RFQuF'](_0x3ff524,_0x1afa7f);if(_0x481b87[_0x140381(0xe5)](_0x975036[_0x140381(0x261)]||0x0,_0x5c1aa6[_0x140381(0x261)]||0x0))return _0x481b87[_0x140381(0x1e9)](_0x3ff524,_0x140381(0x16b));_0x481b87['Dryrx'](_0x3ff524,null,_0x5c1aa6,_0x975036);}});},_0x1dcf47['updated']=async function(_0x36c2e2,_0x81b16,_0x25ebf1){const _0x211f6c=_0x34f482,_0x3fdce7={'eNzTJ':_0x211f6c(0x2b2),'sgAGE':_0x481b87[_0x211f6c(0x2b4)]};try{if(_0x481b87['ziZJs'](_0x211f6c(0x23c),_0x481b87[_0x211f6c(0x18b)])){let _0x59a8e8=await onepay[_0x211f6c(0x240)](_0x81b16,_0x36c2e2[_0x211f6c(0x2cd)]);model[_0x211f6c(0x1a0)]({'_id':_0x81b16['_id']},{'virtual_payment_client_url':_0x59a8e8},_0x31152d=>{const _0x347011=_0x211f6c;if(_0x31152d)console[_0x347011(0x2c5)](_0x481b87['WRbGY'],_0x31152d[_0x347011(0xad)]);}),_0x81b16[_0x211f6c(0x287)]=_0x59a8e8;}else{if(_0x1e994d){const _0x1d5d45=_0x2c14e0['apply'](_0x436e3a,arguments);return _0x3b522c=null,_0x1d5d45;}}}catch(_0x57dc36){console[_0x211f6c(0x2c5)](_0x481b87[_0x211f6c(0x281)],_0x57dc36[_0x211f6c(0xad)]),_0x81b16[_0x211f6c(0x287)]='';}_0x481b87['ifFyf'](_0x81b16[_0x211f6c(0x122)],'9')?(await transaction[_0x211f6c(0xd3)]({'id_ct':_0x81b16[_0x211f6c(0x17b)][_0x211f6c(0x275)]()}),await transaction[_0x211f6c(0xd3)]({'id_ct':_0x81b16['_id'][_0x211f6c(0x275)]()+_0x481b87[_0x211f6c(0x117)]},_0x481b87[_0x211f6c(0x217)])):_0x481b87['OmGlc'](_0x481b87[_0x211f6c(0x2c4)],_0x481b87[_0x211f6c(0x103)])?(_0x552781[_0x211f6c(0x16e)]=_0x316529['ctcpbhs'][_0x211f6c(0x2ab)](_0x481b87[_0x211f6c(0x27f)]),_0x370705[_0x211f6c(0x157)]=_0x1c8320[_0x211f6c(0x1bf)][_0x211f6c(0x2ab)](_0x481b87['MAUjX'])):await _0x481b87[_0x211f6c(0x192)](createTransactionBonus,_0x81b16);await Evoucher[_0x211f6c(0x1ff)]({'id_ct_used':_0x81b16[_0x211f6c(0x17b)]['toString']()},{'id_ct_used':''});if(_0x81b16[_0x211f6c(0x29c)]){if(_0x481b87[_0x211f6c(0x1f4)](_0x481b87[_0x211f6c(0x21c)],_0x211f6c(0x284)))await Promise[_0x211f6c(0x12e)](_0x81b16[_0x211f6c(0x29c)]['map'](_0x5c6c3e=>{const _0x5161c1=_0x211f6c;if(_0x5161c1(0x2cc)!==_0x481b87['gRkHu'])return Evoucher[_0x5161c1(0x1a0)]({'_id':_0x5c6c3e[_0x5161c1(0x17b)]},{'id_ct_used':_0x81b16['_id'][_0x5161c1(0x275)]()});else{const _0x19a9f8={'EuMun':function(_0x52be31){return _0x52be31();}},_0xde62c8=_0x59b3c2[_0x5161c1(0xbd)]||[];_0xde62c8[_0x5161c1(0x170)](_0x14bee3,_0x789f96,[{'where':_0x3fdce7[_0x5161c1(0xeb)],'fields':_0x3fdce7['sgAGE']}],function(){const _0x56a96e=_0x5161c1;_0x19a9f8[_0x56a96e(0x2dd)](_0x3a1483);});}}));else{if(_0x4888eb)return _0x481b87[_0x211f6c(0x266)](_0x29ad1c,new _0x1b0aab(_0x5f05a0));_0x220fd4(_0x481b87[_0x211f6c(0x1f4)](_0x12ad74[_0x211f6c(0x236)],0x0)?0x0:_0x4ebb40[0x0][_0x211f6c(0x139)]);}}_0x25ebf1(null,_0x81b16);},_0x1dcf47['deleting']=function(_0x51f78a,_0x2c8391,_0x51e34e){_0x51e34e(null,_0x2c8391);},_0x1dcf47[_0x34f482(0x146)]=async function(_0x2e38a5,_0x1243d7,_0xbad60f){const _0x25262c=_0x34f482,_0x482dfb={'AVeBh':function(_0x5c1b60,_0xaf5bca){return _0x481b87['cNtcO'](_0x5c1b60,_0xaf5bca);},'DJNgw':'VND','PmjPT':function(_0x2c6d5f,_0x62de0){return _0x481b87['RVhrL'](_0x2c6d5f,_0x62de0);},'mKRwq':_0x481b87[_0x25262c(0x218)]};if(_0x481b87[_0x25262c(0xe5)](_0x481b87[_0x25262c(0x142)],_0x481b87[_0x25262c(0x22e)]))await transaction['deleteTrans']({'id_ct':_0x1243d7[_0x25262c(0x17b)][_0x25262c(0x275)]()}),await transaction[_0x25262c(0xd3)]({'id_ct':_0x481b87[_0x25262c(0x1fa)](_0x1243d7[_0x25262c(0x17b)]['toString'](),_0x25262c(0x208))},_0x481b87['ajUxV']),_0x1243d7[_0x25262c(0x29c)]&&await Promise[_0x25262c(0x12e)](_0x1243d7[_0x25262c(0x29c)][_0x25262c(0x9c)](_0x4a7b4e=>{const _0x9f9bc4=_0x25262c;if(_0x482dfb[_0x9f9bc4(0x269)](_0x482dfb['mKRwq'],_0x482dfb[_0x9f9bc4(0x1d1)])){const _0x2ed050=_0x147349[_0x9f9bc4(0xbd)][_0x258519];_0x2ed050[_0x9f9bc4(0x141)]=_0xbe72a8,_0x482dfb[_0x9f9bc4(0x1de)](_0x12b18a[_0x9f9bc4(0xdf)],_0x482dfb[_0x9f9bc4(0x2ba)])&&(_0x2ed050['tien']=_0x2ed050[_0x9f9bc4(0x2a2)],_0x2ed050[_0x9f9bc4(0x26e)]=_0x2ed050[_0x9f9bc4(0x1bb)],_0x2ed050[_0x9f9bc4(0x1b9)]=_0x2ed050[_0x9f9bc4(0xea)],_0x2ed050[_0x9f9bc4(0x133)]=_0x2ed050[_0x9f9bc4(0x209)]);}else return Evoucher['findOneAndUpdate']({'_id':_0x4a7b4e[_0x9f9bc4(0x17b)]},{'id_ct_used':''});})),_0xbad60f(null,_0x1243d7);else return _0x3fcd97['findOneAndUpdate']({'_id':_0x125e6a['_id']},{'id_ct_used':''});},_0x1dcf47[_0x34f482(0x1bd)]=function(_0x4d63bc,_0x511ba5,_0x41fa4b){const _0x5a6123=_0x34f482,_0x8bb9b3={'hfXlk':function(_0x2d36b9,_0x41fdfe){const _0x3b5693=_0x2a29;return _0x481b87[_0x3b5693(0x192)](_0x2d36b9,_0x41fdfe);},'lDOWE':function(_0x2bc0da){const _0x3917fc=_0x2a29;return _0x481b87[_0x3917fc(0x2b9)](_0x2bc0da);},'HeMMb':_0x481b87[_0x5a6123(0x119)],'KiKiP':_0x481b87[_0x5a6123(0x13f)],'cWOnr':_0x481b87[_0x5a6123(0x20f)],'hiOsL':_0x5a6123(0x23f),'vReWV':_0x481b87[_0x5a6123(0x1a8)],'qkQkF':function(_0x5209e5,_0x347d37,_0x1d0849){return _0x481b87['selvO'](_0x5209e5,_0x347d37,_0x1d0849);},'Pwjds':function(_0xcaa01,_0x1b6ff8){const _0x5e1d85=_0x5a6123;return _0x481b87[_0x5e1d85(0x143)](_0xcaa01,_0x1b6ff8);},'wSJJY':_0x481b87[_0x5a6123(0x1ed)],'IaaML':_0x481b87[_0x5a6123(0x150)],'zQiFe':function(_0x5dccc7,_0x1481de){return _0x5dccc7-_0x1481de;},'gzUUC':_0x481b87[_0x5a6123(0x14a)],'odJpJ':_0x5a6123(0x1b9),'yoffj':function(_0xa500f0,_0xb7954a){return _0xa500f0!==_0xb7954a;},'AUAQI':'nNqAx','KquRZ':_0x481b87[_0x5a6123(0x128)],'SgkYM':_0x481b87[_0x5a6123(0x27f)],'SQcwR':_0x481b87['MAUjX'],'LOjkT':_0x481b87['rAZGj'],'nMpVN':_0x481b87['oZlty'],'SmNGz':_0x481b87[_0x5a6123(0x19b)],'nNsoy':_0x481b87[_0x5a6123(0xaf)],'stLQH':function(_0x58453c){const _0x5c3acb=_0x5a6123;return _0x481b87[_0x5c3acb(0x2a8)](_0x58453c);},'hmfRr':function(_0x313280,_0x21464a){const _0x535274=_0x5a6123;return _0x481b87[_0x535274(0x204)](_0x313280,_0x21464a);},'DmNMy':_0x481b87[_0x5a6123(0x1a4)],'qdDdW':_0x481b87[_0x5a6123(0x173)],'DHViR':function(_0x57c2af,_0x265887){const _0x33940b=_0x5a6123;return _0x481b87[_0x33940b(0x1ae)](_0x57c2af,_0x265887);},'JXXmZ':function(_0x2ac43f,_0x1a887a){return _0x2ac43f*_0x1a887a;},'YQOsl':_0x481b87['JDfus'],'atUvo':_0x481b87['veIuc'],'sSEzK':_0x481b87[_0x5a6123(0x10c)],'MpjSi':_0x481b87['oopzu'],'OLEuz':function(_0x5ee95c){const _0x1cc305=_0x5a6123;return _0x481b87[_0x1cc305(0x1c5)](_0x5ee95c);},'ShqFv':function(_0x28d010){const _0x536503=_0x5a6123;return _0x481b87[_0x536503(0x110)](_0x28d010);},'RQhDc':function(_0x5aca10){const _0x278998=_0x5a6123;return _0x481b87[_0x278998(0x202)](_0x5aca10);},'VaFFa':_0x481b87[_0x5a6123(0x199)],'pKcWR':_0x5a6123(0x223)};if(_0x5a6123(0x129)===_0x481b87[_0x5a6123(0xdc)]){if(!_0x24ccdc['pt_thanh_toan'])return _0x1fe260({});else _0x4d8db5[_0x5a6123(0xfb)]({'id_app':_0x39f701[_0x5a6123(0xef)],'_id':_0x152355[_0x5a6123(0x114)]})[_0x5a6123(0x17d)]()[_0x5a6123(0x1ea)]((_0x24e03e,_0x527d1d)=>{const _0x56c8cb=_0x5a6123;if(_0x24e03e)_0xeee358['log'](_0x24e03e);_0x8bb9b3[_0x56c8cb(0x15a)](_0x547972,_0x527d1d||{});});}else{let _0x570750=_0x4d63bc[_0x5a6123(0x19c)];async['series']({'kh':function(_0x4668af){const _0x264388=_0x5a6123,_0xa8c6a9={'DwGET':function(_0x3ecf0b){const _0x80b304=_0x2a29;return _0x8bb9b3[_0x80b304(0x159)](_0x3ecf0b);}};_0x511ba5[_0x264388(0x170)](_0x570750,customer,[{'where':_0x264388(0x9e),'fields':_0x8bb9b3['HeMMb']}],function(){_0xa8c6a9['DwGET'](_0x4668af);});},'dich_vu_giao_hang':function(_0x190e37){const _0xf6d318=_0x5a6123;_0x511ba5[_0xf6d318(0x170)](_0x570750,customer,[{'where':{'dich_vu_giao_hang':_0xf6d318(0x9e)},'fields':{'ten_dich_vu_giao_hang':_0x481b87[_0xf6d318(0x119)]}}],function(){_0x190e37();});},'trangthai':function(_0x297d65){const _0x2201fd=_0x5a6123;_0x511ba5[_0x2201fd(0x170)](null,trangthai,[{'where':{'trang_thai':_0x8bb9b3['KiKiP'],'ma_ct':_0x8bb9b3[_0x2201fd(0x127)]},'fields':[_0x8bb9b3['hiOsL'],_0x8bb9b3['vReWV']]}],function(){_0x297d65();});},'ptthanhtoan':function(_0x2a73c1){const _0x131bfe=_0x5a6123,_0x2b2544={'uEQGk':function(_0x58b5c3,_0xd4f986){const _0x4967eb=_0x2a29;return _0x481b87[_0x4967eb(0x266)](_0x58b5c3,_0xd4f986);},'BZyem':function(_0x3407fc,_0x4335ab){return _0x3407fc(_0x4335ab);},'phzaJ':function(_0x6760cd,_0x45fde2,_0x9b1bfc,_0x36ef9e){const _0x3e62f9=_0x2a29;return _0x481b87[_0x3e62f9(0x1c2)](_0x6760cd,_0x45fde2,_0x9b1bfc,_0x36ef9e);},'Ssylc':_0x481b87[_0x131bfe(0x260)],'OuVkT':_0x481b87[_0x131bfe(0x113)]};_0x481b87[_0x131bfe(0xff)]('gFZzM',_0x131bfe(0x12d))?_0x511ba5[_0x131bfe(0x170)](_0x570750,ptthanhtoan,[{'where':{'pt_thanh_toan':_0x481b87['iqgJC']},'fields':{'ten_pt_thanh_toan':_0x481b87['yMDIc']}}],function(){const _0x4ff3f5=_0x131bfe;if(_0x2b2544[_0x4ff3f5(0x116)]!==_0x2b2544[_0x4ff3f5(0x2a6)])_0x2a73c1();else{const _0x14de78={'UujEa':function(_0x466057,_0x3a4d6e){const _0x2af2a7=_0x4ff3f5;return _0x2b2544[_0x2af2a7(0x138)](_0x466057,_0x3a4d6e);},'YRVWO':function(_0x35b9dc,_0x14eaec){return _0x35b9dc!==_0x14eaec;},'HmDlk':function(_0x3e5546,_0x5800dd){const _0x934092=_0x4ff3f5;return _0x2b2544[_0x934092(0x26b)](_0x3e5546,_0x5800dd);},'qkVvT':function(_0x4c78a8,_0x19aec1,_0x13b168,_0x578735){const _0x1061b1=_0x4ff3f5;return _0x2b2544[_0x1061b1(0x2d1)](_0x4c78a8,_0x19aec1,_0x13b168,_0x578735);}};_0x2b2544[_0x4ff3f5(0x2d1)](_0x26e0b9,_0x4f0af6,_0x4c1fdb,async _0x4d4122=>{const _0x2d6844=_0x4ff3f5;if(_0x4d4122)return _0x14de78['UujEa'](_0x4bad55,_0x4d4122);if(_0x14de78[_0x2d6844(0x251)](_0x8092f3[_0x2d6844(0x261)]||0x0,_0xaad51d[_0x2d6844(0x261)]||0x0))return _0x14de78[_0x2d6844(0x276)](_0x36f828,_0x2d6844(0x16b));_0x14de78[_0x2d6844(0x18a)](_0x5e6d8b,null,_0x3fb116,_0x2450ce);});}}):_0x3184ed[_0x131bfe(0x228)]=_0xbda718['tk_tien'];},'t_tien':function(_0x32808b){const _0x3e6a2c=_0x5a6123,_0x541b66={'JDuAj':function(_0x3634d7,_0x1d81a2){return _0x481b87['MZWAN'](_0x3634d7,_0x1d81a2);}};if(_0x481b87[_0x3e6a2c(0x272)](_0x481b87['fzpfS'],_0x481b87[_0x3e6a2c(0x24a)]))_0x511ba5[_0x3e6a2c(0x1a5)](function(_0x418050){const _0x59c603=_0x3e6a2c,_0x36cf2e={'IWLwk':function(_0x37c2ae,_0x2f7963,_0x117113){const _0x2b9b86=_0x2a29;return _0x8bb9b3[_0x2b9b86(0x198)](_0x37c2ae,_0x2f7963,_0x117113);}};if(_0x418050['details']){const _0x36afe4=_0x59c603(0x189)[_0x59c603(0x16c)]('|');let _0x411ac5=0x0;while(!![]){switch(_0x36afe4[_0x411ac5++]){case'0':_0x418050['t_ck_nt']=_0x8bb9b3[_0x59c603(0x262)](_0x418050['details'][_0x59c603(0x2ab)](_0x8bb9b3[_0x59c603(0x288)]),_0x418050[_0x59c603(0x1d8)]);continue;case'1':_0x418050['t_tien']=_0x418050[_0x59c603(0xce)]-_0x418050[_0x59c603(0x241)];continue;case'2':_0x418050[_0x59c603(0x277)]=_0x418050[_0x59c603(0xbd)]['csum'](_0x8bb9b3[_0x59c603(0x258)]);continue;case'3':_0x418050[_0x59c603(0x14c)]=_0x8bb9b3['zQiFe'](_0x418050[_0x59c603(0x277)],_0x418050['t_ck_nt']);continue;case'4':_0x418050['t_tien_hang']=_0x418050[_0x59c603(0xbd)][_0x59c603(0x2ab)](_0x8bb9b3[_0x59c603(0xf6)]);continue;case'5':_0x418050[_0x59c603(0x163)]=_0x418050[_0x59c603(0xbd)][_0x59c603(0x2ab)](_0x59c603(0x256));continue;case'6':_0x418050['t_ck']=_0x8bb9b3[_0x59c603(0x262)](_0x418050['details']['csum'](_0x8bb9b3[_0x59c603(0x1b6)]),_0x418050[_0x59c603(0x1d8)]);continue;}break;}}else{if(_0x8bb9b3[_0x59c603(0x2cb)](_0x8bb9b3[_0x59c603(0x2b1)],_0x59c603(0x231)))_0x36cf2e[_0x59c603(0xbb)](_0x357274,null,_0x9f2324);else{const _0x2094fe=_0x8bb9b3[_0x59c603(0x187)]['split']('|');let _0x23481a=0x0;while(!![]){switch(_0x2094fe[_0x23481a++]){case'0':_0x418050[_0x59c603(0x14c)]=_0x418050['t_tien_hang_nt']-_0x418050[_0x59c603(0x252)];continue;case'1':_0x418050[_0x59c603(0x163)]=0x0;continue;case'2':_0x418050[_0x59c603(0xce)]=0x0;continue;case'3':_0x418050[_0x59c603(0x252)]=0x0;continue;case'4':_0x418050[_0x59c603(0x20b)]=_0x8bb9b3['zQiFe'](_0x418050[_0x59c603(0xce)],_0x418050[_0x59c603(0x241)]);continue;case'5':_0x418050[_0x59c603(0x241)]=0x0;continue;case'6':_0x418050[_0x59c603(0x277)]=0x0;continue;}break;}}}_0x418050[_0x59c603(0x1bf)]?(_0x418050[_0x59c603(0x16e)]=_0x418050[_0x59c603(0x1bf)][_0x59c603(0x2ab)](_0x8bb9b3[_0x59c603(0x1a3)]),_0x418050[_0x59c603(0x157)]=_0x418050['ctcpbhs'][_0x59c603(0x2ab)](_0x8bb9b3[_0x59c603(0x13b)])):(_0x418050[_0x59c603(0x16e)]=0x0,_0x418050[_0x59c603(0x157)]=0x0),_0x418050['t_tt_nt']=_0x418050[_0x59c603(0x14c)]+_0x418050['t_cp_cpb_nt'],_0x418050[_0x59c603(0x1f0)]=_0x418050[_0x59c603(0x20b)]+_0x418050[_0x59c603(0x157)];}),_0x481b87[_0x3e6a2c(0x2b9)](_0x32808b);else return _0x541b66[_0x3e6a2c(0x239)](_0x4b02d3,new _0x538e23(_0x3e6a2c(0xb7)+_0x5e194c['ma']+_0x3e6a2c(0x2da)));},'details_vt':function(_0x246d32){const _0x3b872d=_0x5a6123,_0x1e9b69={'qmaGn':function(_0x1f365c){const _0x16565a=_0x2a29;return _0x8bb9b3[_0x16565a(0x1a7)](_0x1f365c);},'GZwhs':function(_0x138794,_0x42734b){const _0x5da8e3=_0x2a29;return _0x8bb9b3[_0x5da8e3(0x18c)](_0x138794,_0x42734b);},'nfNlT':function(_0x204608,_0x52bd10,_0x1b997c){return _0x204608(_0x52bd10,_0x1b997c);},'HGinN':_0x8bb9b3[_0x3b872d(0xc7)]};_0x8bb9b3[_0x3b872d(0x109)]===_0x8bb9b3[_0x3b872d(0x109)]?async[_0x3b872d(0x267)](_0x511ba5,function(_0x1c1826,_0xfb9b30){const _0x5e8fa7=_0x3b872d,_0x13aea7={'ENhyk':_0x8bb9b3[_0x5e8fa7(0x291)]},_0x44ab43=_0x1c1826[_0x5e8fa7(0xbd)]||[];_0x44ab43[_0x5e8fa7(0x1a5)](_0x41c7ee=>{const _0x1c0455=_0x5e8fa7;_0x41c7ee[_0x1c0455(0x1ad)]=_0x13aea7[_0x1c0455(0x15e)];}),_0x44ab43[_0x5e8fa7(0x170)](_0x570750,department,[{'where':_0x8bb9b3[_0x5e8fa7(0x274)],'fields':[_0x8bb9b3[_0x5e8fa7(0x1a2)],_0x8bb9b3[_0x5e8fa7(0x106)],{'code':_0x8bb9b3[_0x5e8fa7(0x274)]},{'title':_0x8bb9b3[_0x5e8fa7(0x1a2)]},{'obj_id':_0x5e8fa7(0x17b)}]}],function(){_0xfb9b30();});},function(){const _0x45205b=_0x3b872d;_0x1e9b69[_0x45205b(0x1c7)](_0x246d32);}):_0x4e2ea4[_0x3b872d(0xfb)]({'id_app':_0x2fb7f0[_0x3b872d(0x19c)]},{'_id':0x1},function(_0x122d50,_0x40618f){const _0x22323b=_0x3b872d;if(_0x122d50)return _0x1e9b69[_0x22323b(0x2a1)](_0x4b3224,_0x122d50);return _0x40618f?(_0x1221d6[_0x22323b(0xe6)]=_0x40618f[_0x22323b(0x17b)][_0x22323b(0x275)](),_0x1e9b69[_0x22323b(0x27b)](_0x5472bd,null,_0x20d4da)):_0x1e9b69[_0x22323b(0x2a1)](_0x2fab2d,_0x1e9b69[_0x22323b(0xfc)]);});},'details_dt':function(_0x186d22){const _0x54f64c=_0x5a6123,_0x2636f4={'dVwrd':function(_0x136ee4){const _0x4bce1a=_0x2a29;return _0x481b87[_0x4bce1a(0x23a)](_0x136ee4);},'IbDBv':_0x481b87[_0x54f64c(0x11a)],'WeqlH':_0x481b87['pVUtD']};async[_0x54f64c(0x1cc)](_0x511ba5,function(_0x30c57a,_0x4b4c61){const _0x3d1819=_0x54f64c,_0x29f906=_0x30c57a[_0x3d1819(0xbd)]||[];_0x29f906[_0x3d1819(0x170)](_0x570750,dmdt,[{'where':_0x2636f4['IbDBv'],'fields':_0x2636f4[_0x3d1819(0x178)]}],function(){const _0x3a8696=_0x3d1819;_0x2636f4[_0x3a8696(0x1f6)](_0x4b4c61);});},function(){_0x186d22();});},'details_contract':function(_0x37b1d8){const _0x343095=_0x5a6123,_0x43e4fa={'dEjDh':function(_0x3dc66e){const _0x1cef42=_0x2a29;return _0x481b87[_0x1cef42(0x23a)](_0x3dc66e);},'VtFFM':_0x481b87['Xnamm'],'wumSO':function(_0x17e5b5,_0x289149){const _0xe339dc=_0x2a29;return _0x481b87[_0xe339dc(0x280)](_0x17e5b5,_0x289149);},'SOlzU':_0x481b87[_0x343095(0x245)],'JfrlG':_0x481b87[_0x343095(0x151)],'rrIjW':function(_0x315693){return _0x481b87['InYVP'](_0x315693);},'WAcMA':_0x481b87['hkjgP'],'ouATe':function(_0x2ed796,_0x440688){return _0x2ed796(_0x440688);},'GtOCL':function(_0x334d78,_0x28dec8){return _0x334d78||_0x28dec8;},'rXCpd':function(_0x2c524c,_0xd3af3e){return _0x481b87['IsFfv'](_0x2c524c,_0xd3af3e);},'nqJyh':_0x481b87[_0x343095(0x13a)],'HGRKw':_0x481b87[_0x343095(0x1d6)]};if(_0x481b87['dtJYX'](_0x481b87[_0x343095(0x180)],_0x481b87[_0x343095(0x20a)]))async['mapSeries'](_0x511ba5,function(_0x3b178d,_0x297cde){const _0x27c73d=_0x343095,_0x5bdf7e={'mFzjF':function(_0x4f3ab8){const _0x36de15=_0x2a29;return _0x43e4fa[_0x36de15(0x172)](_0x4f3ab8);}},_0x380dd4=_0x3b178d[_0x27c73d(0xbd)]||[];_0x380dd4[_0x27c73d(0x170)](_0x570750,contract,[{'where':{'ma_hd':_0x43e4fa[_0x27c73d(0xa3)]},'fields':_0x27c73d(0x11c)}],function(){const _0x3e01d8=_0x27c73d,_0x1fb9aa={'iMJxV':function(_0x2e8cc5){return _0x43e4fa['dEjDh'](_0x2e8cc5);},'zIRkd':_0x43e4fa[_0x3e01d8(0x9d)]};if(_0x43e4fa[_0x3e01d8(0x11b)](_0x43e4fa[_0x3e01d8(0x1c4)],_0x43e4fa['JfrlG'])){const _0x588ef2={'mKCqc':function(_0x27fbd3){const _0x3cf7fb=_0x3e01d8;return _0x5bdf7e[_0x3cf7fb(0x1b7)](_0x27fbd3);}};_0x568587[_0x3e01d8(0x1cc)](_0xf94aa2,function(_0x3779f1,_0x338d61){const _0x1fb6d8=_0x3e01d8,_0x238c07={'YhGOz':function(_0x137dbc){const _0xd4e423=_0x2a29;return _0x1fb9aa[_0xd4e423(0x17a)](_0x137dbc);}},_0x3485ae=_0x3779f1[_0x1fb6d8(0xbd)]||[];_0x3485ae[_0x1fb6d8(0x170)](_0x3eb69d,_0x10f6fa,[{'where':_0x1fb6d8(0x2b2),'fields':_0x1fb9aa[_0x1fb6d8(0x14b)]}],function(){_0x238c07['YhGOz'](_0x338d61);});},function(){const _0x59cb8b=_0x3e01d8;_0x588ef2[_0x59cb8b(0x15c)](_0x41cf72);});}else _0x43e4fa['dEjDh'](_0x297cde);});},function(){const _0x299d3e=_0x343095,_0x177254={'zbclk':function(_0x22b0d7,_0x2f37df){const _0x1fb6c9=_0x2a29;return _0x43e4fa[_0x1fb6c9(0x123)](_0x22b0d7,_0x2f37df);},'eRhgP':function(_0x32a73b,_0x3dce3f){const _0x534f89=_0x2a29;return _0x43e4fa[_0x534f89(0x21d)](_0x32a73b,_0x3dce3f);}};if(_0x43e4fa[_0x299d3e(0x102)](_0x43e4fa[_0x299d3e(0x1dc)],_0x43e4fa[_0x299d3e(0xcb)])){if(_0xc8b459)_0x5b58d8[_0x299d3e(0x2c5)](_0x1f6a28);_0x177254[_0x299d3e(0x153)](_0x54e8ed,_0x177254['eRhgP'](_0x25da5b,{}));}else _0x37b1d8();});else{let _0x409c7f=_0x8bb9b3[_0x343095(0x164)](_0x4c73fe[0x0][_0x343095(0x232)],_0x274996[0x0][_0x343095(0x222)]);if(!_0x409c7f)return;let _0x111eee=_0x232061['details']['map'](_0x1a2a53=>_0x1a2a53[_0x343095(0x26e)]-(_0x1a2a53['tien_ck']||0x0))[_0x343095(0x108)]((_0x12b9ec,_0x21fcf7)=>_0x12b9ec+_0x21fcf7,0x0);_0x34650b=_0x225758['roundBy'](_0x8bb9b3['JXXmZ'](_0x111eee,_0x409c7f),0x0);}},'details_phi':function(_0x1cfae8){const _0x380882=_0x5a6123,_0x1e8f6f={'ANQVj':_0x8bb9b3[_0x380882(0xa6)],'UNDdR':'ten_phi','jUfUE':function(_0x528ec4){const _0x554a83=_0x380882;return _0x8bb9b3[_0x554a83(0x159)](_0x528ec4);}};async[_0x380882(0x1cc)](_0x511ba5,function(_0x40eade,_0x294441){const _0x662c4a=_0x380882,_0x1e181e=_0x40eade[_0x662c4a(0xbd)]||[];_0x1e181e[_0x662c4a(0x170)](_0x570750,dmphi,[{'where':_0x1e8f6f[_0x662c4a(0x2d2)],'fields':_0x1e8f6f[_0x662c4a(0x1b0)]}],function(){_0x294441();});},function(){const _0x261449=_0x380882;_0x1e8f6f[_0x261449(0xf0)](_0x1cfae8);});},'details_cpbh':function(_0xfc3e5e){const _0x3e1820=_0x5a6123,_0x49e224={'vpHGq':function(_0x32b162,_0x45855a){return _0x32b162(_0x45855a);},'xLUxc':function(_0x5a5b70){const _0xe318c2=_0x2a29;return _0x8bb9b3[_0xe318c2(0xa8)](_0x5a5b70);},'xCJLc':function(_0x4ac9aa){const _0x914057=_0x2a29;return _0x8bb9b3[_0x914057(0x285)](_0x4ac9aa);}};_0x8bb9b3['yoffj'](_0x8bb9b3[_0x3e1820(0x1f3)],_0x8bb9b3[_0x3e1820(0x140)])?async[_0x3e1820(0x267)](_0x511ba5,function(_0x4de450,_0x41237f){const _0x18aa63=_0x3e1820;if(_0x8bb9b3[_0x18aa63(0x2cb)](_0x8bb9b3[_0x18aa63(0x1d2)],_0x8bb9b3[_0x18aa63(0x1d2)]))return _0x49e224[_0x18aa63(0x188)](_0x43ea55,_0x18aa63(0x1dd));else{const _0xb981d2=_0x4de450['ctcpbhs'];_0xb981d2?_0x8bb9b3[_0x18aa63(0x273)]===_0x8bb9b3[_0x18aa63(0x273)]?_0xb981d2[_0x18aa63(0x170)](_0x570750,dmcpmh,[{'where':_0x18aa63(0x298),'fields':_0x8bb9b3[_0x18aa63(0xb6)]}],function(){const _0x1bc89=_0x18aa63;_0x49e224[_0x1bc89(0x26c)](_0x41237f);}):_0x49e224['xCJLc'](_0x4b0041):_0x8bb9b3['OLEuz'](_0x41237f);}},function(){const _0xb191d7=_0x3e1820;_0x49e224[_0xb191d7(0x26c)](_0xfc3e5e);}):_0x253f80[_0x3e1820(0x228)]=_0x2226d4[_0x3e1820(0x2b6)];}},function(){const _0x2a5336=_0x5a6123;_0x481b87[_0x2a5336(0x165)](_0x41fa4b,null,_0x511ba5);});}};};