flexbiz-server 12.4.21 → 12.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/server/app.js +1 -22
- package/server/auths/bearer.js +1 -3
- package/server/auths/facebook.js +1 -12
- package/server/auths/google.js +1 -13
- package/server/auths/local.js +1 -64
- package/server/cluster.js +1 -27
- package/server/controllers/controller.js +1 -107
- package/server/controllers/controllerRPT.js +1 -27
- package/server/controllers/controllerUtils.js +1 -76
- package/server/controllers/createHandler.js +1 -35
- package/server/controllers/createRouteHandler.js +1 -4
- package/server/controllers/deleteHandler.js +1 -11
- package/server/controllers/deleteManyHandler.js +1 -2
- package/server/controllers/exportHandler.js +1 -17
- package/server/controllers/findHandler.js +1 -53
- package/server/controllers/handlers.js +1 -3
- package/server/controllers/historyHandler.js +1 -5
- package/server/controllers/importFromExcelHandler.js +1 -14
- package/server/controllers/importFromGsHandler.js +1 -10
- package/server/controllers/importFromJsonHandler.js +1 -7
- package/server/controllers/importHandler.js +1 -21
- package/server/controllers/logHandler.js +1 -5
- package/server/controllers/rptCreateRouteHandler.js +1 -4
- package/server/controllers/rptExcelHandler.js +1 -32
- package/server/controllers/rptHandler.js +1 -13
- package/server/controllers/updateBookHandler.js +1 -10
- package/server/controllers/updateFieldHandler.js +1 -12
- package/server/controllers/updateHandler.js +1 -39
- package/server/controllers/updateKeyHandler.js +1 -14
- package/server/controllers/viewHandler.js +1 -13
- package/server/flow/FlowEngine.js +1 -64
- package/server/flow/WebhookManager.js +1 -26
- package/server/flow/handlers.js +1 -3
- package/server/flow/nodes/aiAnalysis.js +1 -9
- package/server/flow/nodes/customer.js +1 -15
- package/server/flow/nodes/data.js +1 -14
- package/server/flow/nodes/debug.js +1 -2
- package/server/flow/nodes/delay.js +1 -3
- package/server/flow/nodes/email.js +1 -9
- package/server/flow/nodes/event.js +1 -11
- package/server/flow/nodes/facebook.js +1 -3
- package/server/flow/nodes/facebookConversations.js +1 -5
- package/server/flow/nodes/facebookCreatePost.js +1 -10
- package/server/flow/nodes/facebookSendMessage.js +1 -12
- package/server/flow/nodes/forEachItem.js +1 -8
- package/server/flow/nodes/function.js +1 -4
- package/server/flow/nodes/httprequest.js +1 -7
- package/server/flow/nodes/inject.js +1 -12
- package/server/flow/nodes/pushNotification.js +1 -5
- package/server/flow/nodes/report.js +1 -6
- package/server/flow/nodes/saveData.js +1 -2
- package/server/flow/nodes/switch.js +1 -20
- package/server/flow/nodes/webhook.js +1 -1
- package/server/flow/nodes/zaloSendMessage.js +1 -4
- package/server/flow/utils.js +1 -2
- package/server/global.js +1 -23
- package/server/libs/BlockchainTransactionPool.js +1 -3
- package/server/libs/WorkerPool.js +1 -4
- package/server/libs/WorkerStaticPool.js +1 -16
- package/server/libs/WorkerStaticPool_v1.js +1 -5
- package/server/libs/assbonus.js +1 -7
- package/server/libs/backup.js +1 -2
- package/server/libs/blockchainconnect.js +1 -12
- package/server/libs/cdpsdiem.js +1 -5
- package/server/libs/cdpsdt.js +1 -7
- package/server/libs/cdpskh.js +1 -9
- package/server/libs/cdpsnphep.js +1 -6
- package/server/libs/cdpstk.js +1 -11
- package/server/libs/ckcn.js +1 -12
- package/server/libs/ckdiem.js +1 -5
- package/server/libs/ckdt.js +1 -6
- package/server/libs/cknphep.js +1 -6
- package/server/libs/cktk.js +1 -4
- package/server/libs/cktt.js +1 -9
- package/server/libs/ckvt.js +1 -12
- package/server/libs/ckvtcapphat.js +1 -6
- package/server/libs/ckvtnpp.js +1 -8
- package/server/libs/ckvttt.js +1 -11
- package/server/libs/createSocaitheongay.js +1 -9
- package/server/libs/ctdiem.js +1 -5
- package/server/libs/ctvt.js +1 -7
- package/server/libs/ctvtnpp.js +1 -7
- package/server/libs/ctvttt.js +1 -7
- package/server/libs/databanle.js +1 -17
- package/server/libs/databanlenpp.js +1 -8
- package/server/libs/databanletheongay.js +1 -27
- package/server/libs/dkcn.js +1 -10
- package/server/libs/dkdiem.js +1 -5
- package/server/libs/dkdt.js +1 -6
- package/server/libs/dknphep.js +1 -7
- package/server/libs/dktk.js +1 -4
- package/server/libs/dktt.js +1 -8
- package/server/libs/dkvt.js +1 -9
- package/server/libs/dkvtnpp.js +1 -7
- package/server/libs/dkvttt.js +1 -7
- package/server/libs/dncn.js +1 -6
- package/server/libs/dntk.js +1 -4
- package/server/libs/dntt.js +1 -6
- package/server/libs/docs.js +1 -452
- package/server/libs/dstkcn.js +1 -1
- package/server/libs/dstktt.js +1 -1
- package/server/libs/dtbanletheonpp.js +1 -17
- package/server/libs/dtbanletheosp.js +1 -15
- package/server/libs/dtbanletheospnpp.js +1 -15
- package/server/libs/email.js +1 -3
- package/server/libs/excel.js +1 -2
- package/server/libs/getGiaban.js +1 -67
- package/server/libs/getGiabanAsync.js +1 -1
- package/server/libs/getNotifies.js +1 -1
- package/server/libs/htmlReport.js +1 -9
- package/server/libs/initDatabase.js +1 -9
- package/server/libs/invoiceEasy.js +1 -109
- package/server/libs/invoiceViettel.js +1 -29
- package/server/libs/invoiceVnpt.js +1 -22
- package/server/libs/kpistatus.js +1 -32
- package/server/libs/load-template.js +1 -3
- package/server/libs/mailmanagement.js +1 -13
- package/server/libs/mongooseDeletePost.js +1 -6
- package/server/libs/mongooseLeanId.js +1 -1
- package/server/libs/mongoosePatch.js +1 -8
- package/server/libs/onepay-payment.js +1 -4
- package/server/libs/optimizeBookkeeping.js +1 -14
- package/server/libs/parse-template.js +1 -5
- package/server/libs/permission.js +1 -51
- package/server/libs/phanbokh.js +1 -3
- package/server/libs/post-book.js +1 -23
- package/server/libs/post-socai.js +1 -25
- package/server/libs/post-sokho.js +1 -27
- package/server/libs/prototypes.js +1 -29
- package/server/libs/psdt.js +1 -1
- package/server/libs/pskh.js +1 -1
- package/server/libs/pstk.js +1 -1
- package/server/libs/redis-cache.js +1 -17
- package/server/libs/restore.js +1 -1
- package/server/libs/schedule.js +1 -18
- package/server/libs/sessionContext.js +2 -14
- package/server/libs/textReport.js +1 -3
- package/server/libs/thnxt.js +1 -9
- package/server/libs/thnxtnpp.js +1 -9
- package/server/libs/thnxttt.js +1 -8
- package/server/libs/tinhGt.js +1 -7
- package/server/libs/tinhGtCapnhatPNK.js +1 -7
- package/server/libs/tinhGtPhanboHeSo.js +1 -12
- package/server/libs/tinhGtPhanboSltp.js +1 -10
- package/server/libs/tinhGtPhanboYtcp.js +1 -11
- package/server/libs/tinhGtSltk.js +1 -9
- package/server/libs/tinhGtThcppstk.js +1 -10
- package/server/libs/tinhGtTrucTiep.js +1 -7
- package/server/libs/tinhGtXoa.js +1 -3
- package/server/libs/tinhgiatb.js +1 -38
- package/server/libs/tinhgiatb1vt.js +1 -5
- package/server/libs/tinhhoahong.js +1 -64
- package/server/libs/tinhhoahongnpp.js +1 -46
- package/server/libs/tinhkhauhao1ts.js +1 -12
- package/server/libs/tinhkhauhaots.js +1 -8
- package/server/libs/tuoinophaithu.js +1 -10
- package/server/libs/tuoinophaitra.js +1 -11
- package/server/libs/utils.js +1 -78
- package/server/libs/validate.js +1 -4
- package/server/libs/validator-acc-cust.js +1 -1
- package/server/libs/validator-account.js +1 -4
- package/server/libs/validator-vt.js +1 -2
- package/server/libs/validator.js +1 -11
- package/server/libs/vsocai.js +1 -8
- package/server/models/account.js +1 -7
- package/server/models/afflink.js +1 -2
- package/server/models/app.js +1 -15
- package/server/models/approve.js +1 -93
- package/server/models/assabcihandler.js +1 -35
- package/server/models/assbank.js +1 -19
- package/server/models/assbooking.js +1 -4
- package/server/models/assbuy.js +1 -3
- package/server/models/asscashwithdraw.js +1 -4
- package/server/models/assfindhash.js +1 -2
- package/server/models/assinvestment.js +1 -13
- package/server/models/assissue.js +1 -2
- package/server/models/asskey.js +1 -15
- package/server/models/assneedtobuy.js +1 -6
- package/server/models/assperiod.js +1 -7
- package/server/models/assproduct.js +1 -13
- package/server/models/assprofitsharing.js +1 -4
- package/server/models/assreceiver.js +1 -2
- package/server/models/assrequest.js +1 -11
- package/server/models/asssell.js +1 -7
- package/server/models/asstransaction.js +1 -3
- package/server/models/asstransfer.js +1 -4
- package/server/models/assuser_identity.js +1 -4
- package/server/models/asswithdraw.js +1 -4
- package/server/models/attend.js +1 -2
- package/server/models/banggiaban.js +1 -8
- package/server/models/bangtinhluong.js +1 -6
- package/server/models/base.js +1 -1
- package/server/models/bds_area.js +1 -4
- package/server/models/bds_block.js +1 -3
- package/server/models/bds_building.js +1 -4
- package/server/models/bds_floor.js +1 -3
- package/server/models/bds_floordetail.js +1 -9
- package/server/models/bds_nhadat.js +1 -11
- package/server/models/bds_nhomnhadat.js +1 -4
- package/server/models/bds_phanloainhadat.js +1 -3
- package/server/models/bg1.js +1 -9
- package/server/models/bg2.js +1 -10
- package/server/models/cache.js +1 -3
- package/server/models/calllog.js +1 -4
- package/server/models/campaign.js +1 -6
- package/server/models/cart.js +1 -5
- package/server/models/cddiem.js +1 -2
- package/server/models/cddt.js +1 -3
- package/server/models/cdkh.js +1 -5
- package/server/models/cdkhtheongay.js +1 -5
- package/server/models/cdnphep.js +1 -2
- package/server/models/cdtk.js +1 -3
- package/server/models/cdtktheongay.js +1 -3
- package/server/models/cdvt.js +1 -5
- package/server/models/cdvtnpp.js +1 -6
- package/server/models/cdvttheongay.js +1 -5
- package/server/models/chamcong.js +1 -7
- package/server/models/checkin.js +1 -4
- package/server/models/checkinactivity.js +1 -3
- package/server/models/checkinkpi.js +1 -4
- package/server/models/checkinlocation.js +1 -2
- package/server/models/chitieukpi.js +1 -3
- package/server/models/chudethaoluan.js +1 -3
- package/server/models/ckgtluong.js +1 -2
- package/server/models/colleague.js +1 -2
- package/server/models/comment.js +1 -4
- package/server/models/congdoansx.js +1 -4
- package/server/models/congtacvien.js +1 -4
- package/server/models/congthuctinhgiaban.js +1 -8
- package/server/models/consultant.js +1 -4
- package/server/models/contract.js +1 -6
- package/server/models/counter.js +1 -2
- package/server/models/ctds.js +1 -5
- package/server/models/ctds2.js +1 -6
- package/server/models/currency.js +1 -3
- package/server/models/customer.js +1 -31
- package/server/models/databanle.js +1 -8
- package/server/models/datlich.js +1 -4
- package/server/models/department.js +1 -4
- package/server/models/dh2.js +1 -20
- package/server/models/diagram.js +1 -2
- package/server/models/dinhmucsx.js +1 -8
- package/server/models/dkhoc.js +1 -6
- package/server/models/dknphep.js +1 -2
- package/server/models/dmban.js +1 -4
- package/server/models/dmbp.js +1 -12
- package/server/models/dmca.js +1 -2
- package/server/models/dmchietkhau.js +1 -9
- package/server/models/dmchietkhauhd.js +1 -20
- package/server/models/dmcpmh.js +1 -2
- package/server/models/dmdiemthuong.js +1 -5
- package/server/models/dmdoi.js +1 -4
- package/server/models/dmdoituongdanhgia.js +1 -2
- package/server/models/dmdt.js +1 -8
- package/server/models/dmdvt.js +1 -3
- package/server/models/dmgiaban.js +1 -9
- package/server/models/dmgiamua.js +1 -5
- package/server/models/dmgiathitruong.js +1 -5
- package/server/models/dmgiathitruong_ngay.js +1 -2
- package/server/models/dmgiathitruong_theodoi.js +1 -2
- package/server/models/dmhoahonghd.js +1 -9
- package/server/models/dmhoahongnpp.js +1 -9
- package/server/models/dmkc.js +1 -3
- package/server/models/dmkho.js +1 -6
- package/server/models/dmkhuyenmai.js +1 -9
- package/server/models/dmkhuyenmaihd.js +1 -11
- package/server/models/dmletet.js +1 -2
- package/server/models/dmlo.js +1 -4
- package/server/models/dmloaicong.js +1 -4
- package/server/models/dmloaitask.js +1 -2
- package/server/models/dmloaits.js +1 -2
- package/server/models/dmnckkm.js +1 -4
- package/server/models/dmnghiepvu.js +1 -4
- package/server/models/dmnguonvon.js +1 -2
- package/server/models/dmnhnv.js +1 -4
- package/server/models/dmnv.js +1 -17
- package/server/models/dmnvt.js +1 -9
- package/server/models/dmphatdichvu.js +1 -5
- package/server/models/dmphi.js +1 -3
- package/server/models/dmqct.js +1 -3
- package/server/models/dmqddvt.js +1 -3
- package/server/models/dmtanggiamts.js +1 -3
- package/server/models/dmto.js +1 -4
- package/server/models/dmtt.js +1 -6
- package/server/models/dmvt.js +1 -17
- package/server/models/dmyt.js +1 -4
- package/server/models/dn0.js +1 -13
- package/server/models/dnm.js +1 -11
- package/server/models/dokho.js +1 -2
- package/server/models/domain.js +1 -2
- package/server/models/dvcs.js +1 -3
- package/server/models/ecomcategories.js +1 -3
- package/server/models/ecomcategories_cty.js +1 -3
- package/server/models/ecomproductlines.js +1 -2
- package/server/models/ecompromotion_flashsales.js +1 -2
- package/server/models/ecompromotion_freeships.js +1 -2
- package/server/models/email.js +1 -2
- package/server/models/endpoint.js +1 -1
- package/server/models/events.js +1 -3
- package/server/models/evoucher.js +1 -5
- package/server/models/experiencejourney.js +1 -2
- package/server/models/experiencejourneydata.js +1 -4
- package/server/models/experiencejourneypersona.js +1 -3
- package/server/models/experiencejourneystage.js +1 -2
- package/server/models/exportexceltemplate.js +1 -2
- package/server/models/fbconversation.js +1 -15
- package/server/models/fbmessage.js +1 -2
- package/server/models/fbpage.js +1 -2
- package/server/models/fbpost.js +1 -2
- package/server/models/fieldright.js +1 -2
- package/server/models/file.js +1 -4
- package/server/models/financialroadmap.js +1 -3
- package/server/models/flow.js +1 -2
- package/server/models/flowdata.js +1 -3
- package/server/models/folder.js +1 -4
- package/server/models/follow.js +1 -2
- package/server/models/form.js +1 -3
- package/server/models/forminfo.js +1 -5
- package/server/models/formvalue.js +1 -3
- package/server/models/giaoca.js +1 -4
- package/server/models/giatb.js +1 -3
- package/server/models/group.js +1 -11
- package/server/models/gt_ctgt.js +1 -4
- package/server/models/gt_hspb.js +1 -3
- package/server/models/gt_sltk.js +1 -3
- package/server/models/gt_thcppstk.js +1 -3
- package/server/models/hanmucton.js +1 -4
- package/server/models/hd1.js +1 -11
- package/server/models/hd2.js +1 -27
- package/server/models/hd3.js +1 -18
- package/server/models/hd4.js +1 -13
- package/server/models/hd7.js +1 -17
- package/server/models/hd8.js +1 -12
- package/server/models/hde.js +1 -11
- package/server/models/hlink.js +1 -2
- package/server/models/hlinkvalue.js +1 -2
- package/server/models/hmcn.js +1 -3
- package/server/models/hmcnct.js +1 -2
- package/server/models/hspbts.js +1 -4
- package/server/models/htl.js +1 -13
- package/server/models/importexceltemplate.js +1 -2
- package/server/models/introducebonus.js +1 -4
- package/server/models/introducecode.js +1 -3
- package/server/models/introducer.js +1 -4
- package/server/models/kbbtpb.js +1 -7
- package/server/models/kbmPttct.js +1 -4
- package/server/models/kbmTkgtgt.js +1 -5
- package/server/models/kbm_bcdkt.js +1 -4
- package/server/models/kbm_kqhdkd.js +1 -3
- package/server/models/kbm_lcttgt.js +1 -5
- package/server/models/kbm_lctttt.js +1 -4
- package/server/models/kbm_pttct.js +1 -4
- package/server/models/kbm_tkgtgt.js +1 -5
- package/server/models/kbmbcdkt.js +1 -4
- package/server/models/kbmbcqt.js +1 -4
- package/server/models/kbmkqhdkd.js +1 -3
- package/server/models/kbmlcttgt.js +1 -6
- package/server/models/kbmlctttt.js +1 -4
- package/server/models/kbmtmbctc.js +1 -4
- package/server/models/kehoachdtcp.js +1 -3
- package/server/models/kehoachmh.js +1 -8
- package/server/models/keyresult.js +1 -7
- package/server/models/khunghangthanhvien.js +1 -3
- package/server/models/label.js +1 -2
- package/server/models/labelinfo.js +1 -2
- package/server/models/lenhcapphat.js +1 -8
- package/server/models/lenhsx.js +1 -8
- package/server/models/lienhe.js +1 -4
- package/server/models/like_module.js +1 -2
- package/server/models/link.js +1 -2
- package/server/models/loaidiem.js +1 -2
- package/server/models/lock.js +1 -2
- package/server/models/log.js +1 -5
- package/server/models/mailaccount.js +1 -3
- package/server/models/mailgroup.js +1 -3
- package/server/models/mailreceived.js +1 -2
- package/server/models/mailschedule.js +1 -2
- package/server/models/mailsent.js +1 -2
- package/server/models/mailtemplate.js +1 -2
- package/server/models/maudanhgia.js +1 -2
- package/server/models/menuinfo.js +1 -2
- package/server/models/message.js +1 -8
- package/server/models/message2.js +1 -4
- package/server/models/message2setting.js +1 -3
- package/server/models/moduleinfo.js +1 -4
- package/server/models/momo.js +1 -17
- package/server/models/news.js +1 -3
- package/server/models/newsfeed.js +1 -4
- package/server/models/note.js +1 -2
- package/server/models/notification.js +1 -7
- package/server/models/okr.js +1 -4
- package/server/models/okrdiagram.js +1 -3
- package/server/models/onepay.js +1 -24
- package/server/models/opportunity.js +1 -4
- package/server/models/options.js +1 -2
- package/server/models/originimportid.js +1 -1
- package/server/models/otp.js +1 -1
- package/server/models/parameter.js +1 -2
- package/server/models/participant.js +1 -20
- package/server/models/partner.js +1 -1
- package/server/models/payload.js +1 -1
- package/server/models/pbl.js +1 -16
- package/server/models/pc0.js +1 -13
- package/server/models/pc1.js +1 -14
- package/server/models/pc2.js +1 -13
- package/server/models/pc3.js +1 -13
- package/server/models/pc5.js +1 -8
- package/server/models/pc6.js +1 -14
- package/server/models/pcl.js +1 -6
- package/server/models/pdn.js +1 -9
- package/server/models/pdx.js +1 -9
- package/server/models/pgh.js +1 -5
- package/server/models/phieudanhgia.js +1 -3
- package/server/models/pht.js +1 -8
- package/server/models/phucap.js +1 -4
- package/server/models/pkc.js +1 -6
- package/server/models/pkh.js +1 -6
- package/server/models/pkk.js +1 -10
- package/server/models/pkt.js +1 -12
- package/server/models/pn1.js +1 -17
- package/server/models/pn2.js +1 -11
- package/server/models/pn3.js +1 -13
- package/server/models/pn5.js +1 -14
- package/server/models/pn6.js +1 -14
- package/server/models/pn9.js +1 -17
- package/server/models/pnc.js +1 -10
- package/server/models/pnh.js +1 -12
- package/server/models/pnk.js +1 -10
- package/server/models/po1.js +1 -19
- package/server/models/ppb.js +1 -6
- package/server/models/profile.js +1 -4
- package/server/models/pt1.js +1 -12
- package/server/models/pt5.js +1 -8
- package/server/models/ptl.js +1 -6
- package/server/models/ptthanhtoan.js +1 -6
- package/server/models/purchase_contract.js +1 -17
- package/server/models/pxc.js +1 -9
- package/server/models/pxh.js +1 -12
- package/server/models/pxk.js +1 -10
- package/server/models/qts.js +1 -14
- package/server/models/qts_dieuchinh.js +1 -3
- package/server/models/qts_dieuchuyen.js +1 -4
- package/server/models/quanhuyen.js +1 -2
- package/server/models/reason.js +1 -2
- package/server/models/receivedinvoice.js +1 -2
- package/server/models/reportinfo.js +1 -5
- package/server/models/right.js +1 -4
- package/server/models/rpt.js +1 -2
- package/server/models/rptform.js +1 -5
- package/server/models/rptobject.js +1 -2
- package/server/models/sale_contract.js +1 -9
- package/server/models/schedule.js +1 -16
- package/server/models/schedule_log.js +1 -2
- package/server/models/service.js +1 -4
- package/server/models/shipbook.js +1 -12
- package/server/models/shortcut.js +1 -2
- package/server/models/smsaccount.js +1 -10
- package/server/models/smssend.js +1 -2
- package/server/models/so1.js +1 -22
- package/server/models/so2.js +1 -10
- package/server/models/so3.js +1 -9
- package/server/models/so5.js +1 -15
- package/server/models/so9.js +1 -19
- package/server/models/socai.js +1 -26
- package/server/models/socainpp.js +1 -18
- package/server/models/socaitc.js +1 -6
- package/server/models/socaitmp.js +1 -16
- package/server/models/socaitt.js +1 -4
- package/server/models/sodiemthuong.js +1 -4
- package/server/models/sokho.js +1 -28
- package/server/models/sokhocapphat.js +1 -18
- package/server/models/sokhokhongton.js +1 -19
- package/server/models/sokhonpp.js +1 -19
- package/server/models/sokhotc.js +1 -8
- package/server/models/sokhott.js +1 -18
- package/server/models/sophanbokh.js +1 -3
- package/server/models/sosanxuat.js +1 -5
- package/server/models/sotinhkh.js +1 -2
- package/server/models/spdd_ck.js +1 -3
- package/server/models/spdd_dk.js +1 -3
- package/server/models/step.js +1 -2
- package/server/models/strategicdiagram.js +1 -3
- package/server/models/strategicgoal.js +1 -4
- package/server/models/strategickpi.js +1 -6
- package/server/models/strategicobjective.js +1 -5
- package/server/models/strategicplan.js +1 -5
- package/server/models/subscribe.js +1 -2
- package/server/models/support.js +1 -2
- package/server/models/synctime.js +1 -2
- package/server/models/sysconfig.js +1 -2
- package/server/models/sysgroup.js +1 -2
- package/server/models/tableinfo.js +1 -3
- package/server/models/task.js +1 -9
- package/server/models/taskreg.js +1 -4
- package/server/models/tc.js +1 -2
- package/server/models/tdttco.js +1 -8
- package/server/models/tdttco_tt.js +1 -5
- package/server/models/tdttno.js +1 -8
- package/server/models/tdttno_tt.js +1 -5
- package/server/models/templaterpt.js +1 -2
- package/server/models/templatestore.js +1 -3
- package/server/models/templatevoucher.js +1 -3
- package/server/models/tinhthanh.js +1 -2
- package/server/models/tokens.js +1 -2
- package/server/models/tontucthoi.js +1 -9
- package/server/models/trangthai.js +1 -4
- package/server/models/trangthaiapp.js +1 -4
- package/server/models/transaction.js +1 -16
- package/server/models/trialinfo.js +1 -2
- package/server/models/user.js +1 -38
- package/server/models/usergroup.js +1 -7
- package/server/models/vanchuyen.js +1 -12
- package/server/models/vat.js +1 -3
- package/server/models/vatra.js +1 -6
- package/server/models/vatvao.js +1 -6
- package/server/models/versioninfo.js +1 -2
- package/server/models/vietqrbanks.js +1 -2
- package/server/models/vsocai.js +1 -6
- package/server/models/waitevent.js +1 -2
- package/server/models/wallet.js +1 -8
- package/server/models/warranty.js +1 -3
- package/server/models/warrantyclaim.js +1 -2
- package/server/models/warrantypolicy.js +1 -1
- package/server/models/xaphuong.js +1 -2
- package/server/models/xhd.js +1 -10
- package/server/models/ytdd_ck.js +1 -4
- package/server/models/ytdd_dk.js +1 -4
- package/server/models/zalo.js +1 -17
- package/server/modules/lists/bg-cddiem.js +1 -6
- package/server/modules/lists/bg-cddt.js +1 -7
- package/server/modules/lists/bg-cdkh.js +1 -11
- package/server/modules/lists/bg-cdnphep.js +1 -6
- package/server/modules/lists/bg-cdtk.js +1 -9
- package/server/modules/lists/bg-cdvt.js +1 -8
- package/server/modules/lists/bg-cdvtnpp.js +1 -8
- package/server/modules/lists/ls-account.js +1 -4
- package/server/modules/lists/ls-afflink.js +1 -3
- package/server/modules/lists/ls-approve.js +1 -4
- package/server/modules/lists/ls-assabcihandler.js +1 -3
- package/server/modules/lists/ls-assbank.js +1 -3
- package/server/modules/lists/ls-assbooking.js +1 -20
- package/server/modules/lists/ls-assbuy.js +1 -8
- package/server/modules/lists/ls-asscashwithdraw.js +1 -8
- package/server/modules/lists/ls-assinvestment.js +1 -31
- package/server/modules/lists/ls-assissue.js +1 -3
- package/server/modules/lists/ls-asskey.js +1 -41
- package/server/modules/lists/ls-assneedtobuy.js +1 -10
- package/server/modules/lists/ls-assperiod.js +1 -19
- package/server/modules/lists/ls-assproduct.js +1 -9
- package/server/modules/lists/ls-assprofitsharing.js +1 -8
- package/server/modules/lists/ls-assreceiver.js +1 -3
- package/server/modules/lists/ls-assrequest.js +1 -4
- package/server/modules/lists/ls-asssell.js +1 -13
- package/server/modules/lists/ls-asstransaction.js +1 -3
- package/server/modules/lists/ls-asstransfer.js +1 -3
- package/server/modules/lists/ls-assuser_identity.js +1 -1
- package/server/modules/lists/ls-asswithdraw.js +1 -12
- package/server/modules/lists/ls-bangtinhluong.js +1 -2
- package/server/modules/lists/ls-bds_area.js +1 -3
- package/server/modules/lists/ls-bds_block.js +1 -1
- package/server/modules/lists/ls-bds_building.js +1 -3
- package/server/modules/lists/ls-bds_dmnhbds.js +1 -6
- package/server/modules/lists/ls-bds_floor.js +1 -2
- package/server/modules/lists/ls-bds_floordetail.js +1 -19
- package/server/modules/lists/ls-bds_nhadat.js +1 -16
- package/server/modules/lists/ls-bds_nhomnhadat.js +1 -1
- package/server/modules/lists/ls-bds_phanloainhadat.js +1 -1
- package/server/modules/lists/ls-calllog.js +1 -4
- package/server/modules/lists/ls-campaign.js +1 -1
- package/server/modules/lists/ls-cart.js +1 -14
- package/server/modules/lists/ls-chamcong.js +1 -3
- package/server/modules/lists/ls-checkin.js +1 -12
- package/server/modules/lists/ls-checkinactivity.js +1 -8
- package/server/modules/lists/ls-checkinkpi.js +1 -3
- package/server/modules/lists/ls-checkinlocation.js +1 -1
- package/server/modules/lists/ls-chitieukpi.js +1 -1
- package/server/modules/lists/ls-chudethaoluan.js +1 -1
- package/server/modules/lists/ls-ckgtluong.js +1 -1
- package/server/modules/lists/ls-comment.js +1 -9
- package/server/modules/lists/ls-congdoansx.js +1 -3
- package/server/modules/lists/ls-congtacvien.js +1 -5
- package/server/modules/lists/ls-consultant.js +1 -2
- package/server/modules/lists/ls-contract.js +1 -7
- package/server/modules/lists/ls-ctds.js +1 -4
- package/server/modules/lists/ls-ctds2.js +1 -4
- package/server/modules/lists/ls-currency.js +1 -1
- package/server/modules/lists/ls-customer.js +1 -21
- package/server/modules/lists/ls-datlich.js +1 -9
- package/server/modules/lists/ls-dckhauhaots.js +1 -3
- package/server/modules/lists/ls-department.js +1 -3
- package/server/modules/lists/ls-diagram.js +1 -1
- package/server/modules/lists/ls-dkhoc.js +1 -6
- package/server/modules/lists/ls-dknphep.js +1 -1
- package/server/modules/lists/ls-dmban.js +1 -4
- package/server/modules/lists/ls-dmbp.js +1 -7
- package/server/modules/lists/ls-dmca.js +1 -1
- package/server/modules/lists/ls-dmchietkhau.js +1 -19
- package/server/modules/lists/ls-dmchietkhauhd.js +1 -4
- package/server/modules/lists/ls-dmchucvu.js +1 -2
- package/server/modules/lists/ls-dmcpmh.js +1 -1
- package/server/modules/lists/ls-dmdiemthuong.js +1 -4
- package/server/modules/lists/ls-dmdoi.js +1 -4
- package/server/modules/lists/ls-dmdoituongdanhgia.js +1 -1
- package/server/modules/lists/ls-dmdt.js +1 -11
- package/server/modules/lists/ls-dmdvt.js +1 -2
- package/server/modules/lists/ls-dmgiaban.js +1 -4
- package/server/modules/lists/ls-dmgiamua.js +1 -4
- package/server/modules/lists/ls-dmgiathitruong.js +1 -15
- package/server/modules/lists/ls-dmgiathitruong_ngay.js +1 -2
- package/server/modules/lists/ls-dmgiathitruong_theodoi.js +1 -1
- package/server/modules/lists/ls-dmhoahonghd.js +1 -1
- package/server/modules/lists/ls-dmhoahongnpp.js +1 -1
- package/server/modules/lists/ls-dmkc.js +1 -3
- package/server/modules/lists/ls-dmkho.js +1 -1
- package/server/modules/lists/ls-dmkhuyenmai.js +1 -5
- package/server/modules/lists/ls-dmkhuyenmaihd.js +1 -3
- package/server/modules/lists/ls-dmletet.js +1 -1
- package/server/modules/lists/ls-dmlo.js +1 -1
- package/server/modules/lists/ls-dmloaicong.js +1 -1
- package/server/modules/lists/ls-dmloaits.js +1 -1
- package/server/modules/lists/ls-dmnckkm.js +1 -7
- package/server/modules/lists/ls-dmnghiepvu.js +1 -1
- package/server/modules/lists/ls-dmnguonvon.js +1 -1
- package/server/modules/lists/ls-dmnhnv.js +1 -6
- package/server/modules/lists/ls-dmnhtask.js +1 -5
- package/server/modules/lists/ls-dmnkh.js +1 -6
- package/server/modules/lists/ls-dmntt.js +1 -6
- package/server/modules/lists/ls-dmnv.js +1 -17
- package/server/modules/lists/ls-dmnvt.js +1 -8
- package/server/modules/lists/ls-dmphatdichvu.js +1 -3
- package/server/modules/lists/ls-dmphi.js +1 -6
- package/server/modules/lists/ls-dmqct.js +1 -2
- package/server/modules/lists/ls-dmqddvt.js +1 -3
- package/server/modules/lists/ls-dmtanggiamts.js +1 -1
- package/server/modules/lists/ls-dmto.js +1 -5
- package/server/modules/lists/ls-dmtt.js +1 -7
- package/server/modules/lists/ls-dmvt.js +1 -68
- package/server/modules/lists/ls-dmyt.js +1 -1
- package/server/modules/lists/ls-dokho.js +1 -1
- package/server/modules/lists/ls-dvcs.js +1 -1
- package/server/modules/lists/ls-ecomcategories.js +1 -5
- package/server/modules/lists/ls-ecomcategories_cty.js +1 -5
- package/server/modules/lists/ls-email.js +1 -4
- package/server/modules/lists/ls-events.js +1 -3
- package/server/modules/lists/ls-evoucher.js +1 -3
- package/server/modules/lists/ls-experiencejourney.js +1 -1
- package/server/modules/lists/ls-experiencejourneydata.js +1 -3
- package/server/modules/lists/ls-experiencejourneypersona.js +1 -4
- package/server/modules/lists/ls-experiencejourneystage.js +1 -1
- package/server/modules/lists/ls-fbconversation.js +1 -2
- package/server/modules/lists/ls-fbmessage.js +1 -2
- package/server/modules/lists/ls-fbpage.js +1 -11
- package/server/modules/lists/ls-fbpost.js +1 -2
- package/server/modules/lists/ls-file.js +1 -31
- package/server/modules/lists/ls-financialroadmap.js +1 -3
- package/server/modules/lists/ls-flow.js +1 -6
- package/server/modules/lists/ls-flowdata.js +1 -1
- package/server/modules/lists/ls-folder.js +1 -1
- package/server/modules/lists/ls-form.js +1 -1
- package/server/modules/lists/ls-forminfo.js +1 -1
- package/server/modules/lists/ls-formvalue.js +1 -1
- package/server/modules/lists/ls-giaoca.js +1 -4
- package/server/modules/lists/ls-group.js +1 -5
- package/server/modules/lists/ls-hlink.js +1 -1
- package/server/modules/lists/ls-hlinkvalue.js +1 -1
- package/server/modules/lists/ls-hmcn.js +1 -2
- package/server/modules/lists/ls-hspbts.js +1 -3
- package/server/modules/lists/ls-introducebonus.js +1 -4
- package/server/modules/lists/ls-introducecode.js +1 -10
- package/server/modules/lists/ls-introducer.js +1 -20
- package/server/modules/lists/ls-kbm-bcdkt.js +1 -1
- package/server/modules/lists/ls-kbm-bcqt.js +1 -5
- package/server/modules/lists/ls-kbm-kqhdkd.js +1 -1
- package/server/modules/lists/ls-kbm-lcttgt.js +1 -1
- package/server/modules/lists/ls-kbm-lctttt.js +1 -1
- package/server/modules/lists/ls-kbm-pttct.js +1 -3
- package/server/modules/lists/ls-kbm-tkgtgt.js +1 -3
- package/server/modules/lists/ls-kbm-tmbctc.js +1 -3
- package/server/modules/lists/ls-kehoachdtcp.js +1 -4
- package/server/modules/lists/ls-keyresult.js +1 -7
- package/server/modules/lists/ls-khunghangthanhvien.js +1 -1
- package/server/modules/lists/ls-kygui.js +1 -19
- package/server/modules/lists/ls-label.js +1 -1
- package/server/modules/lists/ls-lienhe.js +1 -4
- package/server/modules/lists/ls-like-module.js +1 -1
- package/server/modules/lists/ls-link.js +1 -1
- package/server/modules/lists/ls-loaidiem.js +1 -1
- package/server/modules/lists/ls-lock.js +1 -1
- package/server/modules/lists/ls-log.js +1 -3
- package/server/modules/lists/ls-mailaccount.js +1 -5
- package/server/modules/lists/ls-mailreceived.js +1 -5
- package/server/modules/lists/ls-mailschedule.js +1 -7
- package/server/modules/lists/ls-mailsent.js +1 -4
- package/server/modules/lists/ls-mailtemplate.js +1 -4
- package/server/modules/lists/ls-maudanhgia.js +1 -3
- package/server/modules/lists/ls-message2.js +1 -8
- package/server/modules/lists/ls-message2setting.js +1 -5
- package/server/modules/lists/ls-news.js +1 -7
- package/server/modules/lists/ls-newsfeed.js +1 -4
- package/server/modules/lists/ls-note.js +1 -6
- package/server/modules/lists/ls-okr.js +1 -5
- package/server/modules/lists/ls-okrdiagram.js +1 -1
- package/server/modules/lists/ls-opportunity.js +1 -5
- package/server/modules/lists/ls-options.js +1 -4
- package/server/modules/lists/ls-parameter.js +1 -3
- package/server/modules/lists/ls-participant.js +1 -10
- package/server/modules/lists/ls-phieudanhgia.js +1 -7
- package/server/modules/lists/ls-phucap.js +1 -2
- package/server/modules/lists/ls-profile.js +1 -1
- package/server/modules/lists/ls-ptthanhtoan.js +1 -3
- package/server/modules/lists/ls-qts-dieuchinh.js +1 -2
- package/server/modules/lists/ls-qts-dieuchuyen.js +1 -8
- package/server/modules/lists/ls-reason.js +1 -1
- package/server/modules/lists/ls-rpt.js +1 -5
- package/server/modules/lists/ls-rptform.js +1 -4
- package/server/modules/lists/ls-service.js +1 -3
- package/server/modules/lists/ls-shortcut.js +1 -1
- package/server/modules/lists/ls-smsaccount.js +1 -1
- package/server/modules/lists/ls-smssend.js +1 -3
- package/server/modules/lists/ls-sosanxuat.js +1 -4
- package/server/modules/lists/ls-step.js +1 -1
- package/server/modules/lists/ls-strategicdiagram.js +1 -1
- package/server/modules/lists/ls-strategicgoal.js +1 -3
- package/server/modules/lists/ls-strategickpi.js +1 -7
- package/server/modules/lists/ls-strategicobjective.js +1 -3
- package/server/modules/lists/ls-strategicplan.js +1 -6
- package/server/modules/lists/ls-support.js +1 -3
- package/server/modules/lists/ls-task.js +1 -34
- package/server/modules/lists/ls-taskreg.js +1 -2
- package/server/modules/lists/ls-tc.js +1 -1
- package/server/modules/lists/ls-templaterpt.js +1 -5
- package/server/modules/lists/ls-templatevoucher.js +1 -1
- package/server/modules/lists/ls-tontucthoi.js +1 -3
- package/server/modules/lists/ls-trangthaiapp.js +1 -3
- package/server/modules/lists/ls-transaction.js +1 -4
- package/server/modules/lists/ls-usergroup.js +1 -7
- package/server/modules/lists/ls-vat.js +1 -1
- package/server/modules/lists/ls-vatra.js +1 -5
- package/server/modules/lists/ls-vatvao.js +1 -6
- package/server/modules/lists/ls-waitevent.js +1 -1
- package/server/modules/lists/ls-warranty.js +1 -4
- package/server/modules/lists/ls_hanmucton.js +1 -3
- package/server/modules/lists/ls_hspb.js +1 -4
- package/server/modules/lists/ls_spdd_ck.js +1 -3
- package/server/modules/lists/ls_spdd_dk.js +1 -3
- package/server/modules/lists/ls_ytdd_ck.js +1 -4
- package/server/modules/lists/ls_ytdd_dk.js +1 -4
- package/server/modules/lists/sys-attend.js +1 -4
- package/server/modules/lists/sys-follow.js +1 -4
- package/server/modules/lists/sys-right.js +1 -2
- package/server/modules/public/app.js +1 -4
- package/server/modules/public/approve.js +1 -37
- package/server/modules/public/callin.js +1 -7
- package/server/modules/public/comment.js +1 -5
- package/server/modules/public/dmnvt.js +1 -4
- package/server/modules/public/dmvt.js +1 -9
- package/server/modules/public/file.js +1 -11
- package/server/modules/public/form.js +1 -7
- package/server/modules/public/forminfo.js +1 -1
- package/server/modules/public/group.js +1 -4
- package/server/modules/public/hlink.js +1 -3
- package/server/modules/public/introducecode.js +1 -1
- package/server/modules/public/listinfo.js +1 -1
- package/server/modules/public/media-webhook.js +1 -1
- package/server/modules/public/partner.js +1 -1
- package/server/modules/public/paymentCallback.js +1 -32
- package/server/modules/public/province.js +1 -1
- package/server/modules/public/ptthanhtoan.js +1 -4
- package/server/modules/public/subscribe.js +1 -30
- package/server/modules/public/support.js +1 -3
- package/server/modules/public/tableinfo.js +1 -1
- package/server/modules/public/trialinfo.js +1 -4
- package/server/modules/public/versioninfo.js +1 -1
- package/server/modules/reports/calc-tinhgiatb.js +1 -6
- package/server/modules/reports/calc-tinhgiathanh.js +1 -6
- package/server/modules/reports/calc-tinhkhauhaots.js +1 -3
- package/server/modules/reports/calc-tinhluong.js +1 -37
- package/server/modules/reports/rp-analyzedata.js +1 -6
- package/server/modules/reports/rp-assbonus.js +1 -4
- package/server/modules/reports/rp-assinterest.js +1 -8
- package/server/modules/reports/rp-assproductowners.js +1 -3
- package/server/modules/reports/rp-asssupply.js +1 -1
- package/server/modules/reports/rp-asstransferlog.js +1 -10
- package/server/modules/reports/rp-banggiatb.js +1 -3
- package/server/modules/reports/rp-bangtinhkhauhao.js +1 -6
- package/server/modules/reports/rp-baocaokhachhang.js +1 -6
- package/server/modules/reports/rp-bcdkt.js +1 -11
- package/server/modules/reports/rp-bcintroducebonus.js +1 -4
- package/server/modules/reports/rp-bckhtiemnang.js +1 -3
- package/server/modules/reports/rp-bcqt.js +1 -85
- package/server/modules/reports/rp-bkct.js +1 -13
- package/server/modules/reports/rp-bkshipbook.js +1 -8
- package/server/modules/reports/rp-bkvanchuyen.js +1 -8
- package/server/modules/reports/rp-bkvatra.js +1 -7
- package/server/modules/reports/rp-bkvatvao.js +1 -7
- package/server/modules/reports/rp-capnhatsocaitc.js +1 -4
- package/server/modules/reports/rp-cdpsdiem.js +1 -4
- package/server/modules/reports/rp-cdpsdt.js +1 -5
- package/server/modules/reports/rp-cdpskh.js +1 -7
- package/server/modules/reports/rp-cdpsnphep.js +1 -3
- package/server/modules/reports/rp-cdpstk.js +1 -4
- package/server/modules/reports/rp-chitietchitientheohoadon.js +1 -12
- package/server/modules/reports/rp-chitiettaisan.js +1 -13
- package/server/modules/reports/rp-chitietthutientheohoadon.js +1 -13
- package/server/modules/reports/rp-ckcn.js +1 -3
- package/server/modules/reports/rp-ckdiem.js +1 -2
- package/server/modules/reports/rp-cktk.js +1 -3
- package/server/modules/reports/rp-ckvt.js +1 -10
- package/server/modules/reports/rp-ckvttheokho.js +1 -4
- package/server/modules/reports/rp-ckvttheotg.js +1 -4
- package/server/modules/reports/rp-ckvttt.js +1 -3
- package/server/modules/reports/rp-congnophaithutheotuoino.js +1 -3
- package/server/modules/reports/rp-congnophaitratheotuoino.js +1 -3
- package/server/modules/reports/rp-congnosapthu.js +1 -4
- package/server/modules/reports/rp-congnosaptra.js +1 -4
- package/server/modules/reports/rp-congviectheobp.js +1 -9
- package/server/modules/reports/rp-congviectheodt.js +1 -8
- package/server/modules/reports/rp-congviectheokh.js +1 -8
- package/server/modules/reports/rp-congviectheonv.js +1 -9
- package/server/modules/reports/rp-congviectheotimeline.js +1 -6
- package/server/modules/reports/rp-ctbanle.js +1 -15
- package/server/modules/reports/rp-ctbanle2.js +1 -20
- package/server/modules/reports/rp-ctbanlectv.js +1 -20
- package/server/modules/reports/rp-ctbanlenpp.js +1 -24
- package/server/modules/reports/rp-ctdanhgianhanvien.js +1 -8
- package/server/modules/reports/rp-cthangbanbitralai.js +1 -4
- package/server/modules/reports/rp-ctmuahang.js +1 -7
- package/server/modules/reports/rp-cttralaihang.js +1 -4
- package/server/modules/reports/rp-databanle.js +1 -10
- package/server/modules/reports/rp-diemthuong.js +1 -2
- package/server/modules/reports/rp-dkcn.js +1 -3
- package/server/modules/reports/rp-dktk.js +1 -2
- package/server/modules/reports/rp-dsnhanviencm.js +1 -9
- package/server/modules/reports/rp-dsnhanvientb.js +1 -9
- package/server/modules/reports/rp-dtbanlekempk.js +1 -9
- package/server/modules/reports/rp-dtbanletheoct.js +1 -23
- package/server/modules/reports/rp-dtbanletheoctkempk.js +1 -25
- package/server/modules/reports/rp-dtbanletheokh.js +1 -20
- package/server/modules/reports/rp-dtbanletheokhnpp.js +1 -19
- package/server/modules/reports/rp-dtbanletheokho.js +1 -18
- package/server/modules/reports/rp-dtbanletheonam.js +1 -3
- package/server/modules/reports/rp-dtbanletheongay.js +1 -1
- package/server/modules/reports/rp-dtbanletheonpp.js +1 -23
- package/server/modules/reports/rp-dtbanletheonv.js +1 -19
- package/server/modules/reports/rp-dtbanletheoquy.js +1 -3
- package/server/modules/reports/rp-dtbanletheosp.js +1 -8
- package/server/modules/reports/rp-dtbanletheospnpp.js +1 -6
- package/server/modules/reports/rp-dtbanletheothang.js +1 -3
- package/server/modules/reports/rp-dtbanletheothungan.js +1 -12
- package/server/modules/reports/rp-dtbanletheovt.js +1 -2
- package/server/modules/reports/rp-dtbanletheovtnpp.js +1 -2
- package/server/modules/reports/rp-dutoanthuchitheodt.js +1 -4
- package/server/modules/reports/rp-getPXC2PNC.js +1 -8
- package/server/modules/reports/rp-getariseofaccountsbymonth.js +1 -4
- package/server/modules/reports/rp-getbtpb.js +1 -6
- package/server/modules/reports/rp-getcashbycashier.js +1 -7
- package/server/modules/reports/rp-getcschietkhau.js +1 -5
- package/server/modules/reports/rp-getdinhmuc4lenhcp.js +1 -7
- package/server/modules/reports/rp-getdinhmuc4pxk.js +1 -9
- package/server/modules/reports/rp-getdk4pht.js +1 -8
- package/server/modules/reports/rp-getdk4pkc.js +1 -9
- package/server/modules/reports/rp-getdttheoca.js +1 -5
- package/server/modules/reports/rp-getinvoice2pay.js +1 -4
- package/server/modules/reports/rp-getinvoice2receive.js +1 -4
- package/server/modules/reports/rp-getinvoice2return.js +1 -5
- package/server/modules/reports/rp-getinvoice2return_bl.js +1 -6
- package/server/modules/reports/rp-getkehoachmh4lenhcp.js +1 -4
- package/server/modules/reports/rp-getkhauhao.js +1 -7
- package/server/modules/reports/rp-getluong.js +1 -8
- package/server/modules/reports/rp-getluongchuyen.js +1 -5
- package/server/modules/reports/rp-getpn2fee.js +1 -5
- package/server/modules/reports/rp-getpn2return.js +1 -5
- package/server/modules/reports/rp-getthanhpham4pnk.js +1 -7
- package/server/modules/reports/rp-getvc2xhd.js +1 -11
- package/server/modules/reports/rp-gt_cpnvltt.js +1 -6
- package/server/modules/reports/rp-hangbanbitralai.js +1 -5
- package/server/modules/reports/rp-hangthanhvien.js +1 -3
- package/server/modules/reports/rp-hoadonbanhangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoadonmuahangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoahong.js +1 -15
- package/server/modules/reports/rp-kcsns.js +1 -19
- package/server/modules/reports/rp-kgchamcong.js +1 -7
- package/server/modules/reports/rp-khoaso.js +1 -12
- package/server/modules/reports/rp-kiemtrasocaitcvssocai.js +1 -6
- package/server/modules/reports/rp-kqdanhgianhanvien.js +1 -5
- package/server/modules/reports/rp-kqhdkd.js +1 -7
- package/server/modules/reports/rp-lcttgt.js +1 -17
- package/server/modules/reports/rp-lctttt.js +1 -11
- package/server/modules/reports/rp-linkslist.js +1 -4
- package/server/modules/reports/rp-phanbochitienchohoadon.js +1 -11
- package/server/modules/reports/rp-phanbothutienchohoadon.js +1 -10
- package/server/modules/reports/rp-ptbitralai.js +1 -7
- package/server/modules/reports/rp-ptcttct.js +1 -22
- package/server/modules/reports/rp-ptdonhang.js +1 -8
- package/server/modules/reports/rp-pttct.js +1 -49
- package/server/modules/reports/rp-pttctkho.js +1 -32
- package/server/modules/reports/rp-pttctkho2.js +1 -29
- package/server/modules/reports/rp-referredusers.js +1 -1
- package/server/modules/reports/rp-sctbhxh.js +1 -4
- package/server/modules/reports/rp-sctcnkh.js +1 -17
- package/server/modules/reports/rp-sctdiem.js +1 -3
- package/server/modules/reports/rp-sctdt.js +1 -7
- package/server/modules/reports/rp-sctdtcp.js +1 -11
- package/server/modules/reports/rp-sctluong.js +1 -4
- package/server/modules/reports/rp-sctthuetncn.js +1 -4
- package/server/modules/reports/rp-scttk.js +1 -7
- package/server/modules/reports/rp-sctvt.js +1 -5
- package/server/modules/reports/rp-sctvt_sl.js +1 -5
- package/server/modules/reports/rp-sctvtnpp.js +1 -6
- package/server/modules/reports/rp-sctvttt.js +1 -5
- package/server/modules/reports/rp-search.js +1 -4
- package/server/modules/reports/rp-socai.js +1 -6
- package/server/modules/reports/rp-socaitk.js +1 -7
- package/server/modules/reports/rp-sochut.js +1 -7
- package/server/modules/reports/rp-sokho.js +1 -7
- package/server/modules/reports/rp-sokhott.js +1 -5
- package/server/modules/reports/rp-sonkbh.js +1 -5
- package/server/modules/reports/rp-sonkc.js +1 -6
- package/server/modules/reports/rp-sonkct.js +1 -5
- package/server/modules/reports/rp-sonkmh.js +1 -5
- package/server/modules/reports/rp-sonktt.js +1 -5
- package/server/modules/reports/rp-soquy.js +1 -11
- package/server/modules/reports/rp-sosanhkhvatt.js +1 -13
- package/server/modules/reports/rp-sosanhkhvatt2.js +1 -6
- package/server/modules/reports/rp-sotaisan.js +1 -13
- package/server/modules/reports/rp-sotiengui.js +1 -7
- package/server/modules/reports/rp-taodinhmuctudkhoc.js +1 -5
- package/server/modules/reports/rp-thbanhangkempk.js +1 -28
- package/server/modules/reports/rp-thdanhgianhanvien.js +1 -9
- package/server/modules/reports/rp-thgt.js +1 -6
- package/server/modules/reports/rp-thnxt.js +1 -12
- package/server/modules/reports/rp-thnxt_sl.js +1 -9
- package/server/modules/reports/rp-thnxtnpp.js +1 -10
- package/server/modules/reports/rp-thnxttt.js +1 -9
- package/server/modules/reports/rp-tkbanhangtheogioithieu.js +1 -9
- package/server/modules/reports/rp-tkgioithieukh.js +1 -4
- package/server/modules/reports/rp-tkgtgt.js +1 -7
- package/server/modules/reports/rp-tmbctc.js +1 -20
- package/server/modules/reports/rp-tonghopbanhang.js +1 -6
- package/server/modules/reports/rp-tonghopmuahang.js +1 -5
- package/server/modules/reports/rp-tonghoptralaihang.js +1 -5
- package/server/modules/reports/rp-tongquanbanle.js +1 -20
- package/server/modules/reports/rp-tongquanbds.js +1 -3
- package/server/modules/reports/rp-tongquancongty.js +1 -6
- package/server/modules/reports/rp-tongquanctvnpp.js +1 -12
- package/server/modules/reports/rp-tongquannvbh.js +1 -14
- package/server/modules/reports/rp-tongquannvnpp.js +1 -5
- package/server/modules/reports/rp-uoctinhnvl.js +1 -11
- package/server/modules/reports/rp-wallet.js +1 -3
- package/server/modules/reports/rpt-tkdiemtichluy.js +1 -9
- package/server/modules/systems/sys-app.js +1 -30
- package/server/modules/systems/sys-colleague.js +1 -11
- package/server/modules/systems/sys-domain.js +1 -4
- package/server/modules/systems/sys-ecomproductlines.js +1 -1
- package/server/modules/systems/sys-exportexceltemplate.js +1 -4
- package/server/modules/systems/sys-fieldright.js +1 -3
- package/server/modules/systems/sys-importexceltemplate.js +1 -4
- package/server/modules/systems/sys-labelinfo.js +1 -4
- package/server/modules/systems/sys-listinfo.js +1 -10
- package/server/modules/systems/sys-menuinfo.js +1 -4
- package/server/modules/systems/sys-message.js +1 -14
- package/server/modules/systems/sys-moduleinfo.js +1 -4
- package/server/modules/systems/sys-notification.js +1 -8
- package/server/modules/systems/sys-quanhuyen.js +1 -4
- package/server/modules/systems/sys-reportinfo.js +1 -4
- package/server/modules/systems/sys-rptobject.js +1 -3
- package/server/modules/systems/sys-schedule.js +1 -11
- package/server/modules/systems/sys-sysconfig.js +1 -3
- package/server/modules/systems/sys-sysgroup.js +1 -3
- package/server/modules/systems/sys-tableinfo.js +1 -3
- package/server/modules/systems/sys-templatestore.js +1 -5
- package/server/modules/systems/sys-tinhthanh.js +1 -4
- package/server/modules/systems/sys-token.js +1 -3
- package/server/modules/systems/sys-trangthai.js +1 -4
- package/server/modules/systems/sys-trialinfo.js +1 -3
- package/server/modules/systems/sys-user.js +1 -45
- package/server/modules/systems/sys-users.js +1 -10
- package/server/modules/systems/sys-versioninfo.js +1 -3
- package/server/modules/systems/sys-vietqrbanks.js +1 -4
- package/server/modules/systems/sys-xaphuong.js +1 -4
- package/server/modules/vouchers/vo-banggiaban.js +1 -5
- package/server/modules/vouchers/vo-bc1.js +1 -33
- package/server/modules/vouchers/vo-bc5.js +1 -15
- package/server/modules/vouchers/vo-bg1.js +1 -10
- package/server/modules/vouchers/vo-bg2.js +1 -12
- package/server/modules/vouchers/vo-bn1.js +1 -35
- package/server/modules/vouchers/vo-bn5.js +1 -15
- package/server/modules/vouchers/vo-dh2.js +1 -35
- package/server/modules/vouchers/vo-dinhmucsx.js +1 -6
- package/server/modules/vouchers/vo-dkb.js +1 -21
- package/server/modules/vouchers/vo-dn0.js +1 -9
- package/server/modules/vouchers/vo-dnm.js +1 -21
- package/server/modules/vouchers/vo-hd1.js +1 -36
- package/server/modules/vouchers/vo-hd2.js +1 -107
- package/server/modules/vouchers/vo-hd3.js +1 -44
- package/server/modules/vouchers/vo-hd4.js +1 -13
- package/server/modules/vouchers/vo-hd7.js +1 -29
- package/server/modules/vouchers/vo-hd8.js +1 -29
- package/server/modules/vouchers/vo-hde.js +1 -40
- package/server/modules/vouchers/vo-htl.js +1 -11
- package/server/modules/vouchers/vo-kbbtpb.js +1 -6
- package/server/modules/vouchers/vo-kehoachmh.js +1 -13
- package/server/modules/vouchers/vo-lenhcapphat.js +1 -10
- package/server/modules/vouchers/vo-lenhsx.js +1 -12
- package/server/modules/vouchers/vo-pbl.js +1 -93
- package/server/modules/vouchers/vo-pc0.js +1 -14
- package/server/modules/vouchers/vo-pc1.js +1 -31
- package/server/modules/vouchers/vo-pc2.js +1 -24
- package/server/modules/vouchers/vo-pc3.js +1 -14
- package/server/modules/vouchers/vo-pc5.js +1 -15
- package/server/modules/vouchers/vo-pc6.js +1 -19
- package/server/modules/vouchers/vo-pcl.js +1 -7
- package/server/modules/vouchers/vo-pdn.js +1 -11
- package/server/modules/vouchers/vo-pdx.js +1 -9
- package/server/modules/vouchers/vo-pgh.js +1 -19
- package/server/modules/vouchers/vo-pht.js +1 -7
- package/server/modules/vouchers/vo-pkc.js +1 -7
- package/server/modules/vouchers/vo-pkh.js +1 -10
- package/server/modules/vouchers/vo-pkk.js +1 -12
- package/server/modules/vouchers/vo-pkt.js +1 -13
- package/server/modules/vouchers/vo-pn1.js +1 -33
- package/server/modules/vouchers/vo-pn2.js +1 -16
- package/server/modules/vouchers/vo-pn3.js +1 -18
- package/server/modules/vouchers/vo-pn5.js +1 -19
- package/server/modules/vouchers/vo-pn6.js +1 -18
- package/server/modules/vouchers/vo-pn9.js +1 -22
- package/server/modules/vouchers/vo-pnc.js +1 -20
- package/server/modules/vouchers/vo-pnh.js +1 -20
- package/server/modules/vouchers/vo-pnk.js +1 -14
- package/server/modules/vouchers/vo-pnknpp.js +1 -12
- package/server/modules/vouchers/vo-po1.js +1 -15
- package/server/modules/vouchers/vo-ppb.js +1 -8
- package/server/modules/vouchers/vo-pt1.js +1 -21
- package/server/modules/vouchers/vo-pt5.js +1 -15
- package/server/modules/vouchers/vo-ptl.js +1 -8
- package/server/modules/vouchers/vo-purchase_contract.js +1 -9
- package/server/modules/vouchers/vo-pxc.js +1 -22
- package/server/modules/vouchers/vo-pxh.js +1 -28
- package/server/modules/vouchers/vo-pxk.js +1 -15
- package/server/modules/vouchers/vo-pxknpp.js +1 -14
- package/server/modules/vouchers/vo-qts.js +1 -12
- package/server/modules/vouchers/vo-sale_contract.js +1 -11
- package/server/modules/vouchers/vo-shipbook.js +1 -17
- package/server/modules/vouchers/vo-so1.js +1 -126
- package/server/modules/vouchers/vo-so2.js +1 -37
- package/server/modules/vouchers/vo-so3.js +1 -41
- package/server/modules/vouchers/vo-so5.js +1 -57
- package/server/modules/vouchers/vo-so7.js +1 -97
- package/server/modules/vouchers/vo-so9.js +1 -119
- package/server/modules/vouchers/vo-vanchuyen.js +1 -14
- package/server/modules/vouchers/vo-xhd.js +1 -33
- package/server/route.js +1 -51
- package/server/services/invoiceFetcher.js +1 -15
- package/server/sslConfig.js +1 -2
- package/server/transactionMiddleware.js +1 -5
- package/server/workers/backupApp.js +1 -9
- package/server/workers/calcGrid.js +1 -9
- package/server/workers/customerOnImport.js +1 -8
- package/server/workers/dmvtOnImport.js +1 -9
- package/server/workers/excelParser.js +1 -9
- package/server/workers/inputWorker.js +1 -6
- package/server/workers/pushNotify.js +1 -10
- package/server/workers/reportWorker.js +1 -7
- package/server/workers/restoreApp.js +1 -23
- package/server/workers/runScript.js +1 -4
- package/server/workers/sendEmail.js +1 -13
- package/server/workers/webhook.js +1 -5
|
@@ -1,30 +1 @@
|
|
|
1
|
-
const subscribe=global
|
|
2
|
-
module.exports=function($router$$){$router$$.route("/subscribe").post(function($req$$,$res$$){const $body$$=$req$$.body;if(!$body$$)return $res$$.status(411).send("Kh\u00f4ng c\u00f3 d\u1eef li\u1ec7u");subscribe.findOne({email:$body$$.email},function($e$$,$rs$$){if($rs$$)return $res$$.status(400).send("Email n\u00e0y \u0111\u00e3 \u0111\u01b0\u1ee3c \u0111\u0103ng k\u00fd");(new subscribe($body$$)).save(function($error$$){if($error$$)return $res$$.status(400).send("Kh\u00f4ng th\u1ec3 \u0111\u0103ng k\u00fd\n"+$error$$);
|
|
3
|
-
$res$$.send("B\u1ea1n \u0111\u00e3 \u0111\u0103ng k\u00fd th\u00e0nh c\u00f4ng")})})});$router$$.route("/unsubscribe/:encrypted").get(async function($req$$,$res$$){try{let $data$$=utils.decrypt($req$$.params.encrypted),{id_app:$id_app$$,email:$email$$}=$data$$;if(!$id_app$$||!$email$$||!global.mongoose.Types.ObjectId.isValid($id_app$$))return $res$$.status(400).send("Link is not valid");let $appInfo$$=await global.getModel("app").findOne({_id:$id_app$$}).lean()||{};subscribe.findOneAndUpdate({email:$email$$,
|
|
4
|
-
id_app:$id_app$$},{unsubcribe:!0},{new:!0,upsert:!0},function($e$$){if($e$$)return $res$$.status(400).send($e$$.message||$e$$.error||$e$$);$res$$.send(`
|
|
5
|
-
<html>
|
|
6
|
-
<title>${$appInfo$$.name||"unsubscribe"}</title>
|
|
7
|
-
<head>
|
|
8
|
-
</head>
|
|
9
|
-
<body style="background-color:#eeeeee">
|
|
10
|
-
<div style="
|
|
11
|
-
width: 600px;
|
|
12
|
-
margin: 0 auto 10px auto;
|
|
13
|
-
text-align: left;"
|
|
14
|
-
>
|
|
15
|
-
<div style="
|
|
16
|
-
line-height: 150%;
|
|
17
|
-
font-family: Helvetica;
|
|
18
|
-
font-size: 14px;
|
|
19
|
-
color: #333333;
|
|
20
|
-
padding: 20px;
|
|
21
|
-
border-radius: 6px;
|
|
22
|
-
background-color: #ffffff;"
|
|
23
|
-
>
|
|
24
|
-
<h3>H\u1ee7y \u0111\u0103ng k\u00fd th\u00e0nh c\u00f4ng</h3>
|
|
25
|
-
<p>B\u1ea1n s\u1ebd kh\u00f4ng c\u00f2n nh\u1eadn \u0111\u01b0\u1ee3c email ti\u1ebfp th\u1ecb t\u1eeb danh s\u00e1ch n\u00e0y.</p>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</body>
|
|
29
|
-
</html>
|
|
30
|
-
`)})}catch($e$$){return $res$$.status(400).send($e$$.message||$e$$.error||$e$$)}})};
|
|
1
|
+
const _0x3b541e=_0x3d9c;(function(_0x20ac14,_0x52cd2f){const _0x4ef8be=_0x3d9c,_0x46e0cc=_0x20ac14();while(!![]){try{const _0x59876f=parseInt(_0x4ef8be(0x1db))/0x1+parseInt(_0x4ef8be(0x1dd))/0x2+parseInt(_0x4ef8be(0x1fc))/0x3*(parseInt(_0x4ef8be(0x201))/0x4)+parseInt(_0x4ef8be(0x205))/0x5+parseInt(_0x4ef8be(0x1e0))/0x6*(-parseInt(_0x4ef8be(0x1cf))/0x7)+parseInt(_0x4ef8be(0x208))/0x8*(parseInt(_0x4ef8be(0x1ec))/0x9)+parseInt(_0x4ef8be(0x1e5))/0xa*(-parseInt(_0x4ef8be(0x206))/0xb);if(_0x59876f===_0x52cd2f)break;else _0x46e0cc['push'](_0x46e0cc['shift']());}catch(_0x501df7){_0x46e0cc['push'](_0x46e0cc['shift']());}}}(_0x426f,0x203a7));function _0x426f(){const _0x3573b4=['Cg9ZDa','DLvwv3u','zw1HAwW','C2vUza','mtCZoda1m2PwtxL5Ea','pc90AxrSzt4kcqKjcqKjcqK8AgvHzd4kcqKjcqKjcqK8l2HLywq+cGKjcqKjcqKjpgjVzhKGC3r5Bgu9iMjHy2TNCM91BMqTy29SB3i6i2vLzwvLzsi+cGKjcqKjcqKjctXKAxyGC3r5Bgu9iGOjcqKjcqKjcqKjD2LKDgG6idyWmhb4oWOjcqKjcqKjcqKjBwfYz2LUoIaWigf1Dg8GmtbWEcbHDxrVoWOjcqKjcqKjcqKjDgv4Dc1HBgLNBJOGBgvMDdSIcGKjcqKjcqKjct4kcqKjcqKjcqKjctXKAxyGC3r5Bgu9iGOjcqKjcqKjcqKjcwXPBMuTAgvPz2H0oIaXntaLoWOjcqKjcqKjcqKjcwzVBNqTzMfTAwX5oIbizwX2zxrPy2e7cGKjcqKjcqKjcqKjzM9UDc1ZAxPLoIaXnhb4oWOjcqKjcqKjcqKjcwnVBg9YoIaJmZmZmZmZoWOjcqKjcqKjcqKjcxbHzgrPBMC6idiWChG7cGKjcqKjcqKjcqKjyM9YzgvYlxjHzgL1CZOGnNb4oWOjcqKjcqKjcqKjcwjHy2TNCM91BMqTy29SB3i6icnMzMzMzMy7iGOjcqKjcqKjcqKjpGOjcqKjcqKjcqKjctXOmZ5i4BUNEsdeKCsdBMCGA8o9ihrOW6bUAcbJW7rUzZWVAdm+cGKjcqKjcqKjcqKjpha+qUg6Ow4GC+g6VsbRAmo0BMCGy8oYBIbUAog6Rw4GXjhgSog7O2mGzw1HAwWGDgNHUR9WihrO4BUlihtHU6SGzgfUAcbZW6fJAcbUW6b5lJWVCd4kcqKjcqKjcqKjctWVzgL2pGOjcqKjcqKjcqK8l2rPDJ4kcqKjcqKjcqK8l2jVzhK+cGKjcqKjcqK8l2H0BwW+cGKjcqKjcq','Cef5zgK','CM91Dgu','s2JdTg5NigpdSYbK4BUVigXP4BUhDq','yxbW','sgj1Aw0','ww1MD0O','z2v0tw9KzwW','C3vIC2nYAwjL','zMLUze9Uzq','y0HKEg4','C2f2zq','vhLWzxm','y3ryteK','BMfTzq','mtmWndDuB1PSy1G','BgvHBG','zMLUze9UzufUzfvWzgf0zq','lI4VlI4VBgLICY91DgLSCW','ywTVu1G','mtaWy2DAAhbO','AxnwywXPza','vwvpq3q','zgvJCNLWDa','mteXmtmXmfngyKzpsq','mZnNr3PdAvu','EwDMzNO','oeTLshnRAW','EMjAv08','zxHWB3j0CW','yxjju20','CKndDLa','ALDor3C','zxjYB3i','mtm5otnRzxzhu0q','rw1HAwWGBSoGEsdeKCoJimsrXRdHU6nJimsrXinUzYbRW70','uwPtC2y','uNr2Ag4','s2JdTg5NihrO4BUdimsrXinUzYbRW70k','uvzjuxy','CufqsKC','CgfYyw1Z','s01drxq','t2jQzwn0swq','vfjyELm','C3rHDhvZ','mtK3ntK1BMTMwvDJ','wMjgvfK','mZa2otq2uNPlq2vl','sKLIr3a','t2fltei','mtKYwxjuv29y','BwvZC2fNzq','uw94we8','zw5JCNLWDgvK','ELH6CeW','mJi2mZK5meXWu3PhCq','l3n1yNnJCMLIzq','wvDdtxi'];_0x426f=function(){return _0x3573b4;};return _0x426f();}function _0x3d9c(_0x403a48,_0x565aee){const _0x426fcb=_0x426f();return _0x3d9c=function(_0x3d9cd3,_0x4c075a){_0x3d9cd3=_0x3d9cd3-0x1cf;let _0xba49c=_0x426fcb[_0x3d9cd3];if(_0x3d9c['QfuHTS']===undefined){var _0x4715b0=function(_0x50ed81){const _0x4fb2e0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x489caa='',_0x4efb08='';for(let _0xb70fd2=0x0,_0x183c32,_0x12b458,_0xb1c431=0x0;_0x12b458=_0x50ed81['charAt'](_0xb1c431++);~_0x12b458&&(_0x183c32=_0xb70fd2%0x4?_0x183c32*0x40+_0x12b458:_0x12b458,_0xb70fd2++%0x4)?_0x489caa+=String['fromCharCode'](0xff&_0x183c32>>(-0x2*_0xb70fd2&0x6)):0x0){_0x12b458=_0x4fb2e0['indexOf'](_0x12b458);}for(let _0x3b9008=0x0,_0xc2d64a=_0x489caa['length'];_0x3b9008<_0xc2d64a;_0x3b9008++){_0x4efb08+='%'+('00'+_0x489caa['charCodeAt'](_0x3b9008)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4efb08);};_0x3d9c['OhAKKZ']=_0x4715b0,_0x403a48=arguments,_0x3d9c['QfuHTS']=!![];}const _0x63577d=_0x426fcb[0x0],_0x4f983d=_0x3d9cd3+_0x63577d,_0x4ca312=_0x403a48[_0x4f983d];return!_0x4ca312?(_0xba49c=_0x3d9c['OhAKKZ'](_0xba49c),_0x403a48[_0x4f983d]=_0xba49c):_0xba49c=_0x4ca312,_0xba49c;},_0x3d9c(_0x403a48,_0x565aee);}const subscribe=global[_0x3b541e(0x1f4)](_0x3b541e(0x1f5)),utils=require(_0x3b541e(0x1ff));module[_0x3b541e(0x20a)]=function(_0x1b77ba){const _0xed8418=_0x3b541e,_0x2f5fdd={'YmfwJ':_0xed8418(0x1d0),'YWCMr':function(_0x8f7a46,_0x2754ee){return _0x8f7a46!==_0x2754ee;},'Hbuim':function(_0x1ce288,_0x314bad){return _0x1ce288+_0x314bad;},'cHdxn':'Bạn\x20đã\x20đăng\x20ký\x20thành\x20công','QVIQv':_0xed8418(0x1e4),'vUVWu':_0xed8418(0x1f0),'QSowu':function(_0x3b01ff,_0x4ee426){return _0x3b01ff!==_0x4ee426;},'qAPJG':_0xed8418(0x1e2),'pAydi':'unsubscribe','OaKLB':function(_0x154c4a,_0x4c357e){return _0x154c4a||_0x4c357e;},'ygffz':'Link\x20is\x20not\x20valid','KMCEt':_0xed8418(0x1f1),'UeOCt':_0xed8418(0x1e6)};_0x1b77ba[_0xed8418(0x1ef)](_0x2f5fdd[_0xed8418(0x203)])[_0xed8418(0x1e8)](function(_0x1f9573,_0x24f6c2){const _0x5f5d79=_0xed8418,_0x571382={'JIbGp':function(_0x452c5b,_0x41a199){return _0x452c5b===_0x41a199;},'TRXzS':_0x5f5d79(0x1d2),'rCCvP':'Uoatp','jWNGw':function(_0x47548c,_0x38c287){const _0x2ca7a7=_0x5f5d79;return _0x2f5fdd[_0x2ca7a7(0x1f2)](_0x47548c,_0x38c287);},'nqIKQ':_0x2f5fdd[_0x5f5d79(0x1f7)]};if(_0x2f5fdd['QVIQv']!==_0x2f5fdd[_0x5f5d79(0x1d4)])return _0xb1bda4[_0x5f5d79(0x1da)](0x190)['send'](_0x2f5fdd[_0x5f5d79(0x1f3)]);else{const _0x262c7f=_0x1f9573['body'];if(!_0x262c7f)return _0x24f6c2['status'](0x19b)[_0x5f5d79(0x1eb)](_0x2f5fdd[_0x5f5d79(0x1e9)]);subscribe[_0x5f5d79(0x1f6)]({'email':_0x262c7f[_0x5f5d79(0x1ea)]},function(_0x39244e,_0x29d921){const _0x5682f5=_0x5f5d79;if(_0x29d921)return _0x24f6c2[_0x5682f5(0x1da)](0x190)[_0x5682f5(0x1eb)](_0x2f5fdd['YmfwJ']);else{if(_0x2f5fdd[_0x5682f5(0x1e7)]('tReeT','tReeT'))return _0x43ca8f[_0x5682f5(0x1da)](0x190)[_0x5682f5(0x1eb)]('Link\x20is\x20not\x20valid');else{var _0x4a55b2=new subscribe(_0x262c7f);_0x4a55b2[_0x5682f5(0x1f8)](function(_0x5d2997){const _0x316316=_0x5682f5,_0x449508={'arISm':'unsubscribe'};if(_0x571382[_0x316316(0x1de)](_0x571382[_0x316316(0x1d9)],_0x571382[_0x316316(0x20c)])){if(_0x4434f3)return _0xd02739[_0x316316(0x1da)](0x190)[_0x316316(0x1eb)](_0x2190d6[_0x316316(0x1e1)]||_0x1fa55d['error']||_0x5580aa);else _0x473fa6[_0x316316(0x1eb)]('\x0a\x09\x09\x09\x09\x09\x09\x09<html>\x0a\x09\x09\x09\x09\x09\x09\x09\x09<title>'+(_0x712c3f[_0x316316(0x1fb)]||_0x449508[_0x316316(0x20b)])+_0x316316(0x1ed));}else{if(_0x5d2997)return _0x24f6c2[_0x316316(0x1da)](0x190)[_0x316316(0x1eb)](_0x571382[_0x316316(0x20d)](_0x316316(0x1d3),_0x5d2997));_0x24f6c2[_0x316316(0x1eb)](_0x571382['nqIKQ']);}});}}});}}),_0x1b77ba[_0xed8418(0x1ef)]('/unsubscribe/:encrypted')['get'](async function(_0x10a217,_0x4eb456){const _0x5ce957=_0xed8418,_0xfd0676={'ZbFTY':function(_0x84f212,_0x241435){return _0x2f5fdd['QSowu'](_0x84f212,_0x241435);},'ctXLI':_0x5ce957(0x1d1),'zbZWO':_0x2f5fdd[_0x5ce957(0x1d5)],'akoSX':_0x2f5fdd[_0x5ce957(0x1ee)]};try{let _0x173b41=_0x10a217[_0x5ce957(0x1d6)][_0x5ce957(0x1e3)],_0x116d99=utils[_0x5ce957(0x204)](_0x173b41),{id_app:_0x5ae45b,email:_0x314d9b}=_0x116d99;if(_0x2f5fdd[_0x5ce957(0x1df)](!_0x5ae45b,!_0x314d9b))return _0x4eb456[_0x5ce957(0x1da)](0x190)['send'](_0x2f5fdd['ygffz']);if(!global['mongoose'][_0x5ce957(0x1f9)][_0x5ce957(0x1d8)][_0x5ce957(0x202)](_0x5ae45b))return _0x4eb456[_0x5ce957(0x1da)](0x190)[_0x5ce957(0x1eb)](_0x2f5fdd[_0x5ce957(0x207)]);let _0x573d4f=await global['getModel'](_0x2f5fdd[_0x5ce957(0x1d7)])[_0x5ce957(0x1f6)]({'_id':_0x5ae45b})[_0x5ce957(0x1fd)]()||{};subscribe[_0x5ce957(0x1fe)]({'email':_0x314d9b,'id_app':_0x5ae45b},{'unsubcribe':!![]},{'new':!![],'upsert':!![]},function(_0x28f7c2){const _0x4752e1=_0x5ce957;if(_0x28f7c2)return _0x4eb456[_0x4752e1(0x1da)](0x190)[_0x4752e1(0x1eb)](_0x28f7c2['message']||_0x28f7c2[_0x4752e1(0x20e)]||_0x28f7c2);else{if(_0xfd0676[_0x4752e1(0x1dc)](_0xfd0676[_0x4752e1(0x1fa)],_0xfd0676[_0x4752e1(0x209)]))_0x4eb456[_0x4752e1(0x1eb)]('\x0a\x09\x09\x09\x09\x09\x09\x09<html>\x0a\x09\x09\x09\x09\x09\x09\x09\x09<title>'+(_0x573d4f[_0x4752e1(0x1fb)]||_0xfd0676[_0x4752e1(0x200)])+_0x4752e1(0x1ed));else return _0x524c8d[_0x4752e1(0x1da)](0x190)[_0x4752e1(0x1eb)](_0x1032d4[_0x4752e1(0x1e1)]||_0x52862d['error']||_0x4e8d50);}});}catch(_0x45437e){return _0x4eb456[_0x5ce957(0x1da)](0x190)[_0x5ce957(0x1eb)](_0x45437e[_0x5ce957(0x1e1)]||_0x45437e[_0x5ce957(0x20e)]||_0x45437e);}});};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
var message=global
|
|
2
|
-
module.exports=function($router$$){$router$$.route("/support/:guest").post(function($req$$,$res$$){let $body$$=$req$$.body,$guest$$=$req$$.params.guest,$content$$=$body$$.content,$title$$=$body$$.title;if(!$content$$)return $res$$.status(400).send("B\u1ea1n ch\u01b0a nh\u1eadp n\u1ed9i dung tin nh\u1eafn");async.mapSeries(configs.supportUsers,($user$$,$callback$$)=>{message.createMessage($guest$$,$user$$,$title$$,$content$$,($e$$,$rs$$)=>{$callback$$($e$$,$rs$$)})},($e$$,$rs$$)=>{if($e$$)return $res$$.status(400).send($e$$);
|
|
3
|
-
$res$$.send($rs$$)})})};
|
|
1
|
+
'use strict';const _0xe651b2=_0x43d2;function _0x43d2(_0x148c03,_0x2414cb){const _0x306d5d=_0x306d();return _0x43d2=function(_0x43d231,_0x5e28ee){_0x43d231=_0x43d231-0x198;let _0x71893d=_0x306d5d[_0x43d231];if(_0x43d2['ElwAwQ']===undefined){var _0x349e85=function(_0x3fedf8){const _0x265d24='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b1ef5='',_0x3fd9a5='';for(let _0x243ebb=0x0,_0x5a63db,_0x4f6ad7,_0x4807fd=0x0;_0x4f6ad7=_0x3fedf8['charAt'](_0x4807fd++);~_0x4f6ad7&&(_0x5a63db=_0x243ebb%0x4?_0x5a63db*0x40+_0x4f6ad7:_0x4f6ad7,_0x243ebb++%0x4)?_0x4b1ef5+=String['fromCharCode'](0xff&_0x5a63db>>(-0x2*_0x243ebb&0x6)):0x0){_0x4f6ad7=_0x265d24['indexOf'](_0x4f6ad7);}for(let _0x4b0b14=0x0,_0x292e7d=_0x4b1ef5['length'];_0x4b0b14<_0x292e7d;_0x4b0b14++){_0x3fd9a5+='%'+('00'+_0x4b1ef5['charCodeAt'](_0x4b0b14)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3fd9a5);};_0x43d2['vfHMsQ']=_0x349e85,_0x148c03=arguments,_0x43d2['ElwAwQ']=!![];}const _0x20230a=_0x306d5d[0x0],_0x40379e=_0x43d231+_0x20230a,_0x31a00d=_0x148c03[_0x40379e];return!_0x31a00d?(_0x71893d=_0x43d2['vfHMsQ'](_0x71893d),_0x148c03[_0x40379e]=_0x71893d):_0x71893d=_0x31a00d,_0x71893d;},_0x43d2(_0x148c03,_0x2414cb);}(function(_0x651112,_0x191a1c){const _0x2f2eb3=_0x43d2,_0x49a804=_0x651112();while(!![]){try{const _0x17323e=parseInt(_0x2f2eb3(0x1a3))/0x1+parseInt(_0x2f2eb3(0x1ae))/0x2+-parseInt(_0x2f2eb3(0x19d))/0x3*(parseInt(_0x2f2eb3(0x1ac))/0x4)+parseInt(_0x2f2eb3(0x1af))/0x5*(-parseInt(_0x2f2eb3(0x19b))/0x6)+parseInt(_0x2f2eb3(0x1b2))/0x7+-parseInt(_0x2f2eb3(0x19f))/0x8+parseInt(_0x2f2eb3(0x19a))/0x9;if(_0x17323e===_0x191a1c)break;else _0x49a804['push'](_0x49a804['shift']());}catch(_0x2da8d3){_0x49a804['push'](_0x49a804['shift']());}}}(_0x306d,0x62c2b));function _0x306d(){const _0x3de1f4=['yM9KEq','qUg6Ow4Gy2JgSgeGBMJHUQ1Wig7HU5LPigr1BMCGDgLUig5O4BQVBG','l3n1ChbVCNqVoMD1zxn0','z3vLC3q','y29UDgvUDa','ntKWogDtDejIwa','C3rHDhvZ','odm4mZa2yNjIzujZ','mta4nty1Egrbuxr3','zxHWB3j0CW','v01yrKi','mJi0mZe1n1fxy0TKyG','C3vWCg9YDfvZzxjZ','z2v0tw9KzwW','ody2mZqWmezgseLsAG','mtq0A0zqtejj','C2vUza','mtuWovr2zhntva','DgL0Bgu','nduXntKZnKTNDMv1Ea','BwfWtgLTAxq','yxn5BMm','Cg9ZDa','ntmWodu0EfD3C0rU','EMLLC1G','CM91Dgu','y3jLyxrLtwvZC2fNzq'];_0x306d=function(){return _0x3de1f4;};return _0x306d();}var message=global[_0xe651b2(0x199)]('message');const async=require(_0xe651b2(0x1a1));module[_0xe651b2(0x1b0)]=function(_0x35d777){const _0x322ff5=_0xe651b2,_0x1a1011={'ziesX':_0x322ff5(0x1a8),'WMXFB':_0x322ff5(0x1a9)};_0x35d777[_0x322ff5(0x1a5)](_0x1a1011[_0x322ff5(0x1b1)])[_0x322ff5(0x1a2)](function(_0x31c621,_0x25e6ca){const _0x27e6f1=_0x322ff5;let _0x2b1435=_0x31c621[_0x27e6f1(0x1a7)],_0x17fa34=_0x31c621['params'][_0x27e6f1(0x1aa)],_0x4f79a5=_0x2b1435[_0x27e6f1(0x1ab)],_0x3f2f5b=_0x2b1435[_0x27e6f1(0x19e)];if(!_0x4f79a5)return _0x25e6ca[_0x27e6f1(0x1ad)](0x190)[_0x27e6f1(0x19c)](_0x1a1011[_0x27e6f1(0x1a4)]);async[_0x27e6f1(0x1a0)](configs[_0x27e6f1(0x198)],0x14,(_0x44bc88,_0x4a0286)=>{const _0x13db93=_0x27e6f1,_0x35db14={'VaLSI':function(_0x3e8177,_0x38b334,_0x536a04){return _0x3e8177(_0x38b334,_0x536a04);}};message[_0x13db93(0x1a6)](_0x17fa34,_0x44bc88,_0x3f2f5b,_0x4f79a5,(_0x4eece1,_0x3e6be2)=>{_0x35db14['VaLSI'](_0x4a0286,_0x4eece1,_0x3e6be2);});},(_0xafa1b9,_0x2769e9)=>{const _0xf9f794=_0x27e6f1;if(_0xafa1b9)return _0x25e6ca[_0xf9f794(0x1ad)](0x190)[_0xf9f794(0x19c)](_0xafa1b9);_0x25e6ca[_0xf9f794(0x19c)](_0x2769e9);});});};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const tableinfo=global
|
|
1
|
+
'use strict';const _0x3efe1c=_0x2c77;function _0x2c77(_0x3f2e66,_0x1b7e1e){const _0x1906ac=_0x1906();return _0x2c77=function(_0x2c77db,_0x2e0884){_0x2c77db=_0x2c77db-0x95;let _0x16486c=_0x1906ac[_0x2c77db];if(_0x2c77['GFumvo']===undefined){var _0x11ab4d=function(_0x3c9998){const _0x6a400b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x343859='',_0x2f96ef='';for(let _0x4c442e=0x0,_0xb23fe9,_0x282fa1,_0x52d4a6=0x0;_0x282fa1=_0x3c9998['charAt'](_0x52d4a6++);~_0x282fa1&&(_0xb23fe9=_0x4c442e%0x4?_0xb23fe9*0x40+_0x282fa1:_0x282fa1,_0x4c442e++%0x4)?_0x343859+=String['fromCharCode'](0xff&_0xb23fe9>>(-0x2*_0x4c442e&0x6)):0x0){_0x282fa1=_0x6a400b['indexOf'](_0x282fa1);}for(let _0x4f7b56=0x0,_0x4a3fd8=_0x343859['length'];_0x4f7b56<_0x4a3fd8;_0x4f7b56++){_0x2f96ef+='%'+('00'+_0x343859['charCodeAt'](_0x4f7b56)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2f96ef);};_0x2c77['gWBFue']=_0x11ab4d,_0x3f2e66=arguments,_0x2c77['GFumvo']=!![];}const _0x10e6cb=_0x1906ac[0x0],_0x2b3a13=_0x2c77db+_0x10e6cb,_0x315e90=_0x3f2e66[_0x2b3a13];return!_0x315e90?(_0x16486c=_0x2c77['gWBFue'](_0x16486c),_0x3f2e66[_0x2b3a13]=_0x16486c):_0x16486c=_0x315e90,_0x16486c;},_0x2c77(_0x3f2e66,_0x1b7e1e);}(function(_0x24e456,_0x932eba){const _0x20c738=_0x2c77,_0x34b1a4=_0x24e456();while(!![]){try{const _0x261792=-parseInt(_0x20c738(0xa1))/0x1*(parseInt(_0x20c738(0xa6))/0x2)+parseInt(_0x20c738(0xa2))/0x3*(parseInt(_0x20c738(0xa5))/0x4)+-parseInt(_0x20c738(0x9c))/0x5+parseInt(_0x20c738(0x97))/0x6+-parseInt(_0x20c738(0xa3))/0x7+parseInt(_0x20c738(0x98))/0x8*(-parseInt(_0x20c738(0xa0))/0x9)+parseInt(_0x20c738(0x9d))/0xa;if(_0x261792===_0x932eba)break;else _0x34b1a4['push'](_0x34b1a4['shift']());}catch(_0x50654b){_0x34b1a4['push'](_0x34b1a4['shift']());}}}(_0x1906,0x6d515));function _0x1906(){const _0x2b9e56=['mZmXoda4meLty2zdwG','mtu1nduWntbftuL2zwO','zxHLyW','z2v0tw9KzwW','mtGWotGXBeHtsw1A','mZq5CfHNBwnV','m1nAwKTQCq','nda4ote5mgnVzhvKEq','zMLUze9Uzq','mJa4mZuWoevqueLHyG','mJGWmNrny3HkBq','DgfIBgvPBMzV','Dg9vChbLCKnHC2u','BgvHBG','z2v0','mJK0nZeZng9hDeD4vW','mtuYre1hz3Dr','CM91Dgu','y29Kzq','zxHWB3j0CW'];_0x1906=function(){return _0x2b9e56;};return _0x1906();}const tableinfo=global[_0x3efe1c(0x9f)](_0x3efe1c(0xa7));module[_0x3efe1c(0x9b)]=function(_0x1f75d6){const _0x3b1633=_0x3efe1c;_0x1f75d6[_0x3b1633(0x99)]('/tableinfo/:code')[_0x3b1633(0x96)](function(_0x570060,_0x1c774c){const _0x229257=_0x3b1633,_0x3ce519=_0x570060['params'][_0x229257(0x9a)][_0x229257(0xa8)]();tableinfo[_0x229257(0xa4)]({'code':_0x3ce519})[_0x229257(0x95)]()[_0x229257(0x9e)]((_0x18937d,_0x3f701c)=>{if(_0x18937d)return _0x1c774c['status'](0x190)['send'](_0x18937d);_0x1c774c['send'](_0x3f701c);});});};
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const trialinfo=global
|
|
2
|
-
module.exports=function($router$$){$router$$.route("/trialinfo/:ls").get(function($req$$,$res$$){const $ls$$=$req$$.params.ls.toUpperCase();trialinfo.findOne({db_key:$ls$$},function($days_e$$,$rs$$){if($days_e$$)return $res$$.status(400).send($days_e$$);if($rs$$){$days_e$$=((new Date).getTime()-$rs$$.date_created.getTime())/864E5;let $update$$=0;$req$$.query.cty_name&&($rs$$.cty_name=$req$$.query.cty_name,$update$$=1);$req$$.query.address&&($rs$$.address=$req$$.query.address,$update$$=1);$req$$.query.phone&&
|
|
3
|
-
($rs$$.phone=$req$$.query.phone,$update$$=1);$update$$&&$rs$$.save(function(){});return $days_e$$<=$rs$$.trial_days?$res$$.send({db_key:$ls$$,trial_rg:!0,status:!0,msg:"Ok"}):$res$$.send({db_key:$ls$$,trial_rg:!0,status:!1,msg:"H\u1ebft h\u1ea1n d\u00f9ng th\u1eed"})}if($req$$.query.cty_name&&!$req$$.query.update)(new trialinfo({db_key:$ls$$,cty_name:$req$$.query.cty_name,address:$req$$.query.address,phone:$req$$.query.phone,app:$req$$.query.app,version:$req$$.query.version})).save(function($e$$){return $e$$?
|
|
4
|
-
$res$$.status(400).send($e$$):$res$$.send({db_key:$ls$$,trial_rg:!0,status:!0,msg:"Ok"})});else return $res$$.send({db_key:$ls$$,trial_rg:!1,status:!1,msg:"Ch\u01b0a \u0111ang k\u00fd d\u00f9ng th\u1eed"})})})};
|
|
1
|
+
'use strict';const _0x4aaffc=_0x493a;(function(_0x173ccc,_0x4f10fe){const _0x7d704b=_0x493a,_0x54c49c=_0x173ccc();while(!![]){try{const _0x4248d5=-parseInt(_0x7d704b(0x14c))/0x1*(parseInt(_0x7d704b(0x15e))/0x2)+parseInt(_0x7d704b(0x162))/0x3*(parseInt(_0x7d704b(0x16c))/0x4)+parseInt(_0x7d704b(0x16b))/0x5*(parseInt(_0x7d704b(0x142))/0x6)+parseInt(_0x7d704b(0x157))/0x7+-parseInt(_0x7d704b(0x154))/0x8+-parseInt(_0x7d704b(0x173))/0x9+-parseInt(_0x7d704b(0x158))/0xa;if(_0x4248d5===_0x4f10fe)break;else _0x54c49c['push'](_0x54c49c['shift']());}catch(_0x52190a){_0x54c49c['push'](_0x54c49c['shift']());}}}(_0x285a,0xafa8f));function _0x493a(_0x388cef,_0x2b9c6a){const _0x285af6=_0x285a();return _0x493a=function(_0x493aef,_0x22286c){_0x493aef=_0x493aef-0x13e;let _0x4b07da=_0x285af6[_0x493aef];if(_0x493a['diRqLs']===undefined){var _0x529b1d=function(_0x32353e){const _0x1c5a92='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5c170a='',_0x515454='';for(let _0x1ecae1=0x0,_0x263cf0,_0x3522fb,_0x1f3c45=0x0;_0x3522fb=_0x32353e['charAt'](_0x1f3c45++);~_0x3522fb&&(_0x263cf0=_0x1ecae1%0x4?_0x263cf0*0x40+_0x3522fb:_0x3522fb,_0x1ecae1++%0x4)?_0x5c170a+=String['fromCharCode'](0xff&_0x263cf0>>(-0x2*_0x1ecae1&0x6)):0x0){_0x3522fb=_0x1c5a92['indexOf'](_0x3522fb);}for(let _0x2b9df7=0x0,_0x23f0b1=_0x5c170a['length'];_0x2b9df7<_0x23f0b1;_0x2b9df7++){_0x515454+='%'+('00'+_0x5c170a['charCodeAt'](_0x2b9df7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x515454);};_0x493a['TVnfpI']=_0x529b1d,_0x388cef=arguments,_0x493a['diRqLs']=!![];}const _0x73f88c=_0x285af6[0x0],_0x9a92ca=_0x493aef+_0x73f88c,_0x7fa42=_0x388cef[_0x9a92ca];return!_0x7fa42?(_0x4b07da=_0x493a['TVnfpI'](_0x4b07da),_0x388cef[_0x9a92ca]=_0x4b07da):_0x4b07da=_0x7fa42,_0x4b07da;},_0x493a(_0x388cef,_0x2b9c6a);}const trialinfo=global[_0x4aaffc(0x161)](_0x4aaffc(0x165));function _0x285a(){const _0x2594c4=['wufuD2S','C2vUza','CgfYyw1Z','y3r5x25HBwu','mtKXotqYCMn5y1Pf','verJyxe','uxP6CwO','A0X6q0W','CgHVBMu','ExH1EKi','vffbA2O','s2HHDNy','nZy3nZa0ofPWAvvyCW','zMLUze9Uzq','vMr4wem','otG5nJa1nhDszgjAta','mZCYotq2mgLRCNfTuW','yxbW','CK53uve','Dg9vChbLCKnHC2u','DhjPywXFzgf5CW','zuPTCNm','nfjutw51AG','CxvLCNK','B09zwu0','z2v0tw9KzwW','mJa0CffdDunb','sog6V3qGAog6Ow4Gzmo5BMCGDgJHU60','rMnAvvy','DhjPywXPBMzV','BhzszhG','q3rMq1a','uKfoqvG','yuvWzvm','rw96zvi','nxjTwvjtvG','mJq5ndbovgLPz1C','rNbVvwK','DMvYC2LVBG','CMzgruO','C1HzCNy','z2XRueG','tfzYDhi','mtK4mJq0ogjpr3DpBa','vNnYrvG','A1PnCg4','zvrfu0C','txP2tue','Axjvz1K','C2f2zq','z2v0','sePUzhm','Dvb0vvi','DxbKyxrL','zxHWB3j0CW','z2v0vgLTzq','B2DzA2q','ywrKCMvZCW','ExfYz1q','q2JgSgeGXjfHBMCGA8o9igtdUw5NihrO4BUT','ndKXmtiWnfHWB2PRAa','EwLxAfC','ENDLAem','CM91Dgu','C3rHDhvZ','uM1TEKO'];_0x285a=function(){return _0x2594c4;};return _0x285a();}module[_0x4aaffc(0x17e)]=function(_0x2e07aa){const _0x19455e=_0x4aaffc,_0x262784={'CtfCP':'Chưa\x20đang\x20ký\x20dùng\x20thử','zBykb':_0x19455e(0x171),'Qzzqj':'ExpUY','lvRdx':function(_0xe374d3,_0x4632d8){return _0xe374d3===_0x4632d8;},'MzvMA':_0x19455e(0x169),'RmmzJ':function(_0x139bb9,_0x5d0648){return _0x139bb9-_0x5d0648;},'uPtUR':function(_0x3de6f7,_0x4d8a55){return _0x3de6f7*_0x4d8a55;},'Khavv':'fkROY','FpoUi':_0x19455e(0x13e),'rNwQQ':_0x19455e(0x163),'eTESG':'/trialinfo/:ls'};_0x2e07aa[_0x19455e(0x145)](_0x262784[_0x19455e(0x176)])[_0x19455e(0x17a)](function(_0x22bbfd,_0xb93257){const _0x1a3cee=_0x19455e,_0x293408={'rfFEJ':_0x1a3cee(0x151),'VsrEX':_0x1a3cee(0x168),'LVrtr':_0x262784[_0x1a3cee(0x167)],'oOYYM':function(_0x52d3a4,_0xaa2aa0){return _0x52d3a4!==_0xaa2aa0;},'YATwk':_0x262784['zBykb'],'HJnds':_0x262784[_0x1a3cee(0x14e)],'TDcaq':'yiNeW','VdxXC':function(_0x386754,_0x50d3e8){const _0x84365b=_0x1a3cee;return _0x262784[_0x84365b(0x166)](_0x386754,_0x50d3e8);},'JmGOY':_0x262784[_0x1a3cee(0x177)],'YIArB':function(_0x5935f4,_0x22bf12){const _0x4bffe8=_0x1a3cee;return _0x262784[_0x4bffe8(0x147)](_0x5935f4,_0x22bf12);},'TQAkj':function(_0x1bb8c2,_0x468530){const _0x3a0b3f=_0x1a3cee;return _0x262784[_0x3a0b3f(0x17c)](_0x1bb8c2,_0x468530);},'sXYrv':function(_0x46bbbc,_0x169828){return _0x46bbbc!==_0x169828;},'hKHMb':_0x262784[_0x1a3cee(0x153)],'kZMpn':_0x262784[_0x1a3cee(0x16d)],'irUgY':_0x1a3cee(0x143),'JxphC':function(_0x403088,_0x32302e){return _0x403088<=_0x32302e;},'yqrgT':function(_0x5514cc,_0x55de9c){const _0x3db23a=_0x1a3cee;return _0x262784[_0x3db23a(0x166)](_0x5514cc,_0x55de9c);},'kLzCL':'YVkYS','EozeR':_0x262784[_0x1a3cee(0x15a)]},_0x548dab=_0x22bbfd[_0x1a3cee(0x14a)]['ls'][_0x1a3cee(0x15b)]();trialinfo[_0x1a3cee(0x155)]({'db_key':_0x548dab},function(_0x42b14f,_0x368a3d){const _0x2473e2=_0x1a3cee,_0x37a637={'zwehC':_0x2473e2(0x141)};if(_0x293408[_0x2473e2(0x160)](_0x293408[_0x2473e2(0x148)],_0x293408[_0x2473e2(0x148)])){if(_0x44c753[_0x2473e2(0x15f)][_0x2473e2(0x14b)]&&!_0x4afaeb['query']['update']){const _0x217dd3={'db_key':_0x527707,'cty_name':_0xfe72d1['query']['cty_name'],'address':_0x2517ae[_0x2473e2(0x15f)][_0x2473e2(0x13f)],'phone':_0x257ff0[_0x2473e2(0x15f)][_0x2473e2(0x150)],'app':_0x6f03e1[_0x2473e2(0x15f)][_0x2473e2(0x159)],'version':_0x42ca30[_0x2473e2(0x15f)][_0x2473e2(0x16e)]},_0x346182=new _0x4f3f43(_0x217dd3);_0x346182['save'](function(_0x36f122){const _0x4dbedb=_0x2473e2;if(_0x36f122)return _0x3f65d1[_0x4dbedb(0x146)](0x190)[_0x4dbedb(0x149)](_0x36f122);return _0x55026d[_0x4dbedb(0x149)]({'db_key':_0x1e7d37,'trial_rg':!![],'status':!![],'msg':'Ok'});});}else return _0xe64d44[_0x2473e2(0x149)]({'db_key':_0x18914f,'trial_rg':![],'status':![],'msg':_0x37a637[_0x2473e2(0x144)]});}else{if(_0x42b14f)return _0xb93257[_0x2473e2(0x146)](0x190)[_0x2473e2(0x149)](_0x42b14f);if(!_0x368a3d){if(_0x2473e2(0x15d)===_0x293408[_0x2473e2(0x17b)])_0x15bc33[_0x2473e2(0x14b)]=_0x32c1a0['query'][_0x2473e2(0x14b)],_0x55d8ed=0x1;else{if(_0x22bbfd[_0x2473e2(0x15f)][_0x2473e2(0x14b)]&&!_0x22bbfd[_0x2473e2(0x15f)][_0x2473e2(0x17d)]){if(_0x293408[_0x2473e2(0x160)]('yiNeW',_0x293408[_0x2473e2(0x14d)]))return _0x14edea[_0x2473e2(0x149)]({'db_key':_0x573ede,'trial_rg':!![],'status':!![],'msg':'Ok'});else{const _0x19117e={'db_key':_0x548dab,'cty_name':_0x22bbfd[_0x2473e2(0x15f)][_0x2473e2(0x14b)],'address':_0x22bbfd[_0x2473e2(0x15f)][_0x2473e2(0x13f)],'phone':_0x22bbfd['query'][_0x2473e2(0x150)],'app':_0x22bbfd[_0x2473e2(0x15f)][_0x2473e2(0x159)],'version':_0x22bbfd[_0x2473e2(0x15f)]['version']},_0x6eb76b=new trialinfo(_0x19117e);_0x6eb76b[_0x2473e2(0x179)](function(_0x44f1b0){const _0x5738b1=_0x2473e2;if(_0x293408[_0x5738b1(0x16f)]===_0x293408[_0x5738b1(0x174)])_0x3a6945[_0x5738b1(0x13f)]=_0x26aaae[_0x5738b1(0x15f)][_0x5738b1(0x13f)],_0x340d4a=0x1;else{if(_0x44f1b0)return _0xb93257[_0x5738b1(0x146)](0x190)['send'](_0x44f1b0);return _0xb93257[_0x5738b1(0x149)]({'db_key':_0x548dab,'trial_rg':!![],'status':!![],'msg':'Ok'});}});}}else return _0x293408[_0x2473e2(0x156)](_0x293408['JmGOY'],_0x2473e2(0x164))?_0x34505f[_0x2473e2(0x149)]({'db_key':_0x245965,'trial_rg':![],'status':![],'msg':_0x293408[_0x2473e2(0x172)]}):_0xb93257[_0x2473e2(0x149)]({'db_key':_0x548dab,'trial_rg':![],'status':![],'msg':_0x293408['LVrtr']});}}else{const _0x2d8c81=new Date(),_0x5ab815=_0x293408['YIArB'](_0x2d8c81['getTime'](),_0x368a3d['date_created'][_0x2473e2(0x17f)]())/_0x293408[_0x2473e2(0x152)](0x3e8*0x3c*0x3c,0x18);let _0x2c4296=0x0;_0x22bbfd[_0x2473e2(0x15f)][_0x2473e2(0x14b)]&&(_0x368a3d[_0x2473e2(0x14b)]=_0x22bbfd['query'][_0x2473e2(0x14b)],_0x2c4296=0x1);_0x22bbfd['query'][_0x2473e2(0x13f)]&&(_0x293408[_0x2473e2(0x170)](_0x293408['hKHMb'],_0x293408[_0x2473e2(0x175)])?(_0x368a3d['address']=_0x22bbfd[_0x2473e2(0x15f)]['address'],_0x2c4296=0x1):_0x19409e['save'](function(){}));_0x22bbfd[_0x2473e2(0x15f)][_0x2473e2(0x150)]&&(_0x368a3d['phone']=_0x22bbfd[_0x2473e2(0x15f)][_0x2473e2(0x150)],_0x2c4296=0x1);if(_0x2c4296){if(_0x293408[_0x2473e2(0x178)]===_0x293408[_0x2473e2(0x178)])_0x368a3d[_0x2473e2(0x179)](function(){});else return _0xe118a8['send']({'db_key':_0x26450d,'trial_rg':!![],'status':![],'msg':'Hết\x20hạn\x20dùng\x20thử'});}if(_0x293408['JxphC'](_0x5ab815,_0x368a3d[_0x2473e2(0x15c)]))return _0xb93257[_0x2473e2(0x149)]({'db_key':_0x548dab,'trial_rg':!![],'status':!![],'msg':'Ok'});else{if(_0x293408[_0x2473e2(0x140)](_0x293408[_0x2473e2(0x14f)],_0x293408[_0x2473e2(0x14f)]))return _0xb93257[_0x2473e2(0x149)]({'db_key':_0x548dab,'trial_rg':!![],'status':![],'msg':_0x293408[_0x2473e2(0x16a)]});else _0x573b15[_0x2473e2(0x150)]=_0x3ae1b8[_0x2473e2(0x15f)][_0x2473e2(0x150)],_0x459a0d=0x1;}}}});});};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const versioninfo=global
|
|
1
|
+
function _0x2020(_0x31ac0e,_0x28d65a){const _0x48fea1=_0x48fe();return _0x2020=function(_0x20209a,_0x3b8eb4){_0x20209a=_0x20209a-0x176;let _0x4418ce=_0x48fea1[_0x20209a];if(_0x2020['qAGGJr']===undefined){var _0xe47e8c=function(_0x41cac4){const _0x4e8165='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2f6755='',_0x27d84b='';for(let _0x507356=0x0,_0x2e99bb,_0x4acd81,_0x43b82e=0x0;_0x4acd81=_0x41cac4['charAt'](_0x43b82e++);~_0x4acd81&&(_0x2e99bb=_0x507356%0x4?_0x2e99bb*0x40+_0x4acd81:_0x4acd81,_0x507356++%0x4)?_0x2f6755+=String['fromCharCode'](0xff&_0x2e99bb>>(-0x2*_0x507356&0x6)):0x0){_0x4acd81=_0x4e8165['indexOf'](_0x4acd81);}for(let _0x1df93e=0x0,_0x406cb0=_0x2f6755['length'];_0x1df93e<_0x406cb0;_0x1df93e++){_0x27d84b+='%'+('00'+_0x2f6755['charCodeAt'](_0x1df93e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x27d84b);};_0x2020['hLMiww']=_0xe47e8c,_0x31ac0e=arguments,_0x2020['qAGGJr']=!![];}const _0x3bbe2b=_0x48fea1[0x0],_0x1efa70=_0x20209a+_0x3bbe2b,_0xf46e79=_0x31ac0e[_0x1efa70];return!_0xf46e79?(_0x4418ce=_0x2020['hLMiww'](_0x4418ce),_0x31ac0e[_0x1efa70]=_0x4418ce):_0x4418ce=_0xf46e79,_0x4418ce;},_0x2020(_0x31ac0e,_0x28d65a);}const _0x77a19c=_0x2020;function _0x48fe(){const _0x298424=['otmXnZa3wuPMz3bA','z2v0tw9KzwW','CM91Dgu','zxHLyW','mM9izg53va','mJKXodyXsKXUtujR','l3zLCNnPB25PBMzV','CxvLCNK','mti5nJK2muj0B015vG','C3rHDhvZ','zMLUza','z2v0','C2vUza','DMvYC2LVBMLUzM8','mtu2mdu5mNbgz1zgwa','mtCYofrHqMjfAW','mZy2mte4oervCfP4Bq','ntGYnxDSqNHSAq','mti2nZeZntbTr0Lfv3y','BgvHBG','mtzUDu5vEwK','CgfYC2u'];_0x48fe=function(){return _0x298424;};return _0x48fe();}(function(_0x544d90,_0x1e6f4c){const _0x5432b8=_0x2020,_0x2e0da3=_0x544d90();while(!![]){try{const _0x5c7e59=-parseInt(_0x5432b8(0x188))/0x1*(-parseInt(_0x5432b8(0x184))/0x2)+-parseInt(_0x5432b8(0x17a))/0x3+-parseInt(_0x5432b8(0x178))/0x4+parseInt(_0x5432b8(0x17b))/0x5*(-parseInt(_0x5432b8(0x179))/0x6)+parseInt(_0x5432b8(0x180))/0x7+parseInt(_0x5432b8(0x17e))/0x8*(-parseInt(_0x5432b8(0x185))/0x9)+parseInt(_0x5432b8(0x17c))/0xa;if(_0x5c7e59===_0x1e6f4c)break;else _0x2e0da3['push'](_0x2e0da3['shift']());}catch(_0x54ad76){_0x2e0da3['push'](_0x2e0da3['shift']());}}}(_0x48fe,0xa78c3));const versioninfo=global[_0x77a19c(0x181)](_0x77a19c(0x177));module['exports']=function(_0x54b333){const _0x219c79=_0x77a19c;_0x54b333[_0x219c79(0x182)](_0x219c79(0x186))[_0x219c79(0x18b)](function(_0x5c28ce,_0x3c8ce7){const _0x982b4=_0x219c79;let _0x1a5791={};_0x5c28ce[_0x982b4(0x187)]['q']&&(_0x1a5791=JSON[_0x982b4(0x17f)](_0x5c28ce[_0x982b4(0x187)]['q']));_0x1a5791[_0x982b4(0x189)]=!![];let _0x1e67a1=versioninfo[_0x982b4(0x18a)](_0x1a5791);_0x1e67a1[_0x982b4(0x17d)]()[_0x982b4(0x183)](function(_0x53f8a5,_0x16d12b){const _0x4d922d=_0x982b4;if(_0x53f8a5)return _0x3c8ce7[_0x4d922d(0x189)](0x190)[_0x4d922d(0x176)](_0x53f8a5);_0x3c8ce7[_0x4d922d(0x176)](_0x16d12b);});});};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
const tinhgiatb=require("../../libs/tinhgiatb"),controller=require("../../controllers/controllerRPT"),_Notification=global.getModel("notification"),async=require("async"),utils=require("../../libs/utils"),{getCurrentSession}=require("../../libs/sessionContext");
|
|
2
|
-
module.exports=function($router$$){new controller($router$$,"tinhgiatb",async function($req$$,$callback$$){const $query$$=$req$$.query;if(!$query$$.nam||!$query$$.tu_thang||!$query$$.den_thang)return $callback$$("Ch\u1ee9c n\u0103ng n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1: nam,tu_thang,den_thang");var $ds_kho_moment_query_kho$$=require("moment"),$ngay_ks_tu_ngay$$=$ds_kho_moment_query_kho$$([Number($query$$.nam),Number($query$$.tu_thang)-1,1]).startOf("month").toDate();if($ngay_ks_tu_ngay$$=
|
|
3
|
-
await utils.isBookLocked({id_app:$req$$.user.current_id_app,ngay_ct:$ngay_ks_tu_ngay$$}))return $callback$$(`\u0110\u00e3 kh\u00f3a s\u1ed5 \u0111\u1ebfn ng\u00e0y ${$ds_kho_moment_query_kho$$($ngay_ks_tu_ngay$$).format("DD/MM/YYYY")}`);const $id_app$$=$query$$.id_app;$ds_kho_moment_query_kho$$=[];$query$$.tinh_theo_kho&&!$query$$.ma_kho?($ds_kho_moment_query_kho$$={id_app:$id_app$$,status:!0},$ds_kho_moment_query_kho$$=(await global.getModel("dmkho").find($ds_kho_moment_query_kho$$,{ma_kho:1}).sort({stt:1}).lean()).map($r$$=>
|
|
4
|
-
$r$$.ma_kho)):$ds_kho_moment_query_kho$$=[$query$$.ma_kho];console.log(`\u2705 [Calc-tinhgiatb] T\u00ednh gi\u00e1 trung b\u00ecnh, sessionID=${getCurrentSession()?._debugId}`);async.map($ds_kho_moment_query_kho$$,($ma_kho$$,$callback$$)=>{const $zquery$$=Object.assign({},$query$$);$zquery$$.ma_kho=$ma_kho$$;tinhgiatb($zquery$$,function($error$$){$error$$&&console.error("[Calc-tinhgiatb] L\u1ed7i t\u00ednh gia trung b\u00ecnh:",$error$$.message||$error$$.error||$error$$,$zquery$$);$callback$$($error$$)})},
|
|
5
|
-
$error$$=>{const $email$$=$req$$.user.email;$error$$?(console.error("[Calc-tinhgiatb] L\u1ed7i khi t\u00ednh gi\u00e1 trung b\u00ecnh",$error$$.message||$error$$.error||$error$$),_Notification.createNotification($email$$,$email$$,$error$$.message||$error$$,$error$$.message||$error$$,null,{id_app:$id_app$$},!0,$req$$.access_token,!0),$callback$$($error$$)):(console.info("[Calc-tinhgiatb] \u0110\u00e3 t\u00ednh xong gi\u00e1 trung b\u00ecnh. Th\u00f4ng b\u00e1o t\u1edbi",$email$$),_Notification.createNotification($email$$,
|
|
6
|
-
$email$$,"Ch\u01b0\u01a1ng tr\u00ecnh \u0111\u00e3 t\u00ednh gi\u00e1 trung b\u00ecnh xong","Ch\u01b0\u01a1ng tr\u00ecnh \u0111\u00e3 t\u00ednh gi\u00e1 trung b\u00ecnh xong",null,{id_app:$id_app$$},!0,$req$$.access_token,!0),$callback$$(null))})},{stream:!1,useSession:!0,cache:!1,queue:!0,timeout:18E6,waiting_message:"Ch\u01b0\u01a1ng tr\u00ecnh \u0111ang th\u1ef1c hi\u1ec7n. B\u1ea1n c\u00f3 th\u1ec3 chuy\u1ec3n sang trang kh\u00e1c \u0111\u1ec3 l\u00e0m vi\u1ec7c. Khi ch\u01b0\u01a1ng tr\u00ecnh th\u1ef1c hi\u1ec7n xong s\u1ebd g\u1eedi th\u00f4ng b\u00e1o cho b\u1ea1n."})};
|
|
1
|
+
const _0x434cbf=_0x542b;function _0x542b(_0x2ed358,_0x202dbc){const _0x3326d9=_0x3326();return _0x542b=function(_0x542b50,_0xf33998){_0x542b50=_0x542b50-0x137;let _0x8cf17e=_0x3326d9[_0x542b50];if(_0x542b['EqbiBN']===undefined){var _0x1ed773=function(_0x55e51b){const _0x32b86d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x14f614='',_0x31ec45='';for(let _0x1784e2=0x0,_0x1a3705,_0x5e85e3,_0x2aee90=0x0;_0x5e85e3=_0x55e51b['charAt'](_0x2aee90++);~_0x5e85e3&&(_0x1a3705=_0x1784e2%0x4?_0x1a3705*0x40+_0x5e85e3:_0x5e85e3,_0x1784e2++%0x4)?_0x14f614+=String['fromCharCode'](0xff&_0x1a3705>>(-0x2*_0x1784e2&0x6)):0x0){_0x5e85e3=_0x32b86d['indexOf'](_0x5e85e3);}for(let _0x2f3a41=0x0,_0x24969a=_0x14f614['length'];_0x2f3a41<_0x24969a;_0x2f3a41++){_0x31ec45+='%'+('00'+_0x14f614['charCodeAt'](_0x2f3a41)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x31ec45);};_0x542b['GRahKO']=_0x1ed773,_0x2ed358=arguments,_0x542b['EqbiBN']=!![];}const _0x1555cf=_0x3326d9[0x0],_0x4ca238=_0x542b50+_0x1555cf,_0xe7a1=_0x2ed358[_0x4ca238];return!_0xe7a1?(_0x8cf17e=_0x542b['GRahKO'](_0x8cf17e),_0x2ed358[_0x4ca238]=_0x8cf17e):_0x8cf17e=_0xe7a1,_0x8cf17e;},_0x542b(_0x2ed358,_0x202dbc);}(function(_0x3e42cf,_0x16a44f){const _0x35983f=_0x542b,_0xbfe7cb=_0x3e42cf();while(!![]){try{const _0x1aec29=parseInt(_0x35983f(0x170))/0x1*(-parseInt(_0x35983f(0x17f))/0x2)+-parseInt(_0x35983f(0x177))/0x3+parseInt(_0x35983f(0x15b))/0x4+parseInt(_0x35983f(0x16f))/0x5*(parseInt(_0x35983f(0x171))/0x6)+parseInt(_0x35983f(0x140))/0x7*(-parseInt(_0x35983f(0x15c))/0x8)+-parseInt(_0x35983f(0x138))/0x9+parseInt(_0x35983f(0x17a))/0xa*(parseInt(_0x35983f(0x147))/0xb);if(_0x1aec29===_0x16a44f)break;else _0xbfe7cb['push'](_0xbfe7cb['shift']());}catch(_0x311fca){_0xbfe7cb['push'](_0xbfe7cb['shift']());}}}(_0x3326,0x27381));const tinhgiatb=require('../../libs/tinhgiatb'),controller=require(_0x434cbf(0x154)),_Notification=global[_0x434cbf(0x16c)](_0x434cbf(0x186)),async=require('async'),utils=require(_0x434cbf(0x14e)),{getCurrentSession}=require(_0x434cbf(0x18d));module['exports']=function(_0x46db49){const _0xa36f56=_0x434cbf,_0x2900d6={'PheaM':_0xa36f56(0x184),'VCUZa':function(_0xa55cf4,_0x4aa173){return _0xa55cf4(_0x4aa173);},'jdPyW':function(_0x4c8088,_0x205315){return _0x4c8088(_0x205315);},'EJfEl':function(_0x4bee3a,_0x180cda){return _0x4bee3a(_0x180cda);},'NkWKM':function(_0x48620a,_0x48f7b6,_0x4ca88b){return _0x48620a(_0x48f7b6,_0x4ca88b);},'nWqhS':_0xa36f56(0x18c),'zcgih':_0xa36f56(0x152),'bfiIF':_0xa36f56(0x167),'rnzIF':function(_0xc19995,_0x8abda9){return _0xc19995!==_0x8abda9;},'nHtRe':_0xa36f56(0x13a),'KYpYo':function(_0x4b5fda,_0x1714ed){return _0x4b5fda(_0x1714ed);},'csywJ':_0xa36f56(0x151),'PFqKO':_0xa36f56(0x18a),'xNMGV':function(_0x4d79dd,_0x4536a0){return _0x4d79dd-_0x4536a0;},'RYkzu':function(_0x26493c,_0x5693b8){return _0x26493c(_0x5693b8);},'YLSoe':_0xa36f56(0x150),'rJEPW':function(_0x117d34,_0x32b9fb){return _0x117d34(_0x32b9fb);},'mhXTh':_0xa36f56(0x182),'nvggq':'dmkho','yjvye':function(_0x3e372c){return _0x3e372c();},'DfUrf':function(_0x4f2c27,_0x1f7044){return _0x4f2c27*_0x1f7044;},'sfmCF':function(_0x4e0ba8,_0x1803c8){return _0x4e0ba8*_0x1803c8;},'EIbJn':_0xa36f56(0x188)};new controller(_0x46db49,_0xa36f56(0x185),async function(_0x55da65,_0x22d7c5){const _0x57ba1d=_0xa36f56,_0x3c869d={'czHRE':_0x57ba1d(0x184),'akNtL':function(_0x5c3480,_0x28593d){const _0x2cbdd3=_0x57ba1d;return _0x2900d6[_0x2cbdd3(0x13c)](_0x5c3480,_0x28593d);},'LqyoG':function(_0x3b425d,_0x4870ce){const _0x2b09aa=_0x57ba1d;return _0x2900d6[_0x2b09aa(0x18b)](_0x3b425d,_0x4870ce);},'fNQpz':function(_0x1223f8,_0x19a4c5){const _0x3b0dfa=_0x57ba1d;return _0x2900d6[_0x3b0dfa(0x142)](_0x1223f8,_0x19a4c5);},'RahUO':_0x57ba1d(0x182),'cANZv':function(_0x3e2e0b,_0x4c33b4,_0x387963){const _0xb2e4db=_0x57ba1d;return _0x2900d6[_0xb2e4db(0x159)](_0x3e2e0b,_0x4c33b4,_0x387963);},'YTBgT':function(_0x15b958,_0x30c575){return _0x15b958!==_0x30c575;},'NsyyA':_0x2900d6[_0x57ba1d(0x190)],'mZyxm':function(_0x182741,_0x504ad4){return _0x182741(_0x504ad4);},'domKw':_0x2900d6[_0x57ba1d(0x168)],'CttKw':function(_0xd6d454,_0x379a14){const _0x4c18a9=_0x57ba1d;return _0x2900d6[_0x4c18a9(0x18b)](_0xd6d454,_0x379a14);}};if(_0x2900d6['bfiIF']!=='aCkaN'){if(_0x1555bf)_0x32512c[_0x57ba1d(0x14d)](_0x3c869d[_0x57ba1d(0x183)],_0x196fb0[_0x57ba1d(0x18e)]||_0x329de1[_0x57ba1d(0x14d)]||_0x532a57,_0x367f5b);_0x3c869d[_0x57ba1d(0x162)](_0x247dec,_0x28ffd0);}else{const _0x12c6b2=_0x55da65[_0x57ba1d(0x191)];if(!_0x12c6b2['nam']||!_0x12c6b2[_0x57ba1d(0x160)]||!_0x12c6b2[_0x57ba1d(0x17b)])return _0x2900d6[_0x57ba1d(0x163)](_0x57ba1d(0x13a),_0x2900d6[_0x57ba1d(0x169)])?_0x3c869d['LqyoG'](_0x1a3705,'Đã\x20khóa\x20sổ\x20đến\x20ngày\x20'+_0x3c869d[_0x57ba1d(0x15d)](_0x5e85e3,_0x2aee90)[_0x57ba1d(0x13d)](_0x3c869d[_0x57ba1d(0x172)])):_0x2900d6[_0x57ba1d(0x139)](_0x22d7c5,_0x2900d6[_0x57ba1d(0x14c)]);const _0x1807ca=_0x2900d6[_0x57ba1d(0x139)](require,_0x2900d6[_0x57ba1d(0x174)]);let _0x28d267=_0x2900d6[_0x57ba1d(0x18b)](_0x1807ca,[Number(_0x12c6b2['nam']),_0x2900d6['xNMGV'](_0x2900d6[_0x57ba1d(0x143)](Number,_0x12c6b2['tu_thang']),0x1),0x1])[_0x57ba1d(0x13b)](_0x2900d6['YLSoe'])['toDate'](),_0x83a087=await utils[_0x57ba1d(0x175)]({'id_app':_0x55da65[_0x57ba1d(0x146)][_0x57ba1d(0x176)],'ngay_ct':_0x28d267});if(_0x83a087)return _0x2900d6[_0x57ba1d(0x13c)](_0x22d7c5,_0x57ba1d(0x17d)+_0x2900d6['rJEPW'](_0x1807ca,_0x83a087)[_0x57ba1d(0x13d)](_0x2900d6[_0x57ba1d(0x149)]));const _0x1dfc40=_0x12c6b2[_0x57ba1d(0x16b)];let _0x431965=[];if(_0x12c6b2[_0x57ba1d(0x187)]&&!_0x12c6b2[_0x57ba1d(0x145)]){if(_0x2900d6[_0x57ba1d(0x163)]('PIPGX',_0x57ba1d(0x161))){const _0x4d6bbb={'oiquS':_0x2900d6[_0x57ba1d(0x14f)],'uOGXP':function(_0x34cd27,_0x41c273){const _0x308e6a=_0x57ba1d;return _0x2900d6[_0x308e6a(0x18b)](_0x34cd27,_0x41c273);}},_0x2662ed=_0x2aab55['assign']({},_0x34368b);_0x2662ed[_0x57ba1d(0x145)]=_0x38a6c2,_0x426cc6(_0x2662ed,function(_0x563daf){const _0x523df8=_0x57ba1d;if(_0x563daf)_0x4a5fd0['error'](_0x4d6bbb[_0x523df8(0x189)],_0x563daf[_0x523df8(0x18e)]||_0x563daf[_0x523df8(0x14d)]||_0x563daf,_0x2662ed);_0x4d6bbb[_0x523df8(0x141)](_0x5c3b18,_0x563daf);});}else{const _0x252d96={'id_app':_0x1dfc40,'status':!![]};_0x431965=(await global['getModel'](_0x2900d6[_0x57ba1d(0x165)])[_0x57ba1d(0x15a)](_0x252d96,{'ma_kho':0x1})[_0x57ba1d(0x13f)]({'stt':0x1})[_0x57ba1d(0x16e)]())[_0x57ba1d(0x181)](_0x2084bc=>_0x2084bc['ma_kho']);}}else _0x431965=[_0x12c6b2['ma_kho']];console[_0x57ba1d(0x15e)](_0x57ba1d(0x148)+_0x2900d6[_0x57ba1d(0x180)](getCurrentSession)?.[_0x57ba1d(0x155)]),async[_0x57ba1d(0x181)](_0x431965,(_0x34ffac,_0x541130)=>{const _0x49671c=_0x57ba1d,_0x2590c5={'ZqlyW':_0x49671c(0x152),'CJhSK':function(_0x194567,_0x64bbe1){return _0x194567(_0x64bbe1);},'keBWV':_0x49671c(0x16a)},_0x184385=Object[_0x49671c(0x166)]({},_0x12c6b2);_0x184385[_0x49671c(0x145)]=_0x34ffac,_0x3c869d[_0x49671c(0x179)](tinhgiatb,_0x184385,function(_0x2d9d20){const _0x10f068=_0x49671c,_0x223d71={'ZAWuM':_0x10f068(0x17c),'UACsp':_0x2590c5[_0x10f068(0x157)],'JRxla':function(_0x4a6736,_0x1108a7){const _0x5a128d=_0x10f068;return _0x2590c5[_0x5a128d(0x15f)](_0x4a6736,_0x1108a7);}};if(_0x2590c5[_0x10f068(0x18f)]===_0x2590c5['keBWV']){if(_0x2d9d20)console[_0x10f068(0x14d)](_0x10f068(0x184),_0x2d9d20['message']||_0x2d9d20['error']||_0x2d9d20,_0x184385);_0x2590c5[_0x10f068(0x15f)](_0x541130,_0x2d9d20);}else _0x17b44d[_0x10f068(0x156)](_0x223d71[_0x10f068(0x14a)],_0x335521),_0x13eb6f[_0x10f068(0x17e)](_0x30356f,_0x2e88e6,_0x223d71[_0x10f068(0x137)],_0x223d71['UACsp'],null,{'id_app':_0x4bf7fe},!![],_0x3aeccd[_0x10f068(0x153)],!![]),_0x223d71[_0x10f068(0x192)](_0x10a430,null);});},_0x23298c=>{const _0xe59da4=_0x57ba1d,_0x3bbdec=_0x55da65[_0xe59da4(0x146)][_0xe59da4(0x14b)];_0x23298c?_0x3c869d[_0xe59da4(0x158)](_0x3c869d['NsyyA'],_0xe59da4(0x18c))?_0x2540b5=[_0x591b03[_0xe59da4(0x145)]]:(console[_0xe59da4(0x14d)](_0xe59da4(0x164),_0x23298c[_0xe59da4(0x18e)]||_0x23298c[_0xe59da4(0x14d)]||_0x23298c),_Notification[_0xe59da4(0x17e)](_0x3bbdec,_0x3bbdec,_0x23298c['message']||_0x23298c,_0x23298c[_0xe59da4(0x18e)]||_0x23298c,null,{'id_app':_0x1dfc40},!![],_0x55da65[_0xe59da4(0x153)],!![]),_0x3c869d[_0xe59da4(0x178)](_0x22d7c5,_0x23298c)):(console[_0xe59da4(0x156)]('[Calc-tinhgiatb]\x20Đã\x20tính\x20xong\x20giá\x20trung\x20bình.\x20Thông\x20báo\x20tới',_0x3bbdec),_Notification[_0xe59da4(0x17e)](_0x3bbdec,_0x3bbdec,_0x3c869d[_0xe59da4(0x16d)],_0x3c869d['domKw'],null,{'id_app':_0x1dfc40},!![],_0x55da65[_0xe59da4(0x153)],!![]),_0x3c869d[_0xe59da4(0x173)](_0x22d7c5,null));});}},{'stream':![],'useSession':!![],'cache':![],'queue':!![],'timeout':_0x2900d6['DfUrf'](_0x2900d6[_0xa36f56(0x13e)](_0x2900d6['DfUrf'](0x5,0x3c),0x3c),0x3e8),'waiting_message':_0x2900d6[_0xa36f56(0x144)]});};function _0x3326(){const _0x5f4bbe=['zxjYB3i','lI4VlI4VBgLICY91DgLSCW','ugHLyu0','Bw9UDgG','q2JHU6LJig7eG25Nig7dOhKGECoQDsbJ4BQNDsbJW6fJihrOyw0GC+g7KtOGBMfTlhr1x3rOyw5NlgrLBL90AgfUzW','q2JgSmAHBMCGDhldRg5OimsrW6mGDmoTBMGGz2NdOsb0CNvUzYbIW6XUAcb4B25N','ywnJzxnZx3rVA2vU','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCLjqva','x2rLyNvNswq','Aw5MBW','wNfSEvC','wvrcz1q','tMTxs00','zMLUza','otaYndy0C01bAvfW','ofPREKnZzW','zK5rChO','Bg9N','q0POu0S','DhvFDgHHBMC','ueLqr1G','ywToDeW','CM56suy','w0nHBgmTDgLUAgDPyxrIxsbm4BUxAsbRAgKGDmoTBMGGz2NdOsb0CNvUzYbIW6XUAa','BNzNz3e','yxnZAwDU','yunRyu4','EMnNAwG','BKH0uMu','Ahryz1u','AwrFyxbW','z2v0tw9KzwW','zg9Ts3C','BgvHBG','mJa0nvDYtvHWBq','mxnJA0ffza','mJC1ng1MB0Ltyq','uMfOvu8','q3r0s3C','uezXs08','AxncB29Rtg9JA2vK','y3vYCMvUDf9Pzf9HCha','mZG4nteYANftCvP6','BvP5Eg0','y0fowNy','otiWAeLPBw9R','zgvUx3rOyw5N','w0nHBgmTDgLUAgDPyxrIxsdeKmoJihtdRw5OihHVBMCGz2NdOsb0CNvUzYbIW6XUAc4GvgJdTg5NigldOw8GDog7M2K','XjddOYbRAmoZysbZ4BUvimsr4BQ/BIbUz8oGEsa','y3jLyxrLtM90AwzPy2f0Aw9U','mtiYnZK0twPZzNDc','EwP2Ewu','BwfW','reqVtu0VwvLzwq','y3PiuKu','w0nHBgmTDgLUAgDPyxrIxsbm4BUxAsb0W61UAcbNAweGDhj1BMCGySoSBMG6','DgLUAgDPyxrI','BM90AwzPy2f0Aw9U','DgLUAf90AgvVx2TOBW','q2JgSmAHBMCGDhldRg5Oimsryw5NihrO4BUXyYbOAEg7H24UielHUQfUigpdSYb0Aog7GYbJAhv54BUdBIbZyw5NihrYyw5NigTOW6fJimsr4BUdigZdOg0GDMNHU4DJlIblAgKGy2JgSmAHBMCGDhldRg5OihrO4BUXyYbOAEg7H24GEg9UzYbZ4BQ9igFHU61PihrOW7rUzYbIW6fVignOBYbI4BQHBI4','B2LXDvm','Bw9Tzw50','vKnvwMe','sg9PEM4','lI4VlI4VBgLICY9ZzxnZAw9Uq29UDgv4Da','BwvZC2fNzq','A2vcv1y','BLDXAfm','CxvLCNK','sLj4Bge','vufdC3a','mJC3mtmYnwn6tu9KrG','s1LWww8','C1LkBwq','C3rHCNrpzG','AMrqEvC','zM9YBwf0','C2zTq0y','C29YDa','mtm5mdKWmgXls09wyG','Du9hwfa','ruPMrwW','uLLRENu','ruLIsM4','BwfFA2HV','DxnLCG','ntmXodvwt2fVCgO','4PYfifTdywXJlxrPBMHNAwf0yL0GvmoTBMGGz2NdOsb0CNvUzYbIW6XUAcWGC2vZC2LVBKLepq','BwHyvgG','wKfxDu0','zw1HAwW','y3n5D0O'];_0x3326=function(){return _0x5f4bbe;};return _0x3326();}
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
const _Notification=global
|
|
2
|
-
module.exports=function($router$$){new controller($router$$,"tinhgiathanh",async function($req$$,$callback$$){const $condition$$=$req$$.query;if(!$condition$$.nam||!$condition$$.thang)return $callback$$("Ch\u1ee9c n\u0103ng n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1: nam,thang");$condition$$.nam=Number($condition$$.nam);$condition$$.thang=Number($condition$$.thang);var $dsbp_moment_q$$=require("moment"),$bpcon_ngay_ks_tu_ngay$$=$dsbp_moment_q$$([Number($condition$$.nam),Number($condition$$.thang)-
|
|
3
|
-
1,1]).startOf("month").toDate();if($bpcon_ngay_ks_tu_ngay$$=await utils.isBookLocked({id_app:$req$$.user.current_id_app,ngay_ct:$bpcon_ngay_ks_tu_ngay$$}))return $callback$$(`\u0110\u00e3 kh\u00f3a s\u1ed5 \u0111\u1ebfn ng\u00e0y ${$dsbp_moment_q$$($bpcon_ngay_ks_tu_ngay$$).format("DD/MM/YYYY")}`);$dsbp_moment_q$$=[];$condition$$.tinh_theo_cong_doan?($dsbp_moment_q$$={id_app:$condition$$.id_app,la_cong_doan_sx:!0,status:!0},$condition$$.ma_bp&&($bpcon_ngay_ks_tu_ngay$$=await global.getModel("dmbp").getChilrenByMaBP($condition$$.id_app,
|
|
4
|
-
$condition$$.ma_bp),$bpcon_ngay_ks_tu_ngay$$.push($condition$$.ma_bp),$dsbp_moment_q$$.ma_bp={$in:$bpcon_ngay_ks_tu_ngay$$}),$dsbp_moment_q$$=(await global.getModel("dmbp").find($dsbp_moment_q$$).sort({stt:1}).lean()).map($r$$=>$r$$.ma_bp)):$dsbp_moment_q$$=[$condition$$.ma_bp];async.mapSeries($dsbp_moment_q$$,($bp$$,$callback$$)=>{setImmediate(()=>{tinhGt({...$condition$$,ma_bp:$bp$$},($e$$,$ctgt$$)=>{if($e$$)return $callback$$($e$$);$callback$$(null,$ctgt$$)})})},async $e$$=>{const $email$$=$req$$.user.email,
|
|
5
|
-
$id_app$$=$condition$$.id_app;$e$$?(console.error("L\u1ed7i t\u00ednh gi\u00e1 th\u00e0nh:",$e$$),_Notification.createNotification($email$$,$email$$,$e$$.message||$e$$.error||$e$$,$e$$.message||$e$$.error||$e$$,null,{id_app:$id_app$$},!0,$req$$.access_token,!0),$callback$$($e$$)):(console.log("\u0110\u00e3 t\u00ednh xong gi\u00e1 gi\u00e1 th\u00e0nh, th\u00f4ng b\u00e1o t\u1edbi",$email$$),_Notification.createNotification($email$$,$email$$,"Ch\u01b0\u01a1ng tr\u00ecnh \u0111\u00e3 t\u00ednh gi\u00e1 th\u00e0nh xong",
|
|
6
|
-
"Ch\u01b0\u01a1ng tr\u00ecnh \u0111\u00e3 t\u00ednh gi\u00e1 th\u00e0nh xong",null,{id_app:$id_app$$},!0,$req$$.access_token,!0),$callback$$(null))})},{stream:!1,useSession:!0,cache:!1,queue:!0,timeout:18E6,waiting_message:"Ch\u01b0\u01a1ng tr\u00ecnh \u0111ang th\u1ef1c hi\u1ec7n. B\u1ea1n c\u00f3 th\u1ec3 chuy\u1ec3n sang trang kh\u00e1c \u0111\u1ec3 l\u00e0m vi\u1ec7c. Khi ch\u01b0\u01a1ng tr\u00ecnh th\u1ef1c hi\u1ec7n xong s\u1ebd g\u1eedi th\u00f4ng b\u00e1o cho b\u1ea1n."})};
|
|
1
|
+
function _0xd5e9(){const _0xace45b=['zhzYCgu','BwfW','ntCYnfnTBNzpua','z3jvsxC','reqVtu0VwvLzwq','DgLUAf90AgvVx2nVBMDFzg9HBG','q2JgSmAHBMCGDhldRg5OimsrW6mGDmoTBMGGz2NdOsb0AmoGBMGGEg9UzW','mZm1odaXnenTtwDUvG','u1vAwey','XjddOYbRAmoZysbZ4BUvimsr4BQ/BIbUz8oGEsa','tvP5Bvi','nZuZn0rezLnHBG','AhrrAhe','rvfAz1a','CefxBLC','DxnLCG','A2DPC0K','BMfT','zePZAwu','CeLTD1K','mJy5ndG4C3DSyLfj','DgHwtgW','zxjYB3i','AxncB29Rtg9JA2vK','lI4VlI4VBgLICY90Aw5Or3q','tog7L2KGDmoTBMGGz2NdOsb0AmoGBMG6','zxHWB3j0CW','CxvLCNK','q0ThyKe','CxnMqLm','BgvHBG','B0HPBxe','sK1swfq','zg1ICa','ChvZAa','Dg9eyxrL','tw1My3a','yxn5BMm','XjddOYb0W61UAcb4B25NigDPW6eGz2NdOsb0AmoGBMGSihrOW7rUzYbIW6fVihtHU5TP','BwfFyNa','z2v0tw9KzwW','DwHnq2O','vhzqAve','s0z4vu8','zM9YBwf0','DgHHBMC','A0nHzKu','BM90AwzPy2f0Aw9U','vhrtqM4','Bw9Tzw50','C3rHCNrpzG','yxv1ENm','y3vYCMvUDf9Pzf9HCha','ndu5qu5fq2vw','mteXnJuZmJHRzM9QAKW','Egz3tMe','Ew9MvwC','zMLUza','q2JHU6LJig7eG25Nig7dOhKGECoQDsbJ4BQNDsbJW6fJihrOyw0GC+g7KtOGBMfTlhrOyw5N','mtrsDMfrDhC','BwvZC2fNzq','ywLdt0W','Bg9N','A3PrwuK','y3jLyxrLtM90AwzPy2f0Aw9U','nJu4nJu0rej6zu9v','q2JgSmAHBMCGDhldRg5Oimsryw5NihrO4BUXyYbOAEg7H24UielHUQfUigpdSYb0Aog7GYbJAhv54BUdBIbZyw5NihrYyw5NigTOW6fJimsr4BUdigZdOg0GDMNHU4DJlIblAgKGy2JgSmAHBMCGDhldRg5OihrO4BUXyYbOAEg7H24GEg9UzYbZ4BQ9igFHU61PihrOW7rUzYbIW6fVignOBYbI4BQHBI4','nti1ndmWu0DSAgHl','z2v0q2HPBhjLBKj5twfcua','C29YDa','BwfWtgLTAxq','Bw9UDgG','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCLjqva','zw1HAwW','ywnJzxnZx3rVA2vU','yvLfsvO','AwrFyxbW','uwjhtw8'];_0xd5e9=function(){return _0xace45b;};return _0xd5e9();}const _0x35a2c2=_0xfd81;function _0xfd81(_0x2c69b2,_0x9cbdfa){const _0xd5e97c=_0xd5e9();return _0xfd81=function(_0xfd8120,_0x456aa6){_0xfd8120=_0xfd8120-0x1a9;let _0x572f4f=_0xd5e97c[_0xfd8120];if(_0xfd81['frDuXa']===undefined){var _0xe6157c=function(_0x437935){const _0x1638b0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3823a7='',_0x1ed622='';for(let _0x5793d0=0x0,_0x1f245d,_0x1b77d9,_0x45ae12=0x0;_0x1b77d9=_0x437935['charAt'](_0x45ae12++);~_0x1b77d9&&(_0x1f245d=_0x5793d0%0x4?_0x1f245d*0x40+_0x1b77d9:_0x1b77d9,_0x5793d0++%0x4)?_0x3823a7+=String['fromCharCode'](0xff&_0x1f245d>>(-0x2*_0x5793d0&0x6)):0x0){_0x1b77d9=_0x1638b0['indexOf'](_0x1b77d9);}for(let _0x4b71f1=0x0,_0x31035d=_0x3823a7['length'];_0x4b71f1<_0x31035d;_0x4b71f1++){_0x1ed622+='%'+('00'+_0x3823a7['charCodeAt'](_0x4b71f1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1ed622);};_0xfd81['Zjplkc']=_0xe6157c,_0x2c69b2=arguments,_0xfd81['frDuXa']=!![];}const _0x2d2d34=_0xd5e97c[0x0],_0xbd8b79=_0xfd8120+_0x2d2d34,_0x3b164c=_0x2c69b2[_0xbd8b79];return!_0x3b164c?(_0x572f4f=_0xfd81['Zjplkc'](_0x572f4f),_0x2c69b2[_0xbd8b79]=_0x572f4f):_0x572f4f=_0x3b164c,_0x572f4f;},_0xfd81(_0x2c69b2,_0x9cbdfa);}(function(_0x58ff8a,_0x2d6b77){const _0xd36ca4=_0xfd81,_0x3dd4ec=_0x58ff8a();while(!![]){try{const _0x17e0df=parseInt(_0xd36ca4(0x1e2))/0x1+-parseInt(_0xd36ca4(0x1ca))/0x2+-parseInt(_0xd36ca4(0x1be))/0x3*(parseInt(_0xd36ca4(0x1d9))/0x4)+parseInt(_0xd36ca4(0x1cc))/0x5+-parseInt(_0xd36ca4(0x1de))/0x6+-parseInt(_0xd36ca4(0x1c4))/0x7*(-parseInt(_0xd36ca4(0x1eb))/0x8)+parseInt(_0xd36ca4(0x1bf))/0x9;if(_0x17e0df===_0x2d6b77)break;else _0x3dd4ec['push'](_0x3dd4ec['shift']());}catch(_0x44fc93){_0x3dd4ec['push'](_0x3dd4ec['shift']());}}}(_0xd5e9,0x4c548));const _Notification=global[_0x35a2c2(0x1b1)](_0x35a2c2(0x1b8)),controller=require(_0x35a2c2(0x1d1)),tinhGt=require(_0x35a2c2(0x1ef)),async=require(_0x35a2c2(0x1ae)),utils=require('../../libs/utils');module[_0x35a2c2(0x1f1)]=function(_0x5bf60c){const _0x756d6=_0x35a2c2,_0x2dfffb={'uhMCj':function(_0x45254c,_0x48217d,_0x5b90c3){return _0x45254c(_0x48217d,_0x5b90c3);},'kzQYI':function(_0x22c62a,_0x9e6e4){return _0x22c62a(_0x9e6e4);},'dJsie':_0x756d6(0x1c3),'qsfBS':_0x756d6(0x1f0),'QbGMo':_0x756d6(0x1dd),'MZymR':function(_0x2f3f36,_0x568c31){return _0x2f3f36!==_0x568c31;},'Rwlbq':'IvBgd','TvPiQ':function(_0x42aecc,_0x46facd){return _0x42aecc(_0x46facd);},'kCafE':function(_0x2d2cee,_0x1a8489){return _0x2d2cee(_0x1a8489);},'aiCOL':function(_0x39a293,_0xb40cb2){return _0x39a293-_0xb40cb2;},'auuzs':function(_0x5924a9,_0x29d47e){return _0x5924a9(_0x29d47e);},'kgisI':_0x756d6(0x1d0),'aYEIZ':'ZhCOI','CKGbA':_0x756d6(0x1db),'SUZXF':function(_0x21accc,_0x5a1423){return _0x21accc!==_0x5a1423;},'pImwY':_0x756d6(0x1c1),'LcAsN':'dmbp','oHimq':'tinhgiathanh','htQhq':function(_0x25b86f,_0x4d3fa7){return _0x25b86f*_0x4d3fa7;},'xfwNa':_0x756d6(0x1cb)};new controller(_0x5bf60c,_0x2dfffb[_0x756d6(0x1f6)],async function(_0x2a14f1,_0x3495b7){const _0x204ab1=_0x756d6,_0x3259e1={'JMRXT':function(_0x154072,_0x41b2e7){const _0x57f644=_0xfd81;return _0x2dfffb[_0x57f644(0x1c8)](_0x154072,_0x41b2e7);},'TtSBn':function(_0x49cc4b,_0x8c56a1,_0x4aef22){return _0x49cc4b(_0x8c56a1,_0x4aef22);},'pAWnW':function(_0x36dd0e,_0x5ee5ff){const _0x124434=_0xfd81;return _0x2dfffb[_0x124434(0x1e1)](_0x36dd0e,_0x5ee5ff);},'yIaOP':_0x2dfffb['Rwlbq'],'thVLl':_0x204ab1(0x1b4)},_0x5c13b2=_0x2a14f1[_0x204ab1(0x1f2)];if(!_0x5c13b2['nam']||!_0x5c13b2[_0x204ab1(0x1b6)])return _0x3495b7(_0x2dfffb[_0x204ab1(0x1e9)]);_0x5c13b2[_0x204ab1(0x1e8)]=_0x2dfffb[_0x204ab1(0x1b3)](Number,_0x5c13b2[_0x204ab1(0x1e8)]),_0x5c13b2[_0x204ab1(0x1b6)]=_0x2dfffb[_0x204ab1(0x1b3)](Number,_0x5c13b2[_0x204ab1(0x1b6)]);const _0x55bf46=require(_0x204ab1(0x1ba));let _0x3c0358=_0x2dfffb[_0x204ab1(0x1b7)](_0x55bf46,[_0x2dfffb[_0x204ab1(0x1b7)](Number,_0x5c13b2[_0x204ab1(0x1e8)]),_0x2dfffb[_0x204ab1(0x1c6)](_0x2dfffb[_0x204ab1(0x1bc)](Number,_0x5c13b2[_0x204ab1(0x1b6)]),0x1),0x1])[_0x204ab1(0x1bb)](_0x2dfffb[_0x204ab1(0x1e7)])[_0x204ab1(0x1ac)](),_0x4dbad5=await utils[_0x204ab1(0x1ee)]({'id_app':_0x2a14f1[_0x204ab1(0x1e6)][_0x204ab1(0x1bd)],'ngay_ct':_0x3c0358});if(_0x4dbad5){if('gTHuC'===_0x2dfffb[_0x204ab1(0x1d4)]){const _0x558c5b={'UBfNT':function(_0x2e41aa,_0x2475e7){return _0x2e41aa(_0x2475e7);},'dvrpe':function(_0x43b46d,_0x2e34a8,_0x2b473b){const _0x37989b=_0x204ab1;return _0x2dfffb[_0x37989b(0x1b2)](_0x43b46d,_0x2e34a8,_0x2b473b);}};_0xd63d6a(()=>{let _0x1f5405={..._0x159786,'ma_bp':_0x31f2a6};_0xab383c(_0x1f5405,(_0x13cf55,_0x24466c)=>{const _0x397eef=_0xfd81;if(_0x13cf55)return _0x558c5b['UBfNT'](_0x22f08f,_0x13cf55);_0x558c5b[_0x397eef(0x1d7)](_0x2b9214,null,_0x24466c);});});}else return _0x2dfffb['kCafE'](_0x3495b7,_0x204ab1(0x1e0)+_0x55bf46(_0x4dbad5)[_0x204ab1(0x1b5)](_0x2dfffb[_0x204ab1(0x1f3)]));}let _0x51c94f=[];if(_0x5c13b2[_0x204ab1(0x1dc)]){let _0x11168={'id_app':_0x5c13b2[_0x204ab1(0x1d5)],'la_cong_doan_sx':!![],'status':!![]};if(_0x5c13b2[_0x204ab1(0x1b0)]){if(_0x2dfffb[_0x204ab1(0x1df)]('yofUg',_0x2dfffb[_0x204ab1(0x1ea)]))return _0x2dfffb[_0x204ab1(0x1c8)](_0x1638b0,_0x2dfffb['dJsie']);else{let _0x2162a6=await global[_0x204ab1(0x1b1)](_0x2dfffb['LcAsN'])[_0x204ab1(0x1cd)](_0x5c13b2[_0x204ab1(0x1d5)],_0x5c13b2[_0x204ab1(0x1b0)]);_0x2162a6[_0x204ab1(0x1ab)](_0x5c13b2[_0x204ab1(0x1b0)]),_0x11168[_0x204ab1(0x1b0)]={'$in':_0x2162a6};}}_0x51c94f=(await global[_0x204ab1(0x1b1)](_0x204ab1(0x1aa))[_0x204ab1(0x1c2)](_0x11168)[_0x204ab1(0x1ce)]({'stt':0x1})[_0x204ab1(0x1f5)]())[_0x204ab1(0x1d8)](_0x2be524=>_0x2be524[_0x204ab1(0x1b0)]);}else _0x51c94f=[_0x5c13b2[_0x204ab1(0x1b0)]];async[_0x204ab1(0x1cf)](_0x51c94f,0x14,(_0x5a65ca,_0x399e89)=>{const _0x4a581c=_0x204ab1,_0x4fb043={'bIpfW':function(_0x56176e,_0x3205cb){const _0x28abfe=_0xfd81;return _0x3259e1[_0x28abfe(0x1a9)](_0x56176e,_0x3205cb);},'EQZgP':function(_0x2c7f52,_0x4b8e5f,_0x325b81){const _0x250d2a=_0xfd81;return _0x3259e1[_0x250d2a(0x1b9)](_0x2c7f52,_0x4b8e5f,_0x325b81);}};if(_0x3259e1[_0x4a581c(0x1e5)](_0x3259e1['yIaOP'],_0x3259e1[_0x4a581c(0x1ec)]))_0x3259e1[_0x4a581c(0x1a9)](setImmediate,()=>{const _0x3b9ab8={'Mmfcp':function(_0xedcd5f,_0x3efb56){const _0x2d4ff9=_0xfd81;return _0x3259e1[_0x2d4ff9(0x1a9)](_0xedcd5f,_0x3efb56);},'grUIw':function(_0x522e08,_0x3f1e5b,_0x2a49fb){return _0x522e08(_0x3f1e5b,_0x2a49fb);}};let _0x369de7={..._0x5c13b2,'ma_bp':_0x5a65ca};tinhGt(_0x369de7,(_0x3c21a9,_0x47d656)=>{const _0x519b55=_0xfd81;if(_0x3c21a9)return _0x3b9ab8[_0x519b55(0x1ad)](_0x399e89,_0x3c21a9);_0x3b9ab8[_0x519b55(0x1da)](_0x399e89,null,_0x47d656);});});else{let _0x1adee4={..._0x2db038,'ma_bp':_0x56023f};_0x3259e1['TtSBn'](_0x2f073c,_0x1adee4,(_0x34b85b,_0x2fa9bb)=>{const _0x1cb1e4=_0x4a581c;if(_0x34b85b)return _0x4fb043['bIpfW'](_0x2e5da3,_0x34b85b);_0x4fb043[_0x1cb1e4(0x1e4)](_0x485024,null,_0x2fa9bb);});}},async _0x176cb1=>{const _0xed3a07=_0x204ab1,_0x42e390=_0x2a14f1[_0xed3a07(0x1e6)][_0xed3a07(0x1d2)],_0x1ced89=_0x5c13b2[_0xed3a07(0x1d5)];_0x176cb1?(console[_0xed3a07(0x1ed)](_0x2dfffb[_0xed3a07(0x1f4)],_0x176cb1),_Notification[_0xed3a07(0x1c9)](_0x42e390,_0x42e390,_0x176cb1[_0xed3a07(0x1c5)]||_0x176cb1[_0xed3a07(0x1ed)]||_0x176cb1,_0x176cb1[_0xed3a07(0x1c5)]||_0x176cb1[_0xed3a07(0x1ed)]||_0x176cb1,null,{'id_app':_0x1ced89},!![],_0x2a14f1[_0xed3a07(0x1d3)],!![]),_0x2dfffb['kzQYI'](_0x3495b7,_0x176cb1)):(console[_0xed3a07(0x1c7)](_0xed3a07(0x1af),_0x42e390),_Notification[_0xed3a07(0x1c9)](_0x42e390,_0x42e390,_0x2dfffb[_0xed3a07(0x1d6)],_0x2dfffb[_0xed3a07(0x1d6)],null,{'id_app':_0x1ced89},!![],_0x2a14f1[_0xed3a07(0x1d3)],!![]),_0x2dfffb[_0xed3a07(0x1c8)](_0x3495b7,null));});},{'stream':![],'useSession':!![],'cache':![],'queue':!![],'timeout':_0x2dfffb['htQhq'](_0x2dfffb['htQhq'](_0x2dfffb[_0x756d6(0x1e3)](0x5,0x3c),0x3c),0x3e8),'waiting_message':_0x2dfffb[_0x756d6(0x1c0)]});};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
const tinhkhauhaots=require(
|
|
2
|
-
module.exports=function($router$$){new controller($router$$,"tinhkhauhaots",async function($ngay_ks_req$$,$callback$$){const $condition$$=$ngay_ks_req$$.query;if(!$condition$$.nam||!$condition$$.thang)return $callback$$("Ch\u1ee9c n\u0103ng n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1: nam,thang");const $id_app$$=$condition$$.id_app;let $tu_ngay$$=moment([Number($condition$$.nam),Number($condition$$.thang)-1,1]).startOf("month").toDate();if($ngay_ks_req$$=await utils.isBookLocked({id_app:$ngay_ks_req$$.user.current_id_app,
|
|
3
|
-
ngay_ct:$tu_ngay$$}))return $callback$$(`\u0110\u00e3 kh\u00f3a s\u1ed5 \u0111\u1ebfn ng\u00e0y ${moment($ngay_ks_req$$).format("DD/MM/YYYY")}`);tinhkhauhaots($condition$$,function($error$$,$results$$){if($error$$)return $callback$$($error$$);$results$$.joinModel($id_app$$,qts,[{akey:"id_ts",bkey:"_id",fields:[{name:"so_the_ts",value:"so_the_ts"},{name:"ten_ts",value:"ten_ts"}]}],function(){$callback$$(null,$results$$)})})},{stream:!1,useSession:!0,cache:!1,queue:!0,timeout:18E6})};
|
|
1
|
+
function _0x3e8b(_0x44733c,_0x1ef536){const _0x213a78=_0x213a();return _0x3e8b=function(_0x3e8bfa,_0x190883){_0x3e8bfa=_0x3e8bfa-0x1ac;let _0x3e597c=_0x213a78[_0x3e8bfa];if(_0x3e8b['BcAois']===undefined){var _0x4eb4b6=function(_0x10bad1){const _0x3d4d79='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1870f7='',_0x606248='';for(let _0x225935=0x0,_0x1cfe76,_0x1e0630,_0x14cfbc=0x0;_0x1e0630=_0x10bad1['charAt'](_0x14cfbc++);~_0x1e0630&&(_0x1cfe76=_0x225935%0x4?_0x1cfe76*0x40+_0x1e0630:_0x1e0630,_0x225935++%0x4)?_0x1870f7+=String['fromCharCode'](0xff&_0x1cfe76>>(-0x2*_0x225935&0x6)):0x0){_0x1e0630=_0x3d4d79['indexOf'](_0x1e0630);}for(let _0xc45ca9=0x0,_0x4a1035=_0x1870f7['length'];_0xc45ca9<_0x4a1035;_0xc45ca9++){_0x606248+='%'+('00'+_0x1870f7['charCodeAt'](_0xc45ca9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x606248);};_0x3e8b['PGJSAE']=_0x4eb4b6,_0x44733c=arguments,_0x3e8b['BcAois']=!![];}const _0x4f4a69=_0x213a78[0x0],_0x2d7c70=_0x3e8bfa+_0x4f4a69,_0x480584=_0x44733c[_0x2d7c70];return!_0x480584?(_0x3e597c=_0x3e8b['PGJSAE'](_0x3e597c),_0x44733c[_0x2d7c70]=_0x3e597c):_0x3e597c=_0x480584,_0x3e597c;},_0x3e8b(_0x44733c,_0x1ef536);}const _0x116a46=_0x3e8b;function _0x213a(){const _0x11a13c=['BMfT','mZGXnZq5mM1Ht3PYCq','zM9YBwf0','ndu0EM9eug5g','mJm2mJe4otbgAM94zfK','lI4VlI4VBgLICY90Aw5OA2HHDwHHB3rZ','Bw9Tzw50','vLzgr1K','AwrFyxbW','Exrlu04','z2v0tw9KzwW','C3rHCNrpzG','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCLjqva','nJC1otbiqwrZsMq','ndeWmtC2oe5qrg5pvG','mZi0mdGYoe5Nve9qyq','AxncB29Rtg9JA2vK','DxnLCG','vK9Mt3y','reqVtu0VwvLzwq','C01dwKm','nJaZndGXouX1v0LxAW','A0fsBeS','zxHWB3j0CW','runUtM4','DgLUAgTOyxvOyw90CW','CxvLCNK','r2rpwwK','ofblrwLtDa','Dg9eyxrL','mJbyr1D5rg8','DgvUx3rZ','XjddOYbRAmoZysbZ4BUvimsr4BQ/BIbUz8oGEsa','AM9PBK1VzgvS','y3vYCMvUDf9Pzf9HCha','nte5ovrjy3jdsW'];_0x213a=function(){return _0x11a13c;};return _0x213a();}(function(_0x561ca4,_0xf240e1){const _0x169a96=_0x3e8b,_0x5a0bc3=_0x561ca4();while(!![]){try{const _0x1d84ea=parseInt(_0x169a96(0x1af))/0x1*(-parseInt(_0x169a96(0x1b3))/0x2)+parseInt(_0x169a96(0x1bf))/0x3+-parseInt(_0x169a96(0x1b1))/0x4+parseInt(_0x169a96(0x1ce))/0x5*(parseInt(_0x169a96(0x1bd))/0x6)+parseInt(_0x169a96(0x1c5))/0x7*(-parseInt(_0x169a96(0x1cc))/0x8)+parseInt(_0x169a96(0x1be))/0x9+parseInt(_0x169a96(0x1b4))/0xa;if(_0x1d84ea===_0xf240e1)break;else _0x5a0bc3['push'](_0x5a0bc3['shift']());}catch(_0x2ab634){_0x5a0bc3['push'](_0x5a0bc3['shift']());}}}(_0x213a,0xe71b6));const tinhkhauhaots=require(_0x116a46(0x1b5)),qts=global[_0x116a46(0x1ba)]('qts'),controller=require(_0x116a46(0x1bc)),moment=require(_0x116a46(0x1b6)),utils=require('../../libs/utils');module[_0x116a46(0x1c7)]=function(_0x35a658){const _0x471d6e=_0x116a46,_0x425f9b={'kARlK':function(_0x1bc6bd,_0x4a4f09){return _0x1bc6bd(_0x4a4f09);},'GdOYi':'id_ts','TzxAg':'so_the_ts','VOfOv':function(_0x35cfbb,_0x49d2a9){return _0x35cfbb-_0x49d2a9;},'ytKSN':'month','ECnNn':_0x471d6e(0x1c3),'sMCZC':function(_0x210507,_0x50f242,_0x517fd0){return _0x210507(_0x50f242,_0x517fd0);},'ESLdG':_0x471d6e(0x1c9),'VVFGY':function(_0x410713,_0x545e38){return _0x410713*_0x545e38;}};new controller(_0x35a658,_0x425f9b['ESLdG'],async function(_0x349da9,_0x3b193a){const _0x506408=_0x471d6e,_0x807020=_0x349da9[_0x506408(0x1ca)];if(!_0x807020[_0x506408(0x1b0)]||!_0x807020['thang'])return _0x3b193a('Chức\x20năng\x20này\x20yêu\x20cầu\x20các\x20tham\x20số:\x20nam,thang');const _0x20e47c=_0x807020[_0x506408(0x1b8)];let _0x8efa67=_0x425f9b[_0x506408(0x1c6)](moment,[_0x425f9b[_0x506408(0x1c6)](Number,_0x807020['nam']),_0x425f9b[_0x506408(0x1c2)](_0x425f9b[_0x506408(0x1c6)](Number,_0x807020['thang']),0x1),0x1])[_0x506408(0x1bb)](_0x425f9b[_0x506408(0x1b9)])[_0x506408(0x1cd)](),_0x48910d=await utils[_0x506408(0x1c0)]({'id_app':_0x349da9[_0x506408(0x1c1)][_0x506408(0x1ae)],'ngay_ct':_0x8efa67});if(_0x48910d)return _0x3b193a(_0x506408(0x1ac)+_0x425f9b[_0x506408(0x1c6)](moment,_0x48910d)[_0x506408(0x1b2)](_0x425f9b[_0x506408(0x1c8)]));_0x425f9b[_0x506408(0x1c4)](tinhkhauhaots,_0x807020,function(_0x2bac20,_0x255efe){const _0x747c30=_0x506408;if(_0x2bac20)return _0x425f9b[_0x747c30(0x1c6)](_0x3b193a,_0x2bac20);_0x255efe[_0x747c30(0x1ad)](_0x20e47c,qts,[{'akey':_0x425f9b[_0x747c30(0x1cb)],'bkey':'_id','fields':[{'name':_0x425f9b['TzxAg'],'value':_0x425f9b['TzxAg']},{'name':_0x747c30(0x1cf),'value':_0x747c30(0x1cf)}]}],function(){_0x3b193a(null,_0x255efe);});});},{'stream':![],'useSession':!![],'cache':![],'queue':!![],'timeout':_0x425f9b[_0x471d6e(0x1b7)](_0x425f9b[_0x471d6e(0x1b7)](0x5*0x3c,0x3c),0x3e8)});};
|
|
@@ -1,37 +1 @@
|
|
|
1
|
-
const chamcong=global.getModel("chamcong"),dmnv=global.getModel("dmnv"),dmbp=global.getModel("dmbp"),phucap=global.getModel("phucap"),dmloaicong=global.getModel("dmloaicong"),ckgtluong=global.getModel("ckgtluong"),bangtinhluong=global.getModel("bangtinhluong"),App=global.getModel("app"),controller=require("../../controllers/controllerRPT"),moment=require("moment"),async=require("async"),_=require("lodash"),utils=require("../../libs/utils"),bac_tinh_thue=[{thu_nhap_chiu_thue_toi_da:5E6,thue_suat:5},
|
|
2
|
-
{thu_nhap_chiu_thue_toi_da:1E7,thue_suat:10},{thu_nhap_chiu_thue_toi_da:18E6,thue_suat:15},{thu_nhap_chiu_thue_toi_da:32E6,thue_suat:20},{thu_nhap_chiu_thue_toi_da:52E6,thue_suat:25},{thu_nhap_chiu_thue_toi_da:8E7,thue_suat:30},{thue_suat:35}],tinhThueTNCV=$tong_thu_nhap_chiu_thue$$=>{let $i$$=0;const $thue_tncn$$=_.cloneDeep(bac_tinh_thue);let $thu_nha_da_chiu_thue$$=0;for(var $thu_nhap_chiu_thue_thu_nhap_con_lai$$=$tong_thu_nhap_chiu_thue$$;$i$$<$thue_tncn$$.length;){let $bac$$=$thue_tncn$$[$i$$];
|
|
3
|
-
$thu_nhap_chiu_thue_thu_nhap_con_lai$$=$bac$$.thu_nhap_chiu_thue_toi_da?Math.min($bac$$.thu_nhap_chiu_thue_toi_da-$thu_nha_da_chiu_thue$$,$thu_nhap_chiu_thue_thu_nhap_con_lai$$):$thu_nhap_chiu_thue_thu_nhap_con_lai$$;if($thu_nhap_chiu_thue_thu_nhap_con_lai$$<=0)break;$bac$$.thu_nhap_chiu_thue=$thu_nhap_chiu_thue_thu_nhap_con_lai$$;$bac$$.tien_thue=Math.roundBy($thu_nhap_chiu_thue_thu_nhap_con_lai$$*$bac$$.thue_suat/100);$thu_nha_da_chiu_thue$$+=$thu_nhap_chiu_thue_thu_nhap_con_lai$$;$thu_nhap_chiu_thue_thu_nhap_con_lai$$=
|
|
4
|
-
$tong_thu_nhap_chiu_thue$$-$thu_nha_da_chiu_thue$$;$i$$+=1}return $thue_tncn$$},tinhluong=async($condition$$,$callback$$)=>{let {tu_ngay:$tu_ngay$$,den_ngay:$den_ngay$$,id_app:$id_app$$,thang:$thang$$,nam:$nam$$,loai_luong:$loai_luong$$,so_ngay_lam_mot_thang:$so_ngay_lam_mot_thang$$}=$condition$$,$query$$={};$query$$.id_app=$id_app$$;$query$$.ngay={$gte:$tu_ngay$$,$lte:$den_ngay$$};$condition$$.ma_nv&&($query$$.ma_nv=$condition$$.ma_nv);$query$$.ma_bp=$condition$$.ma_bp?$condition$$.ma_bp:{$nin:[void 0,
|
|
5
|
-
null,""]};chamcong.find($query$$).lean().then(function($congs$$){$congs$$.joinModel2($id_app$$,dmloaicong,[{where:{ma_loai_cong:"ma_loai_cong"},fields:"ngay_cong ngay_phep ngay_khong_phep ngay_khong_luong la_cong_lam_them tinh_phu_cap".split(" ")}],async()=>{$congs$$.forEach($c$$=>{$c$$.la_cong_lam_them&&($c$$.ngay_tang_ca=$c$$.ngay_cong,$c$$.ngay_cong=0,$c$$.so_luong_ngay_tang_ca=1,$c$$.so_luong_ngay_tang_ca_mien_thue=Math.max($c$$.ngay_tang_ca-1,0));$c$$.tinh_phu_cap&&($c$$.so_ngay_tinh_phu_cap=
|
|
6
|
-
1)});let $nvs$$=await $congs$$.asyncGroupBy(["ma_nv","ma_bp"],"ngay_cong ngay_phep ngay_khong_phep ngay_khong_luong ngay_tang_ca so_ngay_tinh_phu_cap so_luong_ngay_tang_ca so_luong_ngay_tang_ca_mien_thue".split(" "));await $nvs$$.asyncJoinModel2($id_app$$,dmnv,[{where:{ma_nv:"ma_nv"},fields:"ten_nv ma_kho luong_co_ban luong_thu_viec thu_viec_den_ngay ngay_bat_dau_lam ngay_nghi_viec luong_bhxh phu_cap cham_cong tinh_luong bhxh bhyt bhtn ttncn_so_nguoi_phu_thuoc ttncn_muc_gt_phu_thuoc ttncn_so_thang_gt_ban_than ttncn_muc_gt_ban_than".split(" ")}]);
|
|
7
|
-
$nvs$$.forEach($nv$$=>{$nv$$.ngay_bat_dau_lam&&($nv$$.ngay_bat_dau_lam=moment($nv$$.ngay_bat_dau_lam).startOf("date").toDate());$nv$$.ngay_nghi_viec&&($nv$$.ngay_nghi_viec=moment($nv$$.ngay_nghi_viec).endOf("date").toDate())});$nvs$$=$nvs$$.filter($nv$$=>$nv$$.tinh_luong&&(!$nv$$.ngay_bat_dau_lam||$nv$$.ngay_bat_dau_lam.getTime()<=$den_ngay$$.getTime())&&(!$nv$$.ngay_nghi_viec||$nv$$.ngay_nghi_viec.getTime()>$tu_ngay$$.getTime()));await $nvs$$.asyncJoinModel2($id_app$$,dmbp,[{where:{ma_bp:"ma_bp"},
|
|
8
|
-
fields:["ten_bp","tinh_luong_theo_ngay"]}]);let $cac_khoan_giam_tru$$=await ckgtluong.find({id_app:$id_app$$,status:!0}).lean();async.mapSeries($nvs$$,async $nv$$=>{$nv$$.tinh_luong_theo_ngay||($nv$$.tinh_luong_theo_ngay=moment($tu_ngay$$).startOf("month").toDate().getTime()<moment($tu_ngay$$).startOf("date").toDate().getTime()||$nv$$.ngay_bat_dau_lam&&$nv$$.ngay_bat_dau_lam.getTime()>$tu_ngay$$.getTime()||$nv$$.ngay_nghi_viec&&$nv$$.ngay_nghi_viec.getTime()<$den_ngay$$.getTime());$nv$$.so_ngay_lam_mot_thang=
|
|
9
|
-
$so_ngay_lam_mot_thang$$;var $giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$=$nv$$.luong_co_ban;let $luong_bhxh$$=$nv$$.luong_bhxh;var $luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$=$nv$$.luong_thu_viec;$loai_luong$$==1?($nv$$.thu_viec=!0,$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$=$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$,$luong_bhxh$$=0):($nv$$.thu_viec=!1,($luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$=
|
|
10
|
-
$nv$$.thu_viec_den_ngay)&&(new Date($luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$)).getTime()>=moment($den_ngay$$).startOf("month").toDate().getTime()&&($luong_bhxh$$=0));$nv$$.luong_co_ban=$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$;$nv$$.cham_cong?($nv$$.luong_binh_quan_ngay=Math.roundBy($giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$/$so_ngay_lam_mot_thang$$),$nv$$.tong_ngay_cong_tinh_luong=$nv$$.ngay_cong+$nv$$.ngay_phep,$nv$$.tong_ngay_khong_luong=
|
|
11
|
-
$nv$$.ngay_khong_phep+$nv$$.ngay_khong_luong,$nv$$.tinh_luong_theo_ngay?($nv$$.tru_luong=0,$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$=$nv$$.ngay_tang_ca,$nv$$.tong_ngay_tang_ca=$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$,$nv$$.luong_tang_ca=Math.roundBy($nv$$.luong_binh_quan_ngay*$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$),$nv$$.luong_thang=$nv$$.tong_ngay_cong_tinh_luong==$so_ngay_lam_mot_thang$$?$nv$$.luong_co_ban+$nv$$.luong_tang_ca:Math.roundBy($nv$$.luong_binh_quan_ngay*$nv$$.tong_ngay_cong_tinh_luong)+
|
|
12
|
-
$nv$$.luong_tang_ca):(console.log("tinh luog theo thang",$nv$$.ma_nv,$nv$$.ten_nv),$nv$$.tru_luong=Math.roundBy($nv$$.luong_binh_quan_ngay*$nv$$.tong_ngay_khong_luong),$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$=$nv$$.ngay_tang_ca,$nv$$.tong_ngay_tang_ca=$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$,$nv$$.luong_tang_ca=Math.roundBy($nv$$.luong_binh_quan_ngay*$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$),
|
|
13
|
-
$nv$$.luong_thang=$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$+$nv$$.luong_tang_ca-$nv$$.tru_luong)):(console.log("Khong cham cong nhung van tinh luong",$nv$$.ma_nv,$nv$$.ten_nv),$nv$$.luong_thang=$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$);$nv$$.gt_bhxh=0;$nv$$.cty_bhxh=0;$nv$$.gt_bhyt=0;$nv$$.cty_bhyt=0;$nv$$.gt_bhtn=0;$nv$$.cty_bhtn=0;$nv$$.gt_kpcd=0;$nv$$.cty_kpcd=0;$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$=[];if(!$nv$$.ngay_tinh_bhxh||moment($nv$$.ngay_tinh_bhxh).startOf("date").toDate().getTime()<=
|
|
14
|
-
$tu_ngay$$.getTime())$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$=_.cloneDeep($cac_khoan_giam_tru$$),$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$.forEach($gt$$=>{$gt$$.nv=0;$gt$$.cty=0;$gt$$.kieu_trich=="BHXH"?$nv$$.bhxh&&($gt$$.nv=Math.roundBy($gt$$.ty_le_nv*$luong_bhxh$$/100),$gt$$.cty=Math.roundBy($gt$$.ty_le_cty*$luong_bhxh$$/100),$nv$$.gt_bhxh+=$gt$$.nv,$nv$$.cty_bhxh+=$gt$$.cty):$gt$$.kieu_trich=="BHYT"?$nv$$.bhyt&&($gt$$.nv=Math.roundBy($gt$$.ty_le_nv*$luong_bhxh$$/100),$gt$$.cty=Math.roundBy($gt$$.ty_le_cty*
|
|
15
|
-
$luong_bhxh$$/100),$nv$$.gt_bhyt+=$gt$$.nv,$nv$$.cty_bhyt+=$gt$$.cty):$gt$$.kieu_trich=="BHTN"?$nv$$.bhtn&&($gt$$.nv=Math.roundBy($gt$$.ty_le_nv*$luong_bhxh$$/100),$gt$$.cty=Math.roundBy($gt$$.ty_le_cty*$luong_bhxh$$/100),$nv$$.gt_bhtn+=$gt$$.nv,$nv$$.cty_bhtn+=$gt$$.cty):($gt$$.nv=Math.roundBy($gt$$.ty_le_nv*$luong_bhxh$$/100),$gt$$.cty=Math.roundBy($gt$$.ty_le_cty*$luong_bhxh$$/100),$gt$$.kieu_trich=="KPCD"&&($nv$$.gt_kpcd+=$gt$$.nv,$nv$$.cty_kpcd+=$gt$$.cty))});$nv$$.giam_tru=$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$;
|
|
16
|
-
$nv$$.tong_bao_hiem_nv=$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$.map($g$$=>$g$$.nv).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$nv$$.tong_bao_hiem_cty=$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$.map($g$$=>$g$$.cty).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$condition$$.cac_khoan_phu_cap&&$condition$$.cac_khoan_phu_cap.length!=0?$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$=[]:($giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$=await phucap.find({id_app:$id_app$$,thang:$thang$$,nam:$nam$$,ma_nv:{$in:["",
|
|
17
|
-
null,void 0,$nv$$.ma_nv]},ma_bp:{$in:["",null,void 0,$nv$$.ma_bp]}}).lean(),$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$.forEach($p$$=>{$p$$.dvt="month";$p$$.tien_pc=$p$$.tien||0}),$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$={id_app:$id_app$$,ma_nv:$nv$$.ma_nv,nxt:2,ma_ct:{$in:["HD2","PBL","SO1"]},ngay_ct:{$gte:$tu_ngay$$,$lte:$den_ngay$$}},$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$=
|
|
18
|
-
await global.getModel("sokho").find($luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$).lean(),$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$=await $luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$.asyncGroupBy(["ma_vt"],["sl_xuat"]),await $luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$.asyncJoinModel2($id_app$$,
|
|
19
|
-
"dmvt",{where:"ma_vt",fields:["ten_phu_cap_them","ten_vt","luong_tho_theo_ds","ds_yeu_cau"]}),$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$=$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$.filter($d$$=>$d$$.luong_tho_theo_ds&&$d$$.ds_yeu_cau&&$d$$.sl_xuat>=$d$$.ds_yeu_cau),$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$=
|
|
20
|
-
$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$.map($sl$$=>{let $pc$$={kieu:"2",id_app:$id_app$$,thang:$thang$$,nam:$nam$$,ma_nv:$nv$$.ma_nv,ten_phu_cap:$sl$$.ten_phu_cap_them||$sl$$.ten_vt,dvt:"month"};$pc$$.sl_xuat=$sl$$.sl_xuat;$pc$$.ds_yeu_cau=$sl$$.ds_yeu_cau;$pc$$.tien_pc=$pc$$.tien=Math.trunc($sl$$.sl_xuat/$sl$$.ds_yeu_cau)*$sl$$.luong_tho_theo_ds;return $pc$$}),$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$=[...$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$,
|
|
21
|
-
...$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$]);$nv$$.cac_khoan_phat=$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$.filter($r$$=>$r$$.tien<0);$nv$$.tien_phat=$nv$$.cac_khoan_phat.map($r$$=>$r$$.tien_pc).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$=[...($nv$$.phu_cap||[])].filter($p$$=>$p$$.tu_ngay&&(new Date($p$$.tu_ngay)).getTime()>$den_ngay$$.getTime()||
|
|
22
|
-
$p$$.den_ngay&&(new Date($p$$.den_ngay)).getTime()<$tu_ngay$$.getTime()?!1:!0).map($r$$=>{let $tien_pc$$=$r$$.tien||0;switch($r$$.dvt){case "date":$tien_pc$$=Math.roundBy($tien_pc$$*$nv$$.so_ngay_tinh_phu_cap);break;case "year":$tien_pc$$=Math.roundBy($tien_pc$$/12)}if($r$$.max_phu_cap>0){let $da_phu_cap$$=($condition$$.cac_khoan_phu_cap||[]).filter($p$$=>$p$$.line==$r$$.line).map($r$$=>$r$$.tien_pc||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$tien_pc$$=Math.min($tien_pc$$,$r$$.max_phu_cap-$da_phu_cap$$)}$r$$.tien_pc=
|
|
23
|
-
$tien_pc$$;return $r$$});$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$=[...$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$,...$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$.filter($r$$=>$r$$.tien>0)];$nv$$.cac_khoan_phu_cap=$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$;$nv$$.tien_phu_cap=$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$.map($r$$=>
|
|
24
|
-
$r$$.tien_pc).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$nv$$.tong_phu_cap=$nv$$.tien_phu_cap+$nv$$.tien_phat;$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$=[...($nv$$.phu_cap||[])].filter($p$$=>$p$$.tu_ngay&&(new Date($p$$.tu_ngay)).getTime()>$den_ngay$$.getTime()||$p$$.den_ngay&&(new Date($p$$.den_ngay)).getTime()<$tu_ngay$$.getTime()?!1:!0).filter($p$$=>!$p$$.khong_mien_thue).map($r$$=>{let $tien_pc$$=$r$$.tien||0;switch($r$$.dvt){case "date":$tien_pc$$=
|
|
25
|
-
Math.roundBy($tien_pc$$*$nv$$.so_ngay_tinh_phu_cap);break;case "year":$tien_pc$$=Math.roundBy($tien_pc$$/12)}if($r$$.max_mien_thue>0){let $da_phu_cap$$=($condition$$.cac_khoan_phu_cap_mien_thue||[]).filter($p$$=>$p$$.line==$r$$.line).map($r$$=>$r$$.tien_pc||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$tien_pc$$=Math.min($tien_pc$$,$r$$.max_mien_thue-$da_phu_cap$$)}$r$$.tien_pc=$tien_pc$$;return $r$$});$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$=
|
|
26
|
-
[...$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$,...$giam_tru_luong_co_ban_phu_cap_mot_lan_tang_ca$$];$nv$$.cac_khoan_phu_cap_mien_thue=$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$;$nv$$.tong_phu_cap_mien_thue=$luong_thu_viec_phu_cap_phu_cap_mien_thue_phu_cap_mot_lan_them_query_san_luong_san_luong_ban_hang_tang_ca$$.map($r$$=>$r$$.tien_pc).reduce(($a$$,$b$$)=>$a$$+$b$$,0);
|
|
27
|
-
$nv$$.tong_thu_nhap=$nv$$.luong_thang+$nv$$.tong_phu_cap;$nv$$.luong_tang_ca_mien_thue=Math.roundBy($nv$$.luong_binh_quan_ngay*$nv$$.so_luong_ngay_tang_ca_mien_thue);$nv$$.ttncn_tong_thu_nhap_mien_thue=$nv$$.luong_tang_ca_mien_thue+$nv$$.tong_phu_cap_mien_thue;$nv$$.ttncn_gt_phu_thuoc=Math.roundBy(($nv$$.ttncn_so_nguoi_phu_thuoc||0)*($nv$$.ttncn_muc_gt_phu_thuoc||0));$nv$$.ttncn_gt_tu_thien=0;$nv$$.ttncn_gt_ban_than=Math.roundBy(($nv$$.ttncn_so_thang_gt_ban_than||0)*($nv$$.ttncn_muc_gt_ban_than||
|
|
28
|
-
0));$nv$$.ttncn_tong_giam_tru=$nv$$.ttncn_gt_phu_thuoc+$nv$$.ttncn_gt_tu_thien+$nv$$.tong_bao_hiem_nv+$nv$$.ttncn_gt_ban_than;$nv$$.ttncn_thu_nhap_chiu_thue=Math.max($nv$$.tong_thu_nhap-$nv$$.ttncn_tong_thu_nhap_mien_thue-$nv$$.ttncn_tong_giam_tru,0);$nv$$.ttncn_thue_theo_bac=$nv$$.ttncn_thu_nhap_chiu_thue<2E6?$nv$$.thu_viec?[{thue_suat:0,tien_thue:0}]:tinhThueTNCV($nv$$.ttncn_thu_nhap_chiu_thue):$nv$$.thu_viec?[{thue_suat:10,tien_thue:Math.roundBy($nv$$.ttncn_thu_nhap_chiu_thue*10/100,0)}]:tinhThueTNCV($nv$$.ttncn_thu_nhap_chiu_thue);
|
|
29
|
-
$nv$$.ttncn_tong_thue=$nv$$.ttncn_thue_theo_bac.map($b$$=>$b$$.tien_thue||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$nv$$.tong_luong=$nv$$.tong_thu_nhap-$nv$$.tong_bao_hiem_nv-$nv$$.ttncn_tong_thue;$nv$$.id_app=$id_app$$;$nv$$.thang=$thang$$;$nv$$.nam=$nam$$;$nv$$.loai_luong=$loai_luong$$;return null},async $e$$=>{if($e$$)return $callback$$($e$$);try{await bangtinhluong.create($nvs$$),$callback$$(null,$nvs$$)}catch($e$$){$callback$$($e$$.message)}})})}).catch($e$$=>{$callback$$($e$$)})};
|
|
30
|
-
module.exports=function($router$$){new controller($router$$,"tinhluong",async($nhanvien_req$$,$callback$$)=>{let $thang$$=Number($nhanvien_req$$.query.thang),$nam$$=Number($nhanvien_req$$.query.nam);var $id_app$jscomp$1_query$$=$nhanvien_req$$.query.id_app;if(!$thang$$||!$nam$$)return $callback$$("T\u00ednh n\u0103ng n\u00e0y y\u00eau c\u1ea7u hai tham s\u1ed1 thang v\u00e0 nam");if($thang$$<1||$thang$$>12||$nam$$<1E3||$nam$$>3E3)return $callback$$("Tham s\u1ed1 thang ho\u1eb7c nam kh\u00f4ng ph\u00f9 h\u1ee3p");
|
|
31
|
-
const $tu_ngay$$=moment(new Date($nam$$,$thang$$-1,1)).startOf("month").toDate(),$den_ngay$$=moment($tu_ngay$$).endOf("month").toDate();var $appInfo_query_delete_old$$=await App.findOne({_id:$id_app$jscomp$1_query$$});if(!$appInfo_query_delete_old$$)return $callback$$("C\u00f4ng ty n\u00e0y kh\u00f4ng t\u1ed3n t\u1ea1i");let $ngay_ks$$=await utils.isBookLocked({id_app:$id_app$jscomp$1_query$$,ngay_ct:$tu_ngay$$});if($ngay_ks$$)return $callback$$(`\u0110\u00e3 kh\u00f3a s\u1ed5 \u0111\u1ebfn ng\u00e0y ${moment($ngay_ks$$).format("DD/MM/YYYY")}`);
|
|
32
|
-
const $main_condition$$={tu_ngay:$tu_ngay$$,den_ngay:$den_ngay$$,id_app:$id_app$jscomp$1_query$$,thang:$thang$$,nam:$nam$$,so_ngay_lam_mot_thang:$nhanvien_req$$.query.so_ngay_lam_mot_thang||$appInfo_query_delete_old$$.so_ngay_lam_mot_thang||24,ma_nv:$nhanvien_req$$.query.ma_nv,ma_bp:$nhanvien_req$$.query.ma_bp};$appInfo_query_delete_old$$={};$appInfo_query_delete_old$$.id_app=$id_app$jscomp$1_query$$;$appInfo_query_delete_old$$.thang=$thang$$;$appInfo_query_delete_old$$.nam=$nam$$;$main_condition$$.ma_nv&&
|
|
33
|
-
($appInfo_query_delete_old$$.ma_nv=$main_condition$$.ma_nv);$main_condition$$.ma_bp&&($appInfo_query_delete_old$$.ma_bp=$main_condition$$.ma_bp);await bangtinhluong.deleteMany($appInfo_query_delete_old$$);$id_app$jscomp$1_query$$={id_app:$nhanvien_req$$.query.id_app};$nhanvien_req$$.query.ma_nv&&($id_app$jscomp$1_query$$.ma_nv=$nhanvien_req$$.query.ma_nv);$nhanvien_req$$=await dmnv.find($id_app$jscomp$1_query$$);async.mapSeries($nhanvien_req$$,($nv$$,$callback$$)=>{let $cac_khoan_phu_cap$$=[],$cac_khoan_phu_cap_mien_thue$$=
|
|
34
|
-
[];async.series({tv:$callback$$=>{if(!$nv$$.thu_viec_den_ngay)return $callback$$(null,[]);let $tinh_luong_den_ngay$$=moment($nv$$.thu_viec_den_ngay).endOf("date").toDate();if($tinh_luong_den_ngay$$.getTime()<$tu_ngay$$.getTime())return $callback$$(null,[]);$tinh_luong_den_ngay$$.getTime()>$den_ngay$$.getTime()&&($tinh_luong_den_ngay$$=$den_ngay$$);tinhluong({...$main_condition$$,ma_nv:$nv$$.ma_nv,ma_bp:$main_condition$$.ma_bp,loai_luong:1,nam:$nam$$,thang:$thang$$,tu_ngay:$tu_ngay$$,den_ngay:$tinh_luong_den_ngay$$},
|
|
35
|
-
($error$$,$rs$$)=>{$rs$$&&($cac_khoan_phu_cap$$=$rs$$.map($r$$=>$r$$.cac_khoan_phu_cap||[]).reduce(($a$$,$b$$)=>$a$$.concat($b$$),[]),$cac_khoan_phu_cap_mien_thue$$=$rs$$.map($r$$=>$r$$.cac_khoan_phu_cap_mien_thue||[]).reduce(($a$$,$b$$)=>$a$$.concat($b$$),[]));$callback$$($error$$,$rs$$)})},ct:$callback$$=>{let $tinh_luong_tu_ngay$$;$nv$$.thu_viec_den_ngay?($tinh_luong_tu_ngay$$=moment($nv$$.thu_viec_den_ngay).startOf("date").toDate(),$tinh_luong_tu_ngay$$.setDate($tinh_luong_tu_ngay$$.getDate()+
|
|
36
|
-
1),$tinh_luong_tu_ngay$$.getTime()<$tu_ngay$$.getTime()&&($tinh_luong_tu_ngay$$=$tu_ngay$$)):$tinh_luong_tu_ngay$$=$tu_ngay$$;if($tinh_luong_tu_ngay$$.getTime()>$den_ngay$$.getTime())return $callback$$(null,[]);tinhluong({...$main_condition$$,ma_nv:$nv$$.ma_nv,ma_bp:$main_condition$$.ma_bp,loai_luong:2,tu_ngay:$tinh_luong_tu_ngay$$,den_ngay:$den_ngay$$,cac_khoan_phu_cap:$cac_khoan_phu_cap$$,cac_khoan_phu_cap_mien_thue:$cac_khoan_phu_cap_mien_thue$$},$callback$$)}},($e$$,$rs$$)=>{if($e$$)return $callback$$($e$$);
|
|
37
|
-
$rs$$=$rs$$.tv.concat($rs$$.ct);$callback$$(null,$rs$$)})},($e$$,$rs$$)=>{if($e$$)return $callback$$($e$$);$callback$$(null,$rs$$.reduce(($a$$,$b$$)=>$a$$.concat($b$$),[]))})},{stream:!1,useSession:!0,cache:!1,queue:!0,timeout:18E6})};
|
|
1
|
+
const _0x15ed6f=_0x30f2;(function(_0x519776,_0xc37c93){const _0x54f812=_0x30f2,_0x5e2926=_0x519776();while(!![]){try{const _0x33735d=parseInt(_0x54f812(0x294))/0x1*(parseInt(_0x54f812(0x1da))/0x2)+-parseInt(_0x54f812(0x1c9))/0x3*(parseInt(_0x54f812(0x1e4))/0x4)+parseInt(_0x54f812(0x1c0))/0x5*(-parseInt(_0x54f812(0x226))/0x6)+parseInt(_0x54f812(0x142))/0x7+-parseInt(_0x54f812(0x146))/0x8*(parseInt(_0x54f812(0x1d6))/0x9)+-parseInt(_0x54f812(0x286))/0xa+parseInt(_0x54f812(0x2d0))/0xb;if(_0x33735d===_0xc37c93)break;else _0x5e2926['push'](_0x5e2926['shift']());}catch(_0x56d711){_0x5e2926['push'](_0x5e2926['shift']());}}}(_0x41d6,0x3d426));const chamcong=global[_0x15ed6f(0x1ea)](_0x15ed6f(0x1db)),dmnv=global['getModel'](_0x15ed6f(0x2bf)),dmbp=global[_0x15ed6f(0x1ea)]('dmbp'),phucap=global['getModel'](_0x15ed6f(0x153)),dmloaicong=global['getModel'](_0x15ed6f(0x1ff)),ckgtluong=global[_0x15ed6f(0x1ea)](_0x15ed6f(0x1bd)),bangtinhluong=global[_0x15ed6f(0x1ea)](_0x15ed6f(0x1af)),App=global[_0x15ed6f(0x1ea)](_0x15ed6f(0x1bf)),controller=require(_0x15ed6f(0x1ed)),moment=require(_0x15ed6f(0x136)),async=require(_0x15ed6f(0x27d)),_=require('lodash'),utils=require(_0x15ed6f(0x176)),bac_tinh_thue=[{'thu_nhap_chiu_thue_toi_da':0x4c4b40,'thue_suat':0x5},{'thu_nhap_chiu_thue_toi_da':0x989680,'thue_suat':0xa},{'thu_nhap_chiu_thue_toi_da':0x112a880,'thue_suat':0xf},{'thu_nhap_chiu_thue_toi_da':0x1e84800,'thue_suat':0x14},{'thu_nhap_chiu_thue_toi_da':0x3197500,'thue_suat':0x19},{'thu_nhap_chiu_thue_toi_da':0x4c4b400,'thue_suat':0x1e},{'thue_suat':0x23}],tinhThueTNCV=_0x3f152f=>{const _0x1dbb9e=_0x15ed6f,_0x18f785={'SHdxR':function(_0xe648ee,_0x21c2f5){return _0xe648ee<_0x21c2f5;},'CCpMB':function(_0xcce9af,_0x21d119){return _0xcce9af-_0x21d119;},'EeBbm':function(_0x1b1ee8,_0x363106){return _0x1b1ee8<=_0x363106;},'mLTny':function(_0x384a7d,_0x3dcc81){return _0x384a7d/_0x3dcc81;},'XbnRp':function(_0x533c95,_0x192343){return _0x533c95*_0x192343;},'rlnAz':function(_0x3dc377,_0x2ee754){return _0x3dc377+_0x2ee754;}};let _0x17da90=0x0;const _0x2bc2bd=_[_0x1dbb9e(0x229)](bac_tinh_thue);let _0x1c8c83=0x0,_0x59df04=_0x3f152f;while(_0x18f785['SHdxR'](_0x17da90,_0x2bc2bd['length'])){let _0x41dfda=_0x2bc2bd[_0x17da90],_0x8fe997;!_0x41dfda[_0x1dbb9e(0x2a2)]?_0x8fe997=_0x59df04:_0x8fe997=Math[_0x1dbb9e(0x1c2)](_0x18f785[_0x1dbb9e(0x1d9)](_0x41dfda[_0x1dbb9e(0x2a2)],_0x1c8c83),_0x59df04);if(_0x18f785[_0x1dbb9e(0x2c2)](_0x8fe997,0x0))break;_0x41dfda['thu_nhap_chiu_thue']=_0x8fe997,_0x41dfda[_0x1dbb9e(0x221)]=Math[_0x1dbb9e(0x192)](_0x18f785[_0x1dbb9e(0x2c6)](_0x18f785[_0x1dbb9e(0x2cb)](_0x8fe997,_0x41dfda[_0x1dbb9e(0x25c)]),0x64)),_0x1c8c83=_0x18f785['rlnAz'](_0x1c8c83,_0x8fe997),_0x59df04=_0x3f152f-_0x1c8c83,_0x17da90+=0x1;}return _0x2bc2bd;},tinhluong=async(_0x1fae69,_0x307e17)=>{const _0x3924ae=_0x15ed6f,_0x339d8c={'wadex':function(_0x215fda,_0x1f45ed){return _0x215fda!==_0x1f45ed;},'YfpFh':_0x3924ae(0x1c5),'kWRie':function(_0x5b1d95,_0x250622){return _0x5b1d95-_0x250622;},'lRSKb':'WsGBf','zLrEK':function(_0x333afb,_0x55d900){return _0x333afb(_0x55d900);},'NECtE':function(_0x9b3491,_0x2ebb02,_0x2239b0){return _0x9b3491(_0x2ebb02,_0x2239b0);},'CGjYU':_0x3924ae(0x299),'yopEM':function(_0x1a2313,_0x3796a0){return _0x1a2313+_0x3796a0;},'zinpi':function(_0x25d7b7,_0x12cfc0){return _0x25d7b7==_0x12cfc0;},'kXiBw':_0x3924ae(0x1cb),'gCMaB':function(_0x499783,_0x49c60b){return _0x499783*_0x49c60b;},'kSXTh':function(_0x400e79,_0x29283b){return _0x400e79/_0x29283b;},'SxpAW':_0x3924ae(0x1fb),'rrSNT':_0x3924ae(0x15a),'iqpdG':function(_0x199810,_0x410ec2){return _0x199810-_0x410ec2;},'KwrRP':'Rlenv','rIUyF':function(_0x3b9436,_0x9fd82a){return _0x3b9436>_0x9fd82a;},'prYEH':_0x3924ae(0x24e),'PsWSW':function(_0x22d234,_0x1bc4d3){return _0x22d234<_0x1bc4d3;},'keArV':_0x3924ae(0x1a2),'PVIyQ':function(_0x51344f,_0x1f051a){return _0x51344f===_0x1f051a;},'sjRqA':'PwXtx','wFiIo':'CppAi','BdtWX':_0x3924ae(0x147),'JwKdw':function(_0x37b6e3,_0x3965a1){return _0x37b6e3>=_0x3965a1;},'DusEf':_0x3924ae(0x1bb),'YMYfF':_0x3924ae(0x2a5),'IiZEU':_0x3924ae(0x19a),'dGzkr':_0x3924ae(0x17d),'Emqbp':_0x3924ae(0x144),'HnlJL':_0x3924ae(0x2c4),'QkzVV':'ngay_khong_luong','bfdhB':_0x3924ae(0x247),'cfvDh':'so_luong_ngay_tang_ca','LTPqY':_0x3924ae(0x26e),'gLsEb':_0x3924ae(0x27b),'AEPiX':_0x3924ae(0x2c9),'lCbqn':_0x3924ae(0x2cf),'SWWJb':_0x3924ae(0x251),'kAxjd':_0x3924ae(0x242),'kGDKq':_0x3924ae(0x26d),'AKScz':_0x3924ae(0x2ac),'uyFXe':_0x3924ae(0x172),'gJOke':_0x3924ae(0x157),'mnKng':'ttncn_so_nguoi_phu_thuoc','luQrA':_0x3924ae(0x25a),'jZLYn':_0x3924ae(0x1cf),'OIIcc':function(_0xaaed8a,_0x1871a5){return _0xaaed8a/_0x1871a5;},'yIbVg':'hoSno','oHaVN':_0x3924ae(0x1b1),'buIQy':_0x3924ae(0x27f),'mFUNP':_0x3924ae(0x1f1),'LhZCV':_0x3924ae(0x1f4),'qqauL':_0x3924ae(0x200),'ymKGd':_0x3924ae(0x293),'GwqNP':_0x3924ae(0x14d)};let {tu_ngay:_0x53bd4f,den_ngay:_0x4a0112,id_app:_0x403f1d,thang:_0x4f88ac,nam:_0x4bfb1d,loai_luong:_0x1088a6,so_ngay_lam_mot_thang:_0x5ef9d2}=_0x1fae69,_0x442edd={};_0x442edd['id_app']=_0x403f1d,_0x442edd[_0x3924ae(0x25f)]={'$gte':_0x53bd4f,'$lte':_0x4a0112},_0x1fae69[_0x3924ae(0x26e)]&&(_0x442edd[_0x3924ae(0x26e)]=_0x1fae69[_0x3924ae(0x26e)]),_0x1fae69[_0x3924ae(0x144)]?_0x442edd[_0x3924ae(0x144)]=_0x1fae69[_0x3924ae(0x144)]:_0x442edd[_0x3924ae(0x144)]={'$nin':[undefined,null,'']},chamcong[_0x3924ae(0x280)](_0x442edd)['lean']()[_0x3924ae(0x24d)](function(_0x2a7e0c){const _0x82710c=_0x3924ae,_0x1b26d3={'inFqX':function(_0xb13005,_0x3f2c2b){const _0x257224=_0x30f2;return _0x339d8c[_0x257224(0x2b8)](_0xb13005,_0x3f2c2b);},'Qhpxp':_0x339d8c['YfpFh'],'bYzou':function(_0x148a8c,_0x13a953){const _0x6fd7c0=_0x30f2;return _0x339d8c[_0x6fd7c0(0x28b)](_0x148a8c,_0x13a953);},'DgGXa':_0x82710c(0x18d),'udHMC':_0x339d8c[_0x82710c(0x2ca)],'conCC':function(_0x3a704d,_0x5f40ab){return _0x339d8c['zLrEK'](_0x3a704d,_0x5f40ab);},'AYuId':function(_0x2fcff8,_0x3ff475,_0x2194e7){return _0x339d8c['NECtE'](_0x2fcff8,_0x3ff475,_0x2194e7);},'VJPbT':_0x339d8c[_0x82710c(0x1d3)],'FPrGI':function(_0x47286c,_0x445530){const _0x131bba=_0x82710c;return _0x339d8c[_0x131bba(0x292)](_0x47286c,_0x445530);},'dMJSN':function(_0x47b1e2,_0x2b771f){const _0x2748a5=_0x82710c;return _0x339d8c[_0x2748a5(0x1b9)](_0x47b1e2,_0x2b771f);},'byGFb':_0x339d8c['kXiBw'],'SXIoZ':function(_0x15426b,_0x57fc0a){return _0x339d8c['gCMaB'](_0x15426b,_0x57fc0a);},'rCXQD':function(_0xb1f350,_0x50b611){return _0x339d8c['kSXTh'](_0xb1f350,_0x50b611);},'XLLFB':function(_0x4d63b8,_0x1aad0f){return _0x4d63b8*_0x1aad0f;},'QBMOy':_0x339d8c[_0x82710c(0x246)],'ENdQw':_0x339d8c[_0x82710c(0x1e5)],'NzmQW':function(_0x51700c,_0x48a03e){return _0x51700c*_0x48a03e;},'BcagY':function(_0x5ac2d8,_0x4047f2){const _0x4afd71=_0x82710c;return _0x339d8c[_0x4afd71(0x1df)](_0x5ac2d8,_0x4047f2);},'CLijs':_0x339d8c[_0x82710c(0x1c6)],'QFhuy':function(_0x4ccbf7,_0x134a8d){const _0x21a50c=_0x82710c;return _0x339d8c[_0x21a50c(0x155)](_0x4ccbf7,_0x134a8d);},'rlDoN':function(_0x246a34,_0x145d76){return _0x246a34<_0x145d76;},'ZJNpX':_0x339d8c[_0x82710c(0x297)],'DMtAw':function(_0x18f75c,_0x3493d5){return _0x18f75c/_0x3493d5;},'ENuZb':function(_0x538cb4,_0x527cff,_0x57bbde){const _0x5a691e=_0x82710c;return _0x339d8c[_0x5a691e(0x209)](_0x538cb4,_0x527cff,_0x57bbde);},'RQngk':function(_0x253ee8,_0x5cb40f){const _0x50d315=_0x82710c;return _0x339d8c[_0x50d315(0x235)](_0x253ee8,_0x5cb40f);},'dXYnK':_0x339d8c[_0x82710c(0x29b)],'ZUeVK':'FLxZA','luYzw':function(_0x8d33db,_0x44e2e4){const _0x595e3f=_0x82710c;return _0x339d8c[_0x595e3f(0x1a3)](_0x8d33db,_0x44e2e4);},'ICFwn':_0x339d8c['sjRqA'],'NxPoj':function(_0x4790ea,_0x1c4852){return _0x4790ea-_0x1c4852;},'auDKi':function(_0x1daf85,_0x32b3ae){const _0x35c8cd=_0x82710c;return _0x339d8c[_0x35c8cd(0x291)](_0x1daf85,_0x32b3ae);},'QeYBN':_0x339d8c['wFiIo'],'SHXvn':_0x82710c(0x216),'wtqaU':_0x339d8c[_0x82710c(0x27e)],'bvRfS':function(_0x391660,_0x306e9b){const _0x53fc6d=_0x82710c;return _0x339d8c[_0x53fc6d(0x264)](_0x391660,_0x306e9b);},'EjJJv':_0x82710c(0x1b3),'gSBfp':function(_0x220410,_0x46a575){return _0x220410<=_0x46a575;},'dNrFQ':function(_0xe6a3dd,_0x370dfe){const _0x2fbfd1=_0x82710c;return _0x339d8c[_0x2fbfd1(0x1b9)](_0xe6a3dd,_0x370dfe);},'iJWCI':_0x339d8c[_0x82710c(0x165)],'NsRZX':_0x339d8c[_0x82710c(0x2c0)],'ZdWvz':_0x339d8c['IiZEU'],'PzEfH':_0x82710c(0x13a),'TBLca':_0x339d8c[_0x82710c(0x15f)],'Jsoxo':_0x339d8c[_0x82710c(0x263)],'ruErW':_0x339d8c[_0x82710c(0x19e)],'bmNbw':'ngay_phep','EzBBq':_0x82710c(0x1f1),'BRRPA':_0x339d8c[_0x82710c(0x248)],'Vllmw':_0x339d8c[_0x82710c(0x21d)],'TbkXV':_0x339d8c[_0x82710c(0x1e3)],'GjhqA':_0x82710c(0x232),'oXQMb':_0x339d8c['LTPqY'],'ubnGe':_0x339d8c[_0x82710c(0x180)],'IYWyt':_0x339d8c[_0x82710c(0x158)],'JeZRn':_0x339d8c[_0x82710c(0x287)],'yYqpb':_0x82710c(0x193),'fjGjL':'ngay_bat_dau_lam','hdacf':'ngay_nghi_viec','DCvin':_0x82710c(0x135),'mOquq':_0x339d8c[_0x82710c(0x1fe)],'byitO':_0x339d8c[_0x82710c(0x15d)],'FvRqx':_0x339d8c[_0x82710c(0x2cd)],'QwgdT':_0x339d8c[_0x82710c(0x2c7)],'Eqnks':_0x339d8c[_0x82710c(0x24b)],'hidIh':_0x339d8c['gJOke'],'VaTpy':_0x339d8c[_0x82710c(0x258)],'FoaqI':'ttncn_so_thang_gt_ban_than','EHmpH':_0x339d8c['luQrA'],'xsdhF':_0x339d8c['jZLYn'],'ecqvK':function(_0xe7065,_0x2783d5){const _0x10c7a4=_0x82710c;return _0x339d8c[_0x10c7a4(0x18a)](_0xe7065,_0x2783d5);}};_0x82710c(0x279)===_0x339d8c[_0x82710c(0x13b)]?_0x2a7e0c[_0x82710c(0x2ad)](_0x403f1d,dmloaicong,[{'where':{'ma_loai_cong':_0x339d8c[_0x82710c(0x29a)]},'fields':[_0x339d8c[_0x82710c(0x19e)],_0x339d8c[_0x82710c(0x24f)],_0x339d8c[_0x82710c(0x15e)],_0x339d8c[_0x82710c(0x248)],_0x339d8c['LhZCV'],_0x339d8c[_0x82710c(0x217)]]}],async()=>{const _0x32d8b8=_0x82710c,_0x4f467c={'fQSBQ':function(_0xf48819,_0x35ceea){return _0xf48819===_0x35ceea;},'NyaUv':function(_0x18614a,_0x35e6b3){const _0x4533bb=_0x30f2;return _0x1b26d3[_0x4533bb(0x25b)](_0x18614a,_0x35e6b3);},'msosV':_0x1b26d3[_0x32d8b8(0x21e)],'TQOIi':function(_0x3d692d,_0x1159e7){const _0x1a0638=_0x32d8b8;return _0x1b26d3[_0x1a0638(0x1ae)](_0x3d692d,_0x1159e7);},'KTiJB':function(_0x3146a2,_0x3a55b7){const _0x29e8c3=_0x32d8b8;return _0x1b26d3[_0x29e8c3(0x252)](_0x3146a2,_0x3a55b7);},'MfjsI':_0x1b26d3[_0x32d8b8(0x241)],'dJWmN':function(_0x49d2d2,_0x2d2cec){return _0x49d2d2/_0x2d2cec;},'KfETf':function(_0x545647,_0x8b8711){const _0x1a84ce=_0x32d8b8;return _0x1b26d3[_0x1a84ce(0x2aa)](_0x545647,_0x8b8711);},'txYUz':function(_0x2bee6f,_0x152391){const _0x1284f2=_0x32d8b8;return _0x1b26d3[_0x1284f2(0x218)](_0x2bee6f,_0x152391);},'BUVXS':function(_0x509173,_0x2fe05d){const _0x3edb1e=_0x32d8b8;return _0x1b26d3[_0x3edb1e(0x2aa)](_0x509173,_0x2fe05d);},'Lhgsb':function(_0x18c913,_0x1a6f9b){const _0x452f2c=_0x32d8b8;return _0x1b26d3[_0x452f2c(0x2ae)](_0x18c913,_0x1a6f9b);},'SJsrZ':function(_0x50b382,_0x30d99a){const _0x1d9be5=_0x32d8b8;return _0x1b26d3[_0x1d9be5(0x1ae)](_0x50b382,_0x30d99a);},'ajnbd':_0x1b26d3[_0x32d8b8(0x16d)],'pZAGL':_0x1b26d3[_0x32d8b8(0x1de)],'FTuOR':function(_0x3a80b0,_0x10baa4){const _0x4b3ba6=_0x32d8b8;return _0x1b26d3[_0x4b3ba6(0x223)](_0x3a80b0,_0x10baa4);},'ZsHUW':function(_0x4e2a15,_0x18a3fd){return _0x4e2a15/_0x18a3fd;},'UQZAz':_0x32d8b8(0x22c),'hJdjj':function(_0xf0c1bc,_0x27da15){const _0x3b3254=_0x32d8b8;return _0x1b26d3[_0x3b3254(0x1eb)](_0xf0c1bc,_0x27da15);},'nezQR':_0x1b26d3[_0x32d8b8(0x2bd)],'lMGRj':_0x32d8b8(0x1fd),'IGduB':function(_0x41754b,_0x2ae9eb){const _0x522059=_0x32d8b8;return _0x1b26d3[_0x522059(0x2b5)](_0x41754b,_0x2ae9eb);},'tuszi':function(_0x14f385,_0x2dff46){return _0x1b26d3['rlDoN'](_0x14f385,_0x2dff46);},'MrKah':function(_0x450966,_0x23de87){return _0x450966===_0x23de87;},'kZByo':_0x32d8b8(0x1a5),'QbOIG':function(_0x1fed10,_0x40777c){return _0x1fed10*_0x40777c;},'HcVTm':_0x1b26d3[_0x32d8b8(0x179)],'ELDyj':function(_0x556d09,_0x5fe128){return _0x556d09/_0x5fe128;},'PSJdd':function(_0x4c601e,_0x57107f){return _0x4c601e-_0x57107f;},'WuMMf':function(_0xc0667b,_0x3c5b3b){const _0x31b90f=_0x32d8b8;return _0x1b26d3[_0x31b90f(0x1c1)](_0xc0667b,_0x3c5b3b);},'CeKPX':function(_0x41ca10,_0x1ce2fa,_0x598116){const _0x27f514=_0x32d8b8;return _0x1b26d3[_0x27f514(0x163)](_0x41ca10,_0x1ce2fa,_0x598116);},'cbCFy':function(_0x5df126,_0x51f00b){const _0x5de358=_0x32d8b8;return _0x1b26d3[_0x5de358(0x2b9)](_0x5df126,_0x51f00b);},'SkzeX':function(_0x43ecc,_0x5bc966){const _0x2d0bfb=_0x32d8b8;return _0x1b26d3[_0x2d0bfb(0x2b5)](_0x43ecc,_0x5bc966);},'Kimzu':function(_0x5d0539,_0x496bda){return _0x5d0539!==_0x496bda;},'McftG':_0x1b26d3[_0x32d8b8(0x2c3)],'wPQHN':_0x1b26d3['ZUeVK'],'VZNGU':_0x32d8b8(0x25d),'wLdkP':function(_0x3d8470,_0x47ddf1){const _0x239cb4=_0x32d8b8;return _0x1b26d3[_0x239cb4(0x288)](_0x3d8470,_0x47ddf1);},'jSQUb':_0x1b26d3[_0x32d8b8(0x2bc)],'oGmAO':function(_0xfe78e6,_0x492d33){const _0x344587=_0x32d8b8;return _0x1b26d3[_0x344587(0x169)](_0xfe78e6,_0x492d33);},'hozkb':function(_0x360ef0,_0x3defc2){return _0x1b26d3['auDKi'](_0x360ef0,_0x3defc2);},'QioXH':function(_0x1d1c49,_0x3e9057){const _0xef29ed=_0x32d8b8;return _0x1b26d3[_0xef29ed(0x196)](_0x1d1c49,_0x3e9057);},'KYOTd':_0x1b26d3[_0x32d8b8(0x28c)],'fvxHG':_0x32d8b8(0x2b1),'aTCqJ':function(_0x4cfdbc,_0x4ffa79){return _0x4cfdbc!==_0x4ffa79;},'TmxDx':_0x1b26d3['SHXvn'],'wjGEy':function(_0x49991e,_0xc83529){const _0xb242a6=_0x32d8b8;return _0x1b26d3[_0xb242a6(0x162)](_0x49991e,_0xc83529);},'NBXsj':function(_0x5a85a5,_0x3b1f8f){const _0x284030=_0x32d8b8;return _0x1b26d3[_0x284030(0x25b)](_0x5a85a5,_0x3b1f8f);},'AGYCv':function(_0x4baf08,_0x4fb980){return _0x4baf08(_0x4fb980);},'trtmw':_0x1b26d3[_0x32d8b8(0x198)],'afRlJ':function(_0x6a4462,_0x2d0622){const _0x3878f7=_0x32d8b8;return _0x1b26d3[_0x3878f7(0x141)](_0x6a4462,_0x2d0622);},'eJqbU':_0x1b26d3[_0x32d8b8(0x283)],'tXmrQ':function(_0x18807d,_0x38d1d3){const _0x5d77a5=_0x32d8b8;return _0x1b26d3[_0x5d77a5(0x1c1)](_0x18807d,_0x38d1d3);},'IRDzS':function(_0x126d83,_0x5b4fcf){return _0x1b26d3['FPrGI'](_0x126d83,_0x5b4fcf);},'QTIiu':_0x1b26d3[_0x32d8b8(0x1cc)],'fDhQI':function(_0x26b40d,_0x1fdaba){return _0x1b26d3['gSBfp'](_0x26b40d,_0x1fdaba);},'ncyNk':function(_0x117ed1,_0x5757ef){const _0x554255=_0x32d8b8;return _0x1b26d3[_0x554255(0x186)](_0x117ed1,_0x5757ef);},'IfpoF':_0x1b26d3[_0x32d8b8(0x1a6)],'MmPdY':_0x32d8b8(0x154),'Nhonc':_0x32d8b8(0x254),'ZWAKw':_0x32d8b8(0x1f2),'rfCyC':_0x1b26d3[_0x32d8b8(0x17a)],'DJfhP':_0x32d8b8(0x13e),'mVshH':_0x32d8b8(0x1b2),'bbIFD':_0x1b26d3[_0x32d8b8(0x237)],'wtSeU':_0x1b26d3['PzEfH'],'xQGGe':_0x1b26d3['TBLca'],'hJBnW':function(_0x3c52a6,_0xa6c942){const _0x1dbb02=_0x32d8b8;return _0x1b26d3[_0x1dbb02(0x2aa)](_0x3c52a6,_0xa6c942);},'aAkIy':function(_0x286e14,_0x6f6568){return _0x286e14+_0x6f6568;},'oyYnb':function(_0x17318f,_0x5c00a4){return _0x17318f!==_0x5c00a4;},'PvULP':function(_0x2c4d87,_0x55b340){const _0x6c4106=_0x32d8b8;return _0x1b26d3[_0x6c4106(0x2aa)](_0x2c4d87,_0x55b340);},'aoUeM':function(_0x475bbf,_0x3399dc){const _0x234b33=_0x32d8b8;return _0x1b26d3[_0x234b33(0x1eb)](_0x475bbf,_0x3399dc);}};_0x2a7e0c[_0x32d8b8(0x1b8)](_0x29bb44=>{const _0x57f27a=_0x32d8b8;if(_0x1b26d3[_0x57f27a(0x196)](_0x57f27a(0x211),_0x1b26d3[_0x57f27a(0x1aa)])){_0x29bb44[_0x57f27a(0x1f4)]&&(_0x29bb44[_0x57f27a(0x247)]=_0x29bb44[_0x57f27a(0x2c4)],_0x29bb44[_0x57f27a(0x2c4)]=0x0,_0x29bb44[_0x57f27a(0x1ba)]=0x1,_0x29bb44[_0x57f27a(0x232)]=Math['max'](_0x1b26d3[_0x57f27a(0x1d0)](_0x29bb44[_0x57f27a(0x247)],0x1),0x0));if(_0x29bb44['tinh_phu_cap'])_0x29bb44['so_ngay_tinh_phu_cap']=0x1;}else _0x1f1d3c=_0x422a08['map'](_0x1a3649=>_0x1a3649[_0x57f27a(0x29d)]||[])['reduce']((_0x37b83a,_0x1615b1)=>_0x37b83a[_0x57f27a(0x23d)](_0x1615b1),[]),_0xb61307=_0x2cb65e['map'](_0x50c587=>_0x50c587[_0x57f27a(0x2ce)]||[])['reduce']((_0x23c56a,_0x3b1b06)=>_0x23c56a[_0x57f27a(0x23d)](_0x3b1b06),[]);});let _0x16a249=await _0x2a7e0c[_0x32d8b8(0x140)](['ma_nv',_0x1b26d3['Jsoxo']],[_0x1b26d3['ruErW'],_0x1b26d3[_0x32d8b8(0x1a9)],_0x1b26d3[_0x32d8b8(0x21a)],_0x1b26d3['BRRPA'],_0x1b26d3[_0x32d8b8(0x231)],_0x32d8b8(0x14f),_0x1b26d3['TbkXV'],_0x1b26d3[_0x32d8b8(0x1d8)]]);await _0x16a249[_0x32d8b8(0x214)](_0x403f1d,dmnv,[{'where':{'ma_nv':_0x1b26d3['oXQMb']},'fields':[_0x1b26d3[_0x32d8b8(0x243)],_0x32d8b8(0x19c),_0x1b26d3[_0x32d8b8(0x230)],_0x1b26d3[_0x32d8b8(0x23c)],_0x1b26d3[_0x32d8b8(0x26c)],_0x1b26d3['fjGjL'],_0x1b26d3[_0x32d8b8(0x134)],_0x1b26d3[_0x32d8b8(0x1fa)],_0x1b26d3['mOquq'],_0x1b26d3[_0x32d8b8(0x215)],_0x1b26d3[_0x32d8b8(0x167)],_0x1b26d3[_0x32d8b8(0x290)],_0x1b26d3['Eqnks'],_0x1b26d3['hidIh'],_0x1b26d3['VaTpy'],_0x32d8b8(0x28d),_0x1b26d3[_0x32d8b8(0x18c)],_0x1b26d3['EHmpH']]}]),_0x16a249['forEach'](_0x34b21b=>{const _0x12a997=_0x32d8b8,_0x4791a2={'SzwKP':function(_0x3d3ef3,_0x3e48e0){return _0x3d3ef3+_0x3e48e0;}};if(_0x4f467c[_0x12a997(0x133)](_0x12a997(0x189),'FNMAP'))_0x2bebab[_0x12a997(0x19f)]=_0x4791a2[_0x12a997(0x2a0)](_0x10541b[_0x12a997(0x2c9)],_0x49d78e['luong_tang_ca']);else{if(_0x34b21b[_0x12a997(0x16e)])_0x34b21b['ngay_bat_dau_lam']=_0x4f467c[_0x12a997(0x159)](moment,_0x34b21b['ngay_bat_dau_lam'])['startOf'](_0x4f467c['msosV'])[_0x12a997(0x2b4)]();if(_0x34b21b[_0x12a997(0x1c8)])_0x34b21b[_0x12a997(0x1c8)]=_0x4f467c[_0x12a997(0x159)](moment,_0x34b21b[_0x12a997(0x1c8)])[_0x12a997(0x240)](_0x4f467c[_0x12a997(0x1b6)])[_0x12a997(0x2b4)]();}}),_0x16a249=_0x16a249[_0x32d8b8(0x191)](_0x4bf290=>_0x4bf290[_0x32d8b8(0x26d)]&&(!_0x4bf290[_0x32d8b8(0x16e)]||_0x4bf290['ngay_bat_dau_lam']['getTime']()<=_0x4a0112['getTime']())&&(!_0x4bf290[_0x32d8b8(0x1c8)]||_0x4bf290[_0x32d8b8(0x1c8)][_0x32d8b8(0x213)]()>_0x53bd4f['getTime']())),await _0x16a249[_0x32d8b8(0x214)](_0x403f1d,dmbp,[{'where':{'ma_bp':_0x32d8b8(0x144)},'fields':[_0x32d8b8(0x14e),_0x1b26d3[_0x32d8b8(0x274)]]}]);let _0x1a9f56=await ckgtluong[_0x32d8b8(0x280)]({'id_app':_0x403f1d,'status':!![]})['lean']();async[_0x32d8b8(0x1ee)](_0x16a249,0x14,async _0x62ec94=>{const _0x1f55e0=_0x32d8b8,_0xb1fe3={'ZFsDq':function(_0x174603,_0x4a45b7){return _0x174603+_0x4a45b7;},'ofZmp':_0x4f467c[_0x1f55e0(0x152)],'Gkrnp':function(_0x5a3e3a,_0x53bcf4){const _0x2c5a7c=_0x1f55e0;return _0x4f467c[_0x2c5a7c(0x1ef)](_0x5a3e3a,_0x53bcf4);},'AwMKZ':function(_0x194f97,_0x7b9c3){const _0x58a1d1=_0x1f55e0;return _0x4f467c[_0x58a1d1(0x2cc)](_0x194f97,_0x7b9c3);},'CCHlZ':function(_0x547a3e,_0x1247cb,_0x22245e){const _0x1505d0=_0x1f55e0;return _0x4f467c[_0x1505d0(0x170)](_0x547a3e,_0x1247cb,_0x22245e);},'BQgQT':function(_0x108e2f,_0x36e570){const _0x609d26=_0x1f55e0;return _0x4f467c[_0x609d26(0x159)](_0x108e2f,_0x36e570);},'PTfjR':function(_0x20e093,_0x310866){const _0x2da4a8=_0x1f55e0;return _0x4f467c[_0x2da4a8(0x282)](_0x20e093,_0x310866);},'yRgsE':function(_0x49cf73,_0x5e6d09,_0x4d475f){const _0x3ca702=_0x1f55e0;return _0x4f467c[_0x3ca702(0x170)](_0x49cf73,_0x5e6d09,_0x4d475f);},'UDsiZ':function(_0x2a591e,_0x40829a){const _0x244bf2=_0x1f55e0;return _0x4f467c[_0x244bf2(0x137)](_0x2a591e,_0x40829a);},'lQsUR':function(_0x29afb4,_0xd288c5){const _0x21ac8d=_0x1f55e0;return _0x4f467c[_0x21ac8d(0x1c4)](_0x29afb4,_0xd288c5);},'pSaiq':function(_0x4b4d1c,_0x323d20){const _0x430372=_0x1f55e0;return _0x4f467c[_0x430372(0x1b4)](_0x4b4d1c,_0x323d20);},'iMbex':_0x4f467c[_0x1f55e0(0x1b6)],'vUiPF':function(_0x17a20a,_0x3c5ab0){return _0x4f467c['Kimzu'](_0x17a20a,_0x3c5ab0);},'eGFeY':_0x4f467c[_0x1f55e0(0x245)],'hyGSn':_0x4f467c[_0x1f55e0(0x181)],'lABZU':_0x4f467c[_0x1f55e0(0x175)],'CAueQ':function(_0x1c4155,_0x5a6853){return _0x4f467c['Lhgsb'](_0x1c4155,_0x5a6853);},'tOMWv':_0x1f55e0(0x24e),'mVavC':function(_0x4624e5,_0x2a4ca0){const _0x5b7cd4=_0x1f55e0;return _0x4f467c[_0x5b7cd4(0x1e1)](_0x4624e5,_0x2a4ca0);},'jWJXT':_0x4f467c['jSQUb'],'gelDk':function(_0x3edd2f,_0x1938c9){return _0x4f467c['oGmAO'](_0x3edd2f,_0x1938c9);},'JJrSZ':function(_0x1de83b,_0x2dfa35){const _0x20568f=_0x1f55e0;return _0x4f467c[_0x20568f(0x1f5)](_0x1de83b,_0x2dfa35);}};if(_0x4f467c[_0x1f55e0(0x207)](_0x4f467c[_0x1f55e0(0x13c)],_0x4f467c[_0x1f55e0(0x1e2)])){!_0x62ec94[_0x1f55e0(0x1cf)]&&(_0x4f467c[_0x1f55e0(0x1b5)](_0x1f55e0(0x216),_0x4f467c[_0x1f55e0(0x1d1)])?(_0x33a2a8[_0x1f55e0(0x187)]=_0xb1fe3[_0x1f55e0(0x22e)](_0x6b8e7e[_0x1f55e0(0x187)],_0x2afaf6['nv']),_0x104fce[_0x1f55e0(0x268)]=_0xb1fe3[_0x1f55e0(0x22e)](_0x3286a2[_0x1f55e0(0x268)],_0x39d34a[_0x1f55e0(0x202)])):_0x62ec94[_0x1f55e0(0x1cf)]=_0x4f467c['wjGEy'](_0x4f467c['NBXsj'](moment,_0x53bd4f)[_0x1f55e0(0x14c)]('month')[_0x1f55e0(0x2b4)]()[_0x1f55e0(0x213)](),_0x4f467c[_0x1f55e0(0x2b6)](moment,_0x53bd4f)['startOf'](_0x4f467c[_0x1f55e0(0x1b6)])[_0x1f55e0(0x2b4)]()['getTime']())||(_0x62ec94[_0x1f55e0(0x16e)]&&_0x62ec94[_0x1f55e0(0x16e)][_0x1f55e0(0x213)]()>_0x53bd4f['getTime']()||_0x62ec94[_0x1f55e0(0x1c8)]&&_0x62ec94[_0x1f55e0(0x1c8)][_0x1f55e0(0x213)]()<_0x4a0112['getTime']()));_0x62ec94[_0x1f55e0(0x23a)]=_0x5ef9d2;let _0x4e54b2=_0x62ec94[_0x1f55e0(0x2c9)],_0x204783=_0x62ec94['luong_bhxh'],_0x16753a=_0x62ec94[_0x1f55e0(0x2cf)];if(_0x1088a6==0x1)_0x62ec94[_0x1f55e0(0x143)]=!![],_0x4e54b2=_0x16753a,_0x204783=0x0;else{if(_0x4f467c['trtmw']!==_0x1f55e0(0x147))_0x3db37a=0x0;else{_0x62ec94[_0x1f55e0(0x143)]=![];let _0x4a9587=_0x62ec94[_0x1f55e0(0x193)];_0x4a9587&&_0x4f467c[_0x1f55e0(0x23b)](new Date(_0x4a9587)['getTime'](),_0x4f467c['NyaUv'](moment,_0x4a0112)[_0x1f55e0(0x14c)](_0x1f55e0(0x1fd))['toDate']()['getTime']())&&(_0x204783=0x0);}}_0x62ec94[_0x1f55e0(0x2c9)]=_0x4e54b2;if(!_0x62ec94[_0x1f55e0(0x242)])console[_0x1f55e0(0x166)](_0x4f467c[_0x1f55e0(0x1e0)],_0x62ec94['ma_nv'],_0x62ec94[_0x1f55e0(0x27b)]),_0x62ec94['luong_thang']=_0x4e54b2;else{_0x62ec94['luong_binh_quan_ngay']=Math['roundBy'](_0x4f467c['tXmrQ'](_0x4e54b2,_0x5ef9d2)),_0x62ec94[_0x1f55e0(0x22b)]=_0x4f467c[_0x1f55e0(0x1ad)](_0x62ec94[_0x1f55e0(0x2c4)],_0x62ec94[_0x1f55e0(0x27f)]),_0x62ec94[_0x1f55e0(0x16c)]=_0x62ec94[_0x1f55e0(0x1f1)]+_0x62ec94['ngay_khong_luong'];if(_0x62ec94[_0x1f55e0(0x1cf)]){if(_0x4f467c['QTIiu']!==_0x4f467c['QTIiu']){_0x244aef=_0x4f467c[_0x1f55e0(0x159)](_0x521dde,_0x3e694d['thu_viec_den_ngay'])['startOf'](_0x4f467c[_0x1f55e0(0x1b6)])['toDate'](),_0x4ca7fa[_0x1f55e0(0x2c5)](_0x4f467c[_0x1f55e0(0x1f7)](_0x42c82d[_0x1f55e0(0x26a)](),0x1));if(_0x184683[_0x1f55e0(0x213)]()<_0x506dce[_0x1f55e0(0x213)]())_0x17de06=_0x35967f;}else{_0x62ec94[_0x1f55e0(0x21b)]=0x0;let _0x15742a=_0x62ec94[_0x1f55e0(0x247)];_0x62ec94[_0x1f55e0(0x17b)]=_0x15742a,_0x62ec94['luong_tang_ca']=Math[_0x1f55e0(0x192)](_0x4f467c['KfETf'](_0x62ec94[_0x1f55e0(0x227)],_0x15742a)),_0x4f467c['KTiJB'](_0x62ec94[_0x1f55e0(0x22b)],_0x5ef9d2)?_0x62ec94[_0x1f55e0(0x19f)]=_0x62ec94[_0x1f55e0(0x2c9)]+_0x62ec94[_0x1f55e0(0x296)]:_0x62ec94[_0x1f55e0(0x19f)]=_0x4f467c[_0x1f55e0(0x272)](Math[_0x1f55e0(0x192)](_0x62ec94[_0x1f55e0(0x227)]*_0x62ec94['tong_ngay_cong_tinh_luong']),_0x62ec94[_0x1f55e0(0x296)]);}}else{console['log']('tinh\x20luog\x20theo\x20thang',_0x62ec94[_0x1f55e0(0x26e)],_0x62ec94[_0x1f55e0(0x27b)]),_0x62ec94[_0x1f55e0(0x21b)]=Math[_0x1f55e0(0x192)](_0x62ec94[_0x1f55e0(0x227)]*_0x62ec94[_0x1f55e0(0x16c)]);let _0x3fb511=_0x62ec94['ngay_tang_ca'];_0x62ec94[_0x1f55e0(0x17b)]=_0x3fb511,_0x62ec94[_0x1f55e0(0x296)]=Math[_0x1f55e0(0x192)](_0x62ec94[_0x1f55e0(0x227)]*_0x3fb511),_0x62ec94[_0x1f55e0(0x19f)]=_0x4f467c[_0x1f55e0(0x272)](_0x4e54b2,_0x62ec94['luong_tang_ca'])-_0x62ec94[_0x1f55e0(0x21b)];}}_0x62ec94[_0x1f55e0(0x1f8)]=0x0,_0x62ec94['cty_bhxh']=0x0,_0x62ec94[_0x1f55e0(0x173)]=0x0,_0x62ec94['cty_bhyt']=0x0,_0x62ec94[_0x1f55e0(0x260)]=0x0,_0x62ec94[_0x1f55e0(0x1bc)]=0x0,_0x62ec94[_0x1f55e0(0x187)]=0x0,_0x62ec94[_0x1f55e0(0x268)]=0x0;let _0x1698f5=[];(!_0x62ec94[_0x1f55e0(0x27c)]||_0x4f467c[_0x1f55e0(0x2be)](moment(_0x62ec94[_0x1f55e0(0x27c)])['startOf'](_0x4f467c[_0x1f55e0(0x1b6)])[_0x1f55e0(0x2b4)]()[_0x1f55e0(0x213)](),_0x53bd4f[_0x1f55e0(0x213)]()))&&(_0x1698f5=_[_0x1f55e0(0x229)](_0x1a9f56),_0x1698f5[_0x1f55e0(0x1b8)](_0x16ed78=>{const _0xfff28d=_0x1f55e0;_0x16ed78['nv']=0x0,_0x16ed78[_0xfff28d(0x202)]=0x0;if(_0x4f467c['KTiJB'](_0x16ed78['kieu_trich'],_0x4f467c[_0xfff28d(0x20b)])){_0x62ec94['bhxh']&&(_0x16ed78['nv']=Math['roundBy'](_0x4f467c[_0xfff28d(0x266)](_0x4f467c['KfETf'](_0x16ed78['ty_le_nv'],_0x204783),0x64)),_0x16ed78['cty']=Math[_0xfff28d(0x192)](_0x4f467c[_0xfff28d(0x184)](_0x4f467c['BUVXS'](_0x16ed78[_0xfff28d(0x2a9)],_0x204783),0x64)),_0x62ec94[_0xfff28d(0x1f8)]=_0x62ec94['gt_bhxh']+_0x16ed78['nv'],_0x62ec94[_0xfff28d(0x265)]=_0x4f467c[_0xfff28d(0x1f7)](_0x62ec94[_0xfff28d(0x265)],_0x16ed78[_0xfff28d(0x202)]));return;}if(_0x4f467c[_0xfff28d(0x210)](_0x16ed78[_0xfff28d(0x238)],_0xfff28d(0x183))){_0x62ec94['bhyt']&&(_0x16ed78['nv']=Math[_0xfff28d(0x192)](_0x4f467c[_0xfff28d(0x184)](_0x4f467c[_0xfff28d(0x1b4)](_0x16ed78[_0xfff28d(0x2c8)],_0x204783),0x64)),_0x16ed78['cty']=Math['roundBy'](_0x4f467c[_0xfff28d(0x22a)](_0x16ed78['ty_le_cty'],_0x204783)/0x64),_0x62ec94[_0xfff28d(0x173)]=_0x4f467c[_0xfff28d(0x272)](_0x62ec94[_0xfff28d(0x173)],_0x16ed78['nv']),_0x62ec94[_0xfff28d(0x1d4)]=_0x62ec94[_0xfff28d(0x1d4)]+_0x16ed78['cty']);return;}if(_0x16ed78[_0xfff28d(0x238)]==_0x4f467c[_0xfff28d(0x2a7)]){if(_0x4f467c[_0xfff28d(0x133)](_0x4f467c[_0xfff28d(0x161)],_0xfff28d(0x26b)))_0x4acbe4[_0xfff28d(0x144)]=_0x41c7b6[_0xfff28d(0x144)];else{_0x62ec94[_0xfff28d(0x157)]&&(_0x16ed78['nv']=Math[_0xfff28d(0x192)](_0x4f467c[_0xfff28d(0x184)](_0x4f467c[_0xfff28d(0x164)](_0x16ed78[_0xfff28d(0x2c8)],_0x204783),0x64)),_0x16ed78[_0xfff28d(0x202)]=Math[_0xfff28d(0x192)](_0x4f467c[_0xfff28d(0x185)](_0x16ed78[_0xfff28d(0x2a9)],_0x204783)/0x64),_0x62ec94[_0xfff28d(0x260)]=_0x62ec94['gt_bhtn']+_0x16ed78['nv'],_0x62ec94[_0xfff28d(0x1bc)]=_0x4f467c['TQOIi'](_0x62ec94['cty_bhtn'],_0x16ed78['cty']));return;}}_0x16ed78['nv']=Math[_0xfff28d(0x192)](_0x4f467c[_0xfff28d(0x20c)](_0x16ed78[_0xfff28d(0x2c8)]*_0x204783,0x64)),_0x16ed78[_0xfff28d(0x202)]=Math[_0xfff28d(0x192)](_0x4f467c[_0xfff28d(0x164)](_0x16ed78[_0xfff28d(0x2a9)],_0x204783)/0x64),_0x16ed78[_0xfff28d(0x238)]=='KPCD'&&(_0x4f467c['fQSBQ'](_0x4f467c[_0xfff28d(0x253)],_0xfff28d(0x201))?_0x48239c=_0x7edf8:(_0x62ec94[_0xfff28d(0x187)]=_0x4f467c['TQOIi'](_0x62ec94[_0xfff28d(0x187)],_0x16ed78['nv']),_0x62ec94[_0xfff28d(0x268)]=_0x4f467c[_0xfff28d(0x272)](_0x62ec94[_0xfff28d(0x268)],_0x16ed78['cty'])));}));_0x62ec94[_0x1f55e0(0x267)]=_0x1698f5,_0x62ec94[_0x1f55e0(0x2b0)]=_0x1698f5[_0x1f55e0(0x234)](_0x392236=>_0x392236['nv'])[_0x1f55e0(0x2a1)]((_0x2f7ba1,_0xf1e95f)=>_0x2f7ba1+_0xf1e95f,0x0),_0x62ec94[_0x1f55e0(0x28f)]=_0x1698f5[_0x1f55e0(0x234)](_0x22b6c8=>_0x22b6c8[_0x1f55e0(0x202)])[_0x1f55e0(0x2a1)]((_0x2eeccc,_0x3f23a1)=>_0x2eeccc+_0x3f23a1,0x0);let _0x16603d;if(!_0x1fae69[_0x1f55e0(0x29d)]||_0x4f467c[_0x1f55e0(0x1dd)](_0x1fae69[_0x1f55e0(0x29d)][_0x1f55e0(0x14a)],0x0)){if(_0x4f467c[_0x1f55e0(0x236)]!==_0x4f467c[_0x1f55e0(0x1e7)]){const _0x303eaf={'id_app':_0x403f1d,'thang':_0x4f88ac,'nam':_0x4bfb1d,'ma_nv':{'$in':['',null,undefined,_0x62ec94[_0x1f55e0(0x26e)]]},'ma_bp':{'$in':['',null,undefined,_0x62ec94['ma_bp']]}};_0x16603d=await phucap['find'](_0x303eaf)[_0x1f55e0(0x194)](),_0x16603d[_0x1f55e0(0x1b8)](_0x5fec5f=>{const _0x9f932=_0x1f55e0,_0x3e8b5e={'hXiIv':function(_0x45477f,_0x564378){const _0x1cefe7=_0x30f2;return _0x4f467c[_0x1cefe7(0x1d2)](_0x45477f,_0x564378);}};_0x4f467c[_0x9f932(0x133)]('ugPJn',_0x4f467c[_0x9f932(0x151)])?_0x12372e=_0x7699c3[_0x9f932(0x1c2)](_0x3e8b5e[_0x9f932(0x2a8)](_0x13b843[_0x9f932(0x2a2)],_0x36874f),_0x1e86c7):(_0x5fec5f[_0x9f932(0x22d)]=_0x4f467c[_0x9f932(0x152)],_0x5fec5f[_0x9f932(0x1ce)]=_0x5fec5f[_0x9f932(0x208)]||0x0);});const _0x367eaa={'id_app':_0x403f1d,'ma_nv':_0x62ec94[_0x1f55e0(0x26e)],'nxt':0x2,'ma_ct':{'$in':[_0x4f467c['Nhonc'],_0x1f55e0(0x16f),_0x4f467c[_0x1f55e0(0x21f)]]},'ngay_ct':{'$gte':_0x53bd4f,'$lte':_0x4a0112}};let _0x32bffd=await global[_0x1f55e0(0x1ea)](_0x1f55e0(0x18b))['find'](_0x367eaa)[_0x1f55e0(0x194)]();_0x32bffd=await _0x32bffd[_0x1f55e0(0x140)]([_0x4f467c[_0x1f55e0(0x276)]],[_0x4f467c[_0x1f55e0(0x1d7)]]),await _0x32bffd['asyncJoinModel2'](_0x403f1d,_0x1f55e0(0x219),{'where':_0x1f55e0(0x2a5),'fields':[_0x4f467c[_0x1f55e0(0x1fc)],_0x4f467c[_0x1f55e0(0x2d1)],_0x4f467c[_0x1f55e0(0x259)],_0x4f467c[_0x1f55e0(0x156)]]}),_0x32bffd=_0x32bffd['filter'](_0x3d78b6=>_0x3d78b6['luong_tho_theo_ds']&&_0x3d78b6[_0x1f55e0(0x17d)]&&_0x3d78b6['sl_xuat']>=_0x3d78b6[_0x1f55e0(0x17d)]);const _0x466324=_0x32bffd[_0x1f55e0(0x234)](_0xf16cae=>{const _0x1611d5=_0x1f55e0;let _0x5b5584={'kieu':'2','id_app':_0x403f1d,'thang':_0x4f88ac,'nam':_0x4bfb1d,'ma_nv':_0x62ec94[_0x1611d5(0x26e)],'ten_phu_cap':_0xf16cae[_0x1611d5(0x1b2)]||_0xf16cae[_0x1611d5(0x19a)]};return _0x5b5584['dvt']=_0xb1fe3['ofZmp'],_0x5b5584['sl_xuat']=_0xf16cae[_0x1611d5(0x13e)],_0x5b5584[_0x1611d5(0x17d)]=_0xf16cae[_0x1611d5(0x17d)],_0x5b5584[_0x1611d5(0x1ce)]=_0x5b5584['tien']=Math[_0x1611d5(0x255)](_0xb1fe3[_0x1611d5(0x174)](_0xf16cae[_0x1611d5(0x13e)],_0xf16cae[_0x1611d5(0x17d)]))*_0xf16cae[_0x1611d5(0x13a)],_0x5b5584;});_0x16603d=[..._0x16603d,..._0x466324];}else _0x4a7aa2[_0x1f55e0(0x19f)]=_0x372725[_0x1f55e0(0x192)](_0x5737e6['luong_binh_quan_ngay']*_0x38b3db[_0x1f55e0(0x22b)])+_0x33b0d4[_0x1f55e0(0x296)];}else _0x16603d=[];_0x62ec94[_0x1f55e0(0x20e)]=_0x16603d[_0x1f55e0(0x191)](_0x4a43d0=>_0x4a43d0[_0x1f55e0(0x208)]<0x0),_0x62ec94['tien_phat']=_0x62ec94[_0x1f55e0(0x20e)]['map'](_0x5381b1=>_0x5381b1[_0x1f55e0(0x1ce)])['reduce']((_0x3c2acb,_0x523b77)=>_0x3c2acb+_0x523b77,0x0);let _0x230e84=[..._0x62ec94[_0x1f55e0(0x251)]||[]]['filter'](_0x236bfe=>{const _0x541d0c=_0x1f55e0;if(_0x236bfe[_0x541d0c(0x2bb)]&&_0x4f467c['IGduB'](new Date(_0x236bfe[_0x541d0c(0x2bb)])['getTime'](),_0x4a0112[_0x541d0c(0x213)]()))return![];if(_0x236bfe[_0x541d0c(0x249)]&&_0x4f467c[_0x541d0c(0x2cc)](new Date(_0x236bfe['den_ngay'])[_0x541d0c(0x213)](),_0x53bd4f[_0x541d0c(0x213)]()))return![];return!![];})[_0x1f55e0(0x234)](_0x1634bc=>{const _0x3c7fe6=_0x1f55e0;if(_0x4f467c[_0x3c7fe6(0x145)](_0x4f467c[_0x3c7fe6(0x206)],_0x4f467c[_0x3c7fe6(0x206)])){let _0x1e17d0=_0x1634bc[_0x3c7fe6(0x208)]||0x0;switch(_0x1634bc['dvt']){case _0x4f467c[_0x3c7fe6(0x1b6)]:{let _0x1313bf=_0x62ec94[_0x3c7fe6(0x14f)];_0x1e17d0=Math[_0x3c7fe6(0x192)](_0x4f467c[_0x3c7fe6(0x2a6)](_0x1e17d0,_0x1313bf));break;}case _0x4f467c[_0x3c7fe6(0x152)]:break;case _0x4f467c['HcVTm']:_0x1e17d0=Math['roundBy'](_0x4f467c[_0x3c7fe6(0x1c4)](_0x1e17d0,0xc));}if(_0x1634bc[_0x3c7fe6(0x29e)]>0x0){let _0x49104a=(_0x1fae69[_0x3c7fe6(0x29d)]||[])[_0x3c7fe6(0x191)](_0x25f891=>_0x25f891['line']==_0x1634bc[_0x3c7fe6(0x17f)])[_0x3c7fe6(0x234)](_0x5d2dc0=>_0x5d2dc0[_0x3c7fe6(0x1ce)]||0x0)[_0x3c7fe6(0x2a1)]((_0x1c8c1a,_0x591e3e)=>_0x1c8c1a+_0x591e3e,0x0);_0x1e17d0=Math[_0x3c7fe6(0x1c2)](_0x1e17d0,_0x4f467c['PSJdd'](_0x1634bc[_0x3c7fe6(0x29e)],_0x49104a));}return _0x1634bc['tien_pc']=_0x1e17d0,_0x1634bc;}else _0x1c47bc['ma_nv']=_0x3aea34['ma_nv'];});_0x230e84=[..._0x230e84,..._0x16603d['filter'](_0xa7e7c4=>_0xa7e7c4['tien']>0x0)],_0x62ec94[_0x1f55e0(0x29d)]=_0x230e84,_0x62ec94[_0x1f55e0(0x17c)]=_0x230e84[_0x1f55e0(0x234)](_0x46664e=>_0x46664e['tien_pc'])[_0x1f55e0(0x2a1)]((_0x5b0423,_0x16c3b5)=>_0x5b0423+_0x16c3b5,0x0),_0x62ec94[_0x1f55e0(0x20f)]=_0x62ec94['tien_phu_cap']+_0x62ec94[_0x1f55e0(0x284)];let _0x36b629=[..._0x62ec94[_0x1f55e0(0x251)]||[]]['filter'](_0x2b6303=>{const _0x347520=_0x1f55e0;if(_0x2b6303[_0x347520(0x2bb)]&&new Date(_0x2b6303['tu_ngay'])[_0x347520(0x213)]()>_0x4a0112[_0x347520(0x213)]())return![];if(_0x2b6303[_0x347520(0x249)]&&_0xb1fe3[_0x347520(0x15b)](new Date(_0x2b6303['den_ngay'])[_0x347520(0x213)](),_0x53bd4f['getTime']()))return![];return!![];})['filter'](_0x33d768=>!_0x33d768[_0x1f55e0(0x270)])[_0x1f55e0(0x234)](_0x19bc0b=>{const _0x281d5a=_0x1f55e0,_0x3ae3b2={'zWsTZ':function(_0x337bf2,_0x4cca7d){const _0x479d66=_0x30f2;return _0xb1fe3[_0x479d66(0x271)](_0x337bf2,_0x4cca7d);},'OBoWc':function(_0xb1050e,_0x30b288){const _0xe5b9ce=_0x30f2;return _0xb1fe3[_0xe5b9ce(0x2af)](_0xb1050e,_0x30b288);},'CdutK':function(_0x50784b,_0x35b37d){return _0x50784b*_0x35b37d;},'zugKP':function(_0x1a79ec,_0x27931e){return _0xb1fe3['ZFsDq'](_0x1a79ec,_0x27931e);},'mfrYW':_0xb1fe3['iMbex'],'VbyXD':function(_0x11b334,_0x242fdb){return _0x11b334(_0x242fdb);}};if(_0xb1fe3[_0x281d5a(0x2c1)](_0xb1fe3[_0x281d5a(0x261)],_0xb1fe3[_0x281d5a(0x261)])){const _0xe542e0={'WmYhg':function(_0x4cccc3,_0x393840,_0x388035){const _0x25e8cf=_0x281d5a;return _0xb1fe3[_0x25e8cf(0x29f)](_0x4cccc3,_0x393840,_0x388035);}};if(!_0x5f5d44['thu_viec_den_ngay'])return _0xb1fe3['CCHlZ'](_0x555f74,null,[]);let _0x25d05f=_0xb1fe3[_0x281d5a(0x29c)](_0x3b3bd3,_0x358c3d[_0x281d5a(0x193)])['endOf'](_0x281d5a(0x299))[_0x281d5a(0x2b4)]();if(_0xb1fe3['PTfjR'](_0x25d05f[_0x281d5a(0x213)](),_0x2a52e5[_0x281d5a(0x213)]()))return _0xb1fe3[_0x281d5a(0x17e)](_0x5314f9,null,[]);if(_0xb1fe3[_0x281d5a(0x23f)](_0x25d05f[_0x281d5a(0x213)](),_0x4dfefd[_0x281d5a(0x213)]()))_0x25d05f=_0x4cee00;const _0x202b7e={..._0x55a27c,'ma_nv':_0x5a13c6[_0x281d5a(0x26e)],'ma_bp':_0x513a6b[_0x281d5a(0x144)],'loai_luong':0x1,'nam':_0x14d9e3,'thang':_0x1d36cf,'tu_ngay':_0xf3db58,'den_ngay':_0x25d05f};_0xb1fe3[_0x281d5a(0x29f)](_0x1c0bbe,_0x202b7e,(_0x249ebb,_0x64267b)=>{const _0x3df6d8=_0x281d5a;_0x64267b&&(_0x400a4d=_0x64267b[_0x3df6d8(0x234)](_0x13dce9=>_0x13dce9[_0x3df6d8(0x29d)]||[])[_0x3df6d8(0x2a1)]((_0x47b37d,_0x756a0d)=>_0x47b37d[_0x3df6d8(0x23d)](_0x756a0d),[]),_0x1e224e=_0x64267b['map'](_0x2a7db4=>_0x2a7db4[_0x3df6d8(0x2ce)]||[])[_0x3df6d8(0x2a1)]((_0x29d551,_0x4543d9)=>_0x29d551['concat'](_0x4543d9),[])),_0xe542e0[_0x3df6d8(0x138)](_0x4e58a1,_0x249ebb,_0x64267b);});}else{let _0x17846d=_0x19bc0b[_0x281d5a(0x208)]||0x0;switch(_0x19bc0b[_0x281d5a(0x22d)]){case _0xb1fe3[_0x281d5a(0x182)]:{if(_0xb1fe3[_0x281d5a(0x2c1)](_0xb1fe3[_0x281d5a(0x2a3)],_0xb1fe3[_0x281d5a(0x1f0)])){let _0x1389c2=_0x62ec94[_0x281d5a(0x14f)];_0x17846d=Math[_0x281d5a(0x192)](_0xb1fe3[_0x281d5a(0x1e6)](_0x17846d,_0x1389c2));break;}else{_0x359888[_0x281d5a(0x157)]&&(_0x3d5ab9['nv']=_0x4df487[_0x281d5a(0x192)](_0x3ae3b2[_0x281d5a(0x222)](_0x3ae3b2[_0x281d5a(0x139)](_0x3d53cf[_0x281d5a(0x2c8)],_0x504cc9),0x64)),_0x5d317e[_0x281d5a(0x202)]=_0x1de335[_0x281d5a(0x192)](_0x3ae3b2[_0x281d5a(0x1d5)](_0x4752ed[_0x281d5a(0x2a9)],_0x20f4f6)/0x64),_0x1d20d8[_0x281d5a(0x260)]=_0x3ae3b2[_0x281d5a(0x269)](_0x575359[_0x281d5a(0x260)],_0x468536['nv']),_0x25ecdf[_0x281d5a(0x1bc)]=_0x3ae3b2[_0x281d5a(0x269)](_0x5e5757[_0x281d5a(0x1bc)],_0x147723[_0x281d5a(0x202)]));return;}}case _0xb1fe3[_0x281d5a(0x1e8)]:break;case _0xb1fe3[_0x281d5a(0x1f9)]:_0x17846d=Math[_0x281d5a(0x192)](_0xb1fe3['Gkrnp'](_0x17846d,0xc));}if(_0xb1fe3[_0x281d5a(0x23f)](_0x19bc0b[_0x281d5a(0x149)],0x0)){if(_0xb1fe3[_0x281d5a(0x295)](_0xb1fe3['jWJXT'],_0xb1fe3[_0x281d5a(0x24c)])){let _0x29db04=(_0x1fae69['cac_khoan_phu_cap_mien_thue']||[])[_0x281d5a(0x191)](_0x4188d7=>_0x4188d7[_0x281d5a(0x17f)]==_0x19bc0b[_0x281d5a(0x17f)])[_0x281d5a(0x234)](_0x4c7aed=>_0x4c7aed[_0x281d5a(0x1ce)]||0x0)[_0x281d5a(0x2a1)]((_0x4d3909,_0x46a86e)=>_0x4d3909+_0x46a86e,0x0);_0x17846d=Math[_0x281d5a(0x1c2)](_0x17846d,_0xb1fe3['gelDk'](_0x19bc0b[_0x281d5a(0x149)],_0x29db04));}else{if(_0x24674d[_0x281d5a(0x16e)])_0x2b4467[_0x281d5a(0x16e)]=_0xb89338(_0x50efb6['ngay_bat_dau_lam'])[_0x281d5a(0x14c)](_0x3ae3b2[_0x281d5a(0x2b7)])[_0x281d5a(0x2b4)]();if(_0x535bb9['ngay_nghi_viec'])_0x1e1394['ngay_nghi_viec']=_0x3ae3b2[_0x281d5a(0x1ab)](_0x53af16,_0x304fba[_0x281d5a(0x1c8)])[_0x281d5a(0x240)]('date')[_0x281d5a(0x2b4)]();}}return _0x19bc0b[_0x281d5a(0x1ce)]=_0x17846d,_0x19bc0b;}});return _0x36b629=[..._0x36b629,..._0x16603d],_0x62ec94['cac_khoan_phu_cap_mien_thue']=_0x36b629,_0x62ec94['tong_phu_cap_mien_thue']=_0x36b629[_0x1f55e0(0x234)](_0x2fbf11=>_0x2fbf11[_0x1f55e0(0x1ce)])[_0x1f55e0(0x2a1)]((_0x544599,_0x214d24)=>_0x544599+_0x214d24,0x0),_0x62ec94['tong_thu_nhap']=_0x62ec94['luong_thang']+_0x62ec94[_0x1f55e0(0x20f)],_0x62ec94[_0x1f55e0(0x1be)]=Math[_0x1f55e0(0x192)](_0x62ec94[_0x1f55e0(0x227)]*_0x62ec94[_0x1f55e0(0x232)]),_0x62ec94[_0x1f55e0(0x1b7)]=_0x62ec94[_0x1f55e0(0x1be)]+_0x62ec94['tong_phu_cap_mien_thue'],_0x62ec94[_0x1f55e0(0x148)]=Math[_0x1f55e0(0x192)](_0x4f467c[_0x1f55e0(0x1dc)](_0x62ec94['ttncn_so_nguoi_phu_thuoc']||0x0,_0x62ec94[_0x1f55e0(0x28d)]||0x0)),_0x62ec94[_0x1f55e0(0x18f)]=0x0,_0x62ec94[_0x1f55e0(0x190)]=Math[_0x1f55e0(0x192)](_0x4f467c[_0x1f55e0(0x164)](_0x62ec94[_0x1f55e0(0x225)]||0x0,_0x62ec94[_0x1f55e0(0x25a)]||0x0)),_0x62ec94[_0x1f55e0(0x205)]=_0x4f467c['aAkIy'](_0x4f467c['IRDzS'](_0x4f467c[_0x1f55e0(0x1ad)](_0x62ec94[_0x1f55e0(0x148)],_0x62ec94[_0x1f55e0(0x18f)]),_0x62ec94[_0x1f55e0(0x2b0)]),_0x62ec94[_0x1f55e0(0x190)]),_0x62ec94[_0x1f55e0(0x20a)]=Math[_0x1f55e0(0x2a4)](_0x4f467c[_0x1f55e0(0x28a)](_0x62ec94[_0x1f55e0(0x275)]-_0x62ec94['ttncn_tong_thu_nhap_mien_thue'],_0x62ec94['ttncn_tong_giam_tru']),0x0),_0x4f467c['tuszi'](_0x62ec94[_0x1f55e0(0x20a)],0x1e8480)?_0x4f467c[_0x1f55e0(0x1a7)](_0x1f55e0(0x14b),_0x1f55e0(0x14b))?(_0x485e06[_0x1f55e0(0x247)]=_0x3e4a99['ngay_cong'],_0x38464e[_0x1f55e0(0x2c4)]=0x0,_0x444f62[_0x1f55e0(0x1ba)]=0x1,_0x23f1b3[_0x1f55e0(0x232)]=_0x5dec41[_0x1f55e0(0x2a4)](_0xb1fe3[_0x1f55e0(0x160)](_0x101ebc[_0x1f55e0(0x247)],0x1),0x0)):_0x62ec94[_0x1f55e0(0x228)]=_0x62ec94[_0x1f55e0(0x143)]?[{'thue_suat':0x0,'tien_thue':0x0}]:tinhThueTNCV(_0x62ec94[_0x1f55e0(0x20a)]):_0x62ec94[_0x1f55e0(0x228)]=_0x62ec94[_0x1f55e0(0x143)]?[{'thue_suat':0xa,'tien_thue':Math[_0x1f55e0(0x192)](_0x4f467c['PvULP'](_0x62ec94[_0x1f55e0(0x20a)],0xa)/0x64,0x0)}]:tinhThueTNCV(_0x62ec94[_0x1f55e0(0x20a)]),_0x62ec94['ttncn_tong_thue']=_0x62ec94[_0x1f55e0(0x228)][_0x1f55e0(0x234)](_0x4af98e=>_0x4af98e['tien_thue']||0x0)[_0x1f55e0(0x2a1)]((_0x2bf934,_0x964af6)=>_0x2bf934+_0x964af6,0x0),_0x62ec94['tong_luong']=_0x4f467c[_0x1f55e0(0x1c3)](_0x4f467c[_0x1f55e0(0x1d2)](_0x62ec94[_0x1f55e0(0x275)],_0x62ec94['tong_bao_hiem_nv']),_0x62ec94[_0x1f55e0(0x244)]),_0x62ec94[_0x1f55e0(0x150)]=_0x403f1d,_0x62ec94['thang']=_0x4f88ac,_0x62ec94[_0x1f55e0(0x1cd)]=_0x4bfb1d,_0x62ec94[_0x1f55e0(0x27a)]=_0x1088a6,null;}else _0xb1fe3[_0x1f55e0(0x239)](_0x3c7dd1,_0xba8299[_0x1f55e0(0x233)]);},async _0x4fce26=>{const _0xe69787=_0x32d8b8,_0x395781={'EVqaR':_0x1b26d3['DgGXa']};if(_0x1b26d3['udHMC']===_0x1b26d3['udHMC']){if(_0x4fce26)return _0x1b26d3[_0xe69787(0x25b)](_0x307e17,_0x4fce26);try{await bangtinhluong['create'](_0x16a249),_0x1b26d3['AYuId'](_0x307e17,null,_0x16a249);}catch(_0x495416){_0x1b26d3[_0xe69787(0x25b)](_0x307e17,_0x495416['message']);}}else _0x45e413[_0xe69787(0x166)](_0x395781[_0xe69787(0x26f)],_0x4c05dd[_0xe69787(0x26e)],_0x24352c[_0xe69787(0x27b)]),_0x935c40[_0xe69787(0x19f)]=_0x36bebf;});}):(_0x19c6d1['nv']=_0x490689[_0x82710c(0x192)](_0x1b26d3[_0x82710c(0x1c1)](_0x1b26d3[_0x82710c(0x2aa)](_0x1489b3[_0x82710c(0x2c8)],_0x53ead2),0x64)),_0x5d3346[_0x82710c(0x202)]=_0x53d9bb[_0x82710c(0x192)](_0x1b26d3[_0x82710c(0x199)](_0x1b26d3['SXIoZ'](_0x319d22[_0x82710c(0x2a9)],_0x43a568),0x64)),_0x59a724[_0x82710c(0x260)]=_0x1b26d3[_0x82710c(0x1ae)](_0x30bd34[_0x82710c(0x260)],_0x41e291['nv']),_0x58701e[_0x82710c(0x1bc)]=_0x1b26d3[_0x82710c(0x1ae)](_0x218026[_0x82710c(0x1bc)],_0x4a674d[_0x82710c(0x202)]));})[_0x3924ae(0x277)](_0x2e8d95=>{const _0x2eca9e=_0x3924ae;_0x339d8c[_0x2eca9e(0x204)]!==_0x339d8c[_0x2eca9e(0x212)]?_0x339d8c[_0x2eca9e(0x291)](_0x307e17,_0x2e8d95):(_0x34fff4&&(_0x4f68d5=_0x29c175[_0x2eca9e(0x234)](_0x2398c8=>_0x2398c8[_0x2eca9e(0x29d)]||[])[_0x2eca9e(0x2a1)]((_0x157357,_0x1e1b46)=>_0x157357['concat'](_0x1e1b46),[]),_0x43ef3e=_0x1cce7d['map'](_0x378442=>_0x378442['cac_khoan_phu_cap_mien_thue']||[])['reduce']((_0x109a29,_0xb515cd)=>_0x109a29[_0x2eca9e(0x23d)](_0xb515cd),[])),_0x339d8c[_0x2eca9e(0x209)](_0x52550e,_0x2feac8,_0x3ebebd));});};function _0x30f2(_0x2abc68,_0x52980d){const _0x41d6ac=_0x41d6();return _0x30f2=function(_0x30f2c7,_0xc3d0a){_0x30f2c7=_0x30f2c7-0x133;let _0x1c2088=_0x41d6ac[_0x30f2c7];if(_0x30f2['QIKJZw']===undefined){var _0x541c0d=function(_0x3fb5a6){const _0x531048='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x48239c='',_0x7edf8='';for(let _0x563901=0x0,_0x58e20c,_0x83ce32,_0x487afd=0x0;_0x83ce32=_0x3fb5a6['charAt'](_0x487afd++);~_0x83ce32&&(_0x58e20c=_0x563901%0x4?_0x58e20c*0x40+_0x83ce32:_0x83ce32,_0x563901++%0x4)?_0x48239c+=String['fromCharCode'](0xff&_0x58e20c>>(-0x2*_0x563901&0x6)):0x0){_0x83ce32=_0x531048['indexOf'](_0x83ce32);}for(let _0x219d3e=0x0,_0x12372e=_0x48239c['length'];_0x219d3e<_0x12372e;_0x219d3e++){_0x7edf8+='%'+('00'+_0x48239c['charCodeAt'](_0x219d3e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x7edf8);};_0x30f2['WvdhCm']=_0x541c0d,_0x2abc68=arguments,_0x30f2['QIKJZw']=!![];}const _0x1f820e=_0x41d6ac[0x0],_0xaa5569=_0x30f2c7+_0x1f820e,_0x220d54=_0x2abc68[_0xaa5569];return!_0x220d54?(_0x1c2088=_0x30f2['WvdhCm'](_0x1c2088),_0x2abc68[_0xaa5569]=_0x1c2088):_0x1c2088=_0x220d54,_0x1c2088;},_0x30f2(_0x2abc68,_0x52980d);}function _0x41d6(){const _0x1dd668=['zgvSzxrLtwfUEq','BwfFA2HV','DgHHBMC','sg5SsKW','BhvVBMDFDgHHBMC','C2vYAwvZ','Cg5TyKK','ExbVyNm','ufzjEve','Ce9Irge','EMPTr0q','AuPxq0K','B3LzBMi','sgDlwM4','yM1oyNC','uwHWEha','vMj5weq','vNnzv2S','svjeELm','rLbYr0K','yMfUz3rPBMHSDw9UzW','DLzTENC','BwfFBg9HAv9JB25N','DgvUx3bODv9JyxbFDgHLBq','vwfdAhi','s2zfvgy','yvrdCuO','BxnVC1y','DhrUy25FDg9Uz190AhvFBMHHCf9TAwvUx3rODwu','zM9YrwfJAa','EMLUCgK','C29FBhvVBMDFBMDHEv90yw5Nx2nH','z0PJzwG','y3r5x2jODg4','y2TNDgX1B25N','BhvVBMDFDgfUz19Jyv9TAwvUx3rODwu','yxbW','mtu4nufcueX4CW','re10qxC','BwLU','yw9vzu0','ruXeEwO','AeLIvhy','s3DYuLa','yKr4Dvm','BMDHEv9Uz2HPx3zPzwm','mti3nJy2mK1hrhPSEq','wMLpze4','qKHysa','rwPksNy','BMfT','DgLLBL9WyW','DgLUAf9SDw9Uz190AgvVx25NyxK','yLL6B3u','vg14rhG','AePKAMO','q0DQwvu','y3r5x2jOExq','q2r1DeS','mJqYntq1nu9fv0Dgvq','rePMAfa','r2POCue','q0nWtui','mtrxteXqsuO','y2HHBwnVBMC','AePcBLC','BMn5tMS','ru5KuxC','AxfWzeC','zuPXyLu','D0XKA1a','zNz4seC','y2z2rgG','neXUC1nZsW','CNjttLq','q0f1zve','tw1qzfK','B2zABxa','zxDcBfy','z2v0tw9KzwW','qMnHz1K','CxvLCNK','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCLjqva','BwfWtgLTAxq','v3vntwy','BefcwLu','BMDHEv9RAg9Uz19WAgvW','u08X','whbUzLO','BgfFy29Uz19Syw1FDgHLBq','Ag96A2i','u0DdCfG','vffpswK','z3rFyMH4Aa','De9nv3y','ren2Aw4','qKHutG','BvzZAeG','Bw9UDgG','u1DxsMi','zg1SB2fPy29UzW','DgLUAf9WAhvFy2fW','AK5QC2W','y3r5','zwnjEK8','Ew1lr2q','DhrUy25FDg9Uz19NAwfTx3rYDq','A1PcEw8','uwLVweG','DgLLBG','tKvdDeu','DhrUy25FDgH1x25OyxbFy2HPDv90AhvL','twzQC0K','wNnivvC','vMr4BLy','y2fJx2TOB2fUx3bOyxq','Dg9Uz19WAhvFy2fW','s1rPsKi','z3nSAuG','r3DXtLa','z2v0vgLTzq','yxn5BMnkB2LUtw9KzwWY','yNLPDe8','rK9LEhC','CxfHDuW','CKnyuuq','zg12Da','rxPcqNe','Dhj1x2X1B25N','BKTzEfi','yMzKAei','vKPqyLq','wLDbs3C','sufqvM8','DgLLBL90AhvL','ELDZvfO','tNPTuvC','rhblt3a','DhrUy25FC29FDgHHBMDFz3rFyMfUx3rOyw4','ndC2nfblz2fhDG','BhvVBMDFyMLUAf9XDwfUx25NyxK','DhrUy25FDgH1zv90AgvVx2jHyW','y2XVBMvezwvW','tgHNC2i','Dg9Uz19Uz2f5x2nVBMDFDgLUAf9SDw9UzW','yKTev2O','zhz0','wKzZrhe','vNblzue','svLxExq','vMXSBxC','C29FBhvVBMDFBMDHEv90yw5Nx2nHx21Pzw5FDgH1zq','BwvZC2fNzq','BwfW','uhnxu1C','swzWB0y','wMrxDNO','A2LLDv90CMLJAa','sKPYu1O','C29FBMDHEv9Syw1FBw90x3rOyw5N','ywzsBeO','sMvAuM4','y29Uy2f0','XjddOYbRAmoZysbZ4BUvimsr4BQ/BIbUz8oGEsa','vurZAvO','zw5Kt2y','yNLhrMi','y2HHBv9JB25N','DwjUr2u','DhrUy25FDg9Uz190AhvL','twnMDeC','u3HWqvC','BMDHEv90yw5Nx2nH','uwT6vLy','zgvUx25NyxK','BgTiBwm','DxLgwgu','ALDkwfq','DgHLBG','EwvHCG','yNvjuxK','zMLUze9Uzq','CgH1x2nHCa','ze1ku04','vvfAqxO','seqY','Dhj1BMm','ww91z0G','v21RAg8','Bw5lBMC','D3rtzvu','DhrUy25FBxvJx2D0x2jHBL90AgfU','y29Uq0m','DgH1zv9ZDwf0','Egz0Dei','wujwwwC','BMDHEq','z3rFyMH0BG','zuDgzvK','r3LArwG','rw1XyNa','sNDlzhC','y3r5x2jOEgG','zePxBu4','z2LHBv90CNu','y3r5x2TWy2q','ENvNs1a','z2v0rgf0zq','rwnZCKq','EvLXCgi','DgLUAf9SDw9UzW','BwfFBNy','rvzXyvi','A2HVBMDFBwLLBL90AhvL','BffZvvi','u0PZCLO','v3flCNi','EhnKAey','Dg9Uz190AhvFBMHHCa','CMzdEum','y2f0y2G','DgLUAgX1B25N','Ag9tBM8','Bg9HAv9SDw9UzW','DgvUx252','BMDHEv90Aw5Ox2jOEgG','yxn5BMm','qMr0v1G','BMDHEv9WAgvW','zMLUza','AxncB29Rtg9JA2vK','y2jdrNK','rgDhwge','DgLLBL9WAgf0','vmoTBMGGBSsdBMCGBSoGEsb5W6P1igpHUQD1igHHAsb0AgfTihpHU5eGDgHHBMCGDSoGig5HBq','nda0mdC0mevUs2PAAa','BenICw4','BhvzENC','Ahnny0C','ufnkzgq','A1DsAwu','uwvzqK4','DhrUy25FBxvJx2D0x3bODv90AhvVyW','zxHWB3j0CW','Dg9Uz19Iyw9FAgLLBv9JDhK','uxDNzfq','EKXYruS','Ew9Wru0','vhD1D3m','mJaZntLMEgH3seG','BvzHDKm','BhvVBMDFDgfUz19Jyq','ChjzruG','yvnUAhC','zgf0zq','B0HHvK4','A2vbCLy','qLfNuvq','y2fJx2TOB2fUx3bODv9Jyxa','Bwf4x3bODv9Jyxa','q0niBfO','u3P3s1a','CMvKDwnL','DgH1x25OyxbFy2HPDv90AhvLx3rVAv9Kyq','AhLhu24','Bwf4','BwfFDNq','uwjpsuC','ywPUyMq','AfHPsxy','DhLFBgvFy3r5','u1HjB1O','ANnfBwu','yMH4Aa','AM9PBK1VzgvSmG','weXmrKi','CfnHAxe','Dg9Uz19Iyw9FAgLLBv9UDG','y1fhufe','rKvRCvC','AgzRsNO','Dg9eyxrL','uuzODxK','quDzq3y','BwzYwvC','D2fKzxG','uLfUz2S','ExbeAKG','DhvFBMDHEq','sungD24','q0XPANm','zKrOuuK','zg1UDG','wu1zzKy','DLvPuey','rwvcyM0','zfHzBKS','BMDHEv9JB25N','C2v0rgf0zq','BuXuBNK','quTty3O','DhLFBgvFBNy','BhvVBMDFy29FyMfU','Bfjts2i','wgjUuNa','DhvZEMK','A0Des3e','y2fJx2TOB2fUx3bODv9JyxbFBwLLBL90AhvL','BhvVBMDFDgH1x3zPzwm','mteZmty5odDKwe1ZEvu','yMjjrKq','zLftqLe','AgrHy2y','BhvVBMDFyMH4Aa','Bw9Tzw50','u2T6zvG','v21zAgC','t0jVv2m','BhvVBMDFDgHVx3rOzw9Fzhm','EuLIvMC','s1Lpvgq','vfjmBKS','C2XFEhvHDa','zurrzgO','yxn5BMnhCM91Cej5','yNzszLm','mZaXmJG2m29XreTOBa','DgH1x3zPzwm','BwfFyNa','txjlywG','ofLntgXRAW','D1nsD1i','DhrUy25Fz3rFCgH1x3rODw9J','Bwf4x21Pzw5FDgH1zq','BgvUz3rO','sLbwDLK','C3rHCNrpzG','qu1RtM8','DgvUx2jW','C29FBMDHEv90Aw5Ox3bODv9Jyxa','AwrFyxbW','BMv6uvi','Be1huMO','CgH1y2fW','BLHIz3q','CKLvEuy','Effhr2u','yMH0BG','quvqAvG','tNLHvxy','y1nQCxy','qxDns1O','zM9YBwf0','A0f4AMq','BuzvtLa','zeD6A3i','z2vSrgS','CfPbr0W','CMXeB04','ru51wMi','rLr1t1i','rhvZrwy','Bg9N','rNzsCxG','q3fQB3y','tNHqB2O','q8o0BMCGDhKGBSoGEsbRAmo0BMCGDog7K24GDog6OwK','Dw5cywy','Dg9Uz19Uz2f5x2TOB25Nx2X1B25N','uujnt3K','BMDHEv9IyxrFzgf1x2XHBq','uejm','q2vlufG','EMHiyLK','yMH5Da','z3rFyMH5Da','r2TYBNa','vLPor1u','lI4VlI4VBgLICY91DgLSCW','zfj3Dgu','EwLprNy','wKPoCfG','tNnswLG','Dg9Uz19Uz2f5x3rHBMDFy2e','DgLLBL9WAhvFy2fW','zhnFEwv1x2nHDq','EvjNC0u','BgLUzq','z0XZrwi','D1brse4','Au1IzxG','qKHzva','DhHzvxO','qLvwwfm','ze5YrLe','z3rFA3bJza','B3PwCxe','t29kr2G','t0Ljy2m','C29RAg8','rM9HCuK','s2HVBMCGy2HHBsbJB25Nig5ODw5NihzHBIb0Aw5OigX1B25N','t29NzKi','DhrUy25Fz3rFDhvFDgHPzw4','DhrUy25Fz3rFyMfUx3rOyw4','zMLSDgvY','CM91BMrcEq','DgH1x3zPzwnFzgvUx25NyxK','BgvHBG','vurIwgm','Aw5gCvG','CwTisha','D3rXyvu','zwnXDKS','DgvUx3z0'];_0x41d6=function(){return _0x1dd668;};return _0x41d6();}module[_0x15ed6f(0x28e)]=function(_0x38952a){const _0xc2684f=_0x15ed6f,_0xc8c908={'unBaf':function(_0x4d84e7,_0x16f220){return _0x4d84e7-_0x16f220;},'DpKOp':function(_0x216452,_0x565873){return _0x216452(_0x565873);},'HgKZn':function(_0x357777,_0x21c799,_0x21db5e){return _0x357777(_0x21c799,_0x21db5e);},'OogfB':function(_0x247d98,_0x49c751,_0x351e4d){return _0x247d98(_0x49c751,_0x351e4d);},'RzOrd':_0xc2684f(0x299),'VpKeA':function(_0x30812a,_0x5d5361){return _0x30812a<_0x5d5361;},'dRwte':function(_0x579adb,_0x1e4f36){return _0x579adb>_0x1e4f36;},'UDbXc':function(_0x10860e,_0x903d9d){return _0x10860e===_0x903d9d;},'hfkJz':_0xc2684f(0x188),'Cqjov':function(_0x1c6aa0,_0x773fd5){return _0x1c6aa0>_0x773fd5;},'ewBlV':function(_0x5a9295,_0x453e28){return _0x5a9295||_0x453e28;},'vVmzw':function(_0x4cdeae,_0x22af44){return _0x4cdeae(_0x22af44);},'lkHmc':_0xc2684f(0x285),'qkHHp':function(_0xfe4be1,_0x1a4b0d){return _0xfe4be1<_0x1a4b0d;},'pObDa':function(_0x10d168,_0x1938e0){return _0x10d168>_0x1938e0;},'rxknG':function(_0xf2926a,_0xf095ae){return _0xf2926a<_0xf095ae;},'zhHbY':'Tham\x20số\x20thang\x20hoặc\x20nam\x20không\x20phù\x20hợp','VsYWk':function(_0x5608d0,_0xf2e250){return _0x5608d0(_0xf2e250);},'WqKrr':function(_0x287e61,_0x42f996){return _0x287e61(_0x42f996);},'GyZEh':'month','Wmkho':function(_0x45fd82,_0x3a823a){return _0x45fd82(_0x3a823a);},'ypDjH':_0xc2684f(0x16a),'aSnhw':function(_0x2b5656,_0x3f035b){return _0x2b5656(_0x3f035b);},'bDxuS':function(_0x27834b,_0x3596ff){return _0x27834b===_0x3596ff;},'ecIzO':_0xc2684f(0x2ab),'IAPVo':function(_0x3a10b6,_0x51f44f){return _0x3a10b6*_0x51f44f;},'TRLnK':function(_0x1f4866,_0x357ca6){return _0x1f4866*_0x357ca6;}};new controller(_0x38952a,_0xc2684f(0x278),async(_0x1be4e1,_0x5a4a04)=>{const _0x191cc7=_0xc2684f,_0x2f3a4a={'esYjC':function(_0x41d74f,_0x120c1c){const _0x37c2a7=_0x30f2;return _0xc8c908[_0x37c2a7(0x224)](_0x41d74f,_0x120c1c);},'lgLEh':function(_0x124f2a,_0x4f9cce,_0x305954){const _0x5b9e01=_0x30f2;return _0xc8c908[_0x5b9e01(0x18e)](_0x124f2a,_0x4f9cce,_0x305954);},'XpnfZ':function(_0x22f7fd,_0x3d8bb3,_0x18ce53){return _0x22f7fd(_0x3d8bb3,_0x18ce53);},'yiOFv':_0xc8c908['RzOrd'],'hsMcG':function(_0x124b0f,_0x3e09b0){const _0x471c0a=_0x30f2;return _0xc8c908[_0x471c0a(0x22f)](_0x124b0f,_0x3e09b0);},'eDQdj':function(_0x139c5e,_0x1c7830){const _0x48e1a1=_0x30f2;return _0xc8c908[_0x48e1a1(0x177)](_0x139c5e,_0x1c7830);},'ZiOdN':function(_0x481c64,_0x11f614){const _0x39a269=_0x30f2;return _0xc8c908[_0x39a269(0x195)](_0x481c64,_0x11f614);},'FEkqW':_0xc8c908[_0x191cc7(0x2b3)],'NuKTC':function(_0x1e12df,_0x3e00ba){const _0x3203e5=_0x191cc7;return _0xc8c908[_0x3203e5(0x168)](_0x1e12df,_0x3e00ba);}};let _0xf1cec3=_0xc8c908[_0x191cc7(0x224)](Number,_0x1be4e1['query'][_0x191cc7(0x19d)]),_0x3ed8f9=Number(_0x1be4e1[_0x191cc7(0x1ec)]['nam']),_0x50749d=_0x1be4e1[_0x191cc7(0x1ec)][_0x191cc7(0x150)];if(_0xc8c908[_0x191cc7(0x1e9)](!_0xf1cec3,!_0x3ed8f9))return _0xc8c908[_0x191cc7(0x1b0)](_0x5a4a04,_0xc8c908[_0x191cc7(0x24a)]);if(_0xc8c908[_0x191cc7(0x197)](_0xf1cec3,0x1)||_0xc8c908[_0x191cc7(0x1a4)](_0xf1cec3,0xc)||_0xc8c908['rxknG'](_0x3ed8f9,0x3e8)||_0x3ed8f9>0xbb8)return _0xc8c908['vVmzw'](_0x5a4a04,_0xc8c908[_0x191cc7(0x171)]);const _0x3aa558=_0xc8c908[_0x191cc7(0x1ac)](moment,new Date(_0x3ed8f9,_0xc8c908[_0x191cc7(0x16b)](_0xf1cec3,0x1),0x1))[_0x191cc7(0x14c)](_0x191cc7(0x1fd))['toDate'](),_0x77635f=_0xc8c908[_0x191cc7(0x273)](moment,_0x3aa558)[_0x191cc7(0x240)](_0xc8c908[_0x191cc7(0x262)])[_0x191cc7(0x2b4)]();let _0x24ee0f=await App[_0x191cc7(0x250)]({'_id':_0x50749d});if(!_0x24ee0f)return _0xc8c908[_0x191cc7(0x257)](_0x5a4a04,_0xc8c908[_0x191cc7(0x2ba)]);let _0x9721ba=await utils[_0x191cc7(0x281)]({'id_app':_0x50749d,'ngay_ct':_0x3aa558});if(_0x9721ba)return _0xc8c908[_0x191cc7(0x298)](_0x5a4a04,_0x191cc7(0x23e)+_0xc8c908['vVmzw'](moment,_0x9721ba)[_0x191cc7(0x15c)]('DD/MM/YYYY'));let _0x569747=_0x1be4e1[_0x191cc7(0x1ec)][_0x191cc7(0x23a)]||_0x24ee0f[_0x191cc7(0x23a)]||0x18;const _0x1c92e7={'tu_ngay':_0x3aa558,'den_ngay':_0x77635f,'id_app':_0x50749d,'thang':_0xf1cec3,'nam':_0x3ed8f9,'so_ngay_lam_mot_thang':_0x569747,'ma_nv':_0x1be4e1[_0x191cc7(0x1ec)]['ma_nv'],'ma_bp':_0x1be4e1[_0x191cc7(0x1ec)][_0x191cc7(0x144)]},_0x3946bc={};_0x3946bc[_0x191cc7(0x150)]=_0x50749d,_0x3946bc[_0x191cc7(0x19d)]=_0xf1cec3,_0x3946bc[_0x191cc7(0x1cd)]=_0x3ed8f9;_0x1c92e7[_0x191cc7(0x26e)]&&(_0x3946bc['ma_nv']=_0x1c92e7['ma_nv']);_0x1c92e7['ma_bp']&&(_0x3946bc['ma_bp']=_0x1c92e7[_0x191cc7(0x144)]);await bangtinhluong[_0x191cc7(0x19b)](_0x3946bc);let _0x53af78={'id_app':_0x1be4e1['query'][_0x191cc7(0x150)]};if(_0x1be4e1[_0x191cc7(0x1ec)][_0x191cc7(0x26e)]){if(_0xc8c908[_0x191cc7(0x1c7)](_0xc8c908[_0x191cc7(0x203)],_0xc8c908[_0x191cc7(0x203)]))_0x53af78[_0x191cc7(0x26e)]=_0x1be4e1['query']['ma_nv'];else{_0x1b8a62['la_cong_lam_them']&&(_0x588c3f[_0x191cc7(0x247)]=_0x3c4171['ngay_cong'],_0x4adfb5[_0x191cc7(0x2c4)]=0x0,_0x56275f[_0x191cc7(0x1ba)]=0x1,_0x3d436a[_0x191cc7(0x232)]=_0x4615c2[_0x191cc7(0x2a4)](_0xc8c908[_0x191cc7(0x16b)](_0x456b69[_0x191cc7(0x247)],0x1),0x0));if(_0x7730a9[_0x191cc7(0x200)])_0x4fd2a9[_0x191cc7(0x14f)]=0x1;}}const _0x4515ab=await dmnv[_0x191cc7(0x280)](_0x53af78);async[_0x191cc7(0x1ee)](_0x4515ab,0x14,(_0x49734a,_0x38080d)=>{const _0x5809f1=_0x191cc7,_0x5e0b4b={'sJIUz':function(_0x41dabd,_0xb3a1b,_0x4faf1f){const _0x2cdcb2=_0x30f2;return _0x2f3a4a[_0x2cdcb2(0x1f3)](_0x41dabd,_0xb3a1b,_0x4faf1f);},'YBVYg':_0x2f3a4a[_0x5809f1(0x178)],'pnmbI':function(_0x364410,_0x4863a0){const _0x4061b1=_0x5809f1;return _0x2f3a4a[_0x4061b1(0x289)](_0x364410,_0x4863a0);},'FUDwC':function(_0xf99de7,_0x3f4148){const _0x3f2a5f=_0x5809f1;return _0x2f3a4a[_0x3f2a5f(0x13f)](_0xf99de7,_0x3f4148);},'SGCpX':function(_0xb55ff6,_0x18331a,_0x406089){return _0xb55ff6(_0x18331a,_0x406089);},'VdxnV':function(_0x231c70,_0x2b52d1){const _0x42d92a=_0x5809f1;return _0x2f3a4a[_0x42d92a(0x1ca)](_0x231c70,_0x2b52d1);},'aEFxa':_0x2f3a4a[_0x5809f1(0x2b2)],'YougH':function(_0x58d45e,_0x409e41){return _0x2f3a4a['esYjC'](_0x58d45e,_0x409e41);},'cbQjy':function(_0x1d871d,_0x1c6e68){return _0x1d871d+_0x1c6e68;},'IFTrO':function(_0x3b8b1b,_0xd876d9){return _0x2f3a4a['NuKTC'](_0x3b8b1b,_0xd876d9);},'nKYxR':function(_0x2b0edf,_0x1e8441,_0x945af4){return _0x2b0edf(_0x1e8441,_0x945af4);}};let _0x1de1c7=[],_0x210d64=[];async[_0x5809f1(0x1a0)]({'tv':_0x213cae=>{const _0x21ba3a=_0x5809f1;if(!_0x49734a[_0x21ba3a(0x193)])return _0x5e0b4b['sJIUz'](_0x213cae,null,[]);let _0x1b5030=moment(_0x49734a[_0x21ba3a(0x193)])['endOf'](_0x5e0b4b[_0x21ba3a(0x25e)])[_0x21ba3a(0x2b4)]();if(_0x5e0b4b[_0x21ba3a(0x1a1)](_0x1b5030[_0x21ba3a(0x213)](),_0x3aa558['getTime']()))return _0x213cae(null,[]);if(_0x5e0b4b['FUDwC'](_0x1b5030[_0x21ba3a(0x213)](),_0x77635f[_0x21ba3a(0x213)]()))_0x1b5030=_0x77635f;const _0x57d050={..._0x1c92e7,'ma_nv':_0x49734a['ma_nv'],'ma_bp':_0x1c92e7[_0x21ba3a(0x144)],'loai_luong':0x1,'nam':_0x3ed8f9,'thang':_0xf1cec3,'tu_ngay':_0x3aa558,'den_ngay':_0x1b5030};_0x5e0b4b[_0x21ba3a(0x1f6)](tinhluong,_0x57d050,(_0x8e1c7d,_0x4a6f2e)=>{const _0x30a46b=_0x21ba3a;_0x4a6f2e&&(_0x1de1c7=_0x4a6f2e[_0x30a46b(0x234)](_0x57d7cd=>_0x57d7cd[_0x30a46b(0x29d)]||[])['reduce']((_0x145307,_0x490306)=>_0x145307[_0x30a46b(0x23d)](_0x490306),[]),_0x210d64=_0x4a6f2e[_0x30a46b(0x234)](_0x12f348=>_0x12f348[_0x30a46b(0x2ce)]||[])['reduce']((_0x1a937e,_0x2bb07c)=>_0x1a937e[_0x30a46b(0x23d)](_0x2bb07c),[])),_0x213cae(_0x8e1c7d,_0x4a6f2e);});},'ct':_0x2f7953=>{const _0x213610=_0x5809f1;if(_0x5e0b4b[_0x213610(0x20d)](_0x213610(0x188),_0x5e0b4b['aEFxa'])){let _0x280e8e;if(_0x49734a[_0x213610(0x193)]){_0x280e8e=_0x5e0b4b[_0x213610(0x256)](moment,_0x49734a['thu_viec_den_ngay'])[_0x213610(0x14c)](_0x213610(0x299))['toDate'](),_0x280e8e[_0x213610(0x2c5)](_0x5e0b4b['cbQjy'](_0x280e8e[_0x213610(0x26a)](),0x1));if(_0x280e8e[_0x213610(0x213)]()<_0x3aa558[_0x213610(0x213)]())_0x280e8e=_0x3aa558;}else _0x280e8e=_0x3aa558;if(_0x5e0b4b['IFTrO'](_0x280e8e[_0x213610(0x213)](),_0x77635f[_0x213610(0x213)]()))return _0x5e0b4b[_0x213610(0x1f6)](_0x2f7953,null,[]);const _0x4e0060={..._0x1c92e7,'ma_nv':_0x49734a['ma_nv'],'ma_bp':_0x1c92e7[_0x213610(0x144)],'loai_luong':0x2,'tu_ngay':_0x280e8e,'den_ngay':_0x77635f,'cac_khoan_phu_cap':_0x1de1c7,'cac_khoan_phu_cap_mien_thue':_0x210d64};_0x5e0b4b[_0x213610(0x21c)](tinhluong,_0x4e0060,_0x2f7953);}else _0x3c8859[_0x213610(0x144)]={'$nin':[_0x53b585,null,'']};}},(_0x451e94,_0x249417)=>{if(_0x451e94)return _0x2f3a4a['esYjC'](_0x38080d,_0x451e94);_0x249417=_0x249417['tv']['concat'](_0x249417['ct']),_0x2f3a4a['lgLEh'](_0x38080d,null,_0x249417);});},(_0x128ae8,_0x517f43)=>{const _0x5ce094=_0x191cc7;if(_0x128ae8)return _0xc8c908['DpKOp'](_0x5a4a04,_0x128ae8);_0xc8c908[_0x5ce094(0x1a8)](_0x5a4a04,null,_0x517f43[_0x5ce094(0x2a1)]((_0x507b0a,_0x2126f3)=>_0x507b0a[_0x5ce094(0x23d)](_0x2126f3),[]));});},{'stream':![],'useSession':!![],'cache':![],'queue':!![],'timeout':_0xc8c908[_0xc2684f(0x220)](_0xc8c908[_0xc2684f(0x13d)](0x5*0x3c,0x3c),0x3e8)});};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
const crypto=require(
|
|
2
|
-
module.exports=function($router$$){new controller($router$$,"analyzedata",async function($req$$,$callback$$){const $query$$=$req$$.query,$id_app$$=$query$$.id_app,$question$$=$query$$.cau_hoi;if(!$query$$.tu_ngay||!$query$$.den_ngay)return $callback$$("B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1 tu_ngay,den_ngay");if($query$$.id_conv){var $conversationHistory_pt$$=await getCacheReport($req$$.user.email,$id_app$$,$query$$.id_conv,{tu_ngay:$query$$.tu_ngay,den_ngay:$query$$.den_ngay},
|
|
3
|
-
864E5);if($conversationHistory_pt$$&&$conversationHistory_pt$$.length>1)return $conversationHistory_pt$$=await analyzeData(null,$question$$,$conversationHistory_pt$$),await setCacheReport($req$$.user.email,$id_app$$,$query$$.id_conv,{tu_ngay:$query$$.tu_ngay,den_ngay:$query$$.den_ngay},$conversationHistory_pt$$.conversationHistory),$callback$$(null,{reply:$conversationHistory_pt$$.reply,question:$conversationHistory_pt$$.question,id_conv:$query$$.id_conv})}$query$$.bac_tk=0;console.log("\u0110ang t\u00ednh b\u1ea3ng c\u00e2n \u0111\u1ed1i ph\u00e1t sinh t\u00e0i kho\u1ea3n...");
|
|
4
|
-
cdpstk($query$$,function($error$$,$report$$){if($error$$)return $callback$$($error$$);$report$$.joinModel2($id_app$$,Account,[{where:"tk",fields:["ten_tk","tk_me","loai_tk"]}],async function($report$$){$report$$=underscore.sortBy($report$$,function($r$$){return $r$$.tk});try{let $datas$$=[],$bang_cdpstk$$=$report$$.filter($r$$=>$r$$.loai_tk==0).map($r$$=>({tai_khoan:$r$$.tk,ten_tai_khoan:$r$$.ten_tk,du_dau_ky:{no:$r$$.dk_no,co:$r$$.dk_co},phat_sinh:{no:$r$$.ps_no,co:$r$$.ps_co},du_cuoi_ky:{no:$r$$.ck_no,
|
|
5
|
-
co:$r$$.ck_co}}));$datas$$.push({title:`D\u1eef li\u1ec7u b\u1ea3ng c\u00e2n \u0111\u1ed1i ph\u00e1t sinh t\u00e0i kho\u1ea3n t\u1eeb ng\u00e0y ${moment($query$$.tu_ngay).format("DD/MM/YYYY")} \u0111\u1ebfn ng\u00e0y ${moment($query$$.den_ngay).format("DD/MM/YYYY")}`,data:$bang_cdpstk$$});let $pt$$=await analyzeData($datas$$,$question$$),$id_conv$$=`conversationHistory-${$id_app$$}-${moment($query$$.tu_ngay).format("YYYYMMDD")}-${moment($query$$.den_ngay).format("YYYYMMDD")}-${crypto.randomBytes(20).toString("hex")}`;
|
|
6
|
-
await setCacheReport($req$$.user.email,$id_app$$,$id_conv$$,{tu_ngay:$query$$.tu_ngay,den_ngay:$query$$.den_ngay},$pt$$.conversationHistory);$callback$$(null,{reply:$pt$$.reply,question:$pt$$.question,id_conv:$id_conv$$})}catch($e$$){$callback$$({error:$e$$.message||$e$$.error||$e$$})}})})},{cache:!1,resHandler:async($req$$,$result$$,$res$$)=>{const {error:$error$$,data:$data$$}=$result$$;if($error$$)return $res$$.status(400).send($error$$);$res$$.send($data$$)}})};
|
|
1
|
+
function _0x366a(_0x41c5ed,_0x5a0e88){const _0xf8376d=_0xf837();return _0x366a=function(_0x366a6f,_0xa3cc2d){_0x366a6f=_0x366a6f-0x180;let _0x1ea8a9=_0xf8376d[_0x366a6f];if(_0x366a['kMEuJg']===undefined){var _0x42995c=function(_0xc154a2){const _0x3103df='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5135c4='',_0x36c163='';for(let _0x3ddff9=0x0,_0xf360be,_0x44aea3,_0x3e77af=0x0;_0x44aea3=_0xc154a2['charAt'](_0x3e77af++);~_0x44aea3&&(_0xf360be=_0x3ddff9%0x4?_0xf360be*0x40+_0x44aea3:_0x44aea3,_0x3ddff9++%0x4)?_0x5135c4+=String['fromCharCode'](0xff&_0xf360be>>(-0x2*_0x3ddff9&0x6)):0x0){_0x44aea3=_0x3103df['indexOf'](_0x44aea3);}for(let _0x413d79=0x0,_0x532441=_0x5135c4['length'];_0x413d79<_0x532441;_0x413d79++){_0x36c163+='%'+('00'+_0x5135c4['charCodeAt'](_0x413d79)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x36c163);};_0x366a['TTVjDe']=_0x42995c,_0x41c5ed=arguments,_0x366a['kMEuJg']=!![];}const _0x1dc354=_0xf8376d[0x0],_0x345ea4=_0x366a6f+_0x1dc354,_0x31a894=_0x41c5ed[_0x345ea4];return!_0x31a894?(_0x1ea8a9=_0x366a['TTVjDe'](_0x1ea8a9),_0x41c5ed[_0x345ea4]=_0x1ea8a9):_0x1ea8a9=_0x31a894,_0x1ea8a9;},_0x366a(_0x41c5ed,_0x5a0e88);}const _0x41ec0e=_0x366a;(function(_0x251553,_0x3739cf){const _0xb22e67=_0x366a,_0x2a1bab=_0x251553();while(!![]){try{const _0x4f9f09=-parseInt(_0xb22e67(0x19f))/0x1+-parseInt(_0xb22e67(0x1c7))/0x2+parseInt(_0xb22e67(0x1d5))/0x3+-parseInt(_0xb22e67(0x1ab))/0x4+-parseInt(_0xb22e67(0x19e))/0x5*(parseInt(_0xb22e67(0x19b))/0x6)+-parseInt(_0xb22e67(0x19a))/0x7*(parseInt(_0xb22e67(0x194))/0x8)+parseInt(_0xb22e67(0x19d))/0x9;if(_0x4f9f09===_0x3739cf)break;else _0x2a1bab['push'](_0x2a1bab['shift']());}catch(_0x1c049b){_0x2a1bab['push'](_0x2a1bab['shift']());}}}(_0xf837,0x2dabd));const crypto=require(_0x41ec0e(0x187)),cdpstk=require(_0x41ec0e(0x1d1)),{setCacheReport,getCacheReport}=require(_0x41ec0e(0x18a)),{analyzeData}=require('../../libs/utils'),Account=global['getModel'](_0x41ec0e(0x1c5)),underscore=require(_0x41ec0e(0x1b6)),moment=require(_0x41ec0e(0x18d)),controller=require(_0x41ec0e(0x1ce));module[_0x41ec0e(0x18c)]=function(_0x4ec40c){const _0x16e01b=_0x41ec0e,_0x52a38c={'XgwUC':function(_0xbd1241,_0x4bd29f){return _0xbd1241(_0x4bd29f);},'FoUvi':function(_0x5b089b,_0x2fdd73){return _0x5b089b!==_0x2fdd73;},'cMVRg':_0x16e01b(0x1b3),'iPCaF':function(_0x482e07,_0x5ba49f){return _0x482e07===_0x5ba49f;},'rCYvS':_0x16e01b(0x1a2),'guqJm':_0x16e01b(0x1a3),'TrBra':_0x16e01b(0x1d4),'QNzxy':_0x16e01b(0x1b4),'OFKvI':function(_0x3e656d,_0x515370,_0x19db6d,_0x5c87f3,_0x34aa09,_0x253f35){return _0x3e656d(_0x515370,_0x19db6d,_0x5c87f3,_0x34aa09,_0x253f35);},'HYTtG':_0x16e01b(0x1af),'jQLfR':_0x16e01b(0x198),'ozvBI':function(_0x508bd4,_0x23d394){return _0x508bd4(_0x23d394);},'cYoqj':'Báo\x20cáo\x20này\x20yêu\x20cầu\x20các\x20tham\x20số\x20tu_ngay,den_ngay','QCrzM':_0x16e01b(0x1c0),'TePKx':_0x16e01b(0x1a1),'PMeRg':function(_0x3f0880,_0x3edea3){return _0x3f0880*_0x3edea3;},'ClTFg':_0x16e01b(0x1c8),'nCyuZ':'EaEPU','fesgZ':function(_0x3b2aab,_0x376c7e,_0x4d99df,_0x31c0f9){return _0x3b2aab(_0x376c7e,_0x4d99df,_0x31c0f9);},'gXLmv':function(_0x3891bb,_0x2c8218,_0x2ad990){return _0x3891bb(_0x2c8218,_0x2ad990);}};new controller(_0x4ec40c,_0x16e01b(0x181),async function(_0x82d0a,_0x1ca283){const _0xaa7d5c=_0x16e01b,_0x1786ca=_0x82d0a[_0xaa7d5c(0x182)],_0x39898c=_0x1786ca['id_app'],_0x2905fd=_0x1786ca['cau_hoi'];if(!_0x1786ca[_0xaa7d5c(0x1b9)]||!_0x1786ca[_0xaa7d5c(0x18f)])return _0x52a38c[_0xaa7d5c(0x180)](_0x1ca283,_0x52a38c[_0xaa7d5c(0x1d0)]);if(_0x1786ca[_0xaa7d5c(0x189)]){if(_0x52a38c['FoUvi'](_0x52a38c[_0xaa7d5c(0x1aa)],_0x52a38c[_0xaa7d5c(0x1a8)])){let _0x32e694=await _0x52a38c[_0xaa7d5c(0x1c3)](getCacheReport,_0x82d0a['user'][_0xaa7d5c(0x1ae)],_0x39898c,_0x1786ca[_0xaa7d5c(0x189)],{'tu_ngay':_0x1786ca[_0xaa7d5c(0x1b9)],'den_ngay':_0x1786ca[_0xaa7d5c(0x18f)]},_0x52a38c[_0xaa7d5c(0x199)](_0x52a38c[_0xaa7d5c(0x199)](_0x52a38c['PMeRg'](0x18,0x3c),0x3c),0x3e8));if(_0x32e694&&_0x32e694['length']>0x1){if(_0x52a38c[_0xaa7d5c(0x18b)](_0x52a38c[_0xaa7d5c(0x195)],_0x52a38c['nCyuZ'])){let _0x1dbff9=await _0x52a38c[_0xaa7d5c(0x1cf)](analyzeData,null,_0x2905fd,_0x32e694);return await _0x52a38c[_0xaa7d5c(0x1c3)](setCacheReport,_0x82d0a[_0xaa7d5c(0x18e)]['email'],_0x39898c,_0x1786ca[_0xaa7d5c(0x189)],{'tu_ngay':_0x1786ca[_0xaa7d5c(0x1b9)],'den_ngay':_0x1786ca[_0xaa7d5c(0x18f)]},_0x1dbff9['conversationHistory']),_0x52a38c['gXLmv'](_0x1ca283,null,{'reply':_0x1dbff9[_0xaa7d5c(0x1d2)],'question':_0x1dbff9[_0xaa7d5c(0x1bb)],'id_conv':_0x1786ca['id_conv']});}else{const {error:_0xd16369,data:_0x481230}=_0x1d573e;if(_0xd16369)return _0x219bc1['status'](0x190)[_0xaa7d5c(0x1a7)](_0xd16369);_0x39a07d['send'](_0x481230);}}}else return _0x3103df('Báo\x20cáo\x20này\x20yêu\x20cầu\x20các\x20tham\x20số\x20tu_ngay,den_ngay');}_0x1786ca[_0xaa7d5c(0x1b2)]=0x0,console[_0xaa7d5c(0x1a5)](_0xaa7d5c(0x1b0)),cdpstk(_0x1786ca,function(_0x266198,_0x117cb9){const _0x52b741=_0xaa7d5c,_0x1166fd={'oukTg':function(_0x16c7c3,_0x2dfdf8){const _0x11fb6e=_0x366a;return _0x52a38c[_0x11fb6e(0x1ac)](_0x16c7c3,_0x2dfdf8);},'NyGZq':function(_0x359993,_0x313731){return _0x52a38c['FoUvi'](_0x359993,_0x313731);},'Ddgtr':_0x52a38c[_0x52b741(0x1d3)],'mvLrb':function(_0x63e65e,_0xdd7fed){const _0x11fd13=_0x52b741;return _0x52a38c[_0x11fd13(0x191)](_0x63e65e,_0xdd7fed);},'ebdES':_0x52a38c[_0x52b741(0x1bc)],'APDnc':_0x52a38c[_0x52b741(0x1b5)],'dyzOp':function(_0x512621,_0x231166,_0x103346){return _0x512621(_0x231166,_0x103346);},'epmGO':function(_0x2a5eda,_0x17f9fc){const _0x5e14f1=_0x52b741;return _0x52a38c[_0x5e14f1(0x1ac)](_0x2a5eda,_0x17f9fc);},'IrzYt':_0x52a38c[_0x52b741(0x1cd)],'VnBUx':function(_0x1bfda0,_0x342578){return _0x1bfda0(_0x342578);},'TMbgp':_0x52a38c[_0x52b741(0x1c4)],'jCsCf':function(_0x14e2e3,_0x22f294,_0x519838,_0x3ea667,_0x3c227f,_0x5bfb69){const _0x321650=_0x52b741;return _0x52a38c[_0x321650(0x1c3)](_0x14e2e3,_0x22f294,_0x519838,_0x3ea667,_0x3c227f,_0x5bfb69);}};if(_0x266198)return _0x52a38c[_0x52b741(0x1ac)](_0x1ca283,_0x266198);_0x117cb9['joinModel2'](_0x39898c,Account,[{'where':'tk','fields':[_0x52a38c[_0x52b741(0x193)],_0x52a38c['jQLfR'],_0x52b741(0x1a0)]}],async function(_0x195506){const _0x1d7f12=_0x52b741,_0x3fe912={'CevVf':function(_0x482780,_0x50e591){const _0x3c9eb9=_0x366a;return _0x1166fd[_0x3c9eb9(0x1c2)](_0x482780,_0x50e591);}};if(_0x1166fd[_0x1d7f12(0x1c6)](_0x1166fd[_0x1d7f12(0x1c1)],_0x1166fd[_0x1d7f12(0x1c1)]))return _0x36c163['tk'];else{_0x195506=underscore[_0x1d7f12(0x1c9)](_0x195506,function(_0x274ff8){return _0x274ff8['tk'];});try{if(_0x1166fd[_0x1d7f12(0x1b8)](_0x1d7f12(0x1a2),_0x1166fd[_0x1d7f12(0x184)])){let _0x2af5b0=[],_0x334638=_0x195506[_0x1d7f12(0x1cb)](_0x48782f=>_0x48782f[_0x1d7f12(0x1a0)]==0x0)[_0x1d7f12(0x196)](_0x55d2fc=>{const _0x51ee73=_0x1d7f12;return{'tai_khoan':_0x55d2fc['tk'],'ten_tai_khoan':_0x55d2fc[_0x51ee73(0x1af)],'du_dau_ky':{'no':_0x55d2fc['dk_no'],'co':_0x55d2fc[_0x51ee73(0x1a4)]},'phat_sinh':{'no':_0x55d2fc[_0x51ee73(0x183)],'co':_0x55d2fc[_0x51ee73(0x1ca)]},'du_cuoi_ky':{'no':_0x55d2fc['ck_no'],'co':_0x55d2fc[_0x51ee73(0x1ad)]}};});_0x2af5b0[_0x1d7f12(0x1bd)]({'title':'Dữ\x20liệu\x20bảng\x20cân\x20đối\x20phát\x20sinh\x20tài\x20khoản\x20từ\x20ngày\x20'+moment(_0x1786ca['tu_ngay'])[_0x1d7f12(0x188)](_0x1166fd[_0x1d7f12(0x1cc)])+_0x1d7f12(0x1b7)+_0x1166fd[_0x1d7f12(0x1c2)](moment,_0x1786ca[_0x1d7f12(0x18f)])[_0x1d7f12(0x188)](_0x1166fd['APDnc']),'data':_0x334638});let _0x42d94a=await _0x1166fd[_0x1d7f12(0x1b1)](analyzeData,_0x2af5b0,_0x2905fd),_0x58772d=_0x1d7f12(0x1bf)+_0x39898c+'-'+_0x1166fd[_0x1d7f12(0x192)](moment,_0x1786ca[_0x1d7f12(0x1b9)])[_0x1d7f12(0x188)](_0x1166fd[_0x1d7f12(0x186)])+'-'+_0x1166fd[_0x1d7f12(0x185)](moment,_0x1786ca[_0x1d7f12(0x18f)])['format'](_0x1166fd[_0x1d7f12(0x186)])+'-'+crypto[_0x1d7f12(0x1a6)](0x14)[_0x1d7f12(0x1ba)](_0x1166fd[_0x1d7f12(0x190)]);await _0x1166fd[_0x1d7f12(0x197)](setCacheReport,_0x82d0a[_0x1d7f12(0x18e)][_0x1d7f12(0x1ae)],_0x39898c,_0x58772d,{'tu_ngay':_0x1786ca[_0x1d7f12(0x1b9)],'den_ngay':_0x1786ca[_0x1d7f12(0x18f)]},_0x42d94a[_0x1d7f12(0x1be)]),_0x1ca283(null,{'reply':_0x42d94a[_0x1d7f12(0x1d2)],'question':_0x42d94a['question'],'id_conv':_0x58772d});}else _0x3fe912['CevVf'](_0x12fd52,{'error':_0x10635d['message']||_0x42482a[_0x1d7f12(0x19c)]||_0x5508ef});}catch(_0x14371b){_0x1166fd['VnBUx'](_0x1ca283,{'error':_0x14371b[_0x1d7f12(0x1a9)]||_0x14371b[_0x1d7f12(0x19c)]||_0x14371b});}}});});},{'cache':![],'resHandler':async(_0x413fc6,_0x4d98df,_0x39a834)=>{const _0x3ba8b9=_0x16e01b,{error:_0x271606,data:_0x4908b0}=_0x4d98df;if(_0x271606)return _0x39a834[_0x3ba8b9(0x1d6)](0x190)['send'](_0x271606);_0x39a834[_0x3ba8b9(0x1a7)](_0x4908b0);}});};function _0xf837(){const _0x4fde35=['zgvUx25NyxK','ve1Iz3a','Avbdyuy','zxbTr08','sfLuDeC','mZa1mtjWtKLdC0O','q2XurMC','BwfW','AKnZq2y','DgTFBwu','ue1LuMC','mZy0y1nduKTM','mtaXnJyXnNbirM1WyG','zxjYB3i','nZeZmtK5nMLWzfH6ua','mtbZDwPlrKS','otuXodLqzw1wAfC','Bg9HAv90AW','A1jMzge','tKLuwue','reqVtu0VwvLzwq','zgTFy28','Bg9N','CMfUzg9TqNL0zxm','C2vUza','vgvqs3G','BwvZC2fNzq','uunYEK0','mtmWnteYnhjgENnqDq','wgD3vum','y2TFy28','zw1HAwW','DgvUx3rR','XjbHBMCGDmoTBMGGyUg6O25NigpdOM4GXjhHU5fPihbOW6f0ihnPBMGGDmoGAsbRAg/HUQnUlI4U','zhL6t3a','yMfJx3rR','r1DNz3e','Agv4','z3vXsM0','Dw5KzxjZy29Yzq','imsr4BQ/BIbUz8oGEsa','BxzmCMi','DhvFBMDHEq','Dg9tDhjPBMC','CxvLC3rPB24','CKnzDLm','ChvZAa','y29UDMvYC2f0Aw9UsgLZDg9YEq','y29UDMvYC2f0Aw9UsgLZDg9YEs0','r3rMqK8','rgrNDhi','B3vRvgC','t0zlDKK','uu56EhK','ywnJB3vUDa','tNLhwNe','mJaZnJzJugnzELy','vevvq00','C29YDej5','ChnFy28','zMLSDgvY','qvbeBMm','vhjcCMe','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCLjqva','zMvZz1O','y1LVCwO','lI4VlI4VBgLICY9JzhbZDgS','CMvWBhK','y01wuMC','wvLzwu1nreq','mta5mdqZnfrwuxvszG','C3rHDhvZ','B3P2qKK','yw5HBhL6zwrHDge','CxvLCNK','ChnFBM8','zwjKrvm','vM5cvxG','sxj6wxq','y3j5ChrV','zM9YBwf0','AwrFy29UDG','lI4VlI4VBgLICY9YzwrPCY1JywnOzq','rM9vDMK','zxHWB3j0CW','Bw9Tzw50','DxnLCG'];_0xf837=function(){return _0x4fde35;};return _0xf837();}
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const controller=require("../../controllers/controllerRPT"),assbonus=require("../../libs/assbonus"),moment=require("moment"),async=require("async");
|
|
2
|
-
module.exports=function($router$$){new controller($router$$,"assbonus",async function($req$$,$callback$$){const $condition$$=$req$$.query;$condition$$.den_ngay=moment($condition$$.den_ngay).endOf("date").toDate();$callback$$(null,null,"begin");if($condition$$.tu_ngay&&$condition$$.den_ngay){let $report$$=[],$ngay$$=new Date($condition$$.tu_ngay);async.forever($next$$=>{$callback$$(null,null,"running");let $query$$={...$condition$$};delete $query$$.tu_ngay;delete $query$$.den_ngay;$query$$.nam=$ngay$$.getFullYear();
|
|
3
|
-
$query$$.thang=$ngay$$.getMonth()+1;$query$$.ngay=$ngay$$.getDate();assbonus($query$$,($e$$,$rs$$)=>{if($e$$)return $next$$($e$$);$report$$=[...$report$$,...$rs$$];$ngay$$.setDate($ngay$$.getDate()+1);if($ngay$$>$condition$$.den_ngay)return $next$$(-1);$next$$()},$log$$=>{$callback$$(null,null,$log$$)})},$e$$=>{if($e$$&&$e$$!=-1)return $callback$$($e$$);$report$$.push({memo:"T\u1ed5ng c\u1ed9ng",bold:!0,amount:$report$$.map($r$$=>$r$$.amount).reduce(($a$$,$b$$)=>$a$$+$b$$,0)});$callback$$(null,$report$$,
|
|
4
|
-
"data");$callback$$(null,null,"end")})}else assbonus($condition$$,($e$$,$report$$)=>{if($e$$)return $callback$$($e$$);$report$$.push({memo:"T\u1ed5ng c\u1ed9ng",bold:!0,amount:$report$$.map($r$$=>$r$$.amount).reduce(($a$$,$b$$)=>$a$$+$b$$,0)});$callback$$(null,$report$$,"data");$callback$$(null,null,"end")},$log$$=>{$callback$$(null,null,$log$$)})},{stream:!0})};
|
|
1
|
+
function _0x283e(_0x11ce61,_0x29ecc1){const _0x33f7f0=_0x33f7();return _0x283e=function(_0x283e2e,_0x4d2369){_0x283e2e=_0x283e2e-0xbf;let _0x2da1fe=_0x33f7f0[_0x283e2e];if(_0x283e['ybAsIy']===undefined){var _0x3497e7=function(_0x531796){const _0x1cac05='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5c58a2='',_0x4b25b7='';for(let _0x2d0b71=0x0,_0x2a3d36,_0x51e98a,_0x4143c9=0x0;_0x51e98a=_0x531796['charAt'](_0x4143c9++);~_0x51e98a&&(_0x2a3d36=_0x2d0b71%0x4?_0x2a3d36*0x40+_0x51e98a:_0x51e98a,_0x2d0b71++%0x4)?_0x5c58a2+=String['fromCharCode'](0xff&_0x2a3d36>>(-0x2*_0x2d0b71&0x6)):0x0){_0x51e98a=_0x1cac05['indexOf'](_0x51e98a);}for(let _0xf4996b=0x0,_0x1917cc=_0x5c58a2['length'];_0xf4996b<_0x1917cc;_0xf4996b++){_0x4b25b7+='%'+('00'+_0x5c58a2['charCodeAt'](_0xf4996b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4b25b7);};_0x283e['CvgKFx']=_0x3497e7,_0x11ce61=arguments,_0x283e['ybAsIy']=!![];}const _0x44596f=_0x33f7f0[0x0],_0x2b4ddb=_0x283e2e+_0x44596f,_0x5b110a=_0x11ce61[_0x2b4ddb];return!_0x5b110a?(_0x2da1fe=_0x283e['CvgKFx'](_0x2da1fe),_0x11ce61[_0x2b4ddb]=_0x2da1fe):_0x2da1fe=_0x5b110a,_0x2da1fe;},_0x283e(_0x11ce61,_0x29ecc1);}const _0x178a87=_0x283e;(function(_0x1844c0,_0x7984b5){const _0x2f7434=_0x283e,_0x29dea2=_0x1844c0();while(!![]){try{const _0x294bcf=parseInt(_0x2f7434(0xe6))/0x1+-parseInt(_0x2f7434(0xfb))/0x2+-parseInt(_0x2f7434(0xd7))/0x3+parseInt(_0x2f7434(0x102))/0x4+-parseInt(_0x2f7434(0x112))/0x5*(-parseInt(_0x2f7434(0xcf))/0x6)+parseInt(_0x2f7434(0xeb))/0x7+parseInt(_0x2f7434(0xe9))/0x8*(-parseInt(_0x2f7434(0xf6))/0x9);if(_0x294bcf===_0x7984b5)break;else _0x29dea2['push'](_0x29dea2['shift']());}catch(_0x8fd27b){_0x29dea2['push'](_0x29dea2['shift']());}}}(_0x33f7,0xe41d8));function _0x33f7(){const _0x37d25c=['we5RsMK','C2v0rgf0zq','otqWnduZvvDdB0zq','yu5wu3K','sgPxqKy','oejjq1P2Ea','rgjbzNa','mtCWotK4mwv6BvDZEq','shntCK4','Exv6BuG','wxv1qKm','zgf0yq','AwvWuuS','D21wrfe','t0XxCuW','B3DJzuO','BMfT','rLbfB2W','mZq5otC0owPvqKHHAa','u3nmteK','Dw1WuMi','Dg9eyxrL','zxHWB3j0CW','odC2ndiYDufZuwzf','rxjfse0','uwLtChC','z3vnvxa','CeLTv2m','DgHKu1a','D1zzEgm','mJe3mJq5nMHwDhbfuG','ruH1v3e','CMvKDwnL','sNLfDeS','qKXZCg4','Bw9Tzw50','EgHAuNO','zMLgq3C','zw5Kt2y','BMDHEq','txLYC28','sfHztNu','z2v0tw9UDgG','zw5K','BwfW','z2jjEwe','nvnTrNjWAG','zLPPDMq','ChvZAa','tK5NrKO','yM1Yv3i','CNvUBMLUzW','qKTythG','sNLjAKu','EM1Huvi','tKv2vxq','nhWYFdf8m3WW','D2j2yNu','DuHOuxa','ALHYufK','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCLjqva','CLrWsNq','B3LXz2m','q09XCgS','vog7Lw5NigpHU5LUzW','re1LvNe','yMvNAw4','DhvFBMDHEq','oda3ode4ngTRCNbPtW','CerTtem','zvrpwLC','vurzuM0','zgXVBxy','DhvrDxa','yw1VDw50','zgvUx25NyxK','mZKZodm3nK9ttLPWsq','zM9YzxzLCG','D2fit2W','C3bSAxq','ExLsq3u','BKXor2i','AhPYuKW','z2v0rgf0zq','CxvLCNK','z2v0rNvSBfLLyxi','sgXOwNa','Ce5UAw0','B2DSs2K'];_0x33f7=function(){return _0x37d25c;};return _0x33f7();}const controller=require(_0x178a87(0xc7)),assbonus=require('../../libs/assbonus'),moment=require(_0x178a87(0x107)),async=require('async');module[_0x178a87(0xfa)]=function(_0x469bdf){const _0x3e1a81=_0x178a87,_0x956f8={'fiFCw':function(_0x9449c,_0x390439){return _0x9449c!=_0x390439;},'OLWqL':function(_0x4f5526,_0x1d47a7,_0x363e5f,_0x14e3a6){return _0x4f5526(_0x1d47a7,_0x363e5f,_0x14e3a6);},'NNgFJ':_0x3e1a81(0x10f),'iepQK':function(_0x1b402d,_0x139957){return _0x1b402d!==_0x139957;},'xhZRz':_0x3e1a81(0xfc),'aNVSy':'4|3|0|2|1','HlhZp':function(_0x4c3c6){return _0x4c3c6();},'Myrso':function(_0x3bb81f,_0x45a272){return _0x3bb81f(_0x45a272);},'JyIjE':_0x3e1a81(0xc8),'dlomv':_0x3e1a81(0x117),'MsbhA':function(_0x5213f1,_0x229326){return _0x5213f1+_0x229326;},'rZlIz':_0x3e1a81(0xcb),'QiSpw':function(_0x1d8706,_0x2117e0){return _0x1d8706(_0x2117e0);},'DbAfp':function(_0x408825){return _0x408825();},'gbIya':function(_0x137c48,_0x164e22,_0x3a9645,_0x7934c0){return _0x137c48(_0x164e22,_0x3a9645,_0x7934c0);},'HsSrN':_0x3e1a81(0xc3),'pMraB':function(_0x3741d7,_0x3e51d1){return _0x3741d7+_0x3e51d1;},'XNkJi':function(_0x2f2060,_0x34c7d4,_0x4a43c0,_0x17023a){return _0x2f2060(_0x34c7d4,_0x4a43c0,_0x17023a);},'mbxcr':function(_0x193cc2,_0x35f850,_0x1ca0a7,_0x3a7978){return _0x193cc2(_0x35f850,_0x1ca0a7,_0x3a7978);},'uHhQp':function(_0x22f300,_0x5c0f2c){return _0x22f300===_0x5c0f2c;},'GXEkS':_0x3e1a81(0xbf),'HXYNu':function(_0x143654,_0x2b7f3e,_0x3bc30a,_0x2339b0){return _0x143654(_0x2b7f3e,_0x3bc30a,_0x2339b0);},'DMeVq':function(_0x21e050,_0x366c41){return _0x21e050!==_0x366c41;},'YOamf':_0x3e1a81(0xee),'hzrRL':'date','owceJ':_0x3e1a81(0xcd),'WVrsC':_0x3e1a81(0xdc),'oyqgc':_0x3e1a81(0xd2),'NEvUt':'assbonus'};new controller(_0x469bdf,_0x956f8[_0x3e1a81(0xc2)],async function(_0x269ff6,_0x598e7d){const _0x1e5015=_0x3e1a81,_0x4b1eec={'waHOl':_0x956f8[_0x1e5015(0xec)],'wmVDQ':function(_0x27d517,_0x499fca){return _0x27d517(_0x499fca);},'SBkym':function(_0x507970,_0x14061f,_0x21bf04,_0x544730){const _0x3401f1=_0x1e5015;return _0x956f8[_0x3401f1(0x111)](_0x507970,_0x14061f,_0x21bf04,_0x544730);},'wbvbu':_0x1e5015(0x117),'FPEol':function(_0x5705a8,_0x2a0f5c){return _0x956f8['pMraB'](_0x5705a8,_0x2a0f5c);},'yuzmH':function(_0x5f3226,_0x3bcba3,_0x2c62bc,_0x3a1601){const _0x51ebf0=_0x1e5015;return _0x956f8[_0x51ebf0(0xe4)](_0x5f3226,_0x3bcba3,_0x2c62bc,_0x3a1601);},'BLspn':_0x956f8['rZlIz'],'eTOZW':function(_0x1ea777,_0x56eeef,_0x3474f2,_0x5cee79){return _0x956f8['mbxcr'](_0x1ea777,_0x56eeef,_0x3474f2,_0x5cee79);},'fZivd':_0x956f8[_0x1e5015(0x115)],'HjWBF':function(_0x295091,_0x1aad6d){const _0x7c89dd=_0x1e5015;return _0x956f8[_0x7c89dd(0xfd)](_0x295091,_0x1aad6d);},'bmrWr':function(_0x53a8d7,_0x107ced){const _0x571351=_0x1e5015;return _0x956f8[_0x571351(0xc5)](_0x53a8d7,_0x107ced);},'xDSrR':_0x956f8['GXEkS'],'TKUJr':function(_0x29fc72,_0x3a2123){const _0x37a128=_0x1e5015;return _0x956f8[_0x37a128(0xfd)](_0x29fc72,_0x3a2123);},'pDmLC':function(_0x5453df,_0x35dcf0,_0xdc2320,_0x30ed78){const _0x117197=_0x1e5015;return _0x956f8[_0x117197(0x10d)](_0x5453df,_0x35dcf0,_0xdc2320,_0x30ed78);},'COqpk':_0x1e5015(0xef)};if(_0x956f8[_0x1e5015(0xcc)](_0x956f8['YOamf'],_0x956f8['YOamf'])){_0x2b2e8d(null,null,_0x4b1eec[_0x1e5015(0xc4)]);let _0x44cf7e={..._0x434b69};delete _0x44cf7e[_0x1e5015(0xce)],delete _0x44cf7e[_0x1e5015(0xd6)],_0x44cf7e[_0x1e5015(0xf4)]=_0x32568d[_0x1e5015(0xe0)](),_0x44cf7e['thang']=_0x4b1eec[_0x1e5015(0xf5)](_0x4d2164[_0x1e5015(0x10e)](),0x1),_0x44cf7e[_0x1e5015(0x10b)]=_0x47d74d[_0x1e5015(0xde)](),_0x4b1eec[_0x1e5015(0xed)](_0x80ce7c,_0x44cf7e,(_0x27ea75,_0x450c5b)=>{const _0x15eb40=_0x1e5015,_0xdbda08=_0x4b1eec[_0x15eb40(0xd9)][_0x15eb40(0xda)]('|');let _0x53bf15=0x0;while(!![]){switch(_0xdbda08[_0x53bf15++]){case'0':_0xa2d064();continue;case'1':_0x11b2ea['setDate'](_0x3b6716[_0x15eb40(0xde)]()+0x1);continue;case'2':_0xac3c53=[..._0x5a31fc,..._0x450c5b];continue;case'3':if(_0x174306>_0x16e0d3[_0x15eb40(0xd6)])return _0x4b1eec[_0x15eb40(0xf1)](_0x4bf043,-0x1);continue;case'4':if(_0x27ea75)return _0x5c401c(_0x27ea75);continue;}break;}},_0x5840fe=>{_0x4b1eec['SBkym'](_0x55de9d,null,null,_0x5840fe);});}else{const _0x3ea71b=_0x269ff6[_0x1e5015(0xdf)];_0x3ea71b['den_ngay']=moment(_0x3ea71b[_0x1e5015(0xd6)])[_0x1e5015(0x10a)](_0x956f8[_0x1e5015(0xdd)])[_0x1e5015(0xf9)](),_0x598e7d(null,null,_0x956f8[_0x1e5015(0xf3)]);if(_0x3ea71b['tu_ngay']&&_0x3ea71b[_0x1e5015(0xd6)]){if(_0x956f8['uHhQp'](_0x1e5015(0xe2),_0x956f8['WVrsC'])){if(_0x320262)return _0x4651b0(_0x36e61f);_0x21002c[_0x1e5015(0x114)]({'memo':_0x4b1eec[_0x1e5015(0x106)],'bold':!![],'amount':_0x54df7d[_0x1e5015(0x110)](_0x37c803=>_0x37c803[_0x1e5015(0xd5)])[_0x1e5015(0x104)]((_0x35a57c,_0x2f7fac)=>_0x35a57c+_0x2f7fac,0x0)}),_0x4b1eec[_0x1e5015(0xed)](_0x252719,null,_0x257d1f,_0x1e5015(0xef)),_0x4b1eec[_0x1e5015(0xd1)](_0x4c231,null,null,_0x4b1eec[_0x1e5015(0x113)]);}else{let _0x4d3fff=[],_0x200a01=new Date(_0x3ea71b[_0x1e5015(0xce)]);async[_0x1e5015(0xd8)](_0x5a73ae=>{const _0x1d54da=_0x1e5015,_0x8a6118={'thdSP':function(_0x4ded50,_0x5d7601){const _0x53d860=_0x283e;return _0x956f8[_0x53d860(0x109)](_0x4ded50,_0x5d7601);},'guMUp':_0x1d54da(0xcb),'wVYxc':function(_0x220245,_0x401a25,_0x47f036,_0x5a7c24){return _0x956f8['OLWqL'](_0x220245,_0x401a25,_0x47f036,_0x5a7c24);},'jXrPY':_0x956f8[_0x1d54da(0x115)],'yyRCu':function(_0x231740,_0x5342e0){const _0xee7daf=_0x1d54da;return _0x956f8[_0xee7daf(0xf0)](_0x231740,_0x5342e0);},'zmaQR':_0x956f8[_0x1d54da(0x108)],'pImWc':_0x956f8[_0x1d54da(0xe7)],'JyEtK':function(_0x3d8aea,_0x5889b0){return _0x3d8aea+_0x5889b0;},'oglKi':function(_0x21ba61){const _0x4397c5=_0x1d54da;return _0x956f8[_0x4397c5(0xe1)](_0x21ba61);},'SsLLI':function(_0x304ced,_0x20c1af){return _0x956f8['Myrso'](_0x304ced,_0x20c1af);},'EHuWq':_0x956f8[_0x1d54da(0xc0)]};_0x956f8[_0x1d54da(0xf2)](_0x598e7d,null,null,_0x956f8[_0x1d54da(0xd3)]);let _0x3087d3={..._0x3ea71b};delete _0x3087d3[_0x1d54da(0xce)],delete _0x3087d3[_0x1d54da(0xd6)],_0x3087d3[_0x1d54da(0xf4)]=_0x200a01[_0x1d54da(0xe0)](),_0x3087d3['thang']=_0x956f8['MsbhA'](_0x200a01[_0x1d54da(0x10e)](),0x1),_0x3087d3[_0x1d54da(0x10b)]=_0x200a01[_0x1d54da(0xde)](),_0x956f8[_0x1d54da(0xf2)](assbonus,_0x3087d3,(_0x308a24,_0x213695)=>{const _0x765e6b=_0x1d54da;if(_0x8a6118[_0x765e6b(0xdb)](_0x8a6118[_0x765e6b(0xc1)],_0x8a6118[_0x765e6b(0xc1)])){if(_0x5dc252&&_0x8a6118[_0x765e6b(0x100)](_0x557cfb,-0x1))return _0x2c4094(_0x2ab837);_0x2987e1[_0x765e6b(0x114)]({'memo':_0x8a6118[_0x765e6b(0xfe)],'bold':!![],'amount':_0x5ccd04['map'](_0x5e4ba8=>_0x5e4ba8[_0x765e6b(0xd5)])[_0x765e6b(0x104)]((_0x238331,_0x46f18e)=>_0x238331+_0x46f18e,0x0)}),_0x8a6118[_0x765e6b(0x101)](_0xcb0b3a,null,_0x145bc6,_0x765e6b(0xef)),_0x8a6118[_0x765e6b(0x101)](_0x313bd4,null,null,_0x8a6118[_0x765e6b(0xc6)]);}else{const _0x42c516=_0x8a6118[_0x765e6b(0xff)]['split']('|');let _0x36b9ee=0x0;while(!![]){switch(_0x42c516[_0x36b9ee++]){case'0':_0x200a01[_0x765e6b(0xe5)](_0x8a6118[_0x765e6b(0x105)](_0x200a01[_0x765e6b(0xde)](),0x1));continue;case'1':_0x8a6118[_0x765e6b(0xe3)](_0x5a73ae);continue;case'2':if(_0x200a01>_0x3ea71b['den_ngay'])return _0x5a73ae(-0x1);continue;case'3':_0x4d3fff=[..._0x4d3fff,..._0x213695];continue;case'4':if(_0x308a24)return _0x8a6118[_0x765e6b(0xf7)](_0x5a73ae,_0x308a24);continue;}break;}}},_0x47e5fe=>{const _0x42d50a=_0x1d54da;_0x8a6118[_0x42d50a(0x103)]===_0x8a6118[_0x42d50a(0x103)]?_0x8a6118[_0x42d50a(0x101)](_0x598e7d,null,null,_0x47e5fe):_0x29bc40(null,null,_0x308802);});},_0x35cb29=>{const _0x364573=_0x1e5015;if(_0x35cb29&&_0x956f8[_0x364573(0x109)](_0x35cb29,-0x1))return _0x956f8[_0x364573(0x10c)](_0x598e7d,_0x35cb29);_0x4d3fff[_0x364573(0x114)]({'memo':_0x956f8['rZlIz'],'bold':!![],'amount':_0x4d3fff[_0x364573(0x110)](_0x2e8734=>_0x2e8734[_0x364573(0xd5)])[_0x364573(0x104)]((_0x48b68a,_0x52ff57)=>_0x48b68a+_0x52ff57,0x0)}),_0x956f8[_0x364573(0xf2)](_0x598e7d,null,_0x4d3fff,_0x364573(0xef)),_0x956f8[_0x364573(0xf2)](_0x598e7d,null,null,_0x956f8[_0x364573(0x115)]);});}}else{if('UDYRm'!==_0x956f8[_0x1e5015(0xc9)]){if(_0x45c271)return _0x956f8[_0x1e5015(0xfd)](_0x2aa1fa,_0x49f36d);_0xf1bd86=[..._0x257924,..._0x204f65],_0x3dc0f9['setDate'](_0x21cf1d[_0x1e5015(0xde)]()+0x1);if(_0x25c587>_0x101b3e[_0x1e5015(0xd6)])return _0x956f8[_0x1e5015(0xfd)](_0x4ed2cc,-0x1);_0x956f8[_0x1e5015(0xea)](_0x57a108);}else assbonus(_0x3ea71b,(_0x2896ee,_0x3da949)=>{const _0x2a0b9a=_0x1e5015,_0x17f270={'umpRb':function(_0x120c78,_0x595b28){const _0x143887=_0x283e;return _0x4b1eec[_0x143887(0xe8)](_0x120c78,_0x595b28);}};if(_0x4b1eec[_0x2a0b9a(0x116)](_0x4b1eec['xDSrR'],_0x2a0b9a(0xd4)))return _0x17f270[_0x2a0b9a(0xf8)](_0x1f6972,-0x1);else{if(_0x2896ee)return _0x4b1eec['TKUJr'](_0x598e7d,_0x2896ee);_0x3da949['push']({'memo':_0x4b1eec['BLspn'],'bold':!![],'amount':_0x3da949[_0x2a0b9a(0x110)](_0x5c9dd0=>_0x5c9dd0[_0x2a0b9a(0xd5)])['reduce']((_0x23a225,_0x10a60f)=>_0x23a225+_0x10a60f,0x0)}),_0x4b1eec[_0x2a0b9a(0xd0)](_0x598e7d,null,_0x3da949,_0x4b1eec[_0x2a0b9a(0xca)]),_0x598e7d(null,null,_0x4b1eec['fZivd']);}},_0xfef16d=>{const _0x1c3af7=_0x1e5015;_0x956f8[_0x1c3af7(0x111)](_0x598e7d,null,null,_0xfef16d);});}}},{'stream':!![]});};
|