flexbiz-server 12.4.21 → 12.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/tinhgiatb.js
CHANGED
|
@@ -1,38 +1 @@
|
|
|
1
|
-
const ckvt=require("./ckvt"),sokho=global.getModel("sokho"),socai=global.getModel("socai"),dmvt=global.getModel("dmvt"),giatb=global.getModel("giatb"),dmqddvt=global.getModel("dmqddvt"),tinhgiatb1vt=require("./tinhgiatb1vt"),async=require("async"),_=require("lodash"),Controller=require("../controllers/controller"),moment=require("moment"),{getCurrentSession}=require("./sessionContext");
|
|
2
|
-
module.exports=async function($condition$$,$fn$$){if($condition$$&&$condition$$.tu_thang&&$condition$$.den_thang&&$condition$$.nam&&$condition$$.id_app){$condition$$.tu_thang=Number($condition$$.tu_thang);$condition$$.den_thang=Number($condition$$.den_thang);var $ma_kho$$=$condition$$.ma_kho,$tu_ngay$$=moment(new Date($condition$$.nam,$condition$$.tu_thang-1,15)).startOf("month").toDate(),$den_ngay$$=moment(new Date($condition$$.nam,$condition$$.den_thang-1,15)).endOf("month").toDate(),$id_app$$=
|
|
3
|
-
$condition$$.id_app,$app_query_dmvt$$=await global.getModel("app").findOne({_id:$id_app$$},{options:1}).lean();if(!$app_query_dmvt$$)return $fn$$("C\u00f4ng ty n\u00e0y kh\u00f4ng t\u1ed3n t\u1ea1i");var $f_tien$$=($app_query_dmvt$$.options||{}).f_tien||0;$app_query_dmvt$$={id_app:$id_app$$,gia_xuat:"1"};$condition$$.ma_nvt&&($app_query_dmvt$$.ma_nvt=$condition$$.ma_nvt);$condition$$.ma_ncc&&($app_query_dmvt$$.ma_ncc=$condition$$.ma_ncc);$condition$$.ma_vt&&($app_query_dmvt$$.ma_vt=$condition$$.ma_vt);
|
|
4
|
-
console.log(`\ud83d\udd25 [tinhgiatb] t\u00ednh gi\u00e1 trung b\u00ecnh, kho:${$condition$$.ma_kho}, sessionID=${getCurrentSession()?._debugId}`);dmvt.find($app_query_dmvt$$).lean().then(function($dmvts$$){async.mapLimit($dmvts$$,100,function($vt$$,$callback$$){setImmediate(()=>{let $query$$={id_app:$id_app$$,tu_ngay:$tu_ngay$$,den_ngay:$den_ngay$$,ma_vt:$vt$$.ma_vt,ma_kho:$ma_kho$$};tinhgiatb1vt($query$$,function($error$$,$gia$$){if($error$$)return console.error("[tinhgiatb] Kh\u00f4ng th\u1ec3 t\u00ednh gi\u00e1 trung b\u00ecnh cho v\u1eadt t\u01b0",
|
|
5
|
-
$query$$.ma_vt,$error$$),$callback$$($error$$);$gia$$.id_app=$id_app$$;$gia$$.ma_kho=$ma_kho$$;$gia$$.status=!0;$callback$$(null,$gia$$)})})},function($error$$,$bang_gia$$){if($error$$)return $fn$$($error$$);$error$$=[];for(let $t$$=$condition$$.tu_thang;$t$$<=$condition$$.den_thang;$t$$++)$error$$.push($t$$);async.map($error$$,async function($t$$){var $gias_query_delete$$={id_app:$id_app$$,ma_vt:{$in:$bang_gia$$.map($g$$=>$g$$.ma_vt)},nam:$condition$$.nam,thang:$t$$};$ma_kho$$&&($gias_query_delete$$.ma_kho=
|
|
6
|
-
$ma_kho$$);await giatb.deleteMany($gias_query_delete$$);$gias_query_delete$$=$bang_gia$$.map($gia$$=>({...$gia$$,thang:$t$$,nam:$condition$$.nam}));return await giatb.create($gias_query_delete$$)},function($error$$){if($error$$)return $fn$$($error$$);console.log(`[tinhgiatb] L\u1ea5y c\u00e1c ch\u1ee9ng t\u1eeb c\u1ea7n c\u1eadp nh\u1eadt s\u1ed5 s\u00e1ch ma_kho=${$condition$$.ma_kho}`);let $vouchers_x$$={},$vouchers_n$$={},$ma_vts$$=$bang_gia$$.map($v$$=>$v$$.ma_vt);async.parallel({xuat:function($callback$$){setImmediate(async()=>
|
|
7
|
-
{var $cac_ma_ct_query_sokho_x$$={id_app:$id_app$$,ngay_ct:{$gte:$tu_ngay$$,$lte:$den_ngay$$},nxt:2,ma_vt:{$in:$ma_vts$$},px_gia_dd:!1};$ma_kho$$&&($cac_ma_ct_query_sokho_x$$.ma_kho=$ma_kho$$);const $sks$$=await sokho.find($cac_ma_ct_query_sokho_x$$).lean();if($sks$$.length===0)return $callback$$(null,$vouchers_x$$);$cac_ma_ct_query_sokho_x$$=[...(new Set($sks$$.map($sk$$=>$sk$$.ma_ct)))];async.map($cac_ma_ct_query_sokho_x$$,async function($ma_ct$$){var $ctrl_ids$$=global.controllers[$ma_ct$$.toUpperCase()],
|
|
8
|
-
$ct_vouchers$$=$ctrl_ids$$?$ctrl_ids$$.getProperty("model"):mongoose.models[$ma_ct$$.toLowerCase()];if($ct_vouchers$$){$ctrl_ids$$=[...(new Set($sks$$.filter($sk$$=>$sk$$.ma_ct===$ma_ct$$).map($sk$$=>$sk$$.id_ct)))];$ct_vouchers$$=await $ct_vouchers$$.find({_id:{$in:$ctrl_ids$$}});for(let $v$$ of $ct_vouchers$$)$vouchers_x$$[$v$$._id.toString()]=$v$$;for(let $id_ct$$ of $ctrl_ids$$.filter($id$$=>!$vouchers_x$$[$id$$]))console.log("\u26a0\ufe0f [tinhgiatb] Khong tim thay phieu xuat. chuong trinh da xoa phieu nay khoi s\u1ed5 s\u00e1ch, id_ct=",
|
|
9
|
-
$id_ct$$,"ma_ct=",$ma_ct$$),await sokho.deleteMany({id_ct:$id_ct$$}),await socai.deleteMany({id_ct:$id_ct$$})}else console.log("\u26a0\ufe0f [tinhgiatb] Khong tim model cho ma_ct=",$ma_ct$$);return null},function($error$$){if($error$$)return console.error("\u274c [tinhgiatb] co loi lay phieu xuat",$error$$),$callback$$($error$$);$callback$$(null,$vouchers_x$$)})})},nhap:function($callback$$){setImmediate(async()=>{var $ds_ma_ct_query_sokho_n$$={id_app:$id_app$$,ngay_ct:{$gte:$tu_ngay$$,$lte:$den_ngay$$},
|
|
10
|
-
nxt:1,ma_vt:{$in:$ma_vts$$},pn_gia_tb:!0,ma_ct:{$ne:"PXC"}};$ma_kho$$&&($ds_ma_ct_query_sokho_n$$.ma_kho=$ma_kho$$);const $sks$$=await sokho.find($ds_ma_ct_query_sokho_n$$).lean();if($sks$$.length===0)return $callback$$(null,$vouchers_n$$);$ds_ma_ct_query_sokho_n$$=[...(new Set($sks$$.map($sk$$=>$sk$$.ma_ct)))];async.map($ds_ma_ct_query_sokho_n$$,async function($ma_ct$$){var $ctrl$jscomp$1_ids$$=global.controllers[$ma_ct$$.toUpperCase()],$ct$jscomp$1_vouchers$$=$ctrl$jscomp$1_ids$$?$ctrl$jscomp$1_ids$$.getProperty("model"):
|
|
11
|
-
mongoose.models[$ma_ct$$.toLowerCase()];if($ct$jscomp$1_vouchers$$){$ctrl$jscomp$1_ids$$=[...(new Set($sks$$.filter($sk$$=>$sk$$.ma_ct===$ma_ct$$).map($sk$$=>$sk$$.id_ct)))];$ct$jscomp$1_vouchers$$=await $ct$jscomp$1_vouchers$$.find({_id:{$in:$ctrl$jscomp$1_ids$$}});for(let $v$$ of $ct$jscomp$1_vouchers$$)$vouchers_n$$[$v$$._id.toString()]=$v$$;for(let $id_ct$$ of $ctrl$jscomp$1_ids$$.filter($id$$=>!$vouchers_n$$[$id$$]))console.warn("\u26a0\ufe0f [tinhgiatb] Khong tim thay phieu nh\u1eadp. chuong trinh da xoa phieu nay khoi s\u1ed5 s\u00e1ch, id_ct=",
|
|
12
|
-
$id_ct$$,"ma_ct=",$ma_ct$$),await sokho.deleteMany({id_ct:$id_ct$$}),await socai.deleteMany({id_ct:$id_ct$$})}else console.log("\u26a0\ufe0f [tinhgiatb] Khong tim model cho ma_ct=",$ma_ct$$);return null},$error$$=>{if($error$$)return console.error("\u274c [tinhgiatb] co loi lay phieu nhap",$error$$),$callback$$($error$$);$callback$$(null,$vouchers_n$$)})})},nhap_dc:$callback$$=>{if($ma_kho$$){let $query_sokho_pnc$$={id_app:$id_app$$,ma_ct:"PNC",ngay_ct:{$gte:$tu_ngay$$,$lte:$den_ngay$$},$or:[{ma_kho_x:$ma_kho$$},
|
|
13
|
-
{"details.ma_kho_x":$ma_kho$$}],"details.px_gia_dd":!1};global.getModel("pnc").find($query_sokho_pnc$$).then($pnc$$=>{$pnc$$.forEach($p$$=>{$vouchers_n$$[$p$$._id.toString()]=$p$$});$callback$$()}).catch($e$$=>{console.error("[tinhgiatb] co loi lay phieu nhap dieu chuyen",$e$$);return $callback$$($e$$)})}else $callback$$()}},function($error$$){if($error$$)return $fn$$($error$$);async.waterfall([function($callback$$){console.log("[tinhgiatb] C\u1eadp nh\u1eadt gi\u00e1 xu\u1ea5t kho...");async.mapLimit(_.values($vouchers_x$$),
|
|
14
|
-
100,($voucher_x$$,$callback$$)=>{setImmediate(async()=>{try{const $details$$=$voucher_x$$.details.filter($d$$=>(!$condition$$.ma_vt||$condition$$.ma_vt===$d$$.ma_vt)&&!$d$$.px_gia_dd&&(!$ma_kho$$||$ma_kho$$===($d$$.ma_kho||$d$$.ma_kho_x||$voucher_x$$.ma_kho||$voucher_x$$.ma_kho_x)));await Promise.all($details$$.map($d$$=>(async()=>{var $gia$$=_.find($bang_gia$$,$vt$$=>$d$$.ma_vt===$vt$$.ma_vt);$gia$$=$gia$$?$gia$$.gia:0;let $he_so_qd$$=1,$qd$$=await dmqddvt.findOne({id_app:$voucher_x$$.id_app,ma_vt:$d$$.ma_vt,
|
|
15
|
-
ma_dvt:$d$$.ma_dvt}).lean();$qd$$&&($he_so_qd$$=$qd$$.mau?$qd$$.tu/$qd$$.mau:$qd$$.ty_le_qd);$d$$.gia_von=$d$$.gia_von_nt=$gia$$*$he_so_qd$$;$d$$.tien_xuat=$d$$.tien_xuat_nt=Math.roundBy($d$$.sl_xuat*$d$$.gia_von,$f_tien$$)})()));if($voucher_x$$.details_doi){const $details_doi$$=$voucher_x$$.details_doi.filter($d$$=>(!$condition$$.ma_vt||$condition$$.ma_vt===$d$$.ma_vt)&&!$d$$.px_gia_dd&&(!$ma_kho$$||$ma_kho$$===($d$$.ma_kho||$voucher_x$$.ma_kho||$voucher_x$$.ma_kho_x)));await Promise.all($details_doi$$.map($d$$=>
|
|
16
|
-
(async()=>{var $gia$jscomp$3_gia_chuan$$=_.find($bang_gia$$,$vt$$=>$d$$.ma_vt===$vt$$.ma_vt);$gia$jscomp$3_gia_chuan$$=$gia$jscomp$3_gia_chuan$$?$gia$jscomp$3_gia_chuan$$.gia:0;let $he_so_qd$$=1,$qd$$=await dmqddvt.findOne({id_app:$voucher_x$$.id_app,ma_vt:$d$$.ma_vt,ma_dvt:$d$$.ma_dvt}).lean();$qd$$&&($he_so_qd$$=$qd$$.mau?$qd$$.tu/$qd$$.mau:$qd$$.ty_le_qd);$d$$.gia_von=$d$$.gia_von_nt=$gia$jscomp$3_gia_chuan$$*$he_so_qd$$;$d$$.tien_xuat=$d$$.tien_xuat_nt=Math.roundBy($d$$.sl_xuat*$d$$.gia_von,$f_tien$$)})()))}await Promise.all($voucher_x$$.details.filter($d$$=>
|
|
17
|
-
$d$$.promotion&&$d$$.promotion.details_km).map($d$$=>(async()=>{const $details_km$$=$d$$.promotion.details_km.filter($d$$=>(!$condition$$.ma_vt||$condition$$.ma_vt===$d$$.ma_vt)&&!$d$$.px_gia_dd&&(!$ma_kho$$||$ma_kho$$===($d$$.ma_kho||$voucher_x$$.ma_kho||$voucher_x$$.ma_kho_x)));await Promise.all($details_km$$.map($d$$=>(async()=>{var $gia$jscomp$4_gia_chuan$$=_.find($bang_gia$$,$vt$$=>$d$$.ma_vt===$vt$$.ma_vt);$gia$jscomp$4_gia_chuan$$=$gia$jscomp$4_gia_chuan$$?$gia$jscomp$4_gia_chuan$$.gia:0;let $he_so_qd$$=
|
|
18
|
-
1,$qd$$=await dmqddvt.findOne({id_app:$voucher_x$$.id_app,ma_vt:$d$$.ma_vt,ma_dvt:$d$$.ma_dvt}).lean();$qd$$&&($he_so_qd$$=$qd$$.mau?$qd$$.tu/$qd$$.mau:$qd$$.ty_le_qd);$d$$.gia_von=$d$$.gia_von_nt=$gia$jscomp$4_gia_chuan$$*$he_so_qd$$;$d$$.tien_xuat=$d$$.tien_xuat_nt=Math.roundBy(($d$$.sl_xuat||$d$$.sl_km||0)*$d$$.gia_von,$f_tien$$)})()))})()));await Promise.all($voucher_x$$.details.filter($d$$=>$d$$.combo&&$d$$.combo.length>0&&!$d$$.px_gia_dd).map($detail$$=>(async()=>{const $combo$$=$detail$$.combo.filter($c$$=>
|
|
19
|
-
(!$condition$$.ma_vt||$condition$$.ma_vt===$c$$.ma_vt)&&(!$ma_kho$$||$ma_kho$$===($detail$$.ma_kho||$detail$$.ma_kho_x||$voucher_x$$.ma_kho||$voucher_x$$.ma_kho_x)));await Promise.all($combo$$.map($d$$=>(async()=>{var $gia$jscomp$5_gia_chuan$$=_.find($bang_gia$$,$vt$$=>$d$$.ma_vt===$vt$$.ma_vt);$gia$jscomp$5_gia_chuan$$=$gia$jscomp$5_gia_chuan$$?$gia$jscomp$5_gia_chuan$$.gia:0;let $he_so_qd$$=1,$qd$$=await dmqddvt.findOne({id_app:$voucher_x$$.id_app,ma_vt:$d$$.ma_vt,ma_dvt:$d$$.ma_dvt}).lean();$qd$$&&
|
|
20
|
-
($he_so_qd$$=$qd$$.mau?$qd$$.tu/$qd$$.mau:$qd$$.ty_le_qd);$d$$.gia_von=$d$$.gia_von_nt=$gia$jscomp$5_gia_chuan$$*$he_so_qd$$;$d$$.tien_xuat=$d$$.tien_xuat_nt=Math.roundBy(($d$$.sl_xuat||0)*$d$$.gia_von,$f_tien$$)})()));$detail$$.tien_xuat=$detail$$.tien_xuat_nt=$detail$$.combo.map($c$$=>$c$$.tien_xuat_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$detail$$.gia_von=$detail$$.gia_von_nt=Math.roundBy($detail$$.sl_xuat?$detail$$.tien_xuat_nt/$detail$$.sl_xuat:0,$f_tien$$)})()));if($voucher_x$$.promotion){const $details_kmc$$=
|
|
21
|
-
$voucher_x$$.promotion.filter($d$$=>(!$condition$$.ma_vt||$condition$$.ma_vt===$d$$.ma_vt)&&!$d$$.px_gia_dd&&(!$ma_kho$$||$ma_kho$$===($d$$.ma_kho||$voucher_x$$.ma_kho||$voucher_x$$.ma_kho_x)));await Promise.all($details_kmc$$.map($d$$=>(async()=>{var $gia$jscomp$6_gia_chuan$$=_.find($bang_gia$$,$vt$$=>$d$$.ma_vt===$vt$$.ma_vt);$gia$jscomp$6_gia_chuan$$=$gia$jscomp$6_gia_chuan$$?$gia$jscomp$6_gia_chuan$$.gia:0;let $he_so_qd$$=1,$qd$$=await dmqddvt.findOne({id_app:$voucher_x$$.id_app,ma_vt:$d$$.ma_vt,
|
|
22
|
-
ma_dvt:$d$$.ma_dvt}).lean();$qd$$&&($he_so_qd$$=$qd$$.mau?$qd$$.tu/$qd$$.mau:$qd$$.ty_le_qd);$d$$.gia_von_nt=$gia$jscomp$6_gia_chuan$$*$he_so_qd$$;$d$$.gia_von=$d$$.gia_von_nt;$d$$.tien_xuat_nt=Math.roundBy(($d$$.sl_xuat||$d$$.sl_km||0)*$d$$.gia_von,$f_tien$$);$d$$.tien_xuat=$d$$.tien_xuat_nt})()))}let $voucher_x_data$$=$voucher_x$$.toObject();const $ctrl$$=global.controllers[$voucher_x$$.ma_ct.toUpperCase()];await ($ctrl$$?$ctrl$$.getProperty("model"):mongoose.models[$voucher_x$$.ma_ct.toLowerCase()]).updateOne({_id:$voucher_x$$._id},
|
|
23
|
-
$voucher_x_data$$);$ctrl$$&&$ctrl$$.post&&await new Promise(($resolve$$,$reject$$)=>{Controller.postData($voucher_x_data$$,$ctrl$$,($e$$,$rs$$)=>{if($e$$)return console.error("\u274c [tinhgiatb] [postData] L\u1ed7i:",$e$$.message,$voucher_x_data$$.so_ct,$voucher_x_data$$.ma_ct),$reject$$($e$$);$resolve$$($rs$$)},{kiem_tra_han_muc_cong_no:!1})});$callback$$(null,$voucher_x$$)}catch($e$$){console.error("\u274c [tinhgiatb] L\u1ed7i c\u1eadp nh\u1eadt phi\u1ebfu xu\u1ea5t:",$voucher_x$$.ma_ct,$voucher_x$$.so_ct,
|
|
24
|
-
$e$$.message||$e$$.error||$e$$),$callback$$($e$$)}})},$error$$=>{$callback$$($error$$,$vouchers_x$$)})},function($_vouchers_x$$,$callback$$){console.log("[tinhgiatb] C\u1eadp nh\u1eadt gi\u00e1 nh\u1eadp kho...");async.mapLimit(_.values($vouchers_n$$),100,($voucher_n$$,$callback$$)=>{setImmediate(async()=>{try{const $details_pnk$$=$voucher_n$$.details.filter($d$$=>(!$d$$.combo||$d$$.combo.length==0)&&(!$condition$$.ma_vt||$condition$$.ma_vt===$d$$.ma_vt)&&($d$$.pn_gia_tb||$voucher_n$$.ma_ct==="PNC"&&
|
|
25
|
-
!$d$$.px_gia_dd||$voucher_n$$.ma_ct==="PKK"&&!$d$$.px_gia_dd)&&(!$ma_kho$$||$ma_kho$$===$d$$.ma_kho||$ma_kho$$===$d$$.ma_kho_x||$ma_kho$$===$voucher_n$$.ma_kho||$ma_kho$$===$voucher_n$$.ma_kho_n));await Promise.all($details_pnk$$.map($d$$=>(async()=>{var $gia$jscomp$7_gia_chuan$$=_.find($bang_gia$$,$vt$$=>$d$$.ma_vt===$vt$$.ma_vt);$gia$jscomp$7_gia_chuan$$=$gia$jscomp$7_gia_chuan$$?$gia$jscomp$7_gia_chuan$$.gia:0;let $he_so_qd$$=1,$qd$$=await dmqddvt.findOne({id_app:$vouchers_n$$.id_app,ma_vt:$d$$.ma_vt,
|
|
26
|
-
ma_dvt:$d$$.ma_dvt}).lean();$qd$$&&($he_so_qd$$=$qd$$.mau?$qd$$.tu/$qd$$.mau:$qd$$.ty_le_qd);$d$$.gia_von_nt=$gia$jscomp$7_gia_chuan$$*$he_so_qd$$;$d$$.gia_von=$d$$.gia_von_nt;$voucher_n$$.ma_ct==="PNC"||$voucher_n$$.ma_ct==="PKK"?($d$$.tien_xuat_nt=Math.roundBy($d$$.sl_xuat*$d$$.gia_von,$f_tien$$),$d$$.tien_xuat=$d$$.tien_xuat_nt):($d$$.tien_nhap_nt=Math.roundBy($d$$.sl_nhap*$d$$.gia_von,$f_tien$$),$d$$.tien_nhap=$d$$.tien_nhap_nt)})()));await Promise.all($voucher_n$$.details.filter($d$$=>$d$$.combo&&
|
|
27
|
-
$d$$.combo.length>0&&($d$$.pn_gia_tb||$voucher_n$$.ma_ct==="PNC"&&!$d$$.px_gia_dd||$voucher_n$$.ma_ct==="PKK"&&!$d$$.px_gia_dd)).map($detail$$=>(async()=>{const $combo$$=$detail$$.combo.filter($c$$=>(!$condition$$.ma_vt||$condition$$.ma_vt===$c$$.ma_vt)&&(!$ma_kho$$||$ma_kho$$===($detail$$.ma_kho||$voucher_n$$.ma_kho||$voucher_n$$.ma_kho_n)));await Promise.all($combo$$.map($d$$=>(async()=>{var $gia$jscomp$8_gia_chuan$$=_.find($bang_gia$$,$vt$$=>$d$$.ma_vt===$vt$$.ma_vt);$gia$jscomp$8_gia_chuan$$=
|
|
28
|
-
$gia$jscomp$8_gia_chuan$$?$gia$jscomp$8_gia_chuan$$.gia:0;let $he_so_qd$$=1,$qd$$=await dmqddvt.findOne({id_app:$voucher_n$$.id_app,ma_vt:$d$$.ma_vt,ma_dvt:$d$$.ma_dvt}).lean();$qd$$&&($he_so_qd$$=$qd$$.mau?$qd$$.tu/$qd$$.mau:$qd$$.ty_le_qd);$d$$.gia_von=$d$$.gia_von_nt=$gia$jscomp$8_gia_chuan$$*$he_so_qd$$;$voucher_n$$.ma_ct==="PNC"||$voucher_n$$.ma_ct==="PKK"?($d$$.tien_xuat_nt=Math.roundBy($d$$.sl_xuat*$d$$.gia_von,$f_tien$$),$d$$.tien_xuat=$d$$.tien_xuat_nt):($d$$.tien_nhap_nt=Math.roundBy($d$$.sl_nhap*
|
|
29
|
-
$d$$.gia_von,$f_tien$$),$d$$.tien_nhap=$d$$.tien_nhap_nt)})()));$voucher_n$$.ma_ct==="PNC"||$voucher_n$$.ma_ct==="PKK"?($detail$$.tien_xuat=$detail$$.tien_xuat_nt=$detail$$.combo.map($c$$=>$c$$.tien_xuat_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0),$detail$$.gia_von=$detail$$.gia_von_nt=Math.roundBy($detail$$.sl_xuat?$detail$$.tien_xuat_nt/$detail$$.sl_xuat:0,$f_tien$$)):($detail$$.tien_nhap=$detail$$.tien_nhap_nt=$detail$$.combo.map($c$$=>$c$$.tien_nhap_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0),$detail$$.gia_von=
|
|
30
|
-
$detail$$.gia_von_nt=Math.roundBy($detail$$.sl_nhap?$detail$$.tien_nhap_nt/$detail$$.sl_nhap:0,$f_tien$$))})()));if($voucher_n$$.details_doi){const $details_doi$$=$voucher_n$$.details_doi.filter($d$$=>(!$condition$$.ma_vt||$condition$$.ma_vt===$d$$.ma_vt)&&$d$$.pn_gia_tb&&(!$ma_kho$$||$ma_kho$$===$d$$.ma_kho));await Promise.all($details_doi$$.map($d$$=>(async()=>{var $gia$jscomp$9_gia_chuan$$=_.find($bang_gia$$,$vt$$=>$d$$.ma_vt===$vt$$.ma_vt);$gia$jscomp$9_gia_chuan$$=$gia$jscomp$9_gia_chuan$$?$gia$jscomp$9_gia_chuan$$.gia:
|
|
31
|
-
0;let $he_so_qd$$=1,$qd$$=await dmqddvt.findOne({id_app:$vouchers_n$$.id_app,ma_vt:$d$$.ma_vt,ma_dvt:$d$$.ma_dvt}).lean();$qd$$&&($he_so_qd$$=$qd$$.mau?$qd$$.tu/$qd$$.mau:$qd$$.ty_le_qd);$d$$.gia_von_nt=$gia$jscomp$9_gia_chuan$$*$he_so_qd$$;$d$$.gia_von=$d$$.gia_von_nt;$d$$.tien_xuat_nt=Math.roundBy($d$$.sl_xuat*$d$$.gia_von,$f_tien$$);$d$$.tien_xuat=$d$$.tien_xuat_nt})()))}let $voucher_n_data$$=$voucher_n$$.toObject();const $ctrl$$=global.controllers[$voucher_n_data$$.ma_ct.toUpperCase()];await ($ctrl$$?
|
|
32
|
-
$ctrl$$.getProperty("model"):mongoose.models[$voucher_n_data$$.ma_ct.toLowerCase()]).updateOne({_id:$voucher_n_data$$._id},$voucher_n_data$$);$ctrl$$&&$ctrl$$.post&&await new Promise(($resolve$$,$reject$$)=>{Controller.postData($voucher_n_data$$,$ctrl$$,function($e$$,$rs$$){if($e$$)return console.error("\u274c [tinhgiatb][postData] l\u1ed7i:",$e$$.message,$voucher_n_data$$.so_ct,$voucher_n_data$$.ma_ct),$reject$$($e$$);$resolve$$($rs$$)},{kiem_tra_han_muc_cong_no:!1})});$callback$$(null,$voucher_n$$)}catch($e$$){console.error("\u274c [tinhgiatb] L\u1ed7i c\u1eadp nh\u1ea5t phi\u1ebfu nh\u1eadp",
|
|
33
|
-
$voucher_n$$.ma_ct,$voucher_n$$.so_ct,$e$$.error||$e$$.message||$e$$),$callback$$($e$$)}})},function($error$$){$callback$$($error$$)})}],function($e$$){if($e$$)return $fn$$($e$$);console.log("[tinhgiatb] \u0110\u00e1nh gi\u00e1 ch\u00eanh l\u1ec7ch...");$e$$={id_app:$condition$$.id_app,ngay:$den_ngay$$,chenh_lech:1};$condition$$.ma_vt&&($e$$.ma_vt=$condition$$.ma_vt);$condition$$.ma_kho&&($e$$.ma_kho=$condition$$.ma_kho);ckvt($e$$,($e$$,$rs$$)=>{if($e$$)return $fn$$($e$$);$rs$$=_.filter($rs$$,$r$$=>
|
|
34
|
-
$r$$.du00!==0&&($r$$.ton00==0||Math.abs($r$$.ton00)<.001));$vouchers_x$$=_.sortBy(_.values($vouchers_x$$),$v$$=>-(new Date($v$$.ngay_ct)).getTime());$vouchers_n$$=_.sortBy(_.values($vouchers_n$$),$v$$=>-(new Date($v$$.ngay_ct)).getTime());let $chung_tu_cap_nhat_chenh_lech$$={};async.map($rs$$,($vt$$,$callback$$)=>{setImmediate(()=>{let $d_voucher$$=null;($d_voucher$$=_.find($vouchers_x$$,$x$$=>_.find($x$$.details,$vc$$=>{if($vc$$.ma_vt!=$vt$$.ma_vt||$vc$$.px_gia_dd||$ma_kho$$&&$ma_kho$$!==$vc$$.ma_kho&&
|
|
35
|
-
$ma_kho$$!==$x$$.ma_kho)return!1;$vc$$.tien_xuat_nt+=$vt$$.du00;$vc$$.tien_xuat=Math.roundBy($vc$$.tien_xuat_nt,$f_tien$$);$vc$$.sl_xuat&&($vc$$.gia_von_nt=$vc$$.gia_von=Math.roundBy($vc$$.tien_xuat_nt/$vc$$.sl_xuat,0));return!0})))||($d_voucher$$=_.find($vouchers_n$$,$n$$=>_.find($n$$.details,$vc$$=>{if($vc$$.ma_vt!=$vt$$.ma_vt||$vc$$.pn_gia_tb||$ma_kho$$&&$ma_kho$$!==$vc$$.ma_kho&&$ma_kho$$!==$n$$.ma_kho)return!1;$vc$$.tien_nhap_nt-=$vt$$.du00;$vc$$.tien_nhap=Math.roundBy($vc$$.tien_nhap_nt,$f_tien$$);
|
|
36
|
-
$vc$$.sl_nhap&&($vc$$.gia_von_nt=$vc$$.gia_von=Math.roundBy($vc$$.tien_nhap_nt/$vc$$.sl_nhap,0));return!0})));$d_voucher$$&&($chung_tu_cap_nhat_chenh_lech$$[$d_voucher$$._id.toString()]=$d_voucher$$);$callback$$(null,$d_voucher$$)})},$_vouchers_chenh_lech_e$$=>{if($_vouchers_chenh_lech_e$$)return $fn$$($_vouchers_chenh_lech_e$$);$_vouchers_chenh_lech_e$$=_.values($chung_tu_cap_nhat_chenh_lech$$);console.log("[tinhgiatb] C\u1eadp nh\u1eadt phi\u1ebfu ch\u00eanh l\u1ec7ch...");async.map($_vouchers_chenh_lech_e$$,
|
|
37
|
-
($voucher$$,$callback$$)=>{setImmediate(async()=>{try{let $voucher_data$$=$voucher$$.toObject();const $ctrl$$=global.controllers[$voucher_data$$.ma_ct.toUpperCase()];await ($ctrl$$?$ctrl$$.getProperty("model"):mongoose.models[$voucher_data$$.ma_ct.toLowerCase()]).updateOne({_id:$voucher_data$$._id},$voucher_data$$);$ctrl$$&&$ctrl$$.post?Controller.postData($voucher_data$$,$ctrl$$,($e$$,$rs$$)=>{$e$$&&console.error("\u274c [tinhgiatb] [postData] L\u1ed7i:",$e$$.message,$voucher_data$$.so_ct,$voucher_data$$.ma_ct);
|
|
38
|
-
$callback$$($e$$,$rs$$)},{kiem_tra_han_muc_cong_no:!1}):$callback$$(null)}catch($error$$){return $callback$$($error$$)}})},async $e$$=>{if($e$$)return $fn$$($e$$);$bang_gia$$.joinModel2($id_app$$,dmvt,[{where:"ma_vt",fields:"ten_vt"}],()=>{$fn$$(null,$bang_gia$$)})})})})})})})})}).catch($e$$=>{$fn$$($e$$)})}else $fn$$("L\u1ed7i: T\u00ednh n\u0103ng n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1: tu_thang,den_thang,nam,id_app")};
|
|
1
|
+
const _0x3b7c73=_0x34d8;(function(_0x2df269,_0x28bc83){const _0x53ef3a=_0x34d8,_0x2a2618=_0x2df269();while(!![]){try{const _0x3afde4=-parseInt(_0x53ef3a(0x282))/0x1+parseInt(_0x53ef3a(0x32e))/0x2*(parseInt(_0x53ef3a(0x23d))/0x3)+-parseInt(_0x53ef3a(0x2f0))/0x4*(-parseInt(_0x53ef3a(0x2a2))/0x5)+parseInt(_0x53ef3a(0x365))/0x6*(parseInt(_0x53ef3a(0x210))/0x7)+parseInt(_0x53ef3a(0x213))/0x8+-parseInt(_0x53ef3a(0x3b9))/0x9+-parseInt(_0x53ef3a(0x1c9))/0xa*(parseInt(_0x53ef3a(0x209))/0xb);if(_0x3afde4===_0x28bc83)break;else _0x2a2618['push'](_0x2a2618['shift']());}catch(_0x466a77){_0x2a2618['push'](_0x2a2618['shift']());}}}(_0x4f27,0x28af2));function _0x34d8(_0x1cb385,_0x3c4dd0){const _0x4f277e=_0x4f27();return _0x34d8=function(_0x34d809,_0xf75d1a){_0x34d809=_0x34d809-0x17a;let _0x71541d=_0x4f277e[_0x34d809];if(_0x34d8['PhafMY']===undefined){var _0x42de59=function(_0x108562){const _0x453f45='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x47dedf='',_0x75991f='';for(let _0x1f98d7=0x0,_0x45f38d,_0x1bac60,_0x48b9e7=0x0;_0x1bac60=_0x108562['charAt'](_0x48b9e7++);~_0x1bac60&&(_0x45f38d=_0x1f98d7%0x4?_0x45f38d*0x40+_0x1bac60:_0x1bac60,_0x1f98d7++%0x4)?_0x47dedf+=String['fromCharCode'](0xff&_0x45f38d>>(-0x2*_0x1f98d7&0x6)):0x0){_0x1bac60=_0x453f45['indexOf'](_0x1bac60);}for(let _0x501da0=0x0,_0x454de8=_0x47dedf['length'];_0x501da0<_0x454de8;_0x501da0++){_0x75991f+='%'+('00'+_0x47dedf['charCodeAt'](_0x501da0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x75991f);};_0x34d8['lkIwpX']=_0x42de59,_0x1cb385=arguments,_0x34d8['PhafMY']=!![];}const _0x5bc3d1=_0x4f277e[0x0],_0x3db609=_0x34d809+_0x5bc3d1,_0x164c9a=_0x1cb385[_0x3db609];return!_0x164c9a?(_0x71541d=_0x34d8['lkIwpX'](_0x71541d),_0x1cb385[_0x3db609]=_0x71541d):_0x71541d=_0x164c9a,_0x71541d;},_0x34d8(_0x1cb385,_0x3c4dd0);}function _0x4f27(){const _0x5e888a=['rLDfEvq','BgrcvNC','z2v0uhjVCgvYDhK','BwfW','Bgzdu2S','ALDuqM4','yNv6yKq','ugfwAuO','zKLetwu','AgjouwC','ywLJv1K','nJHpyK9muNq','ww13zNe','D2Det3O','yxn5BMm','y1DIswS','vvvdzMG','suX2wKW','4P2mifT0Aw5Oz2LHDgjDifTWB3n0rgf0yv0Gtog7L2K6','q2rSwNi','C3vxtLm','BeTHEuW','zurxvey','wfj5t0G','ueTl','DgLLBL94Dwf0x250','C3rHCNrpzG','D0HZr0G','BwfFy3q9','CNLxqxy','C1zQu00','rLHjz1u','ELHeA0S','qLjizge','u1vRDva','zMLSDgvY','Dg9zBg8','u1Hns2y','lI9ZzxnZAw9Uq29UDgv4Da','DgDNrgu','vvrnEMq','A01TCLe','C25xvwS','DKzfr1G','BgDPBMi','zMvUsg8','vvPjCuK','DhLFBgvFCwq','BgvUz3rO','tMr0r0y','ugvMyvy','B2Xyzha','Cvviqxi','rgn1ywe','yLHqEui','q2rPtgC','Ehv2u3e','z3vguhm','sLv4t1i','BgvHBG','ALnwsM8','teD0vgO','uuTnAfu','AwTMtMK','qvj3zeW','AMH1sxe','zKzsuvO','zfrSvLi','4P2mifT0Aw5Oz2LHDgjDignVigXVAsbSyxKGCgHPzxuGEhvHDa','DefIwvC','EMrKuMi','sxjdBwi','BwfFzhz0','mK1SBfnqwG','ChvZAa','sLr4A1G','DMTbwue','C29Fy3q','ue5d','wMzrqw8','uu9hseW','zxHWB3j0CW','zMXctuu','shbJueO','v0nTCLG','C3bSAxq','Ae12yNK','A2T5v1O','Evf2D0K','z2v0tw9KzwW','te5vA00','ywDlrvG','C3rHDhvZ','zgv0ywLSC19KB2K','rgXmrxe','AhvivK8','tuzsC2e','zgvSzxrLtwfUEq','Cg5Fz2LHx3rI','D0jhzNe','ChD4C1y','4PQG77IpifT0Aw5Oz2LHDgjDieTOB25NihrPBsb0Agf5ihbOAwv1ig5O4BQTCc4Gy2H1B25NihrYAw5OigrHihHVysbWAgLLDsbUyxKGA2HVAsbZ4BUvihpdOwnOlcbPzf9JDd0','lI9JA3z0','wu53uNe','z2LHDgi','txLlqM4','zu5Ywfy','wgHOAfa','AwLrD3y','m3WWFdr8mxWY','z2LH','t3Dgs1q','q3DWy24','C25OENK','we5Mruq','z1ndsee','vu1nC1q','vvfhwKG','yMrYvvi','sgrLvuO','q2fqDMO','B1jgELy','rfPMs1q','wg9fz1m','Dg9eyxrL','yufzAMS','qxHpEfK','z3fjz2O','nKf0BfjTza','sK9HExa','EvDTvMq','zvzdBxC','Eu5uu2i','qwvvCuG','CM91BMrcEq','rwv5B1O','uNjHswS','DgvUx3z0','zL90AwvU','EvjYue4','Bw9UDgG','weLUwNO','sKTYDeW','s2LctLO','A09QrK4','s1LHvu0','ANrzDgm','Bg9N','v1ftBfq','C2fKBhG','4P2mifT0Aw5Oz2LHDgjDieZHU5DPigpHUQ1Wig5O4BQLDcbWAgNHUR91ig5O4BQTCa','DgLQzgi','tvniC1e','DwfOq20','q2DKyxq','DgLLBL94Dwf0','BwfFA2HVx24','sNv3v2W','lI90Aw5Oz2LHDgiXDNq','suDAvLi','z2v0vgLTzq','DgHLBG','txbTwfu','EgzzCge','whfnwgK','tufLBxO','zgv0ywLSC19RBq','EvLswxG','zMLUze9Uzq','wg9wzKi','wLHLqKC','C29YDej5','uunpBvK','B0Lkzxm','y2XKAuW','zK5pwey','yxjWDMW','yM9cvKW','CeX2sxG','AuvRwve','tgrqzwe','BwfFA2HV','s0TkquO','sxHfBwW','BMXbCw4','AujYBey','qKjwzKG','r2LYrwu','tvvHvhe','CvLeu28','veHmrKK','ChHFz2LHx2rK','q2HsswW','vKnAwui','CxLys04','q1PODhO','wen3rxm','zu5zzKi','BgzhyLm','4PQG77IpifT0Aw5Oz2LHDgjDieTOB25NihrPBsbTB2rLBcbJAg8GBwfFy3q9','BwfFBNz0','vfvVzuq','AfjHD0O','t2DTAuW','z2LHx3zVBL9UDa','Bw9KzwXZ','w3rPBMHNAwf0yL0Gy28GBg9PigXHEsbWAgLLDsbUAgfWigrPzxuGy2H1EwvU','y1jnAxu','ufPAELG','rLvMu3y','tvLXvKG','zLbVrw0','mZq3nZqYD0ryvuro','y3jAyLq','Cg9Msfm','yKrAB3K','t1r3uNm','DMngCe8','sgTTA3G','s3z4DvO','wLjAwKO','wKndC2u','D2f0zxjMywXS','y1Ltzu8','C29RAg8','Bg9KyxnO','CNzfufC','CvLRzKe','v25KAMm','zNvbvgK','r2f3zwC','sfHvwum','yLr4DeS','q0TvqKG','Dg9pyMPLy3q','Ee1vEfK','y0n2qKC','rMvODgy','tevot2m','EwvquLa','zxjYB3i','CLDzsuW','yujssw4','ywjZ','vLvxzuq','u1DcEhO','zuLtsNG','t1fyrxK','AwjnqwW','EevSu2m','vgXiAeu','zhuWma','x2rLyNvNswq','qu9PwfK','sMTmEKS','sKPVywK','C2XFBMHHCa','Bw9LDNq','t21WDfa','y2XbAuu','vg9jrLa','y1rVtxK','r1fdBhG','z3HAAgC','CgLeA3i','rfbZwhO','w3rPBMHNAwf0yL0Gq+g6RxaGBMJHUQ10igDPW6eGBMJHUQ1WigTOBY4UlG','CgfYywXSzwW','Bw9KzwW','EK1gDNC','wuLgt0W','vgz2C1e','Bw9Tzw50','q0HJtgq','BwvZC2fNzq','ywrAyuC','A3zIwfe','Dw5UqK4','uMnIwfO','CLLpBhu','AeHuCM8','zNvtuhm','vfnwAwK','Dvr0u3y','uevnB0C','txPsvxO','rMP3y2C','yKXQsMe','B3b0Aw9UCW','Dg1Hs2O','t3fqChK','rwjuBei','C2XFEhvHDa','zg1Xzgr2Da','zvH4yxG','AMjNDgu','CMnpwwu','D0j0vuu','wKDnreC','rhD6qNG','AwDkwfa','zKDLvui','DLrSCfa','AwrFyxbW','u1rPvK8','rffozxC','q3vSzuK','DKLtCKe','B2TjAfO','q05MB2S','uerWDMO','yxrxBKy','y29TyM8','DeHYrvu','yujICMS','B05tv2u','uxHSwxu','C0LxsuW','vvbjwKq','wM5bCey','Dg9Umda','Dg9tDhjPBMC','DefqvKW','vLjbqKu','twvlChm','CgHNCuK','BwLTvMK','t3fqyLq','w3rPBMHNAwf0yL0Gs2JdTg5NihrO4BUdihtdRw5OigDPW6eGDhj1BMCGySoSBMGGy2HVihBHUQ10ihtgSa','DMfSDwvZ','sMn3A00','zLPVCvC','CwXiqKK','C2XFA20','lcbZzxnZAw9Usuq9','C2TfELi','wxHnAve','zgvUx3rOyw5N','BwfMCuC','Evb4zgq','EwXZzwe','v21Tu2C','u09izMu','mJb6sg9Zv1K','Bfb0Au4','wxH0q1m','8j+uPsbBDgLUAgDPyxrIxsb0W61UAcbNACoHihrYDw5NigldRg5OlcbRAg86','sLLLEem','zLvyt2e','z2LHx3zVBG','C3vgAKu','svfTtfi','zKPHyKG','DgLLBL9UAgfWx250','Devowu0','q21mzg0','vLvdvM0','Bg5kvfK','twzxzLy','w3rPBMHNAwf0yL0Gtog6PxKGy8oHyYbJAog7Qw5NihtHU6SGy+g6P24Gy+g6RxaGBMJHUQ10ihpHU5uGC8oHy2GGBwfFA2HVpq','B2nzBKq','yLnovee','yM9SDMC','Cg9ZDa','CeXjELy','vgnUugW','CK5vB1u','rMLWsfK','uLj2rfy','r3ryyMW','uwrWsMS','Ae1cANK','vLbZqLu','BuLrv3e','z0vbrMG','t1Dyy3K','Cw9Rv3G','DLzyrwu','u1DfzhO','sNPcBhC','CLrszhG','r1HTtw0','yxjyEhC','Cg9ZDerHDge','ueLUr2C','svjlDhG','rwncAg8','AwvYBwS','vhDozxO','u1bHsem','vgjWCNy','Ce5AAgm','u01ruuS','u3fnBe0','vNfvC3u','A0vZvw4','ufHd','u2rfvvu','sfPiq2S','zM9YrwfJAa','BLPeuhO','tuLUzKC','qKTkDKO','BwfFBMnJ','reTYB3i','BMDHEv9JDa','tK5dufe','mJeXmJC0ogLOuKLhwG','EhPvqM8','CMTvq28','uenvquO','Eg5SzLu','q1z0B1i','CvrKyuW','mJK2nJeXDLLUwgXw','thvJBNe','y0Pct28','mJuZmJq4oeTJqun6Cq','DKTOqxC','s2Tnuxa','AKHLwva','DLvmu0C','reLyrgq','AM9PBK1VzgvSmG','rev5vfi','CeLpsfe','C0PbvK8','wNHnshK','BNr2uey','AwrFy3q','w3rPBMHNAwf0yL0Gq+g6RxaGBMJHUQ10igDPW6eGEhxHUQv0igTOBY4UlG','4P2mifT0Aw5Oz2LHDgjDieZHU5DPigpHUQ1Wig5O4BQTDcbWAgNHUR91ihH14BQLDdO','te1RyKS','A1rezxa','Axf1z08','z2X0A2e','w3rPBMHNAwf0yL0GXjddOw5OigDPW6eGy2JdQM5OigZHU4DJAc4UlG','wxnqwxO','DhvFDgHHBMC','rfrUDgm','Exb4CLu','uunnDvu','vMDMyM8','4P2mifT0Aw5Oz2LHDgjDw3bVC3reyxrHxsbS4BUxAtO','Cff4Au4','shzmwKu','txLLEeq','rwjcqNK','zK1JrgO','Cwf0t1y','vhL6uuO','AwXOCfa','Eu5RzwW','ywXS','vMLsvKy','AM9ovvm','v3HKEMi','y0jZDeq','y29UDhjVBgXLCNm','nZaXnJe5rgzrsKvW','y3HUBMO','ug5kAhy','BuHdu1K','v1jOvMu','BMfT','vuLJu0y','z25PAg0','wgHtBgm','uwTAyMW','zwjUBwG','y2f0y2G','qKjRq24','Dg9mB3DLCKnHC2u','zMLUza','DgTLBeW','CurdqMK','sNnPAfC','DxbKyxrLt25L','qM1Nvvy','uKPMDNu','zxzpDxy','tLrmsxy','qwHoqxa','qKL3zMq','r2HxALG','wwnrChi','qxDjt1m','u3DzwMu','BwfFDNq','Dez5CLO','Bg5Pu2y','DgDZtwK','uhDgtLa','DLPOug0','AKTLuKu','BMPez0O','BMnhuva','u0zSse4','vLvJD28','wu9Zweq','EhzjCMK','rfHMEgu','D29xz1a','B1zjuLm','wMPLvxK','y0HsEwu','EKjLzeC','D2fYBG','qwveww4','z2P3B2i','Awrhuhq','u2jzwei','DLnnAwi','BwfFA2HVx3G','t3nVAxy','uw1gDw8','Dg9uuee','Cg5J','u1b4uuq','AhnAqNa','r1v0CeO','A3H5B1C','ze11rMO','DfH2vLG','DgXoyMm','y0XmANe','vLn2sui','rLn1z1y','mZeWmtCZww5xwgri','DhbNB2O','qufhr1i','zhv0rKO','lI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCG','AwXbzLG','C2LLDfa','AM5ksNi','AwzwuxC','v01OEKq','C1fwufe','D0vyEgu','Eu9MBfy','4PQG77IpifT0Aw5Oz2LHDgjDieTOB25NihrPBsb0Agf5ihbOAwv1ihH1yxqUignODw9UzYb0CMLUAcbKysb4B2eGCgHPzxuGBMf5igTOB2KGC+g7LsbZW6fJAcWGAwrFy3q9','ENnyq3q','wK1NCfu','yKnuyvK','w3rPBMHNAwf0yL0Gq+g6RxaGBMJHUQ10ihbOAEg6V3uGy2JdQM5OigZHU4DJAc4UlG','zMnJvxC','rNbwqKS','y3rnyMK','v3blAKq','q21iEu0','4P2mifT0Aw5Oz2LHDgjDignVigXVAsbSyxKGCgHPzxuGBMHHCa','sMLyrxC','vM1ysvq','uK5lB24','thjrsMC','wwrbBgq','ruDtuue','DgLLBL9UAgfW','r0P6zeu','otaYmZbODxzNEfm','t1jsEum','Bwf1','s3Dtwxm','Bg9UDK0','CxbuwhC','DvbQBLu','DvbvrMS','sMfnCMy','zvLou2q','uLDYt3O','wuPIAuK','DxnQAfO','rufhvNm','te1tzLm','DKzNBhK','ELPwrKy','sNrHz0m','tK1YENe','vezVqxi','B2fAv2G','y0HvvgC','vhfirxu','Dwv0tNm','x2LK','t0zpuhu','u2PUsem','z2HbtM0','rg1IqK0','vhPMCeu','DM9rs3K','BfLxre8','Dg9vChbLCKnHC2u','txfwu0C','uhfNtfe','s2fvu1y','uwnkqvm','C29JywK','EhHktge','ELbiBu0','zw5Kt2y','t1vKD2G','uvjXz0W','CMvKDwnL','wfHKthK','tog7L2K6iftdRw5Oig7eG25Nig7dOhKGECoQDsbJ4BQNDsbJW6fJihrOyw0GC+g7KtOGDhvFDgHHBMCSzgvUx3rOyw5Nlg5HBsXPzf9HCha','uw9vweK','zgv0ywLSCW','B2TrCem','BwfWtgLTAxq','rhDkBuq','reX1DuW','DfPpqKy','BvLdB28','wNL0ANy','sg9lC2m','ChjVBw90Aw9U','A3LVvgC','C0jfvu0','wKrhy0O','BwfFy3q','txnvBfu','zNjnvLm','vNbKre0','DLjZzum','yxbW','zvvmwhy'];_0x4f27=function(){return _0x5e888a;};return _0x4f27();}const ckvt=require(_0x3b7c73(0x34b)),sokho=global[_0x3b7c73(0x33e)](_0x3b7c73(0x3c5)),socai=global[_0x3b7c73(0x33e)](_0x3b7c73(0x2c7)),dmvt=global['getModel']('dmvt'),giatb=global['getModel'](_0x3b7c73(0x34d)),dmqddvt=global[_0x3b7c73(0x33e)](_0x3b7c73(0x197)),tinhgiatb1vt=require(_0x3b7c73(0x383)),async=require(_0x3b7c73(0x2f3)),_=require(_0x3b7c73(0x3c6)),Controller=require(_0x3b7c73(0x286)),moment=require(_0x3b7c73(0x182)),{getCurrentSession}=require(_0x3b7c73(0x30b));module[_0x3b7c73(0x336)]=async function(_0x15a383,_0x343d08){const _0x13d9ab=_0x3b7c73,_0x4111e2={'DEyTR':function(_0x4b1083,_0x54a9a8){return _0x4b1083!==_0x54a9a8;},'kHZOE':_0x13d9ab(0x28f),'fNOXF':function(_0x400803,_0x582677){return _0x400803(_0x582677);},'JJoai':function(_0x1c3472,_0x4a7030,_0x4679e2){return _0x1c3472(_0x4a7030,_0x4679e2);},'gqIgj':function(_0x12e16f,_0x2fa366){return _0x12e16f-_0x2fa366;},'lYWDO':function(_0x507ab1,_0x35a8c3){return _0x507ab1===_0x35a8c3;},'kxyoW':_0x13d9ab(0x2d9),'iqhYg':_0x13d9ab(0x1e1),'crZbT':function(_0x45b3a6,_0x1ec1e0){return _0x45b3a6(_0x1ec1e0);},'irFZg':function(_0x1ad86e,_0x8fd626,_0x22f07c){return _0x1ad86e(_0x8fd626,_0x22f07c);},'cxnnj':function(_0x59c847,_0x5de8ec,_0x1a57c2){return _0x59c847(_0x5de8ec,_0x1a57c2);},'lginb':_0x13d9ab(0x3b3),'FWDkC':_0x13d9ab(0x277),'tDjme':function(_0x402a67){return _0x402a67();},'VSvIB':'tJdhO','DwzBx':function(_0x52c5f7,_0x553741){return _0x52c5f7*_0x553741;},'AxOxY':_0x13d9ab(0x2fd),'pofHS':'idGPt','woWgP':'sNIPr','zXDkK':_0x13d9ab(0x2a8),'NSILS':_0x13d9ab(0x1ba),'ntvPF':_0x13d9ab(0x212),'ctMbi':function(_0xe4d157,_0x459e58){return _0xe4d157(_0x459e58);},'RcbXZ':'uWJrm','TqHEu':_0x13d9ab(0x218),'aahRw':_0x13d9ab(0x2f7),'XXdLy':function(_0x10c0ca,_0x54029d){return _0x10c0ca/_0x54029d;},'hsZBp':'hKXBu','Wndjc':_0x13d9ab(0x2b0),'ZxMHy':_0x13d9ab(0x193),'GBESJ':function(_0xb5dbe7,_0x85b1af){return _0xb5dbe7(_0x85b1af);},'kEsUn':function(_0x2810a8,_0x5c530a){return _0x2810a8<=_0x5c530a;},'FSMbn':_0x13d9ab(0x1c1),'DKror':function(_0x3e9f7c,_0x29f11f,_0x26f61e){return _0x3e9f7c(_0x29f11f,_0x26f61e);},'TBcyf':'klqHT','guFPs':'sDJxL','SFlHN':function(_0x613d31,_0xf5b86){return _0x613d31(_0xf5b86);},'XPBGl':_0x13d9ab(0x2cf),'FWEyT':function(_0x60b907,_0x25d16e){return _0x60b907(_0x25d16e);},'fPoEm':function(_0x30665d,_0x225d35){return _0x30665d(_0x225d35);},'UIcSF':_0x13d9ab(0x371),'ifVQw':function(_0x496335,_0x47f38e){return _0x496335(_0x47f38e);},'PInGg':function(_0x97bbce,_0x1f9d47){return _0x97bbce-_0x1f9d47;},'VmXIT':function(_0x28883d,_0x50eb7){return _0x28883d(_0x50eb7);},'gXLRy':'Công\x20ty\x20này\x20không\x20tồn\x20tại'};if(!_0x15a383||!_0x15a383[_0x13d9ab(0x228)]||!_0x15a383[_0x13d9ab(0x1c3)]||!_0x15a383['nam']||!_0x15a383['id_app']){if(_0x4111e2[_0x13d9ab(0x2c1)](_0x4111e2[_0x13d9ab(0x31e)],_0x4111e2[_0x13d9ab(0x31e)])){_0x4111e2[_0x13d9ab(0x263)](_0x343d08,_0x4111e2['XPBGl']);return;}else _0xe1664c[_0x263f95[_0x13d9ab(0x2ba)][_0x13d9ab(0x1b3)]()]=_0x2b50ec;}_0x15a383[_0x13d9ab(0x228)]=_0x4111e2[_0x13d9ab(0x263)](Number,_0x15a383[_0x13d9ab(0x228)]),_0x15a383[_0x13d9ab(0x1c3)]=_0x4111e2[_0x13d9ab(0x2e5)](Number,_0x15a383['den_thang']);let _0x57712f=_0x15a383[_0x13d9ab(0x39a)],_0x3870bf=_0x4111e2[_0x13d9ab(0x3b8)](moment,new Date(_0x15a383['nam'],_0x4111e2['gqIgj'](_0x15a383['tu_thang'],0x1),0xf))[_0x13d9ab(0x2ff)](_0x4111e2[_0x13d9ab(0x243)])['toDate'](),_0x4a440e=_0x4111e2[_0x13d9ab(0x28a)](moment,new Date(_0x15a383[_0x13d9ab(0x242)],_0x4111e2[_0x13d9ab(0x1f2)](_0x15a383[_0x13d9ab(0x1c3)],0x1),0xf))[_0x13d9ab(0x2ca)](_0x4111e2[_0x13d9ab(0x243)])[_0x13d9ab(0x361)](),_0x4b9032=_0x15a383[_0x13d9ab(0x1a1)];const _0x20efa2=await global[_0x13d9ab(0x33e)](_0x13d9ab(0x2e3))[_0x13d9ab(0x38d)]({'_id':_0x4b9032},{'options':0x1})[_0x13d9ab(0x320)]();if(!_0x20efa2)return _0x4111e2[_0x13d9ab(0x29b)](_0x343d08,_0x4111e2['gXLRy']);const _0x85e24e=(_0x20efa2[_0x13d9ab(0x192)]||{})[_0x13d9ab(0x36f)]||0x0;let _0x5cf1ef={'id_app':_0x4b9032,'gia_xuat':'1'};if(_0x15a383['ma_nvt'])_0x5cf1ef[_0x13d9ab(0x3ad)]=_0x15a383[_0x13d9ab(0x3ad)];if(_0x15a383['ma_ncc'])_0x5cf1ef[_0x13d9ab(0x205)]=_0x15a383['ma_ncc'];_0x15a383[_0x13d9ab(0x25a)]&&(_0x5cf1ef[_0x13d9ab(0x25a)]=_0x15a383['ma_vt']),console['log'](_0x13d9ab(0x1cc)+_0x15a383[_0x13d9ab(0x39a)]+_0x13d9ab(0x1c0)+getCurrentSession()?.[_0x13d9ab(0x3e1)]),dmvt[_0x13d9ab(0x24b)](_0x5cf1ef)[_0x13d9ab(0x320)]()[_0x13d9ab(0x386)](function(_0x1de4de){const _0x4606b1=_0x13d9ab,_0x5f2296={'cqgGV':'[tinhgiatb]\x20Không\x20thể\x20tính\x20giá\x20trung\x20bình\x20cho\x20vật\x20tư','tggDe':function(_0x179912,_0x140e8e){return _0x179912(_0x140e8e);},'YOsXD':function(_0x2b6a6d,_0xc7087a,_0x2de398){const _0x4b6ff2=_0x34d8;return _0x4111e2[_0x4b6ff2(0x206)](_0x2b6a6d,_0xc7087a,_0x2de398);}};async[_0x4606b1(0x2d3)](_0x1de4de,0x64,function(_0x12e8b1,_0x3854e9){const _0x35ce13={'ilAfX':_0x5f2296['cqgGV'],'wBtUE':function(_0x397dc5,_0x34b0dd){const _0x137028=_0x34d8;return _0x5f2296[_0x137028(0x30c)](_0x397dc5,_0x34b0dd);},'PaViJ':function(_0x481cd0,_0x42e034,_0x1160d1){const _0x126dcd=_0x34d8;return _0x5f2296[_0x126dcd(0x265)](_0x481cd0,_0x42e034,_0x1160d1);}};setImmediate(()=>{const _0x311ea8=_0x34d8,_0x1eccb8={'OTwRs':_0x35ce13[_0x311ea8(0x287)],'SjnHC':function(_0x3da751,_0x32f3b4){const _0x1e7f49=_0x311ea8;return _0x35ce13[_0x1e7f49(0x19b)](_0x3da751,_0x32f3b4);},'YIFOL':function(_0x4d918b,_0xf8daba,_0x86f120){return _0x35ce13['PaViJ'](_0x4d918b,_0xf8daba,_0x86f120);}};let _0xf19ef2={'id_app':_0x4b9032,'tu_ngay':_0x3870bf,'den_ngay':_0x4a440e,'ma_vt':_0x12e8b1[_0x311ea8(0x25a)],'ma_kho':_0x57712f};_0x35ce13[_0x311ea8(0x2ec)](tinhgiatb1vt,_0xf19ef2,function(_0x369811,_0x35d873){const _0x52f80b=_0x311ea8;if(_0x369811)return console[_0x52f80b(0x3d5)](_0x1eccb8[_0x52f80b(0x3bd)],_0xf19ef2[_0x52f80b(0x25a)],_0x369811),_0x1eccb8[_0x52f80b(0x2bc)](_0x3854e9,_0x369811);_0x35d873[_0x52f80b(0x1a1)]=_0x4b9032,_0x35d873['ma_kho']=_0x57712f,_0x35d873[_0x52f80b(0x341)]=!![],_0x1eccb8[_0x52f80b(0x180)](_0x3854e9,null,_0x35d873);});});},function(_0x300ef4,_0x569880){const _0x5eddfe=_0x4606b1,_0x44fcb2={'WpKjD':function(_0x1e5bcb,_0x1e91c9){const _0x2bccc5=_0x34d8;return _0x4111e2[_0x2bccc5(0x21a)](_0x1e5bcb,_0x1e91c9);},'iermk':_0x4111e2['kHZOE'],'XoEgS':function(_0x51f2ca,_0x45b86d){const _0x60fcc4=_0x34d8;return _0x4111e2[_0x60fcc4(0x394)](_0x51f2ca,_0x45b86d);},'WkfXC':function(_0x1468bf,_0x11caa4,_0x29689b){const _0x4faa73=_0x34d8;return _0x4111e2[_0x4faa73(0x3e4)](_0x1468bf,_0x11caa4,_0x29689b);},'BRHda':function(_0x4e45f3,_0x2e1c5c){const _0x5fa98a=_0x34d8;return _0x4111e2[_0x5fa98a(0x364)](_0x4e45f3,_0x2e1c5c);},'SbYXB':_0x5eddfe(0x299),'ZfQAo':function(_0x31f28f,_0x48d231){const _0x432202=_0x5eddfe;return _0x4111e2[_0x432202(0x2c1)](_0x31f28f,_0x48d231);},'joNUS':function(_0x2505ca,_0x5377de){return _0x4111e2['DEyTR'](_0x2505ca,_0x5377de);},'Vgfbo':_0x4111e2[_0x5eddfe(0x27b)],'JtagC':_0x5eddfe(0x185),'uDTFD':_0x4111e2['iqhYg'],'UTMzd':function(_0x3722ee,_0x31ec39){const _0x22ffcb=_0x5eddfe;return _0x4111e2[_0x22ffcb(0x3ba)](_0x3722ee,_0x31ec39);},'PwFNP':function(_0x2eb804,_0x36f216){return _0x2eb804!==_0x36f216;},'nlAqn':function(_0x106657,_0x306866,_0x3c51c6){return _0x4111e2['irFZg'](_0x106657,_0x306866,_0x3c51c6);},'MFRsa':function(_0x3609df,_0x2516b5,_0x48c315){const _0x1d8dfd=_0x5eddfe;return _0x4111e2[_0x1d8dfd(0x23e)](_0x3609df,_0x2516b5,_0x48c315);},'eULXv':_0x4111e2[_0x5eddfe(0x311)],'MInfG':function(_0x5c51b2,_0xf83a83){const _0x2a03ee=_0x5eddfe;return _0x4111e2[_0x2a03ee(0x394)](_0x5c51b2,_0xf83a83);},'GQClx':'PNC','LrQJg':_0x4111e2['FWDkC'],'toYlo':function(_0x3e1a19){return _0x4111e2['tDjme'](_0x3e1a19);},'NTLIv':_0x4111e2[_0x5eddfe(0x280)],'gQXAA':function(_0x53a70d,_0x342512){return _0x53a70d/_0x342512;},'ikfNi':function(_0xfbd6b1,_0x4b2e59){const _0x269d7c=_0x5eddfe;return _0x4111e2[_0x269d7c(0x19d)](_0xfbd6b1,_0x4b2e59);},'zBedG':_0x4111e2[_0x5eddfe(0x363)],'eNrXV':_0x4111e2[_0x5eddfe(0x3bb)],'DQNew':_0x4111e2[_0x5eddfe(0x268)],'jKeRE':_0x5eddfe(0x17e),'AAGGR':_0x5eddfe(0x240),'QOGHL':function(_0x3a49f5,_0x27965d){const _0x40dc06=_0x5eddfe;return _0x4111e2[_0x40dc06(0x3ba)](_0x3a49f5,_0x27965d);},'IRKtx':function(_0xfec668,_0x423454){const _0x494b08=_0x5eddfe;return _0x4111e2[_0x494b08(0x2c1)](_0xfec668,_0x423454);},'imZbS':_0x4111e2[_0x5eddfe(0x305)],'hbNQg':_0x4111e2['NSILS'],'ckYXV':_0x4111e2[_0x5eddfe(0x21e)],'vRseC':'NjMJN','HdeUJ':function(_0x438c50,_0x10df11){const _0x13d525=_0x5eddfe;return _0x4111e2[_0x13d525(0x296)](_0x438c50,_0x10df11);},'CaPvj':_0x4111e2[_0x5eddfe(0x188)],'efDVB':function(_0x414350,_0x52a8cb){const _0x240d0a=_0x5eddfe;return _0x4111e2[_0x240d0a(0x21a)](_0x414350,_0x52a8cb);},'hRawJ':_0x4111e2[_0x5eddfe(0x2b8)],'WMhzD':'hzKwC','LMkbK':_0x4111e2['aahRw'],'MYqVH':function(_0x1969b4,_0x313514){const _0x3c96e1=_0x5eddfe;return _0x4111e2[_0x3c96e1(0x2ce)](_0x1969b4,_0x313514);},'bolvg':_0x5eddfe(0x3bc),'vZhPm':_0x5eddfe(0x227),'VqUsu':_0x5eddfe(0x3ea),'CmHyM':_0x4111e2[_0x5eddfe(0x279)],'bQglG':_0x4111e2[_0x5eddfe(0x3c9)],'AcCGj':_0x5eddfe(0x221),'buiSs':_0x5eddfe(0x25a),'JOayp':function(_0x555090,_0x3a328c){const _0x5d3c38=_0x5eddfe;return _0x4111e2[_0x5d3c38(0x3ba)](_0x555090,_0x3a328c);}};if(_0x4111e2['DEyTR']('fvqee',_0x4111e2[_0x5eddfe(0x21d)])){if(_0x300ef4)return _0x4111e2['GBESJ'](_0x343d08,_0x300ef4);let _0x4a63d4=[];for(let _0x11ef99=_0x15a383[_0x5eddfe(0x228)];_0x4111e2[_0x5eddfe(0x1fd)](_0x11ef99,_0x15a383[_0x5eddfe(0x1c3)]);_0x11ef99++){_0x4111e2['lYWDO'](_0x5eddfe(0x2f4),_0x4111e2['FSMbn'])?_0x332b1f['ma_kho']=_0x518360:_0x4a63d4[_0x5eddfe(0x32f)](_0x11ef99);}async[_0x5eddfe(0x2e8)](_0x4a63d4,async function(_0x32ab83){const _0x16979b=_0x5eddfe;let _0x134c18={'id_app':_0x4b9032,'ma_vt':{'$in':_0x569880[_0x16979b(0x2e8)](_0x26f7a9=>_0x26f7a9[_0x16979b(0x25a)])},'nam':_0x15a383[_0x16979b(0x242)],'thang':_0x32ab83};_0x57712f&&(_0x134c18[_0x16979b(0x39a)]=_0x57712f);await giatb[_0x16979b(0x346)](_0x134c18);let _0x146810=_0x569880['map'](_0x19a761=>{const _0x1fcc20=_0x16979b;return{..._0x19a761,'thang':_0x32ab83,'nam':_0x15a383[_0x1fcc20(0x242)]};}),_0x2fe397=await giatb['create'](_0x146810);return _0x2fe397;},function(_0x58f43f){const _0x606915=_0x5eddfe,_0x52e0b0={'jWTBn':function(_0x106ae4,_0x3d1de7,_0x537a22){return _0x44fcb2['WkfXC'](_0x106ae4,_0x3d1de7,_0x537a22);},'lKayL':function(_0x59055f,_0x225db2){return _0x59055f===_0x225db2;},'xqrVC':function(_0x407bc0,_0x16fd98){const _0x3e6712=_0x34d8;return _0x44fcb2[_0x3e6712(0x306)](_0x407bc0,_0x16fd98);},'njDgJ':_0x44fcb2[_0x606915(0x271)],'mafqG':function(_0x39ff70,_0x4e586f){const _0x1881eb=_0x606915;return _0x44fcb2[_0x1881eb(0x334)](_0x39ff70,_0x4e586f);},'EGSQA':function(_0xd9f762,_0x1ae568){const _0x201756=_0x606915;return _0x44fcb2[_0x201756(0x239)](_0xd9f762,_0x1ae568);},'atWnF':_0x44fcb2[_0x606915(0x22c)],'VUcwo':_0x44fcb2[_0x606915(0x2b3)],'GJzdE':_0x44fcb2['uDTFD'],'jHeYP':function(_0x4b276d,_0x35f36e){const _0x5c2aa5=_0x606915;return _0x44fcb2[_0x5c2aa5(0x30d)](_0x4b276d,_0x35f36e);},'LENOc':function(_0x5d7c52,_0x164227){const _0x28917e=_0x606915;return _0x44fcb2[_0x28917e(0x25e)](_0x5d7c52,_0x164227);},'XqMXi':function(_0x4336e8,_0x5b3713,_0xa9d58b){const _0xaa6e0c=_0x606915;return _0x44fcb2[_0xaa6e0c(0x39d)](_0x4336e8,_0x5b3713,_0xa9d58b);},'DTNjl':function(_0x1fbdad,_0x222151,_0x45c356){const _0x1c49cd=_0x606915;return _0x44fcb2[_0x1c49cd(0x345)](_0x1fbdad,_0x222151,_0x45c356);},'zKctu':_0x44fcb2[_0x606915(0x2e4)],'VPsBU':function(_0x25c5a9,_0x1288a4){const _0x397f41=_0x606915;return _0x44fcb2[_0x397f41(0x203)](_0x25c5a9,_0x1288a4);},'nZDPz':_0x44fcb2[_0x606915(0x3eb)],'QxlYu':_0x44fcb2[_0x606915(0x29d)],'aBbrk':function(_0x39e901){const _0x5de63d=_0x606915;return _0x44fcb2[_0x5de63d(0x309)](_0x39e901);},'yRrPN':_0x44fcb2[_0x606915(0x253)],'yWmVd':function(_0x23007b,_0x10d8eb){return _0x44fcb2['gQXAA'](_0x23007b,_0x10d8eb);},'TUoeD':function(_0x40269e,_0x4d041f){const _0x47a36c=_0x606915;return _0x44fcb2[_0x47a36c(0x324)](_0x40269e,_0x4d041f);},'clAiE':_0x44fcb2[_0x606915(0x26c)],'JUxOR':_0x44fcb2[_0x606915(0x34f)],'xfYpa':function(_0x409019,_0x3f52bf){const _0x294471=_0x606915;return _0x44fcb2[_0x294471(0x334)](_0x409019,_0x3f52bf);},'XInZz':_0x44fcb2[_0x606915(0x1a3)],'aicWY':'qhTsj','VpdDM':_0x44fcb2[_0x606915(0x260)],'voQKy':_0x44fcb2[_0x606915(0x284)],'JYexC':function(_0x8db8db,_0x2297ff){const _0x156cc5=_0x606915;return _0x44fcb2[_0x156cc5(0x335)](_0x8db8db,_0x2297ff);},'lBGwK':function(_0x3ba747,_0x22354b){const _0x21aa04=_0x606915;return _0x44fcb2[_0x21aa04(0x1f3)](_0x3ba747,_0x22354b);},'FEHQh':_0x44fcb2['imZbS'],'cQtUB':_0x44fcb2[_0x606915(0x2ee)],'DZfKT':_0x44fcb2['ckYXV'],'xuvSq':_0x606915(0x1da),'XhSlc':_0x44fcb2[_0x606915(0x2e2)],'ihtyJ':function(_0x456c36,_0x271d81){const _0x4220cb=_0x606915;return _0x44fcb2[_0x4220cb(0x35c)](_0x456c36,_0x271d81);},'KkMQp':function(_0x77ae0e,_0x1db2a3){return _0x44fcb2['IRKtx'](_0x77ae0e,_0x1db2a3);},'kTDep':_0x44fcb2[_0x606915(0x35d)],'SWEdz':_0x606915(0x1b4),'rnrul':function(_0x124de0,_0x3a7313){return _0x44fcb2['efDVB'](_0x124de0,_0x3a7313);},'fGeUB':_0x44fcb2[_0x606915(0x3af)],'JTxkX':_0x44fcb2[_0x606915(0x28b)],'vcFpO':function(_0x2733c5,_0x5eaf2d,_0x2cbfba){return _0x2733c5(_0x5eaf2d,_0x2cbfba);},'JuwWl':_0x44fcb2[_0x606915(0x222)],'sJAVO':function(_0x8cb94f,_0x2bd5fe){const _0x902b82=_0x606915;return _0x44fcb2[_0x902b82(0x3b7)](_0x8cb94f,_0x2bd5fe);},'BIwfd':_0x606915(0x1c6),'suFjE':_0x44fcb2[_0x606915(0x1dc)],'QRqgL':_0x606915(0x1a6),'arpvl':_0x606915(0x1c2),'qpTXw':_0x606915(0x337),'rvEPW':_0x44fcb2[_0x606915(0x25f)],'moevt':_0x606915(0x3cc),'gyTtz':function(_0x354a3c,_0x27ff95){return _0x354a3c+_0x27ff95;},'fJabH':_0x44fcb2[_0x606915(0x1fc)],'HvLZE':_0x44fcb2[_0x606915(0x298)],'cLLjq':_0x44fcb2['bQglG'],'fFRQZ':function(_0x3d2e21,_0x1596ee){const _0x2467e7=_0x606915;return _0x44fcb2[_0x2467e7(0x324)](_0x3d2e21,_0x1596ee);},'lonvM':_0x44fcb2['AcCGj'],'hxwGd':_0x606915(0x1fa),'nBlpG':'lvQfx','xvIri':_0x44fcb2['buiSs'],'vlltK':function(_0xb54dd3,_0x200e65){const _0x8a44c=_0x606915;return _0x44fcb2[_0x8a44c(0x1f3)](_0xb54dd3,_0x200e65);},'XoVfB':_0x606915(0x1e5)};if(_0x58f43f)return _0x44fcb2[_0x606915(0x366)](_0x343d08,_0x58f43f);console[_0x606915(0x378)](_0x606915(0x1d9)+_0x15a383[_0x606915(0x39a)]);let _0x398145={},_0xc1a502={},_0x3996cc=_0x569880[_0x606915(0x2e8)](_0x1a338e=>_0x1a338e[_0x606915(0x25a)]);async[_0x606915(0x17d)]({'xuat':function(_0x312bd3){const _0x1e404e=_0x606915,_0x4d85e4={'OeEtF':function(_0xc16d8d,_0x281e24){const _0x15de13=_0x34d8;return _0x44fcb2[_0x15de13(0x297)](_0xc16d8d,_0x281e24);},'sBEUM':'VCZYB','vFgly':'model','rkUCo':_0x44fcb2[_0x1e404e(0x1f5)]};setImmediate(async()=>{const _0x46c8a3=_0x1e404e,_0x31f312={'MsUlU':function(_0x23e75a,_0x164cbd){return _0x23e75a(_0x164cbd);},'HEebO':function(_0x494449,_0x2d6948,_0x3ac13a){const _0x362ce7=_0x34d8;return _0x52e0b0[_0x362ce7(0x2ea)](_0x494449,_0x2d6948,_0x3ac13a);}};let _0x48a1ec={'id_app':_0x4b9032,'ngay_ct':{'$gte':_0x3870bf,'$lte':_0x4a440e},'nxt':0x2,'ma_vt':{'$in':_0x3996cc},'px_gia_dd':![]};_0x57712f&&(_0x48a1ec[_0x46c8a3(0x39a)]=_0x57712f);const _0x197e0b=await sokho[_0x46c8a3(0x24b)](_0x48a1ec)[_0x46c8a3(0x320)]();if(_0x52e0b0['lKayL'](_0x197e0b['length'],0x0))return _0x52e0b0['jWTBn'](_0x312bd3,null,_0x398145);const _0x3c4010=[...new Set(_0x197e0b[_0x46c8a3(0x2e8)](_0x30d08e=>_0x30d08e[_0x46c8a3(0x2de)]))];async['map'](_0x3c4010,async function(_0x1b4bd5){const _0x40e30f=_0x46c8a3;if(_0x4d85e4['OeEtF'](_0x40e30f(0x3a6),_0x4d85e4[_0x40e30f(0x2dc)]))_0x420dc3[_0x40e30f(0x3d5)](_0x40e30f(0x37b),_0x2b394c[_0x40e30f(0x2de)],_0x141155[_0x40e30f(0x332)],_0x18f426[_0x40e30f(0x3d5)]||_0x51f242[_0x40e30f(0x184)]||_0x1dcd0b),_0x2391ee(_0x44f034);else{const _0xb69692=global[_0x40e30f(0x23c)][_0x1b4bd5['toUpperCase']()];let _0x588b8d=_0xb69692?_0xb69692['getProperty'](_0x4d85e4[_0x40e30f(0x2b1)]):mongoose['models'][_0x1b4bd5[_0x40e30f(0x24a)]()];if(_0x588b8d){const _0x2b9197=[...new Set(_0x197e0b[_0x40e30f(0x308)](_0x37cb69=>_0x37cb69[_0x40e30f(0x2de)]===_0x1b4bd5)[_0x40e30f(0x2e8)](_0x50cd30=>_0x50cd30[_0x40e30f(0x21f)]))],_0x5527f1=await _0x588b8d['find']({'_id':{'$in':_0x2b9197}});for(let _0x16e215 of _0x5527f1){_0x398145[_0x16e215[_0x40e30f(0x2ba)][_0x40e30f(0x1b3)]()]=_0x16e215;}for(let _0x30a458 of _0x2b9197[_0x40e30f(0x308)](_0x4f8c87=>!_0x398145[_0x4f8c87])){console['log'](_0x4d85e4[_0x40e30f(0x20b)],_0x30a458,_0x40e30f(0x301),_0x1b4bd5),await sokho[_0x40e30f(0x346)]({'id_ct':_0x30a458}),await socai[_0x40e30f(0x346)]({'id_ct':_0x30a458});}return null;}else return console[_0x40e30f(0x378)](_0x40e30f(0x3ac),_0x1b4bd5),null;}},function(_0x2e6128){const _0x544015=_0x46c8a3;if(_0x2e6128)return console[_0x544015(0x3d5)](_0x544015(0x329),_0x2e6128),_0x31f312[_0x544015(0x2df)](_0x312bd3,_0x2e6128);_0x31f312['HEebO'](_0x312bd3,null,_0x398145);});});},'nhap':function(_0x324896){const _0xa611dd=_0x606915;_0x44fcb2[_0xa611dd(0x360)](setImmediate,async()=>{const _0x3beeeb=_0xa611dd,_0x1f1934={'VUCVm':function(_0x4fd815,_0x847889){return _0x52e0b0['xqrVC'](_0x4fd815,_0x847889);},'UFysH':_0x52e0b0[_0x3beeeb(0x261)],'mIQWq':function(_0x1a9e42,_0x2ceb74){return _0x1a9e42(_0x2ceb74);},'hHTro':function(_0x4ce263,_0x514b1b){const _0x5ca533=_0x3beeeb;return _0x52e0b0[_0x5ca533(0x1c4)](_0x4ce263,_0x514b1b);},'huHVO':_0x3beeeb(0x1d8),'dutFJ':function(_0x582406,_0x25e7b6){const _0x5dc2d9=_0x3beeeb;return _0x52e0b0[_0x5dc2d9(0x29f)](_0x582406,_0x25e7b6);},'cBstD':_0x52e0b0[_0x3beeeb(0x1a9)],'LdPea':_0x3beeeb(0x34a),'yOflV':function(_0x205947,_0x106baf){return _0x52e0b0['EGSQA'](_0x205947,_0x106baf);},'BHrFt':_0x52e0b0[_0x3beeeb(0x264)],'qokWx':_0x52e0b0[_0x3beeeb(0x2a1)],'pLIzV':function(_0x565d6c,_0x5bc0a5){const _0x1752d3=_0x3beeeb;return _0x52e0b0[_0x1752d3(0x216)](_0x565d6c,_0x5bc0a5);},'kCSMG':function(_0x13a991,_0x383557){const _0x31069a=_0x3beeeb;return _0x52e0b0[_0x31069a(0x3d3)](_0x13a991,_0x383557);},'frMVS':function(_0xd7597f,_0x462432,_0x520fd3){const _0x158bf5=_0x3beeeb;return _0x52e0b0[_0x158bf5(0x389)](_0xd7597f,_0x462432,_0x520fd3);}};let _0x12da9b={'id_app':_0x4b9032,'ngay_ct':{'$gte':_0x3870bf,'$lte':_0x4a440e},'nxt':0x1,'ma_vt':{'$in':_0x3996cc},'pn_gia_tb':!![],'ma_ct':{'$ne':_0x3beeeb(0x1fe)}};if(_0x57712f)_0x12da9b[_0x3beeeb(0x39a)]=_0x57712f;const _0x3d8147=await sokho[_0x3beeeb(0x24b)](_0x12da9b)['lean']();if(_0x52e0b0[_0x3beeeb(0x2fa)](_0x3d8147[_0x3beeeb(0x315)],0x0))return _0x52e0b0['DTNjl'](_0x324896,null,_0xc1a502);const _0x12c565=[...new Set(_0x3d8147[_0x3beeeb(0x2e8)](_0x1bbf83=>_0x1bbf83[_0x3beeeb(0x2de)]))];async['map'](_0x12c565,async function(_0x42bbae){const _0x2bcc09=_0x3beeeb,_0x136894={'ldBVw':function(_0x224d9e,_0x34b557){const _0x1349fa=_0x34d8;return _0x1f1934[_0x1349fa(0x18a)](_0x224d9e,_0x34b557);}},_0x22a43b=global[_0x2bcc09(0x23c)][_0x42bbae[_0x2bcc09(0x2c2)]()];let _0x50f21c=_0x22a43b?_0x22a43b[_0x2bcc09(0x2e7)](_0x2bcc09(0x17e)):mongoose['models'][_0x42bbae[_0x2bcc09(0x24a)]()];if(_0x50f21c){if(_0x1f1934[_0x2bcc09(0x344)]!==_0x1f1934[_0x2bcc09(0x344)]){_0x47ea22[_0x2bcc09(0x1d3)]=_0x1f1934[_0x2bcc09(0x1d6)](_0x465cc6[_0x2bcc09(0x1d3)],_0x9a0209['du00']),_0x230628[_0x2bcc09(0x2a0)]=_0x6bc3e7[_0x2bcc09(0x36b)](_0x1d3954['tien_nhap_nt'],_0x45b80f);if(_0x11d451['sl_nhap'])_0x4a419f[_0x2bcc09(0x3b1)]=_0x34a85f['gia_von']=_0x66c22[_0x2bcc09(0x36b)](_0x25125f[_0x2bcc09(0x1d3)]/_0x4e6e95[_0x2bcc09(0x3e5)],0x0);return!![];}else{const _0x191dad=[...new Set(_0x3d8147[_0x2bcc09(0x308)](_0x5ee9b1=>_0x5ee9b1[_0x2bcc09(0x2de)]===_0x42bbae)[_0x2bcc09(0x2e8)](_0x50402b=>_0x50402b[_0x2bcc09(0x21f)]))],_0x21a465=await _0x50f21c[_0x2bcc09(0x24b)]({'_id':{'$in':_0x191dad}});for(let _0x4f1ead of _0x21a465){if(_0x1f1934[_0x2bcc09(0x285)](_0x2bcc09(0x17f),_0x1f1934[_0x2bcc09(0x23b)]))_0xc1a502[_0x4f1ead[_0x2bcc09(0x2ba)][_0x2bcc09(0x1b3)]()]=_0x4f1ead;else return _0x136894[_0x2bcc09(0x2e6)](_0x443a36[_0x2bcc09(0x25a)],_0x3ebfd3[_0x2bcc09(0x25a)]);}for(let _0x3af339 of _0x191dad[_0x2bcc09(0x308)](_0x563434=>!_0xc1a502[_0x563434])){console[_0x2bcc09(0x26d)](_0x1f1934[_0x2bcc09(0x399)],_0x3af339,_0x2bcc09(0x301),_0x42bbae),await sokho['deleteMany']({'id_ct':_0x3af339}),await socai[_0x2bcc09(0x346)]({'id_ct':_0x3af339});}return null;}}else return _0x1f1934[_0x2bcc09(0x28e)](_0x1f1934['BHrFt'],_0x1f1934[_0x2bcc09(0x1ea)])?(console[_0x2bcc09(0x378)](_0x2bcc09(0x3ac),_0x42bbae),null):(_0x1fbf75[_0x2bcc09(0x3d5)](_0x1f1934['UFysH'],_0x48b45a),_0x1f1934[_0x2bcc09(0x1e7)](_0x2b061a,_0x566bc5));},_0xe6f760=>{const _0x261053=_0x3beeeb,_0x5c45c4={'tHrEU':function(_0x1a1085,_0x1a3f7c){const _0x28c6b0=_0x34d8;return _0x1f1934[_0x28c6b0(0x1de)](_0x1a1085,_0x1a3f7c);}};if(_0x1f1934['kCSMG'](_0x261053(0x2b5),_0x261053(0x397))){if(_0xe6f760)return console[_0x261053(0x3d5)](_0x1f1934['UFysH'],_0xe6f760),_0x324896(_0xe6f760);_0x1f1934[_0x261053(0x2e0)](_0x324896,null,_0xc1a502);}else return _0x5c45c4[_0x261053(0x1ab)](_0x191300,_0x376907);});});},'nhap_dc':_0x2d2cc6=>{const _0xc80b86=_0x606915,_0x1b921d={'qYDSo':function(_0xfcc28e,_0x2b0e3d,_0x2b7fbd){return _0x52e0b0['DTNjl'](_0xfcc28e,_0x2b0e3d,_0x2b7fbd);},'kvbXQ':function(_0x3c7619,_0x2cd073){const _0x5b8677=_0x34d8;return _0x52e0b0[_0x5b8677(0x3d3)](_0x3c7619,_0x2cd073);},'oRFzV':function(_0x1714aa){return _0x1714aa();}};if(_0x57712f){let _0x1d2169={'id_app':_0x4b9032,'ma_ct':_0x52e0b0[_0xc80b86(0x202)],'ngay_ct':{'$gte':_0x3870bf,'$lte':_0x4a440e},'$or':[{'ma_kho_x':_0x57712f},{'details.ma_kho_x':_0x57712f}],'details.px_gia_dd':![]};global[_0xc80b86(0x33e)](_0x52e0b0[_0xc80b86(0x1ae)])[_0xc80b86(0x24b)](_0x1d2169)[_0xc80b86(0x386)](_0x4a9bf1=>{const _0x5d6b0a=_0xc80b86;if(_0x1b921d[_0x5d6b0a(0x186)](_0x5d6b0a(0x2d0),_0x5d6b0a(0x3d4)))_0x4a9bf1[_0x5d6b0a(0x201)](_0x4e02a1=>{_0xc1a502[_0x4e02a1['_id']['toString']()]=_0x4e02a1;}),_0x1b921d[_0x5d6b0a(0x35e)](_0x2d2cc6);else return _0x1b921d[_0x5d6b0a(0x3a2)](_0x3ec291,null,_0x34ab3a);})[_0xc80b86(0x248)](_0x4aa14f=>{const _0x49deee=_0xc80b86;return console[_0x49deee(0x3d5)](_0x52e0b0['zKctu'],_0x4aa14f),_0x52e0b0[_0x49deee(0x1e6)](_0x2d2cc6,_0x4aa14f);});}else _0x52e0b0[_0xc80b86(0x1ac)](_0x2d2cc6);}},function(_0x26cdb3){const _0x339669=_0x606915,_0x3feb5f={'GirEe':function(_0x2f26c5,_0x30f639){return _0x52e0b0['rnrul'](_0x2f26c5,_0x30f639);},'MItuL':_0x52e0b0[_0x339669(0x19f)],'HoDwu':_0x52e0b0[_0x339669(0x330)],'snhzy':function(_0x1e642c,_0x2d3389,_0xe4faea){const _0x4141fe=_0x339669;return _0x52e0b0[_0x4141fe(0x3be)](_0x1e642c,_0x2d3389,_0xe4faea);},'OqPbT':_0x52e0b0[_0x339669(0x382)],'WQSlT':function(_0x4116ac,_0x10282e){return _0x4116ac(_0x10282e);},'jtYtc':function(_0x2e0465,_0x2c6b3e){const _0x580eea=_0x339669;return _0x52e0b0[_0x580eea(0x215)](_0x2e0465,_0x2c6b3e);},'JiXEw':function(_0x516728,_0x447f){const _0x3614e6=_0x339669;return _0x52e0b0[_0x3614e6(0x21c)](_0x516728,_0x447f);},'qfhQD':function(_0x551d4b,_0x59b3a0){const _0x2b482a=_0x339669;return _0x52e0b0[_0x2b482a(0x3ae)](_0x551d4b,_0x59b3a0);},'pwxsV':_0x52e0b0[_0x339669(0x255)],'okQpC':_0x52e0b0[_0x339669(0x1d0)],'BBVfH':_0x52e0b0[_0x339669(0x2cc)],'sietP':_0x52e0b0[_0x339669(0x395)],'BjgZa':_0x52e0b0[_0x339669(0x2a7)],'pIOHQ':'zFqvX','oaZWh':_0x52e0b0[_0x339669(0x3c7)],'YxtCS':_0x52e0b0['cQtUB'],'SPxQD':_0x52e0b0[_0x339669(0x3e6)],'QCOmY':'mtJgt','wBGfq':function(_0x2a5c50){return _0x2a5c50();},'hSvkj':function(_0x4c0899,_0x10375b){return _0x4c0899(_0x10375b);},'LhweD':function(_0x2a2288,_0x3922ea){return _0x2a2288<_0x3922ea;},'kPwxs':function(_0x520559,_0x5ac689){return _0x52e0b0['gyTtz'](_0x520559,_0x5ac689);},'GtXbl':_0x339669(0x37c),'KdsOT':_0x339669(0x1be),'RpJzD':_0x52e0b0[_0x339669(0x1d2)],'WFYDS':function(_0x347996,_0x8e93c0){return _0x347996-_0x8e93c0;},'Lucnq':'fidYz','OUdwh':_0x52e0b0[_0x339669(0x22f)],'QpjpM':_0x52e0b0[_0x339669(0x27f)],'TfvsQ':function(_0x316f9d,_0x482c8d){const _0x24b72c=_0x339669;return _0x52e0b0[_0x24b72c(0x327)](_0x316f9d,_0x482c8d);},'JkLzK':_0x52e0b0[_0x339669(0x2a6)],'vKhAw':function(_0x1a9863,_0x1439e3){return _0x1a9863(_0x1439e3);},'MyexD':'qDCBi','wnpLJ':_0x52e0b0['hxwGd'],'cnbQb':_0x339669(0x359),'KJrbL':_0x52e0b0['nBlpG'],'MpmXU':_0x52e0b0[_0x339669(0x266)],'JaMrf':function(_0x41473d,_0x34960f){return _0x52e0b0['vlltK'](_0x41473d,_0x34960f);},'XNfED':_0x52e0b0[_0x339669(0x38e)]};if(_0x26cdb3)return _0x343d08(_0x26cdb3);async[_0x339669(0x3c3)]([function(_0x58855f){const _0x15664c=_0x339669,_0x41a18b={'ZXeBG':_0x3feb5f[_0x15664c(0x1b9)],'UPIZD':function(_0x5653d0,_0x165b74){const _0x5a030e=_0x15664c;return _0x3feb5f[_0x5a030e(0x379)](_0x5653d0,_0x165b74);},'eVCmw':function(_0x112e25,_0x40e4f4){const _0x32fc94=_0x15664c;return _0x3feb5f[_0x32fc94(0x377)](_0x112e25,_0x40e4f4);},'pNZhc':function(_0x2905b0,_0x312d7b){const _0x270d96=_0x15664c;return _0x3feb5f[_0x270d96(0x29a)](_0x2905b0,_0x312d7b);},'tXvVX':function(_0x1370f0,_0x46e7e7){return _0x3feb5f['qfhQD'](_0x1370f0,_0x46e7e7);},'ghANm':function(_0x208259,_0x1c8881){return _0x3feb5f['qfhQD'](_0x208259,_0x1c8881);},'ToIFP':function(_0x173c9e,_0x5449ee){return _0x173c9e==_0x5449ee;},'Dcuaa':function(_0x86106c,_0x484d26){return _0x86106c-_0x484d26;},'SUkuP':_0x3feb5f[_0x15664c(0x349)],'cldiL':function(_0x5e4486,_0x3e09c8){const _0x2ad3d2=_0x15664c;return _0x3feb5f[_0x2ad3d2(0x377)](_0x5e4486,_0x3e09c8);},'AYjKW':function(_0x395a60,_0x4b7a18){const _0x46d2e2=_0x15664c;return _0x3feb5f[_0x46d2e2(0x377)](_0x395a60,_0x4b7a18);},'sVjSM':function(_0x363470,_0x316e92){return _0x363470+_0x316e92;},'iiQwv':_0x3feb5f[_0x15664c(0x2d2)],'sadlx':function(_0x18789c,_0x426e6b){const _0x4608a6=_0x15664c;return _0x3feb5f[_0x4608a6(0x3a0)](_0x18789c,_0x426e6b);},'CHcLd':_0x3feb5f[_0x15664c(0x39f)],'cCvBG':function(_0x175f22,_0x59c93a){const _0x564b86=_0x15664c;return _0x3feb5f[_0x564b86(0x377)](_0x175f22,_0x59c93a);},'MAemz':function(_0x595dd5,_0x3ca294,_0x45e683){const _0x176254=_0x15664c;return _0x3feb5f[_0x176254(0x356)](_0x595dd5,_0x3ca294,_0x45e683);},'cHUTg':_0x3feb5f[_0x15664c(0x288)],'vVXEe':_0x3feb5f['BjgZa'],'Tbprv':_0x3feb5f[_0x15664c(0x21b)],'wgDOz':_0x3feb5f[_0x15664c(0x2b6)],'NNCPQ':function(_0x4ac935,_0x2bccfa){return _0x4ac935===_0x2bccfa;},'tZOBF':_0x3feb5f[_0x15664c(0x1cb)]};if(_0x3feb5f[_0x15664c(0x377)](_0x3feb5f[_0x15664c(0x278)],_0x3feb5f[_0x15664c(0x391)])){if(_0x235626)return _0x570ff9[_0x15664c(0x3d5)](_0x41a18b[_0x15664c(0x38f)],_0x4fc7c3[_0x15664c(0x184)],_0x5e9421[_0x15664c(0x332)],_0x51ac6a[_0x15664c(0x2de)]),_0x5854f2(_0x739ef5);_0x41a18b[_0x15664c(0x1b0)](_0x209ffb,_0x371b59);}else console[_0x15664c(0x378)](_0x15664c(0x220)),async['mapLimit'](_[_0x15664c(0x1bb)](_0x398145),0x64,(_0x5cc8bc,_0x152bc2)=>{const _0x1d8718=_0x15664c,_0x599c71={'bSNTA':function(_0x505db0,_0x795bab){const _0x2ecd44=_0x34d8;return _0x41a18b[_0x2ecd44(0x3e9)](_0x505db0,_0x795bab);},'piDkr':function(_0x33becc,_0x4fa459){return _0x33becc+_0x4fa459;},'eISJx':function(_0x1122ab,_0x355fc0){const _0x284011=_0x34d8;return _0x41a18b[_0x284011(0x393)](_0x1122ab,_0x355fc0);},'sQVPQ':function(_0x52be52,_0x206c5c){return _0x52be52/_0x206c5c;},'KiBNZ':function(_0x350604,_0x32d447){const _0x21c12a=_0x34d8;return _0x41a18b[_0x21c12a(0x2bd)](_0x350604,_0x32d447);},'xxJLa':_0x41a18b[_0x1d8718(0x1f8)],'VRABE':_0x1d8718(0x25c),'HqlHR':_0x41a18b[_0x1d8718(0x2f2)],'OQXEy':function(_0x128c50,_0x5d05a8){const _0x2addff=_0x1d8718;return _0x41a18b[_0x2addff(0x208)](_0x128c50,_0x5d05a8);}};_0x41a18b['UPIZD'](setImmediate,async()=>{const _0x19450c=_0x1d8718,_0x11eac9={'KYaUM':function(_0x32a9cb,_0x27d036){const _0x193e8f=_0x34d8;return _0x41a18b[_0x193e8f(0x368)](_0x32a9cb,_0x27d036);},'yNTSb':function(_0x220a8d,_0x25cb0a){return _0x220a8d===_0x25cb0a;},'TzfpE':_0x19450c(0x1ce),'JzrXh':function(_0x34a82c,_0x37d6ab){return _0x34a82c*_0x37d6ab;},'oyJWk':function(_0x3b74bf,_0x5df29a){const _0x88898f=_0x19450c;return _0x41a18b[_0x88898f(0x368)](_0x3b74bf,_0x5df29a);},'pQxiN':function(_0x36a078,_0x14f89f){const _0x40b19c=_0x19450c;return _0x41a18b[_0x40b19c(0x1f9)](_0x36a078,_0x14f89f);},'TBaDp':function(_0x8c9713,_0x200c44){const _0x1c52cc=_0x19450c;return _0x41a18b[_0x1c52cc(0x27d)](_0x8c9713,_0x200c44);},'woepP':function(_0x3953aa,_0x4a921e){return _0x41a18b['ghANm'](_0x3953aa,_0x4a921e);},'uetNs':function(_0x4abea8,_0x56850b){const _0x49f336=_0x19450c;return _0x41a18b[_0x49f336(0x3e9)](_0x4abea8,_0x56850b);},'ZMgpU':function(_0x445b4e,_0x27230e){const _0x400649=_0x19450c;return _0x41a18b[_0x400649(0x31a)](_0x445b4e,_0x27230e);},'agKEX':_0x41a18b[_0x19450c(0x307)],'Ngzvr':function(_0x4edaaa,_0x230f8f){const _0x5dbc29=_0x19450c;return _0x41a18b[_0x5dbc29(0x393)](_0x4edaaa,_0x230f8f);},'dTlVR':function(_0x7fa518,_0x570448){return _0x41a18b['ToIFP'](_0x7fa518,_0x570448);},'PCUAJ':function(_0x5d14f5,_0x2826a4){return _0x41a18b['AYjKW'](_0x5d14f5,_0x2826a4);},'ZSBWg':function(_0x20a5f3,_0x4d97b9){const _0x3e6987=_0x19450c;return _0x41a18b[_0x3e6987(0x303)](_0x20a5f3,_0x4d97b9);},'bjGUH':function(_0x2a6779,_0x441ea1){const _0x37f249=_0x19450c;return _0x41a18b[_0x37f249(0x1f9)](_0x2a6779,_0x441ea1);},'ZGMDG':_0x41a18b[_0x19450c(0x351)],'xzUBo':function(_0x112872,_0x30461b){const _0x38d7af=_0x19450c;return _0x41a18b[_0x38d7af(0x1f9)](_0x112872,_0x30461b);},'TlHhE':function(_0x1faad8,_0x23c8f6){return _0x41a18b['sadlx'](_0x1faad8,_0x23c8f6);},'ZjeUy':_0x41a18b[_0x19450c(0x183)],'OmptP':function(_0x47e0f3,_0x29da93){const _0x38958c=_0x19450c;return _0x41a18b[_0x38958c(0x1f9)](_0x47e0f3,_0x29da93);},'dMuFj':function(_0x2e013e,_0x47bc53){const _0x4f740d=_0x19450c;return _0x41a18b[_0x4f740d(0x27d)](_0x2e013e,_0x47bc53);},'DmbBM':function(_0x4289fe,_0xc953e){const _0x4b8be2=_0x19450c;return _0x41a18b[_0x4b8be2(0x3d1)](_0x4289fe,_0xc953e);},'RraIk':function(_0x33a043,_0x3c0741,_0x4ba00c){const _0x377f81=_0x19450c;return _0x41a18b[_0x377f81(0x38a)](_0x33a043,_0x3c0741,_0x4ba00c);},'SPaHC':_0x19450c(0x2f7),'DXfxe':function(_0x3e2676,_0x505fa8){return _0x3e2676(_0x505fa8);}};try{if(_0x41a18b[_0x19450c(0x2b7)]!==_0x41a18b['cHUTg'])return-new _0xb149b4(_0x16b1c9[_0x19450c(0x207)])['getTime']();else{const _0x5268af=_0x5cc8bc[_0x19450c(0x2d1)]['filter'](_0x115cba=>(!_0x15a383['ma_vt']||_0x15a383['ma_vt']===_0x115cba[_0x19450c(0x25a)])&&(!_0x115cba['px_gia_dd']&&(!_0x57712f||_0x57712f===(_0x115cba['ma_kho']||_0x115cba[_0x19450c(0x273)]||_0x5cc8bc['ma_kho']||_0x5cc8bc['ma_kho_x']))));await Promise['all'](_0x5268af[_0x19450c(0x2e8)](_0x4c1614=>{const _0x119a32=_0x19450c,_0x4b6b9c={'RRvDV':function(_0x3cf243,_0x52f7a5){const _0x1d121d=_0x34d8;return _0x11eac9[_0x1d121d(0x376)](_0x3cf243,_0x52f7a5);},'RKBDD':function(_0x492291,_0x2a0fd4){const _0x441bef=_0x34d8;return _0x11eac9[_0x441bef(0x369)](_0x492291,_0x2a0fd4);},'lfGbS':_0x11eac9[_0x119a32(0x2bf)],'CKUBH':function(_0x30b3cf,_0x60d900){return _0x11eac9['JzrXh'](_0x30b3cf,_0x60d900);}};return((async()=>{const _0x5ac602=_0x119a32;if(_0x4b6b9c['RKBDD'](_0x4b6b9c[_0x5ac602(0x3ab)],_0x5ac602(0x2b4))){if(_0x48b3cc)_0x463cf4['error']('❌\x20[tinhgiatb]\x20[postData]\x20Lỗi:',_0x794b37['message'],_0x44729e[_0x5ac602(0x332)],_0x207e98[_0x5ac602(0x2de)]);_0x60e963(_0x2fb8f6,_0xb590f4);}else{let _0x5ad578=_['find'](_0x569880,_0x4de3c1=>{const _0x2e0e78=_0x5ac602;return _0x4b6b9c[_0x2e0e78(0x1e2)](_0x4c1614[_0x2e0e78(0x25a)],_0x4de3c1[_0x2e0e78(0x25a)]);}),_0x220942=_0x5ad578?_0x5ad578[_0x5ac602(0x353)]:0x0,_0x40f53f=0x1,_0x50d7b4=await dmqddvt['findOne']({'id_app':_0x5cc8bc[_0x5ac602(0x1a1)],'ma_vt':_0x4c1614['ma_vt'],'ma_dvt':_0x4c1614[_0x5ac602(0x32d)]})[_0x5ac602(0x320)]();if(_0x50d7b4)_0x40f53f=_0x50d7b4[_0x5ac602(0x2a4)]?_0x50d7b4['tu']/_0x50d7b4[_0x5ac602(0x2a4)]:_0x50d7b4[_0x5ac602(0x314)];_0x4c1614[_0x5ac602(0x1cf)]=_0x4c1614[_0x5ac602(0x3b1)]=_0x4b6b9c[_0x5ac602(0x3ce)](_0x220942,_0x40f53f),_0x4c1614[_0x5ac602(0x380)]=_0x4c1614[_0x5ac602(0x2fe)]=Math[_0x5ac602(0x36b)](_0x4c1614[_0x5ac602(0x196)]*_0x4c1614[_0x5ac602(0x1cf)],_0x85e24e);}})());}));if(_0x5cc8bc[_0x19450c(0x342)]){const _0x173464=_0x5cc8bc[_0x19450c(0x342)][_0x19450c(0x308)](_0x5178fa=>(!_0x15a383[_0x19450c(0x25a)]||_0x15a383[_0x19450c(0x25a)]===_0x5178fa[_0x19450c(0x25a)])&&(!_0x5178fa['px_gia_dd']&&(!_0x57712f||_0x57712f===(_0x5178fa[_0x19450c(0x39a)]||_0x5cc8bc[_0x19450c(0x39a)]||_0x5cc8bc[_0x19450c(0x273)]))));await Promise['all'](_0x173464['map'](_0x27102e=>{const _0x29403e=_0x19450c,_0x5e1fb2={'vkAYA':function(_0x146186,_0x3b1e6c){const _0x3c954e=_0x34d8;return _0x11eac9[_0x3c954e(0x2b9)](_0x146186,_0x3b1e6c);},'BmgUV':function(_0x39bdf1,_0x2c5a81){return _0x39bdf1===_0x2c5a81;},'PZZzX':function(_0x2a4eed,_0x1fce16){const _0x2c6f37=_0x34d8;return _0x11eac9[_0x2c6f37(0x291)](_0x2a4eed,_0x1fce16);},'OqPpy':function(_0x1decb2,_0x2342d6){const _0x33d8d1=_0x34d8;return _0x11eac9[_0x33d8d1(0x22e)](_0x1decb2,_0x2342d6);}};return _0x11eac9[_0x29403e(0x340)]===_0x29403e(0x2eb)?_0x48c88b[_0x29403e(0x24b)](_0x9c6da5[_0x29403e(0x2d1)],_0x489e2a=>{const _0x104aa3=_0x29403e;if(_0x5e1fb2[_0x104aa3(0x331)](_0x489e2a[_0x104aa3(0x25a)],_0x14868f[_0x104aa3(0x25a)])&&!_0x489e2a['pn_gia_tb']&&(!_0x302b35||_0x5e78a0===_0x489e2a[_0x104aa3(0x39a)]||_0x5e1fb2[_0x104aa3(0x250)](_0x52bd5f,_0x453bbf[_0x104aa3(0x39a)]))){_0x489e2a[_0x104aa3(0x1d3)]=_0x5e1fb2[_0x104aa3(0x3b5)](_0x489e2a[_0x104aa3(0x1d3)],_0x2fdd29[_0x104aa3(0x3e0)]),_0x489e2a['tien_nhap']=_0x5e4f16[_0x104aa3(0x36b)](_0x489e2a['tien_nhap_nt'],_0x2bb8f9);if(_0x489e2a[_0x104aa3(0x3e5)])_0x489e2a[_0x104aa3(0x3b1)]=_0x489e2a[_0x104aa3(0x1cf)]=_0x4b5db1['roundBy'](_0x5e1fb2[_0x104aa3(0x194)](_0x489e2a[_0x104aa3(0x1d3)],_0x489e2a[_0x104aa3(0x3e5)]),0x0);return!![];}else return![];}):((async()=>{const _0x14d7ae=_0x29403e,_0x239b85={'FSugV':function(_0x50a16b,_0x4c9172){return _0x11eac9['oyJWk'](_0x50a16b,_0x4c9172);}};let _0x3690d6=_[_0x14d7ae(0x24b)](_0x569880,_0x38d794=>{const _0x55de94=_0x14d7ae;return _0x239b85[_0x55de94(0x281)](_0x27102e['ma_vt'],_0x38d794[_0x55de94(0x25a)]);}),_0x521981=_0x3690d6?_0x3690d6[_0x14d7ae(0x353)]:0x0,_0x1f51a3=0x1,_0x1a2df9=await dmqddvt[_0x14d7ae(0x38d)]({'id_app':_0x5cc8bc[_0x14d7ae(0x1a1)],'ma_vt':_0x27102e[_0x14d7ae(0x25a)],'ma_dvt':_0x27102e[_0x14d7ae(0x32d)]})[_0x14d7ae(0x320)]();if(_0x1a2df9)_0x1f51a3=_0x1a2df9['mau']?_0x11eac9[_0x14d7ae(0x22e)](_0x1a2df9['tu'],_0x1a2df9['mau']):_0x1a2df9[_0x14d7ae(0x314)];_0x27102e['gia_von']=_0x27102e[_0x14d7ae(0x3b1)]=_0x11eac9['TBaDp'](_0x521981,_0x1f51a3),_0x27102e[_0x14d7ae(0x380)]=_0x27102e[_0x14d7ae(0x2fe)]=Math['roundBy'](_0x11eac9['woepP'](_0x27102e[_0x14d7ae(0x196)],_0x27102e['gia_von']),_0x85e24e);})());}));}await Promise['all'](_0x5cc8bc['details'][_0x19450c(0x308)](_0x445926=>_0x445926[_0x19450c(0x2da)]&&_0x445926[_0x19450c(0x2da)][_0x19450c(0x38b)])[_0x19450c(0x2e8)](_0x217da7=>{const _0x1a10eb=_0x19450c,_0x25c3c3={'FpVBK':function(_0x2d20d7,_0x116d83){return _0x2d20d7(_0x116d83);},'vISrA':function(_0x8690ad,_0x8fe5bd){const _0x22c472=_0x34d8;return _0x599c71[_0x22c472(0x1db)](_0x8690ad,_0x8fe5bd);},'EAGVs':function(_0x422e3d,_0x1d6b8b){const _0x10d710=_0x34d8;return _0x599c71[_0x10d710(0x17a)](_0x422e3d,_0x1d6b8b);},'zsXCt':function(_0x508f8a,_0x4d02ff){const _0x11fc71=_0x34d8;return _0x599c71[_0x11fc71(0x3db)](_0x508f8a,_0x4d02ff);},'tgsMi':function(_0x1b1183,_0x50dfe1){const _0x2583ed=_0x34d8;return _0x599c71[_0x2583ed(0x28c)](_0x1b1183,_0x50dfe1);},'Cwpcn':function(_0x56d8c2,_0x2438bc){const _0x36b3e2=_0x34d8;return _0x599c71[_0x36b3e2(0x374)](_0x56d8c2,_0x2438bc);},'FYggV':function(_0x1018f4,_0x15d90d){const _0x39a4fd=_0x34d8;return _0x599c71[_0x39a4fd(0x3db)](_0x1018f4,_0x15d90d);},'JuDVo':_0x599c71[_0x1a10eb(0x2c8)]};if(_0x599c71[_0x1a10eb(0x3db)](_0x599c71[_0x1a10eb(0x1b5)],_0x599c71['HqlHR']))_0x2c7d7d[_0x1a10eb(0x32f)](_0x46efe7);else return((async()=>{const _0x1941e6=_0x1a10eb,_0x1192de={'CdiLg':function(_0x462be2,_0x41c2cb){const _0x1fd545=_0x34d8;return _0x25c3c3[_0x1fd545(0x290)](_0x462be2,_0x41c2cb);},'vFEGX':_0x1941e6(0x251),'YdAld':function(_0x536e64,_0x5166b0){const _0x1266ee=_0x1941e6;return _0x25c3c3[_0x1266ee(0x25d)](_0x536e64,_0x5166b0);},'snWUk':function(_0x1f1005,_0x2944f5){const _0xacb7b2=_0x1941e6;return _0x25c3c3[_0xacb7b2(0x355)](_0x1f1005,_0x2944f5);}};if(_0x25c3c3['FYggV'](_0x1941e6(0x33b),_0x25c3c3['JuDVo']))_0x25c3c3[_0x1941e6(0x295)](_0x436a60,null);else{const _0x12003a=_0x217da7[_0x1941e6(0x2da)][_0x1941e6(0x38b)][_0x1941e6(0x308)](_0x6105bb=>(!_0x15a383['ma_vt']||_0x15a383[_0x1941e6(0x25a)]===_0x6105bb['ma_vt'])&&!_0x6105bb[_0x1941e6(0x3a4)]&&(!_0x57712f||_0x57712f===(_0x6105bb[_0x1941e6(0x39a)]||_0x5cc8bc['ma_kho']||_0x5cc8bc[_0x1941e6(0x273)])));await Promise[_0x1941e6(0x237)](_0x12003a['map'](_0x427ea8=>{const _0x1f5933={'ZgOiJ':function(_0x4c8c35,_0x3e9bf3){const _0x52fd93=_0x34d8;return _0x25c3c3[_0x52fd93(0x1a5)](_0x4c8c35,_0x3e9bf3);},'DwJmD':function(_0x2f1830,_0x4ca965){const _0x471a66=_0x34d8;return _0x25c3c3[_0x471a66(0x2af)](_0x2f1830,_0x4ca965);}};return((async()=>{const _0x992e1a=_0x34d8,_0xe6b7ee={'lPtiN':function(_0x2e4017,_0x49f83f){const _0x453bae=_0x34d8;return _0x1192de[_0x453bae(0x31c)](_0x2e4017,_0x49f83f);}};if(_0x1192de[_0x992e1a(0x31c)](_0x1192de[_0x992e1a(0x310)],_0x1192de['vFEGX'])){let _0x26ead3=_['find'](_0x569880,_0x2fb2a1=>{const _0x5c0dcc=_0x992e1a;return _0xe6b7ee[_0x5c0dcc(0x1ca)](_0x427ea8['ma_vt'],_0x2fb2a1[_0x5c0dcc(0x25a)]);}),_0x207fc8=_0x26ead3?_0x26ead3['gia']:0x0,_0x3bf194=0x1,_0x39f547=await dmqddvt[_0x992e1a(0x38d)]({'id_app':_0x5cc8bc[_0x992e1a(0x1a1)],'ma_vt':_0x427ea8['ma_vt'],'ma_dvt':_0x427ea8[_0x992e1a(0x32d)]})[_0x992e1a(0x320)]();if(_0x39f547)_0x3bf194=_0x39f547[_0x992e1a(0x2a4)]?_0x1192de[_0x992e1a(0x29e)](_0x39f547['tu'],_0x39f547[_0x992e1a(0x2a4)]):_0x39f547['ty_le_qd'];_0x427ea8[_0x992e1a(0x1cf)]=_0x427ea8['gia_von_nt']=_0x1192de['snWUk'](_0x207fc8,_0x3bf194),_0x427ea8[_0x992e1a(0x380)]=_0x427ea8[_0x992e1a(0x2fe)]=Math[_0x992e1a(0x36b)](_0x1192de[_0x992e1a(0x30f)](_0x427ea8['sl_xuat']||_0x427ea8['sl_km']||0x0,_0x427ea8[_0x992e1a(0x1cf)]),_0x85e24e);}else{const _0x1665fa={'BKJvJ':function(_0x2be14d,_0x566e83){return _0x1f5933['ZgOiJ'](_0x2be14d,_0x566e83);},'aAYjk':function(_0x25a1e2,_0xe217d){const _0x15fcea=_0x992e1a;return _0x1f5933[_0x15fcea(0x2d4)](_0x25a1e2,_0xe217d);},'xAIpv':function(_0x49a81b,_0x1d5a0a){return _0x49a81b/_0x1d5a0a;}};return _0x53dc8c[_0x992e1a(0x24b)](_0x1787fe[_0x992e1a(0x2d1)],_0x3d3768=>{const _0x3aac3e=_0x992e1a;if(_0x1665fa[_0x3aac3e(0x204)](_0x3d3768[_0x3aac3e(0x25a)],_0x583358[_0x3aac3e(0x25a)])&&!_0x3d3768['px_gia_dd']&&(!_0x466b49||_0x3f0b27===_0x3d3768['ma_kho']||_0x801e8b===_0x2c0f9f[_0x3aac3e(0x39a)])){_0x3d3768[_0x3aac3e(0x2fe)]=_0x1665fa[_0x3aac3e(0x362)](_0x3d3768[_0x3aac3e(0x2fe)],_0x881870[_0x3aac3e(0x3e0)]),_0x3d3768[_0x3aac3e(0x380)]=_0x1cfbce[_0x3aac3e(0x36b)](_0x3d3768[_0x3aac3e(0x2fe)],_0x2c65c2);if(_0x3d3768[_0x3aac3e(0x196)])_0x3d3768[_0x3aac3e(0x3b1)]=_0x3d3768[_0x3aac3e(0x1cf)]=_0x5ca1a5[_0x3aac3e(0x36b)](_0x1665fa['xAIpv'](_0x3d3768[_0x3aac3e(0x2fe)],_0x3d3768[_0x3aac3e(0x196)]),0x0);return!![];}else return![];});}})());}));}})());})),await Promise['all'](_0x5cc8bc[_0x19450c(0x2d1)]['filter'](_0xdf4100=>_0xdf4100[_0x19450c(0x1aa)]&&_0xdf4100[_0x19450c(0x1aa)][_0x19450c(0x315)]>0x0&&!_0xdf4100[_0x19450c(0x3a4)])[_0x19450c(0x2e8)](_0x3731d2=>{const _0x411edc=_0x19450c,_0x1e6486={'ILvZL':function(_0x5d56d5,_0x198dc2){const _0x7f688f=_0x34d8;return _0x11eac9[_0x7f688f(0x328)](_0x5d56d5,_0x198dc2);},'DTntc':function(_0x34462d,_0x4ef43c){const _0x412855=_0x34d8;return _0x11eac9[_0x412855(0x20c)](_0x34462d,_0x4ef43c);},'QdpJk':function(_0x23e100,_0x1c9519){return _0x11eac9['ZSBWg'](_0x23e100,_0x1c9519);},'yQvwI':function(_0x230748,_0x390c38){return _0x11eac9['bjGUH'](_0x230748,_0x390c38);},'CdlZr':_0x11eac9[_0x411edc(0x19c)],'XRyOH':function(_0x3d4b32,_0x2ccc3f){const _0x13def9=_0x411edc;return _0x11eac9[_0x13def9(0x20a)](_0x3d4b32,_0x2ccc3f);}};return _0x11eac9[_0x411edc(0x3df)](_0x11eac9[_0x411edc(0x26a)],'tyEqx')?((async()=>{const _0x165e76=_0x411edc,_0x4da811={'DlLEq':function(_0x10b596,_0x443746){const _0x3090bd=_0x34d8;return _0x1e6486[_0x3090bd(0x2f6)](_0x10b596,_0x443746);},'mimVi':function(_0xc81bf9,_0x386205){const _0x13ff63=_0x34d8;return _0x1e6486[_0x13ff63(0x229)](_0xc81bf9,_0x386205);},'CZhtz':function(_0x5b8f8c,_0xe27097){const _0x2fed80=_0x34d8;return _0x1e6486[_0x2fed80(0x1e4)](_0x5b8f8c,_0xe27097);},'IGZVR':function(_0x24deca,_0xb84307){const _0x413190=_0x34d8;return _0x1e6486[_0x413190(0x33d)](_0x24deca,_0xb84307);},'LZImB':function(_0x4240ad,_0x5d31dc){return _0x4240ad===_0x5d31dc;},'ypxrU':_0x1e6486[_0x165e76(0x2f8)],'bXPyB':function(_0x5df96e,_0x25ead6){return _0x5df96e*_0x25ead6;}},_0x5de983=_0x3731d2[_0x165e76(0x1aa)]['filter'](_0x310e5d=>(!_0x15a383['ma_vt']||_0x15a383[_0x165e76(0x25a)]===_0x310e5d['ma_vt'])&&(!_0x57712f||_0x57712f===(_0x3731d2[_0x165e76(0x39a)]||_0x3731d2[_0x165e76(0x273)]||_0x5cc8bc[_0x165e76(0x39a)]||_0x5cc8bc[_0x165e76(0x273)])));await Promise[_0x165e76(0x237)](_0x5de983[_0x165e76(0x2e8)](_0x2b6709=>{return((async()=>{const _0x2ed1f9=_0x34d8,_0x2cff74={'CVtoR':function(_0x75718f,_0xe65d12){const _0x559c3a=_0x34d8;return _0x4da811[_0x559c3a(0x343)](_0x75718f,_0xe65d12);},'dMnYD':function(_0x423706,_0x20f1f3){const _0x21c6a9=_0x34d8;return _0x4da811[_0x21c6a9(0x1b8)](_0x423706,_0x20f1f3);},'zzGWN':function(_0x106728,_0x4feb1b){const _0x403163=_0x34d8;return _0x4da811[_0x403163(0x3a8)](_0x106728,_0x4feb1b);},'RWrOz':function(_0x2b76cc,_0x92c181){const _0x4da010=_0x34d8;return _0x4da811[_0x4da010(0x384)](_0x2b76cc,_0x92c181);}};if(_0x4da811['LZImB'](_0x4da811['ypxrU'],_0x4da811[_0x2ed1f9(0x22a)])){let _0x373733=_['find'](_0x569880,_0x355d71=>{const _0x2f2912=_0x2ed1f9;return _0x2b6709[_0x2f2912(0x25a)]===_0x355d71['ma_vt'];}),_0x5b8d27=_0x373733?_0x373733[_0x2ed1f9(0x353)]:0x0,_0x4b28f5=0x1,_0x166c8e=await dmqddvt[_0x2ed1f9(0x38d)]({'id_app':_0x5cc8bc[_0x2ed1f9(0x1a1)],'ma_vt':_0x2b6709[_0x2ed1f9(0x25a)],'ma_dvt':_0x2b6709[_0x2ed1f9(0x32d)]})[_0x2ed1f9(0x320)]();if(_0x166c8e)_0x4b28f5=_0x166c8e['mau']?_0x166c8e['tu']/_0x166c8e[_0x2ed1f9(0x2a4)]:_0x166c8e[_0x2ed1f9(0x314)];_0x2b6709[_0x2ed1f9(0x1cf)]=_0x2b6709[_0x2ed1f9(0x3b1)]=_0x4da811[_0x2ed1f9(0x31b)](_0x5b8d27,_0x4b28f5),_0x2b6709[_0x2ed1f9(0x380)]=_0x2b6709['tien_xuat_nt']=Math[_0x2ed1f9(0x36b)](_0x4da811[_0x2ed1f9(0x31b)](_0x2b6709[_0x2ed1f9(0x196)]||0x0,_0x2b6709[_0x2ed1f9(0x1cf)]),_0x85e24e);}else{if(_0x2cff74[_0x2ed1f9(0x20e)](_0x1b74f0[_0x2ed1f9(0x25a)],_0x28a391[_0x2ed1f9(0x25a)])&&!_0x56d12f[_0x2ed1f9(0x3a4)]&&(!_0x28ac1e||_0xa54821===_0x2da59b[_0x2ed1f9(0x39a)]||_0x2cff74['dMnYD'](_0x42b37c,_0x5bcd6f[_0x2ed1f9(0x39a)]))){_0x5ccfdc[_0x2ed1f9(0x2fe)]=_0x2cff74['zzGWN'](_0x5eb155[_0x2ed1f9(0x2fe)],_0x14cc75[_0x2ed1f9(0x3e0)]),_0x1ef302['tien_xuat']=_0x246257[_0x2ed1f9(0x36b)](_0x15c112[_0x2ed1f9(0x2fe)],_0x2ec30c);if(_0x19cb1a[_0x2ed1f9(0x196)])_0x4dbdff[_0x2ed1f9(0x3b1)]=_0x258f2e['gia_von']=_0x33a79d[_0x2ed1f9(0x36b)](_0x2cff74[_0x2ed1f9(0x2ac)](_0x1d6910[_0x2ed1f9(0x2fe)],_0x2c2c63['sl_xuat']),0x0);return!![];}else return![];}})());})),_0x3731d2[_0x165e76(0x380)]=_0x3731d2['tien_xuat_nt']=_0x3731d2[_0x165e76(0x1aa)][_0x165e76(0x2e8)](_0x1cc3b4=>_0x1cc3b4[_0x165e76(0x2fe)]||0x0)[_0x165e76(0x2cd)]((_0x5c0dca,_0x41bef3)=>_0x5c0dca+_0x41bef3,0x0),_0x3731d2['gia_von']=_0x3731d2[_0x165e76(0x3b1)]=Math[_0x165e76(0x36b)](_0x3731d2['sl_xuat']?_0x1e6486[_0x165e76(0x2fc)](_0x3731d2[_0x165e76(0x2fe)],_0x3731d2[_0x165e76(0x196)]):0x0,_0x85e24e);})()):_0x11eac9['Ngzvr'](_0x882aae[_0x411edc(0x25a)],_0x3915b8[_0x411edc(0x25a)]);}));if(_0x5cc8bc[_0x19450c(0x2da)]){const _0x24c85e=_0x5cc8bc[_0x19450c(0x2da)][_0x19450c(0x308)](_0x232bde=>(!_0x15a383[_0x19450c(0x25a)]||_0x15a383[_0x19450c(0x25a)]===_0x232bde['ma_vt'])&&!_0x232bde['px_gia_dd']&&(!_0x57712f||_0x57712f===(_0x232bde[_0x19450c(0x39a)]||_0x5cc8bc[_0x19450c(0x39a)]||_0x5cc8bc['ma_kho_x'])));await Promise[_0x19450c(0x237)](_0x24c85e['map'](_0x561ec6=>{const _0x790fd7={'uTtSv':function(_0x396233,_0x6239b4){const _0x174a7c=_0x34d8;return _0x11eac9[_0x174a7c(0x2be)](_0x396233,_0x6239b4);}};return((async()=>{const _0x166720=_0x34d8;let _0x4bec04=_[_0x166720(0x24b)](_0x569880,_0x453bf3=>{const _0x93d38d=_0x166720;return _0x790fd7[_0x93d38d(0x18d)](_0x561ec6[_0x93d38d(0x25a)],_0x453bf3[_0x93d38d(0x25a)]);}),_0x2d7125=_0x4bec04?_0x4bec04[_0x166720(0x353)]:0x0,_0xebabfe=0x1,_0x8efe36=await dmqddvt['findOne']({'id_app':_0x5cc8bc[_0x166720(0x1a1)],'ma_vt':_0x561ec6[_0x166720(0x25a)],'ma_dvt':_0x561ec6[_0x166720(0x32d)]})[_0x166720(0x320)]();if(_0x8efe36)_0xebabfe=_0x8efe36[_0x166720(0x2a4)]?_0x11eac9[_0x166720(0x3e7)](_0x8efe36['tu'],_0x8efe36[_0x166720(0x2a4)]):_0x8efe36[_0x166720(0x314)];_0x561ec6['gia_von_nt']=_0x2d7125*_0xebabfe,_0x561ec6['gia_von']=_0x561ec6[_0x166720(0x3b1)],_0x561ec6['tien_xuat_nt']=Math[_0x166720(0x36b)](_0x11eac9[_0x166720(0x27c)](_0x561ec6[_0x166720(0x196)]||_0x561ec6[_0x166720(0x1bf)]||0x0,_0x561ec6[_0x166720(0x1cf)]),_0x85e24e),_0x561ec6[_0x166720(0x380)]=_0x561ec6[_0x166720(0x2fe)];})());}));}let _0x5138e3=_0x5cc8bc['toObject']();const _0x1fc1a6=global[_0x19450c(0x23c)][_0x5cc8bc['ma_ct'][_0x19450c(0x2c2)]()];let _0x12e7fa=_0x1fc1a6?_0x1fc1a6[_0x19450c(0x2e7)]('model'):mongoose[_0x19450c(0x3b2)][_0x5cc8bc['ma_ct']['toLowerCase']()];await _0x12e7fa[_0x19450c(0x24f)]({'_id':_0x5cc8bc[_0x19450c(0x2ba)]},_0x5138e3);if(_0x1fc1a6&&_0x1fc1a6[_0x19450c(0x1dd)]){if(_0x41a18b[_0x19450c(0x37a)](_0x19450c(0x3b6),_0x41a18b[_0x19450c(0x1eb)]))await new Promise((_0x8ebe31,_0x1b00dd)=>{const _0x38e16=_0x19450c;_0x11eac9[_0x38e16(0x3df)](_0x38e16(0x23a),_0x38e16(0x23a))?_0x11eac9[_0x38e16(0x36d)](_0x2cdacb,null,_0x19050e):Controller[_0x38e16(0x1f1)](_0x5138e3,_0x1fc1a6,(_0x3e28cb,_0x1989d3)=>{const _0x37661e=_0x38e16;if(_0x3e28cb)return console['error'](_0x11eac9[_0x37661e(0x1f7)],_0x3e28cb[_0x37661e(0x184)],_0x5138e3[_0x37661e(0x332)],_0x5138e3[_0x37661e(0x2de)]),_0x11eac9[_0x37661e(0x267)](_0x1b00dd,_0x3e28cb);_0x11eac9[_0x37661e(0x267)](_0x8ebe31,_0x1989d3);},{'kiem_tra_han_muc_cong_no':![]});});else{if(_0x599c71['bSNTA'](_0x5b39c4[_0x19450c(0x25a)],_0x1f9e02[_0x19450c(0x25a)])&&!_0x56669a[_0x19450c(0x347)]&&(!_0x4fd4ac||_0x599c71[_0x19450c(0x3dc)](_0xe91dd6,_0x2bceee[_0x19450c(0x39a)])||_0x1db58f===_0x3b215c[_0x19450c(0x39a)])){_0x1a4732[_0x19450c(0x1d3)]=_0x2837c7[_0x19450c(0x1d3)]-_0x11944b[_0x19450c(0x3e0)],_0x370492[_0x19450c(0x2a0)]=_0x8c13c5[_0x19450c(0x36b)](_0x317b2c[_0x19450c(0x1d3)],_0x4e04d0);if(_0x38eeef[_0x19450c(0x3e5)])_0x23a3ec[_0x19450c(0x3b1)]=_0x3a1c76[_0x19450c(0x1cf)]=_0x162051[_0x19450c(0x36b)](_0x599c71[_0x19450c(0x28c)](_0x478389[_0x19450c(0x1d3)],_0x416ea9[_0x19450c(0x3e5)]),0x0);return!![];}else return![];}}_0x41a18b[_0x19450c(0x38a)](_0x152bc2,null,_0x5cc8bc);}}catch(_0xdab174){console['error']('❌\x20[tinhgiatb]\x20Lỗi\x20cập\x20nhật\x20phiếu\x20xuất:',_0x5cc8bc[_0x19450c(0x2de)],_0x5cc8bc[_0x19450c(0x332)],_0xdab174[_0x19450c(0x184)]||_0xdab174[_0x19450c(0x3d5)]||_0xdab174),_0x41a18b[_0x19450c(0x1b0)](_0x152bc2,_0xdab174);}});},_0x110806=>{const _0x4c6804=_0x15664c;if(_0x3feb5f[_0x4c6804(0x3a0)](_0x3feb5f['MItuL'],_0x3feb5f['HoDwu']))_0x3feb5f[_0x4c6804(0x356)](_0x58855f,_0x110806,_0x398145);else{const _0x403f52={'QCMuU':_0x41a18b[_0x4c6804(0x2d6)],'UQGZH':function(_0x1931ed,_0x48052a,_0x11da15){const _0x494562=_0x4c6804;return _0x41a18b[_0x494562(0x38a)](_0x1931ed,_0x48052a,_0x11da15);},'yPxdd':function(_0x101a98,_0x208d91,_0x5cb7d8){return _0x101a98(_0x208d91,_0x5cb7d8);}};_0x41a18b['UPIZD'](_0x212ef5,()=>{const _0x457a5e=_0x4c6804,_0x41a633={'NtWkJ':_0x403f52[_0x457a5e(0x22b)],'Bdzsj':function(_0x48b2c5,_0x5a3382){return _0x48b2c5(_0x5a3382);},'JKrtL':function(_0x563f00,_0x37da37,_0x5cb132){const _0x1399cc=_0x457a5e;return _0x403f52[_0x1399cc(0x35a)](_0x563f00,_0x37da37,_0x5cb132);}};let _0x1a058d={'id_app':_0x1fe20c,'tu_ngay':_0x4cf7da,'den_ngay':_0x26f02e,'ma_vt':_0x1e7365[_0x457a5e(0x25a)],'ma_kho':_0x320c55};_0x403f52[_0x457a5e(0x1c5)](_0x26254e,_0x1a058d,function(_0xcda1e,_0x908549){const _0x48825b=_0x457a5e,_0x4db48a='1|4|0|2|3'[_0x48825b(0x33a)]('|');let _0xd56144=0x0;while(!![]){switch(_0x4db48a[_0xd56144++]){case'0':_0x908549[_0x48825b(0x39a)]=_0x21e696;continue;case'1':if(_0xcda1e)return _0x1564a7[_0x48825b(0x3d5)](_0x41a633['NtWkJ'],_0x1a058d[_0x48825b(0x25a)],_0xcda1e),_0x41a633['Bdzsj'](_0x23ff3d,_0xcda1e);continue;case'2':_0x908549[_0x48825b(0x341)]=!![];continue;case'3':_0x41a633[_0x48825b(0x373)](_0x42f54e,null,_0x908549);continue;case'4':_0x908549[_0x48825b(0x1a1)]=_0x5352f7;continue;}break;}});});}});},function(_0x3ff450,_0x52590c){const _0x13d6bb=_0x339669,_0x477447={'CNfok':function(_0x596123,_0x452d19){const _0x4cff0=_0x34d8;return _0x52e0b0[_0x4cff0(0x1c4)](_0x596123,_0x452d19);},'GhWjX':_0x52e0b0[_0x13d6bb(0x370)],'rWYIL':function(_0x96b2a8,_0x45f92a){const _0x274728=_0x13d6bb;return _0x52e0b0[_0x274728(0x367)](_0x96b2a8,_0x45f92a);},'oIJes':function(_0x13b47e,_0x5d90bf){const _0x2e0b7e=_0x13d6bb;return _0x52e0b0[_0x2e0b7e(0x3ae)](_0x13b47e,_0x5d90bf);},'DPsXz':function(_0x44e7c0,_0x4f32e8){const _0xb0fb7d=_0x13d6bb;return _0x52e0b0[_0xb0fb7d(0x216)](_0x44e7c0,_0x4f32e8);},'zddRb':_0x52e0b0[_0x13d6bb(0x3e8)],'yNkel':_0x52e0b0[_0x13d6bb(0x31f)],'bCTaY':function(_0x208799,_0x3068c4){const _0x78d35a=_0x13d6bb;return _0x52e0b0[_0x78d35a(0x388)](_0x208799,_0x3068c4);},'tlNbc':_0x52e0b0[_0x13d6bb(0x372)],'SXMKf':_0x13d6bb(0x2f9),'bTszQ':_0x52e0b0[_0x13d6bb(0x261)],'fuSPs':function(_0x180618,_0x1202d8,_0x14d3e0){return _0x180618(_0x1202d8,_0x14d3e0);},'gogVq':function(_0x12dbb3,_0x5d3eb7){return _0x12dbb3!==_0x5d3eb7;},'rcOYe':_0x52e0b0[_0x13d6bb(0x2ef)],'rKbJy':_0x52e0b0[_0x13d6bb(0x2e1)],'PefaV':_0x52e0b0[_0x13d6bb(0x2c0)],'kOjFN':_0x13d6bb(0x2f7),'KKJAJ':function(_0x5a7dc9,_0x5c37a0){const _0x326c21=_0x13d6bb;return _0x52e0b0[_0x326c21(0x1cd)](_0x5a7dc9,_0x5c37a0);},'FXIgU':function(_0x26bdc0,_0x48cdaf){return _0x52e0b0['lBGwK'](_0x26bdc0,_0x48cdaf);},'rYOlu':_0x52e0b0['FEHQh'],'iBrlF':_0x52e0b0['cQtUB'],'EbTlB':function(_0x1a14d0,_0x16845a){const _0x1a2a6c=_0x13d6bb;return _0x52e0b0[_0x1a2a6c(0x29f)](_0x1a14d0,_0x16845a);},'vTlpP':_0x52e0b0[_0x13d6bb(0x35f)],'QKMhU':_0x52e0b0[_0x13d6bb(0x31d)],'OwFKT':_0x52e0b0[_0x13d6bb(0x245)],'cYSeO':function(_0x52f955,_0x33eb0e){return _0x52e0b0['ihtyJ'](_0x52f955,_0x33eb0e);}};_0x52e0b0['KkMQp'](_0x52e0b0[_0x13d6bb(0x223)],_0x52e0b0[_0x13d6bb(0x1ec)])?(_0x25868e[_0x13d6bb(0x201)](_0x3e4dca=>{const _0x4c9343=_0x13d6bb;_0xf5d94d[_0x3e4dca[_0x4c9343(0x2ba)][_0x4c9343(0x1b3)]()]=_0x3e4dca;}),_0x3feb5f[_0x13d6bb(0x348)](_0x1085b8)):(console[_0x13d6bb(0x378)](_0x13d6bb(0x17c)),async[_0x13d6bb(0x2d3)](_[_0x13d6bb(0x1bb)](_0xc1a502),0x64,(_0x3de6d8,_0xd1414c)=>{const _0x4d2138=_0x13d6bb,_0x4f17be={'MqVSG':_0x477447[_0x4d2138(0x375)],'wEXxe':_0x4d2138(0x274),'FyrHm':function(_0x29872c,_0x4639c5){const _0x20dcf6=_0x4d2138;return _0x477447[_0x20dcf6(0x39b)](_0x29872c,_0x4639c5);},'MeKps':function(_0x23b016,_0x5d4034){return _0x23b016!==_0x5d4034;},'AeUqH':function(_0x52d097,_0x129f2f){const _0x134a7a=_0x4d2138;return _0x477447[_0x134a7a(0x1a7)](_0x52d097,_0x129f2f);},'EbBBy':function(_0x47aa88,_0x2d6031){const _0x2879d7=_0x4d2138;return _0x477447[_0x2879d7(0x304)](_0x47aa88,_0x2d6031);},'vXDhh':function(_0x3986ff,_0xeb1f9f){const _0x512273=_0x4d2138;return _0x477447[_0x512273(0x392)](_0x3986ff,_0xeb1f9f);},'GeFwV':function(_0x52fcb1,_0x3f83f0){return _0x52fcb1===_0x3f83f0;},'JsihW':'VCgIk','phgqI':_0x477447[_0x4d2138(0x189)],'Gaweg':function(_0x14ec37,_0x4d3c1d,_0x620159){return _0x14ec37(_0x4d3c1d,_0x620159);},'KvxuZ':_0x477447[_0x4d2138(0x39e)],'LGtTj':function(_0x3fa3ed,_0x382ab0){const _0xa9924c=_0x4d2138;return _0x477447[_0xa9924c(0x39b)](_0x3fa3ed,_0x382ab0);},'gltka':function(_0x1d43d4,_0x410cb7){const _0x35409d=_0x4d2138;return _0x477447[_0x35409d(0x195)](_0x1d43d4,_0x410cb7);},'xElSc':_0x477447[_0x4d2138(0x1a0)],'XCwEs':function(_0xbc9c0f,_0x5b5937){const _0x25362f=_0x4d2138;return _0x477447[_0x25362f(0x392)](_0xbc9c0f,_0x5b5937);}};_0x477447[_0x4d2138(0x323)]!==_0x477447[_0x4d2138(0x354)]?_0x477447[_0x4d2138(0x3c4)](setImmediate,async()=>{const _0x4c4c6f=_0x4d2138,_0xd7444b={'vULSG':function(_0x14976c,_0x12dff8){return _0x477447['CNfok'](_0x14976c,_0x12dff8);},'fuATi':_0x477447[_0x4c4c6f(0x256)],'PnJhv':function(_0x3f7641,_0x37685c){const _0x1b129b=_0x4c4c6f;return _0x477447[_0x1b129b(0x3d6)](_0x3f7641,_0x37685c);},'QcJAS':'PNC','Ymwfq':function(_0x37be4c,_0x94745b){return _0x477447['oIJes'](_0x37be4c,_0x94745b);},'oNSWe':_0x4c4c6f(0x22d),'SwYZe':function(_0x54776b,_0x3412a3){const _0x18aa15=_0x4c4c6f;return _0x477447[_0x18aa15(0x17b)](_0x54776b,_0x3412a3);},'qatOV':function(_0x18bfe7,_0x154a34){return _0x477447['CNfok'](_0x18bfe7,_0x154a34);},'OgmiL':_0x477447[_0x4c4c6f(0x32b)],'olQmW':_0x477447[_0x4c4c6f(0x236)],'MeiXy':function(_0x2a4972,_0x29cbf8){const _0x526ca7=_0x4c4c6f;return _0x477447[_0x526ca7(0x292)](_0x2a4972,_0x29cbf8);},'ZBcUk':_0x477447[_0x4c4c6f(0x27e)],'AeDYn':function(_0x39b5e0,_0x2a73f7){const _0x4a18fc=_0x4c4c6f;return _0x477447[_0x4a18fc(0x292)](_0x39b5e0,_0x2a73f7);},'ibMAl':'tjfrV','QmFuo':_0x477447[_0x4c4c6f(0x30a)],'mYCoo':_0x477447['bTszQ'],'gnihm':function(_0x3cc212,_0x785570,_0xbeb21b){const _0x2229f8=_0x4c4c6f;return _0x477447[_0x2229f8(0x18b)](_0x3cc212,_0x785570,_0xbeb21b);},'gEAFh':function(_0x41ce76,_0x30d608){return _0x477447['gogVq'](_0x41ce76,_0x30d608);},'GoGKr':_0x477447[_0x4c4c6f(0x19a)]};try{const _0x3b5732=_0x3de6d8[_0x4c4c6f(0x2d1)][_0x4c4c6f(0x308)](_0x91c60=>(!_0x91c60[_0x4c4c6f(0x1aa)]||_0x91c60[_0x4c4c6f(0x1aa)][_0x4c4c6f(0x315)]==0x0)&&(!_0x15a383[_0x4c4c6f(0x25a)]||_0x15a383[_0x4c4c6f(0x25a)]===_0x91c60['ma_vt'])&&(_0x91c60[_0x4c4c6f(0x347)]||_0x3de6d8['ma_ct']===_0x4c4c6f(0x333)&&!_0x91c60[_0x4c4c6f(0x3a4)]||_0x3de6d8[_0x4c4c6f(0x2de)]===_0x4c4c6f(0x2fd)&&!_0x91c60[_0x4c4c6f(0x3a4)])&&(!_0x57712f||_0x57712f===_0x91c60['ma_kho']||_0x57712f===_0x91c60['ma_kho_x']||_0x57712f===_0x3de6d8[_0x4c4c6f(0x39a)]||_0x57712f===_0x3de6d8[_0x4c4c6f(0x381)]));await Promise[_0x4c4c6f(0x237)](_0x3b5732[_0x4c4c6f(0x2e8)](_0x5c2272=>{const _0x3dc014=_0x4c4c6f,_0x27ded7={'yYRYx':_0x4f17be[_0x3dc014(0x2c3)],'toTPA':function(_0x30ef4c,_0x1876a6){return _0x30ef4c!==_0x1876a6;},'sIWIL':_0x4f17be[_0x3dc014(0x28d)],'YJbiI':function(_0x27eddf,_0x122424){return _0x4f17be['FyrHm'](_0x27eddf,_0x122424);},'TwNez':function(_0x4c802a,_0x2c076c){const _0x3a4cc9=_0x3dc014;return _0x4f17be[_0x3a4cc9(0x1b6)](_0x4c802a,_0x2c076c);},'zesPr':function(_0x5b6377,_0x1a2de7){return _0x5b6377/_0x1a2de7;},'AOiXY':function(_0x323f05,_0x248e96){return _0x323f05*_0x248e96;},'Fjwcg':function(_0x252824,_0x350a6d){const _0x5c2206=_0x3dc014;return _0x4f17be[_0x5c2206(0x36a)](_0x252824,_0x350a6d);},'vSMib':function(_0x317dfc,_0x46d22c){const _0x4b5cb9=_0x3dc014;return _0x4f17be[_0x4b5cb9(0x231)](_0x317dfc,_0x46d22c);},'jSVJo':function(_0x2d4045,_0x355ad1){return _0x4f17be['vXDhh'](_0x2d4045,_0x355ad1);}};return _0x4f17be['GeFwV'](_0x4f17be[_0x3dc014(0x24e)],_0x4f17be[_0x3dc014(0x1b7)])?(_0x366a4e[_0x3dc014(0x3d5)](_0x27ded7[_0x3dc014(0x38c)],_0x21f1f9[_0x3dc014(0x184)],_0x1918be[_0x3dc014(0x332)],_0x45a701[_0x3dc014(0x2de)]),_0x439d76(_0x3cafc0)):((async()=>{const _0x501ebc=_0x3dc014,_0x1313a7={'KdPkC':function(_0x5319d5,_0x507655){return _0x5319d5(_0x507655);},'eNYfB':function(_0x5d9dbd,_0x252829,_0x4e6862){return _0x5d9dbd(_0x252829,_0x4e6862);}};if(_0x27ded7[_0x501ebc(0x1f6)]('FpZLB','SidDB')){let _0x1ba178=_[_0x501ebc(0x24b)](_0x569880,_0x1b95c2=>{const _0x245bbf=_0x501ebc;if(_0x27ded7[_0x245bbf(0x276)]('bZlzl',_0x27ded7[_0x245bbf(0x1af)]))return _0x5c2272[_0x245bbf(0x25a)]===_0x1b95c2[_0x245bbf(0x25a)];else{if(_0x54dfd5)return _0x5e716a[_0x245bbf(0x3d5)](_0x245bbf(0x329),_0x515d9e),_0x1313a7['KdPkC'](_0x43382f,_0xab9d12);_0x1313a7[_0x245bbf(0x3aa)](_0x1bbb6d,null,_0x145a78);}}),_0x3e46d2=_0x1ba178?_0x1ba178[_0x501ebc(0x353)]:0x0,_0x5e5819=0x1,_0x13c427=await dmqddvt[_0x501ebc(0x38d)]({'id_app':_0xc1a502['id_app'],'ma_vt':_0x5c2272[_0x501ebc(0x25a)],'ma_dvt':_0x5c2272['ma_dvt']})['lean']();if(_0x13c427)_0x5e5819=_0x13c427[_0x501ebc(0x2a4)]?_0x27ded7['zesPr'](_0x13c427['tu'],_0x13c427['mau']):_0x13c427[_0x501ebc(0x314)];_0x5c2272[_0x501ebc(0x3b1)]=_0x27ded7[_0x501ebc(0x3e2)](_0x3e46d2,_0x5e5819),_0x5c2272[_0x501ebc(0x1cf)]=_0x5c2272[_0x501ebc(0x3b1)],_0x27ded7[_0x501ebc(0x190)](_0x3de6d8['ma_ct'],_0x501ebc(0x333))||_0x27ded7[_0x501ebc(0x272)](_0x3de6d8[_0x501ebc(0x2de)],_0x501ebc(0x2fd))?(_0x5c2272['tien_xuat_nt']=Math[_0x501ebc(0x36b)](_0x27ded7[_0x501ebc(0x321)](_0x5c2272[_0x501ebc(0x196)],_0x5c2272[_0x501ebc(0x1cf)]),_0x85e24e),_0x5c2272[_0x501ebc(0x380)]=_0x5c2272[_0x501ebc(0x2fe)]):(_0x5c2272['tien_nhap_nt']=Math[_0x501ebc(0x36b)](_0x5c2272[_0x501ebc(0x3e5)]*_0x5c2272['gia_von'],_0x85e24e),_0x5c2272[_0x501ebc(0x2a0)]=_0x5c2272[_0x501ebc(0x1d3)]);}else _0x27ded7[_0x501ebc(0x2ad)](_0x4783be,_0x5becba);})());})),await Promise['all'](_0x3de6d8[_0x4c4c6f(0x2d1)][_0x4c4c6f(0x308)](_0x268779=>_0x268779[_0x4c4c6f(0x1aa)]&&_0x268779[_0x4c4c6f(0x1aa)]['length']>0x0&&(_0x268779['pn_gia_tb']||_0x3de6d8[_0x4c4c6f(0x2de)]===_0x4c4c6f(0x333)&&!_0x268779[_0x4c4c6f(0x3a4)]||_0x3de6d8[_0x4c4c6f(0x2de)]===_0x4c4c6f(0x2fd)&&!_0x268779[_0x4c4c6f(0x3a4)]))['map'](_0x4ece37=>{const _0x2e6d18=_0x4c4c6f,_0x5ba62b={'TSVii':function(_0xed5d7,_0x3c5c6a){const _0x53842a=_0x34d8;return _0xd7444b[_0x53842a(0x217)](_0xed5d7,_0x3c5c6a);},'wHsGH':_0xd7444b[_0x2e6d18(0x3ca)],'Fehtf':function(_0x4f5075,_0x4f32a3){return _0xd7444b['PnJhv'](_0x4f5075,_0x4f32a3);},'PDpvj':_0xd7444b[_0x2e6d18(0x2c6)],'HpcPJ':function(_0x5108c2,_0x45852f){const _0x29cd64=_0x2e6d18;return _0xd7444b[_0x29cd64(0x2f1)](_0x5108c2,_0x45852f);},'qYkfA':_0xd7444b[_0x2e6d18(0x1ad)],'kkyWZ':function(_0x4154f1,_0x2eacaf){const _0x57d7f9=_0x2e6d18;return _0xd7444b[_0x57d7f9(0x259)](_0x4154f1,_0x2eacaf);},'TyzQJ':function(_0x2a3969,_0x311823){const _0x3fc25d=_0x2e6d18;return _0xd7444b[_0x3fc25d(0x259)](_0x2a3969,_0x311823);},'aBRIn':function(_0x4ad046,_0x329286){const _0x28ab92=_0x2e6d18;return _0xd7444b[_0x28ab92(0x233)](_0x4ad046,_0x329286);},'ebnmh':'rumMq','swxWT':function(_0x31a969,_0x5ab132){return _0x31a969===_0x5ab132;},'DKBWr':_0xd7444b[_0x2e6d18(0x3b0)],'PqgLQ':function(_0x169410,_0x4411a1){return _0x169410/_0x4411a1;}};return((async()=>{const _0x18fcda=_0x2e6d18,_0x1ea3ce=_0x4ece37[_0x18fcda(0x1aa)][_0x18fcda(0x308)](_0x2e2fdc=>(!_0x15a383[_0x18fcda(0x25a)]||_0x15a383[_0x18fcda(0x25a)]===_0x2e2fdc[_0x18fcda(0x25a)])&&(!_0x57712f||_0x57712f===(_0x4ece37[_0x18fcda(0x39a)]||_0x3de6d8[_0x18fcda(0x39a)]||_0x3de6d8[_0x18fcda(0x381)])));await Promise['all'](_0x1ea3ce['map'](_0x7b303c=>{const _0x386f8b=_0x18fcda,_0x3449b8={'QfokF':function(_0x3112b2,_0x4ea6dc){const _0x3d5c29=_0x34d8;return _0x5ba62b[_0x3d5c29(0x18c)](_0x3112b2,_0x4ea6dc);},'MyKBn':_0x5ba62b[_0x386f8b(0x300)],'EcBho':function(_0x3cbf0d,_0x3e10c2){const _0x1b837e=_0x386f8b;return _0x5ba62b[_0x1b837e(0x3d2)](_0x3cbf0d,_0x3e10c2);},'NdtGF':function(_0x3089b6,_0x18b2bd){return _0x3089b6*_0x18b2bd;},'fccUw':function(_0x155132,_0x428482){return _0x155132===_0x428482;},'RNKon':_0x5ba62b[_0x386f8b(0x1a8)],'rNUoU':function(_0x242d12,_0x1b55e8){const _0x15ab57=_0x386f8b;return _0x5ba62b[_0x15ab57(0x338)](_0x242d12,_0x1b55e8);},'bOtau':_0x5ba62b[_0x386f8b(0x3c8)],'iEkYQ':function(_0x373265,_0x34709e){const _0x4c2598=_0x386f8b;return _0x5ba62b[_0x4c2598(0x33c)](_0x373265,_0x34709e);},'ORRyC':function(_0x3bb40b,_0xee48c6){const _0x263c81=_0x386f8b;return _0x5ba62b[_0x263c81(0x234)](_0x3bb40b,_0xee48c6);}};if(_0x5ba62b[_0x386f8b(0x3d7)](_0x5ba62b[_0x386f8b(0x247)],_0x5ba62b[_0x386f8b(0x247)]))return((async()=>{const _0x4cc9e5=_0x386f8b;if('NFqiq'===_0x3449b8[_0x4cc9e5(0x34e)])return _0x442134['log'](_0x4cc9e5(0x3ac),_0xf6cf5d),null;else{let _0x2b6f70=_[_0x4cc9e5(0x24b)](_0x569880,_0x3dd206=>{return _0x3449b8['QfokF'](_0x7b303c['ma_vt'],_0x3dd206['ma_vt']);}),_0xd3c01f=_0x2b6f70?_0x2b6f70[_0x4cc9e5(0x353)]:0x0,_0x13e892=0x1,_0x56ea70=await dmqddvt[_0x4cc9e5(0x38d)]({'id_app':_0x3de6d8[_0x4cc9e5(0x1a1)],'ma_vt':_0x7b303c[_0x4cc9e5(0x25a)],'ma_dvt':_0x7b303c[_0x4cc9e5(0x32d)]})[_0x4cc9e5(0x320)]();if(_0x56ea70)_0x13e892=_0x56ea70[_0x4cc9e5(0x2a4)]?_0x3449b8[_0x4cc9e5(0x1f4)](_0x56ea70['tu'],_0x56ea70[_0x4cc9e5(0x2a4)]):_0x56ea70[_0x4cc9e5(0x314)];_0x7b303c[_0x4cc9e5(0x1cf)]=_0x7b303c[_0x4cc9e5(0x3b1)]=_0x3449b8[_0x4cc9e5(0x316)](_0xd3c01f,_0x13e892),_0x3449b8[_0x4cc9e5(0x294)](_0x3de6d8[_0x4cc9e5(0x2de)],_0x3449b8[_0x4cc9e5(0x29c)])||_0x3de6d8[_0x4cc9e5(0x2de)]===_0x4cc9e5(0x2fd)?(_0x7b303c[_0x4cc9e5(0x2fe)]=Math[_0x4cc9e5(0x36b)](_0x3449b8[_0x4cc9e5(0x316)](_0x7b303c[_0x4cc9e5(0x196)],_0x7b303c['gia_von']),_0x85e24e),_0x7b303c[_0x4cc9e5(0x380)]=_0x7b303c['tien_xuat_nt']):(_0x7b303c['tien_nhap_nt']=Math[_0x4cc9e5(0x36b)](_0x3449b8[_0x4cc9e5(0x1e0)](_0x7b303c[_0x4cc9e5(0x3e5)],_0x7b303c[_0x4cc9e5(0x1cf)]),_0x85e24e),_0x7b303c['tien_nhap']=_0x7b303c['tien_nhap_nt']);}})());else{const _0x57051f={'eDWTF':_0x3449b8['bOtau'],'uPUFk':function(_0xbd39f0,_0x14c538){const _0xd6cf72=_0x386f8b;return _0x3449b8[_0xd6cf72(0x398)](_0xbd39f0,_0x14c538);},'UZIqI':function(_0x1005ed,_0x1ffd0e){const _0x5a5f35=_0x386f8b;return _0x3449b8[_0x5a5f35(0x2a3)](_0x1005ed,_0x1ffd0e);}};_0x514b3b[_0x386f8b(0x1f1)](_0x2f309a,_0x2900c1,function(_0x383b4b,_0x1c9372){const _0x464288=_0x386f8b;if(_0x383b4b)return _0x32bdde['error'](_0x57051f[_0x464288(0x2fb)],_0x383b4b[_0x464288(0x184)],_0xc2b1cb[_0x464288(0x332)],_0x5509b3[_0x464288(0x2de)]),_0x57051f[_0x464288(0x2a9)](_0x2b7c4f,_0x383b4b);_0x57051f[_0x464288(0x313)](_0x2913cc,_0x1c9372);},{'kiem_tra_han_muc_cong_no':![]});}})),_0x5ba62b['aBRIn'](_0x3de6d8['ma_ct'],_0x5ba62b[_0x18fcda(0x1a8)])||_0x5ba62b['swxWT'](_0x3de6d8['ma_ct'],_0x5ba62b['DKBWr'])?(_0x4ece37['tien_xuat']=_0x4ece37[_0x18fcda(0x2fe)]=_0x4ece37['combo']['map'](_0x2484d7=>_0x2484d7[_0x18fcda(0x2fe)]||0x0)[_0x18fcda(0x2cd)]((_0x5d821f,_0x44cd62)=>_0x5d821f+_0x44cd62,0x0),_0x4ece37[_0x18fcda(0x1cf)]=_0x4ece37[_0x18fcda(0x3b1)]=Math['roundBy'](_0x4ece37[_0x18fcda(0x196)]?_0x5ba62b[_0x18fcda(0x3d2)](_0x4ece37[_0x18fcda(0x2fe)],_0x4ece37[_0x18fcda(0x196)]):0x0,_0x85e24e)):(_0x4ece37[_0x18fcda(0x2a0)]=_0x4ece37[_0x18fcda(0x1d3)]=_0x4ece37[_0x18fcda(0x1aa)][_0x18fcda(0x2e8)](_0x259377=>_0x259377[_0x18fcda(0x1d3)]||0x0)[_0x18fcda(0x2cd)]((_0xa0a9bb,_0x438e40)=>_0xa0a9bb+_0x438e40,0x0),_0x4ece37[_0x18fcda(0x1cf)]=_0x4ece37[_0x18fcda(0x3b1)]=Math[_0x18fcda(0x36b)](_0x4ece37['sl_nhap']?_0x5ba62b[_0x18fcda(0x2c4)](_0x4ece37['tien_nhap_nt'],_0x4ece37[_0x18fcda(0x3e5)]):0x0,_0x85e24e));})());}));if(_0x3de6d8[_0x4c4c6f(0x342)]){const _0x3c3022=_0x3de6d8[_0x4c4c6f(0x342)][_0x4c4c6f(0x308)](_0x49da04=>(!_0x15a383[_0x4c4c6f(0x25a)]||_0x15a383[_0x4c4c6f(0x25a)]===_0x49da04[_0x4c4c6f(0x25a)])&&(_0x49da04[_0x4c4c6f(0x347)]&&(!_0x57712f||_0x57712f===_0x49da04[_0x4c4c6f(0x39a)])));await Promise[_0x4c4c6f(0x237)](_0x3c3022[_0x4c4c6f(0x2e8)](_0x2e160b=>{const _0x4ceea6=_0x4c4c6f,_0x52eeaa={'tAbYW':_0x4ceea6(0x352),'jakXN':function(_0xfb47c7,_0x5ba71,_0x3d2fe2){const _0x393e6f=_0x4ceea6;return _0x4f17be[_0x393e6f(0x3cb)](_0xfb47c7,_0x5ba71,_0x3d2fe2);},'kyoTg':_0x4f17be[_0x4ceea6(0x3c0)],'cRMiu':function(_0x1e92ff,_0x3eedf4){const _0x43e0b7=_0x4ceea6;return _0x4f17be[_0x43e0b7(0x322)](_0x1e92ff,_0x3eedf4);},'KaUSV':function(_0x1ce0b9,_0x1ade97){return _0x4f17be['GeFwV'](_0x1ce0b9,_0x1ade97);}};if(_0x4f17be[_0x4ceea6(0x225)](_0x4f17be[_0x4ceea6(0x3de)],_0x4f17be['xElSc'])){const _0x47e6fd=_0x52eeaa[_0x4ceea6(0x32a)][_0x4ceea6(0x33a)]('|');let _0x314bb2=0x0;while(!![]){switch(_0x47e6fd[_0x314bb2++]){case'0':_0x2671e2[_0x4ceea6(0x1a1)]=_0x28de80;continue;case'1':_0x291a0d[_0x4ceea6(0x341)]=!![];continue;case'2':_0x52eeaa['jakXN'](_0x1feee5,null,_0x1a3f74);continue;case'3':if(_0x1eb103)return _0x53cf4f[_0x4ceea6(0x3d5)](_0x52eeaa[_0x4ceea6(0x2db)],_0x5e76a4[_0x4ceea6(0x25a)],_0x57968f),_0x52eeaa[_0x4ceea6(0x3b4)](_0x3096ad,_0x10e63f);continue;case'4':_0x272eda[_0x4ceea6(0x39a)]=_0x16ede2;continue;}break;}}else return((async()=>{const _0x101dbc=_0x4ceea6,_0x57119f={'UUCfh':_0x101dbc(0x329)};if(_0xd7444b[_0x101dbc(0x233)](_0xd7444b['olQmW'],_0x101dbc(0x270))){let _0x15c27b=_[_0x101dbc(0x24b)](_0x569880,_0x7b388b=>{const _0x3ae120=_0x101dbc;return _0x52eeaa[_0x3ae120(0x2c5)](_0x2e160b[_0x3ae120(0x25a)],_0x7b388b['ma_vt']);}),_0xad00fc=_0x15c27b?_0x15c27b[_0x101dbc(0x353)]:0x0,_0x3402ca=0x1,_0x4c0bed=await dmqddvt['findOne']({'id_app':_0xc1a502[_0x101dbc(0x1a1)],'ma_vt':_0x2e160b['ma_vt'],'ma_dvt':_0x2e160b[_0x101dbc(0x32d)]})['lean']();if(_0x4c0bed)_0x3402ca=_0x4c0bed[_0x101dbc(0x2a4)]?_0xd7444b[_0x101dbc(0x23f)](_0x4c0bed['tu'],_0x4c0bed[_0x101dbc(0x2a4)]):_0x4c0bed['ty_le_qd'];_0x2e160b['gia_von_nt']=_0xd7444b['Ymwfq'](_0xad00fc,_0x3402ca),_0x2e160b[_0x101dbc(0x1cf)]=_0x2e160b[_0x101dbc(0x3b1)],_0x2e160b[_0x101dbc(0x2fe)]=Math['roundBy'](_0x2e160b['sl_xuat']*_0x2e160b[_0x101dbc(0x1cf)],_0x85e24e),_0x2e160b['tien_xuat']=_0x2e160b[_0x101dbc(0x2fe)];}else return _0x2aafba[_0x101dbc(0x3d5)](_0x57119f[_0x101dbc(0x2f5)],_0x454978),_0x34732c(_0x3e7980);})());}));}let _0x34c907=_0x3de6d8[_0x4c4c6f(0x3cf)]();const _0x149a3d=global[_0x4c4c6f(0x23c)][_0x34c907['ma_ct']['toUpperCase']()];let _0x10e6b9=_0x149a3d?_0x149a3d[_0x4c4c6f(0x2e7)](_0x477447['rKbJy']):mongoose[_0x4c4c6f(0x3b2)][_0x34c907[_0x4c4c6f(0x2de)][_0x4c4c6f(0x24a)]()];await _0x10e6b9[_0x4c4c6f(0x24f)]({'_id':_0x34c907[_0x4c4c6f(0x2ba)]},_0x34c907),_0x149a3d&&_0x149a3d[_0x4c4c6f(0x1dd)]&&(_0x477447[_0x4c4c6f(0x1a7)](_0x477447[_0x4c4c6f(0x317)],_0x477447['PefaV'])?await new Promise((_0xe3cae6,_0x512c2d)=>{const _0x44e8e7=_0x4c4c6f,_0x4d52b3={'eYNSd':_0xd7444b[_0x44e8e7(0x2d7)],'IEIfR':function(_0x5762e1,_0xcc54db,_0x170f2b){const _0x578d33=_0x44e8e7;return _0xd7444b[_0x578d33(0x244)](_0x5762e1,_0xcc54db,_0x170f2b);}};_0xd7444b[_0x44e8e7(0x1e8)]('dXhGh',_0xd7444b['GoGKr'])?Controller[_0x44e8e7(0x1f1)](_0x34c907,_0x149a3d,function(_0x305a15,_0x3e21b4){const _0xb49d92=_0x44e8e7;if(_0xd7444b['MeiXy'](_0xb49d92(0x1c7),_0xd7444b['ZBcUk'])){if(_0x5798b3)return _0x6dbfc1[_0xb49d92(0x3d5)](_0x4d52b3[_0xb49d92(0x2ab)],_0x453b3a),_0xee90b(_0x16d491);_0x4d52b3['IEIfR'](_0x3ca86c,null,_0x1dc091);}else{if(_0x305a15){if(_0xd7444b[_0xb49d92(0x26e)](_0xd7444b[_0xb49d92(0x3dd)],_0xd7444b[_0xb49d92(0x275)]))_0x5d4149(_0x10c58f,_0x374f41);else return console[_0xb49d92(0x3d5)](_0xd7444b[_0xb49d92(0x1ad)],_0x305a15[_0xb49d92(0x184)],_0x34c907[_0xb49d92(0x332)],_0x34c907[_0xb49d92(0x2de)]),_0x512c2d(_0x305a15);}_0xd7444b[_0xb49d92(0x259)](_0xe3cae6,_0x3e21b4);}},{'kiem_tra_han_muc_cong_no':![]}):(_0x57142d[_0x44e8e7(0x2fe)]=_0x2f01f8[_0x44e8e7(0x36b)](_0x48fff0[_0x44e8e7(0x196)]*_0x3a6fa1[_0x44e8e7(0x1cf)],_0x3cd285),_0x5504f5[_0x44e8e7(0x380)]=_0x5ea45d[_0x44e8e7(0x2fe)]);}):(_0x9f5e0c[_0x4c4c6f(0x1d3)]=_0x28e3eb[_0x4c4c6f(0x36b)](_0x4f17be[_0x4c4c6f(0x3a9)](_0x63fef0[_0x4c4c6f(0x3e5)],_0xd9da25[_0x4c4c6f(0x1cf)]),_0x4b927f),_0x228679[_0x4c4c6f(0x2a0)]=_0x13f0ed[_0x4c4c6f(0x1d3)])),_0x477447[_0x4c4c6f(0x18b)](_0xd1414c,null,_0x3de6d8);}catch(_0x35afe7){console['error'](_0x4c4c6f(0x37b),_0x3de6d8[_0x4c4c6f(0x2de)],_0x3de6d8[_0x4c4c6f(0x332)],_0x35afe7[_0x4c4c6f(0x3d5)]||_0x35afe7[_0x4c4c6f(0x184)]||_0x35afe7),_0x477447[_0x4c4c6f(0x17b)](_0xd1414c,_0x35afe7);}}):_0x15c6e3[_0x4d2138(0x39a)]=_0x1bafb9[_0x4d2138(0x39a)];},function(_0x2d5f82){const _0x470b6b=_0x13d6bb;_0x477447[_0x470b6b(0x17b)](_0x52590c,_0x2d5f82);}));}],function(_0x5cc09a){const _0x896a53=_0x339669,_0xba357={'Cgdat':function(_0x4f30e2,_0x5203d3){return _0x3feb5f['hSvkj'](_0x4f30e2,_0x5203d3);},'SdEUU':function(_0x2e3926,_0x4aedfd){const _0x1e885a=_0x34d8;return _0x3feb5f[_0x1e885a(0x3a0)](_0x2e3926,_0x4aedfd);},'tNGWH':function(_0x1533ed,_0x4d3e64){return _0x3feb5f['LhweD'](_0x1533ed,_0x4d3e64);},'EeyoZ':function(_0x222af8,_0x3340be){return _0x3feb5f['jtYtc'](_0x222af8,_0x3340be);},'SqMlM':_0x896a53(0x1a4),'oEOBl':function(_0x372bf2,_0x31f746){return _0x3feb5f['kPwxs'](_0x372bf2,_0x31f746);},'xnlfU':function(_0x26c757,_0x2d3e10){return _0x3feb5f['jtYtc'](_0x26c757,_0x2d3e10);},'bLjJa':_0x3feb5f[_0x896a53(0x1e3)],'fIDMe':function(_0x274f2b,_0x3cb938){return _0x274f2b/_0x3cb938;},'ZnApF':_0x3feb5f['KdsOT'],'ORbNQ':_0x3feb5f['RpJzD'],'rkwRo':function(_0x2d55d5,_0x25da3d){return _0x3feb5f['WFYDS'](_0x2d55d5,_0x25da3d);},'zZVFF':function(_0x3d1711,_0x55663c){const _0x2b77b0=_0x896a53;return _0x3feb5f[_0x2b77b0(0x29a)](_0x3d1711,_0x55663c);},'jhuIq':_0x3feb5f[_0x896a53(0x211)],'OWXcy':function(_0x1153db,_0x5f3bf3,_0x1eeb9d){return _0x1153db(_0x5f3bf3,_0x1eeb9d);},'tFyrZ':_0x3feb5f[_0x896a53(0x2cb)],'YNwRq':_0x896a53(0x18e),'AwIOS':_0x3feb5f['QpjpM'],'ueAah':function(_0x445cf5,_0x41a83d){const _0x3a42d5=_0x896a53;return _0x3feb5f[_0x3a42d5(0x181)](_0x445cf5,_0x41a83d);},'jnJJr':_0x3feb5f[_0x896a53(0x3e3)],'AaCMR':function(_0x45edda,_0x391caa){const _0x49e62e=_0x896a53;return _0x3feb5f[_0x49e62e(0x214)](_0x45edda,_0x391caa);},'jbgte':_0x3feb5f[_0x896a53(0x230)],'ilhpP':_0x896a53(0x17e),'fenHo':_0x3feb5f['wnpLJ'],'GDFEb':_0x3feb5f['cnbQb'],'ryWAv':_0x3feb5f['KJrbL'],'JzBlw':_0x3feb5f[_0x896a53(0x387)]};if(_0x5cc09a)return _0x3feb5f[_0x896a53(0x214)](_0x343d08,_0x5cc09a);console['log'](_0x896a53(0x226));let _0x3d9a08={'id_app':_0x15a383[_0x896a53(0x1a1)],'ngay':_0x4a440e,'chenh_lech':0x1};_0x15a383['ma_vt']&&(_0x3d9a08[_0x896a53(0x25a)]=_0x15a383[_0x896a53(0x25a)]);if(_0x15a383[_0x896a53(0x39a)]){if(_0x3feb5f[_0x896a53(0x2aa)](_0x3feb5f[_0x896a53(0x357)],_0x896a53(0x350)))return _0xba357[_0x896a53(0x37f)](_0x5c0a84,_0x5d82f9);else _0x3d9a08[_0x896a53(0x39a)]=_0x15a383['ma_kho'];}ckvt(_0x3d9a08,(_0x4b77cd,_0x4ca40f)=>{const _0x451017=_0x896a53,_0x188e1b={'THLFI':function(_0x5265f3,_0x50b025){const _0x30404c=_0x34d8;return _0xba357[_0x30404c(0x1ff)](_0x5265f3,_0x50b025);},'Zytjv':function(_0x3322a0,_0x5804cb){return _0xba357['tNGWH'](_0x3322a0,_0x5804cb);},'OFOPu':function(_0x5c008b,_0xddd420){const _0x50c143=_0x34d8;return _0xba357[_0x50c143(0x36c)](_0x5c008b,_0xddd420);},'vrDsE':_0xba357[_0x451017(0x1fb)],'ChRIl':function(_0x2072f6,_0x5c164d){return _0xba357['oEOBl'](_0x2072f6,_0x5c164d);},'tIgzP':function(_0x50c467,_0x3ad431){return _0x50c467==_0x3ad431;},'jZYDc':function(_0x47e4a4,_0x383aad){const _0x23b3c6=_0x451017;return _0xba357[_0x23b3c6(0x20d)](_0x47e4a4,_0x383aad);},'ncGQP':function(_0x1392ef,_0x33122d){const _0x496529=_0x451017;return _0xba357[_0x496529(0x1ff)](_0x1392ef,_0x33122d);},'NJSmP':_0xba357[_0x451017(0x191)],'aFqVf':function(_0x564caf,_0x3e2a5a){const _0x24a907=_0x451017;return _0xba357[_0x24a907(0x2ed)](_0x564caf,_0x3e2a5a);},'ZRZZJ':_0xba357[_0x451017(0x1b1)],'hfdzB':_0xba357['ORbNQ'],'rbENp':function(_0x24facc,_0x3cd232){return _0xba357['rkwRo'](_0x24facc,_0x3cd232);},'tENYM':function(_0x24944a,_0x399421){const _0x13f6c3=_0x451017;return _0xba357[_0x13f6c3(0x2b2)](_0x24944a,_0x399421);},'boBVL':_0xba357[_0x451017(0x326)],'gxZhg':function(_0x5acd0a,_0x57545d,_0x15f9f4){const _0xd9d9d1=_0x451017;return _0xba357[_0xd9d9d1(0x1e9)](_0x5acd0a,_0x57545d,_0x15f9f4);},'ViRVF':_0x451017(0x22d),'olXdp':_0x451017(0x339),'qyXKN':_0xba357[_0x451017(0x25b)],'QkZbl':_0xba357[_0x451017(0x34c)],'usjhZ':_0xba357[_0x451017(0x258)],'tOBAn':function(_0xe775e5,_0x29e4e1,_0x451af5){return _0xe775e5(_0x29e4e1,_0x451af5);},'UxXDB':function(_0x35fa2e,_0x52fab1){return _0xba357['ueAah'](_0x35fa2e,_0x52fab1);},'HHGsB':_0xba357[_0x451017(0x289)],'SWBxz':function(_0x47be98,_0x1081c2){return _0xba357['AaCMR'](_0x47be98,_0x1081c2);},'HZHCk':_0xba357[_0x451017(0x199)],'KwSYs':_0xba357[_0x451017(0x235)],'xMUxY':_0xba357[_0x451017(0x312)],'bTxtK':_0xba357['GDFEb'],'cHRye':_0xba357[_0x451017(0x302)],'zjeRF':_0xba357[_0x451017(0x1ed)],'IrCmb':_0x451017(0x3a1)};if(_0x4b77cd)return _0x343d08(_0x4b77cd);_0x4ca40f=_[_0x451017(0x308)](_0x4ca40f,_0x39942e=>{const _0x1af78d=_0x451017;return _0x188e1b[_0x1af78d(0x3a3)](_0x39942e[_0x1af78d(0x3e0)],0x0)&&(_0x39942e[_0x1af78d(0x1b2)]==0x0||_0x188e1b[_0x1af78d(0x2d8)](Math[_0x1af78d(0x3d8)](_0x39942e['ton00']),0.001));}),_0x398145=_[_0x451017(0x390)](_['values'](_0x398145),_0x4619ff=>{const _0x6a1a24=_0x451017;return-new Date(_0x4619ff['ngay_ct'])[_0x6a1a24(0x385)]();}),_0xc1a502=_[_0x451017(0x390)](_['values'](_0xc1a502),_0x1fd4ba=>{const _0x499124=_0x451017;if(_0x188e1b['OFOPu'](_0x188e1b['vrDsE'],_0x188e1b['vrDsE']))return-new Date(_0x1fd4ba['ngay_ct'])['getTime']();else _0x1f98d7['ma_vt']=_0x45f38d[_0x499124(0x25a)];});let _0x275c21={};async[_0x451017(0x2e8)](_0x4ca40f,(_0xfd048b,_0x1d6ca3)=>{const _0x352518={'bdrUR':function(_0x584018,_0x1f0124,_0x4f5545){return _0x188e1b['tOBAn'](_0x584018,_0x1f0124,_0x4f5545);}};setImmediate(()=>{const _0x543dd5=_0x34d8,_0x226900={'lfCSk':function(_0x1afcf8,_0x495c33){const _0x162cbb=_0x34d8;return _0x188e1b[_0x162cbb(0x3a5)](_0x1afcf8,_0x495c33);},'arXxw':function(_0xdd8e75,_0x35c662){return _0x188e1b['tIgzP'](_0xdd8e75,_0x35c662);},'AhNAp':function(_0x4fae9f,_0x10cd54){return _0x188e1b['jZYDc'](_0x4fae9f,_0x10cd54);},'BBkCn':function(_0x532f18,_0x26ff3c){return _0x532f18===_0x26ff3c;},'evOuv':function(_0x33d3bd,_0x2bc13c){const _0x522884=_0x34d8;return _0x188e1b[_0x522884(0x262)](_0x33d3bd,_0x2bc13c);},'ZCCse':_0x188e1b['NJSmP'],'DLuuL':function(_0x5d499b,_0x5b00f3){return _0x188e1b['aFqVf'](_0x5d499b,_0x5b00f3);},'CmLdm':_0x543dd5(0x325),'uahCm':_0x188e1b[_0x543dd5(0x3c1)],'tkelL':_0x188e1b['hfdzB'],'YcQpr':_0x543dd5(0x198),'HsENL':function(_0x373bdf,_0x430852){const _0x1ebd15=_0x543dd5;return _0x188e1b[_0x1ebd15(0x2bb)](_0x373bdf,_0x430852);},'mxLpQ':function(_0xb3510d,_0x39fbf5){return _0x188e1b['rbENp'](_0xb3510d,_0x39fbf5);},'WrdlQ':function(_0x2c18ea,_0x146260){const _0x3c4e8f=_0x543dd5;return _0x188e1b[_0x3c4e8f(0x1d4)](_0x2c18ea,_0x146260);},'GeHPw':_0x543dd5(0x1d1),'lnJTY':_0x188e1b[_0x543dd5(0x396)],'GUtpJ':function(_0x5956b2,_0x2693e0,_0x47921d){const _0x38d6a5=_0x543dd5;return _0x188e1b[_0x38d6a5(0x3ec)](_0x5956b2,_0x2693e0,_0x47921d);},'iqugO':_0x188e1b[_0x543dd5(0x238)],'qUHAr':function(_0x4f79b4,_0x5d6402){return _0x4f79b4(_0x5d6402);}};if(_0x188e1b[_0x543dd5(0x318)]===_0x188e1b[_0x543dd5(0x3a7)])return-new _0x1a2afe(_0x5de6ba[_0x543dd5(0x207)])['getTime']();else{let _0x238bad=null;_0x238bad=_[_0x543dd5(0x24b)](_0x398145,_0x34ddca=>{const _0x5b67ef=_0x543dd5,_0x2a9e42={'qTdaL':function(_0x3c68ba,_0x316c1d,_0x4f71e7){const _0x30b2f7=_0x34d8;return _0x352518[_0x30b2f7(0x35b)](_0x3c68ba,_0x316c1d,_0x4f71e7);}};return _[_0x5b67ef(0x24b)](_0x34ddca[_0x5b67ef(0x2d1)],_0x4bbf0e=>{const _0x4c6138=_0x5b67ef,_0x65838d={'unnBN':function(_0x24edc5,_0x384f0e){return _0x226900['lfCSk'](_0x24edc5,_0x384f0e);},'gjwob':function(_0xb2c109,_0x198530){return _0xb2c109/_0x198530;},'VUWeD':'[tinhgiatb]\x20Không\x20thể\x20tính\x20giá\x20trung\x20bình\x20cho\x20vật\x20tư','GeHTe':function(_0x5923b6,_0x241f97){return _0x5923b6(_0x241f97);},'fZoqW':function(_0xde10ea,_0x212884,_0x45fd5b){return _0xde10ea(_0x212884,_0x45fd5b);}};if(_0x226900['arXxw'](_0x4bbf0e[_0x4c6138(0x25a)],_0xfd048b[_0x4c6138(0x25a)])&&!_0x4bbf0e['px_gia_dd']&&(!_0x57712f||_0x226900[_0x4c6138(0x254)](_0x57712f,_0x4bbf0e['ma_kho'])||_0x226900[_0x4c6138(0x249)](_0x57712f,_0x34ddca[_0x4c6138(0x39a)]))){if(_0x226900[_0x4c6138(0x252)](_0x226900[_0x4c6138(0x3c2)],_0x226900['ZCCse'])){_0x57a713[_0x4c6138(0x2fe)]=_0x65838d[_0x4c6138(0x187)](_0x20bf05[_0x4c6138(0x2fe)],_0x9f9201[_0x4c6138(0x3e0)]),_0x1bfc10['tien_xuat']=_0x519b8e[_0x4c6138(0x36b)](_0x1c142e[_0x4c6138(0x2fe)],_0x26bcd0);if(_0x39f580['sl_xuat'])_0x440a31[_0x4c6138(0x3b1)]=_0x45e4bc[_0x4c6138(0x1cf)]=_0x10a52e[_0x4c6138(0x36b)](_0x65838d[_0x4c6138(0x26f)](_0x3121d8['tien_xuat_nt'],_0x237fee['sl_xuat']),0x0);return!![];}else{_0x4bbf0e[_0x4c6138(0x2fe)]=_0x226900[_0x4c6138(0x2e9)](_0x4bbf0e[_0x4c6138(0x2fe)],_0xfd048b[_0x4c6138(0x3e0)]),_0x4bbf0e[_0x4c6138(0x380)]=Math[_0x4c6138(0x36b)](_0x4bbf0e[_0x4c6138(0x2fe)],_0x85e24e);if(_0x4bbf0e[_0x4c6138(0x196)])_0x4bbf0e['gia_von_nt']=_0x4bbf0e[_0x4c6138(0x1cf)]=Math['roundBy'](_0x226900[_0x4c6138(0x2d5)](_0x4bbf0e[_0x4c6138(0x2fe)],_0x4bbf0e[_0x4c6138(0x196)]),0x0);return!![];}}else{if(_0x226900[_0x4c6138(0x1d5)]!==_0x226900[_0x4c6138(0x37e)])return![];else{let _0x596216={'id_app':_0x23ddf3,'tu_ngay':_0x758ba,'den_ngay':_0x2900c7,'ma_vt':_0x58ad59[_0x4c6138(0x25a)],'ma_kho':_0x4b277c};_0x2a9e42[_0x4c6138(0x20f)](_0xd017ee,_0x596216,function(_0x45b6bd,_0x1a6954){const _0x10fd84=_0x4c6138;if(_0x45b6bd)return _0x4702c5[_0x10fd84(0x3d5)](_0x65838d[_0x10fd84(0x3d9)],_0x596216['ma_vt'],_0x45b6bd),_0x65838d['GeHTe'](_0x15e58c,_0x45b6bd);_0x1a6954[_0x10fd84(0x1a1)]=_0x223dc0,_0x1a6954[_0x10fd84(0x39a)]=_0x4fe160,_0x1a6954[_0x10fd84(0x341)]=!![],_0x65838d[_0x10fd84(0x1bd)](_0x4e2647,null,_0x1a6954);});}}});});!_0x238bad&&(_0x238bad=_[_0x543dd5(0x24b)](_0xc1a502,_0x569bf3=>{const _0x5ab561=_0x543dd5,_0x2a4377={'WRhVe':function(_0x45f313,_0x186bf0,_0x1320e4){const _0x3a7b8f=_0x34d8;return _0x226900[_0x3a7b8f(0x27a)](_0x45f313,_0x186bf0,_0x1320e4);}};return _[_0x5ab561(0x24b)](_0x569bf3[_0x5ab561(0x2d1)],_0xfeefcd=>{const _0x271432=_0x5ab561;if(_0x226900[_0x271432(0x254)](_0x226900[_0x271432(0x24c)],_0x226900[_0x271432(0x257)]))return![];else{if(_0x226900[_0x271432(0x1f0)](_0xfeefcd[_0x271432(0x25a)],_0xfd048b[_0x271432(0x25a)])&&!_0xfeefcd[_0x271432(0x347)]&&(!_0x57712f||_0x226900['HsENL'](_0x57712f,_0xfeefcd[_0x271432(0x39a)])||_0x57712f===_0x569bf3[_0x271432(0x39a)])){_0xfeefcd['tien_nhap_nt']=_0x226900['mxLpQ'](_0xfeefcd[_0x271432(0x1d3)],_0xfd048b[_0x271432(0x3e0)]),_0xfeefcd['tien_nhap']=Math[_0x271432(0x36b)](_0xfeefcd[_0x271432(0x1d3)],_0x85e24e);if(_0xfeefcd[_0x271432(0x3e5)])_0xfeefcd[_0x271432(0x3b1)]=_0xfeefcd[_0x271432(0x1cf)]=Math['roundBy'](_0x226900['WrdlQ'](_0xfeefcd[_0x271432(0x1d3)],_0xfeefcd[_0x271432(0x3e5)]),0x0);return!![];}else return _0x226900['GeHPw']!==_0x226900[_0x271432(0x1d7)]?![]:_0x2a4377[_0x271432(0x241)](_0x330cb5,null,_0x223796);}});}));if(_0x238bad){if(_0x188e1b[_0x543dd5(0x262)](_0x188e1b[_0x543dd5(0x246)],_0x188e1b[_0x543dd5(0x2ae)]))_0x275c21[_0x238bad[_0x543dd5(0x2ba)][_0x543dd5(0x1b3)]()]=_0x238bad;else return _0x4b6628[_0x543dd5(0x3d5)](_0x226900[_0x543dd5(0x224)],_0x290b46[_0x543dd5(0x184)],_0x3ea53c[_0x543dd5(0x332)],_0x5ee769[_0x543dd5(0x2de)]),_0x226900[_0x543dd5(0x319)](_0x369889,_0x2307b3);}_0x188e1b[_0x543dd5(0x3ec)](_0x1d6ca3,null,_0x238bad);}});},_0x58c8e3=>{const _0x3be8da=_0x451017,_0x1f3091={'RYQNX':function(_0x44e864,_0x37c50e){return _0x188e1b['UxXDB'](_0x44e864,_0x37c50e);},'oVIRS':_0x188e1b['HHGsB'],'ktyBQ':function(_0x1a8875,_0x2fb2cd){const _0x51153a=_0x34d8;return _0x188e1b[_0x51153a(0x3da)](_0x1a8875,_0x2fb2cd);},'rTRdx':function(_0x2d38ba,_0x51b9d5){return _0x2d38ba!==_0x51b9d5;},'fMcDj':_0x188e1b[_0x3be8da(0x200)],'IxEml':_0x188e1b[_0x3be8da(0x2a5)],'igJXP':function(_0x5db8dc,_0x576991){const _0x38da96=_0x3be8da;return _0x188e1b[_0x38da96(0x262)](_0x5db8dc,_0x576991);},'JcwkM':_0x188e1b[_0x3be8da(0x3d0)],'gSCHA':function(_0x20484a,_0x5cf9de){const _0x34c3fb=_0x3be8da;return _0x188e1b[_0x34c3fb(0x3da)](_0x20484a,_0x5cf9de);},'aHvQX':function(_0xdd246c,_0xac3574,_0x43aea4){const _0x598f9f=_0x3be8da;return _0x188e1b[_0x598f9f(0x3ec)](_0xdd246c,_0xac3574,_0x43aea4);},'SOHfe':function(_0x2b9a43,_0x318122){const _0x45e572=_0x3be8da;return _0x188e1b[_0x45e572(0x2bb)](_0x2b9a43,_0x318122);},'TcnPl':_0x188e1b[_0x3be8da(0x3cd)],'ZDGcJ':function(_0x2c3163,_0xdb195c){const _0x460c86=_0x3be8da;return _0x188e1b[_0x460c86(0x2bb)](_0x2c3163,_0xdb195c);},'zPHmM':_0x188e1b[_0x3be8da(0x26b)],'gTHwn':_0x188e1b['zjeRF']};if(_0x58c8e3){if(_0x188e1b[_0x3be8da(0x32c)]!==_0x188e1b[_0x3be8da(0x32c)])_0x1e2f22[_0x3be8da(0x1d3)]=_0x4c2099[_0x3be8da(0x36b)](_0x1f3091['RYQNX'](_0xe77300[_0x3be8da(0x3e5)],_0x86f2ce[_0x3be8da(0x1cf)]),_0x36d259),_0x3f122e[_0x3be8da(0x2a0)]=_0x254479[_0x3be8da(0x1d3)];else return _0x343d08(_0x58c8e3);}let _0x66f0db=_[_0x3be8da(0x1bb)](_0x275c21);console['log'](_0x3be8da(0x293)),async[_0x3be8da(0x2e8)](_0x66f0db,(_0x2bed10,_0xd6cdd0)=>{const _0x518687=_0x3be8da,_0x3360d4={'kMmrQ':function(_0x898a15,_0x3dbd85,_0xe6b928){return _0x1f3091['aHvQX'](_0x898a15,_0x3dbd85,_0xe6b928);},'LNUkM':function(_0xa21fb5,_0x438840){const _0x13332a=_0x34d8;return _0x1f3091[_0x13332a(0x1c8)](_0xa21fb5,_0x438840);}};if(_0x1f3091[_0x518687(0x1c8)](_0x1f3091[_0x518687(0x1df)],_0x1f3091[_0x518687(0x1df)]))setImmediate(async()=>{const _0x41a7ec=_0x518687,_0x84ed38={'MSHsQ':_0x1f3091[_0x41a7ec(0x269)],'MzRUz':function(_0x1e80ca,_0x50f48e){return _0x1f3091['ktyBQ'](_0x1e80ca,_0x50f48e);}};if(_0x1f3091[_0x41a7ec(0x1ee)](_0x41a7ec(0x24d),_0x1f3091[_0x41a7ec(0x232)]))_0x3dca45[_0x593b90['_id'][_0x41a7ec(0x1b3)]()]=_0x5866ea;else try{let _0x3407f2=_0x2bed10[_0x41a7ec(0x3cf)]();const _0x62105=global[_0x41a7ec(0x23c)][_0x3407f2[_0x41a7ec(0x2de)][_0x41a7ec(0x2c2)]()];let _0x5b3712=_0x62105?_0x62105[_0x41a7ec(0x2e7)](_0x1f3091[_0x41a7ec(0x39c)]):mongoose['models'][_0x3407f2[_0x41a7ec(0x2de)][_0x41a7ec(0x24a)]()];await _0x5b3712[_0x41a7ec(0x24f)]({'_id':_0x3407f2[_0x41a7ec(0x2ba)]},_0x3407f2),_0x62105&&_0x62105[_0x41a7ec(0x1dd)]?_0x1f3091[_0x41a7ec(0x19e)](_0x41a7ec(0x3bf),_0x1f3091[_0x41a7ec(0x1bc)])?Controller['postData'](_0x3407f2,_0x62105,(_0x138f9d,_0x20f29c)=>{const _0x5b2795=_0x41a7ec;if(_0x138f9d)console['error'](_0x5b2795(0x2f7),_0x138f9d[_0x5b2795(0x184)],_0x3407f2['so_ct'],_0x3407f2[_0x5b2795(0x2de)]);_0x3360d4[_0x5b2795(0x30e)](_0xd6cdd0,_0x138f9d,_0x20f29c);},{'kiem_tra_han_muc_cong_no':![]}):(_0x586d1[_0x41a7ec(0x3d5)](_0x84ed38[_0x41a7ec(0x37d)],_0x5014a3['ma_ct'],_0x300005[_0x41a7ec(0x332)],_0x4fae07[_0x41a7ec(0x184)]||_0x110395[_0x41a7ec(0x3d5)]||_0x306570),_0x84ed38[_0x41a7ec(0x18f)](_0x2febc0,_0x1d70fc)):_0x1f3091[_0x41a7ec(0x358)](_0xd6cdd0,null);}catch(_0x2143d9){return _0xd6cdd0(_0x2143d9);}});else return _0x3360d4[_0x518687(0x33f)](_0x5cf851[_0x518687(0x25a)],_0x163ef7['ma_vt']);},async _0x5bb6fb=>{const _0x31151e=_0x3be8da;if(_0x5bb6fb)return _0x343d08(_0x5bb6fb);_0x569880[_0x31151e(0x219)](_0x4b9032,dmvt,[{'where':_0x1f3091['gTHwn'],'fields':_0x31151e(0x36e)}],()=>{const _0x117d44=_0x31151e;if(_0x1f3091[_0x117d44(0x2dd)](_0x117d44(0x1ef),_0x1f3091[_0x117d44(0x2c9)]))return _0x40eba5[_0x117d44(0x25a)]===_0x56f37e[_0x117d44(0x25a)];else _0x1f3091['aHvQX'](_0x343d08,null,_0x569880);});});});});});});});}else return _0x44fcb2['ZfQAo'](_0x2ec1ae[_0x5eddfe(0x25a)],_0x267e44[_0x5eddfe(0x25a)]);});})[_0x13d9ab(0x248)](_0x3565c7=>{const _0x510e7b=_0x13d9ab,_0x312914={'STiVO':function(_0x516849,_0x981e16){return _0x516849(_0x981e16);}};_0x4111e2[_0x510e7b(0x21a)](_0x4111e2['TBcyf'],_0x510e7b(0x283))?_0x4111e2['crZbT'](_0x343d08,_0x3565c7):_0x312914[_0x510e7b(0x1a2)](_0x358f9c,_0x54d72e);});};
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
const dkvt=require(
|
|
2
|
-
module.exports=function($condition$$,$fn$$){if(!($condition$$&&$condition$$.ma_vt&&$condition$$.tu_ngay&&$condition$$.den_ngay&&$condition$$.id_app))return $fn$$("L\u1ed7i: B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1: tu_ngay,den_ngay,id_app,ma_vt");let $ma_vt$$=$condition$$.ma_vt,$tu_ngay$$=$condition$$.tu_ngay,$den_ngay$$=$condition$$.den_ngay,$id_app$$=$condition$$.id_app;async.parallel({dn:function($callback$$){let $query$$={ngay:$tu_ngay$$,id_app:$id_app$$};$condition$$.ma_kho&&
|
|
3
|
-
($query$$.ma_kho=$condition$$.ma_kho);$query$$.ma_vt=$condition$$.ma_vt;dkvt($query$$,function($error$$,$du_dau_result$$){if($error$$)return $callback$$($error$$);$error$$=$du_dau_result$$.csum("ton00");$du_dau_result$$=$du_dau_result$$.csum("du00");$callback$$(null,{ton_dau:$error$$,du_dau:$du_dau_result$$})})},ps:function($callback$$){let $query$$={id_app:$id_app$$,ngay_ct:{$gte:$tu_ngay$$,$lt:$den_ngay$$},ma_vt:$ma_vt$$,$or:[{nxt:1,pn_gia_tb:!1},{nxt:2,px_gia_dd:!0}]};$condition$$.ma_kho&&($query$$.ma_kho=
|
|
4
|
-
$condition$$.ma_kho,$query$$.$or.push({nxt:1,pn_gia_tb:!0,ma_ct:"PNC"}));sokho.find($query$$).lean().then(function($pss_tien_nhap$$){$pss_tien_nhap$$=$pss_tien_nhap$$.map($ps$$=>{$ps$$.sl_nhap=($ps$$.sl_nhap_qd||0)-($ps$$.sl_xuat_qd||0);return $ps$$});let $sl_nhap$$=$pss_tien_nhap$$.csum("sl_nhap");$pss_tien_nhap$$=$pss_tien_nhap$$.csum("tien_nhap")-$pss_tien_nhap$$.csum("tien_xuat");$callback$$(null,{sl_nhap:$sl_nhap$$,tien_nhap:$pss_tien_nhap$$})}).catch($e$$=>{$callback$$($e$$)})}},function($error$$,
|
|
5
|
-
$results$$){if($error$$)$fn$$($error$$);else{$error$$=$results$$.ps.sl_nhap+$results$$.dn.ton_dau;var $tong_tien$$=$results$$.ps.tien_nhap+$results$$.dn.du_dau,$gia$$=$error$$?Math.roundBy($tong_tien$$/$error$$,0):0;return $fn$$(null,{ma_vt:$ma_vt$$,ton_dau:$results$$.dn.ton_dau,du_dau:$results$$.dn.du_dau,sl_nhap:$results$$.ps.sl_nhap,tien_nhap:$results$$.ps.tien_nhap,tong_sl:$error$$,tong_tien:$tong_tien$$,gia:$gia$$})}})};
|
|
1
|
+
function _0x29cc(_0x457ce4,_0x214cc5){const _0x995f3f=_0x995f();return _0x29cc=function(_0x29cc64,_0x479809){_0x29cc64=_0x29cc64-0x180;let _0x25fdce=_0x995f3f[_0x29cc64];if(_0x29cc['pGMWtV']===undefined){var _0x352f65=function(_0x22cf72){const _0x4c59bb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x510ffd='',_0x39961c='';for(let _0x528c80=0x0,_0x307a48,_0x23d3d0,_0x13f446=0x0;_0x23d3d0=_0x22cf72['charAt'](_0x13f446++);~_0x23d3d0&&(_0x307a48=_0x528c80%0x4?_0x307a48*0x40+_0x23d3d0:_0x23d3d0,_0x528c80++%0x4)?_0x510ffd+=String['fromCharCode'](0xff&_0x307a48>>(-0x2*_0x528c80&0x6)):0x0){_0x23d3d0=_0x4c59bb['indexOf'](_0x23d3d0);}for(let _0x3b0517=0x0,_0x38b83a=_0x510ffd['length'];_0x3b0517<_0x38b83a;_0x3b0517++){_0x39961c+='%'+('00'+_0x510ffd['charCodeAt'](_0x3b0517)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x39961c);};_0x29cc['dogIQI']=_0x352f65,_0x457ce4=arguments,_0x29cc['pGMWtV']=!![];}const _0x3fa234=_0x995f3f[0x0],_0x557535=_0x29cc64+_0x3fa234,_0x264191=_0x457ce4[_0x557535];return!_0x264191?(_0x25fdce=_0x29cc['dogIQI'](_0x25fdce),_0x457ce4[_0x557535]=_0x25fdce):_0x25fdce=_0x264191,_0x25fdce;},_0x29cc(_0x457ce4,_0x214cc5);}function _0x995f(){const _0x15b7df=['ntq5odeZsufLDuvx','BhjTy3y','zMvLDMe','C2XFBMHHCa','q0D1vNC','DgTjtuS','DgTfuLK','AwrFyxbW','zhuWma','zgvvz3e','qu5NvKi','C29RAg8','BwfFDNq','Dg9Umda','C2XFEhvHDf9Xza','tog7L2K6ieldOw8Gy8oHBYbUW6b5ihNdQNuGy+g6P3uGy8oHyYb0AgfTihpHU5e6ihr1x25NyxKSzgvUx25NyxKSAwrFyxbWlg1Hx3z0','zgvUx25NyxK','y2f0y2G','DNnfC2q','zhvFzgf1','mta4nZC5nMzlv1f0Bq','DhvFBMDHEq','ue5d','mZe4mdqXnKXyA0rhzq','vgrvENy','Au9UBLm','ChvZAa','DgLLBL9UAgfW','DgjcBvO','odG1mJrhyNPJuhi','Au5osgC','suzWBe8','rgDUBuS','lI9KA3z0','mJy4mtG1uwHdDfHo','yxn5BMm','vLPzu3y','DgHLBG','odiWntzvzejju3m','z2v0tw9KzwW','zxHWB3j0CW','uMDTwva','v09SAgy','y0vmr3C','Du9ZD0u','BwfW','txDpEgW','CNfZCMS','mJHUwKnltg4','BgvHBG','rfb0tLC','Cun4v3K','EKDuvLq','DgLLBL94Dwf0','sMHeELO','y3n1Bq','C2XFBMHHCf9Xza','CM91BMrcEq','sg1drvu','BwfFA2HV','CgfYywXSzwW','y0zWCNK','wuDZtvG','BvzJC3u','AgL1ug0','ndCWnZe2ExziwwDX'];_0x995f=function(){return _0x15b7df;};return _0x995f();}const _0x55d994=_0x29cc;(function(_0x4c6da9,_0x5841ac){const _0x3ecb0f=_0x29cc,_0x558eb6=_0x4c6da9();while(!![]){try{const _0x1bbf72=-parseInt(_0x3ecb0f(0x18e))/0x1+-parseInt(_0x3ecb0f(0x1b2))/0x2+-parseInt(_0x3ecb0f(0x1b3))/0x3+parseInt(_0x3ecb0f(0x185))/0x4+parseInt(_0x3ecb0f(0x193))/0x5+-parseInt(_0x3ecb0f(0x197))/0x6*(parseInt(_0x3ecb0f(0x1a1))/0x7)+parseInt(_0x3ecb0f(0x188))/0x8;if(_0x1bbf72===_0x5841ac)break;else _0x558eb6['push'](_0x558eb6['shift']());}catch(_0x5ee756){_0x558eb6['push'](_0x558eb6['shift']());}}}(_0x995f,0x27601));const dkvt=require(_0x55d994(0x192)),sokho=global[_0x55d994(0x198)](_0x55d994(0x1be)),async=require(_0x55d994(0x194));module[_0x55d994(0x199)]=function(_0x909f,_0x1b402a){const _0x21a1a0=_0x55d994,_0x81653b={'vsEsd':_0x21a1a0(0x180),'cELGw':function(_0x4aaf01,_0x1c9cc0){return _0x4aaf01(_0x1c9cc0);},'HmCEU':function(_0x19170c,_0x1a7b13){return _0x19170c===_0x1a7b13;},'dSMhQ':_0x21a1a0(0x1a7),'hiuPm':function(_0x292db6,_0x49829f,_0x87850d){return _0x292db6(_0x49829f,_0x87850d);},'iOnnS':function(_0x39f4ef,_0x32d3a4,_0x1f12bd){return _0x39f4ef(_0x32d3a4,_0x1f12bd);},'ANgVB':function(_0x40c2d7,_0x2fa6fe){return _0x40c2d7(_0x2fa6fe);},'CGuVw':function(_0x3f3ae1,_0x194918,_0x3c7bbd){return _0x3f3ae1(_0x194918,_0x3c7bbd);},'pYiUp':function(_0x34a274,_0x203a07){return _0x34a274!==_0x203a07;},'qCxWy':'sQpsj','SKRAt':'sl_nhap','iNNHg':function(_0x23cf96,_0x17af5a){return _0x23cf96-_0x17af5a;},'LMyQb':_0x21a1a0(0x18c),'TdUzv':_0x21a1a0(0x1a6),'VZYSv':_0x21a1a0(0x1af),'MwOxl':function(_0x12f189,_0x572347){return _0x12f189(_0x572347);},'RgmYP':function(_0x5b313a,_0x4edff3){return _0x5b313a+_0x4edff3;},'DPtNW':function(_0x5382d8,_0x3c0bca){return _0x5382d8+_0x3c0bca;},'FrYgN':function(_0x1293f1,_0x38e117){return _0x1293f1/_0x38e117;},'cFpry':_0x21a1a0(0x1bc)};if(!_0x909f||!_0x909f[_0x21a1a0(0x1bf)]||!_0x909f[_0x21a1a0(0x186)]||!_0x909f[_0x21a1a0(0x181)]||!_0x909f[_0x21a1a0(0x1ba)])return _0x81653b[_0x21a1a0(0x1ab)](_0x81653b[_0x21a1a0(0x1ae)],_0x81653b[_0x21a1a0(0x1ae)])?_0x81653b[_0x21a1a0(0x1bd)](_0x1b402a,_0x21a1a0(0x180)):_0x4c59bb(_0x81653b[_0x21a1a0(0x183)]);let _0x1cfd93=_0x909f[_0x21a1a0(0x1bf)],_0x1babb2=_0x909f[_0x21a1a0(0x186)],_0x383210=_0x909f['den_ngay'],_0x10c4f5=_0x909f[_0x21a1a0(0x1ba)];async[_0x21a1a0(0x1ad)]({'dn':function(_0x14d8a7){const _0x1adead=_0x21a1a0,_0x41af46={'zGTVT':function(_0x5c2022,_0x54314f){const _0xa2048b=_0x29cc;return _0x81653b[_0xa2048b(0x19c)](_0x5c2022,_0x54314f);},'feeva':function(_0x50a51a,_0x4b2c88){const _0x26401e=_0x29cc;return _0x81653b[_0x26401e(0x1ab)](_0x50a51a,_0x4b2c88);},'DgnmK':_0x81653b['dSMhQ'],'rqsrk':'ton00','tkERY':function(_0x53a899,_0x57bb4b,_0x42b2c4){const _0x20bd96=_0x29cc;return _0x81653b[_0x20bd96(0x1b1)](_0x53a899,_0x57bb4b,_0x42b2c4);}};let _0x6c55c3={'ngay':_0x1babb2,'id_app':_0x10c4f5};_0x909f[_0x1adead(0x1ac)]&&(_0x6c55c3[_0x1adead(0x1ac)]=_0x909f['ma_kho']),_0x6c55c3[_0x1adead(0x1bf)]=_0x909f[_0x1adead(0x1bf)],_0x81653b[_0x1adead(0x18a)](dkvt,_0x6c55c3,function(_0x154044,_0x43bafd){const _0x4004b0=_0x1adead;if(_0x41af46[_0x4004b0(0x1b5)](_0x41af46[_0x4004b0(0x191)],_0x41af46[_0x4004b0(0x191)])){if(_0x154044)return _0x41af46[_0x4004b0(0x1a5)](_0x14d8a7,_0x154044);let _0xd5b111=_0x43bafd['csum'](_0x41af46[_0x4004b0(0x1a0)]),_0x2e5794=_0x43bafd['csum'](_0x4004b0(0x1bb));_0x41af46[_0x4004b0(0x1b9)](_0x14d8a7,null,{'ton_dau':_0xd5b111,'du_dau':_0x2e5794});}else _0x41af46['zGTVT'](_0x5b0e65,_0x9a436d);});},'ps':function(_0x2db6d7){const _0x2f7b53=_0x21a1a0;let _0x35c1d7={'id_app':_0x10c4f5,'ngay_ct':{'$gte':_0x1babb2,'$lt':_0x383210},'ma_vt':_0x1cfd93,'$or':[{'nxt':0x1,'pn_gia_tb':![]},{'nxt':0x2,'px_gia_dd':!![]}]};_0x909f['ma_kho']&&(_0x35c1d7['ma_kho']=_0x909f[_0x2f7b53(0x1ac)],_0x35c1d7['$or'][_0x2f7b53(0x18b)]({'nxt':0x1,'pn_gia_tb':!![],'ma_ct':_0x2f7b53(0x187)})),sokho['find'](_0x35c1d7)[_0x2f7b53(0x1a2)]()[_0x2f7b53(0x196)](function(_0x1e1615){const _0x438e96=_0x2f7b53,_0x1763c1={'mVcsu':function(_0x5d44bd,_0xe8be2d){const _0x10073b=_0x29cc;return _0x81653b[_0x10073b(0x1bd)](_0x5d44bd,_0xe8be2d);},'WOlhf':function(_0x112bde,_0x27ccec,_0x5911e3){const _0x5cc40c=_0x29cc;return _0x81653b[_0x5cc40c(0x1b7)](_0x112bde,_0x27ccec,_0x5911e3);},'tbBmZ':function(_0x24f164,_0x5634ad){return _0x81653b['pYiUp'](_0x24f164,_0x5634ad);},'uOswE':_0x81653b[_0x438e96(0x1a4)]};_0x1e1615=_0x1e1615[_0x438e96(0x19e)](_0x55226f=>{const _0x53bdea=_0x438e96;if(_0x1763c1[_0x53bdea(0x18d)](_0x1763c1[_0x53bdea(0x19d)],_0x1763c1[_0x53bdea(0x19d)])){const _0x365f7c={'tkIMK':function(_0x143b64,_0x376611){const _0xf4a6e3=_0x53bdea;return _0x1763c1[_0xf4a6e3(0x1b0)](_0x143b64,_0x376611);},'IFplO':_0x53bdea(0x1c0),'SojDk':_0x53bdea(0x1bb),'lrmcv':function(_0x3eed9f,_0x3a411c,_0x3cb03f){return _0x3eed9f(_0x3a411c,_0x3cb03f);}};let _0x3c0d1c={'ngay':_0x1ff53c,'id_app':_0x5a6e09};_0x3300dc['ma_kho']&&(_0x3c0d1c[_0x53bdea(0x1ac)]=_0x432667['ma_kho']),_0x3c0d1c[_0x53bdea(0x1bf)]=_0x4b601a[_0x53bdea(0x1bf)],_0x1763c1[_0x53bdea(0x19b)](_0x57ffb0,_0x3c0d1c,function(_0x52a40c,_0xdc2bc){const _0x59bf2a=_0x53bdea;if(_0x52a40c)return _0x365f7c[_0x59bf2a(0x1b8)](_0xccb9c4,_0x52a40c);let _0x247d83=_0xdc2bc[_0x59bf2a(0x1a8)](_0x365f7c[_0x59bf2a(0x190)]),_0x28e456=_0xdc2bc[_0x59bf2a(0x1a8)](_0x365f7c['SojDk']);_0x365f7c[_0x59bf2a(0x1b4)](_0x57ce44,null,{'ton_dau':_0x247d83,'du_dau':_0x28e456});});}else return _0x55226f[_0x53bdea(0x1b6)]=(_0x55226f[_0x53bdea(0x1a9)]||0x0)-(_0x55226f['sl_xuat_qd']||0x0),_0x55226f;});let _0xd2339b=_0x1e1615[_0x438e96(0x1a8)](_0x81653b['SKRAt']),_0x40a417=_0x81653b['iNNHg'](_0x1e1615[_0x438e96(0x1a8)](_0x81653b['LMyQb']),_0x1e1615[_0x438e96(0x1a8)]('tien_xuat'));_0x81653b[_0x438e96(0x1b1)](_0x2db6d7,null,{'sl_nhap':_0xd2339b,'tien_nhap':_0x40a417});})[_0x2f7b53(0x182)](_0x5b7d8c=>{const _0x4d59cf=_0x2f7b53;_0x81653b[_0x4d59cf(0x19c)](_0x2db6d7,_0x5b7d8c);});}},function(_0x5ec10c,_0x2cdae0){const _0x2e9dfa=_0x21a1a0;if(_0x81653b['HmCEU'](_0x81653b[_0x2e9dfa(0x195)],_0x81653b['VZYSv'])){if(_0x5ec10c){_0x81653b[_0x2e9dfa(0x19f)](_0x1b402a,_0x5ec10c);return;}let _0xa1a8f=_0x81653b[_0x2e9dfa(0x19a)](_0x2cdae0['ps'][_0x2e9dfa(0x1b6)],_0x2cdae0['dn']['ton_dau']),_0x3e3fd2=_0x81653b[_0x2e9dfa(0x1a3)](_0x2cdae0['ps'][_0x2e9dfa(0x18c)],_0x2cdae0['dn'][_0x2e9dfa(0x184)]),_0x34e0a0=_0xa1a8f?Math[_0x2e9dfa(0x1aa)](_0x81653b['FrYgN'](_0x3e3fd2,_0xa1a8f),0x0):0x0;return _0x1b402a(null,{'ma_vt':_0x1cfd93,'ton_dau':_0x2cdae0['dn']['ton_dau'],'du_dau':_0x2cdae0['dn'][_0x2e9dfa(0x184)],'sl_nhap':_0x2cdae0['ps'][_0x2e9dfa(0x1b6)],'tien_nhap':_0x2cdae0['ps'][_0x2e9dfa(0x18c)],'tong_sl':_0xa1a8f,'tong_tien':_0x3e3fd2,'gia':_0x34e0a0});}else{_0x30c149=_0x172b43['map'](_0x586413=>{const _0x25d053=_0x2e9dfa;return _0x586413[_0x25d053(0x1b6)]=(_0x586413[_0x25d053(0x1a9)]||0x0)-(_0x586413[_0x25d053(0x1c1)]||0x0),_0x586413;});let _0x7c9060=_0x565304[_0x2e9dfa(0x1a8)](_0x81653b['SKRAt']),_0xf56a3c=_0x81653b[_0x2e9dfa(0x18f)](_0x8e473e['csum'](_0x81653b['LMyQb']),_0x31393e[_0x2e9dfa(0x1a8)](_0x81653b[_0x2e9dfa(0x189)]));_0x81653b['hiuPm'](_0x35998e,null,{'sl_nhap':_0x7c9060,'tien_nhap':_0xf56a3c});}});};
|