flexbiz-server 12.4.21 → 12.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/server/app.js +1 -22
- package/server/auths/bearer.js +1 -3
- package/server/auths/facebook.js +1 -12
- package/server/auths/google.js +1 -13
- package/server/auths/local.js +1 -64
- package/server/cluster.js +1 -27
- package/server/controllers/controller.js +1 -107
- package/server/controllers/controllerRPT.js +1 -27
- package/server/controllers/controllerUtils.js +1 -76
- package/server/controllers/createHandler.js +1 -35
- package/server/controllers/createRouteHandler.js +1 -4
- package/server/controllers/deleteHandler.js +1 -11
- package/server/controllers/deleteManyHandler.js +1 -2
- package/server/controllers/exportHandler.js +1 -17
- package/server/controllers/findHandler.js +1 -53
- package/server/controllers/handlers.js +1 -3
- package/server/controllers/historyHandler.js +1 -5
- package/server/controllers/importFromExcelHandler.js +1 -14
- package/server/controllers/importFromGsHandler.js +1 -10
- package/server/controllers/importFromJsonHandler.js +1 -7
- package/server/controllers/importHandler.js +1 -21
- package/server/controllers/logHandler.js +1 -5
- package/server/controllers/rptCreateRouteHandler.js +1 -4
- package/server/controllers/rptExcelHandler.js +1 -32
- package/server/controllers/rptHandler.js +1 -13
- package/server/controllers/updateBookHandler.js +1 -10
- package/server/controllers/updateFieldHandler.js +1 -12
- package/server/controllers/updateHandler.js +1 -39
- package/server/controllers/updateKeyHandler.js +1 -14
- package/server/controllers/viewHandler.js +1 -13
- package/server/flow/FlowEngine.js +1 -64
- package/server/flow/WebhookManager.js +1 -26
- package/server/flow/handlers.js +1 -3
- package/server/flow/nodes/aiAnalysis.js +1 -9
- package/server/flow/nodes/customer.js +1 -15
- package/server/flow/nodes/data.js +1 -14
- package/server/flow/nodes/debug.js +1 -2
- package/server/flow/nodes/delay.js +1 -3
- package/server/flow/nodes/email.js +1 -9
- package/server/flow/nodes/event.js +1 -11
- package/server/flow/nodes/facebook.js +1 -3
- package/server/flow/nodes/facebookConversations.js +1 -5
- package/server/flow/nodes/facebookCreatePost.js +1 -10
- package/server/flow/nodes/facebookSendMessage.js +1 -12
- package/server/flow/nodes/forEachItem.js +1 -8
- package/server/flow/nodes/function.js +1 -4
- package/server/flow/nodes/httprequest.js +1 -7
- package/server/flow/nodes/inject.js +1 -12
- package/server/flow/nodes/pushNotification.js +1 -5
- package/server/flow/nodes/report.js +1 -6
- package/server/flow/nodes/saveData.js +1 -2
- package/server/flow/nodes/switch.js +1 -20
- package/server/flow/nodes/webhook.js +1 -1
- package/server/flow/nodes/zaloSendMessage.js +1 -4
- package/server/flow/utils.js +1 -2
- package/server/global.js +1 -23
- package/server/libs/BlockchainTransactionPool.js +1 -3
- package/server/libs/WorkerPool.js +1 -4
- package/server/libs/WorkerStaticPool.js +1 -16
- package/server/libs/WorkerStaticPool_v1.js +1 -5
- package/server/libs/assbonus.js +1 -7
- package/server/libs/backup.js +1 -2
- package/server/libs/blockchainconnect.js +1 -12
- package/server/libs/cdpsdiem.js +1 -5
- package/server/libs/cdpsdt.js +1 -7
- package/server/libs/cdpskh.js +1 -9
- package/server/libs/cdpsnphep.js +1 -6
- package/server/libs/cdpstk.js +1 -11
- package/server/libs/ckcn.js +1 -12
- package/server/libs/ckdiem.js +1 -5
- package/server/libs/ckdt.js +1 -6
- package/server/libs/cknphep.js +1 -6
- package/server/libs/cktk.js +1 -4
- package/server/libs/cktt.js +1 -9
- package/server/libs/ckvt.js +1 -12
- package/server/libs/ckvtcapphat.js +1 -6
- package/server/libs/ckvtnpp.js +1 -8
- package/server/libs/ckvttt.js +1 -11
- package/server/libs/createSocaitheongay.js +1 -9
- package/server/libs/ctdiem.js +1 -5
- package/server/libs/ctvt.js +1 -7
- package/server/libs/ctvtnpp.js +1 -7
- package/server/libs/ctvttt.js +1 -7
- package/server/libs/databanle.js +1 -17
- package/server/libs/databanlenpp.js +1 -8
- package/server/libs/databanletheongay.js +1 -27
- package/server/libs/dkcn.js +1 -10
- package/server/libs/dkdiem.js +1 -5
- package/server/libs/dkdt.js +1 -6
- package/server/libs/dknphep.js +1 -7
- package/server/libs/dktk.js +1 -4
- package/server/libs/dktt.js +1 -8
- package/server/libs/dkvt.js +1 -9
- package/server/libs/dkvtnpp.js +1 -7
- package/server/libs/dkvttt.js +1 -7
- package/server/libs/dncn.js +1 -6
- package/server/libs/dntk.js +1 -4
- package/server/libs/dntt.js +1 -6
- package/server/libs/docs.js +1 -452
- package/server/libs/dstkcn.js +1 -1
- package/server/libs/dstktt.js +1 -1
- package/server/libs/dtbanletheonpp.js +1 -17
- package/server/libs/dtbanletheosp.js +1 -15
- package/server/libs/dtbanletheospnpp.js +1 -15
- package/server/libs/email.js +1 -3
- package/server/libs/excel.js +1 -2
- package/server/libs/getGiaban.js +1 -67
- package/server/libs/getGiabanAsync.js +1 -1
- package/server/libs/getNotifies.js +1 -1
- package/server/libs/htmlReport.js +1 -9
- package/server/libs/initDatabase.js +1 -9
- package/server/libs/invoiceEasy.js +1 -109
- package/server/libs/invoiceViettel.js +1 -29
- package/server/libs/invoiceVnpt.js +1 -22
- package/server/libs/kpistatus.js +1 -32
- package/server/libs/load-template.js +1 -3
- package/server/libs/mailmanagement.js +1 -13
- package/server/libs/mongooseDeletePost.js +1 -6
- package/server/libs/mongooseLeanId.js +1 -1
- package/server/libs/mongoosePatch.js +1 -8
- package/server/libs/onepay-payment.js +1 -4
- package/server/libs/optimizeBookkeeping.js +1 -14
- package/server/libs/parse-template.js +1 -5
- package/server/libs/permission.js +1 -51
- package/server/libs/phanbokh.js +1 -3
- package/server/libs/post-book.js +1 -23
- package/server/libs/post-socai.js +1 -25
- package/server/libs/post-sokho.js +1 -27
- package/server/libs/prototypes.js +1 -29
- package/server/libs/psdt.js +1 -1
- package/server/libs/pskh.js +1 -1
- package/server/libs/pstk.js +1 -1
- package/server/libs/redis-cache.js +1 -17
- package/server/libs/restore.js +1 -1
- package/server/libs/schedule.js +1 -18
- package/server/libs/sessionContext.js +2 -14
- package/server/libs/textReport.js +1 -3
- package/server/libs/thnxt.js +1 -9
- package/server/libs/thnxtnpp.js +1 -9
- package/server/libs/thnxttt.js +1 -8
- package/server/libs/tinhGt.js +1 -7
- package/server/libs/tinhGtCapnhatPNK.js +1 -7
- package/server/libs/tinhGtPhanboHeSo.js +1 -12
- package/server/libs/tinhGtPhanboSltp.js +1 -10
- package/server/libs/tinhGtPhanboYtcp.js +1 -11
- package/server/libs/tinhGtSltk.js +1 -9
- package/server/libs/tinhGtThcppstk.js +1 -10
- package/server/libs/tinhGtTrucTiep.js +1 -7
- package/server/libs/tinhGtXoa.js +1 -3
- package/server/libs/tinhgiatb.js +1 -38
- package/server/libs/tinhgiatb1vt.js +1 -5
- package/server/libs/tinhhoahong.js +1 -64
- package/server/libs/tinhhoahongnpp.js +1 -46
- package/server/libs/tinhkhauhao1ts.js +1 -12
- package/server/libs/tinhkhauhaots.js +1 -8
- package/server/libs/tuoinophaithu.js +1 -10
- package/server/libs/tuoinophaitra.js +1 -11
- package/server/libs/utils.js +1 -78
- package/server/libs/validate.js +1 -4
- package/server/libs/validator-acc-cust.js +1 -1
- package/server/libs/validator-account.js +1 -4
- package/server/libs/validator-vt.js +1 -2
- package/server/libs/validator.js +1 -11
- package/server/libs/vsocai.js +1 -8
- package/server/models/account.js +1 -7
- package/server/models/afflink.js +1 -2
- package/server/models/app.js +1 -15
- package/server/models/approve.js +1 -93
- package/server/models/assabcihandler.js +1 -35
- package/server/models/assbank.js +1 -19
- package/server/models/assbooking.js +1 -4
- package/server/models/assbuy.js +1 -3
- package/server/models/asscashwithdraw.js +1 -4
- package/server/models/assfindhash.js +1 -2
- package/server/models/assinvestment.js +1 -13
- package/server/models/assissue.js +1 -2
- package/server/models/asskey.js +1 -15
- package/server/models/assneedtobuy.js +1 -6
- package/server/models/assperiod.js +1 -7
- package/server/models/assproduct.js +1 -13
- package/server/models/assprofitsharing.js +1 -4
- package/server/models/assreceiver.js +1 -2
- package/server/models/assrequest.js +1 -11
- package/server/models/asssell.js +1 -7
- package/server/models/asstransaction.js +1 -3
- package/server/models/asstransfer.js +1 -4
- package/server/models/assuser_identity.js +1 -4
- package/server/models/asswithdraw.js +1 -4
- package/server/models/attend.js +1 -2
- package/server/models/banggiaban.js +1 -8
- package/server/models/bangtinhluong.js +1 -6
- package/server/models/base.js +1 -1
- package/server/models/bds_area.js +1 -4
- package/server/models/bds_block.js +1 -3
- package/server/models/bds_building.js +1 -4
- package/server/models/bds_floor.js +1 -3
- package/server/models/bds_floordetail.js +1 -9
- package/server/models/bds_nhadat.js +1 -11
- package/server/models/bds_nhomnhadat.js +1 -4
- package/server/models/bds_phanloainhadat.js +1 -3
- package/server/models/bg1.js +1 -9
- package/server/models/bg2.js +1 -10
- package/server/models/cache.js +1 -3
- package/server/models/calllog.js +1 -4
- package/server/models/campaign.js +1 -6
- package/server/models/cart.js +1 -5
- package/server/models/cddiem.js +1 -2
- package/server/models/cddt.js +1 -3
- package/server/models/cdkh.js +1 -5
- package/server/models/cdkhtheongay.js +1 -5
- package/server/models/cdnphep.js +1 -2
- package/server/models/cdtk.js +1 -3
- package/server/models/cdtktheongay.js +1 -3
- package/server/models/cdvt.js +1 -5
- package/server/models/cdvtnpp.js +1 -6
- package/server/models/cdvttheongay.js +1 -5
- package/server/models/chamcong.js +1 -7
- package/server/models/checkin.js +1 -4
- package/server/models/checkinactivity.js +1 -3
- package/server/models/checkinkpi.js +1 -4
- package/server/models/checkinlocation.js +1 -2
- package/server/models/chitieukpi.js +1 -3
- package/server/models/chudethaoluan.js +1 -3
- package/server/models/ckgtluong.js +1 -2
- package/server/models/colleague.js +1 -2
- package/server/models/comment.js +1 -4
- package/server/models/congdoansx.js +1 -4
- package/server/models/congtacvien.js +1 -4
- package/server/models/congthuctinhgiaban.js +1 -8
- package/server/models/consultant.js +1 -4
- package/server/models/contract.js +1 -6
- package/server/models/counter.js +1 -2
- package/server/models/ctds.js +1 -5
- package/server/models/ctds2.js +1 -6
- package/server/models/currency.js +1 -3
- package/server/models/customer.js +1 -31
- package/server/models/databanle.js +1 -8
- package/server/models/datlich.js +1 -4
- package/server/models/department.js +1 -4
- package/server/models/dh2.js +1 -20
- package/server/models/diagram.js +1 -2
- package/server/models/dinhmucsx.js +1 -8
- package/server/models/dkhoc.js +1 -6
- package/server/models/dknphep.js +1 -2
- package/server/models/dmban.js +1 -4
- package/server/models/dmbp.js +1 -12
- package/server/models/dmca.js +1 -2
- package/server/models/dmchietkhau.js +1 -9
- package/server/models/dmchietkhauhd.js +1 -20
- package/server/models/dmcpmh.js +1 -2
- package/server/models/dmdiemthuong.js +1 -5
- package/server/models/dmdoi.js +1 -4
- package/server/models/dmdoituongdanhgia.js +1 -2
- package/server/models/dmdt.js +1 -8
- package/server/models/dmdvt.js +1 -3
- package/server/models/dmgiaban.js +1 -9
- package/server/models/dmgiamua.js +1 -5
- package/server/models/dmgiathitruong.js +1 -5
- package/server/models/dmgiathitruong_ngay.js +1 -2
- package/server/models/dmgiathitruong_theodoi.js +1 -2
- package/server/models/dmhoahonghd.js +1 -9
- package/server/models/dmhoahongnpp.js +1 -9
- package/server/models/dmkc.js +1 -3
- package/server/models/dmkho.js +1 -6
- package/server/models/dmkhuyenmai.js +1 -9
- package/server/models/dmkhuyenmaihd.js +1 -11
- package/server/models/dmletet.js +1 -2
- package/server/models/dmlo.js +1 -4
- package/server/models/dmloaicong.js +1 -4
- package/server/models/dmloaitask.js +1 -2
- package/server/models/dmloaits.js +1 -2
- package/server/models/dmnckkm.js +1 -4
- package/server/models/dmnghiepvu.js +1 -4
- package/server/models/dmnguonvon.js +1 -2
- package/server/models/dmnhnv.js +1 -4
- package/server/models/dmnv.js +1 -17
- package/server/models/dmnvt.js +1 -9
- package/server/models/dmphatdichvu.js +1 -5
- package/server/models/dmphi.js +1 -3
- package/server/models/dmqct.js +1 -3
- package/server/models/dmqddvt.js +1 -3
- package/server/models/dmtanggiamts.js +1 -3
- package/server/models/dmto.js +1 -4
- package/server/models/dmtt.js +1 -6
- package/server/models/dmvt.js +1 -17
- package/server/models/dmyt.js +1 -4
- package/server/models/dn0.js +1 -13
- package/server/models/dnm.js +1 -11
- package/server/models/dokho.js +1 -2
- package/server/models/domain.js +1 -2
- package/server/models/dvcs.js +1 -3
- package/server/models/ecomcategories.js +1 -3
- package/server/models/ecomcategories_cty.js +1 -3
- package/server/models/ecomproductlines.js +1 -2
- package/server/models/ecompromotion_flashsales.js +1 -2
- package/server/models/ecompromotion_freeships.js +1 -2
- package/server/models/email.js +1 -2
- package/server/models/endpoint.js +1 -1
- package/server/models/events.js +1 -3
- package/server/models/evoucher.js +1 -5
- package/server/models/experiencejourney.js +1 -2
- package/server/models/experiencejourneydata.js +1 -4
- package/server/models/experiencejourneypersona.js +1 -3
- package/server/models/experiencejourneystage.js +1 -2
- package/server/models/exportexceltemplate.js +1 -2
- package/server/models/fbconversation.js +1 -15
- package/server/models/fbmessage.js +1 -2
- package/server/models/fbpage.js +1 -2
- package/server/models/fbpost.js +1 -2
- package/server/models/fieldright.js +1 -2
- package/server/models/file.js +1 -4
- package/server/models/financialroadmap.js +1 -3
- package/server/models/flow.js +1 -2
- package/server/models/flowdata.js +1 -3
- package/server/models/folder.js +1 -4
- package/server/models/follow.js +1 -2
- package/server/models/form.js +1 -3
- package/server/models/forminfo.js +1 -5
- package/server/models/formvalue.js +1 -3
- package/server/models/giaoca.js +1 -4
- package/server/models/giatb.js +1 -3
- package/server/models/group.js +1 -11
- package/server/models/gt_ctgt.js +1 -4
- package/server/models/gt_hspb.js +1 -3
- package/server/models/gt_sltk.js +1 -3
- package/server/models/gt_thcppstk.js +1 -3
- package/server/models/hanmucton.js +1 -4
- package/server/models/hd1.js +1 -11
- package/server/models/hd2.js +1 -27
- package/server/models/hd3.js +1 -18
- package/server/models/hd4.js +1 -13
- package/server/models/hd7.js +1 -17
- package/server/models/hd8.js +1 -12
- package/server/models/hde.js +1 -11
- package/server/models/hlink.js +1 -2
- package/server/models/hlinkvalue.js +1 -2
- package/server/models/hmcn.js +1 -3
- package/server/models/hmcnct.js +1 -2
- package/server/models/hspbts.js +1 -4
- package/server/models/htl.js +1 -13
- package/server/models/importexceltemplate.js +1 -2
- package/server/models/introducebonus.js +1 -4
- package/server/models/introducecode.js +1 -3
- package/server/models/introducer.js +1 -4
- package/server/models/kbbtpb.js +1 -7
- package/server/models/kbmPttct.js +1 -4
- package/server/models/kbmTkgtgt.js +1 -5
- package/server/models/kbm_bcdkt.js +1 -4
- package/server/models/kbm_kqhdkd.js +1 -3
- package/server/models/kbm_lcttgt.js +1 -5
- package/server/models/kbm_lctttt.js +1 -4
- package/server/models/kbm_pttct.js +1 -4
- package/server/models/kbm_tkgtgt.js +1 -5
- package/server/models/kbmbcdkt.js +1 -4
- package/server/models/kbmbcqt.js +1 -4
- package/server/models/kbmkqhdkd.js +1 -3
- package/server/models/kbmlcttgt.js +1 -6
- package/server/models/kbmlctttt.js +1 -4
- package/server/models/kbmtmbctc.js +1 -4
- package/server/models/kehoachdtcp.js +1 -3
- package/server/models/kehoachmh.js +1 -8
- package/server/models/keyresult.js +1 -7
- package/server/models/khunghangthanhvien.js +1 -3
- package/server/models/label.js +1 -2
- package/server/models/labelinfo.js +1 -2
- package/server/models/lenhcapphat.js +1 -8
- package/server/models/lenhsx.js +1 -8
- package/server/models/lienhe.js +1 -4
- package/server/models/like_module.js +1 -2
- package/server/models/link.js +1 -2
- package/server/models/loaidiem.js +1 -2
- package/server/models/lock.js +1 -2
- package/server/models/log.js +1 -5
- package/server/models/mailaccount.js +1 -3
- package/server/models/mailgroup.js +1 -3
- package/server/models/mailreceived.js +1 -2
- package/server/models/mailschedule.js +1 -2
- package/server/models/mailsent.js +1 -2
- package/server/models/mailtemplate.js +1 -2
- package/server/models/maudanhgia.js +1 -2
- package/server/models/menuinfo.js +1 -2
- package/server/models/message.js +1 -8
- package/server/models/message2.js +1 -4
- package/server/models/message2setting.js +1 -3
- package/server/models/moduleinfo.js +1 -4
- package/server/models/momo.js +1 -17
- package/server/models/news.js +1 -3
- package/server/models/newsfeed.js +1 -4
- package/server/models/note.js +1 -2
- package/server/models/notification.js +1 -7
- package/server/models/okr.js +1 -4
- package/server/models/okrdiagram.js +1 -3
- package/server/models/onepay.js +1 -24
- package/server/models/opportunity.js +1 -4
- package/server/models/options.js +1 -2
- package/server/models/originimportid.js +1 -1
- package/server/models/otp.js +1 -1
- package/server/models/parameter.js +1 -2
- package/server/models/participant.js +1 -20
- package/server/models/partner.js +1 -1
- package/server/models/payload.js +1 -1
- package/server/models/pbl.js +1 -16
- package/server/models/pc0.js +1 -13
- package/server/models/pc1.js +1 -14
- package/server/models/pc2.js +1 -13
- package/server/models/pc3.js +1 -13
- package/server/models/pc5.js +1 -8
- package/server/models/pc6.js +1 -14
- package/server/models/pcl.js +1 -6
- package/server/models/pdn.js +1 -9
- package/server/models/pdx.js +1 -9
- package/server/models/pgh.js +1 -5
- package/server/models/phieudanhgia.js +1 -3
- package/server/models/pht.js +1 -8
- package/server/models/phucap.js +1 -4
- package/server/models/pkc.js +1 -6
- package/server/models/pkh.js +1 -6
- package/server/models/pkk.js +1 -10
- package/server/models/pkt.js +1 -12
- package/server/models/pn1.js +1 -17
- package/server/models/pn2.js +1 -11
- package/server/models/pn3.js +1 -13
- package/server/models/pn5.js +1 -14
- package/server/models/pn6.js +1 -14
- package/server/models/pn9.js +1 -17
- package/server/models/pnc.js +1 -10
- package/server/models/pnh.js +1 -12
- package/server/models/pnk.js +1 -10
- package/server/models/po1.js +1 -19
- package/server/models/ppb.js +1 -6
- package/server/models/profile.js +1 -4
- package/server/models/pt1.js +1 -12
- package/server/models/pt5.js +1 -8
- package/server/models/ptl.js +1 -6
- package/server/models/ptthanhtoan.js +1 -6
- package/server/models/purchase_contract.js +1 -17
- package/server/models/pxc.js +1 -9
- package/server/models/pxh.js +1 -12
- package/server/models/pxk.js +1 -10
- package/server/models/qts.js +1 -14
- package/server/models/qts_dieuchinh.js +1 -3
- package/server/models/qts_dieuchuyen.js +1 -4
- package/server/models/quanhuyen.js +1 -2
- package/server/models/reason.js +1 -2
- package/server/models/receivedinvoice.js +1 -2
- package/server/models/reportinfo.js +1 -5
- package/server/models/right.js +1 -4
- package/server/models/rpt.js +1 -2
- package/server/models/rptform.js +1 -5
- package/server/models/rptobject.js +1 -2
- package/server/models/sale_contract.js +1 -9
- package/server/models/schedule.js +1 -16
- package/server/models/schedule_log.js +1 -2
- package/server/models/service.js +1 -4
- package/server/models/shipbook.js +1 -12
- package/server/models/shortcut.js +1 -2
- package/server/models/smsaccount.js +1 -10
- package/server/models/smssend.js +1 -2
- package/server/models/so1.js +1 -22
- package/server/models/so2.js +1 -10
- package/server/models/so3.js +1 -9
- package/server/models/so5.js +1 -15
- package/server/models/so9.js +1 -19
- package/server/models/socai.js +1 -26
- package/server/models/socainpp.js +1 -18
- package/server/models/socaitc.js +1 -6
- package/server/models/socaitmp.js +1 -16
- package/server/models/socaitt.js +1 -4
- package/server/models/sodiemthuong.js +1 -4
- package/server/models/sokho.js +1 -28
- package/server/models/sokhocapphat.js +1 -18
- package/server/models/sokhokhongton.js +1 -19
- package/server/models/sokhonpp.js +1 -19
- package/server/models/sokhotc.js +1 -8
- package/server/models/sokhott.js +1 -18
- package/server/models/sophanbokh.js +1 -3
- package/server/models/sosanxuat.js +1 -5
- package/server/models/sotinhkh.js +1 -2
- package/server/models/spdd_ck.js +1 -3
- package/server/models/spdd_dk.js +1 -3
- package/server/models/step.js +1 -2
- package/server/models/strategicdiagram.js +1 -3
- package/server/models/strategicgoal.js +1 -4
- package/server/models/strategickpi.js +1 -6
- package/server/models/strategicobjective.js +1 -5
- package/server/models/strategicplan.js +1 -5
- package/server/models/subscribe.js +1 -2
- package/server/models/support.js +1 -2
- package/server/models/synctime.js +1 -2
- package/server/models/sysconfig.js +1 -2
- package/server/models/sysgroup.js +1 -2
- package/server/models/tableinfo.js +1 -3
- package/server/models/task.js +1 -9
- package/server/models/taskreg.js +1 -4
- package/server/models/tc.js +1 -2
- package/server/models/tdttco.js +1 -8
- package/server/models/tdttco_tt.js +1 -5
- package/server/models/tdttno.js +1 -8
- package/server/models/tdttno_tt.js +1 -5
- package/server/models/templaterpt.js +1 -2
- package/server/models/templatestore.js +1 -3
- package/server/models/templatevoucher.js +1 -3
- package/server/models/tinhthanh.js +1 -2
- package/server/models/tokens.js +1 -2
- package/server/models/tontucthoi.js +1 -9
- package/server/models/trangthai.js +1 -4
- package/server/models/trangthaiapp.js +1 -4
- package/server/models/transaction.js +1 -16
- package/server/models/trialinfo.js +1 -2
- package/server/models/user.js +1 -38
- package/server/models/usergroup.js +1 -7
- package/server/models/vanchuyen.js +1 -12
- package/server/models/vat.js +1 -3
- package/server/models/vatra.js +1 -6
- package/server/models/vatvao.js +1 -6
- package/server/models/versioninfo.js +1 -2
- package/server/models/vietqrbanks.js +1 -2
- package/server/models/vsocai.js +1 -6
- package/server/models/waitevent.js +1 -2
- package/server/models/wallet.js +1 -8
- package/server/models/warranty.js +1 -3
- package/server/models/warrantyclaim.js +1 -2
- package/server/models/warrantypolicy.js +1 -1
- package/server/models/xaphuong.js +1 -2
- package/server/models/xhd.js +1 -10
- package/server/models/ytdd_ck.js +1 -4
- package/server/models/ytdd_dk.js +1 -4
- package/server/models/zalo.js +1 -17
- package/server/modules/lists/bg-cddiem.js +1 -6
- package/server/modules/lists/bg-cddt.js +1 -7
- package/server/modules/lists/bg-cdkh.js +1 -11
- package/server/modules/lists/bg-cdnphep.js +1 -6
- package/server/modules/lists/bg-cdtk.js +1 -9
- package/server/modules/lists/bg-cdvt.js +1 -8
- package/server/modules/lists/bg-cdvtnpp.js +1 -8
- package/server/modules/lists/ls-account.js +1 -4
- package/server/modules/lists/ls-afflink.js +1 -3
- package/server/modules/lists/ls-approve.js +1 -4
- package/server/modules/lists/ls-assabcihandler.js +1 -3
- package/server/modules/lists/ls-assbank.js +1 -3
- package/server/modules/lists/ls-assbooking.js +1 -20
- package/server/modules/lists/ls-assbuy.js +1 -8
- package/server/modules/lists/ls-asscashwithdraw.js +1 -8
- package/server/modules/lists/ls-assinvestment.js +1 -31
- package/server/modules/lists/ls-assissue.js +1 -3
- package/server/modules/lists/ls-asskey.js +1 -41
- package/server/modules/lists/ls-assneedtobuy.js +1 -10
- package/server/modules/lists/ls-assperiod.js +1 -19
- package/server/modules/lists/ls-assproduct.js +1 -9
- package/server/modules/lists/ls-assprofitsharing.js +1 -8
- package/server/modules/lists/ls-assreceiver.js +1 -3
- package/server/modules/lists/ls-assrequest.js +1 -4
- package/server/modules/lists/ls-asssell.js +1 -13
- package/server/modules/lists/ls-asstransaction.js +1 -3
- package/server/modules/lists/ls-asstransfer.js +1 -3
- package/server/modules/lists/ls-assuser_identity.js +1 -1
- package/server/modules/lists/ls-asswithdraw.js +1 -12
- package/server/modules/lists/ls-bangtinhluong.js +1 -2
- package/server/modules/lists/ls-bds_area.js +1 -3
- package/server/modules/lists/ls-bds_block.js +1 -1
- package/server/modules/lists/ls-bds_building.js +1 -3
- package/server/modules/lists/ls-bds_dmnhbds.js +1 -6
- package/server/modules/lists/ls-bds_floor.js +1 -2
- package/server/modules/lists/ls-bds_floordetail.js +1 -19
- package/server/modules/lists/ls-bds_nhadat.js +1 -16
- package/server/modules/lists/ls-bds_nhomnhadat.js +1 -1
- package/server/modules/lists/ls-bds_phanloainhadat.js +1 -1
- package/server/modules/lists/ls-calllog.js +1 -4
- package/server/modules/lists/ls-campaign.js +1 -1
- package/server/modules/lists/ls-cart.js +1 -14
- package/server/modules/lists/ls-chamcong.js +1 -3
- package/server/modules/lists/ls-checkin.js +1 -12
- package/server/modules/lists/ls-checkinactivity.js +1 -8
- package/server/modules/lists/ls-checkinkpi.js +1 -3
- package/server/modules/lists/ls-checkinlocation.js +1 -1
- package/server/modules/lists/ls-chitieukpi.js +1 -1
- package/server/modules/lists/ls-chudethaoluan.js +1 -1
- package/server/modules/lists/ls-ckgtluong.js +1 -1
- package/server/modules/lists/ls-comment.js +1 -9
- package/server/modules/lists/ls-congdoansx.js +1 -3
- package/server/modules/lists/ls-congtacvien.js +1 -5
- package/server/modules/lists/ls-consultant.js +1 -2
- package/server/modules/lists/ls-contract.js +1 -7
- package/server/modules/lists/ls-ctds.js +1 -4
- package/server/modules/lists/ls-ctds2.js +1 -4
- package/server/modules/lists/ls-currency.js +1 -1
- package/server/modules/lists/ls-customer.js +1 -21
- package/server/modules/lists/ls-datlich.js +1 -9
- package/server/modules/lists/ls-dckhauhaots.js +1 -3
- package/server/modules/lists/ls-department.js +1 -3
- package/server/modules/lists/ls-diagram.js +1 -1
- package/server/modules/lists/ls-dkhoc.js +1 -6
- package/server/modules/lists/ls-dknphep.js +1 -1
- package/server/modules/lists/ls-dmban.js +1 -4
- package/server/modules/lists/ls-dmbp.js +1 -7
- package/server/modules/lists/ls-dmca.js +1 -1
- package/server/modules/lists/ls-dmchietkhau.js +1 -19
- package/server/modules/lists/ls-dmchietkhauhd.js +1 -4
- package/server/modules/lists/ls-dmchucvu.js +1 -2
- package/server/modules/lists/ls-dmcpmh.js +1 -1
- package/server/modules/lists/ls-dmdiemthuong.js +1 -4
- package/server/modules/lists/ls-dmdoi.js +1 -4
- package/server/modules/lists/ls-dmdoituongdanhgia.js +1 -1
- package/server/modules/lists/ls-dmdt.js +1 -11
- package/server/modules/lists/ls-dmdvt.js +1 -2
- package/server/modules/lists/ls-dmgiaban.js +1 -4
- package/server/modules/lists/ls-dmgiamua.js +1 -4
- package/server/modules/lists/ls-dmgiathitruong.js +1 -15
- package/server/modules/lists/ls-dmgiathitruong_ngay.js +1 -2
- package/server/modules/lists/ls-dmgiathitruong_theodoi.js +1 -1
- package/server/modules/lists/ls-dmhoahonghd.js +1 -1
- package/server/modules/lists/ls-dmhoahongnpp.js +1 -1
- package/server/modules/lists/ls-dmkc.js +1 -3
- package/server/modules/lists/ls-dmkho.js +1 -1
- package/server/modules/lists/ls-dmkhuyenmai.js +1 -5
- package/server/modules/lists/ls-dmkhuyenmaihd.js +1 -3
- package/server/modules/lists/ls-dmletet.js +1 -1
- package/server/modules/lists/ls-dmlo.js +1 -1
- package/server/modules/lists/ls-dmloaicong.js +1 -1
- package/server/modules/lists/ls-dmloaits.js +1 -1
- package/server/modules/lists/ls-dmnckkm.js +1 -7
- package/server/modules/lists/ls-dmnghiepvu.js +1 -1
- package/server/modules/lists/ls-dmnguonvon.js +1 -1
- package/server/modules/lists/ls-dmnhnv.js +1 -6
- package/server/modules/lists/ls-dmnhtask.js +1 -5
- package/server/modules/lists/ls-dmnkh.js +1 -6
- package/server/modules/lists/ls-dmntt.js +1 -6
- package/server/modules/lists/ls-dmnv.js +1 -17
- package/server/modules/lists/ls-dmnvt.js +1 -8
- package/server/modules/lists/ls-dmphatdichvu.js +1 -3
- package/server/modules/lists/ls-dmphi.js +1 -6
- package/server/modules/lists/ls-dmqct.js +1 -2
- package/server/modules/lists/ls-dmqddvt.js +1 -3
- package/server/modules/lists/ls-dmtanggiamts.js +1 -1
- package/server/modules/lists/ls-dmto.js +1 -5
- package/server/modules/lists/ls-dmtt.js +1 -7
- package/server/modules/lists/ls-dmvt.js +1 -68
- package/server/modules/lists/ls-dmyt.js +1 -1
- package/server/modules/lists/ls-dokho.js +1 -1
- package/server/modules/lists/ls-dvcs.js +1 -1
- package/server/modules/lists/ls-ecomcategories.js +1 -5
- package/server/modules/lists/ls-ecomcategories_cty.js +1 -5
- package/server/modules/lists/ls-email.js +1 -4
- package/server/modules/lists/ls-events.js +1 -3
- package/server/modules/lists/ls-evoucher.js +1 -3
- package/server/modules/lists/ls-experiencejourney.js +1 -1
- package/server/modules/lists/ls-experiencejourneydata.js +1 -3
- package/server/modules/lists/ls-experiencejourneypersona.js +1 -4
- package/server/modules/lists/ls-experiencejourneystage.js +1 -1
- package/server/modules/lists/ls-fbconversation.js +1 -2
- package/server/modules/lists/ls-fbmessage.js +1 -2
- package/server/modules/lists/ls-fbpage.js +1 -11
- package/server/modules/lists/ls-fbpost.js +1 -2
- package/server/modules/lists/ls-file.js +1 -31
- package/server/modules/lists/ls-financialroadmap.js +1 -3
- package/server/modules/lists/ls-flow.js +1 -6
- package/server/modules/lists/ls-flowdata.js +1 -1
- package/server/modules/lists/ls-folder.js +1 -1
- package/server/modules/lists/ls-form.js +1 -1
- package/server/modules/lists/ls-forminfo.js +1 -1
- package/server/modules/lists/ls-formvalue.js +1 -1
- package/server/modules/lists/ls-giaoca.js +1 -4
- package/server/modules/lists/ls-group.js +1 -5
- package/server/modules/lists/ls-hlink.js +1 -1
- package/server/modules/lists/ls-hlinkvalue.js +1 -1
- package/server/modules/lists/ls-hmcn.js +1 -2
- package/server/modules/lists/ls-hspbts.js +1 -3
- package/server/modules/lists/ls-introducebonus.js +1 -4
- package/server/modules/lists/ls-introducecode.js +1 -10
- package/server/modules/lists/ls-introducer.js +1 -20
- package/server/modules/lists/ls-kbm-bcdkt.js +1 -1
- package/server/modules/lists/ls-kbm-bcqt.js +1 -5
- package/server/modules/lists/ls-kbm-kqhdkd.js +1 -1
- package/server/modules/lists/ls-kbm-lcttgt.js +1 -1
- package/server/modules/lists/ls-kbm-lctttt.js +1 -1
- package/server/modules/lists/ls-kbm-pttct.js +1 -3
- package/server/modules/lists/ls-kbm-tkgtgt.js +1 -3
- package/server/modules/lists/ls-kbm-tmbctc.js +1 -3
- package/server/modules/lists/ls-kehoachdtcp.js +1 -4
- package/server/modules/lists/ls-keyresult.js +1 -7
- package/server/modules/lists/ls-khunghangthanhvien.js +1 -1
- package/server/modules/lists/ls-kygui.js +1 -19
- package/server/modules/lists/ls-label.js +1 -1
- package/server/modules/lists/ls-lienhe.js +1 -4
- package/server/modules/lists/ls-like-module.js +1 -1
- package/server/modules/lists/ls-link.js +1 -1
- package/server/modules/lists/ls-loaidiem.js +1 -1
- package/server/modules/lists/ls-lock.js +1 -1
- package/server/modules/lists/ls-log.js +1 -3
- package/server/modules/lists/ls-mailaccount.js +1 -5
- package/server/modules/lists/ls-mailreceived.js +1 -5
- package/server/modules/lists/ls-mailschedule.js +1 -7
- package/server/modules/lists/ls-mailsent.js +1 -4
- package/server/modules/lists/ls-mailtemplate.js +1 -4
- package/server/modules/lists/ls-maudanhgia.js +1 -3
- package/server/modules/lists/ls-message2.js +1 -8
- package/server/modules/lists/ls-message2setting.js +1 -5
- package/server/modules/lists/ls-news.js +1 -7
- package/server/modules/lists/ls-newsfeed.js +1 -4
- package/server/modules/lists/ls-note.js +1 -6
- package/server/modules/lists/ls-okr.js +1 -5
- package/server/modules/lists/ls-okrdiagram.js +1 -1
- package/server/modules/lists/ls-opportunity.js +1 -5
- package/server/modules/lists/ls-options.js +1 -4
- package/server/modules/lists/ls-parameter.js +1 -3
- package/server/modules/lists/ls-participant.js +1 -10
- package/server/modules/lists/ls-phieudanhgia.js +1 -7
- package/server/modules/lists/ls-phucap.js +1 -2
- package/server/modules/lists/ls-profile.js +1 -1
- package/server/modules/lists/ls-ptthanhtoan.js +1 -3
- package/server/modules/lists/ls-qts-dieuchinh.js +1 -2
- package/server/modules/lists/ls-qts-dieuchuyen.js +1 -8
- package/server/modules/lists/ls-reason.js +1 -1
- package/server/modules/lists/ls-rpt.js +1 -5
- package/server/modules/lists/ls-rptform.js +1 -4
- package/server/modules/lists/ls-service.js +1 -3
- package/server/modules/lists/ls-shortcut.js +1 -1
- package/server/modules/lists/ls-smsaccount.js +1 -1
- package/server/modules/lists/ls-smssend.js +1 -3
- package/server/modules/lists/ls-sosanxuat.js +1 -4
- package/server/modules/lists/ls-step.js +1 -1
- package/server/modules/lists/ls-strategicdiagram.js +1 -1
- package/server/modules/lists/ls-strategicgoal.js +1 -3
- package/server/modules/lists/ls-strategickpi.js +1 -7
- package/server/modules/lists/ls-strategicobjective.js +1 -3
- package/server/modules/lists/ls-strategicplan.js +1 -6
- package/server/modules/lists/ls-support.js +1 -3
- package/server/modules/lists/ls-task.js +1 -34
- package/server/modules/lists/ls-taskreg.js +1 -2
- package/server/modules/lists/ls-tc.js +1 -1
- package/server/modules/lists/ls-templaterpt.js +1 -5
- package/server/modules/lists/ls-templatevoucher.js +1 -1
- package/server/modules/lists/ls-tontucthoi.js +1 -3
- package/server/modules/lists/ls-trangthaiapp.js +1 -3
- package/server/modules/lists/ls-transaction.js +1 -4
- package/server/modules/lists/ls-usergroup.js +1 -7
- package/server/modules/lists/ls-vat.js +1 -1
- package/server/modules/lists/ls-vatra.js +1 -5
- package/server/modules/lists/ls-vatvao.js +1 -6
- package/server/modules/lists/ls-waitevent.js +1 -1
- package/server/modules/lists/ls-warranty.js +1 -4
- package/server/modules/lists/ls_hanmucton.js +1 -3
- package/server/modules/lists/ls_hspb.js +1 -4
- package/server/modules/lists/ls_spdd_ck.js +1 -3
- package/server/modules/lists/ls_spdd_dk.js +1 -3
- package/server/modules/lists/ls_ytdd_ck.js +1 -4
- package/server/modules/lists/ls_ytdd_dk.js +1 -4
- package/server/modules/lists/sys-attend.js +1 -4
- package/server/modules/lists/sys-follow.js +1 -4
- package/server/modules/lists/sys-right.js +1 -2
- package/server/modules/public/app.js +1 -4
- package/server/modules/public/approve.js +1 -37
- package/server/modules/public/callin.js +1 -7
- package/server/modules/public/comment.js +1 -5
- package/server/modules/public/dmnvt.js +1 -4
- package/server/modules/public/dmvt.js +1 -9
- package/server/modules/public/file.js +1 -11
- package/server/modules/public/form.js +1 -7
- package/server/modules/public/forminfo.js +1 -1
- package/server/modules/public/group.js +1 -4
- package/server/modules/public/hlink.js +1 -3
- package/server/modules/public/introducecode.js +1 -1
- package/server/modules/public/listinfo.js +1 -1
- package/server/modules/public/media-webhook.js +1 -1
- package/server/modules/public/partner.js +1 -1
- package/server/modules/public/paymentCallback.js +1 -32
- package/server/modules/public/province.js +1 -1
- package/server/modules/public/ptthanhtoan.js +1 -4
- package/server/modules/public/subscribe.js +1 -30
- package/server/modules/public/support.js +1 -3
- package/server/modules/public/tableinfo.js +1 -1
- package/server/modules/public/trialinfo.js +1 -4
- package/server/modules/public/versioninfo.js +1 -1
- package/server/modules/reports/calc-tinhgiatb.js +1 -6
- package/server/modules/reports/calc-tinhgiathanh.js +1 -6
- package/server/modules/reports/calc-tinhkhauhaots.js +1 -3
- package/server/modules/reports/calc-tinhluong.js +1 -37
- package/server/modules/reports/rp-analyzedata.js +1 -6
- package/server/modules/reports/rp-assbonus.js +1 -4
- package/server/modules/reports/rp-assinterest.js +1 -8
- package/server/modules/reports/rp-assproductowners.js +1 -3
- package/server/modules/reports/rp-asssupply.js +1 -1
- package/server/modules/reports/rp-asstransferlog.js +1 -10
- package/server/modules/reports/rp-banggiatb.js +1 -3
- package/server/modules/reports/rp-bangtinhkhauhao.js +1 -6
- package/server/modules/reports/rp-baocaokhachhang.js +1 -6
- package/server/modules/reports/rp-bcdkt.js +1 -11
- package/server/modules/reports/rp-bcintroducebonus.js +1 -4
- package/server/modules/reports/rp-bckhtiemnang.js +1 -3
- package/server/modules/reports/rp-bcqt.js +1 -85
- package/server/modules/reports/rp-bkct.js +1 -13
- package/server/modules/reports/rp-bkshipbook.js +1 -8
- package/server/modules/reports/rp-bkvanchuyen.js +1 -8
- package/server/modules/reports/rp-bkvatra.js +1 -7
- package/server/modules/reports/rp-bkvatvao.js +1 -7
- package/server/modules/reports/rp-capnhatsocaitc.js +1 -4
- package/server/modules/reports/rp-cdpsdiem.js +1 -4
- package/server/modules/reports/rp-cdpsdt.js +1 -5
- package/server/modules/reports/rp-cdpskh.js +1 -7
- package/server/modules/reports/rp-cdpsnphep.js +1 -3
- package/server/modules/reports/rp-cdpstk.js +1 -4
- package/server/modules/reports/rp-chitietchitientheohoadon.js +1 -12
- package/server/modules/reports/rp-chitiettaisan.js +1 -13
- package/server/modules/reports/rp-chitietthutientheohoadon.js +1 -13
- package/server/modules/reports/rp-ckcn.js +1 -3
- package/server/modules/reports/rp-ckdiem.js +1 -2
- package/server/modules/reports/rp-cktk.js +1 -3
- package/server/modules/reports/rp-ckvt.js +1 -10
- package/server/modules/reports/rp-ckvttheokho.js +1 -4
- package/server/modules/reports/rp-ckvttheotg.js +1 -4
- package/server/modules/reports/rp-ckvttt.js +1 -3
- package/server/modules/reports/rp-congnophaithutheotuoino.js +1 -3
- package/server/modules/reports/rp-congnophaitratheotuoino.js +1 -3
- package/server/modules/reports/rp-congnosapthu.js +1 -4
- package/server/modules/reports/rp-congnosaptra.js +1 -4
- package/server/modules/reports/rp-congviectheobp.js +1 -9
- package/server/modules/reports/rp-congviectheodt.js +1 -8
- package/server/modules/reports/rp-congviectheokh.js +1 -8
- package/server/modules/reports/rp-congviectheonv.js +1 -9
- package/server/modules/reports/rp-congviectheotimeline.js +1 -6
- package/server/modules/reports/rp-ctbanle.js +1 -15
- package/server/modules/reports/rp-ctbanle2.js +1 -20
- package/server/modules/reports/rp-ctbanlectv.js +1 -20
- package/server/modules/reports/rp-ctbanlenpp.js +1 -24
- package/server/modules/reports/rp-ctdanhgianhanvien.js +1 -8
- package/server/modules/reports/rp-cthangbanbitralai.js +1 -4
- package/server/modules/reports/rp-ctmuahang.js +1 -7
- package/server/modules/reports/rp-cttralaihang.js +1 -4
- package/server/modules/reports/rp-databanle.js +1 -10
- package/server/modules/reports/rp-diemthuong.js +1 -2
- package/server/modules/reports/rp-dkcn.js +1 -3
- package/server/modules/reports/rp-dktk.js +1 -2
- package/server/modules/reports/rp-dsnhanviencm.js +1 -9
- package/server/modules/reports/rp-dsnhanvientb.js +1 -9
- package/server/modules/reports/rp-dtbanlekempk.js +1 -9
- package/server/modules/reports/rp-dtbanletheoct.js +1 -23
- package/server/modules/reports/rp-dtbanletheoctkempk.js +1 -25
- package/server/modules/reports/rp-dtbanletheokh.js +1 -20
- package/server/modules/reports/rp-dtbanletheokhnpp.js +1 -19
- package/server/modules/reports/rp-dtbanletheokho.js +1 -18
- package/server/modules/reports/rp-dtbanletheonam.js +1 -3
- package/server/modules/reports/rp-dtbanletheongay.js +1 -1
- package/server/modules/reports/rp-dtbanletheonpp.js +1 -23
- package/server/modules/reports/rp-dtbanletheonv.js +1 -19
- package/server/modules/reports/rp-dtbanletheoquy.js +1 -3
- package/server/modules/reports/rp-dtbanletheosp.js +1 -8
- package/server/modules/reports/rp-dtbanletheospnpp.js +1 -6
- package/server/modules/reports/rp-dtbanletheothang.js +1 -3
- package/server/modules/reports/rp-dtbanletheothungan.js +1 -12
- package/server/modules/reports/rp-dtbanletheovt.js +1 -2
- package/server/modules/reports/rp-dtbanletheovtnpp.js +1 -2
- package/server/modules/reports/rp-dutoanthuchitheodt.js +1 -4
- package/server/modules/reports/rp-getPXC2PNC.js +1 -8
- package/server/modules/reports/rp-getariseofaccountsbymonth.js +1 -4
- package/server/modules/reports/rp-getbtpb.js +1 -6
- package/server/modules/reports/rp-getcashbycashier.js +1 -7
- package/server/modules/reports/rp-getcschietkhau.js +1 -5
- package/server/modules/reports/rp-getdinhmuc4lenhcp.js +1 -7
- package/server/modules/reports/rp-getdinhmuc4pxk.js +1 -9
- package/server/modules/reports/rp-getdk4pht.js +1 -8
- package/server/modules/reports/rp-getdk4pkc.js +1 -9
- package/server/modules/reports/rp-getdttheoca.js +1 -5
- package/server/modules/reports/rp-getinvoice2pay.js +1 -4
- package/server/modules/reports/rp-getinvoice2receive.js +1 -4
- package/server/modules/reports/rp-getinvoice2return.js +1 -5
- package/server/modules/reports/rp-getinvoice2return_bl.js +1 -6
- package/server/modules/reports/rp-getkehoachmh4lenhcp.js +1 -4
- package/server/modules/reports/rp-getkhauhao.js +1 -7
- package/server/modules/reports/rp-getluong.js +1 -8
- package/server/modules/reports/rp-getluongchuyen.js +1 -5
- package/server/modules/reports/rp-getpn2fee.js +1 -5
- package/server/modules/reports/rp-getpn2return.js +1 -5
- package/server/modules/reports/rp-getthanhpham4pnk.js +1 -7
- package/server/modules/reports/rp-getvc2xhd.js +1 -11
- package/server/modules/reports/rp-gt_cpnvltt.js +1 -6
- package/server/modules/reports/rp-hangbanbitralai.js +1 -5
- package/server/modules/reports/rp-hangthanhvien.js +1 -3
- package/server/modules/reports/rp-hoadonbanhangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoadonmuahangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoahong.js +1 -15
- package/server/modules/reports/rp-kcsns.js +1 -19
- package/server/modules/reports/rp-kgchamcong.js +1 -7
- package/server/modules/reports/rp-khoaso.js +1 -12
- package/server/modules/reports/rp-kiemtrasocaitcvssocai.js +1 -6
- package/server/modules/reports/rp-kqdanhgianhanvien.js +1 -5
- package/server/modules/reports/rp-kqhdkd.js +1 -7
- package/server/modules/reports/rp-lcttgt.js +1 -17
- package/server/modules/reports/rp-lctttt.js +1 -11
- package/server/modules/reports/rp-linkslist.js +1 -4
- package/server/modules/reports/rp-phanbochitienchohoadon.js +1 -11
- package/server/modules/reports/rp-phanbothutienchohoadon.js +1 -10
- package/server/modules/reports/rp-ptbitralai.js +1 -7
- package/server/modules/reports/rp-ptcttct.js +1 -22
- package/server/modules/reports/rp-ptdonhang.js +1 -8
- package/server/modules/reports/rp-pttct.js +1 -49
- package/server/modules/reports/rp-pttctkho.js +1 -32
- package/server/modules/reports/rp-pttctkho2.js +1 -29
- package/server/modules/reports/rp-referredusers.js +1 -1
- package/server/modules/reports/rp-sctbhxh.js +1 -4
- package/server/modules/reports/rp-sctcnkh.js +1 -17
- package/server/modules/reports/rp-sctdiem.js +1 -3
- package/server/modules/reports/rp-sctdt.js +1 -7
- package/server/modules/reports/rp-sctdtcp.js +1 -11
- package/server/modules/reports/rp-sctluong.js +1 -4
- package/server/modules/reports/rp-sctthuetncn.js +1 -4
- package/server/modules/reports/rp-scttk.js +1 -7
- package/server/modules/reports/rp-sctvt.js +1 -5
- package/server/modules/reports/rp-sctvt_sl.js +1 -5
- package/server/modules/reports/rp-sctvtnpp.js +1 -6
- package/server/modules/reports/rp-sctvttt.js +1 -5
- package/server/modules/reports/rp-search.js +1 -4
- package/server/modules/reports/rp-socai.js +1 -6
- package/server/modules/reports/rp-socaitk.js +1 -7
- package/server/modules/reports/rp-sochut.js +1 -7
- package/server/modules/reports/rp-sokho.js +1 -7
- package/server/modules/reports/rp-sokhott.js +1 -5
- package/server/modules/reports/rp-sonkbh.js +1 -5
- package/server/modules/reports/rp-sonkc.js +1 -6
- package/server/modules/reports/rp-sonkct.js +1 -5
- package/server/modules/reports/rp-sonkmh.js +1 -5
- package/server/modules/reports/rp-sonktt.js +1 -5
- package/server/modules/reports/rp-soquy.js +1 -11
- package/server/modules/reports/rp-sosanhkhvatt.js +1 -13
- package/server/modules/reports/rp-sosanhkhvatt2.js +1 -6
- package/server/modules/reports/rp-sotaisan.js +1 -13
- package/server/modules/reports/rp-sotiengui.js +1 -7
- package/server/modules/reports/rp-taodinhmuctudkhoc.js +1 -5
- package/server/modules/reports/rp-thbanhangkempk.js +1 -28
- package/server/modules/reports/rp-thdanhgianhanvien.js +1 -9
- package/server/modules/reports/rp-thgt.js +1 -6
- package/server/modules/reports/rp-thnxt.js +1 -12
- package/server/modules/reports/rp-thnxt_sl.js +1 -9
- package/server/modules/reports/rp-thnxtnpp.js +1 -10
- package/server/modules/reports/rp-thnxttt.js +1 -9
- package/server/modules/reports/rp-tkbanhangtheogioithieu.js +1 -9
- package/server/modules/reports/rp-tkgioithieukh.js +1 -4
- package/server/modules/reports/rp-tkgtgt.js +1 -7
- package/server/modules/reports/rp-tmbctc.js +1 -20
- package/server/modules/reports/rp-tonghopbanhang.js +1 -6
- package/server/modules/reports/rp-tonghopmuahang.js +1 -5
- package/server/modules/reports/rp-tonghoptralaihang.js +1 -5
- package/server/modules/reports/rp-tongquanbanle.js +1 -20
- package/server/modules/reports/rp-tongquanbds.js +1 -3
- package/server/modules/reports/rp-tongquancongty.js +1 -6
- package/server/modules/reports/rp-tongquanctvnpp.js +1 -12
- package/server/modules/reports/rp-tongquannvbh.js +1 -14
- package/server/modules/reports/rp-tongquannvnpp.js +1 -5
- package/server/modules/reports/rp-uoctinhnvl.js +1 -11
- package/server/modules/reports/rp-wallet.js +1 -3
- package/server/modules/reports/rpt-tkdiemtichluy.js +1 -9
- package/server/modules/systems/sys-app.js +1 -30
- package/server/modules/systems/sys-colleague.js +1 -11
- package/server/modules/systems/sys-domain.js +1 -4
- package/server/modules/systems/sys-ecomproductlines.js +1 -1
- package/server/modules/systems/sys-exportexceltemplate.js +1 -4
- package/server/modules/systems/sys-fieldright.js +1 -3
- package/server/modules/systems/sys-importexceltemplate.js +1 -4
- package/server/modules/systems/sys-labelinfo.js +1 -4
- package/server/modules/systems/sys-listinfo.js +1 -10
- package/server/modules/systems/sys-menuinfo.js +1 -4
- package/server/modules/systems/sys-message.js +1 -14
- package/server/modules/systems/sys-moduleinfo.js +1 -4
- package/server/modules/systems/sys-notification.js +1 -8
- package/server/modules/systems/sys-quanhuyen.js +1 -4
- package/server/modules/systems/sys-reportinfo.js +1 -4
- package/server/modules/systems/sys-rptobject.js +1 -3
- package/server/modules/systems/sys-schedule.js +1 -11
- package/server/modules/systems/sys-sysconfig.js +1 -3
- package/server/modules/systems/sys-sysgroup.js +1 -3
- package/server/modules/systems/sys-tableinfo.js +1 -3
- package/server/modules/systems/sys-templatestore.js +1 -5
- package/server/modules/systems/sys-tinhthanh.js +1 -4
- package/server/modules/systems/sys-token.js +1 -3
- package/server/modules/systems/sys-trangthai.js +1 -4
- package/server/modules/systems/sys-trialinfo.js +1 -3
- package/server/modules/systems/sys-user.js +1 -45
- package/server/modules/systems/sys-users.js +1 -10
- package/server/modules/systems/sys-versioninfo.js +1 -3
- package/server/modules/systems/sys-vietqrbanks.js +1 -4
- package/server/modules/systems/sys-xaphuong.js +1 -4
- package/server/modules/vouchers/vo-banggiaban.js +1 -5
- package/server/modules/vouchers/vo-bc1.js +1 -33
- package/server/modules/vouchers/vo-bc5.js +1 -15
- package/server/modules/vouchers/vo-bg1.js +1 -10
- package/server/modules/vouchers/vo-bg2.js +1 -12
- package/server/modules/vouchers/vo-bn1.js +1 -35
- package/server/modules/vouchers/vo-bn5.js +1 -15
- package/server/modules/vouchers/vo-dh2.js +1 -35
- package/server/modules/vouchers/vo-dinhmucsx.js +1 -6
- package/server/modules/vouchers/vo-dkb.js +1 -21
- package/server/modules/vouchers/vo-dn0.js +1 -9
- package/server/modules/vouchers/vo-dnm.js +1 -21
- package/server/modules/vouchers/vo-hd1.js +1 -36
- package/server/modules/vouchers/vo-hd2.js +1 -107
- package/server/modules/vouchers/vo-hd3.js +1 -44
- package/server/modules/vouchers/vo-hd4.js +1 -13
- package/server/modules/vouchers/vo-hd7.js +1 -29
- package/server/modules/vouchers/vo-hd8.js +1 -29
- package/server/modules/vouchers/vo-hde.js +1 -40
- package/server/modules/vouchers/vo-htl.js +1 -11
- package/server/modules/vouchers/vo-kbbtpb.js +1 -6
- package/server/modules/vouchers/vo-kehoachmh.js +1 -13
- package/server/modules/vouchers/vo-lenhcapphat.js +1 -10
- package/server/modules/vouchers/vo-lenhsx.js +1 -12
- package/server/modules/vouchers/vo-pbl.js +1 -93
- package/server/modules/vouchers/vo-pc0.js +1 -14
- package/server/modules/vouchers/vo-pc1.js +1 -31
- package/server/modules/vouchers/vo-pc2.js +1 -24
- package/server/modules/vouchers/vo-pc3.js +1 -14
- package/server/modules/vouchers/vo-pc5.js +1 -15
- package/server/modules/vouchers/vo-pc6.js +1 -19
- package/server/modules/vouchers/vo-pcl.js +1 -7
- package/server/modules/vouchers/vo-pdn.js +1 -11
- package/server/modules/vouchers/vo-pdx.js +1 -9
- package/server/modules/vouchers/vo-pgh.js +1 -19
- package/server/modules/vouchers/vo-pht.js +1 -7
- package/server/modules/vouchers/vo-pkc.js +1 -7
- package/server/modules/vouchers/vo-pkh.js +1 -10
- package/server/modules/vouchers/vo-pkk.js +1 -12
- package/server/modules/vouchers/vo-pkt.js +1 -13
- package/server/modules/vouchers/vo-pn1.js +1 -33
- package/server/modules/vouchers/vo-pn2.js +1 -16
- package/server/modules/vouchers/vo-pn3.js +1 -18
- package/server/modules/vouchers/vo-pn5.js +1 -19
- package/server/modules/vouchers/vo-pn6.js +1 -18
- package/server/modules/vouchers/vo-pn9.js +1 -22
- package/server/modules/vouchers/vo-pnc.js +1 -20
- package/server/modules/vouchers/vo-pnh.js +1 -20
- package/server/modules/vouchers/vo-pnk.js +1 -14
- package/server/modules/vouchers/vo-pnknpp.js +1 -12
- package/server/modules/vouchers/vo-po1.js +1 -15
- package/server/modules/vouchers/vo-ppb.js +1 -8
- package/server/modules/vouchers/vo-pt1.js +1 -21
- package/server/modules/vouchers/vo-pt5.js +1 -15
- package/server/modules/vouchers/vo-ptl.js +1 -8
- package/server/modules/vouchers/vo-purchase_contract.js +1 -9
- package/server/modules/vouchers/vo-pxc.js +1 -22
- package/server/modules/vouchers/vo-pxh.js +1 -28
- package/server/modules/vouchers/vo-pxk.js +1 -15
- package/server/modules/vouchers/vo-pxknpp.js +1 -14
- package/server/modules/vouchers/vo-qts.js +1 -12
- package/server/modules/vouchers/vo-sale_contract.js +1 -11
- package/server/modules/vouchers/vo-shipbook.js +1 -17
- package/server/modules/vouchers/vo-so1.js +1 -126
- package/server/modules/vouchers/vo-so2.js +1 -37
- package/server/modules/vouchers/vo-so3.js +1 -41
- package/server/modules/vouchers/vo-so5.js +1 -57
- package/server/modules/vouchers/vo-so7.js +1 -97
- package/server/modules/vouchers/vo-so9.js +1 -119
- package/server/modules/vouchers/vo-vanchuyen.js +1 -14
- package/server/modules/vouchers/vo-xhd.js +1 -33
- package/server/route.js +1 -51
- package/server/services/invoiceFetcher.js +1 -15
- package/server/sslConfig.js +1 -2
- package/server/transactionMiddleware.js +1 -5
- package/server/workers/backupApp.js +1 -9
- package/server/workers/calcGrid.js +1 -9
- package/server/workers/customerOnImport.js +1 -8
- package/server/workers/dmvtOnImport.js +1 -9
- package/server/workers/excelParser.js +1 -9
- package/server/workers/inputWorker.js +1 -6
- package/server/workers/pushNotify.js +1 -10
- package/server/workers/reportWorker.js +1 -7
- package/server/workers/restoreApp.js +1 -23
- package/server/workers/runScript.js +1 -4
- package/server/workers/sendEmail.js +1 -13
- package/server/workers/webhook.js +1 -5
package/server/libs/ckvttt.js
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
const cdvt=global.getModel("cdvt"),dmvt=global.getModel("dmvt"),sokho=global.getModel("sokhott"),ckvtcapphat=require("./ckvtcapphat"),hanmucton=global.getModel("hanmucton"),utils=require("./utils"),async=require("async"),underscore=require("underscore"),moment=require("moment");
|
|
2
|
-
module.exports=async($condition$$,$fn$$)=>{$fn$$||=()=>{};!$condition$$.ngay&&$condition$$.den_ngay&&($condition$$.ngay=$condition$$.den_ngay);let $ma_dvcs$$=$condition$$.ma_dvcs,$ma_kho$$=$condition$$.ma_kho,$ma_vt$$=$condition$$.ma_vt;$ma_vt$$&&underscore.isArray($ma_vt$$)&&($ma_vt$$={$in:Object.assign($ma_vt$$)});let $ngay$$,$nam$$,$ngay_dn$$;$ngay$$=moment($condition$$.ngay).endOf("date").toDate();if($condition$$.tu_ngay){let $tu_ngay$$=new Date($condition$$.tu_ngay);$nam$$=$tu_ngay$$.getFullYear();
|
|
3
|
-
$ngay_dn$$=moment($tu_ngay$$).startOf("year").toDate()}else $nam$$=$ngay$$.getFullYear(),$ngay_dn$$=moment($ngay$$).startOf("year").toDate();let $id_app$$=$condition$$.id_app;return new Promise(($resolve$$,$reject$$)=>{async.series({ckcapphat:$callback$$=>{setImmediate(()=>{ckvtcapphat($condition$$,($e$$,$rs$$)=>{$callback$$($e$$,$rs$$)})})},dn:$callback$$=>{setImmediate(()=>{const $c_dk$$={id_app:$id_app$$,nam:$nam$$};$ma_kho$$&&($c_dk$$.ma_kho=$ma_kho$$);$ma_dvcs$$&&($c_dk$$.ma_dvcs=$ma_dvcs$$);
|
|
4
|
-
$ma_vt$$&&($c_dk$$.ma_vt=$ma_vt$$);$condition$$.ma_lo&&($c_dk$$.ma_lo=$condition$$.ma_lo);$condition$$.han_sd&&($c_dk$$.han_sd=$condition$$.han_sd);$condition$$.ma_tt1&&($c_dk$$.ma_tt1=$condition$$.ma_tt1);$condition$$.ma_tt2&&($c_dk$$.ma_tt2=$condition$$.ma_tt2);$condition$$.ma_tt3&&($c_dk$$.ma_tt3=$condition$$.ma_tt3);cdvt.find($c_dk$$).lean().then($results$$=>{$callback$$(null,$results$$)}).catch($error$$=>{$callback$$($error$$)})})},hanmucton:$callback$$=>{setImmediate(()=>{const $c_dk$$={id_app:$id_app$$};
|
|
5
|
-
$ma_kho$$&&($c_dk$$.ma_kho=$ma_kho$$);$ma_dvcs$$&&($c_dk$$.ma_dvcs=$ma_dvcs$$);$ma_vt$$&&($c_dk$$.ma_vt=$ma_vt$$);$condition$$.ma_lo&&($c_dk$$.ma_lo=$condition$$.ma_lo);$condition$$.han_sd&&($c_dk$$.han_sd=$condition$$.han_sd);$condition$$.ma_tt1&&($c_dk$$.ma_tt1=$condition$$.ma_tt1);$condition$$.ma_tt2&&($c_dk$$.ma_tt2=$condition$$.ma_tt2);$condition$$.ma_tt3&&($c_dk$$.ma_tt3=$condition$$.ma_tt3);hanmucton.find($c_dk$$).lean().then($results$$=>{$callback$$(null,$results$$)}).catch($error$$=>{$callback$$($error$$)})})},
|
|
6
|
-
ps:$callback$$=>{setImmediate(()=>{const $query$$={id_app:$id_app$$,ngay_ct:{$gte:$ngay_dn$$,$lte:$ngay$$}};$ma_kho$$&&($query$$.ma_kho=$ma_kho$$);$ma_dvcs$$&&($query$$.ma_dvcs=$ma_dvcs$$);$ma_vt$$&&($query$$.ma_vt=$ma_vt$$);$condition$$.ma_lo&&($query$$.ma_lo=$condition$$.ma_lo);$condition$$.han_sd&&($query$$.han_sd=$condition$$.han_sd);$condition$$.ma_tt1&&($query$$.ma_tt1=$condition$$.ma_tt1);$condition$$.ma_tt2&&($query$$.ma_tt2=$condition$$.ma_tt2);$condition$$.ma_tt3&&($query$$.ma_tt3=$condition$$.ma_tt3);
|
|
7
|
-
$condition$$.id_ct&&($query$$.id_ct={$ne:$condition$$.id_ct});sokho.find($query$$).lean().then($pss$$=>{$pss$$=$pss$$.map($ps$$=>{$ps$$.sl_nhap=utils.round($ps$$.sl_nhap_qd,4);$ps$$.sl_xuat=utils.round($ps$$.sl_xuat_qd,4);return $ps$$});$callback$$(null,$pss$$)}).catch($error$$=>{$callback$$($error$$)})})},ton_kho_mac_dinh:$callback$$=>{setImmediate(()=>{let $query$$={id_app:$id_app$$,ton_kho_mac_dinh:{$nin:[null,void 0,0]}};$ma_vt$$&&($query$$.ma_vt=$ma_vt$$);dmvt.find($query$$,{ma_vt:1,ton_kho_mac_dinh:1}).lean().then($rs$$=>
|
|
8
|
-
{$callback$$(null,$rs$$)}).catch($e$$=>{console.error($e$$)})})}},($ckcapphat_error$$,$data_results$$)=>{if($ckcapphat_error$$)return $fn$$($ckcapphat_error$$),$reject$$(Error($ckcapphat_error$$));$ckcapphat_error$$=$data_results$$.ckcapphat.map($c$$=>{$c$$.ton00_capphat=$c$$.ton00;$c$$.du00_capphat=$c$$.du00;$c$$.ton00=0;$c$$.du00=0;return $c$$});$data_results$$=$data_results$$.dn.concat($data_results$$.ps).concat($ckcapphat_error$$).concat($data_results$$.ton_kho_mac_dinh).concat($data_results$$.hanmucton);
|
|
9
|
-
($ckcapphat_error$$=$condition$$.groupBy||$condition$$.groupby)||($ckcapphat_error$$=["ma_vt"]);if(underscore.isString($ckcapphat_error$$))if($ckcapphat_error$$.indexOf("[")>=0)try{$ckcapphat_error$$=JSON.parse($ckcapphat_error$$)}catch($e$$){console.error($e$$)}else $ckcapphat_error$$=$ckcapphat_error$$.split(",");$data_results$$.groupBy($ckcapphat_error$$,"sl_nhap sl_xuat ton00 du00 ton00_capphat du00_capphat tien_nhap tien_xuat ton_kho_mac_dinh ton_toi_thieu ton_toi_da".split(" "),($e$$,$groups$$)=>
|
|
10
|
-
{if($e$$)return $fn$$($e$$),$reject$$(Error($e$$));setImmediate(()=>{$condition$$.canh_bao_ton_min&&($groups$$=$groups$$.filter($g$$=>$g$$.ton_toi_thieu&&$g$$.ton_toi_thieu>$g$$.ton00));$condition$$.canh_bao_ton_max&&($groups$$=$groups$$.filter($g$$=>$g$$.ton_toi_da&&$g$$.ton_toi_da<$g$$.ton00));for(let $r$$ of $groups$$)$r$$.ton00=utils.round($r$$.ton00+$r$$.sl_nhap-$r$$.sl_xuat,4),$r$$.du00=Math.roundBy($r$$.du00,0)+Math.roundBy($r$$.tien_nhap,0)-Math.roundBy($r$$.tien_xuat,0),$r$$.sl_nhap=0,$r$$.sl_xuat=
|
|
11
|
-
0,$r$$.tien_nhap=0,$r$$.tien_xuat=0,$r$$.ton=$r$$.ton00-($r$$.ton00_capphat>0?$r$$.ton00_capphat:0),$r$$.du=$r$$.du00-($r$$.du00_capphat>0?$r$$.du00_capphat:0);$fn$$(null,$groups$$);$resolve$$($groups$$)})})})})};
|
|
1
|
+
const _0x321986=_0x1667;(function(_0x2867d1,_0x1b31a2){const _0x2515aa=_0x1667,_0x2d1de0=_0x2867d1();while(!![]){try{const _0x5ccbaf=parseInt(_0x2515aa(0x143))/0x1+parseInt(_0x2515aa(0x1d6))/0x2*(parseInt(_0x2515aa(0x189))/0x3)+-parseInt(_0x2515aa(0x1da))/0x4+-parseInt(_0x2515aa(0x181))/0x5+parseInt(_0x2515aa(0x167))/0x6+parseInt(_0x2515aa(0x1ae))/0x7*(-parseInt(_0x2515aa(0x1c3))/0x8)+parseInt(_0x2515aa(0x139))/0x9*(parseInt(_0x2515aa(0x17a))/0xa);if(_0x5ccbaf===_0x1b31a2)break;else _0x2d1de0['push'](_0x2d1de0['shift']());}catch(_0x2465d8){_0x2d1de0['push'](_0x2d1de0['shift']());}}}(_0x1891,0xbd580));function _0x1891(){const _0x334800=['sLDgC0u','C2rdsem','sKPZs1G','C2XFBMHHCa','BwfFDhqZ','CM91BMq','EgjLCfy','qvfJshm','DM9PC2S','Bgv3C0m','BM1AqLu','BgvHBG','zMXwDeK','D0PfCwi','ALPnwxy','AhD5sLy','BwfW','BwfFDhqX','Bxvnzgq','uufmDNC','mZqZENPZugvl','BwH1vxi','uxryrLe','kcGOlISPkYKRksSK','EvbjwK8','ExreyMG','AgfUBxvJDg9U','D3LsAwK','D0v4wgG','DgHLBG','DLbYufC','su9qCwe','r1jfBvq','qw5hBgu','uuPkvKS','zhuWma','BgrTEgC','AhLUreS','AurftMK','AgDurKC','q05Ytve','nJCWntz0qMXeB1C','seDcq3q','CM91BMrcEq','rhrMuM4','uK9rDwG','z0PqyNe','BwfFDNq','CendDM0','vwDID1i','zgvUx25NyxK','z3jVDxbcEq','BMDHEq','su5sveS','tK1Vu3q','Dw5KzxjZy29Yzq','DhvFBMDHEq','wezYt0m','qwrPsM0','BKPgyvO','mZbXwxjewuy','vfHnqMm','zKHWvfe','r2PSD1u','ntiXmtqZmKnjz0zyDa','Cwf6CwW','C2XFEhvHDa','A1HvveC','BwfFzhzJCW','uLfXr1G','ChfAzwu','C0XmEeK','B3PssKm','q2f6qvi','t1fLCMq','tLner3a','ELLdz0e','zhv5Eum','y2fUAf9Iyw9FDg9Ux21HEa','AwrFyxbW','t1vlrwC','q1z0q0i','Dg9U','wLDsEu4','C2XFBMHHCf9Xza','EwDgs3q','Dg9Umda','C3bSAxq','vufAwgi','BwfFDhqY','we5kww4','yMHhzeK','CgfYC2u','DKPLCMS','ruXrr3C','tw5qD0m','y2TJyxbWAgf0','swzzr3i','uuTSDhy','zgf0zq','uMDgq3a','sKfotLC','Devuwuy','mtq0mtuZA2nstxze','y0jLChe','uM5us0S','C2vYAwvZ','z2v0rNvSBfLLyxi','BxvNCNG','AwrFy3q','DwHuwva','Dwv5v2G','C29RAg90Da','odq5odfNz0P2CKe','AgTnvNO','CLbLqLO','s3DfBMO','zxf0qvm','BwfFBg8','rwfbvu4','vfDvr0W','C3rHCNrpzG','DgLLBL94Dwf0','zfPLBgS','AhD4CKS','yxbWBhK','zxLLA1O','Dg9UmdbFy2fWCgHHDa','Dg9Ux3rVAv90AgLLDq','Bw9Tzw50','BwfFA2HV','Axrwtw4','q0LLELi','Dg9tDhjPBMC','q3bWyNe','AgfUx3nK','Dg9Ux2TOB19TywnFzgLUAa','sgzkuhK','s1fKCvu','zg12Da','qKHbvhq','AKjbyLO','vwHus3e','tujZq2e','z0rItLG','s1Hpwgm','Devqugq','EwvHCG','sNnhy28','mJG5ndm4mMXhzezozG','vvvYzLa','wKL2yxO','Dw1kEKq','C2XFEhvHDf9Xza','r0f0D3q','BxrrAeO','DeHpCwq','q2nuvgS','zvPXB1y','u3DODLa','mhW0Fdz8mNW3Fdf8nxWZ','sNzyzNu','rK9tBxO','CK1jC0q','y2fUAf9Iyw9FDg9Ux21PBG','D1bHBw8','y2f0y2G','y29Uy2f0','mtCWme5yBvLNuq','zw1NEwm','Dg9Ux3rVAv9Kyq','A3jJANG','DgLLBL9UAgfW','r29Rzg0','uvP3weG','ntq1oduYnwPtBgXOAq','EfPHAui','t2LpueS','sKLTqNO','Ee5MExG','zMLUza','zhuWmf9JyxbWAgf0','q1r6B24','ntGXmtn1rKfureS','zxjYB3i','u0jhBxK','ueLIBLC','D2LkBgi','zwTAuK0','rMfqz0O','DKjZCeu','EgXgrwC','z2v0tw9KzwW','AgnyBg8','AxntDhjPBMC','y3L4vg4','tMzes2O','yxnZAwDU','sLnItMq','Dg9eyxrL'];_0x1891=function(){return _0x334800;};return _0x1891();}function _0x1667(_0x32e274,_0x3f9cd8){const _0x2bfa53=_0x1891();return _0x1667=function(_0x3fffc2,_0x56698c){_0x3fffc2=_0x3fffc2-0x125;let _0x18914a=_0x2bfa53[_0x3fffc2];if(_0x1667['IlaVKT']===undefined){var _0x1667a3=function(_0xef19dd){const _0x19457a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2b2c99='',_0x5b3e2c='',_0x5896e7=_0x2b2c99+_0x1667a3;for(let _0xe3caa3=0x0,_0x36a8be,_0x1ea77b,_0x2a6b4f=0x0;_0x1ea77b=_0xef19dd['charAt'](_0x2a6b4f++);~_0x1ea77b&&(_0x36a8be=_0xe3caa3%0x4?_0x36a8be*0x40+_0x1ea77b:_0x1ea77b,_0xe3caa3++%0x4)?_0x2b2c99+=_0x5896e7['charCodeAt'](_0x2a6b4f+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x36a8be>>(-0x2*_0xe3caa3&0x6)):_0xe3caa3:0x0){_0x1ea77b=_0x19457a['indexOf'](_0x1ea77b);}for(let _0x48a216=0x0,_0x458a1c=_0x2b2c99['length'];_0x48a216<_0x458a1c;_0x48a216++){_0x5b3e2c+='%'+('00'+_0x2b2c99['charCodeAt'](_0x48a216)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5b3e2c);};_0x1667['uKvoeP']=_0x1667a3,_0x32e274=arguments,_0x1667['IlaVKT']=!![];}const _0x5b4beb=_0x2bfa53[0x0],_0x40ad25=_0x3fffc2+_0x5b4beb,_0x3e9017=_0x32e274[_0x40ad25];if(!_0x3e9017){const _0x43b9c5=function(_0x1a17b4){this['mhRjiN']=_0x1a17b4,this['epBGMK']=[0x1,0x0,0x0],this['gsNILQ']=function(){return'newState';},this['IyNcBo']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['FsrYRH']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x43b9c5['prototype']['GtUdht']=function(){const _0x1db746=new RegExp(this['IyNcBo']+this['FsrYRH']),_0x2e925e=_0x1db746['test'](this['gsNILQ']['toString']())?--this['epBGMK'][0x1]:--this['epBGMK'][0x0];return this['ngXCgj'](_0x2e925e);},_0x43b9c5['prototype']['ngXCgj']=function(_0x2f85cc){if(!Boolean(~_0x2f85cc))return _0x2f85cc;return this['liBJyn'](this['mhRjiN']);},_0x43b9c5['prototype']['liBJyn']=function(_0x33c641){for(let _0x4019a3=0x0,_0x3f39eb=this['epBGMK']['length'];_0x4019a3<_0x3f39eb;_0x4019a3++){this['epBGMK']['push'](Math['round'](Math['random']())),_0x3f39eb=this['epBGMK']['length'];}return _0x33c641(this['epBGMK'][0x0]);},new _0x43b9c5(_0x1667)['GtUdht'](),_0x18914a=_0x1667['uKvoeP'](_0x18914a),_0x32e274[_0x40ad25]=_0x18914a;}else _0x18914a=_0x3e9017;return _0x18914a;},_0x1667(_0x32e274,_0x3f9cd8);}const _0x56698c=(function(){const _0x24e476=_0x1667,_0x5e73d3={'AdirG':function(_0x4f6877,_0xda1df4,_0x5cb9cb){return _0x4f6877(_0xda1df4,_0x5cb9cb);},'JERrC':function(_0x5c6f66,_0x302378){return _0x5c6f66!==_0x302378;},'wPamo':function(_0x9f078a,_0x1d5439){return _0x9f078a===_0x1d5439;},'kXUTG':_0x24e476(0x1e6),'hynDK':'vIdEI'};let _0x2da346=!![];return function(_0x10eb6f,_0x568fee){const _0x5c6e3d=_0x2da346?function(){const _0x889777=_0x1667,_0x47a843={'xNfyx':function(_0x49a6a0,_0x358966,_0x42c5df){return _0x5e73d3['AdirG'](_0x49a6a0,_0x358966,_0x42c5df);}};if(_0x5e73d3['JERrC'](_0x889777(0x14a),'Zivnb')){if(_0x568fee){if(_0x5e73d3[_0x889777(0x177)](_0x5e73d3[_0x889777(0x1dd)],_0x5e73d3[_0x889777(0x1bf)]))_0x47a843[_0x889777(0x185)](_0x390b25,null,_0x359542);else{const _0x3fa802=_0x568fee[_0x889777(0x14f)](_0x10eb6f,arguments);return _0x568fee=null,_0x3fa802;}}}else _0xc9cf6c[_0x889777(0x1ce)]=_0x5b7bdb[_0x889777(0x1cc)];}:function(){};return _0x2da346=![],_0x5c6e3d;};}()),_0x3fffc2=_0x56698c(this,function(){const _0x3bf8f7=_0x1667,_0x265644={'xlFEg':_0x3bf8f7(0x1b1)};return _0x3fffc2[_0x3bf8f7(0x157)]()['search'](_0x265644[_0x3bf8f7(0x191)])[_0x3bf8f7(0x157)]()['constructor'](_0x3fffc2)['search'](_0x265644['xlFEg']);});_0x3fffc2();const cdvt=global[_0x321986(0x192)]('cdvt'),dmvt=global[_0x321986(0x192)](_0x321986(0x15d)),sokho=global[_0x321986(0x192)](_0x321986(0x142)),ckvtcapphat=require('./ckvtcapphat'),hanmucton=global[_0x321986(0x192)](_0x321986(0x1b4)),utils=require('./utils'),async=require('async'),underscore=require(_0x321986(0x1d1)),moment=require(_0x321986(0x153));module['exports']=async(_0x2deed8,_0x56563b)=>{const _0x49b09c=_0x321986,_0x25ee75={'lewsC':function(_0x5eb953,_0x5cfd85){return _0x5eb953(_0x5cfd85);},'vBspE':function(_0xd32db0,_0xe358b6){return _0xd32db0(_0xe358b6);},'iDENi':function(_0xdf291a,_0x4eaf03){return _0xdf291a(_0x4eaf03);},'Atfai':'fkVjl','JJsKX':function(_0x416513,_0x180248,_0x381177){return _0x416513(_0x180248,_0x381177);},'xxNiT':function(_0x12ac6d,_0x4dea25){return _0x12ac6d!==_0x4dea25;},'AdiJm':_0x49b09c(0x1b3),'CTzon':_0x49b09c(0x165),'XFrOC':_0x49b09c(0x19b),'RQqGX':function(_0x389b30,_0xd50cd1){return _0x389b30===_0xd50cd1;},'wExXh':_0x49b09c(0x14d),'xZaiB':function(_0x1e0297,_0x15009f){return _0x1e0297!==_0x15009f;},'vJerk':'LCTPM','ZHUKi':function(_0xb19664,_0x76bd25){return _0xb19664+_0x76bd25;},'QtXFQ':_0x49b09c(0x12c),'muMdd':_0x49b09c(0x198),'AnGle':function(_0x56c2ad,_0xa0b244){return _0x56c2ad===_0xa0b244;},'FaPgJ':_0x49b09c(0x134),'rPeBZ':_0x49b09c(0x15f),'YoBhC':function(_0x3e242f,_0x2a2ab0){return _0x3e242f(_0x2a2ab0);},'CVtCB':_0x49b09c(0x1c4),'jZMYv':_0x49b09c(0x1c9),'WIvdx':_0x49b09c(0x184),'NfDKj':_0x49b09c(0x1c6),'emgyc':'QrSIf','RgFCp':_0x49b09c(0x1dc),'UgbwR':_0x49b09c(0x1bd),'fHpTQ':_0x49b09c(0x151),'ueyWh':_0x49b09c(0x187),'JvXfu':_0x49b09c(0x17e),'PIbnW':_0x49b09c(0x14c),'mtQhJ':_0x49b09c(0x152),'gYbuz':'ton_toi_da','JANNW':'tWSIm','tETYF':_0x49b09c(0x1c8),'jDlpv':_0x49b09c(0x1a0),'bhGdI':'vBIAO'};if(!_0x56563b)_0x56563b=()=>{};!_0x2deed8[_0x49b09c(0x1ce)]&&_0x2deed8[_0x49b09c(0x1cc)]&&(_0x2deed8[_0x49b09c(0x1ce)]=_0x2deed8[_0x49b09c(0x1cc)]);let _0x2bdda0=_0x2deed8[_0x49b09c(0x1de)],_0x2c6c72=_0x2deed8['ma_kho'],_0x193335=_0x2deed8[_0x49b09c(0x1c9)];if(_0x193335&&underscore['isArray'](_0x193335)){if(_0x25ee75[_0x49b09c(0x182)](_0x25ee75[_0x49b09c(0x137)],_0x25ee75[_0x49b09c(0x138)])){let _0x38ed2a=Object[_0x49b09c(0x197)](_0x193335);_0x193335={'$in':_0x38ed2a};}else _0x4da3b4=_0x4d3499[_0x49b09c(0x12e)](_0x179cdf);}let _0x2065d1,_0x12a743,_0xe248da;_0x2065d1=moment(_0x2deed8[_0x49b09c(0x1ce)])['endOf'](_0x49b09c(0x135))['toDate']();if(_0x2deed8[_0x49b09c(0x1d2)]){if(_0x25ee75[_0x49b09c(0x1df)](_0x25ee75['jDlpv'],_0x25ee75[_0x49b09c(0x12d)]))return _0x25ee75['lewsC'](_0x1f2ca8,_0x52d02f),_0x25ee75['vBspE'](_0xadf0ed,new _0x4eb7d7(_0x2cb671));else{let _0x4c8924=new Date(_0x2deed8[_0x49b09c(0x1d2)]);_0x12a743=_0x4c8924[_0x49b09c(0x13d)](),_0xe248da=moment(_0x4c8924)[_0x49b09c(0x14b)](_0x25ee75[_0x49b09c(0x188)])[_0x49b09c(0x199)]();}}else _0x12a743=_0x2065d1[_0x49b09c(0x13d)](),_0xe248da=_0x25ee75[_0x49b09c(0x1c0)](moment,_0x2065d1)['startOf'](_0x25ee75['CTzon'])[_0x49b09c(0x199)]();let _0xf3584=_0x2deed8[_0x49b09c(0x1e9)];return new Promise((_0x16f556,_0x3c522a)=>{const _0x2616e2=_0x49b09c,_0x4ca4bb={'ldmxg':function(_0x4ac989,_0x5b1689,_0x14d739){return _0x4ac989(_0x5b1689,_0x14d739);},'FOSmz':function(_0x483ec9,_0x82c68d){const _0xb4bf6d=_0x1667;return _0x25ee75[_0xb4bf6d(0x1a3)](_0x483ec9,_0x82c68d);},'mPwBD':'imFue','CazAR':function(_0x3c05bf,_0x47179f){return _0x25ee75['xxNiT'](_0x3c05bf,_0x47179f);},'cBepq':_0x2616e2(0x175),'UhTKq':function(_0x23ac58,_0x39773b){return _0x23ac58===_0x39773b;},'RYdYZ':_0x25ee75[_0x2616e2(0x1d4)],'DDRVz':_0x25ee75['CTzon'],'GREmT':_0x25ee75[_0x2616e2(0x1d3)],'OQerd':function(_0x3d98dc,_0xbdb4cb){return _0x25ee75['RQqGX'](_0x3d98dc,_0xbdb4cb);},'qazql':_0x25ee75[_0x2616e2(0x1b6)],'INRTK':_0x2616e2(0x17f),'KwEnj':function(_0x146b6b,_0x214e7a){return _0x25ee75['xZaiB'](_0x146b6b,_0x214e7a);},'YQNmY':_0x25ee75[_0x2616e2(0x12f)],'KQdqU':function(_0x2f7cbd,_0x358ed7,_0x4730f4){const _0x506dd1=_0x2616e2;return _0x25ee75[_0x506dd1(0x19c)](_0x2f7cbd,_0x358ed7,_0x4730f4);},'eyekZ':'1|7|4|2|5|0|3|6','MBsCa':function(_0x54a887,_0x5b6dee){return _0x54a887-_0x5b6dee;},'ekZRM':function(_0x24e86e,_0x5e9275){return _0x25ee75['ZHUKi'](_0x24e86e,_0x5e9275);},'MLDiW':function(_0x514799,_0x3f83ea){return _0x514799>_0x3f83ea;},'OUKEg':_0x25ee75[_0x2616e2(0x1b0)],'EHxkl':function(_0x32034a,_0x1a536c){return _0x25ee75['RQqGX'](_0x32034a,_0x1a536c);},'GjlwU':_0x25ee75[_0x2616e2(0x1ac)],'QALvw':function(_0x407d8e,_0x562c59){const _0xd5a822=_0x2616e2;return _0x25ee75[_0xd5a822(0x1bb)](_0x407d8e,_0x562c59);},'IOPqa':_0x25ee75[_0x2616e2(0x18f)],'tEPPd':_0x25ee75[_0x2616e2(0x145)],'CNrMQ':function(_0x5194bf,_0x32fab7){return _0x5194bf(_0x32fab7);},'xJNJf':_0x2616e2(0x172),'QJJVK':function(_0x5dc91b,_0x677686){return _0x25ee75['YoBhC'](_0x5dc91b,_0x677686);},'vPrPW':_0x25ee75[_0x2616e2(0x1eb)],'BHATt':_0x25ee75[_0x2616e2(0x1a8)],'HfJPy':_0x25ee75['WIvdx'],'mhuUr':_0x25ee75[_0x2616e2(0x196)],'wHjNY':_0x25ee75[_0x2616e2(0x17b)],'AJuvO':_0x25ee75[_0x2616e2(0x136)],'SwhvP':_0x25ee75[_0x2616e2(0x1cb)],'pCCvm':_0x25ee75[_0x2616e2(0x1d8)],'hcXlo':_0x25ee75[_0x2616e2(0x141)],'gDbNX':_0x25ee75[_0x2616e2(0x173)],'pqZee':_0x25ee75[_0x2616e2(0x18c)],'nmZBU':_0x25ee75[_0x2616e2(0x16d)],'wiJlb':_0x25ee75['gYbuz']};_0x2616e2(0x14e)==='hwxrK'?async[_0x2616e2(0x13c)]({'ckcapphat':_0xda6982=>{const _0x2b5c5a=_0x2616e2;_0x25ee75[_0x2b5c5a(0x1c0)](setImmediate,()=>{const _0x50dcf0=_0x2b5c5a;_0x4ca4bb[_0x50dcf0(0x1be)](ckvtcapphat,_0x2deed8,(_0x248732,_0x154eb3)=>{_0xda6982(_0x248732,_0x154eb3);});});},'dn':_0x22e23f=>{const _0x5c6c82=_0x2616e2,_0xa53fec={'MnPwC':function(_0x1aed7a,_0x554290,_0x2c00f5){const _0xcce592=_0x1667;return _0x4ca4bb[_0xcce592(0x1be)](_0x1aed7a,_0x554290,_0x2c00f5);},'krNZq':function(_0xd6364b,_0x5e4e53){const _0x280349=_0x1667;return _0x4ca4bb[_0x280349(0x174)](_0xd6364b,_0x5e4e53);},'vKCdn':_0x5c6c82(0x16c),'ygFKt':_0x4ca4bb['mPwBD'],'ELQGw':function(_0x256ce6,_0x468802){const _0xe502c9=_0x5c6c82;return _0x4ca4bb[_0xe502c9(0x1e3)](_0x256ce6,_0x468802);},'wJEqb':_0x4ca4bb[_0x5c6c82(0x13a)],'mugrx':function(_0x4ba285,_0x15e6c2){const _0x4a2472=_0x5c6c82;return _0x4ca4bb[_0x4a2472(0x160)](_0x4ba285,_0x15e6c2);},'IfYGr':_0x4ca4bb['RYdYZ']};_0x4ca4bb['FOSmz'](setImmediate,()=>{const _0x12aa9f=_0x5c6c82,_0x5e5c6c={'EaAUN':function(_0x135074,_0x49c00d,_0x30da81){const _0x35eed0=_0x1667;return _0xa53fec[_0x35eed0(0x131)](_0x135074,_0x49c00d,_0x30da81);},'hIeGA':function(_0x5c17a5,_0x227d66){return _0xa53fec['krNZq'](_0x5c17a5,_0x227d66);}};if(_0xa53fec['vKCdn']!==_0xa53fec[_0x12aa9f(0x127)]){const _0x148e57={'id_app':_0xf3584,'nam':_0x12a743};_0x2c6c72&&(_0x148e57['ma_kho']=_0x2c6c72);_0x2bdda0&&(_0xa53fec[_0x12aa9f(0x130)](_0xa53fec[_0x12aa9f(0x1a7)],'gNpJK')?_0x148e57[_0x12aa9f(0x1de)]=_0x2bdda0:_0x5e5c6c[_0x12aa9f(0x149)](_0x3eb480,_0x1ef263,_0x3e6b10));_0x193335&&(_0xa53fec[_0x12aa9f(0x13e)]('ytDbh',_0xa53fec[_0x12aa9f(0x133)])?_0x148e57[_0x12aa9f(0x1c9)]=_0x193335:_0x4af694['error'](_0x5dff76));if(_0x2deed8[_0x12aa9f(0x148)])_0x148e57[_0x12aa9f(0x148)]=_0x2deed8[_0x12aa9f(0x148)];if(_0x2deed8['han_sd'])_0x148e57['han_sd']=_0x2deed8[_0x12aa9f(0x159)];if(_0x2deed8[_0x12aa9f(0x1ab)])_0x148e57[_0x12aa9f(0x1ab)]=_0x2deed8[_0x12aa9f(0x1ab)];if(_0x2deed8['ma_tt2'])_0x148e57[_0x12aa9f(0x12b)]=_0x2deed8[_0x12aa9f(0x12b)];if(_0x2deed8[_0x12aa9f(0x19e)])_0x148e57[_0x12aa9f(0x19e)]=_0x2deed8[_0x12aa9f(0x19e)];cdvt['find'](_0x148e57)[_0x12aa9f(0x1a5)]()['then'](_0x105855=>{_0x5e5c6c['EaAUN'](_0x22e23f,null,_0x105855);})[_0x12aa9f(0x178)](_0x362274=>{_0x5e5c6c['hIeGA'](_0x22e23f,_0x362274);});}else _0x5e5c6c['hIeGA'](_0x2a541a,_0x6278ec);});},'hanmucton':_0x465407=>{const _0x56dbfa=_0x2616e2,_0x49f105={'UAZXb':function(_0x436b33,_0x30ebe0){return _0x436b33===_0x30ebe0;},'JsGco':_0x25ee75['Atfai'],'itVMn':_0x56dbfa(0x1c7),'eZqoV':function(_0x3da336,_0x2fc33c,_0x60217e){const _0x2c43e4=_0x56dbfa;return _0x25ee75[_0x2c43e4(0x19c)](_0x3da336,_0x2fc33c,_0x60217e);},'lNkai':function(_0x1d6124,_0x2ef1e5){const _0x172689=_0x56dbfa;return _0x25ee75[_0x172689(0x190)](_0x1d6124,_0x2ef1e5);}};_0x25ee75[_0x56dbfa(0x190)](setImmediate,()=>{const _0x405f40=_0x56dbfa,_0x338be4={'NMoSt':function(_0x3430fa,_0x5301ab){const _0x28b91c=_0x1667;return _0x4ca4bb[_0x28b91c(0x174)](_0x3430fa,_0x5301ab);},'krcjx':_0x4ca4bb['DDRVz']},_0x4210ed={'id_app':_0xf3584};_0x2c6c72&&(_0x4ca4bb['UhTKq'](_0x4ca4bb[_0x405f40(0x1ba)],_0x4ca4bb[_0x405f40(0x1ba)])?_0x4210ed[_0x405f40(0x154)]=_0x2c6c72:(_0x386a1f=_0x195a9b[_0x405f40(0x13d)](),_0x9eff11=_0x338be4[_0x405f40(0x1d0)](_0x16e41d,_0x31f59a)[_0x405f40(0x14b)](_0x338be4[_0x405f40(0x17d)])['toDate']()));_0x2bdda0&&(_0x4ca4bb[_0x405f40(0x1e4)](_0x4ca4bb[_0x405f40(0x1db)],_0x4ca4bb[_0x405f40(0x1db)])?_0x4210ed['ma_dvcs']=_0x2bdda0:_0x5bc32b['id_ct']={'$ne':_0x2ae87e[_0x405f40(0x13f)]});_0x193335&&(_0x4ca4bb[_0x405f40(0x160)](_0x4ca4bb[_0x405f40(0x1cf)],_0x4ca4bb['INRTK'])?_0x4210ed[_0x405f40(0x1c9)]=_0x193335:_0x32ecea[_0x405f40(0x1c9)]=_0x4544f5);if(_0x2deed8[_0x405f40(0x148)])_0x4210ed[_0x405f40(0x148)]=_0x2deed8[_0x405f40(0x148)];if(_0x2deed8['han_sd'])_0x4210ed[_0x405f40(0x159)]=_0x2deed8['han_sd'];if(_0x2deed8[_0x405f40(0x1ab)])_0x4210ed[_0x405f40(0x1ab)]=_0x2deed8[_0x405f40(0x1ab)];if(_0x2deed8[_0x405f40(0x12b)])_0x4210ed['ma_tt2']=_0x2deed8['ma_tt2'];if(_0x2deed8['ma_tt3'])_0x4210ed[_0x405f40(0x19e)]=_0x2deed8['ma_tt3'];hanmucton[_0x405f40(0x186)](_0x4210ed)[_0x405f40(0x1a5)]()[_0x405f40(0x1b7)](_0x896f24=>{const _0x54f6bf=_0x405f40;if(_0x49f105[_0x54f6bf(0x12a)](_0x49f105[_0x54f6bf(0x166)],_0x49f105[_0x54f6bf(0x155)])){const _0x32e74c={'UUrfP':function(_0x3c2bda,_0x494681,_0x161de0){return _0x3c2bda(_0x494681,_0x161de0);}};let _0x2aebe3={'id_app':_0x430ce4,'ton_kho_mac_dinh':{'$nin':[null,_0x2a54b0,0x0]}};_0x5f1e34&&(_0x2aebe3[_0x54f6bf(0x1c9)]=_0x479b22),_0x28f899[_0x54f6bf(0x186)](_0x2aebe3,{'ma_vt':0x1,'ton_kho_mac_dinh':0x1})[_0x54f6bf(0x1a5)]()[_0x54f6bf(0x1b7)](_0x3afe07=>{const _0x19ecc7=_0x54f6bf;_0x32e74c[_0x19ecc7(0x168)](_0xd97c32,null,_0x3afe07);})['catch'](_0x36a561=>{const _0x4a4774=_0x54f6bf;_0x5493d9[_0x4a4774(0x18a)](_0x36a561);});}else _0x49f105[_0x54f6bf(0x170)](_0x465407,null,_0x896f24);})[_0x405f40(0x178)](_0x13fab6=>{_0x49f105['lNkai'](_0x465407,_0x13fab6);});});},'ps':_0x18f43d=>{const _0x2c9d5b=_0x2616e2,_0x2a095a={'ijZyH':function(_0x4c0af9,_0x186d31){return _0x4c0af9===_0x186d31;},'xRJlt':_0x2c9d5b(0x1e1),'voisk':function(_0x35dcc6,_0x1dd63b,_0x3e9c70){const _0x2cb209=_0x2c9d5b;return _0x4ca4bb[_0x2cb209(0x15c)](_0x35dcc6,_0x1dd63b,_0x3e9c70);},'umJzD':_0x4ca4bb[_0x2c9d5b(0x150)],'zMKmk':function(_0x10d07c,_0x252b71){return _0x4ca4bb['MBsCa'](_0x10d07c,_0x252b71);},'hgTFG':function(_0x254719,_0x374c70){return _0x4ca4bb['ekZRM'](_0x254719,_0x374c70);},'nJFaZ':function(_0x4d6ef2,_0x361305){const _0x4bee83=_0x2c9d5b;return _0x4ca4bb[_0x4bee83(0x161)](_0x4d6ef2,_0x361305);},'wyRii':function(_0x4272b7,_0x341bfe){return _0x4ca4bb['MLDiW'](_0x4272b7,_0x341bfe);},'NoQdY':function(_0x5dccfd,_0x14ff29){const _0x3f1f97=_0x2c9d5b;return _0x4ca4bb[_0x3f1f97(0x161)](_0x5dccfd,_0x14ff29);},'SBGmy':function(_0x46dd51,_0x177007){return _0x46dd51-_0x177007;}};_0x4ca4bb[_0x2c9d5b(0x1ea)]!==_0x4ca4bb[_0x2c9d5b(0x1ea)]?_0x2b2653(null,_0x53c0fb):_0x4ca4bb[_0x2c9d5b(0x174)](setImmediate,()=>{const _0x211ff4=_0x2c9d5b,_0x40ac9b={'BJukV':function(_0x1a566d,_0x317674){const _0x4ff74c=_0x1667;return _0x4ca4bb[_0x4ff74c(0x174)](_0x1a566d,_0x317674);}};if(_0x4ca4bb[_0x211ff4(0x146)](_0x211ff4(0x1a6),_0x4ca4bb['YQNmY'])){const _0x1dd900={'id_app':_0xf3584,'ngay_ct':{'$gte':_0xe248da,'$lte':_0x2065d1}};_0x2c6c72&&(_0x4ca4bb[_0x211ff4(0x1e3)](_0x211ff4(0x144),_0x211ff4(0x144))?_0x48bb7e[_0x211ff4(0x18a)](_0x36e4b7):_0x1dd900[_0x211ff4(0x154)]=_0x2c6c72);_0x2bdda0&&(_0x1dd900[_0x211ff4(0x1de)]=_0x2bdda0);_0x193335&&(_0x1dd900[_0x211ff4(0x1c9)]=_0x193335);if(_0x2deed8[_0x211ff4(0x148)])_0x1dd900[_0x211ff4(0x148)]=_0x2deed8[_0x211ff4(0x148)];if(_0x2deed8['han_sd'])_0x1dd900[_0x211ff4(0x159)]=_0x2deed8['han_sd'];if(_0x2deed8[_0x211ff4(0x1ab)])_0x1dd900[_0x211ff4(0x1ab)]=_0x2deed8['ma_tt1'];if(_0x2deed8[_0x211ff4(0x12b)])_0x1dd900[_0x211ff4(0x12b)]=_0x2deed8[_0x211ff4(0x12b)];if(_0x2deed8[_0x211ff4(0x19e)])_0x1dd900['ma_tt3']=_0x2deed8[_0x211ff4(0x19e)];_0x2deed8['id_ct']&&(_0x1dd900['id_ct']={'$ne':_0x2deed8[_0x211ff4(0x13f)]}),sokho[_0x211ff4(0x186)](_0x1dd900)[_0x211ff4(0x1a5)]()[_0x211ff4(0x1b7)](_0xe325d7=>{const _0x4c8156=_0x211ff4;_0x2a095a['ijZyH'](_0x4c8156(0x1e1),_0x2a095a['xRJlt'])?(_0xe325d7=_0xe325d7[_0x4c8156(0x1aa)](_0x4259fb=>{const _0x484943=_0x4c8156;return _0x4259fb['sl_nhap']=utils[_0x484943(0x19f)](_0x4259fb[_0x484943(0x126)],0x4),_0x4259fb[_0x484943(0x1dc)]=utils[_0x484943(0x19f)](_0x4259fb[_0x484943(0x16b)],0x4),_0x4259fb;}),_0x2a095a[_0x4c8156(0x1a2)](_0x18f43d,null,_0xe325d7)):_0x50ba33[_0x4c8156(0x1de)]=_0x440d2b;})[_0x211ff4(0x178)](_0x495b0b=>{_0x40ac9b['BJukV'](_0x18f43d,_0x495b0b);});}else{const _0x5f32c8=_0x2a095a[_0x211ff4(0x16a)]['split']('|');let _0x4c996d=0x0;while(!![]){switch(_0x5f32c8[_0x4c996d++]){case'0':_0xb83ace[_0x211ff4(0x14c)]=0x0;continue;case'1':_0x3ab819[_0x211ff4(0x128)]=_0xafacc4[_0x211ff4(0x19f)](_0x2a095a['zMKmk'](_0x2a095a[_0x211ff4(0x1c1)](_0x1690c2[_0x211ff4(0x128)],_0x45d112[_0x211ff4(0x19d)]),_0x1057ad[_0x211ff4(0x1dc)]),0x4);continue;case'2':_0x4836e9[_0x211ff4(0x1dc)]=0x0;continue;case'3':_0x501e81[_0x211ff4(0x1ec)]=_0x2a095a[_0x211ff4(0x1d5)](_0x1a48f3[_0x211ff4(0x128)],_0x2a095a[_0x211ff4(0x1b5)](_0x24f28c[_0x211ff4(0x151)],0x0)?_0x3e7384[_0x211ff4(0x151)]:0x0);continue;case'4':_0x29a9f1['sl_nhap']=0x0;continue;case'5':_0x575305[_0x211ff4(0x17e)]=0x0;continue;case'6':_0x21bd75['du']=_0x2a095a['NoQdY'](_0x180b62[_0x211ff4(0x1bd)],_0x2a095a[_0x211ff4(0x1b5)](_0x2dc885[_0x211ff4(0x187)],0x0)?_0x297e53[_0x211ff4(0x187)]:0x0);continue;case'7':_0x342565[_0x211ff4(0x1bd)]=_0x2a095a[_0x211ff4(0x18b)](_0x2a095a['hgTFG'](_0x21587f['roundBy'](_0x9d9e70['du00'],0x0),_0x4a53df[_0x211ff4(0x1c5)](_0x13d542[_0x211ff4(0x17e)],0x0)),_0x3b6301[_0x211ff4(0x1c5)](_0x84e18c[_0x211ff4(0x14c)],0x0));continue;}break;}}});},'ton_kho_mac_dinh':_0x5c4b2e=>{const _0x569463=_0x2616e2,_0xf320f9={'duyyC':function(_0x860377,_0x3ccb88){const _0x339bc2=_0x1667;return _0x4ca4bb[_0x339bc2(0x1ad)](_0x860377,_0x3ccb88);},'hwyJV':_0x4ca4bb[_0x569463(0x1b9)],'QBjzt':_0x4ca4bb[_0x569463(0x164)]};_0x4ca4bb[_0x569463(0x174)](setImmediate,()=>{const _0x4fa522=_0x569463,_0x10b010={'zfDFt':function(_0x431e1f,_0x452b5b,_0x34fdd8){return _0x431e1f(_0x452b5b,_0x34fdd8);}};if(_0x4ca4bb['EHxkl'](_0x4ca4bb[_0x4fa522(0x1d9)],_0x4ca4bb[_0x4fa522(0x1d9)])){let _0x398da8={'id_app':_0xf3584,'ton_kho_mac_dinh':{'$nin':[null,undefined,0x0]}};_0x193335&&(_0x398da8[_0x4fa522(0x1c9)]=_0x193335),dmvt[_0x4fa522(0x186)](_0x398da8,{'ma_vt':0x1,'ton_kho_mac_dinh':0x1})[_0x4fa522(0x1a5)]()[_0x4fa522(0x1b7)](_0x69a7df=>{_0x10b010['zfDFt'](_0x5c4b2e,null,_0x69a7df);})['catch'](_0x203cc8=>{const _0x24cce9=_0x4fa522;_0xf320f9[_0x24cce9(0x1e7)](_0xf320f9[_0x24cce9(0x1a9)],_0xf320f9['QBjzt'])?_0x276401=_0x2d6243['filter'](_0x103e24=>_0x103e24[_0x24cce9(0x17c)]&&_0x103e24[_0x24cce9(0x17c)]<_0x103e24['ton00']):console['error'](_0x203cc8);});}else _0x1cc6ec[_0x4fa522(0x1de)]=_0x3bdf19;});}},(_0x299dce,_0x551c79)=>{const _0x24419e=_0x2616e2,_0x4d6de6={'iLYTp':function(_0x1136ab,_0x8350db){return _0x4ca4bb['CNrMQ'](_0x1136ab,_0x8350db);},'KXOXc':_0x24419e(0x165),'NSDGp':_0x24419e(0x169),'ZWRyN':_0x4ca4bb['xJNJf'],'cyxTn':function(_0x4b192f,_0x7b9937){return _0x4b192f>_0x7b9937;},'qhVBj':function(_0x5e850a,_0x19630c){const _0xaf1fbc=_0x24419e;return _0x4ca4bb[_0xaf1fbc(0x18e)](_0x5e850a,_0x19630c);},'AQcHs':function(_0x468039,_0x3b6c9d){return _0x4ca4bb['MBsCa'](_0x468039,_0x3b6c9d);},'eqtAS':function(_0x2cfad3,_0x5a98f){const _0x250a41=_0x24419e;return _0x4ca4bb[_0x250a41(0x1bc)](_0x2cfad3,_0x5a98f);}};if(_0x299dce){if(_0x4ca4bb[_0x24419e(0x146)](_0x4ca4bb[_0x24419e(0x1b8)],_0x24419e(0x140)))return _0x4ca4bb[_0x24419e(0x174)](_0x56563b,_0x299dce),_0x4ca4bb[_0x24419e(0x1c2)](_0x3c522a,new Error(_0x299dce));else _0x16babe[_0x24419e(0x1c9)]=_0x5744fc;}let _0x48759c=_0x551c79[_0x24419e(0x132)][_0x24419e(0x1aa)](_0x423a90=>{const _0x7d6b33=_0x24419e;return _0x423a90['ton00_capphat']=_0x423a90['ton00'],_0x423a90[_0x7d6b33(0x187)]=_0x423a90[_0x7d6b33(0x1bd)],_0x423a90[_0x7d6b33(0x128)]=0x0,_0x423a90[_0x7d6b33(0x1bd)]=0x0,_0x423a90;}),_0x436b9a=_0x551c79['dn']['concat'](_0x551c79['ps'])[_0x24419e(0x179)](_0x48759c)[_0x24419e(0x179)](_0x551c79[_0x24419e(0x15a)])[_0x24419e(0x179)](_0x551c79[_0x24419e(0x1b4)]),_0x13f06a=_0x2deed8['groupBy']||_0x2deed8['groupby'];if(!_0x13f06a)_0x13f06a=[_0x4ca4bb[_0x24419e(0x15e)]];if(underscore[_0x24419e(0x194)](_0x13f06a)){if(_0x13f06a['indexOf']('[')>=0x0){if(_0x4ca4bb[_0x24419e(0x15b)]===_0x4ca4bb[_0x24419e(0x1af)])_0x1eeb9f[_0x24419e(0x154)]=_0x5d193a;else try{_0x4ca4bb[_0x24419e(0x1e3)](_0x4ca4bb['wHjNY'],_0x4ca4bb['wHjNY'])?_0x55ac6a=_0x595dff['filter'](_0x182ce8=>_0x182ce8[_0x24419e(0x152)]&&_0x182ce8['ton_toi_thieu']>_0x182ce8[_0x24419e(0x128)]):_0x13f06a=JSON[_0x24419e(0x12e)](_0x13f06a);}catch(_0x84b36){console[_0x24419e(0x18a)](_0x84b36);}}else _0x13f06a=_0x13f06a[_0x24419e(0x129)](',');}let _0x5d5246=[_0x24419e(0x19d),_0x4ca4bb['AJuvO'],_0x24419e(0x128),_0x4ca4bb[_0x24419e(0x171)],_0x4ca4bb[_0x24419e(0x1ca)],_0x4ca4bb[_0x24419e(0x193)],_0x4ca4bb[_0x24419e(0x162)],_0x4ca4bb[_0x24419e(0x1e0)],'ton_kho_mac_dinh',_0x4ca4bb[_0x24419e(0x1a4)],_0x4ca4bb[_0x24419e(0x18d)]];_0x436b9a[_0x24419e(0x1cd)](_0x13f06a,_0x5d5246,(_0x2477f3,_0x20e74a)=>{const _0x5c5de8=_0x24419e,_0x192b31={'ozRJC':function(_0x33a2dc,_0x26ddb0){return _0x4d6de6['iLYTp'](_0x33a2dc,_0x26ddb0);},'CcTTk':_0x4d6de6[_0x5c5de8(0x163)],'QZwXH':function(_0x592fc2,_0x31f0eb){return _0x592fc2!==_0x31f0eb;},'yPIZO':_0x4d6de6[_0x5c5de8(0x1e5)],'RnTKK':_0x5c5de8(0x1d7),'CIezR':_0x4d6de6[_0x5c5de8(0x125)],'JWFsE':function(_0x30540c,_0x14361d){return _0x30540c-_0x14361d;},'Cppbq':function(_0x32b971,_0x59126b){const _0x929f34=_0x5c5de8;return _0x4d6de6[_0x929f34(0x195)](_0x32b971,_0x59126b);},'OiOPK':function(_0x53e62f,_0x50a984){return _0x53e62f-_0x50a984;},'tHOqd':function(_0x57b42d,_0x4bed50){return _0x4d6de6['qhVBj'](_0x57b42d,_0x4bed50);},'jJWCZ':function(_0x370d84,_0x31c374){const _0x4b7b38=_0x5c5de8;return _0x4d6de6[_0x4b7b38(0x1a1)](_0x370d84,_0x31c374);},'HykUB':function(_0x5634c8,_0x18021d,_0x3514cf){return _0x5634c8(_0x18021d,_0x3514cf);}};if(_0x2477f3)return _0x56563b(_0x2477f3),_0x4d6de6['iLYTp'](_0x3c522a,new Error(_0x2477f3));_0x4d6de6[_0x5c5de8(0x147)](setImmediate,()=>{const _0x1ca4a5=_0x5c5de8;if(_0x192b31[_0x1ca4a5(0x180)](_0x192b31[_0x1ca4a5(0x1b2)],_0x192b31[_0x1ca4a5(0x13b)])){_0x2deed8[_0x1ca4a5(0x176)]&&(_0x20e74a=_0x20e74a['filter'](_0x513443=>_0x513443[_0x1ca4a5(0x152)]&&_0x513443[_0x1ca4a5(0x152)]>_0x513443[_0x1ca4a5(0x128)]));_0x2deed8[_0x1ca4a5(0x1e8)]&&(_0x20e74a=_0x20e74a['filter'](_0x2c7983=>_0x2c7983[_0x1ca4a5(0x17c)]&&_0x2c7983['ton_toi_da']<_0x2c7983[_0x1ca4a5(0x128)]));for(let _0x412dee of _0x20e74a){const _0x24f133=_0x192b31[_0x1ca4a5(0x156)][_0x1ca4a5(0x129)]('|');let _0x3417cd=0x0;while(!![]){switch(_0x24f133[_0x3417cd++]){case'0':_0x412dee['ton00']=utils['round'](_0x192b31[_0x1ca4a5(0x19a)](_0x412dee[_0x1ca4a5(0x128)]+_0x412dee[_0x1ca4a5(0x19d)],_0x412dee[_0x1ca4a5(0x1dc)]),0x4);continue;case'1':_0x412dee[_0x1ca4a5(0x14c)]=0x0;continue;case'2':_0x412dee['sl_xuat']=0x0;continue;case'3':_0x412dee['du']=_0x412dee['du00']-(_0x192b31[_0x1ca4a5(0x158)](_0x412dee['du00_capphat'],0x0)?_0x412dee[_0x1ca4a5(0x187)]:0x0);continue;case'4':_0x412dee[_0x1ca4a5(0x1bd)]=_0x192b31[_0x1ca4a5(0x183)](_0x192b31[_0x1ca4a5(0x16e)](Math['roundBy'](_0x412dee[_0x1ca4a5(0x1bd)],0x0),Math[_0x1ca4a5(0x1c5)](_0x412dee[_0x1ca4a5(0x17e)],0x0)),Math[_0x1ca4a5(0x1c5)](_0x412dee['tien_xuat'],0x0));continue;case'5':_0x412dee[_0x1ca4a5(0x1ec)]=_0x192b31['jJWCZ'](_0x412dee['ton00'],_0x192b31[_0x1ca4a5(0x158)](_0x412dee[_0x1ca4a5(0x151)],0x0)?_0x412dee['ton00_capphat']:0x0);continue;case'6':_0x412dee[_0x1ca4a5(0x19d)]=0x0;continue;case'7':_0x412dee['tien_nhap']=0x0;continue;}break;}}_0x192b31['HykUB'](_0x56563b,null,_0x20e74a),_0x192b31[_0x1ca4a5(0x1e2)](_0x16f556,_0x20e74a);}else{let _0x180a01=new _0x14d329(_0xa2d64b['tu_ngay']);_0x12592f=_0x180a01['getFullYear'](),_0x447d4f=_0x192b31[_0x1ca4a5(0x1e2)](_0x535cfb,_0x180a01)['startOf'](_0x192b31[_0x1ca4a5(0x16f)])[_0x1ca4a5(0x199)]();}});});}):_0x41ec8b[_0x2616e2(0x154)]=_0x2f323a;});};
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const async=require("async"),_=require("lodash"),moment=require("moment");
|
|
2
|
-
exports.find=function($query$$,$fn$$,$options$$){const $socai$$=global.getModel("socai");async.parallel({ps_no:function($callback$$){setImmediate(async()=>{let $query_no$$={};_.extend($query_no$$,$query$$);$query_no$$.tk&&($query_no$$.tk_no=$query_no$$.tk,delete $query_no$$.tk);$query_no$$.ma_kh&&($query_no$$.ma_kh_no=$query_no$$.ma_kh,delete $query_no$$.ma_kh);let $page$$=0,$_data$$=[];const $check$$=await $socai$$.find($query_no$$).skip($page$$*1E6).limit(1E6).explain("executionStats");$check$$.length>
|
|
3
|
-
0&&$check$$[0].executionStats.totalKeysExamined!=$check$$[0].executionStats.totalDocsExamined&&console.error("vsocai: indexes c\u1ee7a socai ch\u01b0a hi\u1ec7u qu\u1ea3 cho query",$query_no$$,$check$$[0].executionStats);async.forever($callback$$=>{$socai$$.find($query_no$$).skip($page$$*1E6).limit(1E6).lean().then(function($rs$$){console.log("vsocai: ps no",{page:$page$$,rows_number:$rs$$.length});$rs$$.forEach($r$$=>{$r$$.tk=$r$$.tk_no;$r$$.tk_du=$r$$.tk_co;$r$$.ma_kh=$r$$.ma_kh_no;!$r$$.ma_kh&&
|
|
4
|
-
$r$$.ma_kh_co&&($r$$.ma_kh=$r$$.ma_kh_co);$r$$.ps_no_nt=$r$$.tien_nt;$r$$.ps_no=Math.roundBy($r$$.tien,0);$r$$.ps_co_nt=0;$r$$.ps_co=0});$_data$$=$_data$$.concat($rs$$);if($rs$$.length<1E6)return $callback$$("0");$page$$+=1;$callback$$()}).catch($e$$=>{$callback$$($e$$)})},$e$$=>{if($e$$!="0")return $callback$$($e$$);$callback$$(null,$_data$$)})})},ps_co:function($callback$$){setImmediate(()=>{let $query_co$$={};_.extend($query_co$$,$query$$);$query_co$$.tk&&($query_co$$.tk_co=$query_co$$.tk,delete $query_co$$.tk);
|
|
5
|
-
$query_co$$.ma_kh&&($query_co$$.ma_kh_co=$query_co$$.ma_kh,delete $query_co$$.ma_kh);let $page$$=0,$_data$$=[];async.forever($callback$$=>{$socai$$.find($query_co$$).skip($page$$*1E6).limit(1E6).lean().then(function($rs$$){console.log("vsocai: ps co",{page:$page$$,rows_number:$rs$$.length});$rs$$.forEach($r$$=>{$r$$.tk=$r$$.tk_co;$r$$.tk_du=$r$$.tk_no;$r$$.ma_kh=$r$$.ma_kh_co;!$r$$.ma_kh&&$r$$.ma_kh_no&&($r$$.ma_kh=$r$$.ma_kh_no);$r$$.ps_co_nt=$r$$.tien_nt;$r$$.ps_co=Math.roundBy($r$$.tien,0);$r$$.ps_no_nt=
|
|
6
|
-
0;$r$$.ps_no=0});$_data$$=$_data$$.concat($rs$$);if($rs$$.length<1E6)return $callback$$("0");$page$$+=1;$callback$$()}).catch($e$$=>{$callback$$($e$$)})},$e$$=>{if($e$$!="0")return $callback$$($e$$);$callback$$(null,$_data$$)})})}},function($e$$,$rs$$){if($e$$)return $fn$$($e$$);$e$$=[...$rs$$.ps_no,...$rs$$.ps_co];console.log("vsocai: handle data",{rows_number:$e$$.length});$options$$&&$options$$.sortData&&($e$$=$e$$.sort(($a$$,$b$$)=>{let $a_ngay_ct$$=moment($a$$.ngay_ct).endOf("date").toDate().getTime(),
|
|
7
|
-
$b_ngay_ct$$=moment($b$$.ngay_ct).endOf("date").toDate().getTime();return $a_ngay_ct$$<$b_ngay_ct$$?-1:$a_ngay_ct$$>$b_ngay_ct$$?1:$a$$.so_ct<$b$$.so_ct?-1:$a$$.so_ct>$b$$.so_ct?1:$a$$.id_ct<$b$$.id_ct?-1:$a$$.id_ct>$b$$.id_ct?1:$a$$.nh_dk<$b$$.nh_dk?-1:$a$$.nh_dk>$b$$.nh_dk||$a$$.ps_no<$b$$.ps_no?1:$a$$.ps_no>$b$$.ps_no||$a$$.ps_co<$b$$.ps_co?-1:$a$$.ps_co>$b$$.ps_co?1:0}));if($options$$&&$options$$.groupBy){let $groupBy$$;$options$$.groupBy&&(_.isArray($options$$.groupBy)&&$options$$.groupBy.length>
|
|
8
|
-
0&&($groupBy$$=$options$$.groupBy),$groupBy$$=$groupBy$$||"id_app ma_dvcs id_ct ma_ct ma_gd ngay_ct so_ct ngay_hd so_hd tk tk_du ma_kh ong_ba ma_nt ty_gia dien_giai ma_bp id_lenhsx ma_phi ma_hd ma_dt ma_nv ma_sp ma_cp ma_kho ma_vt ma_kenh ma_td1 ma_td2 ma_td3 ma_td4 ma_td5 ma_td6 ma_td7 ma_td8 ma_td9 gio ngay thang quy nam date_created date_updated".split(" "));$e$$.groupBy($groupBy$$,["ps_no","ps_co","ps_no_nt","ps_co_nt"],($e$$,$rs$$)=>{if($e$$)return $fn$$($e$$);$fn$$(null,$rs$$)})}else $fn$$(null,
|
|
9
|
-
$e$$)})};
|
|
1
|
+
const _0x2009ec=_0x5d68;(function(_0x10200b,_0xcd0d87){const _0x566120=_0x5d68,_0x3b947b=_0x10200b();while(!![]){try{const _0x45b7b5=parseInt(_0x566120(0x1dc))/0x1+parseInt(_0x566120(0x245))/0x2*(parseInt(_0x566120(0x24b))/0x3)+-parseInt(_0x566120(0x258))/0x4*(-parseInt(_0x566120(0x266))/0x5)+-parseInt(_0x566120(0x20f))/0x6+-parseInt(_0x566120(0x246))/0x7*(-parseInt(_0x566120(0x29d))/0x8)+parseInt(_0x566120(0x256))/0x9+-parseInt(_0x566120(0x212))/0xa*(parseInt(_0x566120(0x1f0))/0xb);if(_0x45b7b5===_0xcd0d87)break;else _0x3b947b['push'](_0x3b947b['shift']());}catch(_0xa1375f){_0x3b947b['push'](_0x3b947b['shift']());}}}(_0x48ab,0xca942));const _0x130681=(function(){const _0x35f0d4=_0x5d68,_0x433d85={'XSaWG':_0x35f0d4(0x247)};let _0x192ae8=!![];return function(_0x5deb0e,_0x3f1415){const _0x37bcc3=_0x35f0d4;if(_0x433d85[_0x37bcc3(0x29b)]!==_0x433d85[_0x37bcc3(0x29b)]){const _0x17d413=_0x2bff16?function(){const _0x443b26=_0x37bcc3;if(_0x5553d8){const _0x4e91bc=_0x2387af[_0x443b26(0x1d7)](_0x48badd,arguments);return _0x5d7fa0=null,_0x4e91bc;}}:function(){};return _0x4ca1a5=![],_0x17d413;}else{const _0x105921=_0x192ae8?function(){const _0x2a2302=_0x37bcc3;if(_0x3f1415){const _0x408e0a=_0x3f1415[_0x2a2302(0x1d7)](_0x5deb0e,arguments);return _0x3f1415=null,_0x408e0a;}}:function(){};return _0x192ae8=![],_0x105921;}};}()),_0x9b6cd7=_0x130681(this,function(){const _0x2f7815=_0x5d68,_0x13916f={'dfLeb':_0x2f7815(0x23c)};return _0x9b6cd7[_0x2f7815(0x1f6)]()[_0x2f7815(0x2b2)](_0x2f7815(0x23c))['toString']()[_0x2f7815(0x20e)](_0x9b6cd7)[_0x2f7815(0x2b2)](_0x13916f[_0x2f7815(0x244)]);});function _0x5d68(_0x3266a5,_0x2bd63a){const _0x529a6f=_0x48ab();return _0x5d68=function(_0x9b6cd7,_0x130681){_0x9b6cd7=_0x9b6cd7-0x1c1;let _0x48ab84=_0x529a6f[_0x9b6cd7];if(_0x5d68['lBhYSg']===undefined){var _0x5d6845=function(_0x27ebc9){const _0x1b4140='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x105c6b='',_0x18b5dd='',_0x54bc25=_0x105c6b+_0x5d6845;for(let _0x24b891=0x0,_0x2717bb,_0x59ea22,_0x1fbb23=0x0;_0x59ea22=_0x27ebc9['charAt'](_0x1fbb23++);~_0x59ea22&&(_0x2717bb=_0x24b891%0x4?_0x2717bb*0x40+_0x59ea22:_0x59ea22,_0x24b891++%0x4)?_0x105c6b+=_0x54bc25['charCodeAt'](_0x1fbb23+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2717bb>>(-0x2*_0x24b891&0x6)):_0x24b891:0x0){_0x59ea22=_0x1b4140['indexOf'](_0x59ea22);}for(let _0x2bff16=0x0,_0x43aca9=_0x105c6b['length'];_0x2bff16<_0x43aca9;_0x2bff16++){_0x18b5dd+='%'+('00'+_0x105c6b['charCodeAt'](_0x2bff16)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x18b5dd);};_0x5d68['YnWEcA']=_0x5d6845,_0x3266a5=arguments,_0x5d68['lBhYSg']=!![];}const _0x5bd4ff=_0x529a6f[0x0],_0x23d266=_0x9b6cd7+_0x5bd4ff,_0xbd48e=_0x3266a5[_0x23d266];if(!_0xbd48e){const _0x4e4b7d=function(_0x42bc6a){this['ijekvH']=_0x42bc6a,this['jDHcOU']=[0x1,0x0,0x0],this['rXoCmG']=function(){return'newState';},this['ekGgda']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['qDIrgH']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4e4b7d['prototype']['CXvSUg']=function(){const _0x2cdb5b=new RegExp(this['ekGgda']+this['qDIrgH']),_0x4ca1a5=_0x2cdb5b['test'](this['rXoCmG']['toString']())?--this['jDHcOU'][0x1]:--this['jDHcOU'][0x0];return this['LMVWBe'](_0x4ca1a5);},_0x4e4b7d['prototype']['LMVWBe']=function(_0x5553d8){if(!Boolean(~_0x5553d8))return _0x5553d8;return this['GCdlmO'](this['ijekvH']);},_0x4e4b7d['prototype']['GCdlmO']=function(_0x3d5bee){for(let _0x53b262=0x0,_0x2f6d21=this['jDHcOU']['length'];_0x53b262<_0x2f6d21;_0x53b262++){this['jDHcOU']['push'](Math['round'](Math['random']())),_0x2f6d21=this['jDHcOU']['length'];}return _0x3d5bee(this['jDHcOU'][0x0]);},new _0x4e4b7d(_0x5d68)['CXvSUg'](),_0x48ab84=_0x5d68['YnWEcA'](_0x48ab84),_0x3266a5[_0x23d266]=_0x48ab84;}else _0x48ab84=_0xbd48e;return _0x48ab84;},_0x5d68(_0x3266a5,_0x2bd63a);}_0x9b6cd7();const async=require(_0x2009ec(0x265)),_=require(_0x2009ec(0x277)),moment=require(_0x2009ec(0x29a));exports[_0x2009ec(0x281)]=function(_0xefd953,_0x74edae,_0x217e96){const _0x1c32e0=_0x2009ec,_0x146310={'PeuBd':function(_0x553e4f,_0x309c9d){return _0x553e4f!=_0x309c9d;},'eEhtV':function(_0x5ea497,_0x4f9d35){return _0x5ea497(_0x4f9d35);},'Zczer':function(_0x3c74fd,_0x75d634){return _0x3c74fd+_0x75d634;},'FLdPo':_0x1c32e0(0x2a1),'tNrMW':function(_0x50397f,_0x51eca7){return _0x50397f!==_0x51eca7;},'hvraA':'QPnSk','tfysQ':function(_0x8217da,_0x145d07){return _0x8217da*_0x145d07;},'leLbC':'executionStats','gWYWP':function(_0x53fa5a,_0x4a60e6){return _0x53fa5a>_0x4a60e6;},'lyVHy':_0x1c32e0(0x287),'yQtXl':function(_0x23da94,_0xc944e8){return _0x23da94===_0xc944e8;},'rSYyM':function(_0x317683,_0x349860){return _0x317683(_0x349860);},'xnnGb':function(_0x373ce1){return _0x373ce1();},'IMBhh':_0x1c32e0(0x255),'gZQSd':_0x1c32e0(0x1c2),'wqUbG':_0x1c32e0(0x28a),'ljpvi':_0x1c32e0(0x297),'HQFdn':'ngay_ct','cQmmh':_0x1c32e0(0x1ee),'qeTaW':_0x1c32e0(0x262),'nAldi':_0x1c32e0(0x1fa),'GbPoc':_0x1c32e0(0x270),'IIQQK':'dien_giai','tbGgo':'id_lenhsx','afPPH':_0x1c32e0(0x2a6),'LaJFU':_0x1c32e0(0x288),'XwfzQ':_0x1c32e0(0x1e3),'veQWo':'ma_vt','XJTNz':_0x1c32e0(0x20a),'rInTN':'ma_td1','MfHzw':'ma_td2','bqaAX':_0x1c32e0(0x2b0),'kbCdP':_0x1c32e0(0x278),'zzEjA':_0x1c32e0(0x25c),'HHbTs':'ma_td8','IKglL':_0x1c32e0(0x1e7),'BpJhw':_0x1c32e0(0x261),'AkLIB':_0x1c32e0(0x20b),'FflOz':_0x1c32e0(0x27c),'JdtPl':_0x1c32e0(0x23d),'eTOIh':function(_0x44d50c,_0x2b945a){return _0x44d50c!=_0x2b945a;},'LlYdt':function(_0x3aaad8,_0x323724){return _0x3aaad8(_0x323724);},'euyVg':function(_0x5b7d65,_0x27ac2a,_0x3cfa13){return _0x5b7d65(_0x27ac2a,_0x3cfa13);},'lUWJe':function(_0x561a20,_0x5ec931){return _0x561a20(_0x5ec931);},'bEjPr':_0x1c32e0(0x1ff),'cOsiU':function(_0x51df51,_0x56156f){return _0x51df51<_0x56156f;},'wHAet':function(_0x438111,_0x5735b6){return _0x438111>_0x5735b6;},'ZKPIG':function(_0x4859bc,_0x2b5c0b){return _0x4859bc>_0x2b5c0b;},'huutc':function(_0x13d214,_0xde5e82){return _0x13d214>_0xde5e82;},'lQmOz':function(_0x30136a,_0x24be8b){return _0x30136a>_0x24be8b;},'PeXxm':function(_0x2ba434,_0x345912){return _0x2ba434(_0x345912);},'SiRGp':function(_0x4a651c,_0x427218){return _0x4a651c!==_0x427218;},'XtXIA':_0x1c32e0(0x2a0),'odYvN':_0x1c32e0(0x210),'TDCnV':_0x1c32e0(0x207),'DcNQZ':function(_0x22a6a4,_0x50b08d){return _0x22a6a4!==_0x50b08d;},'KuWJA':_0x1c32e0(0x275),'bWIGX':function(_0x127de5,_0x3cca1e){return _0x127de5>_0x3cca1e;},'ufdnG':'so_ct','Sawun':_0x1c32e0(0x213),'amFim':_0x1c32e0(0x225),'SYNCx':_0x1c32e0(0x231),'KTgdm':_0x1c32e0(0x283),'LHxjn':'ma_hd','DkFiY':_0x1c32e0(0x229),'Durdi':_0x1c32e0(0x26d),'QidHK':_0x1c32e0(0x26a),'PfxKO':_0x1c32e0(0x1e6),'Kntrs':_0x1c32e0(0x208),'OCMeh':'quy','MyeKl':'nam','QkrUa':_0x1c32e0(0x29f),'fnDLf':_0x1c32e0(0x204),'OrYOU':'ps_co_nt'},_0x553c40=global[_0x1c32e0(0x1ef)]('socai');async['parallel']({'ps_no':function(_0xd4ffed){const _0x2ba884=_0x1c32e0,_0x2ca2a1={'KDkfE':function(_0x4ed62e,_0x11b35d){const _0x2f7530=_0x5d68;return _0x146310[_0x2f7530(0x1eb)](_0x4ed62e,_0x11b35d);},'ToQEa':function(_0x47ca1a,_0x26b3dc){const _0x248b75=_0x5d68;return _0x146310[_0x248b75(0x2a9)](_0x47ca1a,_0x26b3dc);},'rMgcL':function(_0x429e1b){return _0x429e1b();},'VCLiV':function(_0x30bfb1,_0xd3b5c3){return _0x146310['Zczer'](_0x30bfb1,_0xd3b5c3);},'wodEc':_0x146310['FLdPo'],'rcSlJ':function(_0x2eab7e,_0x220248){return _0x2eab7e<_0x220248;},'EzLIO':function(_0x35dd1b,_0x402eb8){return _0x146310['tNrMW'](_0x35dd1b,_0x402eb8);},'GISvo':_0x2ba884(0x23b),'AAteQ':_0x146310['hvraA'],'vbZbF':function(_0x55ce0e,_0x4472f2){const _0x10ccb6=_0x2ba884;return _0x146310[_0x10ccb6(0x21f)](_0x55ce0e,_0x4472f2);},'oHjaX':_0x146310[_0x2ba884(0x20c)],'OebUf':function(_0x3ea505,_0x164d9a){const _0x1cf6e8=_0x2ba884;return _0x146310[_0x1cf6e8(0x25f)](_0x3ea505,_0x164d9a);},'hLhkB':function(_0x5c893e,_0xd1dbdb){return _0x146310['PeuBd'](_0x5c893e,_0xd1dbdb);},'yEmdw':_0x146310[_0x2ba884(0x27d)]};_0x146310[_0x2ba884(0x2a9)](setImmediate,async()=>{const _0x5a29c0=_0x2ba884,_0x304cc5={'AAWQY':function(_0x39876f){const _0x5719ad=_0x5d68;return _0x2ca2a1[_0x5719ad(0x239)](_0x39876f);},'SHNdw':function(_0x5cd4c6,_0x113355){const _0x2108ef=_0x5d68;return _0x2ca2a1[_0x2108ef(0x1fe)](_0x5cd4c6,_0x113355);},'DZOVD':_0x2ca2a1[_0x5a29c0(0x211)],'uOYEC':function(_0x8bba30,_0x55dc5d){const _0x542dfc=_0x5a29c0;return _0x2ca2a1[_0x542dfc(0x280)](_0x8bba30,_0x55dc5d);},'FAFXk':function(_0x1d4953,_0x17ddc6){return _0x1d4953(_0x17ddc6);},'LcTVT':function(_0x420ea0,_0x37f0e8){const _0xd1221a=_0x5a29c0;return _0x2ca2a1[_0xd1221a(0x2ab)](_0x420ea0,_0x37f0e8);},'BclqN':_0x2ca2a1[_0x5a29c0(0x1c6)]};let _0x42c62b={};_[_0x5a29c0(0x1ce)](_0x42c62b,_0xefd953);_0x42c62b['tk']&&(_0x42c62b['tk_no']=_0x42c62b['tk'],delete _0x42c62b['tk']);if(_0x42c62b['ma_kh']){if(_0x2ca2a1[_0x5a29c0(0x226)]===_0x2ca2a1[_0x5a29c0(0x226)])_0x42c62b[_0x5a29c0(0x1cb)]=_0x42c62b[_0x5a29c0(0x1ee)],delete _0x42c62b[_0x5a29c0(0x1ee)];else{const _0x13d67b=_0x47f18d[_0x5a29c0(0x1d7)](_0x3acdda,arguments);return _0x19dea1=null,_0x13d67b;}}const _0x19ccb4=0xf4240;let _0x2614e8=0x0,_0x502ab8=[];const _0x55c21e=await _0x553c40[_0x5a29c0(0x281)](_0x42c62b)[_0x5a29c0(0x1f9)](_0x2ca2a1['vbZbF'](_0x2614e8,_0x19ccb4))['limit'](_0x19ccb4)[_0x5a29c0(0x202)](_0x2ca2a1[_0x5a29c0(0x21e)]);_0x2ca2a1['OebUf'](_0x55c21e[_0x5a29c0(0x1e9)],0x0)&&_0x2ca2a1[_0x5a29c0(0x2b4)](_0x55c21e[0x0][_0x5a29c0(0x29e)]['totalKeysExamined'],_0x55c21e[0x0][_0x5a29c0(0x29e)][_0x5a29c0(0x1d4)])&&console[_0x5a29c0(0x26f)](_0x2ca2a1['yEmdw'],_0x42c62b,_0x55c21e[0x0][_0x5a29c0(0x29e)]),async[_0x5a29c0(0x282)](_0x1bd63b=>{const _0x505a84=_0x5a29c0;_0x553c40[_0x505a84(0x281)](_0x42c62b)[_0x505a84(0x1f9)](_0x2614e8*_0x19ccb4)[_0x505a84(0x25d)](_0x19ccb4)[_0x505a84(0x1f2)]()[_0x505a84(0x2b1)](function(_0x85c1f1){const _0x5216ab=_0x505a84,_0x54b769=_0x5216ab(0x1d8)['split']('|');let _0x23bc25=0x0;while(!![]){switch(_0x54b769[_0x23bc25++]){case'0':_0x304cc5['AAWQY'](_0x1bd63b);continue;case'1':_0x2614e8=_0x304cc5[_0x5216ab(0x252)](_0x2614e8,0x1);continue;case'2':_0x502ab8=_0x502ab8[_0x5216ab(0x1df)](_0x85c1f1);continue;case'3':console[_0x5216ab(0x2a7)](_0x304cc5['DZOVD'],{'page':_0x2614e8,'rows_number':_0x85c1f1['length']});continue;case'4':if(_0x304cc5[_0x5216ab(0x2aa)](_0x85c1f1[_0x5216ab(0x1e9)],_0x19ccb4))return _0x304cc5[_0x5216ab(0x200)](_0x1bd63b,'0');continue;case'5':_0x85c1f1[_0x5216ab(0x28c)](_0x84c404=>{const _0x2fd23b=_0x5216ab;_0x84c404['tk']=_0x84c404[_0x2fd23b(0x1dd)],_0x84c404[_0x2fd23b(0x231)]=_0x84c404['tk_co'],_0x84c404[_0x2fd23b(0x1ee)]=_0x84c404[_0x2fd23b(0x1cb)],!_0x84c404[_0x2fd23b(0x1ee)]&&_0x84c404['ma_kh_co']&&(_0x84c404[_0x2fd23b(0x1ee)]=_0x84c404[_0x2fd23b(0x21d)]),_0x84c404[_0x2fd23b(0x204)]=_0x84c404[_0x2fd23b(0x233)],_0x84c404['ps_no']=Math['roundBy'](_0x84c404['tien'],0x0),_0x84c404['ps_co_nt']=0x0,_0x84c404[_0x2fd23b(0x29f)]=0x0;});continue;}break;}})[_0x505a84(0x294)](_0x55c4e1=>{const _0x649e0f=_0x505a84;_0x304cc5[_0x649e0f(0x27f)]('IclQR',_0x304cc5['BclqN'])?(_0x243794['tk_co']=_0x293221['tk'],delete _0x51b095['tk']):_0x304cc5[_0x649e0f(0x200)](_0x1bd63b,_0x55c4e1);});},_0x20aa60=>{const _0x23decf=_0x5a29c0;if(_0x2ca2a1[_0x23decf(0x21b)](_0x20aa60,'0'))return _0x2ca2a1[_0x23decf(0x28e)](_0xd4ffed,_0x20aa60);_0xd4ffed(null,_0x502ab8);});});},'ps_co':function(_0x1d30ca){const _0x129270=_0x1c32e0,_0x228ab3={'OntSg':function(_0x447341,_0x2a999b){const _0x3ed72f=_0x5d68;return _0x146310[_0x3ed72f(0x25f)](_0x447341,_0x2a999b);},'ArJem':_0x129270(0x1e8),'ohRaF':_0x146310[_0x129270(0x2ac)],'Qoxmd':_0x146310[_0x129270(0x248)],'lfLUt':_0x146310[_0x129270(0x1f8)],'fvoMu':_0x146310[_0x129270(0x1c9)],'XDPxC':_0x129270(0x205),'OzqGf':_0x129270(0x225),'XqSLi':_0x129270(0x231),'GlKsQ':_0x146310[_0x129270(0x1c1)],'uYyqB':_0x146310[_0x129270(0x1d3)],'alnuR':_0x146310[_0x129270(0x22a)],'fmTKp':_0x146310[_0x129270(0x23f)],'FKigR':_0x146310[_0x129270(0x203)],'GjSqE':_0x146310['tbGgo'],'RWcBd':_0x129270(0x283),'dpSvS':_0x129270(0x1f3),'HbYqG':_0x146310[_0x129270(0x235)],'ekxBr':_0x146310[_0x129270(0x279)],'eWgtp':_0x146310[_0x129270(0x1ec)],'jqXWq':_0x146310[_0x129270(0x1ed)],'Yoiiy':_0x146310[_0x129270(0x209)],'TtRcP':_0x146310['rInTN'],'MtuXc':_0x146310[_0x129270(0x289)],'UzDTT':_0x129270(0x26a),'IFUQH':_0x146310[_0x129270(0x22d)],'xHJVg':_0x146310[_0x129270(0x25a)],'XCFhX':_0x146310[_0x129270(0x1fc)],'QlNBa':_0x146310[_0x129270(0x271)],'eFSbS':_0x146310[_0x129270(0x249)],'WSjdj':_0x129270(0x208),'iyyfH':_0x146310[_0x129270(0x296)],'EhNHr':_0x129270(0x1cd),'NzGHR':_0x146310[_0x129270(0x267)],'gwnGx':_0x129270(0x224),'svTyb':_0x146310[_0x129270(0x201)],'SNVwP':function(_0x390268,_0x7b1697){return _0x390268===_0x7b1697;},'CCXeL':_0x146310[_0x129270(0x22c)],'kGmpX':function(_0x409aa2,_0x5d17ac){const _0x2ab323=_0x129270;return _0x146310[_0x2ab323(0x1fb)](_0x409aa2,_0x5d17ac);},'zUrXC':function(_0xa3dfac,_0x155d74){return _0x146310['LlYdt'](_0xa3dfac,_0x155d74);},'uNXga':function(_0x347ffc,_0x5c93bf,_0x599b3e){const _0xdaf9cc=_0x129270;return _0x146310[_0xdaf9cc(0x2ae)](_0x347ffc,_0x5c93bf,_0x599b3e);}};_0x146310['lUWJe'](setImmediate,()=>{const _0x4fa364=_0x129270,_0x510057={'DXzCv':_0x4fa364(0x1e5),'ENxrS':function(_0x544d30,_0x5377a4){const _0x1bec03=_0x4fa364;return _0x146310[_0x1bec03(0x26c)](_0x544d30,_0x5377a4);},'BueHt':function(_0x101902){return _0x101902();},'QAcwq':function(_0x390c47,_0x5752fe){const _0x4867b3=_0x4fa364;return _0x146310[_0x4867b3(0x2a9)](_0x390c47,_0x5752fe);},'DFNiI':function(_0x290d1d,_0x330f8c){const _0x3a9e3a=_0x4fa364;return _0x146310[_0x3a9e3a(0x1c4)](_0x290d1d,_0x330f8c);},'RqISz':_0x146310['FLdPo'],'ifPEC':function(_0x42ac6,_0x1c1cf2){return _0x42ac6<_0x1c1cf2;},'dyoqo':function(_0x52c700,_0x5691de){const _0x57a5b2=_0x4fa364;return _0x146310[_0x57a5b2(0x1fd)](_0x52c700,_0x5691de);},'GzVKf':function(_0x51d36e){return _0x146310['xnnGb'](_0x51d36e);}};let _0x48f9b8={};_['extend'](_0x48f9b8,_0xefd953);_0x48f9b8['tk']&&(_0x146310['yQtXl'](_0x146310['IMBhh'],_0x4fa364(0x269))?(_0x3e9779['isArray'](_0x46453e[_0x4fa364(0x221)])&&_0x228ab3[_0x4fa364(0x1e4)](_0x2f17d3[_0x4fa364(0x221)][_0x4fa364(0x1e9)],0x0)&&(_0x3568ec=_0xc587c6[_0x4fa364(0x221)]),_0x5e05f0=_0x4b85d2||[_0x228ab3[_0x4fa364(0x254)],_0x4fa364(0x2a5),_0x228ab3['ohRaF'],_0x228ab3[_0x4fa364(0x274)],_0x228ab3[_0x4fa364(0x263)],_0x228ab3[_0x4fa364(0x291)],_0x228ab3[_0x4fa364(0x1d0)],_0x4fa364(0x213),_0x228ab3[_0x4fa364(0x1c3)],'tk',_0x228ab3[_0x4fa364(0x1d2)],_0x228ab3['GlKsQ'],_0x228ab3[_0x4fa364(0x284)],_0x228ab3[_0x4fa364(0x22e)],_0x228ab3[_0x4fa364(0x257)],_0x228ab3['FKigR'],_0x4fa364(0x242),_0x228ab3[_0x4fa364(0x251)],_0x228ab3[_0x4fa364(0x253)],_0x228ab3[_0x4fa364(0x2ad)],_0x4fa364(0x229),_0x228ab3[_0x4fa364(0x1c5)],_0x228ab3[_0x4fa364(0x214)],_0x4fa364(0x26d),_0x228ab3['eWgtp'],_0x228ab3[_0x4fa364(0x1c7)],_0x228ab3['Yoiiy'],_0x228ab3['TtRcP'],_0x228ab3[_0x4fa364(0x217)],_0x228ab3[_0x4fa364(0x232)],_0x228ab3['IFUQH'],_0x228ab3[_0x4fa364(0x219)],'ma_td6',_0x228ab3[_0x4fa364(0x22f)],_0x228ab3[_0x4fa364(0x20d)],_0x228ab3['eFSbS'],_0x228ab3[_0x4fa364(0x241)],_0x4fa364(0x286),_0x228ab3[_0x4fa364(0x21a)],_0x228ab3[_0x4fa364(0x295)],_0x4fa364(0x1db),_0x228ab3[_0x4fa364(0x268)],_0x228ab3[_0x4fa364(0x218)]]):(_0x48f9b8[_0x4fa364(0x240)]=_0x48f9b8['tk'],delete _0x48f9b8['tk']));_0x48f9b8[_0x4fa364(0x1ee)]&&(_0x48f9b8[_0x4fa364(0x21d)]=_0x48f9b8[_0x4fa364(0x1ee)],delete _0x48f9b8[_0x4fa364(0x1ee)]);const _0x200b12=0xf4240;let _0x1c1400=0x0,_0x2b8af3=[];async[_0x4fa364(0x282)](_0x451ba6=>{const _0x4e78d1=_0x4fa364,_0x630514={'fbcMu':function(_0xb8070d,_0x2be4ae){const _0x340ab4=_0x5d68;return _0x510057[_0x340ab4(0x1f5)](_0xb8070d,_0x2be4ae);},'NAmEZ':function(_0x2f1c78,_0x324cf5){return _0x510057['DFNiI'](_0x2f1c78,_0x324cf5);},'xQRWQ':'QJnNW','zGzZm':function(_0x14f300,_0x59dbb7){const _0x6c470a=_0x5d68;return _0x510057[_0x6c470a(0x1f5)](_0x14f300,_0x59dbb7);}};_0x553c40[_0x4e78d1(0x281)](_0x48f9b8)[_0x4e78d1(0x1f9)](_0x1c1400*_0x200b12)[_0x4e78d1(0x25d)](_0x200b12)['lean']()['then'](function(_0x307761){const _0x5a03fb=_0x4e78d1,_0x3d73fe={'jySRB':_0x510057[_0x5a03fb(0x1de)]};console[_0x5a03fb(0x2a7)]('vsocai:\x20ps\x20co',{'page':_0x1c1400,'rows_number':_0x307761[_0x5a03fb(0x1e9)]}),_0x307761[_0x5a03fb(0x28c)](_0xeeff95=>{const _0x39e097=_0x5a03fb,_0xa482f7=_0x3d73fe[_0x39e097(0x2a4)][_0x39e097(0x264)]('|');let _0x10b08c=0x0;while(!![]){switch(_0xa482f7[_0x10b08c++]){case'0':_0xeeff95[_0x39e097(0x204)]=0x0;continue;case'1':_0xeeff95['ma_kh']=_0xeeff95[_0x39e097(0x21d)];continue;case'2':!_0xeeff95[_0x39e097(0x1ee)]&&_0xeeff95[_0x39e097(0x1cb)]&&(_0xeeff95[_0x39e097(0x1ee)]=_0xeeff95[_0x39e097(0x1cb)]);continue;case'3':_0xeeff95['ps_no']=0x0;continue;case'4':_0xeeff95[_0x39e097(0x231)]=_0xeeff95[_0x39e097(0x1dd)];continue;case'5':_0xeeff95['tk']=_0xeeff95[_0x39e097(0x240)];continue;case'6':_0xeeff95[_0x39e097(0x29f)]=Math[_0x39e097(0x222)](_0xeeff95[_0x39e097(0x23a)],0x0);continue;case'7':_0xeeff95['ps_co_nt']=_0xeeff95[_0x39e097(0x233)];continue;}break;}}),_0x2b8af3=_0x2b8af3[_0x5a03fb(0x1df)](_0x307761);if(_0x307761[_0x5a03fb(0x1e9)]<_0x200b12)return _0x451ba6('0');_0x1c1400=_0x510057['ENxrS'](_0x1c1400,0x1),_0x510057[_0x5a03fb(0x236)](_0x451ba6);})[_0x4e78d1(0x294)](_0x48d7f7=>{const _0x4f807e=_0x4e78d1;_0x630514[_0x4f807e(0x1cf)](_0x630514['xQRWQ'],_0x4f807e(0x1d9))?_0x630514['zGzZm'](_0x451ba6,_0x48d7f7):_0x630514['fbcMu'](_0x18b9ce,_0x18e434);});},_0x4d86d2=>{const _0x4a4d89=_0x4fa364,_0x44dc99={'tDJuJ':_0x228ab3[_0x4a4d89(0x25b)]};if(_0x228ab3[_0x4a4d89(0x27b)](_0x228ab3[_0x4a4d89(0x260)],_0x228ab3['CCXeL'])){if(_0x228ab3[_0x4a4d89(0x216)](_0x4d86d2,'0'))return _0x228ab3[_0x4a4d89(0x22b)](_0x1d30ca,_0x4d86d2);_0x228ab3[_0x4a4d89(0x299)](_0x1d30ca,null,_0x2b8af3);}else{_0x56101e['log'](_0x510057['RqISz'],{'page':_0x2bbf06,'rows_number':_0x1a96ab[_0x4a4d89(0x1e9)]}),_0x2e9cf9[_0x4a4d89(0x28c)](_0x562a98=>{const _0x32007b=_0x4a4d89,_0x3ea51d=_0x44dc99[_0x32007b(0x21c)]['split']('|');let _0x328c7b=0x0;while(!![]){switch(_0x3ea51d[_0x328c7b++]){case'0':_0x562a98[_0x32007b(0x1ee)]=_0x562a98['ma_kh_no'];continue;case'1':_0x562a98['ps_co_nt']=0x0;continue;case'2':!_0x562a98[_0x32007b(0x1ee)]&&_0x562a98[_0x32007b(0x21d)]&&(_0x562a98['ma_kh']=_0x562a98[_0x32007b(0x21d)]);continue;case'3':_0x562a98['tk_du']=_0x562a98[_0x32007b(0x240)];continue;case'4':_0x562a98[_0x32007b(0x204)]=_0x562a98['tien_nt'];continue;case'5':_0x562a98['tk']=_0x562a98[_0x32007b(0x1dd)];continue;case'6':_0x562a98[_0x32007b(0x29f)]=0x0;continue;case'7':_0x562a98[_0x32007b(0x2b3)]=_0x30e14c[_0x32007b(0x222)](_0x562a98[_0x32007b(0x23a)],0x0);continue;}break;}}),_0x14055a=_0x19ace7['concat'](_0xf57e53);if(_0x510057[_0x4a4d89(0x2a8)](_0x182507[_0x4a4d89(0x1e9)],_0x247164))return _0x510057[_0x4a4d89(0x2a3)](_0x410d65,'0');_0xaff472=_0x38a48b+0x1,_0x510057[_0x4a4d89(0x298)](_0x210246);}});});}},function(_0x1a7606,_0x4d137a){const _0x44c0ca=_0x1c32e0,_0xa6e29d={'BHFOJ':function(_0x22f05f,_0x4f8d01){const _0x53aa4b=_0x5d68;return _0x146310[_0x53aa4b(0x2a9)](_0x22f05f,_0x4f8d01);},'PzoXd':_0x146310[_0x44c0ca(0x243)],'MowdI':function(_0x157a63,_0x3b1d6f){return _0x157a63<_0x3b1d6f;},'xsyFm':function(_0x1c7e44,_0x49f301){const _0x1c97d6=_0x44c0ca;return _0x146310[_0x1c97d6(0x23e)](_0x1c7e44,_0x49f301);},'ZVOiP':function(_0x31909f,_0x21ce0e){return _0x31909f>_0x21ce0e;},'qLdFy':function(_0x325d06,_0x2ae1c7){return _0x325d06>_0x2ae1c7;},'juvXr':function(_0x5251a4,_0x5f0a93){const _0x248448=_0x44c0ca;return _0x146310[_0x248448(0x1f7)](_0x5251a4,_0x5f0a93);},'zqERn':function(_0x564e9e,_0x1de592){const _0x5a5cef=_0x44c0ca;return _0x146310[_0x5a5cef(0x1fd)](_0x564e9e,_0x1de592);},'ZmoDw':function(_0x2bf2b2,_0x512bfc){return _0x2bf2b2(_0x512bfc);},'fFRCw':function(_0x2ed8ea,_0x2ed904){return _0x2ed8ea>_0x2ed904;},'cOxFT':function(_0x4e4998,_0x43ce58){return _0x4e4998<_0x43ce58;},'GnEtX':function(_0x1f24f1,_0x149744){const _0x30c85d=_0x44c0ca;return _0x146310[_0x30c85d(0x1f1)](_0x1f24f1,_0x149744);},'oTMCJ':function(_0x27b835,_0x3a5d36){const _0x10bdae=_0x44c0ca;return _0x146310[_0x10bdae(0x259)](_0x27b835,_0x3a5d36);},'tHaDy':function(_0x2a6aee,_0x135181){return _0x2a6aee>_0x135181;},'vvDvW':function(_0x154e03,_0x26cc1b){return _0x154e03>_0x26cc1b;},'UbvNh':function(_0x1d57f6,_0x20a8c6){const _0x268f0b=_0x44c0ca;return _0x146310[_0x268f0b(0x1e2)](_0x1d57f6,_0x20a8c6);},'OeowU':function(_0x419c4b,_0x1418a3,_0x5dc9d7){return _0x146310['euyVg'](_0x419c4b,_0x1418a3,_0x5dc9d7);}};if(_0x146310[_0x44c0ca(0x206)](_0x146310[_0x44c0ca(0x1ca)],_0x146310[_0x44c0ca(0x24e)])){if(_0x1a7606)return _0x74edae(_0x1a7606);let _0x1befa2=[..._0x4d137a[_0x44c0ca(0x2b3)],..._0x4d137a['ps_co']];console['log'](_0x146310[_0x44c0ca(0x227)],{'rows_number':_0x1befa2[_0x44c0ca(0x1e9)]});if(_0x217e96&&_0x217e96[_0x44c0ca(0x1d1)]){if(_0x146310[_0x44c0ca(0x238)](_0x44c0ca(0x27e),'pLsoJ')){let _0x3311c7=_0x146310[_0x44c0ca(0x1fd)](_0x547cd8,_0x1ad17a['ngay_ct'])[_0x44c0ca(0x250)](_0x146310[_0x44c0ca(0x243)])['toDate']()[_0x44c0ca(0x290)](),_0x4af208=_0x146310[_0x44c0ca(0x2a9)](_0x1aa118,_0x4a15ba['ngay_ct'])[_0x44c0ca(0x250)](_0x146310[_0x44c0ca(0x243)])[_0x44c0ca(0x1c8)]()['getTime']();if(_0x146310['cOsiU'](_0x3311c7,_0x4af208))return-0x1;if(_0x3311c7>_0x4af208)return 0x1;if(_0x146310[_0x44c0ca(0x23e)](_0x4fa109[_0x44c0ca(0x205)],_0x59b8ab[_0x44c0ca(0x205)]))return-0x1;if(_0x146310[_0x44c0ca(0x1f7)](_0x280813[_0x44c0ca(0x205)],_0x1c9031[_0x44c0ca(0x205)]))return 0x1;if(_0x1282aa['id_ct']<_0xce752b[_0x44c0ca(0x1c2)])return-0x1;if(_0x426524[_0x44c0ca(0x1c2)]>_0x57a224[_0x44c0ca(0x1c2)])return 0x1;if(_0x146310[_0x44c0ca(0x23e)](_0x16bdf3[_0x44c0ca(0x24a)],_0x3535d0['nh_dk']))return-0x1;if(_0x146310['ZKPIG'](_0x4b8d6c['nh_dk'],_0x2824eb[_0x44c0ca(0x24a)]))return 0x1;if(_0x4e1dc2[_0x44c0ca(0x2b3)]<_0x20a395[_0x44c0ca(0x2b3)])return 0x1;if(_0x146310[_0x44c0ca(0x1f7)](_0x7e0c20[_0x44c0ca(0x2b3)],_0x12c8a1[_0x44c0ca(0x2b3)]))return-0x1;if(_0x146310[_0x44c0ca(0x23e)](_0x373419[_0x44c0ca(0x29f)],_0x1fd311[_0x44c0ca(0x29f)]))return-0x1;if(_0x146310[_0x44c0ca(0x25f)](_0x351e0e[_0x44c0ca(0x29f)],_0x46c31e[_0x44c0ca(0x29f)]))return 0x1;return 0x0;}else _0x1befa2=_0x1befa2[_0x44c0ca(0x28f)]((_0x18dbac,_0x4be224)=>{const _0x21d224=_0x44c0ca;let _0x2ec8c5=_0xa6e29d[_0x21d224(0x230)](moment,_0x18dbac[_0x21d224(0x1d6)])['endOf'](_0xa6e29d[_0x21d224(0x24f)])['toDate']()['getTime'](),_0x381e4a=_0xa6e29d[_0x21d224(0x230)](moment,_0x4be224[_0x21d224(0x1d6)])['endOf'](_0xa6e29d[_0x21d224(0x24f)])[_0x21d224(0x1c8)]()[_0x21d224(0x290)]();if(_0xa6e29d[_0x21d224(0x1ea)](_0x2ec8c5,_0x381e4a))return-0x1;if(_0x2ec8c5>_0x381e4a)return 0x1;if(_0xa6e29d[_0x21d224(0x1da)](_0x18dbac[_0x21d224(0x205)],_0x4be224[_0x21d224(0x205)]))return-0x1;if(_0xa6e29d[_0x21d224(0x25e)](_0x18dbac[_0x21d224(0x205)],_0x4be224[_0x21d224(0x205)]))return 0x1;if(_0x18dbac[_0x21d224(0x1c2)]<_0x4be224[_0x21d224(0x1c2)])return-0x1;if(_0x18dbac['id_ct']>_0x4be224[_0x21d224(0x1c2)])return 0x1;if(_0xa6e29d[_0x21d224(0x1da)](_0x18dbac[_0x21d224(0x24a)],_0x4be224[_0x21d224(0x24a)]))return-0x1;if(_0xa6e29d['qLdFy'](_0x18dbac[_0x21d224(0x24a)],_0x4be224[_0x21d224(0x24a)]))return 0x1;if(_0xa6e29d[_0x21d224(0x1ea)](_0x18dbac[_0x21d224(0x2b3)],_0x4be224['ps_no']))return 0x1;if(_0xa6e29d[_0x21d224(0x285)](_0x18dbac[_0x21d224(0x2b3)],_0x4be224[_0x21d224(0x2b3)]))return-0x1;if(_0xa6e29d[_0x21d224(0x1da)](_0x18dbac[_0x21d224(0x29f)],_0x4be224[_0x21d224(0x29f)]))return-0x1;if(_0xa6e29d[_0x21d224(0x24c)](_0x18dbac[_0x21d224(0x29f)],_0x4be224[_0x21d224(0x29f)]))return 0x1;return 0x0;});}if(_0x217e96&&_0x217e96[_0x44c0ca(0x221)]){let _0x4ae9b0;_0x217e96[_0x44c0ca(0x221)]&&(_0x146310['KuWJA']!==_0x146310['KuWJA']?_0x5acfd9=_0x5b23ae['sort']((_0x41a1d9,_0x5cff65)=>{const _0xc5e7e8=_0x44c0ca;let _0x392d9c=_0xa6e29d[_0xc5e7e8(0x26b)](_0x611577,_0x41a1d9[_0xc5e7e8(0x1d6)])[_0xc5e7e8(0x250)](_0xa6e29d[_0xc5e7e8(0x24f)])[_0xc5e7e8(0x1c8)]()[_0xc5e7e8(0x290)](),_0x190ffd=_0xa6e29d[_0xc5e7e8(0x26e)](_0xa7214e,_0x5cff65[_0xc5e7e8(0x1d6)])[_0xc5e7e8(0x250)](_0xa6e29d[_0xc5e7e8(0x24f)])[_0xc5e7e8(0x1c8)]()[_0xc5e7e8(0x290)]();if(_0x392d9c<_0x190ffd)return-0x1;if(_0xa6e29d[_0xc5e7e8(0x24d)](_0x392d9c,_0x190ffd))return 0x1;if(_0xa6e29d[_0xc5e7e8(0x29c)](_0x41a1d9[_0xc5e7e8(0x205)],_0x5cff65['so_ct']))return-0x1;if(_0xa6e29d[_0xc5e7e8(0x24d)](_0x41a1d9[_0xc5e7e8(0x205)],_0x5cff65[_0xc5e7e8(0x205)]))return 0x1;if(_0xa6e29d[_0xc5e7e8(0x1ea)](_0x41a1d9[_0xc5e7e8(0x1c2)],_0x5cff65[_0xc5e7e8(0x1c2)]))return-0x1;if(_0xa6e29d[_0xc5e7e8(0x223)](_0x41a1d9[_0xc5e7e8(0x1c2)],_0x5cff65[_0xc5e7e8(0x1c2)]))return 0x1;if(_0xa6e29d['xsyFm'](_0x41a1d9[_0xc5e7e8(0x24a)],_0x5cff65[_0xc5e7e8(0x24a)]))return-0x1;if(_0xa6e29d[_0xc5e7e8(0x293)](_0x41a1d9[_0xc5e7e8(0x24a)],_0x5cff65[_0xc5e7e8(0x24a)]))return 0x1;if(_0x41a1d9[_0xc5e7e8(0x2b3)]<_0x5cff65[_0xc5e7e8(0x2b3)])return 0x1;if(_0xa6e29d[_0xc5e7e8(0x234)](_0x41a1d9[_0xc5e7e8(0x2b3)],_0x5cff65[_0xc5e7e8(0x2b3)]))return-0x1;if(_0xa6e29d['cOxFT'](_0x41a1d9[_0xc5e7e8(0x29f)],_0x5cff65[_0xc5e7e8(0x29f)]))return-0x1;if(_0xa6e29d[_0xc5e7e8(0x1cc)](_0x41a1d9['ps_co'],_0x5cff65['ps_co']))return 0x1;return 0x0;}):(_[_0x44c0ca(0x276)](_0x217e96[_0x44c0ca(0x221)])&&_0x146310['bWIGX'](_0x217e96[_0x44c0ca(0x221)]['length'],0x0)&&(_0x4ae9b0=_0x217e96[_0x44c0ca(0x221)]),_0x4ae9b0=_0x4ae9b0||[_0x44c0ca(0x1e8),'ma_dvcs',_0x146310[_0x44c0ca(0x2ac)],_0x146310[_0x44c0ca(0x248)],_0x44c0ca(0x297),_0x146310[_0x44c0ca(0x1c9)],_0x146310[_0x44c0ca(0x1e0)],_0x146310[_0x44c0ca(0x273)],_0x146310[_0x44c0ca(0x2a2)],'tk',_0x146310[_0x44c0ca(0x1d5)],_0x146310['cQmmh'],_0x44c0ca(0x262),_0x146310[_0x44c0ca(0x22a)],_0x146310['GbPoc'],_0x146310['IIQQK'],_0x44c0ca(0x242),_0x146310[_0x44c0ca(0x28d)],_0x146310['KTgdm'],_0x146310[_0x44c0ca(0x220)],_0x146310[_0x44c0ca(0x272)],_0x146310[_0x44c0ca(0x235)],_0x146310[_0x44c0ca(0x279)],_0x146310['Durdi'],_0x146310[_0x44c0ca(0x1ec)],_0x146310[_0x44c0ca(0x1ed)],_0x146310[_0x44c0ca(0x209)],'ma_td1',_0x146310[_0x44c0ca(0x289)],_0x146310['QidHK'],_0x44c0ca(0x2b0),_0x44c0ca(0x278),_0x146310[_0x44c0ca(0x1f4)],_0x146310[_0x44c0ca(0x1fc)],_0x146310['HHbTs'],_0x146310[_0x44c0ca(0x249)],_0x146310['Kntrs'],'ngay',_0x146310[_0x44c0ca(0x296)],_0x146310[_0x44c0ca(0x1e1)],_0x146310[_0x44c0ca(0x28b)],_0x146310[_0x44c0ca(0x267)],_0x44c0ca(0x224)])),_0x1befa2[_0x44c0ca(0x221)](_0x4ae9b0,['ps_no',_0x146310[_0x44c0ca(0x2af)],_0x146310[_0x44c0ca(0x228)],_0x146310[_0x44c0ca(0x215)]],(_0x143513,_0x4c82d3)=>{const _0x2c04c0=_0x44c0ca;if(_0x143513)return _0xa6e29d[_0x2c04c0(0x237)](_0x74edae,_0x143513);_0xa6e29d[_0x2c04c0(0x27a)](_0x74edae,null,_0x4c82d3);});}else _0x74edae(null,_0x1befa2);}else _0x4714d7['tk']=_0x4982d0[_0x44c0ca(0x240)],_0x2fca06['tk_du']=_0xf57486['tk_no'],_0x53367c[_0x44c0ca(0x1ee)]=_0x335317[_0x44c0ca(0x21d)],!_0x2b0333[_0x44c0ca(0x1ee)]&&_0x179601[_0x44c0ca(0x1cb)]&&(_0x823034['ma_kh']=_0xf1fe3a[_0x44c0ca(0x1cb)]),_0x11d852[_0x44c0ca(0x292)]=_0xf0e447[_0x44c0ca(0x233)],_0x50bcdc['ps_co']=_0x2e1ab9[_0x44c0ca(0x222)](_0x50cc8b[_0x44c0ca(0x23a)],0x0),_0x1d84ea[_0x44c0ca(0x204)]=0x0,_0x4bde6e['ps_no']=0x0;});};function _0x48ab(){const _0xd0f427=['DgLLBL9UDa','DeHHrhK','ywzqueG','qNvLshq','vwj2tMG','rgnouvO','CK1Ny0W','DgLLBG','swnSuvi','kcGOlISPkYKRksSK','zuXIugS','y09ZAvu','r2jqB2m','DgTFy28','v1nQzgO','BwfFyNa','yKvQuhi','zgzmzwi','mNHhwuHrwa','mJe3yuPWz0XZ','Cu5SAwm','D3fvyKC','suTNBeW','BMHFzgS','mJu0mdqZnM9nB01WCW','ANv2whi','zKzsq3C','B2rzDK4','uhPVwgq','zw5Kt2y','r2PtCuu','u0HozhC','uLDJqMq','qxjkzw0','s1ncBwu','mZC3ndy5CvLhy1Ln','zM1us3a','nJGWrwDkAxf4','BffTt3O','A2jdzfa','C3zuEwi','BwfFDgq3','BgLTAxq','wLzpAva','z1Dzv1a','q0nyzuW','DgHHBMC','B25Nx2jH','Bgzmvxq','C3bSAxq','yxn5BMm','ntaWme9RsgXiqG','qwTmsui','tNPhsfi','B2Tisuy','BwfFDgqZ','ENffuM4','wMn6zxi','BwfFy3a','wM1VrhC','zxjYB3i','DhLFz2LH','seHIvhm','rgTgAvK','u2f3Dw4','uw94Bwq','sevXDLq','AxnbCNjHEq','Bg9KyxnO','BwfFDgq1','tgfkrLu','t2vVD1u','u05wD1a','nxWZFdb8mNW0FdD8mxW2','BhLwshK','CeXZB0O','tgnuvLq','CMntBeO','zMLUza','zM9YzxzLCG','BwfFCgHP','DvL5Cui','CuXKrNK','BMDHEq','DNnVy2fPoIbPBMrLEgvZigpHU6DHihnVy2fPignOXRbHigHP4BUhDsbXDEg6OYbJAg8GCxvLCNK','BwfFC3a','twziENC','BwfFy3q','txLLs2W','zM9YrwfJAa','Dgjhz28','vg9rrwe','C29YDa','z2v0vgLTzq','zNzVtxu','ChnFy29FBNq','B1rnq0O','y2f0y2G','rwHoshi','qNbkAhC','BwfFz2q','r3Pws2y','Du5yz2e','Bw9Tzw50','wfnHv0C','y094rLq','mZa1mJq4y0f0sxbX','zxHLy3v0Aw9Uu3rHDhm','ChnFy28','we9st1G','DNnVy2fPoIbWCYbUBW','yw1gAw0','zhLVCw8','ANLtuKi','BwfFzhzJCW','BwfFBNy','Bg9N','Awzqrum','zuvODfy','Du9zrum','rxPmsu8','z1Pru2q','zhbtDLm','zxv5vMC','uwTYvwe','BwfFDgq0','DgHLBG','C2vHCMnO','ChnFBM8','AeXOA0i','y1fTBwG','AwrFy3q','t3PXr2y','Evf0wgW','sgjzCuC','r0LtDM8','ANfyv3e','Dg9eyxrL','sffgzg4','whrysue','BwfFA2HFBM8','DNzeDLC','Cxv5','zxH0zw5K','tKfTrvO','werqEem','C29YDerHDge','whfttgK','CwvuyvC','Dg90ywXeB2nZrxHHBwLUzwq','u1Loq3G','BMDHEv9JDa','yxbWBhK','m3W1Fdj8nhWXFda','uuPUtLC','Ehn5rM0','BMfT','mty1odmZnLLJvhbqAW','DgTFBM8','rfH6q3y','y29Uy2f0','DwzKBKC','t0nnzwG','ugvyEg0','BwfFA2HV','t250u2C','nxW0Fdf8mNW3Fdz8mhWZ','BwfFDgq2','BwfFDgq5','AwrFyxbW','BgvUz3rO','tw93zeK','ugv1qMq','whDMELe','DMvrv28','BwfFA2G','z2v0tw9KzwW','mtu0sKXrEfnN','Ahv1Dgm','BgvHBG','BwfFAgq','ugz4s08','uufJD3e','Dg9tDhjPBMC','D0Hbzxq','BgPWDMK','C2TPCa','BwfFBNq','zvrpswG','ENPfAKe','CLnzEu0','vKnmAvy','zgf0zq','rKfgwgS','rMzSt3O','zxHWBgfPBG','suLruuS','ChnFBM9FBNq','C29Fy3q','u2Lsr3a','DNnVy2fPoIbOyw5KBguGzgf0yq','z2LV','wePutNO','BwfFA2vUAa','zgf0zv9JCMvHDgvK','BgvmyKm','uwXoqMe','y29UC3rYDwn0B3i','mZGXmde4nM50y2fZqq','shnpqxa','D29Krwm','mtCZotm4mfb0yursyq','BMDHEv9Oza','zwT4qNi','t3jzt1u','A0DTCfG','txr1wgm','z3DUr3G','EeHkvMC','AxL5zKG','s0rRzKu','DerkDuO','BwfFA2HFy28','B0HQyvG','Dgz5C1e','teH4AM4','z3jVDxbcEq','CM91BMrcEq','r25fDfG','zgf0zv91CgrHDgvK','C29FAgq','quf0zve','verdBLy','zM5etgy','BwfFzhq','BKfSzgK','ELvYwem','sMr0ugW','yNfHqvG','ywXUDvi','wengAfG','qKHgt0O','DgTFzhu','vxPevfq'];_0x48ab=function(){return _0xd0f427;};return _0x48ab();}
|
package/server/libs/ctdiem.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
const dkdiem=require("./dkdiem"),transaction=global.getModel("transaction"),async=require("async");
|
|
2
|
-
module.exports=function($condition$$,$fn$$){if($condition$$&&$condition$$.tu_ngay&&$condition$$.email&&$condition$$.den_ngay&&$condition$$.id_app){var $tu_ngay$$=$condition$$.tu_ngay,$den_ngay$$=$condition$$.den_ngay,$id_app$$=$condition$$.id_app;async.series({dn:function($callback$$){dkdiem($condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$callback$$(null,$result$$)})},ps:function($callback$$){transaction.find({id_app:$id_app$$,ngay_ct:{$gte:$tu_ngay$$,$lte:$den_ngay$$},
|
|
3
|
-
$or:[{"sender.email":$condition$$.email},{"receiver.email":$condition$$.email}]}).lean().then(function($ps_pss$$){$ps_pss$$=$ps_pss$$.map($p_x$$=>{$p_x$$=Object.assign({},$p_x$$);$p_x$$.sender.email===$condition$$.email?($p_x$$.email=$p_x$$.sender.email,$p_x$$.sl_xuat=$p_x$$.amount,$p_x$$.sl_nhap=0):($p_x$$.email=$p_x$$.receiver.email,$p_x$$.sl_nhap=$p_x$$.amount,$p_x$$.sl_xuat=0);return[$p_x$$]}).reduce(($a$$,$b$$)=>$a$$.concat($b$$),[]).filter($r$$=>$r$$.email===$condition$$.email);$callback$$(null,
|
|
4
|
-
$ps_pss$$)}).catch($error$$=>{$callback$$($error$$)})}},function($error$$,$results$$){if($error$$)$fn$$($error$$);else{var $data$$=[];$results$$.ps.forEach(function($r$$){$r$$.sysorder=5;$r$$.bold=!1;$data$$.push($r$$)});async.series({ton_dau:function($callback$$){var $ton_dau$$=$results$$.dn.csum("ton00");$callback$$(null,$ton_dau$$)},sl_nhap:function($callback$$){var $sl_nhap$$=$results$$.ps.csum("sl_nhap");$callback$$(null,$sl_nhap$$)},sl_xuat:function($callback$$){var $sl_xuat$$=$results$$.ps.csum("sl_xuat");
|
|
5
|
-
$callback$$(null,$sl_xuat$$)}},function($error$$,$results$$){$data$$.push({sysorder:1,bold:!0,description:"T\u1ed3n \u0111\u1ea7u k\u1ef3",sl_nhap:$results$$.ton_dau,sl_xuat:0});$data$$.push({sysorder:6,bold:!0,description:"C\u1ed9ng ph\u00e1t sinh trong k\u1ef3",sl_nhap:$results$$.sl_nhap,sl_xuat:$results$$.sl_xuat});$data$$.push({sysorder:9,bold:!0,description:"T\u1ed3n cu\u1ed1i k\u1ef3",sl_nhap:$results$$.ton_dau+$results$$.sl_nhap-$results$$.sl_xuat});$fn$$(null,$data$$)})}})}else $fn$$("L\u1ed7i: B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1: tu_ngay,den_ngay,email,id_app")};
|
|
1
|
+
const _0x1b01bd=_0x1e93;(function(_0x471683,_0x1107e3){const _0x1dc1ec=_0x1e93,_0x1cfaeb=_0x471683();while(!![]){try{const _0xb286c0=-parseInt(_0x1dc1ec(0x153))/0x1*(-parseInt(_0x1dc1ec(0x135))/0x2)+parseInt(_0x1dc1ec(0x12b))/0x3+parseInt(_0x1dc1ec(0x12f))/0x4+parseInt(_0x1dc1ec(0x14d))/0x5*(-parseInt(_0x1dc1ec(0x131))/0x6)+parseInt(_0x1dc1ec(0x161))/0x7*(-parseInt(_0x1dc1ec(0x13b))/0x8)+-parseInt(_0x1dc1ec(0x14e))/0x9+parseInt(_0x1dc1ec(0x165))/0xa;if(_0xb286c0===_0x1107e3)break;else _0x1cfaeb['push'](_0x1cfaeb['shift']());}catch(_0x4961a0){_0x1cfaeb['push'](_0x1cfaeb['shift']());}}}(_0xb8fd,0x7c974));function _0x1e93(_0x5e5106,_0x26ad49){const _0xf221e5=_0xb8fd();return _0x1e93=function(_0x157be5,_0x48bd81){_0x157be5=_0x157be5-0x12a;let _0xb8fda5=_0xf221e5[_0x157be5];if(_0x1e93['FjLCvm']===undefined){var _0x1e93e4=function(_0x1fcdc2){const _0x332fda='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3eb186='',_0x4fbd8b='',_0x390c9f=_0x3eb186+_0x1e93e4;for(let _0x43716c=0x0,_0x5f179b,_0x34132c,_0x2ad407=0x0;_0x34132c=_0x1fcdc2['charAt'](_0x2ad407++);~_0x34132c&&(_0x5f179b=_0x43716c%0x4?_0x5f179b*0x40+_0x34132c:_0x34132c,_0x43716c++%0x4)?_0x3eb186+=_0x390c9f['charCodeAt'](_0x2ad407+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x5f179b>>(-0x2*_0x43716c&0x6)):_0x43716c:0x0){_0x34132c=_0x332fda['indexOf'](_0x34132c);}for(let _0x95ce77=0x0,_0x24d0d4=_0x3eb186['length'];_0x95ce77<_0x24d0d4;_0x95ce77++){_0x4fbd8b+='%'+('00'+_0x3eb186['charCodeAt'](_0x95ce77)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4fbd8b);};_0x1e93['YPByIE']=_0x1e93e4,_0x5e5106=arguments,_0x1e93['FjLCvm']=!![];}const _0x194452=_0xf221e5[0x0],_0x518f3f=_0x157be5+_0x194452,_0xcf9e50=_0x5e5106[_0x518f3f];if(!_0xcf9e50){const _0x2a57c0=function(_0x1fc175){this['DElctv']=_0x1fc175,this['VCTuIa']=[0x1,0x0,0x0],this['BrJxdQ']=function(){return'newState';},this['aVWZJz']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['zNrwNm']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2a57c0['prototype']['NYqWaK']=function(){const _0x5154dc=new RegExp(this['aVWZJz']+this['zNrwNm']),_0x4313e5=_0x5154dc['test'](this['BrJxdQ']['toString']())?--this['VCTuIa'][0x1]:--this['VCTuIa'][0x0];return this['qBUuOh'](_0x4313e5);},_0x2a57c0['prototype']['qBUuOh']=function(_0x51a58a){if(!Boolean(~_0x51a58a))return _0x51a58a;return this['KKZZWg'](this['DElctv']);},_0x2a57c0['prototype']['KKZZWg']=function(_0x1f7ba4){for(let _0x1442ca=0x0,_0x573e98=this['VCTuIa']['length'];_0x1442ca<_0x573e98;_0x1442ca++){this['VCTuIa']['push'](Math['round'](Math['random']())),_0x573e98=this['VCTuIa']['length'];}return _0x1f7ba4(this['VCTuIa'][0x0]);},new _0x2a57c0(_0x1e93)['NYqWaK'](),_0xb8fda5=_0x1e93['YPByIE'](_0xb8fda5),_0x5e5106[_0x518f3f]=_0xb8fda5;}else _0xb8fda5=_0xcf9e50;return _0xb8fda5;},_0x1e93(_0x5e5106,_0x26ad49);}const _0x48bd81=(function(){const _0x506278=_0x1e93,_0x584777={'yhrzP':_0x506278(0x140),'FsxGK':_0x506278(0x162),'rAZRQ':function(_0x54e0bc,_0x3bff55){return _0x54e0bc-_0x3bff55;},'qFRhl':function(_0x10be7f,_0x358810){return _0x10be7f+_0x358810;},'jgWuW':function(_0x841ff3,_0x32b80e,_0xa14ea5){return _0x841ff3(_0x32b80e,_0xa14ea5);},'esidO':function(_0x524bbe,_0x26b66a){return _0x524bbe===_0x26b66a;},'xiaJt':_0x506278(0x171),'VgCSo':_0x506278(0x16f)};let _0x5994d6=!![];return function(_0x370d61,_0x2fb17f){const _0x168ec5=_0x506278,_0x144e8d={'heEDA':_0x584777[_0x168ec5(0x150)],'duAHw':_0x584777['FsxGK'],'xhtbY':'Tồn\x20cuối\x20kỳ','tNoNo':function(_0x3370e1,_0x2d4cfa){return _0x584777['rAZRQ'](_0x3370e1,_0x2d4cfa);},'CZVhZ':function(_0x4fe83b,_0x131952){const _0xc2778=_0x168ec5;return _0x584777[_0xc2778(0x163)](_0x4fe83b,_0x131952);},'sVLho':function(_0xf8969f,_0x44d233,_0x300cfd){const _0x2ce790=_0x168ec5;return _0x584777[_0x2ce790(0x15f)](_0xf8969f,_0x44d233,_0x300cfd);}};if(_0x584777['esidO'](_0x584777[_0x168ec5(0x15e)],_0x584777['VgCSo']))_0x26f11['push']({'sysorder':0x1,'bold':!![],'description':_0x144e8d[_0x168ec5(0x14c)],'sl_nhap':_0x59b95c[_0x168ec5(0x152)],'sl_xuat':0x0}),_0x5ef7fd[_0x168ec5(0x16d)]({'sysorder':0x6,'bold':!![],'description':_0x144e8d['duAHw'],'sl_nhap':_0x5bc11c['sl_nhap'],'sl_xuat':_0x566ae7[_0x168ec5(0x174)]}),_0x28ca14['push']({'sysorder':0x9,'bold':!![],'description':_0x144e8d['xhtbY'],'sl_nhap':_0x144e8d[_0x168ec5(0x16e)](_0x144e8d[_0x168ec5(0x154)](_0x4a6f68[_0x168ec5(0x152)],_0x46873f[_0x168ec5(0x157)]),_0x5b8980[_0x168ec5(0x174)])}),_0x144e8d[_0x168ec5(0x148)](_0x1d50cc,null,_0x1beb20);else{const _0x3a5a22=_0x5994d6?function(){const _0x1d0b9d=_0x168ec5;if(_0x2fb17f){const _0x164e48=_0x2fb17f[_0x1d0b9d(0x14f)](_0x370d61,arguments);return _0x2fb17f=null,_0x164e48;}}:function(){};return _0x5994d6=![],_0x3a5a22;}};}()),_0x157be5=_0x48bd81(this,function(){const _0x15a15c=_0x1e93,_0x4110a9={'DHTfa':_0x15a15c(0x13c)};return _0x157be5[_0x15a15c(0x12d)]()['search'](_0x4110a9[_0x15a15c(0x16b)])[_0x15a15c(0x12d)]()[_0x15a15c(0x176)](_0x157be5)['search'](_0x4110a9[_0x15a15c(0x16b)]);});_0x157be5();const dkdiem=require('./dkdiem'),transaction=global[_0x1b01bd(0x16a)](_0x1b01bd(0x155)),async=require('async');module[_0x1b01bd(0x13d)]=function(_0x1a1f5a,_0x3170b3){const _0x265fd5=_0x1b01bd,_0x586893={'kXtHv':function(_0x16214e,_0x558a76){return _0x16214e===_0x558a76;},'Ekqbx':function(_0x121b0d,_0x224213){return _0x121b0d!==_0x224213;},'BawIb':_0x265fd5(0x133),'xMKgN':function(_0x4c6334,_0x36499a,_0x5acf60){return _0x4c6334(_0x36499a,_0x5acf60);},'oVpNk':_0x265fd5(0x12c),'IjaHa':function(_0x512d18,_0x32c39b,_0x4adb83){return _0x512d18(_0x32c39b,_0x4adb83);},'RSmgO':_0x265fd5(0x157),'TEaPf':_0x265fd5(0x140),'fcZAQ':'Tồn\x20cuối\x20kỳ','DbyYV':function(_0x18460a,_0x18d4bc){return _0x18460a-_0x18d4bc;},'xsiue':function(_0x5cb983,_0xf7a943,_0x274b56){return _0x5cb983(_0xf7a943,_0x274b56);},'tNIUQ':_0x265fd5(0x15d),'ooqLr':_0x265fd5(0x15b),'kvggA':'Lỗi:\x20Báo\x20cáo\x20này\x20yêu\x20cầu\x20các\x20tham\x20số:\x20tu_ngay,den_ngay,email,id_app'};if(!_0x1a1f5a||!_0x1a1f5a[_0x265fd5(0x159)]||!_0x1a1f5a[_0x265fd5(0x166)]||!_0x1a1f5a[_0x265fd5(0x160)]||!_0x1a1f5a[_0x265fd5(0x144)]){_0x3170b3(_0x586893[_0x265fd5(0x14b)]);return;}let _0x18ae3c=_0x1a1f5a[_0x265fd5(0x159)],_0x53f473=_0x1a1f5a[_0x265fd5(0x160)],_0x1c4924=_0x1a1f5a['id_app'];async['series']({'dn':function(_0xdfad0f){const _0x3ce2bb=_0x265fd5,_0x2d10b6={'jzQfD':function(_0x3a1ce1,_0xa5ab54){const _0x5ae6be=_0x1e93;return _0x586893[_0x5ae6be(0x12e)](_0x3a1ce1,_0xa5ab54);},'saDPF':function(_0x5604c5,_0x179c0d){return _0x586893['Ekqbx'](_0x5604c5,_0x179c0d);},'IqwkY':_0x586893[_0x3ce2bb(0x141)],'IXVOp':function(_0x376ada,_0x44840e,_0x2ef92f){const _0x4d5782=_0x3ce2bb;return _0x586893[_0x4d5782(0x172)](_0x376ada,_0x44840e,_0x2ef92f);}};if(_0x586893[_0x3ce2bb(0x12e)](_0x3ce2bb(0x145),_0x586893['oVpNk'])){let _0x22c6b9=_0x542635['assign']({},_0x407c31);return _0x2d10b6['jzQfD'](_0x22c6b9[_0x3ce2bb(0x143)][_0x3ce2bb(0x166)],_0x494358['email'])?(_0x22c6b9[_0x3ce2bb(0x166)]=_0x22c6b9['sender'][_0x3ce2bb(0x166)],_0x22c6b9[_0x3ce2bb(0x174)]=_0x22c6b9['amount'],_0x22c6b9[_0x3ce2bb(0x157)]=0x0):(_0x22c6b9[_0x3ce2bb(0x166)]=_0x22c6b9[_0x3ce2bb(0x156)]['email'],_0x22c6b9[_0x3ce2bb(0x157)]=_0x22c6b9[_0x3ce2bb(0x139)],_0x22c6b9[_0x3ce2bb(0x174)]=0x0),[_0x22c6b9];}else _0x586893['IjaHa'](dkdiem,_0x1a1f5a,function(_0x3ce196,_0x6bc0c1){const _0x2ec97d=_0x3ce2bb;if(_0x2d10b6[_0x2ec97d(0x142)](_0x2d10b6[_0x2ec97d(0x169)],_0x2d10b6[_0x2ec97d(0x169)])){const _0x49b29b=_0x95ce77?function(){const _0x3daf87=_0x2ec97d;if(_0x51a58a){const _0x128161=_0xdfde8e[_0x3daf87(0x14f)](_0xf3241d,arguments);return _0x3e2ce8=null,_0x128161;}}:function(){};return _0x4313e5=![],_0x49b29b;}else{if(_0x3ce196)return _0xdfad0f(_0x3ce196);_0x2d10b6[_0x2ec97d(0x167)](_0xdfad0f,null,_0x6bc0c1);}});},'ps':function(_0x31d7d0){const _0x58856c=_0x265fd5,_0x53bf8b={'uWiGM':function(_0x21f3ac,_0x1138ff){const _0x4eeae0=_0x1e93;return _0x586893[_0x4eeae0(0x12e)](_0x21f3ac,_0x1138ff);},'kqCqY':_0x58856c(0x12a),'COkQy':function(_0xef4965,_0xc019a5){return _0xef4965(_0xc019a5);}};if(_0x58856c(0x147)!=='hysFb'){var _0x1a975e=_0x3ea7ff['ps'][_0x58856c(0x138)](_0x586893['RSmgO']);_0x586893[_0x58856c(0x134)](_0x418c5a,null,_0x1a975e);}else{var _0x448ece={'id_app':_0x1c4924,'ngay_ct':{'$gte':_0x18ae3c,'$lte':_0x53f473},'$or':[{'sender.email':_0x1a1f5a['email']},{'receiver.email':_0x1a1f5a[_0x58856c(0x166)]}]};transaction['find'](_0x448ece)[_0x58856c(0x16c)]()[_0x58856c(0x170)](function(_0x127ab4){const _0x30c264=_0x58856c,_0x2332b8={'czbhs':function(_0x406ea6,_0x3dbcbc,_0xb44b4){return _0x406ea6(_0x3dbcbc,_0xb44b4);}};let _0x45f81d=_0x127ab4['map'](_0x2f3d03=>{const _0x2aeb9c=_0x1e93;let _0x36e8b3=Object[_0x2aeb9c(0x13f)]({},_0x2f3d03);return _0x36e8b3[_0x2aeb9c(0x143)][_0x2aeb9c(0x166)]===_0x1a1f5a[_0x2aeb9c(0x166)]?(_0x36e8b3[_0x2aeb9c(0x166)]=_0x36e8b3[_0x2aeb9c(0x143)][_0x2aeb9c(0x166)],_0x36e8b3[_0x2aeb9c(0x174)]=_0x36e8b3[_0x2aeb9c(0x139)],_0x36e8b3[_0x2aeb9c(0x157)]=0x0):_0x53bf8b[_0x2aeb9c(0x15c)](_0x53bf8b[_0x2aeb9c(0x173)],_0x53bf8b[_0x2aeb9c(0x173)])?(_0x36e8b3[_0x2aeb9c(0x166)]=_0x36e8b3[_0x2aeb9c(0x156)][_0x2aeb9c(0x166)],_0x36e8b3[_0x2aeb9c(0x157)]=_0x36e8b3[_0x2aeb9c(0x139)],_0x36e8b3[_0x2aeb9c(0x174)]=0x0):_0x2332b8['czbhs'](_0x5dd988,_0x168216,function(_0x3e5c5a,_0x412bfd){if(_0x3e5c5a)return _0xc5873c(_0x3e5c5a);_0x4c76f0(null,_0x412bfd);}),[_0x36e8b3];})[_0x30c264(0x149)]((_0x2ccc49,_0x493161)=>_0x2ccc49[_0x30c264(0x130)](_0x493161),[])[_0x30c264(0x136)](_0x1eaa79=>_0x1eaa79['email']===_0x1a1f5a[_0x30c264(0x166)]);_0x586893[_0x30c264(0x172)](_0x31d7d0,null,_0x45f81d);})['catch'](_0x287770=>{const _0x452c4d=_0x58856c;_0x53bf8b[_0x452c4d(0x13a)](_0x31d7d0,_0x287770);});}}},function(_0x3dc76b,_0x4fc88b){const _0x17a1fa=_0x265fd5,_0x39d0da={'lPnIu':function(_0x4c8040,_0x1d2523,_0x1864cc){const _0x50981f=_0x1e93;return _0x586893[_0x50981f(0x146)](_0x4c8040,_0x1d2523,_0x1864cc);}};if(_0x3dc76b){if(_0x586893[_0x17a1fa(0x151)]!==_0x586893[_0x17a1fa(0x168)]){_0x3170b3(_0x3dc76b);return;}else _0x383ffb['email']=_0x5d9a17[_0x17a1fa(0x143)][_0x17a1fa(0x166)],_0x49340a[_0x17a1fa(0x174)]=_0x1c6cfe[_0x17a1fa(0x139)],_0x11d61a[_0x17a1fa(0x157)]=0x0;}var _0x5aa603=[];_0x4fc88b['ps'][_0x17a1fa(0x158)](function(_0x49e3fe){const _0x47007b=_0x17a1fa;_0x49e3fe[_0x47007b(0x175)]=0x5,_0x49e3fe[_0x47007b(0x14a)]=![],_0x5aa603[_0x47007b(0x16d)](_0x49e3fe);}),async[_0x17a1fa(0x15a)]({'ton_dau':function(_0x5d091f){const _0x2e985e=_0x17a1fa;var _0x2e35a6=_0x4fc88b['dn'][_0x2e985e(0x138)]('ton00');_0x586893[_0x2e985e(0x172)](_0x5d091f,null,_0x2e35a6);},'sl_nhap':function(_0x5ad30f){const _0x1df626=_0x17a1fa;var _0xc8001a=_0x4fc88b['ps'][_0x1df626(0x138)](_0x586893[_0x1df626(0x13e)]);_0x586893[_0x1df626(0x172)](_0x5ad30f,null,_0xc8001a);},'sl_xuat':function(_0x33c196){const _0x26328c=_0x17a1fa;var _0x3ec2d5=_0x4fc88b['ps']['csum'](_0x26328c(0x174));_0x39d0da[_0x26328c(0x132)](_0x33c196,null,_0x3ec2d5);}},function(_0x4323af,_0x2c443b){const _0x4b528e=_0x17a1fa;_0x5aa603[_0x4b528e(0x16d)]({'sysorder':0x1,'bold':!![],'description':_0x586893[_0x4b528e(0x137)],'sl_nhap':_0x2c443b[_0x4b528e(0x152)],'sl_xuat':0x0}),_0x5aa603['push']({'sysorder':0x6,'bold':!![],'description':_0x4b528e(0x162),'sl_nhap':_0x2c443b[_0x4b528e(0x157)],'sl_xuat':_0x2c443b[_0x4b528e(0x174)]}),_0x5aa603[_0x4b528e(0x16d)]({'sysorder':0x9,'bold':!![],'description':_0x586893['fcZAQ'],'sl_nhap':_0x586893[_0x4b528e(0x164)](_0x2c443b['ton_dau']+_0x2c443b['sl_nhap'],_0x2c443b[_0x4b528e(0x174)])}),_0x3170b3(null,_0x5aa603);});});};function _0xb8fd(){const _0x67637a=['DhvFBMDHEq','C2vYAwvZ','qLPQv0O','DvDPr00','B0z6te8','EgLHsNq','AMDxDvC','zgvUx25NyxK','n0HLwLDYwG','q+g7Mw5NihbOW6f0ihnPBMGGDhjVBMCGA+g7SW','CuzsAgW','rgj5wvy','mJqWnte5mgDuq2rAyW','zw1HAwW','svHwt3a','B29Xthi','sxf3A1K','z2v0tw9KzwW','reHuzMe','BgvHBG','ChvZAa','De5VtM8','EwPxB00','DgHLBG','qu9oExi','Ee1lz04','A3fdCvK','C2XFEhvHDa','C3LZB3jKzxi','y29UC3rYDwn0B3i','CxvwshO','mJC4nJe4n3nbDeLzBW','AenNseG','Dg9tDhjPBMC','A1H0shy','mJKXmJeZnMHlrMjKwq','y29Uy2f0','nJzWt2XbzLm','BfbUsxu','A25Wz3O','swPHsge','mMX2AKLKtW','zMLSDgvY','vevHugy','y3n1Bq','yw1VDw50','q09RuxK','mZqXnZG5nNz1EeXbCW','kcGOlISPkYKRksSK','zxHWB3j0CW','uLnTz08','yxnZAwDU','vog7K24GXjhHUQD1igVHU7m','qMf3swi','C2feuey','C2vUzgvY','AwrFyxbW','wKnztgO','EhnPDwu','AhLZrMi','C1zmAg8','CMvKDwnL','yM9Sza','A3zNz0e','Agvfree','mZa1ndi1CvHwrMnS','ndK0nJK0ouDdqxD5qq','yxbWBhK','EwHYELa','De5jvve','Dg9Ux2rHDq','mJyXodC1DhjXs0P5','q1PwAfO','DhjHBNnHy3rPB24','CMvJzwL2zxi','C2XFBMHHCa','zM9YrwfJAa'];_0xb8fd=function(){return _0x67637a;};return _0xb8fd();}
|
package/server/libs/ctvt.js
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
const dkvt=require("./dkvt"),sokho=global.getModel("sokho"),async=require("async");
|
|
2
|
-
module.exports=function($condition$$,$fn$$){if(!($condition$$&&$condition$$.tu_ngay&&$condition$$.ma_vt&&$condition$$.den_ngay&&$condition$$.id_app))return $fn$$("L\u1ed7i: B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1: tu_ngay,den_ngay,ma_vt,id_app");let $ma_dvcs$$=$condition$$.ma_dvcs,$ma_kho$$=$condition$$.ma_kho,$ma_vt$$=$condition$$.ma_vt,$tu_ngay$$=$condition$$.tu_ngay,$den_ngay$$=$condition$$.den_ngay,$id_app$$=$condition$$.id_app;async.series({dn:function($callback$$){setImmediate(()=>
|
|
3
|
-
{dkvt($condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$callback$$(null,$result$$)})})},ps:function($callback$$){setImmediate(()=>{let $query$$={id_app:$id_app$$,ngay_ct:{$gte:$tu_ngay$$,$lte:$den_ngay$$},ma_vt:$ma_vt$$};$ma_kho$$&&($query$$.ma_kho=$ma_kho$$);$ma_dvcs$$&&($query$$.ma_dvcs=$ma_dvcs$$);$condition$$.ma_lo&&($query$$.ma_lo=$condition$$.ma_lo);$condition$$.han_sd&&($query$$.han_sd=$condition$$.han_sd);$condition$$.ma_tt1&&($query$$.ma_tt1=$condition$$.ma_tt1);
|
|
4
|
-
$condition$$.ma_tt2&&($query$$.ma_tt2=$condition$$.ma_tt2);$condition$$.ma_tt3&&($query$$.ma_tt3=$condition$$.ma_tt3);$condition$$.ma_kh&&($query$$.ma_kh=$condition$$.ma_kh);sokho.find($query$$).lean().then(function($pss$$){$pss$$=$pss$$.map($ps$$=>{$ps$$.sl_nhap=$ps$$.sl_nhap_qd;$ps$$.sl_xuat=$ps$$.sl_xuat_qd;return $ps$$});$callback$$(null,$pss$$)}).catch($error$$=>{$callback$$($error$$)})})}},function($error$$,$results$$){if($error$$)return $fn$$($error$$);let $data$$=[];$results$$.ps.forEach(function($r$$){$r$$.sysorder=
|
|
5
|
-
5;$r$$.bold=!1;$data$$.push($r$$)});async.parallel({ton_dau:function($callback$$){var $ton_dau$$=$results$$.dn.csum("ton00");$callback$$(null,$ton_dau$$)},du_dau:function($callback$$){var $du_dau$$=$results$$.dn.csum("du00");$callback$$(null,$du_dau$$)},sl_nhap:function($callback$$){var $sl_nhap$$=$results$$.ps.csum("sl_nhap");$callback$$(null,$sl_nhap$$)},tien_nhap:function($callback$$){var $tien_nhap$$=$results$$.ps.csum("tien_nhap");$callback$$(null,$tien_nhap$$)},sl_xuat:function($callback$$){var $sl_xuat$$=
|
|
6
|
-
$results$$.ps.csum("sl_xuat");$callback$$(null,$sl_xuat$$)},tien_xuat:function($callback$$){var $tien_xuat$$=$results$$.ps.csum("tien_xuat");$callback$$(null,$tien_xuat$$)}},function($error$$,$results$$){$data$$.push({sysorder:1,bold:!0,dien_giai:"T\u1ed3n \u0111\u1ea7u k\u1ef3",sl_nhap:$results$$.ton_dau,tien_nhap:$results$$.du_dau,sl_xuat:0,tien_xuat:0});$data$$.push({sysorder:6,bold:!0,dien_giai:"C\u1ed9ng ph\u00e1t sinh trong k\u1ef3",sl_nhap:$results$$.sl_nhap,tien_nhap:$results$$.tien_nhap,
|
|
7
|
-
sl_xuat:$results$$.sl_xuat,tien_xuat:$results$$.tien_xuat});$data$$.push({sysorder:9,bold:!0,dien_giai:"T\u1ed3n cu\u1ed1i k\u1ef3",sl_nhap:$results$$.ton_dau+$results$$.sl_nhap-$results$$.sl_xuat,tien_nhap:$results$$.du_dau+$results$$.tien_nhap-$results$$.tien_xuat});$fn$$(null,$data$$)})})};
|
|
1
|
+
const _0x3045be=_0x5a86;(function(_0x233d30,_0x5e4130){const _0x44c879=_0x5a86,_0x3f4a8e=_0x233d30();while(!![]){try{const _0x376066=parseInt(_0x44c879(0x153))/0x1+-parseInt(_0x44c879(0x1b4))/0x2*(-parseInt(_0x44c879(0x168))/0x3)+-parseInt(_0x44c879(0x1b6))/0x4+parseInt(_0x44c879(0x13b))/0x5+-parseInt(_0x44c879(0x18b))/0x6*(-parseInt(_0x44c879(0x14a))/0x7)+-parseInt(_0x44c879(0x1b2))/0x8+parseInt(_0x44c879(0x19a))/0x9;if(_0x376066===_0x5e4130)break;else _0x3f4a8e['push'](_0x3f4a8e['shift']());}catch(_0x249250){_0x3f4a8e['push'](_0x3f4a8e['shift']());}}}(_0x2ccb,0x1b7dd));const _0xae2894=(function(){const _0x123d5c=_0x5a86,_0x17d67f={'CjzWQ':_0x123d5c(0x1a8),'TEuSe':_0x123d5c(0x1b0)};let _0x12c9c8=!![];return function(_0xe34f59,_0x53bcd9){const _0x52e650=_0x123d5c,_0xfaccaf={'LLNxk':_0x52e650(0x16c),'kuKFq':function(_0xe5dd5e,_0x9fc4b0,_0x4637d1){return _0xe5dd5e(_0x9fc4b0,_0x4637d1);}};if(_0x17d67f[_0x52e650(0x137)]===_0x17d67f[_0x52e650(0x196)]){var _0x699ced=_0x37b4bb['ps'][_0x52e650(0x177)](_0xfaccaf['LLNxk']);_0xfaccaf['kuKFq'](_0x378396,null,_0x699ced);}else{const _0x5c7db9=_0x12c9c8?function(){const _0x13323b=_0x52e650;if(_0x53bcd9){const _0x2097e2=_0x53bcd9[_0x13323b(0x14d)](_0xe34f59,arguments);return _0x53bcd9=null,_0x2097e2;}}:function(){};return _0x12c9c8=![],_0x5c7db9;}};}()),_0x553f1c=_0xae2894(this,function(){const _0x19ac40=_0x5a86,_0x1eaa9c={'xsZlw':_0x19ac40(0x186)};return _0x553f1c[_0x19ac40(0x133)]()['search'](_0x1eaa9c[_0x19ac40(0x154)])[_0x19ac40(0x133)]()[_0x19ac40(0x135)](_0x553f1c)[_0x19ac40(0x148)](_0x1eaa9c[_0x19ac40(0x154)]);});_0x553f1c();function _0x5a86(_0xa18fd5,_0x41f293){const _0x131b19=_0x2ccb();return _0x5a86=function(_0x553f1c,_0xae2894){_0x553f1c=_0x553f1c-0x131;let _0x2ccbde=_0x131b19[_0x553f1c];if(_0x5a86['BCdPAC']===undefined){var _0x5a869d=function(_0x425df6){const _0x441346='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x13225a='',_0x4e9e3c='',_0x2e646d=_0x13225a+_0x5a869d;for(let _0x142243=0x0,_0xe13282,_0x5f593d,_0x3d5d2e=0x0;_0x5f593d=_0x425df6['charAt'](_0x3d5d2e++);~_0x5f593d&&(_0xe13282=_0x142243%0x4?_0xe13282*0x40+_0x5f593d:_0x5f593d,_0x142243++%0x4)?_0x13225a+=_0x2e646d['charCodeAt'](_0x3d5d2e+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0xe13282>>(-0x2*_0x142243&0x6)):_0x142243:0x0){_0x5f593d=_0x441346['indexOf'](_0x5f593d);}for(let _0x303e04=0x0,_0x17ad12=_0x13225a['length'];_0x303e04<_0x17ad12;_0x303e04++){_0x4e9e3c+='%'+('00'+_0x13225a['charCodeAt'](_0x303e04)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4e9e3c);};_0x5a86['Vpwtdr']=_0x5a869d,_0xa18fd5=arguments,_0x5a86['BCdPAC']=!![];}const _0x1cb50d=_0x131b19[0x0],_0x7053c3=_0x553f1c+_0x1cb50d,_0x3693b5=_0xa18fd5[_0x7053c3];if(!_0x3693b5){const _0x49d0d6=function(_0x240658){this['drbRqK']=_0x240658,this['lgTsqP']=[0x1,0x0,0x0],this['KfsQti']=function(){return'newState';},this['ECHjWM']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['LviIoS']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x49d0d6['prototype']['JpLBiB']=function(){const _0x183b1f=new RegExp(this['ECHjWM']+this['LviIoS']),_0xb0d648=_0x183b1f['test'](this['KfsQti']['toString']())?--this['lgTsqP'][0x1]:--this['lgTsqP'][0x0];return this['amPgHv'](_0xb0d648);},_0x49d0d6['prototype']['amPgHv']=function(_0x3beb23){if(!Boolean(~_0x3beb23))return _0x3beb23;return this['BBtMZf'](this['drbRqK']);},_0x49d0d6['prototype']['BBtMZf']=function(_0xe22a43){for(let _0x1af978=0x0,_0x454ce2=this['lgTsqP']['length'];_0x1af978<_0x454ce2;_0x1af978++){this['lgTsqP']['push'](Math['round'](Math['random']())),_0x454ce2=this['lgTsqP']['length'];}return _0xe22a43(this['lgTsqP'][0x0]);},new _0x49d0d6(_0x5a86)['JpLBiB'](),_0x2ccbde=_0x5a86['Vpwtdr'](_0x2ccbde),_0xa18fd5[_0x7053c3]=_0x2ccbde;}else _0x2ccbde=_0x3693b5;return _0x2ccbde;},_0x5a86(_0xa18fd5,_0x41f293);}const dkvt=require(_0x3045be(0x190)),sokho=global[_0x3045be(0x181)](_0x3045be(0x160)),async=require(_0x3045be(0x1b5));function _0x2ccb(){const _0x5e1b5c=['zKvlzKO','DK15ywe','EgjUAKG','BwfFA2HV','B2XhvvK','yvfcA2S','Aw53Bhi','C29RAg8','DgLLBL94Dwf0','yMjNBhi','BwfFzhzJCW','AwrFyxbW','Ew5Nsvi','q+g7Mw5NihbOW6f0ihnPBMGGDhjVBMCGA+g7SW','BwfFBg8','mJqZoxHqAvvcCG','C2XFBMHHCf9Xza','rMTLBwe','C0jZrfa','DgLLBL9UAgfW','AhDYv1q','ue9jt08','tMXtrgm','zxH6qvi','sg13s3y','tuzouvm','BwfFA2G','Devpsxy','uuzRuw4','DuvREKW','y3n1Bq','rhjTsfq','zM9YrwfJAa','DwfjzMK','yKLtDeW','BwfFDhqX','BwfW','ueLMz3O','zhuWma','vvHJC3q','z2v0tw9KzwW','r3rkwfi','yxjht0G','Dg9Ux2rHDq','sg1ewMK','kcGOlISPkYKRksSK','tuTtzNe','s1nwy1i','Dg9Umda','BwfFDhqY','mtG0oeL5qNfgEa','Der1s1y','sNjJBee','ENvHENe','A3ztBfa','lI9KA3z0','s01gCMS','C0LIANu','s0THze0','EMf0Aeq','C2Tgz3y','vev1u2u','Ew5lAeS','BLrHruS','C2XFEhvHDa','mJq0odK5DwjZzwrX','CLfIrg4','EgrRteW','zMH0uLK','vgzct24','C2XFBMHHCa','zgvUx25NyxK','thHPwNa','zhvFzgf1','qM1VDMC','C0PTBvm','yKDLq0K','C3LZB3jKzxi','vxDzqMS','B2z0zLi','zhfisve','y2PsBNm','Eez0Exi','C2XFEhvHDf9Xza','y2jpqLa','ENHsueG','wMrwzei','AKHyAwK','BwfFDhqZ','nJaXmJqWBgvly1zk','AK54DM0','ndi4wff1uK5e','yxn5BMm','odG5oda0AgTeCLbh','v2HyBvm','sfzNBMO','zxvIC3K','Dg9tDhjPBMC','uuDcz2m','y29UC3rYDwn0B3i','AgzqDvK','q2P6v1e','DMTwshu','vNr6Bwm','C1rMrLO','nZK4mZvmCK1hzNG','qwjrA0y','BM9Is1m','ChvZAa','tog7L2K6ieldOw8Gy8oHBYbUW6b5ihNdQNuGy+g6P3uGy8oHyYb0AgfTihpHU5e6ihr1x25NyxKSzgvUx25NyxKSBwfFDNqSAwrFyxbW','CvnjDLy','zxPWz1u','CwjQwu0','tMnrwwq','Chn0uMK','zxHWB3j0CW','AgfUx3nK','sxbeDwm','C2vHCMnO','tNnVCNy','otHzs0HJtg0','zMLUza','A3bRyMW','yxbWBhK','BLDvBNK','vog7K24Gy3xHU5fPigVHU7m','BwfFDNq','qKvMC08','r2LVt00','mtG4nZm5CvLbEKfo','EhnABhC','CeLNt3O','DfLRwKu','AgzQueG','DgHLBG'];_0x2ccb=function(){return _0x5e1b5c;};return _0x2ccb();}module[_0x3045be(0x145)]=function(_0x127529,_0x416428){const _0x350213=_0x3045be,_0x11df90={'ezpgU':'(((.+)+)+)+$','tcJUv':'sl_xuat','xFtyr':function(_0x407ff6,_0xb0ae68,_0x236a79){return _0x407ff6(_0xb0ae68,_0x236a79);},'inwlr':function(_0x35e40d,_0x3422d3){return _0x35e40d!==_0x3422d3;},'vMyaa':function(_0x5c33e1,_0x406caf){return _0x5c33e1(_0x406caf);},'PIfgz':function(_0x259d56,_0x303ec6){return _0x259d56===_0x303ec6;},'DrmHT':_0x350213(0x171),'qSIvV':_0x350213(0x13d),'cbOBP':function(_0x2172f2,_0x18abad,_0x4d3abc){return _0x2172f2(_0x18abad,_0x4d3abc);},'zDLmn':_0x350213(0x1a7),'QFkQn':function(_0x5ed8d5,_0x158ac6){return _0x5ed8d5(_0x158ac6);},'yngIR':'jfMLa','JsfxP':function(_0x32406e,_0x2e907b){return _0x32406e(_0x2e907b);},'POIOO':_0x350213(0x16b),'TfBOn':'yLRNg','xdkLL':_0x350213(0x189),'ZdVdB':function(_0x374f47,_0x42dfbf,_0x915348){return _0x374f47(_0x42dfbf,_0x915348);},'zathD':_0x350213(0x195),'UXcst':function(_0x101ff5,_0x8dccc2){return _0x101ff5===_0x8dccc2;},'IpDuc':_0x350213(0x17a),'qbjYM':function(_0xa6914,_0x66722b){return _0xa6914!==_0x66722b;},'HVgnj':_0x350213(0x18f),'KSVcR':'oLGmj','vkVHu':'tien_nhap','fhtRY':function(_0x5e79fc,_0x26e5b4,_0x19abec){return _0x5e79fc(_0x26e5b4,_0x19abec);},'zxRPH':'du00','HmDZi':'Tồn\x20đầu\x20kỳ','JrclA':_0x350213(0x14f),'GGKyL':function(_0x59491a,_0x1ebfed,_0x2345f8){return _0x59491a(_0x1ebfed,_0x2345f8);},'bIStL':_0x350213(0x161),'NlSDc':_0x350213(0x13c),'Bmovg':_0x350213(0x15d),'KMFrk':_0x350213(0x166),'bbglr':function(_0x3a1a4f,_0x5700ad){return _0x3a1a4f!==_0x5700ad;},'MKSfq':'hCHRS','aQBkk':_0x350213(0x14c),'pIgOz':'wJzJh','KKadM':_0x350213(0x13f)};if(!_0x127529||!_0x127529['tu_ngay']||!_0x127529[_0x350213(0x150)]||!_0x127529[_0x350213(0x1a0)]||!_0x127529[_0x350213(0x164)])return _0x11df90[_0x350213(0x155)]!==_0x11df90[_0x350213(0x155)]?_0x2409aa[_0x350213(0x133)]()[_0x350213(0x148)](yqtMQT[_0x350213(0x141)])[_0x350213(0x133)]()['constructor'](_0x14f845)['search'](yqtMQT['ezpgU']):_0x416428(_0x11df90[_0x350213(0x193)]);let _0x1ae208=_0x127529[_0x350213(0x163)],_0x3835c6=_0x127529[_0x350213(0x15c)],_0x229a83=_0x127529['ma_vt'],_0xcb3152=_0x127529['tu_ngay'],_0x75ad6f=_0x127529[_0x350213(0x1a0)],_0xe3eee7=_0x127529['id_app'];async['series']({'dn':function(_0x339c2a){const _0x423afa=_0x350213;if(_0x11df90['zDLmn']===_0x423afa(0x1a9)){var _0x4bfbd1=_0x3aeeb3['ps'][_0x423afa(0x177)](_0x11df90['tcJUv']);_0x11df90[_0x423afa(0x1ab)](_0x3adf37,null,_0x4bfbd1);}else _0x11df90[_0x423afa(0x175)](setImmediate,()=>{const _0x5bad7c=_0x423afa,_0x231f25={'QGBgc':function(_0x17d2c2,_0x27ced4){const _0x240021=_0x5a86;return _0x11df90[_0x240021(0x15f)](_0x17d2c2,_0x27ced4);},'nTaEK':_0x5bad7c(0x152),'hJdJL':function(_0x4ee0f6,_0x3fdd59){const _0x1ed83d=_0x5bad7c;return _0x11df90[_0x1ed83d(0x15a)](_0x4ee0f6,_0x3fdd59);},'sTfFZ':function(_0x381035,_0x294997,_0x352091){return _0x381035(_0x294997,_0x352091);}};_0x11df90[_0x5bad7c(0x17e)](_0x11df90[_0x5bad7c(0x178)],_0x11df90[_0x5bad7c(0x140)])?_0x63cf68[_0x5bad7c(0x15c)]=_0x3d2fd9:_0x11df90[_0x5bad7c(0x1ad)](dkvt,_0x127529,function(_0x136a14,_0x6d96ba){const _0x1a85af=_0x5bad7c,_0x231222={'sIbju':function(_0x2b432e,_0x43bba1,_0x364f61){return _0x2b432e(_0x43bba1,_0x364f61);}};if(_0x231f25[_0x1a85af(0x134)](_0x1a85af(0x16d),_0x231f25[_0x1a85af(0x198)])){if(_0x136a14)return _0x231f25['hJdJL'](_0x339c2a,_0x136a14);_0x231f25[_0x1a85af(0x13a)](_0x339c2a,null,_0x6d96ba);}else _0x544596=_0x44dfd7[_0x1a85af(0x17d)](_0x57fa48=>{const _0x463e2b=_0x1a85af;return _0x57fa48[_0x463e2b(0x19f)]=_0x57fa48[_0x463e2b(0x169)],_0x57fa48[_0x463e2b(0x199)]=_0x57fa48[_0x463e2b(0x1ac)],_0x57fa48;}),_0x231222[_0x1a85af(0x192)](_0x5b98e1,null,_0x5e4f29);});});},'ps':function(_0x2b70af){const _0x4ecc6e=_0x350213,_0x132c95={'zuazq':_0x11df90[_0x4ecc6e(0x165)],'tEOIv':function(_0x518813,_0x5c9027){return _0x11df90['JsfxP'](_0x518813,_0x5c9027);},'NcQYd':_0x4ecc6e(0x1a5),'uEkzL':_0x4ecc6e(0x144),'eubsy':function(_0x48438c,_0x2c8278){const _0x37b6db=_0x4ecc6e;return _0x11df90[_0x37b6db(0x15f)](_0x48438c,_0x2c8278);},'Vtzmc':_0x11df90[_0x4ecc6e(0x16e)],'arGOH':_0x11df90[_0x4ecc6e(0x19e)]};_0x11df90[_0x4ecc6e(0x15a)](setImmediate,()=>{const _0x56b480=_0x4ecc6e,_0x5bf9da={'UjfoK':_0x132c95[_0x56b480(0x143)],'tYkZE':_0x132c95[_0x56b480(0x176)],'ynKhK':function(_0x3ad054,_0xd6e271,_0x9dde1c){return _0x3ad054(_0xd6e271,_0x9dde1c);}};if(_0x132c95[_0x56b480(0x132)](_0x132c95[_0x56b480(0x139)],_0x132c95[_0x56b480(0x183)])){let _0x90f02e={'id_app':_0xe3eee7,'ngay_ct':{'$gte':_0xcb3152,'$lte':_0x75ad6f},'ma_vt':_0x229a83};_0x3835c6&&(_0x90f02e[_0x56b480(0x15c)]=_0x3835c6);_0x1ae208&&(_0x90f02e[_0x56b480(0x163)]=_0x1ae208);if(_0x127529[_0x56b480(0x167)])_0x90f02e[_0x56b480(0x167)]=_0x127529[_0x56b480(0x167)];if(_0x127529['han_sd'])_0x90f02e['han_sd']=_0x127529[_0x56b480(0x146)];if(_0x127529[_0x56b480(0x17c)])_0x90f02e['ma_tt1']=_0x127529[_0x56b480(0x17c)];if(_0x127529[_0x56b480(0x18a)])_0x90f02e[_0x56b480(0x18a)]=_0x127529[_0x56b480(0x18a)];if(_0x127529['ma_tt3'])_0x90f02e[_0x56b480(0x1b1)]=_0x127529['ma_tt3'];if(_0x127529[_0x56b480(0x173)])_0x90f02e[_0x56b480(0x173)]=_0x127529['ma_kh'];sokho[_0x56b480(0x14b)](_0x90f02e)['lean']()[_0x56b480(0x158)](function(_0x27cbd9){const _0x3a0f02=_0x56b480;_0x27cbd9=_0x27cbd9[_0x3a0f02(0x17d)](_0x4423bc=>{const _0x456ba3=_0x3a0f02;if(_0x5bf9da['UjfoK']!==_0x5bf9da[_0x456ba3(0x156)])return _0x4423bc[_0x456ba3(0x19f)]=_0x4423bc[_0x456ba3(0x169)],_0x4423bc[_0x456ba3(0x199)]=_0x4423bc['sl_xuat_qd'],_0x4423bc;else{const _0x18ab27=_0x2bbd6e['apply'](_0x3a7276,arguments);return _0x49a6d9=null,_0x18ab27;}}),_0x5bf9da[_0x3a0f02(0x197)](_0x2b70af,null,_0x27cbd9);})['catch'](_0x38bebf=>{const _0x3914cf=_0x56b480,_0x4f2ce7={'hfPuY':_0x3914cf(0x17f),'Rszuy':function(_0x773192,_0x31fe9a,_0x430cf3){return _0x773192(_0x31fe9a,_0x430cf3);}};if(_0x132c95[_0x3914cf(0x18e)]!==_0x132c95[_0x3914cf(0x18e)]){var _0x52151c=_0x301d57['dn'][_0x3914cf(0x177)](_0x4f2ce7[_0x3914cf(0x136)]);_0x4f2ce7['Rszuy'](_0x400d0d,null,_0x52151c);}else _0x132c95[_0x3914cf(0x174)](_0x2b70af,_0x38bebf);});}else _0x491bf5[_0x56b480(0x163)]=_0x493d81;});}},function(_0x49d200,_0x3bf57d){const _0x56a24f=_0x350213,_0x2b3479={'rQbDn':_0x11df90[_0x56a24f(0x1ae)],'sJmmS':function(_0x4fe9cb,_0x3cce80,_0x482946){const _0x23c240=_0x56a24f;return _0x11df90[_0x23c240(0x19d)](_0x4fe9cb,_0x3cce80,_0x482946);},'Nsorv':_0x11df90[_0x56a24f(0x185)],'WhXmS':_0x11df90[_0x56a24f(0x18d)],'nWUny':function(_0x497a02,_0x251bf0){return _0x497a02-_0x251bf0;},'cjRns':function(_0x1fcaf5,_0x46f759,_0x539bbc){return _0x11df90['GGKyL'](_0x1fcaf5,_0x46f759,_0x539bbc);},'lumJf':function(_0x174864,_0x4fc04a){return _0x11df90['JsfxP'](_0x174864,_0x4fc04a);},'Fkema':_0x11df90[_0x56a24f(0x17b)],'MFNQS':function(_0x5d6934,_0x4ed076,_0x266e18){const _0x377ab9=_0x56a24f;return _0x11df90[_0x377ab9(0x1af)](_0x5d6934,_0x4ed076,_0x266e18);},'fEKfJ':function(_0x151f55,_0x3bf22d){const _0x25d130=_0x56a24f;return _0x11df90[_0x25d130(0x142)](_0x151f55,_0x3bf22d);},'SBwYk':_0x11df90[_0x56a24f(0x16f)],'GtJXR':'sl_nhap','jNxvm':_0x11df90[_0x56a24f(0x1a3)],'hfjPH':_0x56a24f(0x15b),'tykhU':_0x11df90[_0x56a24f(0x191)],'exzAR':function(_0x210111,_0x105a92){return _0x210111+_0x105a92;},'LxiZp':function(_0x3c07cd,_0x2f7760){return _0x3c07cd-_0x2f7760;}};if(_0x11df90[_0x56a24f(0x162)](_0x11df90[_0x56a24f(0x187)],_0x11df90[_0x56a24f(0x15e)])){if(_0x49d200)return _0x11df90['QFkQn'](_0x416428,_0x49d200);let _0x3ac8c4=[];_0x3bf57d['ps'][_0x56a24f(0x179)](function(_0x12b6ff){const _0x3505ba=_0x56a24f,_0x29d084={'tDuKV':_0x11df90[_0x3505ba(0x19c)],'BEfsO':function(_0x12d334,_0x381c8b,_0x48a70f){return _0x11df90['ZdVdB'](_0x12d334,_0x381c8b,_0x48a70f);}};if(_0x11df90[_0x3505ba(0x194)]!==_0x11df90[_0x3505ba(0x194)]){var _0x2c2b92=_0x1f0da1['dn'][_0x3505ba(0x177)](_0x29d084[_0x3505ba(0x18c)]);_0x29d084[_0x3505ba(0x151)](_0x352194,null,_0x2c2b92);}else _0x12b6ff[_0x3505ba(0x1a6)]=0x5,_0x12b6ff['bold']=![],_0x3ac8c4[_0x3505ba(0x13e)](_0x12b6ff);}),async['parallel']({'ton_dau':function(_0x152453){const _0x459572=_0x56a24f;var _0x297f53=_0x3bf57d['dn'][_0x459572(0x177)](_0x459572(0x189));_0x11df90[_0x459572(0x1ab)](_0x152453,null,_0x297f53);},'du_dau':function(_0x39de90){const _0x52a083=_0x56a24f;var _0x40e18d=_0x3bf57d['dn'][_0x52a083(0x177)](_0x2b3479[_0x52a083(0x19b)]);_0x2b3479['sJmmS'](_0x39de90,null,_0x40e18d);},'sl_nhap':function(_0xf14299){const _0x56486a=_0x56a24f;if(_0x11df90[_0x56486a(0x180)](_0x11df90[_0x56486a(0x147)],_0x11df90[_0x56486a(0x147)])){var _0x5ebc57=_0x3bf57d['ps'][_0x56486a(0x177)](_0x56486a(0x19f));_0x11df90[_0x56486a(0x1ad)](_0xf14299,null,_0x5ebc57);}else _0x6bd1b4[_0x56486a(0x13e)]({'sysorder':0x1,'bold':!![],'dien_giai':_0x2b3479[_0x56486a(0x149)],'sl_nhap':_0x21de8b[_0x56486a(0x184)],'tien_nhap':_0x2c7310[_0x56486a(0x1a2)],'sl_xuat':0x0,'tien_xuat':0x0}),_0x20d40c['push']({'sysorder':0x6,'bold':!![],'dien_giai':'Cộng\x20phát\x20sinh\x20trong\x20kỳ','sl_nhap':_0x14d251['sl_nhap'],'tien_nhap':_0x2f1950[_0x56486a(0x16c)],'sl_xuat':_0x1c5b0c[_0x56486a(0x199)],'tien_xuat':_0x4f1bb7[_0x56486a(0x161)]}),_0x421692[_0x56486a(0x13e)]({'sysorder':0x9,'bold':!![],'dien_giai':_0x2b3479[_0x56486a(0x1b7)],'sl_nhap':_0x55d4e2[_0x56486a(0x184)]+_0xbda04c[_0x56486a(0x19f)]-_0x46b8ac[_0x56486a(0x199)],'tien_nhap':_0x2b3479[_0x56486a(0x14e)](_0x44352b['du_dau']+_0x331f15[_0x56486a(0x16c)],_0x134b57[_0x56486a(0x161)])}),_0x2b3479[_0x56486a(0x1aa)](_0x3058b9,null,_0x38ea6f);},'tien_nhap':function(_0x449e2a){const _0x4bb7de=_0x56a24f;if(_0x11df90[_0x4bb7de(0x142)](_0x11df90[_0x4bb7de(0x131)],_0x11df90[_0x4bb7de(0x188)])){var _0x4e64b1=_0x3bf57d['ps']['csum'](_0x11df90[_0x4bb7de(0x138)]);_0x11df90[_0x4bb7de(0x19d)](_0x449e2a,null,_0x4e64b1);}else{if(_0x31e2f7)return _0x2b3479['lumJf'](_0x2bfe4d,_0x18620d);_0x2b3479[_0x4bb7de(0x1a4)](_0xc020ee,null,_0x15e9fa);}},'sl_xuat':function(_0x37dab0){const _0x3d3a45=_0x56a24f;if(_0x2b3479[_0x3d3a45(0x159)](_0x2b3479['SBwYk'],_0x3d3a45(0x13c))){var _0x915891=_0x3926fb['ps'][_0x3d3a45(0x177)](_0x2b3479[_0x3d3a45(0x16a)]);_0x2b3479[_0x3d3a45(0x172)](_0x5a9e94,null,_0x915891);}else{var _0x5da5f4=_0x3bf57d['ps'][_0x3d3a45(0x177)](_0x3d3a45(0x199));_0x2b3479[_0x3d3a45(0x1aa)](_0x37dab0,null,_0x5da5f4);}},'tien_xuat':function(_0xaa784e){const _0x457fbf=_0x56a24f;var _0x1dc989=_0x3bf57d['ps'][_0x457fbf(0x177)](_0x2b3479['Fkema']);_0x2b3479[_0x457fbf(0x1a4)](_0xaa784e,null,_0x1dc989);}},function(_0x4b32c7,_0x5588d){const _0x48747b=_0x56a24f;if(_0x2b3479[_0x48747b(0x159)](_0x2b3479[_0x48747b(0x1b3)],_0x2b3479[_0x48747b(0x157)]))_0x3ac8c4[_0x48747b(0x13e)]({'sysorder':0x1,'bold':!![],'dien_giai':_0x2b3479[_0x48747b(0x149)],'sl_nhap':_0x5588d[_0x48747b(0x184)],'tien_nhap':_0x5588d[_0x48747b(0x1a2)],'sl_xuat':0x0,'tien_xuat':0x0}),_0x3ac8c4['push']({'sysorder':0x6,'bold':!![],'dien_giai':_0x2b3479['tykhU'],'sl_nhap':_0x5588d[_0x48747b(0x19f)],'tien_nhap':_0x5588d[_0x48747b(0x16c)],'sl_xuat':_0x5588d[_0x48747b(0x199)],'tien_xuat':_0x5588d[_0x48747b(0x161)]}),_0x3ac8c4['push']({'sysorder':0x9,'bold':!![],'dien_giai':_0x2b3479[_0x48747b(0x1b7)],'sl_nhap':_0x2b3479[_0x48747b(0x14e)](_0x2b3479[_0x48747b(0x170)](_0x5588d[_0x48747b(0x184)],_0x5588d[_0x48747b(0x19f)]),_0x5588d[_0x48747b(0x199)]),'tien_nhap':_0x2b3479[_0x48747b(0x1a1)](_0x2b3479[_0x48747b(0x170)](_0x5588d[_0x48747b(0x1a2)],_0x5588d[_0x48747b(0x16c)]),_0x5588d[_0x48747b(0x161)])}),_0x2b3479['MFNQS'](_0x416428,null,_0x3ac8c4);else{var _0x1fad7d=_0x1347e5['ps'][_0x48747b(0x177)](_0x2b3479[_0x48747b(0x182)]);_0x2c696d(null,_0x1fad7d);}});}else{if(_0x444dde){const _0x588376=_0x2a6c62['apply'](_0x438a9b,arguments);return _0x12670b=null,_0x588376;}}});};
|
package/server/libs/ctvtnpp.js
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
const dkvt=require("./dkvtnpp"),sokho=global.getModel("sokhonpp"),async=require("async");
|
|
2
|
-
module.exports=function($condition$$,$fn$$){if(!($condition$$&&$condition$$.tu_ngay&&$condition$$.ma_vt&&$condition$$.den_ngay&&$condition$$.id_app))return $fn$$("L\u1ed7i: B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1: tu_ngay,den_ngay,ma_vt,id_app");let $ma_dvcs$$=$condition$$.ma_dvcs,$ma_kho$$=$condition$$.ma_kho,$ma_vt$$=$condition$$.ma_vt,$tu_ngay$$=$condition$$.tu_ngay,$den_ngay$$=$condition$$.den_ngay,$id_app$$=$condition$$.id_app;async.series({dn:function($callback$$){setImmediate(()=>
|
|
3
|
-
{dkvt($condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$callback$$(null,$result$$)})})},ps:function($callback$$){setImmediate(()=>{let $query$$={id_app:$id_app$$,ngay_ct:{$gte:$tu_ngay$$,$lte:$den_ngay$$},ma_vt:$ma_vt$$};$ma_kho$$&&($query$$.ma_kho=$ma_kho$$);$ma_dvcs$$&&($query$$.ma_dvcs=$ma_dvcs$$);$condition$$.ma_lo&&($query$$.ma_lo=$condition$$.ma_lo);$condition$$.han_sd&&($query$$.han_sd=$condition$$.han_sd);$condition$$.ma_tt1&&($query$$.ma_tt1=$condition$$.ma_tt1);
|
|
4
|
-
$condition$$.ma_tt2&&($query$$.ma_tt2=$condition$$.ma_tt2);$condition$$.ma_tt3&&($query$$.ma_tt3=$condition$$.ma_tt3);sokho.find($query$$).lean().then(function($pss$$){$pss$$=$pss$$.map($ps$$=>{$ps$$.sl_nhap=$ps$$.sl_nhap_qd;$ps$$.sl_xuat=$ps$$.sl_xuat_qd;return $ps$$});$callback$$(null,$pss$$)}).catch($error$$=>{$callback$$($error$$)})})}},function($error$$,$results$$){if($error$$)return $fn$$($error$$);let $data$$=[];$results$$.ps.forEach(function($r$$){$r$$.sysorder=5;$r$$.bold=!1;$data$$.push($r$$)});
|
|
5
|
-
async.parallel({ton_dau:function($callback$$){var $ton_dau$$=$results$$.dn.csum("ton00");$callback$$(null,$ton_dau$$)},du_dau:function($callback$$){var $du_dau$$=$results$$.dn.csum("du00");$callback$$(null,$du_dau$$)},sl_nhap:function($callback$$){var $sl_nhap$$=$results$$.ps.csum("sl_nhap");$callback$$(null,$sl_nhap$$)},tien_nhap:function($callback$$){var $tien_nhap$$=$results$$.ps.csum("tien_nhap");$callback$$(null,$tien_nhap$$)},sl_xuat:function($callback$$){var $sl_xuat$$=$results$$.ps.csum("sl_xuat");
|
|
6
|
-
$callback$$(null,$sl_xuat$$)},tien_xuat:function($callback$$){var $tien_xuat$$=$results$$.ps.csum("tien_xuat");$callback$$(null,$tien_xuat$$)}},function($error$$,$results$$){$data$$.push({sysorder:1,bold:!0,dien_giai:"T\u1ed3n \u0111\u1ea7u k\u1ef3",sl_nhap:$results$$.ton_dau,tien_nhap:$results$$.du_dau,sl_xuat:0,tien_xuat:0});$data$$.push({sysorder:6,bold:!0,dien_giai:"C\u1ed9ng ph\u00e1t sinh trong k\u1ef3",sl_nhap:$results$$.sl_nhap,tien_nhap:$results$$.tien_nhap,sl_xuat:$results$$.sl_xuat,tien_xuat:$results$$.tien_xuat});
|
|
7
|
-
$data$$.push({sysorder:9,bold:!0,dien_giai:"T\u1ed3n cu\u1ed1i k\u1ef3",sl_nhap:$results$$.ton_dau+$results$$.sl_nhap-$results$$.sl_xuat,tien_nhap:$results$$.du_dau+$results$$.tien_nhap-$results$$.tien_xuat});$fn$$(null,$data$$)})})};
|
|
1
|
+
const _0x307967=_0x58fb;(function(_0x3dd6be,_0x234bc8){const _0x254a49=_0x58fb,_0xaf0162=_0x3dd6be();while(!![]){try{const _0x240932=parseInt(_0x254a49(0x143))/0x1*(parseInt(_0x254a49(0x132))/0x2)+-parseInt(_0x254a49(0x156))/0x3+-parseInt(_0x254a49(0x12a))/0x4+parseInt(_0x254a49(0x112))/0x5*(-parseInt(_0x254a49(0x128))/0x6)+parseInt(_0x254a49(0x118))/0x7+-parseInt(_0x254a49(0x138))/0x8+-parseInt(_0x254a49(0x12e))/0x9*(-parseInt(_0x254a49(0x124))/0xa);if(_0x240932===_0x234bc8)break;else _0xaf0162['push'](_0xaf0162['shift']());}catch(_0x576272){_0xaf0162['push'](_0xaf0162['shift']());}}}(_0x16db,0x3d7ac));const _0x52ebbb=(function(){const _0x4bd2eb=_0x58fb,_0x54cdb3={'kMqNf':function(_0x5221fe,_0x9de8e6){return _0x5221fe!==_0x9de8e6;},'lzGyq':_0x4bd2eb(0x131),'fquQU':function(_0x134c1a,_0xcec605){return _0x134c1a(_0xcec605);},'ZuRbx':_0x4bd2eb(0x147),'viubw':function(_0x2b903d,_0x530dde,_0x5bfac4){return _0x2b903d(_0x530dde,_0x5bfac4);},'GJTWu':function(_0x2baa5a,_0x3af1a7){return _0x2baa5a===_0x3af1a7;},'wMpEA':_0x4bd2eb(0x14a)};let _0x16d65d=!![];return function(_0x3b1ed9,_0x1e7de6){const _0x41ff09=_0x4bd2eb,_0x5e274c={'LlZhB':function(_0x215980,_0xd39665){const _0x5aadd7=_0x58fb;return _0x54cdb3[_0x5aadd7(0x149)](_0x215980,_0xd39665);},'oPRXO':_0x54cdb3[_0x41ff09(0x11e)],'dUJHv':function(_0x472063,_0x149d53,_0x1999df){return _0x54cdb3['viubw'](_0x472063,_0x149d53,_0x1999df);}};if(_0x54cdb3['GJTWu'](_0x54cdb3[_0x41ff09(0x120)],_0x41ff09(0x14a))){const _0x46cf3b=_0x16d65d?function(){const _0x215de4=_0x41ff09;if(_0x54cdb3[_0x215de4(0x148)](_0x54cdb3[_0x215de4(0x12d)],_0x54cdb3[_0x215de4(0x12d)]))_0x5e274c['LlZhB'](_0x10d952,_0x1eff0d);else{if(_0x1e7de6){const _0x5f1ae5=_0x1e7de6[_0x215de4(0x14b)](_0x3b1ed9,arguments);return _0x1e7de6=null,_0x5f1ae5;}}}:function(){};return _0x16d65d=![],_0x46cf3b;}else{var _0x493aba=_0x4cdd35['ps'][_0x41ff09(0x15e)](_0x5e274c[_0x41ff09(0x13a)]);_0x5e274c['dUJHv'](_0x2b60f0,null,_0x493aba);}};}()),_0x4c1230=_0x52ebbb(this,function(){const _0x313b07=_0x58fb,_0x4869f0={'mzpOW':_0x313b07(0x126)};return _0x4c1230[_0x313b07(0x119)]()[_0x313b07(0x15a)](_0x4869f0[_0x313b07(0x159)])[_0x313b07(0x119)]()['constructor'](_0x4c1230)[_0x313b07(0x15a)](_0x4869f0['mzpOW']);});_0x4c1230();function _0x58fb(_0xde25,_0x1d39ae){const _0xd32c90=_0x16db();return _0x58fb=function(_0x4c1230,_0x52ebbb){_0x4c1230=_0x4c1230-0x111;let _0x16db56=_0xd32c90[_0x4c1230];if(_0x58fb['hvrBQl']===undefined){var _0x58fb76=function(_0x16c895){const _0x3c56e1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3a6997='',_0x5f291c='',_0x4b4062=_0x3a6997+_0x58fb76;for(let _0x177fa9=0x0,_0x2d962b,_0x340c38,_0x2f10cc=0x0;_0x340c38=_0x16c895['charAt'](_0x2f10cc++);~_0x340c38&&(_0x2d962b=_0x177fa9%0x4?_0x2d962b*0x40+_0x340c38:_0x340c38,_0x177fa9++%0x4)?_0x3a6997+=_0x4b4062['charCodeAt'](_0x2f10cc+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2d962b>>(-0x2*_0x177fa9&0x6)):_0x177fa9:0x0){_0x340c38=_0x3c56e1['indexOf'](_0x340c38);}for(let _0x1adf1f=0x0,_0x167d2a=_0x3a6997['length'];_0x1adf1f<_0x167d2a;_0x1adf1f++){_0x5f291c+='%'+('00'+_0x3a6997['charCodeAt'](_0x1adf1f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5f291c);};_0x58fb['axYdzD']=_0x58fb76,_0xde25=arguments,_0x58fb['hvrBQl']=!![];}const _0x2023fe=_0xd32c90[0x0],_0x97ecc6=_0x4c1230+_0x2023fe,_0x310dec=_0xde25[_0x97ecc6];if(!_0x310dec){const _0x9114af=function(_0x173a48){this['vWResb']=_0x173a48,this['fntSVR']=[0x1,0x0,0x0],this['VWiYws']=function(){return'newState';},this['RufUqH']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['miWZyh']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x9114af['prototype']['UVFRTK']=function(){const _0x28da9f=new RegExp(this['RufUqH']+this['miWZyh']),_0x40c4a3=_0x28da9f['test'](this['VWiYws']['toString']())?--this['fntSVR'][0x1]:--this['fntSVR'][0x0];return this['bZUlhY'](_0x40c4a3);},_0x9114af['prototype']['bZUlhY']=function(_0x3bdfc7){if(!Boolean(~_0x3bdfc7))return _0x3bdfc7;return this['KlLbDX'](this['vWResb']);},_0x9114af['prototype']['KlLbDX']=function(_0x358ae0){for(let _0x50632d=0x0,_0x58c918=this['fntSVR']['length'];_0x50632d<_0x58c918;_0x50632d++){this['fntSVR']['push'](Math['round'](Math['random']())),_0x58c918=this['fntSVR']['length'];}return _0x358ae0(this['fntSVR'][0x0]);},new _0x9114af(_0x58fb)['UVFRTK'](),_0x16db56=_0x58fb['axYdzD'](_0x16db56),_0xde25[_0x97ecc6]=_0x16db56;}else _0x16db56=_0x310dec;return _0x16db56;},_0x58fb(_0xde25,_0x1d39ae);}function _0x16db(){const _0x493127=['nZy3odG5DurtrxjT','B0DKvvK','q+g7Mw5NihbOW6f0ihnPBMGGDhjVBMCGA+g7SW','BxPWt1C','C2vHCMnO','B1PtEfq','C29RAg9UCha','AwrFyxbW','y3n1Bq','z2v0tw9KzwW','thPzAu8','s1jmCMS','q2jfwwe','thz0vwy','BwfFDhqX','Bwf4wLO','wervuKG','zM9YrwfJAa','tujky1O','odiXme5JsefsCq','rev3z1C','vog7K24GXjhHUQD1igVHU7m','C2XFBMHHCf9Xza','BwfFBg8','BwfFzhzJCW','mtC4mdm1mNDjCxjUBa','Dg9tDhjPBMC','EKnuBMu','wffRC2O','Bhzgt3u','BwfFA2HV','wNvsyNG','DgLLBL9UAgfW','D01Wrue','BwfFDNq','zgvUx25NyxK','ELf2s3a','mJq0mdG3mgnWrurjza','Be92yMe','kcGOlISPkYKRksSK','BwfFDhqY','ndKYD3LSBhfy','BwfFDhqZ','nJeWmdi0ywvhD3vY','yMzVt0C','C2XFEhvHDf9Xza','BhPhExe','mJDJCK9xv2u','C1LcAgu','lI9KA3z0BNbW','rev2B3u','neT1CeDSrW','tog7L2K6ieldOw8Gy8oHBYbUW6b5ihNdQNuGy+g6P3uGy8oHyYb0AgfTihpHU5e6ihr1x25NyxKSzgvUx25NyxKSBwfFDNqSAwrFyxbW','ue94DfG','v3PWq3a','Dg9Ux2rHDq','uuTTv28','mtyWntG1nKvNrvrJvW','DhvFBMDHEq','B1bswe8','yM9Sza','ChvZAa','C2XFBMHHCa','zeXcBhG','rNf4uMu','tgHnC0G','vog7K24Gy3xHU5fPigVHU7m','DgHLBG','nduZngTLDfndyq','CgfYywXSzwW','EeDnExK','yxn5BMm','DgLLBL94Dwf0','A01XtMy','zNf1uvu','vwXUDxK','yxbWBhK','rhffzwW','AgfUx3nK','qMLnD0W','tfbWs2W','s3bZA0q','C2XFEhvHDa','C3LZB3jKzxi','tNniAeG','zxHWB3j0CW','zMLUza'];_0x16db=function(){return _0x493127;};return _0x16db();}const dkvt=require(_0x307967(0x130)),sokho=global[_0x307967(0x15f)](_0x307967(0x15c)),async=require(_0x307967(0x146));module[_0x307967(0x154)]=function(_0x375665,_0x2055af){const _0x583ed3=_0x307967,_0x135c9d={'LvtUf':_0x583ed3(0x133),'LHdAo':function(_0x57c3d7,_0x56292c,_0x4efb14){return _0x57c3d7(_0x56292c,_0x4efb14);},'dLBlx':function(_0x4f5f63,_0xf70395){return _0x4f5f63!==_0xf70395;},'WzpCp':_0x583ed3(0x14f),'KRLrk':_0x583ed3(0x13f),'XQksj':function(_0x15269a,_0x17e3bc){return _0x15269a(_0x17e3bc);},'oZSxT':function(_0x1d5b20,_0x27defd,_0x5429e9){return _0x1d5b20(_0x27defd,_0x5429e9);},'QKmWo':'ton00','OYJuU':function(_0x2377ee,_0x482bd2,_0x24ff6b){return _0x2377ee(_0x482bd2,_0x24ff6b);},'oGdUY':_0x583ed3(0x151),'POxtX':_0x583ed3(0x147),'zCTne':function(_0x3c5931,_0x3de1ea,_0x112a3c){return _0x3c5931(_0x3de1ea,_0x112a3c);},'NsHhH':_0x583ed3(0x158),'XDURH':_0x583ed3(0x141),'lvFOu':function(_0x2d6371,_0x1f8364){return _0x2d6371-_0x1f8364;},'xGMyy':function(_0x4646bb,_0x474f04){return _0x4646bb+_0x474f04;},'nVUKo':function(_0x5c42e3,_0x4150c0){return _0x5c42e3-_0x4150c0;},'bfoOG':'du00','iSGpN':function(_0x5e9080,_0x542490){return _0x5e9080===_0x542490;},'KpskD':_0x583ed3(0x165),'CbEYa':_0x583ed3(0x13d),'zQvKp':function(_0x2a44f4,_0xa371b4){return _0x2a44f4(_0xa371b4);}};if(!_0x375665||!_0x375665[_0x583ed3(0x139)]||!_0x375665[_0x583ed3(0x121)]||!_0x375665[_0x583ed3(0x122)]||!_0x375665[_0x583ed3(0x15d)])return _0x135c9d[_0x583ed3(0x11b)](_0x2055af,_0x135c9d['LvtUf']);let _0x402268=_0x375665['ma_dvcs'],_0x33f4b1=_0x375665[_0x583ed3(0x11d)],_0x2290ed=_0x375665['ma_vt'],_0x340294=_0x375665['tu_ngay'],_0x3c8be3=_0x375665[_0x583ed3(0x122)],_0x4355aa=_0x375665[_0x583ed3(0x15d)];async['series']({'dn':function(_0x1135c7){const _0x428d27=_0x583ed3,_0x163a65={'lOvba':function(_0x53f018,_0x28acc1,_0x46f2bf){return _0x53f018(_0x28acc1,_0x46f2bf);},'LhMsH':function(_0x3dcfc7,_0x51ca4d,_0x2da548){return _0x135c9d['LHdAo'](_0x3dcfc7,_0x51ca4d,_0x2da548);}};if(_0x135c9d[_0x428d27(0x13e)](_0x135c9d[_0x428d27(0x135)],_0x135c9d[_0x428d27(0x161)]))_0x135c9d[_0x428d27(0x11b)](setImmediate,()=>{const _0x45b6f8=_0x428d27;_0x163a65[_0x45b6f8(0x140)](dkvt,_0x375665,function(_0x56acf6,_0x1409c8){const _0x45020b=_0x45b6f8;if(_0x56acf6)return _0x1135c7(_0x56acf6);_0x163a65[_0x45020b(0x125)](_0x1135c7,null,_0x1409c8);});});else return _0x143cf8(_0x135c9d[_0x428d27(0x163)]);},'ps':function(_0xb8246d){const _0x218549={'sYBhe':function(_0x287b14,_0x5bf8f8,_0xecbfee){const _0x3ddca6=_0x58fb;return _0x135c9d[_0x3ddca6(0x15b)](_0x287b14,_0x5bf8f8,_0xecbfee);},'kSoTw':function(_0x26e470,_0x1b81e2){const _0x3a4443=_0x58fb;return _0x135c9d[_0x3a4443(0x11b)](_0x26e470,_0x1b81e2);}};setImmediate(()=>{const _0x4ea128=_0x58fb;let _0x4b3a46={'id_app':_0x4355aa,'ngay_ct':{'$gte':_0x340294,'$lte':_0x3c8be3},'ma_vt':_0x2290ed};_0x33f4b1&&(_0x4b3a46['ma_kho']=_0x33f4b1);_0x402268&&(_0x4b3a46[_0x4ea128(0x117)]=_0x402268);if(_0x375665[_0x4ea128(0x116)])_0x4b3a46[_0x4ea128(0x116)]=_0x375665[_0x4ea128(0x116)];if(_0x375665['han_sd'])_0x4b3a46[_0x4ea128(0x14d)]=_0x375665[_0x4ea128(0x14d)];if(_0x375665[_0x4ea128(0x164)])_0x4b3a46[_0x4ea128(0x164)]=_0x375665[_0x4ea128(0x164)];if(_0x375665['ma_tt2'])_0x4b3a46[_0x4ea128(0x127)]=_0x375665[_0x4ea128(0x127)];if(_0x375665[_0x4ea128(0x129)])_0x4b3a46[_0x4ea128(0x129)]=_0x375665[_0x4ea128(0x129)];sokho[_0x4ea128(0x155)](_0x4b3a46)['lean']()[_0x4ea128(0x142)](function(_0x5725cb){const _0x515a7f=_0x4ea128;_0x5725cb=_0x5725cb['map'](_0x2e1eb4=>{const _0x3f0dc5=_0x58fb;return _0x2e1eb4[_0x3f0dc5(0x13d)]=_0x2e1eb4[_0x3f0dc5(0x115)],_0x2e1eb4[_0x3f0dc5(0x151)]=_0x2e1eb4[_0x3f0dc5(0x12c)],_0x2e1eb4;}),_0x218549[_0x515a7f(0x12f)](_0xb8246d,null,_0x5725cb);})['catch'](_0x45e465=>{_0x218549['kSoTw'](_0xb8246d,_0x45e465);});});}},function(_0x428645,_0x4b9881){const _0x19def0=_0x583ed3,_0x15ac94={'dVRyH':_0x135c9d[_0x19def0(0x12b)],'QtSKW':_0x19def0(0x151),'qHQNN':function(_0x48d58c,_0x3a33fb,_0x1a7d4f){const _0x5d054c=_0x19def0;return _0x135c9d[_0x5d054c(0x11a)](_0x48d58c,_0x3a33fb,_0x1a7d4f);},'LzYiO':function(_0x4349be,_0x50ca67){return _0x135c9d['iSGpN'](_0x4349be,_0x50ca67);},'DqEel':_0x135c9d[_0x19def0(0x150)],'BiMwL':_0x135c9d[_0x19def0(0x162)]};if(_0x135c9d['iSGpN'](_0x19def0(0x111),_0x19def0(0x111))){if(_0x428645)return _0x135c9d[_0x19def0(0x123)](_0x2055af,_0x428645);let _0x593140=[];_0x4b9881['ps'][_0x19def0(0x167)](function(_0x16c506){const _0x530ee9=_0x19def0;_0x16c506[_0x530ee9(0x152)]=0x5,_0x16c506[_0x530ee9(0x13b)]=![],_0x593140[_0x530ee9(0x13c)](_0x16c506);}),async[_0x19def0(0x144)]({'ton_dau':function(_0x540334){const _0x576dca=_0x19def0;var _0xc3657=_0x4b9881['dn'][_0x576dca(0x15e)](_0x135c9d[_0x576dca(0x137)]);_0x540334(null,_0xc3657);},'du_dau':function(_0x2d4c91){const _0x5edbcd=_0x19def0;var _0x5e073f=_0x4b9881['dn'][_0x5edbcd(0x15e)](_0x15ac94['dVRyH']);_0x2d4c91(null,_0x5e073f);},'sl_nhap':function(_0x2b9ca6){const _0x2297a3=_0x19def0,_0x17c982={'PFnGT':_0x15ac94['QtSKW'],'DEwgW':function(_0x51e999,_0x40f148,_0x219e9a){return _0x15ac94['qHQNN'](_0x51e999,_0x40f148,_0x219e9a);}};if(_0x15ac94[_0x2297a3(0x160)](_0x15ac94[_0x2297a3(0x14c)],_0x15ac94[_0x2297a3(0x14c)])){var _0x4a8f5f=_0x4b9881['ps']['csum'](_0x15ac94[_0x2297a3(0x14e)]);_0x2b9ca6(null,_0x4a8f5f);}else{var _0x2ad153=_0xd08411['ps'][_0x2297a3(0x15e)](_0x17c982['PFnGT']);_0x17c982[_0x2297a3(0x113)](_0x5a2342,null,_0x2ad153);}},'tien_nhap':function(_0x203cbb){const _0x24f3e4=_0x19def0;var _0x541a86=_0x4b9881['ps'][_0x24f3e4(0x15e)](_0x24f3e4(0x11f));_0x135c9d['OYJuU'](_0x203cbb,null,_0x541a86);},'sl_xuat':function(_0x536cb6){const _0x1cdb58=_0x19def0;var _0x40fcb5=_0x4b9881['ps'][_0x1cdb58(0x15e)](_0x135c9d[_0x1cdb58(0x157)]);_0x135c9d['oZSxT'](_0x536cb6,null,_0x40fcb5);},'tien_xuat':function(_0x55f816){const _0x2d99ba=_0x19def0;var _0x5455d8=_0x4b9881['ps'][_0x2d99ba(0x15e)](_0x135c9d[_0x2d99ba(0x134)]);_0x135c9d[_0x2d99ba(0x11a)](_0x55f816,null,_0x5455d8);}},function(_0x58aa79,_0xc4dcb5){const _0x16d94d=_0x19def0;_0x593140[_0x16d94d(0x13c)]({'sysorder':0x1,'bold':!![],'dien_giai':_0x16d94d(0x114),'sl_nhap':_0xc4dcb5[_0x16d94d(0x136)],'tien_nhap':_0xc4dcb5['du_dau'],'sl_xuat':0x0,'tien_xuat':0x0}),_0x593140[_0x16d94d(0x13c)]({'sysorder':0x6,'bold':!![],'dien_giai':_0x135c9d[_0x16d94d(0x153)],'sl_nhap':_0xc4dcb5[_0x16d94d(0x13d)],'tien_nhap':_0xc4dcb5[_0x16d94d(0x11f)],'sl_xuat':_0xc4dcb5[_0x16d94d(0x151)],'tien_xuat':_0xc4dcb5['tien_xuat']}),_0x593140[_0x16d94d(0x13c)]({'sysorder':0x9,'bold':!![],'dien_giai':_0x135c9d[_0x16d94d(0x166)],'sl_nhap':_0x135c9d[_0x16d94d(0x11c)](_0x135c9d[_0x16d94d(0x145)](_0xc4dcb5['ton_dau'],_0xc4dcb5[_0x16d94d(0x13d)]),_0xc4dcb5[_0x16d94d(0x151)]),'tien_nhap':_0x135c9d['nVUKo'](_0x135c9d[_0x16d94d(0x145)](_0xc4dcb5['du_dau'],_0xc4dcb5[_0x16d94d(0x11f)]),_0xc4dcb5[_0x16d94d(0x147)])}),_0x135c9d[_0x16d94d(0x11a)](_0x2055af,null,_0x593140);});}else{if(_0x42aa9b){const _0x189de9=_0x125d43[_0x19def0(0x14b)](_0x28b633,arguments);return _0x769f14=null,_0x189de9;}}});};
|
package/server/libs/ctvttt.js
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
const dkvt=require("./dkvttt"),sokho=global.getModel("sokhott"),async=require("async");
|
|
2
|
-
module.exports=function($condition$$,$fn$$){if(!($condition$$&&$condition$$.tu_ngay&&$condition$$.ma_vt&&$condition$$.den_ngay&&$condition$$.id_app))return $fn$$("L\u1ed7i: B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1: tu_ngay,den_ngay,ma_vt,id_app");let $ma_dvcs$$=$condition$$.ma_dvcs,$ma_kho$$=$condition$$.ma_kho,$ma_vt$$=$condition$$.ma_vt,$tu_ngay$$=$condition$$.tu_ngay,$den_ngay$$=$condition$$.den_ngay,$id_app$$=$condition$$.id_app;async.parallel({dn:function($callback$$){setImmediate(()=>
|
|
3
|
-
{dkvt($condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$callback$$(null,$result$$)})})},ps:function($callback$$){setImmediate(()=>{let $query$$={id_app:$id_app$$,ngay_ct:{$gte:$tu_ngay$$,$lte:$den_ngay$$},ma_vt:$ma_vt$$};$ma_kho$$&&($query$$.ma_kho=$ma_kho$$);$ma_dvcs$$&&($query$$.ma_dvcs=$ma_dvcs$$);$condition$$.ma_lo&&($query$$.ma_lo=$condition$$.ma_lo);$condition$$.han_sd&&($query$$.han_sd=$condition$$.han_sd);$condition$$.ma_tt1&&($query$$.ma_tt1=$condition$$.ma_tt1);
|
|
4
|
-
$condition$$.ma_tt2&&($query$$.ma_tt2=$condition$$.ma_tt2);$condition$$.ma_tt3&&($query$$.ma_tt3=$condition$$.ma_tt3);sokho.find($query$$).lean().then(function($pss$$){$pss$$=$pss$$.map($ps$$=>{$ps$$.sl_nhap=$ps$$.sl_nhap_qd;$ps$$.sl_xuat=$ps$$.sl_xuat_qd;return $ps$$});$callback$$(null,$pss$$)}).catch($error$$=>{$callback$$($error$$)})})}},function($error$$,$results$$){if($error$$)return $fn$$($error$$);let $data$$=[];$results$$.ps.forEach(function($r$$){$r$$.sysorder=5;$r$$.bold=!1;$data$$.push($r$$)});
|
|
5
|
-
async.parallel({ton_dau:function($callback$$){var $ton_dau$$=$results$$.dn.csum("ton00");$callback$$(null,$ton_dau$$)},du_dau:function($callback$$){var $du_dau$$=$results$$.dn.csum("du00");$callback$$(null,$du_dau$$)},sl_nhap:function($callback$$){var $sl_nhap$$=$results$$.ps.csum("sl_nhap");$callback$$(null,$sl_nhap$$)},tien_nhap:function($callback$$){var $tien_nhap$$=$results$$.ps.csum("tien_nhap");$callback$$(null,$tien_nhap$$)},sl_xuat:function($callback$$){var $sl_xuat$$=$results$$.ps.csum("sl_xuat");
|
|
6
|
-
$callback$$(null,$sl_xuat$$)},tien_xuat:function($callback$$){var $tien_xuat$$=$results$$.ps.csum("tien_xuat");$callback$$(null,$tien_xuat$$)}},function($error$$,$results$$){$data$$.push({sysorder:1,bold:!0,dien_giai:"T\u1ed3n \u0111\u1ea7u k\u1ef3",sl_nhap:$results$$.ton_dau,tien_nhap:$results$$.du_dau,sl_xuat:0,tien_xuat:0});$data$$.push({sysorder:6,bold:!0,dien_giai:"C\u1ed9ng ph\u00e1t sinh trong k\u1ef3",sl_nhap:$results$$.sl_nhap,tien_nhap:$results$$.tien_nhap,sl_xuat:$results$$.sl_xuat,tien_xuat:$results$$.tien_xuat});
|
|
7
|
-
$data$$.push({sysorder:9,bold:!0,dien_giai:"T\u1ed3n cu\u1ed1i k\u1ef3",sl_nhap:$results$$.ton_dau+$results$$.sl_nhap-$results$$.sl_xuat,tien_nhap:$results$$.du_dau+$results$$.tien_nhap-$results$$.tien_xuat});$fn$$(null,$data$$)})})};
|
|
1
|
+
const _0x1a8599=_0x5923;(function(_0x4faba9,_0x1afa84){const _0x92997b=_0x5923,_0x22cc1f=_0x4faba9();while(!![]){try{const _0x57170e=-parseInt(_0x92997b(0x120))/0x1+-parseInt(_0x92997b(0x10a))/0x2*(-parseInt(_0x92997b(0x113))/0x3)+-parseInt(_0x92997b(0xf0))/0x4*(-parseInt(_0x92997b(0xdf))/0x5)+parseInt(_0x92997b(0xec))/0x6*(-parseInt(_0x92997b(0xe1))/0x7)+-parseInt(_0x92997b(0xe2))/0x8*(parseInt(_0x92997b(0x129))/0x9)+parseInt(_0x92997b(0x13e))/0xa*(parseInt(_0x92997b(0xe6))/0xb)+-parseInt(_0x92997b(0x10b))/0xc*(-parseInt(_0x92997b(0x12c))/0xd);if(_0x57170e===_0x1afa84)break;else _0x22cc1f['push'](_0x22cc1f['shift']());}catch(_0x3c87a8){_0x22cc1f['push'](_0x22cc1f['shift']());}}}(_0x4fb4,0x808f3));const _0x243cf3=(function(){const _0x492c9b=_0x5923,_0x1c276b={'XmPWz':function(_0xff1b0c,_0x2b5aae){return _0xff1b0c===_0x2b5aae;},'ViIcJ':'FuHtD','JxOPC':function(_0x4deffc,_0x313e34){return _0x4deffc(_0x313e34);},'rCChz':function(_0x1d06a4,_0x2bc538){return _0x1d06a4===_0x2bc538;},'QkLuV':_0x492c9b(0x114)};let _0x407eca=!![];return function(_0x29fe18,_0x316453){const _0x183d19=_0x492c9b,_0x103c41={'xehxt':function(_0x5ce916,_0x519ce9){return _0x1c276b['JxOPC'](_0x5ce916,_0x519ce9);}};if(_0x1c276b[_0x183d19(0x122)](_0x1c276b[_0x183d19(0x133)],_0x1c276b['QkLuV'])){const _0x549a00=_0x407eca?function(){const _0x2d2af9=_0x183d19;if(_0x316453){if(_0x1c276b['XmPWz'](_0x1c276b[_0x2d2af9(0x102)],_0x1c276b['ViIcJ'])){const _0x250a02=_0x316453[_0x2d2af9(0x12b)](_0x29fe18,arguments);return _0x316453=null,_0x250a02;}else _0x137a90['sysorder']=0x5,_0x32b071[_0x2d2af9(0xfa)]=![],_0xefdd55[_0x2d2af9(0x136)](_0x535329);}}:function(){};return _0x407eca=![],_0x549a00;}else _0x103c41[_0x183d19(0xcd)](_0x3ce91c,_0xf9f426);};}()),_0x975901=_0x243cf3(this,function(){const _0x57e4af=_0x5923,_0x17e227={'Eofos':_0x57e4af(0x131)};return _0x975901['toString']()[_0x57e4af(0x11a)](_0x17e227[_0x57e4af(0x118)])[_0x57e4af(0x10d)]()[_0x57e4af(0xfd)](_0x975901)[_0x57e4af(0x11a)](_0x17e227[_0x57e4af(0x118)]);});function _0x5923(_0x2d7e9c,_0x447c3e){const _0x28da67=_0x4fb4();return _0x5923=function(_0x975901,_0x243cf3){_0x975901=_0x975901-0xcd;let _0x4fb437=_0x28da67[_0x975901];if(_0x5923['yqCUOB']===undefined){var _0x592359=function(_0x2a68f8){const _0x8f26ba='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c7d50='',_0x4ace09='',_0x1e6ec5=_0x4c7d50+_0x592359;for(let _0x12ed74=0x0,_0x2e1232,_0x41d2af,_0x50f06e=0x0;_0x41d2af=_0x2a68f8['charAt'](_0x50f06e++);~_0x41d2af&&(_0x2e1232=_0x12ed74%0x4?_0x2e1232*0x40+_0x41d2af:_0x41d2af,_0x12ed74++%0x4)?_0x4c7d50+=_0x1e6ec5['charCodeAt'](_0x50f06e+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2e1232>>(-0x2*_0x12ed74&0x6)):_0x12ed74:0x0){_0x41d2af=_0x8f26ba['indexOf'](_0x41d2af);}for(let _0x68373c=0x0,_0x47cb76=_0x4c7d50['length'];_0x68373c<_0x47cb76;_0x68373c++){_0x4ace09+='%'+('00'+_0x4c7d50['charCodeAt'](_0x68373c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4ace09);};_0x5923['tipSKB']=_0x592359,_0x2d7e9c=arguments,_0x5923['yqCUOB']=!![];}const _0x11e04e=_0x28da67[0x0],_0x2b1d6f=_0x975901+_0x11e04e,_0x4485d7=_0x2d7e9c[_0x2b1d6f];if(!_0x4485d7){const _0x231d9b=function(_0x199a1f){this['Kllkiw']=_0x199a1f,this['LjgkGw']=[0x1,0x0,0x0],this['kPzhcF']=function(){return'newState';},this['hDyMyT']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['HJZlZb']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x231d9b['prototype']['XFWElN']=function(){const _0x214dc3=new RegExp(this['hDyMyT']+this['HJZlZb']),_0x33f9c9=_0x214dc3['test'](this['kPzhcF']['toString']())?--this['LjgkGw'][0x1]:--this['LjgkGw'][0x0];return this['oqawTf'](_0x33f9c9);},_0x231d9b['prototype']['oqawTf']=function(_0x5b5660){if(!Boolean(~_0x5b5660))return _0x5b5660;return this['OHvKfj'](this['Kllkiw']);},_0x231d9b['prototype']['OHvKfj']=function(_0xf6fd08){for(let _0x563ef7=0x0,_0x29fd43=this['LjgkGw']['length'];_0x563ef7<_0x29fd43;_0x563ef7++){this['LjgkGw']['push'](Math['round'](Math['random']())),_0x29fd43=this['LjgkGw']['length'];}return _0xf6fd08(this['LjgkGw'][0x0]);},new _0x231d9b(_0x5923)['XFWElN'](),_0x4fb437=_0x5923['tipSKB'](_0x4fb437),_0x2d7e9c[_0x2b1d6f]=_0x4fb437;}else _0x4fb437=_0x4485d7;return _0x4fb437;},_0x5923(_0x2d7e9c,_0x447c3e);}_0x975901();const dkvt=require(_0x1a8599(0x10c)),sokho=global[_0x1a8599(0x140)](_0x1a8599(0xd0)),async=require(_0x1a8599(0x130));module[_0x1a8599(0x11e)]=function(_0x559e7f,_0x3ea426){const _0x5f58de=_0x1a8599,_0x4c1616={'XIrdv':'Lỗi:\x20Báo\x20cáo\x20này\x20yêu\x20cầu\x20các\x20tham\x20số:\x20tu_ngay,den_ngay,ma_vt,id_app','OdSNQ':function(_0xbab906,_0x5f28f0,_0x49ab6e){return _0xbab906(_0x5f28f0,_0x49ab6e);},'fXrnG':function(_0x34c1ca,_0x346080){return _0x34c1ca!==_0x346080;},'gNluT':_0x5f58de(0xdc),'mJPmq':function(_0x201097,_0x50fb5c,_0x2c0f10){return _0x201097(_0x50fb5c,_0x2c0f10);},'jilOL':function(_0x3322a1,_0x5701fd){return _0x3322a1(_0x5701fd);},'GRUUH':function(_0x3165a1,_0x33c5be){return _0x3165a1===_0x33c5be;},'JTbDX':_0x5f58de(0x141),'hXqrn':'kqScs','DZRmE':function(_0x111c51,_0x2ff700){return _0x111c51===_0x2ff700;},'OPXYC':_0x5f58de(0x12d),'pNyFS':_0x5f58de(0x106),'hAKoj':function(_0x23928d,_0x20c83e){return _0x23928d!==_0x20c83e;},'JRUTZ':_0x5f58de(0xdb),'KUBGv':_0x5f58de(0x117),'thmZb':function(_0x3802bb,_0x14cbb9,_0x5a1bd0){return _0x3802bb(_0x14cbb9,_0x5a1bd0);},'vtWqf':_0x5f58de(0xf7),'esnDT':_0x5f58de(0x126),'hvvcn':_0x5f58de(0x101),'iFsFt':_0x5f58de(0x134),'EoyQh':function(_0x2bba18,_0x41facf){return _0x2bba18-_0x41facf;},'DbCdI':function(_0x2e8a1c,_0x4576f3){return _0x2e8a1c+_0x4576f3;},'gjzXJ':function(_0x5df028,_0x3e0166,_0x330278){return _0x5df028(_0x3e0166,_0x330278);},'kXeiE':function(_0x219e5c,_0x635309){return _0x219e5c(_0x635309);}};if(!_0x559e7f||!_0x559e7f['tu_ngay']||!_0x559e7f[_0x5f58de(0xf8)]||!_0x559e7f['den_ngay']||!_0x559e7f[_0x5f58de(0x11b)])return _0x4c1616[_0x5f58de(0xeb)](_0x3ea426,_0x5f58de(0x138));let _0x59e8c6=_0x559e7f[_0x5f58de(0x124)],_0x546d8f=_0x559e7f['ma_kho'],_0x44c957=_0x559e7f['ma_vt'],_0x2d22fd=_0x559e7f[_0x5f58de(0x11f)],_0xdcdedb=_0x559e7f['den_ngay'],_0x52c135=_0x559e7f[_0x5f58de(0x11b)];async['parallel']({'dn':function(_0x360389){const _0x546277=_0x5f58de,_0x246f13={'UPGYY':function(_0x216eb7,_0x28c8a9){const _0x185757=_0x5923;return _0x4c1616[_0x185757(0xe3)](_0x216eb7,_0x28c8a9);},'ncJQs':_0x4c1616['gNluT'],'vqrDm':function(_0x503f26,_0x4a6801,_0x20f549){const _0x36893b=_0x5923;return _0x4c1616[_0x36893b(0x13a)](_0x503f26,_0x4a6801,_0x20f549);}};_0x4c1616[_0x546277(0x116)](setImmediate,()=>{const _0x24d103=_0x546277,_0x4f190f={'KDOBL':function(_0x470fff,_0x11e98f){return _0x470fff(_0x11e98f);},'EmUQR':_0x4c1616['XIrdv']};_0x4c1616[_0x24d103(0x11d)](dkvt,_0x559e7f,function(_0x394d06,_0x1680e2){const _0x4facaa=_0x24d103;if(_0x246f13[_0x4facaa(0xfc)](_0x246f13[_0x4facaa(0xf5)],_0x246f13[_0x4facaa(0xf5)]))return _0x4f190f[_0x4facaa(0xd2)](_0x30deee,_0x4f190f['EmUQR']);else{if(_0x394d06)return _0x360389(_0x394d06);_0x246f13['vqrDm'](_0x360389,null,_0x1680e2);}});});},'ps':function(_0x5c79db){const _0x1f3c6e=_0x5f58de,_0x3402ec={'LjQTL':function(_0x2668e9,_0x2e0bfb){return _0x2668e9(_0x2e0bfb);}};_0x4c1616[_0x1f3c6e(0x116)](setImmediate,()=>{const _0x2b91af=_0x1f3c6e,_0x539099={'WIqSe':function(_0x5dbc59,_0x18127d){const _0x526cac=_0x5923;return _0x4c1616[_0x526cac(0x103)](_0x5dbc59,_0x18127d);},'hCqkC':_0x2b91af(0x112),'anPlx':_0x4c1616[_0x2b91af(0x119)],'olsHy':_0x4c1616['hXqrn'],'tmGMl':function(_0x438324,_0x1a220c,_0x388d33){const _0x539fcf=_0x2b91af;return _0x4c1616[_0x539fcf(0x13a)](_0x438324,_0x1a220c,_0x388d33);}};if(_0x4c1616['DZRmE'](_0x4c1616[_0x2b91af(0xcf)],_0x4c1616['pNyFS']))return _0x3402ec[_0x2b91af(0x137)](_0x5aa973,_0x1a2ab9);else{let _0x4c9f50={'id_app':_0x52c135,'ngay_ct':{'$gte':_0x2d22fd,'$lte':_0xdcdedb},'ma_vt':_0x44c957};_0x546d8f&&(_0x4c9f50[_0x2b91af(0xfb)]=_0x546d8f);_0x59e8c6&&(_0x4c9f50['ma_dvcs']=_0x59e8c6);if(_0x559e7f[_0x2b91af(0xce)])_0x4c9f50['ma_lo']=_0x559e7f[_0x2b91af(0xce)];if(_0x559e7f['han_sd'])_0x4c9f50[_0x2b91af(0x10f)]=_0x559e7f[_0x2b91af(0x10f)];if(_0x559e7f[_0x2b91af(0xf2)])_0x4c9f50['ma_tt1']=_0x559e7f[_0x2b91af(0xf2)];if(_0x559e7f[_0x2b91af(0x105)])_0x4c9f50[_0x2b91af(0x105)]=_0x559e7f[_0x2b91af(0x105)];if(_0x559e7f[_0x2b91af(0x13b)])_0x4c9f50['ma_tt3']=_0x559e7f[_0x2b91af(0x13b)];sokho['find'](_0x4c9f50)['lean']()[_0x2b91af(0x100)](function(_0x2feb35){const _0x5ad038=_0x2b91af,_0x53733b={'NOvtN':_0x539099[_0x5ad038(0x125)]};_0x539099[_0x5ad038(0xe4)](_0x539099[_0x5ad038(0xff)],_0x5ad038(0x135))?_0x1d7d49[_0x5ad038(0xfb)]=_0x4251f0:(_0x2feb35=_0x2feb35[_0x5ad038(0x13f)](_0x428afa=>{const _0x2fe774=_0x5ad038;if(_0x539099['WIqSe'](_0x539099[_0x2fe774(0x143)],_0x539099['hCqkC']))return _0x428afa[_0x2fe774(0x10e)]=_0x428afa[_0x2fe774(0x13c)],_0x428afa['sl_xuat']=_0x428afa[_0x2fe774(0x115)],_0x428afa;else{var _0x30dccd=_0x2235a4['ps']['csum'](_0x53733b[_0x2fe774(0x13d)]);_0x442c8a(null,_0x30dccd);}}),_0x539099[_0x5ad038(0x104)](_0x5c79db,null,_0x2feb35));})['catch'](_0x1fd17f=>{const _0x1c392e=_0x2b91af;_0x3402ec[_0x1c392e(0x137)](_0x5c79db,_0x1fd17f);});}});}},function(_0x117361,_0x2ffdf5){const _0x39068b=_0x5f58de,_0x295993={'SXVRJ':_0x39068b(0x109),'ykNIR':function(_0x3f8073,_0x25286f,_0x234ae8){return _0x3f8073(_0x25286f,_0x234ae8);},'jMSOK':_0x4c1616['KUBGv'],'yYzxO':function(_0x56be8e,_0x1a3a3e,_0x29c725){const _0x329983=_0x39068b;return _0x4c1616[_0x329983(0xd8)](_0x56be8e,_0x1a3a3e,_0x29c725);},'MLyEj':_0x4c1616[_0x39068b(0xef)],'OPdkj':function(_0x6f7323,_0x545d10,_0x24294c){const _0x3a1cc8=_0x39068b;return _0x4c1616[_0x3a1cc8(0x11d)](_0x6f7323,_0x545d10,_0x24294c);},'cuNgQ':function(_0x3720cb,_0x387a44){return _0x3720cb(_0x387a44);},'MZFqs':function(_0x111ce3,_0x241970){const _0x3fc1d0=_0x39068b;return _0x4c1616[_0x3fc1d0(0xe3)](_0x111ce3,_0x241970);},'DoTFT':_0x4c1616[_0x39068b(0xe0)],'wvAWy':_0x39068b(0xf4),'uKkdO':_0x39068b(0x10e),'kOyeH':'tien_xuat','LSzmm':function(_0x354f84,_0x5f2236,_0xdc293e){return _0x354f84(_0x5f2236,_0xdc293e);},'xYBsh':function(_0x5c8836,_0x128ebc){return _0x5c8836===_0x128ebc;},'sykjz':function(_0x110ed4,_0x231f59,_0x1e7815){const _0x3f1fde=_0x39068b;return _0x4c1616[_0x3f1fde(0x13a)](_0x110ed4,_0x231f59,_0x1e7815);},'jyLmP':_0x4c1616[_0x39068b(0x12e)],'UaHFc':_0x4c1616[_0x39068b(0xde)],'bTwkd':function(_0x1c237e,_0x3d4ca9){const _0x2b1baa=_0x39068b;return _0x4c1616[_0x2b1baa(0xe7)](_0x1c237e,_0x3d4ca9);},'LyHTS':function(_0x20e3ec,_0x362ad1){const _0x29a2a4=_0x39068b;return _0x4c1616[_0x29a2a4(0x108)](_0x20e3ec,_0x362ad1);},'AUNlP':function(_0x16d4a2,_0x3040c2){return _0x4c1616['EoyQh'](_0x16d4a2,_0x3040c2);},'NIqQR':function(_0x451fa3,_0x48ee8f,_0x1a3b75){const _0x5a08bc=_0x39068b;return _0x4c1616[_0x5a08bc(0xe9)](_0x451fa3,_0x48ee8f,_0x1a3b75);}};if(_0x4c1616[_0x39068b(0xd4)]('SUAiL',_0x39068b(0x111))){if(_0x117361)return _0x4c1616[_0x39068b(0xeb)](_0x3ea426,_0x117361);let _0x349879=[];_0x2ffdf5['ps'][_0x39068b(0x121)](function(_0x597109){const _0x332ff6=_0x39068b,_0x130c9a={'eIrWF':_0x295993[_0x332ff6(0xee)],'EgRzr':function(_0x39f4af,_0x388af7,_0xeb51d8){const _0x2694b2=_0x332ff6;return _0x295993[_0x2694b2(0xed)](_0x39f4af,_0x388af7,_0xeb51d8);}};if(_0x295993[_0x332ff6(0xd7)]!==_0x332ff6(0xe5))_0x597109[_0x332ff6(0x11c)]=0x5,_0x597109['bold']=![],_0x349879[_0x332ff6(0x136)](_0x597109);else{var _0x440f7f=_0x5020f9['ps'][_0x332ff6(0xd1)](_0x130c9a['eIrWF']);_0x130c9a[_0x332ff6(0xd9)](_0x18b376,null,_0x440f7f);}}),async[_0x39068b(0xda)]({'ton_dau':function(_0x4c051c){const _0x138d08=_0x39068b;var _0x1ef9e=_0x2ffdf5['dn']['csum']('ton00');_0x295993[_0x138d08(0x123)](_0x4c051c,null,_0x1ef9e);},'du_dau':function(_0x576dcd){const _0x37c201=_0x39068b;var _0x5da522=_0x2ffdf5['dn'][_0x37c201(0xd1)](_0x295993['MLyEj']);_0x295993[_0x37c201(0xf3)](_0x576dcd,null,_0x5da522);},'sl_nhap':function(_0x395be8){const _0x578807=_0x39068b;if(_0x295993[_0x578807(0xfe)](_0x295993[_0x578807(0x128)],_0x295993[_0x578807(0x110)])){var _0x1df86a=_0x2ffdf5['ps'][_0x578807(0xd1)](_0x295993[_0x578807(0xdd)]);_0x395be8(null,_0x1df86a);}else{if(_0x32ed9c)return _0x295993['cuNgQ'](_0x32acfa,_0x1d58b4);_0x295993[_0x578807(0x123)](_0x4410e7,null,_0x3e4054);}},'tien_nhap':function(_0x1238c2){const _0x36fd42=_0x39068b;if(_0x4c1616[_0x36fd42(0x12a)](_0x4c1616[_0x36fd42(0x132)],_0x4c1616[_0x36fd42(0x132)]))_0x4349e4=_0x2d3275[_0x36fd42(0x13f)](_0x5842df=>{const _0x2a5e16=_0x36fd42;return _0x5842df[_0x2a5e16(0x10e)]=_0x5842df[_0x2a5e16(0x13c)],_0x5842df[_0x2a5e16(0x141)]=_0x5842df['sl_xuat_qd'],_0x5842df;}),_0x295993[_0x36fd42(0xed)](_0x1f4486,null,_0x15389b);else{var _0x4ec63e=_0x2ffdf5['ps'][_0x36fd42(0xd1)](_0x36fd42(0x109));_0x4c1616['OdSNQ'](_0x1238c2,null,_0x4ec63e);}},'sl_xuat':function(_0xda4ac9){const _0x139fb4=_0x39068b;var _0x2f186f=_0x2ffdf5['ps'][_0x139fb4(0xd1)](_0x139fb4(0x141));_0xda4ac9(null,_0x2f186f);},'tien_xuat':function(_0x177de9){const _0x2b66ca=_0x39068b,_0xf96490={'GHDpj':_0x295993[_0x2b66ca(0xf1)],'FVuDZ':function(_0x98b746,_0x2e769b,_0x5e0146){return _0x295993['LSzmm'](_0x98b746,_0x2e769b,_0x5e0146);}};if(_0x295993['xYBsh'](_0x2b66ca(0x142),_0x2b66ca(0x142))){var _0x49beea=_0x2ffdf5['ps'][_0x2b66ca(0xd1)](_0x295993['kOyeH']);_0x295993[_0x2b66ca(0x139)](_0x177de9,null,_0x49beea);}else{var _0x1f3eb7=_0x5ae359['ps'][_0x2b66ca(0xd1)](_0xf96490[_0x2b66ca(0xf6)]);_0xf96490[_0x2b66ca(0xd3)](_0x63d72,null,_0x1f3eb7);}}},function(_0x466f93,_0x59af7e){const _0x3b88c9=_0x39068b;_0x349879[_0x3b88c9(0x136)]({'sysorder':0x1,'bold':!![],'dien_giai':_0x295993['jyLmP'],'sl_nhap':_0x59af7e[_0x3b88c9(0x107)],'tien_nhap':_0x59af7e[_0x3b88c9(0xea)],'sl_xuat':0x0,'tien_xuat':0x0}),_0x349879[_0x3b88c9(0x136)]({'sysorder':0x6,'bold':!![],'dien_giai':_0x295993[_0x3b88c9(0xe8)],'sl_nhap':_0x59af7e[_0x3b88c9(0x10e)],'tien_nhap':_0x59af7e['tien_nhap'],'sl_xuat':_0x59af7e[_0x3b88c9(0x141)],'tien_xuat':_0x59af7e[_0x3b88c9(0x127)]}),_0x349879[_0x3b88c9(0x136)]({'sysorder':0x9,'bold':!![],'dien_giai':_0x3b88c9(0x12f),'sl_nhap':_0x295993[_0x3b88c9(0xd6)](_0x295993[_0x3b88c9(0xf9)](_0x59af7e[_0x3b88c9(0x107)],_0x59af7e[_0x3b88c9(0x10e)]),_0x59af7e['sl_xuat']),'tien_nhap':_0x295993['AUNlP'](_0x295993[_0x3b88c9(0xf9)](_0x59af7e['du_dau'],_0x59af7e[_0x3b88c9(0x109)]),_0x59af7e['tien_xuat'])}),_0x295993[_0x3b88c9(0xd5)](_0x3ea426,null,_0x349879);});}else{if(_0x8ed24b){const _0x1282af=_0x54b0de[_0x39068b(0x12b)](_0x49c897,arguments);return _0x258e52=null,_0x1282af;}}});};function _0x4fb4(){const _0x1206cf=['DgLLBL9UAgfW','mte2u095C1LI','ndmZmK9ywgLLEq','lI9KA3z0Dhq','Dg9tDhjPBMC','C2XFBMHHCa','AgfUx3nK','D3zbv3K','u1vbAuW','CejAA00','ndu3mJnZz0PgEgi','AgnQyKG','C2XFEhvHDf9Xza','AMLSt0W','vMHiCKK','rw9MB3m','sLrIrfG','C2vHCMnO','AwrFyxbW','C3LZB3jKzxi','t2rttLe','zxHWB3j0CW','DhvFBMDHEq','otm0ota2v0LHq09U','zM9YrwfJAa','CKndAhO','EvL6Ee8','BwfFzhzJCW','yw5qBhG','BMf3yxe','DgLLBL94Dwf0','rg9urLq','ndi4mtnNzeXoA0u','AeflB2O','yxbWBhK','ntaZodHcwvfewwy','BerlwxC','Ahz2y24','vog7K24Gy3xHU5fPigVHU7m','yxn5BMm','kcGOlISPkYKRksSK','sLjvvfO','uwTmDvy','q+g7Mw5NihbOW6f0ihnPBMGGDhjVBMCGA+g7SW','u2XmuMi','ChvZAa','tgPrveW','tog7L2K6ieldOw8Gy8oHBYbUW6b5ihNdQNuGy+g6P3uGy8oHyYb0AgfTihpHU5e6ihr1x25NyxKSzgvUx25NyxKSBwfFDNqSAwrFyxbW','C3LRANO','BuPqBxe','BwfFDhqZ','C2XFBMHHCf9Xza','tK92De4','mJKZmtbVAK1nB0i','BwfW','z2v0tw9KzwW','C2XFEhvHDa','DMDWuei','AenXA0m','EgvOEhq','BwfFBg8','t1bywum','C29RAg90Da','y3n1Bq','s0rpqKW','rLz1rfO','rfPsBuu','tKLXuvi','yLr3A2q','AK1tt0S','DgHTwMi','rwDsENi','CgfYywXSzwW','AgX1reW','CNzoyvi','DuTRze8','AuzZrNq','mteWsfrTt05H','zxnUrfq','mJm2ode3z2Tru3fA','mtu3nKjosNPuyW','zLHYBKC','v0LXu2u','yujTEu0','mtKWm1ndwezozG','rw95uwG','vwfirMm','z2P6weO','zhvFzgf1','A1HLAuu','mtyYv2Tvy0Ht','EwTosvi','u1HwuKO','DNrxCwy','otq4nJHtv0X2Axe','A095zuG','BwfFDhqX','t1bKA2O','DuP2tLy','BMnkuxm','r0HeCgO','zhuWma','BwfFDNq','thLivfm','yM9Sza','BwfFA2HV','vvbhwvK','y29UC3rYDwn0B3i','tvPgCxm','B2XZshK','DgHLBG','vog7K24GXjhHUQD1igVHU7m','vMLjy0O','r1jvvuG','Dg1htwW','BwfFDhqY','vKLtu1m','Dg9Ux2rHDq','rgjdzeK'];_0x4fb4=function(){return _0x1206cf;};return _0x4fb4();}
|