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,7 +1 @@
|
|
|
1
|
-
const sokho=global.getModel("sokho"),dmkh=global.getModel("customer"),rptobject=global.getModel("rptobject"),async=require("async"),underscore=require("underscore"),controller=require("../../controllers/controllerRPT");
|
|
2
|
-
module.exports=function($router$$){new controller($router$$,"ptbitralai",function($req$$,$callback$$){const $condition$$=$req$$.query;if(!$condition$$.tu_ngay||!$condition$$.den_ngay||!$condition$$.bao_cao_theo)return $callback$$("B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1:tu_ngay,den_ngay,bao_cao_theo");const $query$$={id_app:$condition$$.id_app,ma_ct:{$in:["HD3"]}},$bao_cao_theo$$=$condition$$.bao_cao_theo;$query$$.ngay_ct={$gte:$condition$$.tu_ngay,$lte:$condition$$.den_ngay};
|
|
3
|
-
$condition$$.ma_dvcs&&($query$$.ma_dvcs={$regex:$condition$$.ma_dvcs,$options:"i"});$condition$$.ma_vt&&($query$$.ma_vt={$regex:$condition$$.ma_vt,$options:"i"});$condition$$.ma_kho&&($query$$.ma_kho={$regex:$condition$$.ma_kho,$options:"i"});async.series({rptobject:function($callback$$){rptobject.findOne({code_rpt:"ptbitralai",ma_obj:$bao_cao_theo$$}).lean().exec(function($e$$,$rptobj$$){if($e$$)return $callback$$($e$$);if(!$rptobj$$)return $callback$$("Kh\u00f4ng th\u1ec3 b\u00e1o c\u00e1o theo \u0111\u1ed1i t\u01b0\u1ee3ng n\u00e0y");
|
|
4
|
-
$callback$$(null,$rptobj$$)})},dskhach:function($callback$$){$condition$$.nh_kh?dmkh.find({id_app:$query$$.id_app,status:!0,nh_kh:$condition$$.nh_kh}).lean().exec(function($e$$,$dskh$$){if($e$$)return $callback$$($e$$);$callback$$(null,$dskh$$.map($k$$=>$k$$.ma_kh))}):$callback$$(null,null)}},function($e$$,$rs$$){if($e$$)return $callback$$($e$$);const $rptobj$$=$rs$$.rptobject;$rs$$.dskhach&&($query$$.ma_kh={$in:$rs$$.dskhach});sokho.find($query$$).lean().exec(function($error$$,$rs$$){if($error$$)return console.log($error$$),
|
|
5
|
-
$callback$$($error$$);$rs$$.groupBy($bao_cao_theo$$,[{name:"sl_nhap",value:"sl_nhap"},{name:"tien",value:"tien"},{name:"tien_ck",value:"tien_ck"}],function($error$$,$rs$$){if($error$$)return console.log($error$$),$callback$$($error$$);var $report$$=underscore.sortBy($rs$$,function($r$$){return $r$$[$bao_cao_theo$$]});let $i$$=1;$report$$.forEach(function($r$$){$r$$.stt=$i$$;$r$$.bold=!1;$r$$.tien_tl=$r$$.tien-$r$$.tien_ck;$i$$++});$error$$=global.getModel(""+$rptobj$$.model_obj);$report$$.joinModel($condition$$.id_app,
|
|
6
|
-
$error$$,[{akey:$bao_cao_theo$$,bkey:$rptobj$$.value_field,fields:[{name:"chi_tieu",value:$rptobj$$.header_field}]}],function(){const $t_sl$$=$report$$.csum("sl_nhap"),$t_tien_tl$$=$report$$.csum("tien_tl"),$t_tien$$=$report$$.csum("tien");$report$$.push({chi_tieu:"T\u1ed5ng c\u1ed9ng",sl_nhap:$t_sl$$,tien:$t_tien$$,tien_ck:$report$$.csum("tien_ck"),tien_tl:$t_tien_tl$$,bold:!0});$t_sl$$!==0&&$report$$.forEach(function($r$$){$r$$.ty_trong=Math.roundBy($r$$.sl_nhap/$t_sl$$,2)*100});$callback$$(null,
|
|
7
|
-
$report$$)})})})})})};
|
|
1
|
+
function _0x2256(_0x4e2466,_0x17ba1a){const _0x55222f=_0x381f();return _0x2256=function(_0x1cc7dc,_0x458ed0){_0x1cc7dc=_0x1cc7dc-0x184;let _0x381f6b=_0x55222f[_0x1cc7dc];if(_0x2256['uSQonW']===undefined){var _0x225608=function(_0x12416b){const _0x56ecc3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x23eeef='',_0x4842b1='',_0x4b0c43=_0x23eeef+_0x225608;for(let _0x32d762=0x0,_0x279273,_0x4b64f9,_0x2f6f07=0x0;_0x4b64f9=_0x12416b['charAt'](_0x2f6f07++);~_0x4b64f9&&(_0x279273=_0x32d762%0x4?_0x279273*0x40+_0x4b64f9:_0x4b64f9,_0x32d762++%0x4)?_0x23eeef+=_0x4b0c43['charCodeAt'](_0x2f6f07+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x279273>>(-0x2*_0x32d762&0x6)):_0x32d762:0x0){_0x4b64f9=_0x56ecc3['indexOf'](_0x4b64f9);}for(let _0xec8918=0x0,_0x73037b=_0x23eeef['length'];_0xec8918<_0x73037b;_0xec8918++){_0x4842b1+='%'+('00'+_0x23eeef['charCodeAt'](_0xec8918)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4842b1);};_0x2256['adqcjt']=_0x225608,_0x4e2466=arguments,_0x2256['uSQonW']=!![];}const _0x5eff87=_0x55222f[0x0],_0x478d80=_0x1cc7dc+_0x5eff87,_0x18f86b=_0x4e2466[_0x478d80];if(!_0x18f86b){const _0x2b8ef7=function(_0x598c16){this['QiyTrB']=_0x598c16,this['hcDNHX']=[0x1,0x0,0x0],this['yXXrlo']=function(){return'newState';},this['KVeVxm']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['GEUomy']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2b8ef7['prototype']['eKIvfS']=function(){const _0x43d274=new RegExp(this['KVeVxm']+this['GEUomy']),_0x1e634d=_0x43d274['test'](this['yXXrlo']['toString']())?--this['hcDNHX'][0x1]:--this['hcDNHX'][0x0];return this['Ejelef'](_0x1e634d);},_0x2b8ef7['prototype']['Ejelef']=function(_0x385529){if(!Boolean(~_0x385529))return _0x385529;return this['kmEZSQ'](this['QiyTrB']);},_0x2b8ef7['prototype']['kmEZSQ']=function(_0x3dcfb5){for(let _0x3e1a54=0x0,_0x1a4603=this['hcDNHX']['length'];_0x3e1a54<_0x1a4603;_0x3e1a54++){this['hcDNHX']['push'](Math['round'](Math['random']())),_0x1a4603=this['hcDNHX']['length'];}return _0x3dcfb5(this['hcDNHX'][0x0]);},new _0x2b8ef7(_0x2256)['eKIvfS'](),_0x381f6b=_0x2256['adqcjt'](_0x381f6b),_0x4e2466[_0x478d80]=_0x381f6b;}else _0x381f6b=_0x18f86b;return _0x381f6b;},_0x2256(_0x4e2466,_0x17ba1a);}const _0x58f7de=_0x2256;(function(_0x550b21,_0x297f24){const _0x30ac7a=_0x2256,_0x3200d0=_0x550b21();while(!![]){try{const _0x3321b9=parseInt(_0x30ac7a(0x1c8))/0x1*(-parseInt(_0x30ac7a(0x1ad))/0x2)+parseInt(_0x30ac7a(0x1f1))/0x3*(parseInt(_0x30ac7a(0x1ed))/0x4)+-parseInt(_0x30ac7a(0x190))/0x5+-parseInt(_0x30ac7a(0x1dc))/0x6*(-parseInt(_0x30ac7a(0x1d5))/0x7)+parseInt(_0x30ac7a(0x1e8))/0x8+parseInt(_0x30ac7a(0x210))/0x9*(-parseInt(_0x30ac7a(0x212))/0xa)+-parseInt(_0x30ac7a(0x20b))/0xb*(parseInt(_0x30ac7a(0x187))/0xc);if(_0x3321b9===_0x297f24)break;else _0x3200d0['push'](_0x3200d0['shift']());}catch(_0x250c33){_0x3200d0['push'](_0x3200d0['shift']());}}}(_0x381f,0x89adb));const _0x458ed0=(function(){const _0x1c8608={'wCpfy':function(_0x3b827e,_0x26312c){return _0x3b827e(_0x26312c);},'vbSqq':function(_0x246ad9,_0xdeb9c7,_0x49e51a){return _0x246ad9(_0xdeb9c7,_0x49e51a);},'ibaaQ':function(_0x18c012,_0x56f79e){return _0x18c012!==_0x56f79e;},'wRcAJ':'GQbTb'};let _0xcc5227=!![];return function(_0x1da7c1,_0x3f1b7e){const _0x42c354=_0x2256;if(_0x1c8608['ibaaQ'](_0x1c8608[_0x42c354(0x205)],'euYiP')){const _0x472df7=_0xcc5227?function(){if(_0x3f1b7e){const _0x37eeff=_0x3f1b7e['apply'](_0x1da7c1,arguments);return _0x3f1b7e=null,_0x37eeff;}}:function(){};return _0xcc5227=![],_0x472df7;}else{const _0x51765b={'ZGtQU':function(_0x24b422,_0x223163){const _0x302fb7=_0x42c354;return _0x1c8608[_0x302fb7(0x1e4)](_0x24b422,_0x223163);},'KNPRd':function(_0x2695eb,_0x413010,_0x491651){const _0xb2af3d=_0x42c354;return _0x1c8608[_0xb2af3d(0x1f0)](_0x2695eb,_0x413010,_0x491651);}};_0x332c9a[_0x42c354(0x199)]({'id_app':_0x28e5b5['id_app'],'status':!![],'nh_kh':_0x1a2bed[_0x42c354(0x1df)]})[_0x42c354(0x211)]()[_0x42c354(0x192)](function(_0x3cb3b7,_0x20b436){const _0x1c5f44=_0x42c354;if(_0x3cb3b7)return _0x51765b[_0x1c5f44(0x1ef)](_0x29abfe,_0x3cb3b7);_0x51765b[_0x1c5f44(0x194)](_0x4f761c,null,_0x20b436[_0x1c5f44(0x1c2)](_0x107f4b=>_0x107f4b[_0x1c5f44(0x19d)]));});}};}()),_0x1cc7dc=_0x458ed0(this,function(){const _0x7fed72=_0x2256,_0x17c0fd={'HevOf':_0x7fed72(0x189)};return _0x1cc7dc[_0x7fed72(0x193)]()[_0x7fed72(0x1e6)](_0x17c0fd['HevOf'])[_0x7fed72(0x193)]()[_0x7fed72(0x1be)](_0x1cc7dc)[_0x7fed72(0x1e6)](_0x17c0fd[_0x7fed72(0x1c9)]);});_0x1cc7dc();const sokho=global[_0x58f7de(0x186)](_0x58f7de(0x216)),dmkh=global[_0x58f7de(0x186)]('customer'),rptobject=global[_0x58f7de(0x186)]('rptobject'),async=require(_0x58f7de(0x1a1)),underscore=require(_0x58f7de(0x1c6)),controller=require(_0x58f7de(0x1e0));function _0x381f(){const _0x1170cd=['BuTVthi','yM9Sza','AfbLsMi','ChvZAa','D1jJquO','y3n1Bq','rMnXEwG','CxzjCxy','ywjXCMm','sgLLDhy','ndi3oufPBffczq','CLfKwve','zefZrhm','EfLns0O','yxbWBhK','mtqXode2nMLtsxzMta','BgvHBG','mtbvrxH3Bg4','s2JdTg5NihrO4BUdigldOw8Gy8oHBYb0AgvVimsr4BUrAsb0XRdHU6nUzYbUW6b5','y3P0uvu','AM9PBK1VzgvS','C29RAg8','DgLLBL9JAW','DfLtruu','zM9YrwfJAa','DhvFBMDHEq','C3r0','shHYtM0','EMnPqxm','qLPfCvu','uNHzB2q','AgfRu04','r2zSCui','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsbJW6fJihrOyw0GC+g7KtP0Dv9Uz2f5lgrLBL9Uz2f5lgjHB19Jyw9FDgHLBW','z2v0tw9KzwW','mJGXmdrrAMXfB0q','A0TjqNC','kcGOlISPkYKRksSK','CfbywM8','vujUvLm','EeTKwxK','AhfUtLm','DK5tCwS','q0rREu8','mJCZodiZnunxvMvorq','weniAuK','zxHLyW','Dg9tDhjPBMC','s05quMq','Cw1qrNy','vog7Lw5NigpHU5LUzW','wKXXqwq','rhPuz2q','zMLUza','EuX5svK','vxDksu8','v2XtEuy','BwfFA2G','ELPNq0i','ChbnuK0','BwfFDNq','yxn5BMm','vwLJEwK','vxHZAgK','qwPHCe0','BwfFA2HV','CwfMrNy','DhLFDhjVBMC','A2vNrKG','sg9YqxK','wMLNBK4','EuH5twC','vhbws3u','mti0mJjStNH0DxG','B2rLANG','BLbKqMq','uvrxz1K','D2PQwgS','CxvLCNK','EMTgt0m','r05cuxm','t3nWrhG','C2XFBMHHCa','AfH2vvm','u2fqy3q','z290swm','BMDHEv9JDa','Dvf0qxi','A2nyvfK','zgvUx25NyxK','y29UC3rYDwn0B3i','B2TbEgu','DxDkvxy','Dfb2z0W','BwfW','s1LMDfG','Du9swhK','qM1orgO','Dw5KzxjZy29Yzq','ug5msgO','mJvltvPtDKG','sgv2t2y','wvPtDgG','vNrXCNm','Bg9N','BwfFzhzJCW','sezrtxi','EwHpDNa','whv4zMC','rvrICfC','EMHxtu8','txLVB0m','C3LRBNa','nde3ntvtDu50yNO','ChrIAxrYywXHAq','zMLUze9Uzq','ELvAB3C','EwLewhi','uNPjDuG','CM91BMrcEq','mtaZognTvNDcCq','D1fqBKq','yMfVx2nHB190AgvV','BMHFA2G','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCLjqva','q1z0wfy','uNn2C2q','v0v0tei','D0nWzNK','ENPNufi','C2vHCMnO','seqZ','mJC1mZK0ng92tgvquG','yu5TBMS','DMfSDwvFzMLLBgq','wuncDei','ywD6EKC','mZGZnZeWoev1Be1hwG','C2vewfq','wKD0uvu','DMjtCxe','m1jyvLHuqG','C2vYAwvZ','DgLLBL90Ba','uwjMD1a','AwrFyxbW','vfjjyLq','vur0rxe','zhbWzw8','zhnRAgfJAa','vLjOsw0','DgLLBG','t2XOu0e','svfHBK8','yLHAuLi','vMnXCwm','txfwyLC'];_0x381f=function(){return _0x1170cd;};return _0x381f();}module['exports']=function(_0x3c6645){const _0x97995d=_0x58f7de,_0x3fb4e3={'Uxshi':function(_0x49a5a4,_0x59393e){return _0x49a5a4===_0x59393e;},'ETbpW':_0x97995d(0x1f4),'YZSth':function(_0x223cf6,_0x4b8bce){return _0x223cf6/_0x4b8bce;},'zciAs':_0x97995d(0x1f3),'HorAy':_0x97995d(0x1fb),'dAsDs':_0x97995d(0x217),'gotIc':function(_0x44d186,_0x4d104a){return _0x44d186*_0x4d104a;},'uQtAr':function(_0x257cdf,_0x4f0657){return _0x257cdf(_0x4f0657);},'qafFv':'Wmgsm','UDtEq':function(_0x5477a1,_0x3613d6,_0x39cbf4){return _0x5477a1(_0x3613d6,_0x39cbf4);},'qmPFv':function(_0x32261d,_0x5a7bfe){return _0x32261d(_0x5a7bfe);},'HxrNm':function(_0x43076d,_0xdd1385){return _0x43076d!==_0xdd1385;},'xKdYy':function(_0x59e6cc,_0x25a93f){return _0x59e6cc===_0x25a93f;},'tYSEE':_0x97995d(0x1d2),'yLyIY':function(_0x274540,_0x314783){return _0x274540+_0x314783;},'ppMRM':_0x97995d(0x203),'kcXTY':'Ykuly','CDkyO':_0x97995d(0x18b),'MqVbW':_0x97995d(0x20e),'cztQU':'oGTjX','ZLqAd':_0x97995d(0x207),'Hietv':'UiTvi','UwJIO':_0x97995d(0x1d6)},_0x441a43=_0x3fb4e3[_0x97995d(0x19b)];new controller(_0x3c6645,_0x441a43,function(_0x3e11d8,_0x4f6d96){const _0x393ba2=_0x97995d,_0x57ebe9={'EXyDZ':function(_0x4d9d2a,_0x9dfb26){const _0x135218=_0x2256;return _0x3fb4e3[_0x135218(0x1ca)](_0x4d9d2a,_0x9dfb26);},'RxYod':_0x393ba2(0x1b6),'yhcmE':_0x3fb4e3[_0x393ba2(0x21d)],'WEtLB':_0x3fb4e3[_0x393ba2(0x1a9)],'tPvgL':_0x393ba2(0x196),'Vcqqc':_0x3fb4e3[_0x393ba2(0x20d)],'YCBtB':function(_0x4b8cba,_0x3582f8){return _0x4b8cba!==_0x3582f8;},'yHyMg':function(_0x42cc40,_0x4cc3cf){const _0x2083d3=_0x393ba2;return _0x3fb4e3[_0x2083d3(0x1b9)](_0x42cc40,_0x4cc3cf);},'Uicyi':function(_0x55ccc3,_0x5dc635){const _0x3eb5ed=_0x393ba2;return _0x3fb4e3[_0x3eb5ed(0x1ca)](_0x55ccc3,_0x5dc635);},'CVtXV':function(_0x25e2bf,_0x15a524){return _0x25e2bf-_0x15a524;},'rQdYQ':function(_0x53954d,_0x2d214b){const _0x36c962=_0x393ba2;return _0x3fb4e3[_0x36c962(0x1bb)](_0x53954d,_0x2d214b);},'odejx':function(_0x5babbc,_0x186b24){const _0x36083c=_0x393ba2;return _0x3fb4e3[_0x36083c(0x1a3)](_0x5babbc,_0x186b24);},'BmNDj':_0x3fb4e3[_0x393ba2(0x1a6)],'DzTgd':function(_0x56c14d,_0x58ed11,_0x49dda2){const _0x1c119e=_0x393ba2;return _0x3fb4e3[_0x1c119e(0x1f7)](_0x56c14d,_0x58ed11,_0x49dda2);},'TePVQ':function(_0x4d00e1,_0xa547c6){const _0x2b50f2=_0x393ba2;return _0x3fb4e3[_0x2b50f2(0x195)](_0x4d00e1,_0xa547c6);},'hqnNS':_0x393ba2(0x213),'wjjXk':function(_0x4e6d62,_0x140fa3){return _0x3fb4e3['HxrNm'](_0x4e6d62,_0x140fa3);},'wQPnD':_0x393ba2(0x1ce),'pPXZo':function(_0x4b60e2,_0x1fc317){const _0x1bf484=_0x393ba2;return _0x3fb4e3[_0x1bf484(0x18c)](_0x4b60e2,_0x1fc317);},'uORXy':_0x3fb4e3[_0x393ba2(0x218)],'abqrc':_0x393ba2(0x1b0),'TpVKu':function(_0x51dfd0,_0x45e5a1){const _0x3e81fd=_0x393ba2;return _0x3fb4e3[_0x3e81fd(0x19a)](_0x51dfd0,_0x45e5a1);},'bXZRR':function(_0x35f27d,_0x71f19c){return _0x3fb4e3['uQtAr'](_0x35f27d,_0x71f19c);}},_0x2e2b85=_0x3e11d8[_0x393ba2(0x1b2)];if(!_0x2e2b85['tu_ngay']||!_0x2e2b85[_0x393ba2(0x1bd)]||!_0x2e2b85[_0x393ba2(0x1de)]){if(_0x3fb4e3[_0x393ba2(0x18c)](_0x3fb4e3[_0x393ba2(0x19f)],_0x3fb4e3[_0x393ba2(0x1bc)]))_0x4df967[_0x393ba2(0x1a0)]={'$regex':_0x1eb6e4[_0x393ba2(0x1a0)],'$options':'i'};else return _0x3fb4e3['qmPFv'](_0x4f6d96,_0x393ba2(0x185));}const _0x39359a={'id_app':_0x2e2b85[_0x393ba2(0x1f5)],'ma_ct':{'$in':[_0x393ba2(0x1e7)]}},_0x379b77=_0x2e2b85['bao_cao_theo'];_0x39359a[_0x393ba2(0x1ba)]={'$gte':_0x2e2b85[_0x393ba2(0x21a)],'$lte':_0x2e2b85['den_ngay']};if(_0x2e2b85[_0x393ba2(0x1cd)]){if(_0x3fb4e3[_0x393ba2(0x18f)]===_0x3fb4e3[_0x393ba2(0x200)]){const _0x266777={'bfkpb':function(_0x333ec9,_0x100a10){return _0x333ec9*_0x100a10;},'OspDx':function(_0x4d47fd,_0x3046ed){return _0x57ebe9['EXyDZ'](_0x4d47fd,_0x3046ed);}},_0x3ba601=_0xac7b64['csum'](_0x57ebe9[_0x393ba2(0x21f)]),_0x1c651b=_0x3c0c33[_0x393ba2(0x206)](_0x57ebe9['yhcmE']),_0xd7ca69=_0x35009e[_0x393ba2(0x206)](_0x57ebe9[_0x393ba2(0x1e3)]);_0x354644[_0x393ba2(0x204)]({'chi_tieu':_0x57ebe9[_0x393ba2(0x1c1)],'sl_nhap':_0x3ba601,'tien':_0xd7ca69,'tien_ck':_0x40ff10[_0x393ba2(0x206)](_0x57ebe9[_0x393ba2(0x1ff)]),'tien_tl':_0x1c651b,'bold':!![]}),_0x57ebe9[_0x393ba2(0x1eb)](_0x3ba601,0x0)&&_0x1ba0c2[_0x393ba2(0x219)](function(_0x2ee6fe){const _0x4690a9=_0x393ba2;_0x2ee6fe[_0x4690a9(0x1a7)]=_0x266777['bfkpb'](_0x455afe[_0x4690a9(0x1db)](_0x266777[_0x4690a9(0x1b5)](_0x2ee6fe[_0x4690a9(0x1b6)],_0x3ba601),0x2),0x64);}),_0xd35634(null,_0x3ef56d);}else _0x39359a[_0x393ba2(0x1cd)]={'$regex':_0x2e2b85[_0x393ba2(0x1cd)],'$options':'i'};}_0x2e2b85['ma_vt']&&(_0x3fb4e3['xKdYy'](_0x393ba2(0x1f8),_0x3fb4e3[_0x393ba2(0x214)])?_0x4be74b['forEach'](function(_0x31aea9){const _0x1fae50=_0x393ba2;_0x31aea9['ty_trong']=_0x57ebe9[_0x1fae50(0x1ab)](_0x3bcad3[_0x1fae50(0x1db)](_0x57ebe9[_0x1fae50(0x1a2)](_0x31aea9['sl_nhap'],_0x6524d1),0x2),0x64);}):_0x39359a[_0x393ba2(0x1a0)]={'$regex':_0x2e2b85[_0x393ba2(0x1a0)],'$options':'i'}),_0x2e2b85[_0x393ba2(0x1a5)]&&(_0x3fb4e3[_0x393ba2(0x21c)](_0x3fb4e3[_0x393ba2(0x197)],_0x3fb4e3[_0x393ba2(0x20a)])?_0x39359a['ma_kho']={'$regex':_0x2e2b85['ma_kho'],'$options':'i'}:(_0x492a58[_0x393ba2(0x21b)]=_0x31f84f,_0x160ab1['bold']=![],_0x299c18[_0x393ba2(0x1f3)]=_0x57ebe9[_0x393ba2(0x1e1)](_0x583d64[_0x393ba2(0x1fb)],_0x19b95e['tien_ck']),_0x2bf238++)),async[_0x393ba2(0x1f2)]({'rptobject':function(_0x32a929){const _0x117594=_0x393ba2,_0x2a1276={'syknp':function(_0xc65865,_0x2b8edd){const _0x3113ac=_0x2256;return _0x57ebe9[_0x3113ac(0x20c)](_0xc65865,_0x2b8edd);},'KYftX':'Không\x20thể\x20báo\x20cáo\x20theo\x20đối\x20tượng\x20này'};rptobject[_0x117594(0x1d7)]({'code_rpt':_0x441a43,'ma_obj':_0x379b77})['lean']()[_0x117594(0x192)](function(_0x4081cd,_0x2e51ab){const _0x212e8f=_0x117594;if(_0x4081cd)return _0x2a1276[_0x212e8f(0x1d4)](_0x32a929,_0x4081cd);if(!_0x2e51ab)return _0x2a1276[_0x212e8f(0x1d4)](_0x32a929,_0x2a1276[_0x212e8f(0x1c3)]);_0x32a929(null,_0x2e51ab);});},'dskhach':function(_0x512087){const _0x505316=_0x393ba2,_0x2a3e88={'hakSN':function(_0x1b2564,_0x130749){const _0x357cde=_0x2256;return _0x57ebe9[_0x357cde(0x20c)](_0x1b2564,_0x130749);},'TRIbT':_0x505316(0x213),'PnLHj':function(_0x46d19c,_0x31fe15,_0x4f549e){return _0x46d19c(_0x31fe15,_0x4f549e);}};_0x2e2b85[_0x505316(0x1df)]?_0x57ebe9[_0x505316(0x1ae)](_0x57ebe9[_0x505316(0x1c5)],_0x57ebe9[_0x505316(0x1c5)])?dmkh[_0x505316(0x199)]({'id_app':_0x39359a[_0x505316(0x1f5)],'status':!![],'nh_kh':_0x2e2b85[_0x505316(0x1df)]})[_0x505316(0x211)]()['exec'](function(_0x3ccc36,_0x171a0e){const _0x57684c=_0x505316;if(_0x3ccc36)return _0x512087(_0x3ccc36);_0x512087(null,_0x171a0e[_0x57684c(0x1c2)](_0x162e39=>_0x162e39[_0x57684c(0x19d)]));}):_0x339cfa[_0x505316(0x1d7)]({'code_rpt':_0x2e434b,'ma_obj':_0x485099})[_0x505316(0x211)]()[_0x505316(0x192)](function(_0xcc513f,_0x34c8fa){const _0x24d4ad=_0x505316;if(_0xcc513f)return _0x2a3e88[_0x24d4ad(0x220)](_0x11fde1,_0xcc513f);if(!_0x34c8fa)return _0x2a3e88['hakSN'](_0x3c7242,_0x2a3e88[_0x24d4ad(0x1f6)]);_0x2a3e88[_0x24d4ad(0x1c7)](_0x40321b,null,_0x34c8fa);}):_0x57ebe9[_0x505316(0x198)](_0x512087,null,null);}},function(_0x1846a4,_0x2cb7b8){const _0x4b5920=_0x393ba2;if(_0x3fb4e3['Uxshi'](_0x3fb4e3[_0x4b5920(0x1d1)],_0x4b5920(0x1ec)))_0x4a6b1f[_0x4b5920(0x1df)]?_0x271228[_0x4b5920(0x199)]({'id_app':_0x2d8b2f[_0x4b5920(0x1f5)],'status':!![],'nh_kh':_0x818984['nh_kh']})[_0x4b5920(0x211)]()['exec'](function(_0x1084b1,_0xd5ec5c){const _0x32777d=_0x4b5920;if(_0x1084b1)return _0x24b3a9(_0x1084b1);_0x3ac2ed(null,_0xd5ec5c[_0x32777d(0x1c2)](_0x4eb53b=>_0x4eb53b['ma_kh']));}):_0x57ebe9[_0x4b5920(0x198)](_0x44d81d,null,null);else{if(_0x1846a4)return _0x4f6d96(_0x1846a4);const _0x15f3e7=_0x2cb7b8['rptobject'];_0x2cb7b8['dskhach']&&(_0x39359a['ma_kh']={'$in':_0x2cb7b8[_0x4b5920(0x1f9)]}),sokho['find'](_0x39359a)['lean']()['exec'](function(_0x5958ee,_0x5679f3){const _0x4b95a5=_0x4b5920,_0x4d0343={'zzgPR':function(_0x2978e5,_0x1ea697){return _0x2978e5(_0x1ea697);},'XCHiI':function(_0x3b3678,_0x17cef4){return _0x57ebe9['TePVQ'](_0x3b3678,_0x17cef4);},'yiDXr':_0x57ebe9[_0x4b95a5(0x18d)],'vNSqk':function(_0x71d41e,_0x505761){return _0x71d41e/_0x505761;},'VRhIm':function(_0x2f5368,_0x28e846){const _0x5cc4fc=_0x4b95a5;return _0x57ebe9[_0x5cc4fc(0x1b1)](_0x2f5368,_0x28e846);},'zkFOC':_0x4b95a5(0x21e),'SaPct':function(_0x460f95,_0x70eed){return _0x57ebe9['CVtXV'](_0x460f95,_0x70eed);},'Xuxfg':_0x4b95a5(0x1a8),'mzCEK':_0x57ebe9[_0x4b95a5(0x1dd)],'hXvUS':_0x57ebe9[_0x4b95a5(0x21f)],'MyooC':_0x57ebe9[_0x4b95a5(0x1e3)],'AjapM':_0x57ebe9[_0x4b95a5(0x1ff)],'kKIBw':function(_0x4988b8,_0x1df09b,_0x4ad81c){return _0x4988b8(_0x1df09b,_0x4ad81c);},'HTWty':function(_0x3ac7ef,_0x428e62){const _0xd3032e=_0x4b95a5;return _0x57ebe9[_0xd3032e(0x18a)](_0x3ac7ef,_0x428e62);},'IQanO':_0x57ebe9[_0x4b95a5(0x1c4)],'seDXT':_0x57ebe9[_0x4b95a5(0x209)],'GNBQs':function(_0x557383,_0x2d3384){const _0x4e353d=_0x4b95a5;return _0x57ebe9[_0x4e353d(0x1ac)](_0x557383,_0x2d3384);}};if(_0x5958ee)return console[_0x4b95a5(0x1cc)](_0x5958ee),_0x57ebe9[_0x4b95a5(0x1fe)](_0x4f6d96,_0x5958ee);_0x5679f3['groupBy'](_0x379b77,[{'name':_0x4b95a5(0x1b6),'value':'sl_nhap'},{'name':_0x57ebe9[_0x4b95a5(0x1e3)],'value':_0x57ebe9[_0x4b95a5(0x1e3)]},{'name':_0x57ebe9[_0x4b95a5(0x1ff)],'value':_0x57ebe9[_0x4b95a5(0x1ff)]}],function(_0x2d9e50,_0x1d9eb6){const _0x3f8570=_0x4b95a5,_0x14adb3={'qvIqv':function(_0x1b3cac,_0x41044e){const _0xd2dc1b=_0x2256;return _0x4d0343[_0xd2dc1b(0x18e)](_0x1b3cac,_0x41044e);},'nPdBd':function(_0x269580,_0x146dc4){const _0x2f79f8=_0x2256;return _0x4d0343[_0x2f79f8(0x1fa)](_0x269580,_0x146dc4);},'Rsvsd':'fatco','okAxe':_0x4d0343[_0x3f8570(0x1b3)],'GflqB':function(_0x26da5c,_0x524b7a){const _0x4f0632=_0x3f8570;return _0x4d0343[_0x4f0632(0x1b8)](_0x26da5c,_0x524b7a);},'zZgCB':function(_0xcb2770,_0x2f6291){const _0x596fe8=_0x3f8570;return _0x4d0343[_0x596fe8(0x1fa)](_0xcb2770,_0x2f6291);},'AZXPC':_0x4d0343[_0x3f8570(0x1d0)],'BEnpJ':_0x4d0343['mzCEK'],'zUZow':_0x4d0343[_0x3f8570(0x1b7)],'OlhSA':_0x4d0343[_0x3f8570(0x1d3)],'uwJUv':_0x4d0343[_0x3f8570(0x1a4)],'aNmnk':_0x3f8570(0x1da),'yhOvp':function(_0x40f044,_0x67db6a,_0x195ce9){const _0x4aa251=_0x3f8570;return _0x4d0343[_0x4aa251(0x188)](_0x40f044,_0x67db6a,_0x195ce9);}};if(_0x4d0343['HTWty'](_0x4d0343[_0x3f8570(0x1fd)],_0x4d0343[_0x3f8570(0x1ee)])){if(_0x2459a8)return _0x4d0343[_0x3f8570(0x1e5)](_0x51f4b3,_0x1b5388);if(!_0x2b0ac9)return _0x4d0343[_0x3f8570(0x191)](_0x269711,_0x4d0343[_0x3f8570(0x1d9)]);_0x57340f(null,_0x364372);}else{if(_0x2d9e50){if(_0x4d0343['HTWty'](_0x3f8570(0x1aa),_0x3f8570(0x1cb)))_0x3b3b34['ty_trong']=_0x289a91[_0x3f8570(0x1db)](_0x14adb3[_0x3f8570(0x208)](_0x130d4b[_0x3f8570(0x1b6)],_0x2670e2),0x2)*0x64;else return console[_0x3f8570(0x1cc)](_0x2d9e50),_0x4d0343[_0x3f8570(0x1e5)](_0x4f6d96,_0x2d9e50);}var _0x2dfe40=underscore['sortBy'](_0x1d9eb6,function(_0x364b38){const _0x28a99a=_0x3f8570;if(_0x14adb3[_0x28a99a(0x1af)](_0x14adb3[_0x28a99a(0x1e2)],_0x14adb3[_0x28a99a(0x1bf)]))return _0x364b38[_0x379b77];else _0x171b5d[_0x28a99a(0x19d)]={'$in':_0x2b1b7c[_0x28a99a(0x1f9)]};});let _0x1f386f=0x1;_0x2dfe40[_0x3f8570(0x219)](function(_0x3880be){const _0x431c1f=_0x3f8570;_0x3880be[_0x431c1f(0x21b)]=_0x1f386f,_0x3880be[_0x431c1f(0x202)]=![],_0x3880be[_0x431c1f(0x1f3)]=_0x14adb3[_0x431c1f(0x184)](_0x3880be[_0x431c1f(0x1fb)],_0x3880be[_0x431c1f(0x217)]),_0x1f386f++;});const _0x15f0a2=global[_0x3f8570(0x186)](_0x4d0343[_0x3f8570(0x1b4)]('',_0x15f3e7['model_obj'])),_0x5f3cec=_0x15f3e7[_0x3f8570(0x1ea)],_0x3d2ca2=_0x15f3e7['header_field'];_0x2dfe40[_0x3f8570(0x215)](_0x2e2b85[_0x3f8570(0x1f5)],_0x15f0a2,[{'akey':_0x379b77,'bkey':_0x5f3cec,'fields':[{'name':'chi_tieu','value':_0x3d2ca2}]}],function(){const _0x4fd766=_0x3f8570,_0x1434a8={'gJdjF':function(_0xb739aa,_0x4bb452){const _0x3ca818=_0x2256;return _0x14adb3[_0x3ca818(0x19e)](_0xb739aa,_0x4bb452);},'FThwN':_0x14adb3['AZXPC'],'WlSyF':_0x14adb3['BEnpJ'],'mKoLr':function(_0x2db4c4,_0x4de13c){const _0x309f3d=_0x2256;return _0x14adb3[_0x309f3d(0x208)](_0x2db4c4,_0x4de13c);}},_0x411894=_0x2dfe40[_0x4fd766(0x206)](_0x14adb3[_0x4fd766(0x1d8)]),_0x31f840=_0x2dfe40[_0x4fd766(0x206)](_0x4fd766(0x1f3)),_0x3df48e=_0x2dfe40[_0x4fd766(0x206)](_0x14adb3[_0x4fd766(0x1fc)]);_0x2dfe40['push']({'chi_tieu':'Tổng\x20cộng','sl_nhap':_0x411894,'tien':_0x3df48e,'tien_ck':_0x2dfe40[_0x4fd766(0x206)](_0x14adb3[_0x4fd766(0x1c0)]),'tien_tl':_0x31f840,'bold':!![]}),_0x14adb3[_0x4fd766(0x1af)](_0x411894,0x0)&&(_0x14adb3[_0x4fd766(0x1e9)]!==_0x14adb3['aNmnk']?_0x4223d0[_0x4fd766(0x1cd)]={'$regex':_0x206903['ma_dvcs'],'$options':'i'}:_0x2dfe40[_0x4fd766(0x219)](function(_0x38e55b){const _0x404a2d=_0x4fd766;if(_0x1434a8['gJdjF'](_0x1434a8['FThwN'],_0x1434a8[_0x404a2d(0x19c)]))_0x38e55b[_0x404a2d(0x1a7)]=Math['roundBy'](_0x1434a8[_0x404a2d(0x201)](_0x38e55b[_0x404a2d(0x1b6)],_0x411894),0x2)*0x64;else{const _0x4a3da7=_0x101499[_0x404a2d(0x20f)](_0x33512c,arguments);return _0x1ace3d=null,_0x4a3da7;}})),_0x14adb3[_0x4fd766(0x1cf)](_0x4f6d96,null,_0x2dfe40);});}});});}});});};
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
const kbmpttct=global.getModel("kbmPttct"),rptform=global.getModel("rptform"),vatvao=global.getModel("vatvao"),vatra=global.getModel("vatra"),sokho=global.getModel("sokho"),async=require("async"),_=require("lodash"),{calcGrid,evalute}=require("../../libs/utils"),utils=require("../../libs/utils"),moment=require("moment"),controller=require("../../controllers/controllerRPT"),{getCodeChildren}=require("../../libs/utils"),getRegString=function($arrayTk$$){return $arrayTk$$.reg()};
|
|
2
|
-
module.exports=function($router$$){new controller($router$$,"ptcttct",async function($req$$,$callback$$){let $query$$=$req$$.query;if(!$query$$.den_ngay||!$query$$.tu_ngay||!$query$$.id_rptform)return $callback$$("B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u tham s\u1ed1 t\u1eeb ng\u00e0y(tu_ngay), \u0111\u1ebfn ng\u00e0y(den_ngay), id m\u1eabu b\u00e1o c\u00e1o");if(!global.mongoose.Types.ObjectId.isValid($query$$.id_rptform))return $callback$$("M\u1eabu b\u00e1o c\u00e1o n\u00e0y kh\u00f4ng c\u00f3 gi\u00e1 tr\u1ecb");
|
|
3
|
-
if($query$$.ma_bp){var $bps_dts_phis$$=await getCodeChildren(global.getModel("dmbp"),$query$$.id_app,$query$$.ma_bp,"ma_bp","ma_bp_me");$query$$.ma_bp={$in:$bps_dts_phis$$}}$query$$.ma_phi&&($bps_dts_phis$$=await getCodeChildren(global.getModel("dmphi"),$query$$.id_app,$query$$.ma_phi,"ma_phi","ma_phi_me"),$query$$.ma_phi={$in:$bps_dts_phis$$});$query$$.ma_dt&&($bps_dts_phis$$=await getCodeChildren(global.getModel("dmdt"),$query$$.id_app,$query$$.ma_dt,"ma_dt","ma_dt_me"),$query$$.ma_dt={$in:$bps_dts_phis$$});
|
|
4
|
-
(new Promise(($resolve$$,$reject$$)=>{rptform.findOne({_id:$query$$.id_rptform}).lean().exec(($e$$,$rs$$)=>{if($e$$||!$rs$$)return $reject$$($e$$);$resolve$$($rs$$)})})).then(async $_rptform$$=>{$query$$.tu_ngay=moment(new Date($query$$.tu_ngay)).startOf("date").toDate();$query$$.den_ngay=moment(new Date($query$$.den_ngay)).endOf("date").toDate();let $report$$=$_rptform$$.report;$report$$&&$_rptform$$.report.length!==0||($report$$=await kbmpttct.find({id_rptform:$_rptform$$._id.toString()}).sort({stt:1}).lean());
|
|
5
|
-
async.map($report$$,function($r$$,$c1$$){setImmediate(()=>{$r$$.stt_child=0;if($r$$.cach_tinh==="9")$r$$.cong_thuc="",utils.getInfoFromQuery($query$$,$r$$.query,($e$$,$rs$$)=>{if($e$$)return $c1$$();_.isNumber($rs$$)?($r$$.so_kn=$rs$$,$r$$.so_kn_nt=$rs$$):$r$$.value_string=$rs$$;$c1$$()});else if($r$$.cach_tinh==="2")$r$$.cong_thuc="",async.parallel({ky_nay:function($callback$$){setImmediate(async()=>{let $condition$$={ngay_ct:{$gte:$query$$.tu_ngay,$lte:$query$$.den_ngay},id_app:$query$$.id_app};
|
|
6
|
-
$query$$.ma_dvcs&&($condition$$.ma_dvcs=$query$$.ma_dvcs);$query$$.ma_bp&&($condition$$.ma_bp=$query$$.ma_bp);$query$$.ma_hd&&($condition$$.ma_hd=$query$$.ma_hd);$query$$.ma_dt&&($condition$$.ma_dt=$query$$.ma_dt);$query$$.ma_sp&&($condition$$.ma_sp=$query$$.ma_sp);$query$$.ma_nv&&($condition$$.ma_nv=$query$$.ma_nv);$r$$.ma_phi&&($condition$$.ma_phi={$in:await getCodeChildren(global.getModel("dmphi"),$query$$.id_app,$r$$.ma_phi,"ma_phi","ma_phi_me")});var $tk_co_tk_no$$=getRegString($r$$.tk_no);$tk_co_tk_no$$&&
|
|
7
|
-
($condition$$.tk_no=$r$$.giam_tru_no?{$not:new RegExp($tk_co_tk_no$$)}:{$regex:$tk_co_tk_no$$,$options:"i"});if($tk_co_tk_no$$=getRegString($r$$.tk_co))$condition$$.tk_co=$r$$.giam_tru_co&&$tk_co_tk_no$$?{$not:new RegExp($tk_co_tk_no$$)}:{$regex:$tk_co_tk_no$$,$options:"i"};if($r$$.dieu_kien_khac)try{$r$$.dieu_kien_khac.indexOf("{")<0&&($r$$.dieu_kien_khac="{"+$r$$.dieu_kien_khac+"}");var $socai_str_func$$=$r$$.dieu_kien_khac;$socai_str_func$$.indexOf("return ")<0&&($socai_str_func$$=`return ${$socai_str_func$$}`);
|
|
8
|
-
let $dieu_kien_khac$$=utils.evalute($socai_str_func$$,{moment,condition:$condition$$,row:$r$$});$condition$$={...$condition$$,...$dieu_kien_khac$$}}catch($e$$){$callback$$($e$$.toString())}$r$$.ma_kho?($condition$$.ma_kho=$r$$.ma_kho,$socai_str_func$$=global.getModel("socaitc")):$socai_str_func$$=global.getModel("socaitt");$socai_str_func$$.find($condition$$,function($error$$,$rs$$){if($error$$)return $callback$$($error$$);$r$$.so_kn=$rs$$.csum("tien");$r$$.so_kn_nt=$rs$$.csum("tien_nt");let $id_cts$$=
|
|
9
|
-
$rs$$.map($r$$=>$r$$.id_ct);async.parallel({vatra:$callback$$=>{vatra.find({id_ct:{$in:$id_cts$$}}).lean().exec(($e$$,$rs$$)=>{if($e$$)return $callback$$($e$$);$callback$$(null,$rs$$)})},vatvao:$callback$$=>{vatvao.find({id_ct:{$in:$id_cts$$}}).lean().exec(($e$$,$rs$$)=>{if($e$$)return $callback$$($e$$);$callback$$(null,$rs$$)})},sokho:$callback$$=>{sokho.find({id_ct:{$in:$id_cts$$}}).lean().exec(($e$$,$rs$$)=>{if($e$$)return $callback$$($e$$);$callback$$(null,$rs$$)})},socai:$callback$$=>{$rs$$.groupBy(["id_ct"],
|
|
10
|
-
["tien","tien_nt"],($e$$,$rs$$)=>{$callback$$($e$$,$rs$$)},{fieldmaxs:["so_ct","ngay_ct","dien_giai","ma_ct"]})}},($e$$,$rs$$)=>{$r$$.vatra=$rs$$.vatra.csum("t_thue");$r$$.vatvao=$rs$$.vatvao.csum("t_thue");$r$$.vatra_nt=$rs$$.vatra.csum("t_thue_nt");$r$$.vatvao_nt=$rs$$.vatvao.csum("t_thue_nt");$r$$.thue=$r$$.vatra+$r$$.vatvao;$r$$.thue_nt=$r$$.vatra_nt+$r$$.vatvao_nt;$r$$.sl_nhap=$rs$$.sokho.csum("sl_nhap");$r$$.sl_xuat=$rs$$.sokho.csum("sl_xuat");$r$$.so_luong=$r$$.sl_nhap+$r$$.sl_xuat;$r$$.t_tt=
|
|
11
|
-
$r$$.thue+$r$$.so_kn;$r$$.t_tt_nt=$r$$.thue_nt+$r$$.so_kn_nt;$r$$.sokho=$rs$$.sokho;$r$$.ct_socai&&($r$$.socai=$rs$$.socai,$r$$.socai.sort(($a$$,$b$$)=>(new Date($a$$.ngay_ct)).getTime()>(new Date($b$$.ngay_ct)).getTime()?1:(new Date($a$$.ngay_ct)).getTime()<(new Date($b$$.ngay_ct)).getTime()?-1:$a$$.so_ct>$b$$.so_ct?1:$a$$.so_ct<$b$$.so_ct?-1:0).forEach(($s$$,$index$$)=>{$s$$.thue=$rs$$.vatra.csum("t_thue",{id_ct:$s$$.id_ct})+$rs$$.vatvao.csum("t_thue",{id_ct:$s$$.id_ct});$s$$.thue_nt=$rs$$.vatra.csum("t_thue_nt",
|
|
12
|
-
{id_ct:$s$$.id_ct})+$rs$$.vatvao.csum("t_thue_nt",{id_ct:$s$$.id_ct});$s$$.so_luong=$rs$$.sokho.csum("sl_nhap",{id_ct:$s$$.id_ct})+$rs$$.sokho.csum("sl_xuat",{id_ct:$s$$.id_ct});$s$$.gia=$s$$.so_luong!==0?Math.roundBy($s$$.tien/$s$$.so_luong,0):0;$s$$.gia_nt=$s$$.so_luong!==0?Math.roundBy($s$$.tien_nt/$s$$.so_luong,2):0;$s$$.t_tt=$s$$.thue+$s$$.tien;$s$$.t_tt_nt=$s$$.thue_nt+$s$$.tien_nt;$s$$.stt=$r$$.stt;$r$$.stt_child=$index$$+1;$report$$.push($s$$)}));$callback$$($e$$,$r$$)})})})}},function($error$$,
|
|
13
|
-
$results$$){$c1$$($error$$,$results$$)});else if($r$$.cach_tinh==="99"&&$r$$.script){$r$$.cong_thuc="";if($r$$.script.indexOf("async ")>=0)return $c1$$("async function is not allow");let $func_string$$=`return (async ()=>{
|
|
14
|
-
try{
|
|
15
|
-
${$r$$.script}
|
|
16
|
-
}catch(e){
|
|
17
|
-
return {error:e}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
})`;evalute($func_string$$,{row:$r$$,moment,condition:$query$$,user:$req$$.user,_,utils})().then($rs$$=>{if($rs$$&&$rs$$.error)return console.error($rs$$.error,$func_string$$),$c1$$($rs$$.error.message||$rs$$.error);$c1$$(null,$r$$)}).catch($e$$=>{console.error($e$$,$func_string$$);return $c1$$($e$$.message||$e$$)})}else $c1$$(null,$r$$)})},function($cbRow_error$$){if($cbRow_error$$)return $callback$$($cbRow_error$$);$cbRow_error$$=function($e$$,$r$$){$r$$.chi_tinh_cac_cot&&$r$$.chi_tinh_cac_cot.length>
|
|
21
|
-
0&&("so_kn so_kn_nt vatra vatvao vatra_nt vatvao_nt thue thue_nt sl_nhap sl_xuat so_luong t_tt t_tt_nt".split(" ").forEach($c$$=>{$r$$.chi_tinh_cac_cot.indexOf($c$$)<0&&($r$$[$c$$]=0)}),$r$$.chi_tinh_cac_cot.indexOf("t_tt")<0&&($r$$.t_tt=$r$$.thue+$r$$.so_kn))};calcGrid($report$$,{so_kn:$cbRow_error$$,so_kn_nt:$cbRow_error$$,vatra:$cbRow_error$$,vatvao:$cbRow_error$$,vatra_nt:$cbRow_error$$,vatvao_nt:$cbRow_error$$,thue:$cbRow_error$$,thue_nt:$cbRow_error$$,sl_nhap:$cbRow_error$$,sl_xuat:$cbRow_error$$,
|
|
22
|
-
so_luong:$cbRow_error$$,t_tt:$cbRow_error$$,t_tt_nt:$cbRow_error$$},function($rs$$){$rs$$=$rs$$.sort(($a$$,$b$$)=>$a$$.stt>$b$$.stt?1:$a$$.stt<$b$$.stt?-1:$a$$.stt_child-$b$$.stt_child);$callback$$(null,$rs$$)})})}).catch($e$$=>{$callback$$($e$$||"Kh\u00f4ng c\u00f3 m\u1eabu b\u00e1o c\u00e1o n\u00e0o cho b\u00e1o c\u00e1o n\u00e0y")})})};
|
|
1
|
+
function _0x57f0(){const _0x522534=['sMPNz3K','teTXz2u','AxnoDw1Izxi','D3zoy0i','z2v0vgLTzq','y0zlt28','CwHIthm','BfrPque','yxn5BMmG','q0n2vvO','AuDgrfa','C095B0K','whrmCNa','CffJz00','C3r0x2nOAwXK','Ehn5Eeu','wejmrKS','sMPmuhG','uuXnAhq','thvVAee','CMTruLy','vK16rNe','thL2wuC','BK5MuNa','BfvzBKy','BKLIAM4','DwnlBhm','Cg5otNK','nZq3otG0ogXQExvLuG','A1DHv2i','re55BLC','y1nOCKG','zMLUza','ndK2otCZnerbBgzPBG','ntG3mZKXm01TzfH4DG','DMf0DMfV','v1LeCei','rvvQAxi','quLJr0S','DMf0DMfVx250','tfzgywy','qM9fwxG','cGKjcqKjcqKjcx1JyxrJAcHLkxSkcqKjcqKjcqKjcxjLDhvYBIb7zxjYB3i6zx0kcqKjcqKjcqKjFqOjcqKjcqKjcqKkcqKjcqKjcqL9kq','zgzju2i','BwfFAgq','rg1ArxO','v0Lctem','q1bqtgO','C2rerKO','vMXwz0S','EKvTuLC','vvzUDxy','DgTFBM8','qvnfD2K','BwfFBNy','q2voA1q','CxvLCNK','C3rHCNrpzG','uKXLtNy','q1f4teW','nNW1FdH8mxWXmhW0FdD8mNWXmNWWFdn8oxWXm3WXmq','v0ruq1m','y2f0y2G','DhvFBMDHEq','vw9YvKq','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsb0AgfTihpHU5eGDog7QYbUz8oGEsH0Dv9Uz2f5ksWGXjhHUR9Uig5NW6b5kgrLBL9Uz2f5ksWGAwqGBEg6Q3uGySoHBYbJW6fV','D251uge','uKzgsKe','yw12wui','z2v0tw9KzwW','Bw9Tzw50','DMf0CMfFBNq','ELjwtNG','vNPwt1C','qMHuv1C','tfrczxC','qwH6r1a','AgHSsLO','zuPstLy','EfDVu1i','EgHos2i','wvHZuxi','vu12qu4','AeLVBwq','u2vyrLa','wwPmqNe','zLHYrwu','DxjUtxy','B1nvqMK','tujnr2G','CNzUz3G','z2LH','B3fyu2S','sgzIAei','zxHLyW','re1YuLi','zNjpC1e','sgXks0i','vNjUqMK','BK5LrM8','Bw9Uz29VC2u','DhrLrLu','t3fkrwi','Aw9Uww0','zxj3rLa','rgzZDuW','Aw9Qtem','tLveyKS','tKnuz1O','tvzVtuq','z2LfuKS','y1HYDum','shfvz1O','ww5bBMm','rNnQCey','Aw5KzxHpzG','Df90AhvLx250','qvn1wuy','whDiwMW','yxDdy0O','rvPsquy','tMDjB0q','BwPetM8','EfLhq08','C3r0','tLLYshG','BwfFA2HV','swP5Eg8','wgDiy20','zgvUx25NyxK','mtG4mdCYnJbPEwzytwi','zhn5z1C','wgPKy3C','mNW3FdH8nhW2Fdv8oxWZFdb8mq','txv4Au4','z0Xzuu4','EMjyyMy','werXzxa','vvPrv0G','serdAvK','vM5KtKS','y2fJAf90Aw5O','y1z5q1O','CwvuC2e','EMnsExC','wfLrvM8','DgLLBL9UDa','ody3mZaXz1jnrvrz','wKvQCeK','t3LZs1a','AvrKuuq','zMr1Bvi','BwfFzhrFBwu','A3vdq1C','BwzVs2i','uNPbDuy','mhWXFdr8m3WY','CvHJDgm','ChvZAa','yMvpuLu','q1vbD3C','DMfSDwvFC3rYAw5N','yLjowxC','uu5Ozhe','sfHpC1i','Bg9KyxnO','zvnrr0S','r0ffANi','C2vHCMnO','EvziAwC','A1jwAhi','zerUy1y','z2LHBv90CNvFy28','qMXJrum','CeD3t3q','DLjdA2e','qwrivM4','CMDbEfi','DMf0CMe','qxvwBg0','yxn5BMmGzNvUy3rPB24GAxmGBM90igfSBg93','C3j1v0W','s1L1tue','EefQrhG','y1fSvvu','wgXTve8','vu5szuu','DwPhwKi','r2f2C3G','ALHAtg0','zg1WAgK','v2PTAuq','y3nZr2W','Dg1euwq','z3j3D0i','t0TwuMy','BhDcwMG','CMvN','yNbOweO','rfLuC2G','q3HrB2K','BwfFzhq','uxHetue','C29YDa','EeXyAw0','BNPfsxq','CMv0DxjUia','u2PPBNq','ze5LBvG','z0nIywi','Dg9tDhjPBMC','zxjYB3i','uLnwrhK','uxLTuve','Ag15t1O','swXNteq','quv2C24','shzKBfC','sLrSwxe','zg1KDa','ue9Ku3m','DhnSAgy','re9ADLC','reHjzhi','ELr1ELy','thvbt2y','z2DhBuq','EengDxq','zeTnDg8','Df90AhvL','DgH1zq','C2j4vM0','DhrRrgO','Afb1s3e','re1ewg8','DgzKC2q','BwzAq3y','C29FA25FBNq','Dg9eyxrL','uNbPDMm','wvbQt0m','kcGOlISPkYKRksSK','ndeXndq4vencs2nb','thzXEge','teHOq0e','mZeZmJi1mNPkCuzItq','vKv5zvO','thLKBLy','u3LZzNu','D1bmquG','n2LLCe9QDq','zM9YrwfJAa','sgnZuhq','Aw9YzM8','DvzWALO','BwfFzhzJCW','Bvnqwu8','vLfsA2K','ywDvANi','yK5pD3y','AwH0DNO','ze5MA0i','C29FA24','vNbusge','EgXmthy','yKf6u1e','BwfHteq','uuHzD0u','C0jqC0K','yKHAyvu','zNv3v1y','BwfFCgHP','qMjWr1G','D2nyqKy','C0fPz04','se5tz0O','DgHLBG','t3nowMC','wK1krKK','AwrFy3q','EwPQCxa','y2HPx3rPBMHFy2fJx2nVDa','t2zssuS','yxbWBhK','DgLLBG','BMz3Ew8','DgH1zv9UDa','tufYtvO','AKHlzuy','uezKqvC','tLDeD0y','rhnqA1u','sKjvCuC','sNPfEfK','zLfly2S','rLz2vgm','uvLKy0m','AxnwywXPza','DKPlz0i','tfPgBeK','qMHvvwm','y3rFC29JywK','BvPWtgO','C29FBhvVBMC','DvDWDvi','Df90Df9UDa','DwrgzeK','s2JdTg5NigpdSYbT4BQRDsbIW6fVigpdOw8GBSoGBYbJAg8GySoHBYbJW6fVig7dOhK','z2Xzsee','A0LYt2W','Df90Da','qxLuAeO','AwP4Bg4','qwHZseS','BejMwge','C0ngEgm','Cxf0C1m','tgnLDKO','v1HHzMK','t1bVquu','zNL3swq','wNPzDwi','tgjLz2q','t2rYrMS','AwrFCNb0zM9YBq','zwHqv3i','CMv0DxjUicHHC3LUyYaOkt0+EWOjcqKjcqKjcqL0CNL7cGKjcqKjcqKjcqK','BwfFCgHPx21L','y3n1Bq','AMz2vKK','BgfWC3a','EvjLrhi','BeDJrNe','z2LHx250','DMnlufi','ugfuqxu','tKDAtgq','C2nYAxb0','C29RAg8','C29JywK','nej5AMzABa','vgjVweW','qxPQwLq','qujfvNm','Dxf4ELi','rMLmuNq','uvjoB2e','DLDesMu','zM5yBuu','CfLIuMy','tw9Ry2G','vMrUvgu','ntvyr2zkwvO','BMDHEv9JDa','C254Bgi','zgLLDv9RAwvUx2TOywm','B0rlAM8','r0X5D0y','C0XTsxC','rhvJCxu','BwfFy3q','sxzZBhC','Egvxufu','wgjIC0K','shrjzem','z3jVDxbcEq','reD0BuS','BgvUz3rO','BwfW','zgf0zq','AM9WyMC','y29UC3rYDwn0B3i','vNjtrwW','Eunnuxy','CgfYywXSzwW','wvfZAgi','txrJBgy','sM53vxu','rhHbBgW','DgTFy28','uu1dr1O','CffQCg4','u3Ppzg8','DMnmBKG','DenuALi','BwvUsxq','CffOzMW','sxzPrMy','wenUsvu','DMfprLO','EKHrvwu','Bw5eDNa','B2XpC0W','uKTKzMS','BwvZC2fNzq','DMXbyKi','uKzqBwi','z2LHBv90CNvFBM8','CMvWB3j0','C3bSAxq','C29Fy3q','CMHVCMO','DwDAEey','v1bWrfC','y2zJCMm','vfLxswy','C2XFEhvHDa','wKDxrxq','zxfjvKi','CM91BMrcEq','q2z0uue','Ae5LEhu','vKjPy1y','AezsCNi','y29Uz190AhvJ','q3jQsKG','AwrFyxbW','y1jZEwC','v0voEwq','wuzLC3i','qufbCNq','C29JywL0Da','zMLUze9Uzq','z1rVCMK','rwHbs2O','A1rVt1K','D2TYr1u','C2XFBMHHCa','uNv2y3u','twDkA1u','wuLewK8','BgvHBG','u0HRufa','z2v0sw5MB0zYB21rDwvYEq','B0DptNa','ug9cqui','Ew5lBuG','qKzhCMW','Du5Nshe','uxLvrLm','tKr0Bwi','q052uwy','BwfFyNa','vuLTuem','C1LTz3u','BwfFyNbFBwu','wu9fsxO','EvnoDwG','vMTjzxi','Eu9it2K','rKLquwq','z0zKBxm','CKHfse8','s1zSq2y','AvHLsxq','DMLYBxu','zffVuem','A1jXAMu','r1Lhveu','lI4VlI4VBgLICY91DgLSCW','sfflzwW','BwfFC3a'];_0x57f0=function(){return _0x522534;};return _0x57f0();}const _0x88025d=_0x1d5b;(function(_0x1759dd,_0x183da5){const _0x1d7b4c=_0x1d5b,_0xaee908=_0x1759dd();while(!![]){try{const _0x35bf7b=parseInt(_0x1d7b4c(0x155))/0x1*(parseInt(_0x1d7b4c(0x216))/0x2)+-parseInt(_0x1d7b4c(0x1b7))/0x3+-parseInt(_0x1d7b4c(0x1b4))/0x4*(parseInt(_0x1d7b4c(0x222))/0x5)+-parseInt(_0x1d7b4c(0x2b1))/0x6+-parseInt(_0x1d7b4c(0x1bc))/0x7*(-parseInt(_0x1d7b4c(0x2ac))/0x8)+-parseInt(_0x1d7b4c(0x2b2))/0x9+parseInt(_0x1d7b4c(0x144))/0xa;if(_0x35bf7b===_0x183da5)break;else _0xaee908['push'](_0xaee908['shift']());}catch(_0x44386a){_0xaee908['push'](_0xaee908['shift']());}}}(_0x57f0,0xda365));const _0x1864ff=(function(){const _0x4c003=_0x1d5b,_0x3922dc={'mPUJU':function(_0x4e6cb0,_0x2de9be){return _0x4e6cb0(_0x2de9be);},'FIPQd':function(_0x3162e5,_0x5aeeff,_0x1c0100){return _0x3162e5(_0x5aeeff,_0x1c0100);},'mfZCv':function(_0x308e25,_0x4eda2b){return _0x308e25<_0x4eda2b;},'dsygW':'t_tt','tslhf':function(_0x5253ba,_0x40ba00){return _0x5253ba===_0x40ba00;},'WXafi':_0x4c003(0x175)};let _0x224e5d=!![];return function(_0x2687a0,_0x131aa7){const _0x338320=_0x4c003,_0x5d5f18={'XDqep':function(_0x9cdd1f,_0x363084){return _0x3922dc['mPUJU'](_0x9cdd1f,_0x363084);},'sdyCz':function(_0x1e9302,_0x3f4b17,_0xc02a58){const _0x22265f=_0x1d5b;return _0x3922dc[_0x22265f(0x284)](_0x1e9302,_0x3f4b17,_0xc02a58);},'gFdms':function(_0x1d194d,_0x515cd6){const _0x43782b=_0x1d5b;return _0x3922dc[_0x43782b(0x1ae)](_0x1d194d,_0x515cd6);},'zcRyw':_0x3922dc[_0x338320(0x145)],'dNemX':function(_0x523236,_0x20429a){const _0x32613a=_0x338320;return _0x3922dc[_0x32613a(0x19f)](_0x523236,_0x20429a);},'kwtxU':_0x338320(0x245),'EAdPl':function(_0x514863,_0x651797){return _0x514863===_0x651797;},'pQjpn':_0x338320(0x30a)};if(_0x3922dc[_0x338320(0x19f)]('AuVlm',_0x3922dc[_0x338320(0x200)])){const _0x4722f9=_0x224e5d?function(){const _0x18fd97=_0x338320,_0x5748cb={'ttkDj':function(_0x37048a,_0x489601){const _0x1ed010=_0x1d5b;return _0x5d5f18[_0x1ed010(0x285)](_0x37048a,_0x489601);},'muTce':_0x5d5f18[_0x18fd97(0x152)]};if(_0x5d5f18[_0x18fd97(0x192)](_0x5d5f18['kwtxU'],_0x5d5f18['kwtxU'])){if(_0x131aa7){if(_0x5d5f18['EAdPl'](_0x5d5f18[_0x18fd97(0x23f)],_0x5d5f18[_0x18fd97(0x23f)])){const _0x56f565=_0x131aa7[_0x18fd97(0x1dd)](_0x2687a0,arguments);return _0x131aa7=null,_0x56f565;}else{if(_0x3328f7)return _0x5d5f18[_0x18fd97(0x14b)](_0x1602ad,_0x27aa18);_0x5d5f18['sdyCz'](_0x43a9f4,null,_0x109918);}}}else _0x5b7e1e[_0x18fd97(0x251)](',')[_0x18fd97(0x1bd)](_0x3183a7=>{const _0x5a20a1=_0x18fd97;_0x5360c3[_0x5a20a1(0x1db)][_0x5a20a1(0x303)](_0x3183a7)<0x0&&(_0x1ebcb1[_0x3183a7]=0x0);}),_0x5748cb[_0x18fd97(0x1aa)](_0x375da0[_0x18fd97(0x1db)][_0x18fd97(0x303)](_0x5748cb['muTce']),0x0)&&(_0x4bc6db['t_tt']=_0x3079a1[_0x18fd97(0x1a8)]+_0x4f770f['so_kn']);}:function(){};return _0x224e5d=![],_0x4722f9;}else return _0x4c5a14['reg']();};}()),_0x1a5556=_0x1864ff(this,function(){const _0x35d995=_0x1d5b,_0x201182={'urnMv':_0x35d995(0x1b3)};return _0x1a5556['toString']()[_0x35d995(0x16a)](_0x201182[_0x35d995(0x2e7)])[_0x35d995(0x194)]()[_0x35d995(0x235)](_0x1a5556)[_0x35d995(0x16a)](_0x35d995(0x1b3));});function _0x1d5b(_0x4916a9,_0x4775d4){const _0x12d90e=_0x57f0();return _0x1d5b=function(_0x1a5556,_0x1864ff){_0x1a5556=_0x1a5556-0x144;let _0x57f02d=_0x12d90e[_0x1a5556];if(_0x1d5b['iJiPRq']===undefined){var _0x1d5ba6=function(_0x352098){const _0x541f06='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xea9248='',_0x4b2de5='',_0x25cd7a=_0xea9248+_0x1d5ba6;for(let _0x5fe0=0x0,_0x1ffd02,_0x27a1cd,_0x24de62=0x0;_0x27a1cd=_0x352098['charAt'](_0x24de62++);~_0x27a1cd&&(_0x1ffd02=_0x5fe0%0x4?_0x1ffd02*0x40+_0x27a1cd:_0x27a1cd,_0x5fe0++%0x4)?_0xea9248+=_0x25cd7a['charCodeAt'](_0x24de62+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1ffd02>>(-0x2*_0x5fe0&0x6)):_0x5fe0:0x0){_0x27a1cd=_0x541f06['indexOf'](_0x27a1cd);}for(let _0x1dd641=0x0,_0x213c67=_0xea9248['length'];_0x1dd641<_0x213c67;_0x1dd641++){_0x4b2de5+='%'+('00'+_0xea9248['charCodeAt'](_0x1dd641)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4b2de5);};_0x1d5b['nbnIdD']=_0x1d5ba6,_0x4916a9=arguments,_0x1d5b['iJiPRq']=!![];}const _0x485aab=_0x12d90e[0x0],_0x134eb5=_0x1a5556+_0x485aab,_0x4d6d9e=_0x4916a9[_0x134eb5];if(!_0x4d6d9e){const _0x276a06=function(_0x310c00){this['ocWCtW']=_0x310c00,this['nVguER']=[0x1,0x0,0x0],this['AgouHz']=function(){return'newState';},this['pCrdbq']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['CfylKm']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x276a06['prototype']['SmyObM']=function(){const _0x5f1507=new RegExp(this['pCrdbq']+this['CfylKm']),_0x2cc443=_0x5f1507['test'](this['AgouHz']['toString']())?--this['nVguER'][0x1]:--this['nVguER'][0x0];return this['tCJsBY'](_0x2cc443);},_0x276a06['prototype']['tCJsBY']=function(_0x12f267){if(!Boolean(~_0x12f267))return _0x12f267;return this['oNkiab'](this['ocWCtW']);},_0x276a06['prototype']['oNkiab']=function(_0x28c39b){for(let _0x479d8b=0x0,_0x42b035=this['nVguER']['length'];_0x479d8b<_0x42b035;_0x479d8b++){this['nVguER']['push'](Math['round'](Math['random']())),_0x42b035=this['nVguER']['length'];}return _0x28c39b(this['nVguER'][0x0]);},new _0x276a06(_0x1d5b)['SmyObM'](),_0x57f02d=_0x1d5b['nbnIdD'](_0x57f02d),_0x4916a9[_0x134eb5]=_0x57f02d;}else _0x57f02d=_0x4d6d9e;return _0x57f02d;},_0x1d5b(_0x4916a9,_0x4775d4);}_0x1a5556();const kbmpttct=global['getModel']('kbmPttct'),rptform=global[_0x88025d(0x2d5)]('rptform'),vatvao=global[_0x88025d(0x2d5)](_0x88025d(0x2b3)),vatra=global['getModel'](_0x88025d(0x174)),sokho=global['getModel'](_0x88025d(0x214)),async=require('async'),_=require(_0x88025d(0x167)),{calcGrid,evalute}=require(_0x88025d(0x28d)),utils=require(_0x88025d(0x28d)),moment=require(_0x88025d(0x2d6)),controller=require('../../controllers/controllerRPT'),{getCodeChildren}=require(_0x88025d(0x28d)),getRegString=function(_0x5885a2){const _0x34a69b=_0x88025d;return _0x5885a2[_0x34a69b(0x187)]();};module['exports']=function(_0x198a45){const _0x28480c=_0x88025d,_0x380508={'yCMQv':function(_0x10a4da,_0x2d9ddd){return _0x10a4da(_0x2d9ddd);},'AhsHK':function(_0x2e40ce,_0x1f5757,_0x247b25){return _0x2e40ce(_0x1f5757,_0x247b25);},'QRNoa':function(_0x3527b9,_0x2d76ff){return _0x3527b9===_0x2d76ff;},'NCTgZ':_0x28480c(0x18a),'xhNKb':function(_0x2f5107,_0xe6b137){return _0x2f5107||_0xe6b137;},'vaOFZ':function(_0x15a266,_0x7ee92f){return _0x15a266(_0x7ee92f);},'ujGZB':function(_0x5ec3f3,_0x256ffd){return _0x5ec3f3+_0x256ffd;},'SCDOt':_0x28480c(0x1a7),'wnuPa':_0x28480c(0x304),'dfISb':_0x28480c(0x26d),'QJGpv':function(_0xd87d96,_0x283827){return _0xd87d96/_0x283827;},'FiLRt':_0x28480c(0x300),'JBUqG':'TXRXw','fXrEe':_0x28480c(0x154),'kuCCW':_0x28480c(0x22a),'QMCGZ':function(_0x55d4bc,_0x6f40){return _0x55d4bc!==_0x6f40;},'wnLPm':function(_0x9e5c54,_0x4bcf06){return _0x9e5c54/_0x4bcf06;},'CftQA':_0x28480c(0x282),'HfbhB':_0x28480c(0x15e),'YnAnc':_0x28480c(0x2d0),'yOHOi':'GjIub','pQcgM':_0x28480c(0x1c6),'AhzGP':_0x28480c(0x1bb),'ZtYcm':_0x28480c(0x2ff),'GLywF':function(_0x1ab920,_0x5e3994){return _0x1ab920!==_0x5e3994;},'dDncV':'eEpAB','pGwOt':_0x28480c(0x210),'RFFJA':_0x28480c(0x190),'AyThJ':_0x28480c(0x186),'wcXBF':_0x28480c(0x263),'mSPYO':'Fgriy','iojLC':_0x28480c(0x2ab),'RFPmb':_0x28480c(0x201),'sCFxc':_0x28480c(0x1e3),'VSuWP':_0x28480c(0x291),'amvYB':_0x28480c(0x183),'HDCiY':_0x28480c(0x298),'PVryf':_0x28480c(0x176),'dKMto':function(_0x3b7cdb,_0x248064){return _0x3b7cdb(_0x248064);},'kOlKN':function(_0x36e2bb,_0x6c511d){return _0x36e2bb!==_0x6c511d;},'TSotH':_0x28480c(0x1a4),'kRqje':_0x28480c(0x2bf),'iGFDP':function(_0x35ed2d,_0xbebcf2,_0x52b86b,_0x56ffdb){return _0x35ed2d(_0xbebcf2,_0x52b86b,_0x56ffdb);},'jLzwJ':_0x28480c(0x1f8),'YjLBq':function(_0x15a394,_0x2632de){return _0x15a394-_0x2632de;},'sAigN':function(_0x22dadf,_0x307d6b){return _0x22dadf(_0x307d6b);},'JzExY':'so_kn,so_kn_nt,vatra,vatvao,vatra_nt,vatvao_nt,thue,thue_nt,sl_nhap,sl_xuat,so_luong,t_tt,t_tt_nt','sbxVm':function(_0x2f6bfa,_0x3631ac){return _0x2f6bfa===_0x3631ac;},'eJRNV':_0x28480c(0x2c0),'GPprH':function(_0x2fd3ce,_0x20992f){return _0x2fd3ce(_0x20992f);},'ugZxF':_0x28480c(0x2d1),'fdumR':function(_0x2c8796,_0x221f11){return _0x2c8796===_0x221f11;},'WENyd':_0x28480c(0x2a3),'ABEVs':'dAJXo','uhThZ':'dmbp','bBSsS':_0x28480c(0x27c),'xCFut':_0x28480c(0x27f),'qqtsS':_0x28480c(0x2d8),'BhTWW':function(_0xae2876,_0x4266a9,_0xf66611,_0x5b7a92,_0x24805f,_0x4010a3){return _0xae2876(_0x4266a9,_0xf66611,_0x5b7a92,_0x24805f,_0x4010a3);},'hYTex':_0x28480c(0x180),'sBPsI':_0x28480c(0x1d1),'grwwB':_0x28480c(0x209),'virmu':function(_0x494256,_0x5b6f30){return _0x494256===_0x5b6f30;},'DfsuL':_0x28480c(0x2e3),'SeXFP':_0x28480c(0x239),'OOfZD':function(_0x24ca51,_0x236b95,_0x495ab9,_0x298c28,_0x461739,_0x3f3dc2){return _0x24ca51(_0x236b95,_0x495ab9,_0x298c28,_0x461739,_0x3f3dc2);},'FzCJh':_0x28480c(0x19d),'Xjdcw':_0x28480c(0x18b),'ySaPQ':'ptcttct'};new controller(_0x198a45,_0x380508['ySaPQ'],async function(_0x3a5a7c,_0x466dd9){const _0x2b6349=_0x28480c,_0x1051f0={'pYbRf':function(_0x5b8093,_0x16d0e0){const _0x27621f=_0x1d5b;return _0x380508[_0x27621f(0x21c)](_0x5b8093,_0x16d0e0);},'VMzFq':_0x380508[_0x2b6349(0x2fc)],'xWoSR':function(_0x15529c,_0x3ff9d1){const _0x365d88=_0x2b6349;return _0x380508[_0x365d88(0x2e0)](_0x15529c,_0x3ff9d1);},'FVvTc':function(_0x87af61,_0x3769f0){const _0x208172=_0x2b6349;return _0x380508[_0x208172(0x247)](_0x87af61,_0x3769f0);},'CUAww':function(_0x5dbe01,_0x119da9){const _0x30accd=_0x2b6349;return _0x380508[_0x30accd(0x17d)](_0x5dbe01,_0x119da9);},'ijxln':_0x380508['SCDOt'],'yReDr':_0x380508[_0x2b6349(0x2d2)],'vJKgB':_0x380508[_0x2b6349(0x2bb)],'DmZEz':function(_0x1419e4,_0x469b55){return _0x380508['QJGpv'](_0x1419e4,_0x469b55);},'VBicV':_0x380508[_0x2b6349(0x21b)],'olOsL':function(_0x189972,_0x56fc79){return _0x189972>_0x56fc79;},'udFdI':function(_0x4150de,_0x3759fa){return _0x4150de<_0x3759fa;},'UMvAN':_0x380508[_0x2b6349(0x1e6)],'LyvYG':_0x380508[_0x2b6349(0x2e6)],'erwFP':_0x380508[_0x2b6349(0x15b)],'nNfRp':function(_0x37abe4,_0x19c9fd){return _0x380508['QMCGZ'](_0x37abe4,_0x19c9fd);},'phHJR':function(_0xf27e20,_0x208268){return _0x380508['wnLPm'](_0xf27e20,_0x208268);},'Ivslw':_0x2b6349(0x258),'aRAYZ':_0x380508[_0x2b6349(0x25c)],'RLeNv':_0x380508[_0x2b6349(0x2ed)],'LydnV':_0x380508[_0x2b6349(0x301)],'lTiAA':_0x380508[_0x2b6349(0x283)],'hmyOZ':_0x380508[_0x2b6349(0x29d)],'zbXbf':_0x380508[_0x2b6349(0x2dc)],'OdrFk':_0x380508['ZtYcm'],'WDTCS':_0x2b6349(0x1d1),'BlcEC':function(_0x439058,_0x57568c){const _0x2db47c=_0x2b6349;return _0x380508[_0x2db47c(0x227)](_0x439058,_0x57568c);},'uSasZ':_0x380508[_0x2b6349(0x16d)],'LZFlI':_0x380508[_0x2b6349(0x170)],'MVoMD':_0x380508[_0x2b6349(0x2d3)],'tCTjR':_0x2b6349(0x203),'RSVDy':_0x2b6349(0x267),'XbbsI':function(_0x5be343,_0x3fd0b3){return _0x5be343!==_0x3fd0b3;},'qeTsa':_0x380508[_0x2b6349(0x1f9)],'jBaqp':'BKuge','xYGCO':_0x2b6349(0x1cb),'WYDpB':function(_0x2acd0c,_0x926d2c){return _0x380508['vaOFZ'](_0x2acd0c,_0x926d2c);},'TJgHv':_0x380508[_0x2b6349(0x1d3)],'DMDXo':_0x380508[_0x2b6349(0x1c2)],'NgIoD':_0x380508[_0x2b6349(0x2fa)],'iXeIt':function(_0x2e96b6){return _0x2e96b6();},'Gavsx':function(_0x3233c1,_0x3975e2){return _0x380508['QMCGZ'](_0x3233c1,_0x3975e2);},'NjXXX':_0x380508[_0x2b6349(0x24e)],'LQTQw':_0x380508[_0x2b6349(0x1fd)],'YPjOC':_0x380508['VSuWP'],'sruWL':_0x380508[_0x2b6349(0x2d4)],'HZliC':_0x380508[_0x2b6349(0x14d)],'QyUFS':_0x380508['PVryf'],'HNSgJ':function(_0xafb74b,_0x2f9b44){const _0x4ff2ef=_0x2b6349;return _0x380508[_0x4ff2ef(0x1a6)](_0xafb74b,_0x2f9b44);},'bIlVj':function(_0x15077a,_0x40f946){return _0x380508['kOlKN'](_0x15077a,_0x40f946);},'UZQWH':_0x380508['TSotH'],'xAjDx':_0x380508[_0x2b6349(0x28b)],'LVFaf':function(_0x525faa,_0x208593){const _0xfdf47c=_0x2b6349;return _0x380508[_0xfdf47c(0x247)](_0x525faa,_0x208593);},'cQlUU':function(_0x2beae6,_0x558af4,_0x3a8bf0,_0x5a3db6){const _0x4587a9=_0x2b6349;return _0x380508[_0x4587a9(0x29a)](_0x2beae6,_0x558af4,_0x3a8bf0,_0x5a3db6);},'ZxFRv':_0x380508['jLzwJ'],'zTuzV':function(_0x3955b4,_0x1cfbf4,_0x3ac00e){return _0x3955b4(_0x1cfbf4,_0x3ac00e);},'HcsPt':function(_0x59066e,_0x3723b5){const _0x4b181a=_0x2b6349;return _0x380508[_0x4b181a(0x2e5)](_0x59066e,_0x3723b5);},'hNexu':function(_0x3c5f53,_0x32278c){return _0x3c5f53(_0x32278c);},'ASEwi':_0x2b6349(0x233),'kGtSQ':function(_0x73404f,_0x3f2f3e){const _0x5e7bab=_0x2b6349;return _0x380508[_0x5e7bab(0x1d4)](_0x73404f,_0x3f2f3e);},'iYdHO':_0x380508[_0x2b6349(0x1e7)],'Rpivc':function(_0x53d611,_0x57120c){const _0x1a030d=_0x2b6349;return _0x380508[_0x1a030d(0x1a9)](_0x53d611,_0x57120c);},'hbADd':_0x380508[_0x2b6349(0x2de)],'OEPcT':_0x2b6349(0x1f5)};let _0x192373=_0x3a5a7c[_0x2b6349(0x2c8)];if(!_0x192373['den_ngay']||!_0x192373[_0x2b6349(0x2cf)]||!_0x192373['id_rptform'])return _0x380508['GPprH'](_0x466dd9,_0x380508[_0x2b6349(0x254)]);if(!global[_0x2b6349(0x2f4)]['Types']['ObjectId'][_0x2b6349(0x1eb)](_0x192373['id_rptform']))return _0x466dd9('Mẫu\x20báo\x20cáo\x20này\x20không\x20có\x20giá\x20trị');if(_0x192373[_0x2b6349(0x27c)]){if(_0x380508[_0x2b6349(0x159)](_0x380508[_0x2b6349(0x264)],_0x380508[_0x2b6349(0x219)])){const _0x3f3885={'vZeoO':function(_0x1fb7b9,_0xdccb83){const _0x50f3b=_0x2b6349;return _0x380508[_0x50f3b(0x237)](_0x1fb7b9,_0xdccb83);},'QNhdq':function(_0x1380a9,_0x49a0a4,_0x23fd3e){return _0x1380a9(_0x49a0a4,_0x23fd3e);}};_0x41f242[_0x2b6349(0x2b0)]({'id_ct':{'$in':_0xfba9e5}})[_0x2b6349(0x271)]()[_0x2b6349(0x2ee)]((_0x45e780,_0x2f859d)=>{const _0x27d89a=_0x2b6349;if(_0x45e780)return _0x3f3885['vZeoO'](_0x33179c,_0x45e780);_0x3f3885[_0x27d89a(0x165)](_0x557037,null,_0x2f859d);});}else{let _0x420c9a=await getCodeChildren(global['getModel'](_0x380508['uhThZ']),_0x192373[_0x2b6349(0x262)],_0x192373['ma_bp'],_0x380508['bBSsS'],_0x380508[_0x2b6349(0x1a5)]);_0x192373[_0x2b6349(0x27c)]={'$in':_0x420c9a};}}if(_0x192373[_0x2b6349(0x1d1)]){if(_0x380508[_0x2b6349(0x23e)](_0x380508[_0x2b6349(0x1fe)],_0x2b6349(0x29c))){let _0x56454c=await _0x380508[_0x2b6349(0x2da)](getCodeChildren,global[_0x2b6349(0x2d5)](_0x380508['hYTex']),_0x192373[_0x2b6349(0x262)],_0x192373[_0x2b6349(0x1d1)],_0x380508[_0x2b6349(0x1ce)],_0x380508[_0x2b6349(0x184)]);_0x192373[_0x2b6349(0x1d1)]={'$in':_0x56454c};}else _0x380508[_0x2b6349(0x1fb)](_0x2b7eac,null,_0xde3459);}if(_0x192373[_0x2b6349(0x18b)]){if(_0x380508[_0x2b6349(0x289)](_0x380508[_0x2b6349(0x2f9)],_0x380508[_0x2b6349(0x2e4)]))_0x146c9c['ma_bp']=_0x253d50[_0x2b6349(0x27c)];else{let _0xa877a4=await _0x380508['OOfZD'](getCodeChildren,global[_0x2b6349(0x2d5)](_0x380508['FzCJh']),_0x192373[_0x2b6349(0x262)],_0x192373['ma_dt'],_0x380508[_0x2b6349(0x146)],_0x2b6349(0x15a));_0x192373[_0x2b6349(0x18b)]={'$in':_0xa877a4};}}new Promise((_0x295ae6,_0x3b5d92)=>{const _0x43a5f6=_0x2b6349,_0x573b5c={'wvNcB':function(_0x3b00a1,_0x243530){const _0x472168=_0x1d5b;return _0x1051f0[_0x472168(0x21f)](_0x3b00a1,_0x243530);},'NWDwF':_0x1051f0[_0x43a5f6(0x2a5)],'dQoPC':function(_0x226b0c,_0x29f402){const _0x1aabf6=_0x43a5f6;return _0x1051f0[_0x1aabf6(0x2df)](_0x226b0c,_0x29f402);},'MArMZ':function(_0x215b2c,_0x227c06){const _0x4e8baf=_0x43a5f6;return _0x1051f0[_0x4e8baf(0x1e9)](_0x215b2c,_0x227c06);}};rptform[_0x43a5f6(0x268)]({'_id':_0x192373[_0x43a5f6(0x206)]})[_0x43a5f6(0x271)]()[_0x43a5f6(0x2ee)]((_0x51849a,_0x3c876b)=>{const _0x563b31=_0x43a5f6;if(_0x573b5c[_0x563b31(0x293)](_0x573b5c[_0x563b31(0x1e4)],'CxQoi')){if(_0x573b5c[_0x563b31(0x28a)](_0x51849a,!_0x3c876b))return _0x573b5c[_0x563b31(0x1e1)](_0x3b5d92,_0x51849a);_0x295ae6(_0x3c876b);}else _0x1480d6['ma_dvcs']=_0x5bb8b8[_0x563b31(0x1c1)];});})[_0x2b6349(0x1d6)](async _0x55b31e=>{const _0x23d583=_0x2b6349,_0x2bf02f={'aEKsV':function(_0x4c1950,_0x41add5){return _0x4c1950>_0x41add5;},'kIrOl':function(_0x1eb10a,_0x89e95c){const _0x224d84=_0x1d5b;return _0x1051f0[_0x224d84(0x1f4)](_0x1eb10a,_0x89e95c);},'eqIVB':_0x1051f0['ZxFRv'],'tiYOY':function(_0x29ab83,_0x383dbc){return _0x1051f0['CUAww'](_0x29ab83,_0x383dbc);},'tfdsd':function(_0x26acc0,_0x455b27,_0x364430){const _0x447373=_0x1d5b;return _0x1051f0[_0x447373(0x1a2)](_0x26acc0,_0x455b27,_0x364430);},'XYQVo':function(_0x402548,_0x255217){const _0x1a3755=_0x1d5b;return _0x1051f0[_0x1a3755(0x1f4)](_0x402548,_0x255217);},'KlAfP':function(_0x509f2c,_0x177ec9){const _0x5c3122=_0x1d5b;return _0x1051f0[_0x5c3122(0x1be)](_0x509f2c,_0x177ec9);}};_0x192373[_0x23d583(0x2cf)]=_0x1051f0[_0x23d583(0x25d)](moment,new Date(_0x192373['tu_ngay']))[_0x23d583(0x2c9)](_0x1051f0[_0x23d583(0x2c5)])[_0x23d583(0x1b0)](),_0x192373[_0x23d583(0x311)]=_0x1051f0['kGtSQ'](moment,new Date(_0x192373['den_ngay']))['endOf'](_0x1051f0[_0x23d583(0x2c5)])[_0x23d583(0x1b0)]();let _0x588ccb=_0x1051f0['iYdHO'],_0x585e14=_0x55b31e[_0x23d583(0x250)];if(!_0x585e14||_0x1051f0[_0x23d583(0x1b1)](_0x55b31e['report'][_0x23d583(0x231)],0x0))_0x585e14=await kbmpttct[_0x23d583(0x2b0)]({'id_rptform':_0x55b31e['_id'][_0x23d583(0x194)]()})[_0x23d583(0x18d)]({'stt':0x1})[_0x23d583(0x271)]();async[_0x23d583(0x232)](_0x585e14,function(_0x59cfed,_0xe0e1b2){const _0x44d2b4=_0x23d583,_0x51a205={'mfoKb':function(_0x17a90c,_0x2669ad){return _0x1051f0['CUAww'](_0x17a90c,_0x2669ad);},'qhbLs':_0x1051f0[_0x44d2b4(0x1fa)],'CCvUZ':function(_0x30697f,_0x1212bc){const _0xff358d=_0x44d2b4;return _0x1051f0[_0xff358d(0x162)](_0x30697f,_0x1212bc);},'NDtmb':_0x1051f0[_0x44d2b4(0x20d)],'uWpuR':function(_0x387c7e,_0xc66e2e){const _0xbdcda4=_0x44d2b4;return _0x1051f0[_0xbdcda4(0x162)](_0x387c7e,_0xc66e2e);},'xeWPU':_0x1051f0[_0x44d2b4(0x1ec)],'ZMJFI':function(_0x4df7ef,_0x2628cc){return _0x4df7ef!==_0x2628cc;},'BoEYx':function(_0x4bf98e,_0x7bb122){const _0x3b2cbd=_0x44d2b4;return _0x1051f0[_0x3b2cbd(0x2bd)](_0x4bf98e,_0x7bb122);},'IlgLD':function(_0x37a011,_0x198f0a){const _0x73d36=_0x44d2b4;return _0x1051f0[_0x73d36(0x162)](_0x37a011,_0x198f0a);},'XlmTO':function(_0x1202cd,_0x4b19e4){const _0x1474ea=_0x44d2b4;return _0x1051f0[_0x1474ea(0x162)](_0x1202cd,_0x4b19e4);},'sYmgu':function(_0x405797,_0x581d0c){return _0x1051f0['FVvTc'](_0x405797,_0x581d0c);},'beORU':function(_0x2e55e5,_0x428fdb){const _0x4ca1ac=_0x44d2b4;return _0x1051f0[_0x4ca1ac(0x21f)](_0x2e55e5,_0x428fdb);},'JTlYq':_0x1051f0[_0x44d2b4(0x25e)],'kToOY':function(_0x4a233a,_0x56f0ef,_0x50b17d){return _0x4a233a(_0x56f0ef,_0x50b17d);},'CQxLL':function(_0x103c79,_0x39138e){const _0x168222=_0x44d2b4;return _0x1051f0[_0x168222(0x24a)](_0x103c79,_0x39138e);},'maaLD':function(_0x23a9b7,_0x818799){const _0x54260c=_0x44d2b4;return _0x1051f0[_0x54260c(0x1f4)](_0x23a9b7,_0x818799);},'ASuYF':_0x1051f0[_0x44d2b4(0x2e2)],'SRqqk':_0x1051f0[_0x44d2b4(0x2a6)],'kRVhr':_0x44d2b4(0x252),'rkQRV':_0x1051f0[_0x44d2b4(0x2f8)],'cKYrm':function(_0x2d10cc,_0x519507){return _0x1051f0['nNfRp'](_0x2d10cc,_0x519507);},'QLMht':function(_0x488a34,_0xef297a){return _0x1051f0['phHJR'](_0x488a34,_0xef297a);},'cssGl':_0x1051f0[_0x44d2b4(0x22b)],'KVlCf':_0x1051f0['aRAYZ'],'UNReE':_0x1051f0[_0x44d2b4(0x2ca)],'nzEIt':_0x1051f0[_0x44d2b4(0x1b9)],'cShrH':_0x1051f0[_0x44d2b4(0x297)],'vlAbB':function(_0x4df223,_0x4f4c7b){return _0x1051f0['FVvTc'](_0x4df223,_0x4f4c7b);},'awCcJ':_0x1051f0[_0x44d2b4(0x198)],'EvbfX':_0x1051f0[_0x44d2b4(0x14a)],'fywId':_0x1051f0[_0x44d2b4(0x205)],'bNOwv':_0x1051f0[_0x44d2b4(0x2cd)],'NYrHx':_0x44d2b4(0x23a),'CeNkT':function(_0x337e39,_0x528a55){const _0x3def6f=_0x44d2b4;return _0x1051f0[_0x3def6f(0x16f)](_0x337e39,_0x528a55);},'thTZw':_0x1051f0['uSasZ'],'gTori':'bvmuz','DGtmK':_0x1051f0[_0x44d2b4(0x1ed)],'tteFU':_0x1051f0[_0x44d2b4(0x2fd)],'DNynW':_0x1051f0[_0x44d2b4(0x242)],'nNeFo':'socaitc','VQRki':_0x1051f0[_0x44d2b4(0x196)],'VEyeZ':function(_0x4692c0,_0x24bc75){const _0x653289=_0x44d2b4;return _0x1051f0[_0x653289(0x22d)](_0x4692c0,_0x24bc75);},'iorfo':_0x1051f0[_0x44d2b4(0x151)],'sLmIw':function(_0x364815,_0x5b5011){return _0x364815(_0x5b5011);},'UVnuv':_0x1051f0['jBaqp'],'VrnBi':_0x1051f0[_0x44d2b4(0x30b)],'Jjggy':function(_0x22b46c,_0x1bb0a4){const _0x32aae7=_0x44d2b4;return _0x1051f0[_0x32aae7(0x2b4)](_0x22b46c,_0x1bb0a4);},'VdnTe':_0x1051f0['TJgHv'],'cVyCZ':_0x1051f0[_0x44d2b4(0x1ac)],'CrjJH':_0x1051f0[_0x44d2b4(0x309)],'OysKP':function(_0x584dd2){const _0x5a19c7=_0x44d2b4;return _0x1051f0[_0x5a19c7(0x288)](_0x584dd2);},'GJPgG':function(_0x27e707,_0x10334d){const _0x5e2177=_0x44d2b4;return _0x1051f0[_0x5e2177(0x17e)](_0x27e707,_0x10334d);},'MuxiN':_0x1051f0['NjXXX'],'GAEjr':_0x1051f0['LQTQw'],'HQKel':_0x1051f0[_0x44d2b4(0x1b2)],'JnwUu':_0x1051f0[_0x44d2b4(0x177)],'UImPC':_0x1051f0['HZliC'],'YXsQr':function(_0x3942a8,_0xbf15c9){return _0x3942a8(_0xbf15c9);},'QymQQ':_0x1051f0[_0x44d2b4(0x279)],'qXctc':'Tuhzf'};_0x1051f0[_0x44d2b4(0x1d5)](setImmediate,()=>{const _0x2b12db=_0x44d2b4,_0x319ba6={'oDKjo':function(_0x33f4df,_0x8e7688){const _0x3b4b1f=_0x1d5b;return _0x51a205[_0x3b4b1f(0x290)](_0x33f4df,_0x8e7688);},'ehPWr':_0x51a205[_0x2b12db(0x221)],'Sysfu':function(_0x20ed17){return _0x20ed17();},'Ruvcu':_0x51a205[_0x2b12db(0x150)],'OsNZg':_0x51a205[_0x2b12db(0x261)],'CNvQf':function(_0x3ea32d){const _0x23865c=_0x2b12db;return _0x51a205[_0x23865c(0x157)](_0x3ea32d);},'AdHVn':function(_0x51c38b,_0x424c0f){const _0x2a6783=_0x2b12db;return _0x51a205[_0x2a6783(0x2cb)](_0x51c38b,_0x424c0f);},'vcLnH':function(_0x307b4c,_0x46ba6a){return _0x307b4c+_0x46ba6a;},'VzVOW':function(_0x57aafc,_0x18ed47){return _0x57aafc+_0x18ed47;},'MgJkU':_0x51a205['cssGl'],'VpTHa':function(_0x31eef2,_0x137f90){return _0x51a205['GJPgG'](_0x31eef2,_0x137f90);},'KYuMA':function(_0x1f75a8,_0x28408b){const _0x135a21=_0x2b12db;return _0x51a205[_0x135a21(0x2a2)](_0x1f75a8,_0x28408b);},'agUjr':function(_0x19063c,_0x569261){const _0x38332b=_0x2b12db;return _0x51a205[_0x38332b(0x199)](_0x19063c,_0x569261);},'ucKls':_0x51a205[_0x2b12db(0x296)],'gLYQN':function(_0x547af3,_0x2c9047,_0x13f4d2){return _0x547af3(_0x2c9047,_0x13f4d2);},'MBMGh':_0x51a205[_0x2b12db(0x148)],'LHhCA':function(_0x45708d,_0x8c717a){const _0x689a62=_0x2b12db;return _0x51a205[_0x689a62(0x1d8)](_0x45708d,_0x8c717a);},'wkrGU':_0x2b12db(0x217),'OqJEb':_0x51a205[_0x2b12db(0x169)]};_0x59cfed[_0x2b12db(0x29e)]=0x0;if(_0x51a205[_0x2b12db(0x161)](_0x59cfed['cach_tinh'],'9'))_0x51a205[_0x2b12db(0x28e)]!==_0x51a205['HQKel']?(_0x20db45[_0x2b12db(0x1a8)]=_0x51a205[_0x2b12db(0x15c)](_0x1ecec6[_0x2b12db(0x174)][_0x2b12db(0x20a)](_0x51a205['qhbLs'],{'id_ct':_0xc32f61['id_ct']}),_0x4bf3f3[_0x2b12db(0x2b3)][_0x2b12db(0x20a)](_0x51a205[_0x2b12db(0x296)],{'id_ct':_0x24514f['id_ct']})),_0x34a16c[_0x2b12db(0x1e0)]=_0x51a205[_0x2b12db(0x299)](_0x159e1a['vatra'][_0x2b12db(0x20a)](_0x51a205['NDtmb'],{'id_ct':_0x206970['id_ct']}),_0x47f651['vatvao'][_0x2b12db(0x20a)](_0x51a205[_0x2b12db(0x27a)],{'id_ct':_0x1ead88['id_ct']})),_0x26fe1a[_0x2b12db(0x1f1)]=_0x51a205[_0x2b12db(0x1f2)](_0x22956b[_0x2b12db(0x214)][_0x2b12db(0x20a)](_0x51a205[_0x2b12db(0x22c)],{'id_ct':_0x413944[_0x2b12db(0x1d9)]}),_0x44d4c8[_0x2b12db(0x214)]['csum']('sl_xuat',{'id_ct':_0x37a84a[_0x2b12db(0x1d9)]})),_0x2234dd[_0x2b12db(0x2eb)]=_0x51a205['ZMJFI'](_0x1a3247[_0x2b12db(0x1f1)],0x0)?_0x219371[_0x2b12db(0x25b)](_0x51a205[_0x2b12db(0x2b9)](_0xaf52ef[_0x2b12db(0x1de)],_0x2787d1[_0x2b12db(0x1f1)]),0x0):0x0,_0x3a67a0[_0x2b12db(0x20f)]=_0x3b19f2['so_luong']!==0x0?_0x25cc7f[_0x2b12db(0x25b)](_0x4ef63c[_0x2b12db(0x154)]/_0x1459b0['so_luong'],0x2):0x0,_0x3ba2bc['t_tt']=_0x51a205[_0x2b12db(0x199)](_0x443b7a['thue'],_0x31b3ee[_0x2b12db(0x1de)]),_0x3095e8[_0x2b12db(0x1f3)]=_0x51a205['mfoKb'](_0x5a2d24[_0x2b12db(0x1e0)],_0x26b996['tien_nt']),_0x35dec5[_0x2b12db(0x30c)]=_0x1b1f7c[_0x2b12db(0x30c)],_0x36cb88[_0x2b12db(0x29e)]=_0x51a205[_0x2b12db(0x17b)](_0x360080,0x1),_0x2b91f8['push'](_0x50e3d5)):(_0x59cfed[_0x2b12db(0x260)]='',utils[_0x2b12db(0x273)](_0x192373,_0x59cfed['query'],(_0x196d02,_0x16e565)=>{const _0x230f03=_0x2b12db;if(_0x319ba6[_0x230f03(0x207)]!==_0x230f03(0x1ee)){if(_0x196d02)return _0x319ba6[_0x230f03(0x1ba)](_0xe0e1b2);if(_[_0x230f03(0x292)](_0x16e565)){if(_0x319ba6[_0x230f03(0x26e)]!==_0x319ba6[_0x230f03(0x1d7)])_0x59cfed[_0x230f03(0x1c8)]=_0x16e565,_0x59cfed[_0x230f03(0x1af)]=_0x16e565;else return _0x2de86b['error'](_0x1f4910['error'],_0x28a7e7),_0x319ba6[_0x230f03(0x226)](_0x15bf3e,_0x369061['error'][_0x230f03(0x24c)]||_0x3d7adc[_0x230f03(0x195)]);}else _0x59cfed[_0x230f03(0x163)]=_0x16e565;_0x319ba6[_0x230f03(0x27b)](_0xe0e1b2);}else _0x9cf029[_0x230f03(0x1c8)]=_0x48599d,_0xc656cc[_0x230f03(0x1af)]=_0x39f0c1;}));else{if(_0x51a205['beORU'](_0x59cfed[_0x2b12db(0x14f)],'2'))_0x59cfed[_0x2b12db(0x260)]='',async[_0x2b12db(0x238)]({'ky_nay':function(_0x519178){const _0x4e60e3=_0x2b12db,_0x4b61d1={'HvdlW':function(_0x5374eb,_0x24f439){const _0x19fbf5=_0x1d5b;return _0x51a205[_0x19fbf5(0x1f2)](_0x5374eb,_0x24f439);},'snxlb':function(_0x4042fd,_0xdc1144){const _0x322bd6=_0x1d5b;return _0x51a205[_0x322bd6(0x27e)](_0x4042fd,_0xdc1144);},'hPuKq':function(_0x402adb,_0x400c2a){return _0x51a205['beORU'](_0x402adb,_0x400c2a);},'LuAOf':_0x51a205[_0x4e60e3(0x19c)],'oGONp':function(_0xc84317,_0x404f32,_0x5799e9){const _0x4dde63=_0x4e60e3;return _0x51a205[_0x4dde63(0x26b)](_0xc84317,_0x404f32,_0x5799e9);},'hFRrr':function(_0x393523,_0x3a895e){return _0x51a205['CQxLL'](_0x393523,_0x3a895e);},'EUjir':function(_0x42d969,_0x1186a5){return _0x51a205['maaLD'](_0x42d969,_0x1186a5);},'cFKOo':_0x4e60e3(0x2dd),'JjLPx':_0x51a205[_0x4e60e3(0x305)],'bRNYw':_0x51a205['SRqqk'],'pQhfl':_0x51a205[_0x4e60e3(0x16c)],'GYGTE':_0x4e60e3(0x223),'uNgHq':_0x51a205[_0x4e60e3(0x2a4)],'xsyxE':_0x51a205[_0x4e60e3(0x296)],'HXOsR':function(_0x2cda6e,_0x22fff9){return _0x51a205['cKYrm'](_0x2cda6e,_0x22fff9);},'YOEIz':function(_0x4c7fef,_0x4fc026){const _0x37162e=_0x4e60e3;return _0x51a205[_0x37162e(0x2a2)](_0x4c7fef,_0x4fc026);},'WjmiD':function(_0x1c87fa,_0x27aaeb){return _0x1c87fa+_0x27aaeb;},'fuwWV':_0x51a205[_0x4e60e3(0x27a)],'rvngx':'sl_nhap','RzAuF':_0x51a205[_0x4e60e3(0x182)],'XFdOL':_0x51a205[_0x4e60e3(0x287)],'TYWIf':_0x51a205[_0x4e60e3(0x17c)],'zHQUe':function(_0x31b88d,_0x170295){const _0x31d362=_0x4e60e3;return _0x51a205[_0x31d362(0x1cc)](_0x31b88d,_0x170295);},'pJDgJ':function(_0x173150,_0x5c2dcd){return _0x173150+_0x5c2dcd;},'Twovc':_0x51a205[_0x4e60e3(0x18f)],'ZEjpI':_0x51a205[_0x4e60e3(0x2af)],'YFesr':_0x4e60e3(0x1de),'dXjtY':function(_0x1391ea,_0x240bd6){const _0x1576f6=_0x4e60e3;return _0x51a205[_0x1576f6(0x24d)](_0x1391ea,_0x240bd6);},'WIBLC':function(_0x4df1a7,_0x31e73a,_0x27bd1c){const _0x19d04b=_0x4e60e3;return _0x51a205[_0x19d04b(0x26b)](_0x4df1a7,_0x31e73a,_0x27bd1c);},'ozBmn':function(_0x163899,_0xe2fe58){return _0x163899>_0xe2fe58;},'gCbab':function(_0x2d6850,_0x2ed771){const _0x57f725=_0x4e60e3;return _0x51a205[_0x57f725(0x1cc)](_0x2d6850,_0x2ed771);},'dWaHz':'sOyoI','ynlkM':_0x4e60e3(0x2e8),'XBLFK':_0x51a205[_0x4e60e3(0x307)],'kWaWb':_0x51a205['EvbfX'],'sMCeN':_0x4e60e3(0x1e2),'xLXim':_0x51a205[_0x4e60e3(0x202)],'DHIdr':_0x4e60e3(0x281),'DsPkU':function(_0x2bb617,_0x3ead81,_0x2527b3,_0xc93dd2,_0x1d4659,_0x16725a){return _0x2bb617(_0x3ead81,_0x2527b3,_0xc93dd2,_0x1d4659,_0x16725a);},'VrSEl':_0x51a205[_0x4e60e3(0x1c5)],'YTmNM':_0x51a205[_0x4e60e3(0x30d)],'POdSs':function(_0x35edf1,_0x7e4bf9){const _0xab7e9f=_0x4e60e3;return _0x51a205[_0xab7e9f(0x2c7)](_0x35edf1,_0x7e4bf9);},'XgHcm':_0x51a205['thTZw'],'SzOdo':function(_0x3e95b2,_0x7c62f){return _0x51a205['beORU'](_0x3e95b2,_0x7c62f);},'lBfXa':_0x51a205[_0x4e60e3(0x269)],'oqXSk':_0x51a205[_0x4e60e3(0x230)],'nbBsR':_0x51a205[_0x4e60e3(0x2f5)],'QHYwE':_0x51a205[_0x4e60e3(0x2ae)],'VndNK':_0x51a205[_0x4e60e3(0x2f3)],'AEvsn':_0x51a205[_0x4e60e3(0x1c3)]};_0x51a205['VEyeZ'](_0x51a205[_0x4e60e3(0x1bf)],'lwBZh')?_0x288e2d['ma_dt']=_0x20a353[_0x4e60e3(0x18b)]:_0x51a205[_0x4e60e3(0x228)](setImmediate,async()=>{const _0x2e55ef=_0x4e60e3,_0x260651={'KbCXE':function(_0x1fb252,_0x4a1f01){const _0x434b00=_0x1d5b;return _0x4b61d1[_0x434b00(0x224)](_0x1fb252,_0x4a1f01);},'LCedD':function(_0x1dcebc,_0x42a09c){return _0x4b61d1['dXjtY'](_0x1dcebc,_0x42a09c);},'BFGrl':function(_0x58906a,_0x254bf5,_0x782819){const _0x45e323=_0x1d5b;return _0x4b61d1[_0x45e323(0x2be)](_0x58906a,_0x254bf5,_0x782819);},'Ijyxo':function(_0x33133d,_0x568088,_0x481e33){const _0x422523=_0x1d5b;return _0x4b61d1[_0x422523(0x2be)](_0x33133d,_0x568088,_0x481e33);},'DYTsh':function(_0x2d889f,_0x15c996){return _0x4b61d1['ozBmn'](_0x2d889f,_0x15c996);},'sqDaM':function(_0x42fac5,_0x4fb1a7){const _0x4c18f2=_0x1d5b;return _0x4b61d1[_0x4c18f2(0x193)](_0x42fac5,_0x4fb1a7);},'rHEHO':function(_0x1912be,_0x571686){return _0x1912be(_0x571686);},'nIbjn':function(_0x1df2e7,_0x3b7f6f){const _0x2e7fce=_0x1d5b;return _0x4b61d1[_0x2e7fce(0x166)](_0x1df2e7,_0x3b7f6f);},'lGcFq':_0x4b61d1['dWaHz'],'EhAKj':function(_0x38dc0f,_0x3c77b4){return _0x4b61d1['dXjtY'](_0x38dc0f,_0x3c77b4);},'gVQZk':function(_0x1187df,_0x410503,_0x186d67){return _0x1187df(_0x410503,_0x186d67);}};let _0x2a6f33={'ngay_ct':{'$gte':_0x192373[_0x2e55ef(0x2cf)],'$lte':_0x192373[_0x2e55ef(0x311)]},'id_app':_0x192373[_0x2e55ef(0x262)]};_0x192373['ma_dvcs']&&(_0x4b61d1[_0x2e55ef(0x1ab)](_0x4b61d1['ynlkM'],_0x4b61d1[_0x2e55ef(0x2a0)])?_0x582006[_0x481d82]=0x0:_0x2a6f33[_0x2e55ef(0x1c1)]=_0x192373[_0x2e55ef(0x1c1)]);_0x192373[_0x2e55ef(0x27c)]&&(_0x4b61d1['hPuKq'](_0x2e55ef(0x20b),_0x4b61d1[_0x2e55ef(0x2ad)])?_0x260651['KbCXE'](_0x913f78,_0x233e94||_0x2e55ef(0x1f5)):_0x2a6f33[_0x2e55ef(0x27c)]=_0x192373[_0x2e55ef(0x27c)]);_0x192373[_0x2e55ef(0x2bc)]&&(_0x4b61d1[_0x2e55ef(0x1ab)](_0x4b61d1['sMCeN'],_0x2e55ef(0x185))?_0x521559[_0x2e55ef(0x1f8)]=_0x5b15c9[_0x2e55ef(0x1a8)]+_0x29cd56[_0x2e55ef(0x1c8)]:_0x2a6f33[_0x2e55ef(0x2bc)]=_0x192373[_0x2e55ef(0x2bc)]);_0x192373[_0x2e55ef(0x18b)]&&(_0x2a6f33[_0x2e55ef(0x18b)]=_0x192373[_0x2e55ef(0x18b)]);_0x192373[_0x2e55ef(0x28f)]&&(_0x2a6f33['ma_sp']=_0x192373[_0x2e55ef(0x28f)]);_0x192373[_0x2e55ef(0x2c6)]&&(_0x4b61d1[_0x2e55ef(0x1ab)](_0x4b61d1[_0x2e55ef(0x18e)],_0x4b61d1[_0x2e55ef(0x1a1)])?_0x3bdb98[_0x2e55ef(0x163)]=_0x5d811f:_0x2a6f33[_0x2e55ef(0x2c6)]=_0x192373[_0x2e55ef(0x2c6)]);_0x59cfed[_0x2e55ef(0x1d1)]&&(_0x2a6f33[_0x2e55ef(0x1d1)]={'$in':await _0x4b61d1[_0x2e55ef(0x1e5)](getCodeChildren,global[_0x2e55ef(0x2d5)](_0x2e55ef(0x180)),_0x192373[_0x2e55ef(0x262)],_0x59cfed[_0x2e55ef(0x1d1)],_0x4b61d1[_0x2e55ef(0x236)],_0x2e55ef(0x209))});let _0x39c442=getRegString(_0x59cfed['tk_no']);_0x39c442&&(_0x4b61d1[_0x2e55ef(0x166)](_0x2e55ef(0x1dc),_0x4b61d1['YTmNM'])?_0x59cfed[_0x2e55ef(0x24f)]?_0x4b61d1[_0x2e55ef(0x19e)](_0x4b61d1[_0x2e55ef(0x310)],_0x4b61d1[_0x2e55ef(0x310)])?_0x2c8252[_0x2e55ef(0x16e)]&&_0x808e03?_0x14cdec['tk_co']={'$not':new _0x390232(_0x1d7b0e)}:_0xdadf9b['tk_co']={'$regex':_0x3e9576,'$options':'i'}:_0x2a6f33[_0x2e55ef(0x2c4)]={'$not':new RegExp(_0x39c442)}:_0x2a6f33[_0x2e55ef(0x2c4)]={'$regex':_0x39c442,'$options':'i'}:_0x183089[_0x2e55ef(0x225)]=_0x4b61d1['HvdlW']('{',_0x44b577[_0x2e55ef(0x225)])+'}');let _0x57a67b=getRegString(_0x59cfed[_0x2e55ef(0x23d)]);_0x57a67b&&(_0x4b61d1[_0x2e55ef(0x240)](_0x4b61d1[_0x2e55ef(0x1fc)],'bvmuz')?_0x59cfed['giam_tru_co']&&_0x57a67b?_0x4b61d1[_0x2e55ef(0x2ec)]===_0x2e55ef(0x218)?_0x1a1696[_0x2e55ef(0x2b0)]({'id_ct':{'$in':_0x8bcc19}})[_0x2e55ef(0x271)]()['exec']((_0x239c00,_0x2bf082)=>{const _0x4d0025=_0x2e55ef;if(_0x239c00)return _0x260651['LCedD'](_0x5b8288,_0x239c00);_0x260651[_0x4d0025(0x277)](_0x328502,null,_0x2bf082);}):_0x2a6f33['tk_co']={'$not':new RegExp(_0x57a67b)}:_0x2a6f33[_0x2e55ef(0x23d)]={'$regex':_0x57a67b,'$options':'i'}:_0x260651[_0x2e55ef(0x30f)](_0x25ec1c,null,_0x4b5d60));if(_0x59cfed[_0x2e55ef(0x225)])try{_0x59cfed[_0x2e55ef(0x225)][_0x2e55ef(0x303)]('{')<0x0&&(_0x59cfed[_0x2e55ef(0x225)]='{'+_0x59cfed['dieu_kien_khac']+'}');let _0x50eb7b=_0x59cfed[_0x2e55ef(0x225)];_0x4b61d1[_0x2e55ef(0x248)](_0x50eb7b[_0x2e55ef(0x303)](_0x4b61d1['nbBsR']),0x0)&&(_0x50eb7b=_0x2e55ef(0x190)+_0x50eb7b);let _0x37d4d3=utils['evalute'](_0x50eb7b,{'moment':moment,'condition':_0x2a6f33,'row':_0x59cfed});_0x2a6f33={..._0x2a6f33,..._0x37d4d3};}catch(_0xf21f85){'ZzYub'!==_0x4b61d1[_0x2e55ef(0x1cd)]?(_0x34f58c=_0xc2be91[_0x2e55ef(0x18d)]((_0x2d33c7,_0xb9bb5e)=>{const _0x5b4945=_0x2e55ef;if(_0x260651[_0x5b4945(0x189)](_0x2d33c7['stt'],_0xb9bb5e[_0x5b4945(0x30c)]))return 0x1;if(_0x260651['sqDaM'](_0x2d33c7[_0x5b4945(0x30c)],_0xb9bb5e[_0x5b4945(0x30c)]))return-0x1;return _0x2d33c7[_0x5b4945(0x29e)]-_0xb9bb5e['stt_child'];}),_0x480de4(null,_0x2fae95)):_0x519178(_0xf21f85[_0x2e55ef(0x194)]());}let _0x5d5207;_0x59cfed[_0x2e55ef(0x30e)]?(_0x2a6f33['ma_kho']=_0x59cfed[_0x2e55ef(0x30e)],_0x5d5207=global[_0x2e55ef(0x2d5)](_0x4b61d1[_0x2e55ef(0x14e)])):_0x5d5207=global['getModel'](_0x4b61d1[_0x2e55ef(0x19a)]),_0x5d5207['find'](_0x2a6f33,function(_0x4c23d6,_0x579382){const _0x2657e4=_0x2e55ef,_0x2891fc={'HtIdC':function(_0x4dfaff,_0x539a2a){const _0x25d381=_0x1d5b;return _0x4b61d1[_0x25d381(0x224)](_0x4dfaff,_0x539a2a);},'NmTgQ':function(_0x20732b,_0x5127c0){const _0x534c6d=_0x1d5b;return _0x4b61d1[_0x534c6d(0x1ab)](_0x20732b,_0x5127c0);},'QxDMA':_0x4b61d1[_0x2657e4(0x1a3)],'iTdQD':function(_0x537023,_0x4d7e9a,_0x13d868){return _0x4b61d1['oGONp'](_0x537023,_0x4d7e9a,_0x13d868);},'bHZaU':function(_0x1bb1ce,_0x3ce7b8){const _0x88797a=_0x2657e4;return _0x4b61d1[_0x88797a(0x25f)](_0x1bb1ce,_0x3ce7b8);},'yjjqp':function(_0x2c3386,_0x823509){const _0x1a6d8a=_0x2657e4;return _0x4b61d1[_0x1a6d8a(0x2b5)](_0x2c3386,_0x823509);},'FsjpF':function(_0x461c61,_0x4ada0f){const _0x43cf04=_0x2657e4;return _0x4b61d1[_0x43cf04(0x1ab)](_0x461c61,_0x4ada0f);},'uqxzR':_0x4b61d1[_0x2657e4(0x295)],'ionYm':_0x4b61d1[_0x2657e4(0x2a1)],'DxAll':_0x2657e4(0x212),'WKZky':function(_0x117527,_0x2352f7,_0x4ba869){const _0x74bc6b=_0x2657e4;return _0x4b61d1[_0x74bc6b(0x274)](_0x117527,_0x2352f7,_0x4ba869);},'DOZvW':'id_ct','mZpLj':_0x2657e4(0x1de),'lapsp':_0x4b61d1[_0x2657e4(0x164)],'LTBew':_0x4b61d1[_0x2657e4(0x244)],'ZGWEt':_0x4b61d1[_0x2657e4(0x28c)],'vWDJe':'dien_giai','RKdfk':_0x4b61d1[_0x2657e4(0x278)],'frOsQ':function(_0x46bae0,_0x551905){const _0xe8083a=_0x2657e4;return _0x4b61d1[_0xe8083a(0x19b)](_0x46bae0,_0x551905);},'rgAxR':_0x4b61d1[_0x2657e4(0x29f)],'BbpGX':function(_0xe08606,_0x53913d){return _0x4b61d1['HXOsR'](_0xe08606,_0x53913d);},'BVYjS':function(_0x3848b4,_0x1d0371){const _0x17dcdf=_0x2657e4;return _0x4b61d1[_0x17dcdf(0x280)](_0x3848b4,_0x1d0371);},'ynKmH':function(_0x801c40,_0x535856){return _0x801c40+_0x535856;},'cfcrc':function(_0x4191a5,_0x2bfe82){const _0x51b564=_0x2657e4;return _0x4b61d1[_0x51b564(0x280)](_0x4191a5,_0x2bfe82);},'Mokch':function(_0xbab3,_0x379fb7){const _0x4d86f0=_0x2657e4;return _0x4b61d1[_0x4d86f0(0x181)](_0xbab3,_0x379fb7);},'VlVgK':_0x4b61d1[_0x2657e4(0x1d0)],'jopbg':_0x4b61d1[_0x2657e4(0x2ea)],'irYEd':_0x4b61d1[_0x2657e4(0x15d)],'zEmRW':_0x4b61d1['XFdOL'],'pzFSz':_0x4b61d1[_0x2657e4(0x257)],'xlLLv':function(_0x5467fa,_0x15c1f7){return _0x4b61d1['zHQUe'](_0x5467fa,_0x15c1f7);},'XwHZl':function(_0x40b1a8,_0x263a96){return _0x4b61d1['pJDgJ'](_0x40b1a8,_0x263a96);},'lUYnF':function(_0x4f0574,_0x24d80a){const _0x248e48=_0x2657e4;return _0x4b61d1[_0x248e48(0x19b)](_0x4f0574,_0x24d80a);}};if(_0x4b61d1['hPuKq'](_0x4b61d1['Twovc'],_0x4b61d1[_0x2657e4(0x156)]))_0x2db84e[_0x2657e4(0x2c4)]={'$regex':_0x2435cc,'$options':'i'};else{if(_0x4c23d6)return _0x4b61d1[_0x2657e4(0x224)](_0x519178,_0x4c23d6);_0x59cfed[_0x2657e4(0x1c8)]=_0x579382['csum'](_0x4b61d1[_0x2657e4(0x265)]),_0x59cfed[_0x2657e4(0x1af)]=_0x579382[_0x2657e4(0x20a)]('tien_nt');let _0x331a8d=_0x579382['map'](_0x5de66c=>_0x5de66c['id_ct']);async[_0x2657e4(0x238)]({'vatra':_0x16c0bb=>{const _0xe4f42f=_0x2657e4,_0x39733f={'giERK':function(_0xb93aae,_0x10ff55){const _0x316d5b=_0x1d5b;return _0x260651[_0x316d5b(0x286)](_0xb93aae,_0x10ff55);},'uCBtJ':function(_0x4ca54b,_0x54955c,_0x2abb0d){return _0x4ca54b(_0x54955c,_0x2abb0d);}};if(_0x260651[_0xe4f42f(0x2a9)](_0x260651[_0xe4f42f(0x20e)],_0xe4f42f(0x29b))){if(_0x5ae5a7)return _0x39733f[_0xe4f42f(0x2fe)](_0x14b353,_0x3a4f94);_0x39733f['uCBtJ'](_0x1c2030,null,_0x2de31);}else vatra[_0xe4f42f(0x2b0)]({'id_ct':{'$in':_0x331a8d}})[_0xe4f42f(0x271)]()[_0xe4f42f(0x2ee)]((_0x33b487,_0x19220d)=>{const _0x16a08e=_0xe4f42f,_0x3eff97={'rhorj':function(_0x195726,_0x1a0b3e){const _0x2c8dd9=_0x1d5b;return _0x2891fc[_0x2c8dd9(0x22e)](_0x195726,_0x1a0b3e);}};if(_0x2891fc['NmTgQ'](_0x16a08e(0x300),_0x2891fc[_0x16a08e(0x18c)])){if(_0x33b487)return _0x16c0bb(_0x33b487);_0x2891fc[_0x16a08e(0x158)](_0x16c0bb,null,_0x19220d);}else _0x2a7aea['findOne']({'_id':_0x251715[_0x16a08e(0x206)]})[_0x16a08e(0x271)]()['exec']((_0x821b0c,_0x6a4c48)=>{const _0x2a9244=_0x16a08e;if(_0x821b0c||!_0x6a4c48)return _0x3be388(_0x821b0c);_0x3eff97[_0x2a9244(0x253)](_0x18fa70,_0x6a4c48);});});},'vatvao':_0x648299=>{const _0x59a801=_0x2657e4,_0x588d66={'Ducqu':function(_0x3d7c7a,_0x74c9e6){const _0x42845a=_0x1d5b;return _0x2891fc[_0x42845a(0x1cf)](_0x3d7c7a,_0x74c9e6);},'SHkPP':function(_0x3b01d7,_0x2ab759){const _0x5ad646=_0x1d5b;return _0x2891fc[_0x5ad646(0x1da)](_0x3b01d7,_0x2ab759);},'XCnIU':function(_0x3cbf74,_0x5530a9,_0x200995){return _0x3cbf74(_0x5530a9,_0x200995);}};if(_0x2891fc[_0x59a801(0x302)](_0x2891fc[_0x59a801(0x21a)],_0x2891fc[_0x59a801(0x2f7)])){const _0x380125='3|2|1|4|0'[_0x59a801(0x251)]('|');let _0x391c91=0x0;while(!![]){switch(_0x380125[_0x391c91++]){case'0':return 0x0;case'1':if(_0x588d66[_0x59a801(0x229)](_0x26dfcd['so_ct'],_0x215d10[_0x59a801(0x252)]))return 0x1;continue;case'2':if(new _0x5bd274(_0x327681[_0x59a801(0x223)])['getTime']()<new _0xccbc4b(_0x50b658[_0x59a801(0x223)])[_0x59a801(0x294)]())return-0x1;continue;case'3':if(new _0x13a976(_0x2ad56c['ngay_ct'])[_0x59a801(0x294)]()>new _0x542f49(_0x4c11fe[_0x59a801(0x223)])[_0x59a801(0x294)]())return 0x1;continue;case'4':if(_0x588d66[_0x59a801(0x272)](_0x1c6dc9[_0x59a801(0x252)],_0x7d10a9['so_ct']))return-0x1;continue;}break;}}else vatvao[_0x59a801(0x2b0)]({'id_ct':{'$in':_0x331a8d}})['lean']()[_0x59a801(0x2ee)]((_0x1c16b7,_0x52a3cd)=>{const _0xc8d6a=_0x59a801;if(_0x1c16b7)return _0x648299(_0x1c16b7);_0x588d66[_0xc8d6a(0x246)](_0x648299,null,_0x52a3cd);});},'sokho':_0x28f1ef=>{const _0x39bfb4=_0x2657e4,_0x5c6def={'dNfkB':function(_0x2f9cd2,_0x63b6c9){const _0x3af6eb=_0x1d5b;return _0x260651[_0x3af6eb(0x26a)](_0x2f9cd2,_0x63b6c9);},'uVpjZ':function(_0x1b12e8,_0x5e7fcd,_0x51d648){return _0x260651['gVQZk'](_0x1b12e8,_0x5e7fcd,_0x51d648);}};sokho[_0x39bfb4(0x2b0)]({'id_ct':{'$in':_0x331a8d}})[_0x39bfb4(0x271)]()[_0x39bfb4(0x2ee)]((_0x47f60f,_0x50dbc5)=>{const _0x115346=_0x39bfb4;if(_0x47f60f)return _0x5c6def[_0x115346(0x1c7)](_0x28f1ef,_0x47f60f);_0x5c6def[_0x115346(0x1c0)](_0x28f1ef,null,_0x50dbc5);});},'socai':_0x14276b=>{const _0x525880=_0x2657e4,_0x4d5e11={'mnDvp':function(_0x1b86ef,_0x5ce286,_0x3f9461){return _0x2891fc['WKZky'](_0x1b86ef,_0x5ce286,_0x3f9461);}};_0x579382[_0x525880(0x22f)]([_0x2891fc[_0x525880(0x1a0)]],[_0x2891fc[_0x525880(0x1f0)],_0x2891fc[_0x525880(0x20c)]],(_0x106cf8,_0x732d78)=>{const _0x3141ea=_0x525880;if(_0x2891fc[_0x3141ea(0x23c)]===_0x2891fc[_0x3141ea(0x23c)])_0x14276b(_0x106cf8,_0x732d78);else{if(_0x206ec2){if(_0x456879['error'])return _0x3e71da['error'](_0x392467[_0x3141ea(0x195)],_0x40c5ab),_0x28dc9b(_0x450ea6[_0x3141ea(0x195)][_0x3141ea(0x24c)]||_0xd4889d[_0x3141ea(0x195)]);_0x4d5e11[_0x3141ea(0x249)](_0x2ed728,null,_0x4d4b50);}else _0x4d5e11[_0x3141ea(0x249)](_0x7caa72,null,_0x19f621);}},{'fieldmaxs':[_0x2891fc[_0x525880(0x2db)],_0x2891fc[_0x525880(0x259)],_0x2891fc[_0x525880(0x21d)],_0x2891fc[_0x525880(0x24b)]]});}},(_0x24c5b0,_0x39ce9a)=>{const _0x4ae85f=_0x2657e4,_0x19f4c8={'DMrRR':function(_0x392c4f,_0x5ecd23){return _0x2891fc['HtIdC'](_0x392c4f,_0x5ecd23);},'YFzCl':_0x2891fc[_0x4ae85f(0x2c2)],'EZRAF':_0x4ae85f(0x204),'HlJKB':_0x2891fc['pzFSz'],'nfwyo':function(_0x4bf2ca,_0x277bbc){const _0x4b41e1=_0x4ae85f;return _0x2891fc[_0x4b41e1(0x1ca)](_0x4bf2ca,_0x277bbc);},'BzYEb':function(_0x4159c4,_0x58838f){return _0x4159c4>_0x58838f;}};_0x59cfed['vatra']=_0x39ce9a[_0x4ae85f(0x174)]['csum'](_0x2891fc[_0x4ae85f(0x173)]),_0x59cfed['vatvao']=_0x39ce9a[_0x4ae85f(0x2b3)][_0x4ae85f(0x20a)](_0x2891fc[_0x4ae85f(0x173)]),_0x59cfed['vatra_nt']=_0x39ce9a[_0x4ae85f(0x174)][_0x4ae85f(0x20a)](_0x2891fc['VlVgK']),_0x59cfed[_0x4ae85f(0x2b7)]=_0x39ce9a[_0x4ae85f(0x2b3)][_0x4ae85f(0x20a)](_0x2891fc['VlVgK']),_0x59cfed[_0x4ae85f(0x1a8)]=_0x2891fc[_0x4ae85f(0x306)](_0x59cfed[_0x4ae85f(0x174)],_0x59cfed[_0x4ae85f(0x2b3)]),_0x59cfed[_0x4ae85f(0x1e0)]=_0x2891fc[_0x4ae85f(0x276)](_0x59cfed[_0x4ae85f(0x2d7)],_0x59cfed['vatvao_nt']),_0x59cfed[_0x4ae85f(0x26d)]=_0x39ce9a[_0x4ae85f(0x214)][_0x4ae85f(0x20a)](_0x2891fc[_0x4ae85f(0x234)]),_0x59cfed['sl_xuat']=_0x39ce9a[_0x4ae85f(0x214)][_0x4ae85f(0x20a)](_0x4ae85f(0x258)),_0x59cfed[_0x4ae85f(0x1f1)]=_0x2891fc['XwHZl'](_0x59cfed[_0x4ae85f(0x26d)],_0x59cfed[_0x4ae85f(0x258)]),_0x59cfed[_0x4ae85f(0x1f8)]=_0x2891fc[_0x4ae85f(0x2f0)](_0x59cfed[_0x4ae85f(0x1a8)],_0x59cfed[_0x4ae85f(0x1c8)]),_0x59cfed[_0x4ae85f(0x1f3)]=_0x2891fc[_0x4ae85f(0x2a8)](_0x59cfed[_0x4ae85f(0x1e0)],_0x59cfed['so_kn_nt']),_0x59cfed[_0x4ae85f(0x214)]=_0x39ce9a[_0x4ae85f(0x214)],_0x59cfed[_0x4ae85f(0x1ef)]&&(_0x59cfed[_0x4ae85f(0x215)]=_0x39ce9a[_0x4ae85f(0x215)],_0x59cfed[_0x4ae85f(0x215)][_0x4ae85f(0x18d)]((_0x4fe490,_0x6d224d)=>{const _0x53e8c2=_0x4ae85f;if(_0x19f4c8['YFzCl']!==_0x19f4c8[_0x53e8c2(0x308)]){const _0x44d9b7=_0x19f4c8[_0x53e8c2(0x2f1)][_0x53e8c2(0x251)]('|');let _0xb97649=0x0;while(!![]){switch(_0x44d9b7[_0xb97649++]){case'0':if(new Date(_0x4fe490[_0x53e8c2(0x223)])[_0x53e8c2(0x294)]()>new Date(_0x6d224d['ngay_ct'])[_0x53e8c2(0x294)]())return 0x1;continue;case'1':if(_0x19f4c8[_0x53e8c2(0x1df)](new Date(_0x4fe490['ngay_ct'])[_0x53e8c2(0x294)](),new Date(_0x6d224d['ngay_ct'])['getTime']()))return-0x1;continue;case'2':return 0x0;case'3':if(_0x4fe490[_0x53e8c2(0x252)]<_0x6d224d[_0x53e8c2(0x252)])return-0x1;continue;case'4':if(_0x19f4c8['BzYEb'](_0x4fe490['so_ct'],_0x6d224d[_0x53e8c2(0x252)]))return 0x1;continue;}break;}}else return _0x55fc73['error'](_0x155cad,_0x26d2ae),_0x19f4c8[_0x53e8c2(0x2ef)](_0x17ddd3,_0x3f890c['message']||_0x10b33d);})[_0x4ae85f(0x1bd)]((_0xff4954,_0x33c2ff)=>{const _0x526d63=_0x4ae85f,_0xdddf94=_0x526d63(0x147)[_0x526d63(0x251)]('|');let _0x29577b=0x0;while(!![]){switch(_0xdddf94[_0x29577b++]){case'0':_0x59cfed[_0x526d63(0x29e)]=_0x2891fc[_0x526d63(0x2f0)](_0x33c2ff,0x1);continue;case'1':_0x585e14[_0x526d63(0x160)](_0xff4954);continue;case'2':_0xff4954[_0x526d63(0x1a8)]=_0x39ce9a[_0x526d63(0x174)][_0x526d63(0x20a)](_0x526d63(0x1a7),{'id_ct':_0xff4954[_0x526d63(0x1d9)]})+_0x39ce9a[_0x526d63(0x2b3)][_0x526d63(0x20a)](_0x2891fc[_0x526d63(0x173)],{'id_ct':_0xff4954[_0x526d63(0x1d9)]});continue;case'3':_0xff4954[_0x526d63(0x30c)]=_0x59cfed['stt'];continue;case'4':_0xff4954[_0x526d63(0x2eb)]=_0x2891fc['BbpGX'](_0xff4954[_0x526d63(0x1f1)],0x0)?Math[_0x526d63(0x25b)](_0x2891fc['BVYjS'](_0xff4954['tien'],_0xff4954[_0x526d63(0x1f1)]),0x0):0x0;continue;case'5':_0xff4954[_0x526d63(0x1f8)]=_0x2891fc[_0x526d63(0x276)](_0xff4954['thue'],_0xff4954[_0x526d63(0x1de)]);continue;case'6':_0xff4954[_0x526d63(0x20f)]=_0x2891fc[_0x526d63(0x1d2)](_0xff4954['so_luong'],0x0)?Math['roundBy'](_0x2891fc[_0x526d63(0x256)](_0xff4954[_0x526d63(0x154)],_0xff4954[_0x526d63(0x1f1)]),0x2):0x0;continue;case'7':_0xff4954[_0x526d63(0x1e0)]=_0x2891fc[_0x526d63(0x220)](_0x39ce9a[_0x526d63(0x174)]['csum'](_0x526d63(0x304),{'id_ct':_0xff4954['id_ct']}),_0x39ce9a[_0x526d63(0x2b3)][_0x526d63(0x20a)](_0x2891fc[_0x526d63(0x2c1)],{'id_ct':_0xff4954[_0x526d63(0x1d9)]}));continue;case'8':_0xff4954[_0x526d63(0x1f1)]=_0x2891fc[_0x526d63(0x2f0)](_0x39ce9a[_0x526d63(0x214)][_0x526d63(0x20a)](_0x2891fc[_0x526d63(0x234)],{'id_ct':_0xff4954['id_ct']}),_0x39ce9a[_0x526d63(0x214)][_0x526d63(0x20a)](_0x2891fc['irYEd'],{'id_ct':_0xff4954[_0x526d63(0x1d9)]}));continue;case'9':_0xff4954[_0x526d63(0x1f3)]=_0xff4954[_0x526d63(0x1e0)]+_0xff4954[_0x526d63(0x154)];continue;}break;}})),_0x519178(_0x24c5b0,_0x59cfed);});}});});}},function(_0x166069,_0x5a06d8){_0x51a205['kToOY'](_0xe0e1b2,_0x166069,_0x5a06d8);});else{if(_0x51a205['beORU'](_0x2b12db(0x183),_0x51a205[_0x2b12db(0x23b)])){if(_0x51a205['beORU'](_0x59cfed[_0x2b12db(0x14f)],'99')&&_0x59cfed[_0x2b12db(0x213)]){_0x59cfed[_0x2b12db(0x260)]='';if(_0x59cfed[_0x2b12db(0x213)][_0x2b12db(0x303)](_0x51a205[_0x2b12db(0x27d)])>=0x0)return _0x51a205[_0x2b12db(0x2e1)](_0xe0e1b2,_0x51a205[_0x2b12db(0x197)]);let _0x7aaad9=_0x2b12db(0x208)+_0x59cfed[_0x2b12db(0x213)]+_0x2b12db(0x2ba);evalute(_0x7aaad9,{'row':_0x59cfed,'moment':moment,'condition':_0x192373,'user':_0x3a5a7c['user'],'_':_,'utils':utils})()[_0x2b12db(0x1d6)](_0x4f10fd=>{const _0x59f37c=_0x2b12db,_0x30ca9c={'LcevJ':function(_0x1ef227,_0x118a66){const _0x5363fb=_0x1d5b;return _0x319ba6[_0x5363fb(0x172)](_0x1ef227,_0x118a66);},'Sjint':function(_0x4d37d4,_0x1d515b){return _0x4d37d4<_0x1d515b;},'jXZLm':function(_0x1ca739,_0x14885a){const _0x17c7f5=_0x1d5b;return _0x319ba6[_0x17c7f5(0x241)](_0x1ca739,_0x14885a);},'AAArt':_0x59f37c(0x304),'ifGBJ':function(_0x41f8c0,_0x200c11){const _0x342afa=_0x59f37c;return _0x319ba6[_0x342afa(0x2d9)](_0x41f8c0,_0x200c11);},'gmGpw':_0x59f37c(0x26d),'fnXmE':_0x319ba6[_0x59f37c(0x26f)],'YIDZO':function(_0x433bd3,_0x6ab5f3){const _0x3be3b2=_0x59f37c;return _0x319ba6[_0x3be3b2(0x1c9)](_0x433bd3,_0x6ab5f3);},'GnTxz':function(_0xec78f5,_0x544dd5){const _0x558576=_0x59f37c;return _0x319ba6[_0x558576(0x178)](_0xec78f5,_0x544dd5);},'menIt':function(_0x10bf8d,_0x11e773){const _0x24fee6=_0x59f37c;return _0x319ba6[_0x24fee6(0x178)](_0x10bf8d,_0x11e773);},'vRCka':function(_0x1f4dc8,_0x41e541){const _0x419669=_0x59f37c;return _0x319ba6[_0x419669(0x1c4)](_0x1f4dc8,_0x41e541);},'fQKck':function(_0x158fff,_0x109296){const _0x5e8608=_0x59f37c;return _0x319ba6[_0x5e8608(0x241)](_0x158fff,_0x109296);},'PaTAu':function(_0x351f82,_0x54e20b){return _0x351f82+_0x54e20b;},'QYdcC':_0x319ba6[_0x59f37c(0x2aa)],'NUDbK':function(_0x2f5ede,_0x4e602f,_0x116a09){return _0x319ba6['gLYQN'](_0x2f5ede,_0x4e602f,_0x116a09);},'YUrkR':function(_0x4f8665,_0xaf3d8a){const _0x2580c2=_0x59f37c;return _0x319ba6[_0x2580c2(0x241)](_0x4f8665,_0xaf3d8a);}};if(_0x4f10fd){if(_0x4f10fd['error']){if(_0x319ba6[_0x59f37c(0x2e9)]!==_0x319ba6[_0x59f37c(0x2e9)]){const _0x5f3668=_0x59f37c(0x2cc)[_0x59f37c(0x251)]('|');let _0x16fec7=0x0;while(!![]){switch(_0x5f3668[_0x16fec7++]){case'0':_0x23ac33[_0x59f37c(0x1f8)]=_0x30ca9c[_0x59f37c(0x211)](_0x28bcb2['thue'],_0x591c51[_0x59f37c(0x1c8)]);continue;case'1':_0x4c368a[_0x59f37c(0x2b7)]=_0x1f22b4[_0x59f37c(0x2b3)][_0x59f37c(0x20a)](_0x59f37c(0x304));continue;case'2':_0x519bb1[_0x59f37c(0x258)]=_0x9e336b[_0x59f37c(0x214)][_0x59f37c(0x20a)](_0x30ca9c['fnXmE']);continue;case'3':_0x213615[_0x59f37c(0x1f3)]=_0x30ca9c[_0x59f37c(0x1e8)](_0x4af66f[_0x59f37c(0x1e0)],_0x1b82c1['so_kn_nt']);continue;case'4':_0x2f729e[_0x59f37c(0x1e0)]=_0x30ca9c['PaTAu'](_0x483452['vatra_nt'],_0xf6158a[_0x59f37c(0x2b7)]);continue;case'5':_0xe654f2['vatvao']=_0x22aa8c['vatvao'][_0x59f37c(0x20a)](_0x30ca9c['QYdcC']);continue;case'6':_0x528fc1[_0x59f37c(0x174)]=_0x1660dc[_0x59f37c(0x174)][_0x59f37c(0x20a)](_0x30ca9c[_0x59f37c(0x1ea)]);continue;case'7':_0x382516[_0x59f37c(0x26d)]=_0x4d17b7[_0x59f37c(0x214)]['csum'](_0x30ca9c['gmGpw']);continue;case'8':_0x213836[_0x59f37c(0x2d7)]=_0x2ed623[_0x59f37c(0x174)][_0x59f37c(0x20a)](_0x30ca9c[_0x59f37c(0x266)]);continue;case'9':_0x4af5b0[_0x59f37c(0x214)]=_0x18389c[_0x59f37c(0x214)];continue;case'10':_0x21e0b0[_0x59f37c(0x1a8)]=_0x3a4fd9[_0x59f37c(0x174)]+_0x52b2d0[_0x59f37c(0x2b3)];continue;case'11':_0x30ca9c[_0x59f37c(0x2fb)](_0x4c514f,_0x473344,_0x21ec5e);continue;case'12':_0x5a30b3[_0x59f37c(0x1f1)]=_0x30ca9c['YUrkR'](_0x4dcb90[_0x59f37c(0x26d)],_0x48ff31[_0x59f37c(0x258)]);continue;case'13':_0x5382b2[_0x59f37c(0x1ef)]&&(_0x67db19[_0x59f37c(0x215)]=_0x19df8b[_0x59f37c(0x215)],_0x3ca7f5['socai'][_0x59f37c(0x18d)]((_0x12d31e,_0x8e85d0)=>{const _0x40434b=_0x59f37c;if(_0x30ca9c['LcevJ'](new _0x218337(_0x12d31e['ngay_ct'])[_0x40434b(0x294)](),new _0x4954cd(_0x8e85d0[_0x40434b(0x223)])[_0x40434b(0x294)]()))return 0x1;if(new _0x2368d1(_0x12d31e['ngay_ct'])[_0x40434b(0x294)]()<new _0x34e544(_0x8e85d0['ngay_ct'])['getTime']())return-0x1;if(_0x30ca9c[_0x40434b(0x1ff)](_0x12d31e['so_ct'],_0x8e85d0[_0x40434b(0x252)]))return 0x1;if(_0x30ca9c[_0x40434b(0x191)](_0x12d31e[_0x40434b(0x252)],_0x8e85d0['so_ct']))return-0x1;return 0x0;})[_0x59f37c(0x1bd)]((_0x387798,_0x166719)=>{const _0x5cee49=_0x59f37c;_0x387798['thue']=_0x30ca9c[_0x5cee49(0x17f)](_0x2179ab[_0x5cee49(0x174)][_0x5cee49(0x20a)](_0x5cee49(0x1a7),{'id_ct':_0x387798[_0x5cee49(0x1d9)]}),_0x2c2e90[_0x5cee49(0x2b3)]['csum'](_0x5cee49(0x1a7),{'id_ct':_0x387798[_0x5cee49(0x1d9)]})),_0x387798[_0x5cee49(0x1e0)]=_0x6a83ab[_0x5cee49(0x174)][_0x5cee49(0x20a)](_0x30ca9c[_0x5cee49(0x266)],{'id_ct':_0x387798[_0x5cee49(0x1d9)]})+_0xfe5c1e[_0x5cee49(0x2b3)][_0x5cee49(0x20a)](_0x30ca9c['AAArt'],{'id_ct':_0x387798[_0x5cee49(0x1d9)]}),_0x387798[_0x5cee49(0x1f1)]=_0x30ca9c['ifGBJ'](_0x18b33d[_0x5cee49(0x214)]['csum'](_0x30ca9c['gmGpw'],{'id_ct':_0x387798[_0x5cee49(0x1d9)]}),_0x1ed63d[_0x5cee49(0x214)][_0x5cee49(0x20a)](_0x30ca9c[_0x5cee49(0x21e)],{'id_ct':_0x387798['id_ct']})),_0x387798[_0x5cee49(0x2eb)]=_0x30ca9c[_0x5cee49(0x270)](_0x387798[_0x5cee49(0x1f1)],0x0)?_0x40472c[_0x5cee49(0x25b)](_0x30ca9c['GnTxz'](_0x387798['tien'],_0x387798[_0x5cee49(0x1f1)]),0x0):0x0,_0x387798['gia_nt']=_0x387798['so_luong']!==0x0?_0x13218c[_0x5cee49(0x25b)](_0x30ca9c[_0x5cee49(0x243)](_0x387798['tien_nt'],_0x387798['so_luong']),0x2):0x0,_0x387798['t_tt']=_0x30ca9c['vRCka'](_0x387798['thue'],_0x387798[_0x5cee49(0x1de)]),_0x387798[_0x5cee49(0x1f3)]=_0x30ca9c[_0x5cee49(0x171)](_0x387798[_0x5cee49(0x1e0)],_0x387798[_0x5cee49(0x154)]),_0x387798[_0x5cee49(0x30c)]=_0x5c8473[_0x5cee49(0x30c)],_0x2b533b['stt_child']=_0x30ca9c[_0x5cee49(0x1e8)](_0x166719,0x1),_0xb44ac7['push'](_0x387798);}));continue;}break;}}else return console[_0x59f37c(0x195)](_0x4f10fd[_0x59f37c(0x195)],_0x7aaad9),_0xe0e1b2(_0x4f10fd['error']['message']||_0x4f10fd[_0x59f37c(0x195)]);}_0xe0e1b2(null,_0x59cfed);}else{if(_0x319ba6[_0x59f37c(0x1b6)](_0x319ba6[_0x59f37c(0x26c)],_0x319ba6[_0x59f37c(0x2f6)]))_0x319ba6[_0x59f37c(0x149)](_0xe0e1b2,null,_0x59cfed);else{if(_0x74c1a7)return _0x23307b(_0x577810);_0x4a59c8(null,_0x473057);}}})[_0x2b12db(0x2ce)](_0x62f39e=>{const _0x33f31b=_0x2b12db;if(_0x51a205[_0x33f31b(0x1b8)](_0x51a205[_0x33f31b(0x2c3)],_0x51a205[_0x33f31b(0x2f2)]))return console['error'](_0x62f39e,_0x7aaad9),_0xe0e1b2(_0x62f39e[_0x33f31b(0x24c)]||_0x62f39e);else _0x30b31f[_0x33f31b(0x23d)]={'$regex':_0x3a5d0a,'$options':'i'};});}else _0x51a205[_0x2b12db(0x161)](_0x51a205[_0x2b12db(0x15f)],_0x51a205['qXctc'])?_0xe0e1b2(null,_0x59cfed):_0x4e2d6f[_0x2b12db(0x2c6)]=_0x5895e2[_0x2b12db(0x2c6)];}else _0x37636f[_0x2b12db(0x2c4)]={'$not':new _0x3b3e9e(_0x36c8b9)};}}});},function(_0x5a5504){const _0x433ee4=_0x23d583,_0x11a96c={'Loels':function(_0x51e53a,_0x34bb55){return _0x1051f0['bIlVj'](_0x51e53a,_0x34bb55);},'yVHig':_0x1051f0[_0x433ee4(0x14c)]};if(_0x1051f0[_0x433ee4(0x2a7)](_0x1051f0[_0x433ee4(0x179)],_0x1051f0[_0x433ee4(0x179)]))_0x1472bf=_0x433ee4(0x190)+_0x4b420f;else{if(_0x5a5504)return _0x1051f0['LVFaf'](_0x466dd9,_0x5a5504);let _0x3a30e2=function(_0x4d3d90,_0x4635d4){const _0x131fb9=_0x433ee4;_0x4635d4[_0x131fb9(0x1db)]&&_0x2bf02f['aEKsV'](_0x4635d4[_0x131fb9(0x1db)][_0x131fb9(0x231)],0x0)&&(_0x588ccb[_0x131fb9(0x251)](',')[_0x131fb9(0x1bd)](_0x478a10=>{const _0x4ceb97=_0x131fb9;_0x4635d4['chi_tinh_cac_cot'][_0x4ceb97(0x303)](_0x478a10)<0x0&&(_0x11a96c['Loels'](_0x11a96c[_0x4ceb97(0x16b)],_0x4ceb97(0x1a4))?_0x2ae477[_0x4ceb97(0x28f)]=_0x271ea1[_0x4ceb97(0x28f)]:_0x4635d4[_0x478a10]=0x0);}),_0x2bf02f[_0x131fb9(0x1f7)](_0x4635d4[_0x131fb9(0x1db)][_0x131fb9(0x303)](_0x2bf02f[_0x131fb9(0x25a)]),0x0)&&(_0x4635d4[_0x131fb9(0x1f8)]=_0x2bf02f['tiYOY'](_0x4635d4[_0x131fb9(0x1a8)],_0x4635d4[_0x131fb9(0x1c8)])));},_0x6c34ba={'so_kn':_0x3a30e2,'so_kn_nt':_0x3a30e2,'vatra':_0x3a30e2,'vatvao':_0x3a30e2,'vatra_nt':_0x3a30e2,'vatvao_nt':_0x3a30e2,'thue':_0x3a30e2,'thue_nt':_0x3a30e2,'sl_nhap':_0x3a30e2,'sl_xuat':_0x3a30e2,'so_luong':_0x3a30e2,'t_tt':_0x3a30e2,'t_tt_nt':_0x3a30e2};_0x1051f0[_0x433ee4(0x17a)](calcGrid,_0x585e14,_0x6c34ba,function(_0x34537c){const _0x18ec85=_0x433ee4,_0x4c351a={'WPpDW':function(_0x3fcf8b,_0x226554,_0x324841){const _0x385306=_0x1d5b;return _0x2bf02f[_0x385306(0x1ad)](_0x3fcf8b,_0x226554,_0x324841);},'kYFhj':function(_0x3fd31a,_0x564a8a){return _0x3fd31a!==_0x564a8a;},'eSQGK':_0x18ec85(0x1f6),'nKENF':function(_0x1ef768,_0xc943d){return _0x2bf02f['aEKsV'](_0x1ef768,_0xc943d);},'bphXJ':function(_0x3a2f7f,_0x3a56f6){const _0x19a961=_0x18ec85;return _0x2bf02f[_0x19a961(0x153)](_0x3a2f7f,_0x3a56f6);},'Lvqxa':function(_0x17bdd5,_0x2fd002){return _0x2bf02f['KlAfP'](_0x17bdd5,_0x2fd002);}};_0x34537c=_0x34537c[_0x18ec85(0x18d)]((_0x45c8b9,_0x3f9a58)=>{const _0x35105d=_0x18ec85;if(_0x4c351a['kYFhj'](_0x35105d(0x1f6),_0x4c351a[_0x35105d(0x168)]))_0x4c351a[_0x35105d(0x255)](_0x6111a,_0x3777be,_0x4b1cda);else{if(_0x4c351a['nKENF'](_0x45c8b9['stt'],_0x3f9a58[_0x35105d(0x30c)]))return 0x1;if(_0x4c351a[_0x35105d(0x188)](_0x45c8b9[_0x35105d(0x30c)],_0x3f9a58[_0x35105d(0x30c)]))return-0x1;return _0x4c351a[_0x35105d(0x1b5)](_0x45c8b9[_0x35105d(0x29e)],_0x3f9a58[_0x35105d(0x29e)]);}}),_0x466dd9(null,_0x34537c);});}});})['catch'](_0x5aed69=>{const _0x4b25f0=_0x2b6349,_0x4f5297={'PoBAB':_0x4b25f0(0x2d1)};if(_0x1051f0['hbADd']===_0x4b25f0(0x2b6))return _0x406e2a(_0x4f5297[_0x4b25f0(0x275)]);else _0x1051f0[_0x4b25f0(0x2b8)](_0x466dd9,_0x5aed69||_0x1051f0['OEPcT']);});});};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
const async=require("async"),_=require("lodash"),so1=global.getModel("so1"),hd3=global.getModel("hd3"),dmkh=global.getModel("customer"),rptobject=global.getModel("rptobject"),controller=require("../../controllers/controllerRPT");
|
|
2
|
-
module.exports=function($router$$){new controller($router$$,"ptdonhang",function($req$$,$callback$$){const $condition$$=$req$$.query;if(!$condition$$.tu_ngay||!$condition$$.den_ngay||!$condition$$.bao_cao_theo)return $callback$$("B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1:tu_ngay,den_ngay,bao_cao_theo");const $query$$={id_app:$condition$$.id_app},$bao_cao_theo$$=$condition$$.bao_cao_theo;$query$$.ngay_ct={$gte:$condition$$.tu_ngay,$lte:$condition$$.den_ngay};$condition$$.ma_dvcs&&
|
|
3
|
-
($query$$.ma_dvcs={$regex:$condition$$.ma_dvcs,$options:"i"});$condition$$.ma_kho&&($query$$.ma_kho={$regex:$condition$$.ma_kho,$options:"i"});async.series({rptobject:function($callback$$){rptobject.findOne({code_rpt:"ptdonhang",ma_obj:$bao_cao_theo$$}).lean().exec(function($e$$,$rptobj$$){if($e$$)return $callback$$($e$$);if(!$rptobj$$)return $callback$$("Kh\u00f4ng th\u1ec3 b\u00e1o c\u00e1o theo \u0111\u1ed1i t\u01b0\u1ee3ng n\u00e0y");$callback$$(null,$rptobj$$)})},dskhach:function($callback$$){$condition$$.nh_kh?
|
|
4
|
-
dmkh.find({id_app:$query$$.id_app,status:!0,nh_kh:$condition$$.nh_kh}).lean().exec(function($e$$,$dskh$$){if($e$$)return $callback$$($e$$);$callback$$(null,$dskh$$.map($k$$=>$k$$.ma_kh))}):$callback$$(null,null)}},function($e$$,$rs$$){if($e$$)return $callback$$($e$$);const $rptobj$$=$rs$$.rptobject;$rs$$.dskhach&&($query$$.ma_kh={$in:$rs$$.dskhach});async.series({tralai:function($callback$$){const $q$$={id_app:$query$$.id_app,ngay_ct:$query$$.ngay_ct};$condition$$.ma_dvcs&&($q$$.ma_dvcs={$regex:$condition$$.ma_dvcs,
|
|
5
|
-
$options:"i"});$condition$$.ma_kho&&($q$$.ma_kho={$regex:$condition$$.ma_kho,$options:"i"});$rs$$.dskhach&&($q$$.ma_kh={$in:$rs$$.dskhach});hd3.find($q$$).lean().exec(function($e$$,$rs$$){if($e$$)return $callback$$($e$$);$callback$$(null,$rs$$)})},donhang:function($callback$$){so1.find($query$$).lean().exec(function($e$$,$rs$$){if($e$$)return $callback$$($e$$);$callback$$(null,$rs$$)})}},function($e$$,$rs$$){if($e$$)return console.log($e$$),$callback$$($e$$);$e$$=$rs$$.tralai;$rs$$=$rs$$.donhang;
|
|
6
|
-
$rs$$.forEach(function($r$$){$r$$.dat_hang=1;Number($r$$.trang_thai)>=3&&($r$$.da_phat=1);Number($r$$.trang_thai)==4&&($r$$.thanh_cong=1);Number($r$$.trang_thai)==5&&($r$$.huy=1)});$e$$.forEach(function($tl$$){$tl$$.tra_lai=1;$rs$$.push($tl$$)});$rs$$.groupBy($bao_cao_theo$$,[{name:"dat_hang",value:"dat_hang"},{name:"da_phat",value:"da_phat"},{name:"thanh_cong",value:"thanh_cong"},{name:"huy",value:"huy"},{name:"tra_lai",value:"tra_lai"}],function($error$$,$rs$$){if($error$$)return console.log($error$$),
|
|
7
|
-
$callback$$($error$$);const $report$$=_.sortBy($rs$$,function($r$$){return $r$$[$bao_cao_theo$$]});let $i$$=1;$report$$.forEach(function($r$$){$r$$.stt=$i$$;$r$$.bold=!1;$i$$++});$error$$=global.getModel(""+$rptobj$$.model_obj);$report$$.joinModel($condition$$.id_app,$error$$,[{akey:$bao_cao_theo$$,bkey:$rptobj$$.value_field,fields:[{name:"chi_tieu",value:$rptobj$$.header_field}]}],function(){$report$$.push({chi_tieu:"T\u1ed5ng c\u1ed9ng",dat_hang:$report$$.csum("dat_hang"),da_phat:$report$$.csum("da_phat"),
|
|
8
|
-
thanh_cong:$report$$.csum("thanh_cong"),huy:$report$$.csum("huy"),bold:!0});$callback$$(null,$report$$)})})})})})};
|
|
1
|
+
const _0x136b14=_0x4e32;(function(_0x24805d,_0x1d6094){const _0x523caa=_0x4e32,_0x325220=_0x24805d();while(!![]){try{const _0x5afcf2=parseInt(_0x523caa(0x18f))/0x1+-parseInt(_0x523caa(0x1f4))/0x2+-parseInt(_0x523caa(0x1b1))/0x3+parseInt(_0x523caa(0x1d9))/0x4+-parseInt(_0x523caa(0x1f9))/0x5+parseInt(_0x523caa(0x1e6))/0x6+parseInt(_0x523caa(0x1bb))/0x7*(parseInt(_0x523caa(0x206))/0x8);if(_0x5afcf2===_0x1d6094)break;else _0x325220['push'](_0x325220['shift']());}catch(_0x456b36){_0x325220['push'](_0x325220['shift']());}}}(_0x57a7,0x7248b));const _0x9f6d06=(function(){const _0x10e73d=_0x4e32,_0x4e66dc={'sRSvH':function(_0x40bfd9,_0x592903){return _0x40bfd9===_0x592903;},'KLTte':'GYroc','HvFlx':_0x10e73d(0x17c)};let _0x500aad=!![];return function(_0x3d3e4d,_0x440510){const _0x27326e=_0x500aad?function(){const _0x43f311=_0x4e32;if(_0x4e66dc[_0x43f311(0x1d1)](_0x4e66dc[_0x43f311(0x187)],_0x4e66dc['HvFlx'])){if(_0x876a6e){const _0x22f98a=_0x451647['apply'](_0xed5b64,arguments);return _0x1931f0=null,_0x22f98a;}}else{if(_0x440510){const _0x23662d=_0x440510[_0x43f311(0x205)](_0x3d3e4d,arguments);return _0x440510=null,_0x23662d;}}}:function(){};return _0x500aad=![],_0x27326e;};}()),_0x12a029=_0x9f6d06(this,function(){const _0x210256=_0x4e32,_0x142cce={'vYGzU':_0x210256(0x1a6)};return _0x12a029[_0x210256(0x1d0)]()[_0x210256(0x1ca)](_0x142cce[_0x210256(0x1e8)])['toString']()[_0x210256(0x18a)](_0x12a029)['search'](_0x210256(0x1a6));});_0x12a029();const async=require(_0x136b14(0x1c3)),_=require(_0x136b14(0x1f1)),so1=global[_0x136b14(0x1ff)]('so1'),hd3=global[_0x136b14(0x1ff)]('hd3'),dmkh=global[_0x136b14(0x1ff)]('customer'),rptobject=global[_0x136b14(0x1ff)](_0x136b14(0x1a5)),controller=require('../../controllers/controllerRPT');function _0x57a7(){const _0x4d74d4=['DhjHx2XHAq','rhzyBNG','y29UC3rYDwn0B3i','v21cBvu','y3r5tLa','AvnID2y','A0njC1K','ntuZndC3tLHqtMnI','ALDuEhK','zMzVD0u','C29YDej5','AMXsCK4','vKrAB3K','sMHTD0u','y05jtfC','vog7Lw5NigpHU5LUzW','zg9UAgfUzW','rfPJEKu','C3r0','ALPou1C','tNfdy1y','AfLuv3a','ChvZAa','qNH2yve','Efv2wvy','zMLUza','ChrKB25Oyw5N','ExjmEvC','AgvHzgvYx2zPzwXK','CNb0B2jQzwn0','kcGOlISPkYKRksSK','qunLsfq','zxHLyW','tLnfDLO','y2HMzwy','DhjHBMDFDgHHAq','BLLKrfy','D1L0uMW','vMXzDhe','s0jht1m','q2X1v2G','mJu3nJu2nvPnDNrVwq','AM9PBK1VzgvS','A3zMA2q','rwzRDMe','yMfVx2nHB190AgvV','DgHHBMHFy29UzW','AevKu0C','z0n3Ew8','zhnRAgfJAa','yM9Sza','mtG1ndi0nePtD0PTCW','AMnwr00','vvPJq04','u09MrhO','AxfnzMW','vgfowfe','qxfVvgm','Ahv5','yxn5BMm','B2v1zue','BMvwy3a','v1PpsM8','BwfFzhzJCW','rNfIy0e','v1HjA0O','C2vHCMnO','wNbQs04','s2JdTg5NihrO4BUdigldOw8Gy8oHBYb0AgvVimsr4BUrAsb0XRdHU6nUzYbUW6b5','txr1rK4','zMLUze9Uzq','v2jfBfi','Dg9tDhjPBMC','C1jtDKG','wxboDNO','BMHFA2G','y0jhCLm','rwDUCuC','zLLsCKS','zgfFCgHHDa','y3n1Bq','mtuZnJm3nLHluuLdDa','BMDHEv9JDa','Curesfi','Bg9N','rKzwz08','sKvjuMC','rMDpu2u','r3DoyxK','BwfFA2HV','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsbJW6fJihrOyw0GC+g7KtP0Dv9Uz2f5lgrLBL9Uz2f5lgjHB19Jyw9FDgHLBW','u0P3tuu','wM9pwhy','DMfSDwvFzMLLBgq','mZGZndeXnfroD3fLva','C0Dvthe','DLLhELu','DhjHBgfP','C3fNEgG','twDQt2i','D1PeBLu','y2HPx3rPzxu','BMHgzxa','uu1mvva','A1rctwy','Bg9KyxnO','DhvFBMDHEq','BwfW','mJy1ntG4uKzTBuH2','wvnWrKG','Bw5wuvG','zevKu0i','sK91ruy','mtKWodyZmeTNzxbACa','vvntEwq','q3vJBgC','C3PUqLm','BfbjBKW','u1n1s0O','z2v0tw9KzwW','zgf0x2HHBMC','AwrFyxbW','BMDAveS','AhnkrKO','CNHgsKm','yxbWBhK','oeXcyxPczq','z3jVDxbcEq','B1z3v3K','t3LNEve','BwfFA2G','ALzbvM0','Evbdq2K','C2vYAwvZ','DKzxrvK','tvjjzNa','zgvUx25NyxK','uxLctwK','A0fAr3i','AgHeDK8','AeHVDxa','BgvHBG','zM9YrwfJAa','zxHWB3j0CW','CxDlz3O','s0XuDgu'];_0x57a7=function(){return _0x4d74d4;};return _0x57a7();}function _0x4e32(_0x3aac84,_0x5ef068){const _0x1d8917=_0x57a7();return _0x4e32=function(_0x12a029,_0x9f6d06){_0x12a029=_0x12a029-0x17b;let _0x57a7fe=_0x1d8917[_0x12a029];if(_0x4e32['ZvUGiQ']===undefined){var _0x4e328a=function(_0x42d85b){const _0x47c712='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1971f3='',_0x1976ed='',_0x1a4307=_0x1971f3+_0x4e328a;for(let _0x5e5ca7=0x0,_0x1c6dc8,_0x59aea4,_0x4320f0=0x0;_0x59aea4=_0x42d85b['charAt'](_0x4320f0++);~_0x59aea4&&(_0x1c6dc8=_0x5e5ca7%0x4?_0x1c6dc8*0x40+_0x59aea4:_0x59aea4,_0x5e5ca7++%0x4)?_0x1971f3+=_0x1a4307['charCodeAt'](_0x4320f0+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1c6dc8>>(-0x2*_0x5e5ca7&0x6)):_0x5e5ca7:0x0){_0x59aea4=_0x47c712['indexOf'](_0x59aea4);}for(let _0x562db2=0x0,_0x24b4cf=_0x1971f3['length'];_0x562db2<_0x24b4cf;_0x562db2++){_0x1976ed+='%'+('00'+_0x1971f3['charCodeAt'](_0x562db2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1976ed);};_0x4e32['jvCLiH']=_0x4e328a,_0x3aac84=arguments,_0x4e32['ZvUGiQ']=!![];}const _0x2ab5d1=_0x1d8917[0x0],_0x5f076b=_0x12a029+_0x2ab5d1,_0x53b68f=_0x3aac84[_0x5f076b];if(!_0x53b68f){const _0x4f89ca=function(_0x16cab5){this['RlFxHk']=_0x16cab5,this['nIimRs']=[0x1,0x0,0x0],this['LwbGyW']=function(){return'newState';},this['VmzCmV']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['hvkZHa']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4f89ca['prototype']['XgVjLn']=function(){const _0x37c009=new RegExp(this['VmzCmV']+this['hvkZHa']),_0x1806a8=_0x37c009['test'](this['LwbGyW']['toString']())?--this['nIimRs'][0x1]:--this['nIimRs'][0x0];return this['RzWcyv'](_0x1806a8);},_0x4f89ca['prototype']['RzWcyv']=function(_0xe6643d){if(!Boolean(~_0xe6643d))return _0xe6643d;return this['URDRrf'](this['RlFxHk']);},_0x4f89ca['prototype']['URDRrf']=function(_0x4b6686){for(let _0x46199d=0x0,_0x21990b=this['nIimRs']['length'];_0x46199d<_0x21990b;_0x46199d++){this['nIimRs']['push'](Math['round'](Math['random']())),_0x21990b=this['nIimRs']['length'];}return _0x4b6686(this['nIimRs'][0x0]);},new _0x4f89ca(_0x4e32)['XgVjLn'](),_0x57a7fe=_0x4e32['jvCLiH'](_0x57a7fe),_0x3aac84[_0x5f076b]=_0x57a7fe;}else _0x57a7fe=_0x53b68f;return _0x57a7fe;},_0x4e32(_0x3aac84,_0x5ef068);}module[_0x136b14(0x185)]=function(_0x48ddcd){const _0x2c0cdb=_0x136b14,_0x1acad1={'oVwWy':function(_0x7efe4e,_0x1329df){return _0x7efe4e(_0x1329df);},'hsJFJ':function(_0x244376,_0x13259b){return _0x244376!==_0x13259b;},'IcyhF':_0x2c0cdb(0x1e4),'rxFJC':function(_0x431a2e,_0x5b4a2c,_0x2f5498){return _0x431a2e(_0x5b4a2c,_0x2f5498);},'MCkql':function(_0x326427,_0x15fc68){return _0x326427>=_0x15fc68;},'DZczE':function(_0x2a6ff8,_0x387d03){return _0x2a6ff8==_0x387d03;},'MDmqX':_0x2c0cdb(0x1e2),'oeueA':_0x2c0cdb(0x1b6),'FPOxk':_0x2c0cdb(0x1ed),'NxMyo':function(_0xf4c34d,_0x45c5c2){return _0xf4c34d(_0x45c5c2);},'WXIkJ':'da_phat','IURLC':_0x2c0cdb(0x188),'jcVGM':function(_0x463ced,_0x218170){return _0x463ced(_0x218170);},'wYtRl':function(_0x3f14bf,_0x407070){return _0x3f14bf===_0x407070;},'jaJLd':function(_0x4af133,_0x572a9b){return _0x4af133(_0x572a9b);},'mnVQX':_0x2c0cdb(0x1cc),'yPCCi':function(_0x4f64b4,_0x1aeb19){return _0x4f64b4(_0x1aeb19);},'giPjg':_0x2c0cdb(0x19b),'jlRrN':_0x2c0cdb(0x1a0),'qdTMC':_0x2c0cdb(0x1c2),'BxvaQ':function(_0x2e3013,_0x19c38c){return _0x2e3013===_0x19c38c;},'ldLZm':'eoJAj','kvfkd':_0x2c0cdb(0x1ae),'JJbCW':function(_0x771379,_0x3f3923){return _0x771379(_0x3f3923);},'WbElR':_0x2c0cdb(0x1b7),'WVIOJ':_0x2c0cdb(0x1a9),'pjmHF':_0x2c0cdb(0x17f),'vcaaB':'tlFrG'},_0x949fc4=_0x2c0cdb(0x1a2);new controller(_0x48ddcd,_0x949fc4,function(_0x279510,_0x33d639){const _0x5db04a=_0x2c0cdb,_0x5a25b0={'NPcZB':function(_0x5ad22a,_0x6bbc4b){const _0x62256d=_0x4e32;return _0x1acad1[_0x62256d(0x1bc)](_0x5ad22a,_0x6bbc4b);},'MRIfp':function(_0x54e2dd,_0x284934){const _0x2f95d1=_0x4e32;return _0x1acad1[_0x2f95d1(0x1ad)](_0x54e2dd,_0x284934);},'USSyd':_0x5db04a(0x1cd),'YpNvz':function(_0x1a41de,_0x4f243e){return _0x1acad1['jaJLd'](_0x1a41de,_0x4f243e);},'eskki':_0x1acad1[_0x5db04a(0x1f6)],'cBGrS':function(_0x4f7ef6,_0x323c0e,_0x57cdd6){const _0x55f77a=_0x5db04a;return _0x1acad1[_0x55f77a(0x204)](_0x4f7ef6,_0x323c0e,_0x57cdd6);},'GiUOx':function(_0x13eee9,_0x10603f){const _0x54c75c=_0x5db04a;return _0x1acad1[_0x54c75c(0x20c)](_0x13eee9,_0x10603f);},'iqMfl':function(_0x4c98b0,_0x47cc9f,_0x549c62){return _0x4c98b0(_0x47cc9f,_0x549c62);},'ACeHT':_0x1acad1['giPjg'],'yrLyW':_0x5db04a(0x1aa),'ngZTK':function(_0x489e1b,_0x1213ee){const _0x30f0a2=_0x5db04a;return _0x1acad1[_0x30f0a2(0x1ad)](_0x489e1b,_0x1213ee);},'DvXnx':_0x5db04a(0x1ac),'dEdSB':_0x1acad1[_0x5db04a(0x193)],'qwKgz':function(_0x221887,_0x177823,_0x5f50f4){const _0x374908=_0x5db04a;return _0x1acad1[_0x374908(0x204)](_0x221887,_0x177823,_0x5f50f4);},'NqCcV':_0x1acad1[_0x5db04a(0x1c9)],'ZpjKN':_0x1acad1['qdTMC']},_0xd25866=_0x279510['query'];if(!_0xd25866[_0x5db04a(0x1f2)]||!_0xd25866[_0x5db04a(0x17e)]||!_0xd25866[_0x5db04a(0x1b5)]){if(_0x1acad1['BxvaQ'](_0x1acad1['ldLZm'],_0x1acad1[_0x5db04a(0x1b3)]))_0x19537e[_0x5db04a(0x20a)]={'$in':_0x4c78f0[_0x5db04a(0x1b9)]};else return _0x1acad1['JJbCW'](_0x33d639,_0x1acad1['MDmqX']);}const _0x37ab76={'id_app':_0xd25866[_0x5db04a(0x201)]},_0xa53d31=_0xd25866[_0x5db04a(0x1b5)];_0x37ab76[_0x5db04a(0x1da)]={'$gte':_0xd25866[_0x5db04a(0x1f2)],'$lte':_0xd25866['den_ngay']};_0xd25866[_0x5db04a(0x1c7)]&&(_0x1acad1[_0x5db04a(0x19f)](_0x1acad1[_0x5db04a(0x1cf)],_0x1acad1['WVIOJ'])?_0x74e125[_0x5db04a(0x1c7)]={'$regex':_0x37bc07[_0x5db04a(0x1c7)],'$options':'i'}:_0x37ab76[_0x5db04a(0x1c7)]={'$regex':_0xd25866[_0x5db04a(0x1c7)],'$options':'i'});if(_0xd25866[_0x5db04a(0x1e1)]){if(_0x1acad1['pjmHF']!==_0x1acad1['vcaaB'])_0x37ab76[_0x5db04a(0x1e1)]={'$regex':_0xd25866[_0x5db04a(0x1e1)],'$options':'i'};else{if(_0x36ff69)return _0x5a25b0['NPcZB'](_0x2fefd4,_0x484c53);_0x10cfdb(null,_0x1f8d6e);}}async[_0x5db04a(0x17b)]({'rptobject':function(_0x5c972b){const _0x4b19ac=_0x5db04a,_0x8059d3={'LplrJ':function(_0x5f40e3,_0x51e77f){return _0x5a25b0['GiUOx'](_0x5f40e3,_0x51e77f);},'kAZGr':function(_0x257c0c,_0xd56dba,_0xb87647){return _0x5a25b0['iqMfl'](_0x257c0c,_0xd56dba,_0xb87647);}};_0x5a25b0[_0x4b19ac(0x1a7)]===_0x5a25b0[_0x4b19ac(0x1a3)]?_0x41e5bd[_0x4b19ac(0x1b6)]=0x1:rptobject[_0x4b19ac(0x1ce)]({'code_rpt':_0x949fc4,'ma_obj':_0xa53d31})[_0x4b19ac(0x183)]()[_0x4b19ac(0x1a8)](function(_0x3cca86,_0x20f218){const _0x1cc085=_0x4b19ac;if(_0x5a25b0[_0x1cc085(0x17d)](_0x5a25b0['USSyd'],_0x5a25b0[_0x1cc085(0x1fa)])){if(_0x3cca86)return _0x5a25b0[_0x1cc085(0x1d2)](_0x5c972b,_0x3cca86);if(!_0x20f218)return _0x5a25b0[_0x1cc085(0x1d2)](_0x5c972b,_0x5a25b0['eskki']);_0x5a25b0[_0x1cc085(0x1d4)](_0x5c972b,null,_0x20f218);}else{const _0x47408a={'nhFep':function(_0x539efa,_0x2600cb){return _0x8059d3['LplrJ'](_0x539efa,_0x2600cb);}};_0xc34960[_0x1cc085(0x1d3)]?_0x2c35fd[_0x1cc085(0x1a1)]({'id_app':_0x430d8c[_0x1cc085(0x201)],'status':!![],'nh_kh':_0x3e6ed0[_0x1cc085(0x1d3)]})[_0x1cc085(0x183)]()[_0x1cc085(0x1a8)](function(_0x41018d,_0x57104a){const _0x374402=_0x1cc085;if(_0x41018d)return _0x47408a[_0x374402(0x1ee)](_0x217f3b,_0x41018d);_0x448dda(null,_0x57104a['map'](_0x317053=>_0x317053[_0x374402(0x20a)]));}):_0x8059d3[_0x1cc085(0x180)](_0x1c5bec,null,null);}});},'dskhach':function(_0x518de7){const _0x8b799c=_0x5db04a,_0x35cd62={'kCIsY':_0x5a25b0[_0x8b799c(0x19c)],'hYTWp':_0x8b799c(0x1b6),'JhmwE':_0x5a25b0[_0x8b799c(0x1cb)],'gHouJ':function(_0x3340c9,_0x46858f,_0x1d9712){const _0x123801=_0x8b799c;return _0x5a25b0[_0x123801(0x1bf)](_0x3340c9,_0x46858f,_0x1d9712);}};_0xd25866[_0x8b799c(0x1d3)]?dmkh[_0x8b799c(0x1a1)]({'id_app':_0x37ab76[_0x8b799c(0x201)],'status':!![],'nh_kh':_0xd25866['nh_kh']})[_0x8b799c(0x183)]()[_0x8b799c(0x1a8)](function(_0x58b91d,_0x42106f){const _0x5384a7=_0x8b799c;if(_0x5a25b0[_0x5384a7(0x202)](_0x5a25b0[_0x5384a7(0x189)],_0x5a25b0[_0x5384a7(0x1f7)]))_0x2038e0[_0x5384a7(0x19e)]({'chi_tieu':_0x5384a7(0x197),'dat_hang':_0x465fd9[_0x5384a7(0x1d8)](_0x5384a7(0x200)),'da_phat':_0x5e75d4[_0x5384a7(0x1d8)](_0x35cd62[_0x5384a7(0x18e)]),'thanh_cong':_0x3f7b71[_0x5384a7(0x1d8)](_0x35cd62[_0x5384a7(0x19d)]),'huy':_0x1011b1[_0x5384a7(0x1d8)](_0x35cd62[_0x5384a7(0x195)]),'bold':!![]}),_0x35cd62['gHouJ'](_0x26d183,null,_0x39f26e);else{if(_0x58b91d)return _0x5a25b0['YpNvz'](_0x518de7,_0x58b91d);_0x5a25b0['qwKgz'](_0x518de7,null,_0x42106f[_0x5384a7(0x1f3)](_0x5415ff=>_0x5415ff[_0x5384a7(0x20a)]));}}):_0x5a25b0[_0x8b799c(0x186)](_0x518de7,null,null);}},function(_0x7ca269,_0x1893c8){const _0xbe3a26=_0x5db04a,_0x27327e={'jVAVm':function(_0x3f645d,_0x4fed9d){return _0x1acad1['oVwWy'](_0x3f645d,_0x4fed9d);},'zpHyG':function(_0x54d61f,_0x202392,_0x5875f1){return _0x54d61f(_0x202392,_0x5875f1);},'ctyNP':function(_0x10f3ec,_0x8acb9){const _0x4231ae=_0x4e32;return _0x1acad1[_0x4231ae(0x203)](_0x10f3ec,_0x8acb9);},'Cuclg':_0x1acad1['IcyhF'],'ffowE':function(_0x1e26ad,_0x377359,_0x7d4de2){return _0x1acad1['rxFJC'](_0x1e26ad,_0x377359,_0x7d4de2);},'IVRUT':function(_0x3200f8,_0x2cfb16){return _0x1acad1['MCkql'](_0x3200f8,_0x2cfb16);},'kTBMf':function(_0x3caeb8,_0x167598){const _0x1ff8fb=_0x4e32;return _0x1acad1[_0x1ff8fb(0x208)](_0x3caeb8,_0x167598);},'wZDnU':function(_0x3ac3be,_0x36f2de){const _0x50ba75=_0x4e32;return _0x1acad1[_0x50ba75(0x199)](_0x3ac3be,_0x36f2de);},'TKXeg':function(_0xbff497,_0x120518){const _0x468162=_0x4e32;return _0x1acad1[_0x468162(0x208)](_0xbff497,_0x120518);},'hHoup':_0xbe3a26(0x1df),'btkNd':function(_0x1e2fb6,_0x5851fe){const _0x330d5a=_0xbe3a26;return _0x1acad1[_0x330d5a(0x208)](_0x1e2fb6,_0x5851fe);},'kBCiZ':function(_0x5af944,_0xdb43f3){return _0x1acad1['oVwWy'](_0x5af944,_0xdb43f3);},'abeyr':_0x1acad1['MDmqX'],'jWTxy':function(_0x81017,_0x5f479c){return _0x81017===_0x5f479c;},'gCwyo':_0xbe3a26(0x1f8),'cNILW':_0xbe3a26(0x200),'GwNay':_0x1acad1[_0xbe3a26(0x1c4)],'FqbcA':function(_0x4830c2,_0x3c3ea9,_0x39b074){const _0x26da77=_0xbe3a26;return _0x1acad1[_0x26da77(0x204)](_0x4830c2,_0x3c3ea9,_0x39b074);},'lAJbW':_0xbe3a26(0x1b0),'GsnGz':_0x1acad1['FPOxk'],'UZcCN':function(_0x1909bd,_0x3dab9d){return _0x1acad1['NxMyo'](_0x1909bd,_0x3dab9d);},'JEIRg':_0x1acad1[_0xbe3a26(0x1c9)],'sqgxh':_0xbe3a26(0x1c2),'OygyQ':_0x1acad1['IURLC']};if(_0x7ca269)return _0x1acad1[_0xbe3a26(0x1bc)](_0x33d639,_0x7ca269);const _0x381b6b=_0x1893c8[_0xbe3a26(0x1a5)];_0x1893c8[_0xbe3a26(0x1b9)]&&(_0x37ab76[_0xbe3a26(0x20a)]={'$in':_0x1893c8['dskhach']}),async['series']({'tralai':function(_0xf3331a){const _0xe7b913=_0xbe3a26,_0x4665f9={'MgjOb':function(_0x2b2f8d,_0x3fba7e,_0xcdd6cb){return _0x27327e['zpHyG'](_0x2b2f8d,_0x3fba7e,_0xcdd6cb);},'YSpFH':_0xe7b913(0x1d6),'lPInL':'ukPiD','AqoTc':function(_0x580358,_0x42e4b5){return _0x580358(_0x42e4b5);}},_0x51f092={'id_app':_0x37ab76[_0xe7b913(0x201)],'ngay_ct':_0x37ab76[_0xe7b913(0x1da)]};_0xd25866[_0xe7b913(0x1c7)]&&(_0x51f092[_0xe7b913(0x1c7)]={'$regex':_0xd25866[_0xe7b913(0x1c7)],'$options':'i'});if(_0xd25866[_0xe7b913(0x1e1)]){if(_0x27327e[_0xe7b913(0x18c)](_0x27327e[_0xe7b913(0x1fb)],_0x27327e[_0xe7b913(0x1fb)]))return _0x4711f7[_0xe7b913(0x1dc)](_0x34916d),_0x27327e[_0xe7b913(0x20b)](_0x387bc5,_0x37fae7);else _0x51f092[_0xe7b913(0x1e1)]={'$regex':_0xd25866[_0xe7b913(0x1e1)],'$options':'i'};}_0x1893c8[_0xe7b913(0x1b9)]&&(_0x51f092[_0xe7b913(0x20a)]={'$in':_0x1893c8[_0xe7b913(0x1b9)]}),hd3[_0xe7b913(0x1a1)](_0x51f092)[_0xe7b913(0x183)]()[_0xe7b913(0x1a8)](function(_0x3716a0,_0x29b0c4){const _0x2e3cf2=_0xe7b913;if(_0x4665f9[_0x2e3cf2(0x1f5)]!==_0x4665f9[_0x2e3cf2(0x1fd)]){if(_0x3716a0)return _0x4665f9[_0x2e3cf2(0x1c1)](_0xf3331a,_0x3716a0);_0x4665f9[_0x2e3cf2(0x1eb)](_0xf3331a,null,_0x29b0c4);}else _0x4665f9[_0x2e3cf2(0x1eb)](_0x576e46,null,null);});},'donhang':function(_0x42653d){const _0x7debc1=_0xbe3a26,_0x319df3={'iSbwf':function(_0x27cd79,_0x5807ec){return _0x27cd79(_0x5807ec);},'qDDHR':function(_0x2a4465,_0x32a27f,_0x309304){const _0x1856f6=_0x4e32;return _0x27327e[_0x1856f6(0x191)](_0x2a4465,_0x32a27f,_0x309304);}};so1['find'](_0x37ab76)[_0x7debc1(0x183)]()[_0x7debc1(0x1a8)](function(_0x2e4495,_0x5e6e35){const _0x29b96a=_0x7debc1;if(_0x2e4495)return _0x319df3[_0x29b96a(0x18d)](_0x42653d,_0x2e4495);_0x319df3[_0x29b96a(0x1db)](_0x42653d,null,_0x5e6e35);});}},function(_0x5355fb,_0x581630){const _0x28d358=_0xbe3a26,_0x336978={'Efkva':function(_0x35eb08,_0x11df8b){return _0x27327e['kBCiZ'](_0x35eb08,_0x11df8b);},'hhDvO':_0x27327e['abeyr'],'VDZoy':function(_0x17377b,_0x450342){const _0x5458b2=_0x4e32;return _0x27327e[_0x5458b2(0x190)](_0x17377b,_0x450342);},'iHByP':_0x27327e[_0x28d358(0x1b8)],'SJwME':_0x27327e['cNILW'],'WZOJo':_0x27327e[_0x28d358(0x1e0)],'ZUeBA':function(_0x39f03a,_0x628c59,_0x5edc6a){const _0x2bba53=_0x28d358;return _0x27327e[_0x2bba53(0x191)](_0x39f03a,_0x628c59,_0x5edc6a);},'EgnqG':function(_0x21767b,_0x560286,_0x972c43){const _0x2870f8=_0x28d358;return _0x27327e[_0x2870f8(0x1c8)](_0x21767b,_0x560286,_0x972c43);},'sGULq':_0x27327e['lAJbW'],'QMLUP':_0x27327e['GsnGz']};if(_0x5355fb)return console['log'](_0x5355fb),_0x27327e[_0x28d358(0x1bd)](_0x33d639,_0x5355fb);const _0x60da25=_0x581630[_0x28d358(0x1e9)];_0x581630=_0x581630[_0x28d358(0x198)],_0x581630['forEach'](function(_0x428f7f){const _0x176e7d=_0x28d358;_0x428f7f['dat_hang']=0x1;_0x27327e['IVRUT'](_0x27327e[_0x176e7d(0x1f0)](Number,_0x428f7f[_0x176e7d(0x1ab)]),0x3)&&(_0x428f7f[_0x176e7d(0x1d7)]=0x1);if(_0x27327e[_0x176e7d(0x1ec)](_0x27327e['TKXeg'](Number,_0x428f7f[_0x176e7d(0x1ab)]),0x4)){if(_0x27327e[_0x176e7d(0x18c)](_0x176e7d(0x1be),_0x27327e[_0x176e7d(0x182)]))_0x428f7f[_0x176e7d(0x1b6)]=0x1;else return _0x336978['Efkva'](_0x77d6d8,_0x336978[_0x176e7d(0x181)]);}_0x27327e['btkNd'](Number,_0x428f7f[_0x176e7d(0x1ab)])==0x5&&(_0x428f7f[_0x176e7d(0x1c2)]=0x1);}),_0x60da25[_0x28d358(0x184)](function(_0x2aed50){_0x2aed50['tra_lai']=0x1,_0x581630['push'](_0x2aed50);}),_0x581630[_0x28d358(0x207)](_0xa53d31,[{'name':_0x27327e[_0x28d358(0x196)],'value':_0x28d358(0x200)},{'name':_0x27327e[_0x28d358(0x1de)],'value':_0x27327e[_0x28d358(0x1de)]},{'name':_0x27327e['GwNay'],'value':_0x27327e[_0x28d358(0x1e0)]},{'name':_0x27327e[_0x28d358(0x1ea)],'value':_0x27327e[_0x28d358(0x1ea)]},{'name':_0x27327e[_0x28d358(0x209)],'value':_0x27327e[_0x28d358(0x209)]}],function(_0x2eae0c,_0x293520){const _0x582aa1=_0x28d358,_0x263961={'FFVgO':function(_0x368d99,_0x246f78){return _0x336978['VDZoy'](_0x368d99,_0x246f78);},'WmBmU':_0x336978['iHByP'],'ritUv':_0x582aa1(0x197),'neVcp':_0x336978[_0x582aa1(0x1e3)],'TaNXQ':_0x336978[_0x582aa1(0x1c6)],'SVoru':function(_0x3773cf,_0x47d961,_0x224316){return _0x336978['ZUeBA'](_0x3773cf,_0x47d961,_0x224316);},'SSuKJ':function(_0x24d6df,_0x1cb938,_0x321c26){const _0x4a14e7=_0x582aa1;return _0x336978[_0x4a14e7(0x1d5)](_0x24d6df,_0x1cb938,_0x321c26);}};if(_0x336978[_0x582aa1(0x194)](_0x582aa1(0x1af),_0x582aa1(0x1af))){if(_0x2eae0c)return _0x336978[_0x582aa1(0x194)](_0x582aa1(0x1fc),_0x336978[_0x582aa1(0x1e7)])?(_0x3b83d4['log'](_0x36130e),_0x336978['Efkva'](_0x397842,_0x3ac02f)):(console[_0x582aa1(0x1dc)](_0x2eae0c),_0x336978[_0x582aa1(0x1b4)](_0x33d639,_0x2eae0c));const _0x460ee3=_[_0x582aa1(0x192)](_0x293520,function(_0xe8fc37){const _0x1146a0=_0x582aa1;if(_0x263961[_0x1146a0(0x1dd)](_0x1146a0(0x1f8),_0x263961[_0x1146a0(0x18b)]))return _0xe8fc37[_0xa53d31];else _0x43bd5e[_0x1146a0(0x1c7)]={'$regex':_0x42414b[_0x1146a0(0x1c7)],'$options':'i'};});let _0x4c35ea=0x1;_0x460ee3[_0x582aa1(0x184)](function(_0x4c4cad){const _0x39935f=_0x582aa1;_0x4c4cad[_0x39935f(0x19a)]=_0x4c35ea,_0x4c4cad[_0x39935f(0x1ba)]=![],_0x4c35ea++;});const _0x4b5531=global[_0x582aa1(0x1ff)](''+_0x381b6b['model_obj']),_0x275163=_0x381b6b[_0x582aa1(0x1e5)],_0x3471d5=_0x381b6b[_0x582aa1(0x1a4)];_0x460ee3[_0x582aa1(0x1b2)](_0xd25866[_0x582aa1(0x201)],_0x4b5531,[{'akey':_0xa53d31,'bkey':_0x275163,'fields':[{'name':_0x336978[_0x582aa1(0x1ef)],'value':_0x3471d5}]}],function(){const _0x54cde6=_0x582aa1;_0x460ee3[_0x54cde6(0x19e)]({'chi_tieu':_0x263961['ritUv'],'dat_hang':_0x460ee3['csum'](_0x263961[_0x54cde6(0x1c5)]),'da_phat':_0x460ee3['csum'](_0x54cde6(0x1d7)),'thanh_cong':_0x460ee3[_0x54cde6(0x1d8)](_0x263961[_0x54cde6(0x1c0)]),'huy':_0x460ee3['csum'](_0x54cde6(0x1c2)),'bold':!![]}),_0x263961['SVoru'](_0x33d639,null,_0x460ee3);});}else _0x5cccd4[_0x582aa1(0x1a1)]({'id_app':_0x175460[_0x582aa1(0x201)],'status':!![],'nh_kh':_0x135bf1['nh_kh']})['lean']()[_0x582aa1(0x1a8)](function(_0x4fb890,_0x1c904f){const _0x47e0c7=_0x582aa1;if(_0x4fb890)return _0x395358(_0x4fb890);_0x263961[_0x47e0c7(0x1fe)](_0x52954c,null,_0x1c904f['map'](_0x4ebeb3=>_0x4ebeb3[_0x47e0c7(0x20a)]));});});});});});};
|