flexbiz-server 12.4.21 → 12.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/server/app.js +1 -22
- package/server/auths/bearer.js +1 -3
- package/server/auths/facebook.js +1 -12
- package/server/auths/google.js +1 -13
- package/server/auths/local.js +1 -64
- package/server/cluster.js +1 -27
- package/server/controllers/controller.js +1 -107
- package/server/controllers/controllerRPT.js +1 -27
- package/server/controllers/controllerUtils.js +1 -76
- package/server/controllers/createHandler.js +1 -35
- package/server/controllers/createRouteHandler.js +1 -4
- package/server/controllers/deleteHandler.js +1 -11
- package/server/controllers/deleteManyHandler.js +1 -2
- package/server/controllers/exportHandler.js +1 -17
- package/server/controllers/findHandler.js +1 -53
- package/server/controllers/handlers.js +1 -3
- package/server/controllers/historyHandler.js +1 -5
- package/server/controllers/importFromExcelHandler.js +1 -14
- package/server/controllers/importFromGsHandler.js +1 -10
- package/server/controllers/importFromJsonHandler.js +1 -7
- package/server/controllers/importHandler.js +1 -21
- package/server/controllers/logHandler.js +1 -5
- package/server/controllers/rptCreateRouteHandler.js +1 -4
- package/server/controllers/rptExcelHandler.js +1 -32
- package/server/controllers/rptHandler.js +1 -13
- package/server/controllers/updateBookHandler.js +1 -10
- package/server/controllers/updateFieldHandler.js +1 -12
- package/server/controllers/updateHandler.js +1 -39
- package/server/controllers/updateKeyHandler.js +1 -14
- package/server/controllers/viewHandler.js +1 -13
- package/server/flow/FlowEngine.js +1 -64
- package/server/flow/WebhookManager.js +1 -26
- package/server/flow/handlers.js +1 -3
- package/server/flow/nodes/aiAnalysis.js +1 -9
- package/server/flow/nodes/customer.js +1 -15
- package/server/flow/nodes/data.js +1 -14
- package/server/flow/nodes/debug.js +1 -2
- package/server/flow/nodes/delay.js +1 -3
- package/server/flow/nodes/email.js +1 -9
- package/server/flow/nodes/event.js +1 -11
- package/server/flow/nodes/facebook.js +1 -3
- package/server/flow/nodes/facebookConversations.js +1 -5
- package/server/flow/nodes/facebookCreatePost.js +1 -10
- package/server/flow/nodes/facebookSendMessage.js +1 -12
- package/server/flow/nodes/forEachItem.js +1 -8
- package/server/flow/nodes/function.js +1 -4
- package/server/flow/nodes/httprequest.js +1 -7
- package/server/flow/nodes/inject.js +1 -12
- package/server/flow/nodes/pushNotification.js +1 -5
- package/server/flow/nodes/report.js +1 -6
- package/server/flow/nodes/saveData.js +1 -2
- package/server/flow/nodes/switch.js +1 -20
- package/server/flow/nodes/webhook.js +1 -1
- package/server/flow/nodes/zaloSendMessage.js +1 -4
- package/server/flow/utils.js +1 -2
- package/server/global.js +1 -23
- package/server/libs/BlockchainTransactionPool.js +1 -3
- package/server/libs/WorkerPool.js +1 -4
- package/server/libs/WorkerStaticPool.js +1 -16
- package/server/libs/WorkerStaticPool_v1.js +1 -5
- package/server/libs/assbonus.js +1 -7
- package/server/libs/backup.js +1 -2
- package/server/libs/blockchainconnect.js +1 -12
- package/server/libs/cdpsdiem.js +1 -5
- package/server/libs/cdpsdt.js +1 -7
- package/server/libs/cdpskh.js +1 -9
- package/server/libs/cdpsnphep.js +1 -6
- package/server/libs/cdpstk.js +1 -11
- package/server/libs/ckcn.js +1 -12
- package/server/libs/ckdiem.js +1 -5
- package/server/libs/ckdt.js +1 -6
- package/server/libs/cknphep.js +1 -6
- package/server/libs/cktk.js +1 -4
- package/server/libs/cktt.js +1 -9
- package/server/libs/ckvt.js +1 -12
- package/server/libs/ckvtcapphat.js +1 -6
- package/server/libs/ckvtnpp.js +1 -8
- package/server/libs/ckvttt.js +1 -11
- package/server/libs/createSocaitheongay.js +1 -9
- package/server/libs/ctdiem.js +1 -5
- package/server/libs/ctvt.js +1 -7
- package/server/libs/ctvtnpp.js +1 -7
- package/server/libs/ctvttt.js +1 -7
- package/server/libs/databanle.js +1 -17
- package/server/libs/databanlenpp.js +1 -8
- package/server/libs/databanletheongay.js +1 -27
- package/server/libs/dkcn.js +1 -10
- package/server/libs/dkdiem.js +1 -5
- package/server/libs/dkdt.js +1 -6
- package/server/libs/dknphep.js +1 -7
- package/server/libs/dktk.js +1 -4
- package/server/libs/dktt.js +1 -8
- package/server/libs/dkvt.js +1 -9
- package/server/libs/dkvtnpp.js +1 -7
- package/server/libs/dkvttt.js +1 -7
- package/server/libs/dncn.js +1 -6
- package/server/libs/dntk.js +1 -4
- package/server/libs/dntt.js +1 -6
- package/server/libs/docs.js +1 -452
- package/server/libs/dstkcn.js +1 -1
- package/server/libs/dstktt.js +1 -1
- package/server/libs/dtbanletheonpp.js +1 -17
- package/server/libs/dtbanletheosp.js +1 -15
- package/server/libs/dtbanletheospnpp.js +1 -15
- package/server/libs/email.js +1 -3
- package/server/libs/excel.js +1 -2
- package/server/libs/getGiaban.js +1 -67
- package/server/libs/getGiabanAsync.js +1 -1
- package/server/libs/getNotifies.js +1 -1
- package/server/libs/htmlReport.js +1 -9
- package/server/libs/initDatabase.js +1 -9
- package/server/libs/invoiceEasy.js +1 -109
- package/server/libs/invoiceViettel.js +1 -29
- package/server/libs/invoiceVnpt.js +1 -22
- package/server/libs/kpistatus.js +1 -32
- package/server/libs/load-template.js +1 -3
- package/server/libs/mailmanagement.js +1 -13
- package/server/libs/mongooseDeletePost.js +1 -6
- package/server/libs/mongooseLeanId.js +1 -1
- package/server/libs/mongoosePatch.js +1 -8
- package/server/libs/onepay-payment.js +1 -4
- package/server/libs/optimizeBookkeeping.js +1 -14
- package/server/libs/parse-template.js +1 -5
- package/server/libs/permission.js +1 -51
- package/server/libs/phanbokh.js +1 -3
- package/server/libs/post-book.js +1 -23
- package/server/libs/post-socai.js +1 -25
- package/server/libs/post-sokho.js +1 -27
- package/server/libs/prototypes.js +1 -29
- package/server/libs/psdt.js +1 -1
- package/server/libs/pskh.js +1 -1
- package/server/libs/pstk.js +1 -1
- package/server/libs/redis-cache.js +1 -17
- package/server/libs/restore.js +1 -1
- package/server/libs/schedule.js +1 -18
- package/server/libs/sessionContext.js +2 -14
- package/server/libs/textReport.js +1 -3
- package/server/libs/thnxt.js +1 -9
- package/server/libs/thnxtnpp.js +1 -9
- package/server/libs/thnxttt.js +1 -8
- package/server/libs/tinhGt.js +1 -7
- package/server/libs/tinhGtCapnhatPNK.js +1 -7
- package/server/libs/tinhGtPhanboHeSo.js +1 -12
- package/server/libs/tinhGtPhanboSltp.js +1 -10
- package/server/libs/tinhGtPhanboYtcp.js +1 -11
- package/server/libs/tinhGtSltk.js +1 -9
- package/server/libs/tinhGtThcppstk.js +1 -10
- package/server/libs/tinhGtTrucTiep.js +1 -7
- package/server/libs/tinhGtXoa.js +1 -3
- package/server/libs/tinhgiatb.js +1 -38
- package/server/libs/tinhgiatb1vt.js +1 -5
- package/server/libs/tinhhoahong.js +1 -64
- package/server/libs/tinhhoahongnpp.js +1 -46
- package/server/libs/tinhkhauhao1ts.js +1 -12
- package/server/libs/tinhkhauhaots.js +1 -8
- package/server/libs/tuoinophaithu.js +1 -10
- package/server/libs/tuoinophaitra.js +1 -11
- package/server/libs/utils.js +1 -78
- package/server/libs/validate.js +1 -4
- package/server/libs/validator-acc-cust.js +1 -1
- package/server/libs/validator-account.js +1 -4
- package/server/libs/validator-vt.js +1 -2
- package/server/libs/validator.js +1 -11
- package/server/libs/vsocai.js +1 -8
- package/server/models/account.js +1 -7
- package/server/models/afflink.js +1 -2
- package/server/models/app.js +1 -15
- package/server/models/approve.js +1 -93
- package/server/models/assabcihandler.js +1 -35
- package/server/models/assbank.js +1 -19
- package/server/models/assbooking.js +1 -4
- package/server/models/assbuy.js +1 -3
- package/server/models/asscashwithdraw.js +1 -4
- package/server/models/assfindhash.js +1 -2
- package/server/models/assinvestment.js +1 -13
- package/server/models/assissue.js +1 -2
- package/server/models/asskey.js +1 -15
- package/server/models/assneedtobuy.js +1 -6
- package/server/models/assperiod.js +1 -7
- package/server/models/assproduct.js +1 -13
- package/server/models/assprofitsharing.js +1 -4
- package/server/models/assreceiver.js +1 -2
- package/server/models/assrequest.js +1 -11
- package/server/models/asssell.js +1 -7
- package/server/models/asstransaction.js +1 -3
- package/server/models/asstransfer.js +1 -4
- package/server/models/assuser_identity.js +1 -4
- package/server/models/asswithdraw.js +1 -4
- package/server/models/attend.js +1 -2
- package/server/models/banggiaban.js +1 -8
- package/server/models/bangtinhluong.js +1 -6
- package/server/models/base.js +1 -1
- package/server/models/bds_area.js +1 -4
- package/server/models/bds_block.js +1 -3
- package/server/models/bds_building.js +1 -4
- package/server/models/bds_floor.js +1 -3
- package/server/models/bds_floordetail.js +1 -9
- package/server/models/bds_nhadat.js +1 -11
- package/server/models/bds_nhomnhadat.js +1 -4
- package/server/models/bds_phanloainhadat.js +1 -3
- package/server/models/bg1.js +1 -9
- package/server/models/bg2.js +1 -10
- package/server/models/cache.js +1 -3
- package/server/models/calllog.js +1 -4
- package/server/models/campaign.js +1 -6
- package/server/models/cart.js +1 -5
- package/server/models/cddiem.js +1 -2
- package/server/models/cddt.js +1 -3
- package/server/models/cdkh.js +1 -5
- package/server/models/cdkhtheongay.js +1 -5
- package/server/models/cdnphep.js +1 -2
- package/server/models/cdtk.js +1 -3
- package/server/models/cdtktheongay.js +1 -3
- package/server/models/cdvt.js +1 -5
- package/server/models/cdvtnpp.js +1 -6
- package/server/models/cdvttheongay.js +1 -5
- package/server/models/chamcong.js +1 -7
- package/server/models/checkin.js +1 -4
- package/server/models/checkinactivity.js +1 -3
- package/server/models/checkinkpi.js +1 -4
- package/server/models/checkinlocation.js +1 -2
- package/server/models/chitieukpi.js +1 -3
- package/server/models/chudethaoluan.js +1 -3
- package/server/models/ckgtluong.js +1 -2
- package/server/models/colleague.js +1 -2
- package/server/models/comment.js +1 -4
- package/server/models/congdoansx.js +1 -4
- package/server/models/congtacvien.js +1 -4
- package/server/models/congthuctinhgiaban.js +1 -8
- package/server/models/consultant.js +1 -4
- package/server/models/contract.js +1 -6
- package/server/models/counter.js +1 -2
- package/server/models/ctds.js +1 -5
- package/server/models/ctds2.js +1 -6
- package/server/models/currency.js +1 -3
- package/server/models/customer.js +1 -31
- package/server/models/databanle.js +1 -8
- package/server/models/datlich.js +1 -4
- package/server/models/department.js +1 -4
- package/server/models/dh2.js +1 -20
- package/server/models/diagram.js +1 -2
- package/server/models/dinhmucsx.js +1 -8
- package/server/models/dkhoc.js +1 -6
- package/server/models/dknphep.js +1 -2
- package/server/models/dmban.js +1 -4
- package/server/models/dmbp.js +1 -12
- package/server/models/dmca.js +1 -2
- package/server/models/dmchietkhau.js +1 -9
- package/server/models/dmchietkhauhd.js +1 -20
- package/server/models/dmcpmh.js +1 -2
- package/server/models/dmdiemthuong.js +1 -5
- package/server/models/dmdoi.js +1 -4
- package/server/models/dmdoituongdanhgia.js +1 -2
- package/server/models/dmdt.js +1 -8
- package/server/models/dmdvt.js +1 -3
- package/server/models/dmgiaban.js +1 -9
- package/server/models/dmgiamua.js +1 -5
- package/server/models/dmgiathitruong.js +1 -5
- package/server/models/dmgiathitruong_ngay.js +1 -2
- package/server/models/dmgiathitruong_theodoi.js +1 -2
- package/server/models/dmhoahonghd.js +1 -9
- package/server/models/dmhoahongnpp.js +1 -9
- package/server/models/dmkc.js +1 -3
- package/server/models/dmkho.js +1 -6
- package/server/models/dmkhuyenmai.js +1 -9
- package/server/models/dmkhuyenmaihd.js +1 -11
- package/server/models/dmletet.js +1 -2
- package/server/models/dmlo.js +1 -4
- package/server/models/dmloaicong.js +1 -4
- package/server/models/dmloaitask.js +1 -2
- package/server/models/dmloaits.js +1 -2
- package/server/models/dmnckkm.js +1 -4
- package/server/models/dmnghiepvu.js +1 -4
- package/server/models/dmnguonvon.js +1 -2
- package/server/models/dmnhnv.js +1 -4
- package/server/models/dmnv.js +1 -17
- package/server/models/dmnvt.js +1 -9
- package/server/models/dmphatdichvu.js +1 -5
- package/server/models/dmphi.js +1 -3
- package/server/models/dmqct.js +1 -3
- package/server/models/dmqddvt.js +1 -3
- package/server/models/dmtanggiamts.js +1 -3
- package/server/models/dmto.js +1 -4
- package/server/models/dmtt.js +1 -6
- package/server/models/dmvt.js +1 -17
- package/server/models/dmyt.js +1 -4
- package/server/models/dn0.js +1 -13
- package/server/models/dnm.js +1 -11
- package/server/models/dokho.js +1 -2
- package/server/models/domain.js +1 -2
- package/server/models/dvcs.js +1 -3
- package/server/models/ecomcategories.js +1 -3
- package/server/models/ecomcategories_cty.js +1 -3
- package/server/models/ecomproductlines.js +1 -2
- package/server/models/ecompromotion_flashsales.js +1 -2
- package/server/models/ecompromotion_freeships.js +1 -2
- package/server/models/email.js +1 -2
- package/server/models/endpoint.js +1 -1
- package/server/models/events.js +1 -3
- package/server/models/evoucher.js +1 -5
- package/server/models/experiencejourney.js +1 -2
- package/server/models/experiencejourneydata.js +1 -4
- package/server/models/experiencejourneypersona.js +1 -3
- package/server/models/experiencejourneystage.js +1 -2
- package/server/models/exportexceltemplate.js +1 -2
- package/server/models/fbconversation.js +1 -15
- package/server/models/fbmessage.js +1 -2
- package/server/models/fbpage.js +1 -2
- package/server/models/fbpost.js +1 -2
- package/server/models/fieldright.js +1 -2
- package/server/models/file.js +1 -4
- package/server/models/financialroadmap.js +1 -3
- package/server/models/flow.js +1 -2
- package/server/models/flowdata.js +1 -3
- package/server/models/folder.js +1 -4
- package/server/models/follow.js +1 -2
- package/server/models/form.js +1 -3
- package/server/models/forminfo.js +1 -5
- package/server/models/formvalue.js +1 -3
- package/server/models/giaoca.js +1 -4
- package/server/models/giatb.js +1 -3
- package/server/models/group.js +1 -11
- package/server/models/gt_ctgt.js +1 -4
- package/server/models/gt_hspb.js +1 -3
- package/server/models/gt_sltk.js +1 -3
- package/server/models/gt_thcppstk.js +1 -3
- package/server/models/hanmucton.js +1 -4
- package/server/models/hd1.js +1 -11
- package/server/models/hd2.js +1 -27
- package/server/models/hd3.js +1 -18
- package/server/models/hd4.js +1 -13
- package/server/models/hd7.js +1 -17
- package/server/models/hd8.js +1 -12
- package/server/models/hde.js +1 -11
- package/server/models/hlink.js +1 -2
- package/server/models/hlinkvalue.js +1 -2
- package/server/models/hmcn.js +1 -3
- package/server/models/hmcnct.js +1 -2
- package/server/models/hspbts.js +1 -4
- package/server/models/htl.js +1 -13
- package/server/models/importexceltemplate.js +1 -2
- package/server/models/introducebonus.js +1 -4
- package/server/models/introducecode.js +1 -3
- package/server/models/introducer.js +1 -4
- package/server/models/kbbtpb.js +1 -7
- package/server/models/kbmPttct.js +1 -4
- package/server/models/kbmTkgtgt.js +1 -5
- package/server/models/kbm_bcdkt.js +1 -4
- package/server/models/kbm_kqhdkd.js +1 -3
- package/server/models/kbm_lcttgt.js +1 -5
- package/server/models/kbm_lctttt.js +1 -4
- package/server/models/kbm_pttct.js +1 -4
- package/server/models/kbm_tkgtgt.js +1 -5
- package/server/models/kbmbcdkt.js +1 -4
- package/server/models/kbmbcqt.js +1 -4
- package/server/models/kbmkqhdkd.js +1 -3
- package/server/models/kbmlcttgt.js +1 -6
- package/server/models/kbmlctttt.js +1 -4
- package/server/models/kbmtmbctc.js +1 -4
- package/server/models/kehoachdtcp.js +1 -3
- package/server/models/kehoachmh.js +1 -8
- package/server/models/keyresult.js +1 -7
- package/server/models/khunghangthanhvien.js +1 -3
- package/server/models/label.js +1 -2
- package/server/models/labelinfo.js +1 -2
- package/server/models/lenhcapphat.js +1 -8
- package/server/models/lenhsx.js +1 -8
- package/server/models/lienhe.js +1 -4
- package/server/models/like_module.js +1 -2
- package/server/models/link.js +1 -2
- package/server/models/loaidiem.js +1 -2
- package/server/models/lock.js +1 -2
- package/server/models/log.js +1 -5
- package/server/models/mailaccount.js +1 -3
- package/server/models/mailgroup.js +1 -3
- package/server/models/mailreceived.js +1 -2
- package/server/models/mailschedule.js +1 -2
- package/server/models/mailsent.js +1 -2
- package/server/models/mailtemplate.js +1 -2
- package/server/models/maudanhgia.js +1 -2
- package/server/models/menuinfo.js +1 -2
- package/server/models/message.js +1 -8
- package/server/models/message2.js +1 -4
- package/server/models/message2setting.js +1 -3
- package/server/models/moduleinfo.js +1 -4
- package/server/models/momo.js +1 -17
- package/server/models/news.js +1 -3
- package/server/models/newsfeed.js +1 -4
- package/server/models/note.js +1 -2
- package/server/models/notification.js +1 -7
- package/server/models/okr.js +1 -4
- package/server/models/okrdiagram.js +1 -3
- package/server/models/onepay.js +1 -24
- package/server/models/opportunity.js +1 -4
- package/server/models/options.js +1 -2
- package/server/models/originimportid.js +1 -1
- package/server/models/otp.js +1 -1
- package/server/models/parameter.js +1 -2
- package/server/models/participant.js +1 -20
- package/server/models/partner.js +1 -1
- package/server/models/payload.js +1 -1
- package/server/models/pbl.js +1 -16
- package/server/models/pc0.js +1 -13
- package/server/models/pc1.js +1 -14
- package/server/models/pc2.js +1 -13
- package/server/models/pc3.js +1 -13
- package/server/models/pc5.js +1 -8
- package/server/models/pc6.js +1 -14
- package/server/models/pcl.js +1 -6
- package/server/models/pdn.js +1 -9
- package/server/models/pdx.js +1 -9
- package/server/models/pgh.js +1 -5
- package/server/models/phieudanhgia.js +1 -3
- package/server/models/pht.js +1 -8
- package/server/models/phucap.js +1 -4
- package/server/models/pkc.js +1 -6
- package/server/models/pkh.js +1 -6
- package/server/models/pkk.js +1 -10
- package/server/models/pkt.js +1 -12
- package/server/models/pn1.js +1 -17
- package/server/models/pn2.js +1 -11
- package/server/models/pn3.js +1 -13
- package/server/models/pn5.js +1 -14
- package/server/models/pn6.js +1 -14
- package/server/models/pn9.js +1 -17
- package/server/models/pnc.js +1 -10
- package/server/models/pnh.js +1 -12
- package/server/models/pnk.js +1 -10
- package/server/models/po1.js +1 -19
- package/server/models/ppb.js +1 -6
- package/server/models/profile.js +1 -4
- package/server/models/pt1.js +1 -12
- package/server/models/pt5.js +1 -8
- package/server/models/ptl.js +1 -6
- package/server/models/ptthanhtoan.js +1 -6
- package/server/models/purchase_contract.js +1 -17
- package/server/models/pxc.js +1 -9
- package/server/models/pxh.js +1 -12
- package/server/models/pxk.js +1 -10
- package/server/models/qts.js +1 -14
- package/server/models/qts_dieuchinh.js +1 -3
- package/server/models/qts_dieuchuyen.js +1 -4
- package/server/models/quanhuyen.js +1 -2
- package/server/models/reason.js +1 -2
- package/server/models/receivedinvoice.js +1 -2
- package/server/models/reportinfo.js +1 -5
- package/server/models/right.js +1 -4
- package/server/models/rpt.js +1 -2
- package/server/models/rptform.js +1 -5
- package/server/models/rptobject.js +1 -2
- package/server/models/sale_contract.js +1 -9
- package/server/models/schedule.js +1 -16
- package/server/models/schedule_log.js +1 -2
- package/server/models/service.js +1 -4
- package/server/models/shipbook.js +1 -12
- package/server/models/shortcut.js +1 -2
- package/server/models/smsaccount.js +1 -10
- package/server/models/smssend.js +1 -2
- package/server/models/so1.js +1 -22
- package/server/models/so2.js +1 -10
- package/server/models/so3.js +1 -9
- package/server/models/so5.js +1 -15
- package/server/models/so9.js +1 -19
- package/server/models/socai.js +1 -26
- package/server/models/socainpp.js +1 -18
- package/server/models/socaitc.js +1 -6
- package/server/models/socaitmp.js +1 -16
- package/server/models/socaitt.js +1 -4
- package/server/models/sodiemthuong.js +1 -4
- package/server/models/sokho.js +1 -28
- package/server/models/sokhocapphat.js +1 -18
- package/server/models/sokhokhongton.js +1 -19
- package/server/models/sokhonpp.js +1 -19
- package/server/models/sokhotc.js +1 -8
- package/server/models/sokhott.js +1 -18
- package/server/models/sophanbokh.js +1 -3
- package/server/models/sosanxuat.js +1 -5
- package/server/models/sotinhkh.js +1 -2
- package/server/models/spdd_ck.js +1 -3
- package/server/models/spdd_dk.js +1 -3
- package/server/models/step.js +1 -2
- package/server/models/strategicdiagram.js +1 -3
- package/server/models/strategicgoal.js +1 -4
- package/server/models/strategickpi.js +1 -6
- package/server/models/strategicobjective.js +1 -5
- package/server/models/strategicplan.js +1 -5
- package/server/models/subscribe.js +1 -2
- package/server/models/support.js +1 -2
- package/server/models/synctime.js +1 -2
- package/server/models/sysconfig.js +1 -2
- package/server/models/sysgroup.js +1 -2
- package/server/models/tableinfo.js +1 -3
- package/server/models/task.js +1 -9
- package/server/models/taskreg.js +1 -4
- package/server/models/tc.js +1 -2
- package/server/models/tdttco.js +1 -8
- package/server/models/tdttco_tt.js +1 -5
- package/server/models/tdttno.js +1 -8
- package/server/models/tdttno_tt.js +1 -5
- package/server/models/templaterpt.js +1 -2
- package/server/models/templatestore.js +1 -3
- package/server/models/templatevoucher.js +1 -3
- package/server/models/tinhthanh.js +1 -2
- package/server/models/tokens.js +1 -2
- package/server/models/tontucthoi.js +1 -9
- package/server/models/trangthai.js +1 -4
- package/server/models/trangthaiapp.js +1 -4
- package/server/models/transaction.js +1 -16
- package/server/models/trialinfo.js +1 -2
- package/server/models/user.js +1 -38
- package/server/models/usergroup.js +1 -7
- package/server/models/vanchuyen.js +1 -12
- package/server/models/vat.js +1 -3
- package/server/models/vatra.js +1 -6
- package/server/models/vatvao.js +1 -6
- package/server/models/versioninfo.js +1 -2
- package/server/models/vietqrbanks.js +1 -2
- package/server/models/vsocai.js +1 -6
- package/server/models/waitevent.js +1 -2
- package/server/models/wallet.js +1 -8
- package/server/models/warranty.js +1 -3
- package/server/models/warrantyclaim.js +1 -2
- package/server/models/warrantypolicy.js +1 -1
- package/server/models/xaphuong.js +1 -2
- package/server/models/xhd.js +1 -10
- package/server/models/ytdd_ck.js +1 -4
- package/server/models/ytdd_dk.js +1 -4
- package/server/models/zalo.js +1 -17
- package/server/modules/lists/bg-cddiem.js +1 -6
- package/server/modules/lists/bg-cddt.js +1 -7
- package/server/modules/lists/bg-cdkh.js +1 -11
- package/server/modules/lists/bg-cdnphep.js +1 -6
- package/server/modules/lists/bg-cdtk.js +1 -9
- package/server/modules/lists/bg-cdvt.js +1 -8
- package/server/modules/lists/bg-cdvtnpp.js +1 -8
- package/server/modules/lists/ls-account.js +1 -4
- package/server/modules/lists/ls-afflink.js +1 -3
- package/server/modules/lists/ls-approve.js +1 -4
- package/server/modules/lists/ls-assabcihandler.js +1 -3
- package/server/modules/lists/ls-assbank.js +1 -3
- package/server/modules/lists/ls-assbooking.js +1 -20
- package/server/modules/lists/ls-assbuy.js +1 -8
- package/server/modules/lists/ls-asscashwithdraw.js +1 -8
- package/server/modules/lists/ls-assinvestment.js +1 -31
- package/server/modules/lists/ls-assissue.js +1 -3
- package/server/modules/lists/ls-asskey.js +1 -41
- package/server/modules/lists/ls-assneedtobuy.js +1 -10
- package/server/modules/lists/ls-assperiod.js +1 -19
- package/server/modules/lists/ls-assproduct.js +1 -9
- package/server/modules/lists/ls-assprofitsharing.js +1 -8
- package/server/modules/lists/ls-assreceiver.js +1 -3
- package/server/modules/lists/ls-assrequest.js +1 -4
- package/server/modules/lists/ls-asssell.js +1 -13
- package/server/modules/lists/ls-asstransaction.js +1 -3
- package/server/modules/lists/ls-asstransfer.js +1 -3
- package/server/modules/lists/ls-assuser_identity.js +1 -1
- package/server/modules/lists/ls-asswithdraw.js +1 -12
- package/server/modules/lists/ls-bangtinhluong.js +1 -2
- package/server/modules/lists/ls-bds_area.js +1 -3
- package/server/modules/lists/ls-bds_block.js +1 -1
- package/server/modules/lists/ls-bds_building.js +1 -3
- package/server/modules/lists/ls-bds_dmnhbds.js +1 -6
- package/server/modules/lists/ls-bds_floor.js +1 -2
- package/server/modules/lists/ls-bds_floordetail.js +1 -19
- package/server/modules/lists/ls-bds_nhadat.js +1 -16
- package/server/modules/lists/ls-bds_nhomnhadat.js +1 -1
- package/server/modules/lists/ls-bds_phanloainhadat.js +1 -1
- package/server/modules/lists/ls-calllog.js +1 -4
- package/server/modules/lists/ls-campaign.js +1 -1
- package/server/modules/lists/ls-cart.js +1 -14
- package/server/modules/lists/ls-chamcong.js +1 -3
- package/server/modules/lists/ls-checkin.js +1 -12
- package/server/modules/lists/ls-checkinactivity.js +1 -8
- package/server/modules/lists/ls-checkinkpi.js +1 -3
- package/server/modules/lists/ls-checkinlocation.js +1 -1
- package/server/modules/lists/ls-chitieukpi.js +1 -1
- package/server/modules/lists/ls-chudethaoluan.js +1 -1
- package/server/modules/lists/ls-ckgtluong.js +1 -1
- package/server/modules/lists/ls-comment.js +1 -9
- package/server/modules/lists/ls-congdoansx.js +1 -3
- package/server/modules/lists/ls-congtacvien.js +1 -5
- package/server/modules/lists/ls-consultant.js +1 -2
- package/server/modules/lists/ls-contract.js +1 -7
- package/server/modules/lists/ls-ctds.js +1 -4
- package/server/modules/lists/ls-ctds2.js +1 -4
- package/server/modules/lists/ls-currency.js +1 -1
- package/server/modules/lists/ls-customer.js +1 -21
- package/server/modules/lists/ls-datlich.js +1 -9
- package/server/modules/lists/ls-dckhauhaots.js +1 -3
- package/server/modules/lists/ls-department.js +1 -3
- package/server/modules/lists/ls-diagram.js +1 -1
- package/server/modules/lists/ls-dkhoc.js +1 -6
- package/server/modules/lists/ls-dknphep.js +1 -1
- package/server/modules/lists/ls-dmban.js +1 -4
- package/server/modules/lists/ls-dmbp.js +1 -7
- package/server/modules/lists/ls-dmca.js +1 -1
- package/server/modules/lists/ls-dmchietkhau.js +1 -19
- package/server/modules/lists/ls-dmchietkhauhd.js +1 -4
- package/server/modules/lists/ls-dmchucvu.js +1 -2
- package/server/modules/lists/ls-dmcpmh.js +1 -1
- package/server/modules/lists/ls-dmdiemthuong.js +1 -4
- package/server/modules/lists/ls-dmdoi.js +1 -4
- package/server/modules/lists/ls-dmdoituongdanhgia.js +1 -1
- package/server/modules/lists/ls-dmdt.js +1 -11
- package/server/modules/lists/ls-dmdvt.js +1 -2
- package/server/modules/lists/ls-dmgiaban.js +1 -4
- package/server/modules/lists/ls-dmgiamua.js +1 -4
- package/server/modules/lists/ls-dmgiathitruong.js +1 -15
- package/server/modules/lists/ls-dmgiathitruong_ngay.js +1 -2
- package/server/modules/lists/ls-dmgiathitruong_theodoi.js +1 -1
- package/server/modules/lists/ls-dmhoahonghd.js +1 -1
- package/server/modules/lists/ls-dmhoahongnpp.js +1 -1
- package/server/modules/lists/ls-dmkc.js +1 -3
- package/server/modules/lists/ls-dmkho.js +1 -1
- package/server/modules/lists/ls-dmkhuyenmai.js +1 -5
- package/server/modules/lists/ls-dmkhuyenmaihd.js +1 -3
- package/server/modules/lists/ls-dmletet.js +1 -1
- package/server/modules/lists/ls-dmlo.js +1 -1
- package/server/modules/lists/ls-dmloaicong.js +1 -1
- package/server/modules/lists/ls-dmloaits.js +1 -1
- package/server/modules/lists/ls-dmnckkm.js +1 -7
- package/server/modules/lists/ls-dmnghiepvu.js +1 -1
- package/server/modules/lists/ls-dmnguonvon.js +1 -1
- package/server/modules/lists/ls-dmnhnv.js +1 -6
- package/server/modules/lists/ls-dmnhtask.js +1 -5
- package/server/modules/lists/ls-dmnkh.js +1 -6
- package/server/modules/lists/ls-dmntt.js +1 -6
- package/server/modules/lists/ls-dmnv.js +1 -17
- package/server/modules/lists/ls-dmnvt.js +1 -8
- package/server/modules/lists/ls-dmphatdichvu.js +1 -3
- package/server/modules/lists/ls-dmphi.js +1 -6
- package/server/modules/lists/ls-dmqct.js +1 -2
- package/server/modules/lists/ls-dmqddvt.js +1 -3
- package/server/modules/lists/ls-dmtanggiamts.js +1 -1
- package/server/modules/lists/ls-dmto.js +1 -5
- package/server/modules/lists/ls-dmtt.js +1 -7
- package/server/modules/lists/ls-dmvt.js +1 -68
- package/server/modules/lists/ls-dmyt.js +1 -1
- package/server/modules/lists/ls-dokho.js +1 -1
- package/server/modules/lists/ls-dvcs.js +1 -1
- package/server/modules/lists/ls-ecomcategories.js +1 -5
- package/server/modules/lists/ls-ecomcategories_cty.js +1 -5
- package/server/modules/lists/ls-email.js +1 -4
- package/server/modules/lists/ls-events.js +1 -3
- package/server/modules/lists/ls-evoucher.js +1 -3
- package/server/modules/lists/ls-experiencejourney.js +1 -1
- package/server/modules/lists/ls-experiencejourneydata.js +1 -3
- package/server/modules/lists/ls-experiencejourneypersona.js +1 -4
- package/server/modules/lists/ls-experiencejourneystage.js +1 -1
- package/server/modules/lists/ls-fbconversation.js +1 -2
- package/server/modules/lists/ls-fbmessage.js +1 -2
- package/server/modules/lists/ls-fbpage.js +1 -11
- package/server/modules/lists/ls-fbpost.js +1 -2
- package/server/modules/lists/ls-file.js +1 -31
- package/server/modules/lists/ls-financialroadmap.js +1 -3
- package/server/modules/lists/ls-flow.js +1 -6
- package/server/modules/lists/ls-flowdata.js +1 -1
- package/server/modules/lists/ls-folder.js +1 -1
- package/server/modules/lists/ls-form.js +1 -1
- package/server/modules/lists/ls-forminfo.js +1 -1
- package/server/modules/lists/ls-formvalue.js +1 -1
- package/server/modules/lists/ls-giaoca.js +1 -4
- package/server/modules/lists/ls-group.js +1 -5
- package/server/modules/lists/ls-hlink.js +1 -1
- package/server/modules/lists/ls-hlinkvalue.js +1 -1
- package/server/modules/lists/ls-hmcn.js +1 -2
- package/server/modules/lists/ls-hspbts.js +1 -3
- package/server/modules/lists/ls-introducebonus.js +1 -4
- package/server/modules/lists/ls-introducecode.js +1 -10
- package/server/modules/lists/ls-introducer.js +1 -20
- package/server/modules/lists/ls-kbm-bcdkt.js +1 -1
- package/server/modules/lists/ls-kbm-bcqt.js +1 -5
- package/server/modules/lists/ls-kbm-kqhdkd.js +1 -1
- package/server/modules/lists/ls-kbm-lcttgt.js +1 -1
- package/server/modules/lists/ls-kbm-lctttt.js +1 -1
- package/server/modules/lists/ls-kbm-pttct.js +1 -3
- package/server/modules/lists/ls-kbm-tkgtgt.js +1 -3
- package/server/modules/lists/ls-kbm-tmbctc.js +1 -3
- package/server/modules/lists/ls-kehoachdtcp.js +1 -4
- package/server/modules/lists/ls-keyresult.js +1 -7
- package/server/modules/lists/ls-khunghangthanhvien.js +1 -1
- package/server/modules/lists/ls-kygui.js +1 -19
- package/server/modules/lists/ls-label.js +1 -1
- package/server/modules/lists/ls-lienhe.js +1 -4
- package/server/modules/lists/ls-like-module.js +1 -1
- package/server/modules/lists/ls-link.js +1 -1
- package/server/modules/lists/ls-loaidiem.js +1 -1
- package/server/modules/lists/ls-lock.js +1 -1
- package/server/modules/lists/ls-log.js +1 -3
- package/server/modules/lists/ls-mailaccount.js +1 -5
- package/server/modules/lists/ls-mailreceived.js +1 -5
- package/server/modules/lists/ls-mailschedule.js +1 -7
- package/server/modules/lists/ls-mailsent.js +1 -4
- package/server/modules/lists/ls-mailtemplate.js +1 -4
- package/server/modules/lists/ls-maudanhgia.js +1 -3
- package/server/modules/lists/ls-message2.js +1 -8
- package/server/modules/lists/ls-message2setting.js +1 -5
- package/server/modules/lists/ls-news.js +1 -7
- package/server/modules/lists/ls-newsfeed.js +1 -4
- package/server/modules/lists/ls-note.js +1 -6
- package/server/modules/lists/ls-okr.js +1 -5
- package/server/modules/lists/ls-okrdiagram.js +1 -1
- package/server/modules/lists/ls-opportunity.js +1 -5
- package/server/modules/lists/ls-options.js +1 -4
- package/server/modules/lists/ls-parameter.js +1 -3
- package/server/modules/lists/ls-participant.js +1 -10
- package/server/modules/lists/ls-phieudanhgia.js +1 -7
- package/server/modules/lists/ls-phucap.js +1 -2
- package/server/modules/lists/ls-profile.js +1 -1
- package/server/modules/lists/ls-ptthanhtoan.js +1 -3
- package/server/modules/lists/ls-qts-dieuchinh.js +1 -2
- package/server/modules/lists/ls-qts-dieuchuyen.js +1 -8
- package/server/modules/lists/ls-reason.js +1 -1
- package/server/modules/lists/ls-rpt.js +1 -5
- package/server/modules/lists/ls-rptform.js +1 -4
- package/server/modules/lists/ls-service.js +1 -3
- package/server/modules/lists/ls-shortcut.js +1 -1
- package/server/modules/lists/ls-smsaccount.js +1 -1
- package/server/modules/lists/ls-smssend.js +1 -3
- package/server/modules/lists/ls-sosanxuat.js +1 -4
- package/server/modules/lists/ls-step.js +1 -1
- package/server/modules/lists/ls-strategicdiagram.js +1 -1
- package/server/modules/lists/ls-strategicgoal.js +1 -3
- package/server/modules/lists/ls-strategickpi.js +1 -7
- package/server/modules/lists/ls-strategicobjective.js +1 -3
- package/server/modules/lists/ls-strategicplan.js +1 -6
- package/server/modules/lists/ls-support.js +1 -3
- package/server/modules/lists/ls-task.js +1 -34
- package/server/modules/lists/ls-taskreg.js +1 -2
- package/server/modules/lists/ls-tc.js +1 -1
- package/server/modules/lists/ls-templaterpt.js +1 -5
- package/server/modules/lists/ls-templatevoucher.js +1 -1
- package/server/modules/lists/ls-tontucthoi.js +1 -3
- package/server/modules/lists/ls-trangthaiapp.js +1 -3
- package/server/modules/lists/ls-transaction.js +1 -4
- package/server/modules/lists/ls-usergroup.js +1 -7
- package/server/modules/lists/ls-vat.js +1 -1
- package/server/modules/lists/ls-vatra.js +1 -5
- package/server/modules/lists/ls-vatvao.js +1 -6
- package/server/modules/lists/ls-waitevent.js +1 -1
- package/server/modules/lists/ls-warranty.js +1 -4
- package/server/modules/lists/ls_hanmucton.js +1 -3
- package/server/modules/lists/ls_hspb.js +1 -4
- package/server/modules/lists/ls_spdd_ck.js +1 -3
- package/server/modules/lists/ls_spdd_dk.js +1 -3
- package/server/modules/lists/ls_ytdd_ck.js +1 -4
- package/server/modules/lists/ls_ytdd_dk.js +1 -4
- package/server/modules/lists/sys-attend.js +1 -4
- package/server/modules/lists/sys-follow.js +1 -4
- package/server/modules/lists/sys-right.js +1 -2
- package/server/modules/public/app.js +1 -4
- package/server/modules/public/approve.js +1 -37
- package/server/modules/public/callin.js +1 -7
- package/server/modules/public/comment.js +1 -5
- package/server/modules/public/dmnvt.js +1 -4
- package/server/modules/public/dmvt.js +1 -9
- package/server/modules/public/file.js +1 -11
- package/server/modules/public/form.js +1 -7
- package/server/modules/public/forminfo.js +1 -1
- package/server/modules/public/group.js +1 -4
- package/server/modules/public/hlink.js +1 -3
- package/server/modules/public/introducecode.js +1 -1
- package/server/modules/public/listinfo.js +1 -1
- package/server/modules/public/media-webhook.js +1 -1
- package/server/modules/public/partner.js +1 -1
- package/server/modules/public/paymentCallback.js +1 -32
- package/server/modules/public/province.js +1 -1
- package/server/modules/public/ptthanhtoan.js +1 -4
- package/server/modules/public/subscribe.js +1 -30
- package/server/modules/public/support.js +1 -3
- package/server/modules/public/tableinfo.js +1 -1
- package/server/modules/public/trialinfo.js +1 -4
- package/server/modules/public/versioninfo.js +1 -1
- package/server/modules/reports/calc-tinhgiatb.js +1 -6
- package/server/modules/reports/calc-tinhgiathanh.js +1 -6
- package/server/modules/reports/calc-tinhkhauhaots.js +1 -3
- package/server/modules/reports/calc-tinhluong.js +1 -37
- package/server/modules/reports/rp-analyzedata.js +1 -6
- package/server/modules/reports/rp-assbonus.js +1 -4
- package/server/modules/reports/rp-assinterest.js +1 -8
- package/server/modules/reports/rp-assproductowners.js +1 -3
- package/server/modules/reports/rp-asssupply.js +1 -1
- package/server/modules/reports/rp-asstransferlog.js +1 -10
- package/server/modules/reports/rp-banggiatb.js +1 -3
- package/server/modules/reports/rp-bangtinhkhauhao.js +1 -6
- package/server/modules/reports/rp-baocaokhachhang.js +1 -6
- package/server/modules/reports/rp-bcdkt.js +1 -11
- package/server/modules/reports/rp-bcintroducebonus.js +1 -4
- package/server/modules/reports/rp-bckhtiemnang.js +1 -3
- package/server/modules/reports/rp-bcqt.js +1 -85
- package/server/modules/reports/rp-bkct.js +1 -13
- package/server/modules/reports/rp-bkshipbook.js +1 -8
- package/server/modules/reports/rp-bkvanchuyen.js +1 -8
- package/server/modules/reports/rp-bkvatra.js +1 -7
- package/server/modules/reports/rp-bkvatvao.js +1 -7
- package/server/modules/reports/rp-capnhatsocaitc.js +1 -4
- package/server/modules/reports/rp-cdpsdiem.js +1 -4
- package/server/modules/reports/rp-cdpsdt.js +1 -5
- package/server/modules/reports/rp-cdpskh.js +1 -7
- package/server/modules/reports/rp-cdpsnphep.js +1 -3
- package/server/modules/reports/rp-cdpstk.js +1 -4
- package/server/modules/reports/rp-chitietchitientheohoadon.js +1 -12
- package/server/modules/reports/rp-chitiettaisan.js +1 -13
- package/server/modules/reports/rp-chitietthutientheohoadon.js +1 -13
- package/server/modules/reports/rp-ckcn.js +1 -3
- package/server/modules/reports/rp-ckdiem.js +1 -2
- package/server/modules/reports/rp-cktk.js +1 -3
- package/server/modules/reports/rp-ckvt.js +1 -10
- package/server/modules/reports/rp-ckvttheokho.js +1 -4
- package/server/modules/reports/rp-ckvttheotg.js +1 -4
- package/server/modules/reports/rp-ckvttt.js +1 -3
- package/server/modules/reports/rp-congnophaithutheotuoino.js +1 -3
- package/server/modules/reports/rp-congnophaitratheotuoino.js +1 -3
- package/server/modules/reports/rp-congnosapthu.js +1 -4
- package/server/modules/reports/rp-congnosaptra.js +1 -4
- package/server/modules/reports/rp-congviectheobp.js +1 -9
- package/server/modules/reports/rp-congviectheodt.js +1 -8
- package/server/modules/reports/rp-congviectheokh.js +1 -8
- package/server/modules/reports/rp-congviectheonv.js +1 -9
- package/server/modules/reports/rp-congviectheotimeline.js +1 -6
- package/server/modules/reports/rp-ctbanle.js +1 -15
- package/server/modules/reports/rp-ctbanle2.js +1 -20
- package/server/modules/reports/rp-ctbanlectv.js +1 -20
- package/server/modules/reports/rp-ctbanlenpp.js +1 -24
- package/server/modules/reports/rp-ctdanhgianhanvien.js +1 -8
- package/server/modules/reports/rp-cthangbanbitralai.js +1 -4
- package/server/modules/reports/rp-ctmuahang.js +1 -7
- package/server/modules/reports/rp-cttralaihang.js +1 -4
- package/server/modules/reports/rp-databanle.js +1 -10
- package/server/modules/reports/rp-diemthuong.js +1 -2
- package/server/modules/reports/rp-dkcn.js +1 -3
- package/server/modules/reports/rp-dktk.js +1 -2
- package/server/modules/reports/rp-dsnhanviencm.js +1 -9
- package/server/modules/reports/rp-dsnhanvientb.js +1 -9
- package/server/modules/reports/rp-dtbanlekempk.js +1 -9
- package/server/modules/reports/rp-dtbanletheoct.js +1 -23
- package/server/modules/reports/rp-dtbanletheoctkempk.js +1 -25
- package/server/modules/reports/rp-dtbanletheokh.js +1 -20
- package/server/modules/reports/rp-dtbanletheokhnpp.js +1 -19
- package/server/modules/reports/rp-dtbanletheokho.js +1 -18
- package/server/modules/reports/rp-dtbanletheonam.js +1 -3
- package/server/modules/reports/rp-dtbanletheongay.js +1 -1
- package/server/modules/reports/rp-dtbanletheonpp.js +1 -23
- package/server/modules/reports/rp-dtbanletheonv.js +1 -19
- package/server/modules/reports/rp-dtbanletheoquy.js +1 -3
- package/server/modules/reports/rp-dtbanletheosp.js +1 -8
- package/server/modules/reports/rp-dtbanletheospnpp.js +1 -6
- package/server/modules/reports/rp-dtbanletheothang.js +1 -3
- package/server/modules/reports/rp-dtbanletheothungan.js +1 -12
- package/server/modules/reports/rp-dtbanletheovt.js +1 -2
- package/server/modules/reports/rp-dtbanletheovtnpp.js +1 -2
- package/server/modules/reports/rp-dutoanthuchitheodt.js +1 -4
- package/server/modules/reports/rp-getPXC2PNC.js +1 -8
- package/server/modules/reports/rp-getariseofaccountsbymonth.js +1 -4
- package/server/modules/reports/rp-getbtpb.js +1 -6
- package/server/modules/reports/rp-getcashbycashier.js +1 -7
- package/server/modules/reports/rp-getcschietkhau.js +1 -5
- package/server/modules/reports/rp-getdinhmuc4lenhcp.js +1 -7
- package/server/modules/reports/rp-getdinhmuc4pxk.js +1 -9
- package/server/modules/reports/rp-getdk4pht.js +1 -8
- package/server/modules/reports/rp-getdk4pkc.js +1 -9
- package/server/modules/reports/rp-getdttheoca.js +1 -5
- package/server/modules/reports/rp-getinvoice2pay.js +1 -4
- package/server/modules/reports/rp-getinvoice2receive.js +1 -4
- package/server/modules/reports/rp-getinvoice2return.js +1 -5
- package/server/modules/reports/rp-getinvoice2return_bl.js +1 -6
- package/server/modules/reports/rp-getkehoachmh4lenhcp.js +1 -4
- package/server/modules/reports/rp-getkhauhao.js +1 -7
- package/server/modules/reports/rp-getluong.js +1 -8
- package/server/modules/reports/rp-getluongchuyen.js +1 -5
- package/server/modules/reports/rp-getpn2fee.js +1 -5
- package/server/modules/reports/rp-getpn2return.js +1 -5
- package/server/modules/reports/rp-getthanhpham4pnk.js +1 -7
- package/server/modules/reports/rp-getvc2xhd.js +1 -11
- package/server/modules/reports/rp-gt_cpnvltt.js +1 -6
- package/server/modules/reports/rp-hangbanbitralai.js +1 -5
- package/server/modules/reports/rp-hangthanhvien.js +1 -3
- package/server/modules/reports/rp-hoadonbanhangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoadonmuahangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoahong.js +1 -15
- package/server/modules/reports/rp-kcsns.js +1 -19
- package/server/modules/reports/rp-kgchamcong.js +1 -7
- package/server/modules/reports/rp-khoaso.js +1 -12
- package/server/modules/reports/rp-kiemtrasocaitcvssocai.js +1 -6
- package/server/modules/reports/rp-kqdanhgianhanvien.js +1 -5
- package/server/modules/reports/rp-kqhdkd.js +1 -7
- package/server/modules/reports/rp-lcttgt.js +1 -17
- package/server/modules/reports/rp-lctttt.js +1 -11
- package/server/modules/reports/rp-linkslist.js +1 -4
- package/server/modules/reports/rp-phanbochitienchohoadon.js +1 -11
- package/server/modules/reports/rp-phanbothutienchohoadon.js +1 -10
- package/server/modules/reports/rp-ptbitralai.js +1 -7
- package/server/modules/reports/rp-ptcttct.js +1 -22
- package/server/modules/reports/rp-ptdonhang.js +1 -8
- package/server/modules/reports/rp-pttct.js +1 -49
- package/server/modules/reports/rp-pttctkho.js +1 -32
- package/server/modules/reports/rp-pttctkho2.js +1 -29
- package/server/modules/reports/rp-referredusers.js +1 -1
- package/server/modules/reports/rp-sctbhxh.js +1 -4
- package/server/modules/reports/rp-sctcnkh.js +1 -17
- package/server/modules/reports/rp-sctdiem.js +1 -3
- package/server/modules/reports/rp-sctdt.js +1 -7
- package/server/modules/reports/rp-sctdtcp.js +1 -11
- package/server/modules/reports/rp-sctluong.js +1 -4
- package/server/modules/reports/rp-sctthuetncn.js +1 -4
- package/server/modules/reports/rp-scttk.js +1 -7
- package/server/modules/reports/rp-sctvt.js +1 -5
- package/server/modules/reports/rp-sctvt_sl.js +1 -5
- package/server/modules/reports/rp-sctvtnpp.js +1 -6
- package/server/modules/reports/rp-sctvttt.js +1 -5
- package/server/modules/reports/rp-search.js +1 -4
- package/server/modules/reports/rp-socai.js +1 -6
- package/server/modules/reports/rp-socaitk.js +1 -7
- package/server/modules/reports/rp-sochut.js +1 -7
- package/server/modules/reports/rp-sokho.js +1 -7
- package/server/modules/reports/rp-sokhott.js +1 -5
- package/server/modules/reports/rp-sonkbh.js +1 -5
- package/server/modules/reports/rp-sonkc.js +1 -6
- package/server/modules/reports/rp-sonkct.js +1 -5
- package/server/modules/reports/rp-sonkmh.js +1 -5
- package/server/modules/reports/rp-sonktt.js +1 -5
- package/server/modules/reports/rp-soquy.js +1 -11
- package/server/modules/reports/rp-sosanhkhvatt.js +1 -13
- package/server/modules/reports/rp-sosanhkhvatt2.js +1 -6
- package/server/modules/reports/rp-sotaisan.js +1 -13
- package/server/modules/reports/rp-sotiengui.js +1 -7
- package/server/modules/reports/rp-taodinhmuctudkhoc.js +1 -5
- package/server/modules/reports/rp-thbanhangkempk.js +1 -28
- package/server/modules/reports/rp-thdanhgianhanvien.js +1 -9
- package/server/modules/reports/rp-thgt.js +1 -6
- package/server/modules/reports/rp-thnxt.js +1 -12
- package/server/modules/reports/rp-thnxt_sl.js +1 -9
- package/server/modules/reports/rp-thnxtnpp.js +1 -10
- package/server/modules/reports/rp-thnxttt.js +1 -9
- package/server/modules/reports/rp-tkbanhangtheogioithieu.js +1 -9
- package/server/modules/reports/rp-tkgioithieukh.js +1 -4
- package/server/modules/reports/rp-tkgtgt.js +1 -7
- package/server/modules/reports/rp-tmbctc.js +1 -20
- package/server/modules/reports/rp-tonghopbanhang.js +1 -6
- package/server/modules/reports/rp-tonghopmuahang.js +1 -5
- package/server/modules/reports/rp-tonghoptralaihang.js +1 -5
- package/server/modules/reports/rp-tongquanbanle.js +1 -20
- package/server/modules/reports/rp-tongquanbds.js +1 -3
- package/server/modules/reports/rp-tongquancongty.js +1 -6
- package/server/modules/reports/rp-tongquanctvnpp.js +1 -12
- package/server/modules/reports/rp-tongquannvbh.js +1 -14
- package/server/modules/reports/rp-tongquannvnpp.js +1 -5
- package/server/modules/reports/rp-uoctinhnvl.js +1 -11
- package/server/modules/reports/rp-wallet.js +1 -3
- package/server/modules/reports/rpt-tkdiemtichluy.js +1 -9
- package/server/modules/systems/sys-app.js +1 -30
- package/server/modules/systems/sys-colleague.js +1 -11
- package/server/modules/systems/sys-domain.js +1 -4
- package/server/modules/systems/sys-ecomproductlines.js +1 -1
- package/server/modules/systems/sys-exportexceltemplate.js +1 -4
- package/server/modules/systems/sys-fieldright.js +1 -3
- package/server/modules/systems/sys-importexceltemplate.js +1 -4
- package/server/modules/systems/sys-labelinfo.js +1 -4
- package/server/modules/systems/sys-listinfo.js +1 -10
- package/server/modules/systems/sys-menuinfo.js +1 -4
- package/server/modules/systems/sys-message.js +1 -14
- package/server/modules/systems/sys-moduleinfo.js +1 -4
- package/server/modules/systems/sys-notification.js +1 -8
- package/server/modules/systems/sys-quanhuyen.js +1 -4
- package/server/modules/systems/sys-reportinfo.js +1 -4
- package/server/modules/systems/sys-rptobject.js +1 -3
- package/server/modules/systems/sys-schedule.js +1 -11
- package/server/modules/systems/sys-sysconfig.js +1 -3
- package/server/modules/systems/sys-sysgroup.js +1 -3
- package/server/modules/systems/sys-tableinfo.js +1 -3
- package/server/modules/systems/sys-templatestore.js +1 -5
- package/server/modules/systems/sys-tinhthanh.js +1 -4
- package/server/modules/systems/sys-token.js +1 -3
- package/server/modules/systems/sys-trangthai.js +1 -4
- package/server/modules/systems/sys-trialinfo.js +1 -3
- package/server/modules/systems/sys-user.js +1 -45
- package/server/modules/systems/sys-users.js +1 -10
- package/server/modules/systems/sys-versioninfo.js +1 -3
- package/server/modules/systems/sys-vietqrbanks.js +1 -4
- package/server/modules/systems/sys-xaphuong.js +1 -4
- package/server/modules/vouchers/vo-banggiaban.js +1 -5
- package/server/modules/vouchers/vo-bc1.js +1 -33
- package/server/modules/vouchers/vo-bc5.js +1 -15
- package/server/modules/vouchers/vo-bg1.js +1 -10
- package/server/modules/vouchers/vo-bg2.js +1 -12
- package/server/modules/vouchers/vo-bn1.js +1 -35
- package/server/modules/vouchers/vo-bn5.js +1 -15
- package/server/modules/vouchers/vo-dh2.js +1 -35
- package/server/modules/vouchers/vo-dinhmucsx.js +1 -6
- package/server/modules/vouchers/vo-dkb.js +1 -21
- package/server/modules/vouchers/vo-dn0.js +1 -9
- package/server/modules/vouchers/vo-dnm.js +1 -21
- package/server/modules/vouchers/vo-hd1.js +1 -36
- package/server/modules/vouchers/vo-hd2.js +1 -107
- package/server/modules/vouchers/vo-hd3.js +1 -44
- package/server/modules/vouchers/vo-hd4.js +1 -13
- package/server/modules/vouchers/vo-hd7.js +1 -29
- package/server/modules/vouchers/vo-hd8.js +1 -29
- package/server/modules/vouchers/vo-hde.js +1 -40
- package/server/modules/vouchers/vo-htl.js +1 -11
- package/server/modules/vouchers/vo-kbbtpb.js +1 -6
- package/server/modules/vouchers/vo-kehoachmh.js +1 -13
- package/server/modules/vouchers/vo-lenhcapphat.js +1 -10
- package/server/modules/vouchers/vo-lenhsx.js +1 -12
- package/server/modules/vouchers/vo-pbl.js +1 -93
- package/server/modules/vouchers/vo-pc0.js +1 -14
- package/server/modules/vouchers/vo-pc1.js +1 -31
- package/server/modules/vouchers/vo-pc2.js +1 -24
- package/server/modules/vouchers/vo-pc3.js +1 -14
- package/server/modules/vouchers/vo-pc5.js +1 -15
- package/server/modules/vouchers/vo-pc6.js +1 -19
- package/server/modules/vouchers/vo-pcl.js +1 -7
- package/server/modules/vouchers/vo-pdn.js +1 -11
- package/server/modules/vouchers/vo-pdx.js +1 -9
- package/server/modules/vouchers/vo-pgh.js +1 -19
- package/server/modules/vouchers/vo-pht.js +1 -7
- package/server/modules/vouchers/vo-pkc.js +1 -7
- package/server/modules/vouchers/vo-pkh.js +1 -10
- package/server/modules/vouchers/vo-pkk.js +1 -12
- package/server/modules/vouchers/vo-pkt.js +1 -13
- package/server/modules/vouchers/vo-pn1.js +1 -33
- package/server/modules/vouchers/vo-pn2.js +1 -16
- package/server/modules/vouchers/vo-pn3.js +1 -18
- package/server/modules/vouchers/vo-pn5.js +1 -19
- package/server/modules/vouchers/vo-pn6.js +1 -18
- package/server/modules/vouchers/vo-pn9.js +1 -22
- package/server/modules/vouchers/vo-pnc.js +1 -20
- package/server/modules/vouchers/vo-pnh.js +1 -20
- package/server/modules/vouchers/vo-pnk.js +1 -14
- package/server/modules/vouchers/vo-pnknpp.js +1 -12
- package/server/modules/vouchers/vo-po1.js +1 -15
- package/server/modules/vouchers/vo-ppb.js +1 -8
- package/server/modules/vouchers/vo-pt1.js +1 -21
- package/server/modules/vouchers/vo-pt5.js +1 -15
- package/server/modules/vouchers/vo-ptl.js +1 -8
- package/server/modules/vouchers/vo-purchase_contract.js +1 -9
- package/server/modules/vouchers/vo-pxc.js +1 -22
- package/server/modules/vouchers/vo-pxh.js +1 -28
- package/server/modules/vouchers/vo-pxk.js +1 -15
- package/server/modules/vouchers/vo-pxknpp.js +1 -14
- package/server/modules/vouchers/vo-qts.js +1 -12
- package/server/modules/vouchers/vo-sale_contract.js +1 -11
- package/server/modules/vouchers/vo-shipbook.js +1 -17
- package/server/modules/vouchers/vo-so1.js +1 -126
- package/server/modules/vouchers/vo-so2.js +1 -37
- package/server/modules/vouchers/vo-so3.js +1 -41
- package/server/modules/vouchers/vo-so5.js +1 -57
- package/server/modules/vouchers/vo-so7.js +1 -97
- package/server/modules/vouchers/vo-so9.js +1 -119
- package/server/modules/vouchers/vo-vanchuyen.js +1 -14
- package/server/modules/vouchers/vo-xhd.js +1 -33
- package/server/route.js +1 -51
- package/server/services/invoiceFetcher.js +1 -15
- package/server/sslConfig.js +1 -2
- package/server/transactionMiddleware.js +1 -5
- package/server/workers/backupApp.js +1 -9
- package/server/workers/calcGrid.js +1 -9
- package/server/workers/customerOnImport.js +1 -8
- package/server/workers/dmvtOnImport.js +1 -9
- package/server/workers/excelParser.js +1 -9
- package/server/workers/inputWorker.js +1 -6
- package/server/workers/pushNotify.js +1 -10
- package/server/workers/reportWorker.js +1 -7
- package/server/workers/restoreApp.js +1 -23
- package/server/workers/runScript.js +1 -4
- package/server/workers/sendEmail.js +1 -13
- package/server/workers/webhook.js +1 -5
|
@@ -1,49 +1 @@
|
|
|
1
|
-
const cktk=require("../../libs/cktk"),dktk=require("../../libs/dktk"),kbmpttct=global.getModel("kbmPttct"),rptform=global.getModel("rptform"),async=require("async"),_=require("lodash"),utils=require("../../libs/utils"),controller=require("../../controllers/controllerRPT"),moment=require("moment"),numeral=require("numeral"),getRegString=function($arrayTk$$){return $arrayTk$$.reg()},{getCodeChildren}=require("../../libs/utils");
|
|
2
|
-
module.exports=function($router$$){new controller($router$$,"pttct",async function($req$$,$callback$$){let $query$$=$req$$.query;if(!$query$$.den_ngay||!$query$$.tu_ngay||!$query$$.id_rptform)return $callback$$("B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u tham s\u1ed1 t\u1eeb ng\u00e0y(tu_ngay), \u0111\u1ebfn ng\u00e0y(den_ngay), id m\u1eabu b\u00e1o c\u00e1o");if(!global.mongoose.Types.ObjectId.isValid($query$$.id_rptform))return $callback$$("M\u1eabu b\u00e1o c\u00e1o n\u00e0y kh\u00f4ng c\u00f3 gi\u00e1 tr\u1ecb");
|
|
3
|
-
if($query$$.ma_bp){var $bps_dts_phis$$=await getCodeChildren(global.getModel("dmbp"),$query$$.id_app,$query$$.ma_bp,"ma_bp","ma_bp_me");$query$$.ma_bp={$in:$bps_dts_phis$$}}$query$$.ma_phi&&($bps_dts_phis$$=await getCodeChildren(global.getModel("dmphi"),$query$$.id_app,$query$$.ma_phi,"ma_phi","ma_phi_me"),$query$$.ma_phi={$in:$bps_dts_phis$$});$query$$.ma_dt&&($bps_dts_phis$$=await getCodeChildren(global.getModel("dmdt"),$query$$.id_app,$query$$.ma_dt,"ma_dt","ma_dt_me"),$query$$.ma_dt={$in:$bps_dts_phis$$});
|
|
4
|
-
(new Promise(($resolve$$,$reject$$)=>{rptform.findOne({_id:$query$$.id_rptform,id_app:$query$$.id_app}).lean().exec(($e$$,$rs$$)=>{if($e$$||!$rs$$)return $reject$$($e$$);$resolve$$($rs$$)})})).then(async $_rptform$$=>{$query$$.tu_ngay=moment(new Date($query$$.tu_ngay)).startOf("date").toDate();$query$$.den_ngay=moment(new Date($query$$.den_ngay)).endOf("date").toDate();let $report$$=$_rptform$$.report;$report$$&&$_rptform$$.report.length!==0||($report$$=await kbmpttct.find({id_rptform:$_rptform$$._id.toString(),
|
|
5
|
-
id_app:$query$$.id_app}).sort({stt:1}).lean());let $kys$$=[];switch($query$$.loai_ky){case "ngay":for(var $tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($query$$.tu_ngay).startOf("date").toDate();$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getTime()<$query$$.den_ngay.getTime();){var $den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).endOf("date").toDate();
|
|
6
|
-
$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$.getTime()>$query$$.den_ngay.getTime()&&($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=$query$$.den_ngay);$kys$$.push({field:`so_${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getDate()}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+1}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,header:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getDate()}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+
|
|
7
|
-
1}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,datatype:"Number",ma_ky:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getDate()}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+1}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,ten_ky:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getDate()}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+
|
|
8
|
-
1}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,tu_ngay:$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$,den_ngay:$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$});$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$).add(1,"days").startOf("date").toDate()}$kys$$.push({ma_ky:"tong_cong",ten_ky:"T\u1ed5ng c\u1ed9ng",
|
|
9
|
-
datatype:"Number",tu_ngay:moment($query$$.tu_ngay).startOf("date").toDate(),den_ngay:moment($query$$.den_ngay).endOf("date").toDate()});break;case "tuan":for($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($query$$.tu_ngay).startOf("date").toDate();$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getTime()<$query$$.den_ngay.getTime();)$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).endOf("week").toDate(),
|
|
10
|
-
$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$.getTime()>$query$$.den_ngay.getTime()&&($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=$query$$.den_ngay),$kys$$.push({field:`so_${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("weeks")}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,header:`Tu\u1ea7n ${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("weeks")}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,
|
|
11
|
-
ma_ky:`${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("weeks")}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,ten_ky:`Tu\u1ea7n ${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("weeks")}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,tu_ngay:$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$,den_ngay:$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$}),
|
|
12
|
-
$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$).add(1,"days").startOf("date").toDate();$kys$$.push({ma_ky:"tong_cong",ten_ky:"T\u1ed5ng c\u1ed9ng",datatype:"Number",tu_ngay:moment($query$$.tu_ngay).startOf("date").toDate(),den_ngay:moment($query$$.den_ngay).endOf("date").toDate()});break;case "thang":for($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($query$$.tu_ngay).startOf("date").toDate();$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getTime()<
|
|
13
|
-
$query$$.den_ngay.getTime();)$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).endOf("month").toDate(),$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$.getTime()>$query$$.den_ngay.getTime()&&($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=$query$$.den_ngay),$kys$$.push({field:`so_${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+
|
|
14
|
-
1}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,header:`Th\u00e1ng ${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+1}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,datatype:"Number",ma_ky:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+1}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,ten_ky:`Th\u00e1ng ${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getMonth()+
|
|
15
|
-
1}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,tu_ngay:$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$,den_ngay:$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$}),$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$).add(1,"days").startOf("date").toDate();$kys$$.push({ma_ky:"tong_cong",ten_ky:"T\u1ed5ng c\u1ed9ng",
|
|
16
|
-
datatype:"Number",tu_ngay:moment($query$$.tu_ngay).startOf("date").toDate(),den_ngay:moment($query$$.den_ngay).endOf("date").toDate()});break;case "quy":for($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($query$$.tu_ngay).startOf("date").toDate();$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getTime()<$query$$.den_ngay.getTime();)$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).endOf("quarters").toDate(),
|
|
17
|
-
$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$.getTime()>$query$$.den_ngay.getTime()&&($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=$query$$.den_ngay),$kys$$.push({field:`so_${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("quarters")}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,header:`${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("quarters")}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,
|
|
18
|
-
datatype:"Number",ma_ky:`${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("quarters")}-${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,ten_ky:`${moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).get("quarters")}/${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,tu_ngay:$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$,den_ngay:$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$}),
|
|
19
|
-
$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$).add(1,"days").startOf("date").toDate();$kys$$.push({ma_ky:"tong_cong",ten_ky:"T\u1ed5ng c\u1ed9ng",datatype:"Number",tu_ngay:moment($query$$.tu_ngay).startOf("date").toDate(),den_ngay:moment($query$$.den_ngay).endOf("date").toDate()});break;case "nam":for($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=moment($query$$.tu_ngay).startOf("date").toDate();$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getTime()<
|
|
20
|
-
$query$$.den_ngay.getTime();)$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=moment($tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$).endOf("year").toDate(),$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$.getTime()>$query$$.den_ngay.getTime()&&($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$=$query$$.den_ngay),$kys$$.push({field:`so_${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,
|
|
21
|
-
header:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,ma_ky:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,ten_ky:`${$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$.getFullYear()}`,tu_ngay:$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$,den_ngay:$den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$}),$tu_ngay_tu_ngay$jscomp$1_tu_ngay$jscomp$2_tu_ngay$jscomp$3_tu_ngay$$=
|
|
22
|
-
moment($den_ngay_den_ngay$jscomp$1_den_ngay$jscomp$2_den_ngay$jscomp$3_den_ngay$$).add(1,"days").startOf("date").toDate();$kys$$.push({ma_ky:"tong_cong",ten_ky:"T\u1ed5ng c\u1ed9ng",datatype:"Number",tu_ngay:moment($query$$.tu_ngay).startOf("date").toDate(),den_ngay:moment($query$$.den_ngay).endOf("date").toDate()});break;case "kn":$kys$$=[{field:"so_kn",header:"Gi\u00e1 tr\u1ecb",datatype:"Number",ma_ky:"kn",ten_ky:"Gi\u00e1 tr\u1ecb",tu_ngay:$query$$.tu_ngay,den_ngay:$query$$.den_ngay}];break;default:$query$$.tu_ngay_kt=
|
|
23
|
-
new Date($query$$.tu_ngay),$query$$.tu_ngay_kt.setYear($query$$.tu_ngay_kt.getFullYear()-1),$query$$.den_ngay_kt=new Date($query$$.den_ngay),$query$$.den_ngay_kt.setYear($query$$.den_ngay_kt.getFullYear()-1),$kys$$=[{field:"so_kt",header:"K\u1ef3 tr\u01b0\u1edbc",datatype:"Number",ma_ky:"kt",ten_ky:"K\u1ef3 tr\u01b0\u1edbc",tu_ngay:$query$$.tu_ngay_kt,den_ngay:$query$$.den_ngay_kt},{field:"so_kn",header:"K\u1ef3 n\u00e0y",datatype:"Number",ma_ky:"kn",ten_ky:"K\u1ef3 n\u00e0y",tu_ngay:$query$$.tu_ngay,
|
|
24
|
-
den_ngay:$query$$.den_ngay}]}async.map($report$$,($r$$,$c1$$)=>{setImmediate(()=>{switch($r$$.cach_tinh){case "9":$r$$.cong_thuc="";utils.getInfoFromQuery($query$$,$r$$.query,($e$$,$rs$$)=>{if($e$$)return $c1$$();_.isNumber($rs$$)?($r$$.so_kn=$rs$$,$r$$.so_kn_nt=$rs$$,$r$$.so_kt=$rs$$,$r$$.so_kt_nt=$rs$$):$r$$.value_string=$rs$$;$c1$$()});break;case "2":$r$$.cong_thuc="";async.map($kys$$,($ky$$,$callback$$)=>{setImmediate(async()=>{let $condition$$={ngay_ct:{$gte:$ky$$.tu_ngay,$lte:$ky$$.den_ngay},
|
|
25
|
-
id_app:$query$$.id_app};$query$$.ma_dvcs&&($condition$$.ma_dvcs=$query$$.ma_dvcs);$query$$.ma_bp&&($condition$$.ma_bp=$query$$.ma_bp);$query$$.ma_hd&&($condition$$.ma_hd=$query$$.ma_hd);$query$$.ma_dt&&($condition$$.ma_dt=$query$$.ma_dt);$query$$.ma_sp&&($condition$$.ma_sp=$query$$.ma_sp);$query$$.ma_nv&&($condition$$.ma_nv=$query$$.ma_nv);$r$$.ma_phi&&($condition$$.ma_phi={$in:await getCodeChildren(global.getModel("dmphi"),$query$$.id_app,$r$$.ma_phi,"ma_phi","ma_phi_me")});var $tk_co_tk_no$$=getRegString($r$$.tk_no);
|
|
26
|
-
$tk_co_tk_no$$&&($condition$$.tk_no=$r$$.giam_tru_no?{$not:new RegExp($tk_co_tk_no$$)}:{$regex:$tk_co_tk_no$$,$options:"i"});if($tk_co_tk_no$$=getRegString($r$$.tk_co))$condition$$.tk_co=$r$$.giam_tru_co&&$tk_co_tk_no$$?{$not:new RegExp($tk_co_tk_no$$)}:{$regex:$tk_co_tk_no$$,$options:"i"};if($r$$.dieu_kien_khac)try{$r$$.dieu_kien_khac.indexOf("{")<0&&($r$$.dieu_kien_khac="{"+$r$$.dieu_kien_khac+"}");var $socai_str_func$$=$r$$.dieu_kien_khac;$socai_str_func$$.indexOf("return ")<0&&($socai_str_func$$=
|
|
27
|
-
`return ${$socai_str_func$$}`);let $dieu_kien_khac$$=utils.evalute($socai_str_func$$,{moment,condition:$condition$$,row:$r$$});$condition$$={...$condition$$,...$dieu_kien_khac$$}}catch($e$$){return $callback$$($e$$.toString())}$r$$.ma_kho?($condition$$.ma_kho=$r$$.ma_kho,$socai_str_func$$=global.getModel("socaitc")):$socai_str_func$$=global.getModel("socaitt");$socai_str_func$$.find($condition$$).lean().exec(($error$$,$rs$$)=>{if($error$$)return $callback$$($error$$);$r$$[`so_${$ky$$.ma_ky}`]=$rs$$.csum("tien");
|
|
28
|
-
$r$$[`so_${$ky$$.ma_ky}_nt`]=$rs$$.csum("tien_nt");$callback$$(null,$r$$)})})},($e$$,$rs$$)=>{$c1$$($e$$,$rs$$)});break;case "5":$r$$.cong_thuc="";async.map($kys$$,($ky$$,$callback$$)=>{let $condition$$={...$query$$};$condition$$.ngay=$ky$$.tu_ngay;$condition$$.bu_tru=$r$$.bu_tru_cong_no;$condition$$.tk=$r$$.tk;delete $condition$$.tu_ngay;delete $condition$$.den_ngay;dktk($condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$r$$[`so_${$ky$$.ma_ky}`]=$result$$.csum("du_no00");
|
|
29
|
-
$r$$[`so_${$ky$$.ma_ky}_nt`]=$result$$.csum("du_no_nt00");$r$$[`so_${$ky$$.ma_ky}`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}`]=0);$r$$[`so_${$ky$$.ma_ky}_nt`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}_nt`]=0);$callback$$(null,$r$$)})},($e$$,$rs$$)=>{$c1$$($e$$,$rs$$)});break;case "6":$r$$.cong_thuc="";async.map($kys$$,($ky$$,$callback$$)=>{let $condition$$={...$query$$};$condition$$.ngay=$ky$$.tu_ngay;$condition$$.bu_tru=$r$$.bu_tru_cong_no;$condition$$.tk=$r$$.tk;delete $condition$$.tu_ngay;delete $condition$$.den_ngay;
|
|
30
|
-
dktk($condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$r$$[`so_${$ky$$.ma_ky}`]=$result$$.csum("du_co00");$r$$[`so_${$ky$$.ma_ky}_nt`]=$result$$.csum("du_co_nt00");$r$$[`so_${$ky$$.ma_ky}`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}`]=0);$r$$[`so_${$ky$$.ma_ky}_nt`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}_nt`]=0);$callback$$(null,$r$$)})},($e$$,$rs$$)=>{$c1$$($e$$,$rs$$)});break;case "7":$r$$.cong_thuc="";async.map($kys$$,($ky$$,$callback$$)=>{let $condition$$=
|
|
31
|
-
{...$query$$};$condition$$.ngay=$ky$$.den_ngay;$condition$$.bu_tru=$r$$.bu_tru_cong_no;$condition$$.tk=$r$$.tk;delete $condition$$.tu_ngay;delete $condition$$.den_ngay;cktk($condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$r$$[`so_${$ky$$.ma_ky}`]=$result$$.csum("du_no00");$r$$[`so_${$ky$$.ma_ky}_nt`]=$result$$.csum("du_no_nt00");$r$$[`so_${$ky$$.ma_ky}`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}`]=0);$r$$[`so_${$ky$$.ma_ky}_nt`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}_nt`]=
|
|
32
|
-
0);$callback$$(null,$r$$)})},($e$$,$rs$$)=>{$c1$$($e$$,$rs$$)});break;case "8":$r$$.cong_thuc="";async.map($kys$$,($ky$$,$callback$$)=>{let $condition$$={...$query$$};$condition$$.ngay=$ky$$.den_ngay;$condition$$.bu_tru=$r$$.bu_tru_cong_no;$condition$$.tk=$r$$.tk;delete $condition$$.tu_ngay;delete $condition$$.den_ngay;cktk($condition$$,function($error$$,$result$$){if($error$$)return $callback$$($error$$);$r$$[`so_${$ky$$.ma_ky}`]=$result$$.csum("du_co00");$r$$[`so_${$ky$$.ma_ky}_nt`]=$result$$.csum("du_co_nt00");
|
|
33
|
-
$r$$[`so_${$ky$$.ma_ky}`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}`]=0);$r$$[`so_${$ky$$.ma_ky}_nt`]<0&&$r$$.khong_am&&($r$$[`so_${$ky$$.ma_ky}_nt`]=0);$callback$$(null,$r$$)})},($e$$,$rs$$)=>{$c1$$($e$$,$rs$$)});break;case "99":if(!$r$$.script)return $c1$$(null,$r$$);if($r$$.script.indexOf("async ")>=0)return $c1$$("async function is not allow");let $func_string$$=`return (async ()=>{
|
|
34
|
-
try{
|
|
35
|
-
${$r$$.script}
|
|
36
|
-
}catch(e){
|
|
37
|
-
return {error:e}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
})`;$r$$.cong_thuc="";utils.evalute($func_string$$,{row:$r$$,moment,condition:$query$$,user:$req$$.user,_,utils})().then($rs$$=>{if($rs$$&&$rs$$.error)return console.error($rs$$.error,$func_string$$),$c1$$($rs$$.error.message||$rs$$.error.error||$rs$$.error);$c1$$(null,$r$$)}).catch($e$$=>{console.error($e$$,$func_string$$);return $c1$$($e$$.message||$e$$.error||$e$$)});break;default:$c1$$(null,$r$$)}})},function($error$$){if($error$$)return $callback$$($error$$);$error$$=$kys$$.map($k$$=>
|
|
41
|
-
`so_${$k$$.ma_ky},so_${$k$$.ma_ky}_nt`).join(",");utils.calcGrid($report$$,$error$$,async function($data$$){if($_rptform$$.handle_data_expression_server){if($_rptform$$.handle_data_expression_server.indexOf("async ")>=0)return $callback$$("async function is not allow");let $func_string$$=`return (async ()=>{
|
|
42
|
-
try{
|
|
43
|
-
${$_rptform$$.handle_data_expression_server}
|
|
44
|
-
}catch(e){
|
|
45
|
-
return {error:e}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
})`;try{let $rs$$=await utils.evalute($func_string$$,{data:$data$$,moment,numeral,condition:$req$$.query})();if($rs$$){if($rs$$.error)return console.error($rs$$.error,$func_string$$),$callback$$($rs$$.error.message||$rs$$.error);$data$$=$rs$$}}catch($e$$){return console.error($e$$,$func_string$$),$callback$$($e$$.message||$e$$)}}$req$$.query.loai_ky?$callback$$(null,{data:$data$$.filter($r$$=>$r$$.print),columns:$kys$$}):$callback$$(null,$data$$.filter($r$$=>$r$$.print))})})}).catch($e$$=>{$callback$$($e$$||
|
|
49
|
-
"Kh\u00f4ng c\u00f3 m\u1eabu b\u00e1o c\u00e1o n\u00e0o cho b\u00e1o c\u00e1o n\u00e0y")})})};
|
|
1
|
+
function _0x388b(_0x558b89,_0x5a8604){const _0x15507b=_0xad98();return _0x388b=function(_0x3d9173,_0xf49a0e){_0x3d9173=_0x3d9173-0x1a8;let _0xad989b=_0x15507b[_0x3d9173];if(_0x388b['lTPcjx']===undefined){var _0x388bc0=function(_0x1d16b7){const _0x528977='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x314788='',_0x49b033='',_0x4a7ce6=_0x314788+_0x388bc0;for(let _0xe1a054=0x0,_0x5063da,_0x393949,_0x39941e=0x0;_0x393949=_0x1d16b7['charAt'](_0x39941e++);~_0x393949&&(_0x5063da=_0xe1a054%0x4?_0x5063da*0x40+_0x393949:_0x393949,_0xe1a054++%0x4)?_0x314788+=_0x4a7ce6['charCodeAt'](_0x39941e+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x5063da>>(-0x2*_0xe1a054&0x6)):_0xe1a054:0x0){_0x393949=_0x528977['indexOf'](_0x393949);}for(let _0x2cc380=0x0,_0x365cca=_0x314788['length'];_0x2cc380<_0x365cca;_0x2cc380++){_0x49b033+='%'+('00'+_0x314788['charCodeAt'](_0x2cc380)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x49b033);};_0x388b['pJtNlj']=_0x388bc0,_0x558b89=arguments,_0x388b['lTPcjx']=!![];}const _0x5ffc86=_0x15507b[0x0],_0x5f00dc=_0x3d9173+_0x5ffc86,_0x16a5e0=_0x558b89[_0x5f00dc];if(!_0x16a5e0){const _0x1607d3=function(_0x1d7210){this['tGYSQU']=_0x1d7210,this['seJyFu']=[0x1,0x0,0x0],this['QvBfMN']=function(){return'newState';},this['DkMegQ']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['GyXIJq']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1607d3['prototype']['CgGaOy']=function(){const _0x135974=new RegExp(this['DkMegQ']+this['GyXIJq']),_0x1357e8=_0x135974['test'](this['QvBfMN']['toString']())?--this['seJyFu'][0x1]:--this['seJyFu'][0x0];return this['zvRzlQ'](_0x1357e8);},_0x1607d3['prototype']['zvRzlQ']=function(_0xc264da){if(!Boolean(~_0xc264da))return _0xc264da;return this['atThmW'](this['tGYSQU']);},_0x1607d3['prototype']['atThmW']=function(_0x8c337c){for(let _0x231ae=0x0,_0x54bfbe=this['seJyFu']['length'];_0x231ae<_0x54bfbe;_0x231ae++){this['seJyFu']['push'](Math['round'](Math['random']())),_0x54bfbe=this['seJyFu']['length'];}return _0x8c337c(this['seJyFu'][0x0]);},new _0x1607d3(_0x388b)['CgGaOy'](),_0xad989b=_0x388b['pJtNlj'](_0xad989b),_0x558b89[_0x5f00dc]=_0xad989b;}else _0xad989b=_0x16a5e0;return _0xad989b;},_0x388b(_0x558b89,_0x5a8604);}const _0x21a0a8=_0x388b;(function(_0x5bea28,_0x17aad1){const _0x1f80af=_0x388b,_0x1fb6e1=_0x5bea28();while(!![]){try{const _0x374f72=parseInt(_0x1f80af(0x221))/0x1*(-parseInt(_0x1f80af(0x2de))/0x2)+parseInt(_0x1f80af(0x2f3))/0x3*(-parseInt(_0x1f80af(0x28e))/0x4)+-parseInt(_0x1f80af(0x1ce))/0x5*(-parseInt(_0x1f80af(0x1e5))/0x6)+parseInt(_0x1f80af(0x358))/0x7*(parseInt(_0x1f80af(0x307))/0x8)+parseInt(_0x1f80af(0x264))/0x9*(-parseInt(_0x1f80af(0x263))/0xa)+-parseInt(_0x1f80af(0x293))/0xb+parseInt(_0x1f80af(0x1c6))/0xc;if(_0x374f72===_0x17aad1)break;else _0x1fb6e1['push'](_0x1fb6e1['shift']());}catch(_0x29f8c3){_0x1fb6e1['push'](_0x1fb6e1['shift']());}}}(_0xad98,0xbea01));const _0xf49a0e=(function(){const _0x252e91=_0x388b,_0x32e1d5={'HoKVl':function(_0xf2917,_0x21c8c9,_0x348af0){return _0xf2917(_0x21c8c9,_0x348af0);},'nBWbg':function(_0x3b046b,_0x464901){return _0x3b046b!==_0x464901;},'eoknv':'kqltP','glXGk':function(_0x2ca125,_0x4fc1f8,_0x5129f2){return _0x2ca125(_0x4fc1f8,_0x5129f2);},'dUkRB':function(_0xe1c435,_0x5da580){return _0xe1c435===_0x5da580;},'SCPLS':_0x252e91(0x2fc),'TbrvT':_0x252e91(0x2fa)};let _0x4210d4=!![];return function(_0x2029d4,_0x2c6afd){const _0x4218d2=_0x252e91,_0x4753dc={'RSYmB':function(_0x56fc34,_0x4bade1,_0x5bd583){const _0x2fabed=_0x388b;return _0x32e1d5[_0x2fabed(0x2f0)](_0x56fc34,_0x4bade1,_0x5bd583);}};if(_0x32e1d5['dUkRB'](_0x32e1d5[_0x4218d2(0x2d8)],_0x32e1d5[_0x4218d2(0x1d9)]))_0x4753dc[_0x4218d2(0x21e)](_0x2e6eae,_0x3a8d19,_0x1072ee);else{const _0x3d01ea=_0x4210d4?function(){const _0x3a5f1a=_0x4218d2,_0x57ca52={'kvTxg':function(_0xce51a4,_0x2bbf41,_0x58c43a){const _0x432a90=_0x388b;return _0x32e1d5[_0x432a90(0x2a0)](_0xce51a4,_0x2bbf41,_0x58c43a);}};if(_0x32e1d5[_0x3a5f1a(0x301)](_0x3a5f1a(0x1da),_0x32e1d5[_0x3a5f1a(0x231)])){if(_0x2c6afd){const _0x2cbc92=_0x2c6afd[_0x3a5f1a(0x276)](_0x2029d4,arguments);return _0x2c6afd=null,_0x2cbc92;}}else _0x57ca52[_0x3a5f1a(0x1e8)](_0x2033f2,null,_0x4453c8['filter'](_0x16012a=>_0x16012a['print']));}:function(){};return _0x4210d4=![],_0x3d01ea;}};}()),_0x3d9173=_0xf49a0e(this,function(){const _0x21e2d9=_0x388b,_0x2b1177={'kLVfb':'(((.+)+)+)+$'};return _0x3d9173[_0x21e2d9(0x2f5)]()[_0x21e2d9(0x25f)](_0x2b1177[_0x21e2d9(0x207)])[_0x21e2d9(0x2f5)]()[_0x21e2d9(0x325)](_0x3d9173)[_0x21e2d9(0x25f)](_0x2b1177[_0x21e2d9(0x207)]);});_0x3d9173();const cktk=require(_0x21a0a8(0x357)),dktk=require('../../libs/dktk'),kbmpttct=global[_0x21a0a8(0x25c)](_0x21a0a8(0x2aa)),rptform=global['getModel'](_0x21a0a8(0x283)),async=require('async'),_=require(_0x21a0a8(0x275)),utils=require('../../libs/utils'),controller=require(_0x21a0a8(0x25b)),moment=require(_0x21a0a8(0x26c)),numeral=require('numeral'),getRegString=function(_0x5379b9){return _0x5379b9['reg']();},{getCodeChildren}=require(_0x21a0a8(0x24c));module[_0x21a0a8(0x281)]=function(_0x569c8a){const _0x1ff78e=_0x21a0a8,_0x55e53f={'yBivt':function(_0x469319,_0x29ebc6){return _0x469319<_0x29ebc6;},'bONcY':function(_0x2923e8,_0x4e758c){return _0x2923e8<_0x4e758c;},'mhgaI':_0x1ff78e(0x27f),'QsluK':function(_0x18a0a2,_0x4910f0){return _0x18a0a2(_0x4910f0);},'gsAfj':_0x1ff78e(0x314),'WrZXY':_0x1ff78e(0x2a4),'WAuDo':function(_0x4e7746,_0x4b8e1d){return _0x4e7746===_0x4b8e1d;},'CDmEE':function(_0x5c3af7,_0xf4fced,_0x2204fc){return _0x5c3af7(_0xf4fced,_0x2204fc);},'LfEeB':'OYBYw','LnDDZ':_0x1ff78e(0x245),'BDweK':function(_0x48d4da,_0x550a8b){return _0x48d4da(_0x550a8b);},'Pmlqd':function(_0x1424e3,_0x21010f){return _0x1424e3===_0x21010f;},'psgEy':_0x1ff78e(0x1b0),'LYOQU':function(_0x14014d,_0x858768){return _0x14014d<_0x858768;},'zWvYF':function(_0x417a1c,_0x4d04d4){return _0x417a1c(_0x4d04d4);},'DqCIj':function(_0x5a22c1,_0x4d0f43){return _0x5a22c1>_0x4d0f43;},'wgVYS':function(_0x124ea8,_0x43d516){return _0x124ea8+_0x43d516;},'swgyj':'Number','XEwUM':function(_0x5e1e04,_0x19f0e0){return _0x5e1e04(_0x19f0e0);},'wfzZZ':_0x1ff78e(0x320),'kEksR':function(_0xae53a7,_0x3d094f){return _0xae53a7(_0x3d094f);},'uBfXY':function(_0x1afba0,_0x38f696){return _0x1afba0<_0x38f696;},'dBEdT':function(_0x5f06f9,_0x276767){return _0x5f06f9!==_0x276767;},'gCLEL':_0x1ff78e(0x228),'tDGgY':_0x1ff78e(0x1c7),'tdZNN':function(_0x4a21da,_0x28ce9d){return _0x4a21da>_0x28ce9d;},'YbjhU':function(_0x2335c7,_0x172bdd){return _0x2335c7(_0x172bdd);},'wjIfP':'weeks','SJQTM':_0x1ff78e(0x2f9),'hPsMv':function(_0xb631f6,_0x12bbbd){return _0xb631f6(_0x12bbbd);},'bHnBt':function(_0x1d51db,_0x5e31ab){return _0x1d51db(_0x5e31ab);},'PCzwl':_0x1ff78e(0x1c9),'Yridw':function(_0x2974e8,_0x3241e1){return _0x2974e8(_0x3241e1);},'vKvAm':function(_0x3bcd65,_0x1b88dc){return _0x3bcd65<_0x1b88dc;},'DPFbY':function(_0x329f2c,_0x4112be){return _0x329f2c+_0x4112be;},'IsuJR':function(_0x5c68af,_0x3590f3){return _0x5c68af+_0x3590f3;},'ZEZlH':function(_0xe4a8bc,_0x2810d2){return _0xe4a8bc+_0x2810d2;},'wSUCh':function(_0x7a0a15,_0x2ae118){return _0x7a0a15(_0x2ae118);},'Vtlgb':function(_0x11e345,_0x301627){return _0x11e345(_0x301627);},'RURsr':_0x1ff78e(0x356),'cFNwK':_0x1ff78e(0x29e),'xREqq':_0x1ff78e(0x22e),'gXAIg':function(_0x209d23,_0x121a16){return _0x209d23(_0x121a16);},'XyREf':_0x1ff78e(0x1b7),'vZhlV':function(_0x12cc8b,_0xeee5bc){return _0x12cc8b(_0xeee5bc);},'vHaAV':function(_0x49ab78,_0x298776){return _0x49ab78(_0x298776);},'dzMPh':_0x1ff78e(0x27c),'PaEBY':_0x1ff78e(0x255),'JeWTz':_0x1ff78e(0x2e2),'IlxoZ':_0x1ff78e(0x286),'abwaH':function(_0x123c0e,_0x2d202e){return _0x123c0e>_0x2d202e;},'OKswY':function(_0x2218e3,_0x260072){return _0x2218e3-_0x260072;},'bPlKY':_0x1ff78e(0x260),'qBZfi':function(_0x1f229d,_0x2507dc){return _0x1f229d!==_0x2507dc;},'GzYVj':_0x1ff78e(0x1dd),'ExfJX':_0x1ff78e(0x34d),'UdzOg':function(_0x5b77a0,_0x37a677){return _0x5b77a0(_0x37a677);},'VMxcJ':function(_0x42a2b9){return _0x42a2b9();},'ReRIx':_0x1ff78e(0x272),'ydLNg':function(_0x41985e,_0x5ab275){return _0x41985e<_0x5ab275;},'iNkAi':function(_0x15be6f,_0xfd5ac0,_0x1366e8){return _0x15be6f(_0xfd5ac0,_0x1366e8);},'JPRhV':_0x1ff78e(0x302),'qWAxM':_0x1ff78e(0x2ad),'Pcwjn':_0x1ff78e(0x2ef),'HvWIS':_0x1ff78e(0x2ae),'JqRJf':_0x1ff78e(0x1ea),'QphTt':function(_0x497a04){return _0x497a04();},'VtfzG':function(_0x5f0624,_0x116f12,_0x341a29){return _0x5f0624(_0x116f12,_0x341a29);},'HHonN':function(_0x2bf8f9,_0x292a50){return _0x2bf8f9<_0x292a50;},'hrWel':_0x1ff78e(0x1d5),'ZXTNX':_0x1ff78e(0x22d),'uRHQl':_0x1ff78e(0x2c1),'qfkYq':_0x1ff78e(0x2b0),'ZNekO':function(_0x1cee44,_0x1dad01){return _0x1cee44>=_0x1dad01;},'XHRna':function(_0xdca2da,_0x553af5){return _0xdca2da(_0x553af5);},'RUkUK':_0x1ff78e(0x253),'BQcSf':function(_0x5b11e6,_0x3c5ef7,_0x3181da,_0x13b4bc,_0x433aee,_0x496868){return _0x5b11e6(_0x3c5ef7,_0x3181da,_0x13b4bc,_0x433aee,_0x496868);},'pdlDN':_0x1ff78e(0x33a),'snRSd':_0x1ff78e(0x2f1),'etFMI':'ma_bp_me','Vldli':_0x1ff78e(0x273),'lUqcW':_0x1ff78e(0x2c4),'eRLIE':_0x1ff78e(0x29b),'JPtKw':_0x1ff78e(0x216)};new controller(_0x569c8a,_0x1ff78e(0x311),async function(_0x5924ce,_0x44724d){const _0x17ecc9=_0x1ff78e,_0x40d0e6={'yvmUX':function(_0x24c646,_0x2e725b){return _0x24c646||_0x2e725b;},'fRdNv':function(_0x41fe1a,_0x25f61e){const _0x5da55b=_0x388b;return _0x55e53f[_0x5da55b(0x348)](_0x41fe1a,_0x25f61e);},'qsJra':function(_0x108b76){const _0x3184f=_0x388b;return _0x55e53f[_0x3184f(0x2c7)](_0x108b76);},'tWbvG':_0x55e53f[_0x17ecc9(0x1f8)],'xxyPr':function(_0x125ee5,_0x11bd23){const _0x522fba=_0x17ecc9;return _0x55e53f[_0x522fba(0x250)](_0x125ee5,_0x11bd23);},'UQKKp':_0x55e53f['mhgaI'],'tDKck':function(_0x3595e4,_0x5e98be,_0x5daef6){const _0x4bd018=_0x17ecc9;return _0x55e53f[_0x4bd018(0x1d0)](_0x3595e4,_0x5e98be,_0x5daef6);},'rRJRr':_0x55e53f[_0x17ecc9(0x1be)],'WfhqG':_0x17ecc9(0x31e),'EFmdP':_0x55e53f[_0x17ecc9(0x2a1)],'ylRno':_0x55e53f[_0x17ecc9(0x279)],'JxirZ':_0x55e53f[_0x17ecc9(0x1b8)],'DmvYb':function(_0x57d623,_0x419813){return _0x57d623+_0x419813;},'EXBAU':_0x55e53f[_0x17ecc9(0x22c)],'YTkQc':_0x55e53f[_0x17ecc9(0x27d)],'fTSXW':function(_0x8c7678){const _0x579cf4=_0x17ecc9;return _0x55e53f[_0x579cf4(0x30b)](_0x8c7678);},'MFtGI':_0x17ecc9(0x211),'PWujK':'(((.+)+)+)+$','FPNRs':function(_0x19455e,_0x44e86e,_0x4ff0ed){const _0x213597=_0x17ecc9;return _0x55e53f[_0x213597(0x2a6)](_0x19455e,_0x44e86e,_0x4ff0ed);},'BGrGt':_0x55e53f[_0x17ecc9(0x2e9)],'PxcEu':function(_0x491e83,_0x28ba5d){const _0x3354fb=_0x17ecc9;return _0x55e53f[_0x3354fb(0x32d)](_0x491e83,_0x28ba5d);},'VLqrR':_0x55e53f[_0x17ecc9(0x233)],'Ymrue':function(_0x31c917,_0x2375f2){return _0x55e53f['HHonN'](_0x31c917,_0x2375f2);},'vTwDw':_0x55e53f[_0x17ecc9(0x2d2)],'OlEei':_0x55e53f[_0x17ecc9(0x1e6)],'NFzvy':_0x55e53f[_0x17ecc9(0x24b)],'inGif':_0x17ecc9(0x271),'QvAeA':_0x17ecc9(0x27b),'ZoOjN':function(_0x20e080,_0x3efba3,_0x18d29f){const _0x4f1665=_0x17ecc9;return _0x55e53f[_0x4f1665(0x220)](_0x20e080,_0x3efba3,_0x18d29f);},'WOqRK':_0x17ecc9(0x291),'KCqRN':_0x55e53f['qfkYq'],'TDIyA':'HZtuz','RzLdn':function(_0x4e7376,_0x35e916){const _0x1fb546=_0x17ecc9;return _0x55e53f[_0x1fb546(0x2be)](_0x4e7376,_0x35e916);},'MPXLJ':_0x17ecc9(0x2c3)};let _0x1986f2=_0x5924ce[_0x17ecc9(0x1e9)];if(!_0x1986f2[_0x17ecc9(0x265)]||!_0x1986f2[_0x17ecc9(0x317)]||!_0x1986f2[_0x17ecc9(0x338)])return _0x55e53f[_0x17ecc9(0x2df)](_0x44724d,_0x55e53f[_0x17ecc9(0x297)]);if(!global[_0x17ecc9(0x294)][_0x17ecc9(0x2b8)]['ObjectId'][_0x17ecc9(0x2c6)](_0x1986f2[_0x17ecc9(0x338)]))return _0x55e53f['wSUCh'](_0x44724d,_0x17ecc9(0x35b));if(_0x1986f2['ma_bp']){let _0x2a2218=await _0x55e53f[_0x17ecc9(0x1b6)](getCodeChildren,global[_0x17ecc9(0x25c)](_0x55e53f['pdlDN']),_0x1986f2[_0x17ecc9(0x2a8)],_0x1986f2[_0x17ecc9(0x2f1)],_0x55e53f['snRSd'],_0x55e53f[_0x17ecc9(0x347)]);_0x1986f2['ma_bp']={'$in':_0x2a2218};}if(_0x1986f2[_0x17ecc9(0x2ef)]){let _0x1a9e72=await _0x55e53f[_0x17ecc9(0x1b6)](getCodeChildren,global[_0x17ecc9(0x25c)](_0x55e53f[_0x17ecc9(0x279)]),_0x1986f2[_0x17ecc9(0x2a8)],_0x1986f2[_0x17ecc9(0x2ef)],_0x55e53f[_0x17ecc9(0x1b8)],_0x55e53f[_0x17ecc9(0x243)]);_0x1986f2[_0x17ecc9(0x2ef)]={'$in':_0x1a9e72};}if(_0x1986f2['ma_dt']){let _0x574284=await getCodeChildren(global[_0x17ecc9(0x25c)](_0x55e53f[_0x17ecc9(0x1ca)]),_0x1986f2['id_app'],_0x1986f2[_0x17ecc9(0x29b)],_0x55e53f[_0x17ecc9(0x2b6)],_0x55e53f[_0x17ecc9(0x21d)]);_0x1986f2[_0x17ecc9(0x29b)]={'$in':_0x574284};}new Promise((_0xfdcc91,_0x5b21fd)=>{const _0x43c2c6=_0x17ecc9,_0x190f87={'gbTLF':function(_0x3a0c78,_0x23b157){const _0x20b49e=_0x388b;return _0x40d0e6[_0x20b49e(0x1fa)](_0x3a0c78,_0x23b157);},'YgpQc':function(_0x3fa8eb,_0x45d77f){return _0x3fa8eb(_0x45d77f);}};rptform[_0x43c2c6(0x214)]({'_id':_0x1986f2[_0x43c2c6(0x338)],'id_app':_0x1986f2['id_app']})[_0x43c2c6(0x343)]()[_0x43c2c6(0x319)]((_0x1d2bc1,_0x44a50e)=>{const _0x147072=_0x43c2c6;if(_0x190f87[_0x147072(0x322)](_0x1d2bc1,!_0x44a50e))return _0x5b21fd(_0x1d2bc1);_0x190f87[_0x147072(0x2cd)](_0xfdcc91,_0x44a50e);});})[_0x17ecc9(0x21b)](async _0x368d9e=>{const _0x452dfb=_0x17ecc9,_0x54bace={'jlMuo':function(_0x308b49,_0x2ac9bf){return _0x308b49(_0x2ac9bf);},'MgIFi':'5|3|1|0|2|4','PaVtC':function(_0x3af573,_0x1ef332){return _0x55e53f['yBivt'](_0x3af573,_0x1ef332);},'MgmYw':_0x452dfb(0x302),'SapkO':function(_0x4d6466,_0x51a5ab){const _0xd8e0c3=_0x452dfb;return _0x55e53f[_0xd8e0c3(0x2a9)](_0x4d6466,_0x51a5ab);},'KEuDa':_0x55e53f[_0x452dfb(0x215)],'eUBuH':function(_0x5ad593,_0x43accd){const _0x423265=_0x452dfb;return _0x55e53f[_0x423265(0x2b3)](_0x5ad593,_0x43accd);},'OsPMp':_0x55e53f[_0x452dfb(0x1be)],'NoXcS':function(_0x1fa931,_0x46ee94,_0x420a0f){return _0x1fa931(_0x46ee94,_0x420a0f);},'eJZmy':function(_0x36fca7,_0x3c79e8){const _0x3985d7=_0x452dfb;return _0x55e53f[_0x3985d7(0x2b3)](_0x36fca7,_0x3c79e8);},'ROXJv':function(_0x5075aa,_0x466035){return _0x5075aa!==_0x466035;},'lZuKX':_0x452dfb(0x308),'gTqGO':_0x55e53f[_0x452dfb(0x21c)],'cVSrX':function(_0x5e9256,_0x26482b){const _0x4b158a=_0x452dfb;return _0x55e53f[_0x4b158a(0x26f)](_0x5e9256,_0x26482b);},'QHDWF':function(_0x40a5da,_0x349982){const _0x184edf=_0x452dfb;return _0x55e53f[_0x184edf(0x2b3)](_0x40a5da,_0x349982);},'eJOdm':function(_0x392200,_0x248529,_0x3ded1e){const _0x1507e8=_0x452dfb;return _0x55e53f[_0x1507e8(0x220)](_0x392200,_0x248529,_0x3ded1e);},'eiypw':_0x55e53f[_0x452dfb(0x24f)],'MiybA':function(_0x36da1e,_0x899e2c){return _0x36da1e(_0x899e2c);}};_0x1986f2[_0x452dfb(0x317)]=_0x55e53f[_0x452dfb(0x2b3)](moment,new Date(_0x1986f2[_0x452dfb(0x317)]))[_0x452dfb(0x304)](_0x55e53f[_0x452dfb(0x30e)])['toDate'](),_0x1986f2[_0x452dfb(0x265)]=_0x55e53f[_0x452dfb(0x1c0)](moment,new Date(_0x1986f2[_0x452dfb(0x265)]))['endOf']('date')[_0x452dfb(0x26a)]();let _0x29adbe=_0x368d9e[_0x452dfb(0x1b3)];if(!_0x29adbe||_0x55e53f[_0x452dfb(0x235)](_0x368d9e['report'][_0x452dfb(0x2da)],0x0))_0x29adbe=await kbmpttct[_0x452dfb(0x310)]({'id_rptform':_0x368d9e[_0x452dfb(0x35a)][_0x452dfb(0x2f5)](),'id_app':_0x1986f2[_0x452dfb(0x2a8)]})[_0x452dfb(0x345)]({'stt':0x1})[_0x452dfb(0x343)]();let _0x70624a=[];switch(_0x1986f2[_0x452dfb(0x2ec)]){case _0x55e53f[_0x452dfb(0x22a)]:{let _0x250fe2=_0x55e53f['QsluK'](moment,_0x1986f2['tu_ngay'])[_0x452dfb(0x304)](_0x55e53f['LnDDZ'])[_0x452dfb(0x26a)]();while(_0x55e53f[_0x452dfb(0x226)](_0x250fe2[_0x452dfb(0x251)](),_0x1986f2['den_ngay'][_0x452dfb(0x251)]())){let _0x4f9445=_0x55e53f['zWvYF'](moment,_0x250fe2)['endOf'](_0x55e53f['LnDDZ'])[_0x452dfb(0x26a)]();_0x55e53f[_0x452dfb(0x27a)](_0x4f9445[_0x452dfb(0x251)](),_0x1986f2[_0x452dfb(0x265)][_0x452dfb(0x251)]())&&(_0x4f9445=_0x1986f2[_0x452dfb(0x265)]),_0x70624a[_0x452dfb(0x289)]({'field':_0x452dfb(0x1c5)+_0x250fe2[_0x452dfb(0x25a)]()+'-'+(_0x250fe2[_0x452dfb(0x288)]()+0x1)+'-'+_0x250fe2[_0x452dfb(0x32b)](),'header':_0x250fe2[_0x452dfb(0x25a)]()+'/'+_0x55e53f[_0x452dfb(0x316)](_0x250fe2[_0x452dfb(0x288)](),0x1)+'/'+_0x250fe2[_0x452dfb(0x32b)](),'datatype':_0x55e53f[_0x452dfb(0x233)],'ma_ky':_0x250fe2['getDate']()+'-'+_0x55e53f['wgVYS'](_0x250fe2[_0x452dfb(0x288)](),0x1)+'-'+_0x250fe2['getFullYear'](),'ten_ky':_0x250fe2['getDate']()+'/'+(_0x250fe2[_0x452dfb(0x288)]()+0x1)+'/'+_0x250fe2[_0x452dfb(0x32b)](),'tu_ngay':_0x250fe2,'den_ngay':_0x4f9445}),_0x250fe2=moment(_0x4f9445)[_0x452dfb(0x22f)](0x1,_0x452dfb(0x2f9))['startOf'](_0x452dfb(0x245))[_0x452dfb(0x26a)]();}_0x70624a[_0x452dfb(0x289)]({'ma_ky':'tong_cong','ten_ky':_0x452dfb(0x25e),'datatype':_0x452dfb(0x2cf),'tu_ngay':_0x55e53f[_0x452dfb(0x26e)](moment,_0x1986f2[_0x452dfb(0x317)])[_0x452dfb(0x304)](_0x452dfb(0x245))[_0x452dfb(0x26a)](),'den_ngay':_0x55e53f[_0x452dfb(0x241)](moment,_0x1986f2[_0x452dfb(0x265)])[_0x452dfb(0x1b9)](_0x55e53f[_0x452dfb(0x30e)])['toDate']()});break;}case _0x55e53f[_0x452dfb(0x287)]:{let _0xa2fbd1=_0x55e53f[_0x452dfb(0x30f)](moment,_0x1986f2[_0x452dfb(0x317)])[_0x452dfb(0x304)](_0x55e53f['LnDDZ'])['toDate']();while(_0x55e53f['uBfXY'](_0xa2fbd1[_0x452dfb(0x251)](),_0x1986f2[_0x452dfb(0x265)][_0x452dfb(0x251)]())){if(_0x55e53f[_0x452dfb(0x1f3)](_0x55e53f[_0x452dfb(0x1db)],_0x452dfb(0x330))){let _0x2f79c1=_0x55e53f[_0x452dfb(0x1c0)](moment,_0xa2fbd1)['endOf'](_0x55e53f['tDGgY'])['toDate']();_0x55e53f[_0x452dfb(0x261)](_0x2f79c1[_0x452dfb(0x251)](),_0x1986f2[_0x452dfb(0x265)][_0x452dfb(0x251)]())&&(_0x2f79c1=_0x1986f2['den_ngay']),_0x70624a[_0x452dfb(0x289)]({'field':_0x452dfb(0x1c5)+_0x55e53f[_0x452dfb(0x26e)](moment,_0xa2fbd1)[_0x452dfb(0x268)]('weeks')+'-'+_0xa2fbd1[_0x452dfb(0x32b)](),'header':'Tuần\x20'+_0x55e53f[_0x452dfb(0x277)](moment,_0xa2fbd1)[_0x452dfb(0x268)](_0x452dfb(0x33d))+'/'+_0xa2fbd1[_0x452dfb(0x32b)](),'ma_ky':_0x55e53f[_0x452dfb(0x26e)](moment,_0xa2fbd1)[_0x452dfb(0x268)](_0x55e53f[_0x452dfb(0x219)])+'-'+_0xa2fbd1[_0x452dfb(0x32b)](),'ten_ky':'Tuần\x20'+_0x55e53f[_0x452dfb(0x241)](moment,_0xa2fbd1)[_0x452dfb(0x268)](_0x55e53f[_0x452dfb(0x219)])+'/'+_0xa2fbd1['getFullYear'](),'tu_ngay':_0xa2fbd1,'den_ngay':_0x2f79c1}),_0xa2fbd1=_0x55e53f[_0x452dfb(0x277)](moment,_0x2f79c1)[_0x452dfb(0x22f)](0x1,_0x55e53f[_0x452dfb(0x2d4)])['startOf']('date')[_0x452dfb(0x26a)]();}else return _0xbb375a[_0x452dfb(0x1c4)](_0x523f4d,_0x3a99cf),_0x40d0e6[_0x452dfb(0x259)](_0x45c8a7,_0x321b73[_0x452dfb(0x1d1)]||_0xaff9fe);}_0x70624a[_0x452dfb(0x289)]({'ma_ky':_0x452dfb(0x24e),'ten_ky':'Tổng\x20cộng','datatype':_0x452dfb(0x2cf),'tu_ngay':_0x55e53f[_0x452dfb(0x2ca)](moment,_0x1986f2[_0x452dfb(0x317)])[_0x452dfb(0x304)](_0x55e53f[_0x452dfb(0x30e)])[_0x452dfb(0x26a)](),'den_ngay':_0x55e53f[_0x452dfb(0x2dd)](moment,_0x1986f2[_0x452dfb(0x265)])['endOf'](_0x452dfb(0x245))[_0x452dfb(0x26a)]()});break;}case _0x55e53f[_0x452dfb(0x2a7)]:{let _0x7f3831=_0x55e53f['Yridw'](moment,_0x1986f2[_0x452dfb(0x317)])[_0x452dfb(0x304)](_0x55e53f['LnDDZ'])[_0x452dfb(0x26a)]();while(_0x55e53f[_0x452dfb(0x2bd)](_0x7f3831[_0x452dfb(0x251)](),_0x1986f2[_0x452dfb(0x265)]['getTime']())){let _0x395e2b=_0x55e53f[_0x452dfb(0x26e)](moment,_0x7f3831)[_0x452dfb(0x1b9)](_0x452dfb(0x2c2))[_0x452dfb(0x26a)]();_0x55e53f[_0x452dfb(0x27a)](_0x395e2b[_0x452dfb(0x251)](),_0x1986f2[_0x452dfb(0x265)][_0x452dfb(0x251)]())&&(_0x395e2b=_0x1986f2[_0x452dfb(0x265)]),_0x70624a['push']({'field':_0x452dfb(0x1c5)+_0x55e53f[_0x452dfb(0x238)](_0x7f3831['getMonth'](),0x1)+'-'+_0x7f3831['getFullYear'](),'header':_0x452dfb(0x1b4)+_0x55e53f[_0x452dfb(0x316)](_0x7f3831[_0x452dfb(0x288)](),0x1)+'/'+_0x7f3831[_0x452dfb(0x32b)](),'datatype':_0x452dfb(0x2cf),'ma_ky':_0x55e53f['IsuJR'](_0x7f3831[_0x452dfb(0x288)](),0x1)+'-'+_0x7f3831['getFullYear'](),'ten_ky':_0x452dfb(0x1b4)+_0x55e53f[_0x452dfb(0x329)](_0x7f3831[_0x452dfb(0x288)](),0x1)+'/'+_0x7f3831[_0x452dfb(0x32b)](),'tu_ngay':_0x7f3831,'den_ngay':_0x395e2b}),_0x7f3831=moment(_0x395e2b)[_0x452dfb(0x22f)](0x1,_0x452dfb(0x2f9))[_0x452dfb(0x304)](_0x55e53f[_0x452dfb(0x30e)])[_0x452dfb(0x26a)]();}_0x70624a[_0x452dfb(0x289)]({'ma_ky':'tong_cong','ten_ky':_0x452dfb(0x25e),'datatype':_0x55e53f[_0x452dfb(0x233)],'tu_ngay':_0x55e53f[_0x452dfb(0x305)](moment,_0x1986f2[_0x452dfb(0x317)])[_0x452dfb(0x304)](_0x452dfb(0x245))[_0x452dfb(0x26a)](),'den_ngay':_0x55e53f[_0x452dfb(0x1a9)](moment,_0x1986f2[_0x452dfb(0x265)])[_0x452dfb(0x1b9)](_0x55e53f[_0x452dfb(0x30e)])['toDate']()});break;}case _0x55e53f['RURsr']:{if(_0x55e53f[_0x452dfb(0x252)]!==_0x55e53f[_0x452dfb(0x20c)]){let _0x3a64cc=_0x55e53f[_0x452dfb(0x1bd)](moment,_0x1986f2['tu_ngay'])[_0x452dfb(0x304)](_0x55e53f['LnDDZ'])[_0x452dfb(0x26a)]();while(_0x55e53f[_0x452dfb(0x2a9)](_0x3a64cc[_0x452dfb(0x251)](),_0x1986f2[_0x452dfb(0x265)][_0x452dfb(0x251)]())){let _0x2d001c=_0x55e53f[_0x452dfb(0x32d)](moment,_0x3a64cc)[_0x452dfb(0x1b9)]('quarters')['toDate']();_0x55e53f['DqCIj'](_0x2d001c[_0x452dfb(0x251)](),_0x1986f2['den_ngay']['getTime']())&&(_0x2d001c=_0x1986f2['den_ngay']),_0x70624a[_0x452dfb(0x289)]({'field':_0x452dfb(0x1c5)+_0x55e53f['hPsMv'](moment,_0x3a64cc)[_0x452dfb(0x268)](_0x55e53f[_0x452dfb(0x2e9)])+'-'+_0x3a64cc[_0x452dfb(0x32b)](),'header':_0x55e53f[_0x452dfb(0x2d1)](moment,_0x3a64cc)[_0x452dfb(0x268)](_0x452dfb(0x1b7))+'/'+_0x3a64cc[_0x452dfb(0x32b)](),'datatype':_0x55e53f['swgyj'],'ma_ky':_0x55e53f[_0x452dfb(0x277)](moment,_0x3a64cc)[_0x452dfb(0x268)](_0x55e53f[_0x452dfb(0x2e9)])+'-'+_0x3a64cc[_0x452dfb(0x32b)](),'ten_ky':_0x55e53f[_0x452dfb(0x2bf)](moment,_0x3a64cc)[_0x452dfb(0x268)](_0x55e53f[_0x452dfb(0x2e9)])+'/'+_0x3a64cc[_0x452dfb(0x32b)](),'tu_ngay':_0x3a64cc,'den_ngay':_0x2d001c}),_0x3a64cc=_0x55e53f[_0x452dfb(0x2dd)](moment,_0x2d001c)[_0x452dfb(0x22f)](0x1,_0x55e53f[_0x452dfb(0x2d4)])['startOf'](_0x55e53f[_0x452dfb(0x30e)])[_0x452dfb(0x26a)]();}_0x70624a[_0x452dfb(0x289)]({'ma_ky':'tong_cong','ten_ky':_0x452dfb(0x25e),'datatype':'Number','tu_ngay':moment(_0x1986f2[_0x452dfb(0x317)])['startOf'](_0x452dfb(0x245))[_0x452dfb(0x26a)](),'den_ngay':_0x55e53f[_0x452dfb(0x30f)](moment,_0x1986f2[_0x452dfb(0x265)])['endOf'](_0x55e53f[_0x452dfb(0x30e)])[_0x452dfb(0x26a)]()});break;}else return _0x47a0bf[_0x452dfb(0x1c4)](_0x58a385[_0x452dfb(0x1c4)],_0x3bf226),_0x54bace[_0x452dfb(0x2d3)](_0x79da4f,_0x50ea63[_0x452dfb(0x1c4)][_0x452dfb(0x1d1)]||_0x50534c['error']);}case _0x55e53f[_0x452dfb(0x24d)]:{if(_0x55e53f[_0x452dfb(0x1f3)](_0x55e53f[_0x452dfb(0x267)],_0x55e53f[_0x452dfb(0x349)])){let _0x417db=moment(_0x1986f2[_0x452dfb(0x317)])[_0x452dfb(0x304)]('date')[_0x452dfb(0x26a)]();while(_0x417db[_0x452dfb(0x251)]()<_0x1986f2[_0x452dfb(0x265)]['getTime']()){let _0x53ed37=moment(_0x417db)[_0x452dfb(0x1b9)](_0x55e53f[_0x452dfb(0x298)])['toDate']();_0x55e53f[_0x452dfb(0x2bc)](_0x53ed37[_0x452dfb(0x251)](),_0x1986f2[_0x452dfb(0x265)]['getTime']())&&(_0x53ed37=_0x1986f2[_0x452dfb(0x265)]),_0x70624a[_0x452dfb(0x289)]({'field':_0x452dfb(0x1c5)+_0x417db[_0x452dfb(0x32b)](),'header':''+_0x417db[_0x452dfb(0x32b)](),'ma_ky':''+_0x417db[_0x452dfb(0x32b)](),'ten_ky':''+_0x417db[_0x452dfb(0x32b)](),'tu_ngay':_0x417db,'den_ngay':_0x53ed37}),_0x417db=_0x55e53f[_0x452dfb(0x241)](moment,_0x53ed37)[_0x452dfb(0x22f)](0x1,'days')[_0x452dfb(0x304)](_0x55e53f[_0x452dfb(0x30e)])[_0x452dfb(0x26a)]();}_0x70624a[_0x452dfb(0x289)]({'ma_ky':_0x452dfb(0x24e),'ten_ky':_0x452dfb(0x25e),'datatype':_0x55e53f['swgyj'],'tu_ngay':_0x55e53f[_0x452dfb(0x2d1)](moment,_0x1986f2[_0x452dfb(0x317)])['startOf'](_0x55e53f[_0x452dfb(0x30e)])[_0x452dfb(0x26a)](),'den_ngay':moment(_0x1986f2[_0x452dfb(0x265)])['endOf'](_0x55e53f[_0x452dfb(0x30e)])[_0x452dfb(0x26a)]()});break;}else{const _0x4b6e34=_0x54bace['MgIFi'][_0x452dfb(0x270)]('|');let _0x4982b8=0x0;while(!![]){switch(_0x4b6e34[_0x4982b8++]){case'0':_0x54bace[_0x452dfb(0x239)](_0x3d9198[_0x452dfb(0x1c5)+_0x20dea5[_0x452dfb(0x31a)]],0x0)&&_0x5dea6c[_0x452dfb(0x332)]&&(_0x54e093[_0x452dfb(0x1c5)+_0x4a8b5a[_0x452dfb(0x31a)]]=0x0);continue;case'1':_0x326461[_0x452dfb(0x1c5)+_0x1cdd0f[_0x452dfb(0x31a)]+_0x452dfb(0x1f4)]=_0x58fbda[_0x452dfb(0x234)](_0x54bace[_0x452dfb(0x1af)]);continue;case'2':_0x54bace['SapkO'](_0x5b6b9e[_0x452dfb(0x1c5)+_0x277330[_0x452dfb(0x31a)]+'_nt'],0x0)&&_0x5db801[_0x452dfb(0x332)]&&(_0x308312[_0x452dfb(0x1c5)+_0x2d8985[_0x452dfb(0x31a)]+_0x452dfb(0x1f4)]=0x0);continue;case'3':_0x3e5d48[_0x452dfb(0x1c5)+_0x1651eb[_0x452dfb(0x31a)]]=_0x304a74[_0x452dfb(0x234)](_0x54bace['KEuDa']);continue;case'4':_0x438f86(null,_0x413104);continue;case'5':if(_0x2dad80)return _0x18829b(_0x25634b);continue;}break;}}}case'kn':{_0x70624a=[{'field':_0x452dfb(0x27e),'header':_0x452dfb(0x2cb),'datatype':_0x55e53f[_0x452dfb(0x233)],'ma_ky':'kn','ten_ky':_0x452dfb(0x2cb),'tu_ngay':_0x1986f2[_0x452dfb(0x317)],'den_ngay':_0x1986f2[_0x452dfb(0x265)]}];break;}default:{_0x1986f2[_0x452dfb(0x28a)]=new Date(_0x1986f2[_0x452dfb(0x317)]),_0x1986f2[_0x452dfb(0x28a)][_0x452dfb(0x2eb)](_0x55e53f[_0x452dfb(0x340)](_0x1986f2[_0x452dfb(0x28a)]['getFullYear'](),0x1)),_0x1986f2[_0x452dfb(0x1ad)]=new Date(_0x1986f2['den_ngay']),_0x1986f2['den_ngay_kt'][_0x452dfb(0x2eb)](_0x1986f2[_0x452dfb(0x1ad)][_0x452dfb(0x32b)]()-0x1),_0x70624a=[{'field':_0x452dfb(0x321),'header':_0x452dfb(0x359),'datatype':_0x55e53f[_0x452dfb(0x233)],'ma_ky':'kt','ten_ky':_0x452dfb(0x359),'tu_ngay':_0x1986f2[_0x452dfb(0x28a)],'den_ngay':_0x1986f2[_0x452dfb(0x1ad)]},{'field':'so_kn','header':_0x452dfb(0x260),'datatype':_0x55e53f[_0x452dfb(0x233)],'ma_ky':'kn','ten_ky':_0x55e53f[_0x452dfb(0x258)],'tu_ngay':_0x1986f2[_0x452dfb(0x317)],'den_ngay':_0x1986f2[_0x452dfb(0x265)]}];}}async[_0x452dfb(0x222)](_0x29adbe,(_0x337f01,_0x5762bc)=>{const _0x1763c5=_0x452dfb,_0x20ae82={'Rpbnf':function(_0x46e3b6){const _0xffd744=_0x388b;return _0x40d0e6[_0xffd744(0x2ea)](_0x46e3b6);},'zMRbF':function(_0x58fc0e,_0x527965){return _0x58fc0e!==_0x527965;},'Gmpda':_0x40d0e6['tWbvG'],'KPsrl':function(_0x364ced,_0x3e4067){const _0x1bcc92=_0x388b;return _0x40d0e6[_0x1bcc92(0x242)](_0x364ced,_0x3e4067);},'UKLnF':_0x40d0e6[_0x1763c5(0x1ef)],'HNpsD':function(_0x4755d7,_0x40a1dc,_0x4a5a6e){const _0x25b762=_0x1763c5;return _0x40d0e6[_0x25b762(0x290)](_0x4755d7,_0x40a1dc,_0x4a5a6e);},'cdSRW':_0x1763c5(0x247),'ndaeq':_0x40d0e6[_0x1763c5(0x1b1)],'BnFnU':_0x40d0e6[_0x1763c5(0x303)],'tUaFs':_0x40d0e6[_0x1763c5(0x2b5)],'vwrzc':function(_0x2e19ce,_0x4b7c99){return _0x2e19ce===_0x4b7c99;},'AzjyH':_0x1763c5(0x1b5),'Wdqkx':_0x40d0e6['ylRno'],'woddq':_0x40d0e6['JxirZ'],'AhEkA':_0x1763c5(0x273),'BwYIR':function(_0x37405e,_0x3342c5){return _0x40d0e6['fRdNv'](_0x37405e,_0x3342c5);},'SAkHu':_0x1763c5(0x2e7),'oOKfG':function(_0x40fcc6,_0x20cbd9){const _0xaa8d5e=_0x1763c5;return _0x40d0e6[_0xaa8d5e(0x1cb)](_0x40fcc6,_0x20cbd9);},'NXvle':_0x40d0e6[_0x1763c5(0x31c)],'joXBy':_0x40d0e6[_0x1763c5(0x23a)],'OoFaP':function(_0x36964d){const _0x5ecd6b=_0x1763c5;return _0x40d0e6[_0x5ecd6b(0x1fb)](_0x36964d);},'UYBxz':_0x40d0e6[_0x1763c5(0x339)],'IgONc':function(_0x4a7c50,_0x568c7f,_0x24f9b6){return _0x4a7c50(_0x568c7f,_0x24f9b6);},'oQYnb':_0x40d0e6[_0x1763c5(0x266)],'uCJTy':function(_0x521ee7,_0x358f0b,_0x9dd407){const _0x5198f7=_0x1763c5;return _0x40d0e6[_0x5198f7(0x1e4)](_0x521ee7,_0x358f0b,_0x9dd407);},'bqQpL':function(_0x4ab555,_0x23472b){return _0x4ab555(_0x23472b);},'lPxhX':_0x40d0e6[_0x1763c5(0x1e1)],'MTMQt':function(_0x524e04,_0x4a9854){const _0x155e81=_0x1763c5;return _0x40d0e6[_0x155e81(0x1dc)](_0x524e04,_0x4a9854);},'tCjPT':_0x40d0e6['VLqrR'],'nLQtN':function(_0x51f17b,_0x26f209,_0x26299b){const _0x2c5850=_0x1763c5;return _0x40d0e6[_0x2c5850(0x290)](_0x51f17b,_0x26f209,_0x26299b);},'BdQaa':function(_0x2c4c87,_0x20a6fb){return _0x40d0e6['Ymrue'](_0x2c4c87,_0x20a6fb);},'JXSir':_0x1763c5(0x2ff),'JLQeN':function(_0x4cd477,_0x17880e){const _0x510fb0=_0x1763c5;return _0x40d0e6[_0x510fb0(0x259)](_0x4cd477,_0x17880e);},'lSzpr':_0x40d0e6[_0x1763c5(0x1e3)],'AsBtr':_0x40d0e6['OlEei'],'TFUcE':function(_0x3246a9,_0x5c4c90,_0xaabcb9){const _0x1854ae=_0x1763c5;return _0x40d0e6[_0x1854ae(0x290)](_0x3246a9,_0x5c4c90,_0xaabcb9);},'puQbP':_0x40d0e6['NFzvy'],'ONiYu':function(_0x308865,_0x23e00e,_0x838aa7){return _0x308865(_0x23e00e,_0x838aa7);},'uDKqm':function(_0x2f65f0,_0x269806,_0x45c2aa){return _0x2f65f0(_0x269806,_0x45c2aa);},'xTrWk':function(_0x35c387,_0x522161,_0x105a7f){const _0x2deb09=_0x1763c5;return _0x40d0e6[_0x2deb09(0x1e4)](_0x35c387,_0x522161,_0x105a7f);},'SGkAK':function(_0x219b0f,_0x521d38){return _0x40d0e6['yvmUX'](_0x219b0f,_0x521d38);},'wogvF':_0x40d0e6[_0x1763c5(0x237)],'CzXlj':_0x40d0e6[_0x1763c5(0x1d2)],'uUPcd':function(_0x5d17d8,_0x2b11d5,_0x2d23ef){return _0x40d0e6['ZoOjN'](_0x5d17d8,_0x2b11d5,_0x2d23ef);},'nStAE':_0x40d0e6[_0x1763c5(0x30d)],'zpSju':_0x40d0e6[_0x1763c5(0x353)],'ypMez':_0x40d0e6['TDIyA'],'ozGZh':function(_0x47af16,_0x226941){return _0x40d0e6['RzLdn'](_0x47af16,_0x226941);},'OIZQA':_0x1763c5(0x24a)};_0x40d0e6[_0x1763c5(0x1d6)]!==_0x40d0e6['MPXLJ']?_0x4de215=_0x1f877e['den_ngay']:_0x40d0e6['fRdNv'](setImmediate,()=>{const _0xc436f5=_0x1763c5,_0x313900={'OxcBn':function(_0x1dded8,_0x5a645b){const _0x357fde=_0x388b;return _0x20ae82[_0x357fde(0x1c8)](_0x1dded8,_0x5a645b);},'YchBf':_0x20ae82['lPxhX'],'BTklr':function(_0x4762e4,_0x3f756f){return _0x4762e4>_0x3f756f;},'BqoiB':function(_0x4c1d30,_0x28e913){const _0x299279=_0x388b;return _0x20ae82[_0x299279(0x244)](_0x4c1d30,_0x28e913);},'UqdEi':_0x20ae82[_0xc436f5(0x285)],'Icvwh':'days','AQtCn':_0xc436f5(0x227),'mZFZs':function(_0x1658d9,_0xe775b7,_0x252b69){const _0x48d3f4=_0xc436f5;return _0x20ae82[_0x48d3f4(0x200)](_0x1658d9,_0xe775b7,_0x252b69);},'rtJTT':function(_0x46acb3,_0x4f52f0){const _0x4dfeca=_0xc436f5;return _0x20ae82[_0x4dfeca(0x274)](_0x46acb3,_0x4f52f0);},'tDCPq':_0x20ae82[_0xc436f5(0x1f5)],'lPROx':function(_0x53ffeb,_0x4a615f){const _0x470513=_0xc436f5;return _0x20ae82[_0x470513(0x327)](_0x53ffeb,_0x4a615f);},'AgWCi':_0x20ae82[_0xc436f5(0x2dc)],'XIUzJ':_0x20ae82['AsBtr'],'YHRJQ':function(_0x1d5c04,_0x9d7647,_0x45a857){return _0x1d5c04(_0x9d7647,_0x45a857);},'oOLvo':function(_0x56b112,_0x3f97b5,_0x190825){const _0x8bbb06=_0xc436f5;return _0x20ae82[_0x8bbb06(0x1ab)](_0x56b112,_0x3f97b5,_0x190825);},'DiKRV':_0xc436f5(0x249),'JjJYr':_0x20ae82[_0xc436f5(0x230)],'aeiVN':function(_0x2c91d1,_0x4592d){const _0xf7ec35=_0xc436f5;return _0x20ae82[_0xf7ec35(0x1c8)](_0x2c91d1,_0x4592d);},'oaUQk':function(_0x27f281,_0x6af06c){return _0x27f281<_0x6af06c;},'oOmVI':_0x20ae82[_0xc436f5(0x1ff)],'GiGLx':function(_0x572c61,_0x3d700a,_0x103bad){return _0x20ae82['HNpsD'](_0x572c61,_0x3d700a,_0x103bad);},'wsEtz':_0x20ae82[_0xc436f5(0x202)],'BLfzA':function(_0x1db814,_0x435554){const _0x268dcf=_0xc436f5;return _0x20ae82[_0x268dcf(0x274)](_0x1db814,_0x435554);},'avoAk':function(_0x53f7b6,_0x406d35){return _0x53f7b6!==_0x406d35;},'iGytt':_0x20ae82[_0xc436f5(0x2e1)],'lZqBW':function(_0x24238a,_0x562a90,_0x483be9){const _0x421043=_0xc436f5;return _0x20ae82[_0x421043(0x1ab)](_0x24238a,_0x562a90,_0x483be9);},'KDMvB':function(_0x1be332,_0x474e96,_0x31a852){return _0x20ae82['ONiYu'](_0x1be332,_0x474e96,_0x31a852);},'tdpwI':function(_0x31bcd9,_0x37c246){return _0x31bcd9(_0x37c246);},'kEGxd':function(_0x2d0435,_0x37e08d,_0x4513a7){const _0x26f792=_0xc436f5;return _0x20ae82[_0x26f792(0x1ab)](_0x2d0435,_0x37e08d,_0x4513a7);},'WCWQm':function(_0x1e7404,_0x136582,_0x453670){const _0x2210ee=_0xc436f5;return _0x20ae82[_0x2210ee(0x1c1)](_0x1e7404,_0x136582,_0x453670);},'kFRLR':function(_0x3254fd,_0x55be80,_0x4a1240){const _0x319f92=_0xc436f5;return _0x20ae82[_0x319f92(0x2a2)](_0x3254fd,_0x55be80,_0x4a1240);},'aRBqE':function(_0xc98f48,_0x3cc29b){const _0xbe74bc=_0xc436f5;return _0x20ae82[_0xbe74bc(0x2c0)](_0xc98f48,_0x3cc29b);},'IPtZD':_0x20ae82[_0xc436f5(0x1ac)],'olQbM':'ecVve','raaYT':_0x20ae82['CzXlj'],'tmOce':function(_0x5bef22,_0x104b52,_0x7ec127){const _0x4df11c=_0xc436f5;return _0x20ae82[_0x4df11c(0x225)](_0x5bef22,_0x104b52,_0x7ec127);}};if(_0x20ae82[_0xc436f5(0x1f9)](_0x20ae82['nStAE'],_0x20ae82[_0xc436f5(0x29d)]))switch(_0x337f01[_0xc436f5(0x300)]){case'9':{_0x337f01[_0xc436f5(0x20e)]='',utils[_0xc436f5(0x341)](_0x1986f2,_0x337f01['query'],(_0x10ae7b,_0x31eff2)=>{const _0x266e55=_0xc436f5;if(_0x10ae7b)return _0x20ae82[_0x266e55(0x2e0)](_0x5762bc);_[_0x266e55(0x326)](_0x31eff2)?_0x20ae82['zMRbF'](_0x266e55(0x1e0),_0x20ae82[_0x266e55(0x333)])?(_0x337f01[_0x266e55(0x27e)]=_0x31eff2,_0x337f01[_0x266e55(0x34a)]=_0x31eff2,_0x337f01[_0x266e55(0x321)]=_0x31eff2,_0x337f01[_0x266e55(0x1cc)]=_0x31eff2):(_0x3d2562[_0x266e55(0x27e)]=_0x30af04,_0x1a90ea[_0x266e55(0x34a)]=_0x4b254d,_0x5dff76['so_kt']=_0x1ba7cb,_0x3df89[_0x266e55(0x1cc)]=_0x43b0d5):_0x337f01[_0x266e55(0x1bc)]=_0x31eff2,_0x20ae82['Rpbnf'](_0x5762bc);});break;}case'2':{_0x337f01[_0xc436f5(0x20e)]='',async[_0xc436f5(0x222)](_0x70624a,(_0x119a0f,_0x86eb63)=>{const _0x53ed19=_0xc436f5,_0x30e39c={'IXpgh':function(_0x5b6580,_0xe2130a){const _0x2a2698=_0x388b;return _0x20ae82[_0x2a2698(0x23c)](_0x5b6580,_0xe2130a);},'zneGa':_0x20ae82[_0x53ed19(0x1ff)],'wKkDv':function(_0x59c580,_0x27d622){return _0x59c580(_0x27d622);},'vBEWC':function(_0x303df0,_0x4403b4,_0x1c2964){const _0x306fe7=_0x53ed19;return _0x20ae82[_0x306fe7(0x33b)](_0x303df0,_0x4403b4,_0x1c2964);},'DgJJg':function(_0xf23dd2,_0x10614e,_0x5ae27a){return _0x20ae82['HNpsD'](_0xf23dd2,_0x10614e,_0x5ae27a);},'DGOVa':_0x20ae82[_0x53ed19(0x1d4)],'dWHyi':_0x20ae82['ndaeq'],'uGawl':function(_0x487a24,_0x17a9ad,_0x1de6a4){const _0x533c0d=_0x53ed19;return _0x20ae82[_0x533c0d(0x33b)](_0x487a24,_0x17a9ad,_0x1de6a4);},'aWHNA':_0x20ae82[_0x53ed19(0x202)],'wXvic':_0x20ae82['tUaFs'],'GsmZs':function(_0x3166e0,_0xcae476,_0x90c61e){return _0x3166e0(_0xcae476,_0x90c61e);},'SiTwM':function(_0xdfdddd,_0x3a7751){const _0x2c53cc=_0x53ed19;return _0x20ae82[_0x2c53cc(0x1f9)](_0xdfdddd,_0x3a7751);},'TyZjO':_0x53ed19(0x254),'rTshQ':_0x20ae82[_0x53ed19(0x2ab)],'nSAHg':_0x20ae82[_0x53ed19(0x206)],'HHyhM':_0x20ae82[_0x53ed19(0x22b)],'pUPFY':_0x20ae82[_0x53ed19(0x1aa)],'QHTXd':function(_0x3abf35,_0x24f3e1){const _0x5405fe=_0x53ed19;return _0x20ae82[_0x5405fe(0x1c8)](_0x3abf35,_0x24f3e1);},'FQNnp':function(_0x5f48fd,_0x1bf24d){const _0x5b5f44=_0x53ed19;return _0x20ae82[_0x5b5f44(0x248)](_0x5f48fd,_0x1bf24d);},'PSwaI':function(_0x4ee69d,_0x890e3){const _0x2867be=_0x53ed19;return _0x20ae82[_0x2867be(0x248)](_0x4ee69d,_0x890e3);},'JUIJE':_0x20ae82[_0x53ed19(0x28c)],'zEYYG':_0x53ed19(0x205),'BDBHi':function(_0x5d0fdb,_0x4cb23a){return _0x20ae82['oOKfG'](_0x5d0fdb,_0x4cb23a);},'zSCVF':_0x20ae82['NXvle'],'ecMkO':function(_0x38e8d2,_0x297e58){const _0x13e098=_0x53ed19;return _0x20ae82[_0x13e098(0x1f9)](_0x38e8d2,_0x297e58);},'VQQDg':_0x20ae82[_0x53ed19(0x2ac)],'tSlky':function(_0x67d7ac,_0x29f1b1){return _0x67d7ac(_0x29f1b1);},'NVSIG':_0x53ed19(0x336),'nXSTq':function(_0xb59410,_0x5f3ec4){const _0x1881fb=_0x53ed19;return _0x20ae82[_0x1881fb(0x248)](_0xb59410,_0x5f3ec4);},'RYHeL':'qCkar'};_0x20ae82[_0x53ed19(0x1c8)](setImmediate,async()=>{const _0x438100=_0x53ed19,_0x13bee8={'BZYTb':function(_0x9f5e4e,_0x923e1f){return _0x9f5e4e(_0x923e1f);},'LsTZc':function(_0x2de61e,_0x3bdcf4){return _0x2de61e<_0x3bdcf4;},'xTpwl':function(_0x4d85a2,_0x4b1aac,_0xce2a9c){const _0x5569b6=_0x388b;return _0x30e39c[_0x5569b6(0x1e2)](_0x4d85a2,_0x4b1aac,_0xce2a9c);},'pyNlS':_0x30e39c[_0x438100(0x2cc)],'jpKMY':_0x438100(0x337),'kQUjt':function(_0x2fb52c,_0x3725cc){return _0x2fb52c<_0x3725cc;},'iahEP':_0x30e39c[_0x438100(0x1f2)],'skLkg':_0x30e39c[_0x438100(0x1d7)],'rUSNQ':function(_0x1c3df8,_0x3f595e,_0x2c25b6){const _0x2c33a9=_0x438100;return _0x30e39c[_0x2c33a9(0x2f6)](_0x1c3df8,_0x3f595e,_0x2c25b6);},'ALkYD':_0x438100(0x30c),'UiBhK':function(_0xc0e0c8,_0x110e9d){const _0x33b1a0=_0x438100;return _0x30e39c[_0x33b1a0(0x2db)](_0xc0e0c8,_0x110e9d);}};let _0x1ac31f={'ngay_ct':{'$gte':_0x119a0f[_0x438100(0x317)],'$lte':_0x119a0f[_0x438100(0x265)]},'id_app':_0x1986f2['id_app']};if(_0x1986f2['ma_dvcs']){if(_0x30e39c[_0x438100(0x312)](_0x30e39c[_0x438100(0x1cd)],'KWFYQ')){const _0x575906={'nDMjE':_0x438100(0x34b),'PkStz':function(_0x170180,_0x2f6beb){const _0x340c95=_0x438100;return _0x30e39c[_0x340c95(0x2db)](_0x170180,_0x2f6beb);},'bfIzM':_0x30e39c['zneGa'],'yXTjb':'du_co_nt00','oPANa':function(_0x1a7aa5,_0x430b56){const _0x4b8137=_0x438100;return _0x30e39c[_0x4b8137(0x32a)](_0x1a7aa5,_0x430b56);},'XnjbP':function(_0x3716dc,_0x7cc07b,_0x224856){const _0xf509ea=_0x438100;return _0x30e39c[_0xf509ea(0x1ed)](_0x3716dc,_0x7cc07b,_0x224856);}};let _0x1ec9cd={..._0x22afa9};_0x1ec9cd[_0x438100(0x1b0)]=_0x4ec631[_0x438100(0x265)],_0x1ec9cd[_0x438100(0x323)]=_0x52dc05[_0x438100(0x2d7)],_0x1ec9cd['tk']=_0xf4aabc['tk'],delete _0x1ec9cd[_0x438100(0x317)],delete _0x1ec9cd['den_ngay'],_0x30e39c[_0x438100(0x292)](_0x520d18,_0x1ec9cd,function(_0x1f85c6,_0x91435d){const _0x10e74f=_0x438100,_0x46a9b0=_0x575906['nDMjE'][_0x10e74f(0x270)]('|');let _0x21c461=0x0;while(!![]){switch(_0x46a9b0[_0x21c461++]){case'0':_0xf79463[_0x10e74f(0x1c5)+_0x24fc5a[_0x10e74f(0x31a)]+_0x10e74f(0x1f4)]<0x0&&_0x47db6e['khong_am']&&(_0x86ad0d[_0x10e74f(0x1c5)+_0x496f64[_0x10e74f(0x31a)]+_0x10e74f(0x1f4)]=0x0);continue;case'1':_0x575906['PkStz'](_0x1353cc['so_'+_0x9c0ad2[_0x10e74f(0x31a)]],0x0)&&_0x137bc7[_0x10e74f(0x332)]&&(_0x3d8f1e['so_'+_0x3b4bcc[_0x10e74f(0x31a)]]=0x0);continue;case'2':_0x3d9311[_0x10e74f(0x1c5)+_0x4da127[_0x10e74f(0x31a)]]=_0x91435d['csum'](_0x575906[_0x10e74f(0x1f1)]);continue;case'3':_0x4224d1[_0x10e74f(0x1c5)+_0x2f7929[_0x10e74f(0x31a)]+'_nt']=_0x91435d[_0x10e74f(0x234)](_0x575906['yXTjb']);continue;case'4':if(_0x1f85c6)return _0x575906[_0x10e74f(0x1d8)](_0x4c3baa,_0x1f85c6);continue;case'5':_0x575906['XnjbP'](_0x59d523,null,_0x1cd9a2);continue;}break;}});}else _0x1ac31f[_0x438100(0x1b2)]=_0x1986f2[_0x438100(0x1b2)];}_0x1986f2[_0x438100(0x2f1)]&&(_0x1ac31f[_0x438100(0x2f1)]=_0x1986f2['ma_bp']);if(_0x1986f2['ma_hd']){if(_0x30e39c[_0x438100(0x20a)]!==_0x438100(0x350))_0x1ac31f[_0x438100(0x33c)]=_0x1986f2[_0x438100(0x33c)];else{const _0x32f4c1=_0x438100(0x249)[_0x438100(0x270)]('|');let _0x55c4c9=0x0;while(!![]){switch(_0x32f4c1[_0x55c4c9++]){case'0':_0x475fbc[_0x438100(0x1c5)+_0x105f61['ma_ky']+'_nt']=_0x59e13f[_0x438100(0x234)](_0x438100(0x2ff));continue;case'1':if(_0x2abb0c)return _0x13bee8[_0x438100(0x2d0)](_0xe822fb,_0x4e227d);continue;case'2':_0x13bee8[_0x438100(0x2ee)](_0x1f95d7[_0x438100(0x1c5)+_0x3ecdb0[_0x438100(0x31a)]],0x0)&&_0x123716[_0x438100(0x332)]&&(_0x9de7d6[_0x438100(0x1c5)+_0x3c4a30['ma_ky']]=0x0);continue;case'3':_0x13bee8[_0x438100(0x203)](_0x43cc28,null,_0x57c8be);continue;case'4':_0x13bee8[_0x438100(0x2ee)](_0x335294[_0x438100(0x1c5)+_0x38451d[_0x438100(0x31a)]+_0x438100(0x1f4)],0x0)&&_0x2c4a9a['khong_am']&&(_0x5e4589['so_'+_0x2fd8c6[_0x438100(0x31a)]+_0x438100(0x1f4)]=0x0);continue;case'5':_0x58abff['so_'+_0x4aeb19[_0x438100(0x31a)]]=_0x341029[_0x438100(0x234)](_0x13bee8[_0x438100(0x2d9)]);continue;}break;}}}_0x1986f2[_0x438100(0x29b)]&&(_0x1ac31f['ma_dt']=_0x1986f2['ma_dt']);_0x1986f2['ma_sp']&&(_0x1ac31f[_0x438100(0x2b2)]=_0x1986f2['ma_sp']);_0x1986f2[_0x438100(0x1ba)]&&(_0x1ac31f['ma_nv']=_0x1986f2['ma_nv']);_0x337f01[_0x438100(0x2ef)]&&(_0x1ac31f[_0x438100(0x2ef)]={'$in':await getCodeChildren(global['getModel'](_0x30e39c[_0x438100(0x21f)]),_0x1986f2['id_app'],_0x337f01[_0x438100(0x2ef)],_0x30e39c[_0x438100(0x324)],_0x30e39c[_0x438100(0x23b)])});let _0x440fe8=_0x30e39c[_0x438100(0x2ce)](getRegString,_0x337f01['tk_no']);if(_0x440fe8){if(_0x30e39c['FQNnp']('KVafG','SiKtT')){if(_0x337f01['giam_tru_no']){if(_0x30e39c[_0x438100(0x1f7)](_0x30e39c[_0x438100(0x32f)],_0x30e39c[_0x438100(0x32f)])){const _0x2211b8=_0x13bee8[_0x438100(0x2ed)][_0x438100(0x270)]('|');let _0x457e17=0x0;while(!![]){switch(_0x2211b8[_0x457e17++]){case'0':if(_0x2c3598)return _0x4a9f6e(_0x44d6cd);continue;case'1':_0x13bee8[_0x438100(0x2b4)](_0x184fb7['so_'+_0x3df0a2['ma_ky']+_0x438100(0x1f4)],0x0)&&_0x51cbbf['khong_am']&&(_0x29fd78[_0x438100(0x1c5)+_0xad5e79[_0x438100(0x31a)]+_0x438100(0x1f4)]=0x0);continue;case'2':_0x2c84c8[_0x438100(0x1c5)+_0x132fdf[_0x438100(0x31a)]+_0x438100(0x1f4)]=_0x547649[_0x438100(0x234)](_0x13bee8[_0x438100(0x269)]);continue;case'3':_0xffc6f8[_0x438100(0x1c5)+_0x4e67ac['ma_ky']]=_0x256c84[_0x438100(0x234)](_0x13bee8[_0x438100(0x313)]);continue;case'4':_0x13bee8['rUSNQ'](_0x263edb,null,_0x3df036);continue;case'5':_0x13bee8[_0x438100(0x2b4)](_0x2381cd[_0x438100(0x1c5)+_0x54d2b1[_0x438100(0x31a)]],0x0)&&_0x5801bb[_0x438100(0x332)]&&(_0x81e8ee['so_'+_0x6a8e3c['ma_ky']]=0x0);continue;}break;}}else _0x1ac31f[_0x438100(0x2e5)]={'$not':new RegExp(_0x440fe8)};}else _0x1ac31f[_0x438100(0x2e5)]={'$regex':_0x440fe8,'$options':'i'};}else _0x1f0761[_0x438100(0x1c5)+_0x1fcd7a[_0x438100(0x31a)]]=0x0;}let _0xafcdc=getRegString(_0x337f01[_0x438100(0x2b9)]);_0xafcdc&&(_0x337f01['giam_tru_co']&&_0xafcdc?_0x1ac31f[_0x438100(0x2b9)]={'$not':new RegExp(_0xafcdc)}:_0x1ac31f[_0x438100(0x2b9)]={'$regex':_0xafcdc,'$options':'i'});if(_0x337f01[_0x438100(0x306)]){if(_0x30e39c[_0x438100(0x312)](_0x30e39c[_0x438100(0x32c)],_0x438100(0x205)))try{_0x30e39c[_0x438100(0x2db)](_0x337f01[_0x438100(0x306)]['indexOf']('{'),0x0)&&(_0x337f01[_0x438100(0x306)]=_0x30e39c[_0x438100(0x1fd)](_0x30e39c['BDBHi']('{',_0x337f01[_0x438100(0x306)]),'}'));let _0x4d217c=_0x337f01[_0x438100(0x306)];if(_0x4d217c[_0x438100(0x208)](_0x30e39c[_0x438100(0x2e6)])<0x0){if(_0x30e39c['ecMkO'](_0x30e39c[_0x438100(0x335)],_0x30e39c[_0x438100(0x335)]))_0x4d217c=_0x438100(0x2ae)+_0x4d217c;else{let _0x255ba4={..._0x513739};_0x255ba4[_0x438100(0x1b0)]=_0x92fe3b[_0x438100(0x317)],_0x255ba4[_0x438100(0x323)]=_0x2a4cbf[_0x438100(0x2d7)],_0x255ba4['tk']=_0x2aa28b['tk'],delete _0x255ba4[_0x438100(0x317)],delete _0x255ba4[_0x438100(0x265)],_0x30e39c[_0x438100(0x292)](_0x2d323a,_0x255ba4,function(_0x390ae2,_0x4c1ca9){const _0x3ece95=_0x438100,_0x4ad598=_0x13bee8[_0x3ece95(0x2b7)][_0x3ece95(0x270)]('|');let _0x589c6d=0x0;while(!![]){switch(_0x4ad598[_0x589c6d++]){case'0':_0x4d604a(null,_0x5b5f46);continue;case'1':_0xb9cebf[_0x3ece95(0x1c5)+_0x321581['ma_ky']+_0x3ece95(0x1f4)]<0x0&&_0x4e4acb['khong_am']&&(_0xf887dc[_0x3ece95(0x1c5)+_0x5a019d[_0x3ece95(0x31a)]+_0x3ece95(0x1f4)]=0x0);continue;case'2':_0x13bee8['UiBhK'](_0x50bf74[_0x3ece95(0x1c5)+_0x5301b6[_0x3ece95(0x31a)]],0x0)&&_0x3117e5[_0x3ece95(0x332)]&&(_0x3d1d9a[_0x3ece95(0x1c5)+_0x506a4c[_0x3ece95(0x31a)]]=0x0);continue;case'3':if(_0x390ae2)return _0x13bee8[_0x3ece95(0x2d0)](_0x1586e6,_0x390ae2);continue;case'4':_0x20f63f['so_'+_0x262c1d[_0x3ece95(0x31a)]+_0x3ece95(0x1f4)]=_0x4c1ca9['csum'](_0x13bee8[_0x3ece95(0x269)]);continue;case'5':_0x21e416[_0x3ece95(0x1c5)+_0x1033ad[_0x3ece95(0x31a)]]=_0x4c1ca9[_0x3ece95(0x234)](_0x3ece95(0x27f));continue;}break;}});}}let _0x167605=utils[_0x438100(0x1e7)](_0x4d217c,{'moment':moment,'condition':_0x1ac31f,'row':_0x337f01});_0x1ac31f={..._0x1ac31f,..._0x167605};}catch(_0x3d990f){return _0x30e39c[_0x438100(0x240)](_0x86eb63,_0x3d990f[_0x438100(0x2f5)]());}else return _0x5451a1[_0x438100(0x1c4)](_0x4f15b3,_0x50b173),_0x30e39c[_0x438100(0x32a)](_0x41a715,_0x11e769[_0x438100(0x1d1)]||_0x547de0[_0x438100(0x1c4)]||_0x382430);}let _0x1da1c0;_0x337f01[_0x438100(0x1cf)]?(_0x1ac31f[_0x438100(0x1cf)]=_0x337f01['ma_kho'],_0x1da1c0=global[_0x438100(0x25c)](_0x30e39c[_0x438100(0x1fc)])):_0x30e39c['nXSTq'](_0x30e39c[_0x438100(0x217)],_0x30e39c[_0x438100(0x217)])?(_0x3e7a1b[_0x438100(0x1cf)]=_0x2e0167[_0x438100(0x1cf)],_0x5e3997=_0x271dcd['getModel'](_0x438100(0x336))):_0x1da1c0=global[_0x438100(0x25c)](_0x438100(0x352)),_0x1da1c0[_0x438100(0x310)](_0x1ac31f)[_0x438100(0x343)]()[_0x438100(0x319)]((_0x5dafd8,_0x6d8291)=>{const _0x1c7d67=_0x438100;if(_0x30e39c['DGOVa']===_0x30e39c[_0x1c7d67(0x1f0)]){if(_0x5dafd8)return _0x30e39c['wKkDv'](_0x86eb63,_0x5dafd8);_0x337f01['so_'+_0x119a0f[_0x1c7d67(0x31a)]]=_0x6d8291['csum'](_0x1c7d67(0x2a5)),_0x337f01[_0x1c7d67(0x1c5)+_0x119a0f[_0x1c7d67(0x31a)]+_0x1c7d67(0x1f4)]=_0x6d8291[_0x1c7d67(0x234)](_0x30e39c[_0x1c7d67(0x21a)]),_0x30e39c[_0x1c7d67(0x1ed)](_0x86eb63,null,_0x337f01);}else _0xb26f9e[_0x1c7d67(0x1b2)]=_0x45084f[_0x1c7d67(0x1b2)];});});},(_0x1aba88,_0xd45a0c)=>{const _0x2ea14a=_0xc436f5,_0x5b56d2={'BUdAu':function(_0x56ab0e){const _0x11cd0f=_0x388b;return _0x20ae82[_0x11cd0f(0x295)](_0x56ab0e);}};if('ZQqXr'!==_0x20ae82[_0x2ea14a(0x34c)])_0x5762bc(_0x1aba88,_0xd45a0c);else return _0x5b56d2[_0x2ea14a(0x201)](_0x3c70e8);});break;}case'5':{_0x337f01['cong_thuc']='',async['map'](_0x70624a,(_0x388179,_0x5aa01c)=>{const _0x552a61=_0xc436f5,_0x3ffcd9={'mmnaq':_0x552a61(0x2e8),'XEBTE':_0x552a61(0x28b),'eWPmA':_0x313900['AQtCn'],'SEeEw':function(_0x57444a,_0x21d672,_0x252a4e){const _0x43ffc0=_0x552a61;return _0x313900[_0x43ffc0(0x2fb)](_0x57444a,_0x21d672,_0x252a4e);},'IdCnX':function(_0x1368b5,_0x195803){const _0x487e37=_0x552a61;return _0x313900[_0x487e37(0x25d)](_0x1368b5,_0x195803);},'QCJLI':_0x313900[_0x552a61(0x2f2)],'gNCLv':function(_0x28194f,_0x3cd31d){const _0x5724d9=_0x552a61;return _0x313900[_0x5724d9(0x29f)](_0x28194f,_0x3cd31d);}};if(_0x313900[_0x552a61(0x296)]===_0x313900[_0x552a61(0x278)]){let _0x4a6bb5=_0x313900['OxcBn'](_0x4e4e91,_0x5bc902)[_0x552a61(0x1b9)](_0x313900[_0x552a61(0x20f)])[_0x552a61(0x26a)]();_0x313900[_0x552a61(0x23d)](_0x4a6bb5[_0x552a61(0x251)](),_0x3c554f['den_ngay'][_0x552a61(0x251)]())&&(_0x4a6bb5=_0xb09bbd[_0x552a61(0x265)]),_0x1698a1[_0x552a61(0x289)]({'field':'so_'+_0x570d35(_0x320488)[_0x552a61(0x268)](_0x313900[_0x552a61(0x20f)])+'-'+_0xe355a6['getFullYear'](),'header':_0x313900['BqoiB'](_0x46ad9b,_0x20397d)[_0x552a61(0x268)](_0x552a61(0x1b7))+'/'+_0x3887fe[_0x552a61(0x32b)](),'datatype':_0x313900[_0x552a61(0x1df)],'ma_ky':_0x313900['BqoiB'](_0x4ae4c1,_0x477a84)[_0x552a61(0x268)](_0x313900['YchBf'])+'-'+_0x4c16f7['getFullYear'](),'ten_ky':_0x313900[_0x552a61(0x20b)](_0x3aeaf6,_0x3284a7)[_0x552a61(0x268)](_0x313900[_0x552a61(0x20f)])+'/'+_0x3b6798['getFullYear'](),'tu_ngay':_0x12a253,'den_ngay':_0x4a6bb5}),_0x3c6d06=_0x313900['OxcBn'](_0x2aa4e3,_0x4a6bb5)[_0x552a61(0x22f)](0x1,_0x313900[_0x552a61(0x1fe)])[_0x552a61(0x304)](_0x552a61(0x245))[_0x552a61(0x26a)]();}else{let _0x176f37={..._0x1986f2};_0x176f37[_0x552a61(0x1b0)]=_0x388179[_0x552a61(0x317)],_0x176f37[_0x552a61(0x323)]=_0x337f01[_0x552a61(0x2d7)],_0x176f37['tk']=_0x337f01['tk'],delete _0x176f37['tu_ngay'],delete _0x176f37[_0x552a61(0x265)],_0x313900[_0x552a61(0x232)](dktk,_0x176f37,function(_0x359f72,_0x49743b){const _0x398366=_0x552a61;if(_0x3ffcd9[_0x398366(0x2fe)]===_0x3ffcd9[_0x398366(0x318)])_0x37623b[_0x398366(0x2b2)]=_0x20831b[_0x398366(0x2b2)];else{const _0x459b27=_0x3ffcd9['eWPmA'][_0x398366(0x270)]('|');let _0x536339=0x0;while(!![]){switch(_0x459b27[_0x536339++]){case'0':_0x3ffcd9['SEeEw'](_0x5aa01c,null,_0x337f01);continue;case'1':_0x3ffcd9[_0x398366(0x29a)](_0x337f01['so_'+_0x388179[_0x398366(0x31a)]+'_nt'],0x0)&&_0x337f01[_0x398366(0x332)]&&(_0x337f01[_0x398366(0x1c5)+_0x388179[_0x398366(0x31a)]+'_nt']=0x0);continue;case'2':_0x337f01[_0x398366(0x1c5)+_0x388179['ma_ky']+_0x398366(0x1f4)]=_0x49743b[_0x398366(0x234)](_0x3ffcd9[_0x398366(0x2a3)]);continue;case'3':_0x3ffcd9[_0x398366(0x29a)](_0x337f01['so_'+_0x388179[_0x398366(0x31a)]],0x0)&&_0x337f01[_0x398366(0x332)]&&(_0x337f01[_0x398366(0x1c5)+_0x388179[_0x398366(0x31a)]]=0x0);continue;case'4':_0x337f01[_0x398366(0x1c5)+_0x388179[_0x398366(0x31a)]]=_0x49743b[_0x398366(0x234)](_0x398366(0x31e));continue;case'5':if(_0x359f72)return _0x3ffcd9[_0x398366(0x1c3)](_0x5aa01c,_0x359f72);continue;}break;}}});}},(_0x380403,_0x1bd0bf)=>{const _0x38df54=_0xc436f5;_0x313900[_0x38df54(0x2b1)](_0x5762bc,_0x380403,_0x1bd0bf);});break;}case'6':{_0x337f01['cong_thuc']='',async[_0xc436f5(0x222)](_0x70624a,(_0xeb63af,_0x2352fd)=>{const _0x5677c4=_0xc436f5;let _0x2a6c4f={..._0x1986f2};_0x2a6c4f[_0x5677c4(0x1b0)]=_0xeb63af[_0x5677c4(0x317)],_0x2a6c4f['bu_tru']=_0x337f01[_0x5677c4(0x2d7)],_0x2a6c4f['tk']=_0x337f01['tk'],delete _0x2a6c4f[_0x5677c4(0x317)],delete _0x2a6c4f['den_ngay'],_0x313900[_0x5677c4(0x34f)](dktk,_0x2a6c4f,function(_0x215d24,_0x16374f){const _0x46aa8b=_0x5677c4,_0x9a8fa3=_0x313900['DiKRV'][_0x46aa8b(0x270)]('|');let _0x52ef56=0x0;while(!![]){switch(_0x9a8fa3[_0x52ef56++]){case'0':_0x337f01['so_'+_0xeb63af[_0x46aa8b(0x31a)]+'_nt']=_0x16374f[_0x46aa8b(0x234)](_0x313900[_0x46aa8b(0x1ec)]);continue;case'1':if(_0x215d24)return _0x313900[_0x46aa8b(0x2d5)](_0x2352fd,_0x215d24);continue;case'2':_0x313900[_0x46aa8b(0x1ae)](_0x337f01[_0x46aa8b(0x1c5)+_0xeb63af[_0x46aa8b(0x31a)]],0x0)&&_0x337f01['khong_am']&&(_0x337f01[_0x46aa8b(0x1c5)+_0xeb63af['ma_ky']]=0x0);continue;case'3':_0x2352fd(null,_0x337f01);continue;case'4':_0x313900[_0x46aa8b(0x1ae)](_0x337f01[_0x46aa8b(0x1c5)+_0xeb63af[_0x46aa8b(0x31a)]+'_nt'],0x0)&&_0x337f01[_0x46aa8b(0x332)]&&(_0x337f01[_0x46aa8b(0x1c5)+_0xeb63af[_0x46aa8b(0x31a)]+_0x46aa8b(0x1f4)]=0x0);continue;case'5':_0x337f01['so_'+_0xeb63af[_0x46aa8b(0x31a)]]=_0x16374f['csum'](_0x313900[_0x46aa8b(0x1d3)]);continue;}break;}});},(_0x53ef52,_0x203faa)=>{const _0x1df77d=_0xc436f5;_0x313900[_0x1df77d(0x232)](_0x5762bc,_0x53ef52,_0x203faa);});break;}case'7':{if(_0x20ae82['zMRbF'](_0x20ae82[_0xc436f5(0x34e)],_0xc436f5(0x257))){_0x337f01['cong_thuc']='',async[_0xc436f5(0x222)](_0x70624a,(_0x19edf2,_0x1fa59c)=>{const _0x2c97ae=_0xc436f5,_0x5cb619={'AGIVC':function(_0x1b3d92,_0xe5db6e,_0x10ac08){const _0x24de8a=_0x388b;return _0x313900[_0x24de8a(0x236)](_0x1b3d92,_0xe5db6e,_0x10ac08);}};let _0x55059f={..._0x1986f2};_0x55059f[_0x2c97ae(0x1b0)]=_0x19edf2['den_ngay'],_0x55059f[_0x2c97ae(0x323)]=_0x337f01['bu_tru_cong_no'],_0x55059f['tk']=_0x337f01['tk'],delete _0x55059f[_0x2c97ae(0x317)],delete _0x55059f['den_ngay'],_0x313900[_0x2c97ae(0x23e)](cktk,_0x55059f,function(_0x305253,_0x4fd843){const _0x31688e=_0x2c97ae,_0x4d24e5={'VvzoL':_0x313900['wsEtz'],'uRBUx':_0x313900[_0x31688e(0x2f2)],'cJSda':function(_0x50d421,_0x51bb0e){return _0x50d421<_0x51bb0e;},'idCVv':function(_0xb88c81,_0x40fe5d,_0x4d2aff){const _0x2c5ad4=_0x31688e;return _0x313900[_0x2c5ad4(0x2b1)](_0xb88c81,_0x40fe5d,_0x4d2aff);}};if(_0x305253)return _0x1fa59c(_0x305253);_0x337f01[_0x31688e(0x1c5)+_0x19edf2[_0x31688e(0x31a)]]=_0x4fd843[_0x31688e(0x234)](_0x313900[_0x31688e(0x31d)]),_0x337f01[_0x31688e(0x1c5)+_0x19edf2[_0x31688e(0x31a)]+'_nt']=_0x4fd843['csum'](_0x313900['tDCPq']);_0x337f01[_0x31688e(0x1c5)+_0x19edf2[_0x31688e(0x31a)]]<0x0&&_0x337f01[_0x31688e(0x332)]&&(_0x337f01[_0x31688e(0x1c5)+_0x19edf2[_0x31688e(0x31a)]]=0x0);if(_0x313900[_0x31688e(0x351)](_0x337f01[_0x31688e(0x1c5)+_0x19edf2[_0x31688e(0x31a)]+'_nt'],0x0)&&_0x337f01['khong_am']){if(_0x313900['avoAk'](_0x313900['iGytt'],_0x31688e(0x2c1))){let _0x3431b1={..._0x1c9f12};_0x3431b1[_0x31688e(0x1b0)]=_0x449bc9[_0x31688e(0x265)],_0x3431b1[_0x31688e(0x323)]=_0x184532[_0x31688e(0x2d7)],_0x3431b1['tk']=_0x542ec1['tk'],delete _0x3431b1[_0x31688e(0x317)],delete _0x3431b1['den_ngay'],_0x5cb619[_0x31688e(0x204)](_0x4bbbab,_0x3431b1,function(_0x15fa0c,_0x236212){const _0x1c3414=_0x31688e;if(_0x15fa0c)return _0xcca8fa(_0x15fa0c);_0xcd48a[_0x1c3414(0x1c5)+_0x5fe607[_0x1c3414(0x31a)]]=_0x236212[_0x1c3414(0x234)](_0x4d24e5[_0x1c3414(0x282)]),_0x248be3['so_'+_0x21b1ff['ma_ky']+_0x1c3414(0x1f4)]=_0x236212[_0x1c3414(0x234)](_0x4d24e5[_0x1c3414(0x1bf)]),_0x1d7d8f['so_'+_0x3f72b5[_0x1c3414(0x31a)]]<0x0&&_0x199354[_0x1c3414(0x332)]&&(_0xb11dcd[_0x1c3414(0x1c5)+_0x2243d0['ma_ky']]=0x0),_0x4d24e5[_0x1c3414(0x346)](_0xd05286[_0x1c3414(0x1c5)+_0x5ed8e4[_0x1c3414(0x31a)]+'_nt'],0x0)&&_0x1281a6['khong_am']&&(_0x466b25[_0x1c3414(0x1c5)+_0x5a8af7[_0x1c3414(0x31a)]+'_nt']=0x0),_0x4d24e5[_0x1c3414(0x2fd)](_0x4e1813,null,_0x3a3fc6);});}else _0x337f01[_0x31688e(0x1c5)+_0x19edf2[_0x31688e(0x31a)]+'_nt']=0x0;}_0x313900[_0x31688e(0x232)](_0x1fa59c,null,_0x337f01);});},(_0x5a6898,_0x5cc12e)=>{const _0x5a7a89=_0xc436f5;_0x20ae82[_0x5a7a89(0x256)](_0x5762bc,_0x5a6898,_0x5cc12e);});break;}else return _0x4bf548[_0xc436f5(0x2f5)]()['search'](qYofnh[_0xc436f5(0x284)])[_0xc436f5(0x2f5)]()[_0xc436f5(0x325)](_0x2c3ea1)[_0xc436f5(0x25f)](qYofnh[_0xc436f5(0x284)]);}case'8':{if(_0x20ae82[_0xc436f5(0x248)](_0xc436f5(0x2c5),_0x20ae82[_0xc436f5(0x28f)])){_0x337f01[_0xc436f5(0x20e)]='',async['map'](_0x70624a,(_0x2fe802,_0x2979f5)=>{const _0x13c1f1=_0xc436f5;let _0x19437b={..._0x1986f2};_0x19437b['ngay']=_0x2fe802[_0x13c1f1(0x265)],_0x19437b[_0x13c1f1(0x323)]=_0x337f01[_0x13c1f1(0x2d7)],_0x19437b['tk']=_0x337f01['tk'],delete _0x19437b[_0x13c1f1(0x317)],delete _0x19437b[_0x13c1f1(0x265)],_0x20ae82['uCJTy'](cktk,_0x19437b,function(_0x17a0df,_0x6fd6de){const _0x5b8f4e=_0x13c1f1;if(_0x17a0df)return _0x313900[_0x5b8f4e(0x213)](_0x2979f5,_0x17a0df);_0x337f01['so_'+_0x2fe802[_0x5b8f4e(0x31a)]]=_0x6fd6de['csum'](_0x5b8f4e(0x27f)),_0x337f01[_0x5b8f4e(0x1c5)+_0x2fe802[_0x5b8f4e(0x31a)]+'_nt']=_0x6fd6de['csum'](_0x313900[_0x5b8f4e(0x1ec)]),_0x337f01[_0x5b8f4e(0x1c5)+_0x2fe802[_0x5b8f4e(0x31a)]]<0x0&&_0x337f01[_0x5b8f4e(0x332)]&&(_0x337f01[_0x5b8f4e(0x1c5)+_0x2fe802[_0x5b8f4e(0x31a)]]=0x0),_0x337f01['so_'+_0x2fe802['ma_ky']+'_nt']<0x0&&_0x337f01[_0x5b8f4e(0x332)]&&(_0x337f01['so_'+_0x2fe802[_0x5b8f4e(0x31a)]+_0x5b8f4e(0x1f4)]=0x0),_0x313900['kEGxd'](_0x2979f5,null,_0x337f01);});},(_0x5107be,_0x5e94c0)=>{_0x313900['WCWQm'](_0x5762bc,_0x5107be,_0x5e94c0);});break;}else _0x313900[_0xc436f5(0x342)](_0xde720f,null,_0x3e93cd);}case'99':{if(!_0x337f01[_0xc436f5(0x229)])return _0x5762bc(null,_0x337f01);if(_0x20ae82[_0xc436f5(0x2e4)](_0x337f01[_0xc436f5(0x229)][_0xc436f5(0x208)](_0xc436f5(0x355)),0x0))return _0x5762bc(_0x20ae82[_0xc436f5(0x33f)]);let _0x4fd81e='return\x20(async\x20()=>{\x0a\x09\x09\x09\x09\x09\x09\x09\x09try{\x0a\x09\x09\x09\x09\x09\x09\x09\x09\x09'+_0x337f01['script']+'\x0a\x09\x09\x09\x09\x09\x09\x09\x09}catch(e){\x0a\x09\x09\x09\x09\x09\x09\x09\x09\x09return\x20{error:e}\x0a\x09\x09\x09\x09\x09\x09\x09\x09}\x0a\x09\x09\x09\x09\x09\x09\x09\x09\x0a\x09\x09\x09\x09\x09\x09\x09})';_0x337f01[_0xc436f5(0x20e)]='',utils[_0xc436f5(0x1e7)](_0x4fd81e,{'row':_0x337f01,'moment':moment,'condition':_0x1986f2,'user':_0x5924ce[_0xc436f5(0x23f)],'_':_,'utils':utils})()[_0xc436f5(0x21b)](_0x199b64=>{const _0x6d2c12=_0xc436f5,_0x311bc7={'oMfGd':function(_0x5f038e,_0x1b41f0){const _0x2ee9bf=_0x388b;return _0x313900[_0x2ee9bf(0x309)](_0x5f038e,_0x1b41f0);},'kwGxf':function(_0x49a254,_0x244b88){const _0x5613f6=_0x388b;return _0x313900[_0x5613f6(0x2d5)](_0x49a254,_0x244b88);}};if(_0x199b64){if(_0x313900[_0x6d2c12(0x315)]!==_0x313900['olQbM']){if(_0x199b64[_0x6d2c12(0x1c4)]){if(_0x313900['raaYT']!==_0x313900['raaYT']){if(_0x311bc7[_0x6d2c12(0x354)](_0x124a22,!_0x275283))return _0x311bc7[_0x6d2c12(0x31b)](_0x192021,_0x37383b);_0x311bc7[_0x6d2c12(0x31b)](_0x3a9c64,_0x468844);}else return console[_0x6d2c12(0x1c4)](_0x199b64[_0x6d2c12(0x1c4)],_0x4fd81e),_0x313900[_0x6d2c12(0x2d5)](_0x5762bc,_0x199b64['error'][_0x6d2c12(0x1d1)]||_0x199b64[_0x6d2c12(0x1c4)]['error']||_0x199b64[_0x6d2c12(0x1c4)]);}_0x313900[_0x6d2c12(0x33e)](_0x5762bc,null,_0x337f01);}else _0x4d9330[_0x6d2c12(0x29b)]=_0x2b52c0[_0x6d2c12(0x29b)];}else _0x313900[_0x6d2c12(0x2bb)](_0x5762bc,null,_0x337f01);})[_0xc436f5(0x32e)](_0x53f343=>{const _0x25577a=_0xc436f5;return console['error'](_0x53f343,_0x4fd81e),_0x20ae82[_0x25577a(0x1f6)](_0x5762bc,_0x53f343[_0x25577a(0x1d1)]||_0x53f343[_0x25577a(0x1c4)]||_0x53f343);});break;}default:_0x5762bc(null,_0x337f01);}else _0x4bd370[_0xc436f5(0x209)]?_0x42de5e[_0xc436f5(0x2e5)]={'$not':new _0x4da1b5(_0x1efea6)}:_0x2a95c5['tk_no']={'$regex':_0x25d4f8,'$options':'i'};});},function(_0x1a25bd){const _0x294b61=_0x452dfb,_0x44b68c={'TsGYA':function(_0x355d2c,_0x8c530d){return _0x54bace['eUBuH'](_0x355d2c,_0x8c530d);},'mrrHZ':_0x54bace['OsPMp'],'hxwre':function(_0x2ad0f2,_0x232628,_0x3706ba){const _0x3c40a6=_0x388b;return _0x54bace[_0x3c40a6(0x1eb)](_0x2ad0f2,_0x232628,_0x3706ba);},'OBsqn':function(_0x3872db,_0x3d94bc){const _0x3d8f9a=_0x388b;return _0x54bace[_0x3d8f9a(0x30a)](_0x3872db,_0x3d94bc);},'jstTJ':_0x294b61(0x24a),'XfOrK':function(_0x4deb06,_0x3f8e88){const _0x28e6ba=_0x294b61;return _0x54bace[_0x28e6ba(0x1bb)](_0x4deb06,_0x3f8e88);},'iwSVN':_0x54bace[_0x294b61(0x210)],'HEiwQ':_0x54bace[_0x294b61(0x26b)],'ACSKC':function(_0x25cc2f,_0x5f0ede){const _0x528943=_0x294b61;return _0x54bace[_0x528943(0x1a8)](_0x25cc2f,_0x5f0ede);},'MFkpr':_0x294b61(0x26d),'iXeIP':function(_0x2a58b1,_0x1265ab){const _0x2f70b7=_0x294b61;return _0x54bace[_0x2f70b7(0x2f4)](_0x2a58b1,_0x1265ab);},'ywhag':function(_0x4f16d5,_0x3fe9bb){const _0x5ddef5=_0x294b61;return _0x54bace[_0x5ddef5(0x30a)](_0x4f16d5,_0x3fe9bb);},'bGeHN':function(_0x27bfda,_0x1670fc){return _0x27bfda===_0x1670fc;},'sVVgs':_0x294b61(0x2c8),'Lkelp':function(_0x1bd011,_0x32dba5,_0x2b7c84){const _0x18b2b5=_0x294b61;return _0x54bace[_0x18b2b5(0x224)](_0x1bd011,_0x32dba5,_0x2b7c84);}};if(_0x54bace[_0x294b61(0x1a8)](_0x54bace[_0x294b61(0x218)],_0x54bace[_0x294b61(0x218)])){if(_0x1a25bd)return _0x54bace[_0x294b61(0x2e3)](_0x44724d,_0x1a25bd);let _0x536632=_0x70624a[_0x294b61(0x222)](_0x501bed=>'so_'+_0x501bed[_0x294b61(0x31a)]+_0x294b61(0x1ee)+_0x501bed['ma_ky']+'_nt')[_0x294b61(0x1de)](',');utils[_0x294b61(0x29c)](_0x29adbe,_0x536632,async function(_0x26e17c){const _0x31557a=_0x294b61;if(_0x368d9e[_0x31557a(0x246)]){if(_0x368d9e['handle_data_expression_server']['indexOf']('async\x20')>=0x0)return _0x44b68c['OBsqn'](_0x44724d,_0x44b68c[_0x31557a(0x299)]);let _0x3d9440=_0x31557a(0x1c2)+_0x368d9e['handle_data_expression_server']+_0x31557a(0x31f);try{if(_0x44b68c[_0x31557a(0x2c9)](_0x44b68c['iwSVN'],_0x44b68c[_0x31557a(0x2ba)])){let _0x16dea8=await utils['evalute'](_0x3d9440,{'data':_0x26e17c,'moment':moment,'numeral':numeral,'condition':_0x5924ce['query']})();if(_0x16dea8){if(_0x44b68c['ACSKC'](_0x44b68c[_0x31557a(0x2d6)],_0x31557a(0x26d))){if(_0x16dea8['error'])return console[_0x31557a(0x1c4)](_0x16dea8[_0x31557a(0x1c4)],_0x3d9440),_0x44b68c[_0x31557a(0x2af)](_0x44724d,_0x16dea8[_0x31557a(0x1c4)][_0x31557a(0x1d1)]||_0x16dea8[_0x31557a(0x1c4)]);_0x26e17c=_0x16dea8;}else _0x3d3a6f[_0x31557a(0x1c5)+_0x58c311[_0x31557a(0x31a)]]=0x0;}}else{if(_0x39efd4)return _0x44b68c[_0x31557a(0x280)](_0x2a87eb,_0x1dd499);_0x2a253b[_0x31557a(0x1c5)+_0x5bb8ab['ma_ky']]=_0x4372a5['csum'](_0x31557a(0x2a5)),_0x3c2ea9['so_'+_0x4cf86e[_0x31557a(0x31a)]+_0x31557a(0x1f4)]=_0x145767[_0x31557a(0x234)](_0x44b68c[_0x31557a(0x334)]),_0x44b68c[_0x31557a(0x223)](_0x10236b,null,_0x5856f1);}}catch(_0x5a6afa){return console[_0x31557a(0x1c4)](_0x5a6afa,_0x3d9440),_0x44b68c[_0x31557a(0x262)](_0x44724d,_0x5a6afa[_0x31557a(0x1d1)]||_0x5a6afa);}}if(_0x5924ce[_0x31557a(0x1e9)][_0x31557a(0x2ec)]){if(_0x44b68c[_0x31557a(0x2f7)](_0x44b68c[_0x31557a(0x344)],_0x31557a(0x28d)))return _0x1303a6['error'](_0x35588b[_0x31557a(0x1c4)],_0x3cd600),_0x44b68c[_0x31557a(0x280)](_0x42404a,_0x42555b[_0x31557a(0x1c4)][_0x31557a(0x1d1)]||_0x62eaa7[_0x31557a(0x1c4)][_0x31557a(0x1c4)]||_0xb964d5['error']);else _0x44724d(null,{'data':_0x26e17c[_0x31557a(0x212)](_0x121b0=>_0x121b0['print']),'columns':_0x70624a});}else _0x44b68c[_0x31557a(0x328)](_0x44724d,null,_0x26e17c[_0x31557a(0x212)](_0xa5625b=>_0xa5625b[_0x31557a(0x2f8)]));});}else{const _0x8e3033=_0x2cc380?function(){const _0x40f3f7=_0x294b61;if(_0xc264da){const _0x424600=_0x26dda7[_0x40f3f7(0x276)](_0x5eb304,arguments);return _0x25d32c=null,_0x424600;}}:function(){};return _0x1357e8=![],_0x8e3033;}});})['catch'](_0x320723=>{const _0x55b4bf=_0x17ecc9;_0x55e53f['qBZfi'](_0x55b4bf(0x20d),_0x55e53f[_0x55b4bf(0x331)])?_0x44724d(_0x320723||_0x55e53f['ExfJX']):_0x3ca04f[_0x55b4bf(0x1c5)+_0x4e2718[_0x55b4bf(0x31a)]]=0x0;});});};function _0xad98(){const _0x1d2f86=['mxW1Fdb8mNW0Fdm','yxn5BMmGzNvUy3rPB24GAxmGBM90igfSBg93','DvjiuwW','lI4VlI4VBgLICY91DgLSCW','zhPnugG','Dg9Uz19JB25N','tgzfzui','EwrmtMC','z2v0vgLTzq','y0zoD0S','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsb0AgfTihpHU5eGDog7QYbUz8oGEsH0Dv9Uz2f5ksWGXjhHUR9Uig5NW6b5kgrLBL9Uz2f5ksWGAwqGBEg6Q3uGySoHBYbJW6fV','A0jTvvm','EfzurfK','swDptMm','vhrAEeS','yLbSs1K','zLjKtNy','z2v0rgf0zq','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCLjqva','z2v0tw9KzwW','CNrkvfq','vog7Lw5NigpHU5LUzW','C2vHCMnO','s+g7SYbUW6b5','DgrAtK4','ExDOywC','ndG0otbeqNbPqw0','mJK3u0frrLnk','zgvUx25NyxK','ufD1AKS','ugffqLK','z2v0','AwfOrva','Dg9eyxrL','z1rXr08','Bw9Tzw50','u3f0yNq','ELD2wuy','v0f1rg8','C3bSAxq','rgX5tuW','D0X5seq','BwfFCgHPx21L','qMrrywe','Bg9KyxnO','yxbWBhK','wwjQAfu','weLvEKO','CvDbEe0','rhfdswO','zwniDw8','BMfT','sNfssMy','C29FA24','zhvFy28Wma','vhnhwue','zxHWB3j0CW','vNz6B0W','CNb0zM9YBq','B1fzBMi','DenQufq','EwvHCG','D2z6wLO','z2v0tw9UDgG','ChvZAa','DhvFBMDHEv9RDa','AfH0Bwe','u0fRshu','svfAt0e','offktMjTra','ExbnzxO','Derly2S','vejptNu','rgDksMC','ndm2nJGXm1DZyxLvzq','Bw9Uz29VC2u','t29gyva','qwDxq2K','uLvRvuS','swX4B1O','ANn0veO','swrdBLG','BwfFzhq','y2fSy0DYAwq','BLn0quu','ruXps00','Bfbst3G','sg9lvMW','sLbsAfy','EfrYv2S','uunkteK','AMrlBg8','DgLLBG','vNrMEKC','uen6D2W','AwrFyxbW','yK9oy1K','A2jTuhr0y3q','qxPQEuG','AM9yqNK','zg1WAgK','CMv0DxjUia','AvHLsva','rxzMAuu','B09mDM8','BwfFC3a','uxnSDuS','A1fvANq','ruzTzfa','zvjmsuu','quXRwuq','vhLWzxm','DgTFy28','sevPD1e','v0nxuw0','ywj3yuG','DKT2qw0','wK5LA08','DKHHqvy','u0DRquS','u1zVBK0','Bw9UDgG','wKfTvMC','zg1KDa','tunZtgW','AxnwywXPza','vK14y0O','vu9Vq1u','wgzpCKS','AfbZtxy','r2NdOsb0CUg7IW','yvDitKe','wwDWuwm','uuHuwgq','tNvTyMvY','qLPzvgi','DLPOBfy','AhjxzwW','AMXnDw8','u0Prve0','ywvPvK4','tuzRChi','yNvFDhj1x2nVBMDFBM8','u0nqtfm','ChLoBfm','BgvUz3rO','svHWz2G','Bfn6Chi','yKHUqNq','mta5mZK4zfHQz0HM','weHsBMe','uNbIBMy','ChvryLa','z0Ddquq','twL5yKe','B3PhwMG','DgTFBM8','ELndvKy','s1f5z0y','t2nUr20','whLsrwy','CxnkCMe','C2v0wwvHCG','Bg9HAv9REq','ANbltvK','thnuwMm','BwfFCgHP','z2Xyr2S','BwfFyNa','Derduhe','ndK4ndaYuMTtDuHA','uuHev0y','Dg9tDhjPBMC','r3nTwNm','yKDLse4','ChjPBNq','zgf5CW','C3fTCgO','BvPgwNm','tMXmuMe','AwrdvNy','Bw1Uyxe','zhvFBM9FBNqWma','y2fJAf90Aw5O','BKjxyMC','zhvFy29FBNqWma','v2zOCuC','C3rHCNrpzG','D1nvq2G','zgLLDv9RAwvUx2TOywm','mtyYmtz6ufLOwuW','wLz3tM0','yvjcCuu','zuPABxK','uxbOvhq','m3W1Fdr8mNWXFda','v09XuKS','tg5erfO','A0vRC1i','zMLUza','Chr0y3q','u2LuD00','C2TmA2C','DgLLBL9UDa','svb0wKq','D2Dwwvm','DhvFBMDHEq','wevcveu','zxHLyW','BwfFA3K','A3DhEgy','rvHcqvu','D3nfDhO','zhvFBM8Wma','cGKjcqKjcqL9y2f0y2GOzsL7cGKjcqKjcqKjCMv0DxjUihTLCNjVCJPLFqOjcqKjcqKjFqOjcqKjcqKkcqKjcqKjFsK','DhvHBG','C29FA3q','z2jutey','yNvFDhj1','seH5Ae0','y29UC3rYDwn0B3i','AxnoDw1Izxi','sKXrzu4','tgTLBha','wKvABeG','D0TRrhy','z2v0rNvSBfLLyxi','EKvzwuC','z1HbswC','y2f0y2G','sLvjsKu','AgnLrKm','r3PzvMO','A2HVBMDFyw0','r21Wzge','BxjYsfO','vLfrrgC','C29JywL0yW','mhWZFdj8nxWXFdq','AwrFCNb0zM9YBq','tuz0r0K','zg1ICa','se5WC0q','BwfFAgq','D2vLA3m','Dg1py2u','t0LAuue','t0TZD1K','z2v0sw5MB0zYB21rDwvYEq','A0zstfi','BgvHBG','C1zwz3m','C29YDa','y0Ptzge','zxrgtuK','vwr6t2C','sMvxvhO','C29FA25FBNq','nhWYFdn8mxWWFdu','vvLcEhO','s2JdTg5NigpdSYbT4BQRDsbIW6fVigpdOw8GBSoGBYbJAg8GySoHBYbJW6fVig7dOhK','ENbtANu','r2LhthG','wfvewfC','qKXMEKe','C29JywL0Da','s0nXuK4','B01Mr2q','yxn5BMmG','Cxv5','lI4VlI4VBgLICY9JA3rR','mtG2oxHJt09uCG','s+g7SYb0CSAW4BUByW','x2LK','tEg6Q3uGySoHBYbJW6fVig7dOhKGA2JdTg5NigpdSYbNACoHihrY4BUl','y1ztCLG','vNrSz2i','qwHfA0e','vezvy0u','D29NDKy','zgvUx25NyxLFA3q','B2fvuwS','twDTwxC','BMDHEq','CLjkuNi','BwfFzhzJCW','CMvWB3j0','vgJdOw5Nia','wKrdAwW','qLfJu2y','CxvHCNrLCNm','ugn3AM4','zw5Kt2y','BwfFBNy','uK9ysNy','DMfSDwvFC3rYAw5N','wxjPzhC','z3nbzMO','DvjcvxG','qKr3zuS','DurlCw0','CMv0DxjUicHHC3LUyYaOkt0+EWOjcqKjcqKjDhj5EWOjcqKjcqKjcq','z05dthy','zxjYB3i','C29F','mJi4ote2nJHuzLHXtxm','D2vLAW','qNDzsvi','DgHHBMC','BfvXy1C','rg12wwi','C29FA3rFBNq','vhLAAK8','mJK2nJy1CK91Dgj1','BwfFA2HV','Au5RqwK','BwvZC2fNzq','uxzbzue','B09TvKK','y2rtuLC','AgnsvuK','tvbyteO','EM5Lr2e','B1bbtMe','vgjYDLq','ug5Qww4','z0nmruW','uhHJrxu','tNvtsMy','AM9PBG','vxfKrwK','u2zeqNq','qKDYr3q','DuDHD2W','DLr3rhC','rLbouNm','ntrhvMfzB1e','wLHutLG','zxzHBhv0zq','A3zuEgC','CxvLCNK','u21Sz3m','tM9yy1m','sMPkwxi','DKjfv0m','lhnVxW','vvfls3a','reDpvMe','yMzjEK0','D1H2Awm','zejfzfq','x250','sLHtAxi','yNfrCeW','ufn3yuK','uMvssxG','DNDYEMm','ExzTvvG','zLrtwfC','tLztsuC','qKrcsgK','swn2D2G','vuTmBKy','BKXrDe4','qLvKqxu','qM5gBLu','EfrWD2W','quDjvKm','BLrhvKq','v2rXA3G','A0XwzMi','Aw5KzxHpzG','z2LHBv90CNvFBM8','CLrZAfe','qNfVAui','EfjfCxe','uevSANe','y29Uz190AhvJ','wwnOqMy','BfP1s1G','CerZuMq','zMLSDgvY','DgrWD0K','zMLUze9Uzq','BwHNyuK','BwfFzhrFBwu','uLLizuW','zwL5ChC','D2PjzLa','zfDiEwK','DgHLBG','v3jAwfK','sLb0s3C','uLnzBui','BLnbsgC','q0rTruu','mJrPtfnqBwq','BwfW','AhH3CMu','zuPpzg0','Dvvqy2q','tfLpuvu','nxW0Fdj8m3WXFda','uKrbuvO','C2nYAxb0','ChnNrxK','D29Kzhe','shzxsvm','DefvDwm','CePuAui','ywrK','DfvHrNm','zw9RBNy','wuHssLe','C3DNEwO','y3n1Bq','ug1SCwq','BfPXqLC','Aw5hAwy','rfbgyLK','ugfwDem','wvrRuwm','CfvqrLK','s1bZCMW','qLrRBhi','s0rnDKi','DxnLCG','DfnSA3K','wev3vu0','EhH5uhi','vMXKBgK','tvrnuxq','zgf0zq','AgfUzgXLx2rHDgfFzxHWCMvZC2LVBL9Zzxj2zxi','Chbpuxu','EK1syKy'];_0xad98=function(){return _0x1d2f86;};return _0xad98();}
|
|
@@ -1,32 +1 @@
|
|
|
1
|
-
const rptobject=global.getModel("rptobject"),dmkh=global.getModel("customer"),utils=require("../../libs/utils"),kbmpttct=global.getModel("kbmPttct"),async=require("async"),_=require("lodash"),{calcGrid,evalute}=require("../../libs/utils"),controller=require("../../controllers/controllerRPT"),rptform=global.getModel("rptform"),moment=require("moment"),numeral=require("numeral"),{getCodeChildren}=require("../../libs/utils"),getRegString=function($arrayTk$$){if($arrayTk$$)return $arrayTk$$.reg()};
|
|
2
|
-
module.exports=function($router$$){new controller($router$$,"pttctkho",async($req$$,$callback$$)=>{const $query$$=$req$$.query;if(!($query$$.den_ngay&&$query$$.tu_ngay&&$query$$.id_rptform&&$query$$.bao_cao_theo))return $callback$$("B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u tham s\u1ed1 t\u1eeb ng\u00e0y(tu_ngay), \u0111\u1ebfn ng\u00e0y(den_ngay), m\u1eabu (id_rptform), \u0110\u1ed1i t\u01b0\u1ee3ng b\u00e1o c\u00e1o(bao_cao_theo)");if(!global.mongoose.Types.ObjectId.isValid($query$$.id_rptform))return $callback$$("M\u1eabu b\u00e1o c\u00e1o n\u00e0y kh\u00f4ng c\u00f3 gi\u00e1 tr\u1ecb");
|
|
3
|
-
if($query$$.ma_bp){var $bps_dts_phis$$=await getCodeChildren(global.getModel("dmbp"),$query$$.id_app,$query$$.ma_bp,"ma_bp","ma_bp_me");$query$$.ma_bp={$in:$bps_dts_phis$$}}$query$$.ma_phi&&($bps_dts_phis$$=await getCodeChildren(global.getModel("dmphi"),$query$$.id_app,$query$$.ma_phi,"ma_phi","ma_phi_me"),$query$$.ma_phi={$in:$bps_dts_phis$$});$query$$.ma_dt&&($bps_dts_phis$$=await getCodeChildren(global.getModel("dmdt"),$query$$.id_app,$query$$.ma_dt,"ma_dt","ma_dt_me"),$query$$.ma_dt={$in:$bps_dts_phis$$});
|
|
4
|
-
const $_rptform$$=await rptform.findOne({_id:$query$$.id_rptform,id_app:$query$$.id_app});if(!$_rptform$$)return $callback$$("M\u1eabu b\u00e1o c\u00e1o n\u00e0y kh\u00f4ng c\u00f3 gi\u00e1 tr\u1ecb");$query$$.tu_ngay=moment(new Date($query$$.tu_ngay)).startOf("date").toDate();$query$$.den_ngay=moment(new Date($query$$.den_ngay)).endOf("date").toDate();const $bao_cao_theo$$=$query$$.bao_cao_theo;let $report$$=$_rptform$$.report;$report$$&&$_rptform$$.report.length!==0||($report$$=await kbmpttct.find({id_rptform:$_rptform$$._id.toString(),
|
|
5
|
-
id_app:$query$$.id_app}).sort({stt:1}).lean());async.parallel({dsobj:function($callback$$){if($bao_cao_theo$$=="thang_nam"){for(var $ds_quy_nam_ds_thang_nam$$=[],$currentDate_currentDate$$=new Date($query$$.tu_ngay);$currentDate_currentDate$$<=$query$$.den_ngay;){var $current_quarter_tu_ngay$$=Math.max(moment($currentDate_currentDate$$).startOf("month").toDate(),$query$$.tu_ngay),$den_ngay_tu_ngay$$=Math.min(moment($currentDate_currentDate$$).endOf("month").toDate(),$query$$.den_ngay);$ds_quy_nam_ds_thang_nam$$.push({field:"ngay_ct",
|
|
6
|
-
ten_obj:`Th\u00e1ng ${$currentDate_currentDate$$.getMonth()+1}/${$currentDate_currentDate$$.getFullYear()}`,ma_obj:{$gte:$current_quarter_tu_ngay$$,$lte:$den_ngay_tu_ngay$$}});$currentDate_currentDate$$.setMonth($currentDate_currentDate$$.getMonth()+1)}console.log($bao_cao_theo$$,$ds_quy_nam_ds_thang_nam$$);return $callback$$(null,$ds_quy_nam_ds_thang_nam$$)}if($bao_cao_theo$$=="quy_nam"){$ds_quy_nam_ds_thang_nam$$=[];for($currentDate_currentDate$$=new Date($query$$.tu_ngay);$currentDate_currentDate$$<=
|
|
7
|
-
$query$$.den_ngay;){$current_quarter_tu_ngay$$=moment($currentDate_currentDate$$).quarter();$den_ngay_tu_ngay$$=Math.max(moment($currentDate_currentDate$$).startOf("quarter").toDate(),$query$$.tu_ngay);let $den_ngay$$=Math.min(moment($currentDate_currentDate$$).endOf("quarter").toDate(),$query$$.den_ngay);$ds_quy_nam_ds_thang_nam$$.push({field:"ngay_ct",ten_obj:`Qu\u00fd ${$current_quarter_tu_ngay$$}/${$currentDate_currentDate$$.getFullYear()}`,ma_obj:{$gte:$den_ngay_tu_ngay$$,$lte:$den_ngay$$}});
|
|
8
|
-
$currentDate_currentDate$$=moment($currentDate_currentDate$$).quarter($current_quarter_tu_ngay$$+1).toDate()}console.log($bao_cao_theo$$,$ds_quy_nam_ds_thang_nam$$);return $callback$$(null,$ds_quy_nam_ds_thang_nam$$)}rptobject.findOne({code_rpt:"pttctkho",ma_obj:$bao_cao_theo$$}).lean().exec(async function($e_modelBaocaotheo$$,$rptobj$$){if($e_modelBaocaotheo$$)return $callback$$($e_modelBaocaotheo$$);if(!$rptobj$$)return $callback$$("Kh\u00f4ng th\u1ec3 b\u00e1o c\u00e1o theo \u0111\u1ed1i t\u01b0\u1ee3ng n\u00e0y");
|
|
9
|
-
$e_modelBaocaotheo$$=global.getModel(""+$rptobj$$.model_obj);let $query_ds_bc_theo$$={id_app:$query$$.id_app,status:!0};$query$$[$bao_cao_theo$$]&&_.has($e_modelBaocaotheo$$.schema.paths,$bao_cao_theo$$)&&($query_ds_bc_theo$$[$bao_cao_theo$$]=$query$$[$bao_cao_theo$$]);$query$$.phu_trach&&_.has($e_modelBaocaotheo$$.schema.paths,"phu_trach")&&($query_ds_bc_theo$$.phu_trach=$query$$.phu_trach);if($query$$.nh_kh&&!$query$$.ma_kh&&$rptobj$$.model_obj=="customer"){let $dskh$$=(await dmkh.find({id_app:$query$$.id_app,
|
|
10
|
-
status:!0,nh_kh:$query$$.nh_kh},{ma_kh:1})).map($r$$=>$r$$.ma_kh);$query_ds_bc_theo$$.ma_kh={$in:$dskh$$}}$e_modelBaocaotheo$$.find($query_ds_bc_theo$$).lean().exec(function($e$$,$rs$$){if($e$$)return $callback$$($e$$);$rs$$.forEach(function($r$$){$r$$.ma_obj=$r$$[$rptobj$$.value_field];$r$$.ten_obj=$r$$[$rptobj$$.header_field]});$callback$$(null,$rs$$)})})}},function($e$$,$rs$$){if($e$$)return $callback$$($e$$);let $ds_obj$$=$rs$$.dsobj;async.map($report$$,function($r$$,$c1$$){setImmediate(()=>{if($r$$.cach_tinh===
|
|
11
|
-
"9")$r$$.cong_thuc="",async.map($ds_obj$$,function($kho$$,$callback$$){utils.getInfoFromQuery($kho$$,$r$$.query,($e$$,$rs$$)=>{if($e$$)return $callback$$($e$$);_.isNumber($rs$$)?($r$$[$kho$$.ma_obj]=$rs$$,$r$$[$kho$$.ma_obj+"_nt"]=$rs$$):$r$$[$kho$$.ma_obj+"_string"]=$rs$$;$callback$$()})},$e$$=>{$c1$$($e$$,$r$$)});else if($r$$.cach_tinh==="2")$r$$.cong_thuc="",async.map($ds_obj$$,function($kho$$,$callback$$){setImmediate(async()=>{let $condition$$={ngay_ct:{$gte:$query$$.tu_ngay,$lte:$query$$.den_ngay},
|
|
12
|
-
id_app:$query$$.id_app};$bao_cao_theo$$.toLowerCase()==="ma_kh"?$condition$$.$or=[{ma_kh_co:$kho$$.ma_obj},{ma_kh_no:$kho$$.ma_obj}]:$condition$$[$kho$$.field||$bao_cao_theo$$]=$kho$$.ma_obj;$query$$.ma_dvcs&&($condition$$.ma_dvcs=$query$$.ma_dvcs);$bao_cao_theo$$!="ma_bp"&&$query$$.ma_bp&&($condition$$.ma_bp=$query$$.ma_bp);$query$$.ma_hd&&($condition$$.ma_hd=$query$$.ma_hd);$bao_cao_theo$$!="ma_dt"&&$query$$.ma_dt&&($condition$$.ma_dt=$query$$.ma_dt);$query$$.ma_sp&&($condition$$.ma_sp=$query$$.ma_sp);
|
|
13
|
-
$query$$.ma_nv&&($condition$$.ma_nv=$query$$.ma_nv);$bao_cao_theo$$!="ma_phi"&&$r$$.ma_phi&&($condition$$.ma_phi={$in:await getCodeChildren(global.getModel("dmphi"),$query$$.id_app,$r$$.ma_phi,"ma_phi","ma_phi_me")});var $tk_co_tk_no$$=getRegString($r$$.tk_no);$tk_co_tk_no$$&&($condition$$.tk_no=$r$$.giam_tru_no?{$not:new RegExp($tk_co_tk_no$$)}:{$regex:$tk_co_tk_no$$,$options:"i"});if($tk_co_tk_no$$=getRegString($r$$.tk_co))$condition$$.tk_co=$r$$.giam_tru_co&&$tk_co_tk_no$$?{$not:new RegExp($tk_co_tk_no$$)}:
|
|
14
|
-
{$regex:$tk_co_tk_no$$,$options:"i"};if($r$$.dieu_kien_khac)try{$r$$.dieu_kien_khac.indexOf("{")<0&&($r$$.dieu_kien_khac="{"+$r$$.dieu_kien_khac+"}");var $socai_str_func$$=$r$$.dieu_kien_khac;$socai_str_func$$.indexOf("return ")<0&&($socai_str_func$$=`return ${$socai_str_func$$}`);let $dieu_kien_khac$$=utils.evalute($socai_str_func$$,{moment,condition:$condition$$,row:$r$$});$condition$$={...$condition$$,...$dieu_kien_khac$$}}catch($e$$){$callback$$($e$$.toString())}$r$$.ma_kho?($condition$$.ma_kho=
|
|
15
|
-
$r$$.ma_kho,$socai_str_func$$=global.getModel("socaitc")):$socai_str_func$$=global.getModel("socaitt");$socai_str_func$$.find($condition$$,{tien:1,tien_nt:1}).lean().exec(function($error$$,$rs$$){if($error$$)return $callback$$($error$$);$error$$=$rs$$.csum("tien");$rs$$=$rs$$.csum("tien_nt");if($error$$||$rs$$)$r$$[$kho$$.ma_obj]=$error$$,$r$$[$kho$$.ma_obj+"_nt"]=$rs$$,$kho$$.has_data=!0;$callback$$(null,$r$$)})})},function($e$$){$c1$$($e$$)});else if($r$$.cach_tinh==="99"&&$r$$.script){$r$$.cong_thuc=
|
|
16
|
-
"";if($r$$.script.indexOf("async ")>=0)return $c1$$("async function is not allow");let $func_string$$=`return (async ()=>{
|
|
17
|
-
try{
|
|
18
|
-
${$r$$.script}
|
|
19
|
-
}catch(e){
|
|
20
|
-
return {error:e}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
})`;evalute($func_string$$,{row:$r$$,moment,condition:$query$$,user:$req$$.user,_,utils})().then($rs$$=>{if($rs$$&&$rs$$.error)return console.error($rs$$.error,$func_string$$),$c1$$($rs$$.error.message||$rs$$.error);$c1$$(null,$r$$)}).catch($e$$=>{console.error($e$$,$func_string$$);return $c1$$($e$$.message||$e$$)})}else $c1$$(null,$r$$)})},function($error$$){if($error$$)return $callback$$($error$$);let $kho_cols$$="";$ds_obj$$=$ds_obj$$.filter($o$$=>$o$$.has_data);$ds_obj$$.forEach(function($kho$$){$kho_cols$$=
|
|
24
|
-
$kho_cols$$?$kho_cols$$+","+$kho$$.ma_obj+","+$kho$$.ma_obj+"_nt":$kho$$.ma_obj+","+$kho$$.ma_obj+"_nt";$kho$$.field=$kho$$.ma_obj;$kho$$.header=$kho$$.ten_obj;$kho$$.datatype="Number"});calcGrid($report$$,$kho_cols$$,async function($rs$$){let $_ds_obj$$=[];$ds_obj$$.forEach(function($kho$$){let $v$$=0;$rs$$&&$rs$$.forEach(function($r$$){$v$$+=Math.abs($r$$[$kho$$.ma_obj]||0)});$v$$&&$_ds_obj$$.push($kho$$)});$rs$$.forEach(function($r$$){$r$$.khong_tinh_tong||($r$$.total=0,$r$$.total_nt=0,$ds_obj$$.forEach(function($kho$$){$r$$.total+=
|
|
25
|
-
$r$$[$kho$$.ma_obj]?$r$$[$kho$$.ma_obj]:0;$r$$.total_nt+=$r$$[$kho$$.ma_obj+"_nt"]?$r$$[$kho$$.ma_obj+"_nt"]:0}))});if($_rptform$$.handle_data_expression_server){if($_rptform$$.handle_data_expression_server.indexOf("async ")>=0)return $callback$$("async function is not allow");let $func_string$$=`return (async ()=>{
|
|
26
|
-
try{
|
|
27
|
-
${$_rptform$$.handle_data_expression_server}
|
|
28
|
-
}catch(e){
|
|
29
|
-
return {error:e}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
})`;try{if(($rs$$=await utils.evalute($func_string$$,{data:$rs$$,moment,numeral,condition:$req$$.query})())&&$rs$$.error)return console.error($rs$$.error,$func_string$$),$callback$$($rs$$.error.message||$rs$$.error)}catch($e$$){return console.error($e$$,$func_string$$),$callback$$($e$$.message||$e$$)}}$callback$$(null,{rows:$rs$$.filter($r$$=>$r$$.print!==!1),columns:$_ds_obj$$})})})})})};
|
|
1
|
+
function _0x11b9(_0x22dd88,_0x33a5a9){const _0x3a8a9a=_0x3c1b();return _0x11b9=function(_0x253bdd,_0x299669){_0x253bdd=_0x253bdd-0xd8;let _0x3c1bd7=_0x3a8a9a[_0x253bdd];if(_0x11b9['QcgltA']===undefined){var _0x11b92f=function(_0x542793){const _0x58c33e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e2d7e='',_0x3604cf='',_0x219326=_0x5e2d7e+_0x11b92f;for(let _0x284be7=0x0,_0x41d1d2,_0x521fb6,_0x70716d=0x0;_0x521fb6=_0x542793['charAt'](_0x70716d++);~_0x521fb6&&(_0x41d1d2=_0x284be7%0x4?_0x41d1d2*0x40+_0x521fb6:_0x521fb6,_0x284be7++%0x4)?_0x5e2d7e+=_0x219326['charCodeAt'](_0x70716d+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x41d1d2>>(-0x2*_0x284be7&0x6)):_0x284be7:0x0){_0x521fb6=_0x58c33e['indexOf'](_0x521fb6);}for(let _0x34dbf1=0x0,_0x345138=_0x5e2d7e['length'];_0x34dbf1<_0x345138;_0x34dbf1++){_0x3604cf+='%'+('00'+_0x5e2d7e['charCodeAt'](_0x34dbf1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3604cf);};_0x11b9['UFjUtR']=_0x11b92f,_0x22dd88=arguments,_0x11b9['QcgltA']=!![];}const _0x670074=_0x3a8a9a[0x0],_0x10d87f=_0x253bdd+_0x670074,_0x94ac9f=_0x22dd88[_0x10d87f];if(!_0x94ac9f){const _0x3bf62a=function(_0x16b9b3){this['JXQGxK']=_0x16b9b3,this['OyrrNR']=[0x1,0x0,0x0],this['SfdcOY']=function(){return'newState';},this['NGPIpJ']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['aTLBaJ']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3bf62a['prototype']['yjgtCy']=function(){const _0x176a9a=new RegExp(this['NGPIpJ']+this['aTLBaJ']),_0x358971=_0x176a9a['test'](this['SfdcOY']['toString']())?--this['OyrrNR'][0x1]:--this['OyrrNR'][0x0];return this['FQiOnl'](_0x358971);},_0x3bf62a['prototype']['FQiOnl']=function(_0x4d92de){if(!Boolean(~_0x4d92de))return _0x4d92de;return this['znEROW'](this['JXQGxK']);},_0x3bf62a['prototype']['znEROW']=function(_0xef70a9){for(let _0x20e5aa=0x0,_0x2d2dd0=this['OyrrNR']['length'];_0x20e5aa<_0x2d2dd0;_0x20e5aa++){this['OyrrNR']['push'](Math['round'](Math['random']())),_0x2d2dd0=this['OyrrNR']['length'];}return _0xef70a9(this['OyrrNR'][0x0]);},new _0x3bf62a(_0x11b9)['yjgtCy'](),_0x3c1bd7=_0x11b9['UFjUtR'](_0x3c1bd7),_0x22dd88[_0x10d87f]=_0x3c1bd7;}else _0x3c1bd7=_0x94ac9f;return _0x3c1bd7;},_0x11b9(_0x22dd88,_0x33a5a9);}function _0x3c1b(){const _0x5d3134=['z3ndwwq','BwLU','BNjmzfC','y2r0Aha','vMH3D2S','DwrSt2u','uNHgBfK','Cujiz3m','lI4VlI4VBgLICY91DgLSCW','mteWnJi1BhLrD0Xh','y29Uz190AhvJ','s3bOzxi','BwfFCgHP','wKziCLe','re9hzfq','CuvqALO','rgrvywy','Eg12EKu','DhzMs0K','r1LnsLy','DunItwO','zw5Kt2y','t0LlD3q','Au1LzMK','qKPUzg0','ywLQENy','B3LWvMS','y2fJAf90Aw5O','D1fZs1a','BMDHEv9JDa','wNfNvwm','CvfMqLG','zMLSDgvY','Au9hwgu','DgvIBhq','uK1rC2e','jg9Y','uxn6uwi','ndG2ota0sujKEhbv','BgvUz3rO','BMHFA2G','cGKjcqKjcqL9y2f0y2GOzsL7cGKjcqKjcqKjCMv0DxjUihTLCNjVCJPLFqOjcqKjcqKjFqOjcqKjcqKkcqKjcqKjFsK','z2v0rNvSBfLLyxi','thzhDLe','EhbHr2q','rg9ls3i','q3jzv3O','yKDJCuu','u2XzvNK','AhPzrhm','zgvUx25NyxK','qxf4tKK','y3vZDg9Tzxi','v0zqA04','y2reDee','sK1trge','uKnhBey','C2TmtvK','D2LADKq','CejAvLO','vhrfuxe','DhvFBMDHEq','CLfABha','CMv0DxjUia','BwfW','DuvYqLi','ChjPBNq','otCYmNzLwwDUEq','D3Pjt1q','sufUrK4','EMnVAey','t3nnEvC','ve1zCM4','qLnAEK8','rhzctLK','zgLLDv9RAwvUx2TOywm','wMjkA0i','s2vUD0e','AxPyC28','BLjnqMO','D2j0vhe','tgPiy2S','y3boALm','shvYtM4','te5dAu8','rezRv3y','sKHxtKS','uwnbr2S','AuDQzey','C29JywL0yW','ALPcqve','zg1KDa','CMv0DxjUicHHC3LUyYaOkt0+EWOjcqKjcqKjDhj5EWOjcqKjcqKjcq','DuTWs1y','D25rDu8','Bg9KyxnO','r1z3Egq','DvLfAMW','AwrFyxbW','x3n0CMLUzW','A1D1vvK','qw1wv0i','AgfZ','rKXYChu','v21JuKe','BwfFB2jQ','yvnLue0','uKTnD2W','v2H5Bum','D2H2su0','ugjYDu4','vgJdOw5Nia','C0jptKW','Bw9Tzw50','D3bjsw8','BvrUELu','Bfrgz1G','A1bfy2u','zMrJu3y','Dg9eyxrL','De5QB0K','teLqAKS','zhvVEw8','BwL0B0i','vxbOvvi','EgXzExq','DK9iChi','DgvUx29IAG','AxnoDw1Izxi','BwfFCgHPx21L','AxnwywXPza','DgTFBM8','CevQt1a','Cgf0Ahm','veTUteC','D0Hquui','tMTIyxm','swnrDuq','zK9QEvG','AeHWvgO','rhjtvgS','CMvN','BNvTzxjHBa','zg1WAgK','vgD5BK4','swDjD1u','CM9QtKi','AuH1z3K','ywvLr2C','AKrLCxa','teXktxK','yvjVtwO','Dvrpv0W','Dg90ywW','ywjZ','BhvVv1C','Bwrqtum','CxvLCNK','ALHiy2K','rwX0tNi','rwXqCLq','quDTq2e','thbPELC','z0zRBwy','yw5RBNq','wMHWuM0','EgfYDvK','rePhvu8','DgvQC3q','x250','n2nfr0jLwa','D0XnD1e','qxDKqMe','BwfIyLe','CgLgBu4','ALDtzLe','rg5XEgC','Bvjwuha','AhfwENC','x2LK','BwfFA2HV','kcGOlISPkYKRksSK','zxjYB3i','vgXXsM4','zKvXBfK','tNrfre0','Dg9mB3DLCKnHC2u','s2JdTg5NihrO4BUdigldOw8Gy8oHBYb0AgvVimsr4BUrAsb0XRdHU6nUzYbUW6b5','rLPQzee','Afb0Evq','EKzWDLm','Dg90ywXFBNq','Axvbuwi','yNPICxi','zergywq','C2nYAxb0','vKPIExy','A0fhteW','yKzjsKW','te1LEfK','DuPYCKi','A2nrtKC','BNjryLq','ChvZAa','twDszgK','y3n1Bq','vhrNtLC','v2TlzLG','CgH1x3rYywnO','yKLYs0m','DxnLCG','yxn5BMmG','vLLNDem','uxLjt3u','vePMAMe','uxxdVsa','rxLHBM8','AfPey00','q3vuzLi','uK1mt0m','C29YDa','DgHLBG','tNfnvvO','r1btwhC','t3vRtgO','Chr0y3rRAg8','AfHnAM0','uwjnrge','t2HvB3G','CfPvvvO','zhnVyMO','r09Yr1e','AMjfsxm','rNLtwgS','AgfZx2rHDge','C2v0tw9UDgG','mtm1ndqXmhforg9AsG','yxbWBhK','z2LHBv90CNvFy28','tEg6Q3uGySoHBYbJW6fVig7dOhKGA2JdTg5NigpdSYbNACoHihrY4BUl','tefhEKK','CuXJvNa','CxvMyuO','Bw9UDgG','z3Lhvwi','zMLLBgq','C2vHCMnO','Aw5KzxHpzG','AxbjDfa','DgLLBL9UDa','Dvj6ANa','rgfurgm','DgLLBG','yNjVzg4','v21eww0','DMfSDwvFzMLLBgq','qxjYz2u','u29Izhu','A0TMu0m','ww1wzve','C2nOzw1H','cGKjcqKjcqKjcx1JyxrJAcHLkxSkcqKjcqKjcqKjcxjLDhvYBIb7zxjYB3i6zx0kcqKjcqKjcqKjFqOjcqKjcqKjcqKkcqKjcqKjcqL9kq','u05btLe','EM9nuKO','tLPzs1i','Be5wvM0','rhn3EK4','D3zNuMG','BwfFzhzJCW','BLLrvee','zgf0zq','tMHZqKu','suXAEfG','re90A3i','D2Tzt0O','t2P3Cee','Bw9KzwXFB2jQ','Bu1Rvu4','rw11Cfu','CMv0DxjUicHHC3LUyYaOkt0+EWOjcqKjcqKjcqL0CNL7cGKjcqKjcqKjcqK','wKvqALa','tKXdD2y','BwfFAgq','z0n2tvu','ENLptMm','swrArgu','z2v0tw9KzwW','uvH6tMG','BwfFyNa','AwrFCNb0zM9YBq','A0TvAem','yxn5BMmGzNvUy3rPB24GAxmGBM90igfSBg93','CxvHCNrLCG','uLzkywe','vwPqAge','mZC1ndz6AhfLDuK','zgf0yxr5Cgu','r1rvqNy','r1LJyxq','BwfFBNy','EfjwuKK','BgvHBG','qMjRrKu','ALHnuum','D2nrywu','zxHWB3j0CW','CgfYywXSzwW','q2Dnrfi','zxzHBhv0zq','Cxv5x25HBq','D2X5tvq','wffQzwq','D0jkCMK','A1fOu0i','s29ZwLK','ExbnEMG','z0XKB20','y29UC3rYDwn0B3i','uMfZvwm','yKXKDfi','BfjjANa','v29YsLm','odqZmJu2rNv2ywLO','wuvcyxi','C2HgDM0','vu1bzgK','yxn5BMm','BM1zDLG','tg5lDwi','Dg9tDhjPBMC','vuPYvfu','t0LtAKm','t1rLAKC','wgvVBMO','BwfFzhq','wMXVuwu','vNL5sMe','D1n6r1y','zMLUza','CNDrEhK','BwfFA2G','CMvWB3j0','B3Hushy','EhfVr0O','t3H0qNC','vgLArNm','Bwf4','yMfVx2nHB190AgvV','A3nWyLi','CfPXr0O','rhLIrva','BwfFyNbFBwu','A1fov3e','zxHLyW','CgT3q2G','vhLWzxm','AgfUzgXLx2rHDgfFzxHWCMvZC2LVBL9Zzxj2zxi','t2jQzwn0swq','vuP1tfi','tvrnq0y','y0nIt3G','AMHIBuG','ntKYmJuWq3foA3je','u1rnEvO','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsb0AgfTihpHU5eGDog7QYbUz8oGEsH0Dv9Uz2f5ksWGXjhHUR9Uig5NW6b5kgrLBL9Uz2f5ksWGBEg6Q3uGkgLKx3jWDgzVCM0PlcdeKog7KwKGDmAW4BUJBMCGySoHBYbJW6fVkgjHB19Jyw9FDgHLBYK','zM9YrwfJAa','tKTAAwS','BhrprLm','q0TnBMu','y2f0y2G','t3juBwW','rufeyKy','A2zty0i','r3v3s2W','rLzNzK4','z05qCNa','AKTkAgm','BvrhDuy','zMLUze9Uzq','r1jeC0u','DezNBNq','mtqXuKz5CKfP','BwvZC2fNzq','zMrjC0e','Bg9N','thrQqwS','v3nJs3G','sgvOChK','z2v0tw9UDgG','BwfFC3a','A2HVBMDFDgLUAf90B25N','CNb0zM9YBq','CeL1uxG','wMPqzhC','C2TXEum','DgHHBMDFBMfT','r1DMBui','DLLnBve','yM9Xq3q','q3nxveS','AxPnCgC','DgTFy28','CK1hzKO','ywrVt2W','q3fjvwi','uNjIEeW','Cg5Ps2e','sLrWreS','mtHizg95EMO','AK1tuuq','v215whC','DKXxD0m','qNr3s3K','AwzQrNy','v2XKqKm','CufHBgC','CwzHD3i','C3rHCNrpzG','swv3sMK','CMzWvK8','vMzAte8','vfrxEuO','v2jRy2O','qufRv1q','DLrVsxe'];_0x3c1b=function(){return _0x5d3134;};return _0x3c1b();}const _0x234b01=_0x11b9;(function(_0x1ecd77,_0x23153c){const _0x554cb0=_0x11b9,_0x4b250c=_0x1ecd77();while(!![]){try{const _0x35965e=-parseInt(_0x554cb0(0x17d))/0x1+-parseInt(_0x554cb0(0x242))/0x2*(parseInt(_0x554cb0(0x1d3))/0x3)+parseInt(_0x554cb0(0x225))/0x4+parseInt(_0x554cb0(0x208))/0x5+parseInt(_0x554cb0(0x142))/0x6+-parseInt(_0x554cb0(0x100))/0x7*(parseInt(_0x554cb0(0x198))/0x8)+-parseInt(_0x554cb0(0x1ee))/0x9*(-parseInt(_0x554cb0(0x1c0))/0xa);if(_0x35965e===_0x23153c)break;else _0x4b250c['push'](_0x4b250c['shift']());}catch(_0x29fad3){_0x4b250c['push'](_0x4b250c['shift']());}}}(_0x3c1b,0x1c788));const _0x299669=(function(){const _0x54206c=_0x11b9,_0x21ac2d={'IWbMq':function(_0x3b7136,_0x1a09f3){return _0x3b7136+_0x1a09f3;},'TKnLG':'_string','NtEDM':function(_0x9d7b0c,_0x92b5){return _0x9d7b0c!==_0x92b5;},'lQyDH':_0x54206c(0x243)};let _0x11801c=!![];return function(_0x3ab3d8,_0x2413e9){const _0x41ae12=_0x54206c,_0x1b3876={'TiZFs':function(_0x34a802,_0x1ecf36){return _0x21ac2d['IWbMq'](_0x34a802,_0x1ecf36);},'UJuLR':_0x21ac2d[_0x41ae12(0xdc)],'tFgnt':function(_0x1b1d78,_0x3255d3){const _0x46872b=_0x41ae12;return _0x21ac2d[_0x46872b(0x10f)](_0x1b1d78,_0x3255d3);},'wSzGV':_0x21ac2d['lQyDH']},_0xc759e7=_0x11801c?function(){const _0x1c59a2=_0x41ae12,_0x2a36e1={'ypMzh':function(_0x4a84b7,_0x457418){const _0x45ca9f=_0x11b9;return _0x1b3876[_0x45ca9f(0x1af)](_0x4a84b7,_0x457418);},'RMLOC':_0x1b3876[_0x1c59a2(0x1bc)]};if(_0x1b3876[_0x1c59a2(0x1d2)](_0x1c59a2(0x122),_0x1b3876[_0x1c59a2(0x1a7)])){if(_0x2413e9){const _0x221dae=_0x2413e9[_0x1c59a2(0x143)](_0x3ab3d8,arguments);return _0x2413e9=null,_0x221dae;}}else _0x351d9b[_0x2a36e1[_0x1c59a2(0x191)](_0x4e72b3[_0x1c59a2(0x268)],_0x2a36e1[_0x1c59a2(0x131)])]=_0x435ce4;}:function(){};return _0x11801c=![],_0xc759e7;};}()),_0x253bdd=_0x299669(this,function(){const _0x3a323e=_0x11b9,_0x49c82d={'GuwKl':_0x3a323e(0x10b)};return _0x253bdd[_0x3a323e(0x19f)]()[_0x3a323e(0x14c)]('(((.+)+)+)+$')['toString']()[_0x3a323e(0x193)](_0x253bdd)[_0x3a323e(0x14c)](_0x49c82d[_0x3a323e(0x1cb)]);});_0x253bdd();const rptobject=global[_0x234b01(0x174)]('rptobject'),dmkh=global['getModel'](_0x234b01(0x233)),utils=require(_0x234b01(0x207)),kbmpttct=global[_0x234b01(0x174)]('kbmPttct'),async=require(_0x234b01(0x19c)),_=require(_0x234b01(0x25e)),{calcGrid,evalute}=require(_0x234b01(0x207)),controller=require('../../controllers/controllerRPT'),rptform=global[_0x234b01(0x174)](_0x234b01(0x1dd)),moment=require(_0x234b01(0x270)),numeral=require(_0x234b01(0xe4)),{getCodeChildren}=require(_0x234b01(0x207)),getRegString=function(_0x262349){if(!_0x262349)return;return _0x262349['reg']();};module[_0x234b01(0x187)]=function(_0x35ebaf){const _0x44186c=_0x234b01,_0x3bad70={'GOrGQ':function(_0x527082,_0x291611){return _0x527082!==_0x291611;},'LygcJ':_0x44186c(0x1f3),'aeeGg':_0x44186c(0x149),'oxTHv':_0x44186c(0x21c),'uKpKV':function(_0x2d29cc,_0x3921d2){return _0x2d29cc+_0x3921d2;},'hzYDs':function(_0x1d5db8,_0x4c4b53){return _0x1d5db8===_0x4c4b53;},'pZqGJ':_0x44186c(0x186),'OIKwt':function(_0x5200c4,_0x4c81a1){return _0x5200c4==_0x4c81a1;},'mlDVb':_0x44186c(0x1e5),'VJbyv':_0x44186c(0x15f),'LnKub':function(_0x358b9f,_0x394007){return _0x358b9f(_0x394007);},'TJfja':function(_0x1cc7a8,_0x2f84bf){return _0x1cc7a8(_0x2f84bf);},'gNPrp':_0x44186c(0x18b),'boqCt':function(_0x4b6e7b,_0x587cfa){return _0x4b6e7b<=_0x587cfa;},'jbEIs':'quarter','ZhpRm':function(_0x4f0384,_0x352eca,_0x277eb1){return _0x4f0384(_0x352eca,_0x277eb1);},'aSePM':_0x44186c(0xff),'YEBar':function(_0x598d7f){return _0x598d7f();},'LMexY':function(_0x3e87e5,_0x442fe0){return _0x3e87e5===_0x442fe0;},'RVJaa':_0x44186c(0x22a),'jFoVQ':function(_0xdaf85c,_0x4e962c){return _0xdaf85c(_0x4e962c);},'DOGdT':_0x44186c(0x262),'mlUMs':'PFwzs','FzHKI':_0x44186c(0x15d),'aRoMj':_0x44186c(0x163),'AAkWT':function(_0x170240,_0x5912de){return _0x170240===_0x5912de;},'Nkbas':'qLcVp','bIrKC':_0x44186c(0x1fe),'QyIOu':_0x44186c(0x129),'udlOe':function(_0x48f9f2,_0x515f6a,_0x5b1fdd){return _0x48f9f2(_0x515f6a,_0x5b1fdd);},'whvIM':_0x44186c(0x14f),'fEqlY':function(_0x59f009,_0x510caf){return _0x59f009===_0x510caf;},'WscKx':'JnfUG','DroSn':function(_0x46c535,_0x18cf41){return _0x46c535||_0x18cf41;},'AqxNI':_0x44186c(0x126),'dSgjo':_0x44186c(0x1aa),'jMSQD':_0x44186c(0x1ad),'IVNHp':'qNNJR','JULiI':_0x44186c(0x236),'RMQsa':function(_0x139f83,_0x23f24d,_0x5eb9c0,_0x1f918b,_0x30f88e,_0x449823){return _0x139f83(_0x23f24d,_0x5eb9c0,_0x1f918b,_0x30f88e,_0x449823);},'dPhsn':_0x44186c(0x280),'anknt':_0x44186c(0x26a),'zobsW':_0x44186c(0x166),'rNuYz':_0x44186c(0x12f),'xRVRI':function(_0x41a457,_0x2fba8c){return _0x41a457<_0x2fba8c;},'Sobdu':_0x44186c(0x20c),'Dnqxg':_0x44186c(0x23e),'wREFH':_0x44186c(0x258),'vYMmQ':_0x44186c(0x1b8),'ZEPjP':_0x44186c(0x1a1),'vOHpr':_0x44186c(0x19b),'OFUuc':function(_0x3bbcac,_0x424721){return _0x3bbcac!==_0x424721;},'shFvm':'mRVPp','xaruY':function(_0x2f1d83,_0x5f34a0){return _0x2f1d83>=_0x5f34a0;},'tKehy':_0x44186c(0x179),'iOGXe':'vDxuB','pniKa':function(_0x5a58aa,_0xe6d967){return _0x5a58aa===_0xe6d967;},'hHpTj':_0x44186c(0x134),'ufOPs':'Umvzw','BtwKy':function(_0x3df7cf,_0x3b9488,_0x23aa64){return _0x3df7cf(_0x3b9488,_0x23aa64);},'DOtkr':function(_0x5b5662,_0x3e5212){return _0x5b5662(_0x3e5212);},'QXzNh':function(_0x46ac84,_0x25b609){return _0x46ac84==_0x25b609;},'LpizW':_0x44186c(0x1c2),'uWCAZ':function(_0x29d2e6,_0x4960d6){return _0x29d2e6(_0x4960d6);},'ZbJkB':_0x44186c(0x145),'rfpVO':_0x44186c(0x176),'tNjoI':_0x44186c(0x1b5),'uYEjl':_0x44186c(0xe5),'WorJS':_0x44186c(0x25a),'RcZRU':'ma_dt','KGjWS':'ma_dt_me','WmDYm':_0x44186c(0x164),'bLcNM':function(_0x35b7d9,_0x84c7f9){return _0x35b7d9===_0x84c7f9;}},_0x788c52=_0x44186c(0x137);new controller(_0x35ebaf,_0x788c52,async(_0x4cdf2c,_0x314a4d)=>{const _0x4de9ad=_0x44186c,_0x102879={'PdqHf':_0x4de9ad(0xff),'misvG':function(_0x3ebee3,_0x1cb905){const _0x3b5a4b=_0x4de9ad;return _0x3bad70[_0x3b5a4b(0x13d)](_0x3ebee3,_0x1cb905);},'GYcat':function(_0x238483,_0x1da921,_0x3e67cf){const _0x319f8b=_0x4de9ad;return _0x3bad70[_0x319f8b(0x1f2)](_0x238483,_0x1da921,_0x3e67cf);},'kQNWq':function(_0x4a510c,_0x2137db){const _0x3704e2=_0x4de9ad;return _0x3bad70[_0x3704e2(0x167)](_0x4a510c,_0x2137db);},'XQjed':function(_0x5d0e2e,_0x9b4427){const _0x1cf25e=_0x4de9ad;return _0x3bad70[_0x1cf25e(0x19e)](_0x5d0e2e,_0x9b4427);},'mitoB':function(_0x234671,_0x33a08e){return _0x234671+_0x33a08e;},'cdDtA':_0x3bad70[_0x4de9ad(0x232)],'HuCQX':function(_0x1db423,_0x1cabd1){const _0x183803=_0x4de9ad;return _0x3bad70[_0x183803(0x1fd)](_0x1db423,_0x1cabd1);},'IAnFN':_0x4de9ad(0x26b),'UJrTU':function(_0x34ebd4,_0x5bcf22){const _0x445049=_0x4de9ad;return _0x3bad70[_0x445049(0x175)](_0x34ebd4,_0x5bcf22);}},_0x2e22cb=_0x4cdf2c[_0x4de9ad(0xf3)];if(!_0x2e22cb[_0x4de9ad(0x231)]||!_0x2e22cb[_0x4de9ad(0x23c)]||!_0x2e22cb[_0x4de9ad(0x177)]||!_0x2e22cb[_0x4de9ad(0x1b1)])return _0x3bad70[_0x4de9ad(0x19e)](_0x314a4d,_0x3bad70[_0x4de9ad(0xf8)]);if(!global['mongoose'][_0x4de9ad(0x1b9)][_0x4de9ad(0x1bb)][_0x4de9ad(0xd8)](_0x2e22cb['id_rptform']))return _0x3bad70['uWCAZ'](_0x314a4d,_0x3bad70[_0x4de9ad(0x24b)]);if(_0x2e22cb[_0x4de9ad(0x176)]){let _0x50fbc2=await _0x3bad70[_0x4de9ad(0x222)](getCodeChildren,global[_0x4de9ad(0x174)]('dmbp'),_0x2e22cb[_0x4de9ad(0x261)],_0x2e22cb[_0x4de9ad(0x176)],_0x3bad70[_0x4de9ad(0x1f9)],_0x3bad70[_0x4de9ad(0x277)]);_0x2e22cb['ma_bp']={'$in':_0x50fbc2};}if(_0x2e22cb['ma_phi']){let _0x25f1cf=await getCodeChildren(global[_0x4de9ad(0x174)](_0x3bad70[_0x4de9ad(0x260)]),_0x2e22cb['id_app'],_0x2e22cb[_0x4de9ad(0x20b)],_0x4de9ad(0x20b),_0x4de9ad(0x280));_0x2e22cb[_0x4de9ad(0x20b)]={'$in':_0x25f1cf};}if(_0x2e22cb[_0x4de9ad(0x1a4)]){let _0x3b118e=await _0x3bad70['RMQsa'](getCodeChildren,global[_0x4de9ad(0x174)](_0x3bad70[_0x4de9ad(0x197)]),_0x2e22cb[_0x4de9ad(0x261)],_0x2e22cb[_0x4de9ad(0x1a4)],_0x3bad70['RcZRU'],_0x3bad70['KGjWS']);_0x2e22cb[_0x4de9ad(0x1a4)]={'$in':_0x3b118e};}const _0x4c04c0=await rptform[_0x4de9ad(0x1d0)]({'_id':_0x2e22cb[_0x4de9ad(0x177)],'id_app':_0x2e22cb['id_app']});if(!_0x4c04c0)return _0x314a4d(_0x4de9ad(0x145));_0x2e22cb[_0x4de9ad(0x23c)]=_0x3bad70[_0x4de9ad(0x167)](moment,new Date(_0x2e22cb[_0x4de9ad(0x23c)]))[_0x4de9ad(0x1f7)]('date')[_0x4de9ad(0x276)](),_0x2e22cb[_0x4de9ad(0x231)]=moment(new Date(_0x2e22cb[_0x4de9ad(0x231)]))[_0x4de9ad(0x214)](_0x3bad70[_0x4de9ad(0x154)])[_0x4de9ad(0x276)]();const _0x4ddcc5=_0x2e22cb[_0x4de9ad(0x1b1)];let _0x2cbc2e=_0x4c04c0[_0x4de9ad(0x1ab)];if(!_0x2cbc2e||_0x3bad70['bLcNM'](_0x4c04c0[_0x4de9ad(0x1ab)][_0x4de9ad(0x226)],0x0))_0x2cbc2e=await kbmpttct[_0x4de9ad(0x1a8)]({'id_rptform':_0x4c04c0[_0x4de9ad(0x109)][_0x4de9ad(0x19f)](),'id_app':_0x2e22cb[_0x4de9ad(0x261)]})[_0x4de9ad(0x132)]({'stt':0x1})['lean']();async[_0x4de9ad(0x188)]({'dsobj':function(_0x19609f){const _0x1f0cfd=_0x4de9ad,_0x2fadea={'QbMDa':function(_0x3cbb42,_0x2e16ac){const _0x1de4de=_0x11b9;return _0x3bad70[_0x1de4de(0x13d)](_0x3cbb42,_0x2e16ac);},'iHugy':_0x3bad70['LygcJ'],'VYgtC':function(_0x24c7d7,_0x342b9d){return _0x24c7d7(_0x342b9d);},'NLCwf':function(_0x481baf,_0x42db08,_0x2f34c4){return _0x481baf(_0x42db08,_0x2f34c4);},'mMkUN':function(_0x22f8d6,_0x1cb70d){return _0x22f8d6<=_0x1cb70d;},'Hehpy':_0x3bad70[_0x1f0cfd(0xea)],'uCbMj':_0x3bad70[_0x1f0cfd(0x1ac)],'NKZik':function(_0x2365e3,_0x56e3c3){const _0x891f29=_0x1f0cfd;return _0x3bad70[_0x891f29(0x25c)](_0x2365e3,_0x56e3c3);}};if(_0x3bad70[_0x1f0cfd(0x230)](_0x3bad70[_0x1f0cfd(0x1b3)],_0x3bad70['pZqGJ'])){if(_0x3bad70[_0x1f0cfd(0x215)](_0x4ddcc5,_0x1f0cfd(0x1e1))){if(_0x3bad70[_0x1f0cfd(0x230)]('aNquk',_0x3bad70['mlDVb']))_0x186526[_0x1f0cfd(0x176)]=_0x3a5e6b[_0x1f0cfd(0x176)];else{const _0x56e9e6=[],_0x394a33=new Date(_0x2e22cb['tu_ngay']);while(_0x394a33<=_0x2e22cb['den_ngay']){if(_0x3bad70['hzYDs'](_0x3bad70[_0x1f0cfd(0x11a)],_0x1f0cfd(0x151)))_0x388e33[_0x1f0cfd(0x223)]=[{'ma_kh_co':_0x235b46['ma_obj']},{'ma_kh_no':_0x15f19e[_0x1f0cfd(0x268)]}];else{let _0x3f4f42=Math[_0x1f0cfd(0x1b0)](_0x3bad70['LnKub'](moment,_0x394a33)['startOf'](_0x3bad70[_0x1f0cfd(0xea)])[_0x1f0cfd(0x276)](),_0x2e22cb[_0x1f0cfd(0x23c)]),_0x452f2c=Math[_0x1f0cfd(0x200)](_0x3bad70[_0x1f0cfd(0x12c)](moment,_0x394a33)['endOf'](_0x3bad70[_0x1f0cfd(0xea)])['toDate'](),_0x2e22cb[_0x1f0cfd(0x231)]);_0x56e9e6[_0x1f0cfd(0x121)]({'field':_0x1f0cfd(0x21c),'ten_obj':_0x1f0cfd(0x26e)+(_0x394a33[_0x1f0cfd(0x1da)]()+0x1)+'/'+_0x394a33[_0x1f0cfd(0x229)](),'ma_obj':{'$gte':_0x3f4f42,'$lte':_0x452f2c}}),_0x394a33[_0x1f0cfd(0x141)](_0x3bad70['uKpKV'](_0x394a33[_0x1f0cfd(0x1da)](),0x1));}}return console[_0x1f0cfd(0x1d6)](_0x4ddcc5,_0x56e9e6),_0x19609f(null,_0x56e9e6);}}if(_0x3bad70[_0x1f0cfd(0x215)](_0x4ddcc5,_0x3bad70[_0x1f0cfd(0x1cd)])){const _0x18b2cc=[];let _0x20d9d7=new Date(_0x2e22cb[_0x1f0cfd(0x23c)]);while(_0x3bad70[_0x1f0cfd(0x1e4)](_0x20d9d7,_0x2e22cb[_0x1f0cfd(0x231)])){let _0x365a4c=_0x3bad70[_0x1f0cfd(0x12c)](moment,_0x20d9d7)[_0x1f0cfd(0x17a)](),_0x4f7bc9=Math['max'](moment(_0x20d9d7)[_0x1f0cfd(0x1f7)](_0x3bad70['jbEIs'])[_0x1f0cfd(0x276)](),_0x2e22cb['tu_ngay']),_0x269974=Math[_0x1f0cfd(0x200)](_0x3bad70['TJfja'](moment,_0x20d9d7)[_0x1f0cfd(0x214)](_0x1f0cfd(0x17a))[_0x1f0cfd(0x276)](),_0x2e22cb[_0x1f0cfd(0x231)]);_0x18b2cc['push']({'field':_0x3bad70['oxTHv'],'ten_obj':_0x1f0cfd(0x12d)+_0x365a4c+'/'+_0x20d9d7[_0x1f0cfd(0x229)](),'ma_obj':{'$gte':_0x4f7bc9,'$lte':_0x269974}}),_0x20d9d7=moment(_0x20d9d7)[_0x1f0cfd(0x17a)](_0x3bad70['uKpKV'](_0x365a4c,0x1))[_0x1f0cfd(0x276)]();}return console[_0x1f0cfd(0x1d6)](_0x4ddcc5,_0x18b2cc),_0x3bad70[_0x1f0cfd(0xfb)](_0x19609f,null,_0x18b2cc);}rptobject['findOne']({'code_rpt':_0x788c52,'ma_obj':_0x4ddcc5})['lean']()['exec'](async function(_0x559127,_0x1fccf3){const _0x534464=_0x1f0cfd,_0x26deb9={'DoKKr':_0x102879['PdqHf'],'UjPha':function(_0x56e8e3,_0x356a05){return _0x102879['misvG'](_0x56e8e3,_0x356a05);},'pIuQx':function(_0x4d7639,_0x4f1d4a,_0x5b38b2){const _0x583b7a=_0x11b9;return _0x102879[_0x583b7a(0x180)](_0x4d7639,_0x4f1d4a,_0x5b38b2);}};if(_0x559127)return _0x102879[_0x534464(0x1b6)](_0x19609f,_0x559127);if(!_0x1fccf3)return _0x102879[_0x534464(0x18d)](_0x19609f,_0x534464(0x111));let _0x4bfd7a=global[_0x534464(0x174)](_0x102879[_0x534464(0x27a)]('',_0x1fccf3[_0x534464(0x16a)])),_0x244c21={'id_app':_0x2e22cb[_0x534464(0x261)],'status':!![]};_0x2e22cb[_0x4ddcc5]&&_[_0x534464(0x265)](_0x4bfd7a[_0x534464(0x15a)]['paths'],_0x4ddcc5)&&(_0x244c21[_0x4ddcc5]=_0x2e22cb[_0x4ddcc5]);if(_0x2e22cb[_0x102879[_0x534464(0x235)]]&&_[_0x534464(0x265)](_0x4bfd7a[_0x534464(0x15a)][_0x534464(0xdb)],_0x102879[_0x534464(0x235)])){if(_0x102879['HuCQX'](_0x102879[_0x534464(0x244)],_0x102879['IAnFN']))_0x244c21[_0x102879[_0x534464(0x235)]]=_0x2e22cb[_0x102879[_0x534464(0x235)]];else{if(!_0x21e1f9)return;return _0x18ab56[_0x534464(0xe3)]();}}if(_0x2e22cb[_0x534464(0x227)]&&!_0x2e22cb['ma_kh']&&_0x102879[_0x534464(0x1a0)](_0x1fccf3[_0x534464(0x16a)],'customer')){let _0x86fea4=(await dmkh[_0x534464(0x1a8)]({'id_app':_0x2e22cb[_0x534464(0x261)],'status':!![],'nh_kh':_0x2e22cb[_0x534464(0x227)]},{'ma_kh':0x1}))[_0x534464(0x23f)](_0x14f43c=>_0x14f43c[_0x534464(0x1aa)]);_0x244c21['ma_kh']={'$in':_0x86fea4};}_0x4bfd7a[_0x534464(0x1a8)](_0x244c21)[_0x534464(0x183)]()[_0x534464(0x1b7)](function(_0x31736a,_0x5bd62f){const _0x26fe02=_0x534464;if(_0x2fadea[_0x26fe02(0x139)](_0x26fe02(0x26f),_0x2fadea[_0x26fe02(0xe9)])){if(_0x31736a)return _0x2fadea['VYgtC'](_0x19609f,_0x31736a);_0x5bd62f['forEach'](function(_0x5d8f81){const _0x326f8e=_0x26fe02,_0x298180={'bFIJL':_0x26deb9[_0x326f8e(0x22c)]};_0x26deb9[_0x326f8e(0x17c)](_0x326f8e(0xf5),_0x326f8e(0xee))?(_0x5d8f81[_0x326f8e(0x268)]=_0x5d8f81[_0x1fccf3[_0x326f8e(0x155)]],_0x5d8f81[_0x326f8e(0x27e)]=_0x5d8f81[_0x1fccf3['header_field']]):(_0x14b8fc[_0x4472b5['ma_obj']]=_0x59e94f,_0x408880[_0x2494c5[_0x326f8e(0x268)]+_0x298180[_0x326f8e(0x11c)]]=_0x2bb0d4);}),_0x2fadea[_0x26fe02(0x16f)](_0x19609f,null,_0x5bd62f);}else _0x26deb9[_0x26fe02(0x1de)](_0x5adf8a,_0x430c09,_0x523ccd);});});}else{const _0x171a02=[],_0x2627ae=new _0x43c302(_0x18af9a[_0x1f0cfd(0x23c)]);while(_0x2fadea[_0x1f0cfd(0x16b)](_0x2627ae,_0x35fbeb[_0x1f0cfd(0x231)])){let _0xceadf2=_0xb06ae6[_0x1f0cfd(0x1b0)](_0x2fadea[_0x1f0cfd(0x12a)](_0xd985c8,_0x2627ae)[_0x1f0cfd(0x1f7)](_0x2fadea[_0x1f0cfd(0x1d9)])['toDate'](),_0x7fb8be['tu_ngay']),_0x360aee=_0x5c0393[_0x1f0cfd(0x200)](_0x2fadea[_0x1f0cfd(0x12a)](_0x453db7,_0x2627ae)[_0x1f0cfd(0x214)](_0x2fadea[_0x1f0cfd(0x1d9)])[_0x1f0cfd(0x276)](),_0x54dd36['den_ngay']);_0x171a02[_0x1f0cfd(0x121)]({'field':_0x2fadea[_0x1f0cfd(0x213)],'ten_obj':_0x1f0cfd(0x26e)+_0x2fadea['NKZik'](_0x2627ae[_0x1f0cfd(0x1da)](),0x1)+'/'+_0x2627ae[_0x1f0cfd(0x229)](),'ma_obj':{'$gte':_0xceadf2,'$lte':_0x360aee}}),_0x2627ae[_0x1f0cfd(0x141)](_0x2fadea[_0x1f0cfd(0x1c4)](_0x2627ae[_0x1f0cfd(0x1da)](),0x1));}return _0x1e8759['log'](_0x41c1c4,_0x171a02),_0x2fadea[_0x1f0cfd(0x16f)](_0x59b62e,null,_0x171a02);}}},function(_0x1ed3d5,_0x4cfba2){const _0x59da70=_0x4de9ad,_0x1d1a5c={'nfRfO':function(_0x46aaf4,_0xb78a48){return _0x46aaf4(_0xb78a48);},'JTpDK':function(_0x210964,_0x5cd2b7){return _0x210964+_0x5cd2b7;},'SxXCT':_0x3bad70[_0x59da70(0x269)],'BJndm':function(_0x11e8df,_0x21687d){const _0x522e05=_0x59da70;return _0x3bad70[_0x522e05(0x25c)](_0x11e8df,_0x21687d);},'oOfDt':function(_0x3aa28d){const _0x2637c3=_0x59da70;return _0x3bad70[_0x2637c3(0x199)](_0x3aa28d);},'CKMne':function(_0x94faee,_0x194ed1){return _0x94faee!==_0x194ed1;},'EmupU':_0x59da70(0x1a5),'pZUUZ':function(_0x55a07b,_0xb42180){const _0x2b471b=_0x59da70;return _0x3bad70[_0x2b471b(0x11d)](_0x55a07b,_0xb42180);},'lPYwC':_0x3bad70[_0x59da70(0x17b)],'rQZlp':function(_0x168387,_0x5130dc){return _0x3bad70['jFoVQ'](_0x168387,_0x5130dc);},'nrLdW':_0x3bad70[_0x59da70(0x20d)],'FySXk':function(_0x2fb16e){return _0x2fb16e();},'KosZY':_0x3bad70['mlUMs'],'rMGfJ':function(_0x45d389,_0x48da97,_0x2c5061){return _0x45d389(_0x48da97,_0x2c5061);},'WYNXM':_0x3bad70['FzHKI'],'OjwpA':function(_0x5b6707,_0x4e2b3e){const _0x53e287=_0x59da70;return _0x3bad70[_0x53e287(0x11d)](_0x5b6707,_0x4e2b3e);},'OukLj':_0x3bad70[_0x59da70(0xed)],'nmYvX':function(_0x21690a,_0xd3f54a){return _0x21690a===_0xd3f54a;},'EADbF':function(_0xb82a51,_0x4458dc){const _0x1cbcd7=_0x59da70;return _0x3bad70[_0x1cbcd7(0x1fd)](_0xb82a51,_0x4458dc);},'jhbmH':_0x3bad70[_0x59da70(0xde)],'OsMyW':function(_0x5c4b91,_0x2a582a){return _0x5c4b91===_0x2a582a;},'hXMjm':_0x3bad70[_0x59da70(0x127)],'ipItP':_0x3bad70[_0x59da70(0x12b)],'UphUR':function(_0x44a9e7,_0x147a0b,_0x16c826){const _0x34726a=_0x59da70;return _0x3bad70[_0x34726a(0x204)](_0x44a9e7,_0x147a0b,_0x16c826);},'kWuUY':_0x59da70(0x15c),'keSGA':_0x3bad70[_0x59da70(0x26c)],'Eyano':function(_0x396aa3,_0x1262a8){const _0x54e0c4=_0x59da70;return _0x3bad70[_0x54e0c4(0x10e)](_0x396aa3,_0x1262a8);},'dVzjo':_0x3bad70[_0x59da70(0x1d8)],'ZjPdw':_0x59da70(0x15e),'piFmN':function(_0x4640fe,_0x45eca4){return _0x3bad70['DroSn'](_0x4640fe,_0x45eca4);},'Vhwwk':_0x3bad70[_0x59da70(0x232)],'BSZzO':_0x3bad70[_0x59da70(0x13e)],'gFkmf':_0x3bad70['dSgjo'],'wHPQB':_0x3bad70[_0x59da70(0x1ef)],'KenwA':_0x59da70(0x1a4),'LNCiO':function(_0x18119b,_0x1d3e2c){const _0x2855fc=_0x59da70;return _0x3bad70[_0x2855fc(0x13d)](_0x18119b,_0x1d3e2c);},'HoPnT':_0x3bad70['IVNHp'],'duoyo':_0x3bad70['JULiI'],'GWfmB':function(_0x1d50f4,_0x260005,_0x4e8ff8,_0x15c87f,_0x3ed052,_0x3b4a22){return _0x3bad70['RMQsa'](_0x1d50f4,_0x260005,_0x4e8ff8,_0x15c87f,_0x3ed052,_0x3b4a22);},'TgynN':_0x3bad70['dPhsn'],'bGcqE':_0x3bad70[_0x59da70(0xfa)],'lRIjp':_0x3bad70['zobsW'],'fdIsA':_0x3bad70['rNuYz'],'HnlXq':function(_0x223c5b,_0x44c8f7){const _0x256754=_0x59da70;return _0x3bad70[_0x256754(0x182)](_0x223c5b,_0x44c8f7);},'LLJMy':function(_0x1a744a,_0x351f48){const _0x2e5d01=_0x59da70;return _0x3bad70[_0x2e5d01(0x13d)](_0x1a744a,_0x351f48);},'tvfKI':_0x3bad70[_0x59da70(0x157)],'WAFGK':_0x3bad70[_0x59da70(0x106)],'cpNjS':_0x3bad70['wREFH'],'jWSfQ':_0x3bad70[_0x59da70(0x1e3)],'TlqJn':_0x3bad70[_0x59da70(0x16e)],'vLWwC':_0x3bad70[_0x59da70(0x27d)],'GRDsE':function(_0x299ed1,_0x273b9c){return _0x299ed1+_0x273b9c;},'MIprS':function(_0x4041df,_0x17a3b8){return _0x3bad70['OFUuc'](_0x4041df,_0x17a3b8);},'RxFlY':function(_0x3a3936,_0x1aa947){return _0x3a3936+_0x1aa947;},'kKUhC':'Number','cCbOx':_0x59da70(0x221),'OrTml':_0x3bad70[_0x59da70(0x19a)],'qAalg':function(_0x162905,_0x3b12e5){const _0x4431ce=_0x59da70;return _0x3bad70[_0x4431ce(0xfc)](_0x162905,_0x3b12e5);},'ZaYTg':_0x3bad70['tKehy'],'WmcRA':function(_0x4ad8e5,_0x258722){return _0x4ad8e5===_0x258722;},'uErBR':_0x3bad70[_0x59da70(0x220)],'wlyMT':_0x59da70(0xe2),'mKrxN':function(_0xe704ef,_0x5af7ce,_0x29a5f1,_0x512aac){return _0xe704ef(_0x5af7ce,_0x29a5f1,_0x512aac);}};if(_0x3bad70[_0x59da70(0x1ec)](_0x3bad70[_0x59da70(0xe1)],_0x3bad70['ufOPs'])){if(_0x474714)return _0x1d1a5c['nfRfO'](_0x407348,_0x4a5cfb);_0x30804b[_0x59da70(0x27f)](_0x4e8f82)?(_0x1cb6bc[_0x12173c[_0x59da70(0x268)]]=_0x5ccb5d,_0x21dc2f[_0x1d1a5c[_0x59da70(0x1ed)](_0x300dbc[_0x59da70(0x268)],_0x1d1a5c['SxXCT'])]=_0x455ada):_0x337861[_0x1d1a5c[_0x59da70(0x217)](_0x5025a2[_0x59da70(0x268)],'_string')]=_0x396893,_0x1d1a5c['oOfDt'](_0x32d7e7);}else{if(_0x1ed3d5)return _0x3bad70['LnKub'](_0x314a4d,_0x1ed3d5);let _0x28a900=_0x4cfba2[_0x59da70(0x13c)];async[_0x59da70(0x23f)](_0x2cbc2e,function(_0x304b55,_0xf89299){const _0x5832b3=_0x59da70,_0x53056={'gNbnh':_0x1d1a5c[_0x5832b3(0x263)],'izXso':function(_0x5db71f,_0x46ffc1,_0x3bc9b1){const _0x245d3d=_0x5832b3;return _0x1d1a5c[_0x245d3d(0x27b)](_0x5db71f,_0x46ffc1,_0x3bc9b1);},'FLrpu':function(_0x41b52b,_0x158ed0){const _0x533401=_0x5832b3;return _0x1d1a5c[_0x533401(0x23d)](_0x41b52b,_0x158ed0);},'kPEce':'socaitt','qQfBX':_0x1d1a5c['keSGA'],'LjHck':function(_0x30cb2a,_0x5c90db){const _0x52cc47=_0x5832b3;return _0x1d1a5c[_0x52cc47(0x217)](_0x30cb2a,_0x5c90db);},'gyGUb':_0x5832b3(0x149),'ycvde':function(_0x4fea77,_0x433e97,_0x42ebf7){const _0x13d12b=_0x5832b3;return _0x1d1a5c[_0x13d12b(0x1e8)](_0x4fea77,_0x433e97,_0x42ebf7);},'hPtyT':function(_0x58a5d0,_0x23fc39){const _0x39fa10=_0x5832b3;return _0x1d1a5c[_0x39fa10(0x12e)](_0x58a5d0,_0x23fc39);},'iGjdF':_0x1d1a5c['dVzjo'],'OhUox':_0x1d1a5c[_0x5832b3(0x1df)],'WmyXw':function(_0x14afeb,_0x535fcd){const _0x13f8c0=_0x5832b3;return _0x1d1a5c[_0x13f8c0(0x104)](_0x14afeb,_0x535fcd);},'pBZVZ':_0x1d1a5c[_0x5832b3(0x203)],'zFpvS':_0x1d1a5c[_0x5832b3(0x248)],'CrYWz':function(_0x36a91b,_0x291c7d){return _0x36a91b(_0x291c7d);},'RrbxL':function(_0xed8e46,_0x19b5be){const _0x254d9f=_0x5832b3;return _0x1d1a5c[_0x254d9f(0x169)](_0xed8e46,_0x19b5be);},'JGmrj':_0x1d1a5c[_0x5832b3(0xf9)],'Xeonj':_0x1d1a5c[_0x5832b3(0xdd)],'gJIXn':function(_0x5980c5,_0x36b551){return _0x5980c5!=_0x36b551;},'Kpher':_0x1d1a5c[_0x5832b3(0x24c)],'kcQNG':function(_0x505f1f,_0x58035c){const _0x38b4fe=_0x5832b3;return _0x1d1a5c[_0x38b4fe(0x253)](_0x505f1f,_0x58035c);},'IdZDe':_0x1d1a5c['HoPnT'],'TtEQq':_0x1d1a5c[_0x5832b3(0x279)],'kspbR':_0x5832b3(0x20b),'kAGLL':'lkcoN','zcohF':function(_0x356d1f,_0x4c4169,_0x2a633c,_0x375a16,_0x14b9ca,_0x5a23c6){const _0x2fbd3e=_0x5832b3;return _0x1d1a5c[_0x2fbd3e(0x1e2)](_0x356d1f,_0x4c4169,_0x2a633c,_0x375a16,_0x14b9ca,_0x5a23c6);},'Arrge':_0x5832b3(0xe5),'JjEFG':_0x1d1a5c[_0x5832b3(0xe6)],'wvgRh':_0x1d1a5c[_0x5832b3(0x22e)],'kKfSC':'GbBIu','cdthp':_0x1d1a5c[_0x5832b3(0x196)],'VfZLO':_0x1d1a5c[_0x5832b3(0x1d5)],'mTnzU':'RduOx','IcQuD':function(_0x2f2a93,_0x5eb901){return _0x1d1a5c['HnlXq'](_0x2f2a93,_0x5eb901);},'QDITR':function(_0x5c7663,_0x2f27d8){const _0x372ce6=_0x5832b3;return _0x1d1a5c[_0x372ce6(0xec)](_0x5c7663,_0x2f27d8);},'LtjAk':'XbRKa','luoWW':_0x1d1a5c[_0x5832b3(0x211)],'jDeqp':_0x1d1a5c['WAFGK'],'gCvMU':_0x1d1a5c[_0x5832b3(0x251)],'weOxz':_0x1d1a5c[_0x5832b3(0x105)],'STMyZ':function(_0x26140f,_0x2d3f2d){return _0x1d1a5c['nfRfO'](_0x26140f,_0x2d3f2d);},'CqIUb':function(_0x561c8e,_0x558603){const _0x5d8ba7=_0x5832b3;return _0x1d1a5c[_0x5d8ba7(0x1ed)](_0x561c8e,_0x558603);},'nrQbT':_0x5832b3(0x10b),'AGmCa':function(_0x405d13,_0x44db40,_0x19023b){return _0x1d1a5c['rMGfJ'](_0x405d13,_0x44db40,_0x19023b);}};if(_0x1d1a5c[_0x5832b3(0x10d)]!==_0x1d1a5c[_0x5832b3(0x1f1)])setImmediate(()=>{const _0x2e0640=_0x5832b3,_0x2e4432={'ElPrT':function(_0x4d5eda,_0x376066){return _0x4d5eda+_0x376066;},'LIPjK':function(_0x38d158,_0x23adac){const _0x1a5c94=_0x11b9;return _0x1d1a5c[_0x1a5c94(0x1c6)](_0x38d158,_0x23adac);},'AILDZ':_0x1d1a5c[_0x2e0640(0x16c)],'dOtac':function(_0x487c56,_0x4ccf41){const _0x42aa67=_0x2e0640;return _0x1d1a5c[_0x42aa67(0x13b)](_0x487c56,_0x4ccf41);},'lTFgX':_0x1d1a5c['lPYwC'],'MTMCF':function(_0x34c2a5,_0x5a30ea){const _0x317da9=_0x2e0640;return _0x1d1a5c[_0x317da9(0x23d)](_0x34c2a5,_0x5a30ea);},'BGDUC':function(_0x16f1c5,_0x4e6fd2){const _0x56740f=_0x2e0640;return _0x1d1a5c[_0x56740f(0x217)](_0x16f1c5,_0x4e6fd2);},'RCGlF':_0x1d1a5c[_0x2e0640(0x201)],'OxtBw':function(_0x48e67b){const _0x51dd1b=_0x2e0640;return _0x1d1a5c[_0x51dd1b(0x13f)](_0x48e67b);},'WldBC':_0x1d1a5c[_0x2e0640(0x190)],'mTGuF':function(_0x4edcdc,_0x21efa2,_0x2885f4){const _0xbcd240=_0x2e0640;return _0x1d1a5c[_0xbcd240(0x1e8)](_0x4edcdc,_0x21efa2,_0x2885f4);},'iuAQb':_0x1d1a5c['WYNXM']};if(_0x1d1a5c['OjwpA'](_0x304b55[_0x2e0640(0x21a)],'9'))_0x304b55['cong_thuc']='',async['map'](_0x28a900,function(_0x162de2,_0x23d850){const _0x5ed58c=_0x2e0640;utils['getInfoFromQuery'](_0x162de2,_0x304b55[_0x5ed58c(0xf3)],(_0x431598,_0xef0955)=>{const _0x998545=_0x5ed58c,_0x500bd8={'wkYOJ':function(_0x5f3fe5,_0x4625d6){const _0x14ce38=_0x11b9;return _0x2e4432[_0x14ce38(0xf6)](_0x5f3fe5,_0x4625d6);},'fdcSv':'_nt','rojNB':function(_0x38b3bf,_0x1233fc){return _0x38b3bf+_0x1233fc;}};if(_0x2e4432[_0x998545(0x278)]('zNAqD',_0x2e4432['AILDZ'])){if(_0x431598)return _0x2e4432['dOtac'](_0x2e4432[_0x998545(0x273)],_0x2e4432['lTFgX'])?_0x2e4432[_0x998545(0x1bd)](_0x23d850,_0x431598):(_0x496cf7[_0x998545(0x10c)](_0x409333,_0x279e78),_0x4d326c(_0x122ed3['message']||_0x205ce5));_[_0x998545(0x27f)](_0xef0955)?(_0x304b55[_0x162de2[_0x998545(0x268)]]=_0xef0955,_0x304b55[_0x2e4432['ElPrT'](_0x162de2[_0x998545(0x268)],_0x998545(0xff))]=_0xef0955):_0x304b55[_0x2e4432['BGDUC'](_0x162de2[_0x998545(0x268)],_0x2e4432[_0x998545(0x237)])]=_0xef0955,_0x2e4432[_0x998545(0x1ae)](_0x23d850);}else _0x5a4fae[_0x998545(0xef)]=_0x2712f0[_0x998545(0xef)]+(_0x4690b9[_0x2c5673[_0x998545(0x268)]]?_0xf9e0f1[_0xd92634[_0x998545(0x268)]]:0x0),_0x118531['total_nt']=_0x500bd8[_0x998545(0x168)](_0x2d97ef['total_nt'],_0x22b717[_0x500bd8[_0x998545(0x168)](_0x257f54[_0x998545(0x268)],_0x500bd8[_0x998545(0x275)])]?_0x1cefdf[_0x500bd8[_0x998545(0xe8)](_0x15a1bc[_0x998545(0x268)],_0x500bd8[_0x998545(0x275)])]:0x0);});},_0x2b5e67=>{const _0x472016=_0x2e0640;_0x472016(0x103)===_0x53056['gNbnh']?_0x38307f['ma_nv']=_0x460dce[_0x472016(0x181)]:_0x53056['izXso'](_0xf89299,_0x2b5e67,_0x304b55);});else{if(_0x1d1a5c[_0x2e0640(0x136)]!=='kiwEd'){if(_0x1d1a5c[_0x2e0640(0x19d)](_0x304b55['cach_tinh'],'2')){if(_0x1d1a5c[_0x2e0640(0x1c9)](_0x2e0640(0x147),_0x1d1a5c[_0x2e0640(0x1bf)]))_0x304b55[_0x2e0640(0x209)]='',async[_0x2e0640(0x23f)](_0x28a900,function(_0x103cbc,_0x484568){const _0x387979=_0x2e0640,_0x355123={'GPSXw':function(_0x529cea,_0x30f1a8){const _0x196c83=_0x11b9;return _0x53056[_0x196c83(0x266)](_0x529cea,_0x30f1a8);},'GVwxd':_0x53056[_0x387979(0x274)],'kfScB':_0x387979(0x152),'CgMDR':_0x53056[_0x387979(0x21e)],'AUicg':function(_0x4a64bf,_0x4b789f){const _0x5f4dfe=_0x387979;return _0x53056[_0x5f4dfe(0x250)](_0x4a64bf,_0x4b789f);},'QcAGk':function(_0x59d8a3,_0x40966b,_0x97d6cf){return _0x59d8a3(_0x40966b,_0x97d6cf);},'SlYVy':_0x53056[_0x387979(0x14a)],'OTejG':function(_0x4e6ed2,_0x1d7398){return _0x53056['FLrpu'](_0x4e6ed2,_0x1d7398);},'uJrrB':_0x387979(0x21c),'PyxAU':function(_0xfcff79,_0x5a995a){const _0x5a43bf=_0x387979;return _0x53056[_0x5a43bf(0x250)](_0xfcff79,_0x5a995a);},'wQsKP':function(_0x1486cb,_0x3bc537,_0x3154ee){return _0x53056['ycvde'](_0x1486cb,_0x3bc537,_0x3154ee);},'AwdBa':function(_0xb8e553,_0x2a2ed1){const _0xc19a2b=_0x387979;return _0x53056[_0xc19a2b(0x113)](_0xb8e553,_0x2a2ed1);},'IBVAQ':_0x53056[_0x387979(0x257)],'xlYyt':_0x53056[_0x387979(0x13a)],'DJGUO':function(_0x308066,_0x405bbc){const _0x4b2982=_0x387979;return _0x53056[_0x4b2982(0x1f0)](_0x308066,_0x405bbc);},'sZGsp':_0x387979(0xff),'BhoQE':function(_0x2b75b6,_0xca7c19,_0xf76e1b){return _0x2b75b6(_0xca7c19,_0xf76e1b);},'qBHgs':function(_0x4c6369,_0xa1a34d){return _0x53056['LjHck'](_0x4c6369,_0xa1a34d);},'JVDBg':_0x53056[_0x387979(0x23a)],'rwQxy':function(_0x33d8f6,_0x33bc63){return _0x53056['FLrpu'](_0x33d8f6,_0x33bc63);},'GYMJV':_0x53056[_0x387979(0x114)],'Wbkcj':function(_0x2f02b5,_0x1c538d){const _0x439547=_0x387979;return _0x53056[_0x439547(0x22d)](_0x2f02b5,_0x1c538d);},'oypVk':function(_0x14b60d,_0x1c2a86){return _0x53056['RrbxL'](_0x14b60d,_0x1c2a86);},'iMefi':_0x53056['JGmrj'],'DhRsB':_0x387979(0x176),'hqVzw':_0x53056[_0x387979(0x1a3)],'adoOl':function(_0x4fb596,_0x29d25c){return _0x53056['gJIXn'](_0x4fb596,_0x29d25c);},'uRzjp':_0x53056[_0x387979(0x20a)],'gLdom':function(_0x1a3442,_0x9c5295){const _0xb97c71=_0x387979;return _0x53056[_0xb97c71(0x11f)](_0x1a3442,_0x9c5295);},'IewJi':_0x53056[_0x387979(0x173)],'DybEP':_0x53056[_0x387979(0x23b)],'WFPkN':_0x53056[_0x387979(0x1b2)],'ulITy':function(_0x5f0e13,_0x3aa11a){const _0x19a2b7=_0x387979;return _0x53056[_0x19a2b7(0x1eb)](_0x5f0e13,_0x3aa11a);},'TTWyJ':_0x53056[_0x387979(0x11b)],'wLMwQ':function(_0x591d58,_0x36631b,_0x34e93c,_0x327848,_0x3712f8,_0xffc3eb){const _0x24f15c=_0x387979;return _0x53056[_0x24f15c(0x245)](_0x591d58,_0x36631b,_0x34e93c,_0x327848,_0x3712f8,_0xffc3eb);},'HurNn':_0x53056[_0x387979(0x156)],'QszQb':_0x53056['JjEFG'],'izMpg':function(_0x467823,_0x378dac){return _0x467823(_0x378dac);},'gsCYd':_0x53056[_0x387979(0x161)],'fmSyf':_0x53056[_0x387979(0x158)],'TMYrn':_0x53056[_0x387979(0x202)],'zyONc':_0x53056[_0x387979(0x1fa)],'lmeFH':function(_0x3563d8,_0x3d5ed9){const _0x5a819a=_0x387979;return _0x53056[_0x5a819a(0x1eb)](_0x3563d8,_0x3d5ed9);},'DimcN':_0x53056[_0x387979(0x272)],'fOjyX':function(_0x27ecf6,_0x52280f){const _0x43f3d1=_0x387979;return _0x53056[_0x43f3d1(0xdf)](_0x27ecf6,_0x52280f);},'NhsBE':function(_0x5be158,_0x27d411){return _0x53056['QDITR'](_0x5be158,_0x27d411);},'dDFad':_0x53056[_0x387979(0x1d7)],'bLdtR':_0x53056[_0x387979(0xf1)],'jKJhc':function(_0x2252f5,_0x37dae4){return _0x53056['LjHck'](_0x2252f5,_0x37dae4);},'CQbTb':_0x53056[_0x387979(0xeb)],'DvBNY':_0x53056[_0x387979(0x171)],'nRMBj':_0x53056['weOxz']};_0x53056['CrYWz'](setImmediate,async()=>{const _0x2d7fa7=_0x387979,_0xb09918={'JHWNK':function(_0x44e909,_0x50ab8c){return _0x44e909+_0x50ab8c;},'EDcUV':function(_0x1a393e,_0x4fd26f){const _0x4e3375=_0x11b9;return _0x355123[_0x4e3375(0x206)](_0x1a393e,_0x4fd26f);},'LAGzI':_0x2d7fa7(0xff),'IgIwU':_0x355123['JVDBg'],'sdArh':function(_0x2270fa,_0x30d90e){return _0x355123['rwQxy'](_0x2270fa,_0x30d90e);},'wbtTq':_0x355123[_0x2d7fa7(0x212)],'qufaJ':function(_0x474420,_0x4ebabe){const _0x1f1af7=_0x2d7fa7;return _0x355123[_0x1f1af7(0x1fc)](_0x474420,_0x4ebabe);},'YmVeQ':_0x355123[_0x2d7fa7(0x11e)]};let _0x163837={'ngay_ct':{'$gte':_0x2e22cb[_0x2d7fa7(0x23c)],'$lte':_0x2e22cb[_0x2d7fa7(0x231)]},'id_app':_0x2e22cb[_0x2d7fa7(0x261)]};_0x355123[_0x2d7fa7(0x219)](_0x4ddcc5[_0x2d7fa7(0x110)](),_0x355123[_0x2d7fa7(0x216)])?_0x163837[_0x2d7fa7(0x223)]=[{'ma_kh_co':_0x103cbc['ma_obj']},{'ma_kh_no':_0x103cbc[_0x2d7fa7(0x268)]}]:_0x163837[_0x103cbc[_0x2d7fa7(0x14b)]||_0x4ddcc5]=_0x103cbc[_0x2d7fa7(0x268)];_0x2e22cb[_0x2d7fa7(0x162)]&&(_0x163837['ma_dvcs']=_0x2e22cb[_0x2d7fa7(0x162)]);_0x4ddcc5!=_0x355123['DhRsB']&&_0x2e22cb['ma_bp']&&(_0x163837[_0x2d7fa7(0x176)]=_0x2e22cb[_0x2d7fa7(0x176)]);if(_0x2e22cb[_0x2d7fa7(0x170)]){if(_0x355123[_0x2d7fa7(0x102)](_0x355123[_0x2d7fa7(0x108)],_0x355123['hqVzw']))_0x163837[_0x2d7fa7(0x170)]=_0x2e22cb[_0x2d7fa7(0x170)];else{const _0x3902d9={'AmVWB':function(_0x237748,_0x76183f){const _0xf94816=_0x2d7fa7;return _0xb09918[_0xf94816(0x255)](_0x237748,_0x76183f);}};let _0x188f0f=0x0;_0x88c1a6&&_0x413e48['forEach'](function(_0x4b67da){const _0x5ca6eb=_0x2d7fa7;_0x188f0f=_0x3902d9[_0x5ca6eb(0x264)](_0x188f0f,_0x5eacd4[_0x5ca6eb(0xf0)](_0x4b67da[_0x50c52c['ma_obj']]||0x0));}),_0x188f0f&&_0x2f8f7c[_0x2d7fa7(0x121)](_0x1576c1);}}if(_0x355123['adoOl'](_0x4ddcc5,_0x355123[_0x2d7fa7(0x150)])&&_0x2e22cb[_0x2d7fa7(0x1a4)]){if(_0x355123[_0x2d7fa7(0x192)](_0x355123[_0x2d7fa7(0x1f8)],_0x355123[_0x2d7fa7(0x1b4)]))_0x163837[_0x2d7fa7(0x1a4)]=_0x2e22cb[_0x2d7fa7(0x1a4)];else return _0x465bed[_0x2d7fa7(0x10c)](_0x387b31['error'],_0x9bf12d),_0x355123[_0x2d7fa7(0x135)](_0x8f4e34,_0x57694a[_0x2d7fa7(0x10c)][_0x2d7fa7(0x1d4)]||_0x222d3e[_0x2d7fa7(0x10c)]);}_0x2e22cb[_0x2d7fa7(0x1db)]&&(_0x163837[_0x2d7fa7(0x1db)]=_0x2e22cb[_0x2d7fa7(0x1db)]);_0x2e22cb[_0x2d7fa7(0x181)]&&(_0x163837[_0x2d7fa7(0x181)]=_0x2e22cb['ma_nv']);if(_0x355123[_0x2d7fa7(0x1e9)](_0x4ddcc5,_0x355123[_0x2d7fa7(0x234)])&&_0x304b55[_0x2d7fa7(0x20b)]){if(_0x355123['ulITy'](_0x355123[_0x2d7fa7(0x1fb)],'Detyh'))return _0x31dd53[_0x2d7fa7(0x10c)](_0x474018,_0x11894d),_0x355123['GPSXw'](_0x45612c,_0x295e64[_0x2d7fa7(0x1d4)]||_0x80b497);else _0x163837[_0x2d7fa7(0x20b)]={'$in':await _0x355123[_0x2d7fa7(0x101)](getCodeChildren,global['getModel'](_0x355123[_0x2d7fa7(0x252)]),_0x2e22cb[_0x2d7fa7(0x261)],_0x304b55[_0x2d7fa7(0x20b)],'ma_phi',_0x355123[_0x2d7fa7(0x224)])};}let _0x37f65f=_0x355123[_0x2d7fa7(0x1e6)](getRegString,_0x304b55[_0x2d7fa7(0xd9)]);if(_0x37f65f){if(_0x355123[_0x2d7fa7(0x1ff)]===_0x355123['fmSyf'])_0x5a9acb=_0x2e0865['getModel'](_0x355123[_0x2d7fa7(0x25f)]);else{if(_0x304b55['giam_tru_no']){if('hNKMr'!==_0x355123[_0x2d7fa7(0x247)])_0x163837['tk_no']={'$not':new RegExp(_0x37f65f)};else{if(_0x39f4c3)return _0x355123['GPSXw'](_0x119d37,_0x463d87);let _0x523260=_0xc74383[_0x2d7fa7(0x123)](_0x355123[_0x2d7fa7(0x1ca)]),_0x1ce5e8=_0x4d0684[_0x2d7fa7(0x123)](_0x355123[_0x2d7fa7(0x189)]);(_0x523260||_0x1ce5e8)&&(_0x23b217[_0x31140a[_0x2d7fa7(0x268)]]=_0x523260,_0x549820[_0x355123['AUicg'](_0x5f5dc7[_0x2d7fa7(0x268)],'_nt')]=_0x1ce5e8,_0x59b0d9[_0x2d7fa7(0x140)]=!![]),_0x355123[_0x2d7fa7(0x256)](_0x54aa8b,null,_0x5e4d77);}}else _0x355123[_0x2d7fa7(0x102)](_0x2d7fa7(0x160),_0x355123[_0x2d7fa7(0x172)])?!_0x28d111['khong_tinh_tong']&&(_0x1a2304['total']=0x0,_0x351426[_0x2d7fa7(0x115)]=0x0,_0x43445a['forEach'](function(_0x71d30f){const _0x4a6bcd=_0x2d7fa7;_0x12cde9[_0x4a6bcd(0xef)]=_0x719334[_0x4a6bcd(0xef)]+(_0x4e49d7[_0x71d30f[_0x4a6bcd(0x268)]]?_0x2aec69[_0x71d30f[_0x4a6bcd(0x268)]]:0x0),_0x35ee71[_0x4a6bcd(0x115)]=_0xb09918['EDcUV'](_0x2b49de['total_nt'],_0x2a9a04[_0x71d30f[_0x4a6bcd(0x268)]+_0xb09918['LAGzI']]?_0x3adef8[_0xb09918['JHWNK'](_0x71d30f[_0x4a6bcd(0x268)],_0xb09918[_0x4a6bcd(0x146)])]:0x0);})):_0x163837[_0x2d7fa7(0xd9)]={'$regex':_0x37f65f,'$options':'i'};}}let _0x51d745=_0x355123[_0x2d7fa7(0x1a9)](getRegString,_0x304b55[_0x2d7fa7(0x1e7)]);if(_0x51d745){if(_0x355123['lmeFH'](_0x355123['DimcN'],'pixdr')){let _0x4c5940=_0x50eed1[_0x2d7fa7(0x1b0)](_0x355123[_0x2d7fa7(0x135)](_0x137ad6,_0x1daa73)[_0x2d7fa7(0x1f7)](_0x355123[_0x2d7fa7(0x22f)])[_0x2d7fa7(0x276)](),_0x4ac2b0[_0x2d7fa7(0x23c)]),_0x2ebdbd=_0x235ecf[_0x2d7fa7(0x200)](_0x355123[_0x2d7fa7(0x1a2)](_0x2a20ce,_0x2b1b63)[_0x2d7fa7(0x214)](_0x355123['SlYVy'])[_0x2d7fa7(0x276)](),_0x43d76b[_0x2d7fa7(0x231)]);_0x4a90ec[_0x2d7fa7(0x121)]({'field':_0x355123[_0x2d7fa7(0x11e)],'ten_obj':_0x2d7fa7(0x26e)+_0x355123['AUicg'](_0x5b26ad['getMonth'](),0x1)+'/'+_0x32da02[_0x2d7fa7(0x229)](),'ma_obj':{'$gte':_0x4c5940,'$lte':_0x2ebdbd}}),_0x1e6b5d[_0x2d7fa7(0x141)](_0x355123['PyxAU'](_0x337cb4[_0x2d7fa7(0x1da)](),0x1));}else _0x304b55[_0x2d7fa7(0x144)]&&_0x51d745?_0x163837[_0x2d7fa7(0x1e7)]={'$not':new RegExp(_0x51d745)}:_0x163837[_0x2d7fa7(0x1e7)]={'$regex':_0x51d745,'$options':'i'};}if(_0x304b55['dieu_kien_khac'])try{_0x355123['fOjyX'](_0x304b55['dieu_kien_khac'][_0x2d7fa7(0x14d)]('{'),0x0)&&(_0x355123[_0x2d7fa7(0x165)](_0x355123[_0x2d7fa7(0x118)],_0x355123[_0x2d7fa7(0x195)])?_0x304b55['dieu_kien_khac']=_0x355123[_0x2d7fa7(0x1ce)]('{',_0x304b55['dieu_kien_khac'])+'}':_0x54ba8d[_0xb09918[_0x2d7fa7(0xe7)]]=_0x5f039b[_0xb09918['IgIwU']]);let _0x5dfc0b=_0x304b55[_0x2d7fa7(0x24a)];_0x355123[_0x2d7fa7(0xe0)](_0x5dfc0b[_0x2d7fa7(0x14d)](_0x355123['CQbTb']),0x0)&&(_0x5dfc0b=_0x2d7fa7(0x23e)+_0x5dfc0b);let _0x4a0be6=utils[_0x2d7fa7(0x18a)](_0x5dfc0b,{'moment':moment,'condition':_0x163837,'row':_0x304b55});_0x163837={..._0x163837,..._0x4a0be6};}catch(_0xb70da2){if(_0x355123[_0x2d7fa7(0x102)](_0x2d7fa7(0x153),_0x2d7fa7(0x153)))_0x355123['GPSXw'](_0x484568,_0xb70da2[_0x2d7fa7(0x19f)]());else{if(_0x37f24c['error'])return _0x1ca92f[_0x2d7fa7(0x10c)](_0x134cf1[_0x2d7fa7(0x10c)],_0x2db7d8),_0x4b9fb8(_0x1274c4['error'][_0x2d7fa7(0x1d4)]||_0xeefe61[_0x2d7fa7(0x10c)]);_0x355123[_0x2d7fa7(0x21b)](_0x489002,null,_0x4eadb9);}}let _0x4556bf;if(_0x304b55[_0x2d7fa7(0x10a)])_0x163837['ma_kho']=_0x304b55[_0x2d7fa7(0x10a)],_0x4556bf=global[_0x2d7fa7(0x174)](_0x355123[_0x2d7fa7(0x249)]);else{if(_0x355123[_0x2d7fa7(0x24e)]===_0x355123['nRMBj'])_0x4556bf=global[_0x2d7fa7(0x174)]('socaitt');else{let _0x5336ac=_0xb09918['sdArh'](_0x16f5c3,_0x5ca596)[_0x2d7fa7(0x17a)](),_0x2c5c73=_0x25be65[_0x2d7fa7(0x1b0)](_0x20d697(_0x538f06)[_0x2d7fa7(0x1f7)](_0xb09918[_0x2d7fa7(0x24f)])[_0x2d7fa7(0x276)](),_0x51c1b7['tu_ngay']),_0x54199c=_0xa9ceca[_0x2d7fa7(0x200)](_0xb09918[_0x2d7fa7(0x148)](_0x417147,_0x1d9c6d)['endOf'](_0xb09918[_0x2d7fa7(0x24f)])[_0x2d7fa7(0x276)](),_0x2aa42a[_0x2d7fa7(0x231)]);_0x923cc2['push']({'field':_0xb09918[_0x2d7fa7(0x159)],'ten_obj':'Quý\x20'+_0x5336ac+'/'+_0x5cf680[_0x2d7fa7(0x229)](),'ma_obj':{'$gte':_0x2c5c73,'$lte':_0x54199c}}),_0x11b56f=_0x747472(_0x26e1a2)['quarter'](_0xb09918[_0x2d7fa7(0x255)](_0x5336ac,0x1))['toDate']();}}_0x4556bf[_0x2d7fa7(0x1a8)](_0x163837,{'tien':0x1,'tien_nt':0x1})[_0x2d7fa7(0x183)]()[_0x2d7fa7(0x1b7)](function(_0x972f58,_0x263d5a){const _0x4e7208=_0x2d7fa7;if(_0x355123['AwdBa'](_0x355123['IBVAQ'],_0x355123[_0x4e7208(0x27c)]))_0x1f0413[_0x4e7208(0x1e7)]={'$not':new _0x476b8(_0x608d04)};else{if(_0x972f58)return _0x355123[_0x4e7208(0x1a2)](_0x484568,_0x972f58);let _0x34f327=_0x263d5a[_0x4e7208(0x123)](_0x4e7208(0x152)),_0x35a48b=_0x263d5a[_0x4e7208(0x123)](_0x355123[_0x4e7208(0x189)]);_0x355123[_0x4e7208(0xfd)](_0x34f327,_0x35a48b)&&(_0x304b55[_0x103cbc[_0x4e7208(0x268)]]=_0x34f327,_0x304b55[_0x103cbc[_0x4e7208(0x268)]+_0x355123['sZGsp']]=_0x35a48b,_0x103cbc[_0x4e7208(0x140)]=!![]),_0x355123['BhoQE'](_0x484568,null,_0x304b55);}});});},function(_0x4674b5){const _0x424d12=_0x2e0640;_0x53056[_0x424d12(0x1c1)](_0xf89299,_0x4674b5);});else return _0x2e4432[_0x2e0640(0x1bd)](_0x5da4bb,_0x1b2aac);}else{if(_0x1d1a5c[_0x2e0640(0x246)](_0x304b55['cach_tinh'],'99')&&_0x304b55[_0x2e0640(0x119)]){if(_0x1d1a5c['CKMne'](_0x1d1a5c['hXMjm'],_0x1d1a5c[_0x2e0640(0x138)]))_0x5e8937[_0x2e0640(0x24a)]=_0x53056[_0x2e0640(0x250)](_0x53056[_0x2e0640(0x1ea)]('{',_0x272069['dieu_kien_khac']),'}');else{_0x304b55['cong_thuc']='';if(_0x304b55[_0x2e0640(0x119)]['indexOf'](_0x1d1a5c[_0x2e0640(0x14e)])>=0x0)return _0xf89299(_0x2e0640(0x179));let _0x4b319f=_0x2e0640(0x16d)+_0x304b55[_0x2e0640(0x119)]+_0x2e0640(0x15b);_0x1d1a5c[_0x2e0640(0x27b)](evalute,_0x4b319f,{'row':_0x304b55,'moment':moment,'condition':_0x2e22cb,'user':_0x4cdf2c[_0x2e0640(0x128)],'_':_,'utils':utils})()[_0x2e0640(0x133)](_0x93fde7=>{const _0x554369=_0x2e0640;if(_0x93fde7){if(_0x2e4432[_0x554369(0x278)](_0x2e4432[_0x554369(0x1f4)],_0x554369(0xda))){if(_0x93fde7[_0x554369(0x10c)])return console[_0x554369(0x10c)](_0x93fde7['error'],_0x4b319f),_0xf89299(_0x93fde7[_0x554369(0x10c)][_0x554369(0x1d4)]||_0x93fde7[_0x554369(0x10c)]);_0xf89299(null,_0x304b55);}else _0xed7a27[_0x554369(0x144)]&&_0x4dcf57?_0x280300['tk_co']={'$not':new _0x5f2f5e(_0x382480)}:_0x8db523['tk_co']={'$regex':_0x1980bb,'$options':'i'};}else _0x2e4432[_0x554369(0x1cf)](_0xf89299,null,_0x304b55);})[_0x2e0640(0x1c7)](_0x48642e=>{const _0x3aeb09=_0x2e0640;if(_0x2e4432['dOtac'](_0x3aeb09(0x17f),_0x2e4432[_0x3aeb09(0x116)]))_0x72c406[_0x3aeb09(0x1a4)]=_0x1bf6f9['ma_dt'];else return console[_0x3aeb09(0x10c)](_0x48642e,_0x4b319f),_0x2e4432[_0x3aeb09(0x1bd)](_0xf89299,_0x48642e[_0x3aeb09(0x1d4)]||_0x48642e);});}}else _0xf89299(null,_0x304b55);}}else return _0x500fdc[_0x2e0640(0x19f)]()[_0x2e0640(0x14c)](imwIxL[_0x2e0640(0x120)])[_0x2e0640(0x19f)]()[_0x2e0640(0x193)](_0x41f65c)['search'](imwIxL[_0x2e0640(0x120)]);}});else{if(_0x45cac8){if(_0x255234['error'])return _0x4065a4[_0x5832b3(0x10c)](_0x51f757[_0x5832b3(0x10c)],_0x36e8db),_0x53056[_0x5832b3(0x1c1)](_0x4d0e0f,_0x5313dd[_0x5832b3(0x10c)][_0x5832b3(0x1d4)]||_0x2439e1['error']);_0x53056[_0x5832b3(0x24d)](_0x3f043b,null,_0x4be0d);}else _0x53056[_0x5832b3(0xf7)](_0x288d07,null,_0x575894);}},function(_0x1a01f8){const _0x17f44a=_0x59da70,_0xcb8225={'ltOFS':function(_0xd6ae1c,_0x5e1edd){const _0x1f2d58=_0x11b9;return _0x1d1a5c[_0x1f2d58(0x217)](_0xd6ae1c,_0x5e1edd);},'ZqgUc':function(_0x56d492,_0x56446b){const _0x104aaa=_0x11b9;return _0x1d1a5c[_0x104aaa(0x1d1)](_0x56d492,_0x56446b);},'DFkWv':_0x1d1a5c['SxXCT'],'xpaGd':function(_0x392c6d,_0x30c435){return _0x1d1a5c['MIprS'](_0x392c6d,_0x30c435);},'wpIIo':_0x17f44a(0x26d),'jZBAQ':function(_0x312306,_0x48e93b){return _0x312306+_0x48e93b;},'mdPMC':function(_0x24e41c,_0x5ac299){const _0x35b46f=_0x17f44a;return _0x1d1a5c[_0x35b46f(0x205)](_0x24e41c,_0x5ac299);},'FVgfN':_0x1d1a5c[_0x17f44a(0x178)],'aijzv':function(_0x4e7858,_0x36c2ba){return _0x1d1a5c['MIprS'](_0x4e7858,_0x36c2ba);},'FZjdA':_0x1d1a5c[_0x17f44a(0x1be)],'tejst':_0x1d1a5c[_0x17f44a(0x1c8)],'wISKi':function(_0x2e5ab8,_0x116d65){const _0x28e70e=_0x17f44a;return _0x1d1a5c[_0x28e70e(0x1f5)](_0x2e5ab8,_0x116d65);},'bzbqr':function(_0x398c58,_0x48dd30){return _0x1d1a5c['rQZlp'](_0x398c58,_0x48dd30);},'VyyJa':_0x1d1a5c['ZaYTg'],'BbkFE':function(_0x1a5af6,_0x460f8d,_0x5705ef){return _0x1d1a5c['rMGfJ'](_0x1a5af6,_0x460f8d,_0x5705ef);}};if(_0x1d1a5c[_0x17f44a(0x267)](_0x1d1a5c[_0x17f44a(0x240)],_0x1d1a5c[_0x17f44a(0x18c)]))_0x3172f9=_0xcb8225[_0x17f44a(0x1c5)](_0x39e383,_0x390717['abs'](_0x5dc78c[_0x27dac5[_0x17f44a(0x268)]]||0x0));else{if(_0x1a01f8)return _0x1d1a5c[_0x17f44a(0x23d)](_0x314a4d,_0x1a01f8);let _0x101c6d='';_0x28a900=_0x28a900[_0x17f44a(0x21f)](_0x487d0a=>_0x487d0a[_0x17f44a(0x140)]),_0x28a900[_0x17f44a(0x1c3)](function(_0xfa2ae9){const _0x2130b5=_0x17f44a,_0x1c59f0={'CHJtK':function(_0x5e2eae,_0x53ec7f){const _0x5c6036=_0x11b9;return _0xcb8225[_0x5c6036(0x21d)](_0x5e2eae,_0x53ec7f);},'DrTxk':_0xcb8225[_0x2130b5(0x254)]};_0x101c6d?_0xcb8225[_0x2130b5(0x22b)](_0xcb8225[_0x2130b5(0x271)],_0xcb8225[_0x2130b5(0x271)])?(_0x392b82[_0x23e67d[_0x2130b5(0x268)]]=_0x552c5a,_0x878016[_0x1c59f0['CHJtK'](_0x1abacb['ma_obj'],_0x1c59f0['DrTxk'])]=_0x15789b,_0x3515c4[_0x2130b5(0x140)]=!![]):_0x101c6d=_0xcb8225[_0x2130b5(0x259)](_0xcb8225[_0x2130b5(0x21d)](_0x101c6d+',',_0xfa2ae9[_0x2130b5(0x268)]),',')+_0xfa2ae9[_0x2130b5(0x268)]+_0x2130b5(0xff):_0x101c6d=_0xcb8225[_0x2130b5(0x259)](_0xcb8225[_0x2130b5(0xf2)](_0xfa2ae9[_0x2130b5(0x268)],',')+_0xfa2ae9[_0x2130b5(0x268)],_0xcb8225['DFkWv']),_0xfa2ae9['field']=_0xfa2ae9[_0x2130b5(0x268)],_0xfa2ae9['header']=_0xfa2ae9[_0x2130b5(0x27e)],_0xfa2ae9[_0x2130b5(0x17e)]=_0xcb8225[_0x2130b5(0x1cc)];}),_0x1d1a5c['mKrxN'](calcGrid,_0x2cbc2e,_0x101c6d,async function(_0x4941cf){const _0x24578a=_0x17f44a,_0x1b6a5c={'qEPjZ':function(_0x51f79a,_0x53f9da){return _0xcb8225['mdPMC'](_0x51f79a,_0x53f9da);},'WkKfX':function(_0x12ec38,_0x16e84e){const _0x348e08=_0x11b9;return _0xcb8225[_0x348e08(0x218)](_0x12ec38,_0x16e84e);},'wBJri':_0x24578a(0x124),'jXMQC':_0xcb8225[_0x24578a(0x112)],'avJTh':function(_0x5dc154,_0x4174b3){return _0xcb8225['ltOFS'](_0x5dc154,_0x4174b3);},'wiZvD':function(_0x1e4fc3,_0x401b27){const _0x308138=_0x24578a;return _0xcb8225[_0x308138(0x21d)](_0x1e4fc3,_0x401b27);},'kQhSB':_0x24578a(0xff)};let _0x53c270=[];_0x28a900[_0x24578a(0x1c3)](function(_0x35c812){const _0x14fd48=_0x24578a;let _0x48e818=0x0;_0x4941cf&&_0x4941cf[_0x14fd48(0x1c3)](function(_0x3a3832){const _0x34b245=_0x14fd48;_0x48e818=_0x1b6a5c[_0x34b245(0x20e)](_0x48e818,Math[_0x34b245(0xf0)](_0x3a3832[_0x35c812[_0x34b245(0x268)]]||0x0));}),_0x48e818&&(_0x1b6a5c['WkKfX'](_0x1b6a5c[_0x14fd48(0x18e)],_0x14fd48(0xf4))?_0x53c270[_0x14fd48(0x121)](_0x35c812):_0x5dbff7[_0x14fd48(0x1e7)]={'$regex':_0x202eda,'$options':'i'});}),_0x4941cf['forEach'](function(_0x214213){const _0x4d5a83=_0x24578a,_0x2d7039={'skLMY':function(_0x1a4f7e,_0x5c26f4){const _0x37f18e=_0x11b9;return _0x1b6a5c[_0x37f18e(0x125)](_0x1a4f7e,_0x5c26f4);},'xmvzE':_0x1b6a5c[_0x4d5a83(0x185)],'CuTfR':_0x4d5a83(0x1e0),'DdUaf':function(_0x4067da,_0x170626){return _0x1b6a5c['avJTh'](_0x4067da,_0x170626);},'qfawr':function(_0x58f406,_0x5c085c){return _0x1b6a5c['wiZvD'](_0x58f406,_0x5c085c);},'RasUc':_0x1b6a5c[_0x4d5a83(0x18f)],'AzgfY':function(_0x2d9bdc,_0x2b2b1c){const _0x26df4c=_0x4d5a83;return _0x1b6a5c[_0x26df4c(0x239)](_0x2d9bdc,_0x2b2b1c);}};!_0x214213[_0x4d5a83(0x1dc)]&&(_0x214213[_0x4d5a83(0xef)]=0x0,_0x214213['total_nt']=0x0,_0x28a900[_0x4d5a83(0x1c3)](function(_0x5d4aff){const _0x1828e7=_0x4d5a83,_0x779981={'wnQuO':function(_0x1bce00,_0x5647d8,_0x5ea1b7){return _0x1bce00(_0x5647d8,_0x5ea1b7);}};_0x2d7039[_0x1828e7(0x238)](_0x2d7039[_0x1828e7(0x210)],_0x2d7039[_0x1828e7(0x130)])?(_0x214213[_0x1828e7(0xef)]=_0x214213[_0x1828e7(0xef)]+(_0x214213[_0x5d4aff['ma_obj']]?_0x214213[_0x5d4aff[_0x1828e7(0x268)]]:0x0),_0x214213['total_nt']=_0x2d7039[_0x1828e7(0x20f)](_0x214213['total_nt'],_0x214213[_0x2d7039[_0x1828e7(0x1f6)](_0x5d4aff['ma_obj'],_0x2d7039['RasUc'])]?_0x214213[_0x2d7039['AzgfY'](_0x5d4aff['ma_obj'],_0x2d7039[_0x1828e7(0x194)])]:0x0)):_0x779981[_0x1828e7(0x25d)](_0x464e36,null,_0x12c036);}));});if(_0x4c04c0[_0x24578a(0x1ba)]){if(_0xcb8225[_0x24578a(0xfe)]===_0x24578a(0x107)){if(_0xcb8225['wISKi'](_0x4c04c0['handle_data_expression_server']['indexOf'](_0x24578a(0x129)),0x0))return _0xcb8225['bzbqr'](_0x314a4d,_0xcb8225[_0x24578a(0x1a6)]);let _0x1a500a=_0x24578a(0x25b)+_0x4c04c0[_0x24578a(0x1ba)]+_0x24578a(0x228);try{_0x4941cf=await utils[_0x24578a(0x18a)](_0x1a500a,{'data':_0x4941cf,'moment':moment,'numeral':numeral,'condition':_0x4cdf2c[_0x24578a(0xf3)]})();if(_0x4941cf){if(_0x4941cf[_0x24578a(0x10c)])return console[_0x24578a(0x10c)](_0x4941cf[_0x24578a(0x10c)],_0x1a500a),_0xcb8225[_0x24578a(0x117)](_0x314a4d,_0x4941cf[_0x24578a(0x10c)][_0x24578a(0x1d4)]||_0x4941cf[_0x24578a(0x10c)]);}}catch(_0x485aeb){return console[_0x24578a(0x10c)](_0x485aeb,_0x1a500a),_0x314a4d(_0x485aeb['message']||_0x485aeb);}}else _0x4a5af9[_0x24578a(0x121)](_0x5b9cc0);}_0xcb8225[_0x24578a(0x184)](_0x314a4d,null,{'rows':_0x4941cf[_0x24578a(0x21f)](_0x59ce0b=>_0x59ce0b[_0x24578a(0x241)]!==![]),'columns':_0x53c270});});}});}});});};
|