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.
- package/package.json +2 -1
- package/server/app.js +1 -22
- package/server/auths/bearer.js +1 -3
- package/server/auths/facebook.js +1 -12
- package/server/auths/google.js +1 -13
- package/server/auths/local.js +1 -64
- package/server/cluster.js +1 -27
- package/server/controllers/controller.js +1 -107
- package/server/controllers/controllerRPT.js +1 -27
- package/server/controllers/controllerUtils.js +1 -76
- package/server/controllers/createHandler.js +1 -35
- package/server/controllers/createRouteHandler.js +1 -4
- package/server/controllers/deleteHandler.js +1 -11
- package/server/controllers/deleteManyHandler.js +1 -2
- package/server/controllers/exportHandler.js +1 -17
- package/server/controllers/findHandler.js +1 -53
- package/server/controllers/handlers.js +1 -3
- package/server/controllers/historyHandler.js +1 -5
- package/server/controllers/importFromExcelHandler.js +1 -14
- package/server/controllers/importFromGsHandler.js +1 -10
- package/server/controllers/importFromJsonHandler.js +1 -7
- package/server/controllers/importHandler.js +1 -21
- package/server/controllers/logHandler.js +1 -5
- package/server/controllers/rptCreateRouteHandler.js +1 -4
- package/server/controllers/rptExcelHandler.js +1 -32
- package/server/controllers/rptHandler.js +1 -13
- package/server/controllers/updateBookHandler.js +1 -10
- package/server/controllers/updateFieldHandler.js +1 -12
- package/server/controllers/updateHandler.js +1 -39
- package/server/controllers/updateKeyHandler.js +1 -14
- package/server/controllers/viewHandler.js +1 -13
- package/server/flow/FlowEngine.js +1 -64
- package/server/flow/WebhookManager.js +1 -26
- package/server/flow/handlers.js +1 -3
- package/server/flow/nodes/aiAnalysis.js +1 -9
- package/server/flow/nodes/customer.js +1 -15
- package/server/flow/nodes/data.js +1 -14
- package/server/flow/nodes/debug.js +1 -2
- package/server/flow/nodes/delay.js +1 -3
- package/server/flow/nodes/email.js +1 -9
- package/server/flow/nodes/event.js +1 -11
- package/server/flow/nodes/facebook.js +1 -3
- package/server/flow/nodes/facebookConversations.js +1 -5
- package/server/flow/nodes/facebookCreatePost.js +1 -10
- package/server/flow/nodes/facebookSendMessage.js +1 -12
- package/server/flow/nodes/forEachItem.js +1 -8
- package/server/flow/nodes/function.js +1 -4
- package/server/flow/nodes/httprequest.js +1 -7
- package/server/flow/nodes/inject.js +1 -12
- package/server/flow/nodes/pushNotification.js +1 -5
- package/server/flow/nodes/report.js +1 -6
- package/server/flow/nodes/saveData.js +1 -2
- package/server/flow/nodes/switch.js +1 -20
- package/server/flow/nodes/webhook.js +1 -1
- package/server/flow/nodes/zaloSendMessage.js +1 -4
- package/server/flow/utils.js +1 -2
- package/server/global.js +1 -23
- package/server/libs/BlockchainTransactionPool.js +1 -3
- package/server/libs/WorkerPool.js +1 -4
- package/server/libs/WorkerStaticPool.js +1 -16
- package/server/libs/WorkerStaticPool_v1.js +1 -5
- package/server/libs/assbonus.js +1 -7
- package/server/libs/backup.js +1 -2
- package/server/libs/blockchainconnect.js +1 -12
- package/server/libs/cdpsdiem.js +1 -5
- package/server/libs/cdpsdt.js +1 -7
- package/server/libs/cdpskh.js +1 -9
- package/server/libs/cdpsnphep.js +1 -6
- package/server/libs/cdpstk.js +1 -11
- package/server/libs/ckcn.js +1 -12
- package/server/libs/ckdiem.js +1 -5
- package/server/libs/ckdt.js +1 -6
- package/server/libs/cknphep.js +1 -6
- package/server/libs/cktk.js +1 -4
- package/server/libs/cktt.js +1 -9
- package/server/libs/ckvt.js +1 -12
- package/server/libs/ckvtcapphat.js +1 -6
- package/server/libs/ckvtnpp.js +1 -8
- package/server/libs/ckvttt.js +1 -11
- package/server/libs/createSocaitheongay.js +1 -9
- package/server/libs/ctdiem.js +1 -5
- package/server/libs/ctvt.js +1 -7
- package/server/libs/ctvtnpp.js +1 -7
- package/server/libs/ctvttt.js +1 -7
- package/server/libs/databanle.js +1 -17
- package/server/libs/databanlenpp.js +1 -8
- package/server/libs/databanletheongay.js +1 -27
- package/server/libs/dkcn.js +1 -10
- package/server/libs/dkdiem.js +1 -5
- package/server/libs/dkdt.js +1 -6
- package/server/libs/dknphep.js +1 -7
- package/server/libs/dktk.js +1 -4
- package/server/libs/dktt.js +1 -8
- package/server/libs/dkvt.js +1 -9
- package/server/libs/dkvtnpp.js +1 -7
- package/server/libs/dkvttt.js +1 -7
- package/server/libs/dncn.js +1 -6
- package/server/libs/dntk.js +1 -4
- package/server/libs/dntt.js +1 -6
- package/server/libs/docs.js +1 -452
- package/server/libs/dstkcn.js +1 -1
- package/server/libs/dstktt.js +1 -1
- package/server/libs/dtbanletheonpp.js +1 -17
- package/server/libs/dtbanletheosp.js +1 -15
- package/server/libs/dtbanletheospnpp.js +1 -15
- package/server/libs/email.js +1 -3
- package/server/libs/excel.js +1 -2
- package/server/libs/getGiaban.js +1 -67
- package/server/libs/getGiabanAsync.js +1 -1
- package/server/libs/getNotifies.js +1 -1
- package/server/libs/htmlReport.js +1 -9
- package/server/libs/initDatabase.js +1 -9
- package/server/libs/invoiceEasy.js +1 -109
- package/server/libs/invoiceViettel.js +1 -29
- package/server/libs/invoiceVnpt.js +1 -22
- package/server/libs/kpistatus.js +1 -32
- package/server/libs/load-template.js +1 -3
- package/server/libs/mailmanagement.js +1 -13
- package/server/libs/mongooseDeletePost.js +1 -6
- package/server/libs/mongooseLeanId.js +1 -1
- package/server/libs/mongoosePatch.js +1 -8
- package/server/libs/onepay-payment.js +1 -4
- package/server/libs/optimizeBookkeeping.js +1 -14
- package/server/libs/parse-template.js +1 -5
- package/server/libs/permission.js +1 -51
- package/server/libs/phanbokh.js +1 -3
- package/server/libs/post-book.js +1 -23
- package/server/libs/post-socai.js +1 -25
- package/server/libs/post-sokho.js +1 -27
- package/server/libs/prototypes.js +1 -29
- package/server/libs/psdt.js +1 -1
- package/server/libs/pskh.js +1 -1
- package/server/libs/pstk.js +1 -1
- package/server/libs/redis-cache.js +1 -17
- package/server/libs/restore.js +1 -1
- package/server/libs/schedule.js +1 -18
- package/server/libs/sessionContext.js +2 -14
- package/server/libs/textReport.js +1 -3
- package/server/libs/thnxt.js +1 -9
- package/server/libs/thnxtnpp.js +1 -9
- package/server/libs/thnxttt.js +1 -8
- package/server/libs/tinhGt.js +1 -7
- package/server/libs/tinhGtCapnhatPNK.js +1 -7
- package/server/libs/tinhGtPhanboHeSo.js +1 -12
- package/server/libs/tinhGtPhanboSltp.js +1 -10
- package/server/libs/tinhGtPhanboYtcp.js +1 -11
- package/server/libs/tinhGtSltk.js +1 -9
- package/server/libs/tinhGtThcppstk.js +1 -10
- package/server/libs/tinhGtTrucTiep.js +1 -7
- package/server/libs/tinhGtXoa.js +1 -3
- package/server/libs/tinhgiatb.js +1 -38
- package/server/libs/tinhgiatb1vt.js +1 -5
- package/server/libs/tinhhoahong.js +1 -64
- package/server/libs/tinhhoahongnpp.js +1 -46
- package/server/libs/tinhkhauhao1ts.js +1 -12
- package/server/libs/tinhkhauhaots.js +1 -8
- package/server/libs/tuoinophaithu.js +1 -10
- package/server/libs/tuoinophaitra.js +1 -11
- package/server/libs/utils.js +1 -78
- package/server/libs/validate.js +1 -4
- package/server/libs/validator-acc-cust.js +1 -1
- package/server/libs/validator-account.js +1 -4
- package/server/libs/validator-vt.js +1 -2
- package/server/libs/validator.js +1 -11
- package/server/libs/vsocai.js +1 -8
- package/server/models/account.js +1 -7
- package/server/models/afflink.js +1 -2
- package/server/models/app.js +1 -15
- package/server/models/approve.js +1 -93
- package/server/models/assabcihandler.js +1 -35
- package/server/models/assbank.js +1 -19
- package/server/models/assbooking.js +1 -4
- package/server/models/assbuy.js +1 -3
- package/server/models/asscashwithdraw.js +1 -4
- package/server/models/assfindhash.js +1 -2
- package/server/models/assinvestment.js +1 -13
- package/server/models/assissue.js +1 -2
- package/server/models/asskey.js +1 -15
- package/server/models/assneedtobuy.js +1 -6
- package/server/models/assperiod.js +1 -7
- package/server/models/assproduct.js +1 -13
- package/server/models/assprofitsharing.js +1 -4
- package/server/models/assreceiver.js +1 -2
- package/server/models/assrequest.js +1 -11
- package/server/models/asssell.js +1 -7
- package/server/models/asstransaction.js +1 -3
- package/server/models/asstransfer.js +1 -4
- package/server/models/assuser_identity.js +1 -4
- package/server/models/asswithdraw.js +1 -4
- package/server/models/attend.js +1 -2
- package/server/models/banggiaban.js +1 -8
- package/server/models/bangtinhluong.js +1 -6
- package/server/models/base.js +1 -1
- package/server/models/bds_area.js +1 -4
- package/server/models/bds_block.js +1 -3
- package/server/models/bds_building.js +1 -4
- package/server/models/bds_floor.js +1 -3
- package/server/models/bds_floordetail.js +1 -9
- package/server/models/bds_nhadat.js +1 -11
- package/server/models/bds_nhomnhadat.js +1 -4
- package/server/models/bds_phanloainhadat.js +1 -3
- package/server/models/bg1.js +1 -9
- package/server/models/bg2.js +1 -10
- package/server/models/cache.js +1 -3
- package/server/models/calllog.js +1 -4
- package/server/models/campaign.js +1 -6
- package/server/models/cart.js +1 -5
- package/server/models/cddiem.js +1 -2
- package/server/models/cddt.js +1 -3
- package/server/models/cdkh.js +1 -5
- package/server/models/cdkhtheongay.js +1 -5
- package/server/models/cdnphep.js +1 -2
- package/server/models/cdtk.js +1 -3
- package/server/models/cdtktheongay.js +1 -3
- package/server/models/cdvt.js +1 -5
- package/server/models/cdvtnpp.js +1 -6
- package/server/models/cdvttheongay.js +1 -5
- package/server/models/chamcong.js +1 -7
- package/server/models/checkin.js +1 -4
- package/server/models/checkinactivity.js +1 -3
- package/server/models/checkinkpi.js +1 -4
- package/server/models/checkinlocation.js +1 -2
- package/server/models/chitieukpi.js +1 -3
- package/server/models/chudethaoluan.js +1 -3
- package/server/models/ckgtluong.js +1 -2
- package/server/models/colleague.js +1 -2
- package/server/models/comment.js +1 -4
- package/server/models/congdoansx.js +1 -4
- package/server/models/congtacvien.js +1 -4
- package/server/models/congthuctinhgiaban.js +1 -8
- package/server/models/consultant.js +1 -4
- package/server/models/contract.js +1 -6
- package/server/models/counter.js +1 -2
- package/server/models/ctds.js +1 -5
- package/server/models/ctds2.js +1 -6
- package/server/models/currency.js +1 -3
- package/server/models/customer.js +1 -31
- package/server/models/databanle.js +1 -8
- package/server/models/datlich.js +1 -4
- package/server/models/department.js +1 -4
- package/server/models/dh2.js +1 -20
- package/server/models/diagram.js +1 -2
- package/server/models/dinhmucsx.js +1 -8
- package/server/models/dkhoc.js +1 -6
- package/server/models/dknphep.js +1 -2
- package/server/models/dmban.js +1 -4
- package/server/models/dmbp.js +1 -12
- package/server/models/dmca.js +1 -2
- package/server/models/dmchietkhau.js +1 -9
- package/server/models/dmchietkhauhd.js +1 -20
- package/server/models/dmcpmh.js +1 -2
- package/server/models/dmdiemthuong.js +1 -5
- package/server/models/dmdoi.js +1 -4
- package/server/models/dmdoituongdanhgia.js +1 -2
- package/server/models/dmdt.js +1 -8
- package/server/models/dmdvt.js +1 -3
- package/server/models/dmgiaban.js +1 -9
- package/server/models/dmgiamua.js +1 -5
- package/server/models/dmgiathitruong.js +1 -5
- package/server/models/dmgiathitruong_ngay.js +1 -2
- package/server/models/dmgiathitruong_theodoi.js +1 -2
- package/server/models/dmhoahonghd.js +1 -9
- package/server/models/dmhoahongnpp.js +1 -9
- package/server/models/dmkc.js +1 -3
- package/server/models/dmkho.js +1 -6
- package/server/models/dmkhuyenmai.js +1 -9
- package/server/models/dmkhuyenmaihd.js +1 -11
- package/server/models/dmletet.js +1 -2
- package/server/models/dmlo.js +1 -4
- package/server/models/dmloaicong.js +1 -4
- package/server/models/dmloaitask.js +1 -2
- package/server/models/dmloaits.js +1 -2
- package/server/models/dmnckkm.js +1 -4
- package/server/models/dmnghiepvu.js +1 -4
- package/server/models/dmnguonvon.js +1 -2
- package/server/models/dmnhnv.js +1 -4
- package/server/models/dmnv.js +1 -17
- package/server/models/dmnvt.js +1 -9
- package/server/models/dmphatdichvu.js +1 -5
- package/server/models/dmphi.js +1 -3
- package/server/models/dmqct.js +1 -3
- package/server/models/dmqddvt.js +1 -3
- package/server/models/dmtanggiamts.js +1 -3
- package/server/models/dmto.js +1 -4
- package/server/models/dmtt.js +1 -6
- package/server/models/dmvt.js +1 -17
- package/server/models/dmyt.js +1 -4
- package/server/models/dn0.js +1 -13
- package/server/models/dnm.js +1 -11
- package/server/models/dokho.js +1 -2
- package/server/models/domain.js +1 -2
- package/server/models/dvcs.js +1 -3
- package/server/models/ecomcategories.js +1 -3
- package/server/models/ecomcategories_cty.js +1 -3
- package/server/models/ecomproductlines.js +1 -2
- package/server/models/ecompromotion_flashsales.js +1 -2
- package/server/models/ecompromotion_freeships.js +1 -2
- package/server/models/email.js +1 -2
- package/server/models/endpoint.js +1 -1
- package/server/models/events.js +1 -3
- package/server/models/evoucher.js +1 -5
- package/server/models/experiencejourney.js +1 -2
- package/server/models/experiencejourneydata.js +1 -4
- package/server/models/experiencejourneypersona.js +1 -3
- package/server/models/experiencejourneystage.js +1 -2
- package/server/models/exportexceltemplate.js +1 -2
- package/server/models/fbconversation.js +1 -15
- package/server/models/fbmessage.js +1 -2
- package/server/models/fbpage.js +1 -2
- package/server/models/fbpost.js +1 -2
- package/server/models/fieldright.js +1 -2
- package/server/models/file.js +1 -4
- package/server/models/financialroadmap.js +1 -3
- package/server/models/flow.js +1 -2
- package/server/models/flowdata.js +1 -3
- package/server/models/folder.js +1 -4
- package/server/models/follow.js +1 -2
- package/server/models/form.js +1 -3
- package/server/models/forminfo.js +1 -5
- package/server/models/formvalue.js +1 -3
- package/server/models/giaoca.js +1 -4
- package/server/models/giatb.js +1 -3
- package/server/models/group.js +1 -11
- package/server/models/gt_ctgt.js +1 -4
- package/server/models/gt_hspb.js +1 -3
- package/server/models/gt_sltk.js +1 -3
- package/server/models/gt_thcppstk.js +1 -3
- package/server/models/hanmucton.js +1 -4
- package/server/models/hd1.js +1 -11
- package/server/models/hd2.js +1 -27
- package/server/models/hd3.js +1 -18
- package/server/models/hd4.js +1 -13
- package/server/models/hd7.js +1 -17
- package/server/models/hd8.js +1 -12
- package/server/models/hde.js +1 -11
- package/server/models/hlink.js +1 -2
- package/server/models/hlinkvalue.js +1 -2
- package/server/models/hmcn.js +1 -3
- package/server/models/hmcnct.js +1 -2
- package/server/models/hspbts.js +1 -4
- package/server/models/htl.js +1 -13
- package/server/models/importexceltemplate.js +1 -2
- package/server/models/introducebonus.js +1 -4
- package/server/models/introducecode.js +1 -3
- package/server/models/introducer.js +1 -4
- package/server/models/kbbtpb.js +1 -7
- package/server/models/kbmPttct.js +1 -4
- package/server/models/kbmTkgtgt.js +1 -5
- package/server/models/kbm_bcdkt.js +1 -4
- package/server/models/kbm_kqhdkd.js +1 -3
- package/server/models/kbm_lcttgt.js +1 -5
- package/server/models/kbm_lctttt.js +1 -4
- package/server/models/kbm_pttct.js +1 -4
- package/server/models/kbm_tkgtgt.js +1 -5
- package/server/models/kbmbcdkt.js +1 -4
- package/server/models/kbmbcqt.js +1 -4
- package/server/models/kbmkqhdkd.js +1 -3
- package/server/models/kbmlcttgt.js +1 -6
- package/server/models/kbmlctttt.js +1 -4
- package/server/models/kbmtmbctc.js +1 -4
- package/server/models/kehoachdtcp.js +1 -3
- package/server/models/kehoachmh.js +1 -8
- package/server/models/keyresult.js +1 -7
- package/server/models/khunghangthanhvien.js +1 -3
- package/server/models/label.js +1 -2
- package/server/models/labelinfo.js +1 -2
- package/server/models/lenhcapphat.js +1 -8
- package/server/models/lenhsx.js +1 -8
- package/server/models/lienhe.js +1 -4
- package/server/models/like_module.js +1 -2
- package/server/models/link.js +1 -2
- package/server/models/loaidiem.js +1 -2
- package/server/models/lock.js +1 -2
- package/server/models/log.js +1 -5
- package/server/models/mailaccount.js +1 -3
- package/server/models/mailgroup.js +1 -3
- package/server/models/mailreceived.js +1 -2
- package/server/models/mailschedule.js +1 -2
- package/server/models/mailsent.js +1 -2
- package/server/models/mailtemplate.js +1 -2
- package/server/models/maudanhgia.js +1 -2
- package/server/models/menuinfo.js +1 -2
- package/server/models/message.js +1 -8
- package/server/models/message2.js +1 -4
- package/server/models/message2setting.js +1 -3
- package/server/models/moduleinfo.js +1 -4
- package/server/models/momo.js +1 -17
- package/server/models/news.js +1 -3
- package/server/models/newsfeed.js +1 -4
- package/server/models/note.js +1 -2
- package/server/models/notification.js +1 -7
- package/server/models/okr.js +1 -4
- package/server/models/okrdiagram.js +1 -3
- package/server/models/onepay.js +1 -24
- package/server/models/opportunity.js +1 -4
- package/server/models/options.js +1 -2
- package/server/models/originimportid.js +1 -1
- package/server/models/otp.js +1 -1
- package/server/models/parameter.js +1 -2
- package/server/models/participant.js +1 -20
- package/server/models/partner.js +1 -1
- package/server/models/payload.js +1 -1
- package/server/models/pbl.js +1 -16
- package/server/models/pc0.js +1 -13
- package/server/models/pc1.js +1 -14
- package/server/models/pc2.js +1 -13
- package/server/models/pc3.js +1 -13
- package/server/models/pc5.js +1 -8
- package/server/models/pc6.js +1 -14
- package/server/models/pcl.js +1 -6
- package/server/models/pdn.js +1 -9
- package/server/models/pdx.js +1 -9
- package/server/models/pgh.js +1 -5
- package/server/models/phieudanhgia.js +1 -3
- package/server/models/pht.js +1 -8
- package/server/models/phucap.js +1 -4
- package/server/models/pkc.js +1 -6
- package/server/models/pkh.js +1 -6
- package/server/models/pkk.js +1 -10
- package/server/models/pkt.js +1 -12
- package/server/models/pn1.js +1 -17
- package/server/models/pn2.js +1 -11
- package/server/models/pn3.js +1 -13
- package/server/models/pn5.js +1 -14
- package/server/models/pn6.js +1 -14
- package/server/models/pn9.js +1 -17
- package/server/models/pnc.js +1 -10
- package/server/models/pnh.js +1 -12
- package/server/models/pnk.js +1 -10
- package/server/models/po1.js +1 -19
- package/server/models/ppb.js +1 -6
- package/server/models/profile.js +1 -4
- package/server/models/pt1.js +1 -12
- package/server/models/pt5.js +1 -8
- package/server/models/ptl.js +1 -6
- package/server/models/ptthanhtoan.js +1 -6
- package/server/models/purchase_contract.js +1 -17
- package/server/models/pxc.js +1 -9
- package/server/models/pxh.js +1 -12
- package/server/models/pxk.js +1 -10
- package/server/models/qts.js +1 -14
- package/server/models/qts_dieuchinh.js +1 -3
- package/server/models/qts_dieuchuyen.js +1 -4
- package/server/models/quanhuyen.js +1 -2
- package/server/models/reason.js +1 -2
- package/server/models/receivedinvoice.js +1 -2
- package/server/models/reportinfo.js +1 -5
- package/server/models/right.js +1 -4
- package/server/models/rpt.js +1 -2
- package/server/models/rptform.js +1 -5
- package/server/models/rptobject.js +1 -2
- package/server/models/sale_contract.js +1 -9
- package/server/models/schedule.js +1 -16
- package/server/models/schedule_log.js +1 -2
- package/server/models/service.js +1 -4
- package/server/models/shipbook.js +1 -12
- package/server/models/shortcut.js +1 -2
- package/server/models/smsaccount.js +1 -10
- package/server/models/smssend.js +1 -2
- package/server/models/so1.js +1 -22
- package/server/models/so2.js +1 -10
- package/server/models/so3.js +1 -9
- package/server/models/so5.js +1 -15
- package/server/models/so9.js +1 -19
- package/server/models/socai.js +1 -26
- package/server/models/socainpp.js +1 -18
- package/server/models/socaitc.js +1 -6
- package/server/models/socaitmp.js +1 -16
- package/server/models/socaitt.js +1 -4
- package/server/models/sodiemthuong.js +1 -4
- package/server/models/sokho.js +1 -28
- package/server/models/sokhocapphat.js +1 -18
- package/server/models/sokhokhongton.js +1 -19
- package/server/models/sokhonpp.js +1 -19
- package/server/models/sokhotc.js +1 -8
- package/server/models/sokhott.js +1 -18
- package/server/models/sophanbokh.js +1 -3
- package/server/models/sosanxuat.js +1 -5
- package/server/models/sotinhkh.js +1 -2
- package/server/models/spdd_ck.js +1 -3
- package/server/models/spdd_dk.js +1 -3
- package/server/models/step.js +1 -2
- package/server/models/strategicdiagram.js +1 -3
- package/server/models/strategicgoal.js +1 -4
- package/server/models/strategickpi.js +1 -6
- package/server/models/strategicobjective.js +1 -5
- package/server/models/strategicplan.js +1 -5
- package/server/models/subscribe.js +1 -2
- package/server/models/support.js +1 -2
- package/server/models/synctime.js +1 -2
- package/server/models/sysconfig.js +1 -2
- package/server/models/sysgroup.js +1 -2
- package/server/models/tableinfo.js +1 -3
- package/server/models/task.js +1 -9
- package/server/models/taskreg.js +1 -4
- package/server/models/tc.js +1 -2
- package/server/models/tdttco.js +1 -8
- package/server/models/tdttco_tt.js +1 -5
- package/server/models/tdttno.js +1 -8
- package/server/models/tdttno_tt.js +1 -5
- package/server/models/templaterpt.js +1 -2
- package/server/models/templatestore.js +1 -3
- package/server/models/templatevoucher.js +1 -3
- package/server/models/tinhthanh.js +1 -2
- package/server/models/tokens.js +1 -2
- package/server/models/tontucthoi.js +1 -9
- package/server/models/trangthai.js +1 -4
- package/server/models/trangthaiapp.js +1 -4
- package/server/models/transaction.js +1 -16
- package/server/models/trialinfo.js +1 -2
- package/server/models/user.js +1 -38
- package/server/models/usergroup.js +1 -7
- package/server/models/vanchuyen.js +1 -12
- package/server/models/vat.js +1 -3
- package/server/models/vatra.js +1 -6
- package/server/models/vatvao.js +1 -6
- package/server/models/versioninfo.js +1 -2
- package/server/models/vietqrbanks.js +1 -2
- package/server/models/vsocai.js +1 -6
- package/server/models/waitevent.js +1 -2
- package/server/models/wallet.js +1 -8
- package/server/models/warranty.js +1 -3
- package/server/models/warrantyclaim.js +1 -2
- package/server/models/warrantypolicy.js +1 -1
- package/server/models/xaphuong.js +1 -2
- package/server/models/xhd.js +1 -10
- package/server/models/ytdd_ck.js +1 -4
- package/server/models/ytdd_dk.js +1 -4
- package/server/models/zalo.js +1 -17
- package/server/modules/lists/bg-cddiem.js +1 -6
- package/server/modules/lists/bg-cddt.js +1 -7
- package/server/modules/lists/bg-cdkh.js +1 -11
- package/server/modules/lists/bg-cdnphep.js +1 -6
- package/server/modules/lists/bg-cdtk.js +1 -9
- package/server/modules/lists/bg-cdvt.js +1 -8
- package/server/modules/lists/bg-cdvtnpp.js +1 -8
- package/server/modules/lists/ls-account.js +1 -4
- package/server/modules/lists/ls-afflink.js +1 -3
- package/server/modules/lists/ls-approve.js +1 -4
- package/server/modules/lists/ls-assabcihandler.js +1 -3
- package/server/modules/lists/ls-assbank.js +1 -3
- package/server/modules/lists/ls-assbooking.js +1 -20
- package/server/modules/lists/ls-assbuy.js +1 -8
- package/server/modules/lists/ls-asscashwithdraw.js +1 -8
- package/server/modules/lists/ls-assinvestment.js +1 -31
- package/server/modules/lists/ls-assissue.js +1 -3
- package/server/modules/lists/ls-asskey.js +1 -41
- package/server/modules/lists/ls-assneedtobuy.js +1 -10
- package/server/modules/lists/ls-assperiod.js +1 -19
- package/server/modules/lists/ls-assproduct.js +1 -9
- package/server/modules/lists/ls-assprofitsharing.js +1 -8
- package/server/modules/lists/ls-assreceiver.js +1 -3
- package/server/modules/lists/ls-assrequest.js +1 -4
- package/server/modules/lists/ls-asssell.js +1 -13
- package/server/modules/lists/ls-asstransaction.js +1 -3
- package/server/modules/lists/ls-asstransfer.js +1 -3
- package/server/modules/lists/ls-assuser_identity.js +1 -1
- package/server/modules/lists/ls-asswithdraw.js +1 -12
- package/server/modules/lists/ls-bangtinhluong.js +1 -2
- package/server/modules/lists/ls-bds_area.js +1 -3
- package/server/modules/lists/ls-bds_block.js +1 -1
- package/server/modules/lists/ls-bds_building.js +1 -3
- package/server/modules/lists/ls-bds_dmnhbds.js +1 -6
- package/server/modules/lists/ls-bds_floor.js +1 -2
- package/server/modules/lists/ls-bds_floordetail.js +1 -19
- package/server/modules/lists/ls-bds_nhadat.js +1 -16
- package/server/modules/lists/ls-bds_nhomnhadat.js +1 -1
- package/server/modules/lists/ls-bds_phanloainhadat.js +1 -1
- package/server/modules/lists/ls-calllog.js +1 -4
- package/server/modules/lists/ls-campaign.js +1 -1
- package/server/modules/lists/ls-cart.js +1 -14
- package/server/modules/lists/ls-chamcong.js +1 -3
- package/server/modules/lists/ls-checkin.js +1 -12
- package/server/modules/lists/ls-checkinactivity.js +1 -8
- package/server/modules/lists/ls-checkinkpi.js +1 -3
- package/server/modules/lists/ls-checkinlocation.js +1 -1
- package/server/modules/lists/ls-chitieukpi.js +1 -1
- package/server/modules/lists/ls-chudethaoluan.js +1 -1
- package/server/modules/lists/ls-ckgtluong.js +1 -1
- package/server/modules/lists/ls-comment.js +1 -9
- package/server/modules/lists/ls-congdoansx.js +1 -3
- package/server/modules/lists/ls-congtacvien.js +1 -5
- package/server/modules/lists/ls-consultant.js +1 -2
- package/server/modules/lists/ls-contract.js +1 -7
- package/server/modules/lists/ls-ctds.js +1 -4
- package/server/modules/lists/ls-ctds2.js +1 -4
- package/server/modules/lists/ls-currency.js +1 -1
- package/server/modules/lists/ls-customer.js +1 -21
- package/server/modules/lists/ls-datlich.js +1 -9
- package/server/modules/lists/ls-dckhauhaots.js +1 -3
- package/server/modules/lists/ls-department.js +1 -3
- package/server/modules/lists/ls-diagram.js +1 -1
- package/server/modules/lists/ls-dkhoc.js +1 -6
- package/server/modules/lists/ls-dknphep.js +1 -1
- package/server/modules/lists/ls-dmban.js +1 -4
- package/server/modules/lists/ls-dmbp.js +1 -7
- package/server/modules/lists/ls-dmca.js +1 -1
- package/server/modules/lists/ls-dmchietkhau.js +1 -19
- package/server/modules/lists/ls-dmchietkhauhd.js +1 -4
- package/server/modules/lists/ls-dmchucvu.js +1 -2
- package/server/modules/lists/ls-dmcpmh.js +1 -1
- package/server/modules/lists/ls-dmdiemthuong.js +1 -4
- package/server/modules/lists/ls-dmdoi.js +1 -4
- package/server/modules/lists/ls-dmdoituongdanhgia.js +1 -1
- package/server/modules/lists/ls-dmdt.js +1 -11
- package/server/modules/lists/ls-dmdvt.js +1 -2
- package/server/modules/lists/ls-dmgiaban.js +1 -4
- package/server/modules/lists/ls-dmgiamua.js +1 -4
- package/server/modules/lists/ls-dmgiathitruong.js +1 -15
- package/server/modules/lists/ls-dmgiathitruong_ngay.js +1 -2
- package/server/modules/lists/ls-dmgiathitruong_theodoi.js +1 -1
- package/server/modules/lists/ls-dmhoahonghd.js +1 -1
- package/server/modules/lists/ls-dmhoahongnpp.js +1 -1
- package/server/modules/lists/ls-dmkc.js +1 -3
- package/server/modules/lists/ls-dmkho.js +1 -1
- package/server/modules/lists/ls-dmkhuyenmai.js +1 -5
- package/server/modules/lists/ls-dmkhuyenmaihd.js +1 -3
- package/server/modules/lists/ls-dmletet.js +1 -1
- package/server/modules/lists/ls-dmlo.js +1 -1
- package/server/modules/lists/ls-dmloaicong.js +1 -1
- package/server/modules/lists/ls-dmloaits.js +1 -1
- package/server/modules/lists/ls-dmnckkm.js +1 -7
- package/server/modules/lists/ls-dmnghiepvu.js +1 -1
- package/server/modules/lists/ls-dmnguonvon.js +1 -1
- package/server/modules/lists/ls-dmnhnv.js +1 -6
- package/server/modules/lists/ls-dmnhtask.js +1 -5
- package/server/modules/lists/ls-dmnkh.js +1 -6
- package/server/modules/lists/ls-dmntt.js +1 -6
- package/server/modules/lists/ls-dmnv.js +1 -17
- package/server/modules/lists/ls-dmnvt.js +1 -8
- package/server/modules/lists/ls-dmphatdichvu.js +1 -3
- package/server/modules/lists/ls-dmphi.js +1 -6
- package/server/modules/lists/ls-dmqct.js +1 -2
- package/server/modules/lists/ls-dmqddvt.js +1 -3
- package/server/modules/lists/ls-dmtanggiamts.js +1 -1
- package/server/modules/lists/ls-dmto.js +1 -5
- package/server/modules/lists/ls-dmtt.js +1 -7
- package/server/modules/lists/ls-dmvt.js +1 -68
- package/server/modules/lists/ls-dmyt.js +1 -1
- package/server/modules/lists/ls-dokho.js +1 -1
- package/server/modules/lists/ls-dvcs.js +1 -1
- package/server/modules/lists/ls-ecomcategories.js +1 -5
- package/server/modules/lists/ls-ecomcategories_cty.js +1 -5
- package/server/modules/lists/ls-email.js +1 -4
- package/server/modules/lists/ls-events.js +1 -3
- package/server/modules/lists/ls-evoucher.js +1 -3
- package/server/modules/lists/ls-experiencejourney.js +1 -1
- package/server/modules/lists/ls-experiencejourneydata.js +1 -3
- package/server/modules/lists/ls-experiencejourneypersona.js +1 -4
- package/server/modules/lists/ls-experiencejourneystage.js +1 -1
- package/server/modules/lists/ls-fbconversation.js +1 -2
- package/server/modules/lists/ls-fbmessage.js +1 -2
- package/server/modules/lists/ls-fbpage.js +1 -11
- package/server/modules/lists/ls-fbpost.js +1 -2
- package/server/modules/lists/ls-file.js +1 -31
- package/server/modules/lists/ls-financialroadmap.js +1 -3
- package/server/modules/lists/ls-flow.js +1 -6
- package/server/modules/lists/ls-flowdata.js +1 -1
- package/server/modules/lists/ls-folder.js +1 -1
- package/server/modules/lists/ls-form.js +1 -1
- package/server/modules/lists/ls-forminfo.js +1 -1
- package/server/modules/lists/ls-formvalue.js +1 -1
- package/server/modules/lists/ls-giaoca.js +1 -4
- package/server/modules/lists/ls-group.js +1 -5
- package/server/modules/lists/ls-hlink.js +1 -1
- package/server/modules/lists/ls-hlinkvalue.js +1 -1
- package/server/modules/lists/ls-hmcn.js +1 -2
- package/server/modules/lists/ls-hspbts.js +1 -3
- package/server/modules/lists/ls-introducebonus.js +1 -4
- package/server/modules/lists/ls-introducecode.js +1 -10
- package/server/modules/lists/ls-introducer.js +1 -20
- package/server/modules/lists/ls-kbm-bcdkt.js +1 -1
- package/server/modules/lists/ls-kbm-bcqt.js +1 -5
- package/server/modules/lists/ls-kbm-kqhdkd.js +1 -1
- package/server/modules/lists/ls-kbm-lcttgt.js +1 -1
- package/server/modules/lists/ls-kbm-lctttt.js +1 -1
- package/server/modules/lists/ls-kbm-pttct.js +1 -3
- package/server/modules/lists/ls-kbm-tkgtgt.js +1 -3
- package/server/modules/lists/ls-kbm-tmbctc.js +1 -3
- package/server/modules/lists/ls-kehoachdtcp.js +1 -4
- package/server/modules/lists/ls-keyresult.js +1 -7
- package/server/modules/lists/ls-khunghangthanhvien.js +1 -1
- package/server/modules/lists/ls-kygui.js +1 -19
- package/server/modules/lists/ls-label.js +1 -1
- package/server/modules/lists/ls-lienhe.js +1 -4
- package/server/modules/lists/ls-like-module.js +1 -1
- package/server/modules/lists/ls-link.js +1 -1
- package/server/modules/lists/ls-loaidiem.js +1 -1
- package/server/modules/lists/ls-lock.js +1 -1
- package/server/modules/lists/ls-log.js +1 -3
- package/server/modules/lists/ls-mailaccount.js +1 -5
- package/server/modules/lists/ls-mailreceived.js +1 -5
- package/server/modules/lists/ls-mailschedule.js +1 -7
- package/server/modules/lists/ls-mailsent.js +1 -4
- package/server/modules/lists/ls-mailtemplate.js +1 -4
- package/server/modules/lists/ls-maudanhgia.js +1 -3
- package/server/modules/lists/ls-message2.js +1 -8
- package/server/modules/lists/ls-message2setting.js +1 -5
- package/server/modules/lists/ls-news.js +1 -7
- package/server/modules/lists/ls-newsfeed.js +1 -4
- package/server/modules/lists/ls-note.js +1 -6
- package/server/modules/lists/ls-okr.js +1 -5
- package/server/modules/lists/ls-okrdiagram.js +1 -1
- package/server/modules/lists/ls-opportunity.js +1 -5
- package/server/modules/lists/ls-options.js +1 -4
- package/server/modules/lists/ls-parameter.js +1 -3
- package/server/modules/lists/ls-participant.js +1 -10
- package/server/modules/lists/ls-phieudanhgia.js +1 -7
- package/server/modules/lists/ls-phucap.js +1 -2
- package/server/modules/lists/ls-profile.js +1 -1
- package/server/modules/lists/ls-ptthanhtoan.js +1 -3
- package/server/modules/lists/ls-qts-dieuchinh.js +1 -2
- package/server/modules/lists/ls-qts-dieuchuyen.js +1 -8
- package/server/modules/lists/ls-reason.js +1 -1
- package/server/modules/lists/ls-rpt.js +1 -5
- package/server/modules/lists/ls-rptform.js +1 -4
- package/server/modules/lists/ls-service.js +1 -3
- package/server/modules/lists/ls-shortcut.js +1 -1
- package/server/modules/lists/ls-smsaccount.js +1 -1
- package/server/modules/lists/ls-smssend.js +1 -3
- package/server/modules/lists/ls-sosanxuat.js +1 -4
- package/server/modules/lists/ls-step.js +1 -1
- package/server/modules/lists/ls-strategicdiagram.js +1 -1
- package/server/modules/lists/ls-strategicgoal.js +1 -3
- package/server/modules/lists/ls-strategickpi.js +1 -7
- package/server/modules/lists/ls-strategicobjective.js +1 -3
- package/server/modules/lists/ls-strategicplan.js +1 -6
- package/server/modules/lists/ls-support.js +1 -3
- package/server/modules/lists/ls-task.js +1 -34
- package/server/modules/lists/ls-taskreg.js +1 -2
- package/server/modules/lists/ls-tc.js +1 -1
- package/server/modules/lists/ls-templaterpt.js +1 -5
- package/server/modules/lists/ls-templatevoucher.js +1 -1
- package/server/modules/lists/ls-tontucthoi.js +1 -3
- package/server/modules/lists/ls-trangthaiapp.js +1 -3
- package/server/modules/lists/ls-transaction.js +1 -4
- package/server/modules/lists/ls-usergroup.js +1 -7
- package/server/modules/lists/ls-vat.js +1 -1
- package/server/modules/lists/ls-vatra.js +1 -5
- package/server/modules/lists/ls-vatvao.js +1 -6
- package/server/modules/lists/ls-waitevent.js +1 -1
- package/server/modules/lists/ls-warranty.js +1 -4
- package/server/modules/lists/ls_hanmucton.js +1 -3
- package/server/modules/lists/ls_hspb.js +1 -4
- package/server/modules/lists/ls_spdd_ck.js +1 -3
- package/server/modules/lists/ls_spdd_dk.js +1 -3
- package/server/modules/lists/ls_ytdd_ck.js +1 -4
- package/server/modules/lists/ls_ytdd_dk.js +1 -4
- package/server/modules/lists/sys-attend.js +1 -4
- package/server/modules/lists/sys-follow.js +1 -4
- package/server/modules/lists/sys-right.js +1 -2
- package/server/modules/public/app.js +1 -4
- package/server/modules/public/approve.js +1 -37
- package/server/modules/public/callin.js +1 -7
- package/server/modules/public/comment.js +1 -5
- package/server/modules/public/dmnvt.js +1 -4
- package/server/modules/public/dmvt.js +1 -9
- package/server/modules/public/file.js +1 -11
- package/server/modules/public/form.js +1 -7
- package/server/modules/public/forminfo.js +1 -1
- package/server/modules/public/group.js +1 -4
- package/server/modules/public/hlink.js +1 -3
- package/server/modules/public/introducecode.js +1 -1
- package/server/modules/public/listinfo.js +1 -1
- package/server/modules/public/media-webhook.js +1 -1
- package/server/modules/public/partner.js +1 -1
- package/server/modules/public/paymentCallback.js +1 -32
- package/server/modules/public/province.js +1 -1
- package/server/modules/public/ptthanhtoan.js +1 -4
- package/server/modules/public/subscribe.js +1 -30
- package/server/modules/public/support.js +1 -3
- package/server/modules/public/tableinfo.js +1 -1
- package/server/modules/public/trialinfo.js +1 -4
- package/server/modules/public/versioninfo.js +1 -1
- package/server/modules/reports/calc-tinhgiatb.js +1 -6
- package/server/modules/reports/calc-tinhgiathanh.js +1 -6
- package/server/modules/reports/calc-tinhkhauhaots.js +1 -3
- package/server/modules/reports/calc-tinhluong.js +1 -37
- package/server/modules/reports/rp-analyzedata.js +1 -6
- package/server/modules/reports/rp-assbonus.js +1 -4
- package/server/modules/reports/rp-assinterest.js +1 -8
- package/server/modules/reports/rp-assproductowners.js +1 -3
- package/server/modules/reports/rp-asssupply.js +1 -1
- package/server/modules/reports/rp-asstransferlog.js +1 -10
- package/server/modules/reports/rp-banggiatb.js +1 -3
- package/server/modules/reports/rp-bangtinhkhauhao.js +1 -6
- package/server/modules/reports/rp-baocaokhachhang.js +1 -6
- package/server/modules/reports/rp-bcdkt.js +1 -11
- package/server/modules/reports/rp-bcintroducebonus.js +1 -4
- package/server/modules/reports/rp-bckhtiemnang.js +1 -3
- package/server/modules/reports/rp-bcqt.js +1 -85
- package/server/modules/reports/rp-bkct.js +1 -13
- package/server/modules/reports/rp-bkshipbook.js +1 -8
- package/server/modules/reports/rp-bkvanchuyen.js +1 -8
- package/server/modules/reports/rp-bkvatra.js +1 -7
- package/server/modules/reports/rp-bkvatvao.js +1 -7
- package/server/modules/reports/rp-capnhatsocaitc.js +1 -4
- package/server/modules/reports/rp-cdpsdiem.js +1 -4
- package/server/modules/reports/rp-cdpsdt.js +1 -5
- package/server/modules/reports/rp-cdpskh.js +1 -7
- package/server/modules/reports/rp-cdpsnphep.js +1 -3
- package/server/modules/reports/rp-cdpstk.js +1 -4
- package/server/modules/reports/rp-chitietchitientheohoadon.js +1 -12
- package/server/modules/reports/rp-chitiettaisan.js +1 -13
- package/server/modules/reports/rp-chitietthutientheohoadon.js +1 -13
- package/server/modules/reports/rp-ckcn.js +1 -3
- package/server/modules/reports/rp-ckdiem.js +1 -2
- package/server/modules/reports/rp-cktk.js +1 -3
- package/server/modules/reports/rp-ckvt.js +1 -10
- package/server/modules/reports/rp-ckvttheokho.js +1 -4
- package/server/modules/reports/rp-ckvttheotg.js +1 -4
- package/server/modules/reports/rp-ckvttt.js +1 -3
- package/server/modules/reports/rp-congnophaithutheotuoino.js +1 -3
- package/server/modules/reports/rp-congnophaitratheotuoino.js +1 -3
- package/server/modules/reports/rp-congnosapthu.js +1 -4
- package/server/modules/reports/rp-congnosaptra.js +1 -4
- package/server/modules/reports/rp-congviectheobp.js +1 -9
- package/server/modules/reports/rp-congviectheodt.js +1 -8
- package/server/modules/reports/rp-congviectheokh.js +1 -8
- package/server/modules/reports/rp-congviectheonv.js +1 -9
- package/server/modules/reports/rp-congviectheotimeline.js +1 -6
- package/server/modules/reports/rp-ctbanle.js +1 -15
- package/server/modules/reports/rp-ctbanle2.js +1 -20
- package/server/modules/reports/rp-ctbanlectv.js +1 -20
- package/server/modules/reports/rp-ctbanlenpp.js +1 -24
- package/server/modules/reports/rp-ctdanhgianhanvien.js +1 -8
- package/server/modules/reports/rp-cthangbanbitralai.js +1 -4
- package/server/modules/reports/rp-ctmuahang.js +1 -7
- package/server/modules/reports/rp-cttralaihang.js +1 -4
- package/server/modules/reports/rp-databanle.js +1 -10
- package/server/modules/reports/rp-diemthuong.js +1 -2
- package/server/modules/reports/rp-dkcn.js +1 -3
- package/server/modules/reports/rp-dktk.js +1 -2
- package/server/modules/reports/rp-dsnhanviencm.js +1 -9
- package/server/modules/reports/rp-dsnhanvientb.js +1 -9
- package/server/modules/reports/rp-dtbanlekempk.js +1 -9
- package/server/modules/reports/rp-dtbanletheoct.js +1 -23
- package/server/modules/reports/rp-dtbanletheoctkempk.js +1 -25
- package/server/modules/reports/rp-dtbanletheokh.js +1 -20
- package/server/modules/reports/rp-dtbanletheokhnpp.js +1 -19
- package/server/modules/reports/rp-dtbanletheokho.js +1 -18
- package/server/modules/reports/rp-dtbanletheonam.js +1 -3
- package/server/modules/reports/rp-dtbanletheongay.js +1 -1
- package/server/modules/reports/rp-dtbanletheonpp.js +1 -23
- package/server/modules/reports/rp-dtbanletheonv.js +1 -19
- package/server/modules/reports/rp-dtbanletheoquy.js +1 -3
- package/server/modules/reports/rp-dtbanletheosp.js +1 -8
- package/server/modules/reports/rp-dtbanletheospnpp.js +1 -6
- package/server/modules/reports/rp-dtbanletheothang.js +1 -3
- package/server/modules/reports/rp-dtbanletheothungan.js +1 -12
- package/server/modules/reports/rp-dtbanletheovt.js +1 -2
- package/server/modules/reports/rp-dtbanletheovtnpp.js +1 -2
- package/server/modules/reports/rp-dutoanthuchitheodt.js +1 -4
- package/server/modules/reports/rp-getPXC2PNC.js +1 -8
- package/server/modules/reports/rp-getariseofaccountsbymonth.js +1 -4
- package/server/modules/reports/rp-getbtpb.js +1 -6
- package/server/modules/reports/rp-getcashbycashier.js +1 -7
- package/server/modules/reports/rp-getcschietkhau.js +1 -5
- package/server/modules/reports/rp-getdinhmuc4lenhcp.js +1 -7
- package/server/modules/reports/rp-getdinhmuc4pxk.js +1 -9
- package/server/modules/reports/rp-getdk4pht.js +1 -8
- package/server/modules/reports/rp-getdk4pkc.js +1 -9
- package/server/modules/reports/rp-getdttheoca.js +1 -5
- package/server/modules/reports/rp-getinvoice2pay.js +1 -4
- package/server/modules/reports/rp-getinvoice2receive.js +1 -4
- package/server/modules/reports/rp-getinvoice2return.js +1 -5
- package/server/modules/reports/rp-getinvoice2return_bl.js +1 -6
- package/server/modules/reports/rp-getkehoachmh4lenhcp.js +1 -4
- package/server/modules/reports/rp-getkhauhao.js +1 -7
- package/server/modules/reports/rp-getluong.js +1 -8
- package/server/modules/reports/rp-getluongchuyen.js +1 -5
- package/server/modules/reports/rp-getpn2fee.js +1 -5
- package/server/modules/reports/rp-getpn2return.js +1 -5
- package/server/modules/reports/rp-getthanhpham4pnk.js +1 -7
- package/server/modules/reports/rp-getvc2xhd.js +1 -11
- package/server/modules/reports/rp-gt_cpnvltt.js +1 -6
- package/server/modules/reports/rp-hangbanbitralai.js +1 -5
- package/server/modules/reports/rp-hangthanhvien.js +1 -3
- package/server/modules/reports/rp-hoadonbanhangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoadonmuahangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoahong.js +1 -15
- package/server/modules/reports/rp-kcsns.js +1 -19
- package/server/modules/reports/rp-kgchamcong.js +1 -7
- package/server/modules/reports/rp-khoaso.js +1 -12
- package/server/modules/reports/rp-kiemtrasocaitcvssocai.js +1 -6
- package/server/modules/reports/rp-kqdanhgianhanvien.js +1 -5
- package/server/modules/reports/rp-kqhdkd.js +1 -7
- package/server/modules/reports/rp-lcttgt.js +1 -17
- package/server/modules/reports/rp-lctttt.js +1 -11
- package/server/modules/reports/rp-linkslist.js +1 -4
- package/server/modules/reports/rp-phanbochitienchohoadon.js +1 -11
- package/server/modules/reports/rp-phanbothutienchohoadon.js +1 -10
- package/server/modules/reports/rp-ptbitralai.js +1 -7
- package/server/modules/reports/rp-ptcttct.js +1 -22
- package/server/modules/reports/rp-ptdonhang.js +1 -8
- package/server/modules/reports/rp-pttct.js +1 -49
- package/server/modules/reports/rp-pttctkho.js +1 -32
- package/server/modules/reports/rp-pttctkho2.js +1 -29
- package/server/modules/reports/rp-referredusers.js +1 -1
- package/server/modules/reports/rp-sctbhxh.js +1 -4
- package/server/modules/reports/rp-sctcnkh.js +1 -17
- package/server/modules/reports/rp-sctdiem.js +1 -3
- package/server/modules/reports/rp-sctdt.js +1 -7
- package/server/modules/reports/rp-sctdtcp.js +1 -11
- package/server/modules/reports/rp-sctluong.js +1 -4
- package/server/modules/reports/rp-sctthuetncn.js +1 -4
- package/server/modules/reports/rp-scttk.js +1 -7
- package/server/modules/reports/rp-sctvt.js +1 -5
- package/server/modules/reports/rp-sctvt_sl.js +1 -5
- package/server/modules/reports/rp-sctvtnpp.js +1 -6
- package/server/modules/reports/rp-sctvttt.js +1 -5
- package/server/modules/reports/rp-search.js +1 -4
- package/server/modules/reports/rp-socai.js +1 -6
- package/server/modules/reports/rp-socaitk.js +1 -7
- package/server/modules/reports/rp-sochut.js +1 -7
- package/server/modules/reports/rp-sokho.js +1 -7
- package/server/modules/reports/rp-sokhott.js +1 -5
- package/server/modules/reports/rp-sonkbh.js +1 -5
- package/server/modules/reports/rp-sonkc.js +1 -6
- package/server/modules/reports/rp-sonkct.js +1 -5
- package/server/modules/reports/rp-sonkmh.js +1 -5
- package/server/modules/reports/rp-sonktt.js +1 -5
- package/server/modules/reports/rp-soquy.js +1 -11
- package/server/modules/reports/rp-sosanhkhvatt.js +1 -13
- package/server/modules/reports/rp-sosanhkhvatt2.js +1 -6
- package/server/modules/reports/rp-sotaisan.js +1 -13
- package/server/modules/reports/rp-sotiengui.js +1 -7
- package/server/modules/reports/rp-taodinhmuctudkhoc.js +1 -5
- package/server/modules/reports/rp-thbanhangkempk.js +1 -28
- package/server/modules/reports/rp-thdanhgianhanvien.js +1 -9
- package/server/modules/reports/rp-thgt.js +1 -6
- package/server/modules/reports/rp-thnxt.js +1 -12
- package/server/modules/reports/rp-thnxt_sl.js +1 -9
- package/server/modules/reports/rp-thnxtnpp.js +1 -10
- package/server/modules/reports/rp-thnxttt.js +1 -9
- package/server/modules/reports/rp-tkbanhangtheogioithieu.js +1 -9
- package/server/modules/reports/rp-tkgioithieukh.js +1 -4
- package/server/modules/reports/rp-tkgtgt.js +1 -7
- package/server/modules/reports/rp-tmbctc.js +1 -20
- package/server/modules/reports/rp-tonghopbanhang.js +1 -6
- package/server/modules/reports/rp-tonghopmuahang.js +1 -5
- package/server/modules/reports/rp-tonghoptralaihang.js +1 -5
- package/server/modules/reports/rp-tongquanbanle.js +1 -20
- package/server/modules/reports/rp-tongquanbds.js +1 -3
- package/server/modules/reports/rp-tongquancongty.js +1 -6
- package/server/modules/reports/rp-tongquanctvnpp.js +1 -12
- package/server/modules/reports/rp-tongquannvbh.js +1 -14
- package/server/modules/reports/rp-tongquannvnpp.js +1 -5
- package/server/modules/reports/rp-uoctinhnvl.js +1 -11
- package/server/modules/reports/rp-wallet.js +1 -3
- package/server/modules/reports/rpt-tkdiemtichluy.js +1 -9
- package/server/modules/systems/sys-app.js +1 -30
- package/server/modules/systems/sys-colleague.js +1 -11
- package/server/modules/systems/sys-domain.js +1 -4
- package/server/modules/systems/sys-ecomproductlines.js +1 -1
- package/server/modules/systems/sys-exportexceltemplate.js +1 -4
- package/server/modules/systems/sys-fieldright.js +1 -3
- package/server/modules/systems/sys-importexceltemplate.js +1 -4
- package/server/modules/systems/sys-labelinfo.js +1 -4
- package/server/modules/systems/sys-listinfo.js +1 -10
- package/server/modules/systems/sys-menuinfo.js +1 -4
- package/server/modules/systems/sys-message.js +1 -14
- package/server/modules/systems/sys-moduleinfo.js +1 -4
- package/server/modules/systems/sys-notification.js +1 -8
- package/server/modules/systems/sys-quanhuyen.js +1 -4
- package/server/modules/systems/sys-reportinfo.js +1 -4
- package/server/modules/systems/sys-rptobject.js +1 -3
- package/server/modules/systems/sys-schedule.js +1 -11
- package/server/modules/systems/sys-sysconfig.js +1 -3
- package/server/modules/systems/sys-sysgroup.js +1 -3
- package/server/modules/systems/sys-tableinfo.js +1 -3
- package/server/modules/systems/sys-templatestore.js +1 -5
- package/server/modules/systems/sys-tinhthanh.js +1 -4
- package/server/modules/systems/sys-token.js +1 -3
- package/server/modules/systems/sys-trangthai.js +1 -4
- package/server/modules/systems/sys-trialinfo.js +1 -3
- package/server/modules/systems/sys-user.js +1 -45
- package/server/modules/systems/sys-users.js +1 -10
- package/server/modules/systems/sys-versioninfo.js +1 -3
- package/server/modules/systems/sys-vietqrbanks.js +1 -4
- package/server/modules/systems/sys-xaphuong.js +1 -4
- package/server/modules/vouchers/vo-banggiaban.js +1 -5
- package/server/modules/vouchers/vo-bc1.js +1 -33
- package/server/modules/vouchers/vo-bc5.js +1 -15
- package/server/modules/vouchers/vo-bg1.js +1 -10
- package/server/modules/vouchers/vo-bg2.js +1 -12
- package/server/modules/vouchers/vo-bn1.js +1 -35
- package/server/modules/vouchers/vo-bn5.js +1 -15
- package/server/modules/vouchers/vo-dh2.js +1 -35
- package/server/modules/vouchers/vo-dinhmucsx.js +1 -6
- package/server/modules/vouchers/vo-dkb.js +1 -21
- package/server/modules/vouchers/vo-dn0.js +1 -9
- package/server/modules/vouchers/vo-dnm.js +1 -21
- package/server/modules/vouchers/vo-hd1.js +1 -36
- package/server/modules/vouchers/vo-hd2.js +1 -107
- package/server/modules/vouchers/vo-hd3.js +1 -44
- package/server/modules/vouchers/vo-hd4.js +1 -13
- package/server/modules/vouchers/vo-hd7.js +1 -29
- package/server/modules/vouchers/vo-hd8.js +1 -29
- package/server/modules/vouchers/vo-hde.js +1 -40
- package/server/modules/vouchers/vo-htl.js +1 -11
- package/server/modules/vouchers/vo-kbbtpb.js +1 -6
- package/server/modules/vouchers/vo-kehoachmh.js +1 -13
- package/server/modules/vouchers/vo-lenhcapphat.js +1 -10
- package/server/modules/vouchers/vo-lenhsx.js +1 -12
- package/server/modules/vouchers/vo-pbl.js +1 -93
- package/server/modules/vouchers/vo-pc0.js +1 -14
- package/server/modules/vouchers/vo-pc1.js +1 -31
- package/server/modules/vouchers/vo-pc2.js +1 -24
- package/server/modules/vouchers/vo-pc3.js +1 -14
- package/server/modules/vouchers/vo-pc5.js +1 -15
- package/server/modules/vouchers/vo-pc6.js +1 -19
- package/server/modules/vouchers/vo-pcl.js +1 -7
- package/server/modules/vouchers/vo-pdn.js +1 -11
- package/server/modules/vouchers/vo-pdx.js +1 -9
- package/server/modules/vouchers/vo-pgh.js +1 -19
- package/server/modules/vouchers/vo-pht.js +1 -7
- package/server/modules/vouchers/vo-pkc.js +1 -7
- package/server/modules/vouchers/vo-pkh.js +1 -10
- package/server/modules/vouchers/vo-pkk.js +1 -12
- package/server/modules/vouchers/vo-pkt.js +1 -13
- package/server/modules/vouchers/vo-pn1.js +1 -33
- package/server/modules/vouchers/vo-pn2.js +1 -16
- package/server/modules/vouchers/vo-pn3.js +1 -18
- package/server/modules/vouchers/vo-pn5.js +1 -19
- package/server/modules/vouchers/vo-pn6.js +1 -18
- package/server/modules/vouchers/vo-pn9.js +1 -22
- package/server/modules/vouchers/vo-pnc.js +1 -20
- package/server/modules/vouchers/vo-pnh.js +1 -20
- package/server/modules/vouchers/vo-pnk.js +1 -14
- package/server/modules/vouchers/vo-pnknpp.js +1 -12
- package/server/modules/vouchers/vo-po1.js +1 -15
- package/server/modules/vouchers/vo-ppb.js +1 -8
- package/server/modules/vouchers/vo-pt1.js +1 -21
- package/server/modules/vouchers/vo-pt5.js +1 -15
- package/server/modules/vouchers/vo-ptl.js +1 -8
- package/server/modules/vouchers/vo-purchase_contract.js +1 -9
- package/server/modules/vouchers/vo-pxc.js +1 -22
- package/server/modules/vouchers/vo-pxh.js +1 -28
- package/server/modules/vouchers/vo-pxk.js +1 -15
- package/server/modules/vouchers/vo-pxknpp.js +1 -14
- package/server/modules/vouchers/vo-qts.js +1 -12
- package/server/modules/vouchers/vo-sale_contract.js +1 -11
- package/server/modules/vouchers/vo-shipbook.js +1 -17
- package/server/modules/vouchers/vo-so1.js +1 -126
- package/server/modules/vouchers/vo-so2.js +1 -37
- package/server/modules/vouchers/vo-so3.js +1 -41
- package/server/modules/vouchers/vo-so5.js +1 -57
- package/server/modules/vouchers/vo-so7.js +1 -97
- package/server/modules/vouchers/vo-so9.js +1 -119
- package/server/modules/vouchers/vo-vanchuyen.js +1 -14
- package/server/modules/vouchers/vo-xhd.js +1 -33
- package/server/route.js +1 -51
- package/server/services/invoiceFetcher.js +1 -15
- package/server/sslConfig.js +1 -2
- package/server/transactionMiddleware.js +1 -5
- package/server/workers/backupApp.js +1 -9
- package/server/workers/calcGrid.js +1 -9
- package/server/workers/customerOnImport.js +1 -8
- package/server/workers/dmvtOnImport.js +1 -9
- package/server/workers/excelParser.js +1 -9
- package/server/workers/inputWorker.js +1 -6
- package/server/workers/pushNotify.js +1 -10
- package/server/workers/reportWorker.js +1 -7
- package/server/workers/restoreApp.js +1 -23
- package/server/workers/runScript.js +1 -4
- package/server/workers/sendEmail.js +1 -13
- package/server/workers/webhook.js +1 -5
package/server/libs/getGiaban.js
CHANGED
|
@@ -1,67 +1 @@
|
|
|
1
|
-
const dmvt=global.getModel("dmvt"),dmgiaban=global.getModel("dmgiaban"),so1=global.getModel("so1"),pbl=global.getModel("pbl"),dmchietkhau=global.getModel("dmchietkhau"),dmkhuyenmai=global.getModel("dmkhuyenmai"),customer=global.getModel("customer"),async=require("async"),underscore=require("underscore"),utils=require("./utils"),_=require("lodash"),round=0,getSLDaBanCKs=async $items$$=>new Promise(($rs$$,$rj$$)=>{async.mapSeries($items$$,($item$$,$cb$$)=>{setImmediate(async()=>{try{const $details$$=
|
|
2
|
-
(await so1.find({id_app:$item$$.id_app,"details.id_cs":$item$$._id.toString(),trang_thai:{$nin:["9","10","LCT"]}})).map($r$$=>$r$$.details||[]).reduce(($a$$,$b$$)=>$a$$.concat($b$$),[]).filter($a$$=>$a$$.id_cs===$item$$._id.toString());$item$$.sl_da_ban=$details$$.map($r$$=>$item$$.sl_ap_dung?Math.min($r$$.sl_xuat,$item$$.sl_ap_dung):$r$$.sl_xuat).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$item$$.sl_con_lai=Math.max(($item$$.tong_sl_ap_dung||0)-$item$$.sl_da_ban,0);$item$$.sl_ap_dung=$item$$.tong_sl_ap_dung?
|
|
3
|
-
Math.min($item$$.sl_ap_dung,$item$$.sl_con_lai):$item$$.sl_ap_dung;$cb$$(null,$item$$)}catch($e$$){$cb$$($e$$)}})},$e$$=>{if($e$$)return $rj$$($e$$);$rs$$($items$$)})}),calcDefaultDiscount=async($id_app_rs$$,$groups$$)=>{await $groups$$.filter($d$$=>$d$$.ma_nhom&&!$d$$.phuong_phap_ap_dung).asyncJoinModel2($id_app_rs$$,"dmnckkm",{where:{ma_nhom:"_id"},fields:["phuong_phap_ap_dung","nh_me",{stt_uu_tien:"stt"}]});$groups$$.forEach($g$$=>{switch($g$$.phuong_phap_ap_dung){case "TOI_THIEU":$g$$.ck=$g$$.cks.sort(($a$$,
|
|
4
|
-
$b$$)=>$a$$.ty_le_ck-$b$$.ty_le_ck)[0];$g$$.ck.stt_uu_tien=$g$$.stt_uu_tien;break;case "TOI_DA":$g$$.ck=$g$$.cks.sort(($a$$,$b$$)=>$b$$.ty_le_ck-$a$$.ty_le_ck)[0];$g$$.ck.stt_uu_tien=$g$$.stt_uu_tien;break;case "CONG":$g$$.ck={ty_le_ck:$g$$.cks.map($c$$=>$c$$.ty_le_ck).reduce(($a$$,$b$$)=>$a$$+$b$$,0),tien_ck:$g$$.cks.map($c$$=>$c$$.tien_ck||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0)};$g$$.ck.stt_uu_tien=$g$$.stt_uu_tien;break;default:$g$$.ck=$g$$.cks.sort(($a$$,$b$$)=>($a$$.stt_uu_tien||0)-($b$$.stt_uu_tien||
|
|
5
|
-
0))[0],$g$$.ck.stt_uu_tien=$g$$.stt_uu_tien}delete $g$$.cks});if($groups$$.length==1)$id_app_rs$$=$groups$$[0].ck;else if($groups$$.find($g$$=>$g$$.nh_me)){$groups$$=$groups$$.map($g$$=>{$g$$.nh_me&&($g$$.ma_nhom=$g$$.nh_me,$g$$.nh_me="",$g$$.phuong_phap_ap_dung="");return $g$$});const $new_groups$$=[...(new Set($groups$$.map($d$$=>$d$$.ma_nhom||"")))].map($ma_nhom$$=>{const $cks$$=$groups$$.filter($d$$=>($d$$.ma_nhom||"")==$ma_nhom$$).map($g$$=>$g$$.ck);return{ma_nhom:$ma_nhom$$,cks:$cks$$}});$id_app_rs$$=
|
|
6
|
-
await calcDefaultDiscount($id_app_rs$$,$new_groups$$)}else $id_app_rs$$=$groups$$.sort(($a$$,$b$$)=>($a$$.stt_uu_tien||0)-($b$$.stt_uu_tien||0))[0];return $id_app_rs$$},calcDefaultPromotion=async($id_app$jscomp$1_rs$$,$groups$$)=>{await $groups$$.filter($d$$=>$d$$.ma_nhom&&!$d$$.phuong_phap_ap_dung).asyncJoinModel2($id_app$jscomp$1_rs$$,"dmnckkm",{where:{ma_nhom:"_id"},fields:["phuong_phap_ap_dung","nh_me",{stt_uu_tien:"stt"}]});$groups$$.forEach($g$$=>{switch($g$$.phuong_phap_ap_dung){case "TOI_THIEU":var $ck_ck$jscomp$1_ck$$=
|
|
7
|
-
$g$$.cks.sort(($a$$,$b$$)=>$a$$.t_sl_km-$b$$.t_sl_km)[0];$g$$.ck=$ck_ck$jscomp$1_ck$$?{t_sl_km:$ck_ck$jscomp$1_ck$$.t_sl_km||0,promotions:[$ck_ck$jscomp$1_ck$$],stt_uu_tien:$g$$.stt_uu_tien}:{t_sl_km:0,promotions:[],stt_uu_tien:$g$$.stt_uu_tien};break;case "TOI_DA":$ck_ck$jscomp$1_ck$$=$g$$.cks.sort(($a$$,$b$$)=>$b$$.t_sl_km-$a$$.t_sl_km)[0];$g$$.ck=$ck_ck$jscomp$1_ck$$?{t_sl_km:$ck_ck$jscomp$1_ck$$.t_sl_km||0,promotions:[$ck_ck$jscomp$1_ck$$],stt_uu_tien:$g$$.stt_uu_tien}:{t_sl_km:0,promotions:[],
|
|
8
|
-
stt_uu_tien:$g$$.stt_uu_tien};break;case "CONG":$ck_ck$jscomp$1_ck$$=$g$$.cks.map($c$$=>$c$$.t_sl_km).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$g$$.ck={t_sl_km:$ck_ck$jscomp$1_ck$$,promotions:$g$$.cks,stt_uu_tien:$g$$.stt_uu_tien};break;default:$ck_ck$jscomp$1_ck$$=$g$$.cks.sort(($a$$,$b$$)=>($a$$.stt_uu_tien||0)-($b$$.stt_uu_tien||0))[0],$g$$.ck=$ck_ck$jscomp$1_ck$$?{t_sl_km:$ck_ck$jscomp$1_ck$$.t_sl_km||0,promotions:[$ck_ck$jscomp$1_ck$$],stt_uu_tien:$g$$.stt_uu_tien}:{t_sl_km:0,promotions:[],stt_uu_tien:$g$$.stt_uu_tien}}});
|
|
9
|
-
if($groups$$.length==1)$id_app$jscomp$1_rs$$=$groups$$[0].ck.promotions;else if($groups$$.find($g$$=>$g$$.nh_me)){$groups$$=$groups$$.map($g$$=>{$g$$.nh_me&&($g$$.ma_nhom=$g$$.nh_me,$g$$.nh_me="",$g$$.phuong_phap_ap_dung="");return $g$$});const $new_groups$$=[...(new Set($groups$$.map($d$$=>$d$$.ma_nhom||"")))].map($ma_nhom$$=>{const $cks$$=$groups$$.filter($d$$=>($d$$.ma_nhom||"")==$ma_nhom$$).map($g$$=>$g$$.ck);return{ma_nhom:$ma_nhom$$,cks:$cks$$}});$id_app$jscomp$1_rs$$=await calcDefaultPromotion($id_app$jscomp$1_rs$$,
|
|
10
|
-
$new_groups$$)}else $id_app$jscomp$1_rs$$=$groups$$.sort(($a$$,$b$$)=>($a$$.stt_uu_tien||0)-($b$$.stt_uu_tien||0))[0].ck.promotions;return $id_app$jscomp$1_rs$$};
|
|
11
|
-
module.exports=async($condition$$,$fn$$,$par$$={})=>{!$condition$$.ma_vt&&$condition$$.vt&&($condition$$.ma_vt=$condition$$.vt.ma_vt);$condition$$.so_luong=$condition$$.so_luong||$condition$$.sl_xuat||1;$condition$$.t_so_luong=$condition$$.t_so_luong||$condition$$.t_sl_xuat||$condition$$.t_sl||$condition$$.so_luong;$condition$$.t_so_luong_ntt=$condition$$.t_so_luong_ntt||$condition$$.t_sl_xuat_ntt||$condition$$.t_sl_ntt||$condition$$.so_luong_ntt||0;$condition$$.t_tien_ntt=$condition$$.t_tien_ntt||
|
|
12
|
-
0;let $he_so_qd$$=1;if($condition$$.ma_dvt_sd){var $qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$=await global.getModel("dmqddvt").findOne({id_app:$condition$$.id_app,ma_vt:$condition$$.ma_vt,ma_dvt:$condition$$.ma_dvt_sd}).lean();$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$&&($he_so_qd$$=$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$.ty_le_qd||1,$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$.mau&&$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$.tu&&($he_so_qd$$=$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$.tu/
|
|
13
|
-
$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$.mau))}!$condition$$.ma_vt&&$condition$$.vt&&$condition$$.vt._id&&($condition$$.vt=await dmvt.findOne({_id:$condition$$.vt._id},{ma_vt:1,ma_nvt:1,ma_nvt2:1,ma_nvt3:1,ma_nvt4:1,ma_danh_muc:1,gia_ban_le0:1,gia_ban_buon0:1,gia_ban_le:1,gia_ban_buon:1,ty_le_ck0:1,tien_ck0:1,ma_nt:1,gia_ban_chua_thue:1,ma_thue:1,ma_nt0:1}).lean(),$condition$$.vt&&($condition$$.vt.is_full=!0,$condition$$.ma_vt=$condition$$.vt.ma_vt));if($condition$$&&$condition$$.ma_vt&&
|
|
14
|
-
$condition$$.id_app){var $vt$$=$condition$$.vt;if(!$vt$$||!$vt$$.is_full&&($vt$$.gia_ban_le===void 0||$vt$$.gia_ban_le0===void 0||$vt$$.ty_le_ck0===void 0||$vt$$.tien_ck0===void 0||$vt$$.ma_nt0===void 0||$vt$$.ma_thue===void 0))if($vt$$=await dmvt.findOne({ma_vt:$condition$$.ma_vt,id_app:$condition$$.id_app},{ma_vt:1,ma_nvt:1,ma_nvt2:1,ma_nvt3:1,ma_nvt4:1,ma_danh_muc:1,gia_ban_le0:1,gia_ban_buon0:1,gia_ban_le:1,gia_ban_buon:1,ty_le_ck0:1,tien_ck0:1,ma_nt:1,gia_ban_chua_thue:1,ma_thue:1,ma_nt0:1}).lean(),
|
|
15
|
-
!$vt$$)return $fn$$("Not found product: "+$condition$$.ma_vt);$vt$$.ma_nvt2||($vt$$.ma_nvt2=[]);typeof $vt$$.ma_nvt2=="string"&&($vt$$.ma_nvt2=[$vt$$.ma_nvt2]);$vt$$.ma_nvt3||($vt$$.ma_nvt3=[]);typeof $vt$$.ma_nvt3=="string"&&($vt$$.ma_nvt3=[$vt$$.ma_nvt3]);$vt$$.ma_nvt4||($vt$$.ma_nvt4=[]);typeof $vt$$.ma_nvt4=="string"&&($vt$$.ma_nvt4=[$vt$$.ma_nvt4]);if($condition$$.ma_tt1){var $hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$={id_app:$vt$$.id_app_vt||$condition$$.id_app,ma_vt:$vt$$.ma_vt,status:!0};
|
|
16
|
-
$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.ma_tt=$condition$$.ma_tt1;$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.loai_tt="1";if($hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$=await global.getModel("dmtt").findOne($hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$).lean())$vt$$.gia_ban_le0=$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.gia_ban_le||$vt$$.gia_ban_le0||$vt$$.gia_ban_le||0,$vt$$.gia_ban_buon0=$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.gia_ban_buon||$vt$$.gia_ban_buon0||$vt$$.gia_ban_buon||
|
|
17
|
-
0}else if($condition$$.ma_tt2){if($qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$={id_app:$vt$$.id_app_vt||$condition$$.id_app,ma_vt:$vt$$.ma_vt,status:!0},$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$.ma_tt=$condition$$.ma_tt2,$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$.loai_tt="2",$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$=await global.getModel("dmtt").findOne($qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$).lean())$vt$$.gia_ban_le0=$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$.gia_ban_le||
|
|
18
|
-
$vt$$.gia_ban_le0||$vt$$.gia_ban_le||0,$vt$$.gia_ban_buon0=$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$.gia_ban_buon||$vt$$.gia_ban_buon0||$vt$$.gia_ban_buon||0}else $condition$$.ma_tt3&&($qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$={id_app:$vt$$.id_app_vt||$condition$$.id_app,ma_vt:$vt$$.ma_vt,status:!0},$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$.ma_tt=$condition$$.ma_tt3,$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$.loai_tt="3",$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$=
|
|
19
|
-
await global.getModel("dmtt").findOne($qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$).lean())&&($vt$$.gia_ban_le0=$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$.gia_ban_le||$vt$$.gia_ban_le0||$vt$$.gia_ban_le||0,$vt$$.gia_ban_buon0=$qddct_query_tt$jscomp$1_query_tt$jscomp$2_tt_tt$$.gia_ban_buon||$vt$$.gia_ban_buon0||$vt$$.gia_ban_buon||0);$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$&&($condition$$.nh_tt_me=$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.nh_tt?await global.getModel("group").getAllMotherGroup($condition$$.id_app,
|
|
20
|
-
$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.nh_tt):[],$condition$$.nh_tt2_me=$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.nh_tt2?await global.getModel("group").getAllMotherGroup($condition$$.id_app,$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.nh_tt2):[],$condition$$.nh_tt3_me=$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.nh_tt3?await global.getModel("group").getAllMotherGroup($condition$$.id_app,$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.nh_tt3):[],$condition$$.nh_tt4_me=$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.nh_tt4?
|
|
21
|
-
await global.getModel("group").getAllMotherGroup($condition$$.id_app,$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.nh_tt4):[],$condition$$.nh_tt5_me=$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.nh_tt5?await global.getModel("group").getAllMotherGroup($condition$$.id_app,$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$.nh_tt5):[]);var $_cust_den_ngay_hieu_luc_tu$$;if($condition$$.user&&!$condition$$.ma_kh)try{if($_cust_den_ngay_hieu_luc_tu$$=await customer.findOne({id_app:$condition$$.id_app,of_user:$condition$$.user.email},
|
|
22
|
-
{ma_kh:1,nh_kh:1,nh_kh2:1,nh_kh3:1,nh_kh4:1,nh_kh5:1}).lean())$condition$$.ma_kh=$_cust_den_ngay_hieu_luc_tu$$.ma_kh,$condition$$.nh_kh=$_cust_den_ngay_hieu_luc_tu$$.nh_kh,$condition$$.nh_kh2=$_cust_den_ngay_hieu_luc_tu$$.nh_kh2,$condition$$.nh_kh3=$_cust_den_ngay_hieu_luc_tu$$.nh_kh3,$condition$$.nh_kh4=$_cust_den_ngay_hieu_luc_tu$$.nh_kh4,$condition$$.nh_kh5=$_cust_den_ngay_hieu_luc_tu$$.nh_kh5}catch($e$$){console.log("Error find customer code of user",$e$$)}if($condition$$.ma_kh){var $lan_mua_thu$$=
|
|
23
|
-
await so1.countDocuments({id_app:$condition$$.id_app,ma_kh:$condition$$.ma_kh,trang_thai:{$in:["4","5"]}});($lan_mua_thu$$+=await pbl.countDocuments({id_app:$condition$$.id_app,ma_kh:$condition$$.ma_kh,trang_thai:{$in:["5","6"]}}))||($lan_mua_thu$$=0);$lan_mua_thu$$+=1;!$_cust_den_ngay_hieu_luc_tu$$&&($_cust_den_ngay_hieu_luc_tu$$=await customer.findOne({id_app:$condition$$.id_app,ma_kh:$condition$$.ma_kh},{nh_kh:1,nh_kh2:1,nh_kh3:1,nh_kh4:1,nh_kh5:1}).lean())&&($condition$$.nh_kh=$_cust_den_ngay_hieu_luc_tu$$.nh_kh,
|
|
24
|
-
$condition$$.nh_kh2=$_cust_den_ngay_hieu_luc_tu$$.nh_kh2,$condition$$.nh_kh3=$_cust_den_ngay_hieu_luc_tu$$.nh_kh3,$condition$$.nh_kh4=$_cust_den_ngay_hieu_luc_tu$$.nh_kh4,$condition$$.nh_kh5=$_cust_den_ngay_hieu_luc_tu$$.nh_kh5)}else $lan_mua_thu$$=0;var $query$$={ma_vt:$condition$$.ma_vt,id_app:$condition$$.id_app,status:!0,$and:[]};$query$$.ma_kh={$in:[null,"",$condition$$.ma_kh]};$_cust_den_ngay_hieu_luc_tu$$&&($condition$$.nh_kh_me=$_cust_den_ngay_hieu_luc_tu$$.nh_kh?await global.getModel("group").getAllMotherGroup($condition$$.id_app,
|
|
25
|
-
$_cust_den_ngay_hieu_luc_tu$$.nh_kh):[],$condition$$.nh_kh2_me=$_cust_den_ngay_hieu_luc_tu$$.nh_kh2?await global.getModel("group").getAllMotherGroup($condition$$.id_app,$_cust_den_ngay_hieu_luc_tu$$.nh_kh2):[],$condition$$.nh_kh3_me=$_cust_den_ngay_hieu_luc_tu$$.nh_kh3?await global.getModel("group").getAllMotherGroup($condition$$.id_app,$_cust_den_ngay_hieu_luc_tu$$.nh_kh3):[],$condition$$.nh_kh4_me=$_cust_den_ngay_hieu_luc_tu$$.nh_kh4?await global.getModel("group").getAllMotherGroup($condition$$.id_app,
|
|
26
|
-
$_cust_den_ngay_hieu_luc_tu$$.nh_kh4):[],$condition$$.nh_kh5_me=$_cust_den_ngay_hieu_luc_tu$$.nh_kh5?await global.getModel("group").getAllMotherGroup($condition$$.id_app,$_cust_den_ngay_hieu_luc_tu$$.nh_kh5):[]);$query$$.nh_kh={$in:[null,"",...($condition$$.nh_kh_me||[])]};$query$$.nh_kh2={$in:[null,"",...($condition$$.nh_kh2_me||[])]};$query$$.nh_kh3={$in:[null,"",...($condition$$.nh_kh3_me||[])]};$query$$.nh_kh4={$in:[null,"",...($condition$$.nh_kh4_me||[])]};$query$$.nh_kh5={$in:[null,"",...($condition$$.nh_kh5_me||
|
|
27
|
-
[])]};$query$$.ma_kho={$in:[null,"",$condition$$.ma_kho]};$query$$.ma_tt1={$in:[null,"",$condition$$.ma_tt1]};$query$$.ma_tt2={$in:[null,"",$condition$$.ma_tt2]};$query$$.ma_tt3={$in:[null,"",$condition$$.ma_tt3]};$condition$$.ngay_ct=$condition$$.ngay_ct?new Date($condition$$.ngay_ct):new Date;$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$=$_cust_den_ngay_hieu_luc_tu$$=$condition$$.ngay_ct;$_cust_den_ngay_hieu_luc_tu$$={$lte:$_cust_den_ngay_hieu_luc_tu$$};$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$=
|
|
28
|
-
{$gte:$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$};$query$$.hieu_luc_tu=$_cust_den_ngay_hieu_luc_tu$$;$query$$.hieu_luc_den=$hieu_luc_den_query_tt_thuoc_tinh1_tu_ngay$$;var $sort$$={stt_uu_tien:1};async.parallel({giabans:$callback$$=>{if($condition$$.get_price==0)return $callback$$(null,[]);setImmediate(()=>{let $_query$$=_.cloneDeep($query$$);$_query$$.$and.push({$or:[{ap_dung_lan_mua_tu_thu:{$in:[0,null]}},{ap_dung_lan_mua_tu_thu:{$lte:$lan_mua_thu$$}}]});$_query$$.$and.push({$or:[{ap_dung_lan_mua_den_thu:{$in:[0,
|
|
29
|
-
null]}},{ap_dung_lan_mua_den_thu:{$gte:$lan_mua_thu$$}}]});$condition$$.online!=void 0&&($_query$$.online=$condition$$.online);$condition$$.offline!=void 0&&($_query$$.offline=$condition$$.offline);$_query$$.$and&&$_query$$.$and.length==0&&delete $_query$$.$and;dmgiaban.find($_query$$).sort($sort$$).lean().then(async $_q_giabans$$=>{$_q_giabans$$.length>0?$callback$$(null,$_q_giabans$$):($_q_giabans$$=_.cloneDeep($_query$$),$_q_giabans$$.ma_vt={$in:["",null]},$_q_giabans$$.ma_nvt={$in:["",null,$vt$$.ma_nvt]},
|
|
30
|
-
$_q_giabans$$.ma_nvt2={$in:["",null,...$vt$$.ma_nvt2]},$_q_giabans$$.ma_nvt3={$in:["",null,...$vt$$.ma_nvt3]},$_q_giabans$$.ma_nvt4={$in:["",null,...$vt$$.ma_nvt4]},$_q_giabans$$.ma_danh_muc={$in:["",null,$vt$$.ma_danh_muc]},dmgiaban.find($_q_giabans$$).sort($sort$$).lean().then(async $giabans$$=>{$callback$$(null,$giabans$$)}).catch($error$$=>{$callback$$({message:$error$$.message})}))}).catch($error$$=>{$callback$$({message:$error$$.message})})})},discount_vt:$callback$$=>{if($condition$$.get_discount==
|
|
31
|
-
0)return $callback$$(null,[]);setImmediate(async()=>{let $query_ck$$=_.cloneDeep($query$$);$query_ck$$.$and.push({$or:[{ap_dung_lan_mua_tu_thu:{$in:[0,null]}},{ap_dung_lan_mua_tu_thu:{$lte:$lan_mua_thu$$}}]});$query_ck$$.$and.push({$or:[{ap_dung_lan_mua_den_thu:{$in:[0,null]}},{ap_dung_lan_mua_den_thu:{$gte:$lan_mua_thu$$}}]});$condition$$.online!=void 0&&($query_ck$$.online=$condition$$.online);$condition$$.offline!=void 0&&($query_ck$$.offline=$condition$$.offline);delete $query_ck$$.ma_kh;delete $query_ck$$.nh_kh;
|
|
32
|
-
delete $query_ck$$.nh_kh2;delete $query_ck$$.nh_kh3;delete $query_ck$$.nh_kh4;delete $query_ck$$.nh_kh5;delete $query_ck$$.ma_tt1;delete $query_ck$$.ma_tt2;delete $query_ck$$.ma_tt3;$query_ck$$.$and&&$query_ck$$.$and.length==0&&delete $query_ck$$.$and;let $chietkhaus$$;try{$chietkhaus$$=await new Promise(($resolve$$,$reject$$)=>{async.parallel({cktheovt:$callback$$=>{let $_query$$=_.cloneDeep($query_ck$$);dmchietkhau.find($_query$$).sort($sort$$).lean().then(async $chietkhaus$$=>{$callback$$(null,
|
|
33
|
-
$chietkhaus$$)}).catch($error$$=>{$callback$$({message:$error$$.message})})},cktheonvt:$callback$$=>{let $_q$$=_.cloneDeep($query_ck$$);$_q$$.ma_vt={$in:["",null]};$_q$$.ma_nvt={$in:["",null,$vt$$.ma_nvt]};$_q$$.ma_nvt2={$in:["",null,...$vt$$.ma_nvt2]};$_q$$.ma_nvt3={$in:["",null,...$vt$$.ma_nvt3]};$_q$$.ma_nvt4={$in:["",null,...$vt$$.ma_nvt4]};$_q$$.ma_danh_muc={$in:["",null,$vt$$.ma_danh_muc]};dmchietkhau.find($_q$$).sort($sort$$).lean().then(async $chietkhaus$$=>{$callback$$(null,$chietkhaus$$)}).catch($error$$=>
|
|
34
|
-
{$callback$$({message:$error$$.message})})}},async($chietkhaus$jscomp$3_e$$,$rs$$)=>{if($chietkhaus$jscomp$3_e$$)return $reject$$($chietkhaus$jscomp$3_e$$);$chietkhaus$jscomp$3_e$$=$rs$$.cktheovt.concat($rs$$.cktheonvt);$resolve$$($chietkhaus$jscomp$3_e$$)})})}catch($e$$){return $callback$$($e$$)}$chietkhaus$$=$chietkhaus$$.filter($ck$$=>(!$ck$$.ma_kh||$condition$$.ma_kh==$ck$$.ma_kh)&&(!$ck$$.nh_kh||($condition$$.nh_kh_me||[]).find($nh$$=>$ck$$.nh_kh==$nh$$))&&(!$ck$$.nh_kh2||$ck$$.nh_kh2.length==
|
|
35
|
-
0||($condition$$.nh_kh2_me||[]).find($nh$$=>$ck$$.nh_kh2.indexOf($nh$$)>=0))&&(!$ck$$.nh_kh3||$ck$$.nh_kh3.length==0||($condition$$.nh_kh3_me||[]).find($nh$$=>$ck$$.nh_kh3.indexOf($nh$$)>=0))&&(!$ck$$.nh_kh4||$ck$$.nh_kh4.length==0||($condition$$.nh_kh4_me||[]).find($nh$$=>$ck$$.nh_kh4.indexOf($nh$$)>=0))&&(!$ck$$.nh_kh5||$ck$$.nh_kh5.length==0||($condition$$.nh_kh5_me||[]).find($nh$$=>$ck$$.nh_kh5.indexOf($nh$$)>=0))&&(!$ck$$.ma_tt1||$condition$$.ma_tt1==$ck$$.ma_tt1)&&(!$ck$$.ma_tt2||$condition$$.ma_tt2==
|
|
36
|
-
$ck$$.ma_tt2)&&(!$ck$$.ma_tt3||$condition$$.ma_tt3==$ck$$.ma_tt3)&&(!$ck$$.nh_tt||($condition$$.nh_tt_me||[]).find($nh$$=>$ck$$.nh_tt==$nh$$))&&(!$ck$$.nh_tt2||$ck$$.nh_tt2.length==0||($condition$$.nh_tt2_me||[]).find($nh$$=>$ck$$.nh_tt2.indexOf($nh$$)>=0))&&(!$ck$$.nh_tt3||$ck$$.nh_tt3.length==0||($condition$$.nh_tt3_me||[]).find($nh$$=>$ck$$.nh_tt3.indexOf($nh$$)>=0))&&(!$ck$$.nh_tt4||$ck$$.nh_tt4.length==0||($condition$$.nh_tt4_me||[]).find($nh$$=>$ck$$.nh_tt4.indexOf($nh$$)>=0))&&(!$ck$$.nh_tt5||
|
|
37
|
-
$ck$$.nh_tt5.length==0||($condition$$.nh_tt5_me||[]).find($nh$$=>$ck$$.nh_tt5.indexOf($nh$$)>=0)));await getSLDaBanCKs($chietkhaus$$);$chietkhaus$$=$chietkhaus$$.filter($ck$$=>!$ck$$.tong_sl_ap_dung||!$ck$$.sl_da_ban||$ck$$.sl_con_lai>0);$callback$$(null,$chietkhaus$$)})},promotion_vt:$callback$$=>{if($condition$$.get_promotion==0)return $callback$$(null,[]);setImmediate(async()=>{let $query_promotion$$=_.cloneDeep($query$$);$condition$$.online!=void 0&&($query_promotion$$.online=$condition$$.online);
|
|
38
|
-
$condition$$.offline!=void 0&&($query_promotion$$.offline=$condition$$.offline);let $sort_km$$={stt_uu_tien:1};$query_promotion$$.$and&&$query_promotion$$.$and.length==0&&delete $query_promotion$$.$and;delete $query_promotion$$.ma_kh;delete $query_promotion$$.nh_kh;delete $query_promotion$$.nh_kh2;delete $query_promotion$$.nh_kh3;delete $query_promotion$$.nh_kh4;delete $query_promotion$$.nh_kh5;delete $query_promotion$$.ma_tt1;delete $query_promotion$$.ma_tt2;delete $query_promotion$$.ma_tt3;try{var $khuyenmais_khuyenmais_tm$$=
|
|
39
|
-
await new Promise(($resolve$$,$reject$$)=>{async.parallel({theovt:$callback$$=>{dmkhuyenmai.find($query_promotion$$).sort($sort_km$$).lean().then($khuyenmai$$=>{$callback$$(null,$khuyenmai$$)}).catch($error$$=>{$callback$$({message:$error$$.message})})},theonvt:$callback$$=>{let $_q$$=_.cloneDeep($query_promotion$$);$_q$$.ma_vt={$in:["",null]};$_q$$.ma_nvt={$in:["",null,$vt$$.ma_nvt]};$_q$$.ma_nvt2={$in:["",null,...$vt$$.ma_nvt2]};$_q$$.ma_nvt3={$in:["",null,...$vt$$.ma_nvt3]};$_q$$.ma_danh_muc={$in:["",
|
|
40
|
-
null,$vt$$.ma_danh_muc]};dmkhuyenmai.find($_q$$).sort($sort_km$$).lean().then($khuyenmai$$=>{$callback$$(null,$khuyenmai$$)}).catch($error$$=>{$callback$$({message:$error$$.message})})}},($e$$,$rs$$)=>{if($e$$)return $reject$$($e$$);$e$$=$rs$$.theovt.concat($rs$$.theonvt);$resolve$$($e$$)})})}catch($e$$){return $callback$$($e$$)}$khuyenmais_khuyenmais_tm$$=$khuyenmais_khuyenmais_tm$$.filter($ck$$=>(!$ck$$.ma_kh||$condition$$.ma_kh==$ck$$.ma_kh)&&(!$ck$$.nh_kh||($condition$$.nh_kh_me||[]).find($nh$$=>
|
|
41
|
-
$ck$$.nh_kh==$nh$$))&&(!$ck$$.nh_kh2||$ck$$.nh_kh2.length==0||($condition$$.nh_kh2_me||[]).find($nh$$=>$ck$$.nh_kh2.indexOf($nh$$)>=0))&&(!$ck$$.nh_kh3||$ck$$.nh_kh3.length==0||($condition$$.nh_kh3_me||[]).find($nh$$=>$ck$$.nh_kh3.indexOf($nh$$)>=0))&&(!$ck$$.nh_kh4||$ck$$.nh_kh4.length==0||($condition$$.nh_kh4_me||[]).find($nh$$=>$ck$$.nh_kh4.indexOf($nh$$)>=0))&&(!$ck$$.nh_kh5||$ck$$.nh_kh5.length==0||($condition$$.nh_kh5_me||[]).find($nh$$=>$ck$$.nh_kh5.indexOf($nh$$)>=0))&&(!$ck$$.ma_tt1||$condition$$.ma_tt1==
|
|
42
|
-
$ck$$.ma_tt1)&&(!$ck$$.ma_tt2||$condition$$.ma_tt2==$ck$$.ma_tt2)&&(!$ck$$.ma_tt3||$condition$$.ma_tt3==$ck$$.ma_tt3)&&(!$ck$$.nh_tt||($condition$$.nh_tt_me||[]).find($nh$$=>$ck$$.nh_tt==$nh$$))&&(!$ck$$.nh_tt2||$ck$$.nh_tt2.length==0||($condition$$.nh_tt2_me||[]).find($nh$$=>$ck$$.nh_tt2.indexOf($nh$$)>=0))&&(!$ck$$.nh_tt3||$ck$$.nh_tt3.length==0||($condition$$.nh_tt3_me||[]).find($nh$$=>$ck$$.nh_tt3.indexOf($nh$$)>=0))&&(!$ck$$.nh_tt4||$ck$$.nh_tt4.length==0||($condition$$.nh_tt4_me||[]).find($nh$$=>
|
|
43
|
-
$ck$$.nh_tt4.indexOf($nh$$)>=0))&&(!$ck$$.nh_tt5||$ck$$.nh_tt5.length==0||($condition$$.nh_tt5_me||[]).find($nh$$=>$ck$$.nh_tt5.indexOf($nh$$)>=0)));$callback$$(null,$khuyenmais_khuyenmais_tm$$)})}},async($e$jscomp$7_g$jscomp$12_giabans$$,$rs$$)=>{if($e$jscomp$7_g$jscomp$12_giabans$$)return $fn$$($e$jscomp$7_g$jscomp$12_giabans$$);if($condition$$.get_price==0)$rs$$.price={};else{$vt$$.ma_nt0||($vt$$.ma_nt0="VND");!($rs$$.giabans.length>0)||$rs$$.giabans[0].sl_tu||$rs$$.giabans[0].sl_den||$rs$$.giabans[0].t_sl_tu||
|
|
44
|
-
$rs$$.giabans[0].t_sl_den||($rs$$.giabans=[$rs$$.giabans[0]]);$e$jscomp$7_g$jscomp$12_giabans$$=[];for(let $g$$ of $rs$$.giabans)$g$$.sl_tu=$g$$.sl_tu||0,$g$$.sl_den=$g$$.sl_den||0,$g$$.t_sl_tu=$g$$.t_sl_tu||0,$g$$.t_sl_den=$g$$.t_sl_den||0,$e$jscomp$7_g$jscomp$12_giabans$$.find($_g$$=>$_g$$.sl_tu===$g$$.sl_tu&&$_g$$.sl_den===$g$$.sl_den&&$_g$$.t_sl_tu===$g$$.t_sl_tu&&$_g$$.t_sl_den===$g$$.t_sl_den)||$e$jscomp$7_g$jscomp$12_giabans$$.push($g$$);$rs$$.giabans=$e$jscomp$7_g$jscomp$12_giabans$$;$rs$$.giabans.find($g$$=>
|
|
45
|
-
!$g$$.sl_tu)||($rs$$.giabans=[...$rs$$.giabans,{gia_ban_le:$vt$$.gia_ban_le0||$vt$$.gia_ban_le||0,gia_ban_buon:$vt$$.gia_ban_buon0||$vt$$.gia_ban_buon||0,ma_nt:$vt$$.ma_nt0,gia_ban_chua_thue:$vt$$.gia_ban_chua_thue,t_sl_tu:0,t_sl_den:0,sl_tu:0,sl_den:$rs$$.giabans.length>0?$rs$$.giabans.sort(($a$$,$b$$)=>$a$$.sl_tu-$b$$.sl_tu)[0].sl_tu-.001:0}]);for(var $g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$ of $rs$$.giabans)$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.ma_nt||($g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.ma_nt=
|
|
46
|
-
"VND"),$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.ma_thue=$vt$$.ma_thue,$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.thue_suat=$vt$$.thue_suat;await $rs$$.giabans.asyncJoinModel2($condition$$.id_app,"currency",{where:"ma_nt",fields:["ty_gia"]});await [$vt$$].asyncJoinModel2($condition$$.id_app,"currency",{where:{ma_nt0:"ma_nt"},fields:[{ty_gia0:"ty_gia"}]});$vt$$.ma_thue&&await [$vt$$].asyncJoinModel2($condition$$.id_app,"vat",{where:{ma_thue:"ma_thue"},fields:[{thue_suat:"thue_suat"}]});
|
|
47
|
-
$rs$$.giabans.forEach($g$$=>{$par$$&&$par$$.ma_nt&&$par$$.ty_gia&&$g$$.ma_nt!==$par$$.ma_nt?($g$$.gia_ban_le0_qd=utils.round(($vt$$.gia_ban_le0||0)*$vt$$.ty_gia0/$par$$.ty_gia,2),$g$$.gia_ban_buon0_qd=utils.round(($vt$$.gia_ban_buon0||0)*$vt$$.ty_gia0/$par$$.ty_gia,2),$g$$.gia_ban_le=utils.round($g$$.gia_ban_le*$g$$.ty_gia/$par$$.ty_gia,2),$g$$.gia_ban_buon=utils.round(($g$$.gia_ban_buon||0)*$g$$.ty_gia/$par$$.ty_gia,2),$g$$.ma_nt=$par$$.ma_nt,$g$$.ty_gia=$par$$.ty_gia):($g$$.gia_ban_le0_qd=$vt$$.gia_ban_le0||
|
|
48
|
-
0,$g$$.gia_ban_buon0_qd=$vt$$.gia_ban_buon0||0)});for($g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$=0;$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$<$rs$$.giabans.length;$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$++)$e$jscomp$7_g$jscomp$12_giabans$$=$rs$$.giabans[$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$],$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_chua_thue?($e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le0_qd_ct=$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le0_qd,
|
|
49
|
-
$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon0_qd_ct=$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon0_qd,$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le_ct=$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le,$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon_ct=$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon,$vt$$.ma_thue&&($vt$$.thue_suat=$vt$$.thue_suat||0,$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le0_qd=utils.round($e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le0_qd_ct*(1+$vt$$.thue_suat/100),2),$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon0_qd=
|
|
50
|
-
utils.round($e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon0_qd_ct*(1+$vt$$.thue_suat/100),2),$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le=utils.round($e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le_ct*(1+$vt$$.thue_suat/100),2),$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon=utils.round($e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon_ct*(1+$vt$$.thue_suat/100),2))):($e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le0_qd_ct=$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le0_qd,$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon0_qd_ct=
|
|
51
|
-
$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon0_qd,$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le_ct=$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le,$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon_ct=$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon,$vt$$.ma_thue&&($vt$$.thue_suat=$vt$$.thue_suat||0,$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le0_qd_ct=utils.round($e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le0_qd/(1+$vt$$.thue_suat/100),2),$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon0_qd_ct=utils.round($e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon0_qd/
|
|
52
|
-
(1+$vt$$.thue_suat/100),2),$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le_ct=utils.round($e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_le/(1+$vt$$.thue_suat/100),2),$e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon_ct=utils.round($e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_buon/(1+$vt$$.thue_suat/100),2))),delete $e$jscomp$7_g$jscomp$12_giabans$$.gia_ban_chua_thue,$e$jscomp$7_g$jscomp$12_giabans$$.he_so_qd=$he_so_qd$$,$condition$$.ma_dvt_sd&&$rs$$.giabans.forEach($g$$=>{$g$$.gia_ban_le=utils.round($g$$.gia_ban_le*
|
|
53
|
-
$he_so_qd$$,round);$g$$.gia_ban_buon=utils.round($g$$.gia_ban_buon*$he_so_qd$$,round);$g$$.gia_ban_le0_qd_ct=utils.round($g$$.gia_ban_le0_qd_ct*$he_so_qd$$,round);$g$$.gia_ban_buon0_qd_ct=utils.round($g$$.gia_ban_buon0_qd_ct*$he_so_qd$$,round);$g$$.gia_ban_le_ct=utils.round($g$$.gia_ban_le_ct*$he_so_qd$$,round);$g$$.gia_ban_buon_ct=utils.round($g$$.gia_ban_buon_ct*$he_so_qd$$,round);$g$$.ma_dvt=$condition$$.ma_dvt_sd;$g$$.he_so_qd=$he_so_qd$$});$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$=
|
|
54
|
-
$rs$$.giabans.filter($g$$=>$g$$.sl_tu<=$condition$$.so_luong&&(!$g$$.sl_den||$g$$.sl_den>$condition$$.so_luong)&&$g$$.t_sl_tu<=$condition$$.t_so_luong&&(!$g$$.t_sl_den||$g$$.t_sl_den>$condition$$.t_so_luong)&&(!$g$$.t_sl_ntt_tu||$g$$.t_sl_ntt_tu<=$condition$$.t_so_luong_ntt)&&(!$g$$.t_sl_ntt_den||$g$$.t_sl_ntt_den>$condition$$.t_so_luong_ntt)&&(!$g$$.t_tien_ntt_tu||$g$$.t_tien_ntt_tu<=$condition$$.t_tien_ntt)&&(!$g$$.t_tien_ntt_den||$g$$.t_tien_ntt_den>$condition$$.t_tien_ntt));$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$=
|
|
55
|
-
$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.length>0?$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$[0]:$rs$$.giabans[0]||{};$rs$$.price={gia_ban_le0_qd:$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.gia_ban_le0_qd,gia_ban_buon0_qd:$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.gia_ban_buon0_qd,gia_ban_le:$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.gia_ban_le,gia_ban_buon:$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.gia_ban_buon,gia_ban_le0_qd_ct:$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.gia_ban_le0_qd_ct,
|
|
56
|
-
gia_ban_buon0_qd_ct:$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.gia_ban_buon0_qd_ct,gia_ban_le_ct:$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.gia_ban_le_ct,gia_ban_buon_ct:$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.gia_ban_buon_ct,ma_nt:$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.ma_nt,ty_gia:$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.ty_gia,ma_thue:$vt$$.ma_thue,thue_suat:$vt$$.thue_suat,prices:$rs$$.giabans}}if($condition$$.get_discount!=
|
|
57
|
-
0){$rs$$.discount=$rs$$.discount_vt;$rs$$.discount.forEach($r$$=>{$r$$.id_cs=$r$$._id});$rs$$.price.discount=$rs$$.discount.sort(function($a$$,$b$$){return($b$$.ap_dung_lan_mua_tu_thu||0)>($a$$.ap_dung_lan_mua_tu_thu||0)?1:$b$$.ty_le_ck-$a$$.ty_le_ck});let $discounts$$=[];$rs$$.price.discount.forEach($d$$=>{$d$$.tien_ck&&$rs$$.price.gia_ban_le_ct&&($d$$.ty_le_ck=$d$$.tien_ck/$rs$$.price.gia_ban_le_ct*100);$d$$.sl_tu=$d$$.sl_tu||0;$d$$.sl_den=$d$$.sl_den||0;$d$$.gt_hd_tu=$d$$.gt_hd_tu||0;$d$$.gt_hd_den=
|
|
58
|
-
$d$$.gt_hd_den||0;$discounts$$.push($d$$)});$rs$$.price.discount=$discounts$$;let $t_gt_hd$$=$condition$$.t_gt_hd||0,$t_tien_ntt$$=$condition$$.t_tien_ntt||0,$t_so_luong_ntt$$=$condition$$.t_so_luong_ntt||0,$default_cks$$=$discounts$$.filter($d$$=>(!$d$$.gt_hd_tu||$d$$.gt_hd_tu<=$t_gt_hd$$)&&(!$d$$.gt_hd_den||$d$$.gt_hd_den>$t_gt_hd$$)&&!$d$$.mua_them&&$condition$$.so_luong>=$d$$.sl_tu&&(!$d$$.sl_den||$d$$.sl_den>$condition$$.so_luong)&&(!$d$$.t_sl_tu||$d$$.t_sl_tu<=$condition$$.t_so_luong)&&(!$d$$.t_sl_den||
|
|
59
|
-
$d$$.t_sl_den>$condition$$.t_so_luong)&&(!$d$$.t_sl_ntt_tu||$d$$.t_sl_ntt_tu<=$t_so_luong_ntt$$)&&(!$d$$.t_sl_ntt_den||$d$$.t_sl_ntt_den>$t_so_luong_ntt$$)&&(!$d$$.t_tien_ntt_tu||$d$$.t_tien_ntt_tu<=$t_tien_ntt$$)&&(!$d$$.t_tien_ntt_den||$d$$.t_tien_ntt_den>$t_tien_ntt$$));var $default_ck_groups$jscomp$2_i$$;$condition$$.id_cs_ck&&($default_ck_groups$jscomp$2_i$$=$default_cks$$.find($d$$=>$d$$._id.toString()==$condition$$.id_cs_ck));!$default_ck_groups$jscomp$2_i$$&&$default_cks$$.length>0&&($default_ck_groups$jscomp$2_i$$=
|
|
60
|
-
[...(new Set($default_cks$$.map($d$$=>$d$$.ma_nhom||"")))].map($ma_nhom$$=>({ma_nhom:$ma_nhom$$,cks:$default_cks$$.filter($d$$=>($d$$.ma_nhom||"")==($ma_nhom$$||""))})),$default_ck_groups$jscomp$2_i$$=await calcDefaultDiscount($condition$$.id_app,$default_ck_groups$jscomp$2_i$$));$default_ck_groups$jscomp$2_i$$&&(underscore.extend($rs$$.price,{sl_tu:$default_ck_groups$jscomp$2_i$$.sl_tu,ty_le_ck:$default_ck_groups$jscomp$2_i$$.ty_le_ck||0,tien_ck:$default_ck_groups$jscomp$2_i$$.tien_ck,gt_hd_tu:$default_ck_groups$jscomp$2_i$$.gt_hd_tu,
|
|
61
|
-
gt_hd_den:$default_ck_groups$jscomp$2_i$$.gt_hd_den,sl_ap_dung:$default_ck_groups$jscomp$2_i$$.sl_ap_dung,so_tien_max:$default_ck_groups$jscomp$2_i$$.so_tien_max,id_cs:$default_ck_groups$jscomp$2_i$$._id}),$rs$$.tien_ck_tmp=$rs$$.tien_ck,$rs$$.tien_ck_tmp||($rs$$.tien_ck_tmp=utils.round($rs$$.price.gia_ban_le_ct*$rs$$.ty_le_ck/100,2)),$rs$$.price.gia_ban_le_sau_ck_tmp=Math.max(0,$rs$$.price.gia_ban_le-$rs$$.tien_ck_tmp));$default_ck_groups$jscomp$2_i$$=underscore.filter($rs$$.discount,$d$$=>$d$$.sl_tu>
|
|
62
|
-
1).sort(function($a$$,$b$$){return $b$$.ty_le_ck-$a$$.ty_le_ck});$default_ck_groups$jscomp$2_i$$.length>0&&($rs$$.price.ck_sl_tu2=$default_ck_groups$jscomp$2_i$$)}if($condition$$.get_promotion!=0){$rs$$.promotion=$rs$$.promotion_vt;$rs$$.promotion.forEach($r$$=>{$r$$.id_cs=$r$$._id});$rs$$.promotion&&$rs$$.promotion.forEach($p$$=>{delete $p$$.status;delete $p$$.user_created;delete $p$$.user_updated;delete $p$$.date_created;delete $p$$.date_updated;delete $p$$.exfields;delete $p$$.id_app;delete $p$$.dmkh;
|
|
63
|
-
delete $p$$.dmkho;delete $p$$.dmnvt;delete $p$$.dmvt;delete $p$$.__v});$rs$$.price.promotion=$rs$$.promotion||[];$condition$$.ma_ct?($rs$$.price.promotion=$rs$$.price.promotion.filter($p$$=>!$p$$.chi_su_dung_cho_ct||$p$$.chi_su_dung_cho_ct.toUpperCase().split(",").indexOf($condition$$.ma_ct.toUpperCase())>=0),$rs$$.price.promotion=$rs$$.price.promotion.filter($p$$=>!$p$$.khong_su_dung_cho_ct||$p$$.khong_su_dung_cho_ct.toUpperCase().split(",").indexOf($condition$$.ma_ct.toUpperCase())<0)):$rs$$.price.promotion=
|
|
64
|
-
$rs$$.price.promotion.filter($p$$=>!$p$$.chi_su_dung_cho_ct&&!$p$$.khong_su_dung_cho_ct);for($default_ck_groups$jscomp$2_i$$=0;$default_ck_groups$jscomp$2_i$$<$rs$$.price.promotion.length;$default_ck_groups$jscomp$2_i$$++)$g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$=$rs$$.price.promotion[$default_ck_groups$jscomp$2_i$$],await ($g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.details_km||[]).asyncJoinModel2($condition$$.id_app,dmvt,{where:"ma_vt",fields:["ten_vt","picture"]}),await ($g$jscomp$10_gia_ban_mac_dinh_giabanstheosoluong_i_p$$.details_km||
|
|
65
|
-
[]).filter($d$$=>$d$$.ma_tt1).asyncJoinModel2($condition$$.id_app,"dmtt",{where:$item$$=>({ma_vt:$item$$.ma_vt,ma_tt:$item$$.ma_tt1,loai_tt:"1"}),setFields:($item$$,$ref$$)=>{$item$$.thuoc_tinh=$ref$$}});let $promotions_df$$=$rs$$.price.promotion.filter($p$$=>$p$$.details_km&&$p$$.details_km.length>0&&$p$$.sl_tu<=$condition$$.so_luong&&(!$p$$.sl_den||$p$$.sl_den>=$condition$$.so_luong||$p$$.sl_den===$p$$.sl_tu)&&(!$p$$.t_sl_tu||$p$$.t_sl_tu<=$condition$$.t_so_luong)&&(!$p$$.t_sl_den||$p$$.t_sl_den>
|
|
66
|
-
$condition$$.t_so_luong)&&(!$p$$.t_sl_ntt_tu||$p$$.t_sl_ntt_tu<=$condition$$.t_so_luong_ntt)&&(!$p$$.t_sl_ntt_den||$p$$.t_sl_ntt_den>$condition$$.t_so_luong_ntt)&&(!$p$$.t_tien_ntt_tu||$p$$.t_tien_ntt_tu<=$condition$$.t_tien_ntt)&&(!$p$$.t_tien_ntt_den||$p$$.t_tien_ntt_den>$condition$$.t_tien_ntt));var $groups$$;$condition$$.id_cs&&($groups$$=$promotions_df$$.find($d$$=>$d$$._id.toString()==$condition$$.id_cs));!$groups$$&&$promotions_df$$.length>0&&($promotions_df$$.forEach($p$$=>{$p$$.t_sl_km=($p$$.details_km||
|
|
67
|
-
[]).map($d$$=>$d$$.sl_km||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0)}),$groups$$=[...(new Set($promotions_df$$.map($d$$=>$d$$.ma_nhom||"")))].map($ma_nhom$$=>({ma_nhom:$ma_nhom$$,cks:$promotions_df$$.filter($d$$=>($d$$.ma_nhom||"")==$ma_nhom$$)})),$groups$$=await calcDefaultPromotion($condition$$.id_app,$groups$$));$rs$$.price.default_promotion=$groups$$}$fn$$(null,$rs$$.price)})}else $fn$$(`Condition required ma_vt,id_app. Current condition ${JSON.stringify($condition$$)}`)};
|
|
1
|
+
const _0x1783bd=_0x4e0d;(function(_0xc68647,_0x428d8f){const _0x270e97=_0x4e0d,_0x4a63ea=_0xc68647();while(!![]){try{const _0x124e9d=-parseInt(_0x270e97(0x23d))/0x1*(parseInt(_0x270e97(0x367))/0x2)+parseInt(_0x270e97(0x304))/0x3*(parseInt(_0x270e97(0x35e))/0x4)+-parseInt(_0x270e97(0x394))/0x5+parseInt(_0x270e97(0x388))/0x6+parseInt(_0x270e97(0x201))/0x7+parseInt(_0x270e97(0x1a0))/0x8+parseInt(_0x270e97(0x27e))/0x9;if(_0x124e9d===_0x428d8f)break;else _0x4a63ea['push'](_0x4a63ea['shift']());}catch(_0x14148e){_0x4a63ea['push'](_0x4a63ea['shift']());}}}(_0x35fd,0x3bc7f));const _0x429149=(function(){const _0x31a15d=_0x4e0d,_0x48d4b6={'hAAZq':_0x31a15d(0x26b)};let _0x38a7fd=!![];return function(_0x5d90c4,_0x48e6b8){const _0x45e7a8=_0x38a7fd?function(){const _0x1e9781=_0x4e0d;if(_0x48e6b8){if(_0x48d4b6['hAAZq']!==_0x48d4b6[_0x1e9781(0x22b)])_0x5ac2f4=_0x27c8d3[0x0]['ck']['promotions'];else{const _0x2c8c81=_0x48e6b8[_0x1e9781(0x341)](_0x5d90c4,arguments);return _0x48e6b8=null,_0x2c8c81;}}}:function(){};return _0x38a7fd=![],_0x45e7a8;};}()),_0x31eca4=_0x429149(this,function(){const _0x495e1e=_0x4e0d,_0x508870={'nfrQn':_0x495e1e(0x28b)};return _0x31eca4[_0x495e1e(0x191)]()['search'](_0x508870[_0x495e1e(0x292)])[_0x495e1e(0x191)]()['constructor'](_0x31eca4)[_0x495e1e(0x1f1)](_0x508870['nfrQn']);});function _0x35fd(){const _0x1ae63c=['AezKwhq','x2LK','zwPZCLu','s0LKAeq','r05zsfi','BwfFDgH1zq','ANrOD3m','qwLJCvy','ruPwA1O','y0HIAee','vvfrAxm','zgv0ywLSC19RBq','u2fOtxC','zg1Xzgr2Da','EeLsqxK','wwPSEfC','Chzvsvu','C1bgrxa','y2XVBMvezwvW','B2zMBgLUzq','vuLOCvC','EvneALm','zLjZAui','r0L5Afa','Df9ZBf9UDhq','zxHMAwvSzhm','B2nrEw8','C0PsrLu','vKDjq3C','uff0EuC','qLvpvfu','zufhyNq','vKr5wMm','BMHFA2G0','DgzuEeG','DxnLCL91CgrHDgvK','CgLJDhvYzq','ufzlsLu','BMHFDhq0','BunTr08','DgHLBG','BMHFDhqZx21L','Ae1Trhe','BMHFDhq0x21L','C3nqAxG','C2XFy29Ux2XHAq','zfjXwxK','ufHMB08','r0nwuu4','q0PvuLG','DgHLB252Da','vgXMywu','Cu1isue','r1Pzu04','BwfW','rxjYB3iGzMLUzcbJDxn0B21LCIbJB2rLig9MihvZzxi','yuHfzvy','q21wCNa','mtu3nZDVtxvwEvq','yLDnt0W','B09XwM0','z2v0qwXStw90AgvYr3jVDxa','BxfABMy','C3LdCfK','Bg9N','v3nQtgu','sMDPyvO','yNP0z3y','BwfFDhqY','Df9ZBf9UDhrFDhu','wNj0sNm','BwfFzhz0','Df9ZBf9UDhrFzgvU','Df90AwvUx250Df9Kzw4','s2rYEgK','zw5yAuG','EfbOsxe','z2LHx2jHBL9IDw9U','CgfbwNK','vK5e','zu1oyvO','AgLLDv9SDwnFDhu','z2LHx2jHBL9Szv9JDa','zKDywwW','zwnKDKW','mNWZFdf8nhWW','zxHWB3j0CW','DhLFBgvFCwq','y2T0AgvVDNq','sKLOz3K','BwfFA2HV','wNfjz2G','z2LHx2jHBL9IDw9Umf9Xza','wwD1BMW','y0fxq2e','DMzgBLe','uhbvqNi','uhLMr0G','zuvqseS','Ce5RExC','AhnwA0m','DgvUx3z0','u21RB0W','z2LHx2jHBL9Szta','yxPmEuS','D1n4wMi','uM1VB1q','z0H2que','zgf0zv91CgrHDgvK','ChnytvG','r2frrvK','Bwf1','wML2ENO','mhWXFdn8nhWY','BMHFDhq1','sNHtAwG','C29FBhvVBMDFBNr0','z2LHx2jHBL9IDw9Uma','Bu5zsuO','yxbWBhK','wKT3vfi','x192','rvz4BvO','zw9Urw4','z2v0x3bYAwnL','uvfQsge','vxDNCfq','tgrdEMK','terZDgS','Aw5KzxHpzG','qNrbrxy','BwfFDNq','y1rLz1e','zMnptLu','ueDSzg0','yNzvzuW','y3vZDg9Tzxi','C2XFA20','Df9ZBa','suPSrem','uwnIv2W','BfH5C20','wLf2qLa','tgrrruO','C2XFzgvU','DhnVB1K','CuPTsLC','q05oCfq','nJHtBM9mCgy','r1Hvqva','tMzwy2q','q29UzgL0Aw9UihjLCxvPCMvKig1Hx3z0lgLKx2fWCc4Gq3vYCMvUDcbJB25KAxrPB24G','Awvdr3a','DxnLCG','BwvZC2fNzq','tLLHqLK','t1DntNa','mZbXuNbQt1a','rurgA1u','zfbUsNe','y253v2S','y2f0y2G','DvPzqKy','Df9ZB19SDw9UzW','A2jIy0i','zNnUDLe','EgPqDMm','uefUqMW','yxPjwKO','DhLFz2LHma','tuHkAwy','svbfsgG','BMHFDhqY','C2XVswG','D0TJq3e','mhW1Fdn8mxW0Fdi','B3DqA1y','BuLXC1e','v0XZwMK','wejUuuK','sNPqweq','C2XFEhvHDa','sNzrvvi','BwLxt3u','tfbss04','uhnUCK4','q2Hsqwe','BMDHEv9JDa','BwfFBNz0na','uxvNBNe','mtm3mJi5nLHVrxnAqG','qwXZy3i','zg1RAhv5zw5TywK','s0PpCNC','zg12Da','AfjPy0y','BMHFBwu','zML6qxC','y3vYCMvUy3K','rNDPBu0','whPurMK','C3r0','otK4mZeWDw51yK50','BvD0zgu','wxDevhi','rwzVD2y','rxnKyKm','zeDqvwK','AwrFyxbWx3z0','z3rFAgrFDhu','yuP4D2u','BMHFA2G','vxLuv1y','z3jVDxa','z2LHx2jHBL9IDw9Umf9Xzf9JDa','wKnTwei','B1HAALy','sgDsuwG','nxWXFdH8nhWWFdeWFdz8m3W3Fdj8mtf8oq','BuTcwK8','s1vjD1e','y2TFC2XFDhuY','BMHFA2G1','C3rbCgW','BhvJDuy','ChjVBw90Aw9UCW','qwzTBvi','zgLZy291BNrFDNq','sMrjAvm','jgfUza','shfmrxy','turNrMW','uvLfAvy','ugDmv0W','tgfKDLa','BwfFDhqX','y2TZ','ruvctwK','BMHFDhq','q0rwq3a','t0rUzgq','zgLZy291BNq','BwfFBNq','DxnLCL9JCMvHDgvK','BwfFBNz0mG','v09hB1O','y3Dirvq','shjZBgS','wMnNuvO','Df90AwvUx250Da','zeLNrK8','BgvHBG','Df9ZB19SDw9Uz19UDhq','q09orW','DhLFz2LH','Cxfeu00','vxPrze0','yLL2zxe','svD2ugC','zfzYAMi','DwjxEvK','BwfFDhqZ','s01rALy','vLn0swi','BNjWquK','Bu1Kqw4','BMHFA2G1x21L','Bg5ZqMu','v1vWsxK','DgLLBL9JA190Bxa','su1tA1m','v0Phrxq','zg1UDNq','tK9kuKC','y29Tuhm','BKvgq3i','ueHhsfe','zg1Uy2TRBq','BxvHx3rOzw0','BM56ChO','DNH0uNO','BwfFzgfUAf9TDwm','yLHoB2G','wMfdrw0','Dg9tDhjPBMC','DgHLB3z0','qvDryLa','yvv0vwu','r1zPC1O','yNjUtwi','zfLIEwG','BwfFBNqW','C3rYAw5NAwz5','AunRq1C','BwfFA2G','zhf4z1m','CxzmuNK','AxLOvvi','BuDUAvC','mJuXmte1mKXhCwLrqW','A2XZy0u','vgTdEMK','zxnKvg8','BwfFBMHVBq','nxWYFdb8mxWZFdq','EMTQtwG','zeThvvy','C2XFzgfFyMfU','A0XmyM0','shH3ueO','BwfFzhz0x3nK','vwH5qLC','rvntwhK','y291BNreB2n1BwvUDhm','C2XFyxbFzhvUzW','A1DsAe4','Dxn4A00','yxn5BMnkB2LUtw9KzwWY','qMzZC2G','Df9ZBf9Kzw4','v3vHAha','BMzVy28','u2DtCfC','BhH4u2S','AwHyvKe','B2XAwuS','zM9YrwfJAa','z2LHyMfUCW','nhWZFdv8mxWYFda','z0vlBKG','BwfrDe0','vvnLD3O','BMHFA2GY','CgfYywXSzwW','z2LHx2jHBL9Szq','yLDpAvC','BwfFBNz0','CM9bDgy','DgH1zv9ZDwf0','sfvxuxa','ugPvuwK','EKruBgO','rff3B3y','CeXhv3O','EK5Xuvq','EuTbvxC','r09WD1y','CgH1B25Nx3bOyxbFyxbFzhvUzW','DgLLBL9JAZa','EgTnweW','sKDqDeS','uLfMyLi','rgTrtLu','ruPfAg4','zg1wrxu','AwrFy3nFy2S','uMDisKu','BMHFA2G0x21L','Dfb5q3O','A0PyA3q','zg1JAgLLDgTOyxu','BKneBxq','zgj6DxO','nNWYFdf8nhW1FdD8m3W4FdL8mhWXmhWXmq','y2T0AgvVBNz0','Df9ZBf94Dwf0x250Da','qMHTsLe','z2v0x2rPC2nVDw50','uNbTzMG','uKLYr1y','BMHFA2HFBwu','zgPrz1G','BLLzz0G','A1rwq0q','DeT1q3i','CM91BMq','mhW3Fdf8nhW2Fdj8nxWZ','BMHFA2GZx21L','uxHqt0i','ChjVBw90Aw9Ux3z0','C2vHCMnO','uxDQAwq','BMHFDhrFBwu','yxbFzhvUz19Syw5FBxvHx3r1x3rODq','ueHwq20','DhLFBgvFy2S','ru9huMu','rLLose8','tKPkzfi','mxWYFdn8nhWW','BMHFA2GYx21L','ChjVBw90Aw9U','ueLtrLi','DLDqrwC','u1nRBNG','Dw9NC3m','ndK2mtC0t0HJCfzx','ug52uge','BwfFDhq','t25fugG','ExPSreC','Bwf4','ve9jx1risuvv','y2DOwgu','tvvIELi','DMf0','CgjS','AgvFC29FCwq','Dg9vChbLCKnHC2u','zMLUza','BMHFDhqZ','AwrFy3m','suHsCve','ELnzzhu','tgHVzwS','Df9ZBf94Dwf0','D0XrzMO','DgH1B2nFDgLUAa','EeXfy3e','BgvUz3rO','qwjJDeq','Bg9HAv90Da','Auf0zLO','u1jdq1K','Df9ZBf90Dq','DwLPtNu','Df9ZBf9RBq','zMLSDgvY','wM5LBfu','yuThDMC','ruDxuhm','C2XFDhu','A01Ty3K','BwLU','vgrsq1q','C29FDgLLBL9TyxG','z2LHx2jHBL9IDw9Ux2n0','u216D1O','AefbwNe','q2rryMS','Dg9Uz19ZBf9HCf9KDw5N','A0HZDxi','C3vmBvm','zg1RAg8','v0X0DLe','ChvZAa','sgTisMy','wgH2vLu','CMvKDwnL','BMHFA2GZ','AwrFyxbW','zMLUze9Uzq','Df90AwvUx250Df90Dq','qvnvD0O','v2rwvMy','C3bSAxq','mJeWmZnNwhnzq1q','mxWZFdj8mhW0','vfzsuhu','tM90igzVDw5KihbYB2r1y3q6ia','AgLLDv9SDwnFzgvU','z2LHx2jHBL9JAhvHx3rODwu','zKzRwey','y0zxANi','A2HVBMDFC3vFzhvUz19JAg9Fy3q','yLrhtfm','wMrHy2O','qLjMyKG','qNvWBgW','C3r0x3v1x3rPzw4','u0H3Ehi','zLzHweu','AxvJCNK','zuvovNi','tw5WDhO','ve9jx0rb','sfzZvvK','tMnZCgq','BhvZruO','yLrHt2O','DgLLBL9JAW','wvbPwvq','z21nqMO','whHir2i','sgnxzfC','ELf3zve','A29gCNC','AwXIyxO','z2v0tw9KzwW','C29YDa','z2LHx2jHBL9SztbFCwq','lI91DgLSCW','A0jJruC','z2v0x3bYB21VDgLVBG','rMjTDeq','y2rdwgu','zK9cu2m','tenyBuC','CfzzzMG','AxnFzNvSBa','y2HPx3n1x2r1BMDFy2HVx2n0','Dw5szfy','Aw10uhy','DhzSz1i','BMHFDhqYx21L','vhztrLu','zg1RAa','vw94Egq','B25SAw5L','sg94A0S','zg10Da','AMfuAeC','ALDnA0e','qw9uqNq','qxz6qMG','ruDtruS','EgDYBMK','zunuseO','tvvvvMW','BvzhufG','y3nyD1C','nte0mti1AgLZtLDQ','DhzOwhq','we5qAuq','s0vxsMG','t3bxu2G','BvD6Dg0','AvDAr2S','BwfFBNz0mW','vMDut3i','z2LHx2jHBL9SztbFCwrFy3q','CwLxEei','nhWXFdj8mhW1Fdm','r3vduhG','kcGOlISPkYKRksSK','vvncvgO','rgHesLy','C29FBhvVBMC','AxbcqM4','yxn5BMm','Ee1cCLa','BMzYuw4','zgf0zv9JCMvHDgvK','BvLjEfK','B05Ate0','rKnssw4','BwfFy3q','ChjPy2u','B2rgBeG','AMLvzeq','s1vZvNm','B3Lbsvm','tg1kEgy','mNWZFdb8nhW1Fde','zgvMyxvSDf9WCM9TB3rPB24','EfLTu2i','Ag5dugG','z3rFAgrFzgvU','zw1HAwW','yw9HEuy','teHysKK','u0TJuuK','zgv0ywLSCW','t3rhrwG','C3rHDhvZ','y29Uy2f0','EKLeDMO','AxvjCLK','EwHcz2O','C3nqyue','zNfMDuW','CfjSCeK','wg1psNq','zMzNwuu','senXvLi','DMvVz2u','mxW0Fdj8n3W1Fdz8mhWZ','vejVvNq','zKP5ANe','Dw5KzxjZy29Yzq','z2LHx2jHBL9Szv9ZyxvFy2TFDg1W','v0DbD2W','zNLZqvC','mhWYFdf8nhWZ','BhjqshG','yNvryue','vfrUtgy','zK9yzxe','CxDnyM8','BMnVEMS','v0riAxG','wgj5rfu','ANjxthC','yKDjrLu','EMPdtwO','qKTktNm','BMHFDhq1x21L'];_0x35fd=function(){return _0x1ae63c;};return _0x35fd();}_0x31eca4();function _0x4e0d(_0x53e26c,_0x30a536){const _0x3bd55a=_0x35fd();return _0x4e0d=function(_0x31eca4,_0x429149){_0x31eca4=_0x31eca4-0x178;let _0x35fd88=_0x3bd55a[_0x31eca4];if(_0x4e0d['atSAVK']===undefined){var _0x4e0d2f=function(_0x255724){const _0xf14645='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x107e1f='',_0x2bd7e2='',_0x59dffe=_0x107e1f+_0x4e0d2f;for(let _0x38ce6e=0x0,_0x514967,_0x26c3c4,_0x3b4bf9=0x0;_0x26c3c4=_0x255724['charAt'](_0x3b4bf9++);~_0x26c3c4&&(_0x514967=_0x38ce6e%0x4?_0x514967*0x40+_0x26c3c4:_0x26c3c4,_0x38ce6e++%0x4)?_0x107e1f+=_0x59dffe['charCodeAt'](_0x3b4bf9+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x514967>>(-0x2*_0x38ce6e&0x6)):_0x38ce6e:0x0){_0x26c3c4=_0xf14645['indexOf'](_0x26c3c4);}for(let _0x2911f0=0x0,_0x575505=_0x107e1f['length'];_0x2911f0<_0x575505;_0x2911f0++){_0x2bd7e2+='%'+('00'+_0x107e1f['charCodeAt'](_0x2911f0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2bd7e2);};_0x4e0d['JhKDpo']=_0x4e0d2f,_0x53e26c=arguments,_0x4e0d['atSAVK']=!![];}const _0x55580b=_0x3bd55a[0x0],_0x15b52c=_0x31eca4+_0x55580b,_0x474113=_0x53e26c[_0x15b52c];if(!_0x474113){const _0x15681c=function(_0x520f0e){this['JJZrUN']=_0x520f0e,this['CqBHFq']=[0x1,0x0,0x0],this['YbpiAj']=function(){return'newState';},this['pkuADo']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['eYtdFS']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x15681c['prototype']['PLRasL']=function(){const _0x478d56=new RegExp(this['pkuADo']+this['eYtdFS']),_0x537d26=_0x478d56['test'](this['YbpiAj']['toString']())?--this['CqBHFq'][0x1]:--this['CqBHFq'][0x0];return this['PaUOQS'](_0x537d26);},_0x15681c['prototype']['PaUOQS']=function(_0x3d290e){if(!Boolean(~_0x3d290e))return _0x3d290e;return this['GcxtKR'](this['JJZrUN']);},_0x15681c['prototype']['GcxtKR']=function(_0x503ebc){for(let _0x43f219=0x0,_0x23a86e=this['CqBHFq']['length'];_0x43f219<_0x23a86e;_0x43f219++){this['CqBHFq']['push'](Math['round'](Math['random']())),_0x23a86e=this['CqBHFq']['length'];}return _0x503ebc(this['CqBHFq'][0x0]);},new _0x15681c(_0x4e0d)['PLRasL'](),_0x35fd88=_0x4e0d['JhKDpo'](_0x35fd88),_0x53e26c[_0x15b52c]=_0x35fd88;}else _0x35fd88=_0x474113;return _0x35fd88;},_0x4e0d(_0x53e26c,_0x30a536);}const dmvt=global['getModel'](_0x1783bd(0x38c)),dmgiaban=global[_0x1783bd(0x25d)]('dmgiaban'),so1=global['getModel']('so1'),pbl=global[_0x1783bd(0x25d)](_0x1783bd(0x20b)),dmchietkhau=global[_0x1783bd(0x25d)](_0x1783bd(0x1dd)),dmkhuyenmai=global[_0x1783bd(0x25d)](_0x1783bd(0x38a)),customer=global[_0x1783bd(0x25d)](_0x1783bd(0x352)),async=require(_0x1783bd(0x290)),underscore=require(_0x1783bd(0x2b8)),utils=require(_0x1783bd(0x260)),_=require('lodash'),round=0x0,getSLDaBanCKs=async _0x1c5675=>{const _0x59f898=_0x1783bd,_0x1288fc={'NnVEx':'LCT','LPRKN':function(_0x2c829d,_0x82dc8,_0x5364db){return _0x2c829d(_0x82dc8,_0x5364db);},'EVxmZ':function(_0x5ed982,_0xeda7aa){return _0x5ed982(_0xeda7aa);},'HxwPJ':function(_0x90b44c,_0x5500e7){return _0x90b44c!==_0x5500e7;},'stApl':_0x59f898(0x350)};return new Promise((_0x35e914,_0x27d5e8)=>{const _0x1ab187=_0x59f898,_0xfa3bf8={'uogss':_0x1288fc['NnVEx'],'xMBrP':function(_0x10ce49,_0x454835){return _0x10ce49-_0x454835;},'ubWyY':function(_0xe9c449,_0x2bd725,_0x4417e8){const _0x237bc2=_0x4e0d;return _0x1288fc[_0x237bc2(0x382)](_0xe9c449,_0x2bd725,_0x4417e8);},'nrPIb':function(_0x418500,_0x34e10e){const _0x4459d4=_0x4e0d;return _0x1288fc[_0x4459d4(0x344)](_0x418500,_0x34e10e);}};if(_0x1288fc[_0x1ab187(0x1aa)](_0x1288fc[_0x1ab187(0x3a9)],_0x1288fc[_0x1ab187(0x3a9)]))return _0x3e3ff4[_0x1ab187(0x38e)]&&(_0x5de881[_0x1ab187(0x1a4)]=_0x59e9e7[_0x1ab187(0x38e)],_0x55fbfd['nh_me']='',_0x372e2a[_0x1ab187(0x1d0)]=''),_0xd5bfe8;else async['mapSeries'](_0x1c5675,(_0x20398c,_0x3f013c)=>{const _0xc2503e=_0x1ab187,_0x2ca161={'UGRwU':_0xfa3bf8[_0xc2503e(0x200)],'MUUVl':function(_0x259585,_0x588c2e){const _0x2f61cb=_0xc2503e;return _0xfa3bf8[_0x2f61cb(0x291)](_0x259585,_0x588c2e);},'cpliW':function(_0x1f37cd,_0x3ae9b6,_0x511e6b){const _0x205d8=_0xc2503e;return _0xfa3bf8[_0x205d8(0x179)](_0x1f37cd,_0x3ae9b6,_0x511e6b);}};setImmediate(async()=>{const _0x5bcaf4=_0xc2503e;try{const _0x5b5fe3=await so1[_0x5bcaf4(0x20e)]({'id_app':_0x20398c[_0x5bcaf4(0x237)],'details.id_cs':_0x20398c[_0x5bcaf4(0x2cb)][_0x5bcaf4(0x191)](),'trang_thai':{'$nin':['9','10',_0x2ca161['UGRwU']]}}),_0x4e4aff=_0x5b5fe3['map'](_0x3cc1a0=>_0x3cc1a0[_0x5bcaf4(0x2a7)]||[])[_0x5bcaf4(0x235)]((_0x5bfaf1,_0x1989d9)=>_0x5bfaf1[_0x5bcaf4(0x2aa)](_0x1989d9),[])[_0x5bcaf4(0x220)](_0x5da303=>_0x5da303[_0x5bcaf4(0x210)]===_0x20398c[_0x5bcaf4(0x2cb)][_0x5bcaf4(0x191)]());_0x20398c[_0x5bcaf4(0x1a8)]=_0x4e4aff['map'](_0x16ea3a=>_0x20398c[_0x5bcaf4(0x1af)]?Math[_0x5bcaf4(0x226)](_0x16ea3a['sl_xuat'],_0x20398c[_0x5bcaf4(0x1af)]):_0x16ea3a[_0x5bcaf4(0x37f)])[_0x5bcaf4(0x235)]((_0x569523,_0x58fd62)=>_0x569523+_0x58fd62,0x0),_0x20398c['sl_con_lai']=Math['max'](_0x2ca161[_0x5bcaf4(0x27b)](_0x20398c[_0x5bcaf4(0x22d)]||0x0,_0x20398c[_0x5bcaf4(0x1a8)]),0x0),_0x20398c[_0x5bcaf4(0x1af)]=_0x20398c['tong_sl_ap_dung']?Math['min'](_0x20398c['sl_ap_dung'],_0x20398c[_0x5bcaf4(0x2f7)]):_0x20398c[_0x5bcaf4(0x1af)],_0x2ca161['cpliW'](_0x3f013c,null,_0x20398c);}catch(_0x4cf85a){_0x3f013c(_0x4cf85a);}});},_0x10d3cf=>{if(_0x10d3cf)return _0xfa3bf8['nrPIb'](_0x27d5e8,_0x10d3cf);_0x35e914(_0x1c5675);});});},calcDefaultDiscount=async(_0x24fd29,_0x28fab1)=>{const _0x20eb1f=_0x1783bd,_0x59aba1={'HoxkK':_0x20eb1f(0x19c),'jrWLw':function(_0x1933d3,_0x179da6){return _0x1933d3!==_0x179da6;},'UQQis':_0x20eb1f(0x282),'tvlgR':_0x20eb1f(0x3c7),'IPEHh':'JkSEr','kzOBF':_0x20eb1f(0x1d2),'LdQEJ':function(_0x36c2cc,_0x256a2e){return _0x36c2cc<=_0x256a2e;},'iAtfZ':function(_0xeea7d6,_0xe1b4e2){return _0xeea7d6>_0xe1b4e2;},'JzPXD':function(_0x3d3475,_0x305610){return _0x3d3475<=_0x305610;},'kiTeX':function(_0x1e05a7,_0x5aaed4){return _0x1e05a7<=_0x5aaed4;},'sloIh':function(_0x24a1a1,_0xa83263){return _0x24a1a1>_0xa83263;},'VgTOr':function(_0x123436,_0x35fee2){return _0x123436!==_0x35fee2;},'hgock':_0x20eb1f(0x1f2),'XtgBN':_0x20eb1f(0x18a),'aoayF':_0x20eb1f(0x2cb),'PHGHQ':_0x20eb1f(0x1d0),'pnUfM':_0x20eb1f(0x38e),'Pjthu':function(_0x4ab5ed,_0x4cf79a){return _0x4ab5ed==_0x4cf79a;},'AWQbP':_0x20eb1f(0x315),'mWtde':function(_0x31f9b,_0x16ea04){return _0x31f9b!==_0x16ea04;},'PXfoO':_0x20eb1f(0x24f),'XbyDU':_0x20eb1f(0x1b9),'cHbhA':function(_0x134b3b,_0x20d481,_0x4aa59d){return _0x134b3b(_0x20d481,_0x4aa59d);}};let _0x36eb4d;await _0x28fab1[_0x20eb1f(0x220)](_0x39861c=>_0x39861c['ma_nhom']&&!_0x39861c[_0x20eb1f(0x1d0)])[_0x20eb1f(0x1b2)](_0x24fd29,_0x59aba1['XtgBN'],{'where':{'ma_nhom':_0x59aba1[_0x20eb1f(0x2a4)]},'fields':[_0x59aba1[_0x20eb1f(0x189)],_0x59aba1['pnUfM'],{'stt_uu_tien':_0x20eb1f(0x393)}]}),_0x28fab1[_0x20eb1f(0x1bb)](_0x56e084=>{const _0x288d28=_0x20eb1f;switch(_0x56e084['phuong_phap_ap_dung']){case _0x288d28(0x207):{if(_0x288d28(0x19c)===_0x59aba1[_0x288d28(0x272)]){_0x56e084['ck']=_0x56e084[_0x288d28(0x3b6)]['sort']((_0x4280d6,_0x2b1129)=>_0x4280d6[_0x288d28(0x1f6)]-_0x2b1129[_0x288d28(0x1f6)])[0x0],_0x56e084['ck'][_0x288d28(0x24a)]=_0x56e084[_0x288d28(0x24a)];break;}else _0x2d6e51[_0x288d28(0x1fb)]=[];}case _0x288d28(0x250):{if(_0x59aba1['jrWLw'](_0x59aba1[_0x288d28(0x2d4)],_0x59aba1[_0x288d28(0x2d4)]))_0x42e50d[_0x288d28(0x298)]={};else{_0x56e084['ck']=_0x56e084[_0x288d28(0x3b6)][_0x288d28(0x25e)]((_0x393743,_0x43abbe)=>_0x43abbe[_0x288d28(0x1f6)]-_0x393743['ty_le_ck'])[0x0],_0x56e084['ck'][_0x288d28(0x24a)]=_0x56e084['stt_uu_tien'];break;}}case _0x59aba1[_0x288d28(0x26c)]:{if(_0x59aba1[_0x288d28(0x375)]===_0x59aba1['kzOBF'])_0x4afae8['price'][_0x288d28(0x1fc)]=_0x50cfad[_0x288d28(0x298)][_0x288d28(0x1fc)][_0x288d28(0x220)](_0x156b5f=>!_0x156b5f[_0x288d28(0x269)]||_0x156b5f[_0x288d28(0x269)]['toUpperCase']()[_0x288d28(0x23c)](',')[_0x288d28(0x34b)](_0x456dbd[_0x288d28(0x297)][_0x288d28(0x20d)]())>=0x0),_0x18a637['price'][_0x288d28(0x1fc)]=_0x5d52f6['price'][_0x288d28(0x1fc)]['filter'](_0x1c680c=>!_0x1c680c[_0x288d28(0x245)]||_0x1c680c[_0x288d28(0x245)][_0x288d28(0x20d)]()[_0x288d28(0x23c)](',')[_0x288d28(0x34b)](_0x29398c[_0x288d28(0x297)][_0x288d28(0x20d)]())<0x0);else{_0x56e084['ck']={'ty_le_ck':_0x56e084[_0x288d28(0x3b6)]['map'](_0xf0a745=>_0xf0a745[_0x288d28(0x1f6)])['reduce']((_0x1841ed,_0x42bc25)=>_0x1841ed+_0x42bc25,0x0),'tien_ck':_0x56e084['cks'][_0x288d28(0x300)](_0x590574=>_0x590574[_0x288d28(0x255)]||0x0)[_0x288d28(0x235)]((_0x171365,_0xe87a94)=>_0x171365+_0xe87a94,0x0)},_0x56e084['ck']['stt_uu_tien']=_0x56e084['stt_uu_tien'];break;}}default:{_0x56e084['ck']=_0x56e084[_0x288d28(0x3b6)][_0x288d28(0x25e)]((_0x8961d8,_0x7e248a)=>(_0x8961d8['stt_uu_tien']||0x0)-(_0x7e248a[_0x288d28(0x24a)]||0x0))[0x0],_0x56e084['ck'][_0x288d28(0x24a)]=_0x56e084['stt_uu_tien'];break;}}delete _0x56e084[_0x288d28(0x3b6)];});if(_0x59aba1['Pjthu'](_0x28fab1[_0x20eb1f(0x218)],0x1))_0x36eb4d=_0x28fab1[0x0]['ck'];else{if(_0x59aba1[_0x20eb1f(0x2c5)](_0x20eb1f(0x315),_0x59aba1[_0x20eb1f(0x193)]))return(!_0x1ba23d[_0x20eb1f(0x39b)]||_0x59aba1[_0x20eb1f(0x359)](_0x26455d['gt_hd_tu'],_0x367536))&&(!_0x3d6d4f[_0x20eb1f(0x2a2)]||_0x59aba1[_0x20eb1f(0x21b)](_0x3067bd[_0x20eb1f(0x2a2)],_0x391180))&&!_0x23904a[_0x20eb1f(0x18b)]&&_0x1d57e7['so_luong']>=_0x2f0bfa['sl_tu']&&(!_0x22356a['sl_den']||_0x59aba1['iAtfZ'](_0x30c868[_0x20eb1f(0x35a)],_0x350371['so_luong']))&&(!_0x50d86c['t_sl_tu']||_0x59aba1['JzPXD'](_0x45fc95[_0x20eb1f(0x21d)],_0x5c60d7[_0x20eb1f(0x36d)]))&&(!_0x45d0cc[_0x20eb1f(0x1b4)]||_0x1b92df[_0x20eb1f(0x1b4)]>_0x1cfaae[_0x20eb1f(0x36d)])&&(!_0xc88986['t_sl_ntt_tu']||_0x59aba1[_0x20eb1f(0x37e)](_0x287d80[_0x20eb1f(0x30f)],_0x32eb70))&&(!_0x1368e4[_0x20eb1f(0x312)]||_0x59aba1['iAtfZ'](_0xc14e3e['t_sl_ntt_den'],_0x476d97))&&(!_0xeb24f9[_0x20eb1f(0x239)]||_0x59aba1['kiTeX'](_0x7d2c0a[_0x20eb1f(0x239)],_0x2c5f9c))&&(!_0x2b075e[_0x20eb1f(0x313)]||_0x59aba1[_0x20eb1f(0x377)](_0x26a5c6[_0x20eb1f(0x313)],_0x1fcc00));else{if(!_0x28fab1['find'](_0x66af79=>_0x66af79[_0x20eb1f(0x38e)]))_0x59aba1[_0x20eb1f(0x395)](_0x59aba1[_0x20eb1f(0x2f9)],_0x59aba1[_0x20eb1f(0x2f9)])?_0x1a5e28[_0x20eb1f(0x2f3)]=[]:_0x36eb4d=_0x28fab1['sort']((_0x1fb796,_0x520fdd)=>(_0x1fb796[_0x20eb1f(0x24a)]||0x0)-(_0x520fdd[_0x20eb1f(0x24a)]||0x0))[0x0];else{if(_0x59aba1['mWtde'](_0x59aba1[_0x20eb1f(0x2c4)],_0x59aba1['XbyDU']))_0x41a5a1=_0x224b18[_0x20eb1f(0x20e)](_0x5f2e88=>_0x5f2e88['_id']['toString']()==_0x47e7ea[_0x20eb1f(0x1d8)]);else{_0x28fab1=_0x28fab1[_0x20eb1f(0x300)](_0x569f00=>{const _0x13889c=_0x20eb1f;if(_0x59aba1[_0x13889c(0x286)](_0x13889c(0x309),_0x59aba1['hgock']))return _0x569f00[_0x13889c(0x38e)]&&(_0x569f00['ma_nhom']=_0x569f00[_0x13889c(0x38e)],_0x569f00[_0x13889c(0x38e)]='',_0x569f00[_0x13889c(0x1d0)]=''),_0x569f00;else _0x208ffe['nh_tt_me']=[];});const _0x87b986=[...new Set(_0x28fab1[_0x20eb1f(0x300)](_0xb3caee=>_0xb3caee[_0x20eb1f(0x1a4)]||''))][_0x20eb1f(0x300)](_0x1de2ee=>{const _0x6f380b=_0x20eb1f,_0x56f6df=_0x28fab1[_0x6f380b(0x220)](_0x1aa7b6=>(_0x1aa7b6[_0x6f380b(0x1a4)]||'')==_0x1de2ee)[_0x6f380b(0x300)](_0x5b0f10=>_0x5b0f10['ck']);return{'ma_nhom':_0x1de2ee,'cks':_0x56f6df};});_0x36eb4d=await _0x59aba1[_0x20eb1f(0x2d3)](calcDefaultDiscount,_0x24fd29,_0x87b986);}}}}return _0x36eb4d;},calcDefaultPromotion=async(_0x543221,_0x12eed6)=>{const _0x40ea08=_0x1783bd,_0x3c6aa9={'oXZjV':function(_0x5e53ef,_0x244069){return _0x5e53ef/_0x244069;},'mVGPX':_0x40ea08(0x2fb),'psXMX':_0x40ea08(0x250),'AvzBh':_0x40ea08(0x2e7),'PAnBl':function(_0x41df42,_0xa0b72e){return _0x41df42===_0xa0b72e;},'qqDSM':'rUToM','brnMb':'TtrRB','fqfuL':'Fjmys','RgHJE':function(_0x3e194a,_0xd83f67){return _0x3e194a*_0xd83f67;},'gHvAA':function(_0x2cde74,_0x3a2ece){return _0x2cde74*_0x3a2ece;},'kWRhN':function(_0x52f2c7,_0x5b331e){return _0x52f2c7*_0x5b331e;},'zIDvj':function(_0x5407dd,_0x5104bf){return _0x5407dd*_0x5104bf;},'buQaA':function(_0x270771,_0x1912fd){return _0x270771>_0x1912fd;},'maWXM':function(_0x1e22ba,_0x590022){return _0x1e22ba!==_0x590022;},'QxPOB':_0x40ea08(0x3b9),'LCXmG':_0x40ea08(0x1a6),'UChot':_0x40ea08(0x18a),'wnvTn':_0x40ea08(0x2cb),'Zdacj':_0x40ea08(0x1d0),'JIhgy':'nh_me','eEPHK':_0x40ea08(0x393),'aHEeV':function(_0x70e2a2,_0x2f40a6){return _0x70e2a2==_0x2f40a6;},'TVRPu':_0x40ea08(0x178),'USBTj':'VQnXh','nfoco':_0x40ea08(0x325),'YPiYT':function(_0x402a3e,_0x1706b4,_0x56cdd2){return _0x402a3e(_0x1706b4,_0x56cdd2);}};let _0x43ce77;await _0x12eed6[_0x40ea08(0x220)](_0x3642a7=>_0x3642a7[_0x40ea08(0x1a4)]&&!_0x3642a7['phuong_phap_ap_dung'])[_0x40ea08(0x1b2)](_0x543221,_0x3c6aa9['UChot'],{'where':{'ma_nhom':_0x3c6aa9['wnvTn']},'fields':[_0x3c6aa9[_0x40ea08(0x247)],_0x3c6aa9[_0x40ea08(0x323)],{'stt_uu_tien':_0x3c6aa9[_0x40ea08(0x32c)]}]}),_0x12eed6[_0x40ea08(0x1bb)](_0xa26a8=>{const _0x3998ed=_0x40ea08,_0x1dab64={'EBiQF':function(_0x3b00a3,_0x2dc5f3){const _0x5c5189=_0x4e0d;return _0x3c6aa9[_0x5c5189(0x3a2)](_0x3b00a3,_0x2dc5f3);}};switch(_0xa26a8[_0x3998ed(0x1d0)]){case _0x3998ed(0x207):{const _0x2a79f4=_0xa26a8['cks'][_0x3998ed(0x25e)]((_0x3a686d,_0x304185)=>_0x3a686d[_0x3998ed(0x21f)]-_0x304185[_0x3998ed(0x21f)])[0x0];_0x2a79f4?_0xa26a8['ck']={'t_sl_km':_0x2a79f4[_0x3998ed(0x21f)]||0x0,'promotions':[_0x2a79f4],'stt_uu_tien':_0xa26a8[_0x3998ed(0x24a)]}:_0x3c6aa9[_0x3998ed(0x27c)]!==_0x3998ed(0x2fb)?(_0x1ae03e[_0x3998ed(0x331)]=_0x2370fb[_0x3998ed(0x1c3)]||_0xfd16f5['gia_ban_le0']||_0x431a94[_0x3998ed(0x1c3)]||0x0,_0x4db025[_0x3998ed(0x33f)]=_0x1856c7[_0x3998ed(0x317)]||_0x14ee95['gia_ban_buon0']||_0x202e19[_0x3998ed(0x317)]||0x0):_0xa26a8['ck']={'t_sl_km':0x0,'promotions':[],'stt_uu_tien':_0xa26a8['stt_uu_tien']};break;}case _0x3c6aa9[_0x3998ed(0x337)]:{const _0x54b5d7=_0xa26a8[_0x3998ed(0x3b6)][_0x3998ed(0x25e)]((_0x5119e1,_0x2106ad)=>_0x2106ad[_0x3998ed(0x21f)]-_0x5119e1[_0x3998ed(0x21f)])[0x0];_0x54b5d7?_0x3c6aa9[_0x3998ed(0x277)]!==_0x3998ed(0x316)?_0xa26a8['ck']={'t_sl_km':_0x54b5d7[_0x3998ed(0x21f)]||0x0,'promotions':[_0x54b5d7],'stt_uu_tien':_0xa26a8[_0x3998ed(0x24a)]}:_0x56b811[_0x3998ed(0x1e7)]=[]:_0xa26a8['ck']={'t_sl_km':0x0,'promotions':[],'stt_uu_tien':_0xa26a8[_0x3998ed(0x24a)]};break;}case _0x3998ed(0x3c7):{const _0x2779b0=_0xa26a8['cks'][_0x3998ed(0x300)](_0x49fb4a=>_0x49fb4a[_0x3998ed(0x21f)])[_0x3998ed(0x235)]((_0x5a74fa,_0x4946a1)=>_0x5a74fa+_0x4946a1,0x0);_0xa26a8['ck']={'t_sl_km':_0x2779b0,'promotions':_0xa26a8[_0x3998ed(0x3b6)],'stt_uu_tien':_0xa26a8[_0x3998ed(0x24a)]};break;}default:{if(_0x3c6aa9[_0x3998ed(0x371)](_0x3c6aa9[_0x3998ed(0x3c9)],_0x3c6aa9[_0x3998ed(0x196)]))_0x4a1297=_0x1dab64['EBiQF'](_0x5b241d['tu'],_0x4e8d25[_0x3998ed(0x339)]);else{const _0x338f8e=_0xa26a8[_0x3998ed(0x3b6)][_0x3998ed(0x25e)]((_0x355ab2,_0x81692d)=>(_0x355ab2[_0x3998ed(0x24a)]||0x0)-(_0x81692d['stt_uu_tien']||0x0))[0x0];if(_0x338f8e){if(_0x3c6aa9[_0x3998ed(0x2af)]===_0x3c6aa9['fqfuL'])_0xa26a8['ck']={'t_sl_km':_0x338f8e[_0x3998ed(0x21f)]||0x0,'promotions':[_0x338f8e],'stt_uu_tien':_0xa26a8['stt_uu_tien']};else return{'ma_nhom':_0x406432,'cks':_0x15bd1f[_0x3998ed(0x220)](_0x8f2694=>(_0x8f2694[_0x3998ed(0x1a4)]||'')==(_0x26664d||''))};}else _0xa26a8['ck']={'t_sl_km':0x0,'promotions':[],'stt_uu_tien':_0xa26a8[_0x3998ed(0x24a)]};break;}}}});if(_0x3c6aa9[_0x40ea08(0x302)](_0x12eed6[_0x40ea08(0x218)],0x1))_0x3c6aa9[_0x40ea08(0x371)](_0x3c6aa9[_0x40ea08(0x23f)],_0x3c6aa9[_0x40ea08(0x28c)])?_0x2c56f4[_0x40ea08(0x1bc)][_0x40ea08(0x1bb)](_0x1ae320=>{const _0x2ef004=_0x40ea08,_0x33e38c=_0x2ef004(0x1ed)[_0x2ef004(0x23c)]('|');let _0x594a8a=0x0;while(!![]){switch(_0x33e38c[_0x594a8a++]){case'0':_0x1ae320[_0x2ef004(0x1c3)]=_0x42fc8a[_0x2ef004(0x1ec)](_0x3c6aa9[_0x2ef004(0x1d9)](_0x1ae320[_0x2ef004(0x1c3)],_0x555e3e),_0x3fd33c);continue;case'1':_0x1ae320[_0x2ef004(0x287)]=_0x151ce4['round'](_0x3c6aa9[_0x2ef004(0x1d9)](_0x1ae320[_0x2ef004(0x287)],_0x13d949),_0x4fbb3c);continue;case'2':_0x1ae320[_0x2ef004(0x229)]=_0xb3918c[_0x2ef004(0x1ec)](_0x3c6aa9[_0x2ef004(0x335)](_0x1ae320['gia_ban_buon_ct'],_0xb41d62),_0x385cca);continue;case'3':_0x1ae320[_0x2ef004(0x20c)]=_0x172abd;continue;case'4':_0x1ae320[_0x2ef004(0x3a0)]=_0x3e3741[_0x2ef004(0x1ec)](_0x3c6aa9[_0x2ef004(0x335)](_0x1ae320[_0x2ef004(0x3a0)],_0x47393f),_0x518cc7);continue;case'5':_0x1ae320[_0x2ef004(0x311)]=_0x507188['ma_dvt_sd'];continue;case'6':_0x1ae320[_0x2ef004(0x31c)]=_0x47c050[_0x2ef004(0x1ec)](_0x3c6aa9[_0x2ef004(0x1b0)](_0x1ae320[_0x2ef004(0x31c)],_0x478087),_0x9826ce);continue;case'7':_0x1ae320[_0x2ef004(0x317)]=_0x210b13[_0x2ef004(0x1ec)](_0x3c6aa9[_0x2ef004(0x2ab)](_0x1ae320[_0x2ef004(0x317)],_0x505750),_0x496b2d);continue;}break;}}):_0x43ce77=_0x12eed6[0x0]['ck'][_0x40ea08(0x3ab)];else{if(!_0x12eed6[_0x40ea08(0x20e)](_0x2ad467=>_0x2ad467[_0x40ea08(0x38e)])){if(_0x3c6aa9[_0x40ea08(0x1b6)]!==_0x3c6aa9['nfoco'])return _0x3c6aa9[_0x40ea08(0x2be)](_0x5429a0[_0x40ea08(0x224)],0x1);else _0x43ce77=_0x12eed6[_0x40ea08(0x25e)]((_0x105644,_0x4d1bcc)=>(_0x105644[_0x40ea08(0x24a)]||0x0)-(_0x4d1bcc[_0x40ea08(0x24a)]||0x0))[0x0]['ck'][_0x40ea08(0x3ab)];}else{_0x12eed6=_0x12eed6['map'](_0x276be0=>{const _0x42ca80=_0x40ea08,_0x17c694={'UzQdM':function(_0x11b365,_0x241b8b){const _0x34a9e4=_0x4e0d;return _0x3c6aa9[_0x34a9e4(0x1d9)](_0x11b365,_0x241b8b);},'zjCMj':function(_0x320125,_0x3d8ba7){const _0x480bd7=_0x4e0d;return _0x3c6aa9[_0x480bd7(0x3a2)](_0x320125,_0x3d8ba7);}};if(_0x3c6aa9['maWXM'](_0x3c6aa9[_0x42ca80(0x1ef)],_0x42ca80(0x3b9)))_0x16cb1f[_0x42ca80(0x1f6)]=_0x17c694[_0x42ca80(0x3ca)](_0x17c694[_0x42ca80(0x2c7)](_0x3409a['tien_ck'],_0x11c7b8[_0x42ca80(0x298)]['gia_ban_le_ct']),0x64);else return _0x276be0[_0x42ca80(0x38e)]&&(_0x276be0['ma_nhom']=_0x276be0[_0x42ca80(0x38e)],_0x276be0[_0x42ca80(0x38e)]='',_0x276be0[_0x42ca80(0x1d0)]=''),_0x276be0;});const _0x5e475f=[...new Set(_0x12eed6[_0x40ea08(0x300)](_0x16c6ce=>_0x16c6ce[_0x40ea08(0x1a4)]||''))][_0x40ea08(0x300)](_0x2aeba5=>{const _0x36140a=_0x40ea08,_0x48391b={'kEMKu':_0x36140a(0x301)};if(_0x3c6aa9['PAnBl'](_0x36140a(0x349),_0x3c6aa9[_0x36140a(0x266)]))_0x376edf[_0x36140a(0x30a)](_0x48391b['kEMKu'],_0x2c475e);else{const _0x24fa13=_0x12eed6[_0x36140a(0x220)](_0x590e41=>(_0x590e41[_0x36140a(0x1a4)]||'')==_0x2aeba5)[_0x36140a(0x300)](_0x2e3d78=>_0x2e3d78['ck']);return{'ma_nhom':_0x2aeba5,'cks':_0x24fa13};}});_0x43ce77=await _0x3c6aa9[_0x40ea08(0x256)](calcDefaultPromotion,_0x543221,_0x5e475f);}}return _0x43ce77;};module[_0x1783bd(0x320)]=async(_0x1d5f73,_0x19a636,_0x4854d8={})=>{const _0x1d5129=_0x1783bd,_0x85a322={'dKGUV':function(_0x47dbce,_0x4bd283){return _0x47dbce/_0x4bd283;},'CmVrp':function(_0xb2d117,_0x1d5365){return _0xb2d117(_0x1d5365);},'SSknx':function(_0xbb30c3,_0xc75a2f){return _0xbb30c3!==_0xc75a2f;},'Muwju':_0x1d5129(0x289),'mWztm':function(_0x9e53e9,_0x2d9228){return _0x9e53e9/_0x2d9228;},'fRsiB':function(_0x250bab,_0xc1b7dc){return _0x250bab*_0xc1b7dc;},'Alscr':function(_0x199f29,_0x294cd8){return _0x199f29*_0x294cd8;},'mKBZO':function(_0x406c56,_0x5515cc){return _0x406c56/_0x5515cc;},'fysAW':function(_0x2b055c,_0x5e82fa){return _0x2b055c*_0x5e82fa;},'TdRCT':_0x1d5129(0x33b),'cbGJs':function(_0xf74a13,_0xe121a1,_0x3a9040){return _0xf74a13(_0xe121a1,_0x3a9040);},'dPnJq':_0x1d5129(0x3ae),'VDyZc':'hToEe','klscE':function(_0x39225c,_0x36e6b3){return _0x39225c!=_0x36e6b3;},'WLsZi':function(_0x1e700a,_0x45eb42){return _0x1e700a==_0x45eb42;},'Nsyzn':function(_0x5002fe,_0x2ff0d8){return _0x5002fe-_0x2ff0d8;},'DQwov':function(_0x535871,_0x22d49b){return _0x535871===_0x22d49b;},'PnvPa':function(_0x2a3302,_0x228c3d){return _0x2a3302==_0x228c3d;},'GOpwV':function(_0x80c273,_0x4cb4bf){return _0x80c273==_0x4cb4bf;},'Tlfae':function(_0x352140,_0x195611){return _0x352140==_0x195611;},'oyAIS':function(_0x51c45f,_0x506072){return _0x51c45f!==_0x506072;},'EOGRe':_0x1d5129(0x1c4),'dIgFO':_0x1d5129(0x36c),'TvSFU':function(_0x54c9f5,_0x1946c6){return _0x54c9f5(_0x1946c6);},'WJGEt':_0x1d5129(0x384),'eCTHJ':'WIHsi','MUbzR':_0x1d5129(0x275),'MTysn':_0x1d5129(0x1b1),'HgRQh':function(_0x342865,_0xbcc27,_0x98da08){return _0x342865(_0xbcc27,_0x98da08);},'oPeNG':function(_0x553481,_0x5424f9){return _0x553481==_0x5424f9;},'HUWQp':function(_0x224df7,_0x395439,_0x117f05){return _0x224df7(_0x395439,_0x117f05);},'IWvPg':function(_0x942126,_0x29f20c){return _0x942126(_0x29f20c);},'JgiaZ':function(_0x475f89,_0x5a8000){return _0x475f89==_0x5a8000;},'VGICw':function(_0x6209f7,_0x1afe96){return _0x6209f7==_0x1afe96;},'XzTFi':_0x1d5129(0x24c),'CQcyh':_0x1d5129(0x1e8),'mmNUr':'MZPxr','UIhqW':function(_0x107abf,_0x4b4574){return _0x107abf!=_0x4b4574;},'WOGoZ':function(_0x17f07f,_0xef677d){return _0x17f07f===_0xef677d;},'ssPaA':function(_0x4e57e6,_0x196dc4,_0x56c6fe){return _0x4e57e6(_0x196dc4,_0x56c6fe);},'gmMBj':function(_0x42b9bf,_0x2949aa){return _0x42b9bf!==_0x2949aa;},'ySDjS':_0x1d5129(0x1a5),'WLtvQ':function(_0x17abde,_0x27bd9d){return _0x17abde*_0x27bd9d;},'UyTWV':function(_0x3f19ff,_0x2bc6dc){return _0x3f19ff/_0x2bc6dc;},'OWMNp':function(_0x5ef4fa,_0x3392c7){return _0x5ef4fa*_0x3392c7;},'XxHGb':function(_0x1378d4,_0x412039){return _0x1378d4*_0x412039;},'tPyCz':function(_0x43f1f3,_0x7b97c3){return _0x43f1f3/_0x7b97c3;},'BtAEv':'vznhD','IHRqQ':_0x1d5129(0x2b5),'EsdbC':function(_0x3385ff,_0x5b8e3e){return _0x3385ff*_0x5b8e3e;},'cghXe':function(_0x26c10a,_0x5146a0){return _0x26c10a*_0x5146a0;},'eMNaZ':function(_0x5b11da,_0x4fb77b){return _0x5b11da*_0x4fb77b;},'RQfbR':function(_0x3ddf34,_0x1e7db7){return _0x3ddf34*_0x1e7db7;},'ZxhXe':function(_0x3a9cc5,_0x102315){return _0x3a9cc5*_0x102315;},'pNkyw':function(_0xa4d41c,_0x4ea8a0){return _0xa4d41c==_0x4ea8a0;},'Bupll':function(_0x170f29,_0xcd65cc){return _0x170f29==_0xcd65cc;},'bKBJB':function(_0x20a049,_0x449f6d){return _0x20a049==_0x449f6d;},'ASUwJ':_0x1d5129(0x25c),'iyhUR':_0x1d5129(0x223),'RJXMk':_0x1d5129(0x281),'LDstk':function(_0x2a8762,_0xa433a5){return _0x2a8762*_0xa433a5;},'EJEhn':function(_0x52250d,_0x382f73){return _0x52250d/_0x382f73;},'azLyK':function(_0x43c10a,_0x2eed93){return _0x43c10a-_0x2eed93;},'Eebkg':_0x1d5129(0x2e5),'tfTxH':_0x1d5129(0x1f5),'jthws':function(_0x1d476d,_0x143da9,_0xb8f493){return _0x1d476d(_0x143da9,_0xb8f493);},'jaThG':_0x1d5129(0x3a4),'bTGLS':_0x1d5129(0x23e),'NOJRG':_0x1d5129(0x25a),'jiUdD':'bwbVW','iWZGk':'3|0|4|1|2','vxtRz':function(_0x533aaf,_0x111728){return _0x533aaf+_0x111728;},'fsnvQ':function(_0x458b5d,_0x15b3ac){return _0x458b5d/_0x15b3ac;},'JGPtK':function(_0x36b838,_0x3de778){return _0x36b838*_0x3de778;},'AoTBt':function(_0x1d33e3,_0x766869){return _0x1d33e3==_0x766869;},'lucuF':function(_0x6b4138,_0x860b01){return _0x6b4138==_0x860b01;},'BKJNs':_0x1d5129(0x1df),'suLmS':_0x1d5129(0x35c),'bvUeL':function(_0xdce204,_0x57e158){return _0xdce204>_0x57e158;},'LmJxf':function(_0x384004,_0xb62d8b){return _0x384004>=_0xb62d8b;},'csXwW':function(_0x2770ed,_0x1c780e){return _0x2770ed>_0x1c780e;},'VfRPs':function(_0x4f11c9,_0x26ad67){return _0x4f11c9<=_0x26ad67;},'DIlmu':function(_0x33484c,_0x23658a){return _0x33484c>_0x23658a;},'KMQjV':function(_0x15432f,_0x54dfcd){return _0x15432f!==_0x54dfcd;},'PyfGH':_0x1d5129(0x18c),'ZrtJs':_0x1d5129(0x2e4),'bWMOL':function(_0x1eebfe,_0x1ce5ed){return _0x1eebfe(_0x1ce5ed);},'TTnLf':function(_0x4258ad,_0x5aad1e){return _0x4258ad/_0x5aad1e;},'esdTo':_0x1d5129(0x1bd),'SwIIH':function(_0xd72170,_0x361c26){return _0xd72170*_0x361c26;},'wiOhm':_0x1d5129(0x219),'UwgpT':_0x1d5129(0x244),'NJJdR':function(_0x1f84f7,_0xce1e6a){return _0x1f84f7==_0xce1e6a;},'nRumg':_0x1d5129(0x355),'kMNvN':_0x1d5129(0x1eb),'AicqV':function(_0x7b2456,_0x526d3b){return _0x7b2456!==_0x526d3b;},'Hrslk':_0x1d5129(0x391),'YwDTr':_0x1d5129(0x319),'LadvP':function(_0x1f7105,_0x2c02de){return _0x1f7105>_0x2c02de;},'HcWdW':_0x1d5129(0x3ac),'cTegQ':_0x1d5129(0x294),'tsooY':function(_0x30d6f1,_0x5daf25){return _0x30d6f1>_0x5daf25;},'Hwnok':function(_0x2eb742,_0x3497eb){return _0x2eb742-_0x3497eb;},'qwMbo':_0x1d5129(0x334),'mMdAn':'LIiTP','qiWxB':_0x1d5129(0x390),'nYYgH':'ma_nt','KJOrw':_0x1d5129(0x3c8),'lrPHx':_0x1d5129(0x20a),'lgudo':_0x1d5129(0x2cf),'Lhoek':_0x1d5129(0x1c7),'XgtbD':'fznfQ','fJyjq':function(_0x12eafa,_0x41deb5){return _0x12eafa!==_0x41deb5;},'RFfib':_0x1d5129(0x1fa),'SmzwZ':function(_0x361184,_0x5d0007){return _0x361184+_0x5d0007;},'TpRjc':function(_0x4ed7cf,_0x1751ab){return _0x4ed7cf*_0x1751ab;},'yzlDG':function(_0x567c7e,_0x34daca){return _0x567c7e!==_0x34daca;},'TBoVt':_0x1d5129(0x1a9),'kHsur':_0x1d5129(0x23b),'JxSih':_0x1d5129(0x31f),'olZYK':function(_0x123feb,_0x20d849){return _0x123feb+_0x20d849;},'TkCzi':function(_0x349674,_0x5af273){return _0x349674/_0x5af273;},'IMSkS':function(_0x6bea99,_0x5a7dd5){return _0x6bea99+_0x5a7dd5;},'aqyQE':function(_0x1b4a23,_0x26f526){return _0x1b4a23/_0x26f526;},'WDHix':function(_0x4c003f,_0x4ef186){return _0x4c003f+_0x4ef186;},'wSxZb':function(_0x1e6e34,_0x4eed81){return _0x1e6e34!==_0x4eed81;},'owPkV':_0x1d5129(0x22c),'mCmGO':_0x1d5129(0x194),'unRdV':_0x1d5129(0x3ba),'Bfssh':function(_0x4e053b,_0x238f2f){return _0x4e053b===_0x238f2f;},'XTkeu':_0x1d5129(0x25b),'PpUBr':function(_0x4b27e1,_0x3bdd05){return _0x4b27e1>_0x3bdd05;},'XhvVU':function(_0x45766e,_0x2192f2){return _0x45766e!=_0x2192f2;},'vWPEg':function(_0x4f0b7c,_0xc8132d){return _0x4f0b7c===_0xc8132d;},'lXysm':function(_0x133624,_0x4d5566){return _0x133624===_0x4d5566;},'kJXkt':_0x1d5129(0x1de),'MHJif':function(_0x34419e,_0x3c19b4){return _0x34419e<_0x3c19b4;},'eENVr':function(_0x38070e,_0x509cc9){return _0x38070e!==_0x509cc9;},'kTVCD':_0x1d5129(0x365),'ffgYE':_0x1d5129(0x34d),'lusEJ':_0x1d5129(0x2ee),'zNqQT':_0x1d5129(0x273),'VStIb':_0x1d5129(0x197),'JvQUR':_0x1d5129(0x360),'eqPbb':function(_0x4e3f70,_0x36656a){return _0x4e3f70>_0x36656a;},'eHDsc':function(_0x182055,_0x19f8b5,_0x5673b2){return _0x182055(_0x19f8b5,_0x5673b2);},'SKcQI':_0x1d5129(0x2ba),'pLGWz':function(_0x20cbb7,_0x7f6b8b){return _0x20cbb7/_0x7f6b8b;},'mIqsQ':function(_0x17c396,_0x16bddb){return _0x17c396(_0x16bddb);},'GuCPx':function(_0x5b2d46,_0x8e777b){return _0x5b2d46===_0x8e777b;},'USewz':_0x1d5129(0x2b4),'EGSEK':_0x1d5129(0x2da),'GaQEY':_0x1d5129(0x240),'GZYSN':function(_0x45b900,_0x1b163b){return _0x45b900==_0x1b163b;},'fOBSc':'string','jubho':function(_0x3214b2,_0x54e790){return _0x3214b2==_0x54e790;},'QcbWl':_0x1d5129(0x28d),'OdADp':'NIWwn','GXUAP':'YrkZx','WUpIy':_0x1d5129(0x1ce),'bYveq':_0x1d5129(0x2c2),'PgLWL':'group','AgpRT':_0x1d5129(0x1b5),'mqZnf':'hKnnc','wLQfj':_0x1d5129(0x27f),'XBnQI':'FmGhn','fGXYl':'OnEPh','paAZy':function(_0x323988,_0x1a84d9){return _0x323988===_0x1a84d9;},'xgrni':_0x1d5129(0x30b),'UhyBW':_0x1d5129(0x301),'oSMXd':_0x1d5129(0x29b),'YqwHv':'1|2|0|3|4','vtoEP':_0x1d5129(0x3b7),'EDFkU':function(_0xb309fb,_0x46574f){return _0xb309fb!==_0x46574f;},'QQjHa':_0x1d5129(0x1e5),'HVsUY':function(_0x1986b9,_0x3f8241){return _0x1986b9!==_0x3f8241;},'bXNoh':_0x1d5129(0x225),'yBpMg':_0x1d5129(0x381),'ZnelU':_0x1d5129(0x35d),'GVisZ':_0x1d5129(0x299)};if(!_0x1d5f73[_0x1d5129(0x34d)]&&_0x1d5f73['vt'])_0x1d5f73[_0x1d5129(0x34d)]=_0x1d5f73['vt'][_0x1d5129(0x34d)];_0x1d5f73['so_luong']=_0x1d5f73[_0x1d5129(0x28e)]||_0x1d5f73['sl_xuat']||0x1,_0x1d5f73[_0x1d5129(0x36d)]=_0x1d5f73['t_so_luong']||_0x1d5f73[_0x1d5129(0x214)]||_0x1d5f73[_0x1d5129(0x354)]||_0x1d5f73[_0x1d5129(0x28e)],_0x1d5f73[_0x1d5129(0x3c6)]=_0x1d5f73[_0x1d5129(0x3c6)]||_0x1d5f73[_0x1d5129(0x1e2)]||_0x1d5f73[_0x1d5129(0x2e2)]||_0x1d5f73[_0x1d5129(0x33e)]||0x0,_0x1d5f73[_0x1d5129(0x3c3)]=_0x1d5f73['t_tien_ntt']||0x0;let _0x3b732e=0x1;if(_0x1d5f73[_0x1d5129(0x1ab)]){if(_0x85a322[_0x1d5129(0x257)](_0x1d5129(0x2ba),_0x85a322[_0x1d5129(0x2a6)]))_0x51990e[_0x1d5129(0x216)]=_0x3784be;else{let _0x24be86=await global[_0x1d5129(0x25d)](_0x1d5129(0x2d7))['findOne']({'id_app':_0x1d5f73[_0x1d5129(0x237)],'ma_vt':_0x1d5f73[_0x1d5129(0x34d)],'ma_dvt':_0x1d5f73[_0x1d5129(0x1ab)]})[_0x1d5129(0x3c5)]();_0x24be86&&(_0x3b732e=_0x24be86[_0x1d5129(0x321)]||0x1,_0x24be86['mau']&&_0x24be86['tu']&&(_0x3b732e=_0x85a322[_0x1d5129(0x1cc)](_0x24be86['tu'],_0x24be86[_0x1d5129(0x339)])));}}!_0x1d5f73[_0x1d5129(0x34d)]&&_0x1d5f73['vt']&&_0x1d5f73['vt'][_0x1d5129(0x2cb)]&&(_0x1d5f73['vt']=await dmvt['findOne']({'_id':_0x1d5f73['vt']['_id']},{'ma_vt':0x1,'ma_nvt':0x1,'ma_nvt2':0x1,'ma_nvt3':0x1,'ma_nvt4':0x1,'ma_danh_muc':0x1,'gia_ban_le0':0x1,'gia_ban_buon0':0x1,'gia_ban_le':0x1,'gia_ban_buon':0x1,'ty_le_ck0':0x1,'tien_ck0':0x1,'ma_nt':0x1,'gia_ban_chua_thue':0x1,'ma_thue':0x1,'ma_nt0':0x1})['lean'](),_0x1d5f73['vt']&&(_0x1d5f73['vt']['is_full']=!![],_0x1d5f73[_0x1d5129(0x34d)]=_0x1d5f73['vt']['ma_vt']));if(!_0x1d5f73||!_0x1d5f73[_0x1d5129(0x34d)]||!_0x1d5f73[_0x1d5129(0x237)]){_0x85a322[_0x1d5129(0x37b)](_0x19a636,_0x1d5129(0x361)+JSON[_0x1d5129(0x199)](_0x1d5f73));return;}let _0x8e3041=_0x1d5f73['vt'];if(!_0x8e3041||!_0x8e3041[_0x1d5129(0x268)]&&(_0x85a322['lXysm'](_0x8e3041[_0x1d5129(0x1c3)],undefined)||_0x85a322[_0x1d5129(0x1fe)](_0x8e3041[_0x1d5129(0x331)],undefined)||_0x85a322[_0x1d5129(0x1cb)](_0x8e3041['ty_le_ck0'],undefined)||_0x8e3041[_0x1d5129(0x1d1)]===undefined||_0x8e3041[_0x1d5129(0x198)]===undefined||_0x85a322[_0x1d5129(0x28a)](_0x8e3041[_0x1d5129(0x2cf)],undefined))){if(_0x85a322[_0x1d5129(0x1c0)]!==_0x85a322[_0x1d5129(0x278)]){_0x8e3041=await dmvt[_0x1d5129(0x238)]({'ma_vt':_0x1d5f73[_0x1d5129(0x34d)],'id_app':_0x1d5f73['id_app']},{'ma_vt':0x1,'ma_nvt':0x1,'ma_nvt2':0x1,'ma_nvt3':0x1,'ma_nvt4':0x1,'ma_danh_muc':0x1,'gia_ban_le0':0x1,'gia_ban_buon0':0x1,'gia_ban_le':0x1,'gia_ban_buon':0x1,'ty_le_ck0':0x1,'tien_ck0':0x1,'ma_nt':0x1,'gia_ban_chua_thue':0x1,'ma_thue':0x1,'ma_nt0':0x1})[_0x1d5129(0x3c5)]();if(!_0x8e3041)return _0x19a636(_0x85a322[_0x1d5129(0x18d)](_0x85a322[_0x1d5129(0x338)],_0x1d5f73['ma_vt']));}else _0x585012[_0x1d5129(0x26d)]=[];}if(!_0x8e3041[_0x1d5129(0x3be)])_0x8e3041['ma_nvt2']=[];if(_0x85a322[_0x1d5129(0x2ff)](typeof _0x8e3041[_0x1d5129(0x3be)],_0x85a322['fOBSc']))_0x8e3041[_0x1d5129(0x3be)]=[_0x8e3041[_0x1d5129(0x3be)]];if(!_0x8e3041[_0x1d5129(0x285)])_0x8e3041[_0x1d5129(0x285)]=[];if(_0x85a322[_0x1d5129(0x32d)](typeof _0x8e3041[_0x1d5129(0x285)],_0x85a322['fOBSc']))_0x8e3041[_0x1d5129(0x285)]=[_0x8e3041[_0x1d5129(0x285)]];if(!_0x8e3041[_0x1d5129(0x386)])_0x8e3041[_0x1d5129(0x386)]=[];if(_0x85a322['jubho'](typeof _0x8e3041['ma_nvt4'],_0x85a322[_0x1d5129(0x265)]))_0x8e3041[_0x1d5129(0x386)]=[_0x8e3041[_0x1d5129(0x386)]];let _0x88df7f;if(_0x1d5f73[_0x1d5129(0x3b5)]){const _0x581810={'id_app':_0x8e3041['id_app_vt']||_0x1d5f73[_0x1d5129(0x237)],'ma_vt':_0x8e3041['ma_vt'],'status':!![]};_0x581810[_0x1d5129(0x203)]=_0x1d5f73['ma_tt1'],_0x581810[_0x1d5129(0x21a)]='1',_0x88df7f=await global['getModel']('dmtt')[_0x1d5129(0x238)](_0x581810)[_0x1d5129(0x3c5)](),_0x88df7f&&(_0x8e3041[_0x1d5129(0x331)]=_0x88df7f['gia_ban_le']||_0x8e3041[_0x1d5129(0x331)]||_0x8e3041[_0x1d5129(0x1c3)]||0x0,_0x8e3041[_0x1d5129(0x33f)]=_0x88df7f[_0x1d5129(0x317)]||_0x8e3041[_0x1d5129(0x33f)]||_0x8e3041[_0x1d5129(0x317)]||0x0);}else{if(_0x85a322[_0x1d5129(0x29c)](_0x85a322[_0x1d5129(0x356)],_0x85a322['OdADp'])){if(_0x1d5f73['ma_tt2']){if(_0x85a322[_0x1d5129(0x2d1)](_0x85a322[_0x1d5129(0x35f)],_0x85a322[_0x1d5129(0x35f)])){const _0x2f472f=_0x2a150[_0x1d5129(0x220)](_0x4ddb82=>(_0x4ddb82[_0x1d5129(0x1a4)]||'')==_0x42ab87)[_0x1d5129(0x300)](_0x8ed963=>_0x8ed963['ck']);return{'ma_nhom':_0x237b89,'cks':_0x2f472f};}else{const _0x18b879={'id_app':_0x8e3041['id_app_vt']||_0x1d5f73[_0x1d5129(0x237)],'ma_vt':_0x8e3041['ma_vt'],'status':!![]};_0x18b879[_0x1d5129(0x203)]=_0x1d5f73[_0x1d5129(0x30e)],_0x18b879[_0x1d5129(0x21a)]='2';const _0x1b2fcc=await global['getModel']('dmtt')[_0x1d5129(0x238)](_0x18b879)[_0x1d5129(0x3c5)]();_0x1b2fcc&&(_0x8e3041[_0x1d5129(0x331)]=_0x1b2fcc[_0x1d5129(0x1c3)]||_0x8e3041[_0x1d5129(0x331)]||_0x8e3041[_0x1d5129(0x1c3)]||0x0,_0x8e3041['gia_ban_buon0']=_0x1b2fcc['gia_ban_buon']||_0x8e3041[_0x1d5129(0x33f)]||_0x8e3041[_0x1d5129(0x317)]||0x0);}}else{if(_0x1d5f73['ma_tt3']){const _0x4d8401={'id_app':_0x8e3041[_0x1d5129(0x39a)]||_0x1d5f73[_0x1d5129(0x237)],'ma_vt':_0x8e3041[_0x1d5129(0x34d)],'status':!![]};_0x4d8401[_0x1d5129(0x203)]=_0x1d5f73[_0x1d5129(0x17a)],_0x4d8401['loai_tt']='3';const _0x18ed68=await global[_0x1d5129(0x25d)](_0x1d5129(0x273))['findOne'](_0x4d8401)[_0x1d5129(0x3c5)]();_0x18ed68&&(_0x8e3041[_0x1d5129(0x331)]=_0x18ed68['gia_ban_le']||_0x8e3041[_0x1d5129(0x331)]||_0x8e3041['gia_ban_le']||0x0,_0x8e3041[_0x1d5129(0x33f)]=_0x18ed68['gia_ban_buon']||_0x8e3041['gia_ban_buon0']||_0x8e3041[_0x1d5129(0x317)]||0x0);}}}else{let _0x3ed879={'sl_tu':_0x2fb444[_0x1d5129(0x224)],'ty_le_ck':_0xe1ce49['ty_le_ck']||0x0,'tien_ck':_0xfdc9ca[_0x1d5129(0x255)],'gt_hd_tu':_0x20c085[_0x1d5129(0x39b)],'gt_hd_den':_0x1545cd[_0x1d5129(0x2a2)],'sl_ap_dung':_0x309d47[_0x1d5129(0x1af)],'so_tien_max':_0x1b14d5[_0x1d5129(0x228)],'id_cs':_0x460a25[_0x1d5129(0x2cb)]};_0x2fa275['extend'](_0x5df8fc[_0x1d5129(0x298)],_0x3ed879),_0x429b15[_0x1d5129(0x182)]=_0xb50ba2[_0x1d5129(0x255)];if(!_0x20cb37['tien_ck_tmp'])_0x3f059a['tien_ck_tmp']=_0x3556c6[_0x1d5129(0x1ec)](_0x85a322[_0x1d5129(0x1a7)](_0x3a556e[_0x1d5129(0x298)][_0x1d5129(0x31c)]*_0x47120a[_0x1d5129(0x1f6)],0x64),0x2);_0x2bf03c[_0x1d5129(0x298)][_0x1d5129(0x2b9)]=_0x3da38d[_0x1d5129(0x206)](0x0,_0x437e2c['price'][_0x1d5129(0x1c3)]-_0x5959fd[_0x1d5129(0x182)]);}}if(_0x88df7f){if(_0x85a322[_0x1d5129(0x2b7)](_0x1d5129(0x1ce),_0x85a322[_0x1d5129(0x181)]))return _0x140e95[_0x1d5129(0x38e)]&&(_0x125f64['ma_nhom']=_0x39ee32[_0x1d5129(0x38e)],_0x421f6e[_0x1d5129(0x38e)]='',_0x27059f[_0x1d5129(0x1d0)]=''),_0x4368c3;else{_0x88df7f['nh_tt']?_0x85a322[_0x1d5129(0x29c)](_0x85a322[_0x1d5129(0x3cb)],_0x85a322['bYveq'])?(_0x128976['gia_ban_le0_qd']=_0xdc0e91[_0x1d5129(0x331)]||0x0,_0x2b0fde[_0x1d5129(0x326)]=_0x542821[_0x1d5129(0x33f)]||0x0):_0x1d5f73['nh_tt_me']=await global[_0x1d5129(0x25d)](_0x85a322[_0x1d5129(0x3b3)])['getAllMotherGroup'](_0x1d5f73['id_app'],_0x88df7f[_0x1d5129(0x3b8)]):_0x1d5f73[_0x1d5129(0x1f3)]=[];_0x88df7f[_0x1d5129(0x376)]?_0x1d5129(0x1b5)!==_0x85a322['AgpRT']?_0x49c185['nh_kh3_me']=[]:_0x1d5f73[_0x1d5129(0x26d)]=await global[_0x1d5129(0x25d)](_0x85a322[_0x1d5129(0x3b3)])[_0x1d5129(0x307)](_0x1d5f73[_0x1d5129(0x237)],_0x88df7f[_0x1d5129(0x376)]):_0x85a322[_0x1d5129(0x308)]!==_0x85a322[_0x1d5129(0x308)]?_0x89c181[_0x1d5129(0x2c9)]=[]:_0x1d5f73[_0x1d5129(0x26d)]=[];_0x88df7f[_0x1d5129(0x20f)]?_0x1d5f73[_0x1d5129(0x2f3)]=await global[_0x1d5129(0x25d)](_0x85a322[_0x1d5129(0x3b3)])[_0x1d5129(0x307)](_0x1d5f73[_0x1d5129(0x237)],_0x88df7f[_0x1d5129(0x20f)]):_0x85a322[_0x1d5129(0x1fe)](_0x85a322[_0x1d5129(0x215)],_0x85a322[_0x1d5129(0x37d)])?_0x85a322[_0x1d5129(0x303)](_0x10b9c7,{'message':_0x48ba9d[_0x1d5129(0x364)]}):_0x1d5f73[_0x1d5129(0x2f3)]=[];_0x88df7f['nh_tt4']?_0x1d5f73[_0x1d5129(0x2f5)]=await global[_0x1d5129(0x25d)](_0x1d5129(0x39f))[_0x1d5129(0x307)](_0x1d5f73[_0x1d5129(0x237)],_0x88df7f[_0x1d5129(0x2f0)]):_0x1d5f73['nh_tt4_me']=[];if(_0x88df7f[_0x1d5129(0x33c)]){if(_0x85a322[_0x1d5129(0x31d)]===_0x1d5129(0x204))_0x1d5f73[_0x1d5129(0x2c9)]=await global[_0x1d5129(0x25d)](_0x1d5129(0x39f))[_0x1d5129(0x307)](_0x1d5f73[_0x1d5129(0x237)],_0x88df7f[_0x1d5129(0x33c)]);else{_0x3e70b0(_0x1d5129(0x361)+_0x1f46d4[_0x1d5129(0x199)](_0x175a0f));return;}}else _0x85a322[_0x1d5129(0x318)](_0x85a322[_0x1d5129(0x279)],_0x85a322[_0x1d5129(0x279)])?_0x1d5f73[_0x1d5129(0x2c9)]=[]:_0x58590b['ck']={'t_sl_km':0x0,'promotions':[],'stt_uu_tien':_0x5385ee[_0x1d5129(0x24a)]};}}let _0x228c67;if(_0x1d5f73[_0x1d5129(0x363)]&&!_0x1d5f73[_0x1d5129(0x19b)])try{_0x228c67=await customer[_0x1d5129(0x238)]({'id_app':_0x1d5f73[_0x1d5129(0x237)],'of_user':_0x1d5f73[_0x1d5129(0x363)][_0x1d5129(0x2a3)]},{'ma_kh':0x1,'nh_kh':0x1,'nh_kh2':0x1,'nh_kh3':0x1,'nh_kh4':0x1,'nh_kh5':0x1})['lean']();if(_0x228c67){const _0x185c08=_0x1d5129(0x29e)[_0x1d5129(0x23c)]('|');let _0x5cecf0=0x0;while(!![]){switch(_0x185c08[_0x5cecf0++]){case'0':_0x1d5f73[_0x1d5129(0x1c1)]=_0x228c67[_0x1d5129(0x1c1)];continue;case'1':_0x1d5f73[_0x1d5129(0x3a8)]=_0x228c67[_0x1d5129(0x3a8)];continue;case'2':_0x1d5f73[_0x1d5129(0x19b)]=_0x228c67[_0x1d5129(0x19b)];continue;case'3':_0x1d5f73[_0x1d5129(0x39d)]=_0x228c67[_0x1d5129(0x39d)];continue;case'4':_0x1d5f73['nh_kh3']=_0x228c67['nh_kh3'];continue;case'5':_0x1d5f73['nh_kh4']=_0x228c67[_0x1d5129(0x2eb)];continue;}break;}}}catch(_0x11b1ef){console[_0x1d5129(0x30a)](_0x85a322[_0x1d5129(0x1ac)],_0x11b1ef);}let _0x1bb3f8;if(_0x1d5f73['ma_kh']){_0x1bb3f8=await so1['countDocuments']({'id_app':_0x1d5f73[_0x1d5129(0x237)],'ma_kh':_0x1d5f73[_0x1d5129(0x19b)],'trang_thai':{'$in':['4','5']}}),_0x1bb3f8+=await pbl[_0x1d5129(0x1ae)]({'id_app':_0x1d5f73[_0x1d5129(0x237)],'ma_kh':_0x1d5f73[_0x1d5129(0x19b)],'trang_thai':{'$in':['5','6']}});if(!_0x1bb3f8)_0x1bb3f8=0x0;_0x1bb3f8+=0x1;if(!_0x228c67){_0x228c67=await customer[_0x1d5129(0x238)]({'id_app':_0x1d5f73[_0x1d5129(0x237)],'ma_kh':_0x1d5f73[_0x1d5129(0x19b)]},{'nh_kh':0x1,'nh_kh2':0x1,'nh_kh3':0x1,'nh_kh4':0x1,'nh_kh5':0x1})['lean']();if(_0x228c67){if(_0x85a322['DQwov'](_0x85a322['oSMXd'],_0x1d5129(0x29b))){const _0x44f054=_0x85a322['YqwHv'][_0x1d5129(0x23c)]('|');let _0x1b350f=0x0;while(!![]){switch(_0x44f054[_0x1b350f++]){case'0':_0x1d5f73[_0x1d5129(0x236)]=_0x228c67[_0x1d5129(0x236)];continue;case'1':_0x1d5f73[_0x1d5129(0x39d)]=_0x228c67[_0x1d5129(0x39d)];continue;case'2':_0x1d5f73[_0x1d5129(0x1c1)]=_0x228c67['nh_kh2'];continue;case'3':_0x1d5f73[_0x1d5129(0x2eb)]=_0x228c67[_0x1d5129(0x2eb)];continue;case'4':_0x1d5f73['nh_kh5']=_0x228c67[_0x1d5129(0x3a8)];continue;}break;}}else _0x57b501[_0x1d5129(0x331)]=_0x489f0c[_0x1d5129(0x1c3)]||_0x172bbb[_0x1d5129(0x331)]||_0x59bdb8[_0x1d5129(0x1c3)]||0x0,_0x51416e[_0x1d5129(0x33f)]=_0xa93bdb['gia_ban_buon']||_0x2d153f['gia_ban_buon0']||_0x51d509[_0x1d5129(0x317)]||0x0;}}}else _0x1bb3f8=0x0;let _0x1e56fb={'ma_vt':_0x1d5f73[_0x1d5129(0x34d)],'id_app':_0x1d5f73[_0x1d5129(0x237)],'status':!![]};_0x1e56fb[_0x1d5129(0x3af)]=[],_0x1e56fb[_0x1d5129(0x19b)]={'$in':[null,'',_0x1d5f73[_0x1d5129(0x19b)]]};if(_0x228c67){if(_0x1d5129(0x17d)===_0x85a322['vtoEP']){if(_0x5cd02d&&_0x29d50d[_0x1d5129(0x3bc)]&&_0x16c725[_0x1d5129(0x3c8)]&&_0x85a322[_0x1d5129(0x1ff)](_0x476bf5['ma_nt'],_0x2341e5[_0x1d5129(0x3bc)])){const _0x4c82d0=_0x85a322['Muwju']['split']('|');let _0x16d892=0x0;while(!![]){switch(_0x4c82d0[_0x16d892++]){case'0':_0x3753f6[_0x1d5129(0x317)]=_0xd35017[_0x1d5129(0x1ec)](_0x85a322[_0x1d5129(0x283)](_0x85a322[_0x1d5129(0x2e0)](_0x34748d[_0x1d5129(0x317)]||0x0,_0x1e2566[_0x1d5129(0x3c8)]),_0x32e077[_0x1d5129(0x3c8)]),0x2);continue;case'1':_0x23caf7[_0x1d5129(0x326)]=_0x338f16[_0x1d5129(0x1ec)](_0x85a322[_0x1d5129(0x2e0)](_0x47e17f[_0x1d5129(0x33f)]||0x0,_0x3430db['ty_gia0'])/_0x4fcb73[_0x1d5129(0x3c8)],0x2);continue;case'2':_0x22816c[_0x1d5129(0x1c3)]=_0x4f2864['round'](_0x85a322[_0x1d5129(0x389)](_0x2697b9[_0x1d5129(0x1c3)],_0x1a9034[_0x1d5129(0x3c8)])/_0x34c9ff[_0x1d5129(0x3c8)],0x2);continue;case'3':_0x4d1857[_0x1d5129(0x3c8)]=_0x20294c[_0x1d5129(0x3c8)];continue;case'4':_0x2e9ef9['gia_ban_le0_qd']=_0x554a48['round'](_0x85a322[_0x1d5129(0x3a5)](_0x85a322[_0x1d5129(0x2bb)](_0x3acc80[_0x1d5129(0x331)]||0x0,_0x2d722d[_0x1d5129(0x373)]),_0x4506c7[_0x1d5129(0x3c8)]),0x2);continue;case'5':_0x50e29b[_0x1d5129(0x3bc)]=_0x506121['ma_nt'];continue;}break;}}else _0x4e722f[_0x1d5129(0x25f)]=_0x18ef61[_0x1d5129(0x331)]||0x0,_0x3e9161[_0x1d5129(0x326)]=_0x162248[_0x1d5129(0x33f)]||0x0;}else{_0x228c67[_0x1d5129(0x39d)]?_0x1d5f73['nh_kh_me']=await global['getModel']('group')[_0x1d5129(0x307)](_0x1d5f73[_0x1d5129(0x237)],_0x228c67[_0x1d5129(0x39d)]):_0x1d5f73[_0x1d5129(0x1e7)]=[];_0x228c67[_0x1d5129(0x1c1)]?_0x1d5f73['nh_kh2_me']=await global['getModel'](_0x85a322[_0x1d5129(0x3b3)])[_0x1d5129(0x307)](_0x1d5f73[_0x1d5129(0x237)],_0x228c67[_0x1d5129(0x1c1)]):_0x1d5f73[_0x1d5129(0x1fb)]=[];_0x228c67[_0x1d5129(0x236)]?_0x85a322[_0x1d5129(0x368)](_0x1d5129(0x296),_0x85a322[_0x1d5129(0x347)])?_0x1d5f73[_0x1d5129(0x1ee)]=await global['getModel'](_0x85a322[_0x1d5129(0x3b3)])[_0x1d5129(0x307)](_0x1d5f73[_0x1d5129(0x237)],_0x228c67[_0x1d5129(0x236)]):_0x3b7288[_0x1d5129(0x1bc)]=[_0x5124da[_0x1d5129(0x1bc)][0x0]]:_0x85a322[_0x1d5129(0x251)](_0x85a322[_0x1d5129(0x18f)],_0x85a322[_0x1d5129(0x18f)])?_0x2b1139({'message':_0x1a8570['message']}):_0x1d5f73['nh_kh3_me']=[];if(_0x228c67[_0x1d5129(0x2eb)])_0x1d5f73[_0x1d5129(0x1da)]=await global[_0x1d5129(0x25d)]('group')[_0x1d5129(0x307)](_0x1d5f73[_0x1d5129(0x237)],_0x228c67[_0x1d5129(0x2eb)]);else{if(_0x85a322['GuCPx'](_0x85a322['yBpMg'],_0x1d5129(0x362)))return{'ma_vt':_0x87305b['ma_vt'],'ma_tt':_0x35d7a7[_0x1d5129(0x3b5)],'loai_tt':'1'};else _0x1d5f73[_0x1d5129(0x1da)]=[];}if(_0x228c67['nh_kh5']){if(_0x85a322[_0x1d5129(0x1b3)](_0x85a322['ZnelU'],_0x85a322[_0x1d5129(0x221)]))_0x1d5f73[_0x1d5129(0x17f)]=await global[_0x1d5129(0x25d)](_0x85a322[_0x1d5129(0x3b3)])[_0x1d5129(0x307)](_0x1d5f73[_0x1d5129(0x237)],_0x228c67['nh_kh5']);else{const _0x4a4683=_0x85a322[_0x1d5129(0x227)][_0x1d5129(0x23c)]('|');let _0x2984f9=0x0;while(!![]){switch(_0x4a4683[_0x2984f9++]){case'0':_0x3ff941['nh_kh']=_0x1ea5a6['nh_kh'];continue;case'1':_0x4e7a45[_0x1d5129(0x1c1)]=_0x3ddd11[_0x1d5129(0x1c1)];continue;case'2':_0xa28c90[_0x1d5129(0x3a8)]=_0x345b56[_0x1d5129(0x3a8)];continue;case'3':_0x5ad5bd[_0x1d5129(0x236)]=_0xc12f05['nh_kh3'];continue;case'4':_0x455d74['nh_kh4']=_0x663d9e[_0x1d5129(0x2eb)];continue;}break;}}}else _0x85a322['GVisZ']===_0x85a322[_0x1d5129(0x195)]?_0x1d5f73[_0x1d5129(0x17f)]=[]:_0x1f96a3=_0x279d01[0x0]['ck'];}}_0x1e56fb[_0x1d5129(0x39d)]={'$in':[null,'',..._0x1d5f73[_0x1d5129(0x1e7)]||[]]},_0x1e56fb[_0x1d5129(0x1c1)]={'$in':[null,'',..._0x1d5f73['nh_kh2_me']||[]]},_0x1e56fb['nh_kh3']={'$in':[null,'',..._0x1d5f73['nh_kh3_me']||[]]},_0x1e56fb['nh_kh4']={'$in':[null,'',..._0x1d5f73[_0x1d5129(0x1da)]||[]]},_0x1e56fb[_0x1d5129(0x3a8)]={'$in':[null,'',..._0x1d5f73[_0x1d5129(0x17f)]||[]]},_0x1e56fb['ma_kho']={'$in':[null,'',_0x1d5f73[_0x1d5129(0x324)]]},_0x1e56fb[_0x1d5129(0x3b5)]={'$in':[null,'',_0x1d5f73[_0x1d5129(0x3b5)]]},_0x1e56fb[_0x1d5129(0x30e)]={'$in':[null,'',_0x1d5f73[_0x1d5129(0x30e)]]},_0x1e56fb[_0x1d5129(0x17a)]={'$in':[null,'',_0x1d5f73[_0x1d5129(0x17a)]]};let _0x22e6b4,_0x483f09,_0x2b3813,_0x3a08d1;!_0x1d5f73[_0x1d5129(0x385)]?_0x1d5f73[_0x1d5129(0x385)]=new Date():_0x1d5f73[_0x1d5129(0x385)]=new Date(_0x1d5f73[_0x1d5129(0x385)]);_0x2b3813=_0x3a08d1=_0x1d5f73[_0x1d5129(0x385)],_0x22e6b4={'$lte':_0x3a08d1},_0x483f09={'$gte':_0x2b3813},_0x1e56fb[_0x1d5129(0x31b)]=_0x22e6b4,_0x1e56fb[_0x1d5129(0x241)]=_0x483f09;let _0x9a381a={'stt_uu_tien':0x1};async[_0x1d5129(0x1c2)]({'giabans':_0xef5abc=>{const _0x306820=_0x1d5129;if(_0x1d5f73['get_price']==![])return _0x85a322['cbGJs'](_0xef5abc,null,[]);_0x85a322[_0x306820(0x303)](setImmediate,()=>{const _0x2d856b=_0x306820,_0x57c451={'EJVkZ':function(_0x29b4e0,_0x3ff436){const _0x3df7a5=_0x4e0d;return _0x85a322[_0x3df7a5(0x303)](_0x29b4e0,_0x3ff436);},'lzLGy':function(_0xc6e4b2,_0x604440,_0x4c93f9){return _0x85a322['cbGJs'](_0xc6e4b2,_0x604440,_0x4c93f9);},'XUeVO':function(_0x2649db,_0x5a1c42){const _0x5259ed=_0x4e0d;return _0x85a322[_0x5259ed(0x1ff)](_0x2649db,_0x5a1c42);},'DkQNU':_0x85a322[_0x2d856b(0x369)],'zkMqa':function(_0x2439a6,_0x21144e,_0x3f6169){return _0x2439a6(_0x21144e,_0x3f6169);},'eonEn':_0x85a322[_0x2d856b(0x2ea)],'xLEcq':function(_0x2d6f09,_0x34d46e){return _0x85a322['CmVrp'](_0x2d6f09,_0x34d46e);}};let _0x5984d0=_[_0x2d856b(0x2dc)](_0x1e56fb);_0x5984d0[_0x2d856b(0x3af)][_0x2d856b(0x232)]({'$or':[{'ap_dung_lan_mua_tu_thu':{'$in':[0x0,null]}},{'ap_dung_lan_mua_tu_thu':{'$lte':_0x1bb3f8}}]}),_0x5984d0['$and'][_0x2d856b(0x232)]({'$or':[{'ap_dung_lan_mua_den_thu':{'$in':[0x0,null]}},{'ap_dung_lan_mua_den_thu':{'$gte':_0x1bb3f8}}]});if(_0x85a322['klscE'](_0x1d5f73[_0x2d856b(0x271)],undefined))_0x5984d0[_0x2d856b(0x271)]=_0x1d5f73[_0x2d856b(0x271)];if(_0x1d5f73['offline']!=undefined)_0x5984d0[_0x2d856b(0x2dd)]=_0x1d5f73[_0x2d856b(0x2dd)];if(_0x5984d0[_0x2d856b(0x3af)]&&_0x85a322[_0x2d856b(0x37c)](_0x5984d0[_0x2d856b(0x3af)][_0x2d856b(0x218)],0x0))delete _0x5984d0[_0x2d856b(0x3af)];dmgiaban[_0x2d856b(0x20e)](_0x5984d0)[_0x2d856b(0x25e)](_0x9a381a)['lean']()[_0x2d856b(0x2f2)](async _0xd42e50=>{const _0x156ce0=_0x2d856b;if(_0xd42e50[_0x156ce0(0x218)]>0x0){if(_0x57c451['XUeVO'](_0x156ce0(0x3ae),_0x57c451[_0x156ce0(0x1d5)])){const _0x2df6ce={'aKGvg':function(_0x47c558,_0x3eb272,_0x50aacc){return _0x47c558(_0x3eb272,_0x50aacc);},'aJxwe':function(_0x1f0b9e,_0x3d97b5){const _0x1751f3=_0x156ce0;return _0x57c451[_0x1751f3(0x2d2)](_0x1f0b9e,_0x3d97b5);}};let _0x48192d=_0x52ecfc[_0x156ce0(0x2dc)](_0x224238);_0x421eaa[_0x156ce0(0x20e)](_0x48192d)['sort'](_0x458082)[_0x156ce0(0x3c5)]()['then'](async _0x41c45c=>{const _0x5896d9=_0x156ce0;_0x2df6ce[_0x5896d9(0x222)](_0x5b82a9,null,_0x41c45c);})[_0x156ce0(0x36b)](_0x525259=>{const _0x33df24=_0x156ce0;_0x2df6ce[_0x33df24(0x39c)](_0xca6217,{'message':_0x525259[_0x33df24(0x364)]});});}else _0x57c451['zkMqa'](_0xef5abc,null,_0xd42e50);}else{let _0xa7128f=_['cloneDeep'](_0x5984d0);_0xa7128f[_0x156ce0(0x34d)]={'$in':['',null]},_0xa7128f['ma_nvt']={'$in':['',null,_0x8e3041[_0x156ce0(0x1c5)]]},_0xa7128f[_0x156ce0(0x3be)]={'$in':['',null,..._0x8e3041[_0x156ce0(0x3be)]]},_0xa7128f['ma_nvt3']={'$in':['',null,..._0x8e3041[_0x156ce0(0x285)]]},_0xa7128f[_0x156ce0(0x386)]={'$in':['',null,..._0x8e3041[_0x156ce0(0x386)]]},_0xa7128f[_0x156ce0(0x18e)]={'$in':['',null,_0x8e3041[_0x156ce0(0x18e)]]},dmgiaban['find'](_0xa7128f)[_0x156ce0(0x25e)](_0x9a381a)[_0x156ce0(0x3c5)]()[_0x156ce0(0x2f2)](async _0x355fbc=>{_0x57c451['lzLGy'](_0xef5abc,null,_0x355fbc);})['catch'](_0x321107=>{const _0x47b926=_0x156ce0;_0x57c451[_0x47b926(0x2d2)](_0xef5abc,{'message':_0x321107[_0x47b926(0x364)]});});}})[_0x2d856b(0x36b)](_0x529cc2=>{const _0x5356f8=_0x2d856b;_0x57c451['eonEn']===_0x57c451[_0x5356f8(0x345)]?_0x57c451[_0x5356f8(0x217)](_0xef5abc,{'message':_0x529cc2[_0x5356f8(0x364)]}):_0x331486[_0x5356f8(0x17f)]=[];});});},'discount_vt':_0x4dd694=>{const _0x2a2b7e=_0x1d5129,_0x4239a2={'QRbtD':function(_0x616132,_0x3d06d8){return _0x616132>_0x3d06d8;},'LHXJI':function(_0x498136,_0x3e670e){return _0x85a322['Nsyzn'](_0x498136,_0x3e670e);},'Efowf':function(_0x4eba0a,_0x2fa42a){return _0x85a322['DQwov'](_0x4eba0a,_0x2fa42a);},'dGPUi':function(_0x25da7d,_0x57368e){return _0x25da7d==_0x57368e;},'bGIFU':function(_0x3654b9,_0x15dec2){return _0x85a322['PnvPa'](_0x3654b9,_0x15dec2);},'oNZLM':function(_0x1cc49e,_0x37f665){const _0x40f28a=_0x4e0d;return _0x85a322[_0x40f28a(0x1cf)](_0x1cc49e,_0x37f665);},'HABvJ':function(_0x350cd2,_0x501f68){const _0x1763ff=_0x4e0d;return _0x85a322[_0x1763ff(0x2fd)](_0x350cd2,_0x501f68);},'wdhLr':function(_0x6c1ff1,_0x1b6536){const _0x2e6c40=_0x4e0d;return _0x85a322[_0x2e6c40(0x29c)](_0x6c1ff1,_0x1b6536);},'KIdhD':_0x85a322[_0x2a2b7e(0x1f7)],'fcONU':_0x85a322[_0x2a2b7e(0x3c4)],'pVYfh':function(_0x5f5959,_0x27d05a){const _0x58759f=_0x2a2b7e;return _0x85a322[_0x58759f(0x26e)](_0x5f5959,_0x27d05a);},'SmkoL':_0x85a322[_0x2a2b7e(0x184)],'lxxSk':_0x85a322[_0x2a2b7e(0x27a)],'EoxeQ':function(_0x5b3c10,_0xe79fef){const _0x1009a2=_0x2a2b7e;return _0x85a322[_0x1009a2(0x1a1)](_0x5b3c10,_0xe79fef);},'HqLEv':function(_0x1e0577,_0x50b726){return _0x1e0577!=_0x50b726;},'ejsrU':_0x85a322[_0x2a2b7e(0x209)],'PVKJU':_0x85a322['MTysn'],'lrJNE':function(_0x6078eb,_0x3cc127,_0x2de5d0){const _0x362bf5=_0x2a2b7e;return _0x85a322[_0x362bf5(0x3a3)](_0x6078eb,_0x3cc127,_0x2de5d0);}};if(_0x85a322['oPeNG'](_0x1d5f73[_0x2a2b7e(0x1e4)],![]))return _0x85a322[_0x2a2b7e(0x1c8)](_0x4dd694,null,[]);_0x85a322[_0x2a2b7e(0x3cc)](setImmediate,async()=>{const _0x3cff2a=_0x2a2b7e,_0x43af0e={'sFpru':function(_0x2f645f,_0x48f6be){return _0x4239a2['wdhLr'](_0x2f645f,_0x48f6be);},'sBial':_0x4239a2[_0x3cff2a(0x2cd)],'hRicF':_0x4239a2[_0x3cff2a(0x34f)],'cAWCa':function(_0x3f8a1a,_0x5475d6){return _0x4239a2['pVYfh'](_0x3f8a1a,_0x5475d6);},'tBwBF':function(_0x531168,_0x3152a9){const _0x1fcd45=_0x3cff2a;return _0x4239a2[_0x1fcd45(0x267)](_0x531168,_0x3152a9);},'egNVm':function(_0x248308,_0x466c96){return _0x248308===_0x466c96;},'ZcgQZ':_0x4239a2[_0x3cff2a(0x330)],'PjUQi':function(_0x536ff5,_0x57f105,_0x4c5918){return _0x536ff5(_0x57f105,_0x4c5918);},'PISFR':_0x3cff2a(0x2e9),'GIyhP':_0x3cff2a(0x2b3)};if(_0x4239a2['wdhLr'](_0x4239a2['lxxSk'],_0x4239a2[_0x3cff2a(0x1b8)])){if(_0x4239a2['QRbtD'](_0x268861[_0x3cff2a(0x1f4)]||0x0,_0x6088fb[_0x3cff2a(0x1f4)]||0x0))return 0x1;return _0x4239a2[_0x3cff2a(0x2a5)](_0x5361e0[_0x3cff2a(0x1f6)],_0x25cb1c[_0x3cff2a(0x1f6)]);}else{let _0x292953=_[_0x3cff2a(0x2dc)](_0x1e56fb);_0x292953['$and']['push']({'$or':[{'ap_dung_lan_mua_tu_thu':{'$in':[0x0,null]}},{'ap_dung_lan_mua_tu_thu':{'$lte':_0x1bb3f8}}]}),_0x292953['$and']['push']({'$or':[{'ap_dung_lan_mua_den_thu':{'$in':[0x0,null]}},{'ap_dung_lan_mua_den_thu':{'$gte':_0x1bb3f8}}]});if(_0x4239a2['EoxeQ'](_0x1d5f73[_0x3cff2a(0x271)],undefined))_0x292953[_0x3cff2a(0x271)]=_0x1d5f73[_0x3cff2a(0x271)];if(_0x4239a2[_0x3cff2a(0x3b0)](_0x1d5f73['offline'],undefined))_0x292953[_0x3cff2a(0x2dd)]=_0x1d5f73[_0x3cff2a(0x2dd)];delete _0x292953[_0x3cff2a(0x19b)],delete _0x292953[_0x3cff2a(0x39d)],delete _0x292953[_0x3cff2a(0x1c1)],delete _0x292953[_0x3cff2a(0x236)],delete _0x292953[_0x3cff2a(0x2eb)],delete _0x292953['nh_kh5'],delete _0x292953[_0x3cff2a(0x3b5)],delete _0x292953['ma_tt2'],delete _0x292953[_0x3cff2a(0x17a)];if(_0x292953[_0x3cff2a(0x3af)]&&_0x4239a2[_0x3cff2a(0x295)](_0x292953[_0x3cff2a(0x3af)][_0x3cff2a(0x218)],0x0))delete _0x292953[_0x3cff2a(0x3af)];let _0x356a1c;try{_0x356a1c=await new Promise((_0xaee290,_0x51be14)=>{const _0x410d73=_0x3cff2a,_0x4e53d5={'lnsBe':function(_0x53256a,_0x139c5f){return _0x43af0e['egNVm'](_0x53256a,_0x139c5f);},'iuIrY':_0x43af0e[_0x410d73(0x3c2)],'XNPiD':function(_0x3c0aac,_0x56a8de,_0x1f9e83){const _0x5f231c=_0x410d73;return _0x43af0e[_0x5f231c(0x1c9)](_0x3c0aac,_0x56a8de,_0x1f9e83);},'mtKkN':_0x43af0e[_0x410d73(0x1fd)],'mNYIJ':_0x43af0e[_0x410d73(0x2e1)],'kbbcB':function(_0x3da366,_0x2f2614){return _0x3da366(_0x2f2614);}};async[_0x410d73(0x1c2)]({'cktheovt':_0x597d9b=>{const _0x1ca2eb=_0x410d73,_0x1f46dc={'ssPix':function(_0x1e840a,_0x457ad4,_0x211037){return _0x1e840a(_0x457ad4,_0x211037);}};if(_0x43af0e['sFpru'](_0x43af0e['sBial'],_0x1ca2eb(0x3b1))){let _0x4865d3=_[_0x1ca2eb(0x2dc)](_0x292953);dmchietkhau[_0x1ca2eb(0x20e)](_0x4865d3)[_0x1ca2eb(0x25e)](_0x9a381a)[_0x1ca2eb(0x3c5)]()['then'](async _0x48510b=>{const _0x390fd6=_0x1ca2eb;if(_0x4e53d5[_0x390fd6(0x180)](_0x4e53d5[_0x390fd6(0x2ac)],_0x4e53d5[_0x390fd6(0x2ac)]))_0x4e53d5[_0x390fd6(0x280)](_0x597d9b,null,_0x48510b);else{const _0xe62cfd=_0x390fd6(0x379)[_0x390fd6(0x23c)]('|');let _0x48d585=0x0;while(!![]){switch(_0xe62cfd[_0x48d585++]){case'0':_0x24c62d[_0x390fd6(0x19b)]=_0x180d47[_0x390fd6(0x19b)];continue;case'1':_0x57b31e[_0x390fd6(0x236)]=_0x45f0cb[_0x390fd6(0x236)];continue;case'2':_0x344927[_0x390fd6(0x3a8)]=_0x3b2b9d[_0x390fd6(0x3a8)];continue;case'3':_0x493320[_0x390fd6(0x1c1)]=_0x2b3da5['nh_kh2'];continue;case'4':_0x483586['nh_kh4']=_0x4cf045[_0x390fd6(0x2eb)];continue;case'5':_0x47498a[_0x390fd6(0x39d)]=_0x3a61d0[_0x390fd6(0x39d)];continue;}break;}}})[_0x1ca2eb(0x36b)](_0x20a5e0=>{const _0x5c4856=_0x1ca2eb;if(_0x4e53d5['mtKkN']!==_0x4e53d5[_0x5c4856(0x340)])_0x4e53d5[_0x5c4856(0x36e)](_0x597d9b,{'message':_0x20a5e0[_0x5c4856(0x364)]});else{if(_0x2401b1){const _0x5ae32a=_0x2207cb[_0x5c4856(0x341)](_0x1bf382,arguments);return _0x18ff12=null,_0x5ae32a;}}});}else _0x50f2d8[_0x1ca2eb(0x20e)](_0x5069ec)['sort'](_0x348099)[_0x1ca2eb(0x3c5)]()['then'](_0x28934b=>{const _0x4dbd82=_0x1ca2eb;_0x1f46dc[_0x4dbd82(0x2f6)](_0x8ff0f9,null,_0x28934b);})[_0x1ca2eb(0x36b)](_0x2ad208=>{const _0x590c62=_0x1ca2eb;_0x19b542({'message':_0x2ad208[_0x590c62(0x364)]});});},'cktheonvt':_0x182344=>{const _0x4d3960=_0x410d73,_0x363462={'oOqZm':_0x43af0e[_0x4d3960(0x38d)],'ZQvBP':function(_0x3d76db,_0xcc01dc){return _0x3d76db(_0xcc01dc);}};let _0x3ef609=_[_0x4d3960(0x2dc)](_0x292953);_0x3ef609[_0x4d3960(0x34d)]={'$in':['',null]},_0x3ef609[_0x4d3960(0x1c5)]={'$in':['',null,_0x8e3041['ma_nvt']]},_0x3ef609[_0x4d3960(0x3be)]={'$in':['',null,..._0x8e3041[_0x4d3960(0x3be)]]},_0x3ef609['ma_nvt3']={'$in':['',null,..._0x8e3041[_0x4d3960(0x285)]]},_0x3ef609['ma_nvt4']={'$in':['',null,..._0x8e3041['ma_nvt4']]},_0x3ef609[_0x4d3960(0x18e)]={'$in':['',null,_0x8e3041[_0x4d3960(0x18e)]]},dmchietkhau[_0x4d3960(0x20e)](_0x3ef609)[_0x4d3960(0x25e)](_0x9a381a)[_0x4d3960(0x3c5)]()['then'](async _0x57d1dd=>{const _0x25447e=_0x4d3960;_0x4e53d5[_0x25447e(0x280)](_0x182344,null,_0x57d1dd);})[_0x4d3960(0x36b)](_0x212c3e=>{const _0x200e76=_0x4d3960;_0x363462[_0x200e76(0x306)]!==_0x363462[_0x200e76(0x306)]?_0x370026[_0x200e76(0x385)]=new _0x109c02(_0x896c6f['ngay_ct']):_0x363462[_0x200e76(0x358)](_0x182344,{'message':_0x212c3e[_0x200e76(0x364)]});});}},async(_0x49975e,_0xca572a)=>{const _0x3b17bb=_0x410d73;if(_0x49975e)return _0x43af0e[_0x3b17bb(0x328)](_0x51be14,_0x49975e);const _0x3a9fb1=_0xca572a[_0x3b17bb(0x322)]['concat'](_0xca572a[_0x3b17bb(0x1e1)]);_0x43af0e['tBwBF'](_0xaee290,_0x3a9fb1);});});}catch(_0x4f2b38){if(_0x4239a2[_0x3cff2a(0x2cc)]!==_0x4239a2[_0x3cff2a(0x2ef)])return _0x4239a2[_0x3cff2a(0x267)](_0x4dd694,_0x4f2b38);else _0x13e30d['id_cs']=_0x398bcf[_0x3cff2a(0x2cb)];}_0x356a1c=_0x356a1c[_0x3cff2a(0x220)](_0x48bc1d=>{const _0x4233af=_0x3cff2a;if(_0x4239a2[_0x4233af(0x397)]('TgErk','vhnMf'))_0x3afd8a['ck']={'t_sl_km':_0x93ccc3['t_sl_km']||0x0,'promotions':[_0x457f4e],'stt_uu_tien':_0x42a7ed[_0x4233af(0x24a)]};else return(!_0x48bc1d[_0x4233af(0x19b)]||_0x1d5f73[_0x4233af(0x19b)]==_0x48bc1d[_0x4233af(0x19b)])&&(!_0x48bc1d['nh_kh']||(_0x1d5f73[_0x4233af(0x1e7)]||[])['find'](_0x4e5dfe=>_0x48bc1d['nh_kh']==_0x4e5dfe))&&(!_0x48bc1d[_0x4233af(0x1c1)]||_0x4239a2[_0x4233af(0x399)](_0x48bc1d['nh_kh2'][_0x4233af(0x218)],0x0)||(_0x1d5f73['nh_kh2_me']||[])['find'](_0x23a0fd=>_0x48bc1d[_0x4233af(0x1c1)][_0x4233af(0x34b)](_0x23a0fd)>=0x0))&&(!_0x48bc1d['nh_kh3']||_0x48bc1d[_0x4233af(0x236)]['length']==0x0||(_0x1d5f73[_0x4233af(0x1ee)]||[])[_0x4233af(0x20e)](_0x4e7be7=>_0x48bc1d[_0x4233af(0x236)][_0x4233af(0x34b)](_0x4e7be7)>=0x0))&&(!_0x48bc1d['nh_kh4']||_0x48bc1d[_0x4233af(0x2eb)][_0x4233af(0x218)]==0x0||(_0x1d5f73[_0x4233af(0x1da)]||[])[_0x4233af(0x20e)](_0x4aef98=>_0x48bc1d[_0x4233af(0x2eb)][_0x4233af(0x34b)](_0x4aef98)>=0x0))&&(!_0x48bc1d[_0x4233af(0x3a8)]||_0x4239a2[_0x4233af(0x399)](_0x48bc1d[_0x4233af(0x3a8)][_0x4233af(0x218)],0x0)||(_0x1d5f73[_0x4233af(0x17f)]||[])[_0x4233af(0x20e)](_0x2b7822=>_0x48bc1d[_0x4233af(0x3a8)][_0x4233af(0x34b)](_0x2b7822)>=0x0))&&(!_0x48bc1d[_0x4233af(0x3b5)]||_0x4239a2[_0x4233af(0x2c6)](_0x1d5f73[_0x4233af(0x3b5)],_0x48bc1d[_0x4233af(0x3b5)]))&&(!_0x48bc1d[_0x4233af(0x30e)]||_0x4239a2[_0x4233af(0x399)](_0x1d5f73['ma_tt2'],_0x48bc1d[_0x4233af(0x30e)]))&&(!_0x48bc1d[_0x4233af(0x17a)]||_0x4239a2[_0x4233af(0x295)](_0x1d5f73[_0x4233af(0x17a)],_0x48bc1d['ma_tt3']))&&(!_0x48bc1d['nh_tt']||(_0x1d5f73[_0x4233af(0x1f3)]||[])[_0x4233af(0x20e)](_0x12a106=>_0x48bc1d[_0x4233af(0x3b8)]==_0x12a106))&&(!_0x48bc1d[_0x4233af(0x376)]||_0x4239a2[_0x4233af(0x2c6)](_0x48bc1d[_0x4233af(0x376)]['length'],0x0)||(_0x1d5f73[_0x4233af(0x26d)]||[])['find'](_0x6f9df5=>_0x48bc1d['nh_tt2'][_0x4233af(0x34b)](_0x6f9df5)>=0x0))&&(!_0x48bc1d['nh_tt3']||_0x4239a2[_0x4233af(0x399)](_0x48bc1d['nh_tt3']['length'],0x0)||(_0x1d5f73[_0x4233af(0x2f3)]||[])[_0x4233af(0x20e)](_0x2a3aa6=>_0x48bc1d[_0x4233af(0x20f)][_0x4233af(0x34b)](_0x2a3aa6)>=0x0))&&(!_0x48bc1d[_0x4233af(0x2f0)]||_0x4239a2['HABvJ'](_0x48bc1d['nh_tt4']['length'],0x0)||(_0x1d5f73['nh_tt4_me']||[])[_0x4233af(0x20e)](_0x160fe6=>_0x48bc1d[_0x4233af(0x2f0)][_0x4233af(0x34b)](_0x160fe6)>=0x0))&&(!_0x48bc1d[_0x4233af(0x33c)]||_0x48bc1d['nh_tt5'][_0x4233af(0x218)]==0x0||(_0x1d5f73[_0x4233af(0x2c9)]||[])[_0x4233af(0x20e)](_0x3a230d=>_0x48bc1d[_0x4233af(0x33c)][_0x4233af(0x34b)](_0x3a230d)>=0x0));}),await getSLDaBanCKs(_0x356a1c),_0x356a1c=_0x356a1c[_0x3cff2a(0x220)](_0xb0bbc2=>!_0xb0bbc2['tong_sl_ap_dung']||!_0xb0bbc2[_0x3cff2a(0x1a8)]||_0xb0bbc2['sl_con_lai']>0x0),_0x4239a2['lrJNE'](_0x4dd694,null,_0x356a1c);}});},'promotion_vt':_0x5dfdc0=>{const _0x505bff=_0x1d5129,_0x9e5544={'ecdvL':function(_0x113036,_0xcc3e00){const _0x435fc8=_0x4e0d;return _0x85a322[_0x435fc8(0x30c)](_0x113036,_0xcc3e00);},'FbmtD':function(_0x531b26,_0x5ce9b5){const _0x1ff0b5=_0x4e0d;return _0x85a322[_0x1ff0b5(0x202)](_0x531b26,_0x5ce9b5);},'nsLyd':function(_0x5367e9,_0x11e2b7){const _0x1f1c67=_0x4e0d;return _0x85a322[_0x1f1c67(0x2e6)](_0x5367e9,_0x11e2b7);},'AmmRH':function(_0x507063,_0x1e247e){return _0x507063==_0x1e247e;},'HkHJf':_0x85a322[_0x505bff(0x392)],'Kdrxi':_0x85a322['CQcyh'],'zSYdu':_0x85a322['mmNUr'],'cdCXe':'jMYBT','SahMw':function(_0x587c6e,_0x2588e6){const _0x3f8f72=_0x505bff;return _0x85a322[_0x3f8f72(0x2de)](_0x587c6e,_0x2588e6);},'jpEPG':function(_0x195258,_0x1cdf48){const _0x3d23f7=_0x505bff;return _0x85a322[_0x3d23f7(0x3bf)](_0x195258,_0x1cdf48);},'XmOJt':function(_0x41f542,_0x4bda8b){const _0x204fa9=_0x505bff;return _0x85a322[_0x204fa9(0x26e)](_0x41f542,_0x4bda8b);},'dMmlz':function(_0x3d8571,_0x1e44ac,_0x256ed1){return _0x3d8571(_0x1e44ac,_0x256ed1);}};if(_0x85a322[_0x505bff(0x37c)](_0x1d5f73['get_promotion'],![]))return _0x85a322[_0x505bff(0x1c8)](_0x5dfdc0,null,[]);_0x85a322[_0x505bff(0x303)](setImmediate,async()=>{const _0xdf31a4=_0x505bff,_0x2cc4b1={'iucry':function(_0x5784df,_0x6fd2f4,_0x48eb0e){return _0x5784df(_0x6fd2f4,_0x48eb0e);},'ipBBn':_0xdf31a4(0x187),'Ncspd':_0x9e5544[_0xdf31a4(0x233)],'BRfbH':function(_0x409595,_0x13bfd5,_0x349a20){return _0x409595(_0x13bfd5,_0x349a20);},'PsnrN':function(_0x55d877,_0x3372fc){return _0x55d877(_0x3372fc);},'azIZJ':_0x9e5544[_0xdf31a4(0x314)]};if(_0x9e5544[_0xdf31a4(0x212)]===_0x9e5544[_0xdf31a4(0x264)])_0x5c7993[_0xdf31a4(0x210)]=_0x3d0474[_0xdf31a4(0x2cb)];else{let _0x1abe4f=_[_0xdf31a4(0x2dc)](_0x1e56fb);if(_0x9e5544[_0xdf31a4(0x2d6)](_0x1d5f73['online'],undefined))_0x1abe4f[_0xdf31a4(0x271)]=_0x1d5f73[_0xdf31a4(0x271)];if(_0x9e5544['SahMw'](_0x1d5f73[_0xdf31a4(0x2dd)],undefined))_0x1abe4f['offline']=_0x1d5f73[_0xdf31a4(0x2dd)];let _0x4221d6={'stt_uu_tien':0x1};if(_0x1abe4f['$and']&&_0x1abe4f['$and']['length']==0x0)delete _0x1abe4f[_0xdf31a4(0x3af)];delete _0x1abe4f['ma_kh'],delete _0x1abe4f[_0xdf31a4(0x39d)],delete _0x1abe4f[_0xdf31a4(0x1c1)],delete _0x1abe4f[_0xdf31a4(0x236)],delete _0x1abe4f[_0xdf31a4(0x2eb)],delete _0x1abe4f[_0xdf31a4(0x3a8)],delete _0x1abe4f[_0xdf31a4(0x3b5)],delete _0x1abe4f['ma_tt2'],delete _0x1abe4f[_0xdf31a4(0x17a)];let _0x546745;try{_0x9e5544['jpEPG'](_0xdf31a4(0x24b),'SHwxr')?_0x546745=await new Promise((_0x48c9e9,_0xe1388d)=>{const _0x4ca396=_0xdf31a4,_0x279db8={'bztgv':_0x2cc4b1[_0x4ca396(0x28f)],'OtGEh':_0x2cc4b1[_0x4ca396(0x252)],'eLJKm':function(_0x3acf60,_0x410013,_0x5d8b83){const _0x4b05dc=_0x4ca396;return _0x2cc4b1[_0x4b05dc(0x248)](_0x3acf60,_0x410013,_0x5d8b83);},'SRCCY':function(_0x42ccbd,_0x559757){const _0x3b2135=_0x4ca396;return _0x2cc4b1[_0x3b2135(0x383)](_0x42ccbd,_0x559757);},'xjPvc':_0x2cc4b1[_0x4ca396(0x372)]};async[_0x4ca396(0x1c2)]({'theovt':_0x5824fa=>{const _0x28a42a=_0x4ca396,_0x2aa85b={'Zivzz':function(_0x2eb961,_0x4f4121,_0x3ba4de){const _0x1b414b=_0x4e0d;return _0x2cc4b1[_0x1b414b(0x24d)](_0x2eb961,_0x4f4121,_0x3ba4de);}};dmkhuyenmai[_0x28a42a(0x20e)](_0x1abe4f)[_0x28a42a(0x25e)](_0x4221d6)[_0x28a42a(0x3c5)]()[_0x28a42a(0x2f2)](_0x5b1b79=>{const _0x5ba4c7=_0x28a42a;_0x2aa85b[_0x5ba4c7(0x33a)](_0x5824fa,null,_0x5b1b79);})['catch'](_0xc04111=>{_0x5824fa({'message':_0xc04111['message']});});},'theonvt':_0x9097ca=>{const _0xb50e02=_0x4ca396;let _0x1ae2d4=_[_0xb50e02(0x2dc)](_0x1abe4f);_0x1ae2d4['ma_vt']={'$in':['',null]},_0x1ae2d4[_0xb50e02(0x1c5)]={'$in':['',null,_0x8e3041[_0xb50e02(0x1c5)]]},_0x1ae2d4[_0xb50e02(0x3be)]={'$in':['',null,..._0x8e3041[_0xb50e02(0x3be)]]},_0x1ae2d4[_0xb50e02(0x285)]={'$in':['',null,..._0x8e3041[_0xb50e02(0x285)]]},_0x1ae2d4[_0xb50e02(0x18e)]={'$in':['',null,_0x8e3041[_0xb50e02(0x18e)]]},dmkhuyenmai[_0xb50e02(0x20e)](_0x1ae2d4)[_0xb50e02(0x25e)](_0x4221d6)[_0xb50e02(0x3c5)]()[_0xb50e02(0x2f2)](_0x3f25f=>{const _0x43c5bf=_0xb50e02,_0x2cb651={'iCkCW':_0x43c5bf(0x1e0)};_0x279db8[_0x43c5bf(0x30d)]===_0x279db8[_0x43c5bf(0x2a8)]?_0x2baa6d[_0x43c5bf(0x1fc)][_0x43c5bf(0x1bb)](_0x14c499=>{const _0x574f20=_0x43c5bf,_0x58a30b=_0x2cb651[_0x574f20(0x19a)][_0x574f20(0x23c)]('|');let _0x4a41a0=0x0;while(!![]){switch(_0x58a30b[_0x4a41a0++]){case'0':delete _0x14c499[_0x574f20(0x185)];continue;case'1':delete _0x14c499[_0x574f20(0x2ed)];continue;case'2':delete _0x14c499[_0x574f20(0x3bd)];continue;case'3':delete _0x14c499[_0x574f20(0x237)];continue;case'4':delete _0x14c499[_0x574f20(0x293)];continue;case'5':delete _0x14c499[_0x574f20(0x336)];continue;case'6':delete _0x14c499['status'];continue;case'7':delete _0x14c499[_0x574f20(0x2e3)];continue;case'8':delete _0x14c499[_0x574f20(0x26f)];continue;case'9':delete _0x14c499[_0x574f20(0x230)];continue;case'10':delete _0x14c499[_0x574f20(0x38c)];continue;case'11':delete _0x14c499[_0x574f20(0x343)];continue;}break;}}):_0x279db8['eLJKm'](_0x9097ca,null,_0x3f25f);})[_0xb50e02(0x36b)](_0x1bce6f=>{const _0x50bc23=_0xb50e02;_0x279db8[_0x50bc23(0x21c)](_0x9097ca,{'message':_0x1bce6f['message']});});}},(_0x132697,_0x29ebc0)=>{const _0x2f3b46=_0x4ca396;if(_0x279db8[_0x2f3b46(0x370)]!=='djQgX')_0x56ee2d=_0x2c2ef8[_0x2f3b46(0x20e)](_0x8429b4=>_0x8429b4[_0x2f3b46(0x2cb)][_0x2f3b46(0x191)]()==_0x5f19b9[_0x2f3b46(0x210)]);else{if(_0x132697)return _0xe1388d(_0x132697);const _0x5b6364=_0x29ebc0[_0x2f3b46(0x192)][_0x2f3b46(0x2aa)](_0x29ebc0[_0x2f3b46(0x2fc)]);_0x279db8[_0x2f3b46(0x21c)](_0x48c9e9,_0x5b6364);}});}):(_0x188798['vt']['is_full']=!![],_0xf3d8a[_0xdf31a4(0x34d)]=_0x2bc574['vt'][_0xdf31a4(0x34d)]);}catch(_0x44bc87){return _0x9e5544[_0xdf31a4(0x2b1)](_0x5dfdc0,_0x44bc87);}let _0xaeaae7=_0x546745['filter'](_0x2fdf03=>{const _0x1ea3f7=_0xdf31a4;return(!_0x2fdf03[_0x1ea3f7(0x19b)]||_0x9e5544[_0x1ea3f7(0x31e)](_0x1d5f73[_0x1ea3f7(0x19b)],_0x2fdf03[_0x1ea3f7(0x19b)]))&&(!_0x2fdf03[_0x1ea3f7(0x39d)]||(_0x1d5f73[_0x1ea3f7(0x1e7)]||[])['find'](_0x43b5b5=>_0x2fdf03['nh_kh']==_0x43b5b5))&&(!_0x2fdf03[_0x1ea3f7(0x1c1)]||_0x9e5544['ecdvL'](_0x2fdf03[_0x1ea3f7(0x1c1)][_0x1ea3f7(0x218)],0x0)||(_0x1d5f73[_0x1ea3f7(0x1fb)]||[])[_0x1ea3f7(0x20e)](_0x336240=>_0x2fdf03['nh_kh2'][_0x1ea3f7(0x34b)](_0x336240)>=0x0))&&(!_0x2fdf03[_0x1ea3f7(0x236)]||_0x9e5544[_0x1ea3f7(0x31e)](_0x2fdf03['nh_kh3'][_0x1ea3f7(0x218)],0x0)||(_0x1d5f73[_0x1ea3f7(0x1ee)]||[])[_0x1ea3f7(0x20e)](_0x4b4f7d=>_0x2fdf03['nh_kh3'][_0x1ea3f7(0x34b)](_0x4b4f7d)>=0x0))&&(!_0x2fdf03['nh_kh4']||_0x9e5544['ecdvL'](_0x2fdf03['nh_kh4'][_0x1ea3f7(0x218)],0x0)||(_0x1d5f73[_0x1ea3f7(0x1da)]||[])[_0x1ea3f7(0x20e)](_0x4e7212=>_0x2fdf03[_0x1ea3f7(0x2eb)]['indexOf'](_0x4e7212)>=0x0))&&(!_0x2fdf03[_0x1ea3f7(0x3a8)]||_0x9e5544[_0x1ea3f7(0x263)](_0x2fdf03[_0x1ea3f7(0x3a8)][_0x1ea3f7(0x218)],0x0)||(_0x1d5f73[_0x1ea3f7(0x17f)]||[])[_0x1ea3f7(0x20e)](_0xa41d6a=>_0x2fdf03[_0x1ea3f7(0x3a8)][_0x1ea3f7(0x34b)](_0xa41d6a)>=0x0))&&(!_0x2fdf03['ma_tt1']||_0x1d5f73[_0x1ea3f7(0x3b5)]==_0x2fdf03['ma_tt1'])&&(!_0x2fdf03[_0x1ea3f7(0x30e)]||_0x9e5544['FbmtD'](_0x1d5f73[_0x1ea3f7(0x30e)],_0x2fdf03[_0x1ea3f7(0x30e)]))&&(!_0x2fdf03[_0x1ea3f7(0x17a)]||_0x9e5544['nsLyd'](_0x1d5f73[_0x1ea3f7(0x17a)],_0x2fdf03[_0x1ea3f7(0x17a)]))&&(!_0x2fdf03['nh_tt']||(_0x1d5f73['nh_tt_me']||[])[_0x1ea3f7(0x20e)](_0x36cb9a=>_0x2fdf03[_0x1ea3f7(0x3b8)]==_0x36cb9a))&&(!_0x2fdf03[_0x1ea3f7(0x376)]||_0x9e5544['AmmRH'](_0x2fdf03[_0x1ea3f7(0x376)][_0x1ea3f7(0x218)],0x0)||(_0x1d5f73[_0x1ea3f7(0x26d)]||[])[_0x1ea3f7(0x20e)](_0x5e1bda=>_0x2fdf03[_0x1ea3f7(0x376)][_0x1ea3f7(0x34b)](_0x5e1bda)>=0x0))&&(!_0x2fdf03[_0x1ea3f7(0x20f)]||_0x2fdf03[_0x1ea3f7(0x20f)]['length']==0x0||(_0x1d5f73['nh_tt3_me']||[])[_0x1ea3f7(0x20e)](_0x4fbfb5=>_0x2fdf03[_0x1ea3f7(0x20f)]['indexOf'](_0x4fbfb5)>=0x0))&&(!_0x2fdf03[_0x1ea3f7(0x2f0)]||_0x9e5544[_0x1ea3f7(0x263)](_0x2fdf03[_0x1ea3f7(0x2f0)][_0x1ea3f7(0x218)],0x0)||(_0x1d5f73[_0x1ea3f7(0x2f5)]||[])['find'](_0x1ddaae=>_0x2fdf03['nh_tt4']['indexOf'](_0x1ddaae)>=0x0))&&(!_0x2fdf03[_0x1ea3f7(0x33c)]||_0x9e5544[_0x1ea3f7(0x263)](_0x2fdf03['nh_tt5'][_0x1ea3f7(0x218)],0x0)||(_0x1d5f73[_0x1ea3f7(0x2c9)]||[])[_0x1ea3f7(0x20e)](_0x4bdacd=>_0x2fdf03[_0x1ea3f7(0x33c)]['indexOf'](_0x4bdacd)>=0x0));});_0x9e5544['dMmlz'](_0x5dfdc0,null,_0xaeaae7);}});}},async(_0x492ed0,_0x54f438)=>{const _0x35c448=_0x1d5129,_0x142bf9={'iGrTg':_0x85a322[_0x35c448(0x284)],'xYmSb':function(_0x13353f,_0x43d595){const _0x26db09=_0x35c448;return _0x85a322[_0x26db09(0x2bb)](_0x13353f,_0x43d595);},'zDTlj':function(_0x45960d,_0x30ef5d){const _0x31a2bb=_0x35c448;return _0x85a322[_0x31a2bb(0x18d)](_0x45960d,_0x30ef5d);},'qvLRy':function(_0x25e70e,_0x5eb08e){const _0x557791=_0x35c448;return _0x85a322[_0x557791(0x3a5)](_0x25e70e,_0x5eb08e);},'cnwWk':function(_0x16d3d5,_0xe4c660){const _0x480a2d=_0x35c448;return _0x85a322[_0x480a2d(0x36f)](_0x16d3d5,_0xe4c660);},'pRlpI':function(_0x5c6bc3,_0x565146){return _0x85a322['JGPtK'](_0x5c6bc3,_0x565146);},'vfFnQ':function(_0x39c5fb,_0x8241f2){return _0x39c5fb+_0x8241f2;},'DLtDa':function(_0x35a421,_0x173ce0){return _0x35a421/_0x173ce0;},'yhBgj':function(_0x38b064,_0x459b27){const _0x2299d0=_0x35c448;return _0x85a322[_0x2299d0(0x18d)](_0x38b064,_0x459b27);},'Ygunl':function(_0x36f17f,_0x206e3a){const _0x8d8d37=_0x35c448;return _0x85a322[_0x8d8d37(0x283)](_0x36f17f,_0x206e3a);},'QYEiV':function(_0x45408e,_0x3c3669){const _0x4dad71=_0x35c448;return _0x85a322[_0x4dad71(0x332)](_0x45408e,_0x3c3669);},'ZKwTR':function(_0x46272f,_0x470298){const _0x1a3208=_0x35c448;return _0x85a322[_0x1a3208(0x276)](_0x46272f,_0x470298);},'Uoxxd':function(_0xc62c10,_0x43d4c0){const _0x2d1434=_0x35c448;return _0x85a322[_0x2d1434(0x3aa)](_0xc62c10,_0x43d4c0);},'RIrGV':function(_0x5de15a,_0x15d860){const _0x2d264e=_0x35c448;return _0x85a322[_0x2d264e(0x249)](_0x5de15a,_0x15d860);},'gEKnH':function(_0x4f0cba,_0x5bc597){const _0x2de31f=_0x35c448;return _0x85a322[_0x2de31f(0x3aa)](_0x4f0cba,_0x5bc597);},'ZaCEm':function(_0x1e7492,_0x49fe6a){return _0x1e7492-_0x49fe6a;},'kBcEG':function(_0x474fc0,_0x1f1511){return _0x474fc0>_0x1f1511;},'roAtf':function(_0x8e8819,_0x520ac2){return _0x85a322['WOGoZ'](_0x8e8819,_0x520ac2);},'KUIwQ':_0x85a322[_0x35c448(0x2c8)],'GCVQN':_0x85a322[_0x35c448(0x22f)],'eyYOn':function(_0x310265,_0x36b668){return _0x310265<=_0x36b668;},'fizAw':function(_0x2386fd,_0xa9f8be){const _0x382a4b=_0x35c448;return _0x85a322[_0x382a4b(0x351)](_0x2386fd,_0xa9f8be);},'dmVEu':function(_0x458657,_0x299060){const _0x429d03=_0x35c448;return _0x85a322[_0x429d03(0x29d)](_0x458657,_0x299060);},'BUOTU':function(_0x3e648c,_0x5a5fad){const _0x3a205e=_0x35c448;return _0x85a322[_0x3a205e(0x27d)](_0x3e648c,_0x5a5fad);},'fFkXF':function(_0x3b8376,_0x1c908a){return _0x85a322['VfRPs'](_0x3b8376,_0x1c908a);},'hnCPh':function(_0x327db5,_0x517917){return _0x85a322['DIlmu'](_0x327db5,_0x517917);},'uiiNu':function(_0x32317b,_0x196015){const _0x3654ad=_0x35c448;return _0x85a322[_0x3654ad(0x27d)](_0x32317b,_0x196015);},'GNYHR':function(_0xb57e45,_0x5b639e){const _0x510afb=_0x35c448;return _0x85a322[_0x510afb(0x3cc)](_0xb57e45,_0x5b639e);},'BhmJQ':function(_0x4cf6d9,_0x14f0c6){const _0x197b43=_0x35c448;return _0x85a322[_0x197b43(0x17b)](_0x4cf6d9,_0x14f0c6);},'LLqkn':_0x85a322[_0x35c448(0x32b)],'FYNHO':_0x85a322[_0x35c448(0x310)],'dRqYy':function(_0x196814,_0x4ea872){return _0x196814(_0x4ea872);},'MjkVO':function(_0x3a176c,_0x25a997){return _0x3a176c>_0x25a997;},'Qokxf':function(_0x43ba83,_0x3845f7){const _0x2333e4=_0x35c448;return _0x85a322[_0x2333e4(0x305)](_0x43ba83,_0x3845f7);},'qMHIA':function(_0x39d106,_0x1851bb){const _0xd3807a=_0x35c448;return _0x85a322[_0xd3807a(0x2bf)](_0x39d106,_0x1851bb);},'iczdL':_0x85a322[_0x35c448(0x1a3)],'SgSpW':function(_0x1b36de,_0x3f2896){return _0x85a322['SwIIH'](_0x1b36de,_0x3f2896);},'nEFCr':function(_0x2576cd,_0x31ae9a){return _0x2576cd===_0x31ae9a;},'Qugnq':_0x85a322['wiOhm']};if(_0x85a322[_0x35c448(0x348)]!==_0x85a322[_0x35c448(0x348)])_0x634baa=_0x456f45[_0x35c448(0x25e)]((_0x13eca5,_0x4e192b)=>(_0x13eca5[_0x35c448(0x24a)]||0x0)-(_0x4e192b[_0x35c448(0x24a)]||0x0))[0x0]['ck'][_0x35c448(0x3ab)];else{if(_0x492ed0)return _0x85a322[_0x35c448(0x26e)](_0x19a636,_0x492ed0);if(_0x85a322[_0x35c448(0x1f9)](_0x1d5f73[_0x35c448(0x346)],![]))_0x85a322[_0x35c448(0x17b)](_0x85a322['nRumg'],_0x85a322['kMNvN'])?_0x54f438[_0x35c448(0x298)]={}:_0x583f55['ck']={'t_sl_km':0x0,'promotions':[],'stt_uu_tien':_0x394cb9[_0x35c448(0x24a)]};else{if(_0x85a322[_0x35c448(0x2d1)](_0x85a322[_0x35c448(0x3c1)],_0x85a322[_0x35c448(0x3c1)])){const _0x2809fd=_0x142bf9['iGrTg'][_0x35c448(0x23c)]('|');let _0x174dbb=0x0;while(!![]){switch(_0x2809fd[_0x174dbb++]){case'0':_0x42a7c6[_0x35c448(0x25f)]=_0x27445e[_0x35c448(0x1ec)](_0x142bf9[_0x35c448(0x2a0)](_0x19c478[_0x35c448(0x287)],_0x142bf9[_0x35c448(0x1ca)](0x1,_0x142bf9['qvLRy'](_0x4d31c1[_0x35c448(0x1c7)],0x64))),0x2);continue;case'1':_0x7c23ec[_0x35c448(0x1c3)]=_0x30bd56[_0x35c448(0x1ec)](_0x1564ab[_0x35c448(0x31c)]*(0x1+_0x142bf9[_0x35c448(0x36a)](_0x425c3b['thue_suat'],0x64)),0x2);continue;case'2':_0x59f0e4[_0x35c448(0x317)]=_0xe3931a['round'](_0x142bf9[_0x35c448(0x2b0)](_0x3d785d[_0x35c448(0x229)],_0x142bf9[_0x35c448(0x329)](0x1,_0x142bf9['DLtDa'](_0x4ee32e['thue_suat'],0x64))),0x2);continue;case'3':_0x3f63c4['thue_suat']=_0x2028fa[_0x35c448(0x1c7)]||0x0;continue;case'4':_0x3bee6d[_0x35c448(0x326)]=_0x4c940c[_0x35c448(0x1ec)](_0x142bf9[_0x35c448(0x2a0)](_0x5b904b['gia_ban_buon0_qd_ct'],_0x142bf9['yhBgj'](0x1,_0x142bf9[_0x35c448(0x327)](_0x2ac424['thue_suat'],0x64))),0x2);continue;}break;}}else{if(!_0x8e3041[_0x35c448(0x198)])_0x8e3041[_0x35c448(0x198)]=_0x85a322[_0x35c448(0x396)];_0x85a322[_0x35c448(0x3b4)](_0x54f438[_0x35c448(0x1bc)][_0x35c448(0x218)],0x0)&&!_0x54f438['giabans'][0x0]['sl_tu']&&!_0x54f438[_0x35c448(0x1bc)][0x0]['sl_den']&&!_0x54f438[_0x35c448(0x1bc)][0x0][_0x35c448(0x21d)]&&!_0x54f438[_0x35c448(0x1bc)][0x0]['t_sl_den']&&(_0x54f438['giabans']=[_0x54f438[_0x35c448(0x1bc)][0x0]]);let _0x5c80e4=[];for(let _0x1a41b8 of _0x54f438[_0x35c448(0x1bc)]){if(_0x85a322[_0x35c448(0x259)]==='AfmmR'){_0x1a41b8[_0x35c448(0x224)]=_0x1a41b8[_0x35c448(0x224)]||0x0,_0x1a41b8[_0x35c448(0x35a)]=_0x1a41b8[_0x35c448(0x35a)]||0x0,_0x1a41b8[_0x35c448(0x21d)]=_0x1a41b8[_0x35c448(0x21d)]||0x0,_0x1a41b8[_0x35c448(0x1b4)]=_0x1a41b8[_0x35c448(0x1b4)]||0x0;if(!_0x5c80e4[_0x35c448(0x20e)](_0x4b8b0a=>_0x4b8b0a[_0x35c448(0x224)]===_0x1a41b8[_0x35c448(0x224)]&&_0x4b8b0a[_0x35c448(0x35a)]===_0x1a41b8[_0x35c448(0x35a)]&&_0x4b8b0a[_0x35c448(0x21d)]===_0x1a41b8[_0x35c448(0x21d)]&&_0x4b8b0a[_0x35c448(0x1b4)]===_0x1a41b8[_0x35c448(0x1b4)])){if(_0x85a322[_0x35c448(0x34e)]===_0x35c448(0x1ad))return _0x142bf9[_0x35c448(0x3b2)](_0x544a67[_0x35c448(0x1f6)],_0x494089['ty_le_ck']);else _0x5c80e4['push'](_0x1a41b8);}}else _0x474ea5['ck']={'t_sl_km':_0x828ccb[_0x35c448(0x21f)]||0x0,'promotions':[_0x26fd22],'stt_uu_tien':_0x965b21[_0x35c448(0x24a)]};}_0x54f438[_0x35c448(0x1bc)]=_0x5c80e4;!_0x54f438[_0x35c448(0x1bc)][_0x35c448(0x20e)](_0x58ee17=>!_0x58ee17[_0x35c448(0x224)])&&(_0x54f438[_0x35c448(0x1bc)]=[..._0x54f438['giabans'],{'gia_ban_le':_0x8e3041[_0x35c448(0x331)]||_0x8e3041[_0x35c448(0x1c3)]||0x0,'gia_ban_buon':_0x8e3041['gia_ban_buon0']||_0x8e3041['gia_ban_buon']||0x0,'ma_nt':_0x8e3041['ma_nt0'],'gia_ban_chua_thue':_0x8e3041[_0x35c448(0x242)],'t_sl_tu':0x0,'t_sl_den':0x0,'sl_tu':0x0,'sl_den':_0x85a322[_0x35c448(0x35b)](_0x54f438[_0x35c448(0x1bc)][_0x35c448(0x218)],0x0)?_0x85a322['Hwnok'](_0x54f438[_0x35c448(0x1bc)][_0x35c448(0x25e)]((_0x517d25,_0x1c5758)=>_0x517d25[_0x35c448(0x224)]-_0x1c5758['sl_tu'])[0x0]['sl_tu'],0.001):0x0}]);for(let _0x1be8d4 of _0x54f438[_0x35c448(0x1bc)]){if(_0x85a322['DQwov'](_0x85a322[_0x35c448(0x2c1)],_0x85a322[_0x35c448(0x17e)]))_0x85a322['HgRQh'](_0x331b29,null,_0x2e0997);else{if(!_0x1be8d4[_0x35c448(0x3bc)])_0x1be8d4[_0x35c448(0x3bc)]=_0x85a322[_0x35c448(0x396)];_0x1be8d4['ma_thue']=_0x8e3041[_0x35c448(0x2cf)],_0x1be8d4[_0x35c448(0x1c7)]=_0x8e3041[_0x35c448(0x1c7)];}}await _0x54f438['giabans'][_0x35c448(0x1b2)](_0x1d5f73[_0x35c448(0x237)],_0x85a322[_0x35c448(0x288)],{'where':_0x85a322['nYYgH'],'fields':[_0x85a322['KJOrw']]}),await[_0x8e3041][_0x35c448(0x1b2)](_0x1d5f73[_0x35c448(0x237)],_0x85a322['qiWxB'],{'where':{'ma_nt0':_0x85a322[_0x35c448(0x1e9)]},'fields':[{'ty_gia0':_0x85a322[_0x35c448(0x38b)]}]});if(_0x8e3041[_0x35c448(0x2cf)])await[_0x8e3041][_0x35c448(0x1b2)](_0x1d5f73[_0x35c448(0x237)],_0x85a322[_0x35c448(0x2bd)],{'where':{'ma_thue':_0x85a322['lgudo']},'fields':[{'thue_suat':_0x85a322[_0x35c448(0x213)]}]});_0x54f438[_0x35c448(0x1bc)][_0x35c448(0x1bb)](_0x36e8d0=>{const _0x3975c6=_0x35c448,_0x1b8556={'mGniW':function(_0x3f7428,_0x536a21,_0x9516c5){const _0x3b7a10=_0x4e0d;return _0x85a322[_0x3b7a10(0x2ae)](_0x3f7428,_0x536a21,_0x9516c5);}};if(_0x4854d8&&_0x4854d8[_0x3975c6(0x3bc)]&&_0x4854d8[_0x3975c6(0x3c8)]&&_0x85a322[_0x3975c6(0x257)](_0x36e8d0[_0x3975c6(0x3bc)],_0x4854d8[_0x3975c6(0x3bc)])){const _0x3b6422=_0x85a322[_0x3975c6(0x2df)][_0x3975c6(0x23c)]('|');let _0x58cfec=0x0;while(!![]){switch(_0x3b6422[_0x58cfec++]){case'0':_0x36e8d0[_0x3975c6(0x1c3)]=utils[_0x3975c6(0x1ec)](_0x85a322[_0x3975c6(0x231)](_0x36e8d0[_0x3975c6(0x1c3)],_0x36e8d0[_0x3975c6(0x3c8)])/_0x4854d8[_0x3975c6(0x3c8)],0x2);continue;case'1':_0x36e8d0[_0x3975c6(0x317)]=utils[_0x3975c6(0x1ec)](_0x85a322[_0x3975c6(0x39e)](_0x85a322[_0x3975c6(0x366)](_0x36e8d0[_0x3975c6(0x317)]||0x0,_0x36e8d0[_0x3975c6(0x3c8)]),_0x4854d8['ty_gia']),0x2);continue;case'2':_0x36e8d0[_0x3975c6(0x326)]=utils[_0x3975c6(0x1ec)](_0x85a322[_0x3975c6(0x3a5)](_0x85a322[_0x3975c6(0x258)](_0x8e3041[_0x3975c6(0x33f)]||0x0,_0x8e3041[_0x3975c6(0x373)]),_0x4854d8[_0x3975c6(0x3c8)]),0x2);continue;case'3':_0x36e8d0[_0x3975c6(0x3bc)]=_0x4854d8[_0x3975c6(0x3bc)];continue;case'4':_0x36e8d0['ty_gia']=_0x4854d8[_0x3975c6(0x3c8)];continue;case'5':_0x36e8d0['gia_ban_le0_qd']=utils[_0x3975c6(0x1ec)](_0x85a322[_0x3975c6(0x1db)](_0x85a322[_0x3975c6(0x2e0)](_0x8e3041[_0x3975c6(0x331)]||0x0,_0x8e3041[_0x3975c6(0x373)]),_0x4854d8[_0x3975c6(0x3c8)]),0x2);continue;}break;}}else _0x85a322[_0x3975c6(0x34c)]===_0x85a322['BtAEv']?(_0x36e8d0[_0x3975c6(0x25f)]=_0x8e3041[_0x3975c6(0x331)]||0x0,_0x36e8d0['gia_ban_buon0_qd']=_0x8e3041['gia_ban_buon0']||0x0):_0x1b8556[_0x3975c6(0x19f)](_0x491e0d,null,_0x488b93);});for(let _0x24648e=0x0;_0x24648e<_0x54f438['giabans'][_0x35c448(0x218)];_0x24648e++){if(_0x85a322['DQwov'](_0x85a322['XgtbD'],_0x35c448(0x254)))return(!_0x1c9534[_0x35c448(0x19b)]||_0x58d1e0[_0x35c448(0x19b)]==_0x4c3c43[_0x35c448(0x19b)])&&(!_0x41b0ce['nh_kh']||(_0x214d98[_0x35c448(0x1e7)]||[])['find'](_0x58c785=>_0x5ef481[_0x35c448(0x39d)]==_0x58c785))&&(!_0x5e4c5a['nh_kh2']||_0x142bf9[_0x35c448(0x342)](_0x396ef0[_0x35c448(0x1c1)][_0x35c448(0x218)],0x0)||(_0x62d63b[_0x35c448(0x1fb)]||[])[_0x35c448(0x20e)](_0x385b34=>_0x50b733['nh_kh2'][_0x35c448(0x34b)](_0x385b34)>=0x0))&&(!_0x4e85e6[_0x35c448(0x236)]||_0x142bf9[_0x35c448(0x270)](_0x4f0bff[_0x35c448(0x236)][_0x35c448(0x218)],0x0)||(_0x403659[_0x35c448(0x1ee)]||[])[_0x35c448(0x20e)](_0x5ce77f=>_0x1814a4[_0x35c448(0x236)]['indexOf'](_0x5ce77f)>=0x0))&&(!_0x6c36e7[_0x35c448(0x2eb)]||_0x142bf9[_0x35c448(0x270)](_0x8ae250['nh_kh4']['length'],0x0)||(_0x19ecaf[_0x35c448(0x1da)]||[])['find'](_0x3e0594=>_0x4b2d8d[_0x35c448(0x2eb)]['indexOf'](_0x3e0594)>=0x0))&&(!_0x21fb8e[_0x35c448(0x3a8)]||_0x29fcb3[_0x35c448(0x3a8)][_0x35c448(0x218)]==0x0||(_0x247b37['nh_kh5_me']||[])[_0x35c448(0x20e)](_0x46c0da=>_0x4e9330[_0x35c448(0x3a8)]['indexOf'](_0x46c0da)>=0x0))&&(!_0x50da26[_0x35c448(0x3b5)]||_0x142bf9[_0x35c448(0x1e6)](_0x48533['ma_tt1'],_0x3e971b[_0x35c448(0x3b5)]))&&(!_0x2e7634['ma_tt2']||_0x142bf9[_0x35c448(0x1e6)](_0x158e5[_0x35c448(0x30e)],_0x4be014[_0x35c448(0x30e)]))&&(!_0x2af8ac['ma_tt3']||_0x142bf9[_0x35c448(0x1be)](_0x3be927[_0x35c448(0x17a)],_0x4a2a7c[_0x35c448(0x17a)]))&&(!_0x4a9379['nh_tt']||(_0x43fda4['nh_tt_me']||[])[_0x35c448(0x20e)](_0x249c1b=>_0x2bbaae['nh_tt']==_0x249c1b))&&(!_0xd6b25d['nh_tt2']||_0x142bf9[_0x35c448(0x1e6)](_0x5c70d4[_0x35c448(0x376)]['length'],0x0)||(_0x4e11e2[_0x35c448(0x26d)]||[])[_0x35c448(0x20e)](_0x5d98f8=>_0x5db834[_0x35c448(0x376)][_0x35c448(0x34b)](_0x5d98f8)>=0x0))&&(!_0x27a053[_0x35c448(0x20f)]||_0x7fc402[_0x35c448(0x20f)][_0x35c448(0x218)]==0x0||(_0x22ca91['nh_tt3_me']||[])[_0x35c448(0x20e)](_0x4848ce=>_0x40f99f[_0x35c448(0x20f)]['indexOf'](_0x4848ce)>=0x0))&&(!_0x591d07['nh_tt4']||_0x142bf9[_0x35c448(0x1e6)](_0x2a1d8c['nh_tt4']['length'],0x0)||(_0x19795d['nh_tt4_me']||[])['find'](_0x23603d=>_0x481fec[_0x35c448(0x2f0)]['indexOf'](_0x23603d)>=0x0))&&(!_0x96cf75[_0x35c448(0x33c)]||_0x142bf9[_0x35c448(0x342)](_0x3d4a38[_0x35c448(0x33c)][_0x35c448(0x218)],0x0)||(_0x40bb2f[_0x35c448(0x2c9)]||[])[_0x35c448(0x20e)](_0x4a0d7d=>_0x224465[_0x35c448(0x33c)][_0x35c448(0x34b)](_0x4a0d7d)>=0x0));else{let _0x49981e=_0x54f438[_0x35c448(0x1bc)][_0x24648e];if(_0x49981e[_0x35c448(0x242)]){if(_0x85a322[_0x35c448(0x2b7)](_0x35c448(0x2d9),_0x35c448(0x2f4))){_0x49981e[_0x35c448(0x287)]=_0x49981e[_0x35c448(0x25f)],_0x49981e[_0x35c448(0x3a0)]=_0x49981e[_0x35c448(0x326)],_0x49981e[_0x35c448(0x31c)]=_0x49981e['gia_ban_le'],_0x49981e[_0x35c448(0x229)]=_0x49981e[_0x35c448(0x317)];if(_0x8e3041[_0x35c448(0x2cf)]){const _0x1feb7f=_0x85a322['RFfib'][_0x35c448(0x23c)]('|');let _0x4083f6=0x0;while(!![]){switch(_0x1feb7f[_0x4083f6++]){case'0':_0x49981e[_0x35c448(0x317)]=utils[_0x35c448(0x1ec)](_0x85a322[_0x35c448(0x231)](_0x49981e[_0x35c448(0x229)],_0x85a322[_0x35c448(0x18d)](0x1,_0x85a322[_0x35c448(0x39e)](_0x8e3041[_0x35c448(0x1c7)],0x64))),0x2);continue;case'1':_0x8e3041['thue_suat']=_0x8e3041[_0x35c448(0x1c7)]||0x0;continue;case'2':_0x49981e['gia_ban_le0_qd']=utils[_0x35c448(0x1ec)](_0x85a322[_0x35c448(0x389)](_0x49981e[_0x35c448(0x287)],_0x85a322[_0x35c448(0x22a)](0x1,_0x85a322['UyTWV'](_0x8e3041['thue_suat'],0x64))),0x2);continue;case'3':_0x49981e[_0x35c448(0x326)]=utils[_0x35c448(0x1ec)](_0x85a322[_0x35c448(0x1d3)](_0x49981e['gia_ban_buon0_qd_ct'],0x1+_0x85a322[_0x35c448(0x2bf)](_0x8e3041[_0x35c448(0x1c7)],0x64)),0x2);continue;case'4':_0x49981e[_0x35c448(0x1c3)]=utils[_0x35c448(0x1ec)](_0x85a322['TpRjc'](_0x49981e['gia_ban_le_ct'],0x1+_0x8e3041[_0x35c448(0x1c7)]/0x64),0x2);continue;}break;}}}else _0xcafb59[_0x35c448(0x385)]=new _0x4ffd7c();}else{if(_0x85a322[_0x35c448(0x205)](_0x85a322[_0x35c448(0x2b6)],_0x35c448(0x378))){_0x49981e['gia_ban_le0_qd_ct']=_0x49981e[_0x35c448(0x25f)],_0x49981e[_0x35c448(0x3a0)]=_0x49981e[_0x35c448(0x326)],_0x49981e[_0x35c448(0x31c)]=_0x49981e['gia_ban_le'],_0x49981e[_0x35c448(0x229)]=_0x49981e['gia_ban_buon'];if(_0x8e3041[_0x35c448(0x2cf)]){if(_0x35c448(0x2db)!==_0x85a322[_0x35c448(0x22e)]){const _0x1e108d=_0x85a322[_0x35c448(0x33d)][_0x35c448(0x23c)]('|');let _0x521631=0x0;while(!![]){switch(_0x1e108d[_0x521631++]){case'0':_0x49981e['gia_ban_buon_ct']=utils[_0x35c448(0x1ec)](_0x49981e[_0x35c448(0x317)]/_0x85a322[_0x35c448(0x1ba)](0x1,_0x8e3041['thue_suat']/0x64),0x2);continue;case'1':_0x49981e[_0x35c448(0x3a0)]=utils['round'](_0x85a322[_0x35c448(0x1a7)](_0x49981e['gia_ban_buon0_qd'],_0x85a322[_0x35c448(0x18d)](0x1,_0x85a322[_0x35c448(0x36f)](_0x8e3041[_0x35c448(0x1c7)],0x64))),0x2);continue;case'2':_0x8e3041[_0x35c448(0x1c7)]=_0x8e3041[_0x35c448(0x1c7)]||0x0;continue;case'3':_0x49981e['gia_ban_le0_qd_ct']=utils[_0x35c448(0x1ec)](_0x85a322[_0x35c448(0x1a2)](_0x49981e[_0x35c448(0x25f)],_0x85a322[_0x35c448(0x183)](0x1,_0x85a322[_0x35c448(0x39e)](_0x8e3041[_0x35c448(0x1c7)],0x64))),0x2);continue;case'4':_0x49981e[_0x35c448(0x31c)]=utils['round'](_0x85a322['aqyQE'](_0x49981e[_0x35c448(0x1c3)],_0x85a322[_0x35c448(0x2c3)](0x1,_0x8e3041['thue_suat']/0x64)),0x2);continue;}break;}}else _0x28d4dc[_0x35c448(0x1a4)]=_0x17aa85[_0x35c448(0x38e)],_0x35ab03[_0x35c448(0x38e)]='',_0x9181ae['phuong_phap_ap_dung']='';}}else _0x2b93f7({'message':_0x344d77[_0x35c448(0x364)]});}delete _0x49981e['gia_ban_chua_thue'],_0x49981e['he_so_qd']=_0x3b732e;if(_0x1d5f73[_0x35c448(0x1ab)]){if(_0x85a322['wSxZb'](_0x85a322[_0x35c448(0x37a)],_0x35c448(0x3a1)))_0x54f438[_0x35c448(0x1bc)][_0x35c448(0x1bb)](_0x7887f7=>{const _0x4cd5e6=_0x35c448,_0x244824=_0x85a322[_0x4cd5e6(0x211)][_0x4cd5e6(0x23c)]('|');let _0x44ac0b=0x0;while(!![]){switch(_0x244824[_0x44ac0b++]){case'0':_0x7887f7[_0x4cd5e6(0x311)]=_0x1d5f73[_0x4cd5e6(0x1ab)];continue;case'1':_0x7887f7['gia_ban_le']=utils[_0x4cd5e6(0x1ec)](_0x85a322[_0x4cd5e6(0x398)](_0x7887f7[_0x4cd5e6(0x1c3)],_0x3b732e),round);continue;case'2':_0x7887f7[_0x4cd5e6(0x287)]=utils[_0x4cd5e6(0x1ec)](_0x85a322[_0x4cd5e6(0x208)](_0x7887f7[_0x4cd5e6(0x287)],_0x3b732e),round);continue;case'3':_0x7887f7[_0x4cd5e6(0x20c)]=_0x3b732e;continue;case'4':_0x7887f7[_0x4cd5e6(0x317)]=utils[_0x4cd5e6(0x1ec)](_0x7887f7[_0x4cd5e6(0x317)]*_0x3b732e,round);continue;case'5':_0x7887f7[_0x4cd5e6(0x31c)]=utils[_0x4cd5e6(0x1ec)](_0x85a322[_0x4cd5e6(0x31a)](_0x7887f7[_0x4cd5e6(0x31c)],_0x3b732e),round);continue;case'6':_0x7887f7[_0x4cd5e6(0x229)]=utils[_0x4cd5e6(0x1ec)](_0x85a322[_0x4cd5e6(0x1d4)](_0x7887f7[_0x4cd5e6(0x229)],_0x3b732e),round);continue;case'7':_0x7887f7[_0x4cd5e6(0x3a0)]=utils[_0x4cd5e6(0x1ec)](_0x85a322['ZxhXe'](_0x7887f7[_0x4cd5e6(0x3a0)],_0x3b732e),round);continue;}break;}});else return(!_0x12dd62[_0x35c448(0x19b)]||_0x85a322[_0x35c448(0x32d)](_0x1c5045[_0x35c448(0x19b)],_0x214878[_0x35c448(0x19b)]))&&(!_0x1de75f[_0x35c448(0x39d)]||(_0x5e9567[_0x35c448(0x1e7)]||[])[_0x35c448(0x20e)](_0x2341da=>_0x52b93f[_0x35c448(0x39d)]==_0x2341da))&&(!_0x109768['nh_kh2']||_0x3ab04a[_0x35c448(0x1c1)][_0x35c448(0x218)]==0x0||(_0x1ee447[_0x35c448(0x1fb)]||[])['find'](_0x15175a=>_0xb5f820[_0x35c448(0x1c1)][_0x35c448(0x34b)](_0x15175a)>=0x0))&&(!_0x8439cd['nh_kh3']||_0x85a322[_0x35c448(0x1cf)](_0x76cd33[_0x35c448(0x236)][_0x35c448(0x218)],0x0)||(_0x1525c8[_0x35c448(0x1ee)]||[])['find'](_0x2e5fa9=>_0x2ed1f2[_0x35c448(0x236)]['indexOf'](_0x2e5fa9)>=0x0))&&(!_0x4ce981['nh_kh4']||_0x85a322[_0x35c448(0x1cf)](_0x85f0eb[_0x35c448(0x2eb)][_0x35c448(0x218)],0x0)||(_0x3a9e3d[_0x35c448(0x1da)]||[])['find'](_0x30bacc=>_0x346d6c['nh_kh4'][_0x35c448(0x34b)](_0x30bacc)>=0x0))&&(!_0x32bb8e[_0x35c448(0x3a8)]||_0x5d7d1d['nh_kh5']['length']==0x0||(_0x22c3ca[_0x35c448(0x17f)]||[])[_0x35c448(0x20e)](_0x4c5d19=>_0x4fb498[_0x35c448(0x3a8)]['indexOf'](_0x4c5d19)>=0x0))&&(!_0x4f1c0b[_0x35c448(0x3b5)]||_0x85a322[_0x35c448(0x202)](_0x498172[_0x35c448(0x3b5)],_0x4f56a8[_0x35c448(0x3b5)]))&&(!_0x3b2c70[_0x35c448(0x30e)]||_0x85a322[_0x35c448(0x249)](_0x7c3448['ma_tt2'],_0x38dc47[_0x35c448(0x30e)]))&&(!_0x5f62a6[_0x35c448(0x17a)]||_0xc47004[_0x35c448(0x17a)]==_0x169a4a[_0x35c448(0x17a)])&&(!_0x1e2456[_0x35c448(0x3b8)]||(_0x40119f['nh_tt_me']||[])['find'](_0xe8acc8=>_0x1dcb55[_0x35c448(0x3b8)]==_0xe8acc8))&&(!_0xf50e0e[_0x35c448(0x376)]||_0x85a322['bKBJB'](_0x466859[_0x35c448(0x376)][_0x35c448(0x218)],0x0)||(_0x576dee[_0x35c448(0x26d)]||[])[_0x35c448(0x20e)](_0x4a7440=>_0x2e8b36[_0x35c448(0x376)]['indexOf'](_0x4a7440)>=0x0))&&(!_0x2c4a6c[_0x35c448(0x20f)]||_0x85a322[_0x35c448(0x2e6)](_0x441961[_0x35c448(0x20f)][_0x35c448(0x218)],0x0)||(_0x53a13d['nh_tt3_me']||[])[_0x35c448(0x20e)](_0x3679fe=>_0x1d9567['nh_tt3']['indexOf'](_0x3679fe)>=0x0))&&(!_0x247d50[_0x35c448(0x2f0)]||_0x19e61f[_0x35c448(0x2f0)][_0x35c448(0x218)]==0x0||(_0x29e930[_0x35c448(0x2f5)]||[])['find'](_0x2aaf50=>_0x4167b8['nh_tt4'][_0x35c448(0x34b)](_0x2aaf50)>=0x0))&&(!_0xe2dda5[_0x35c448(0x33c)]||_0x85a322[_0x35c448(0x202)](_0x360461[_0x35c448(0x33c)][_0x35c448(0x218)],0x0)||(_0x534f0f['nh_tt5_me']||[])[_0x35c448(0x20e)](_0x36905e=>_0x56bf80[_0x35c448(0x33c)]['indexOf'](_0x36905e)>=0x0));}}}let _0x26dd70=_0x54f438[_0x35c448(0x1bc)]['filter'](_0x31f583=>_0x31f583['sl_tu']<=_0x1d5f73[_0x35c448(0x28e)]&&(!_0x31f583['sl_den']||_0x31f583[_0x35c448(0x35a)]>_0x1d5f73[_0x35c448(0x28e)])&&(_0x31f583[_0x35c448(0x21d)]<=_0x1d5f73['t_so_luong']&&(!_0x31f583[_0x35c448(0x1b4)]||_0x31f583[_0x35c448(0x1b4)]>_0x1d5f73[_0x35c448(0x36d)]))&&(!_0x31f583[_0x35c448(0x30f)]||_0x31f583[_0x35c448(0x30f)]<=_0x1d5f73[_0x35c448(0x3c6)])&&(!_0x31f583[_0x35c448(0x312)]||_0x31f583[_0x35c448(0x312)]>_0x1d5f73[_0x35c448(0x3c6)])&&(!_0x31f583[_0x35c448(0x239)]||_0x31f583[_0x35c448(0x239)]<=_0x1d5f73[_0x35c448(0x3c3)])&&(!_0x31f583[_0x35c448(0x313)]||_0x31f583[_0x35c448(0x313)]>_0x1d5f73[_0x35c448(0x3c3)])),_0xce2c24=_0x85a322[_0x35c448(0x351)](_0x26dd70[_0x35c448(0x218)],0x0)?_0x26dd70[0x0]:_0x54f438['giabans'][0x0]||{};_0x54f438[_0x35c448(0x298)]={'gia_ban_le0_qd':_0xce2c24['gia_ban_le0_qd'],'gia_ban_buon0_qd':_0xce2c24[_0x35c448(0x326)],'gia_ban_le':_0xce2c24['gia_ban_le'],'gia_ban_buon':_0xce2c24[_0x35c448(0x317)],'gia_ban_le0_qd_ct':_0xce2c24[_0x35c448(0x287)],'gia_ban_buon0_qd_ct':_0xce2c24[_0x35c448(0x3a0)],'gia_ban_le_ct':_0xce2c24[_0x35c448(0x31c)],'gia_ban_buon_ct':_0xce2c24['gia_ban_buon_ct'],'ma_nt':_0xce2c24[_0x35c448(0x3bc)],'ty_gia':_0xce2c24[_0x35c448(0x3c8)],'ma_thue':_0x8e3041[_0x35c448(0x2cf)],'thue_suat':_0x8e3041[_0x35c448(0x1c7)],'prices':_0x54f438[_0x35c448(0x1bc)]};}}if(_0x85a322['klscE'](_0x1d5f73[_0x35c448(0x1e4)],![])){_0x54f438[_0x35c448(0x3bb)]=_0x54f438[_0x35c448(0x3ad)],_0x54f438[_0x35c448(0x3bb)][_0x35c448(0x1bb)](_0x264f50=>{const _0x2ac396=_0x35c448;_0x85a322[_0x2ac396(0x23a)]===_0x85a322[_0x2ac396(0x23a)]?_0x264f50[_0x2ac396(0x210)]=_0x264f50['_id']:_0x39a4a7['giabans']=[..._0x251f25[_0x2ac396(0x1bc)],{'gia_ban_le':_0x2f1731[_0x2ac396(0x331)]||_0x5765af[_0x2ac396(0x1c3)]||0x0,'gia_ban_buon':_0x202984[_0x2ac396(0x33f)]||_0x1d4532[_0x2ac396(0x317)]||0x0,'ma_nt':_0x5a544f[_0x2ac396(0x198)],'gia_ban_chua_thue':_0x42d871[_0x2ac396(0x242)],'t_sl_tu':0x0,'t_sl_den':0x0,'sl_tu':0x0,'sl_den':_0x589f8f[_0x2ac396(0x1bc)]['length']>0x0?_0x142bf9['ZaCEm'](_0x4d1a30[_0x2ac396(0x1bc)][_0x2ac396(0x25e)]((_0x2bd2a5,_0x41cf8d)=>_0x2bd2a5['sl_tu']-_0x41cf8d['sl_tu'])[0x0][_0x2ac396(0x224)],0.001):0x0}];}),_0x54f438[_0x35c448(0x298)][_0x35c448(0x3bb)]=_0x54f438['discount'][_0x35c448(0x25e)](function(_0x146ae2,_0x11dd5a){const _0x28d781=_0x35c448;if(_0x142bf9[_0x28d781(0x261)](_0x11dd5a['ap_dung_lan_mua_tu_thu']||0x0,_0x146ae2[_0x28d781(0x1f4)]||0x0))return 0x1;return _0x142bf9[_0x28d781(0x190)](_0x11dd5a[_0x28d781(0x1f6)],_0x146ae2['ty_le_ck']);});let _0x15f8b=[];_0x54f438[_0x35c448(0x298)]['discount']['forEach'](_0x222504=>{const _0x3a52a8=_0x35c448;if(_0x85a322[_0x3a52a8(0x3bf)](_0x85a322[_0x3a52a8(0x19e)],_0x85a322['RJXMk'])){const _0x502cad=_0x133d97['filter'](_0x44d7d1=>(_0x44d7d1['ma_nhom']||'')==_0x2936c7)[_0x3a52a8(0x300)](_0x4c1e79=>_0x4c1e79['ck']);return{'ma_nhom':_0x217199,'cks':_0x502cad};}else _0x222504['tien_ck']&&_0x54f438['price'][_0x3a52a8(0x31c)]&&(_0x222504[_0x3a52a8(0x1f6)]=_0x85a322[_0x3a52a8(0x34a)](_0x85a322[_0x3a52a8(0x1db)](_0x222504['tien_ck'],_0x54f438[_0x3a52a8(0x298)]['gia_ban_le_ct']),0x64)),_0x222504[_0x3a52a8(0x224)]=_0x222504[_0x3a52a8(0x224)]||0x0,_0x222504[_0x3a52a8(0x35a)]=_0x222504['sl_den']||0x0,_0x222504[_0x3a52a8(0x39b)]=_0x222504[_0x3a52a8(0x39b)]||0x0,_0x222504[_0x3a52a8(0x2a2)]=_0x222504['gt_hd_den']||0x0,_0x15f8b[_0x3a52a8(0x232)](_0x222504);}),_0x54f438[_0x35c448(0x298)][_0x35c448(0x3bb)]=_0x15f8b;let _0x5c6079=_0x1d5f73['t_gt_hd']||0x0,_0x1c4b4f=_0x1d5f73['t_tien_ntt']||0x0,_0x4d96bf=_0x1d5f73[_0x35c448(0x3c6)]||0x0,_0x2d4589=_0x15f8b[_0x35c448(0x220)](_0x19b9e6=>{const _0x403368=_0x35c448;if(_0x142bf9[_0x403368(0x1c6)](_0x142bf9[_0x403368(0x3a6)],_0x142bf9[_0x403368(0x2fa)])){const _0x5d5105={'hFdXt':function(_0x2a18ef,_0x5418de){return _0x2a18ef(_0x5418de);}};let _0x16b48c=_0x4a8355[_0x403368(0x2dc)](_0x2016f6);_0x16b48c[_0x403368(0x34d)]={'$in':['',null]},_0x16b48c[_0x403368(0x1c5)]={'$in':['',null,_0x42924f[_0x403368(0x1c5)]]},_0x16b48c[_0x403368(0x3be)]={'$in':['',null,..._0x3c2e42[_0x403368(0x3be)]]},_0x16b48c[_0x403368(0x285)]={'$in':['',null,..._0x431b60['ma_nvt3']]},_0x16b48c[_0x403368(0x386)]={'$in':['',null,..._0x25a888['ma_nvt4']]},_0x16b48c['ma_danh_muc']={'$in':['',null,_0x2d8089[_0x403368(0x18e)]]},_0x1c0ae3[_0x403368(0x20e)](_0x16b48c)['sort'](_0x5a379b)['lean']()['then'](async _0x3413be=>{_0x1f7b88(null,_0x3413be);})[_0x403368(0x36b)](_0x21297b=>{const _0x46c8c3=_0x403368;_0x5d5105[_0x46c8c3(0x2ca)](_0x479b4e,{'message':_0x21297b[_0x46c8c3(0x364)]});});}else return(!_0x19b9e6[_0x403368(0x39b)]||_0x142bf9['eyYOn'](_0x19b9e6[_0x403368(0x39b)],_0x5c6079))&&(!_0x19b9e6['gt_hd_den']||_0x142bf9['fizAw'](_0x19b9e6['gt_hd_den'],_0x5c6079))&&!_0x19b9e6[_0x403368(0x18b)]&&_0x142bf9[_0x403368(0x1d7)](_0x1d5f73[_0x403368(0x28e)],_0x19b9e6[_0x403368(0x224)])&&(!_0x19b9e6['sl_den']||_0x142bf9[_0x403368(0x38f)](_0x19b9e6[_0x403368(0x35a)],_0x1d5f73[_0x403368(0x28e)]))&&(!_0x19b9e6[_0x403368(0x21d)]||_0x142bf9['eyYOn'](_0x19b9e6['t_sl_tu'],_0x1d5f73[_0x403368(0x36d)]))&&(!_0x19b9e6[_0x403368(0x1b4)]||_0x142bf9[_0x403368(0x2e8)](_0x19b9e6[_0x403368(0x1b4)],_0x1d5f73[_0x403368(0x36d)]))&&(!_0x19b9e6['t_sl_ntt_tu']||_0x142bf9[_0x403368(0x243)](_0x19b9e6['t_sl_ntt_tu'],_0x4d96bf))&&(!_0x19b9e6[_0x403368(0x312)]||_0x142bf9[_0x403368(0x2a1)](_0x19b9e6[_0x403368(0x312)],_0x4d96bf))&&(!_0x19b9e6[_0x403368(0x239)]||_0x19b9e6[_0x403368(0x239)]<=_0x1c4b4f)&&(!_0x19b9e6[_0x403368(0x313)]||_0x142bf9[_0x403368(0x21e)](_0x19b9e6['t_tien_ntt_den'],_0x1c4b4f));}),_0x46be6a;_0x1d5f73['id_cs_ck']&&(_0x85a322[_0x35c448(0x1cb)](_0x85a322[_0x35c448(0x2f1)],_0x85a322[_0x35c448(0x26a)])?(_0x26b76a=_0x2f9e4['ty_le_qd']||0x1,_0x5c9734['mau']&&_0x4440cd['tu']&&(_0x4ea8bc=_0x85a322[_0x35c448(0x1d6)](_0x2a2bca['tu'],_0x30e351['mau']))):_0x46be6a=_0x2d4589['find'](_0x2a41b9=>_0x2a41b9[_0x35c448(0x2cb)][_0x35c448(0x191)]()==_0x1d5f73[_0x35c448(0x1d8)]));if(!_0x46be6a&&_0x2d4589[_0x35c448(0x218)]>0x0){let _0x47d46e=[...new Set(_0x2d4589[_0x35c448(0x300)](_0x3fb328=>_0x3fb328[_0x35c448(0x1a4)]||''))]['map'](_0x25e73c=>{const _0x324006=_0x35c448,_0x4c87bd={'hsVkC':function(_0x52d0c6,_0x229d0f){const _0x1c7e1d=_0x4e0d;return _0x142bf9[_0x1c7e1d(0x2ce)](_0x52d0c6,_0x229d0f);}};if(_0x142bf9[_0x324006(0x1e3)](_0x142bf9['LLqkn'],_0x142bf9[_0x324006(0x1f8)]))return{'ma_nhom':_0x25e73c,'cks':_0x2d4589[_0x324006(0x220)](_0x80ba80=>(_0x80ba80[_0x324006(0x1a4)]||'')==(_0x25e73c||''))};else _0x4c87bd[_0x324006(0x32e)](_0x17ebe1,_0x5df753);});_0x46be6a=await _0x85a322[_0x35c448(0x3a3)](calcDefaultDiscount,_0x1d5f73[_0x35c448(0x237)],_0x47d46e);}if(_0x46be6a){if(_0x85a322[_0x35c448(0x1b3)](_0x35c448(0x2c0),_0x85a322['XTkeu']))return _0x142bf9[_0x35c448(0x2f8)](_0x26fddd,_0x57c547);else{let _0x2298db={'sl_tu':_0x46be6a[_0x35c448(0x224)],'ty_le_ck':_0x46be6a[_0x35c448(0x1f6)]||0x0,'tien_ck':_0x46be6a[_0x35c448(0x255)],'gt_hd_tu':_0x46be6a[_0x35c448(0x39b)],'gt_hd_den':_0x46be6a['gt_hd_den'],'sl_ap_dung':_0x46be6a[_0x35c448(0x1af)],'so_tien_max':_0x46be6a[_0x35c448(0x228)],'id_cs':_0x46be6a[_0x35c448(0x2cb)]};underscore['extend'](_0x54f438[_0x35c448(0x298)],_0x2298db),_0x54f438[_0x35c448(0x182)]=_0x54f438[_0x35c448(0x255)];if(!_0x54f438['tien_ck_tmp'])_0x54f438['tien_ck_tmp']=utils[_0x35c448(0x1ec)](_0x85a322[_0x35c448(0x366)](_0x54f438[_0x35c448(0x298)][_0x35c448(0x31c)],_0x54f438[_0x35c448(0x1f6)])/0x64,0x2);_0x54f438[_0x35c448(0x298)][_0x35c448(0x2b9)]=Math['max'](0x0,_0x85a322['azLyK'](_0x54f438[_0x35c448(0x298)]['gia_ban_le'],_0x54f438[_0x35c448(0x182)]));}}let _0x1178a6=underscore[_0x35c448(0x220)](_0x54f438[_0x35c448(0x3bb)],_0xc83a7c=>{const _0x39f8f8=_0x35c448;return _0x142bf9['MjkVO'](_0xc83a7c[_0x39f8f8(0x224)],0x1);})[_0x35c448(0x25e)](function(_0x441282,_0x4a185){const _0x580448=_0x35c448;return _0x85a322[_0x580448(0x332)](_0x4a185[_0x580448(0x1f6)],_0x441282['ty_le_ck']);});if(_0x85a322[_0x35c448(0x32a)](_0x1178a6[_0x35c448(0x218)],0x0))_0x54f438[_0x35c448(0x298)][_0x35c448(0x3a7)]=_0x1178a6;}if(_0x85a322[_0x35c448(0x234)](_0x1d5f73[_0x35c448(0x262)],![])){_0x54f438['promotion']=_0x54f438[_0x35c448(0x1f0)],_0x54f438['promotion'][_0x35c448(0x1bb)](_0x58b041=>{const _0x46b9e9=_0x35c448;_0x85a322[_0x46b9e9(0x1cb)](_0x85a322['Eebkg'],_0x85a322[_0x46b9e9(0x2ec)])?_0x1efa3d=0x0:_0x58b041['id_cs']=_0x58b041[_0x46b9e9(0x2cb)];});_0x54f438[_0x35c448(0x1fc)]&&(_0x85a322[_0x35c448(0x1fe)](_0x35c448(0x1bf),_0x35c448(0x3c0))?_0x85a322[_0x35c448(0x2d0)](_0x37746e,null,_0x131c30):_0x54f438[_0x35c448(0x1fc)][_0x35c448(0x1bb)](_0x21cbd7=>{const _0x19924a=_0x35c448,_0x51ef20=_0x85a322[_0x19924a(0x274)][_0x19924a(0x23c)]('|');let _0x29108d=0x0;while(!![]){switch(_0x51ef20[_0x29108d++]){case'0':delete _0x21cbd7[_0x19924a(0x336)];continue;case'1':delete _0x21cbd7[_0x19924a(0x3bd)];continue;case'2':delete _0x21cbd7[_0x19924a(0x185)];continue;case'3':delete _0x21cbd7[_0x19924a(0x26f)];continue;case'4':delete _0x21cbd7['date_created'];continue;case'5':delete _0x21cbd7[_0x19924a(0x2a9)];continue;case'6':delete _0x21cbd7[_0x19924a(0x237)];continue;case'7':delete _0x21cbd7[_0x19924a(0x230)];continue;case'8':delete _0x21cbd7['user_updated'];continue;case'9':delete _0x21cbd7[_0x19924a(0x343)];continue;case'10':delete _0x21cbd7[_0x19924a(0x2e3)];continue;case'11':delete _0x21cbd7[_0x19924a(0x38c)];continue;}break;}}));_0x54f438[_0x35c448(0x298)]['promotion']=_0x54f438[_0x35c448(0x1fc)]||[];if(_0x1d5f73[_0x35c448(0x297)])_0x54f438[_0x35c448(0x298)][_0x35c448(0x1fc)]=_0x54f438[_0x35c448(0x298)][_0x35c448(0x1fc)][_0x35c448(0x220)](_0x3821d7=>!_0x3821d7[_0x35c448(0x269)]||_0x3821d7['chi_su_dung_cho_ct']['toUpperCase']()[_0x35c448(0x23c)](',')[_0x35c448(0x34b)](_0x1d5f73[_0x35c448(0x297)][_0x35c448(0x20d)]())>=0x0),_0x54f438[_0x35c448(0x298)][_0x35c448(0x1fc)]=_0x54f438[_0x35c448(0x298)][_0x35c448(0x1fc)]['filter'](_0x45791a=>!_0x45791a['khong_su_dung_cho_ct']||_0x45791a[_0x35c448(0x245)][_0x35c448(0x20d)]()['split'](',')[_0x35c448(0x34b)](_0x1d5f73['ma_ct'][_0x35c448(0x20d)]())<0x0);else{if(_0x85a322[_0x35c448(0x357)](_0x85a322[_0x35c448(0x1dc)],'VLvze')){const _0x317e3a=_0x85a322[_0x35c448(0x246)][_0x35c448(0x23c)]('|');let _0x456715=0x0;while(!![]){switch(_0x317e3a[_0x456715++]){case'0':_0x30ae88[_0x35c448(0x1b4)]=_0x7b62ff['t_sl_den']||0x0;continue;case'1':_0x2f66ee[_0x35c448(0x224)]=_0x2f7160[_0x35c448(0x224)]||0x0;continue;case'2':_0x312854['t_sl_tu']=_0x4e35ba['t_sl_tu']||0x0;continue;case'3':_0x21806d[_0x35c448(0x35a)]=_0x39860c['sl_den']||0x0;continue;case'4':!_0x4666d7[_0x35c448(0x20e)](_0x1d019e=>_0x1d019e[_0x35c448(0x224)]===_0x34bd7c['sl_tu']&&_0x1d019e[_0x35c448(0x35a)]===_0x338562['sl_den']&&_0x1d019e['t_sl_tu']===_0x5014c8[_0x35c448(0x21d)]&&_0x1d019e[_0x35c448(0x1b4)]===_0x521967[_0x35c448(0x1b4)])&&_0x4cdaec[_0x35c448(0x232)](_0x111e5a);continue;}break;}}else _0x54f438['price'][_0x35c448(0x1fc)]=_0x54f438[_0x35c448(0x298)][_0x35c448(0x1fc)][_0x35c448(0x220)](_0xb3a1dd=>!_0xb3a1dd['chi_su_dung_cho_ct']&&!_0xb3a1dd['khong_su_dung_cho_ct']);}for(let _0x529ce3=0x0;_0x85a322[_0x35c448(0x374)](_0x529ce3,_0x54f438[_0x35c448(0x298)][_0x35c448(0x1fc)][_0x35c448(0x218)]);_0x529ce3++){if(_0x85a322[_0x35c448(0x24e)](_0x85a322[_0x35c448(0x1ea)],_0x85a322['kTVCD']))_0x142bf9['Qokxf'](_0x4bacbd,{'message':_0x100a4a[_0x35c448(0x364)]});else{const _0x2d09cd=_0x54f438[_0x35c448(0x298)][_0x35c448(0x1fc)][_0x529ce3];await(_0x2d09cd['details_km']||[])[_0x35c448(0x1b2)](_0x1d5f73[_0x35c448(0x237)],dmvt,{'where':_0x85a322[_0x35c448(0x2b2)],'fields':[_0x35c448(0x32f),_0x85a322[_0x35c448(0x253)]]}),await(_0x2d09cd[_0x35c448(0x2d5)]||[])[_0x35c448(0x220)](_0x34d3f1=>_0x34d3f1['ma_tt1'])['asyncJoinModel2'](_0x1d5f73['id_app'],_0x85a322[_0x35c448(0x1cd)],{'where':_0x1f7957=>{const _0x2a7966=_0x35c448;return{'ma_vt':_0x1f7957['ma_vt'],'ma_tt':_0x1f7957[_0x2a7966(0x3b5)],'loai_tt':'1'};},'setFields':(_0x193631,_0x3ba080)=>{const _0x39e9a4=_0x35c448;_0x193631[_0x39e9a4(0x216)]=_0x3ba080;}});}}let _0x2b953e=_0x54f438['price'][_0x35c448(0x1fc)]['filter'](_0x331a48=>_0x331a48['details_km']&&_0x331a48[_0x35c448(0x2d5)][_0x35c448(0x218)]>0x0&&_0x331a48[_0x35c448(0x224)]<=_0x1d5f73['so_luong']&&(!_0x331a48[_0x35c448(0x35a)]||_0x331a48[_0x35c448(0x35a)]>=_0x1d5f73[_0x35c448(0x28e)]||_0x331a48['sl_den']===_0x331a48[_0x35c448(0x224)])&&(!_0x331a48[_0x35c448(0x21d)]||_0x331a48[_0x35c448(0x21d)]<=_0x1d5f73[_0x35c448(0x36d)])&&(!_0x331a48[_0x35c448(0x1b4)]||_0x331a48[_0x35c448(0x1b4)]>_0x1d5f73['t_so_luong'])&&(!_0x331a48[_0x35c448(0x30f)]||_0x331a48[_0x35c448(0x30f)]<=_0x1d5f73[_0x35c448(0x3c6)])&&(!_0x331a48[_0x35c448(0x312)]||_0x331a48[_0x35c448(0x312)]>_0x1d5f73[_0x35c448(0x3c6)])&&(!_0x331a48[_0x35c448(0x239)]||_0x331a48['t_tien_ntt_tu']<=_0x1d5f73[_0x35c448(0x3c3)])&&(!_0x331a48['t_tien_ntt_den']||_0x331a48['t_tien_ntt_den']>_0x1d5f73[_0x35c448(0x3c3)])),_0xeccb01;_0x1d5f73[_0x35c448(0x210)]&&(_0x85a322[_0x35c448(0x333)](_0x85a322[_0x35c448(0x17c)],_0x85a322[_0x35c448(0x380)])?_0xeccb01=_0x2b953e[_0x35c448(0x20e)](_0x45ccc1=>_0x45ccc1[_0x35c448(0x2cb)][_0x35c448(0x191)]()==_0x1d5f73[_0x35c448(0x210)]):_0x13248e['nh_kh4_me']=[]);if(!_0xeccb01&&_0x85a322['eqPbb'](_0x2b953e['length'],0x0)){_0x2b953e[_0x35c448(0x1bb)](_0x12b599=>{const _0x62009e=_0x35c448;if(_0x85a322[_0x62009e(0x29c)](_0x85a322[_0x62009e(0x186)],_0x85a322[_0x62009e(0x29a)]))_0x12b599[_0x62009e(0x21f)]=(_0x12b599[_0x62009e(0x2d5)]||[])['map'](_0x25d22b=>_0x25d22b[_0x62009e(0x353)]||0x0)[_0x62009e(0x235)]((_0x5ca6fa,_0x16c883)=>_0x5ca6fa+_0x16c883,0x0);else{_0x2186a7[_0x62009e(0x287)]=_0x3061eb[_0x62009e(0x25f)],_0x350208[_0x62009e(0x3a0)]=_0x1655bc[_0x62009e(0x326)],_0x42c875[_0x62009e(0x31c)]=_0xc2375d[_0x62009e(0x1c3)],_0x4c160e[_0x62009e(0x229)]=_0x77e258[_0x62009e(0x317)];if(_0x7fac71[_0x62009e(0x2cf)]){const _0x133f03=_0x62009e(0x2bc)['split']('|');let _0x2cb030=0x0;while(!![]){switch(_0x133f03[_0x2cb030++]){case'0':_0x2cffc3['thue_suat']=_0x1c5a9c[_0x62009e(0x1c7)]||0x0;continue;case'1':_0xfed367[_0x62009e(0x3a0)]=_0x50ddb9[_0x62009e(0x1ec)](_0x142bf9[_0x62009e(0x19d)](_0x2e763b['gia_ban_buon0_qd'],_0x142bf9[_0x62009e(0x1ca)](0x1,_0x142bf9[_0x62009e(0x2fe)](_0x397cb7['thue_suat'],0x64))),0x2);continue;case'2':_0xb4330a[_0x62009e(0x287)]=_0x33aba7[_0x62009e(0x1ec)](_0x142bf9[_0x62009e(0x19d)](_0x2b7fed['gia_ban_le0_qd'],_0x142bf9[_0x62009e(0x1ca)](0x1,_0x142bf9[_0x62009e(0x327)](_0x2efe2f[_0x62009e(0x1c7)],0x64))),0x2);continue;case'3':_0x1f715b[_0x62009e(0x229)]=_0x2aedfb[_0x62009e(0x1ec)](_0x40d103['gia_ban_buon']/_0x142bf9[_0x62009e(0x2ad)](0x1,_0x142bf9[_0x62009e(0x19d)](_0x4184bf[_0x62009e(0x1c7)],0x64)),0x2);continue;case'4':_0x3317bf[_0x62009e(0x31c)]=_0x3fce36[_0x62009e(0x1ec)](_0x142bf9[_0x62009e(0x19d)](_0x100b26[_0x62009e(0x1c3)],_0x142bf9[_0x62009e(0x329)](0x1,_0x2c524e[_0x62009e(0x1c7)]/0x64)),0x2);continue;}break;}}}});let _0x3a1f83=[...new Set(_0x2b953e[_0x35c448(0x300)](_0x220909=>_0x220909['ma_nhom']||''))][_0x35c448(0x300)](_0x5b16cb=>{const _0x5dbf1b=_0x35c448,_0x5b5516={'iDjIN':_0x142bf9['iczdL'],'xIRAy':function(_0x2131ee,_0x3b2d37){const _0xc2cfca=_0x4e0d;return _0x142bf9[_0xc2cfca(0x1b7)](_0x2131ee,_0x3b2d37);}};if(_0x142bf9[_0x5dbf1b(0x188)](_0x142bf9[_0x5dbf1b(0x387)],_0x142bf9[_0x5dbf1b(0x387)]))return{'ma_nhom':_0x5b16cb,'cks':_0x2b953e[_0x5dbf1b(0x220)](_0x1e8625=>(_0x1e8625[_0x5dbf1b(0x1a4)]||'')==_0x5b16cb)};else{const _0x4ee963=_0x5b5516['iDjIN'][_0x5dbf1b(0x23c)]('|');let _0x369848=0x0;while(!![]){switch(_0x4ee963[_0x369848++]){case'0':_0x2ebe0c[_0x5dbf1b(0x232)](_0x333bc0);continue;case'1':_0x212147[_0x5dbf1b(0x39b)]=_0xd5108[_0x5dbf1b(0x39b)]||0x0;continue;case'2':_0xed818b[_0x5dbf1b(0x2a2)]=_0x49b651['gt_hd_den']||0x0;continue;case'3':_0x2d6199[_0x5dbf1b(0x224)]=_0x402772['sl_tu']||0x0;continue;case'4':_0x28a275['tien_ck']&&_0xf0995f['price']['gia_ban_le_ct']&&(_0x4756c8[_0x5dbf1b(0x1f6)]=_0x5b5516[_0x5dbf1b(0x2d8)](_0x2ec86f[_0x5dbf1b(0x255)]/_0x4d2292['price'][_0x5dbf1b(0x31c)],0x64));continue;case'5':_0x2226f3['sl_den']=_0x51e28d[_0x5dbf1b(0x35a)]||0x0;continue;}break;}}});_0xeccb01=await _0x85a322[_0x35c448(0x3a3)](calcDefaultPromotion,_0x1d5f73[_0x35c448(0x237)],_0x3a1f83);}_0x54f438['price'][_0x35c448(0x29f)]=_0xeccb01;}_0x85a322['eHDsc'](_0x19a636,null,_0x54f438[_0x35c448(0x298)]);}});};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const getGiaban=require(
|
|
1
|
+
const _0x47b6d7=_0x51a3;(function(_0x2cfdcd,_0x4f6d56){const _0x51e5bb=_0x51a3,_0x40f59a=_0x2cfdcd();while(!![]){try{const _0x23ca66=parseInt(_0x51e5bb(0xa9))/0x1+parseInt(_0x51e5bb(0xb0))/0x2+parseInt(_0x51e5bb(0x9b))/0x3+-parseInt(_0x51e5bb(0xa2))/0x4*(-parseInt(_0x51e5bb(0xad))/0x5)+parseInt(_0x51e5bb(0xa1))/0x6*(parseInt(_0x51e5bb(0x9c))/0x7)+-parseInt(_0x51e5bb(0x9f))/0x8+-parseInt(_0x51e5bb(0xae))/0x9*(parseInt(_0x51e5bb(0xa7))/0xa);if(_0x23ca66===_0x4f6d56)break;else _0x40f59a['push'](_0x40f59a['shift']());}catch(_0x35f65e){_0x40f59a['push'](_0x40f59a['shift']());}}}(_0x3692,0x3b918));function _0x3692(){const _0x2bbfdd=['B25lwNy','C2vHCMnO','nZGWmtGZEuXOvvr0','ndi3mfHyzgf4AG','Dg9tDhjPBMC','yxbWBhK','mJuYmdiXnNDsvKP1uW','y29UC3rYDwn0B3i','mJuWohjqANnHvG','nhfvD0rTvG','v2TxzvG','BxfSrfe','zxHWB3j0CW','wMPIDKu','mtaXmZG3mZb3zwDKDuK','A3nTCwm','mZiYntu4tLrYCvLT','kcGOlISPkYKRksSK','C0PgEKG','ALfLDvq','mJi3mZi5nvrmwfbvwq','owHvq1Lvua','sNjrzxm','ntyXmJy4ALL2BK9c'];_0x3692=function(){return _0x2bbfdd;};return _0x3692();}const _0x2cfc0a=(function(){const _0x3874b6=_0x51a3,_0x14d4ac={'WkWeX':function(_0x32ab84,_0x1483b9){return _0x32ab84===_0x1483b9;},'JrQes':_0x3874b6(0xa4)};let _0x38b424=!![];return function(_0x13de6c,_0x294a46){const _0xf35caf=_0x38b424?function(){const _0x615b74=_0x51a3;if(_0x14d4ac[_0x615b74(0xa3)](_0x14d4ac[_0x615b74(0xaf)],_0x14d4ac[_0x615b74(0xaf)])){if(_0x294a46){const _0x3b32a6=_0x294a46[_0x615b74(0x9e)](_0x13de6c,arguments);return _0x294a46=null,_0x3b32a6;}}else{const _0x6983eb=_0x471441[_0x615b74(0x9e)](_0x3f6b39,arguments);return _0xf55d19=null,_0x6983eb;}}:function(){};return _0x38b424=![],_0xf35caf;};}()),_0x3f1dc4=_0x2cfc0a(this,function(){const _0xb6165d=_0x51a3,_0x1be4e1={'onKZv':_0xb6165d(0xaa)};return _0x3f1dc4[_0xb6165d(0x9d)]()['search'](_0x1be4e1[_0xb6165d(0x99)])[_0xb6165d(0x9d)]()[_0xb6165d(0xa0)](_0x3f1dc4)[_0xb6165d(0x9a)](_0x1be4e1[_0xb6165d(0x99)]);});function _0x51a3(_0x1e5cac,_0x2ea48f){const _0x9dbf6d=_0x3692();return _0x51a3=function(_0x3f1dc4,_0x2cfc0a){_0x3f1dc4=_0x3f1dc4-0x99;let _0x369235=_0x9dbf6d[_0x3f1dc4];if(_0x51a3['EwXbAl']===undefined){var _0x51a35f=function(_0x486c19){const _0x44320b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2abfc0='',_0x27f0c9='',_0x71d0ab=_0x2abfc0+_0x51a35f;for(let _0x4e4fc9=0x0,_0x3bdbe1,_0xf5fded,_0x1c0160=0x0;_0xf5fded=_0x486c19['charAt'](_0x1c0160++);~_0xf5fded&&(_0x3bdbe1=_0x4e4fc9%0x4?_0x3bdbe1*0x40+_0xf5fded:_0xf5fded,_0x4e4fc9++%0x4)?_0x2abfc0+=_0x71d0ab['charCodeAt'](_0x1c0160+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3bdbe1>>(-0x2*_0x4e4fc9&0x6)):_0x4e4fc9:0x0){_0xf5fded=_0x44320b['indexOf'](_0xf5fded);}for(let _0x125be7=0x0,_0xc40165=_0x2abfc0['length'];_0x125be7<_0xc40165;_0x125be7++){_0x27f0c9+='%'+('00'+_0x2abfc0['charCodeAt'](_0x125be7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x27f0c9);};_0x51a3['ykGcTq']=_0x51a35f,_0x1e5cac=arguments,_0x51a3['EwXbAl']=!![];}const _0x9fa771=_0x9dbf6d[0x0],_0x491655=_0x3f1dc4+_0x9fa771,_0x2961e5=_0x1e5cac[_0x491655];if(!_0x2961e5){const _0x2d9e6c=function(_0x224ccc){this['wKTnNo']=_0x224ccc,this['kolgpH']=[0x1,0x0,0x0],this['xxzQDo']=function(){return'newState';},this['rkmQZs']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['MWRGrV']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2d9e6c['prototype']['rrrgMr']=function(){const _0x254b23=new RegExp(this['rkmQZs']+this['MWRGrV']),_0x4fa6ce=_0x254b23['test'](this['xxzQDo']['toString']())?--this['kolgpH'][0x1]:--this['kolgpH'][0x0];return this['DJfxbx'](_0x4fa6ce);},_0x2d9e6c['prototype']['DJfxbx']=function(_0x3c6da9){if(!Boolean(~_0x3c6da9))return _0x3c6da9;return this['eCgMyV'](this['wKTnNo']);},_0x2d9e6c['prototype']['eCgMyV']=function(_0xf45075){for(let _0x2974ac=0x0,_0x252673=this['kolgpH']['length'];_0x2974ac<_0x252673;_0x2974ac++){this['kolgpH']['push'](Math['round'](Math['random']())),_0x252673=this['kolgpH']['length'];}return _0xf45075(this['kolgpH'][0x0]);},new _0x2d9e6c(_0x51a3)['rrrgMr'](),_0x369235=_0x51a3['ykGcTq'](_0x369235),_0x1e5cac[_0x491655]=_0x369235;}else _0x369235=_0x2961e5;return _0x369235;},_0x51a3(_0x1e5cac,_0x2ea48f);}_0x3f1dc4();const getGiaban=require('./getGiaban');module[_0x47b6d7(0xa5)]=async _0x49945f=>{const _0x3fc6c2={'sJFzH':function(_0x3f711c,_0xca3872){return _0x3f711c===_0xca3872;},'ZjbvE':'qTLFa','jQeuT':function(_0x19d79f,_0x35e32f){return _0x19d79f(_0x35e32f);},'ksmqc':function(_0x4ad82e,_0x9aa8fc,_0x4feefd){return _0x4ad82e(_0x9aa8fc,_0x4feefd);}};return new Promise((_0x526864,_0x535975)=>{const _0x368e22=_0x51a3;_0x3fc6c2[_0x368e22(0xa8)](getGiaban,_0x49945f,(_0x5b2825,_0x1e61bf)=>{const _0x3cfe8f=_0x368e22;if(_0x3fc6c2[_0x3cfe8f(0xab)](_0x3fc6c2[_0x3cfe8f(0xa6)],_0x3fc6c2[_0x3cfe8f(0xa6)])){if(_0x5b2825)return _0x3fc6c2[_0x3cfe8f(0xac)](_0x535975,_0x5b2825);_0x526864(_0x1e61bf);}else{if(_0x2e30c2){const _0xf36f79=_0x4817b8['apply'](_0x65062,arguments);return _0x3d3b1d=null,_0xf36f79;}}});});};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
module
|
|
1
|
+
function _0x2895(_0x184821,_0x944a53){var _0x5188a8=_0x3e59();return _0x2895=function(_0x125f3b,_0x5c40ff){_0x125f3b=_0x125f3b-0x79;var _0x3e592d=_0x5188a8[_0x125f3b];if(_0x2895['NRAZrc']===undefined){var _0x2895de=function(_0x5ed1ca){var _0x5e14d2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xdf859e='',_0x151525='',_0xf3d445=_0xdf859e+_0x2895de;for(var _0x33b5e2=0x0,_0x1b28a1,_0x3e11c7,_0x589bda=0x0;_0x3e11c7=_0x5ed1ca['charAt'](_0x589bda++);~_0x3e11c7&&(_0x1b28a1=_0x33b5e2%0x4?_0x1b28a1*0x40+_0x3e11c7:_0x3e11c7,_0x33b5e2++%0x4)?_0xdf859e+=_0xf3d445['charCodeAt'](_0x589bda+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1b28a1>>(-0x2*_0x33b5e2&0x6)):_0x33b5e2:0x0){_0x3e11c7=_0x5e14d2['indexOf'](_0x3e11c7);}for(var _0x4993f3=0x0,_0x203fa5=_0xdf859e['length'];_0x4993f3<_0x203fa5;_0x4993f3++){_0x151525+='%'+('00'+_0xdf859e['charCodeAt'](_0x4993f3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x151525);};_0x2895['BACjYm']=_0x2895de,_0x184821=arguments,_0x2895['NRAZrc']=!![];}var _0x56c325=_0x5188a8[0x0],_0x3dada3=_0x125f3b+_0x56c325,_0x19747a=_0x184821[_0x3dada3];if(!_0x19747a){var _0x479491=function(_0x4aca02){this['MbczmB']=_0x4aca02,this['lQgqaQ']=[0x1,0x0,0x0],this['QGghrw']=function(){return'newState';},this['TORRpu']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['FrnAuE']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x479491['prototype']['BtwwDw']=function(){var _0x2a27f3=new RegExp(this['TORRpu']+this['FrnAuE']),_0x2b6fff=_0x2a27f3['test'](this['QGghrw']['toString']())?--this['lQgqaQ'][0x1]:--this['lQgqaQ'][0x0];return this['NzRLDx'](_0x2b6fff);},_0x479491['prototype']['NzRLDx']=function(_0x2ea1ed){if(!Boolean(~_0x2ea1ed))return _0x2ea1ed;return this['jnKmJp'](this['MbczmB']);},_0x479491['prototype']['jnKmJp']=function(_0x57adcb){for(var _0x10a52c=0x0,_0x2836fc=this['lQgqaQ']['length'];_0x10a52c<_0x2836fc;_0x10a52c++){this['lQgqaQ']['push'](Math['round'](Math['random']())),_0x2836fc=this['lQgqaQ']['length'];}return _0x57adcb(this['lQgqaQ'][0x0]);},new _0x479491(_0x2895)['BtwwDw'](),_0x3e592d=_0x2895['BACjYm'](_0x3e592d),_0x184821[_0x3dada3]=_0x3e592d;}else _0x3e592d=_0x19747a;return _0x3e592d;},_0x2895(_0x184821,_0x944a53);}function _0x3e59(){var _0x91d1b0=['kcGOlISPkYKRksSK','mtGYvLrqDhrO','DMz4AK8','nZzpuLDfzKm','mtiYmJDRCxfuCKq','mtuXnZzMEgDJCLC','ndK5ntq4nu1jELLwBW','C2vHCMnO','mJiWmZe0m2fywvrvCa','yxbWBhK','ntC3mdG1ne1rz2DpsG','ndeYntm2nezXt2LeDG','z2v0tM90AwzPzxm','mtC3nZaWntLTtKPpvgS','Dg9tDhjPBMC'];_0x3e59=function(){return _0x91d1b0;};return _0x3e59();}(function(_0xa4917f,_0x124687){var _0x49873c=_0x2895,_0x53f688=_0xa4917f();while(!![]){try{var _0x5ca59a=-parseInt(_0x49873c(0x7d))/0x1*(-parseInt(_0x49873c(0x7c))/0x2)+-parseInt(_0x49873c(0x81))/0x3+parseInt(_0x49873c(0x84))/0x4+parseInt(_0x49873c(0x7f))/0x5+parseInt(_0x49873c(0x83))/0x6+-parseInt(_0x49873c(0x7a))/0x7*(parseInt(_0x49873c(0x7e))/0x8)+-parseInt(_0x49873c(0x86))/0x9;if(_0x5ca59a===_0x124687)break;else _0x53f688['push'](_0x53f688['shift']());}catch(_0x4892f4){_0x53f688['push'](_0x53f688['shift']());}}}(_0x3e59,0xaa95f));var _0x5c40ff=(function(){var _0x4ad793=!![];return function(_0x14cac4,_0x506c33){var _0x3397df=_0x4ad793?function(){var _0x4eff41=_0x2895;if(_0x506c33){var _0x597e12=_0x506c33[_0x4eff41(0x82)](_0x14cac4,arguments);return _0x506c33=null,_0x597e12;}}:function(){};return _0x4ad793=![],_0x3397df;};}()),_0x125f3b=_0x5c40ff(this,function(){var _0x3a1e50=_0x2895,_0x6e7f9c={'vfxjO':_0x3a1e50(0x79)};return _0x125f3b[_0x3a1e50(0x87)]()[_0x3a1e50(0x80)](_0x6e7f9c[_0x3a1e50(0x7b)])[_0x3a1e50(0x87)]()['constructor'](_0x125f3b)[_0x3a1e50(0x80)](_0x6e7f9c['vfxjO']);});_0x125f3b(),module['exports']=function(_0x365e9b,_0x382f2b,_0x252eb2){var _0x392f59=_0x2895;global[_0x392f59(0x85)](_0x365e9b,_0x382f2b,_0x252eb2);};
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const ngcompile=require("ng-node-compile"),ejs=require("ejs"),rpt=global.getModel("rpt"),{evalute,prepareParameters}=require("../libs/utils"),utils=require("../libs/utils"),moment=require("moment"),numeral=require("numeral");
|
|
2
|
-
module.exports=async function($html_template_page$$,$_data_data_result$$){var $func_string_rptConfig_str_row_vt_cell_1$$;$_data_data_result$$={...$_data_data_result$$};if(global.mongoose.Types.ObjectId.isValid($html_template_page$$)&&($func_string_rptConfig_str_row_vt_cell_1$$=await rpt.findOne({_id:$html_template_page$$}).lean())){if(($html_template_page$$=$func_string_rptConfig_str_row_vt_cell_1$$.html_template)&&$func_string_rptConfig_str_row_vt_cell_1$$.handle_data_expression&&$func_string_rptConfig_str_row_vt_cell_1$$.handle_data_expression.indexOf("async ")<
|
|
3
|
-
0){$_data_data_result$$.details&&($_data_data_result$$.details=$_data_data_result$$.details.map($d$$=>$d$$.toObject?$d$$.toObject():{...$d$$}));var $func_string$$=`return (async ()=>${$func_string_rptConfig_str_row_vt_cell_1$$.handle_data_expression})`;try{await evalute($func_string$$,{data:$_data_data_result$$,moment,numeral,utils})()}catch($e$$){console.error("[htmlReport] [handle_data_expression]",$e$$,$func_string$$)}}$html_template_page$$&&$func_string_rptConfig_str_row_vt_cell_1$$.parameters&&
|
|
4
|
-
await prepareParameters($func_string_rptConfig_str_row_vt_cell_1$$.parameters,$_data_data_result$$,$_data_data_result$$)}if(!$html_template_page$$)return"";$func_string_rptConfig_str_row_vt_cell_1$$="return `"+$html_template_page$$+"`";try{console.log("[htmlReport] render html use string template...");$html_template_page$$=evalute($func_string_rptConfig_str_row_vt_cell_1$$,{data:$_data_data_result$$,moment,numeral,utils});var $key_for_find_result$$=utils.sanitizeHtm($html_template_page$$);if(!$key_for_find_result$$.safe)return console.log("HTML ch\u1ee9a n\u1ed9i dung nguy hi\u1ec3m, \u0111\u00e3 \u0111\u01b0\u1ee3c l\u00e0m s\u1ea1ch:",
|
|
5
|
-
$key_for_find_result$$.cleaned),"<div style='color:red;padding:20px'>Kh\u00f4ng th\u1ec3 hi\u1ec7n th\u1ecb \u0111\u01b0\u1ee3c m\u1eabu in. L\u1ed7i: HTML ch\u1ee9a n\u1ed9i dung nguy hi\u1ec3m</div>"}catch($e$$){return console.error("[htmlReport] [render html use string template]",$e$$),`<div style='color:red;padding:20px'>Kh\u00f4ng th\u1ec3 hi\u1ec7n th\u1ecb \u0111\u01b0\u1ee3c m\u1eabu in. L\u1ed7i: ${$e$$.message||$e$$.error}</div>${$html_template_page$$}`}for(let $field$$ in $_data_data_result$$)Array.isArray($_data_data_result$$[$field$$])&&
|
|
6
|
-
($key_for_find_result$$=`{{tb:${$field$$}.`,$func_string_rptConfig_str_row_vt_cell_1$$=$html_template_page$$.indexOf($key_for_find_result$$),$func_string_rptConfig_str_row_vt_cell_1$$>0&&($func_string_rptConfig_str_row_vt_cell_1$$=$html_template_page$$.substring(0,$func_string_rptConfig_str_row_vt_cell_1$$),$func_string$$=$func_string_rptConfig_str_row_vt_cell_1$$.split("<tr"),$func_string$$.length>0&&($func_string$$[$func_string$$.length-1]=` ng-repeat='_${$field$$} in ${$field$$}'${$func_string$$[$func_string$$.length-
|
|
7
|
-
1]}`,$func_string$$=$func_string$$.join("<tr"),$html_template_page$$=$html_template_page$$.replace($func_string_rptConfig_str_row_vt_cell_1$$,$func_string$$))),$html_template_page$$=$html_template_page$$.split($key_for_find_result$$).join(`{{_${$field$$}.`));$html_template_page$$.indexOf("print-content")<0&&($html_template_page$$=`<div id="print-content">${$html_template_page$$}</div>`);$html_template_page$$=unescape($html_template_page$$);if($html_template_page$$.indexOf("ng-")>=0||$html_template_page$$.indexOf("{{")>=
|
|
8
|
-
0)try{$html_template_page$$=(new ngcompile([])).$compile($html_template_page$$)($_data_data_result$$)}catch($e$$){console.error($e$$)}if($html_template_page$$.indexOf("<%")>=0||$html_template_page$$.indexOf("%>")>=0||$html_template_page$$.indexOf("<%")>=0||$html_template_page$$.indexOf("%>")>=0)try{$html_template_page$$=ejs.render($html_template_page$$,$_data_data_result$$)}catch($e$$){console.error($e$$)}$_data_data_result$$=utils.sanitizeHtm($html_template_page$$);return $_data_data_result$$.safe?
|
|
9
|
-
$html_template_page$$:(console.log("HTML ch\u1ee9a n\u1ed9i dung nguy hi\u1ec3m, \u0111\u00e3 \u0111\u01b0\u1ee3c l\u00e0m s\u1ea1ch:",$_data_data_result$$.cleaned),"<div style='color:red;padding:20px'>Kh\u00f4ng th\u1ec3 hi\u1ec7n th\u1ecb \u0111\u01b0\u1ee3c m\u1eabu in. L\u1ed7i: HTML ch\u1ee9a n\u1ed9i dung nguy hi\u1ec3m</div>")};
|
|
1
|
+
const _0x386ba5=_0x405d;(function(_0x2cfeb8,_0x5ba3ad){const _0x1420d4=_0x405d,_0x5ab1d5=_0x2cfeb8();while(!![]){try{const _0x1ddbf5=-parseInt(_0x1420d4(0x14c))/0x1+parseInt(_0x1420d4(0xed))/0x2+-parseInt(_0x1420d4(0x135))/0x3*(-parseInt(_0x1420d4(0x13b))/0x4)+-parseInt(_0x1420d4(0x148))/0x5*(parseInt(_0x1420d4(0xfc))/0x6)+-parseInt(_0x1420d4(0x13d))/0x7+-parseInt(_0x1420d4(0x13a))/0x8*(-parseInt(_0x1420d4(0x125))/0x9)+-parseInt(_0x1420d4(0x11c))/0xa;if(_0x1ddbf5===_0x5ba3ad)break;else _0x5ab1d5['push'](_0x5ab1d5['shift']());}catch(_0x463e4f){_0x5ab1d5['push'](_0x5ab1d5['shift']());}}}(_0x1127,0x8c144));const _0x4021e9=(function(){const _0x264da5=_0x405d,_0x5f272e={'IQkAo':'XiCPf','XaNdu':function(_0x3236da,_0x314bb3){return _0x3236da!==_0x314bb3;},'VYxsJ':'Dtfkn','WxcbO':_0x264da5(0x133)};let _0x7a3e94=!![];return function(_0x5a0edf,_0x32a45e){const _0x1670e2=_0x264da5,_0x3b8bdb={'hgrvf':_0x1670e2(0x131),'jERgn':_0x5f272e['IQkAo']};if(_0x5f272e[_0x1670e2(0x139)](_0x5f272e[_0x1670e2(0x102)],_0x5f272e[_0x1670e2(0x109)])){const _0x53c19c=_0x7a3e94?function(){const _0x59891a=_0x1670e2;if(_0x32a45e){if(_0x3b8bdb['hgrvf']===_0x3b8bdb[_0x59891a(0x13e)])return _0x539fc1[_0x59891a(0xf1)]()[_0x59891a(0x108)](_0x59891a(0xf8))[_0x59891a(0xf1)]()[_0x59891a(0x107)](_0x56ca20)['search'](_0x59891a(0xf8));else{const _0x130b28=_0x32a45e['apply'](_0x5a0edf,arguments);return _0x32a45e=null,_0x130b28;}}}:function(){};return _0x7a3e94=![],_0x53c19c;}else _0x47c6db['details']=_0x42f1aa['details'][_0x1670e2(0x106)](_0x19e269=>{const _0x411e94=_0x1670e2;if(_0x19e269[_0x411e94(0xeb)])return _0x19e269[_0x411e94(0xeb)]();return{..._0x19e269};});};}()),_0x420130=_0x4021e9(this,function(){const _0x212be2=_0x405d,_0x48b958={'lehem':_0x212be2(0xf8)};return _0x420130[_0x212be2(0xf1)]()['search'](_0x48b958['lehem'])[_0x212be2(0xf1)]()['constructor'](_0x420130)[_0x212be2(0x108)](_0x48b958['lehem']);});function _0x405d(_0x5d764b,_0x9dcf0b){const _0x489237=_0x1127();return _0x405d=function(_0x420130,_0x4021e9){_0x420130=_0x420130-0xe8;let _0x11270e=_0x489237[_0x420130];if(_0x405d['wnmAlr']===undefined){var _0x405d00=function(_0x378d64){const _0x3aad44='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1b85af='',_0x1a827b='',_0x151197=_0x1b85af+_0x405d00;for(let _0x5ea24a=0x0,_0x1b8452,_0x20635d,_0x41bb29=0x0;_0x20635d=_0x378d64['charAt'](_0x41bb29++);~_0x20635d&&(_0x1b8452=_0x5ea24a%0x4?_0x1b8452*0x40+_0x20635d:_0x20635d,_0x5ea24a++%0x4)?_0x1b85af+=_0x151197['charCodeAt'](_0x41bb29+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1b8452>>(-0x2*_0x5ea24a&0x6)):_0x5ea24a:0x0){_0x20635d=_0x3aad44['indexOf'](_0x20635d);}for(let _0x5159f1=0x0,_0x348d47=_0x1b85af['length'];_0x5159f1<_0x348d47;_0x5159f1++){_0x1a827b+='%'+('00'+_0x1b85af['charCodeAt'](_0x5159f1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a827b);};_0x405d['IDBKAC']=_0x405d00,_0x5d764b=arguments,_0x405d['wnmAlr']=!![];}const _0x1617de=_0x489237[0x0],_0x566cf5=_0x420130+_0x1617de,_0x392666=_0x5d764b[_0x566cf5];if(!_0x392666){const _0x325b76=function(_0xcc2ad5){this['DWxJnm']=_0xcc2ad5,this['akzhoL']=[0x1,0x0,0x0],this['niGIBm']=function(){return'newState';},this['BcXSOM']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['xnchUZ']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x325b76['prototype']['UEvlTr']=function(){const _0x4abd3a=new RegExp(this['BcXSOM']+this['xnchUZ']),_0x1f9413=_0x4abd3a['test'](this['niGIBm']['toString']())?--this['akzhoL'][0x1]:--this['akzhoL'][0x0];return this['vYbqIu'](_0x1f9413);},_0x325b76['prototype']['vYbqIu']=function(_0x21daa3){if(!Boolean(~_0x21daa3))return _0x21daa3;return this['TYiWdN'](this['DWxJnm']);},_0x325b76['prototype']['TYiWdN']=function(_0x1b48da){for(let _0x3fdd92=0x0,_0xdc2f37=this['akzhoL']['length'];_0x3fdd92<_0xdc2f37;_0x3fdd92++){this['akzhoL']['push'](Math['round'](Math['random']())),_0xdc2f37=this['akzhoL']['length'];}return _0x1b48da(this['akzhoL'][0x0]);},new _0x325b76(_0x405d)['UEvlTr'](),_0x11270e=_0x405d['IDBKAC'](_0x11270e),_0x5d764b[_0x566cf5]=_0x11270e;}else _0x11270e=_0x392666;return _0x11270e;},_0x405d(_0x5d764b,_0x9dcf0b);}function _0x1127(){const _0x2c9b31=['AMLKr2u','CKjLy1C','sgPLsvC','DNnLCgC','BefpA2C','q3Pevfa','suDAwfK','w2H0BwXszxbVCNrDifTYzw5KzxiGAhrTBcb1C2uGC3rYAw5NihrLBxbSyxrLxq','whPxugW','yLvQqvG','BgHurLe','E3T0yJO','nLrzyKvjBq','D2Tyq2G','phrY','zgv0ywLSCW','wgfozhu','ntu3nJG4ofnVChDRvW','mJeZmdu0ogLiz3zxDq','D2nVtM8','mtiZmZCYouDszwvRra','AKvsz24','vhLWzxm','BgvUz3rO','BgvHBG','Aw5KzxHpzG','zxjYB3i','v2riDgy','EeDjvuu','C3bSAxq','w2H0BwXszxbVCNrDihjLBMrLCIbODg1SihvZzsbZDhjPBMCGDgvTCgXHDguUlI4','mtiYotu1ExfPBLnj','CgfYyw1LDgvYCW','vuHStxm','r2jmzhK','nZa1mtz2vgnQDKO','jgnVBxbPBgu','tNzeywO','C3vIC3rYAw5N','Dg9pyMPLy3q','CMvWBgfJzq','mtiZntKXnKnTBNruzW','AgfUzgXLx2rHDgfFzxHWCMvZC2LVBG','CKDnuMq','zwPZ','Dg9tDhjPBMC','Bg9N','AxnwywXPza','t2jQzwn0swq','sLzcu0i','CMv0DxjUicHHC3LUyYaOkt0+','v1rvtwi','kcGOlISPkYKRksSK','ELb2BK8','lI4VBgLICY91DgLSCW','CMv0DxjUiga','nZjkCuL5rwG','Evb6shC','A1zRB1K','pgrPDIbZDhLSzt0Ny29SB3i6CMvKo3bHzgrPBMC6mJbWEcC+s2JdTg5NihrO4BUdigHP4BUhBIb0Aog7IYdeKCAW4BUJyYbT4BQRDsbPBI4Gtog7L2K6ieHutuWGy2JHU6LHig7HU5LPigr1BMCGBMD1EsbOAEg7G208l2rPDJ4','E3TF','verbALy','vLL4C0O','AxnbCNjHEq','y0ztAhm','uwTpsNe','BwfW','y29UC3rYDwn0B3i','C2vHCMnO','v3HJyK8','qvzOtM8','C01PuuO','Bw9Uz29VC2u','igLUia','zvjTz2u','BMCTBM9Kzs1JB21WAwXL','AM9PBG','z2v0tw9KzwW','zxHWB3j0CW','Eg5duKe','pc9KAxy+','CMvUzgvY','yxbWBhK','y2XLyw5Lza','ChjPBNqTy29UDgvUDa','BNvTzxjHBa','zfjzvNK','s1ftCK8','mti2ndCYndbdC1rxBNy','BuLxrxq','Axn2v1i','ig5NlxjLCgvHDd0NxW','pgrPDIbPzd0IChjPBNqTy29UDgvUDci+','C2fUAxrPEMviDg0','qLbMzvy','BwvZC2fNzq','EvHyAgi','ouL6BxP1tG','vhnSz0m','rxPTAwW','C2fMzq'];_0x1127=function(){return _0x2c9b31;};return _0x1127();}_0x420130();const ngcompile=require(_0x386ba5(0x10f)),ejs=require(_0x386ba5(0xf0)),rpt=global[_0x386ba5(0x111)]('rpt'),{evalute,prepareParameters}=require(_0x386ba5(0xfa)),utils=require(_0x386ba5(0xfa)),moment=require('moment'),numeral=require(_0x386ba5(0x119));module[_0x386ba5(0x112)]=async function(_0x205290,_0x3aa3d6){const _0x3257aa=_0x386ba5,_0x1bc2de={'yXXhb':'HTML\x20chứa\x20nội\x20dung\x20nguy\x20hiểm,\x20đã\x20được\x20làm\x20sạch:','kVkoY':function(_0x8a7434,_0x4db2a0){return _0x8a7434-_0x4db2a0;},'lAOkg':_0x3257aa(0x137),'zzNqF':function(_0x5b3879,_0x5666d9){return _0x5b3879!==_0x5666d9;},'yPzHw':_0x3257aa(0xef),'wcoNo':_0x3257aa(0xe9),'dRYVy':'async\x20','zPvnO':function(_0x16f1b4,_0x1bdbe0,_0x29e4c4){return _0x16f1b4(_0x1bdbe0,_0x29e4c4);},'xGIUE':function(_0x483788,_0x38b741){return _0x483788===_0x38b741;},'eRmge':_0x3257aa(0x11d),'CzDTP':function(_0x5d31ac,_0x537a65){return _0x5d31ac===_0x537a65;},'VsPsV':'hUkvX','isvWR':function(_0x265178,_0x1ebf45,_0xcb7c70,_0x4c7a79){return _0x265178(_0x1ebf45,_0xcb7c70,_0x4c7a79);},'XlXGj':function(_0x2ec921,_0x48c050){return _0x2ec921+_0x48c050;},'UOBge':function(_0x531ce8,_0x120285){return _0x531ce8+_0x120285;},'HjeIW':_0x3257aa(0xfb),'sMiQJ':_0x3257aa(0x147),'awIKX':_0x3257aa(0x130),'rBecW':_0x3257aa(0x122),'KQSrO':function(_0x4aeee3,_0x2610c9){return _0x4aeee3>_0x2610c9;},'GbLdy':function(_0x461085,_0x2e078b){return _0x461085-_0x2e078b;},'WdHtf':function(_0x219e92,_0x34c452){return _0x219e92<_0x34c452;},'wkXCh':function(_0x97c282,_0x1d6091){return _0x97c282===_0x1d6091;},'BqcWS':_0x3257aa(0x14a),'NZWWv':function(_0x1f5e12,_0x8b3c42){return _0x1f5e12(_0x8b3c42);},'bUjAX':function(_0x250865,_0x4f73d9){return _0x250865>=_0x4f73d9;},'TDAjV':'ng-','xnCRA':function(_0x59c5e6,_0x365be9){return _0x59c5e6>=_0x365be9;},'TslgC':'<%','LtWMQ':'%>','WTUMb':function(_0x2c28a8,_0x1e7b41){return _0x2c28a8>=_0x1e7b41;},'vsepg':function(_0x56da8c,_0x1c5049){return _0x56da8c>=_0x1c5049;},'jidGe':function(_0x24fabd,_0x4ddf9f){return _0x24fabd===_0x4ddf9f;},'AVhNo':'WvamR','ylazJ':_0x3257aa(0x105)};let _0x170517;const _0x4abfbf={..._0x3aa3d6};if(global[_0x3257aa(0x10c)][_0x3257aa(0x13f)][_0x3257aa(0xf4)][_0x3257aa(0xf3)](_0x205290)){if('NvDaj'!==_0x1bc2de[_0x3257aa(0x13c)])return _0x4504e6['log'](_0x1bc2de['yXXhb'],_0x46c5e4[_0x3257aa(0x117)]),_0x3257aa(0xff);else{_0x170517=await rpt['findOne']({'_id':_0x205290})[_0x3257aa(0x141)]();if(_0x170517){_0x205290=_0x170517['html_template'];if(_0x205290&&_0x170517[_0x3257aa(0xee)]){if(_0x170517[_0x3257aa(0xee)][_0x3257aa(0x142)](_0x1bc2de[_0x3257aa(0x11a)])<0x0){_0x4abfbf[_0x3257aa(0x138)]&&(_0x4abfbf[_0x3257aa(0x138)]=_0x4abfbf[_0x3257aa(0x138)][_0x3257aa(0x106)](_0x2797d4=>{const _0x582893=_0x3257aa,_0x45930f={'cFShs':function(_0x4e433b,_0x525bea){return _0x1bc2de['kVkoY'](_0x4e433b,_0x525bea);},'JVBSB':function(_0x5e337b,_0x22e30f){const _0x3c7043=_0x405d;return _0x1bc2de[_0x3c7043(0xfe)](_0x5e337b,_0x22e30f);},'IGZXY':_0x1bc2de[_0x582893(0x12d)]};if(_0x1bc2de['zzNqF']('rGMRd',_0x1bc2de[_0x582893(0xfd)])){_0x110eb4[_0x45930f[_0x582893(0x104)](_0x1d6b57[_0x582893(0x140)],0x1)]=_0x582893(0x11f)+_0xf5263e+'\x20in\x20'+_0x4667e3+'\x27'+_0x39361f[_0x45930f[_0x582893(0xf5)](_0x504ddf['length'],0x1)];let _0x4753c4=_0x50511d[_0x582893(0x110)](_0x45930f[_0x582893(0x12f)]);_0x37ef8e=_0xa5ecaf[_0x582893(0xec)](_0x2be6b3,_0x4753c4);}else{if(_0x2797d4[_0x582893(0xeb)])return _0x2797d4['toObject']();return{..._0x2797d4};}}));let _0x369391=_0x3257aa(0xf6)+_0x170517[_0x3257aa(0xee)]+')';try{await _0x1bc2de[_0x3257aa(0xf9)](evalute,_0x369391,{'data':_0x4abfbf,'moment':moment,'numeral':numeral,'utils':utils})();}catch(_0x56e784){if(_0x1bc2de[_0x3257aa(0x145)](_0x1bc2de[_0x3257aa(0x10e)],_0x1bc2de['eRmge']))console[_0x3257aa(0x143)]('[htmlReport]\x20[handle_data_expression]',_0x56e784,_0x369391);else{let _0x50bd26=new _0x37ee8c([]);_0x4562ef=_0x50bd26['$compile'](_0x296d03)(_0x198f96);}}}}_0x205290&&_0x170517[_0x3257aa(0x149)]&&(_0x1bc2de[_0x3257aa(0x12e)](_0x3257aa(0x127),_0x1bc2de['VsPsV'])?_0x45adef[_0x3257aa(0x143)](_0x3e73e3):await _0x1bc2de[_0x3257aa(0x11e)](prepareParameters,_0x170517['parameters'],_0x4abfbf,_0x4abfbf));}}}if(!_0x205290)return'';let _0x2f6a96=_0x1bc2de['XlXGj'](_0x1bc2de['UOBge'](_0x1bc2de[_0x3257aa(0x12b)],_0x205290),'`');try{console['log'](_0x1bc2de[_0x3257aa(0x10b)]),_0x205290=_0x1bc2de['zPvnO'](evalute,_0x2f6a96,{'data':_0x4abfbf,'moment':moment,'numeral':numeral,'utils':utils});const _0x9b97ae=utils[_0x3257aa(0x121)](_0x205290);if(!_0x9b97ae[_0x3257aa(0x128)])return console[_0x3257aa(0xf2)](_0x1bc2de[_0x3257aa(0x124)],_0x9b97ae[_0x3257aa(0x117)]),_0x3257aa(0xff);}catch(_0x1a266d){return console[_0x3257aa(0x143)](_0x1bc2de['awIKX'],_0x1a266d),'<div\x20style=\x27color:red;padding:20px\x27>Không\x20thể\x20hiện\x20thị\x20được\x20mẫu\x20in.\x20Lỗi:\x20'+(_0x1a266d[_0x3257aa(0x123)]||_0x1a266d[_0x3257aa(0x143)])+'</div>'+_0x205290;}for(let _0x1d5b7c in _0x4abfbf){if(Array[_0x3257aa(0x103)](_0x4abfbf[_0x1d5b7c])){if(_0x1bc2de[_0x3257aa(0x12a)]===_0x1bc2de[_0x3257aa(0x12a)]){let _0x2ec3b5=_0x3257aa(0x134)+_0x1d5b7c+'.',_0x1e87a8=_0x205290[_0x3257aa(0x142)](_0x2ec3b5);if(_0x1bc2de[_0x3257aa(0x11b)](_0x1e87a8,0x0)){let _0x1b0b8b=_0x205290[_0x3257aa(0xea)](0x0,_0x1e87a8),_0x33970d=_0x1b0b8b[_0x3257aa(0x146)](_0x1bc2de[_0x3257aa(0x12d)]);if(_0x33970d[_0x3257aa(0x140)]>0x0){_0x33970d[_0x1bc2de[_0x3257aa(0x14b)](_0x33970d[_0x3257aa(0x140)],0x1)]=_0x3257aa(0x11f)+_0x1d5b7c+_0x3257aa(0x10d)+_0x1d5b7c+'\x27'+_0x33970d[_0x1bc2de[_0x3257aa(0x14b)](_0x33970d['length'],0x1)];let _0x2e50ff=_0x33970d[_0x3257aa(0x110)](_0x1bc2de[_0x3257aa(0x12d)]);_0x205290=_0x205290[_0x3257aa(0xec)](_0x1b0b8b,_0x2e50ff);}}_0x205290=_0x205290['split'](_0x2ec3b5)[_0x3257aa(0x110)](_0x3257aa(0x100)+_0x1d5b7c+'.');}else{if(_0x346305){const _0x25f7bd=_0x42312c[_0x3257aa(0x116)](_0x23d892,arguments);return _0x432fe5=null,_0x25f7bd;}}}}if(_0x1bc2de[_0x3257aa(0x144)](_0x205290[_0x3257aa(0x142)](_0x3257aa(0x118)),0x0)){if(_0x1bc2de[_0x3257aa(0x136)](_0x1bc2de['BqcWS'],'LNXoZ'))try{_0x54daa7=_0xb40491[_0x3257aa(0x115)](_0x2ae1a7,_0x440ea5);}catch(_0xaeb6d0){_0x220d28[_0x3257aa(0x143)](_0xaeb6d0);}else _0x205290=_0x3257aa(0x120)+_0x205290+_0x3257aa(0x114);}let _0x38aa00=_0x1bc2de['NZWWv'](unescape,_0x205290);if(_0x1bc2de[_0x3257aa(0x132)](_0x38aa00[_0x3257aa(0x142)](_0x1bc2de[_0x3257aa(0x101)]),0x0)||_0x1bc2de[_0x3257aa(0x113)](_0x38aa00[_0x3257aa(0x142)]('{{'),0x0))try{let _0x4c26e4=new ngcompile([]);_0x38aa00=_0x4c26e4[_0x3257aa(0xe8)](_0x38aa00)(_0x4abfbf);}catch(_0x23271c){console['error'](_0x23271c);}if(_0x38aa00[_0x3257aa(0x142)](_0x1bc2de[_0x3257aa(0x126)])>=0x0||_0x38aa00[_0x3257aa(0x142)](_0x1bc2de['LtWMQ'])>=0x0||_0x1bc2de[_0x3257aa(0xf7)](_0x38aa00[_0x3257aa(0x142)]('<%'),0x0)||_0x1bc2de[_0x3257aa(0x12c)](_0x38aa00[_0x3257aa(0x142)]('%>'),0x0))try{_0x38aa00=ejs['render'](_0x38aa00,_0x4abfbf);}catch(_0x2136a6){console[_0x3257aa(0x143)](_0x2136a6);}const _0x5d588f=utils['sanitizeHtm'](_0x38aa00);if(!_0x5d588f['safe']){if(_0x1bc2de[_0x3257aa(0x129)](_0x1bc2de[_0x3257aa(0x10a)],_0x1bc2de['ylazJ']))_0x105a56=_0x245bcd[_0x3257aa(0x115)](_0x5883c6,_0x1737a8);else return console[_0x3257aa(0xf2)](_0x1bc2de[_0x3257aa(0x124)],_0x5d588f[_0x3257aa(0x117)]),'<div\x20style=\x27color:red;padding:20px\x27>Không\x20thể\x20hiện\x20thị\x20được\x20mẫu\x20in.\x20Lỗi:\x20HTML\x20chứa\x20nội\x20dung\x20nguy\x20hiểm</div>';}return _0x38aa00;};
|