flexbiz-server 12.4.21 → 12.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/server/app.js +1 -22
- package/server/auths/bearer.js +1 -3
- package/server/auths/facebook.js +1 -12
- package/server/auths/google.js +1 -13
- package/server/auths/local.js +1 -64
- package/server/cluster.js +1 -27
- package/server/controllers/controller.js +1 -107
- package/server/controllers/controllerRPT.js +1 -27
- package/server/controllers/controllerUtils.js +1 -76
- package/server/controllers/createHandler.js +1 -35
- package/server/controllers/createRouteHandler.js +1 -4
- package/server/controllers/deleteHandler.js +1 -11
- package/server/controllers/deleteManyHandler.js +1 -2
- package/server/controllers/exportHandler.js +1 -17
- package/server/controllers/findHandler.js +1 -53
- package/server/controllers/handlers.js +1 -3
- package/server/controllers/historyHandler.js +1 -5
- package/server/controllers/importFromExcelHandler.js +1 -14
- package/server/controllers/importFromGsHandler.js +1 -10
- package/server/controllers/importFromJsonHandler.js +1 -7
- package/server/controllers/importHandler.js +1 -21
- package/server/controllers/logHandler.js +1 -5
- package/server/controllers/rptCreateRouteHandler.js +1 -4
- package/server/controllers/rptExcelHandler.js +1 -32
- package/server/controllers/rptHandler.js +1 -13
- package/server/controllers/updateBookHandler.js +1 -10
- package/server/controllers/updateFieldHandler.js +1 -12
- package/server/controllers/updateHandler.js +1 -39
- package/server/controllers/updateKeyHandler.js +1 -14
- package/server/controllers/viewHandler.js +1 -13
- package/server/flow/FlowEngine.js +1 -64
- package/server/flow/WebhookManager.js +1 -26
- package/server/flow/handlers.js +1 -3
- package/server/flow/nodes/aiAnalysis.js +1 -9
- package/server/flow/nodes/customer.js +1 -15
- package/server/flow/nodes/data.js +1 -14
- package/server/flow/nodes/debug.js +1 -2
- package/server/flow/nodes/delay.js +1 -3
- package/server/flow/nodes/email.js +1 -9
- package/server/flow/nodes/event.js +1 -11
- package/server/flow/nodes/facebook.js +1 -3
- package/server/flow/nodes/facebookConversations.js +1 -5
- package/server/flow/nodes/facebookCreatePost.js +1 -10
- package/server/flow/nodes/facebookSendMessage.js +1 -12
- package/server/flow/nodes/forEachItem.js +1 -8
- package/server/flow/nodes/function.js +1 -4
- package/server/flow/nodes/httprequest.js +1 -7
- package/server/flow/nodes/inject.js +1 -12
- package/server/flow/nodes/pushNotification.js +1 -5
- package/server/flow/nodes/report.js +1 -6
- package/server/flow/nodes/saveData.js +1 -2
- package/server/flow/nodes/switch.js +1 -20
- package/server/flow/nodes/webhook.js +1 -1
- package/server/flow/nodes/zaloSendMessage.js +1 -4
- package/server/flow/utils.js +1 -2
- package/server/global.js +1 -23
- package/server/libs/BlockchainTransactionPool.js +1 -3
- package/server/libs/WorkerPool.js +1 -4
- package/server/libs/WorkerStaticPool.js +1 -16
- package/server/libs/WorkerStaticPool_v1.js +1 -5
- package/server/libs/assbonus.js +1 -7
- package/server/libs/backup.js +1 -2
- package/server/libs/blockchainconnect.js +1 -12
- package/server/libs/cdpsdiem.js +1 -5
- package/server/libs/cdpsdt.js +1 -7
- package/server/libs/cdpskh.js +1 -9
- package/server/libs/cdpsnphep.js +1 -6
- package/server/libs/cdpstk.js +1 -11
- package/server/libs/ckcn.js +1 -12
- package/server/libs/ckdiem.js +1 -5
- package/server/libs/ckdt.js +1 -6
- package/server/libs/cknphep.js +1 -6
- package/server/libs/cktk.js +1 -4
- package/server/libs/cktt.js +1 -9
- package/server/libs/ckvt.js +1 -12
- package/server/libs/ckvtcapphat.js +1 -6
- package/server/libs/ckvtnpp.js +1 -8
- package/server/libs/ckvttt.js +1 -11
- package/server/libs/createSocaitheongay.js +1 -9
- package/server/libs/ctdiem.js +1 -5
- package/server/libs/ctvt.js +1 -7
- package/server/libs/ctvtnpp.js +1 -7
- package/server/libs/ctvttt.js +1 -7
- package/server/libs/databanle.js +1 -17
- package/server/libs/databanlenpp.js +1 -8
- package/server/libs/databanletheongay.js +1 -27
- package/server/libs/dkcn.js +1 -10
- package/server/libs/dkdiem.js +1 -5
- package/server/libs/dkdt.js +1 -6
- package/server/libs/dknphep.js +1 -7
- package/server/libs/dktk.js +1 -4
- package/server/libs/dktt.js +1 -8
- package/server/libs/dkvt.js +1 -9
- package/server/libs/dkvtnpp.js +1 -7
- package/server/libs/dkvttt.js +1 -7
- package/server/libs/dncn.js +1 -6
- package/server/libs/dntk.js +1 -4
- package/server/libs/dntt.js +1 -6
- package/server/libs/docs.js +1 -452
- package/server/libs/dstkcn.js +1 -1
- package/server/libs/dstktt.js +1 -1
- package/server/libs/dtbanletheonpp.js +1 -17
- package/server/libs/dtbanletheosp.js +1 -15
- package/server/libs/dtbanletheospnpp.js +1 -15
- package/server/libs/email.js +1 -3
- package/server/libs/excel.js +1 -2
- package/server/libs/getGiaban.js +1 -67
- package/server/libs/getGiabanAsync.js +1 -1
- package/server/libs/getNotifies.js +1 -1
- package/server/libs/htmlReport.js +1 -9
- package/server/libs/initDatabase.js +1 -9
- package/server/libs/invoiceEasy.js +1 -109
- package/server/libs/invoiceViettel.js +1 -29
- package/server/libs/invoiceVnpt.js +1 -22
- package/server/libs/kpistatus.js +1 -32
- package/server/libs/load-template.js +1 -3
- package/server/libs/mailmanagement.js +1 -13
- package/server/libs/mongooseDeletePost.js +1 -6
- package/server/libs/mongooseLeanId.js +1 -1
- package/server/libs/mongoosePatch.js +1 -8
- package/server/libs/onepay-payment.js +1 -4
- package/server/libs/optimizeBookkeeping.js +1 -14
- package/server/libs/parse-template.js +1 -5
- package/server/libs/permission.js +1 -51
- package/server/libs/phanbokh.js +1 -3
- package/server/libs/post-book.js +1 -23
- package/server/libs/post-socai.js +1 -25
- package/server/libs/post-sokho.js +1 -27
- package/server/libs/prototypes.js +1 -29
- package/server/libs/psdt.js +1 -1
- package/server/libs/pskh.js +1 -1
- package/server/libs/pstk.js +1 -1
- package/server/libs/redis-cache.js +1 -17
- package/server/libs/restore.js +1 -1
- package/server/libs/schedule.js +1 -18
- package/server/libs/sessionContext.js +2 -14
- package/server/libs/textReport.js +1 -3
- package/server/libs/thnxt.js +1 -9
- package/server/libs/thnxtnpp.js +1 -9
- package/server/libs/thnxttt.js +1 -8
- package/server/libs/tinhGt.js +1 -7
- package/server/libs/tinhGtCapnhatPNK.js +1 -7
- package/server/libs/tinhGtPhanboHeSo.js +1 -12
- package/server/libs/tinhGtPhanboSltp.js +1 -10
- package/server/libs/tinhGtPhanboYtcp.js +1 -11
- package/server/libs/tinhGtSltk.js +1 -9
- package/server/libs/tinhGtThcppstk.js +1 -10
- package/server/libs/tinhGtTrucTiep.js +1 -7
- package/server/libs/tinhGtXoa.js +1 -3
- package/server/libs/tinhgiatb.js +1 -38
- package/server/libs/tinhgiatb1vt.js +1 -5
- package/server/libs/tinhhoahong.js +1 -64
- package/server/libs/tinhhoahongnpp.js +1 -46
- package/server/libs/tinhkhauhao1ts.js +1 -12
- package/server/libs/tinhkhauhaots.js +1 -8
- package/server/libs/tuoinophaithu.js +1 -10
- package/server/libs/tuoinophaitra.js +1 -11
- package/server/libs/utils.js +1 -78
- package/server/libs/validate.js +1 -4
- package/server/libs/validator-acc-cust.js +1 -1
- package/server/libs/validator-account.js +1 -4
- package/server/libs/validator-vt.js +1 -2
- package/server/libs/validator.js +1 -11
- package/server/libs/vsocai.js +1 -8
- package/server/models/account.js +1 -7
- package/server/models/afflink.js +1 -2
- package/server/models/app.js +1 -15
- package/server/models/approve.js +1 -93
- package/server/models/assabcihandler.js +1 -35
- package/server/models/assbank.js +1 -19
- package/server/models/assbooking.js +1 -4
- package/server/models/assbuy.js +1 -3
- package/server/models/asscashwithdraw.js +1 -4
- package/server/models/assfindhash.js +1 -2
- package/server/models/assinvestment.js +1 -13
- package/server/models/assissue.js +1 -2
- package/server/models/asskey.js +1 -15
- package/server/models/assneedtobuy.js +1 -6
- package/server/models/assperiod.js +1 -7
- package/server/models/assproduct.js +1 -13
- package/server/models/assprofitsharing.js +1 -4
- package/server/models/assreceiver.js +1 -2
- package/server/models/assrequest.js +1 -11
- package/server/models/asssell.js +1 -7
- package/server/models/asstransaction.js +1 -3
- package/server/models/asstransfer.js +1 -4
- package/server/models/assuser_identity.js +1 -4
- package/server/models/asswithdraw.js +1 -4
- package/server/models/attend.js +1 -2
- package/server/models/banggiaban.js +1 -8
- package/server/models/bangtinhluong.js +1 -6
- package/server/models/base.js +1 -1
- package/server/models/bds_area.js +1 -4
- package/server/models/bds_block.js +1 -3
- package/server/models/bds_building.js +1 -4
- package/server/models/bds_floor.js +1 -3
- package/server/models/bds_floordetail.js +1 -9
- package/server/models/bds_nhadat.js +1 -11
- package/server/models/bds_nhomnhadat.js +1 -4
- package/server/models/bds_phanloainhadat.js +1 -3
- package/server/models/bg1.js +1 -9
- package/server/models/bg2.js +1 -10
- package/server/models/cache.js +1 -3
- package/server/models/calllog.js +1 -4
- package/server/models/campaign.js +1 -6
- package/server/models/cart.js +1 -5
- package/server/models/cddiem.js +1 -2
- package/server/models/cddt.js +1 -3
- package/server/models/cdkh.js +1 -5
- package/server/models/cdkhtheongay.js +1 -5
- package/server/models/cdnphep.js +1 -2
- package/server/models/cdtk.js +1 -3
- package/server/models/cdtktheongay.js +1 -3
- package/server/models/cdvt.js +1 -5
- package/server/models/cdvtnpp.js +1 -6
- package/server/models/cdvttheongay.js +1 -5
- package/server/models/chamcong.js +1 -7
- package/server/models/checkin.js +1 -4
- package/server/models/checkinactivity.js +1 -3
- package/server/models/checkinkpi.js +1 -4
- package/server/models/checkinlocation.js +1 -2
- package/server/models/chitieukpi.js +1 -3
- package/server/models/chudethaoluan.js +1 -3
- package/server/models/ckgtluong.js +1 -2
- package/server/models/colleague.js +1 -2
- package/server/models/comment.js +1 -4
- package/server/models/congdoansx.js +1 -4
- package/server/models/congtacvien.js +1 -4
- package/server/models/congthuctinhgiaban.js +1 -8
- package/server/models/consultant.js +1 -4
- package/server/models/contract.js +1 -6
- package/server/models/counter.js +1 -2
- package/server/models/ctds.js +1 -5
- package/server/models/ctds2.js +1 -6
- package/server/models/currency.js +1 -3
- package/server/models/customer.js +1 -31
- package/server/models/databanle.js +1 -8
- package/server/models/datlich.js +1 -4
- package/server/models/department.js +1 -4
- package/server/models/dh2.js +1 -20
- package/server/models/diagram.js +1 -2
- package/server/models/dinhmucsx.js +1 -8
- package/server/models/dkhoc.js +1 -6
- package/server/models/dknphep.js +1 -2
- package/server/models/dmban.js +1 -4
- package/server/models/dmbp.js +1 -12
- package/server/models/dmca.js +1 -2
- package/server/models/dmchietkhau.js +1 -9
- package/server/models/dmchietkhauhd.js +1 -20
- package/server/models/dmcpmh.js +1 -2
- package/server/models/dmdiemthuong.js +1 -5
- package/server/models/dmdoi.js +1 -4
- package/server/models/dmdoituongdanhgia.js +1 -2
- package/server/models/dmdt.js +1 -8
- package/server/models/dmdvt.js +1 -3
- package/server/models/dmgiaban.js +1 -9
- package/server/models/dmgiamua.js +1 -5
- package/server/models/dmgiathitruong.js +1 -5
- package/server/models/dmgiathitruong_ngay.js +1 -2
- package/server/models/dmgiathitruong_theodoi.js +1 -2
- package/server/models/dmhoahonghd.js +1 -9
- package/server/models/dmhoahongnpp.js +1 -9
- package/server/models/dmkc.js +1 -3
- package/server/models/dmkho.js +1 -6
- package/server/models/dmkhuyenmai.js +1 -9
- package/server/models/dmkhuyenmaihd.js +1 -11
- package/server/models/dmletet.js +1 -2
- package/server/models/dmlo.js +1 -4
- package/server/models/dmloaicong.js +1 -4
- package/server/models/dmloaitask.js +1 -2
- package/server/models/dmloaits.js +1 -2
- package/server/models/dmnckkm.js +1 -4
- package/server/models/dmnghiepvu.js +1 -4
- package/server/models/dmnguonvon.js +1 -2
- package/server/models/dmnhnv.js +1 -4
- package/server/models/dmnv.js +1 -17
- package/server/models/dmnvt.js +1 -9
- package/server/models/dmphatdichvu.js +1 -5
- package/server/models/dmphi.js +1 -3
- package/server/models/dmqct.js +1 -3
- package/server/models/dmqddvt.js +1 -3
- package/server/models/dmtanggiamts.js +1 -3
- package/server/models/dmto.js +1 -4
- package/server/models/dmtt.js +1 -6
- package/server/models/dmvt.js +1 -17
- package/server/models/dmyt.js +1 -4
- package/server/models/dn0.js +1 -13
- package/server/models/dnm.js +1 -11
- package/server/models/dokho.js +1 -2
- package/server/models/domain.js +1 -2
- package/server/models/dvcs.js +1 -3
- package/server/models/ecomcategories.js +1 -3
- package/server/models/ecomcategories_cty.js +1 -3
- package/server/models/ecomproductlines.js +1 -2
- package/server/models/ecompromotion_flashsales.js +1 -2
- package/server/models/ecompromotion_freeships.js +1 -2
- package/server/models/email.js +1 -2
- package/server/models/endpoint.js +1 -1
- package/server/models/events.js +1 -3
- package/server/models/evoucher.js +1 -5
- package/server/models/experiencejourney.js +1 -2
- package/server/models/experiencejourneydata.js +1 -4
- package/server/models/experiencejourneypersona.js +1 -3
- package/server/models/experiencejourneystage.js +1 -2
- package/server/models/exportexceltemplate.js +1 -2
- package/server/models/fbconversation.js +1 -15
- package/server/models/fbmessage.js +1 -2
- package/server/models/fbpage.js +1 -2
- package/server/models/fbpost.js +1 -2
- package/server/models/fieldright.js +1 -2
- package/server/models/file.js +1 -4
- package/server/models/financialroadmap.js +1 -3
- package/server/models/flow.js +1 -2
- package/server/models/flowdata.js +1 -3
- package/server/models/folder.js +1 -4
- package/server/models/follow.js +1 -2
- package/server/models/form.js +1 -3
- package/server/models/forminfo.js +1 -5
- package/server/models/formvalue.js +1 -3
- package/server/models/giaoca.js +1 -4
- package/server/models/giatb.js +1 -3
- package/server/models/group.js +1 -11
- package/server/models/gt_ctgt.js +1 -4
- package/server/models/gt_hspb.js +1 -3
- package/server/models/gt_sltk.js +1 -3
- package/server/models/gt_thcppstk.js +1 -3
- package/server/models/hanmucton.js +1 -4
- package/server/models/hd1.js +1 -11
- package/server/models/hd2.js +1 -27
- package/server/models/hd3.js +1 -18
- package/server/models/hd4.js +1 -13
- package/server/models/hd7.js +1 -17
- package/server/models/hd8.js +1 -12
- package/server/models/hde.js +1 -11
- package/server/models/hlink.js +1 -2
- package/server/models/hlinkvalue.js +1 -2
- package/server/models/hmcn.js +1 -3
- package/server/models/hmcnct.js +1 -2
- package/server/models/hspbts.js +1 -4
- package/server/models/htl.js +1 -13
- package/server/models/importexceltemplate.js +1 -2
- package/server/models/introducebonus.js +1 -4
- package/server/models/introducecode.js +1 -3
- package/server/models/introducer.js +1 -4
- package/server/models/kbbtpb.js +1 -7
- package/server/models/kbmPttct.js +1 -4
- package/server/models/kbmTkgtgt.js +1 -5
- package/server/models/kbm_bcdkt.js +1 -4
- package/server/models/kbm_kqhdkd.js +1 -3
- package/server/models/kbm_lcttgt.js +1 -5
- package/server/models/kbm_lctttt.js +1 -4
- package/server/models/kbm_pttct.js +1 -4
- package/server/models/kbm_tkgtgt.js +1 -5
- package/server/models/kbmbcdkt.js +1 -4
- package/server/models/kbmbcqt.js +1 -4
- package/server/models/kbmkqhdkd.js +1 -3
- package/server/models/kbmlcttgt.js +1 -6
- package/server/models/kbmlctttt.js +1 -4
- package/server/models/kbmtmbctc.js +1 -4
- package/server/models/kehoachdtcp.js +1 -3
- package/server/models/kehoachmh.js +1 -8
- package/server/models/keyresult.js +1 -7
- package/server/models/khunghangthanhvien.js +1 -3
- package/server/models/label.js +1 -2
- package/server/models/labelinfo.js +1 -2
- package/server/models/lenhcapphat.js +1 -8
- package/server/models/lenhsx.js +1 -8
- package/server/models/lienhe.js +1 -4
- package/server/models/like_module.js +1 -2
- package/server/models/link.js +1 -2
- package/server/models/loaidiem.js +1 -2
- package/server/models/lock.js +1 -2
- package/server/models/log.js +1 -5
- package/server/models/mailaccount.js +1 -3
- package/server/models/mailgroup.js +1 -3
- package/server/models/mailreceived.js +1 -2
- package/server/models/mailschedule.js +1 -2
- package/server/models/mailsent.js +1 -2
- package/server/models/mailtemplate.js +1 -2
- package/server/models/maudanhgia.js +1 -2
- package/server/models/menuinfo.js +1 -2
- package/server/models/message.js +1 -8
- package/server/models/message2.js +1 -4
- package/server/models/message2setting.js +1 -3
- package/server/models/moduleinfo.js +1 -4
- package/server/models/momo.js +1 -17
- package/server/models/news.js +1 -3
- package/server/models/newsfeed.js +1 -4
- package/server/models/note.js +1 -2
- package/server/models/notification.js +1 -7
- package/server/models/okr.js +1 -4
- package/server/models/okrdiagram.js +1 -3
- package/server/models/onepay.js +1 -24
- package/server/models/opportunity.js +1 -4
- package/server/models/options.js +1 -2
- package/server/models/originimportid.js +1 -1
- package/server/models/otp.js +1 -1
- package/server/models/parameter.js +1 -2
- package/server/models/participant.js +1 -20
- package/server/models/partner.js +1 -1
- package/server/models/payload.js +1 -1
- package/server/models/pbl.js +1 -16
- package/server/models/pc0.js +1 -13
- package/server/models/pc1.js +1 -14
- package/server/models/pc2.js +1 -13
- package/server/models/pc3.js +1 -13
- package/server/models/pc5.js +1 -8
- package/server/models/pc6.js +1 -14
- package/server/models/pcl.js +1 -6
- package/server/models/pdn.js +1 -9
- package/server/models/pdx.js +1 -9
- package/server/models/pgh.js +1 -5
- package/server/models/phieudanhgia.js +1 -3
- package/server/models/pht.js +1 -8
- package/server/models/phucap.js +1 -4
- package/server/models/pkc.js +1 -6
- package/server/models/pkh.js +1 -6
- package/server/models/pkk.js +1 -10
- package/server/models/pkt.js +1 -12
- package/server/models/pn1.js +1 -17
- package/server/models/pn2.js +1 -11
- package/server/models/pn3.js +1 -13
- package/server/models/pn5.js +1 -14
- package/server/models/pn6.js +1 -14
- package/server/models/pn9.js +1 -17
- package/server/models/pnc.js +1 -10
- package/server/models/pnh.js +1 -12
- package/server/models/pnk.js +1 -10
- package/server/models/po1.js +1 -19
- package/server/models/ppb.js +1 -6
- package/server/models/profile.js +1 -4
- package/server/models/pt1.js +1 -12
- package/server/models/pt5.js +1 -8
- package/server/models/ptl.js +1 -6
- package/server/models/ptthanhtoan.js +1 -6
- package/server/models/purchase_contract.js +1 -17
- package/server/models/pxc.js +1 -9
- package/server/models/pxh.js +1 -12
- package/server/models/pxk.js +1 -10
- package/server/models/qts.js +1 -14
- package/server/models/qts_dieuchinh.js +1 -3
- package/server/models/qts_dieuchuyen.js +1 -4
- package/server/models/quanhuyen.js +1 -2
- package/server/models/reason.js +1 -2
- package/server/models/receivedinvoice.js +1 -2
- package/server/models/reportinfo.js +1 -5
- package/server/models/right.js +1 -4
- package/server/models/rpt.js +1 -2
- package/server/models/rptform.js +1 -5
- package/server/models/rptobject.js +1 -2
- package/server/models/sale_contract.js +1 -9
- package/server/models/schedule.js +1 -16
- package/server/models/schedule_log.js +1 -2
- package/server/models/service.js +1 -4
- package/server/models/shipbook.js +1 -12
- package/server/models/shortcut.js +1 -2
- package/server/models/smsaccount.js +1 -10
- package/server/models/smssend.js +1 -2
- package/server/models/so1.js +1 -22
- package/server/models/so2.js +1 -10
- package/server/models/so3.js +1 -9
- package/server/models/so5.js +1 -15
- package/server/models/so9.js +1 -19
- package/server/models/socai.js +1 -26
- package/server/models/socainpp.js +1 -18
- package/server/models/socaitc.js +1 -6
- package/server/models/socaitmp.js +1 -16
- package/server/models/socaitt.js +1 -4
- package/server/models/sodiemthuong.js +1 -4
- package/server/models/sokho.js +1 -28
- package/server/models/sokhocapphat.js +1 -18
- package/server/models/sokhokhongton.js +1 -19
- package/server/models/sokhonpp.js +1 -19
- package/server/models/sokhotc.js +1 -8
- package/server/models/sokhott.js +1 -18
- package/server/models/sophanbokh.js +1 -3
- package/server/models/sosanxuat.js +1 -5
- package/server/models/sotinhkh.js +1 -2
- package/server/models/spdd_ck.js +1 -3
- package/server/models/spdd_dk.js +1 -3
- package/server/models/step.js +1 -2
- package/server/models/strategicdiagram.js +1 -3
- package/server/models/strategicgoal.js +1 -4
- package/server/models/strategickpi.js +1 -6
- package/server/models/strategicobjective.js +1 -5
- package/server/models/strategicplan.js +1 -5
- package/server/models/subscribe.js +1 -2
- package/server/models/support.js +1 -2
- package/server/models/synctime.js +1 -2
- package/server/models/sysconfig.js +1 -2
- package/server/models/sysgroup.js +1 -2
- package/server/models/tableinfo.js +1 -3
- package/server/models/task.js +1 -9
- package/server/models/taskreg.js +1 -4
- package/server/models/tc.js +1 -2
- package/server/models/tdttco.js +1 -8
- package/server/models/tdttco_tt.js +1 -5
- package/server/models/tdttno.js +1 -8
- package/server/models/tdttno_tt.js +1 -5
- package/server/models/templaterpt.js +1 -2
- package/server/models/templatestore.js +1 -3
- package/server/models/templatevoucher.js +1 -3
- package/server/models/tinhthanh.js +1 -2
- package/server/models/tokens.js +1 -2
- package/server/models/tontucthoi.js +1 -9
- package/server/models/trangthai.js +1 -4
- package/server/models/trangthaiapp.js +1 -4
- package/server/models/transaction.js +1 -16
- package/server/models/trialinfo.js +1 -2
- package/server/models/user.js +1 -38
- package/server/models/usergroup.js +1 -7
- package/server/models/vanchuyen.js +1 -12
- package/server/models/vat.js +1 -3
- package/server/models/vatra.js +1 -6
- package/server/models/vatvao.js +1 -6
- package/server/models/versioninfo.js +1 -2
- package/server/models/vietqrbanks.js +1 -2
- package/server/models/vsocai.js +1 -6
- package/server/models/waitevent.js +1 -2
- package/server/models/wallet.js +1 -8
- package/server/models/warranty.js +1 -3
- package/server/models/warrantyclaim.js +1 -2
- package/server/models/warrantypolicy.js +1 -1
- package/server/models/xaphuong.js +1 -2
- package/server/models/xhd.js +1 -10
- package/server/models/ytdd_ck.js +1 -4
- package/server/models/ytdd_dk.js +1 -4
- package/server/models/zalo.js +1 -17
- package/server/modules/lists/bg-cddiem.js +1 -6
- package/server/modules/lists/bg-cddt.js +1 -7
- package/server/modules/lists/bg-cdkh.js +1 -11
- package/server/modules/lists/bg-cdnphep.js +1 -6
- package/server/modules/lists/bg-cdtk.js +1 -9
- package/server/modules/lists/bg-cdvt.js +1 -8
- package/server/modules/lists/bg-cdvtnpp.js +1 -8
- package/server/modules/lists/ls-account.js +1 -4
- package/server/modules/lists/ls-afflink.js +1 -3
- package/server/modules/lists/ls-approve.js +1 -4
- package/server/modules/lists/ls-assabcihandler.js +1 -3
- package/server/modules/lists/ls-assbank.js +1 -3
- package/server/modules/lists/ls-assbooking.js +1 -20
- package/server/modules/lists/ls-assbuy.js +1 -8
- package/server/modules/lists/ls-asscashwithdraw.js +1 -8
- package/server/modules/lists/ls-assinvestment.js +1 -31
- package/server/modules/lists/ls-assissue.js +1 -3
- package/server/modules/lists/ls-asskey.js +1 -41
- package/server/modules/lists/ls-assneedtobuy.js +1 -10
- package/server/modules/lists/ls-assperiod.js +1 -19
- package/server/modules/lists/ls-assproduct.js +1 -9
- package/server/modules/lists/ls-assprofitsharing.js +1 -8
- package/server/modules/lists/ls-assreceiver.js +1 -3
- package/server/modules/lists/ls-assrequest.js +1 -4
- package/server/modules/lists/ls-asssell.js +1 -13
- package/server/modules/lists/ls-asstransaction.js +1 -3
- package/server/modules/lists/ls-asstransfer.js +1 -3
- package/server/modules/lists/ls-assuser_identity.js +1 -1
- package/server/modules/lists/ls-asswithdraw.js +1 -12
- package/server/modules/lists/ls-bangtinhluong.js +1 -2
- package/server/modules/lists/ls-bds_area.js +1 -3
- package/server/modules/lists/ls-bds_block.js +1 -1
- package/server/modules/lists/ls-bds_building.js +1 -3
- package/server/modules/lists/ls-bds_dmnhbds.js +1 -6
- package/server/modules/lists/ls-bds_floor.js +1 -2
- package/server/modules/lists/ls-bds_floordetail.js +1 -19
- package/server/modules/lists/ls-bds_nhadat.js +1 -16
- package/server/modules/lists/ls-bds_nhomnhadat.js +1 -1
- package/server/modules/lists/ls-bds_phanloainhadat.js +1 -1
- package/server/modules/lists/ls-calllog.js +1 -4
- package/server/modules/lists/ls-campaign.js +1 -1
- package/server/modules/lists/ls-cart.js +1 -14
- package/server/modules/lists/ls-chamcong.js +1 -3
- package/server/modules/lists/ls-checkin.js +1 -12
- package/server/modules/lists/ls-checkinactivity.js +1 -8
- package/server/modules/lists/ls-checkinkpi.js +1 -3
- package/server/modules/lists/ls-checkinlocation.js +1 -1
- package/server/modules/lists/ls-chitieukpi.js +1 -1
- package/server/modules/lists/ls-chudethaoluan.js +1 -1
- package/server/modules/lists/ls-ckgtluong.js +1 -1
- package/server/modules/lists/ls-comment.js +1 -9
- package/server/modules/lists/ls-congdoansx.js +1 -3
- package/server/modules/lists/ls-congtacvien.js +1 -5
- package/server/modules/lists/ls-consultant.js +1 -2
- package/server/modules/lists/ls-contract.js +1 -7
- package/server/modules/lists/ls-ctds.js +1 -4
- package/server/modules/lists/ls-ctds2.js +1 -4
- package/server/modules/lists/ls-currency.js +1 -1
- package/server/modules/lists/ls-customer.js +1 -21
- package/server/modules/lists/ls-datlich.js +1 -9
- package/server/modules/lists/ls-dckhauhaots.js +1 -3
- package/server/modules/lists/ls-department.js +1 -3
- package/server/modules/lists/ls-diagram.js +1 -1
- package/server/modules/lists/ls-dkhoc.js +1 -6
- package/server/modules/lists/ls-dknphep.js +1 -1
- package/server/modules/lists/ls-dmban.js +1 -4
- package/server/modules/lists/ls-dmbp.js +1 -7
- package/server/modules/lists/ls-dmca.js +1 -1
- package/server/modules/lists/ls-dmchietkhau.js +1 -19
- package/server/modules/lists/ls-dmchietkhauhd.js +1 -4
- package/server/modules/lists/ls-dmchucvu.js +1 -2
- package/server/modules/lists/ls-dmcpmh.js +1 -1
- package/server/modules/lists/ls-dmdiemthuong.js +1 -4
- package/server/modules/lists/ls-dmdoi.js +1 -4
- package/server/modules/lists/ls-dmdoituongdanhgia.js +1 -1
- package/server/modules/lists/ls-dmdt.js +1 -11
- package/server/modules/lists/ls-dmdvt.js +1 -2
- package/server/modules/lists/ls-dmgiaban.js +1 -4
- package/server/modules/lists/ls-dmgiamua.js +1 -4
- package/server/modules/lists/ls-dmgiathitruong.js +1 -15
- package/server/modules/lists/ls-dmgiathitruong_ngay.js +1 -2
- package/server/modules/lists/ls-dmgiathitruong_theodoi.js +1 -1
- package/server/modules/lists/ls-dmhoahonghd.js +1 -1
- package/server/modules/lists/ls-dmhoahongnpp.js +1 -1
- package/server/modules/lists/ls-dmkc.js +1 -3
- package/server/modules/lists/ls-dmkho.js +1 -1
- package/server/modules/lists/ls-dmkhuyenmai.js +1 -5
- package/server/modules/lists/ls-dmkhuyenmaihd.js +1 -3
- package/server/modules/lists/ls-dmletet.js +1 -1
- package/server/modules/lists/ls-dmlo.js +1 -1
- package/server/modules/lists/ls-dmloaicong.js +1 -1
- package/server/modules/lists/ls-dmloaits.js +1 -1
- package/server/modules/lists/ls-dmnckkm.js +1 -7
- package/server/modules/lists/ls-dmnghiepvu.js +1 -1
- package/server/modules/lists/ls-dmnguonvon.js +1 -1
- package/server/modules/lists/ls-dmnhnv.js +1 -6
- package/server/modules/lists/ls-dmnhtask.js +1 -5
- package/server/modules/lists/ls-dmnkh.js +1 -6
- package/server/modules/lists/ls-dmntt.js +1 -6
- package/server/modules/lists/ls-dmnv.js +1 -17
- package/server/modules/lists/ls-dmnvt.js +1 -8
- package/server/modules/lists/ls-dmphatdichvu.js +1 -3
- package/server/modules/lists/ls-dmphi.js +1 -6
- package/server/modules/lists/ls-dmqct.js +1 -2
- package/server/modules/lists/ls-dmqddvt.js +1 -3
- package/server/modules/lists/ls-dmtanggiamts.js +1 -1
- package/server/modules/lists/ls-dmto.js +1 -5
- package/server/modules/lists/ls-dmtt.js +1 -7
- package/server/modules/lists/ls-dmvt.js +1 -68
- package/server/modules/lists/ls-dmyt.js +1 -1
- package/server/modules/lists/ls-dokho.js +1 -1
- package/server/modules/lists/ls-dvcs.js +1 -1
- package/server/modules/lists/ls-ecomcategories.js +1 -5
- package/server/modules/lists/ls-ecomcategories_cty.js +1 -5
- package/server/modules/lists/ls-email.js +1 -4
- package/server/modules/lists/ls-events.js +1 -3
- package/server/modules/lists/ls-evoucher.js +1 -3
- package/server/modules/lists/ls-experiencejourney.js +1 -1
- package/server/modules/lists/ls-experiencejourneydata.js +1 -3
- package/server/modules/lists/ls-experiencejourneypersona.js +1 -4
- package/server/modules/lists/ls-experiencejourneystage.js +1 -1
- package/server/modules/lists/ls-fbconversation.js +1 -2
- package/server/modules/lists/ls-fbmessage.js +1 -2
- package/server/modules/lists/ls-fbpage.js +1 -11
- package/server/modules/lists/ls-fbpost.js +1 -2
- package/server/modules/lists/ls-file.js +1 -31
- package/server/modules/lists/ls-financialroadmap.js +1 -3
- package/server/modules/lists/ls-flow.js +1 -6
- package/server/modules/lists/ls-flowdata.js +1 -1
- package/server/modules/lists/ls-folder.js +1 -1
- package/server/modules/lists/ls-form.js +1 -1
- package/server/modules/lists/ls-forminfo.js +1 -1
- package/server/modules/lists/ls-formvalue.js +1 -1
- package/server/modules/lists/ls-giaoca.js +1 -4
- package/server/modules/lists/ls-group.js +1 -5
- package/server/modules/lists/ls-hlink.js +1 -1
- package/server/modules/lists/ls-hlinkvalue.js +1 -1
- package/server/modules/lists/ls-hmcn.js +1 -2
- package/server/modules/lists/ls-hspbts.js +1 -3
- package/server/modules/lists/ls-introducebonus.js +1 -4
- package/server/modules/lists/ls-introducecode.js +1 -10
- package/server/modules/lists/ls-introducer.js +1 -20
- package/server/modules/lists/ls-kbm-bcdkt.js +1 -1
- package/server/modules/lists/ls-kbm-bcqt.js +1 -5
- package/server/modules/lists/ls-kbm-kqhdkd.js +1 -1
- package/server/modules/lists/ls-kbm-lcttgt.js +1 -1
- package/server/modules/lists/ls-kbm-lctttt.js +1 -1
- package/server/modules/lists/ls-kbm-pttct.js +1 -3
- package/server/modules/lists/ls-kbm-tkgtgt.js +1 -3
- package/server/modules/lists/ls-kbm-tmbctc.js +1 -3
- package/server/modules/lists/ls-kehoachdtcp.js +1 -4
- package/server/modules/lists/ls-keyresult.js +1 -7
- package/server/modules/lists/ls-khunghangthanhvien.js +1 -1
- package/server/modules/lists/ls-kygui.js +1 -19
- package/server/modules/lists/ls-label.js +1 -1
- package/server/modules/lists/ls-lienhe.js +1 -4
- package/server/modules/lists/ls-like-module.js +1 -1
- package/server/modules/lists/ls-link.js +1 -1
- package/server/modules/lists/ls-loaidiem.js +1 -1
- package/server/modules/lists/ls-lock.js +1 -1
- package/server/modules/lists/ls-log.js +1 -3
- package/server/modules/lists/ls-mailaccount.js +1 -5
- package/server/modules/lists/ls-mailreceived.js +1 -5
- package/server/modules/lists/ls-mailschedule.js +1 -7
- package/server/modules/lists/ls-mailsent.js +1 -4
- package/server/modules/lists/ls-mailtemplate.js +1 -4
- package/server/modules/lists/ls-maudanhgia.js +1 -3
- package/server/modules/lists/ls-message2.js +1 -8
- package/server/modules/lists/ls-message2setting.js +1 -5
- package/server/modules/lists/ls-news.js +1 -7
- package/server/modules/lists/ls-newsfeed.js +1 -4
- package/server/modules/lists/ls-note.js +1 -6
- package/server/modules/lists/ls-okr.js +1 -5
- package/server/modules/lists/ls-okrdiagram.js +1 -1
- package/server/modules/lists/ls-opportunity.js +1 -5
- package/server/modules/lists/ls-options.js +1 -4
- package/server/modules/lists/ls-parameter.js +1 -3
- package/server/modules/lists/ls-participant.js +1 -10
- package/server/modules/lists/ls-phieudanhgia.js +1 -7
- package/server/modules/lists/ls-phucap.js +1 -2
- package/server/modules/lists/ls-profile.js +1 -1
- package/server/modules/lists/ls-ptthanhtoan.js +1 -3
- package/server/modules/lists/ls-qts-dieuchinh.js +1 -2
- package/server/modules/lists/ls-qts-dieuchuyen.js +1 -8
- package/server/modules/lists/ls-reason.js +1 -1
- package/server/modules/lists/ls-rpt.js +1 -5
- package/server/modules/lists/ls-rptform.js +1 -4
- package/server/modules/lists/ls-service.js +1 -3
- package/server/modules/lists/ls-shortcut.js +1 -1
- package/server/modules/lists/ls-smsaccount.js +1 -1
- package/server/modules/lists/ls-smssend.js +1 -3
- package/server/modules/lists/ls-sosanxuat.js +1 -4
- package/server/modules/lists/ls-step.js +1 -1
- package/server/modules/lists/ls-strategicdiagram.js +1 -1
- package/server/modules/lists/ls-strategicgoal.js +1 -3
- package/server/modules/lists/ls-strategickpi.js +1 -7
- package/server/modules/lists/ls-strategicobjective.js +1 -3
- package/server/modules/lists/ls-strategicplan.js +1 -6
- package/server/modules/lists/ls-support.js +1 -3
- package/server/modules/lists/ls-task.js +1 -34
- package/server/modules/lists/ls-taskreg.js +1 -2
- package/server/modules/lists/ls-tc.js +1 -1
- package/server/modules/lists/ls-templaterpt.js +1 -5
- package/server/modules/lists/ls-templatevoucher.js +1 -1
- package/server/modules/lists/ls-tontucthoi.js +1 -3
- package/server/modules/lists/ls-trangthaiapp.js +1 -3
- package/server/modules/lists/ls-transaction.js +1 -4
- package/server/modules/lists/ls-usergroup.js +1 -7
- package/server/modules/lists/ls-vat.js +1 -1
- package/server/modules/lists/ls-vatra.js +1 -5
- package/server/modules/lists/ls-vatvao.js +1 -6
- package/server/modules/lists/ls-waitevent.js +1 -1
- package/server/modules/lists/ls-warranty.js +1 -4
- package/server/modules/lists/ls_hanmucton.js +1 -3
- package/server/modules/lists/ls_hspb.js +1 -4
- package/server/modules/lists/ls_spdd_ck.js +1 -3
- package/server/modules/lists/ls_spdd_dk.js +1 -3
- package/server/modules/lists/ls_ytdd_ck.js +1 -4
- package/server/modules/lists/ls_ytdd_dk.js +1 -4
- package/server/modules/lists/sys-attend.js +1 -4
- package/server/modules/lists/sys-follow.js +1 -4
- package/server/modules/lists/sys-right.js +1 -2
- package/server/modules/public/app.js +1 -4
- package/server/modules/public/approve.js +1 -37
- package/server/modules/public/callin.js +1 -7
- package/server/modules/public/comment.js +1 -5
- package/server/modules/public/dmnvt.js +1 -4
- package/server/modules/public/dmvt.js +1 -9
- package/server/modules/public/file.js +1 -11
- package/server/modules/public/form.js +1 -7
- package/server/modules/public/forminfo.js +1 -1
- package/server/modules/public/group.js +1 -4
- package/server/modules/public/hlink.js +1 -3
- package/server/modules/public/introducecode.js +1 -1
- package/server/modules/public/listinfo.js +1 -1
- package/server/modules/public/media-webhook.js +1 -1
- package/server/modules/public/partner.js +1 -1
- package/server/modules/public/paymentCallback.js +1 -32
- package/server/modules/public/province.js +1 -1
- package/server/modules/public/ptthanhtoan.js +1 -4
- package/server/modules/public/subscribe.js +1 -30
- package/server/modules/public/support.js +1 -3
- package/server/modules/public/tableinfo.js +1 -1
- package/server/modules/public/trialinfo.js +1 -4
- package/server/modules/public/versioninfo.js +1 -1
- package/server/modules/reports/calc-tinhgiatb.js +1 -6
- package/server/modules/reports/calc-tinhgiathanh.js +1 -6
- package/server/modules/reports/calc-tinhkhauhaots.js +1 -3
- package/server/modules/reports/calc-tinhluong.js +1 -37
- package/server/modules/reports/rp-analyzedata.js +1 -6
- package/server/modules/reports/rp-assbonus.js +1 -4
- package/server/modules/reports/rp-assinterest.js +1 -8
- package/server/modules/reports/rp-assproductowners.js +1 -3
- package/server/modules/reports/rp-asssupply.js +1 -1
- package/server/modules/reports/rp-asstransferlog.js +1 -10
- package/server/modules/reports/rp-banggiatb.js +1 -3
- package/server/modules/reports/rp-bangtinhkhauhao.js +1 -6
- package/server/modules/reports/rp-baocaokhachhang.js +1 -6
- package/server/modules/reports/rp-bcdkt.js +1 -11
- package/server/modules/reports/rp-bcintroducebonus.js +1 -4
- package/server/modules/reports/rp-bckhtiemnang.js +1 -3
- package/server/modules/reports/rp-bcqt.js +1 -85
- package/server/modules/reports/rp-bkct.js +1 -13
- package/server/modules/reports/rp-bkshipbook.js +1 -8
- package/server/modules/reports/rp-bkvanchuyen.js +1 -8
- package/server/modules/reports/rp-bkvatra.js +1 -7
- package/server/modules/reports/rp-bkvatvao.js +1 -7
- package/server/modules/reports/rp-capnhatsocaitc.js +1 -4
- package/server/modules/reports/rp-cdpsdiem.js +1 -4
- package/server/modules/reports/rp-cdpsdt.js +1 -5
- package/server/modules/reports/rp-cdpskh.js +1 -7
- package/server/modules/reports/rp-cdpsnphep.js +1 -3
- package/server/modules/reports/rp-cdpstk.js +1 -4
- package/server/modules/reports/rp-chitietchitientheohoadon.js +1 -12
- package/server/modules/reports/rp-chitiettaisan.js +1 -13
- package/server/modules/reports/rp-chitietthutientheohoadon.js +1 -13
- package/server/modules/reports/rp-ckcn.js +1 -3
- package/server/modules/reports/rp-ckdiem.js +1 -2
- package/server/modules/reports/rp-cktk.js +1 -3
- package/server/modules/reports/rp-ckvt.js +1 -10
- package/server/modules/reports/rp-ckvttheokho.js +1 -4
- package/server/modules/reports/rp-ckvttheotg.js +1 -4
- package/server/modules/reports/rp-ckvttt.js +1 -3
- package/server/modules/reports/rp-congnophaithutheotuoino.js +1 -3
- package/server/modules/reports/rp-congnophaitratheotuoino.js +1 -3
- package/server/modules/reports/rp-congnosapthu.js +1 -4
- package/server/modules/reports/rp-congnosaptra.js +1 -4
- package/server/modules/reports/rp-congviectheobp.js +1 -9
- package/server/modules/reports/rp-congviectheodt.js +1 -8
- package/server/modules/reports/rp-congviectheokh.js +1 -8
- package/server/modules/reports/rp-congviectheonv.js +1 -9
- package/server/modules/reports/rp-congviectheotimeline.js +1 -6
- package/server/modules/reports/rp-ctbanle.js +1 -15
- package/server/modules/reports/rp-ctbanle2.js +1 -20
- package/server/modules/reports/rp-ctbanlectv.js +1 -20
- package/server/modules/reports/rp-ctbanlenpp.js +1 -24
- package/server/modules/reports/rp-ctdanhgianhanvien.js +1 -8
- package/server/modules/reports/rp-cthangbanbitralai.js +1 -4
- package/server/modules/reports/rp-ctmuahang.js +1 -7
- package/server/modules/reports/rp-cttralaihang.js +1 -4
- package/server/modules/reports/rp-databanle.js +1 -10
- package/server/modules/reports/rp-diemthuong.js +1 -2
- package/server/modules/reports/rp-dkcn.js +1 -3
- package/server/modules/reports/rp-dktk.js +1 -2
- package/server/modules/reports/rp-dsnhanviencm.js +1 -9
- package/server/modules/reports/rp-dsnhanvientb.js +1 -9
- package/server/modules/reports/rp-dtbanlekempk.js +1 -9
- package/server/modules/reports/rp-dtbanletheoct.js +1 -23
- package/server/modules/reports/rp-dtbanletheoctkempk.js +1 -25
- package/server/modules/reports/rp-dtbanletheokh.js +1 -20
- package/server/modules/reports/rp-dtbanletheokhnpp.js +1 -19
- package/server/modules/reports/rp-dtbanletheokho.js +1 -18
- package/server/modules/reports/rp-dtbanletheonam.js +1 -3
- package/server/modules/reports/rp-dtbanletheongay.js +1 -1
- package/server/modules/reports/rp-dtbanletheonpp.js +1 -23
- package/server/modules/reports/rp-dtbanletheonv.js +1 -19
- package/server/modules/reports/rp-dtbanletheoquy.js +1 -3
- package/server/modules/reports/rp-dtbanletheosp.js +1 -8
- package/server/modules/reports/rp-dtbanletheospnpp.js +1 -6
- package/server/modules/reports/rp-dtbanletheothang.js +1 -3
- package/server/modules/reports/rp-dtbanletheothungan.js +1 -12
- package/server/modules/reports/rp-dtbanletheovt.js +1 -2
- package/server/modules/reports/rp-dtbanletheovtnpp.js +1 -2
- package/server/modules/reports/rp-dutoanthuchitheodt.js +1 -4
- package/server/modules/reports/rp-getPXC2PNC.js +1 -8
- package/server/modules/reports/rp-getariseofaccountsbymonth.js +1 -4
- package/server/modules/reports/rp-getbtpb.js +1 -6
- package/server/modules/reports/rp-getcashbycashier.js +1 -7
- package/server/modules/reports/rp-getcschietkhau.js +1 -5
- package/server/modules/reports/rp-getdinhmuc4lenhcp.js +1 -7
- package/server/modules/reports/rp-getdinhmuc4pxk.js +1 -9
- package/server/modules/reports/rp-getdk4pht.js +1 -8
- package/server/modules/reports/rp-getdk4pkc.js +1 -9
- package/server/modules/reports/rp-getdttheoca.js +1 -5
- package/server/modules/reports/rp-getinvoice2pay.js +1 -4
- package/server/modules/reports/rp-getinvoice2receive.js +1 -4
- package/server/modules/reports/rp-getinvoice2return.js +1 -5
- package/server/modules/reports/rp-getinvoice2return_bl.js +1 -6
- package/server/modules/reports/rp-getkehoachmh4lenhcp.js +1 -4
- package/server/modules/reports/rp-getkhauhao.js +1 -7
- package/server/modules/reports/rp-getluong.js +1 -8
- package/server/modules/reports/rp-getluongchuyen.js +1 -5
- package/server/modules/reports/rp-getpn2fee.js +1 -5
- package/server/modules/reports/rp-getpn2return.js +1 -5
- package/server/modules/reports/rp-getthanhpham4pnk.js +1 -7
- package/server/modules/reports/rp-getvc2xhd.js +1 -11
- package/server/modules/reports/rp-gt_cpnvltt.js +1 -6
- package/server/modules/reports/rp-hangbanbitralai.js +1 -5
- package/server/modules/reports/rp-hangthanhvien.js +1 -3
- package/server/modules/reports/rp-hoadonbanhangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoadonmuahangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoahong.js +1 -15
- package/server/modules/reports/rp-kcsns.js +1 -19
- package/server/modules/reports/rp-kgchamcong.js +1 -7
- package/server/modules/reports/rp-khoaso.js +1 -12
- package/server/modules/reports/rp-kiemtrasocaitcvssocai.js +1 -6
- package/server/modules/reports/rp-kqdanhgianhanvien.js +1 -5
- package/server/modules/reports/rp-kqhdkd.js +1 -7
- package/server/modules/reports/rp-lcttgt.js +1 -17
- package/server/modules/reports/rp-lctttt.js +1 -11
- package/server/modules/reports/rp-linkslist.js +1 -4
- package/server/modules/reports/rp-phanbochitienchohoadon.js +1 -11
- package/server/modules/reports/rp-phanbothutienchohoadon.js +1 -10
- package/server/modules/reports/rp-ptbitralai.js +1 -7
- package/server/modules/reports/rp-ptcttct.js +1 -22
- package/server/modules/reports/rp-ptdonhang.js +1 -8
- package/server/modules/reports/rp-pttct.js +1 -49
- package/server/modules/reports/rp-pttctkho.js +1 -32
- package/server/modules/reports/rp-pttctkho2.js +1 -29
- package/server/modules/reports/rp-referredusers.js +1 -1
- package/server/modules/reports/rp-sctbhxh.js +1 -4
- package/server/modules/reports/rp-sctcnkh.js +1 -17
- package/server/modules/reports/rp-sctdiem.js +1 -3
- package/server/modules/reports/rp-sctdt.js +1 -7
- package/server/modules/reports/rp-sctdtcp.js +1 -11
- package/server/modules/reports/rp-sctluong.js +1 -4
- package/server/modules/reports/rp-sctthuetncn.js +1 -4
- package/server/modules/reports/rp-scttk.js +1 -7
- package/server/modules/reports/rp-sctvt.js +1 -5
- package/server/modules/reports/rp-sctvt_sl.js +1 -5
- package/server/modules/reports/rp-sctvtnpp.js +1 -6
- package/server/modules/reports/rp-sctvttt.js +1 -5
- package/server/modules/reports/rp-search.js +1 -4
- package/server/modules/reports/rp-socai.js +1 -6
- package/server/modules/reports/rp-socaitk.js +1 -7
- package/server/modules/reports/rp-sochut.js +1 -7
- package/server/modules/reports/rp-sokho.js +1 -7
- package/server/modules/reports/rp-sokhott.js +1 -5
- package/server/modules/reports/rp-sonkbh.js +1 -5
- package/server/modules/reports/rp-sonkc.js +1 -6
- package/server/modules/reports/rp-sonkct.js +1 -5
- package/server/modules/reports/rp-sonkmh.js +1 -5
- package/server/modules/reports/rp-sonktt.js +1 -5
- package/server/modules/reports/rp-soquy.js +1 -11
- package/server/modules/reports/rp-sosanhkhvatt.js +1 -13
- package/server/modules/reports/rp-sosanhkhvatt2.js +1 -6
- package/server/modules/reports/rp-sotaisan.js +1 -13
- package/server/modules/reports/rp-sotiengui.js +1 -7
- package/server/modules/reports/rp-taodinhmuctudkhoc.js +1 -5
- package/server/modules/reports/rp-thbanhangkempk.js +1 -28
- package/server/modules/reports/rp-thdanhgianhanvien.js +1 -9
- package/server/modules/reports/rp-thgt.js +1 -6
- package/server/modules/reports/rp-thnxt.js +1 -12
- package/server/modules/reports/rp-thnxt_sl.js +1 -9
- package/server/modules/reports/rp-thnxtnpp.js +1 -10
- package/server/modules/reports/rp-thnxttt.js +1 -9
- package/server/modules/reports/rp-tkbanhangtheogioithieu.js +1 -9
- package/server/modules/reports/rp-tkgioithieukh.js +1 -4
- package/server/modules/reports/rp-tkgtgt.js +1 -7
- package/server/modules/reports/rp-tmbctc.js +1 -20
- package/server/modules/reports/rp-tonghopbanhang.js +1 -6
- package/server/modules/reports/rp-tonghopmuahang.js +1 -5
- package/server/modules/reports/rp-tonghoptralaihang.js +1 -5
- package/server/modules/reports/rp-tongquanbanle.js +1 -20
- package/server/modules/reports/rp-tongquanbds.js +1 -3
- package/server/modules/reports/rp-tongquancongty.js +1 -6
- package/server/modules/reports/rp-tongquanctvnpp.js +1 -12
- package/server/modules/reports/rp-tongquannvbh.js +1 -14
- package/server/modules/reports/rp-tongquannvnpp.js +1 -5
- package/server/modules/reports/rp-uoctinhnvl.js +1 -11
- package/server/modules/reports/rp-wallet.js +1 -3
- package/server/modules/reports/rpt-tkdiemtichluy.js +1 -9
- package/server/modules/systems/sys-app.js +1 -30
- package/server/modules/systems/sys-colleague.js +1 -11
- package/server/modules/systems/sys-domain.js +1 -4
- package/server/modules/systems/sys-ecomproductlines.js +1 -1
- package/server/modules/systems/sys-exportexceltemplate.js +1 -4
- package/server/modules/systems/sys-fieldright.js +1 -3
- package/server/modules/systems/sys-importexceltemplate.js +1 -4
- package/server/modules/systems/sys-labelinfo.js +1 -4
- package/server/modules/systems/sys-listinfo.js +1 -10
- package/server/modules/systems/sys-menuinfo.js +1 -4
- package/server/modules/systems/sys-message.js +1 -14
- package/server/modules/systems/sys-moduleinfo.js +1 -4
- package/server/modules/systems/sys-notification.js +1 -8
- package/server/modules/systems/sys-quanhuyen.js +1 -4
- package/server/modules/systems/sys-reportinfo.js +1 -4
- package/server/modules/systems/sys-rptobject.js +1 -3
- package/server/modules/systems/sys-schedule.js +1 -11
- package/server/modules/systems/sys-sysconfig.js +1 -3
- package/server/modules/systems/sys-sysgroup.js +1 -3
- package/server/modules/systems/sys-tableinfo.js +1 -3
- package/server/modules/systems/sys-templatestore.js +1 -5
- package/server/modules/systems/sys-tinhthanh.js +1 -4
- package/server/modules/systems/sys-token.js +1 -3
- package/server/modules/systems/sys-trangthai.js +1 -4
- package/server/modules/systems/sys-trialinfo.js +1 -3
- package/server/modules/systems/sys-user.js +1 -45
- package/server/modules/systems/sys-users.js +1 -10
- package/server/modules/systems/sys-versioninfo.js +1 -3
- package/server/modules/systems/sys-vietqrbanks.js +1 -4
- package/server/modules/systems/sys-xaphuong.js +1 -4
- package/server/modules/vouchers/vo-banggiaban.js +1 -5
- package/server/modules/vouchers/vo-bc1.js +1 -33
- package/server/modules/vouchers/vo-bc5.js +1 -15
- package/server/modules/vouchers/vo-bg1.js +1 -10
- package/server/modules/vouchers/vo-bg2.js +1 -12
- package/server/modules/vouchers/vo-bn1.js +1 -35
- package/server/modules/vouchers/vo-bn5.js +1 -15
- package/server/modules/vouchers/vo-dh2.js +1 -35
- package/server/modules/vouchers/vo-dinhmucsx.js +1 -6
- package/server/modules/vouchers/vo-dkb.js +1 -21
- package/server/modules/vouchers/vo-dn0.js +1 -9
- package/server/modules/vouchers/vo-dnm.js +1 -21
- package/server/modules/vouchers/vo-hd1.js +1 -36
- package/server/modules/vouchers/vo-hd2.js +1 -107
- package/server/modules/vouchers/vo-hd3.js +1 -44
- package/server/modules/vouchers/vo-hd4.js +1 -13
- package/server/modules/vouchers/vo-hd7.js +1 -29
- package/server/modules/vouchers/vo-hd8.js +1 -29
- package/server/modules/vouchers/vo-hde.js +1 -40
- package/server/modules/vouchers/vo-htl.js +1 -11
- package/server/modules/vouchers/vo-kbbtpb.js +1 -6
- package/server/modules/vouchers/vo-kehoachmh.js +1 -13
- package/server/modules/vouchers/vo-lenhcapphat.js +1 -10
- package/server/modules/vouchers/vo-lenhsx.js +1 -12
- package/server/modules/vouchers/vo-pbl.js +1 -93
- package/server/modules/vouchers/vo-pc0.js +1 -14
- package/server/modules/vouchers/vo-pc1.js +1 -31
- package/server/modules/vouchers/vo-pc2.js +1 -24
- package/server/modules/vouchers/vo-pc3.js +1 -14
- package/server/modules/vouchers/vo-pc5.js +1 -15
- package/server/modules/vouchers/vo-pc6.js +1 -19
- package/server/modules/vouchers/vo-pcl.js +1 -7
- package/server/modules/vouchers/vo-pdn.js +1 -11
- package/server/modules/vouchers/vo-pdx.js +1 -9
- package/server/modules/vouchers/vo-pgh.js +1 -19
- package/server/modules/vouchers/vo-pht.js +1 -7
- package/server/modules/vouchers/vo-pkc.js +1 -7
- package/server/modules/vouchers/vo-pkh.js +1 -10
- package/server/modules/vouchers/vo-pkk.js +1 -12
- package/server/modules/vouchers/vo-pkt.js +1 -13
- package/server/modules/vouchers/vo-pn1.js +1 -33
- package/server/modules/vouchers/vo-pn2.js +1 -16
- package/server/modules/vouchers/vo-pn3.js +1 -18
- package/server/modules/vouchers/vo-pn5.js +1 -19
- package/server/modules/vouchers/vo-pn6.js +1 -18
- package/server/modules/vouchers/vo-pn9.js +1 -22
- package/server/modules/vouchers/vo-pnc.js +1 -20
- package/server/modules/vouchers/vo-pnh.js +1 -20
- package/server/modules/vouchers/vo-pnk.js +1 -14
- package/server/modules/vouchers/vo-pnknpp.js +1 -12
- package/server/modules/vouchers/vo-po1.js +1 -15
- package/server/modules/vouchers/vo-ppb.js +1 -8
- package/server/modules/vouchers/vo-pt1.js +1 -21
- package/server/modules/vouchers/vo-pt5.js +1 -15
- package/server/modules/vouchers/vo-ptl.js +1 -8
- package/server/modules/vouchers/vo-purchase_contract.js +1 -9
- package/server/modules/vouchers/vo-pxc.js +1 -22
- package/server/modules/vouchers/vo-pxh.js +1 -28
- package/server/modules/vouchers/vo-pxk.js +1 -15
- package/server/modules/vouchers/vo-pxknpp.js +1 -14
- package/server/modules/vouchers/vo-qts.js +1 -12
- package/server/modules/vouchers/vo-sale_contract.js +1 -11
- package/server/modules/vouchers/vo-shipbook.js +1 -17
- package/server/modules/vouchers/vo-so1.js +1 -126
- package/server/modules/vouchers/vo-so2.js +1 -37
- package/server/modules/vouchers/vo-so3.js +1 -41
- package/server/modules/vouchers/vo-so5.js +1 -57
- package/server/modules/vouchers/vo-so7.js +1 -97
- package/server/modules/vouchers/vo-so9.js +1 -119
- package/server/modules/vouchers/vo-vanchuyen.js +1 -14
- package/server/modules/vouchers/vo-xhd.js +1 -33
- package/server/route.js +1 -51
- package/server/services/invoiceFetcher.js +1 -15
- package/server/sslConfig.js +1 -2
- package/server/transactionMiddleware.js +1 -5
- package/server/workers/backupApp.js +1 -9
- package/server/workers/calcGrid.js +1 -9
- package/server/workers/customerOnImport.js +1 -8
- package/server/workers/dmvtOnImport.js +1 -9
- package/server/workers/excelParser.js +1 -9
- package/server/workers/inputWorker.js +1 -6
- package/server/workers/pushNotify.js +1 -10
- package/server/workers/reportWorker.js +1 -7
- package/server/workers/restoreApp.js +1 -23
- package/server/workers/runScript.js +1 -4
- package/server/workers/sendEmail.js +1 -13
- package/server/workers/webhook.js +1 -5
|
@@ -1,17 +1 @@
|
|
|
1
|
-
const databanle=require("./databanlenpp"),async=require("async");
|
|
2
|
-
module.exports=async function($query_user$$,$condition$$,$callback$$){if(!$condition$$.tu_ngay||!$condition$$.den_ngay)return $callback$$("B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1:tu_ngay,den_ngay");$query_user$$={id_app:$condition$$.id_app};var $condition_kh_custs_ma_kho$$=$condition$$.ma_kho;$condition_kh_custs_ma_kho$$&&($query_user$$.$and||($query_user$$.$and=[]),$query_user$$.$and||($query_user$$.$and=[]),typeof $condition_kh_custs_ma_kho$$=="string"&&($condition_kh_custs_ma_kho$$=
|
|
3
|
-
[$condition_kh_custs_ma_kho$$]),$query_user$$.$and.push({$or:[{ma_kho:{$in:$condition_kh_custs_ma_kho$$}},{"details.ma_kho":{$in:$condition_kh_custs_ma_kho$$}}]}));$query_user$$.ngay_ct={$gte:$condition$$.tu_ngay,$lte:$condition$$.den_ngay};$condition$$.ma_dvcs&&($query_user$$.ma_dvcs=$condition$$.ma_dvcs);$condition$$.user_nv&&($query_user$$.user_nv=$condition$$.user_nv);$condition$$.user_ctv&&($query_user$$.user_ctv=$condition$$.user_ctv);$condition$$.user&&($query_user$$.$or?($query_user$$.$and||
|
|
4
|
-
($query_user$$.$and=[]),$query_user$$.$and.push({$or:[{user_nv:$condition$$.user},{user_ctv:$condition$$.user}]})):$query_user$$.$or=[{user_nv:$condition$$.user},{user_ctv:$condition$$.user}]);$condition$$.tinh_thanh&&($query_user$$.tinh_thanh=$condition$$.tinh_thanh);if($condition$$.ma_kh)$query_user$$.ma_kh=$condition$$.ma_kh;else{$condition_kh_custs_ma_kho$$={};if($condition$$.nh_kh){var $nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,
|
|
5
|
-
$condition$$.nh_kh,{status:!0});$condition_kh_custs_ma_kho$$.nh_kh={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$}}$condition$$.nh_kh2&&($nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,$condition$$.nh_kh2,{status:!0}),$condition_kh_custs_ma_kho$$.nh_kh2={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$});$condition$$.nh_kh3&&($nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,
|
|
6
|
-
$condition$$.nh_kh3,{status:!0}),$condition_kh_custs_ma_kho$$.nh_kh3={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$});$condition$$.nh_kh4&&($nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,$condition$$.nh_kh4,{status:!0}),$condition_kh_custs_ma_kho$$.nh_kh4={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$});$condition$$.nh_kh5&&($nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,
|
|
7
|
-
$condition$$.nh_kh5,{status:!0}),$condition_kh_custs_ma_kho$$.nh_kh5={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$});Object.keys($condition_kh_custs_ma_kho$$).length>0&&($condition_kh_custs_ma_kho$$.id_app=$condition$$.id_app,$condition_kh_custs_ma_kho$$=await global.getModel("customer").find($condition_kh_custs_ma_kho$$,{ma_kh:1}).lean(),$query_user$$.ma_kh={$in:$condition_kh_custs_ma_kho$$.map($c$$=>$c$$.ma_kh)})}$condition$$.ma_ct&&($query_user$$.ma_ct=$condition$$.ma_ct);$condition$$.user_hoa_hong&&
|
|
8
|
-
($query_user$$.$or?($query_user$$.$and||($query_user$$.$and=[]),$query_user$$.$and.push({$or:[{user_nv:$condition$$.user_hoa_hong},{user_ctv:$condition$$.user_hoa_hong},{user_ctv2:$condition$$.user_hoa_hong},{user_kho:$condition$$.user_hoa_hong},{user_gt:$condition$$.user_hoa_hong},{user_ql:$condition$$.user_hoa_hong},{"details.user_nv":$condition$$.user_hoa_hong},{"details.user_ctv":$condition$$.user_hoa_hong},{"details.user_ctv2":$condition$$.user_hoa_hong},{"details.user_kho":$condition$$.user_hoa_hong},
|
|
9
|
-
{"details.user_gt":$condition$$.user_hoa_hong},{"details.user_ql":$condition$$.user_hoa_hong}]})):$query_user$$.$or=[{user_nv:$condition$$.user_hoa_hong},{user_ctv:$condition$$.user_hoa_hong},{user_ctv2:$condition$$.user_hoa_hong},{user_kho:$condition$$.user_hoa_hong},{user_gt:$condition$$.user_hoa_hong},{user_ql:$condition$$.user_hoa_hong},{"details.user_nv":$condition$$.user_hoa_hong},{"details.user_ctv":$condition$$.user_hoa_hong},{"details.user_ctv2":$condition$$.user_hoa_hong},{"details.user_kho":$condition$$.user_hoa_hong},
|
|
10
|
-
{"details.user_gt":$condition$$.user_hoa_hong},{"details.user_ql":$condition$$.user_hoa_hong}]);databanle($query_user$$,function($error$$,$rs$$,$ptthanhtoans$$){if($error$$)return $callback$$($error$$);const $thanh_toan$$=$ptthanhtoans$$.map($pt$$=>({name:$pt$$.ma,value:$pt$$.ma,ma:$pt$$.ma,ten:$pt$$.ten}));async.mapSeries($rs$$,function($r$$,$callback$$){$r$$.t_sl_xuat=$r$$.details.csum("sl_xuat");$r$$.t_tien_hang=$r$$.details.csum("tien_hang");$r$$.t_tien_hang_ct=$r$$.details.csum("tien_hang_ct");
|
|
11
|
-
$r$$.t_thue=$r$$.details.csum("tien_thue");$r$$.t_tien_ck=$r$$.details.csum("tien_ck");$r$$.t_tien_cp=$r$$.details.csum("tien_cp");$r$$.t_tien=$r$$.details.csum("tien");$r$$.tien_ck_hd=$r$$.tien_ck_hd||0;$r$$.t_tien_xuat=$r$$.details.csum("tien_xuat");$r$$.t_tien_hoa_hong=$r$$.details.csum("tien_hoa_hong");$r$$.t_tien_hoa_hong_gt=$r$$.details.csum("tien_hoa_hong_gt");$r$$.t_tien_hoa_hong_ctv=$r$$.details.csum("tien_hoa_hong_ctv");$r$$.t_tien_hoa_hong_ql=$r$$.details.csum("tien_hoa_hong_ql");$r$$.tien_freeship=
|
|
12
|
-
$r$$.tien_freeship||0;$r$$.tien_phi_vc=$r$$.tien_phi_vc||0;$r$$.details_tl?($r$$.t_tien_tl=$r$$.details_tl.csum("tien_hang_ct")-$r$$.details_tl.csum("tien_ck"),$r$$.t_tien_thue_tl=$r$$.details_tl.csum("tien_thue"),$r$$.t_tien_nhap=$r$$.details_tl.csum("tien_nhap"),$r$$.t_sl_nhap=$r$$.details_tl.csum("sl_nhap"),$r$$.t_tien_hoa_hong-=$r$$.details_tl.csum("tien_hoa_hong"),$r$$.t_tien_hoa_hong_gt-=$r$$.details_tl.csum("tien_hoa_hong_gt"),$r$$.t_tien_hoa_hong_ctv-=$r$$.details_tl.csum("tien_hoa_hong_ctv"),
|
|
13
|
-
$r$$.t_tien_hoa_hong_ql-=$r$$.details_tl.csum("tien_hoa_hong_ql")):($r$$.t_tien_tl=0,$r$$.t_sl_nhap=0,$r$$.t_tien_nhap=0);$callback$$(null,$r$$)},function($error$$,$rs$$){if($error$$)return $callback$$($error$$);$error$$=$condition$$.groupby||$condition$$.group_by||["ma_kho"];typeof $error$$=="string"&&($error$$=[$error$$]);$rs$$.groupBy($error$$,[{name:"t_sl_xuat",value:"t_sl_xuat"},{name:"t_tien_hang",value:"t_tien_hang"},{name:"t_tien_hang_ct",value:"t_tien_hang_ct"},{name:"t_thue",value:"t_thue"},
|
|
14
|
-
{name:"t_tien_cp",value:"t_tien_cp"},{name:"t_tien_ck",value:"t_tien_ck"},{name:"t_tien",value:"t_tien"},{name:"tien_ck_hd",value:"tien_ck_hd"},{name:"tien_freeship",value:"tien_freeship"},{name:"tien_phi_vc",value:"tien_phi_vc"},{name:"tien_evoucher",value:"tien_evoucher"},{name:"tien_thu",value:"tien_thu"},{name:"tien_thu2",value:"tien_thu2"},{name:"tien_paymentByPoints",value:"tien_paymentByPoints"},{name:"t_tien_xuat",value:"t_tien_xuat"},{name:"t_sl_nhap",value:"t_sl_nhap"},{name:"t_tien_tl",
|
|
15
|
-
value:"t_tien_tl"},{name:"t_tien_thue_tl",value:"t_tien_thue_tl"},{name:"t_tien_nhap",value:"t_tien_nhap"},{name:"phai_tra",value:"phai_tra"},{name:"t_tien_hoa_hong",value:"t_tien_hoa_hong"},{name:"t_tien_hoa_hong_gt",value:"t_tien_hoa_hong_gt"},{name:"t_tien_hoa_hong_ctv",value:"t_tien_hoa_hong_ctv"},{name:"t_tien_hoa_hong_ql",value:"t_tien_hoa_hong_ql"},...$thanh_toan$$],async function($error$$,$report$$){if($error$$)return $callback$$($error$$);let $i$$=1;$report$$.forEach(function($r$$){$r$$.stt=
|
|
16
|
-
$i$$;$r$$.bold=!1;$r$$.t_phai_thu=$r$$.t_tien_hang_ct-($r$$.t_tien_ck||0)+($r$$.t_thue||0)+($r$$.tien_phi_vc||0)-($r$$.tien_freeship||0)-($r$$.tien_ck_hd||0)-($r$$.tien_evoucher||0);$r$$.t_doanh_thu=$r$$.t_tien_hang_ct-($r$$.t_tien_ck||0)+($r$$.tien_phi_vc||0)-($r$$.tien_freeship||0)-($r$$.tien_ck_hd||0)-($r$$.tien_evoucher||0);$r$$.t_doanh_thu_thuan=$r$$.t_doanh_thu-$r$$.t_tien_tl;$r$$.t_lai=$r$$.t_doanh_thu-$r$$.t_tien_xuat-($r$$.t_tien_tl-$r$$.t_tien_nhap);$r$$.t_tien_thu=$thanh_toan$$.map($pt$$=>
|
|
17
|
-
$r$$[$pt$$.ma]||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$r$$.t_tien_paymentByPoints=$r$$.tien_paymentByPoints||0;$r$$.t_tien_phai_tl=$r$$.t_tien_tl+$r$$.t_tien_thue_tl;$i$$++});$report$$.forEach($r$$=>{$r$$.t_tien_phai_tl=$r$$.t_tien_tl+$r$$.t_tien_thue_tl});$callback$$(null,$report$$)})})})};
|
|
1
|
+
const _0x180297=_0x2e23;(function(_0x17f9c7,_0x379f7b){const _0x3f904d=_0x2e23,_0x40a1c2=_0x17f9c7();while(!![]){try{const _0x172c94=parseInt(_0x3f904d(0x11f))/0x1+parseInt(_0x3f904d(0xe1))/0x2*(-parseInt(_0x3f904d(0x10b))/0x3)+-parseInt(_0x3f904d(0x151))/0x4+-parseInt(_0x3f904d(0x130))/0x5*(parseInt(_0x3f904d(0x134))/0x6)+parseInt(_0x3f904d(0x164))/0x7*(parseInt(_0x3f904d(0xfa))/0x8)+-parseInt(_0x3f904d(0x8e))/0x9+-parseInt(_0x3f904d(0x15e))/0xa*(-parseInt(_0x3f904d(0x161))/0xb);if(_0x172c94===_0x379f7b)break;else _0x40a1c2['push'](_0x40a1c2['shift']());}catch(_0x158044){_0x40a1c2['push'](_0x40a1c2['shift']());}}}(_0x233c,0x2b69b));const _0x49f914=(function(){const _0x33c834=_0x2e23,_0x296536={'OdoRh':_0x33c834(0x11a)};let _0x5ed77a=!![];return function(_0x4dd2a0,_0x19eeeb){const _0x20e848=_0x33c834;if(_0x20e848(0x11c)!==_0x296536['OdoRh']){const _0x44a4a6=_0x5ed77a?function(){const _0x14686c=_0x20e848;if(_0x19eeeb){const _0x557703=_0x19eeeb[_0x14686c(0x133)](_0x4dd2a0,arguments);return _0x19eeeb=null,_0x557703;}}:function(){};return _0x5ed77a=![],_0x44a4a6;}else _0x2b542e[_0x20e848(0x172)]=0x0,_0x550c4a[_0x20e848(0xad)]=0x0,_0x4bc2cd[_0x20e848(0xc8)]=0x0;};}()),_0xb34e7c=_0x49f914(this,function(){const _0x478de7=_0x2e23,_0xbe4b00={'RxKNt':_0x478de7(0x15f)};return _0xb34e7c[_0x478de7(0x14c)]()['search'](_0xbe4b00[_0x478de7(0x105)])[_0x478de7(0x14c)]()[_0x478de7(0x147)](_0xb34e7c)[_0x478de7(0xd6)](_0xbe4b00['RxKNt']);});_0xb34e7c();function _0x2e23(_0x1ee400,_0x45fde8){const _0x2d6bf7=_0x233c();return _0x2e23=function(_0xb34e7c,_0x49f914){_0xb34e7c=_0xb34e7c-0x8d;let _0x233c6d=_0x2d6bf7[_0xb34e7c];if(_0x2e23['mfeEJj']===undefined){var _0x2e233b=function(_0x147bd4){const _0xfc2c71='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x331948='',_0x188399='',_0x4b8552=_0x331948+_0x2e233b;for(let _0x1e67a9=0x0,_0x324832,_0x43fb3d,_0x56c304=0x0;_0x43fb3d=_0x147bd4['charAt'](_0x56c304++);~_0x43fb3d&&(_0x324832=_0x1e67a9%0x4?_0x324832*0x40+_0x43fb3d:_0x43fb3d,_0x1e67a9++%0x4)?_0x331948+=_0x4b8552['charCodeAt'](_0x56c304+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x324832>>(-0x2*_0x1e67a9&0x6)):_0x1e67a9:0x0){_0x43fb3d=_0xfc2c71['indexOf'](_0x43fb3d);}for(let _0x2055fd=0x0,_0x2e98b2=_0x331948['length'];_0x2055fd<_0x2e98b2;_0x2055fd++){_0x188399+='%'+('00'+_0x331948['charCodeAt'](_0x2055fd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x188399);};_0x2e23['eTgbRO']=_0x2e233b,_0x1ee400=arguments,_0x2e23['mfeEJj']=!![];}const _0x1ac1e8=_0x2d6bf7[0x0],_0x1a7c4e=_0xb34e7c+_0x1ac1e8,_0x389c9c=_0x1ee400[_0x1a7c4e];if(!_0x389c9c){const _0x3da330=function(_0x11d460){this['zoEMMz']=_0x11d460,this['uDSGCq']=[0x1,0x0,0x0],this['sZpOYg']=function(){return'newState';},this['FQbuUT']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['lxKAzQ']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3da330['prototype']['IwZXvj']=function(){const _0x2b5c00=new RegExp(this['FQbuUT']+this['lxKAzQ']),_0x21be68=_0x2b5c00['test'](this['sZpOYg']['toString']())?--this['uDSGCq'][0x1]:--this['uDSGCq'][0x0];return this['gBPanr'](_0x21be68);},_0x3da330['prototype']['gBPanr']=function(_0x232af0){if(!Boolean(~_0x232af0))return _0x232af0;return this['dqYGvD'](this['zoEMMz']);},_0x3da330['prototype']['dqYGvD']=function(_0x1e5d81){for(let _0xc4ff59=0x0,_0x567545=this['uDSGCq']['length'];_0xc4ff59<_0x567545;_0xc4ff59++){this['uDSGCq']['push'](Math['round'](Math['random']())),_0x567545=this['uDSGCq']['length'];}return _0x1e5d81(this['uDSGCq'][0x0]);},new _0x3da330(_0x2e23)['IwZXvj'](),_0x233c6d=_0x2e23['eTgbRO'](_0x233c6d),_0x1ee400[_0x1a7c4e]=_0x233c6d;}else _0x233c6d=_0x389c9c;return _0x233c6d;},_0x2e23(_0x1ee400,_0x45fde8);}function _0x233c(){const _0x20b1e0=['qNfYzuu','tKj2B0e','Cu1qELO','Df9KB2fUAf90Ahu','DuLzBhK','D3PKv0O','BKnlu28','ExbMufq','s1bTA3q','Df9ZBf9UAgfW','zfjZB1u','Df90AwvUx2nW','Df90AwvUx2HVyv9OB25N','CLf0yMG','BMHFA2G0','yM9LwM0','BMHFA2G1','zM9YrwfJAa','qvLRBvm','vMf2u3O','C1jPBfm','yM9Sza','BwfFA2G','Bezszgq','qu1OrMq','DgLLBL9UAgfW','vNLuwuS','AwrFyxbW','y2rTr3C','z29qzg8','DgLLBL9JA19Oza','C3rYAw5N','DgLLBL94Dwf0','A1jAyLa','wMHruNi','rw9gsfi','Df90AwvUx25Oyxa','BMHFA2GZ','DhvpugS','Df90AwvUx3bHEw1LBNrcEvbVAw50CW','q2DUr2W','CgHHAv90CMe','Df9KB2fUAf90AhvFDgH1yw4','DxnLCL9JDhy','sM9esMG','DhLMD2m','Df90AwvUx2nR','sMrnrNC','vNrzyw4','uMnSD0m','C2vHCMnO','ANrXyLO','zMDovei','z3jVDxbIEq','yxn5BMm','DhvFBMDHEq','Df90AwvUx3rODq','lI9KyxrHyMfUBgvUCha','AvDIsfe','thPtBNq','DgDeC3a','mJi0EeDVu3nL','DgLLBL9Oyw5Nx2n0','DgLLBL9LDM91y2HLCG','s1fxrgm','y0jQANq','rgfKsei','DgLLBL9OB2fFAg9Uz19NDa','y3vZDg9Tzxi','zgv0ywLSC190Ba','BMHFA2GY','sxHbqKy','z2v0tw9KzwW','A0f0vei','BgvUz3rO','wwXiCeO','BMHrugq','tuT1Ag4','Dwzgtw4','oxW1Fdn8nhWYFdb8ohW3Fdz8mq','tuXOEwG','rgTjrKq','sLrWBxi','jgfUza','CMvKDwnL','mNW1Fdz8mxW0Fdn8mhW3','mtu0ngPhq2jYza','Cuf5Bu0','wxn1uxu','sMDyt1C','q2DADu4','wgnZBxm','Df90AwvUx3bOywLFDgW','tg5HrxK','DgLLBL9JCa','DgLLBL9OB2fFAg9UzW','z3jVDxa','uNHltNq','DxnLCL9OB2fFAg9UzW','z1fJu2m','Df90AwvUx2HVyv9OB25Nx2D0','CNbSBgy','Df90AwvUx2HVyv9OB25Nx2n0DG','odC3mKTUre1mva','C2XFBMHHCa','z3jVDxbFyNK','s0TMr0y','BwfFA2HV','Df90AwvU','BgvHBG','wfn6zuy','Df9WAgfPx3rODq','yK1gA1C','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsbJW6fJihrOyw0GC+g7KtP0Dv9Uz2f5lgrLBL9Uz2f5','A2v5CW','DwLPrxO','qu93y1O','rLzbu2K','EMjdugi','DgLLBL9WyxLTzw50qNLqB2LUDhm','zfjeEwq','yunKBvq','ChnUuwS','mtK1mJC0ChjYvLb0','sen6AuC','DMLoEeS','Df90AwvUx2HHBMDFy3q','EuPXA1q','A3nSruG','C2XFEhvHDa','qKvXvLu','ChvZAa','uKXQBhy','DgLUAf90AgfUAa','AwHNAwy','DgLLBG','r1Pstxq','ze9yAuS','DMDpDg0','z2v0qwXSq2HPBgrYzw5hCM91Ca','ntbKAvflvwq','rgHst00','ohW2Fdr8mxWWFdj8n3WZFdL8nq','yxbWBhK','nJKYotruyLHqrNq','AhfgDMW','Df9ZBf94Dwf0','Df9SywK','zerkEuu','zMLUza','vu1buhm','rMfOEui','rwjyyLq','sw9Wz3C','EwjtEMe','y3n1Bq','AgjpBfm','B3f3wLe','yMnOB3q','DgLLBL9Oyw5N','CK1MEgu','C3r0','DgLLBL9OB2fFAg9Uz19JDhy','y29UC3rYDwn0B3i','Df90AwvUx3rODwvFDgW','C3bSAxq','Df90AwvUx3H1yxq','zxHWB3j0CW','Dg9tDhjPBMC','C3rdvfG','CvHvBNa','yM1KA3K','DxnLCL9UDG','mtKWotzKrgLRB3i','BLLxq2G','CwjUwue','DhHorhq','BMHFA2G','B2jsrKS','DgLLBL9JAW','yxvNwK0','Df90AhvL','vgfQEhu','zenPsgO','n3WWFdr8nxWXFdj8nNWZ','DxnLCG','ndmWAvbMtKvZ','kcGOlISPkYKRksSK','DgLLBL90AhuY','mte3mZGXrhrxB0z1','u0LiqMy','BwfFzhzJCW','mta0mJnxwNjAsKy','qw1yr1O','z3bKA1C','B0LgCLu','vLfrtuG','B25KBNO','Ahneu0m','t2jIuxa','BgLzvMK','DLHLvfK','q0vtvhy','uhfbA2e','zfHWAvm','y3LysuW','Df90AwvUx3rS','zfPUrgS','zgvUx25NyxK','zgv0ywLSCW','qurss2K','q2P4Au8','q3HWt2G','BwfWtgLTAxq','DgLLBL9WAgLFDMm','yK1lrvG','DgLLBL9OB2fFAg9Uz19XBa','vMTkDw8','EuntqNa','DgLLBL90AhvL','r1fXExG','DgLLBL9MCMvLC2HPCa','rKPOtfy','DujdAM0','mJG0mZm5n1bsugH5va','yML5uKq','s3vcD1i','Df90AwvUx2HHBMC','r2Tnt3u','AKvjvgW','vMzVwhq','jg9Y','CuvArxm','sujVsMW','vw9ouKm','zu5UuhK','sMHTv2y','vgPABvi','swTLu00','ENHzy3i','DgLLBL90Ahu','Df90AwvUx2HVyv9OB25Nx3fS','A0HuvLG','BwfW','vurpq0u','ufHcD2q'];_0x233c=function(){return _0x20b1e0;};return _0x233c();}const databanle=require(_0x180297(0xdd)),async=require(_0x180297(0xda));module[_0x180297(0x14b)]=async function(_0x396ac6,_0x4bcf37,_0x518f0a){const _0x54addb=_0x180297,_0x26268f={'JTpmr':function(_0x50b306,_0x1c8e1b){return _0x50b306+_0x1c8e1b;},'cyXIL':function(_0x3180ef,_0x5ce680){return _0x3180ef(_0x5ce680);},'goPdo':function(_0x59ec9f,_0x28278a,_0xfba3c4){return _0x59ec9f(_0x28278a,_0xfba3c4);},'bMKEX':_0x54addb(0x10f),'dZnDk':'t_sl_xuat','RclwC':_0x54addb(0x91),'uBCjm':_0x54addb(0x122),'lFRdd':_0x54addb(0x159),'NBvoA':_0x54addb(0xd2),'hbOlS':_0x54addb(0x110),'MLhyh':_0x54addb(0xc2),'obRFK':'tien_freeship','eNnPy':_0x54addb(0x17a),'MKuhn':'tien_evoucher','JdMFw':_0x54addb(0x9e),'BEqVU':'tien_thu2','liYVi':_0x54addb(0x11b),'uIYly':_0x54addb(0x14a),'hsDSC':_0x54addb(0xad),'KKfGF':_0x54addb(0x172),'dXpiS':_0x54addb(0x148),'CxpOh':_0x54addb(0xc8),'GQqyx':_0x54addb(0xcd),'kAtTB':_0x54addb(0x108),'hqFvl':_0x54addb(0x10a),'UoNRC':_0x54addb(0x9f),'nCKSo':_0x54addb(0xe2),'VavSz':_0x54addb(0x157),'viNxK':_0x54addb(0x17f),'UDOCE':'tien_nhap','qEZEs':'sl_nhap','bmdky':function(_0x122ec8,_0x56f17e){return _0x122ec8-_0x56f17e;},'ObbQp':'tien_hoa_hong','qMPzZ':function(_0x4049e0,_0xdabc62){return _0x4049e0-_0xdabc62;},'KuBwR':_0x54addb(0xe7),'yCSBp':function(_0x51d9a7,_0x533b8b){return _0x51d9a7-_0x533b8b;},'ZhQRr':function(_0x450e17,_0x5707c2){return _0x450e17-_0x5707c2;},'EoFHR':function(_0x16083c,_0x3dd41a){return _0x16083c!==_0x3dd41a;},'kRZbP':_0x54addb(0x17d),'ybSza':function(_0x323cfd,_0x1faa79){return _0x323cfd!==_0x1faa79;},'MAzog':_0x54addb(0x13a),'rpllf':_0x54addb(0x13d),'vgOtm':_0x54addb(0x125),'RLjlv':'tien_hang','cdmGw':_0x54addb(0xc4),'BqreE':'tien_hoa_hong_ctv','augZM':_0x54addb(0x17c),'uiiEz':_0x54addb(0xf9),'rMfxe':function(_0x1ab8f4,_0x5321d3){return _0x1ab8f4-_0x5321d3;},'boeZm':function(_0x423eae,_0xdf2d93){return _0x423eae-_0xdf2d93;},'SIHBf':function(_0x5e836b,_0x2dccc7){return _0x5e836b-_0x2dccc7;},'FVASi':function(_0x529528,_0x510d15){return _0x529528===_0x510d15;},'txNDt':function(_0x245e10,_0x5eb1e7){return _0x245e10+_0x5eb1e7;},'dDJyE':function(_0x579cec,_0x59ff74){return _0x579cec+_0x59ff74;},'qbnYA':function(_0x6b92f5,_0x19c6d0){return _0x6b92f5==_0x19c6d0;},'wzdWJ':'string','gQcSc':'t_tien_cp','AOwcZ':_0x54addb(0xb0),'bchot':_0x54addb(0x102),'CjxiO':function(_0xe09065,_0x3f9c2d){return _0xe09065(_0x3f9c2d);},'VtYan':_0x54addb(0x112),'JoDJh':function(_0x40e62b,_0xb213d7){return _0x40e62b===_0xb213d7;},'CgeWq':'oqwZQ','DhROM':function(_0x375c68,_0x437e5a){return _0x375c68(_0x437e5a);},'qAymM':_0x54addb(0x115),'iWbHQ':function(_0x3b965c,_0x3092d8){return _0x3b965c==_0x3092d8;},'nhQPd':function(_0x3bec54,_0x29d0c6){return _0x3bec54===_0x29d0c6;},'IBoJl':_0x54addb(0xbc),'tjBLS':function(_0x5a0464,_0x42bafc){return _0x5a0464===_0x42bafc;},'VQQMH':_0x54addb(0xe0),'yJqkT':_0x54addb(0xd8),'kslEH':function(_0x11d3a5,_0x2c0166){return _0x11d3a5!==_0x2c0166;},'maRoy':function(_0x2be7a9,_0x4f7da4){return _0x2be7a9!==_0x4f7da4;},'kHTVX':_0x54addb(0x104),'YsuQu':function(_0x470db0,_0x348ea8){return _0x470db0>_0x348ea8;},'cBjjt':_0x54addb(0xdf),'AYkmS':_0x54addb(0xe8),'lZvth':function(_0x26f84e,_0x3667de){return _0x26f84e!==_0x3667de;},'Tajxu':_0x54addb(0xf2),'JhmWf':function(_0x1d621f,_0x4f405c){return _0x1d621f===_0x4f405c;},'dCiHj':_0x54addb(0xff),'CuFhJ':_0x54addb(0x167)};if(!_0x4bcf37[_0x54addb(0xdb)]||!_0x4bcf37[_0x54addb(0x174)]){if(_0x26268f[_0x54addb(0xd0)](_0x54addb(0x141),_0x26268f['CgeWq']))return _0x26268f[_0x54addb(0x131)](_0x518f0a,_0x26268f[_0x54addb(0xfb)]);else{const _0xdf2b72={'TjZmR':function(_0x393169,_0x3ab06d){return _0x393169-_0x3ab06d;},'psnQk':function(_0x58d248,_0x13053d){const _0x334478=_0x54addb;return _0x26268f[_0x334478(0xf6)](_0x58d248,_0x13053d);},'ondnz':function(_0x57818b,_0x220bed){return _0x57818b-_0x220bed;},'KQWDc':function(_0x4bf00b,_0x54ed0c){return _0x4bf00b-_0x54ed0c;},'jtqbZ':function(_0x3a98e6,_0x21c937){const _0x5e8156=_0x54addb;return _0x26268f[_0x5e8156(0x171)](_0x3a98e6,_0x21c937);},'VbLns':function(_0x8920fb,_0x1ed14a,_0x21cd92){const _0x30b700=_0x54addb;return _0x26268f[_0x30b700(0xc1)](_0x8920fb,_0x1ed14a,_0x21cd92);}};if(_0x4923d9)return _0x2cab17(_0x14b29c);let _0x8cfef4=_0x3c655d['groupby']||_0x541569[_0x54addb(0x10d)]||[_0x26268f[_0x54addb(0x17b)]];if(typeof _0x8cfef4=='string')_0x8cfef4=[_0x8cfef4];_0x12653c['groupBy'](_0x8cfef4,[{'name':_0x26268f[_0x54addb(0x173)],'value':_0x26268f['dZnDk']},{'name':_0x54addb(0x91),'value':_0x26268f['RclwC']},{'name':_0x26268f['uBCjm'],'value':_0x54addb(0x122)},{'name':_0x26268f[_0x54addb(0xbb)],'value':_0x26268f['lFRdd']},{'name':'t_tien_cp','value':_0x54addb(0xaf)},{'name':_0x54addb(0xd2),'value':_0x26268f[_0x54addb(0xa5)]},{'name':_0x26268f[_0x54addb(0x140)],'value':_0x26268f[_0x54addb(0x140)]},{'name':_0x26268f[_0x54addb(0xf4)],'value':_0x54addb(0xc2)},{'name':_0x26268f[_0x54addb(0x156)],'value':_0x26268f[_0x54addb(0x156)]},{'name':_0x26268f['eNnPy'],'value':_0x26268f['eNnPy']},{'name':_0x26268f['MKuhn'],'value':_0x26268f[_0x54addb(0xf1)]},{'name':_0x26268f['JdMFw'],'value':_0x26268f['JdMFw']},{'name':'tien_thu2','value':_0x26268f[_0x54addb(0x126)]},{'name':_0x54addb(0x11b),'value':_0x26268f[_0x54addb(0x16c)]},{'name':_0x26268f[_0x54addb(0xa8)],'value':_0x26268f[_0x54addb(0xa8)]},{'name':_0x26268f[_0x54addb(0x16a)],'value':_0x26268f[_0x54addb(0x16a)]},{'name':_0x54addb(0x172),'value':_0x26268f[_0x54addb(0x10e)]},{'name':_0x26268f[_0x54addb(0x170)],'value':_0x54addb(0x148)},{'name':_0x26268f[_0x54addb(0x178)],'value':_0x26268f[_0x54addb(0x178)]},{'name':_0x26268f[_0x54addb(0x180)],'value':_0x26268f[_0x54addb(0x180)]},{'name':'t_tien_hoa_hong','value':'t_tien_hoa_hong'},{'name':_0x26268f[_0x54addb(0xed)],'value':_0x54addb(0x108)},{'name':_0x26268f[_0x54addb(0x135)],'value':_0x26268f[_0x54addb(0x135)]},{'name':_0x54addb(0x9f),'value':_0x26268f[_0x54addb(0x98)]},..._0x2eaaa5],async function(_0x2d5946,_0xc394cf){const _0x1bcc9b=_0x54addb,_0xf90e94={'gpdkW':function(_0x2d69d9,_0x5ca252){const _0x17d2bf=_0x2e23;return _0xdf2b72[_0x17d2bf(0x9b)](_0x2d69d9,_0x5ca252);},'VfoXt':function(_0x257f46,_0xa63f26){const _0x1d6266=_0x2e23;return _0xdf2b72[_0x1d6266(0x9b)](_0x257f46,_0xa63f26);},'aCdmT':function(_0x584b8d,_0x1d4639){const _0x10be3d=_0x2e23;return _0xdf2b72[_0x10be3d(0x11e)](_0x584b8d,_0x1d4639);},'dRsoU':function(_0x46e072,_0x3e99cb){const _0x5827be=_0x2e23;return _0xdf2b72[_0x5827be(0x169)](_0x46e072,_0x3e99cb);},'CgnGl':function(_0x17336d,_0xe260c9){const _0x495397=_0x2e23;return _0xdf2b72[_0x495397(0xe4)](_0x17336d,_0xe260c9);}};if(_0x2d5946)return _0xdf2b72[_0x1bcc9b(0xd7)](_0x4cb028,_0x2d5946);let _0x29eb81=0x1;_0xc394cf[_0x1bcc9b(0xb5)](function(_0x24f117){const _0x47b3dc=_0x1bcc9b,_0x1d403f=_0x47b3dc(0x132)['split']('|');let _0x38369b=0x0;while(!![]){switch(_0x1d403f[_0x38369b++]){case'0':_0x24f117['t_doanh_thu_thuan']=_0xf90e94[_0x47b3dc(0x166)](_0x24f117['t_doanh_thu'],_0x24f117[_0x47b3dc(0x172)]);continue;case'1':_0x24f117[_0x47b3dc(0xa7)]=_0xf90e94[_0x47b3dc(0x166)](_0xf90e94[_0x47b3dc(0x94)](_0xf90e94[_0x47b3dc(0x11d)](_0xf90e94[_0x47b3dc(0x94)](_0x24f117['t_tien_hang_ct'],_0x24f117[_0x47b3dc(0xd2)]||0x0),_0x24f117[_0x47b3dc(0x17a)]||0x0),_0x24f117[_0x47b3dc(0x181)]||0x0)-(_0x24f117[_0x47b3dc(0xc2)]||0x0),_0x24f117[_0x47b3dc(0xe3)]||0x0);continue;case'2':_0x24f117[_0x47b3dc(0x137)]=_0xf90e94[_0x47b3dc(0xae)](_0xf90e94[_0x47b3dc(0xae)](_0x24f117[_0x47b3dc(0xa7)],_0x24f117['t_tien_xuat']),_0xf90e94[_0x47b3dc(0xae)](_0x24f117['t_tien_tl'],_0x24f117[_0x47b3dc(0xc8)]));continue;case'3':_0x24f117[_0x47b3dc(0xcb)]=_0x24f117['tien_paymentByPoints']||0x0;continue;case'4':_0x24f117[_0x47b3dc(0x113)]=_0xf90e94[_0x47b3dc(0xcc)](_0xf90e94['VfoXt'](_0xf90e94['aCdmT'](_0x24f117[_0x47b3dc(0x122)]-(_0x24f117[_0x47b3dc(0xd2)]||0x0),_0x24f117[_0x47b3dc(0x159)]||0x0)+(_0x24f117['tien_phi_vc']||0x0)-(_0x24f117['tien_freeship']||0x0),_0x24f117['tien_ck_hd']||0x0),_0x24f117[_0x47b3dc(0xe3)]||0x0);continue;case'5':_0x29eb81++;continue;case'6':_0x24f117[_0x47b3dc(0xb9)]=![];continue;case'7':_0x24f117[_0x47b3dc(0xdc)]=_0x892a00[_0x47b3dc(0xa1)](_0x2dafef=>_0x24f117[_0x2dafef['ma']]||0x0)[_0x47b3dc(0xf8)]((_0x4fa585,_0x19ec83)=>_0x4fa585+_0x19ec83,0x0);continue;case'8':_0x24f117[_0x47b3dc(0x145)]=_0x29eb81;continue;case'9':_0x24f117[_0x47b3dc(0x100)]=_0xf90e94[_0x47b3dc(0x11d)](_0x24f117[_0x47b3dc(0x172)],_0x24f117['t_tien_thue_tl']);continue;}break;}}),_0xc394cf[_0x1bcc9b(0xb5)](_0x232083=>{const _0x311cfc=_0x1bcc9b;_0x232083[_0x311cfc(0x100)]=_0xf90e94[_0x311cfc(0x11d)](_0x232083[_0x311cfc(0x172)],_0x232083[_0x311cfc(0x148)]);}),_0xdf2b72['VbLns'](_0x139029,null,_0xc394cf);});}}const _0x3c94ed={'id_app':_0x4bcf37[_0x54addb(0xbf)]};let _0x256746=_0x4bcf37['ma_kho'];if(_0x256746){if(!_0x3c94ed['$and'])_0x3c94ed[_0x54addb(0xf7)]=[];if(!_0x3c94ed[_0x54addb(0xf7)])_0x3c94ed['$and']=[];_0x26268f[_0x54addb(0xde)](typeof _0x256746,_0x54addb(0xc3))&&(_0x256746=[_0x256746]),_0x3c94ed[_0x54addb(0xf7)][_0x54addb(0x127)]({'$or':[{'ma_kho':{'$in':_0x256746}},{'details.ma_kho':{'$in':_0x256746}}]});}_0x3c94ed['ngay_ct']={'$gte':_0x4bcf37[_0x54addb(0xdb)],'$lte':_0x4bcf37[_0x54addb(0x174)]};_0x4bcf37[_0x54addb(0x163)]&&(_0x3c94ed[_0x54addb(0x163)]=_0x4bcf37[_0x54addb(0x163)]);_0x4bcf37[_0x54addb(0x150)]&&(_0x3c94ed[_0x54addb(0x150)]=_0x4bcf37['user_nv']);_0x4bcf37[_0x54addb(0xcf)]&&(_0x3c94ed[_0x54addb(0xcf)]=_0x4bcf37[_0x54addb(0xcf)]);if(_0x4bcf37[_0x54addb(0x15d)]){if(_0x26268f[_0x54addb(0xf0)](_0x54addb(0xfd),_0x26268f[_0x54addb(0x97)])){if(!_0x451179[_0x54addb(0xf7)])_0x49b7d2[_0x54addb(0xf7)]=[];_0x40ade1[_0x54addb(0xf7)][_0x54addb(0x127)]({'$or':[{'user_nv':_0x207fc7[_0x54addb(0x15d)]},{'user_ctv':_0x45bc97[_0x54addb(0x15d)]}]});}else{if(!_0x3c94ed['$or'])_0x26268f['tjBLS'](_0x26268f[_0x54addb(0x168)],_0x26268f[_0x54addb(0x123)])?_0x50521e[_0x54addb(0xcf)]=_0x4e5870[_0x54addb(0xcf)]:_0x3c94ed[_0x54addb(0x95)]=[{'user_nv':_0x4bcf37[_0x54addb(0x15d)]},{'user_ctv':_0x4bcf37[_0x54addb(0x15d)]}];else{if(_0x26268f[_0x54addb(0x124)](_0x54addb(0x165),_0x54addb(0x165)))_0x1ce3d0[_0x54addb(0x95)]=[{'user_nv':_0x2f8aeb[_0x54addb(0x106)]},{'user_ctv':_0xc8060a[_0x54addb(0x106)]},{'user_ctv2':_0x496a4a[_0x54addb(0x106)]},{'user_kho':_0xc89ceb[_0x54addb(0x106)]},{'user_gt':_0x41296b[_0x54addb(0x106)]},{'user_ql':_0xc18e6e['user_hoa_hong']},{'details.user_nv':_0x1053d1[_0x54addb(0x106)]},{'details.user_ctv':_0x237f12[_0x54addb(0x106)]},{'details.user_ctv2':_0x378a65['user_hoa_hong']},{'details.user_kho':_0xee9a9e['user_hoa_hong']},{'details.user_gt':_0x5a1425['user_hoa_hong']},{'details.user_ql':_0x349ef1['user_hoa_hong']}];else{if(!_0x3c94ed[_0x54addb(0xf7)])_0x3c94ed['$and']=[];_0x3c94ed[_0x54addb(0xf7)][_0x54addb(0x127)]({'$or':[{'user_nv':_0x4bcf37[_0x54addb(0x15d)]},{'user_ctv':_0x4bcf37['user']}]});}}}}if(_0x4bcf37['tinh_thanh']){if(_0x26268f['maRoy']('PBhXP','Hewmv'))_0x3c94ed[_0x54addb(0x129)]=_0x4bcf37[_0x54addb(0x129)];else return _0x1e6ecf('Báo\x20cáo\x20này\x20yêu\x20cầu\x20các\x20tham\x20số:tu_ngay,den_ngay');}if(_0x4bcf37['ma_kh'])_0x3c94ed['ma_kh']=_0x4bcf37['ma_kh'];else{let _0xaa0b76,_0x5168e2,_0x2448ca,_0x2ba23f,_0x434343,_0x4e4d4f={};_0x4bcf37[_0x54addb(0x155)]&&(_0xaa0b76=await global[_0x54addb(0xec)](_0x26268f[_0x54addb(0xa0)])['getAllChildrenGroup'](_0x4bcf37[_0x54addb(0xbf)],_0x4bcf37['nh_kh'],{'status':!![]}),_0x4e4d4f[_0x54addb(0x155)]={'$in':_0xaa0b76});_0x4bcf37[_0x54addb(0xea)]&&(_0x5168e2=await global['getModel'](_0x26268f['kHTVX'])[_0x54addb(0x12f)](_0x4bcf37[_0x54addb(0xbf)],_0x4bcf37[_0x54addb(0xea)],{'status':!![]}),_0x4e4d4f[_0x54addb(0xea)]={'$in':_0x5168e2});_0x4bcf37['nh_kh3']&&(_0x2448ca=await global[_0x54addb(0xec)](_0x26268f[_0x54addb(0xa0)])[_0x54addb(0x12f)](_0x4bcf37['id_app'],_0x4bcf37[_0x54addb(0xc9)],{'status':!![]}),_0x4e4d4f[_0x54addb(0xc9)]={'$in':_0x2448ca});_0x4bcf37[_0x54addb(0xb2)]&&(_0x2ba23f=await global['getModel'](_0x26268f[_0x54addb(0xa0)])[_0x54addb(0x12f)](_0x4bcf37['id_app'],_0x4bcf37[_0x54addb(0xb2)],{'status':!![]}),_0x4e4d4f[_0x54addb(0xb2)]={'$in':_0x2ba23f});_0x4bcf37[_0x54addb(0xb4)]&&(_0x434343=await global[_0x54addb(0xec)](_0x26268f[_0x54addb(0xa0)])[_0x54addb(0x12f)](_0x4bcf37[_0x54addb(0xbf)],_0x4bcf37[_0x54addb(0xb4)],{'status':!![]}),_0x4e4d4f[_0x54addb(0xb4)]={'$in':_0x434343});if(_0x26268f[_0x54addb(0xfc)](Object[_0x54addb(0x116)](_0x4e4d4f)[_0x54addb(0xee)],0x0)){if(_0x26268f['ybSza'](_0x26268f[_0x54addb(0xe5)],_0x26268f[_0x54addb(0xe5)])){if(_0x2a1031){const _0x2528cd=_0x3c4723['apply'](_0x5828dd,arguments);return _0x27a332=null,_0x2528cd;}}else{_0x4e4d4f[_0x54addb(0xbf)]=_0x4bcf37[_0x54addb(0xbf)];let _0x515605=await global[_0x54addb(0xec)](_0x26268f[_0x54addb(0xb6)])[_0x54addb(0x139)](_0x4e4d4f,{'ma_kh':0x1})[_0x54addb(0x111)]();_0x3c94ed[_0x54addb(0xba)]={'$in':_0x515605['map'](_0x55bfc2=>_0x55bfc2['ma_kh'])};}}}_0x4bcf37['ma_ct']&&(_0x26268f['lZvth'](_0x54addb(0xf2),_0x26268f[_0x54addb(0x15a)])?_0x20228f['ma_kh']=_0x1d8d19['ma_kh']:_0x3c94ed['ma_ct']=_0x4bcf37['ma_ct']);if(_0x4bcf37[_0x54addb(0x106)]){if(_0x3c94ed[_0x54addb(0x95)]){if(_0x26268f[_0x54addb(0x9a)](_0x26268f[_0x54addb(0x15b)],_0x26268f['CuFhJ']))_0x326c22[_0x54addb(0x172)]=_0x2993f8[_0x54addb(0xe9)][_0x54addb(0x13f)](_0x26268f['nCKSo'])-_0xd136fa[_0x54addb(0xe9)][_0x54addb(0x13f)](_0x26268f[_0x54addb(0xb7)]),_0xd0285d[_0x54addb(0x148)]=_0x4652f3[_0x54addb(0xe9)][_0x54addb(0x13f)](_0x26268f['viNxK']),_0x3ece15[_0x54addb(0xc8)]=_0x41a92e['details_tl'][_0x54addb(0x13f)](_0x26268f[_0x54addb(0xa2)]),_0x5550c8[_0x54addb(0xad)]=_0x16c544['details_tl'][_0x54addb(0x13f)](_0x26268f['qEZEs']),_0x401115['t_tien_hoa_hong']=_0x26268f[_0x54addb(0x14f)](_0x5a3184[_0x54addb(0xb0)],_0x50644a['details_tl']['csum'](_0x26268f[_0x54addb(0x16b)])),_0x26eb5e[_0x54addb(0x108)]=_0x26268f[_0x54addb(0xa6)](_0x5e27d1[_0x54addb(0x108)],_0x2585b7[_0x54addb(0xe9)][_0x54addb(0x13f)](_0x26268f[_0x54addb(0x90)])),_0x5858a8[_0x54addb(0x10a)]=_0x26268f['yCSBp'](_0x1c4493['t_tien_hoa_hong_ctv'],_0x453504[_0x54addb(0xe9)][_0x54addb(0x13f)](_0x54addb(0x146))),_0x4b73d5['t_tien_hoa_hong_ql']=_0x26268f[_0x54addb(0xc6)](_0xa464[_0x54addb(0x9f)],_0x5c5aee[_0x54addb(0xe9)][_0x54addb(0x13f)]('tien_hoa_hong_ql'));else{if(!_0x3c94ed[_0x54addb(0xf7)])_0x3c94ed['$and']=[];_0x3c94ed['$and'][_0x54addb(0x127)]({'$or':[{'user_nv':_0x4bcf37[_0x54addb(0x106)]},{'user_ctv':_0x4bcf37['user_hoa_hong']},{'user_ctv2':_0x4bcf37[_0x54addb(0x106)]},{'user_kho':_0x4bcf37[_0x54addb(0x106)]},{'user_gt':_0x4bcf37[_0x54addb(0x106)]},{'user_ql':_0x4bcf37[_0x54addb(0x106)]},{'details.user_nv':_0x4bcf37[_0x54addb(0x106)]},{'details.user_ctv':_0x4bcf37[_0x54addb(0x106)]},{'details.user_ctv2':_0x4bcf37[_0x54addb(0x106)]},{'details.user_kho':_0x4bcf37[_0x54addb(0x106)]},{'details.user_gt':_0x4bcf37[_0x54addb(0x106)]},{'details.user_ql':_0x4bcf37['user_hoa_hong']}]});}}else _0x3c94ed['$or']=[{'user_nv':_0x4bcf37[_0x54addb(0x106)]},{'user_ctv':_0x4bcf37[_0x54addb(0x106)]},{'user_ctv2':_0x4bcf37[_0x54addb(0x106)]},{'user_kho':_0x4bcf37[_0x54addb(0x106)]},{'user_gt':_0x4bcf37[_0x54addb(0x106)]},{'user_ql':_0x4bcf37[_0x54addb(0x106)]},{'details.user_nv':_0x4bcf37[_0x54addb(0x106)]},{'details.user_ctv':_0x4bcf37['user_hoa_hong']},{'details.user_ctv2':_0x4bcf37['user_hoa_hong']},{'details.user_kho':_0x4bcf37['user_hoa_hong']},{'details.user_gt':_0x4bcf37[_0x54addb(0x106)]},{'details.user_ql':_0x4bcf37[_0x54addb(0x106)]}];}_0x26268f['goPdo'](databanle,_0x3c94ed,function(_0x4363f0,_0xc547b0,_0x193e2c){const _0x46570c=_0x54addb,_0x1a5146={'dOXiK':_0x26268f['vgOtm'],'sRilS':_0x46570c(0x143),'rQtbh':_0x26268f[_0x46570c(0xaa)],'PqAka':_0x46570c(0x17f),'DkIFD':_0x26268f[_0x46570c(0x142)],'FJhLV':_0x26268f[_0x46570c(0xa4)],'FahyB':_0x46570c(0x17c),'VkxGl':function(_0x5a6794,_0x551060){const _0x50c6e9=_0x46570c;return _0x26268f[_0x50c6e9(0x144)](_0x5a6794,_0x551060);},'TAnRU':_0x46570c(0x10c),'avAnH':function(_0x4d45e1,_0xec3756,_0x2a9b23){const _0x4a2e1b=_0x46570c;return _0x26268f[_0x4a2e1b(0xc1)](_0x4d45e1,_0xec3756,_0x2a9b23);},'biyRD':function(_0x265e1c,_0x4df61c){const _0x4fb752=_0x46570c;return _0x26268f[_0x4fb752(0x177)](_0x265e1c,_0x4df61c);},'HCziG':function(_0x5a10c8,_0x50f35c,_0x4cd599){return _0x5a10c8(_0x50f35c,_0x4cd599);}};if(_0x26268f[_0x46570c(0x13e)](_0x46570c(0xbe),_0x26268f[_0x46570c(0xd4)])){if(_0x4363f0)return _0x26268f[_0x46570c(0x171)](_0x518f0a,_0x4363f0);const _0x2d2461=_0x193e2c['map'](_0x4614da=>{const _0x35ddda=_0x46570c;if(_0x26268f[_0x35ddda(0xc7)](_0x35ddda(0x9d),_0x26268f[_0x35ddda(0xc5)]))return{'name':_0x4614da['ma'],'value':_0x4614da['ma'],'ma':_0x4614da['ma'],'ten':_0x4614da['ten']};else _0x45c64a[_0x35ddda(0x129)]=_0x127102[_0x35ddda(0x129)];});async[_0x46570c(0x179)](_0xc547b0,0x64,function(_0x2154ca,_0x5b9dd3){const _0x23d342=_0x46570c;if(_0x26268f[_0x23d342(0x13e)](_0x26268f['MAzog'],_0x26268f[_0x23d342(0x109)])){_0x2154ca[_0x23d342(0x136)]=_0x2154ca['details'][_0x23d342(0x13f)](_0x26268f[_0x23d342(0x12e)]),_0x2154ca[_0x23d342(0x91)]=_0x2154ca[_0x23d342(0x175)][_0x23d342(0x13f)](_0x26268f[_0x23d342(0x128)]),_0x2154ca[_0x23d342(0x122)]=_0x2154ca['details'][_0x23d342(0x13f)](_0x26268f[_0x23d342(0xaa)]),_0x2154ca[_0x23d342(0x159)]=_0x2154ca[_0x23d342(0x175)][_0x23d342(0x13f)](_0x26268f['viNxK']),_0x2154ca[_0x23d342(0xd2)]=_0x2154ca[_0x23d342(0x175)][_0x23d342(0x13f)](_0x23d342(0x157)),_0x2154ca[_0x23d342(0xaf)]=_0x2154ca['details'][_0x23d342(0x13f)]('tien_cp'),_0x2154ca[_0x23d342(0x110)]=_0x2154ca[_0x23d342(0x175)][_0x23d342(0x13f)](_0x23d342(0x12b)),_0x2154ca[_0x23d342(0xc2)]=_0x2154ca[_0x23d342(0xc2)]||0x0,_0x2154ca[_0x23d342(0x14a)]=_0x2154ca[_0x23d342(0x175)][_0x23d342(0x13f)](_0x26268f[_0x23d342(0xc0)]),_0x2154ca[_0x23d342(0xb0)]=_0x2154ca['details'][_0x23d342(0x13f)](_0x26268f[_0x23d342(0x16b)]),_0x2154ca[_0x23d342(0x108)]=_0x2154ca[_0x23d342(0x175)][_0x23d342(0x13f)](_0x26268f[_0x23d342(0x90)]),_0x2154ca['t_tien_hoa_hong_ctv']=_0x2154ca[_0x23d342(0x175)]['csum'](_0x26268f[_0x23d342(0xa4)]),_0x2154ca['t_tien_hoa_hong_ql']=_0x2154ca[_0x23d342(0x175)][_0x23d342(0x13f)](_0x26268f[_0x23d342(0x158)]),_0x2154ca[_0x23d342(0x181)]=_0x2154ca['tien_freeship']||0x0,_0x2154ca[_0x23d342(0x17a)]=_0x2154ca['tien_phi_vc']||0x0;if(_0x2154ca[_0x23d342(0xe9)]){const _0x51cc29=_0x26268f[_0x23d342(0x117)][_0x23d342(0x149)]('|');let _0x27aba4=0x0;while(!![]){switch(_0x51cc29[_0x27aba4++]){case'0':_0x2154ca[_0x23d342(0x10a)]=_0x26268f[_0x23d342(0x14f)](_0x2154ca[_0x23d342(0x10a)],_0x2154ca[_0x23d342(0xe9)][_0x23d342(0x13f)](_0x26268f['BqreE']));continue;case'1':_0x2154ca[_0x23d342(0xad)]=_0x2154ca[_0x23d342(0xe9)][_0x23d342(0x13f)](_0x26268f[_0x23d342(0x96)]);continue;case'2':_0x2154ca[_0x23d342(0x172)]=_0x26268f[_0x23d342(0x144)](_0x2154ca[_0x23d342(0xe9)]['csum'](_0x26268f['nCKSo']),_0x2154ca[_0x23d342(0xe9)]['csum'](_0x23d342(0x157)));continue;case'3':_0x2154ca[_0x23d342(0x108)]=_0x26268f[_0x23d342(0xb3)](_0x2154ca[_0x23d342(0x108)],_0x2154ca['details_tl'][_0x23d342(0x13f)](_0x26268f[_0x23d342(0x90)]));continue;case'4':_0x2154ca['t_tien_hoa_hong']=_0x26268f[_0x23d342(0x17e)](_0x2154ca['t_tien_hoa_hong'],_0x2154ca[_0x23d342(0xe9)][_0x23d342(0x13f)](_0x26268f[_0x23d342(0x16b)]));continue;case'5':_0x2154ca[_0x23d342(0x148)]=_0x2154ca['details_tl'][_0x23d342(0x13f)](_0x26268f[_0x23d342(0x121)]);continue;case'6':_0x2154ca[_0x23d342(0xc8)]=_0x2154ca[_0x23d342(0xe9)][_0x23d342(0x13f)](_0x26268f[_0x23d342(0xa2)]);continue;case'7':_0x2154ca[_0x23d342(0x9f)]=_0x26268f[_0x23d342(0x162)](_0x2154ca[_0x23d342(0x9f)],_0x2154ca[_0x23d342(0xe9)]['csum'](_0x23d342(0x17c)));continue;}break;}}else _0x2154ca[_0x23d342(0x172)]=0x0,_0x2154ca['t_sl_nhap']=0x0,_0x2154ca[_0x23d342(0xc8)]=0x0;_0x26268f[_0x23d342(0xc1)](_0x5b9dd3,null,_0x2154ca);}else _0x4e6d86['$or']=[{'user_nv':_0x44c7d1[_0x23d342(0x15d)]},{'user_ctv':_0x14f5e0[_0x23d342(0x15d)]}];},function(_0x3e780d,_0x5d372b){const _0x274cc9=_0x46570c,_0x2a21e0={'ypfPT':function(_0x54865c,_0x1fd4de){const _0x2383d1=_0x2e23;return _0x26268f[_0x2383d1(0x119)](_0x54865c,_0x1fd4de);},'tuOPk':function(_0x37c334,_0x5235b3){const _0x3ab4f9=_0x2e23;return _0x26268f[_0x3ab4f9(0x144)](_0x37c334,_0x5235b3);},'PXBwd':function(_0x3e9c9b,_0x11e07a){return _0x3e9c9b-_0x11e07a;},'jZdlj':function(_0x49e065,_0x3dd4f8){const _0x1d1c97=_0x2e23;return _0x26268f[_0x1d1c97(0x144)](_0x49e065,_0x3dd4f8);},'IuYFr':function(_0xaad961,_0x4c9a1d){return _0xaad961-_0x4c9a1d;},'stCTX':function(_0x3766a2,_0x21e05a){const _0x22fd79=_0x2e23;return _0x26268f[_0x22fd79(0x154)](_0x3766a2,_0x21e05a);},'nYWCh':function(_0x80c47f,_0x4d68e3){const _0x22aa13=_0x2e23;return _0x26268f[_0x22aa13(0x138)](_0x80c47f,_0x4d68e3);},'vXeTY':function(_0x1fffa5,_0x40850d){return _0x1fffa5-_0x40850d;},'LnaEy':function(_0x41b8cf,_0x191b19){const _0xa6c9a8=_0x2e23;return _0x26268f[_0xa6c9a8(0x138)](_0x41b8cf,_0x191b19);}};if(_0x3e780d)return _0x26268f['cyXIL'](_0x518f0a,_0x3e780d);let _0x2977d8=_0x4bcf37[_0x274cc9(0xd9)]||_0x4bcf37[_0x274cc9(0x10d)]||[_0x274cc9(0x10f)];if(_0x26268f[_0x274cc9(0x153)](typeof _0x2977d8,_0x26268f[_0x274cc9(0xa9)]))_0x2977d8=[_0x2977d8];_0x5d372b['groupBy'](_0x2977d8,[{'name':_0x26268f['dZnDk'],'value':_0x26268f[_0x274cc9(0x173)]},{'name':_0x26268f[_0x274cc9(0xd5)],'value':_0x26268f[_0x274cc9(0xd5)]},{'name':_0x274cc9(0x122),'value':_0x26268f[_0x274cc9(0x8d)]},{'name':_0x26268f['lFRdd'],'value':_0x26268f[_0x274cc9(0xbb)]},{'name':_0x26268f[_0x274cc9(0x107)],'value':_0x26268f['gQcSc']},{'name':_0x26268f[_0x274cc9(0xa5)],'value':_0x26268f[_0x274cc9(0xa5)]},{'name':_0x26268f['hbOlS'],'value':_0x26268f['hbOlS']},{'name':_0x26268f[_0x274cc9(0xf4)],'value':_0x26268f[_0x274cc9(0xf4)]},{'name':_0x26268f[_0x274cc9(0x156)],'value':_0x26268f[_0x274cc9(0x156)]},{'name':_0x26268f[_0x274cc9(0x99)],'value':_0x26268f[_0x274cc9(0x99)]},{'name':_0x26268f[_0x274cc9(0xf1)],'value':_0x26268f[_0x274cc9(0xf1)]},{'name':_0x26268f[_0x274cc9(0xd3)],'value':_0x26268f[_0x274cc9(0xd3)]},{'name':_0x274cc9(0x160),'value':_0x26268f[_0x274cc9(0x126)]},{'name':_0x274cc9(0x11b),'value':_0x26268f[_0x274cc9(0x16c)]},{'name':_0x274cc9(0x14a),'value':_0x26268f[_0x274cc9(0xa8)]},{'name':_0x274cc9(0xad),'value':_0x26268f[_0x274cc9(0x16a)]},{'name':_0x26268f[_0x274cc9(0x10e)],'value':_0x26268f['KKfGF']},{'name':'t_tien_thue_tl','value':_0x26268f[_0x274cc9(0x170)]},{'name':'t_tien_nhap','value':_0x274cc9(0xc8)},{'name':_0x26268f[_0x274cc9(0x180)],'value':_0x274cc9(0xcd)},{'name':'t_tien_hoa_hong','value':_0x26268f[_0x274cc9(0x118)]},{'name':_0x26268f[_0x274cc9(0xed)],'value':_0x26268f[_0x274cc9(0xed)]},{'name':_0x26268f[_0x274cc9(0x135)],'value':_0x26268f[_0x274cc9(0x135)]},{'name':_0x26268f['UoNRC'],'value':_0x26268f[_0x274cc9(0x98)]},..._0x2d2461],async function(_0x466d2b,_0x410af0){const _0x55ca04=_0x274cc9,_0x31179c={'ADRKi':_0x1a5146[_0x55ca04(0x12d)],'SOOek':_0x1a5146[_0x55ca04(0xb8)],'KPmkt':_0x1a5146[_0x55ca04(0xb1)],'GkMOu':_0x1a5146[_0x55ca04(0x16f)],'tyfwc':_0x55ca04(0x157),'bMFkW':_0x1a5146[_0x55ca04(0xf5)],'IxABF':_0x55ca04(0x12b),'YlHpJ':_0x1a5146[_0x55ca04(0x182)],'EbXbT':_0x1a5146[_0x55ca04(0x13b)],'IkeSM':_0x55ca04(0x15c),'jEITl':function(_0x3f9d44,_0x2da635){return _0x3f9d44-_0x2da635;},'DadHB':_0x55ca04(0x103),'ihgif':function(_0x105a09,_0x50afcb){return _0x1a5146['VkxGl'](_0x105a09,_0x50afcb);},'SolGG':_0x55ca04(0xbd),'CgZuN':_0x1a5146['TAnRU'],'qXUnp':function(_0x48f95c,_0x52fa02,_0x3d2e4a){return _0x1a5146['avAnH'](_0x48f95c,_0x52fa02,_0x3d2e4a);}};if(_0x466d2b)return _0x1a5146[_0x55ca04(0x8f)](_0x518f0a,_0x466d2b);let _0x34592a=0x1;_0x410af0[_0x55ca04(0xb5)](function(_0x16e2eb){const _0x200c13=_0x55ca04;if(_0x2a21e0[_0x200c13(0xab)](_0x200c13(0x12c),_0x200c13(0x16e))){_0x59768a[_0x200c13(0x136)]=_0x327209['details']['csum'](_0x31179c[_0x200c13(0x176)]),_0x472b6a[_0x200c13(0x91)]=_0x3c2ec8[_0x200c13(0x175)][_0x200c13(0x13f)](_0x31179c['SOOek']),_0xb717d5[_0x200c13(0x122)]=_0x1ebc8a[_0x200c13(0x175)][_0x200c13(0x13f)](_0x31179c[_0x200c13(0xac)]),_0x1f44c8[_0x200c13(0x159)]=_0x277897[_0x200c13(0x175)][_0x200c13(0x13f)](_0x31179c[_0x200c13(0x92)]),_0x16f20b[_0x200c13(0xd2)]=_0x5d9bb9[_0x200c13(0x175)]['csum'](_0x31179c[_0x200c13(0xd1)]),_0xf736c0['t_tien_cp']=_0x4a7d74['details'][_0x200c13(0x13f)](_0x31179c[_0x200c13(0x114)]),_0x4629ce[_0x200c13(0x110)]=_0x39cf52[_0x200c13(0x175)][_0x200c13(0x13f)](_0x31179c[_0x200c13(0xeb)]),_0x1df344['tien_ck_hd']=_0x184dd4[_0x200c13(0xc2)]||0x0,_0x4e627d['t_tien_xuat']=_0x5288c6[_0x200c13(0x175)][_0x200c13(0x13f)](_0x200c13(0xc4)),_0x508acd['t_tien_hoa_hong']=_0x28037c[_0x200c13(0x175)][_0x200c13(0x13f)]('tien_hoa_hong'),_0x437e26[_0x200c13(0x108)]=_0x590edb[_0x200c13(0x175)][_0x200c13(0x13f)](_0x200c13(0xe7)),_0xb6bd93[_0x200c13(0x10a)]=_0x827257[_0x200c13(0x175)][_0x200c13(0x13f)](_0x31179c['YlHpJ']),_0x5df960[_0x200c13(0x9f)]=_0x573069[_0x200c13(0x175)][_0x200c13(0x13f)](_0x31179c[_0x200c13(0x13c)]),_0x460801[_0x200c13(0x181)]=_0x3b9458[_0x200c13(0x181)]||0x0,_0x1dfa71['tien_phi_vc']=_0x3bf72c[_0x200c13(0x17a)]||0x0;if(_0x360453[_0x200c13(0xe9)]){const _0x1446b9=_0x31179c[_0x200c13(0x9c)]['split']('|');let _0x86a367=0x0;while(!![]){switch(_0x1446b9[_0x86a367++]){case'0':_0x18b069['t_tien_thue_tl']=_0x46cd32['details_tl']['csum'](_0x200c13(0x17f));continue;case'1':_0x116455[_0x200c13(0xb0)]=_0x31179c[_0x200c13(0x93)](_0x4fb657[_0x200c13(0xb0)],_0x3913e7[_0x200c13(0xe9)][_0x200c13(0x13f)](_0x31179c[_0x200c13(0xe6)]));continue;case'2':_0x4993d7['t_tien_hoa_hong_gt']=_0x31179c[_0x200c13(0x12a)](_0xb5539f[_0x200c13(0x108)],_0x551b0f[_0x200c13(0xe9)][_0x200c13(0x13f)]('tien_hoa_hong_gt'));continue;case'3':_0x2785b8['t_tien_hoa_hong_ql']=_0x31179c[_0x200c13(0x12a)](_0x237364[_0x200c13(0x9f)],_0x2aa0d1[_0x200c13(0xe9)][_0x200c13(0x13f)](_0x200c13(0x17c)));continue;case'4':_0x477eab['t_tien_nhap']=_0x3dd5aa[_0x200c13(0xe9)][_0x200c13(0x13f)](_0x31179c['SolGG']);continue;case'5':_0x393be0[_0x200c13(0xad)]=_0x4c9e4a[_0x200c13(0xe9)][_0x200c13(0x13f)](_0x31179c[_0x200c13(0xfe)]);continue;case'6':_0x53e9fe[_0x200c13(0x10a)]=_0x5f0b33['t_tien_hoa_hong_ctv']-_0x4070d4['details_tl'][_0x200c13(0x13f)](_0x31179c[_0x200c13(0xef)]);continue;case'7':_0x8e0e4e[_0x200c13(0x172)]=_0x31179c[_0x200c13(0x93)](_0x98d6af['details_tl'][_0x200c13(0x13f)](_0x31179c[_0x200c13(0xac)]),_0x20c65d[_0x200c13(0xe9)][_0x200c13(0x13f)](_0x31179c[_0x200c13(0xd1)]));continue;}break;}}else _0x4429d4[_0x200c13(0x172)]=0x0,_0x158c2b[_0x200c13(0xad)]=0x0,_0x34d5f8[_0x200c13(0xc8)]=0x0;_0x31179c[_0x200c13(0x14e)](_0x5640f2,null,_0x224560);}else{const _0x2db638=_0x200c13(0xf3)[_0x200c13(0x149)]('|');let _0x5b3357=0x0;while(!![]){switch(_0x2db638[_0x5b3357++]){case'0':_0x16e2eb[_0x200c13(0x137)]=_0x16e2eb[_0x200c13(0xa7)]-_0x16e2eb[_0x200c13(0x14a)]-_0x2a21e0[_0x200c13(0xca)](_0x16e2eb[_0x200c13(0x172)],_0x16e2eb['t_tien_nhap']);continue;case'1':_0x34592a++;continue;case'2':_0x16e2eb[_0x200c13(0xce)]=_0x2a21e0[_0x200c13(0xa3)](_0x16e2eb['t_doanh_thu'],_0x16e2eb[_0x200c13(0x172)]);continue;case'3':_0x16e2eb[_0x200c13(0x113)]=_0x2a21e0[_0x200c13(0xa3)](_0x2a21e0['jZdlj'](_0x2a21e0['IuYFr'](_0x2a21e0[_0x200c13(0x14d)](_0x2a21e0[_0x200c13(0x152)](_0x16e2eb[_0x200c13(0x122)]-(_0x16e2eb[_0x200c13(0xd2)]||0x0),_0x16e2eb['t_thue']||0x0),_0x16e2eb[_0x200c13(0x17a)]||0x0),_0x16e2eb['tien_freeship']||0x0),_0x16e2eb[_0x200c13(0xc2)]||0x0),_0x16e2eb[_0x200c13(0xe3)]||0x0);continue;case'4':_0x16e2eb['t_doanh_thu']=_0x2a21e0['tuOPk'](_0x2a21e0[_0x200c13(0x16d)](_0x16e2eb['t_tien_hang_ct'],_0x16e2eb['t_tien_ck']||0x0)+(_0x16e2eb['tien_phi_vc']||0x0),_0x16e2eb['tien_freeship']||0x0)-(_0x16e2eb[_0x200c13(0xc2)]||0x0)-(_0x16e2eb[_0x200c13(0xe3)]||0x0);continue;case'5':_0x16e2eb[_0x200c13(0xb9)]=![];continue;case'6':_0x16e2eb[_0x200c13(0x100)]=_0x2a21e0[_0x200c13(0x101)](_0x16e2eb[_0x200c13(0x172)],_0x16e2eb[_0x200c13(0x148)]);continue;case'7':_0x16e2eb[_0x200c13(0xcb)]=_0x16e2eb[_0x200c13(0x11b)]||0x0;continue;case'8':_0x16e2eb[_0x200c13(0xdc)]=_0x2d2461[_0x200c13(0xa1)](_0x53bec8=>_0x16e2eb[_0x53bec8['ma']]||0x0)['reduce']((_0x3c11a3,_0x1cdf5f)=>_0x3c11a3+_0x1cdf5f,0x0);continue;case'9':_0x16e2eb['stt']=_0x34592a;continue;}break;}}}),_0x410af0['forEach'](_0x505066=>{const _0xe9eb6=_0x55ca04;_0x505066[_0xe9eb6(0x100)]=_0x505066['t_tien_tl']+_0x505066[_0xe9eb6(0x148)];}),_0x1a5146[_0x55ca04(0x120)](_0x518f0a,null,_0x410af0);});});}else _0x13309d=[_0x1bbde2];});};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
const databanle=require("./databanle"),async=require("async");
|
|
2
|
-
module.exports=async function($condition$$){if(!$condition$$.id_app)throw"B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1:id_app";$condition$$.den_ngay||($condition$$.den_ngay=new Date);const $query$$={id_app:$condition$$.id_app};$query$$.ngay_ct={$lte:$condition$$.den_ngay};$condition$$.tu_ngay&&($query$$.ngay_ct.$gte=$condition$$.tu_ngay);$condition$$.ma_dvcs&&($query$$.ma_dvcs=$condition$$.ma_dvcs);$condition$$.ma_nv&&($query$$.ma_nv=$condition$$.ma_nv);$condition$$.user_nv_giao_hang&&
|
|
3
|
-
($query$$.user_nv_giao_hang=$condition$$.user_nv_giao_hang);$condition$$.ma_kho&&($query$$.$or=[{ma_kho:$condition$$.ma_kho},{"details.ma_kho":$condition$$.ma_kho}]);if($condition$$.ma_kh)$query$$.ma_kh=$condition$$.ma_kh;else{var $condition_kh_custs_q$$={};if($condition$$.nh_kh){var $nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,$condition$$.nh_kh,{status:!0});$condition_kh_custs_q$$.nh_kh={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$}}$condition$$.nh_kh2&&
|
|
4
|
-
($nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,$condition$$.nh_kh2,{status:!0}),$condition_kh_custs_q$$.nh_kh2={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$});$condition$$.nh_kh3&&($nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,$condition$$.nh_kh3,{status:!0}),$condition_kh_custs_q$$.nh_kh3={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$});$condition$$.nh_kh4&&($nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=
|
|
5
|
-
await global.getModel("group").getAllChildrenGroup($condition$$.id_app,$condition$$.nh_kh4,{status:!0}),$condition_kh_custs_q$$.nh_kh4={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$});$condition$$.nh_kh5&&($nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,$condition$$.nh_kh5,{status:!0}),$condition_kh_custs_q$$.nh_kh5={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$});Object.keys($condition_kh_custs_q$$).length>0&&($condition_kh_custs_q$$.id_app=
|
|
6
|
-
$condition$$.id_app,$condition_kh_custs_q$$=await global.getModel("customer").find($condition_kh_custs_q$$,{ma_kh:1}).lean(),$query$$.ma_kh={$in:$condition_kh_custs_q$$.map($c$$=>$c$$.ma_kh)})}$condition$$.ma_ct&&($query$$.ma_ct=$condition$$.ma_ct);$condition$$.user_hoa_hong&&($query$$.$or?$query$$.$and=[{$or:[{user_nv:$condition$$.user_hoa_hong},{user_ctv:$condition$$.user_hoa_hong},{user_gt:$condition$$.user_hoa_hong},{user_ql:$condition$$.user_hoa_hong},{"details.user_nv":$condition$$.user_hoa_hong},
|
|
7
|
-
{"details.user_ctv":$condition$$.user_hoa_hong},{"details.user_gt":$condition$$.user_hoa_hong},{"details.user_ql":$condition$$.user_hoa_hong}]}]:$query$$.$or=[{user_nv:$condition$$.user_hoa_hong},{user_ctv:$condition$$.user_hoa_hong},{user_gt:$condition$$.user_hoa_hong},{user_ql:$condition$$.user_hoa_hong},{"details.user_nv":$condition$$.user_hoa_hong},{"details.user_ctv":$condition$$.user_hoa_hong},{"details.user_gt":$condition$$.user_hoa_hong},{"details.user_ql":$condition$$.user_hoa_hong}]);let $ma_vts$$;
|
|
8
|
-
if($condition$$.ma_vt)$query$$["details.ma_vt"]=$condition$$.ma_vt,$ma_vts$$=[$condition$$.ma_vt];else if($condition$$.ma_ncc||$condition$$.ma_nvt||$condition$$.ma_danh_muc_cty||$condition$$.ma_danh_muc)$condition_kh_custs_q$$={id_app:$condition$$.id_app},$condition$$.ma_ncc&&($condition_kh_custs_q$$.ma_ncc=$condition$$.ma_ncc),$condition$$.ma_nvt&&($condition_kh_custs_q$$.ma_nvt=$condition$$.ma_nvt),$condition$$.ma_danh_muc_cty&&($condition_kh_custs_q$$.ma_danh_muc_cty=$condition$$.ma_danh_muc_cty),
|
|
9
|
-
$condition$$.ma_danh_muc&&($condition_kh_custs_q$$.ma_danh_muc=$condition$$.ma_danh_muc),$ma_vts$$=(await global.getModel("dmvt").find($condition_kh_custs_q$$,{ma_vt:1}).lean()).map($v$$=>$v$$.ma_vt),$query$$["details.ma_vt"]={$in:$ma_vts$$};$condition$$.id_cs&&($query$$["details.id_cs"]=$condition$$.id_cs);$condition$$.id_cs_ck&&($query$$["details.id_cs_ck"]=$condition$$.id_cs_ck);$query$$.show_payment_method=!1;return new Promise(($resolve$$,$reject$$)=>{databanle($query$$,function($error$$,$rs$$){if($error$$)return $reject$$($error$$);
|
|
10
|
-
async.mapSeries($rs$$,function($r$$,$callback$$){let $details$$=$r$$.details||[];delete $r$$.details;$details$$=$details$$.map($_r_detail$$=>{delete $_r_detail$$._id;$_r_detail$$.nxt=2;$_r_detail$$={...$r$$,...$_r_detail$$};$_r_detail$$.ma_nv||($_r_detail$$.ma_nv=$r$$.ma_nv);$_r_detail$$.ma_dt||($_r_detail$$.ma_dt=$r$$.ma_dt);$_r_detail$$.ma_bp||($_r_detail$$.ma_bp=$r$$.ma_bp);$_r_detail$$.ma_kh||($_r_detail$$.ma_kh=$r$$.ma_kh);return $_r_detail$$});$r$$.details_tl&&($details$$=[...$details$$,...$r$$.details_tl.map($detail$$=>
|
|
11
|
-
{delete $detail$$._id;$detail$$={...$r$$,...$detail$$};$detail$$.ma_nv||($detail$$.ma_nv=$r$$.ma_nv);$detail$$.ma_dt||($detail$$.ma_dt=$r$$.ma_dt);$detail$$.ma_bp||($detail$$.ma_bp=$r$$.ma_bp);$detail$$.tien_hang_nt=0-$detail$$.tien_hang_nt||0;$detail$$.tien_hang=0-($detail$$.tien_hang||0);$detail$$.tien_hang_ct_nt=0-$detail$$.tien_hang_ct_nt||0;$detail$$.tien_hang_ct=0-($detail$$.tien_hang_ct||0);$detail$$.tien_ck=0-($detail$$.tien_ck||0);$detail$$.tien_ck_nt=0-($detail$$.tien_ck_nt||0);$detail$$.tien_thue=
|
|
12
|
-
0-($detail$$.tien_thue||0);$detail$$.tien_thue_nt=0-($detail$$.tien_thue_nt||0);$detail$$.tien_xuat_tmp=0-($detail$$.tien_nhap_nt||0);$detail$$.tien_xuat_nt=0-($detail$$.tien_nhap_nt||0);$detail$$.sl_xuat=0;$detail$$.tien_hoa_hong=0-$detail$$.tien_hoa_hong;$detail$$.tien_hoa_hong_gt=0-$detail$$.tien_hoa_hong_gt;$detail$$.tien_hoa_hong_ctv=0-$detail$$.tien_hoa_hong_ctv;$detail$$.tien_hoa_hong_ql=0-$detail$$.tien_hoa_hong_ql;$detail$$.nxt=1;return $detail$$})],delete $r$$.details_tl);$callback$$(null,
|
|
13
|
-
$details$$)},async function($error$$,$report$$){if($error$$)return $reject$$($error$$);$report$$=$report$$.reduce(($a$$,$b$$)=>$a$$.concat($b$$),[]);$ma_vts$$&&($report$$=$report$$.filter($r$$=>$ma_vts$$.indexOf($r$$.ma_vt)>=0));$condition$$.id_cs&&($report$$=$report$$.filter($r$$=>$r$$.id_cs===$condition$$.id_cs));$condition$$.id_cs_ck&&($report$$=$report$$.filter($r$$=>$r$$.id_cs_ck===$condition$$.id_cs_ck));await $report$$.asyncJoinModel2($condition$$.id_app,"dmqddvt",{where:{ma_dvt:"ma_dvt",ma_vt:"ma_vt"},
|
|
14
|
-
fields:["tu","mau","ma_dvt_goc"]});$report$$.forEach(function($r$$,$he_so_qd_i$$){$r$$.stt=$he_so_qd_i$$+1;$r$$.id_ct=$r$$._id.toString();$r$$.bold=!1;$r$$.tt=$r$$.tien=($r$$.tien_hang_ct||0)-($r$$.tien_ck||0)+($r$$.tien_thue||0);$r$$.loi_nhuan_tmp=$r$$.tien_xuat_tmp?$r$$.tt-$r$$.tien_xuat_tmp-($r$$.tien_thue||0)-($r$$.tien_cp||0):0;$r$$.loi_nhuan=$r$$.tt-($r$$.tien_xuat||0)-($r$$.tien_thue||0)-($r$$.tien_cp||0);$r$$.t_hoa_hong=$r$$.tien_hoa_hong+$r$$.tien_hoa_hong_gt+$r$$.tien_hoa_hong_ctv+$r$$.tien_hoa_hong_ql;
|
|
15
|
-
$r$$.mau?($he_so_qd_i$$=$r$$.tu/$r$$.mau,$r$$.sl_xuat_qd=$he_so_qd_i$$*($r$$.sl_xuat||0),$r$$.sl_nhap_qd=$he_so_qd_i$$*($r$$.sl_nhap||0)):($r$$.sl_xuat_qd=$r$$.sl_xuat||0,$r$$.sl_nhap_qd=$r$$.sl_nhap||0)});$resolve$$($report$$)})})})};
|
|
1
|
+
function _0x54a3(){const _0x334283=['BMHFA2G0','t1rcuMO','z0nJtu0','mJe5ndiZvuPrsgfq','z2znBeq','r29nDve','DgLLBL9Oyw5N','rwDjsM4','AvnAwKu','zgv0ywLSCY5Pzf9JCW','wMTRtK0','sMrjquG','BNz5vMS','ufjzqw8','DgLLBL9Oyw5Nx2n0x250','AwfbDxa','Duzoqxu','C2XFBMHHCa','BwfFA2HV','DgLLBL9Oyw5Nx2n0','AwrFy3m','BMDHEv9JDa','rfHRwLK','DgLLBL9JCa','BwfFA2G','qLbizLi','mZmZmJC5nvvgENb6yG','ndm0DffUr3zw','yxn5BMnkB2LUtw9KzwWY','Ew1eyw4','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsbJW6fJihrOyw0GC+g7KtPPzf9HCha','qxLqtum','tMzcA1O','BMHFA2G','re9luem','y29UC3rYDwn0B3i','mtKYofHKtKfgvW','DgLLBG','EMvPsfO','suT5Afq','DvH6rMi','BwfWtgLTAxq','qwjUrNa','r2H5vwm','Dg9tDhjPBMC','q0TbrhG','B29UswK','mty5mNzAvM9TsG','whzXuvO','BwfFyNa','tMvJDw8','BwfW','BwfFzhzJCW','BNH0','AejoBNi','C2XFBMHHCf9Xza','A3HVyuG','BwfFzhz0x2DVyW','y3vZDg9Tzxi','EMrkEeO','BgvHBG','mteWtgjAzgXg','s0jpq1O','zhPcrMK','x2LK','BwfFy3q','AKnlyKO','DgLLBL90AhvLx250','C2XFEhvHDf9Xza','DMvfqxK','BMHFA2GY','BwfFBNz0','DgLLBL9JAW','BMHFA2GZ','z2v0qwXSq2HPBgrYzw5hCM91Ca','zgv0ywLSCW','CMvKDwnL','ue52tee','BMXftfi','whLXzgK','zxf6D2W','qMXTzLe','jgD0zq','BwfFDNq','t0noy00','AwrFyxbW','uenkz3u','BwfFzhq','BhnqDve','CNfquw0','r3D2uvC','DgLLBL9OB2fFAg9Uz19XBa','Bg9Px25ODwfUx3rTCa','C21Lv0S','z2v0tw9KzwW','uKLerxK','yM9Sza','BMHFA2G1','wKjtyKO','zgv0ywLSC190Ba','BwfFzhz0','zgv0ywLSCY5Pzf9JC19JAW','zxHWB3j0CW','C3r0','vMzcqvq','DgLLBL94Dwf0x250','DNviuva','mtG2mdm3mhbpDfDzsG','zMLUza','qMH3zxu','uhbfveS','zg1Xzgr2Da','kcGOlISPkYKRksSK','thLPqKq','sMTisu0','BwfFBNy','AhLiqNe','D0PiuMO','rertEwu','ALvcswq','DgLLBL9OB2fFAg9UzW','qLz2yvC','jg9Y','rKDfu2K','CKX5CKm','Df9OB2fFAg9UzW','nZmZnJC3m0XLywvYBG','Cu9yEMe','DgLLBL9OB2fFAg9Uz19NDa','yw1vwLO','zgvUx25NyxK','tuHczNi','mtm5odK1nNbQzKjztG','z2HNCwW','AwrFy3nFy2S','DhvFBMDHEq','qNDlCw4','ChHyALy','BK1tqxy','z2vbALC','DgLLBL9JA19UDa','s2jMDxO','Agnkzg8','vhjOsge','yxbWBhK','ruHQAvK','lI9KyxrHyMfUBgu','DxnLCL9UDL9NAwfVx2HHBMC','BwfFBMnJ','DgLLBL90AhvL','zMLSDgvY','AgPiweq','DgLLBL9Oyw5Nx250','t2HyELu','Aw5KzxHpzG','tvPowMm','zMj2BKe','sKHOALa','weHAA0y','zeXIq3a','vgrhwg8','u0DPru4','BwfFzgfUAf9TDwnFy3r5','s1bovwK','y29Uy2f0','tNPUEfy','vM90Ahu','uK1VvLK','BwfFzgfUAf9TDwm','ohbAqMnkrW','DuXvEwC','whfOBfO','DgLLBL9OB2fFAg9Uz19JDhy','Bwf1','DgLLBL94Dwf0x3rTCa','BxbkDK0','C2vHCMnO','sw5hwNa','qxber1O','mtG1mJH5CNHezLK','C2XFEhvHDa','sNjNt2S','z3jVDxa','D0HQDe8','uhfmtfK','tfDzt2W','D25HrwO','DxnLCL9OB2fFAg9UzW','ue5hBLO','vwn5sve','tLfOB2C','DgLLBL9UAgfWx250','y05jv1u'];_0x54a3=function(){return _0x334283;};return _0x54a3();}function _0x28da(_0x128394,_0x340287){const _0x1fad9d=_0x54a3();return _0x28da=function(_0x2f25dc,_0x459e96){_0x2f25dc=_0x2f25dc-0xb5;let _0x54a33e=_0x1fad9d[_0x2f25dc];if(_0x28da['VAhQnp']===undefined){var _0x28da8d=function(_0x2f3c03){const _0x13cd53='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e625e='',_0x3c8cf2='',_0x281671=_0x5e625e+_0x28da8d;for(let _0x47b283=0x0,_0x21866d,_0x2b3ae1,_0x2a4d75=0x0;_0x2b3ae1=_0x2f3c03['charAt'](_0x2a4d75++);~_0x2b3ae1&&(_0x21866d=_0x47b283%0x4?_0x21866d*0x40+_0x2b3ae1:_0x2b3ae1,_0x47b283++%0x4)?_0x5e625e+=_0x281671['charCodeAt'](_0x2a4d75+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x21866d>>(-0x2*_0x47b283&0x6)):_0x47b283:0x0){_0x2b3ae1=_0x13cd53['indexOf'](_0x2b3ae1);}for(let _0xd6a6e7=0x0,_0xb01cfe=_0x5e625e['length'];_0xd6a6e7<_0xb01cfe;_0xd6a6e7++){_0x3c8cf2+='%'+('00'+_0x5e625e['charCodeAt'](_0xd6a6e7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3c8cf2);};_0x28da['TfoNbx']=_0x28da8d,_0x128394=arguments,_0x28da['VAhQnp']=!![];}const _0x863222=_0x1fad9d[0x0],_0x1ec9a5=_0x2f25dc+_0x863222,_0x5cb042=_0x128394[_0x1ec9a5];if(!_0x5cb042){const _0x318b0e=function(_0x32b137){this['HzycSM']=_0x32b137,this['knHzGY']=[0x1,0x0,0x0],this['BdacMy']=function(){return'newState';},this['SCmTCi']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['BAqeFD']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x318b0e['prototype']['SNcjLp']=function(){const _0x929eff=new RegExp(this['SCmTCi']+this['BAqeFD']),_0x540433=_0x929eff['test'](this['BdacMy']['toString']())?--this['knHzGY'][0x1]:--this['knHzGY'][0x0];return this['PXJCGC'](_0x540433);},_0x318b0e['prototype']['PXJCGC']=function(_0x45407e){if(!Boolean(~_0x45407e))return _0x45407e;return this['dMYpVG'](this['HzycSM']);},_0x318b0e['prototype']['dMYpVG']=function(_0x33840c){for(let _0xf902e2=0x0,_0x151a1f=this['knHzGY']['length'];_0xf902e2<_0x151a1f;_0xf902e2++){this['knHzGY']['push'](Math['round'](Math['random']())),_0x151a1f=this['knHzGY']['length'];}return _0x33840c(this['knHzGY'][0x0]);},new _0x318b0e(_0x28da)['SNcjLp'](),_0x54a33e=_0x28da['TfoNbx'](_0x54a33e),_0x128394[_0x1ec9a5]=_0x54a33e;}else _0x54a33e=_0x5cb042;return _0x54a33e;},_0x28da(_0x128394,_0x340287);}const _0x430ac8=_0x28da;(function(_0x1b18d1,_0x126404){const _0x13112c=_0x28da,_0x1a528b=_0x1b18d1();while(!![]){try{const _0x569d75=-parseInt(_0x13112c(0x124))/0x1+parseInt(_0x13112c(0x145))/0x2*(parseInt(_0x13112c(0x150))/0x3)+-parseInt(_0x13112c(0xe4))/0x4+-parseInt(_0x13112c(0x13b))/0x5+-parseInt(_0x13112c(0x113))/0x6*(-parseInt(_0x13112c(0x13c))/0x7)+-parseInt(_0x13112c(0x109))/0x8*(parseInt(_0x13112c(0xde))/0x9)+-parseInt(_0x13112c(0xcb))/0xa*(-parseInt(_0x13112c(0x15e))/0xb);if(_0x569d75===_0x126404)break;else _0x1a528b['push'](_0x1a528b['shift']());}catch(_0x30f725){_0x1a528b['push'](_0x1a528b['shift']());}}}(_0x54a3,0x84f5c));const _0x459e96=(function(){const _0x5c969a=_0x28da,_0x7048d9={'fgUWy':_0x5c969a(0x12a),'JrgOk':'ECFqe'};let _0x3ae3b3=!![];return function(_0x3ddce9,_0x5e1efd){const _0x36ae3=_0x3ae3b3?function(){const _0x1697f0=_0x28da,_0x3174f3={'fbvnA':_0x7048d9['fgUWy']};if(_0x7048d9[_0x1697f0(0x115)]!==_0x7048d9[_0x1697f0(0x115)])_0x49b297[_0x3174f3[_0x1697f0(0xfc)]]=_0x47947f['id_cs'];else{if(_0x5e1efd){const _0x4841f6=_0x5e1efd[_0x1697f0(0xf0)](_0x3ddce9,arguments);return _0x5e1efd=null,_0x4841f6;}}}:function(){};return _0x3ae3b3=![],_0x36ae3;};}()),_0x2f25dc=_0x459e96(this,function(){const _0xebf677=_0x28da,_0x2b1784={'EHjiY':_0xebf677(0xd0)};return _0x2f25dc[_0xebf677(0x14d)]()[_0xebf677(0x110)](_0xebf677(0xd0))['toString']()[_0xebf677(0x144)](_0x2f25dc)[_0xebf677(0x110)](_0x2b1784[_0xebf677(0xf1)]);});_0x2f25dc();const databanle=require(_0x430ac8(0xf2)),async=require('async');module[_0x430ac8(0xc6)]=async function(_0x126833){const _0x15d590=_0x430ac8,_0x9ac8c7={'AbnFp':_0x15d590(0xc5),'gfMlD':_0x15d590(0x13f),'dzBFi':function(_0x308054,_0x54464e){return _0x308054-_0x54464e;},'DOKPC':function(_0xcded8e,_0xb7fb88){return _0xcded8e-_0xb7fb88;},'NQhog':function(_0x5b32d2,_0x48d8d5){return _0x5b32d2-_0x48d8d5;},'BlmfQ':function(_0x623432,_0x5e4559){return _0x623432-_0x5e4559;},'RMoVY':function(_0x2a5a51,_0x2a2dad){return _0x2a5a51-_0x2a2dad;},'ZBSbJ':function(_0x11b61f,_0x1aaedc){return _0x11b61f-_0x1aaedc;},'jUBId':function(_0x375850,_0x20bbec){return _0x375850-_0x20bbec;},'jCKbJ':function(_0x18063c,_0x535123){return _0x18063c>=_0x535123;},'JkHIM':function(_0x1257ea,_0x275324){return _0x1257ea===_0x275324;},'AyPMC':_0x15d590(0x11a),'zeiHZ':'cfXTJ','LxOWO':_0x15d590(0x12b),'Xyqdi':function(_0x23e3a5,_0x34e785){return _0x23e3a5-_0x34e785;},'Necuo':function(_0x5c030b,_0x14c59c){return _0x5c030b>=_0x14c59c;},'nlELR':_0x15d590(0x106),'lffCf':_0x15d590(0x14e),'DXkZY':'details.ma_vt','TdGXo':_0x15d590(0x166),'mWkSu':function(_0x597685,_0x4a6f5a){return _0x597685+_0x4a6f5a;},'OCNcM':function(_0x306753,_0x11e081){return _0x306753-_0x11e081;},'NamYM':_0x15d590(0xbd),'UcyIQ':function(_0x152ba4,_0x13d817){return _0x152ba4/_0x13d817;},'PpETK':function(_0x5cd7bb,_0x344e75){return _0x5cd7bb*_0x344e75;},'rqPQm':function(_0x54d38d,_0x4d7e8f){return _0x54d38d!==_0x4d7e8f;},'JdIAH':_0x15d590(0xc4),'IuPYQ':_0x15d590(0x15a),'InGZp':'etTTG','KBOCZ':function(_0x193025,_0x444876,_0x44e99f){return _0x193025(_0x444876,_0x44e99f);},'JHhjP':_0x15d590(0x103),'hcJdo':'fooZY','QqJTD':function(_0x485804,_0x27382f){return _0x485804!==_0x27382f;},'XHZkF':'OLTaI','OhXzU':_0x15d590(0x116),'amUZZ':_0x15d590(0x117),'eqzwl':'LDaTs','hjHXD':_0x15d590(0x11c),'cNIWU':_0x15d590(0x130),'ghgql':function(_0x1f759a,_0x193310){return _0x1f759a===_0x193310;},'hBNnr':'pUcUr','VfBAT':_0x15d590(0x118),'OTBRj':_0x15d590(0x15b),'Kbfuz':_0x15d590(0x105),'nMSAv':_0x15d590(0x12a)};if(!_0x126833['id_app'])throw _0x9ac8c7[_0x15d590(0x125)];if(!_0x126833[_0x15d590(0xe2)])_0x126833[_0x15d590(0xe2)]=new Date();const _0x1b8dfc={'id_app':_0x126833[_0x15d590(0xb5)]};_0x1b8dfc[_0x15d590(0x136)]={'$lte':_0x126833[_0x15d590(0xe2)]};_0x126833[_0x15d590(0xe7)]&&(_0x1b8dfc[_0x15d590(0x136)][_0x15d590(0x173)]=_0x126833[_0x15d590(0xe7)]);_0x126833[_0x15d590(0x155)]&&(_0x1b8dfc['ma_dvcs']=_0x126833[_0x15d590(0x155)]);_0x126833[_0x15d590(0xd3)]&&(_0x1b8dfc['ma_nv']=_0x126833[_0x15d590(0xd3)]);_0x126833[_0x15d590(0xf3)]&&(_0x1b8dfc[_0x15d590(0xf3)]=_0x126833['user_nv_giao_hang']);_0x126833['ma_kho']&&(_0x1b8dfc['$or']=[{'ma_kho':_0x126833[_0x15d590(0x133)]},{'details.ma_kho':_0x126833[_0x15d590(0x133)]}]);if(_0x126833[_0x15d590(0x139)])_0x9ac8c7[_0x15d590(0xb9)](_0x9ac8c7[_0x15d590(0xfd)],_0x9ac8c7[_0x15d590(0xfd)])?_0x44501d['ma_dt']=_0x1e095a['ma_dt']:_0x1b8dfc[_0x15d590(0x139)]=_0x126833[_0x15d590(0x139)];else{if(_0x15d590(0x149)===_0x9ac8c7[_0x15d590(0xee)])_0x59cf96=_0x5ccc23[_0x15d590(0xf6)](_0x5ad26d=>_0x5ad26d[_0x15d590(0x135)]===_0x55b38d[_0x15d590(0x135)]);else{let _0x459c0a,_0x497dab,_0x1d6de6,_0x5366ef,_0x28da84,_0x1a102e={};_0x126833['nh_kh']&&(_0x9ac8c7['QqJTD'](_0x9ac8c7[_0x15d590(0xfe)],_0x9ac8c7[_0x15d590(0xfe)])?_0xd70fb6[_0x15d590(0xda)]=[{'user_nv':_0x33d4a5['user_hoa_hong']},{'user_ctv':_0x14bb46[_0x15d590(0x11b)]},{'user_gt':_0x2764e5['user_hoa_hong']},{'user_ql':_0x40cd7b['user_hoa_hong']},{'details.user_nv':_0x127b8e[_0x15d590(0x11b)]},{'details.user_ctv':_0x452245[_0x15d590(0x11b)]},{'details.user_gt':_0x109ad9[_0x15d590(0x11b)]},{'details.user_ql':_0x3e3b22[_0x15d590(0x11b)]}]:(_0x459c0a=await global[_0x15d590(0xbe)](_0x9ac8c7[_0x15d590(0xf9)])[_0x15d590(0x16b)](_0x126833[_0x15d590(0xb5)],_0x126833[_0x15d590(0x142)],{'status':!![]}),_0x1a102e['nh_kh']={'$in':_0x459c0a}));_0x126833['nh_kh2']&&(_0x9ac8c7[_0x15d590(0xd2)](_0x9ac8c7[_0x15d590(0xe1)],_0x15d590(0x119))?_0xaeb256[_0x9ac8c7[_0x15d590(0x14b)]]=_0x1a3590[_0x15d590(0xe6)]:(_0x497dab=await global['getModel'](_0x9ac8c7[_0x15d590(0xf9)])[_0x15d590(0x16b)](_0x126833[_0x15d590(0xb5)],_0x126833[_0x15d590(0x167)],{'status':!![]}),_0x1a102e[_0x15d590(0x167)]={'$in':_0x497dab}));if(_0x126833[_0x15d590(0x16a)]){if(_0x9ac8c7[_0x15d590(0xb9)](_0x9ac8c7[_0x15d590(0x171)],_0x9ac8c7[_0x15d590(0xf7)]))_0x1d6de6=await global[_0x15d590(0xbe)](_0x9ac8c7[_0x15d590(0xf9)])[_0x15d590(0x16b)](_0x126833['id_app'],_0x126833[_0x15d590(0x16a)],{'status':!![]}),_0x1a102e[_0x15d590(0x16a)]={'$in':_0x1d6de6};else throw _0x9ac8c7[_0x15d590(0x125)];}_0x126833[_0x15d590(0x121)]&&(_0x9ac8c7[_0x15d590(0x120)]===_0x9ac8c7[_0x15d590(0x120)]?(_0x5366ef=await global['getModel'](_0x9ac8c7[_0x15d590(0xf9)])[_0x15d590(0x16b)](_0x126833[_0x15d590(0xb5)],_0x126833['nh_kh4'],{'status':!![]}),_0x1a102e[_0x15d590(0x121)]={'$in':_0x5366ef}):_0x3727e4[_0x15d590(0xd3)]=_0x2ed2f9[_0x15d590(0xd3)]);_0x126833['nh_kh5']&&(_0x9ac8c7[_0x15d590(0xe5)](_0x9ac8c7[_0x15d590(0x157)],_0x9ac8c7[_0x15d590(0x157)])?(_0x28da84=await global[_0x15d590(0xbe)](_0x9ac8c7['OhXzU'])[_0x15d590(0x16b)](_0x126833['id_app'],_0x126833[_0x15d590(0xc1)],{'status':!![]}),_0x1a102e[_0x15d590(0xc1)]={'$in':_0x28da84}):(_0xb0b63a[_0x15d590(0x165)]=_0x5e3db1[_0x15d590(0x114)]||0x0,_0x4728cd[_0x15d590(0x158)]=_0x413bdf['sl_nhap']||0x0));if(Object['keys'](_0x1a102e)['length']>0x0){if(_0x9ac8c7[_0x15d590(0xc8)]===_0x15d590(0x118)){_0x1a102e[_0x15d590(0xb5)]=_0x126833[_0x15d590(0xb5)];let _0x312711=await global[_0x15d590(0xbe)](_0x9ac8c7[_0x15d590(0x122)])[_0x15d590(0xcc)](_0x1a102e,{'ma_kh':0x1})[_0x15d590(0x15d)]();_0x1b8dfc[_0x15d590(0x139)]={'$in':_0x312711['map'](_0x36989d=>_0x36989d[_0x15d590(0x139)])};}else{delete _0x655159[_0x15d590(0x161)];let _0x506702={..._0x146e3e,..._0x1892d4};return!_0x506702[_0x15d590(0xd3)]&&(_0x506702[_0x15d590(0xd3)]=_0x4f8060[_0x15d590(0xd3)]),!_0x506702[_0x15d590(0xb7)]&&(_0x506702[_0x15d590(0xb7)]=_0x8e48ed[_0x15d590(0xb7)]),!_0x506702[_0x15d590(0x152)]&&(_0x506702[_0x15d590(0x152)]=_0x235f02[_0x15d590(0x152)]),_0x506702[_0x15d590(0xf8)]=_0x9ac8c7['dzBFi'](0x0,_0x506702[_0x15d590(0xf8)])||0x0,_0x506702[_0x15d590(0x127)]=_0x9ac8c7[_0x15d590(0x160)](0x0,_0x506702[_0x15d590(0x127)]||0x0),_0x506702['tien_hang_ct_nt']=_0x9ac8c7[_0x15d590(0x143)](0x0,_0x506702['tien_hang_ct_nt'])||0x0,_0x506702[_0x15d590(0x134)]=0x0-(_0x506702[_0x15d590(0x134)]||0x0),_0x506702[_0x15d590(0x169)]=_0x9ac8c7[_0x15d590(0x160)](0x0,_0x506702[_0x15d590(0x169)]||0x0),_0x506702['tien_ck_nt']=_0x9ac8c7[_0x15d590(0x11e)](0x0,_0x506702[_0x15d590(0xec)]||0x0),_0x506702[_0x15d590(0xf5)]=0x0-(_0x506702[_0x15d590(0xf5)]||0x0),_0x506702[_0x15d590(0x164)]=_0x9ac8c7[_0x15d590(0x160)](0x0,_0x506702[_0x15d590(0x164)]||0x0),_0x506702[_0x15d590(0x10e)]=_0x9ac8c7[_0x15d590(0x143)](0x0,_0x506702[_0x15d590(0x11f)]||0x0),_0x506702[_0x15d590(0xc9)]=_0x9ac8c7[_0x15d590(0x172)](0x0,_0x506702[_0x15d590(0x11f)]||0x0),_0x506702[_0x15d590(0x114)]=0x0,_0x506702[_0x15d590(0xd8)]=_0x9ac8c7[_0x15d590(0x107)](0x0,_0x506702[_0x15d590(0xd8)]),_0x506702['tien_hoa_hong_gt']=_0x9ac8c7[_0x15d590(0x172)](0x0,_0x506702[_0x15d590(0xe0)]),_0x506702[_0x15d590(0x10c)]=_0x9ac8c7[_0x15d590(0xc2)](0x0,_0x506702[_0x15d590(0x10c)]),_0x506702['tien_hoa_hong_ql']=_0x9ac8c7[_0x15d590(0xd7)](0x0,_0x506702[_0x15d590(0xbb)]),_0x506702[_0x15d590(0x156)]=0x1,_0x506702;}}}}_0x126833[_0x15d590(0x162)]&&(_0x1b8dfc[_0x15d590(0x162)]=_0x126833['ma_ct']);_0x126833[_0x15d590(0x11b)]&&(_0x9ac8c7[_0x15d590(0xe5)](_0x9ac8c7['Kbfuz'],_0x9ac8c7[_0x15d590(0xed)])?_0x1b8dfc['$or']?_0x1b8dfc['$and']=[{'$or':[{'user_nv':_0x126833['user_hoa_hong']},{'user_ctv':_0x126833[_0x15d590(0x11b)]},{'user_gt':_0x126833[_0x15d590(0x11b)]},{'user_ql':_0x126833[_0x15d590(0x11b)]},{'details.user_nv':_0x126833[_0x15d590(0x11b)]},{'details.user_ctv':_0x126833[_0x15d590(0x11b)]},{'details.user_gt':_0x126833[_0x15d590(0x11b)]},{'details.user_ql':_0x126833[_0x15d590(0x11b)]}]}]:_0x1b8dfc['$or']=[{'user_nv':_0x126833[_0x15d590(0x11b)]},{'user_ctv':_0x126833[_0x15d590(0x11b)]},{'user_gt':_0x126833[_0x15d590(0x11b)]},{'user_ql':_0x126833[_0x15d590(0x11b)]},{'details.user_nv':_0x126833['user_hoa_hong']},{'details.user_ctv':_0x126833[_0x15d590(0x11b)]},{'details.user_gt':_0x126833[_0x15d590(0x11b)]},{'details.user_ql':_0x126833[_0x15d590(0x11b)]}]:_0x34baf2[_0x15d590(0xb7)]=_0x2bd574['ma_dt']);let _0x85153;if(_0x126833[_0x15d590(0x174)])_0x1b8dfc[_0x9ac8c7[_0x15d590(0x137)]]=_0x126833[_0x15d590(0x174)],_0x85153=[_0x126833[_0x15d590(0x174)]];else{if(_0x126833[_0x15d590(0xf4)]||_0x126833['ma_nvt']||_0x126833[_0x15d590(0x102)]||_0x126833[_0x15d590(0x108)]){let _0x5d2038={'id_app':_0x126833[_0x15d590(0xb5)]};if(_0x126833[_0x15d590(0xf4)])_0x5d2038[_0x15d590(0xf4)]=_0x126833[_0x15d590(0xf4)];if(_0x126833[_0x15d590(0x168)])_0x5d2038[_0x15d590(0x168)]=_0x126833[_0x15d590(0x168)];if(_0x126833[_0x15d590(0x102)])_0x5d2038['ma_danh_muc_cty']=_0x126833[_0x15d590(0x102)];if(_0x126833[_0x15d590(0x108)])_0x5d2038[_0x15d590(0x108)]=_0x126833[_0x15d590(0x108)];let _0x5609c6=await global[_0x15d590(0xbe)]('dmvt')[_0x15d590(0xcc)](_0x5d2038,{'ma_vt':0x1})[_0x15d590(0x15d)]();_0x85153=_0x5609c6[_0x15d590(0x154)](_0xaa726c=>_0xaa726c['ma_vt']),_0x1b8dfc[_0x9ac8c7[_0x15d590(0x137)]]={'$in':_0x85153};}}return _0x126833[_0x15d590(0x135)]&&(_0x1b8dfc[_0x9ac8c7[_0x15d590(0xea)]]=_0x126833[_0x15d590(0x135)]),_0x126833[_0x15d590(0xe6)]&&(_0x1b8dfc[_0x9ac8c7[_0x15d590(0x14b)]]=_0x126833[_0x15d590(0xe6)]),_0x1b8dfc['show_payment_method']=![],new Promise((_0x6c256b,_0x2612a2)=>{const _0x254bc1=_0x15d590,_0x1fdf7e={'gCcMM':_0x9ac8c7[_0x254bc1(0x137)],'iSZZE':_0x9ac8c7[_0x254bc1(0x100)],'rLyrC':function(_0x512820,_0x2928c4){return _0x9ac8c7['mWkSu'](_0x512820,_0x2928c4);},'XvqQZ':function(_0x227db0,_0x3c3e8f){const _0x3e9af4=_0x254bc1;return _0x9ac8c7[_0x3e9af4(0x175)](_0x227db0,_0x3c3e8f);},'DDSye':function(_0x3d0df3,_0x208260){const _0x21dae2=_0x254bc1;return _0x9ac8c7[_0x21dae2(0xd2)](_0x3d0df3,_0x208260);},'BEfof':_0x9ac8c7['NamYM'],'PCJgu':function(_0x50dd9d,_0x3b294c){const _0x28c036=_0x254bc1;return _0x9ac8c7[_0x28c036(0x11d)](_0x50dd9d,_0x3b294c);},'nvyVk':function(_0x8e9405,_0x3afb8c){const _0x282116=_0x254bc1;return _0x9ac8c7[_0x282116(0xce)](_0x8e9405,_0x3afb8c);},'pxXjV':function(_0x2a4114,_0x5c07de){const _0x2cf250=_0x254bc1;return _0x9ac8c7[_0x2cf250(0xce)](_0x2a4114,_0x5c07de);},'lsPuQ':_0x254bc1(0x14f),'aYfbB':function(_0x1ab00e,_0x446389){return _0x1ab00e(_0x446389);},'BwKqn':function(_0x4a988e,_0x21cc2e){const _0x2fc085=_0x254bc1;return _0x9ac8c7[_0x2fc085(0xb9)](_0x4a988e,_0x21cc2e);},'TrhHa':_0x254bc1(0x101),'luDUa':_0x254bc1(0x131),'dLbCp':'KSAvT','qOXza':_0x9ac8c7[_0x254bc1(0x12c)],'vuHQP':'mau','rJqoK':_0x9ac8c7['IuPYQ']};if('heQzW'===_0x9ac8c7[_0x254bc1(0x111)])return _0x9ac8c7[_0x254bc1(0x163)](_0x1319c[_0x254bc1(0xfa)](_0x2e61e0['ma_vt']),0x0);else _0x9ac8c7[_0x254bc1(0x15f)](databanle,_0x1b8dfc,function(_0x1710a7,_0x42a838){const _0x47344d=_0x254bc1,_0x4248ef={'rkZUY':function(_0x4bfbbc,_0x341cda){return _0x9ac8c7['JkHIM'](_0x4bfbbc,_0x341cda);},'qwQlh':_0x9ac8c7[_0x47344d(0x140)],'BPHfR':_0x9ac8c7[_0x47344d(0x147)],'XqhlZ':function(_0x366400,_0x280a97){return _0x366400!==_0x280a97;},'wJHRj':_0x9ac8c7['LxOWO'],'bmjtR':function(_0x5027dd,_0x14401d){return _0x5027dd-_0x14401d;},'geAjW':function(_0x267b70,_0x480f6d){return _0x267b70-_0x480f6d;},'hyHBq':function(_0x1f13db,_0x60c032){const _0x29a291=_0x47344d;return _0x9ac8c7[_0x29a291(0x170)](_0x1f13db,_0x60c032);},'RIDEy':function(_0x1f29ab,_0x183cb2){const _0x13a124=_0x47344d;return _0x9ac8c7[_0x13a124(0x107)](_0x1f29ab,_0x183cb2);},'PRYAo':function(_0x1fc5ce,_0x441305){const _0x4f9a43=_0x47344d;return _0x9ac8c7[_0x4f9a43(0xd7)](_0x1fc5ce,_0x441305);},'ApDGZ':function(_0x3d2349,_0x5177a8){const _0x28d147=_0x47344d;return _0x9ac8c7[_0x28d147(0x11e)](_0x3d2349,_0x5177a8);},'NpCsL':function(_0x5931c5,_0x2e8fba){const _0x35f405=_0x47344d;return _0x9ac8c7[_0x35f405(0x153)](_0x5931c5,_0x2e8fba);},'EgIJn':_0x47344d(0xd0)};if(_0x9ac8c7[_0x47344d(0xd2)](_0x9ac8c7[_0x47344d(0x16f)],_0x9ac8c7['lffCf']))_0x3d03ea['ma_dvcs']=_0x2616c[_0x47344d(0x155)];else{if(_0x1710a7)return _0x2612a2(_0x1710a7);async[_0x47344d(0x14a)](_0x42a838,0x64,function(_0x1b89f6,_0x3467d1){const _0x24c360=_0x47344d,_0x1f3633={'IKyhT':function(_0x39ab75,_0x533431){return _0x4248ef['NpCsL'](_0x39ab75,_0x533431);},'GwvQW':function(_0xc050ea,_0x273a3f){return _0xc050ea!==_0x273a3f;},'PNvLA':_0x24c360(0x159),'NXbQI':_0x4248ef[_0x24c360(0x128)]};let _0x55d2af=_0x1b89f6[_0x24c360(0x16c)]||[];delete _0x1b89f6['details'],_0x55d2af=_0x55d2af['map'](_0x2cb775=>{const _0x52dc30=_0x24c360,_0x48ec59={'MZNZc':function(_0x3bf4f3,_0x497c1d){const _0x37f26e=_0x28da;return _0x1f3633[_0x37f26e(0x148)](_0x3bf4f3,_0x497c1d);}};delete _0x2cb775[_0x52dc30(0x161)],_0x2cb775[_0x52dc30(0x156)]=0x2;let _0x563f23={..._0x1b89f6,..._0x2cb775};return!_0x563f23['ma_nv']&&(_0x563f23['ma_nv']=_0x1b89f6['ma_nv']),!_0x563f23['ma_dt']&&(_0x1f3633[_0x52dc30(0xba)](_0x1f3633[_0x52dc30(0x16e)],'kxoaH')?_0x389a23=_0xa049d1[_0x52dc30(0xf6)](_0x3098c3=>{const _0x12899c=_0x52dc30;return _0x48ec59[_0x12899c(0xfb)](_0x264e00['indexOf'](_0x3098c3[_0x12899c(0x174)]),0x0);}):_0x563f23[_0x52dc30(0xb7)]=_0x1b89f6[_0x52dc30(0xb7)]),!_0x563f23[_0x52dc30(0x152)]&&(_0x563f23[_0x52dc30(0x152)]=_0x1b89f6[_0x52dc30(0x152)]),!_0x563f23[_0x52dc30(0x139)]&&(_0x563f23[_0x52dc30(0x139)]=_0x1b89f6[_0x52dc30(0x139)]),_0x563f23;}),_0x1b89f6[_0x24c360(0xc3)]&&(_0x55d2af=[..._0x55d2af,..._0x1b89f6[_0x24c360(0xc3)]['map'](_0x4b1c76=>{const _0x2a6f49=_0x24c360;if(_0x4248ef['rkZUY'](_0x4248ef['qwQlh'],_0x4248ef[_0x2a6f49(0x13a)]))return _0x49f88e['toString']()[_0x2a6f49(0x110)](HTFknw['NXbQI'])[_0x2a6f49(0x14d)]()[_0x2a6f49(0x144)](_0x35c8a3)['search'](_0x2a6f49(0xd0));else{delete _0x4b1c76[_0x2a6f49(0x161)];let _0x5a1cac={..._0x1b89f6,..._0x4b1c76};return!_0x5a1cac[_0x2a6f49(0xd3)]&&(_0x5a1cac[_0x2a6f49(0xd3)]=_0x1b89f6[_0x2a6f49(0xd3)]),!_0x5a1cac['ma_dt']&&(_0x4248ef[_0x2a6f49(0x10b)](_0x4248ef[_0x2a6f49(0xd5)],_0x2a6f49(0x14c))?_0x5a1cac[_0x2a6f49(0xb7)]=_0x1b89f6['ma_dt']:_0x66d856['ma_kh']=_0x534220[_0x2a6f49(0x139)]),!_0x5a1cac[_0x2a6f49(0x152)]&&(_0x5a1cac[_0x2a6f49(0x152)]=_0x1b89f6[_0x2a6f49(0x152)]),_0x5a1cac['tien_hang_nt']=_0x4248ef['bmjtR'](0x0,_0x5a1cac[_0x2a6f49(0xf8)])||0x0,_0x5a1cac[_0x2a6f49(0x127)]=_0x4248ef['geAjW'](0x0,_0x5a1cac['tien_hang']||0x0),_0x5a1cac[_0x2a6f49(0x12f)]=_0x4248ef['bmjtR'](0x0,_0x5a1cac[_0x2a6f49(0x12f)])||0x0,_0x5a1cac[_0x2a6f49(0x134)]=0x0-(_0x5a1cac[_0x2a6f49(0x134)]||0x0),_0x5a1cac[_0x2a6f49(0x169)]=_0x4248ef[_0x2a6f49(0xd4)](0x0,_0x5a1cac[_0x2a6f49(0x169)]||0x0),_0x5a1cac[_0x2a6f49(0xec)]=_0x4248ef['bmjtR'](0x0,_0x5a1cac[_0x2a6f49(0xec)]||0x0),_0x5a1cac[_0x2a6f49(0xf5)]=0x0-(_0x5a1cac['tien_thue']||0x0),_0x5a1cac[_0x2a6f49(0x164)]=_0x4248ef[_0x2a6f49(0xbf)](0x0,_0x5a1cac[_0x2a6f49(0x164)]||0x0),_0x5a1cac[_0x2a6f49(0x10e)]=_0x4248ef[_0x2a6f49(0xeb)](0x0,_0x5a1cac[_0x2a6f49(0x11f)]||0x0),_0x5a1cac[_0x2a6f49(0xc9)]=_0x4248ef['hyHBq'](0x0,_0x5a1cac[_0x2a6f49(0x11f)]||0x0),_0x5a1cac['sl_xuat']=0x0,_0x5a1cac['tien_hoa_hong']=_0x4248ef[_0x2a6f49(0xbf)](0x0,_0x5a1cac[_0x2a6f49(0xd8)]),_0x5a1cac[_0x2a6f49(0xe0)]=_0x4248ef[_0x2a6f49(0x12e)](0x0,_0x5a1cac[_0x2a6f49(0xe0)]),_0x5a1cac[_0x2a6f49(0x10c)]=_0x4248ef[_0x2a6f49(0x112)](0x0,_0x5a1cac[_0x2a6f49(0x10c)]),_0x5a1cac['tien_hoa_hong_ql']=0x0-_0x5a1cac[_0x2a6f49(0xbb)],_0x5a1cac[_0x2a6f49(0x156)]=0x1,_0x5a1cac;}})],delete _0x1b89f6[_0x24c360(0xc3)]),_0x3467d1(null,_0x55d2af);},async function(_0x9faeac,_0x329674){const _0x4ec104=_0x47344d,_0x5cf737={'vPwGs':function(_0x19e610,_0x61bb79){return _0x19e610>=_0x61bb79;},'mpJvM':_0x1fdf7e[_0x4ec104(0x123)],'ymDan':function(_0x5d2429,_0x4d7209){return _0x5d2429!==_0x4d7209;},'GoMuQ':_0x1fdf7e[_0x4ec104(0x129)],'FGESi':function(_0x187bc1,_0x266a02){const _0x277510=_0x4ec104;return _0x1fdf7e[_0x277510(0xdc)](_0x187bc1,_0x266a02);},'MHBfr':function(_0x95821f,_0x2a4ea4){return _0x95821f-_0x2a4ea4;},'NfBkZ':function(_0x2fa602,_0x168868){return _0x1fdf7e['XvqQZ'](_0x2fa602,_0x168868);},'okIxQ':function(_0x47ff24,_0x5df8f5){const _0x4b7739=_0x4ec104;return _0x1fdf7e[_0x4b7739(0x151)](_0x47ff24,_0x5df8f5);},'mXeVD':function(_0x147387,_0x5a07c8){return _0x147387-_0x5a07c8;},'LyiBD':function(_0x767c2a,_0x3f375b){const _0x26a632=_0x4ec104;return _0x1fdf7e[_0x26a632(0xd6)](_0x767c2a,_0x3f375b);},'Bhweu':_0x1fdf7e['BEfof'],'uLUyg':'mPkqk','zdJxJ':function(_0x580a73,_0x566531){const _0x311a3c=_0x4ec104;return _0x1fdf7e[_0x311a3c(0xb6)](_0x580a73,_0x566531);},'srkUm':function(_0x31922c,_0x23cde0){const _0x44ed4a=_0x4ec104;return _0x1fdf7e[_0x44ed4a(0x12d)](_0x31922c,_0x23cde0);},'BVvaW':function(_0x5db76a,_0x11a309){const _0x308868=_0x4ec104;return _0x1fdf7e[_0x308868(0xe9)](_0x5db76a,_0x11a309);}};if(_0x1fdf7e[_0x4ec104(0xb8)]!==_0x4ec104(0x14f))_0x52adbc[_0x4ec104(0x136)][_0x4ec104(0x173)]=_0x480987[_0x4ec104(0xe7)];else{if(_0x9faeac)return _0x1fdf7e['aYfbB'](_0x2612a2,_0x9faeac);_0x329674=_0x329674[_0x4ec104(0x16d)]((_0x3a56e5,_0x530010)=>_0x3a56e5[_0x4ec104(0x104)](_0x530010),[]);_0x85153&&(_0x1fdf7e[_0x4ec104(0xe8)](_0x4ec104(0x101),_0x1fdf7e[_0x4ec104(0xef)])?_0x1cc114[_0x4ec104(0x152)]=_0x21e6a7['ma_bp']:_0x329674=_0x329674[_0x4ec104(0xf6)](_0x5899f1=>{const _0x17cd07=_0x4ec104;return _0x5cf737['vPwGs'](_0x85153[_0x17cd07(0xfa)](_0x5899f1[_0x17cd07(0x174)]),0x0);}));if(_0x126833[_0x4ec104(0x135)]){if(_0x1fdf7e['luDUa']!==_0x1fdf7e[_0x4ec104(0xff)])_0x329674=_0x329674[_0x4ec104(0xf6)](_0x1ab6f1=>_0x1ab6f1[_0x4ec104(0x135)]===_0x126833[_0x4ec104(0x135)]);else{const _0x411330=_0xd6a6e7?function(){const _0x5d4a34=_0x4ec104;if(_0x45407e){const _0x110995=_0x20b20d[_0x5d4a34(0xf0)](_0x97684e,arguments);return _0x1b146e=null,_0x110995;}}:function(){};return _0x540433=![],_0x411330;}}_0x126833[_0x4ec104(0xe6)]&&(_0x329674=_0x329674[_0x4ec104(0xf6)](_0x5a8090=>_0x5a8090['id_cs_ck']===_0x126833[_0x4ec104(0xe6)])),await _0x329674[_0x4ec104(0x13d)](_0x126833[_0x4ec104(0xb5)],_0x4ec104(0xcf),{'where':{'ma_dvt':_0x1fdf7e[_0x4ec104(0xdf)],'ma_vt':'ma_vt'},'fields':['tu',_0x1fdf7e[_0x4ec104(0xca)],_0x1fdf7e['rJqoK']]}),_0x329674['forEach'](function(_0xe16d4c,_0x16170e){const _0xeef3d2=_0x4ec104,_0x4f5a83={'AkOuh':_0x5cf737[_0xeef3d2(0x10f)]};if(_0x5cf737[_0xeef3d2(0x13e)](_0xeef3d2(0x166),_0x5cf737[_0xeef3d2(0x126)]))_0x2b5112['$or']?_0x46bea6['$and']=[{'$or':[{'user_nv':_0x38b90a['user_hoa_hong']},{'user_ctv':_0x13dc26[_0xeef3d2(0x11b)]},{'user_gt':_0x33d668[_0xeef3d2(0x11b)]},{'user_ql':_0x5a7166['user_hoa_hong']},{'details.user_nv':_0x2d2786[_0xeef3d2(0x11b)]},{'details.user_ctv':_0x24c138['user_hoa_hong']},{'details.user_gt':_0x1b7b56[_0xeef3d2(0x11b)]},{'details.user_ql':_0x4e21e7[_0xeef3d2(0x11b)]}]}]:_0x470d55[_0xeef3d2(0xda)]=[{'user_nv':_0x1f6ba3[_0xeef3d2(0x11b)]},{'user_ctv':_0x133b3c[_0xeef3d2(0x11b)]},{'user_gt':_0x5a00f3[_0xeef3d2(0x11b)]},{'user_ql':_0x3ee395['user_hoa_hong']},{'details.user_nv':_0x5a49e3[_0xeef3d2(0x11b)]},{'details.user_ctv':_0x4856ef[_0xeef3d2(0x11b)]},{'details.user_gt':_0x1e21ef[_0xeef3d2(0x11b)]},{'details.user_ql':_0x40ca53[_0xeef3d2(0x11b)]}];else{_0xe16d4c[_0xeef3d2(0xc7)]=_0x5cf737[_0xeef3d2(0xdb)](_0x16170e,0x1),_0xe16d4c['id_ct']=_0xe16d4c[_0xeef3d2(0x161)]['toString'](),_0xe16d4c[_0xeef3d2(0xc0)]=![],_0xe16d4c['tt']=_0xe16d4c[_0xeef3d2(0x146)]=_0x5cf737[_0xeef3d2(0xdb)](_0x5cf737[_0xeef3d2(0xe3)](_0xe16d4c['tien_hang_ct']||0x0,_0xe16d4c[_0xeef3d2(0x169)]||0x0),_0xe16d4c['tien_thue']||0x0),_0xe16d4c[_0xeef3d2(0xbc)]=_0xe16d4c[_0xeef3d2(0x10e)]?_0x5cf737[_0xeef3d2(0x141)](_0x5cf737['okIxQ'](_0xe16d4c['tt'],_0xe16d4c[_0xeef3d2(0x10e)])-(_0xe16d4c[_0xeef3d2(0xf5)]||0x0),_0xe16d4c[_0xeef3d2(0x138)]||0x0):0x0,_0xe16d4c['loi_nhuan']=_0x5cf737['mXeVD'](_0x5cf737[_0xeef3d2(0xe3)](_0xe16d4c['tt'],_0xe16d4c['tien_xuat']||0x0)-(_0xe16d4c['tien_thue']||0x0),_0xe16d4c[_0xeef3d2(0x138)]||0x0),_0xe16d4c[_0xeef3d2(0xdd)]=_0x5cf737[_0xeef3d2(0xdb)](_0x5cf737['FGESi'](_0xe16d4c['tien_hoa_hong']+_0xe16d4c['tien_hoa_hong_gt'],_0xe16d4c['tien_hoa_hong_ctv']),_0xe16d4c[_0xeef3d2(0xbb)]);if(_0xe16d4c[_0xeef3d2(0x10d)]){if(_0x5cf737[_0xeef3d2(0xd1)](_0x5cf737[_0xeef3d2(0xcd)],_0x5cf737[_0xeef3d2(0x10a)]))_0x2a9968[_0x4f5a83['AkOuh']]=_0x10323e[_0xeef3d2(0x174)],_0x584f9f=[_0xe44b9b[_0xeef3d2(0x174)]];else{let _0x3dd12d=_0x5cf737[_0xeef3d2(0x15c)](_0xe16d4c['tu'],_0xe16d4c['mau']);_0xe16d4c[_0xeef3d2(0x165)]=_0x5cf737['srkUm'](_0x3dd12d,_0xe16d4c[_0xeef3d2(0x114)]||0x0),_0xe16d4c[_0xeef3d2(0x158)]=_0x5cf737[_0xeef3d2(0xd9)](_0x3dd12d,_0xe16d4c[_0xeef3d2(0x132)]||0x0);}}else _0xe16d4c['sl_xuat_qd']=_0xe16d4c[_0xeef3d2(0x114)]||0x0,_0xe16d4c[_0xeef3d2(0x158)]=_0xe16d4c['sl_nhap']||0x0;}}),_0x6c256b(_0x329674);}});}});});};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
const databanle=require("./databanlenpp"),async=require("async");
|
|
2
|
-
module.exports=async function($condition$$){if(!$condition$$.id_app)throw"B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1:id_app";$condition$$.den_ngay||($condition$$.den_ngay=new Date);const $query$$={id_app:$condition$$.id_app};$query$$.ngay_ct={$lte:$condition$$.den_ngay};$condition$$.tu_ngay&&($query$$.ngay_ct.$gte=$condition$$.tu_ngay);$condition$$.ma_dvcs&&($query$$.ma_dvcs=$condition$$.ma_dvcs);$condition$$.user_nv&&($query$$.user_nv=$condition$$.user_nv);$condition$$.user_ctv&&
|
|
3
|
-
($query$$.user_ctv=$condition$$.user_ctv);$condition$$.tinh_thanh&&($query$$.tinh_thanh=$condition$$.tinh_thanh);$condition$$.ma_nv&&($query$$.ma_nv=$condition$$.ma_nv);$condition$$.ma_kho&&($query$$.$or=[{ma_kho:$condition$$.ma_kho},{"details.ma_kho":$condition$$.ma_kho}]);if($condition$$.ma_kh)$query$$.ma_kh=$condition$$.ma_kh;else{var $condition_kh_custs_q$$={};if($condition$$.nh_kh){var $nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,
|
|
4
|
-
$condition$$.nh_kh,{status:!0});$condition_kh_custs_q$$.nh_kh={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$}}$condition$$.nh_kh2&&($nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,$condition$$.nh_kh2,{status:!0}),$condition_kh_custs_q$$.nh_kh2={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$});$condition$$.nh_kh3&&($nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,$condition$$.nh_kh3,
|
|
5
|
-
{status:!0}),$condition_kh_custs_q$$.nh_kh3={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$});$condition$$.nh_kh4&&($nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,$condition$$.nh_kh4,{status:!0}),$condition_kh_custs_q$$.nh_kh4={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$});$condition$$.nh_kh5&&($nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$=await global.getModel("group").getAllChildrenGroup($condition$$.id_app,$condition$$.nh_kh5,{status:!0}),
|
|
6
|
-
$condition_kh_custs_q$$.nh_kh5={$in:$nh_khs_nh_khs2_nh_khs3_nh_khs4_nh_khs5$$});Object.keys($condition_kh_custs_q$$).length>0&&($condition_kh_custs_q$$.id_app=$condition$$.id_app,$condition_kh_custs_q$$=await global.getModel("customer").find($condition_kh_custs_q$$,{ma_kh:1}).lean(),$query$$.ma_kh={$in:$condition_kh_custs_q$$.map($c$$=>$c$$.ma_kh)})}$condition$$.ma_ct&&($query$$.ma_ct=$condition$$.ma_ct);$condition$$.user_hoa_hong&&($query$$.$or?$query$$.$and=[{$or:[{user_nv:$condition$$.user_hoa_hong},
|
|
7
|
-
{user_ctv:$condition$$.user_hoa_hong},{user_gt:$condition$$.user_hoa_hong},{user_ql:$condition$$.user_hoa_hong},{"details.user_nv":$condition$$.user_hoa_hong},{"details.user_ctv":$condition$$.user_hoa_hong},{"details.user_gt":$condition$$.user_hoa_hong},{"details.user_ql":$condition$$.user_hoa_hong}]}]:$query$$.$or=[{user_nv:$condition$$.user_hoa_hong},{user_ctv:$condition$$.user_hoa_hong},{user_gt:$condition$$.user_hoa_hong},{user_ql:$condition$$.user_hoa_hong},{"details.user_nv":$condition$$.user_hoa_hong},
|
|
8
|
-
{"details.user_ctv":$condition$$.user_hoa_hong},{"details.user_gt":$condition$$.user_hoa_hong},{"details.user_ql":$condition$$.user_hoa_hong}]);let $ma_vts$$;if($condition$$.ma_vt)$query$$["details.ma_vt"]=$condition$$.ma_vt,$ma_vts$$=[$condition$$.ma_vt];else if($condition$$.ma_ncc||$condition$$.ma_nvt||$condition$$.ma_danh_muc_cty||$condition$$.ma_danh_muc)$condition_kh_custs_q$$={id_app:$condition$$.id_app},$condition$$.ma_ncc&&($condition_kh_custs_q$$.ma_ncc=$condition$$.ma_ncc),$condition$$.ma_nvt&&
|
|
9
|
-
($condition_kh_custs_q$$.ma_nvt=$condition$$.ma_nvt),$condition$$.ma_danh_muc_cty&&($condition_kh_custs_q$$.ma_danh_muc_cty=$condition$$.ma_danh_muc_cty),$condition$$.ma_danh_muc&&($condition_kh_custs_q$$.ma_danh_muc=$condition$$.ma_danh_muc),$ma_vts$$=(await global.getModel("dmvt").find($condition_kh_custs_q$$,{ma_vt:1}).lean()).map($v$$=>$v$$.ma_vt),$query$$["details.ma_vt"]={$in:$ma_vts$$};$condition$$.id_cs&&($query$$["details.id_cs"]=$condition$$.id_cs);$condition$$.id_cs_ck&&($query$$["details.id_cs_ck"]=
|
|
10
|
-
$condition$$.id_cs_ck);$query$$.show_payment_method=!1;return new Promise(($resolve$$,$reject$$)=>{databanle($query$$,function($error$$,$rs$$){if($error$$)return $reject$$($error$$);async.mapSeries($rs$$,function($r$$,$callback$$){let $details$$=$r$$.details||[];delete $r$$.details;$details$$=$details$$.map($_r_detail$$=>{delete $_r_detail$$._id;$_r_detail$$.nxt=2;$_r_detail$$={...$r$$,...$_r_detail$$};$_r_detail$$.ma_nv||($_r_detail$$.ma_nv=$r$$.ma_nv);$_r_detail$$.ma_dt||($_r_detail$$.ma_dt=$r$$.ma_dt);
|
|
11
|
-
$_r_detail$$.ma_bp||($_r_detail$$.ma_bp=$r$$.ma_bp);return $_r_detail$$});$r$$.details_tl&&($details$$=[...$details$$,...$r$$.details_tl.map($detail$$=>{delete $detail$$._id;$detail$$={...$r$$,...$detail$$};$detail$$.ma_nv||($detail$$.ma_nv=$r$$.ma_nv);$detail$$.ma_dt||($detail$$.ma_dt=$r$$.ma_dt);$detail$$.ma_bp||($detail$$.ma_bp=$r$$.ma_bp);$detail$$.tien_hang_nt=0-$detail$$.tien_hang_nt||0;$detail$$.tien_hang=0-($detail$$.tien_hang||0);$detail$$.tien_hang_ct_nt=0-$detail$$.tien_hang_ct_nt||0;$detail$$.tien_hang_ct=
|
|
12
|
-
0-($detail$$.tien_hang_ct||0);$detail$$.tien_ck=0-($detail$$.tien_ck||0);$detail$$.tien_ck_nt=0-($detail$$.tien_ck_nt||0);$detail$$.tien_thue=0-($detail$$.tien_thue||0);$detail$$.tien_thue_nt=0-($detail$$.tien_thue_nt||0);$detail$$.tien_xuat_tmp=0-($detail$$.tien_nhap_nt||0);$detail$$.sl_xuat=0;$detail$$.tien_hoa_hong=0-$detail$$.tien_hoa_hong;$detail$$.tien_hoa_hong_gt=0-$detail$$.tien_hoa_hong_gt;$detail$$.tien_hoa_hong_ctv=0-$detail$$.tien_hoa_hong_ctv;$detail$$.tien_hoa_hong_ql=0-$detail$$.tien_hoa_hong_ql;
|
|
13
|
-
$detail$$.nxt=1;return $detail$$})],delete $r$$.details_tl);$callback$$(null,$details$$)},async function($error$$,$report$$){if($error$$)return $reject$$($error$$);$report$$=$report$$.reduce(($a$$,$b$$)=>$a$$.concat($b$$),[]);$ma_vts$$&&($report$$=$report$$.filter($r$$=>$ma_vts$$.indexOf($r$$.ma_vt)>=0));$condition$$.id_cs&&($report$$=$report$$.filter($r$$=>$r$$.id_cs===$condition$$.id_cs));$condition$$.id_cs_ck&&($report$$=$report$$.filter($r$$=>$r$$.id_cs_ck===$condition$$.id_cs_ck));await $report$$.asyncJoinModel2($condition$$.id_app,
|
|
14
|
-
"dmqddvt",{where:{ma_dvt:"ma_dvt",ma_vt:"ma_vt"},fields:["tu","mau","ma_dvt_goc"]});$report$$.forEach(function($r$$,$he_so_qd_i$$){$r$$.stt=$he_so_qd_i$$+1;$r$$.id_ct=$r$$._id.toString();$r$$.bold=!1;$r$$.tt=$r$$.tien=($r$$.tien_hang_ct||0)-($r$$.tien_ck||0)+($r$$.tien_thue||0);$r$$.loi_nhuan_tmp=$r$$.tien_xuat_tmp?$r$$.tt-$r$$.tien_xuat_tmp-($r$$.tien_thue||0):0;$r$$.t_hoa_hong=$r$$.tien_hoa_hong+$r$$.tien_hoa_hong_gt+$r$$.tien_hoa_hong_ctv+$r$$.tien_hoa_hong_ql;$r$$.mau?($he_so_qd_i$$=$r$$.tu/$r$$.mau,
|
|
15
|
-
$r$$.sl_xuat_qd=$he_so_qd_i$$*($r$$.sl_xuat||0),$r$$.sl_nhap_qd=$he_so_qd_i$$*($r$$.sl_nhap||0)):($r$$.sl_xuat_qd=$r$$.sl_xuat||0,$r$$.sl_nhap_qd=$r$$.sl_nhap||0)});$resolve$$($report$$)})})})};
|
|
1
|
+
const _0xb9fa5d=_0x1560;(function(_0x319cdf,_0x3ae272){const _0x2c1544=_0x1560,_0x37557c=_0x319cdf();while(!![]){try{const _0x131911=-parseInt(_0x2c1544(0x1c4))/0x1+parseInt(_0x2c1544(0x108))/0x2*(parseInt(_0x2c1544(0x172))/0x3)+parseInt(_0x2c1544(0x1c6))/0x4*(-parseInt(_0x2c1544(0x163))/0x5)+-parseInt(_0x2c1544(0x12c))/0x6*(-parseInt(_0x2c1544(0x137))/0x7)+-parseInt(_0x2c1544(0x133))/0x8*(-parseInt(_0x2c1544(0x1a1))/0x9)+parseInt(_0x2c1544(0x15c))/0xa+-parseInt(_0x2c1544(0x1bd))/0xb;if(_0x131911===_0x3ae272)break;else _0x37557c['push'](_0x37557c['shift']());}catch(_0x21b128){_0x37557c['push'](_0x37557c['shift']());}}}(_0xc87e,0x68d44));function _0x1560(_0x94aced,_0x2f96a6){const _0x23028e=_0xc87e();return _0x1560=function(_0x4fe513,_0x3c5b24){_0x4fe513=_0x4fe513-0xeb;let _0xc87ee4=_0x23028e[_0x4fe513];if(_0x1560['kQcMdA']===undefined){var _0x15608a=function(_0x5bfdb7){const _0x3812f6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x188210='',_0xa086f9='',_0x321708=_0x188210+_0x15608a;for(let _0x5e9b18=0x0,_0x39d04c,_0x1b79c8,_0x28bb76=0x0;_0x1b79c8=_0x5bfdb7['charAt'](_0x28bb76++);~_0x1b79c8&&(_0x39d04c=_0x5e9b18%0x4?_0x39d04c*0x40+_0x1b79c8:_0x1b79c8,_0x5e9b18++%0x4)?_0x188210+=_0x321708['charCodeAt'](_0x28bb76+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x39d04c>>(-0x2*_0x5e9b18&0x6)):_0x5e9b18:0x0){_0x1b79c8=_0x3812f6['indexOf'](_0x1b79c8);}for(let _0x2128a5=0x0,_0xe828a2=_0x188210['length'];_0x2128a5<_0xe828a2;_0x2128a5++){_0xa086f9+='%'+('00'+_0x188210['charCodeAt'](_0x2128a5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xa086f9);};_0x1560['jFuYoW']=_0x15608a,_0x94aced=arguments,_0x1560['kQcMdA']=!![];}const _0x798abe=_0x23028e[0x0],_0x5b84cc=_0x4fe513+_0x798abe,_0x21d543=_0x94aced[_0x5b84cc];if(!_0x21d543){const _0x38f66a=function(_0x3c3a44){this['ePweTc']=_0x3c3a44,this['HlaNOt']=[0x1,0x0,0x0],this['zCHpir']=function(){return'newState';},this['STUlps']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['ZPIzTb']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x38f66a['prototype']['TgNwoA']=function(){const _0x3cae50=new RegExp(this['STUlps']+this['ZPIzTb']),_0xf5fb75=_0x3cae50['test'](this['zCHpir']['toString']())?--this['HlaNOt'][0x1]:--this['HlaNOt'][0x0];return this['EOAZAb'](_0xf5fb75);},_0x38f66a['prototype']['EOAZAb']=function(_0x3ca0b3){if(!Boolean(~_0x3ca0b3))return _0x3ca0b3;return this['wXfAbb'](this['ePweTc']);},_0x38f66a['prototype']['wXfAbb']=function(_0x24be15){for(let _0x4438b0=0x0,_0x1f09c5=this['HlaNOt']['length'];_0x4438b0<_0x1f09c5;_0x4438b0++){this['HlaNOt']['push'](Math['round'](Math['random']())),_0x1f09c5=this['HlaNOt']['length'];}return _0x24be15(this['HlaNOt'][0x0]);},new _0x38f66a(_0x1560)['TgNwoA'](),_0xc87ee4=_0x1560['jFuYoW'](_0xc87ee4),_0x94aced[_0x5b84cc]=_0xc87ee4;}else _0xc87ee4=_0x21d543;return _0xc87ee4;},_0x1560(_0x94aced,_0x2f96a6);}const _0x3c5b24=(function(){const _0x1d89f0=_0x1560,_0x45532a={'liOlA':function(_0x1e4fae,_0x9220a){return _0x1e4fae-_0x9220a;},'nhXxc':function(_0x204ffe,_0x25cf04){return _0x204ffe-_0x25cf04;},'smPwX':_0x1d89f0(0x180),'zKQHN':'DcOMi','vCgXe':function(_0x45ce9f,_0x3ef369){return _0x45ce9f===_0x3ef369;},'oTgoc':'ZWfLi','JrJkH':function(_0x160124,_0x3c8590){return _0x160124!==_0x3c8590;},'xNSHD':'aOwiW'};let _0xc1c2be=!![];return function(_0x104c1b,_0x2de55f){const _0x11d139=_0x1d89f0,_0x1d78f3={'jflVP':function(_0x4510e1,_0x371c87){return _0x45532a['liOlA'](_0x4510e1,_0x371c87);},'cUkpF':function(_0x594335,_0x32fa9a){const _0x41a0aa=_0x1560;return _0x45532a[_0x41a0aa(0x1cb)](_0x594335,_0x32fa9a);},'shVeb':function(_0xdebb3d,_0x135820){return _0xdebb3d-_0x135820;},'YNYWI':_0x45532a[_0x11d139(0x11a)],'XPylu':_0x45532a[_0x11d139(0x18d)],'GcHOT':function(_0x5def17,_0x45a5d2){const _0x5f4b2c=_0x11d139;return _0x45532a[_0x5f4b2c(0x146)](_0x5def17,_0x45a5d2);},'MVCFL':_0x11d139(0x1c1),'NOcoG':_0x45532a[_0x11d139(0x10d)]};if(_0x45532a[_0x11d139(0x140)](_0x11d139(0x195),_0x45532a[_0x11d139(0xff)]))_0x3754b0[_0x11d139(0x136)]=[{'$or':[{'user_nv':_0x30dcfe[_0x11d139(0x156)]},{'user_ctv':_0x857151[_0x11d139(0x156)]},{'user_gt':_0xe8e2fb[_0x11d139(0x156)]},{'user_ql':_0xacb9c9[_0x11d139(0x156)]},{'details.user_nv':_0xdfa424[_0x11d139(0x156)]},{'details.user_ctv':_0x5f51bc[_0x11d139(0x156)]},{'details.user_gt':_0x12b064['user_hoa_hong']},{'details.user_ql':_0x2311dd[_0x11d139(0x156)]}]}];else{const _0xbc54a=_0xc1c2be?function(){const _0x572a7f=_0x11d139;if(_0x1d78f3[_0x572a7f(0x1c0)]!==_0x1d78f3[_0x572a7f(0xf8)]){if(_0x2de55f){if(_0x1d78f3[_0x572a7f(0x13f)](_0x1d78f3[_0x572a7f(0x1af)],_0x1d78f3[_0x572a7f(0x125)]))_0x562744=_0x12395d[_0x572a7f(0x14e)](_0x27cf79=>_0x27cf79[_0x572a7f(0x176)]===_0xb13ff3[_0x572a7f(0x176)]);else{const _0x336329=_0x2de55f[_0x572a7f(0x189)](_0x104c1b,arguments);return _0x2de55f=null,_0x336329;}}}else{delete _0x2c38dd[_0x572a7f(0x106)];let _0x530405={..._0x11c36f,..._0x760588};return!_0x530405[_0x572a7f(0x112)]&&(_0x530405[_0x572a7f(0x112)]=_0x315f50[_0x572a7f(0x112)]),!_0x530405[_0x572a7f(0x166)]&&(_0x530405[_0x572a7f(0x166)]=_0x5e8ec5[_0x572a7f(0x166)]),!_0x530405['ma_bp']&&(_0x530405[_0x572a7f(0x1a0)]=_0x1f2da1[_0x572a7f(0x1a0)]),_0x530405[_0x572a7f(0x19c)]=0x0-_0x530405[_0x572a7f(0x19c)]||0x0,_0x530405[_0x572a7f(0x15b)]=_0x1d78f3[_0x572a7f(0x170)](0x0,_0x530405['tien_hang']||0x0),_0x530405[_0x572a7f(0x191)]=_0x1d78f3['cUkpF'](0x0,_0x530405[_0x572a7f(0x191)])||0x0,_0x530405[_0x572a7f(0x175)]=_0x1d78f3['jflVP'](0x0,_0x530405[_0x572a7f(0x175)]||0x0),_0x530405[_0x572a7f(0x169)]=_0x1d78f3[_0x572a7f(0x170)](0x0,_0x530405['tien_ck']||0x0),_0x530405[_0x572a7f(0x161)]=_0x1d78f3['shVeb'](0x0,_0x530405[_0x572a7f(0x161)]||0x0),_0x530405[_0x572a7f(0xf5)]=_0x1d78f3[_0x572a7f(0x17a)](0x0,_0x530405[_0x572a7f(0xf5)]||0x0),_0x530405[_0x572a7f(0x13d)]=_0x1d78f3['jflVP'](0x0,_0x530405['tien_thue_nt']||0x0),_0x530405[_0x572a7f(0x1a9)]=0x0-(_0x530405[_0x572a7f(0x14c)]||0x0),_0x530405[_0x572a7f(0x13a)]=0x0,_0x530405[_0x572a7f(0x11d)]=0x0-_0x530405[_0x572a7f(0x11d)],_0x530405[_0x572a7f(0x150)]=_0x1d78f3[_0x572a7f(0x170)](0x0,_0x530405[_0x572a7f(0x150)]),_0x530405['tien_hoa_hong_ctv']=0x0-_0x530405[_0x572a7f(0x174)],_0x530405[_0x572a7f(0x1a2)]=0x0-_0x530405['tien_hoa_hong_ql'],_0x530405[_0x572a7f(0x157)]=0x1,_0x530405;}}:function(){};return _0xc1c2be=![],_0xbc54a;}};}()),_0x4fe513=_0x3c5b24(this,function(){const _0x19242d=_0x1560,_0x47d6ab={'CVfEh':_0x19242d(0x12e)};return _0x4fe513[_0x19242d(0x127)]()[_0x19242d(0x16c)](_0x47d6ab[_0x19242d(0x151)])['toString']()['constructor'](_0x4fe513)[_0x19242d(0x16c)](_0x47d6ab[_0x19242d(0x151)]);});function _0xc87e(){const _0x3161f4=['y1zqEMO','uKTbq0O','Afvuuhe','wxrlzNi','vMP1Bei','Eerbzue','vwDVrei','z0XXEg0','wM91BMG','BuPxCha','DgLLBL90AhvL','Bwf1','ALLbq2i','wfb5Bhu','Du5JBMO','z2v0qwXSq2HPBgrYzw5hCM91Ca','s2PLsvC','rvvvz3G','A0vVzw8','qur5qMe','Ee5tseq','BwfW','CeD6v1i','DMzrBLi','BwT1ANq','zuvfwLa','vMr5qu8','x2LK','whvTA04','mta0ofLPugfzDq','t21qz0S','BMDHEv9JDa','AwrFyxbW','u21UyLK','B1rNB2m','BwfFBNz0','yvrPCM4','C2fmCge','z21wALC','BwfFBNy','uvPJwNK','qMfUBuq','re1AwMC','C2XFBMHHCa','BwfFA2G','AeHiAK0','zM9YrwfJAa','C21qD1G','s0DPrMK','s0D0uLm','DgLLBL9OB2fFAg9UzW','BwfFzhz0','zgv0ywLSCY5Pzf9JCW','BgvHBG','re1xBgm','uxPyr1m','rvHMvKy','t3nKBMO','tK9JB0C','ExPyBMy','Dg9tDhjPBMC','DgLUAf90AgfUAa','u3zUyMW','vxLqv2S','yxP0qMq','nKvUv3ftvW','EKLctem','kcGOlISPkYKRksSK','DgLLBG','vePyDKq','qwHtwgC','DhvFBMDHEq','mZeWnfDHBxPMBa','BwfFy3q','C2XFEhvHDf9Xza','jgfUza','mtqZmZyZnvfqD1LIyq','Exz5twq','zgvUx25NyxK','C2XFEhvHDa','BMHFA2GZ','zLjnwLu','DgLLBL90AhvLx250','vLD0BfG','r2nit1q','sNjkA0G','zxHWB3j0CW','vfzMCwS','zg1Xzgr2Da','rxrcChm','tgfiBM0','DKnNwgu','wfPhwxK','AhPxuxK','zgv0ywLSC190Ba','CMTKEem','BwfFDNq','DgLLBL9UAgfWx250','CKnjuLC','zMLSDgvY','r2TnCMW','DgLLBL9OB2fFAg9Uz19NDa','q1zMrwG','DfHbzgi','zg12Da','BMHFA2GY','AK5eBNm','DxnLCL9OB2fFAg9UzW','BNH0','Aef5A2W','Cgflsxa','C2XFBMHHCf9Xza','DgLLBL9Oyw5N','odm5mti3mfzxvgjpvG','z2v0tw9KzwW','A2v5CW','Bg9Px25ODwfUx3rTCa','y0jpvxy','DgLLBL9JA19UDa','C3r0','mZmWmtmZmfPyB1rVsG','BwfFA2HV','tg5PyxO','BwfFzhq','A25IBgC','zgHnugu','DgLLBL9JAW','suvyB2i','uMveq0G','C2vHCMnO','CLPSqMq','wvj4BeG','Dffssvm','AMzSvLa','suLOthy','mte1oeHAD1r0Ba','s2ftvva','DgLLBL9OB2fFAg9Uz19JDhy','DgLLBL9Oyw5Nx2n0','AwrFy3nFy2S','zLzZwKi','lI9KyxrHyMfUBgvUCha','uuThAeG','C2Hwzwi','teLNwKG','BwfFzgfUAf9TDwnFy3r5','zvDXCM0','BLrjyve','yvvREeC','t0TwzwO','yvvdzLm','u2Pdvge','BwfFzhzJCW','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsbJW6fJihrOyw0GC+g7KtPPzf9HCha','t3btzLe','BMHFA2G1','jg9Y','yM9Sza','yxbWBhK','DhjIAvu','txDsAwm','ELbVzuW','EKTrse4','wLvAAeK','CeztDwq','AwrFy3m','DgLLBL9Oyw5Nx2n0x250','y29Uy2f0','BMHFA2G','DxnLCL9UDG','yu93AvC','z3jVDxa','rhHKBxG','qMXJC1e','AwrFy3q','zgv0ywLSCY5Tyv92Da','D0LAENG','DgLLBL9Oyw5Nx250','CNDkBgO','wMndrgm','rK5suwe','BwfFyNa','nJnbweDxA0i','DgLLBL9OB2fFAg9Uz19XBa','BwfFzgfUAf9TDwm','C0vgvKu','rNjqC3i','BgvUz3rO','AfrICKC','Bxj2rLC','DgLLBL94Dwf0x3rTCa','Dw94vMW','sgH3uKq','sejKwNu','AxDWANy','ze9kvxC','tvzdrKW','DxnxBw4','zgv0ywLSCW','t1Hhvw4','rfbMwfC','sLHvzhi','wuTNt1m','wgH1uva','wg1ysLa','tfPytem','ugDrBMe','Aw5KzxHpzG','veTNuMS','zNjpBgC','mJC3nte5vgL1v2Hs','DxnLCL9JDhy','BMHFA2G0','wu5zv0K','uwrvr24','CMvKDwnL','uenmt2W','mtm0mdm3tu5qBxbQ','wvzwvxK','nfDvu0LLAa','tLnuzfK','BwfFBMnJ','DunLELu','zeHjEvK','BMHyEgm','C3HJCM8','yM9pA3a','y3vZDg9Tzxi','EhjNDKO','v0j5uuu','yvL6rvy','wgLzuwW','tLLkuvq','tvret2C','Df9OB2fFAg9UzW','jgD0zq','rfDrv2m','zMLUza'];_0xc87e=function(){return _0x3161f4;};return _0xc87e();}_0x4fe513();const databanle=require(_0xb9fa5d(0x178)),async=require('async');module[_0xb9fa5d(0x141)]=async function(_0x960545){const _0x54318c=_0xb9fa5d,_0x2e0efb={'dHIyY':_0x54318c(0x184),'pGzWR':function(_0x5d04c8,_0x541128){return _0x5d04c8+_0x541128;},'HBdZu':function(_0x564dcd,_0x27cf5b){return _0x564dcd+_0x27cf5b;},'QZcZy':function(_0x8fc802,_0x2f0b97){return _0x8fc802-_0x2f0b97;},'kjLgD':function(_0x444d35,_0x1402e7){return _0x444d35-_0x1402e7;},'trbiU':function(_0x3e6668,_0x3b1886){return _0x3e6668*_0x3b1886;},'DWQWc':function(_0x29385b,_0x366bbf){return _0x29385b*_0x366bbf;},'KGiFi':_0x54318c(0x12e),'FrPsr':function(_0x1dbc54,_0x87b193){return _0x1dbc54>=_0x87b193;},'eWqrm':_0x54318c(0x17b),'mrvFW':function(_0x5afd5b,_0x2060d0){return _0x5afd5b-_0x2060d0;},'EtBps':_0x54318c(0xf4),'SXmKu':function(_0x1bb6d9,_0x4d48c4){return _0x1bb6d9>=_0x4d48c4;},'sxcro':function(_0x31c1af,_0x127cbe){return _0x31c1af+_0x127cbe;},'MwRic':function(_0x5acfe7,_0x5987a2){return _0x5acfe7+_0x5987a2;},'UyPWk':function(_0x29d440,_0x598c6d){return _0x29d440/_0x598c6d;},'rZlBd':function(_0x3ef8c2,_0x4ba832){return _0x3ef8c2!==_0x4ba832;},'TKgRk':_0x54318c(0xed),'DzEOg':function(_0x171d02,_0x740557){return _0x171d02(_0x740557);},'vwUTt':_0x54318c(0x1bc),'fRMZU':_0x54318c(0x122),'pFSud':_0x54318c(0x11e),'YKgOS':'ma_vt','CncER':_0x54318c(0xf6),'ADyBa':function(_0xe9769,_0x500e49){return _0xe9769===_0x500e49;},'ZUZhI':_0x54318c(0xf9),'YtWBM':_0x54318c(0x1cf),'eEEZP':function(_0x126df8,_0x46bb10){return _0x126df8(_0x46bb10);},'Bxowm':_0x54318c(0x177),'hTbrG':_0x54318c(0x123),'DMZZg':function(_0x15a8d9,_0x2386bf,_0x4ef545){return _0x15a8d9(_0x2386bf,_0x4ef545);},'IEXob':function(_0x3b63d7,_0x1e3789){return _0x3b63d7===_0x1e3789;},'YtKfr':_0x54318c(0x121),'UgoDB':_0x54318c(0x1d0),'hHHjM':function(_0x9e568b,_0x14ed73){return _0x9e568b===_0x14ed73;},'nTIaQ':_0x54318c(0x12d),'Svnbl':_0x54318c(0xef),'EUUgx':function(_0x3d0497,_0x265430){return _0x3d0497===_0x265430;},'sEFVE':_0x54318c(0x124),'ZcCDc':_0x54318c(0xec),'KGtRS':'RcABO','hzWQy':function(_0x47d22e,_0x3e5f61){return _0x47d22e===_0x3e5f61;},'Dxdmx':_0x54318c(0x131),'NSTdY':_0x54318c(0x147),'saLpa':function(_0x498a20,_0xec520b){return _0x498a20===_0xec520b;},'usWmn':_0x54318c(0x19d),'gmVjW':_0x54318c(0x173),'vfQnR':_0x54318c(0x196),'zPoeL':function(_0x3a6f3,_0x42817e){return _0x3a6f3===_0x42817e;},'dhMPe':function(_0x2214f3,_0x4991da){return _0x2214f3===_0x4991da;},'rCIRW':'cHtWr','VWtlX':_0x54318c(0x126),'boOkp':function(_0x57b1c0,_0x587c88){return _0x57b1c0>_0x587c88;},'zyimi':_0x54318c(0x103),'siyOQ':_0x54318c(0x138),'NYJQT':function(_0x48968e,_0x313d0e){return _0x48968e===_0x313d0e;},'YRxlH':_0x54318c(0x10f),'LaHnm':_0x54318c(0x19a),'HVZjV':_0x54318c(0x185),'xDAeA':_0x54318c(0x165),'PgQna':_0x54318c(0x153),'aUkxG':_0x54318c(0x11f)};if(!_0x960545['id_app'])throw _0x2e0efb['dHIyY'];if(!_0x960545['den_ngay'])_0x960545[_0x54318c(0x139)]=new Date();const _0x1ffb94={'id_app':_0x960545[_0x54318c(0x10b)]};_0x1ffb94[_0x54318c(0x10a)]={'$lte':_0x960545[_0x54318c(0x139)]};_0x960545['tu_ngay']&&(_0x2e0efb[_0x54318c(0x16a)](_0x2e0efb[_0x54318c(0xee)],_0x2e0efb[_0x54318c(0xee)])?_0x1ffb94[_0x54318c(0x10a)][_0x54318c(0x1d6)]=_0x960545[_0x54318c(0x132)]:_0x5a0dec['ma_bp']=_0xcc812a[_0x54318c(0x1a0)]);if(_0x960545[_0x54318c(0x183)]){if(_0x2e0efb['UgoDB']!==_0x2e0efb[_0x54318c(0xf1)])throw _0x2e0efb[_0x54318c(0x1ca)];else _0x1ffb94[_0x54318c(0x183)]=_0x960545['ma_dvcs'];}_0x960545[_0x54318c(0x194)]&&(_0x2e0efb[_0x54318c(0x118)](_0x2e0efb[_0x54318c(0x17e)],_0x2e0efb[_0x54318c(0x129)])?_0x2a7029[_0x54318c(0x194)]=_0x3c743a[_0x54318c(0x194)]:_0x1ffb94[_0x54318c(0x194)]=_0x960545[_0x54318c(0x194)]);_0x960545[_0x54318c(0x1be)]&&(_0x2e0efb[_0x54318c(0xfc)](_0x2e0efb[_0x54318c(0x1a4)],_0x2e0efb[_0x54318c(0x19e)])?_0x522318['ma_dvcs']=_0x3f71e2[_0x54318c(0x183)]:_0x1ffb94['user_ctv']=_0x960545['user_ctv']);_0x960545[_0x54318c(0x128)]&&(_0x2e0efb[_0x54318c(0xfe)](_0x2e0efb[_0x54318c(0x11c)],_0x2e0efb[_0x54318c(0x11c)])?_0x1ffb94['tinh_thanh']=_0x960545[_0x54318c(0x128)]:_0x5c11c1[_0x54318c(0x134)]=_0xb6b6ef['ma_ct']);_0x960545[_0x54318c(0x112)]&&(_0x1ffb94[_0x54318c(0x112)]=_0x960545[_0x54318c(0x112)]);_0x960545[_0x54318c(0x164)]&&(_0x1ffb94[_0x54318c(0x187)]=[{'ma_kho':_0x960545['ma_kho']},{'details.ma_kho':_0x960545[_0x54318c(0x164)]}]);if(_0x960545[_0x54318c(0x117)]){if(_0x2e0efb[_0x54318c(0x148)](_0x2e0efb[_0x54318c(0x197)],_0x2e0efb[_0x54318c(0x1c7)])){delete _0x5c449e[_0x54318c(0x106)],_0xe8f9fd['nxt']=0x2;let _0x5b722a={..._0x13c991,..._0x12f395};return!_0x5b722a['ma_nv']&&(_0x5b722a[_0x54318c(0x112)]=_0x30cabd[_0x54318c(0x112)]),!_0x5b722a[_0x54318c(0x166)]&&(_0x5b722a[_0x54318c(0x166)]=_0x2abd76['ma_dt']),!_0x5b722a[_0x54318c(0x1a0)]&&(_0x5b722a[_0x54318c(0x1a0)]=_0x282cc1['ma_bp']),_0x5b722a;}else _0x1ffb94['ma_kh']=_0x960545['ma_kh'];}else{if(_0x2e0efb[_0x54318c(0x110)](_0x2e0efb[_0x54318c(0x1b0)],_0x2e0efb[_0x54318c(0x111)]))_0x4f2cf8[_0x54318c(0x1be)]=_0x135269[_0x54318c(0x1be)];else{let _0x2aac7b,_0x279c37,_0x57897f,_0x36a383,_0x1f2168,_0x1accc6={};_0x960545['nh_kh']&&(_0x2aac7b=await global['getModel'](_0x2e0efb[_0x54318c(0x102)])['getAllChildrenGroup'](_0x960545[_0x54318c(0x10b)],_0x960545[_0x54318c(0x193)],{'status':!![]}),_0x1accc6[_0x54318c(0x193)]={'$in':_0x2aac7b});_0x960545['nh_kh2']&&(_0x279c37=await global[_0x54318c(0x15d)](_0x2e0efb['vfQnR'])['getAllChildrenGroup'](_0x960545[_0x54318c(0x10b)],_0x960545[_0x54318c(0x154)],{'status':!![]}),_0x1accc6[_0x54318c(0x154)]={'$in':_0x279c37});if(_0x960545['nh_kh3']){if(_0x2e0efb[_0x54318c(0x18c)]('kEoeo',_0x54318c(0xfd)))_0x57897f=await global[_0x54318c(0x15d)](_0x2e0efb[_0x54318c(0x102)])['getAllChildrenGroup'](_0x960545['id_app'],_0x960545[_0x54318c(0x13b)],{'status':!![]}),_0x1accc6[_0x54318c(0x13b)]={'$in':_0x57897f};else{_0x3f2fef[_0x54318c(0x162)]=_0x2e0efb[_0x54318c(0x101)](_0x2ce0df,0x1),_0x54db15[_0x54318c(0x199)]=_0x2d78b3[_0x54318c(0x106)][_0x54318c(0x127)](),_0x37a3cc['bold']=![],_0xc187d5['tt']=_0x146df3[_0x54318c(0x12f)]=_0x2e0efb[_0x54318c(0x1ac)](_0x2e0efb[_0x54318c(0x113)](_0x3453be[_0x54318c(0x175)]||0x0,_0x3c0417[_0x54318c(0x169)]||0x0),_0x73053[_0x54318c(0xf5)]||0x0),_0x4332a9[_0x54318c(0x15f)]=_0x394016[_0x54318c(0x1a9)]?_0x2e0efb['kjLgD'](_0x2e0efb['QZcZy'](_0xd7d868['tt'],_0x14f550[_0x54318c(0x1a9)]),_0x3c6eb4[_0x54318c(0xf5)]||0x0):0x0,_0x51dac8['t_hoa_hong']=_0x2e0efb[_0x54318c(0x1ac)](_0xb440a6[_0x54318c(0x11d)]+_0x49381f['tien_hoa_hong_gt']+_0x4c2a95[_0x54318c(0x174)],_0x45279e[_0x54318c(0x1a2)]);if(_0x405f85['mau']){let _0x13fb5a=_0x598d33['tu']/_0x4be2c8[_0x54318c(0xf6)];_0x24062b[_0x54318c(0x135)]=_0x2e0efb[_0x54318c(0x18a)](_0x13fb5a,_0x262f14[_0x54318c(0x13a)]||0x0),_0x38e2d9[_0x54318c(0x15a)]=_0x2e0efb[_0x54318c(0x1d7)](_0x13fb5a,_0x9338c1[_0x54318c(0x116)]||0x0);}else _0x44f018['sl_xuat_qd']=_0x2d2a4a[_0x54318c(0x13a)]||0x0,_0x362774[_0x54318c(0x15a)]=_0x31281c[_0x54318c(0x116)]||0x0;}}if(_0x960545[_0x54318c(0x1bf)]){if(_0x2e0efb[_0x54318c(0x168)](_0x2e0efb[_0x54318c(0x14d)],_0x2e0efb[_0x54318c(0x13e)]))return _0x4c8f7c[_0x54318c(0x127)]()[_0x54318c(0x16c)](qLwSMr['KGiFi'])[_0x54318c(0x127)]()['constructor'](_0x35ed79)[_0x54318c(0x16c)](qLwSMr[_0x54318c(0x11b)]);else _0x36a383=await global['getModel'](_0x2e0efb[_0x54318c(0x102)])[_0x54318c(0xfa)](_0x960545['id_app'],_0x960545[_0x54318c(0x1bf)],{'status':!![]}),_0x1accc6[_0x54318c(0x1bf)]={'$in':_0x36a383};}_0x960545[_0x54318c(0x186)]&&(_0x1f2168=await global[_0x54318c(0x15d)](_0x2e0efb['vfQnR'])[_0x54318c(0xfa)](_0x960545[_0x54318c(0x10b)],_0x960545[_0x54318c(0x186)],{'status':!![]}),_0x1accc6['nh_kh5']={'$in':_0x1f2168});if(_0x2e0efb[_0x54318c(0x1cd)](Object[_0x54318c(0x15e)](_0x1accc6)[_0x54318c(0x1a6)],0x0)){_0x1accc6['id_app']=_0x960545['id_app'];let _0x596f8f=await global[_0x54318c(0x15d)](_0x54318c(0x1ce))[_0x54318c(0x1d8)](_0x1accc6,{'ma_kh':0x1})[_0x54318c(0x120)]();_0x1ffb94['ma_kh']={'$in':_0x596f8f[_0x54318c(0x100)](_0x19716c=>_0x19716c['ma_kh'])};}}}_0x960545[_0x54318c(0x134)]&&(_0x1ffb94[_0x54318c(0x134)]=_0x960545['ma_ct']);_0x960545[_0x54318c(0x156)]&&(_0x2e0efb[_0x54318c(0x16d)](_0x2e0efb['zyimi'],_0x2e0efb['siyOQ'])?_0x1ffb94[_0x54318c(0x187)]?_0x1ffb94[_0x54318c(0x136)]=[{'$or':[{'user_nv':_0x960545['user_hoa_hong']},{'user_ctv':_0x960545[_0x54318c(0x156)]},{'user_gt':_0x960545['user_hoa_hong']},{'user_ql':_0x960545[_0x54318c(0x156)]},{'details.user_nv':_0x960545[_0x54318c(0x156)]},{'details.user_ctv':_0x960545['user_hoa_hong']},{'details.user_gt':_0x960545[_0x54318c(0x156)]},{'details.user_ql':_0x960545['user_hoa_hong']}]}]:_0x1ffb94[_0x54318c(0x187)]=[{'user_nv':_0x960545[_0x54318c(0x156)]},{'user_ctv':_0x960545[_0x54318c(0x156)]},{'user_gt':_0x960545[_0x54318c(0x156)]},{'user_ql':_0x960545[_0x54318c(0x156)]},{'details.user_nv':_0x960545[_0x54318c(0x156)]},{'details.user_ctv':_0x960545[_0x54318c(0x156)]},{'details.user_gt':_0x960545[_0x54318c(0x156)]},{'details.user_ql':_0x960545[_0x54318c(0x156)]}]:_0x12c988[_0x54318c(0x166)]=_0x16fb09['ma_dt']);let _0x49154c;if(_0x960545['ma_vt']){if(_0x2e0efb[_0x54318c(0x1d3)](_0x2e0efb[_0x54318c(0x16e)],_0x2e0efb[_0x54318c(0x16e)]))_0x1ffb94[_0x2e0efb[_0x54318c(0x145)]]=_0x960545[_0x54318c(0x14b)],_0x49154c=[_0x960545[_0x54318c(0x14b)]];else{const _0x17e7b7={'LJRUG':function(_0x247c86,_0x2b5963){const _0x41ef71=_0x54318c;return _0x2e0efb[_0x41ef71(0x1a5)](_0x247c86,_0x2b5963);}};_0x174530=_0x30d91a[_0x54318c(0x14e)](_0x4f9df4=>{const _0x48fa3e=_0x54318c;return _0x17e7b7['LJRUG'](_0x922899[_0x48fa3e(0x1ba)](_0x4f9df4[_0x48fa3e(0x14b)]),0x0);});}}else{if(_0x960545[_0x54318c(0x1c8)]||_0x960545['ma_nvt']||_0x960545[_0x54318c(0x17c)]||_0x960545[_0x54318c(0x1a3)]){if(_0x2e0efb['HVZjV']===_0x2e0efb[_0x54318c(0xf0)]){const _0x484aa9=_0x2128a5?function(){const _0x2fb0a1=_0x54318c;if(_0x3ca0b3){const _0x168e67=_0x53e6d9[_0x2fb0a1(0x189)](_0x442fc3,arguments);return _0x2c5ee5=null,_0x168e67;}}:function(){};return _0xf5fb75=![],_0x484aa9;}else{let _0x57f781={'id_app':_0x960545['id_app']};if(_0x960545[_0x54318c(0x1c8)])_0x57f781[_0x54318c(0x1c8)]=_0x960545['ma_ncc'];if(_0x960545[_0x54318c(0x10e)])_0x57f781[_0x54318c(0x10e)]=_0x960545[_0x54318c(0x10e)];if(_0x960545[_0x54318c(0x17c)])_0x57f781[_0x54318c(0x17c)]=_0x960545[_0x54318c(0x17c)];if(_0x960545[_0x54318c(0x1a3)])_0x57f781[_0x54318c(0x1a3)]=_0x960545[_0x54318c(0x1a3)];let _0x372f15=await global[_0x54318c(0x15d)](_0x2e0efb[_0x54318c(0x1b9)])['find'](_0x57f781,{'ma_vt':0x1})['lean']();_0x49154c=_0x372f15[_0x54318c(0x100)](_0x398aa0=>_0x398aa0[_0x54318c(0x14b)]),_0x1ffb94['details.ma_vt']={'$in':_0x49154c};}}}return _0x960545[_0x54318c(0x190)]&&(_0x1ffb94[_0x2e0efb[_0x54318c(0x17f)]]=_0x960545[_0x54318c(0x190)]),_0x960545[_0x54318c(0x176)]&&(_0x1ffb94['details.id_cs_ck']=_0x960545[_0x54318c(0x176)]),_0x1ffb94['show_payment_method']=![],new Promise((_0x5242c5,_0x24b564)=>{const _0x271817=_0x54318c;_0x2e0efb['ADyBa'](_0x2e0efb['Bxowm'],_0x2e0efb[_0x271817(0x1a7)])?_0x22813c[_0x271817(0x187)]=[{'user_nv':_0x6e9086[_0x271817(0x156)]},{'user_ctv':_0x2d6cbf[_0x271817(0x156)]},{'user_gt':_0x47b1fb['user_hoa_hong']},{'user_ql':_0x578b3a[_0x271817(0x156)]},{'details.user_nv':_0x4b533c[_0x271817(0x156)]},{'details.user_ctv':_0x1f0869['user_hoa_hong']},{'details.user_gt':_0x515500[_0x271817(0x156)]},{'details.user_ql':_0x1e73b0['user_hoa_hong']}]:_0x2e0efb[_0x271817(0x115)](databanle,_0x1ffb94,function(_0x5ed2db,_0x37e4ca){const _0x36e877=_0x271817,_0x299c77={'JXUdr':function(_0x498d2e,_0x334456){return _0x498d2e===_0x334456;},'OXGUn':_0x36e877(0x16b),'AUEYh':_0x2e0efb[_0x36e877(0x17d)],'tXAdb':function(_0x2c66f0,_0x56c881){const _0x1c80e7=_0x36e877;return _0x2e0efb[_0x1c80e7(0x113)](_0x2c66f0,_0x56c881);},'XhuQP':function(_0x2e400b,_0x12eb52){return _0x2e0efb['kjLgD'](_0x2e400b,_0x12eb52);},'VdyAO':function(_0x53eb15,_0x1a5658){const _0x583bfa=_0x36e877;return _0x2e0efb[_0x583bfa(0x1a8)](_0x53eb15,_0x1a5658);},'hAykl':'vsfuS','XumkN':_0x2e0efb[_0x36e877(0x144)],'aYzEV':function(_0x3a07c3,_0x5e8e1f){return _0x2e0efb['SXmKu'](_0x3a07c3,_0x5e8e1f);},'SmnbY':function(_0x4618a3,_0x1b7f79){const _0x4f9c59=_0x36e877;return _0x2e0efb[_0x4f9c59(0x1cc)](_0x4618a3,_0x1b7f79);},'GkMrl':function(_0x4a18b3,_0x1b28cd){return _0x4a18b3-_0x1b28cd;},'QKGhH':function(_0x3d734b,_0x27537e){return _0x3d734b+_0x27537e;},'Zounh':function(_0x36766b,_0x3f8b5c){const _0x2e5b0b=_0x36e877;return _0x2e0efb[_0x2e5b0b(0x18b)](_0x36766b,_0x3f8b5c);},'rkdxC':function(_0x2cec58,_0x33967f){const _0x2185b1=_0x36e877;return _0x2e0efb[_0x2185b1(0x1ac)](_0x2cec58,_0x33967f);},'ZMFEA':function(_0x5598d0,_0x48e752){const _0x1cb44c=_0x36e877;return _0x2e0efb[_0x1cb44c(0x12a)](_0x5598d0,_0x48e752);},'rAJsZ':function(_0x57b720,_0x2a11d1){const _0x402d5f=_0x36e877;return _0x2e0efb[_0x402d5f(0x1d7)](_0x57b720,_0x2a11d1);},'doLRt':function(_0xe92f6b,_0x45e8a0){const _0x27ffeb=_0x36e877;return _0x2e0efb[_0x27ffeb(0x16d)](_0xe92f6b,_0x45e8a0);},'cVgJi':_0x2e0efb[_0x36e877(0x1bb)],'gLqxm':_0x36e877(0x1b3),'aztBd':function(_0x158769,_0x4bd143){return _0x2e0efb['DzEOg'](_0x158769,_0x4bd143);},'SjCTa':_0x2e0efb['vwUTt'],'jYACb':'NbDhs','FNRQa':function(_0x1fa8e4,_0x214cf6){return _0x2e0efb['rZlBd'](_0x1fa8e4,_0x214cf6);},'XiYQl':_0x2e0efb[_0x36e877(0x13c)],'LZXLC':_0x2e0efb[_0x36e877(0x18f)],'uoxVl':_0x2e0efb[_0x36e877(0x1b5)],'dOJUw':_0x2e0efb['CncER'],'PCLOl':'ma_dvt_goc','tQRIS':function(_0x1e1760,_0x50d734){return _0x1e1760(_0x50d734);}};if(_0x2e0efb[_0x36e877(0xfe)](_0x2e0efb[_0x36e877(0x18e)],_0x2e0efb['YtWBM']))_0x148f81[_0x36e877(0x1a0)]=_0x3e7b6b[_0x36e877(0x1a0)];else{if(_0x5ed2db)return _0x2e0efb[_0x36e877(0x104)](_0x24b564,_0x5ed2db);async['mapLimit'](_0x37e4ca,0x64,function(_0x16b86f,_0x31b972){const _0xc7fc3f=_0x36e877,_0x2cc34c={'HubUz':function(_0x5b90f2,_0x553598){return _0x5b90f2!==_0x553598;},'cBOUv':_0x299c77['AUEYh'],'BlcsQ':function(_0x431d3c,_0x5754d4){const _0x3d06dc=_0x1560;return _0x299c77[_0x3d06dc(0x152)](_0x431d3c,_0x5754d4);},'TJXvD':function(_0x1ba5f2,_0x3bb7e7){const _0x4e4473=_0x1560;return _0x299c77[_0x4e4473(0x1b6)](_0x1ba5f2,_0x3bb7e7);},'XmXJP':function(_0x2c1b5e,_0x534575){return _0x299c77['XhuQP'](_0x2c1b5e,_0x534575);},'MTDOg':function(_0x5a8d4f,_0x2a1f48){return _0x5a8d4f-_0x2a1f48;},'KjeIW':function(_0x10e480,_0x516fe9){const _0x3c15e5=_0x1560;return _0x299c77[_0x3c15e5(0x105)](_0x10e480,_0x516fe9);}};if('FqmfY'!==_0x299c77[_0xc7fc3f(0x158)]){let _0x293822=_0x16b86f[_0xc7fc3f(0x1b1)]||[];delete _0x16b86f[_0xc7fc3f(0x1b1)],_0x293822=_0x293822[_0xc7fc3f(0x100)](_0xc53b83=>{const _0x50ae9a=_0xc7fc3f;if(_0x299c77[_0x50ae9a(0x1b4)](_0x299c77[_0x50ae9a(0x1b2)],_0x299c77['OXGUn'])){delete _0xc53b83[_0x50ae9a(0x106)],_0xc53b83[_0x50ae9a(0x157)]=0x2;let _0x174286={..._0x16b86f,..._0xc53b83};return!_0x174286[_0x50ae9a(0x112)]&&(_0x174286[_0x50ae9a(0x112)]=_0x16b86f[_0x50ae9a(0x112)]),!_0x174286[_0x50ae9a(0x166)]&&(_0x174286[_0x50ae9a(0x166)]=_0x16b86f[_0x50ae9a(0x166)]),!_0x174286[_0x50ae9a(0x1a0)]&&(_0x174286[_0x50ae9a(0x1a0)]=_0x16b86f[_0x50ae9a(0x1a0)]),_0x174286;}else{if(_0x289453){const _0x463ffd=_0x28ee9c[_0x50ae9a(0x189)](_0x34064e,arguments);return _0x1c790f=null,_0x463ffd;}}}),_0x16b86f[_0xc7fc3f(0x149)]&&(_0x299c77[_0xc7fc3f(0x107)]!==_0xc7fc3f(0xf4)?_0x3640c2['ma_kh']=_0x57c2ee[_0xc7fc3f(0x117)]:(_0x293822=[..._0x293822,..._0x16b86f[_0xc7fc3f(0x149)]['map'](_0x4a0227=>{const _0x33e914=_0xc7fc3f;if(_0x2cc34c['HubUz'](_0x2cc34c[_0x33e914(0x160)],_0x33e914(0x1ab))){delete _0x4a0227[_0x33e914(0x106)];let _0x3c0a8f={..._0x16b86f,..._0x4a0227};return!_0x3c0a8f[_0x33e914(0x112)]&&(_0x3c0a8f[_0x33e914(0x112)]=_0x16b86f[_0x33e914(0x112)]),!_0x3c0a8f[_0x33e914(0x166)]&&(_0x3c0a8f['ma_dt']=_0x16b86f[_0x33e914(0x166)]),!_0x3c0a8f[_0x33e914(0x1a0)]&&(_0x3c0a8f['ma_bp']=_0x16b86f[_0x33e914(0x1a0)]),_0x3c0a8f['tien_hang_nt']=0x0-_0x3c0a8f[_0x33e914(0x19c)]||0x0,_0x3c0a8f[_0x33e914(0x15b)]=0x0-(_0x3c0a8f[_0x33e914(0x15b)]||0x0),_0x3c0a8f[_0x33e914(0x191)]=_0x2cc34c[_0x33e914(0x198)](0x0,_0x3c0a8f[_0x33e914(0x191)])||0x0,_0x3c0a8f[_0x33e914(0x175)]=_0x2cc34c[_0x33e914(0x130)](0x0,_0x3c0a8f[_0x33e914(0x175)]||0x0),_0x3c0a8f[_0x33e914(0x169)]=_0x2cc34c[_0x33e914(0x198)](0x0,_0x3c0a8f[_0x33e914(0x169)]||0x0),_0x3c0a8f[_0x33e914(0x161)]=_0x2cc34c[_0x33e914(0x1b7)](0x0,_0x3c0a8f[_0x33e914(0x161)]||0x0),_0x3c0a8f['tien_thue']=0x0-(_0x3c0a8f['tien_thue']||0x0),_0x3c0a8f[_0x33e914(0x13d)]=_0x2cc34c[_0x33e914(0x1d4)](0x0,_0x3c0a8f['tien_thue_nt']||0x0),_0x3c0a8f[_0x33e914(0x1a9)]=_0x2cc34c[_0x33e914(0x198)](0x0,_0x3c0a8f[_0x33e914(0x14c)]||0x0),_0x3c0a8f['sl_xuat']=0x0,_0x3c0a8f['tien_hoa_hong']=_0x2cc34c[_0x33e914(0xfb)](0x0,_0x3c0a8f[_0x33e914(0x11d)]),_0x3c0a8f[_0x33e914(0x150)]=_0x2cc34c[_0x33e914(0x1d4)](0x0,_0x3c0a8f[_0x33e914(0x150)]),_0x3c0a8f[_0x33e914(0x174)]=_0x2cc34c[_0x33e914(0x1d4)](0x0,_0x3c0a8f[_0x33e914(0x174)]),_0x3c0a8f['tien_hoa_hong_ql']=_0x2cc34c['BlcsQ'](0x0,_0x3c0a8f['tien_hoa_hong_ql']),_0x3c0a8f['nxt']=0x1,_0x3c0a8f;}else _0xf0e8b1[_0x33e914(0x112)]=_0x4ef127['ma_nv'];})],delete _0x16b86f[_0xc7fc3f(0x149)])),_0x31b972(null,_0x293822);}else return _0x388489[_0xc7fc3f(0x1ba)](_0x4a8ac0[_0xc7fc3f(0x14b)])>=0x0;},async function(_0x201af1,_0x1381ea){const _0x4c1e46=_0x36e877,_0xc72ccd={'gqNYU':function(_0x3410b3,_0xc5defd){const _0x2b5b75=_0x1560;return _0x299c77[_0x2b5b75(0x1d1)](_0x3410b3,_0xc5defd);},'BanmD':function(_0x497166,_0x3f2db9){const _0x203b19=_0x1560;return _0x299c77[_0x203b19(0x10c)](_0x497166,_0x3f2db9);},'wIZzx':function(_0x2cd53e,_0x69e16f){return _0x299c77['SmnbY'](_0x2cd53e,_0x69e16f);},'paKIp':function(_0x3d02a4,_0x4932c0){const _0x3dbb22=_0x1560;return _0x299c77[_0x3dbb22(0x1b6)](_0x3d02a4,_0x4932c0);},'YVVUy':function(_0xa30fd3,_0x43d6d3){const _0x74c207=_0x1560;return _0x299c77[_0x74c207(0x14f)](_0xa30fd3,_0x43d6d3);},'aUCfS':function(_0x30fdd7,_0x42d126){const _0x696944=_0x1560;return _0x299c77[_0x696944(0x179)](_0x30fdd7,_0x42d126);},'IIhLv':function(_0x43b944,_0x1a5e2c){const _0x2915b6=_0x1560;return _0x299c77[_0x2915b6(0xf3)](_0x43b944,_0x1a5e2c);},'cVPzj':function(_0x5109c5,_0x100577){const _0x47b9f5=_0x1560;return _0x299c77[_0x47b9f5(0x14a)](_0x5109c5,_0x100577);},'knblg':function(_0x52d468,_0x292a4a){return _0x299c77['ZMFEA'](_0x52d468,_0x292a4a);},'uCezU':function(_0x1ca6a2,_0x76b468){return _0x299c77['rAJsZ'](_0x1ca6a2,_0x76b468);},'TVfqk':function(_0x166043,_0x377260){return _0x299c77['doLRt'](_0x166043,_0x377260);},'jNDns':_0x299c77['cVgJi'],'QbIhL':_0x299c77[_0x4c1e46(0xf2)]};if(_0x201af1)return _0x299c77[_0x4c1e46(0x12b)](_0x24b564,_0x201af1);_0x1381ea=_0x1381ea[_0x4c1e46(0x1c2)]((_0x3a5600,_0x5893b7)=>_0x3a5600[_0x4c1e46(0x192)](_0x5893b7),[]),_0x49154c&&(_0x1381ea=_0x1381ea['filter'](_0x598ef7=>{const _0x298f3b=_0x4c1e46;return _0xc72ccd['gqNYU'](_0x49154c[_0x298f3b(0x1ba)](_0x598ef7[_0x298f3b(0x14b)]),0x0);})),_0x960545['id_cs']&&(_0x299c77[_0x4c1e46(0x1b4)](_0x299c77[_0x4c1e46(0x182)],_0x299c77[_0x4c1e46(0xf7)])?_0x3af3c5[_0x4c1e46(0x112)]=_0x59a612[_0x4c1e46(0x112)]:_0x1381ea=_0x1381ea[_0x4c1e46(0x14e)](_0x8d1f69=>_0x8d1f69[_0x4c1e46(0x190)]===_0x960545[_0x4c1e46(0x190)])),_0x960545[_0x4c1e46(0x176)]&&(_0x299c77[_0x4c1e46(0x19f)](_0x299c77['XiYQl'],_0x299c77[_0x4c1e46(0x1d2)])?_0x2e36f5[_0x4c1e46(0x128)]=_0x96f040[_0x4c1e46(0x128)]:_0x1381ea=_0x1381ea[_0x4c1e46(0x14e)](_0x1ac433=>_0x1ac433['id_cs_ck']===_0x960545[_0x4c1e46(0x176)])),await _0x1381ea['asyncJoinModel2'](_0x960545[_0x4c1e46(0x10b)],_0x4c1e46(0x143),{'where':{'ma_dvt':_0x299c77[_0x4c1e46(0x1b8)],'ma_vt':_0x299c77[_0x4c1e46(0x1aa)]},'fields':['tu',_0x299c77[_0x4c1e46(0x1ae)],_0x299c77[_0x4c1e46(0x1c3)]]}),_0x1381ea[_0x4c1e46(0x119)](function(_0x97d7d,_0x2967ca){const _0xd10af6=_0x4c1e46;_0x97d7d['stt']=_0xc72ccd[_0xd10af6(0x114)](_0x2967ca,0x1),_0x97d7d['id_ct']=_0x97d7d[_0xd10af6(0x106)]['toString'](),_0x97d7d[_0xd10af6(0x188)]=![],_0x97d7d['tt']=_0x97d7d[_0xd10af6(0x12f)]=_0xc72ccd[_0xd10af6(0x19b)](_0xc72ccd[_0xd10af6(0x159)](_0x97d7d[_0xd10af6(0x175)]||0x0,_0x97d7d[_0xd10af6(0x169)]||0x0),_0x97d7d[_0xd10af6(0xf5)]||0x0),_0x97d7d[_0xd10af6(0x15f)]=_0x97d7d[_0xd10af6(0x1a9)]?_0xc72ccd[_0xd10af6(0x1c5)](_0x97d7d['tt'],_0x97d7d[_0xd10af6(0x1a9)])-(_0x97d7d[_0xd10af6(0xf5)]||0x0):0x0,_0x97d7d[_0xd10af6(0x1d5)]=_0xc72ccd[_0xd10af6(0x181)](_0xc72ccd[_0xd10af6(0x171)](_0xc72ccd[_0xd10af6(0xeb)](_0x97d7d[_0xd10af6(0x11d)],_0x97d7d[_0xd10af6(0x150)]),_0x97d7d[_0xd10af6(0x174)]),_0x97d7d['tien_hoa_hong_ql']);if(_0x97d7d[_0xd10af6(0xf6)]){if(_0xd10af6(0x1ad)===_0xd10af6(0x109))_0x3194d6[_0xd10af6(0x135)]=_0x166aa9[_0xd10af6(0x13a)]||0x0,_0x216739['sl_nhap_qd']=_0x350472[_0xd10af6(0x116)]||0x0;else{let _0x4493e3=_0xc72ccd[_0xd10af6(0x167)](_0x97d7d['tu'],_0x97d7d[_0xd10af6(0xf6)]);_0x97d7d[_0xd10af6(0x135)]=_0xc72ccd[_0xd10af6(0x1c9)](_0x4493e3,_0x97d7d[_0xd10af6(0x13a)]||0x0),_0x97d7d[_0xd10af6(0x15a)]=_0xc72ccd['uCezU'](_0x4493e3,_0x97d7d[_0xd10af6(0x116)]||0x0);}}else _0xc72ccd[_0xd10af6(0x142)](_0xc72ccd[_0xd10af6(0x155)],_0xc72ccd['QbIhL'])?(_0x97d7d['sl_xuat_qd']=_0x97d7d['sl_xuat']||0x0,_0x97d7d[_0xd10af6(0x15a)]=_0x97d7d[_0xd10af6(0x116)]||0x0):_0x5a2581[_0xd10af6(0x166)]=_0x1e6fcd[_0xd10af6(0x166)];}),_0x299c77[_0x4c1e46(0x16f)](_0x5242c5,_0x1381ea);});}});});};
|
package/server/libs/email.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
const mailAccount=global
|
|
2
|
-
exports.sendHtml=function($options$$,$callback$$=()=>{},$sender$$){let $onImportProcess$$=path.dirname(__dirname)+"/workers/sendEmail.js";if(!global.sendEmailPool){const $StaticPool$$=require("./WorkerStaticPool");global.sendEmailPool=new $StaticPool$$($onImportProcess$$)}global.sendEmailPool.exec({options:$options$$,configs:{sender:$sender$$||global.configs.sender,company:global.configs.company,google_credentials:global.configs.google_credentials?JSON.stringify(global.configs.google_credentials):
|
|
3
|
-
"",paths:global.configs.paths}},$response$$=>{$response$$.error?$callback$$($response$$.error):$callback$$(null,$response$$.data,$response$$.columns)})};
|
|
1
|
+
const _0x4ccef8=_0x5cfe;(function(_0x3b9427,_0x1fe011){const _0x5efd84=_0x5cfe,_0x2d5d=_0x3b9427();while(!![]){try{const _0x1311b7=-parseInt(_0x5efd84(0xae))/0x1*(-parseInt(_0x5efd84(0xab))/0x2)+parseInt(_0x5efd84(0xbc))/0x3*(parseInt(_0x5efd84(0xc8))/0x4)+-parseInt(_0x5efd84(0xcc))/0x5*(parseInt(_0x5efd84(0xc1))/0x6)+-parseInt(_0x5efd84(0xb9))/0x7*(-parseInt(_0x5efd84(0xb7))/0x8)+-parseInt(_0x5efd84(0xb0))/0x9+-parseInt(_0x5efd84(0xaf))/0xa*(parseInt(_0x5efd84(0xbf))/0xb)+parseInt(_0x5efd84(0xac))/0xc;if(_0x1311b7===_0x1fe011)break;else _0x2d5d['push'](_0x2d5d['shift']());}catch(_0xcfdc55){_0x2d5d['push'](_0x2d5d['shift']());}}}(_0x5965,0x9238d));const _0x5521cc=(function(){let _0x26b5b4=!![];return function(_0x14c3e5,_0x2ca83e){const _0x10b3aa=_0x26b5b4?function(){const _0x12de22=_0x5cfe;if(_0x2ca83e){const _0x29cd18=_0x2ca83e[_0x12de22(0xca)](_0x14c3e5,arguments);return _0x2ca83e=null,_0x29cd18;}}:function(){};return _0x26b5b4=![],_0x10b3aa;};}()),_0x445645=_0x5521cc(this,function(){const _0x35029d=_0x5cfe,_0x145ccc={'kIHLR':'(((.+)+)+)+$'};return _0x445645[_0x35029d(0xb3)]()[_0x35029d(0xce)]('(((.+)+)+)+$')['toString']()[_0x35029d(0xd2)](_0x445645)[_0x35029d(0xce)](_0x145ccc[_0x35029d(0xc9)]);});_0x445645();function _0x5965(){const _0x95a5e=['wvrJAgy','nM10wujREa','zxHLyW','zgf0yq','ELfzEeq','zxjYB3i','y29SDw1UCW','Cgf0Aa','nfbnBxbgCW','A0Litfi','yxbWBhK','BwfPBgfJy291BNq','ndeXnZm3mhDACNPvwa','zvzsu2W','C2vHCMnO','DgHLBG','v1LVDgm','AuTkvw0','y29UC3rYDwn0B3i','l3DVCMTLCNmVC2vUzevTywLSlMPZ','BgvHBG','twPqyK8','wK9Nu0S','BxDYve8','C2vUzevTywLSug9VBa','rg9Uj3qGzMLUzcbHy2nVDw50ia','mtqZmJrzCgTsuuK','mJe1mZm4mZjtD0vnA1y','Cu96A3G','ndLWvM1SAxm','nJqWAeTgA0nK','mtaYmZa1ndnwsNrIvLO','z2v0qwnJB3vUDa','y2f0y2G','Dg9tDhjPBMC','y29UzMLNCW','yLP1AMy','Au9RsMq','nJK2BwHIwKns','z29Vz2XLx2nYzwrLBNrPywXZ','mJyYmJLHDMzuDfC','zgLYBMfTzq','ywngtvy','otqZnZC5ExvLsxvr','C3rYAw5NAwz5','z1ziCK8','mZG5otvwDNDmC3G'];_0x5965=function(){return _0x95a5e;};return _0x5965();}const mailAccount=global['getModel'](_0x4ccef8(0xcb)),path=require(_0x4ccef8(0xc7));function _0x5cfe(_0x372755,_0x10ad3b){const _0x5a6e2d=_0x5965();return _0x5cfe=function(_0x445645,_0x5521cc){_0x445645=_0x445645-0xa9;let _0x596563=_0x5a6e2d[_0x445645];if(_0x5cfe['iCKkFw']===undefined){var _0x5cfef9=function(_0x4a1ccf){const _0x4b6556='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x48ccb7='',_0x57c843='',_0x20a40b=_0x48ccb7+_0x5cfef9;for(let _0x2e094f=0x0,_0x23e1a9,_0x53e3bf,_0x3210d3=0x0;_0x53e3bf=_0x4a1ccf['charAt'](_0x3210d3++);~_0x53e3bf&&(_0x23e1a9=_0x2e094f%0x4?_0x23e1a9*0x40+_0x53e3bf:_0x53e3bf,_0x2e094f++%0x4)?_0x48ccb7+=_0x20a40b['charCodeAt'](_0x3210d3+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x23e1a9>>(-0x2*_0x2e094f&0x6)):_0x2e094f:0x0){_0x53e3bf=_0x4b6556['indexOf'](_0x53e3bf);}for(let _0x166276=0x0,_0x437867=_0x48ccb7['length'];_0x166276<_0x437867;_0x166276++){_0x57c843+='%'+('00'+_0x48ccb7['charCodeAt'](_0x166276)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x57c843);};_0x5cfe['wNCsZP']=_0x5cfef9,_0x372755=arguments,_0x5cfe['iCKkFw']=!![];}const _0x17f94c=_0x5a6e2d[0x0],_0x38762d=_0x445645+_0x17f94c,_0x548750=_0x372755[_0x38762d];if(!_0x548750){const _0x5d77fb=function(_0x55f2e5){this['UzwVkP']=_0x55f2e5,this['czJAzi']=[0x1,0x0,0x0],this['bhXtoT']=function(){return'newState';},this['CfvOPM']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['tVfBip']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5d77fb['prototype']['lPeGWI']=function(){const _0x3edb0e=new RegExp(this['CfvOPM']+this['tVfBip']),_0x1ba3ce=_0x3edb0e['test'](this['bhXtoT']['toString']())?--this['czJAzi'][0x1]:--this['czJAzi'][0x0];return this['xgGwsT'](_0x1ba3ce);},_0x5d77fb['prototype']['xgGwsT']=function(_0x209df7){if(!Boolean(~_0x209df7))return _0x209df7;return this['iyDxAZ'](this['UzwVkP']);},_0x5d77fb['prototype']['iyDxAZ']=function(_0x44bf7a){for(let _0x3278a7=0x0,_0x2e9df4=this['czJAzi']['length'];_0x3278a7<_0x2e9df4;_0x3278a7++){this['czJAzi']['push'](Math['round'](Math['random']())),_0x2e9df4=this['czJAzi']['length'];}return _0x44bf7a(this['czJAzi'][0x0]);},new _0x5d77fb(_0x5cfe)['lPeGWI'](),_0x596563=_0x5cfe['wNCsZP'](_0x596563),_0x372755[_0x38762d]=_0x596563;}else _0x596563=_0x548750;return _0x596563;},_0x5cfe(_0x372755,_0x10ad3b);}exports[_0x4ccef8(0xb1)]=function(_0xb82b19,_0x3ee0c1){const _0x207609=_0x4ccef8,_0x5134ab={'ZOgSK':function(_0x29b4fd,_0x5c6a2){return _0x29b4fd===_0x5c6a2;},'MjPbO':_0x207609(0xbe),'xKyrq':function(_0xcaf05e,_0x4a93b0){return _0xcaf05e(_0x4a93b0);},'zQYxD':function(_0x9a9113,_0x1e7dc8){return _0x9a9113+_0x1e7dc8;},'Zerle':_0x207609(0xc0),'eVRSl':function(_0x53b307,_0x39133f){return _0x53b307(_0x39133f);}};mailAccount['findOne']({'_id':_0xb82b19})[_0x207609(0xd4)]()[_0x207609(0xcf)](function(_0x574ca8){const _0x860cd3=_0x207609;if(_0x5134ab[_0x860cd3(0xd6)](_0x5134ab[_0x860cd3(0xd5)],_0x5134ab[_0x860cd3(0xd5)])){if(!_0x574ca8)return _0x5134ab['xKyrq'](_0x3ee0c1,_0x5134ab[_0x860cd3(0xc4)](_0x860cd3(0xaa),_0xb82b19));_0x3ee0c1(null,_0x574ca8);}else _0x1f3c97(_0x5b4259[_0x860cd3(0xc5)]);})[_0x207609(0xb2)](_0xca1b6c=>{const _0x17cdac=_0x207609;if(_0x5134ab['Zerle']===_0x5134ab['Zerle'])_0x5134ab[_0x17cdac(0xcd)](_0x3ee0c1,_0xca1b6c);else{if(_0x373e0e){const _0x35a7e4=_0x3d3b96['apply'](_0x41c644,arguments);return _0x5373dd=null,_0x35a7e4;}}});},exports['sendHtml']=function(_0x42b9fe,_0x2bf9de=()=>{},_0x13580a=undefined){const _0x102b73=_0x4ccef8,_0x2cb217={'mwrTO':function(_0x5886cc,_0x5d935a){return _0x5886cc===_0x5d935a;},'bZujf':_0x102b73(0xd0),'acFMV':function(_0x5dee2f,_0x568b5e){return _0x5dee2f(_0x568b5e);},'iOkJd':function(_0x1e2930,_0x4cd3b5,_0x7ff1cc,_0x41f185){return _0x1e2930(_0x4cd3b5,_0x7ff1cc,_0x41f185);},'tpiUv':function(_0x373744,_0x4d1357){return _0x373744+_0x4d1357;},'qOzkx':_0x102b73(0xd3),'MUOTT':'./WorkerStaticPool'};let _0x2e91f2=_0x2cb217['tpiUv'](path[_0x102b73(0xba)](__dirname),_0x2cb217[_0x102b73(0xad)]);if(!global['sendEmailPool']){const _0x18f022=_0x2cb217[_0x102b73(0xbb)](require,_0x2cb217['MUOTT']);global[_0x102b73(0xa9)]=new _0x18f022(_0x2e91f2);}global['sendEmailPool'][_0x102b73(0xc2)]({'options':_0x42b9fe,'configs':{'sender':_0x13580a||global[_0x102b73(0xb4)]['sender'],'company':global[_0x102b73(0xb4)]['company'],'google_credentials':global[_0x102b73(0xb4)][_0x102b73(0xb8)]?JSON[_0x102b73(0xbd)](global[_0x102b73(0xb4)]['google_credentials']):'','paths':global['configs']['paths']}},_0x3257d9=>{const _0x5b446a=_0x102b73;if(_0x2cb217[_0x5b446a(0xd7)](_0x2cb217[_0x5b446a(0xb5)],_0x5b446a(0xd1))){const _0x36882e=_0x522800[_0x5b446a(0xca)](_0xeb31d8,arguments);return _0x26fe17=null,_0x36882e;}else _0x3257d9[_0x5b446a(0xc5)]?_0x2cb217[_0x5b446a(0xbb)](_0x2bf9de,_0x3257d9[_0x5b446a(0xc5)]):_0x2cb217[_0x5b446a(0xb6)](_0x2bf9de,null,_0x3257d9[_0x5b446a(0xc3)],_0x3257d9[_0x5b446a(0xc6)]);});};
|
package/server/libs/excel.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const path=require(
|
|
2
|
-
exports.parse=function($filePath$$,$callback$$,$options$$){let $onImportProcess$$=path.dirname(__dirname)+"/workers/excelParser.js";if(!global.excelParsePool){const $StaticPool$$=require("./WorkerStaticPool");global.excelParsePool=new $StaticPool$$($onImportProcess$$)}global.excelParsePool.exec({filePath:$filePath$$,options:$options$$,configs:{database:global.configs.database}},$response$$=>{$response$$.error?$callback$$($response$$.error):$callback$$(null,$response$$.data,$response$$.columns)})};
|
|
1
|
+
const _0xf6ed3=_0x219a;(function(_0x3deec6,_0x15e15d){const _0x365757=_0x219a,_0x172106=_0x3deec6();while(!![]){try{const _0x49c3f5=parseInt(_0x365757(0x1d8))/0x1+parseInt(_0x365757(0x1e5))/0x2*(-parseInt(_0x365757(0x1e1))/0x3)+-parseInt(_0x365757(0x1da))/0x4*(-parseInt(_0x365757(0x1ca))/0x5)+-parseInt(_0x365757(0x1e6))/0x6+-parseInt(_0x365757(0x1ce))/0x7*(parseInt(_0x365757(0x1db))/0x8)+parseInt(_0x365757(0x1e4))/0x9+-parseInt(_0x365757(0x1d4))/0xa*(-parseInt(_0x365757(0x1d5))/0xb);if(_0x49c3f5===_0x15e15d)break;else _0x172106['push'](_0x172106['shift']());}catch(_0x4d1526){_0x172106['push'](_0x172106['shift']());}}}(_0x29a9,0xb0aa5));const _0x534a70=(function(){let _0x1b4d81=!![];return function(_0xbac861,_0xa28a0c){const _0x244c92=_0x1b4d81?function(){const _0x1a9840=_0x219a;if(_0xa28a0c){const _0x29c7e1=_0xa28a0c[_0x1a9840(0x1cf)](_0xbac861,arguments);return _0xa28a0c=null,_0x29c7e1;}}:function(){};return _0x1b4d81=![],_0x244c92;};}()),_0x65da2f=_0x534a70(this,function(){const _0x13efd6=_0x219a,_0x390835={'nbRRk':'(((.+)+)+)+$'};return _0x65da2f['toString']()[_0x13efd6(0x1d6)](_0x390835['nbRRk'])['toString']()[_0x13efd6(0x1e0)](_0x65da2f)[_0x13efd6(0x1d6)](_0x390835[_0x13efd6(0x1c9)]);});_0x65da2f();const path=require(_0xf6ed3(0x1cd));function _0x29a9(){const _0x45b159=['C2vHCMnO','DenfD3G','mti2nJK4mevbvhj4qG','zxHLyW','ntqWngPvEMjjsW','ody5otG0DNDbs1bp','EwXkDMK','zgf0yq','DMrtvgm','qxjztue','y29UC3rYDwn0B3i','mtC3ode5rhrQugDs','zxjYB3i','y29UzMLNCW','mJu2nti2muXuzxrZza','ng12zKfuuG','nde1mZG2nNDozMDMsa','y29SDw1UCW','thDHuwy','A0PPEK4','BMjsuMS','mZe1wKfZsNb3','weTpsfC','zxHJzwXqyxjZzvbVB2W','Cgf0Aa','n3HOwvf5zq','yxbWBhK','CxHNvKm','zgLYBMfTzq','uvrezha','CgfYC2u','nJeWndb5z1fbtwi','mtfqv3bNCuS'];_0x29a9=function(){return _0x45b159;};return _0x29a9();}function _0x219a(_0x1973fd,_0x32f9b0){const _0x3dc14b=_0x29a9();return _0x219a=function(_0x65da2f,_0x534a70){_0x65da2f=_0x65da2f-0x1c9;let _0x29a9a0=_0x3dc14b[_0x65da2f];if(_0x219a['xedwrb']===undefined){var _0x219af0=function(_0x43fbbc){const _0x5a2940='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4dd087='',_0xf90280='',_0x1ed440=_0x4dd087+_0x219af0;for(let _0x5905f8=0x0,_0x268662,_0x5c0810,_0x3e579a=0x0;_0x5c0810=_0x43fbbc['charAt'](_0x3e579a++);~_0x5c0810&&(_0x268662=_0x5905f8%0x4?_0x268662*0x40+_0x5c0810:_0x5c0810,_0x5905f8++%0x4)?_0x4dd087+=_0x1ed440['charCodeAt'](_0x3e579a+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x268662>>(-0x2*_0x5905f8&0x6)):_0x5905f8:0x0){_0x5c0810=_0x5a2940['indexOf'](_0x5c0810);}for(let _0x3400e4=0x0,_0x2f89b5=_0x4dd087['length'];_0x3400e4<_0x2f89b5;_0x3400e4++){_0xf90280+='%'+('00'+_0x4dd087['charCodeAt'](_0x3400e4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xf90280);};_0x219a['jDfZBO']=_0x219af0,_0x1973fd=arguments,_0x219a['xedwrb']=!![];}const _0x4a34ac=_0x3dc14b[0x0],_0x1d68ae=_0x65da2f+_0x4a34ac,_0x100dcf=_0x1973fd[_0x1d68ae];if(!_0x100dcf){const _0xc5710=function(_0x5cc05b){this['okMmto']=_0x5cc05b,this['nqSKBH']=[0x1,0x0,0x0],this['CRmVVG']=function(){return'newState';},this['hAHnzY']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['MzOqaw']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0xc5710['prototype']['qvBufe']=function(){const _0x29401f=new RegExp(this['hAHnzY']+this['MzOqaw']),_0x2031fc=_0x29401f['test'](this['CRmVVG']['toString']())?--this['nqSKBH'][0x1]:--this['nqSKBH'][0x0];return this['aOhvot'](_0x2031fc);},_0xc5710['prototype']['aOhvot']=function(_0x252686){if(!Boolean(~_0x252686))return _0x252686;return this['xfEHlr'](this['okMmto']);},_0xc5710['prototype']['xfEHlr']=function(_0x5959b2){for(let _0x39a17e=0x0,_0x4d7de5=this['nqSKBH']['length'];_0x39a17e<_0x4d7de5;_0x39a17e++){this['nqSKBH']['push'](Math['round'](Math['random']())),_0x4d7de5=this['nqSKBH']['length'];}return _0x5959b2(this['nqSKBH'][0x0]);},new _0xc5710(_0x219a)['qvBufe'](),_0x29a9a0=_0x219a['jDfZBO'](_0x29a9a0),_0x1973fd[_0x1d68ae]=_0x29a9a0;}else _0x29a9a0=_0x100dcf;return _0x29a9a0;},_0x219a(_0x1973fd,_0x32f9b0);}exports[_0xf6ed3(0x1d3)]=function(_0xf47c13,_0x334be6,_0x27e9b6){const _0x37df58=_0xf6ed3,_0x4f56ba={'EBAQw':function(_0x49fe4b,_0x34f935){return _0x49fe4b!==_0x34f935;},'ArYMA':_0x37df58(0x1e8),'vdSTc':function(_0x2fef63,_0x14cff5){return _0x2fef63(_0x14cff5);},'WctII':function(_0x2257e,_0x22d43b){return _0x2257e!==_0x22d43b;},'qxgVC':_0x37df58(0x1cb),'kJizN':function(_0x42b18d,_0x46b03b,_0x2428b7,_0x390aa0){return _0x42b18d(_0x46b03b,_0x2428b7,_0x390aa0);},'ylJvi':'/workers/excelParser.js','uZWLk':function(_0x50acef,_0x373ec1){return _0x50acef(_0x373ec1);},'ifdgK':'./WorkerStaticPool'};let _0x256624=path[_0x37df58(0x1d1)](__dirname)+_0x4f56ba[_0x37df58(0x1dc)];if(!global[_0x37df58(0x1cc)]){const _0x2cde27=_0x4f56ba['uZWLk'](require,_0x4f56ba['ifdgK']);global[_0x37df58(0x1cc)]=new _0x2cde27(_0x256624);}global[_0x37df58(0x1cc)][_0x37df58(0x1d9)]({'filePath':_0xf47c13,'options':_0x27e9b6,'configs':{'database':global[_0x37df58(0x1e3)]['database']}},_0x38cf17=>{const _0x5638de=_0x37df58,_0x3d5fc4={'QTDdp':function(_0x23c16a,_0x28a077,_0x4ebf1d,_0x5c3b14){return _0x23c16a(_0x28a077,_0x4ebf1d,_0x5c3b14);}};if(_0x38cf17['error']){if(_0x4f56ba['EBAQw'](_0x5638de(0x1d7),_0x4f56ba[_0x5638de(0x1df)]))_0x4f56ba[_0x5638de(0x1de)](_0x334be6,_0x38cf17[_0x5638de(0x1e2)]);else{if(_0x4f7dd6){const _0x2a1322=_0x19fdf6[_0x5638de(0x1cf)](_0xf870b,arguments);return _0x3eb6b2=null,_0x2a1322;}}}else _0x4f56ba['WctII'](_0x4f56ba['qxgVC'],_0x4f56ba[_0x5638de(0x1d0)])?_0x3d5fc4[_0x5638de(0x1d2)](_0x3bf4c6,null,_0x1080d6[_0x5638de(0x1dd)],_0x55b5a4['columns']):_0x4f56ba[_0x5638de(0x1e9)](_0x334be6,null,_0x38cf17[_0x5638de(0x1dd)],_0x38cf17[_0x5638de(0x1e7)]);});};
|