flexbiz-server 12.4.21 → 12.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/server/app.js +1 -22
- package/server/auths/bearer.js +1 -3
- package/server/auths/facebook.js +1 -12
- package/server/auths/google.js +1 -13
- package/server/auths/local.js +1 -64
- package/server/cluster.js +1 -27
- package/server/controllers/controller.js +1 -107
- package/server/controllers/controllerRPT.js +1 -27
- package/server/controllers/controllerUtils.js +1 -76
- package/server/controllers/createHandler.js +1 -35
- package/server/controllers/createRouteHandler.js +1 -4
- package/server/controllers/deleteHandler.js +1 -11
- package/server/controllers/deleteManyHandler.js +1 -2
- package/server/controllers/exportHandler.js +1 -17
- package/server/controllers/findHandler.js +1 -53
- package/server/controllers/handlers.js +1 -3
- package/server/controllers/historyHandler.js +1 -5
- package/server/controllers/importFromExcelHandler.js +1 -14
- package/server/controllers/importFromGsHandler.js +1 -10
- package/server/controllers/importFromJsonHandler.js +1 -7
- package/server/controllers/importHandler.js +1 -21
- package/server/controllers/logHandler.js +1 -5
- package/server/controllers/rptCreateRouteHandler.js +1 -4
- package/server/controllers/rptExcelHandler.js +1 -32
- package/server/controllers/rptHandler.js +1 -13
- package/server/controllers/updateBookHandler.js +1 -10
- package/server/controllers/updateFieldHandler.js +1 -12
- package/server/controllers/updateHandler.js +1 -39
- package/server/controllers/updateKeyHandler.js +1 -14
- package/server/controllers/viewHandler.js +1 -13
- package/server/flow/FlowEngine.js +1 -64
- package/server/flow/WebhookManager.js +1 -26
- package/server/flow/handlers.js +1 -3
- package/server/flow/nodes/aiAnalysis.js +1 -9
- package/server/flow/nodes/customer.js +1 -15
- package/server/flow/nodes/data.js +1 -14
- package/server/flow/nodes/debug.js +1 -2
- package/server/flow/nodes/delay.js +1 -3
- package/server/flow/nodes/email.js +1 -9
- package/server/flow/nodes/event.js +1 -11
- package/server/flow/nodes/facebook.js +1 -3
- package/server/flow/nodes/facebookConversations.js +1 -5
- package/server/flow/nodes/facebookCreatePost.js +1 -10
- package/server/flow/nodes/facebookSendMessage.js +1 -12
- package/server/flow/nodes/forEachItem.js +1 -8
- package/server/flow/nodes/function.js +1 -4
- package/server/flow/nodes/httprequest.js +1 -7
- package/server/flow/nodes/inject.js +1 -12
- package/server/flow/nodes/pushNotification.js +1 -5
- package/server/flow/nodes/report.js +1 -6
- package/server/flow/nodes/saveData.js +1 -2
- package/server/flow/nodes/switch.js +1 -20
- package/server/flow/nodes/webhook.js +1 -1
- package/server/flow/nodes/zaloSendMessage.js +1 -4
- package/server/flow/utils.js +1 -2
- package/server/global.js +1 -23
- package/server/libs/BlockchainTransactionPool.js +1 -3
- package/server/libs/WorkerPool.js +1 -4
- package/server/libs/WorkerStaticPool.js +1 -16
- package/server/libs/WorkerStaticPool_v1.js +1 -5
- package/server/libs/assbonus.js +1 -7
- package/server/libs/backup.js +1 -2
- package/server/libs/blockchainconnect.js +1 -12
- package/server/libs/cdpsdiem.js +1 -5
- package/server/libs/cdpsdt.js +1 -7
- package/server/libs/cdpskh.js +1 -9
- package/server/libs/cdpsnphep.js +1 -6
- package/server/libs/cdpstk.js +1 -11
- package/server/libs/ckcn.js +1 -12
- package/server/libs/ckdiem.js +1 -5
- package/server/libs/ckdt.js +1 -6
- package/server/libs/cknphep.js +1 -6
- package/server/libs/cktk.js +1 -4
- package/server/libs/cktt.js +1 -9
- package/server/libs/ckvt.js +1 -12
- package/server/libs/ckvtcapphat.js +1 -6
- package/server/libs/ckvtnpp.js +1 -8
- package/server/libs/ckvttt.js +1 -11
- package/server/libs/createSocaitheongay.js +1 -9
- package/server/libs/ctdiem.js +1 -5
- package/server/libs/ctvt.js +1 -7
- package/server/libs/ctvtnpp.js +1 -7
- package/server/libs/ctvttt.js +1 -7
- package/server/libs/databanle.js +1 -17
- package/server/libs/databanlenpp.js +1 -8
- package/server/libs/databanletheongay.js +1 -27
- package/server/libs/dkcn.js +1 -10
- package/server/libs/dkdiem.js +1 -5
- package/server/libs/dkdt.js +1 -6
- package/server/libs/dknphep.js +1 -7
- package/server/libs/dktk.js +1 -4
- package/server/libs/dktt.js +1 -8
- package/server/libs/dkvt.js +1 -9
- package/server/libs/dkvtnpp.js +1 -7
- package/server/libs/dkvttt.js +1 -7
- package/server/libs/dncn.js +1 -6
- package/server/libs/dntk.js +1 -4
- package/server/libs/dntt.js +1 -6
- package/server/libs/docs.js +1 -452
- package/server/libs/dstkcn.js +1 -1
- package/server/libs/dstktt.js +1 -1
- package/server/libs/dtbanletheonpp.js +1 -17
- package/server/libs/dtbanletheosp.js +1 -15
- package/server/libs/dtbanletheospnpp.js +1 -15
- package/server/libs/email.js +1 -3
- package/server/libs/excel.js +1 -2
- package/server/libs/getGiaban.js +1 -67
- package/server/libs/getGiabanAsync.js +1 -1
- package/server/libs/getNotifies.js +1 -1
- package/server/libs/htmlReport.js +1 -9
- package/server/libs/initDatabase.js +1 -9
- package/server/libs/invoiceEasy.js +1 -109
- package/server/libs/invoiceViettel.js +1 -29
- package/server/libs/invoiceVnpt.js +1 -22
- package/server/libs/kpistatus.js +1 -32
- package/server/libs/load-template.js +1 -3
- package/server/libs/mailmanagement.js +1 -13
- package/server/libs/mongooseDeletePost.js +1 -6
- package/server/libs/mongooseLeanId.js +1 -1
- package/server/libs/mongoosePatch.js +1 -8
- package/server/libs/onepay-payment.js +1 -4
- package/server/libs/optimizeBookkeeping.js +1 -14
- package/server/libs/parse-template.js +1 -5
- package/server/libs/permission.js +1 -51
- package/server/libs/phanbokh.js +1 -3
- package/server/libs/post-book.js +1 -23
- package/server/libs/post-socai.js +1 -25
- package/server/libs/post-sokho.js +1 -27
- package/server/libs/prototypes.js +1 -29
- package/server/libs/psdt.js +1 -1
- package/server/libs/pskh.js +1 -1
- package/server/libs/pstk.js +1 -1
- package/server/libs/redis-cache.js +1 -17
- package/server/libs/restore.js +1 -1
- package/server/libs/schedule.js +1 -18
- package/server/libs/sessionContext.js +2 -14
- package/server/libs/textReport.js +1 -3
- package/server/libs/thnxt.js +1 -9
- package/server/libs/thnxtnpp.js +1 -9
- package/server/libs/thnxttt.js +1 -8
- package/server/libs/tinhGt.js +1 -7
- package/server/libs/tinhGtCapnhatPNK.js +1 -7
- package/server/libs/tinhGtPhanboHeSo.js +1 -12
- package/server/libs/tinhGtPhanboSltp.js +1 -10
- package/server/libs/tinhGtPhanboYtcp.js +1 -11
- package/server/libs/tinhGtSltk.js +1 -9
- package/server/libs/tinhGtThcppstk.js +1 -10
- package/server/libs/tinhGtTrucTiep.js +1 -7
- package/server/libs/tinhGtXoa.js +1 -3
- package/server/libs/tinhgiatb.js +1 -38
- package/server/libs/tinhgiatb1vt.js +1 -5
- package/server/libs/tinhhoahong.js +1 -64
- package/server/libs/tinhhoahongnpp.js +1 -46
- package/server/libs/tinhkhauhao1ts.js +1 -12
- package/server/libs/tinhkhauhaots.js +1 -8
- package/server/libs/tuoinophaithu.js +1 -10
- package/server/libs/tuoinophaitra.js +1 -11
- package/server/libs/utils.js +1 -78
- package/server/libs/validate.js +1 -4
- package/server/libs/validator-acc-cust.js +1 -1
- package/server/libs/validator-account.js +1 -4
- package/server/libs/validator-vt.js +1 -2
- package/server/libs/validator.js +1 -11
- package/server/libs/vsocai.js +1 -8
- package/server/models/account.js +1 -7
- package/server/models/afflink.js +1 -2
- package/server/models/app.js +1 -15
- package/server/models/approve.js +1 -93
- package/server/models/assabcihandler.js +1 -35
- package/server/models/assbank.js +1 -19
- package/server/models/assbooking.js +1 -4
- package/server/models/assbuy.js +1 -3
- package/server/models/asscashwithdraw.js +1 -4
- package/server/models/assfindhash.js +1 -2
- package/server/models/assinvestment.js +1 -13
- package/server/models/assissue.js +1 -2
- package/server/models/asskey.js +1 -15
- package/server/models/assneedtobuy.js +1 -6
- package/server/models/assperiod.js +1 -7
- package/server/models/assproduct.js +1 -13
- package/server/models/assprofitsharing.js +1 -4
- package/server/models/assreceiver.js +1 -2
- package/server/models/assrequest.js +1 -11
- package/server/models/asssell.js +1 -7
- package/server/models/asstransaction.js +1 -3
- package/server/models/asstransfer.js +1 -4
- package/server/models/assuser_identity.js +1 -4
- package/server/models/asswithdraw.js +1 -4
- package/server/models/attend.js +1 -2
- package/server/models/banggiaban.js +1 -8
- package/server/models/bangtinhluong.js +1 -6
- package/server/models/base.js +1 -1
- package/server/models/bds_area.js +1 -4
- package/server/models/bds_block.js +1 -3
- package/server/models/bds_building.js +1 -4
- package/server/models/bds_floor.js +1 -3
- package/server/models/bds_floordetail.js +1 -9
- package/server/models/bds_nhadat.js +1 -11
- package/server/models/bds_nhomnhadat.js +1 -4
- package/server/models/bds_phanloainhadat.js +1 -3
- package/server/models/bg1.js +1 -9
- package/server/models/bg2.js +1 -10
- package/server/models/cache.js +1 -3
- package/server/models/calllog.js +1 -4
- package/server/models/campaign.js +1 -6
- package/server/models/cart.js +1 -5
- package/server/models/cddiem.js +1 -2
- package/server/models/cddt.js +1 -3
- package/server/models/cdkh.js +1 -5
- package/server/models/cdkhtheongay.js +1 -5
- package/server/models/cdnphep.js +1 -2
- package/server/models/cdtk.js +1 -3
- package/server/models/cdtktheongay.js +1 -3
- package/server/models/cdvt.js +1 -5
- package/server/models/cdvtnpp.js +1 -6
- package/server/models/cdvttheongay.js +1 -5
- package/server/models/chamcong.js +1 -7
- package/server/models/checkin.js +1 -4
- package/server/models/checkinactivity.js +1 -3
- package/server/models/checkinkpi.js +1 -4
- package/server/models/checkinlocation.js +1 -2
- package/server/models/chitieukpi.js +1 -3
- package/server/models/chudethaoluan.js +1 -3
- package/server/models/ckgtluong.js +1 -2
- package/server/models/colleague.js +1 -2
- package/server/models/comment.js +1 -4
- package/server/models/congdoansx.js +1 -4
- package/server/models/congtacvien.js +1 -4
- package/server/models/congthuctinhgiaban.js +1 -8
- package/server/models/consultant.js +1 -4
- package/server/models/contract.js +1 -6
- package/server/models/counter.js +1 -2
- package/server/models/ctds.js +1 -5
- package/server/models/ctds2.js +1 -6
- package/server/models/currency.js +1 -3
- package/server/models/customer.js +1 -31
- package/server/models/databanle.js +1 -8
- package/server/models/datlich.js +1 -4
- package/server/models/department.js +1 -4
- package/server/models/dh2.js +1 -20
- package/server/models/diagram.js +1 -2
- package/server/models/dinhmucsx.js +1 -8
- package/server/models/dkhoc.js +1 -6
- package/server/models/dknphep.js +1 -2
- package/server/models/dmban.js +1 -4
- package/server/models/dmbp.js +1 -12
- package/server/models/dmca.js +1 -2
- package/server/models/dmchietkhau.js +1 -9
- package/server/models/dmchietkhauhd.js +1 -20
- package/server/models/dmcpmh.js +1 -2
- package/server/models/dmdiemthuong.js +1 -5
- package/server/models/dmdoi.js +1 -4
- package/server/models/dmdoituongdanhgia.js +1 -2
- package/server/models/dmdt.js +1 -8
- package/server/models/dmdvt.js +1 -3
- package/server/models/dmgiaban.js +1 -9
- package/server/models/dmgiamua.js +1 -5
- package/server/models/dmgiathitruong.js +1 -5
- package/server/models/dmgiathitruong_ngay.js +1 -2
- package/server/models/dmgiathitruong_theodoi.js +1 -2
- package/server/models/dmhoahonghd.js +1 -9
- package/server/models/dmhoahongnpp.js +1 -9
- package/server/models/dmkc.js +1 -3
- package/server/models/dmkho.js +1 -6
- package/server/models/dmkhuyenmai.js +1 -9
- package/server/models/dmkhuyenmaihd.js +1 -11
- package/server/models/dmletet.js +1 -2
- package/server/models/dmlo.js +1 -4
- package/server/models/dmloaicong.js +1 -4
- package/server/models/dmloaitask.js +1 -2
- package/server/models/dmloaits.js +1 -2
- package/server/models/dmnckkm.js +1 -4
- package/server/models/dmnghiepvu.js +1 -4
- package/server/models/dmnguonvon.js +1 -2
- package/server/models/dmnhnv.js +1 -4
- package/server/models/dmnv.js +1 -17
- package/server/models/dmnvt.js +1 -9
- package/server/models/dmphatdichvu.js +1 -5
- package/server/models/dmphi.js +1 -3
- package/server/models/dmqct.js +1 -3
- package/server/models/dmqddvt.js +1 -3
- package/server/models/dmtanggiamts.js +1 -3
- package/server/models/dmto.js +1 -4
- package/server/models/dmtt.js +1 -6
- package/server/models/dmvt.js +1 -17
- package/server/models/dmyt.js +1 -4
- package/server/models/dn0.js +1 -13
- package/server/models/dnm.js +1 -11
- package/server/models/dokho.js +1 -2
- package/server/models/domain.js +1 -2
- package/server/models/dvcs.js +1 -3
- package/server/models/ecomcategories.js +1 -3
- package/server/models/ecomcategories_cty.js +1 -3
- package/server/models/ecomproductlines.js +1 -2
- package/server/models/ecompromotion_flashsales.js +1 -2
- package/server/models/ecompromotion_freeships.js +1 -2
- package/server/models/email.js +1 -2
- package/server/models/endpoint.js +1 -1
- package/server/models/events.js +1 -3
- package/server/models/evoucher.js +1 -5
- package/server/models/experiencejourney.js +1 -2
- package/server/models/experiencejourneydata.js +1 -4
- package/server/models/experiencejourneypersona.js +1 -3
- package/server/models/experiencejourneystage.js +1 -2
- package/server/models/exportexceltemplate.js +1 -2
- package/server/models/fbconversation.js +1 -15
- package/server/models/fbmessage.js +1 -2
- package/server/models/fbpage.js +1 -2
- package/server/models/fbpost.js +1 -2
- package/server/models/fieldright.js +1 -2
- package/server/models/file.js +1 -4
- package/server/models/financialroadmap.js +1 -3
- package/server/models/flow.js +1 -2
- package/server/models/flowdata.js +1 -3
- package/server/models/folder.js +1 -4
- package/server/models/follow.js +1 -2
- package/server/models/form.js +1 -3
- package/server/models/forminfo.js +1 -5
- package/server/models/formvalue.js +1 -3
- package/server/models/giaoca.js +1 -4
- package/server/models/giatb.js +1 -3
- package/server/models/group.js +1 -11
- package/server/models/gt_ctgt.js +1 -4
- package/server/models/gt_hspb.js +1 -3
- package/server/models/gt_sltk.js +1 -3
- package/server/models/gt_thcppstk.js +1 -3
- package/server/models/hanmucton.js +1 -4
- package/server/models/hd1.js +1 -11
- package/server/models/hd2.js +1 -27
- package/server/models/hd3.js +1 -18
- package/server/models/hd4.js +1 -13
- package/server/models/hd7.js +1 -17
- package/server/models/hd8.js +1 -12
- package/server/models/hde.js +1 -11
- package/server/models/hlink.js +1 -2
- package/server/models/hlinkvalue.js +1 -2
- package/server/models/hmcn.js +1 -3
- package/server/models/hmcnct.js +1 -2
- package/server/models/hspbts.js +1 -4
- package/server/models/htl.js +1 -13
- package/server/models/importexceltemplate.js +1 -2
- package/server/models/introducebonus.js +1 -4
- package/server/models/introducecode.js +1 -3
- package/server/models/introducer.js +1 -4
- package/server/models/kbbtpb.js +1 -7
- package/server/models/kbmPttct.js +1 -4
- package/server/models/kbmTkgtgt.js +1 -5
- package/server/models/kbm_bcdkt.js +1 -4
- package/server/models/kbm_kqhdkd.js +1 -3
- package/server/models/kbm_lcttgt.js +1 -5
- package/server/models/kbm_lctttt.js +1 -4
- package/server/models/kbm_pttct.js +1 -4
- package/server/models/kbm_tkgtgt.js +1 -5
- package/server/models/kbmbcdkt.js +1 -4
- package/server/models/kbmbcqt.js +1 -4
- package/server/models/kbmkqhdkd.js +1 -3
- package/server/models/kbmlcttgt.js +1 -6
- package/server/models/kbmlctttt.js +1 -4
- package/server/models/kbmtmbctc.js +1 -4
- package/server/models/kehoachdtcp.js +1 -3
- package/server/models/kehoachmh.js +1 -8
- package/server/models/keyresult.js +1 -7
- package/server/models/khunghangthanhvien.js +1 -3
- package/server/models/label.js +1 -2
- package/server/models/labelinfo.js +1 -2
- package/server/models/lenhcapphat.js +1 -8
- package/server/models/lenhsx.js +1 -8
- package/server/models/lienhe.js +1 -4
- package/server/models/like_module.js +1 -2
- package/server/models/link.js +1 -2
- package/server/models/loaidiem.js +1 -2
- package/server/models/lock.js +1 -2
- package/server/models/log.js +1 -5
- package/server/models/mailaccount.js +1 -3
- package/server/models/mailgroup.js +1 -3
- package/server/models/mailreceived.js +1 -2
- package/server/models/mailschedule.js +1 -2
- package/server/models/mailsent.js +1 -2
- package/server/models/mailtemplate.js +1 -2
- package/server/models/maudanhgia.js +1 -2
- package/server/models/menuinfo.js +1 -2
- package/server/models/message.js +1 -8
- package/server/models/message2.js +1 -4
- package/server/models/message2setting.js +1 -3
- package/server/models/moduleinfo.js +1 -4
- package/server/models/momo.js +1 -17
- package/server/models/news.js +1 -3
- package/server/models/newsfeed.js +1 -4
- package/server/models/note.js +1 -2
- package/server/models/notification.js +1 -7
- package/server/models/okr.js +1 -4
- package/server/models/okrdiagram.js +1 -3
- package/server/models/onepay.js +1 -24
- package/server/models/opportunity.js +1 -4
- package/server/models/options.js +1 -2
- package/server/models/originimportid.js +1 -1
- package/server/models/otp.js +1 -1
- package/server/models/parameter.js +1 -2
- package/server/models/participant.js +1 -20
- package/server/models/partner.js +1 -1
- package/server/models/payload.js +1 -1
- package/server/models/pbl.js +1 -16
- package/server/models/pc0.js +1 -13
- package/server/models/pc1.js +1 -14
- package/server/models/pc2.js +1 -13
- package/server/models/pc3.js +1 -13
- package/server/models/pc5.js +1 -8
- package/server/models/pc6.js +1 -14
- package/server/models/pcl.js +1 -6
- package/server/models/pdn.js +1 -9
- package/server/models/pdx.js +1 -9
- package/server/models/pgh.js +1 -5
- package/server/models/phieudanhgia.js +1 -3
- package/server/models/pht.js +1 -8
- package/server/models/phucap.js +1 -4
- package/server/models/pkc.js +1 -6
- package/server/models/pkh.js +1 -6
- package/server/models/pkk.js +1 -10
- package/server/models/pkt.js +1 -12
- package/server/models/pn1.js +1 -17
- package/server/models/pn2.js +1 -11
- package/server/models/pn3.js +1 -13
- package/server/models/pn5.js +1 -14
- package/server/models/pn6.js +1 -14
- package/server/models/pn9.js +1 -17
- package/server/models/pnc.js +1 -10
- package/server/models/pnh.js +1 -12
- package/server/models/pnk.js +1 -10
- package/server/models/po1.js +1 -19
- package/server/models/ppb.js +1 -6
- package/server/models/profile.js +1 -4
- package/server/models/pt1.js +1 -12
- package/server/models/pt5.js +1 -8
- package/server/models/ptl.js +1 -6
- package/server/models/ptthanhtoan.js +1 -6
- package/server/models/purchase_contract.js +1 -17
- package/server/models/pxc.js +1 -9
- package/server/models/pxh.js +1 -12
- package/server/models/pxk.js +1 -10
- package/server/models/qts.js +1 -14
- package/server/models/qts_dieuchinh.js +1 -3
- package/server/models/qts_dieuchuyen.js +1 -4
- package/server/models/quanhuyen.js +1 -2
- package/server/models/reason.js +1 -2
- package/server/models/receivedinvoice.js +1 -2
- package/server/models/reportinfo.js +1 -5
- package/server/models/right.js +1 -4
- package/server/models/rpt.js +1 -2
- package/server/models/rptform.js +1 -5
- package/server/models/rptobject.js +1 -2
- package/server/models/sale_contract.js +1 -9
- package/server/models/schedule.js +1 -16
- package/server/models/schedule_log.js +1 -2
- package/server/models/service.js +1 -4
- package/server/models/shipbook.js +1 -12
- package/server/models/shortcut.js +1 -2
- package/server/models/smsaccount.js +1 -10
- package/server/models/smssend.js +1 -2
- package/server/models/so1.js +1 -22
- package/server/models/so2.js +1 -10
- package/server/models/so3.js +1 -9
- package/server/models/so5.js +1 -15
- package/server/models/so9.js +1 -19
- package/server/models/socai.js +1 -26
- package/server/models/socainpp.js +1 -18
- package/server/models/socaitc.js +1 -6
- package/server/models/socaitmp.js +1 -16
- package/server/models/socaitt.js +1 -4
- package/server/models/sodiemthuong.js +1 -4
- package/server/models/sokho.js +1 -28
- package/server/models/sokhocapphat.js +1 -18
- package/server/models/sokhokhongton.js +1 -19
- package/server/models/sokhonpp.js +1 -19
- package/server/models/sokhotc.js +1 -8
- package/server/models/sokhott.js +1 -18
- package/server/models/sophanbokh.js +1 -3
- package/server/models/sosanxuat.js +1 -5
- package/server/models/sotinhkh.js +1 -2
- package/server/models/spdd_ck.js +1 -3
- package/server/models/spdd_dk.js +1 -3
- package/server/models/step.js +1 -2
- package/server/models/strategicdiagram.js +1 -3
- package/server/models/strategicgoal.js +1 -4
- package/server/models/strategickpi.js +1 -6
- package/server/models/strategicobjective.js +1 -5
- package/server/models/strategicplan.js +1 -5
- package/server/models/subscribe.js +1 -2
- package/server/models/support.js +1 -2
- package/server/models/synctime.js +1 -2
- package/server/models/sysconfig.js +1 -2
- package/server/models/sysgroup.js +1 -2
- package/server/models/tableinfo.js +1 -3
- package/server/models/task.js +1 -9
- package/server/models/taskreg.js +1 -4
- package/server/models/tc.js +1 -2
- package/server/models/tdttco.js +1 -8
- package/server/models/tdttco_tt.js +1 -5
- package/server/models/tdttno.js +1 -8
- package/server/models/tdttno_tt.js +1 -5
- package/server/models/templaterpt.js +1 -2
- package/server/models/templatestore.js +1 -3
- package/server/models/templatevoucher.js +1 -3
- package/server/models/tinhthanh.js +1 -2
- package/server/models/tokens.js +1 -2
- package/server/models/tontucthoi.js +1 -9
- package/server/models/trangthai.js +1 -4
- package/server/models/trangthaiapp.js +1 -4
- package/server/models/transaction.js +1 -16
- package/server/models/trialinfo.js +1 -2
- package/server/models/user.js +1 -38
- package/server/models/usergroup.js +1 -7
- package/server/models/vanchuyen.js +1 -12
- package/server/models/vat.js +1 -3
- package/server/models/vatra.js +1 -6
- package/server/models/vatvao.js +1 -6
- package/server/models/versioninfo.js +1 -2
- package/server/models/vietqrbanks.js +1 -2
- package/server/models/vsocai.js +1 -6
- package/server/models/waitevent.js +1 -2
- package/server/models/wallet.js +1 -8
- package/server/models/warranty.js +1 -3
- package/server/models/warrantyclaim.js +1 -2
- package/server/models/warrantypolicy.js +1 -1
- package/server/models/xaphuong.js +1 -2
- package/server/models/xhd.js +1 -10
- package/server/models/ytdd_ck.js +1 -4
- package/server/models/ytdd_dk.js +1 -4
- package/server/models/zalo.js +1 -17
- package/server/modules/lists/bg-cddiem.js +1 -6
- package/server/modules/lists/bg-cddt.js +1 -7
- package/server/modules/lists/bg-cdkh.js +1 -11
- package/server/modules/lists/bg-cdnphep.js +1 -6
- package/server/modules/lists/bg-cdtk.js +1 -9
- package/server/modules/lists/bg-cdvt.js +1 -8
- package/server/modules/lists/bg-cdvtnpp.js +1 -8
- package/server/modules/lists/ls-account.js +1 -4
- package/server/modules/lists/ls-afflink.js +1 -3
- package/server/modules/lists/ls-approve.js +1 -4
- package/server/modules/lists/ls-assabcihandler.js +1 -3
- package/server/modules/lists/ls-assbank.js +1 -3
- package/server/modules/lists/ls-assbooking.js +1 -20
- package/server/modules/lists/ls-assbuy.js +1 -8
- package/server/modules/lists/ls-asscashwithdraw.js +1 -8
- package/server/modules/lists/ls-assinvestment.js +1 -31
- package/server/modules/lists/ls-assissue.js +1 -3
- package/server/modules/lists/ls-asskey.js +1 -41
- package/server/modules/lists/ls-assneedtobuy.js +1 -10
- package/server/modules/lists/ls-assperiod.js +1 -19
- package/server/modules/lists/ls-assproduct.js +1 -9
- package/server/modules/lists/ls-assprofitsharing.js +1 -8
- package/server/modules/lists/ls-assreceiver.js +1 -3
- package/server/modules/lists/ls-assrequest.js +1 -4
- package/server/modules/lists/ls-asssell.js +1 -13
- package/server/modules/lists/ls-asstransaction.js +1 -3
- package/server/modules/lists/ls-asstransfer.js +1 -3
- package/server/modules/lists/ls-assuser_identity.js +1 -1
- package/server/modules/lists/ls-asswithdraw.js +1 -12
- package/server/modules/lists/ls-bangtinhluong.js +1 -2
- package/server/modules/lists/ls-bds_area.js +1 -3
- package/server/modules/lists/ls-bds_block.js +1 -1
- package/server/modules/lists/ls-bds_building.js +1 -3
- package/server/modules/lists/ls-bds_dmnhbds.js +1 -6
- package/server/modules/lists/ls-bds_floor.js +1 -2
- package/server/modules/lists/ls-bds_floordetail.js +1 -19
- package/server/modules/lists/ls-bds_nhadat.js +1 -16
- package/server/modules/lists/ls-bds_nhomnhadat.js +1 -1
- package/server/modules/lists/ls-bds_phanloainhadat.js +1 -1
- package/server/modules/lists/ls-calllog.js +1 -4
- package/server/modules/lists/ls-campaign.js +1 -1
- package/server/modules/lists/ls-cart.js +1 -14
- package/server/modules/lists/ls-chamcong.js +1 -3
- package/server/modules/lists/ls-checkin.js +1 -12
- package/server/modules/lists/ls-checkinactivity.js +1 -8
- package/server/modules/lists/ls-checkinkpi.js +1 -3
- package/server/modules/lists/ls-checkinlocation.js +1 -1
- package/server/modules/lists/ls-chitieukpi.js +1 -1
- package/server/modules/lists/ls-chudethaoluan.js +1 -1
- package/server/modules/lists/ls-ckgtluong.js +1 -1
- package/server/modules/lists/ls-comment.js +1 -9
- package/server/modules/lists/ls-congdoansx.js +1 -3
- package/server/modules/lists/ls-congtacvien.js +1 -5
- package/server/modules/lists/ls-consultant.js +1 -2
- package/server/modules/lists/ls-contract.js +1 -7
- package/server/modules/lists/ls-ctds.js +1 -4
- package/server/modules/lists/ls-ctds2.js +1 -4
- package/server/modules/lists/ls-currency.js +1 -1
- package/server/modules/lists/ls-customer.js +1 -21
- package/server/modules/lists/ls-datlich.js +1 -9
- package/server/modules/lists/ls-dckhauhaots.js +1 -3
- package/server/modules/lists/ls-department.js +1 -3
- package/server/modules/lists/ls-diagram.js +1 -1
- package/server/modules/lists/ls-dkhoc.js +1 -6
- package/server/modules/lists/ls-dknphep.js +1 -1
- package/server/modules/lists/ls-dmban.js +1 -4
- package/server/modules/lists/ls-dmbp.js +1 -7
- package/server/modules/lists/ls-dmca.js +1 -1
- package/server/modules/lists/ls-dmchietkhau.js +1 -19
- package/server/modules/lists/ls-dmchietkhauhd.js +1 -4
- package/server/modules/lists/ls-dmchucvu.js +1 -2
- package/server/modules/lists/ls-dmcpmh.js +1 -1
- package/server/modules/lists/ls-dmdiemthuong.js +1 -4
- package/server/modules/lists/ls-dmdoi.js +1 -4
- package/server/modules/lists/ls-dmdoituongdanhgia.js +1 -1
- package/server/modules/lists/ls-dmdt.js +1 -11
- package/server/modules/lists/ls-dmdvt.js +1 -2
- package/server/modules/lists/ls-dmgiaban.js +1 -4
- package/server/modules/lists/ls-dmgiamua.js +1 -4
- package/server/modules/lists/ls-dmgiathitruong.js +1 -15
- package/server/modules/lists/ls-dmgiathitruong_ngay.js +1 -2
- package/server/modules/lists/ls-dmgiathitruong_theodoi.js +1 -1
- package/server/modules/lists/ls-dmhoahonghd.js +1 -1
- package/server/modules/lists/ls-dmhoahongnpp.js +1 -1
- package/server/modules/lists/ls-dmkc.js +1 -3
- package/server/modules/lists/ls-dmkho.js +1 -1
- package/server/modules/lists/ls-dmkhuyenmai.js +1 -5
- package/server/modules/lists/ls-dmkhuyenmaihd.js +1 -3
- package/server/modules/lists/ls-dmletet.js +1 -1
- package/server/modules/lists/ls-dmlo.js +1 -1
- package/server/modules/lists/ls-dmloaicong.js +1 -1
- package/server/modules/lists/ls-dmloaits.js +1 -1
- package/server/modules/lists/ls-dmnckkm.js +1 -7
- package/server/modules/lists/ls-dmnghiepvu.js +1 -1
- package/server/modules/lists/ls-dmnguonvon.js +1 -1
- package/server/modules/lists/ls-dmnhnv.js +1 -6
- package/server/modules/lists/ls-dmnhtask.js +1 -5
- package/server/modules/lists/ls-dmnkh.js +1 -6
- package/server/modules/lists/ls-dmntt.js +1 -6
- package/server/modules/lists/ls-dmnv.js +1 -17
- package/server/modules/lists/ls-dmnvt.js +1 -8
- package/server/modules/lists/ls-dmphatdichvu.js +1 -3
- package/server/modules/lists/ls-dmphi.js +1 -6
- package/server/modules/lists/ls-dmqct.js +1 -2
- package/server/modules/lists/ls-dmqddvt.js +1 -3
- package/server/modules/lists/ls-dmtanggiamts.js +1 -1
- package/server/modules/lists/ls-dmto.js +1 -5
- package/server/modules/lists/ls-dmtt.js +1 -7
- package/server/modules/lists/ls-dmvt.js +1 -68
- package/server/modules/lists/ls-dmyt.js +1 -1
- package/server/modules/lists/ls-dokho.js +1 -1
- package/server/modules/lists/ls-dvcs.js +1 -1
- package/server/modules/lists/ls-ecomcategories.js +1 -5
- package/server/modules/lists/ls-ecomcategories_cty.js +1 -5
- package/server/modules/lists/ls-email.js +1 -4
- package/server/modules/lists/ls-events.js +1 -3
- package/server/modules/lists/ls-evoucher.js +1 -3
- package/server/modules/lists/ls-experiencejourney.js +1 -1
- package/server/modules/lists/ls-experiencejourneydata.js +1 -3
- package/server/modules/lists/ls-experiencejourneypersona.js +1 -4
- package/server/modules/lists/ls-experiencejourneystage.js +1 -1
- package/server/modules/lists/ls-fbconversation.js +1 -2
- package/server/modules/lists/ls-fbmessage.js +1 -2
- package/server/modules/lists/ls-fbpage.js +1 -11
- package/server/modules/lists/ls-fbpost.js +1 -2
- package/server/modules/lists/ls-file.js +1 -31
- package/server/modules/lists/ls-financialroadmap.js +1 -3
- package/server/modules/lists/ls-flow.js +1 -6
- package/server/modules/lists/ls-flowdata.js +1 -1
- package/server/modules/lists/ls-folder.js +1 -1
- package/server/modules/lists/ls-form.js +1 -1
- package/server/modules/lists/ls-forminfo.js +1 -1
- package/server/modules/lists/ls-formvalue.js +1 -1
- package/server/modules/lists/ls-giaoca.js +1 -4
- package/server/modules/lists/ls-group.js +1 -5
- package/server/modules/lists/ls-hlink.js +1 -1
- package/server/modules/lists/ls-hlinkvalue.js +1 -1
- package/server/modules/lists/ls-hmcn.js +1 -2
- package/server/modules/lists/ls-hspbts.js +1 -3
- package/server/modules/lists/ls-introducebonus.js +1 -4
- package/server/modules/lists/ls-introducecode.js +1 -10
- package/server/modules/lists/ls-introducer.js +1 -20
- package/server/modules/lists/ls-kbm-bcdkt.js +1 -1
- package/server/modules/lists/ls-kbm-bcqt.js +1 -5
- package/server/modules/lists/ls-kbm-kqhdkd.js +1 -1
- package/server/modules/lists/ls-kbm-lcttgt.js +1 -1
- package/server/modules/lists/ls-kbm-lctttt.js +1 -1
- package/server/modules/lists/ls-kbm-pttct.js +1 -3
- package/server/modules/lists/ls-kbm-tkgtgt.js +1 -3
- package/server/modules/lists/ls-kbm-tmbctc.js +1 -3
- package/server/modules/lists/ls-kehoachdtcp.js +1 -4
- package/server/modules/lists/ls-keyresult.js +1 -7
- package/server/modules/lists/ls-khunghangthanhvien.js +1 -1
- package/server/modules/lists/ls-kygui.js +1 -19
- package/server/modules/lists/ls-label.js +1 -1
- package/server/modules/lists/ls-lienhe.js +1 -4
- package/server/modules/lists/ls-like-module.js +1 -1
- package/server/modules/lists/ls-link.js +1 -1
- package/server/modules/lists/ls-loaidiem.js +1 -1
- package/server/modules/lists/ls-lock.js +1 -1
- package/server/modules/lists/ls-log.js +1 -3
- package/server/modules/lists/ls-mailaccount.js +1 -5
- package/server/modules/lists/ls-mailreceived.js +1 -5
- package/server/modules/lists/ls-mailschedule.js +1 -7
- package/server/modules/lists/ls-mailsent.js +1 -4
- package/server/modules/lists/ls-mailtemplate.js +1 -4
- package/server/modules/lists/ls-maudanhgia.js +1 -3
- package/server/modules/lists/ls-message2.js +1 -8
- package/server/modules/lists/ls-message2setting.js +1 -5
- package/server/modules/lists/ls-news.js +1 -7
- package/server/modules/lists/ls-newsfeed.js +1 -4
- package/server/modules/lists/ls-note.js +1 -6
- package/server/modules/lists/ls-okr.js +1 -5
- package/server/modules/lists/ls-okrdiagram.js +1 -1
- package/server/modules/lists/ls-opportunity.js +1 -5
- package/server/modules/lists/ls-options.js +1 -4
- package/server/modules/lists/ls-parameter.js +1 -3
- package/server/modules/lists/ls-participant.js +1 -10
- package/server/modules/lists/ls-phieudanhgia.js +1 -7
- package/server/modules/lists/ls-phucap.js +1 -2
- package/server/modules/lists/ls-profile.js +1 -1
- package/server/modules/lists/ls-ptthanhtoan.js +1 -3
- package/server/modules/lists/ls-qts-dieuchinh.js +1 -2
- package/server/modules/lists/ls-qts-dieuchuyen.js +1 -8
- package/server/modules/lists/ls-reason.js +1 -1
- package/server/modules/lists/ls-rpt.js +1 -5
- package/server/modules/lists/ls-rptform.js +1 -4
- package/server/modules/lists/ls-service.js +1 -3
- package/server/modules/lists/ls-shortcut.js +1 -1
- package/server/modules/lists/ls-smsaccount.js +1 -1
- package/server/modules/lists/ls-smssend.js +1 -3
- package/server/modules/lists/ls-sosanxuat.js +1 -4
- package/server/modules/lists/ls-step.js +1 -1
- package/server/modules/lists/ls-strategicdiagram.js +1 -1
- package/server/modules/lists/ls-strategicgoal.js +1 -3
- package/server/modules/lists/ls-strategickpi.js +1 -7
- package/server/modules/lists/ls-strategicobjective.js +1 -3
- package/server/modules/lists/ls-strategicplan.js +1 -6
- package/server/modules/lists/ls-support.js +1 -3
- package/server/modules/lists/ls-task.js +1 -34
- package/server/modules/lists/ls-taskreg.js +1 -2
- package/server/modules/lists/ls-tc.js +1 -1
- package/server/modules/lists/ls-templaterpt.js +1 -5
- package/server/modules/lists/ls-templatevoucher.js +1 -1
- package/server/modules/lists/ls-tontucthoi.js +1 -3
- package/server/modules/lists/ls-trangthaiapp.js +1 -3
- package/server/modules/lists/ls-transaction.js +1 -4
- package/server/modules/lists/ls-usergroup.js +1 -7
- package/server/modules/lists/ls-vat.js +1 -1
- package/server/modules/lists/ls-vatra.js +1 -5
- package/server/modules/lists/ls-vatvao.js +1 -6
- package/server/modules/lists/ls-waitevent.js +1 -1
- package/server/modules/lists/ls-warranty.js +1 -4
- package/server/modules/lists/ls_hanmucton.js +1 -3
- package/server/modules/lists/ls_hspb.js +1 -4
- package/server/modules/lists/ls_spdd_ck.js +1 -3
- package/server/modules/lists/ls_spdd_dk.js +1 -3
- package/server/modules/lists/ls_ytdd_ck.js +1 -4
- package/server/modules/lists/ls_ytdd_dk.js +1 -4
- package/server/modules/lists/sys-attend.js +1 -4
- package/server/modules/lists/sys-follow.js +1 -4
- package/server/modules/lists/sys-right.js +1 -2
- package/server/modules/public/app.js +1 -4
- package/server/modules/public/approve.js +1 -37
- package/server/modules/public/callin.js +1 -7
- package/server/modules/public/comment.js +1 -5
- package/server/modules/public/dmnvt.js +1 -4
- package/server/modules/public/dmvt.js +1 -9
- package/server/modules/public/file.js +1 -11
- package/server/modules/public/form.js +1 -7
- package/server/modules/public/forminfo.js +1 -1
- package/server/modules/public/group.js +1 -4
- package/server/modules/public/hlink.js +1 -3
- package/server/modules/public/introducecode.js +1 -1
- package/server/modules/public/listinfo.js +1 -1
- package/server/modules/public/media-webhook.js +1 -1
- package/server/modules/public/partner.js +1 -1
- package/server/modules/public/paymentCallback.js +1 -32
- package/server/modules/public/province.js +1 -1
- package/server/modules/public/ptthanhtoan.js +1 -4
- package/server/modules/public/subscribe.js +1 -30
- package/server/modules/public/support.js +1 -3
- package/server/modules/public/tableinfo.js +1 -1
- package/server/modules/public/trialinfo.js +1 -4
- package/server/modules/public/versioninfo.js +1 -1
- package/server/modules/reports/calc-tinhgiatb.js +1 -6
- package/server/modules/reports/calc-tinhgiathanh.js +1 -6
- package/server/modules/reports/calc-tinhkhauhaots.js +1 -3
- package/server/modules/reports/calc-tinhluong.js +1 -37
- package/server/modules/reports/rp-analyzedata.js +1 -6
- package/server/modules/reports/rp-assbonus.js +1 -4
- package/server/modules/reports/rp-assinterest.js +1 -8
- package/server/modules/reports/rp-assproductowners.js +1 -3
- package/server/modules/reports/rp-asssupply.js +1 -1
- package/server/modules/reports/rp-asstransferlog.js +1 -10
- package/server/modules/reports/rp-banggiatb.js +1 -3
- package/server/modules/reports/rp-bangtinhkhauhao.js +1 -6
- package/server/modules/reports/rp-baocaokhachhang.js +1 -6
- package/server/modules/reports/rp-bcdkt.js +1 -11
- package/server/modules/reports/rp-bcintroducebonus.js +1 -4
- package/server/modules/reports/rp-bckhtiemnang.js +1 -3
- package/server/modules/reports/rp-bcqt.js +1 -85
- package/server/modules/reports/rp-bkct.js +1 -13
- package/server/modules/reports/rp-bkshipbook.js +1 -8
- package/server/modules/reports/rp-bkvanchuyen.js +1 -8
- package/server/modules/reports/rp-bkvatra.js +1 -7
- package/server/modules/reports/rp-bkvatvao.js +1 -7
- package/server/modules/reports/rp-capnhatsocaitc.js +1 -4
- package/server/modules/reports/rp-cdpsdiem.js +1 -4
- package/server/modules/reports/rp-cdpsdt.js +1 -5
- package/server/modules/reports/rp-cdpskh.js +1 -7
- package/server/modules/reports/rp-cdpsnphep.js +1 -3
- package/server/modules/reports/rp-cdpstk.js +1 -4
- package/server/modules/reports/rp-chitietchitientheohoadon.js +1 -12
- package/server/modules/reports/rp-chitiettaisan.js +1 -13
- package/server/modules/reports/rp-chitietthutientheohoadon.js +1 -13
- package/server/modules/reports/rp-ckcn.js +1 -3
- package/server/modules/reports/rp-ckdiem.js +1 -2
- package/server/modules/reports/rp-cktk.js +1 -3
- package/server/modules/reports/rp-ckvt.js +1 -10
- package/server/modules/reports/rp-ckvttheokho.js +1 -4
- package/server/modules/reports/rp-ckvttheotg.js +1 -4
- package/server/modules/reports/rp-ckvttt.js +1 -3
- package/server/modules/reports/rp-congnophaithutheotuoino.js +1 -3
- package/server/modules/reports/rp-congnophaitratheotuoino.js +1 -3
- package/server/modules/reports/rp-congnosapthu.js +1 -4
- package/server/modules/reports/rp-congnosaptra.js +1 -4
- package/server/modules/reports/rp-congviectheobp.js +1 -9
- package/server/modules/reports/rp-congviectheodt.js +1 -8
- package/server/modules/reports/rp-congviectheokh.js +1 -8
- package/server/modules/reports/rp-congviectheonv.js +1 -9
- package/server/modules/reports/rp-congviectheotimeline.js +1 -6
- package/server/modules/reports/rp-ctbanle.js +1 -15
- package/server/modules/reports/rp-ctbanle2.js +1 -20
- package/server/modules/reports/rp-ctbanlectv.js +1 -20
- package/server/modules/reports/rp-ctbanlenpp.js +1 -24
- package/server/modules/reports/rp-ctdanhgianhanvien.js +1 -8
- package/server/modules/reports/rp-cthangbanbitralai.js +1 -4
- package/server/modules/reports/rp-ctmuahang.js +1 -7
- package/server/modules/reports/rp-cttralaihang.js +1 -4
- package/server/modules/reports/rp-databanle.js +1 -10
- package/server/modules/reports/rp-diemthuong.js +1 -2
- package/server/modules/reports/rp-dkcn.js +1 -3
- package/server/modules/reports/rp-dktk.js +1 -2
- package/server/modules/reports/rp-dsnhanviencm.js +1 -9
- package/server/modules/reports/rp-dsnhanvientb.js +1 -9
- package/server/modules/reports/rp-dtbanlekempk.js +1 -9
- package/server/modules/reports/rp-dtbanletheoct.js +1 -23
- package/server/modules/reports/rp-dtbanletheoctkempk.js +1 -25
- package/server/modules/reports/rp-dtbanletheokh.js +1 -20
- package/server/modules/reports/rp-dtbanletheokhnpp.js +1 -19
- package/server/modules/reports/rp-dtbanletheokho.js +1 -18
- package/server/modules/reports/rp-dtbanletheonam.js +1 -3
- package/server/modules/reports/rp-dtbanletheongay.js +1 -1
- package/server/modules/reports/rp-dtbanletheonpp.js +1 -23
- package/server/modules/reports/rp-dtbanletheonv.js +1 -19
- package/server/modules/reports/rp-dtbanletheoquy.js +1 -3
- package/server/modules/reports/rp-dtbanletheosp.js +1 -8
- package/server/modules/reports/rp-dtbanletheospnpp.js +1 -6
- package/server/modules/reports/rp-dtbanletheothang.js +1 -3
- package/server/modules/reports/rp-dtbanletheothungan.js +1 -12
- package/server/modules/reports/rp-dtbanletheovt.js +1 -2
- package/server/modules/reports/rp-dtbanletheovtnpp.js +1 -2
- package/server/modules/reports/rp-dutoanthuchitheodt.js +1 -4
- package/server/modules/reports/rp-getPXC2PNC.js +1 -8
- package/server/modules/reports/rp-getariseofaccountsbymonth.js +1 -4
- package/server/modules/reports/rp-getbtpb.js +1 -6
- package/server/modules/reports/rp-getcashbycashier.js +1 -7
- package/server/modules/reports/rp-getcschietkhau.js +1 -5
- package/server/modules/reports/rp-getdinhmuc4lenhcp.js +1 -7
- package/server/modules/reports/rp-getdinhmuc4pxk.js +1 -9
- package/server/modules/reports/rp-getdk4pht.js +1 -8
- package/server/modules/reports/rp-getdk4pkc.js +1 -9
- package/server/modules/reports/rp-getdttheoca.js +1 -5
- package/server/modules/reports/rp-getinvoice2pay.js +1 -4
- package/server/modules/reports/rp-getinvoice2receive.js +1 -4
- package/server/modules/reports/rp-getinvoice2return.js +1 -5
- package/server/modules/reports/rp-getinvoice2return_bl.js +1 -6
- package/server/modules/reports/rp-getkehoachmh4lenhcp.js +1 -4
- package/server/modules/reports/rp-getkhauhao.js +1 -7
- package/server/modules/reports/rp-getluong.js +1 -8
- package/server/modules/reports/rp-getluongchuyen.js +1 -5
- package/server/modules/reports/rp-getpn2fee.js +1 -5
- package/server/modules/reports/rp-getpn2return.js +1 -5
- package/server/modules/reports/rp-getthanhpham4pnk.js +1 -7
- package/server/modules/reports/rp-getvc2xhd.js +1 -11
- package/server/modules/reports/rp-gt_cpnvltt.js +1 -6
- package/server/modules/reports/rp-hangbanbitralai.js +1 -5
- package/server/modules/reports/rp-hangthanhvien.js +1 -3
- package/server/modules/reports/rp-hoadonbanhangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoadonmuahangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoahong.js +1 -15
- package/server/modules/reports/rp-kcsns.js +1 -19
- package/server/modules/reports/rp-kgchamcong.js +1 -7
- package/server/modules/reports/rp-khoaso.js +1 -12
- package/server/modules/reports/rp-kiemtrasocaitcvssocai.js +1 -6
- package/server/modules/reports/rp-kqdanhgianhanvien.js +1 -5
- package/server/modules/reports/rp-kqhdkd.js +1 -7
- package/server/modules/reports/rp-lcttgt.js +1 -17
- package/server/modules/reports/rp-lctttt.js +1 -11
- package/server/modules/reports/rp-linkslist.js +1 -4
- package/server/modules/reports/rp-phanbochitienchohoadon.js +1 -11
- package/server/modules/reports/rp-phanbothutienchohoadon.js +1 -10
- package/server/modules/reports/rp-ptbitralai.js +1 -7
- package/server/modules/reports/rp-ptcttct.js +1 -22
- package/server/modules/reports/rp-ptdonhang.js +1 -8
- package/server/modules/reports/rp-pttct.js +1 -49
- package/server/modules/reports/rp-pttctkho.js +1 -32
- package/server/modules/reports/rp-pttctkho2.js +1 -29
- package/server/modules/reports/rp-referredusers.js +1 -1
- package/server/modules/reports/rp-sctbhxh.js +1 -4
- package/server/modules/reports/rp-sctcnkh.js +1 -17
- package/server/modules/reports/rp-sctdiem.js +1 -3
- package/server/modules/reports/rp-sctdt.js +1 -7
- package/server/modules/reports/rp-sctdtcp.js +1 -11
- package/server/modules/reports/rp-sctluong.js +1 -4
- package/server/modules/reports/rp-sctthuetncn.js +1 -4
- package/server/modules/reports/rp-scttk.js +1 -7
- package/server/modules/reports/rp-sctvt.js +1 -5
- package/server/modules/reports/rp-sctvt_sl.js +1 -5
- package/server/modules/reports/rp-sctvtnpp.js +1 -6
- package/server/modules/reports/rp-sctvttt.js +1 -5
- package/server/modules/reports/rp-search.js +1 -4
- package/server/modules/reports/rp-socai.js +1 -6
- package/server/modules/reports/rp-socaitk.js +1 -7
- package/server/modules/reports/rp-sochut.js +1 -7
- package/server/modules/reports/rp-sokho.js +1 -7
- package/server/modules/reports/rp-sokhott.js +1 -5
- package/server/modules/reports/rp-sonkbh.js +1 -5
- package/server/modules/reports/rp-sonkc.js +1 -6
- package/server/modules/reports/rp-sonkct.js +1 -5
- package/server/modules/reports/rp-sonkmh.js +1 -5
- package/server/modules/reports/rp-sonktt.js +1 -5
- package/server/modules/reports/rp-soquy.js +1 -11
- package/server/modules/reports/rp-sosanhkhvatt.js +1 -13
- package/server/modules/reports/rp-sosanhkhvatt2.js +1 -6
- package/server/modules/reports/rp-sotaisan.js +1 -13
- package/server/modules/reports/rp-sotiengui.js +1 -7
- package/server/modules/reports/rp-taodinhmuctudkhoc.js +1 -5
- package/server/modules/reports/rp-thbanhangkempk.js +1 -28
- package/server/modules/reports/rp-thdanhgianhanvien.js +1 -9
- package/server/modules/reports/rp-thgt.js +1 -6
- package/server/modules/reports/rp-thnxt.js +1 -12
- package/server/modules/reports/rp-thnxt_sl.js +1 -9
- package/server/modules/reports/rp-thnxtnpp.js +1 -10
- package/server/modules/reports/rp-thnxttt.js +1 -9
- package/server/modules/reports/rp-tkbanhangtheogioithieu.js +1 -9
- package/server/modules/reports/rp-tkgioithieukh.js +1 -4
- package/server/modules/reports/rp-tkgtgt.js +1 -7
- package/server/modules/reports/rp-tmbctc.js +1 -20
- package/server/modules/reports/rp-tonghopbanhang.js +1 -6
- package/server/modules/reports/rp-tonghopmuahang.js +1 -5
- package/server/modules/reports/rp-tonghoptralaihang.js +1 -5
- package/server/modules/reports/rp-tongquanbanle.js +1 -20
- package/server/modules/reports/rp-tongquanbds.js +1 -3
- package/server/modules/reports/rp-tongquancongty.js +1 -6
- package/server/modules/reports/rp-tongquanctvnpp.js +1 -12
- package/server/modules/reports/rp-tongquannvbh.js +1 -14
- package/server/modules/reports/rp-tongquannvnpp.js +1 -5
- package/server/modules/reports/rp-uoctinhnvl.js +1 -11
- package/server/modules/reports/rp-wallet.js +1 -3
- package/server/modules/reports/rpt-tkdiemtichluy.js +1 -9
- package/server/modules/systems/sys-app.js +1 -30
- package/server/modules/systems/sys-colleague.js +1 -11
- package/server/modules/systems/sys-domain.js +1 -4
- package/server/modules/systems/sys-ecomproductlines.js +1 -1
- package/server/modules/systems/sys-exportexceltemplate.js +1 -4
- package/server/modules/systems/sys-fieldright.js +1 -3
- package/server/modules/systems/sys-importexceltemplate.js +1 -4
- package/server/modules/systems/sys-labelinfo.js +1 -4
- package/server/modules/systems/sys-listinfo.js +1 -10
- package/server/modules/systems/sys-menuinfo.js +1 -4
- package/server/modules/systems/sys-message.js +1 -14
- package/server/modules/systems/sys-moduleinfo.js +1 -4
- package/server/modules/systems/sys-notification.js +1 -8
- package/server/modules/systems/sys-quanhuyen.js +1 -4
- package/server/modules/systems/sys-reportinfo.js +1 -4
- package/server/modules/systems/sys-rptobject.js +1 -3
- package/server/modules/systems/sys-schedule.js +1 -11
- package/server/modules/systems/sys-sysconfig.js +1 -3
- package/server/modules/systems/sys-sysgroup.js +1 -3
- package/server/modules/systems/sys-tableinfo.js +1 -3
- package/server/modules/systems/sys-templatestore.js +1 -5
- package/server/modules/systems/sys-tinhthanh.js +1 -4
- package/server/modules/systems/sys-token.js +1 -3
- package/server/modules/systems/sys-trangthai.js +1 -4
- package/server/modules/systems/sys-trialinfo.js +1 -3
- package/server/modules/systems/sys-user.js +1 -45
- package/server/modules/systems/sys-users.js +1 -10
- package/server/modules/systems/sys-versioninfo.js +1 -3
- package/server/modules/systems/sys-vietqrbanks.js +1 -4
- package/server/modules/systems/sys-xaphuong.js +1 -4
- package/server/modules/vouchers/vo-banggiaban.js +1 -5
- package/server/modules/vouchers/vo-bc1.js +1 -33
- package/server/modules/vouchers/vo-bc5.js +1 -15
- package/server/modules/vouchers/vo-bg1.js +1 -10
- package/server/modules/vouchers/vo-bg2.js +1 -12
- package/server/modules/vouchers/vo-bn1.js +1 -35
- package/server/modules/vouchers/vo-bn5.js +1 -15
- package/server/modules/vouchers/vo-dh2.js +1 -35
- package/server/modules/vouchers/vo-dinhmucsx.js +1 -6
- package/server/modules/vouchers/vo-dkb.js +1 -21
- package/server/modules/vouchers/vo-dn0.js +1 -9
- package/server/modules/vouchers/vo-dnm.js +1 -21
- package/server/modules/vouchers/vo-hd1.js +1 -36
- package/server/modules/vouchers/vo-hd2.js +1 -107
- package/server/modules/vouchers/vo-hd3.js +1 -44
- package/server/modules/vouchers/vo-hd4.js +1 -13
- package/server/modules/vouchers/vo-hd7.js +1 -29
- package/server/modules/vouchers/vo-hd8.js +1 -29
- package/server/modules/vouchers/vo-hde.js +1 -40
- package/server/modules/vouchers/vo-htl.js +1 -11
- package/server/modules/vouchers/vo-kbbtpb.js +1 -6
- package/server/modules/vouchers/vo-kehoachmh.js +1 -13
- package/server/modules/vouchers/vo-lenhcapphat.js +1 -10
- package/server/modules/vouchers/vo-lenhsx.js +1 -12
- package/server/modules/vouchers/vo-pbl.js +1 -93
- package/server/modules/vouchers/vo-pc0.js +1 -14
- package/server/modules/vouchers/vo-pc1.js +1 -31
- package/server/modules/vouchers/vo-pc2.js +1 -24
- package/server/modules/vouchers/vo-pc3.js +1 -14
- package/server/modules/vouchers/vo-pc5.js +1 -15
- package/server/modules/vouchers/vo-pc6.js +1 -19
- package/server/modules/vouchers/vo-pcl.js +1 -7
- package/server/modules/vouchers/vo-pdn.js +1 -11
- package/server/modules/vouchers/vo-pdx.js +1 -9
- package/server/modules/vouchers/vo-pgh.js +1 -19
- package/server/modules/vouchers/vo-pht.js +1 -7
- package/server/modules/vouchers/vo-pkc.js +1 -7
- package/server/modules/vouchers/vo-pkh.js +1 -10
- package/server/modules/vouchers/vo-pkk.js +1 -12
- package/server/modules/vouchers/vo-pkt.js +1 -13
- package/server/modules/vouchers/vo-pn1.js +1 -33
- package/server/modules/vouchers/vo-pn2.js +1 -16
- package/server/modules/vouchers/vo-pn3.js +1 -18
- package/server/modules/vouchers/vo-pn5.js +1 -19
- package/server/modules/vouchers/vo-pn6.js +1 -18
- package/server/modules/vouchers/vo-pn9.js +1 -22
- package/server/modules/vouchers/vo-pnc.js +1 -20
- package/server/modules/vouchers/vo-pnh.js +1 -20
- package/server/modules/vouchers/vo-pnk.js +1 -14
- package/server/modules/vouchers/vo-pnknpp.js +1 -12
- package/server/modules/vouchers/vo-po1.js +1 -15
- package/server/modules/vouchers/vo-ppb.js +1 -8
- package/server/modules/vouchers/vo-pt1.js +1 -21
- package/server/modules/vouchers/vo-pt5.js +1 -15
- package/server/modules/vouchers/vo-ptl.js +1 -8
- package/server/modules/vouchers/vo-purchase_contract.js +1 -9
- package/server/modules/vouchers/vo-pxc.js +1 -22
- package/server/modules/vouchers/vo-pxh.js +1 -28
- package/server/modules/vouchers/vo-pxk.js +1 -15
- package/server/modules/vouchers/vo-pxknpp.js +1 -14
- package/server/modules/vouchers/vo-qts.js +1 -12
- package/server/modules/vouchers/vo-sale_contract.js +1 -11
- package/server/modules/vouchers/vo-shipbook.js +1 -17
- package/server/modules/vouchers/vo-so1.js +1 -126
- package/server/modules/vouchers/vo-so2.js +1 -37
- package/server/modules/vouchers/vo-so3.js +1 -41
- package/server/modules/vouchers/vo-so5.js +1 -57
- package/server/modules/vouchers/vo-so7.js +1 -97
- package/server/modules/vouchers/vo-so9.js +1 -119
- package/server/modules/vouchers/vo-vanchuyen.js +1 -14
- package/server/modules/vouchers/vo-xhd.js +1 -33
- package/server/route.js +1 -51
- package/server/services/invoiceFetcher.js +1 -15
- package/server/sslConfig.js +1 -2
- package/server/transactionMiddleware.js +1 -5
- package/server/workers/backupApp.js +1 -9
- package/server/workers/calcGrid.js +1 -9
- package/server/workers/customerOnImport.js +1 -8
- package/server/workers/dmvtOnImport.js +1 -9
- package/server/workers/excelParser.js +1 -9
- package/server/workers/inputWorker.js +1 -6
- package/server/workers/pushNotify.js +1 -10
- package/server/workers/reportWorker.js +1 -7
- package/server/workers/restoreApp.js +1 -23
- package/server/workers/runScript.js +1 -4
- package/server/workers/sendEmail.js +1 -13
- package/server/workers/webhook.js +1 -5
|
@@ -1,20 +1 @@
|
|
|
1
|
-
const dmchietkhauhdSchema=new Schema({id_app:{type:String,required:!0,maxlength:1024},stt_uu_tien:{type:Number,default:0},ma_chietkhau:{type:String,uppercase:!0,required:!0,maxlength:32},ten_chietkhau:{type:String,required:!0,maxlength:1024},ma_nhom:String,mieu_ta:{type:String},ma_kh:{type:String,default:"",maxlength:32},ten_kh:String,nh_kh:{type:String,default:"",maxlength:1024},ten_nh_kh:String,nh_kh2:[],nh_kh3:[],nh_kh4:[],nh_kh5:[],ma_kho:{type:String,default:"",maxlength:32},ten_kho:String,gt_tu:{type:Number,
|
|
2
|
-
default:0},gt_den:{type:Number,default:0},vts:[],sl_toi_thieu:{type:Number,default:0},tien_ck:{type:Number,default:0},ty_le_ck:{type:Number,default:0},so_tien_max:{type:Number,default:0},hieu_luc_tu:{type:Date,required:!0},hieu_luc_den:{type:Date,required:!0},ap_dung_lan_mua_thu:{type:Number},ap_dung_lan_mua_tu_thu:{type:Number},ap_dung_lan_mua_den_thu:{type:Number},details_km:[],picture:{type:String},exfields:Schema.Types.Mixed,newsfeed:{type:Boolean,default:!0},online:{type:Boolean},offline:{type:Boolean},
|
|
3
|
-
status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},ma_kh_id:{type:Schema.Types.ObjectId,ref:"customer",localField:["ma_kh"],foreignField:["ma_kh"]},ma_kho_id:{type:Schema.Types.ObjectId,ref:"dmkho",localField:["ma_kho"],foreignField:["ma_kho"]}});
|
|
4
|
-
(global.configs||{}).createIndexes&&(dmchietkhauhdSchema.index({id_app:1,ma_chietkhau:1,ma_kho:1,ma_kh:1,hieu_luc_tu:-1,hieu_luc_den:-1}),dmchietkhauhdSchema.index({ma_nhom:1}),dmchietkhauhdSchema.index({ap_dung_lan_mua_thu:1}),dmchietkhauhdSchema.index({ap_dung_lan_mua_tu_thu:1}),dmchietkhauhdSchema.index({ap_dung_lan_mua_den_thu:1}),dmchietkhauhdSchema.index({gt_tu:1}),dmchietkhauhdSchema.index({gt_den:1}),dmchietkhauhdSchema.index({ten_kho:1}),dmchietkhauhdSchema.index({nh_kh:1}),dmchietkhauhdSchema.index({ten_nh_kh:1}),
|
|
5
|
-
dmchietkhauhdSchema.index({nh_kh2:1}),dmchietkhauhdSchema.index({nh_kh3:1}),dmchietkhauhdSchema.index({nh_kh4:1}),dmchietkhauhdSchema.index({nh_kh5:1}),dmchietkhauhdSchema.index({date_updated:-1}),dmchietkhauhdSchema.index({date_created:-1}),dmchietkhauhdSchema.index({user_created:1}),dmchietkhauhdSchema.index({online:1}),dmchietkhauhdSchema.index({offline:1}),dmchietkhauhdSchema.index({mieu_ta:"text",ma_chietkhau:"text",ten_chietkhau:"text",ma_kh:"text",ten_kh:"text",nh_kh:"text",ten_nh_kh:"text",
|
|
6
|
-
ma_kho:"text",ten_kho:"text"},{name:"dmchietkhauhd_index_text"}),dmchietkhauhdSchema.set("toObject",{virtuals:!0}),dmchietkhauhdSchema.set("toJSON",{virtuals:!0}),dmchietkhauhdSchema.index({status:1}));
|
|
7
|
-
const model=mongoose.models.dmchietkhauhd||mongoose.model("dmchietkhauhd",dmchietkhauhdSchema),moment=require("moment"),calcDefaultDiscount=async($id_app_rs$$,$groups$$)=>{await $groups$$.filter($d$$=>$d$$.ma_nhom&&!$d$$.phuong_phap_ap_dung).asyncJoinModel2($id_app_rs$$,"dmnckkm",{where:{ma_nhom:"_id"},fields:["phuong_phap_ap_dung","nh_me",{stt_uu_tien:"stt"}]});$groups$$.forEach($g$$=>{switch($g$$.phuong_phap_ap_dung){case "TOI_THIEU":$g$$.ck=$g$$.cks.sort(($a$$,$b$$)=>$a$$.tien_ck-$b$$.tien_ck)[0];
|
|
8
|
-
$g$$.ck.stt_uu_tien=$g$$.stt_uu_tien;break;case "TOI_DA":$g$$.ck=$g$$.cks.sort(($a$$,$b$$)=>$b$$.tien_ck-$a$$.tien_ck)[0];$g$$.ck.stt_uu_tien=$g$$.stt_uu_tien;break;case "CONG":$g$$.ck={ty_le_ck:0,tien_ck:$g$$.cks.map($c$$=>$c$$.tien_ck||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0)};$g$$.ck.stt_uu_tien=$g$$.stt_uu_tien;break;default:$g$$.ck=$g$$.cks.sort(($a$$,$b$$)=>($a$$.stt_uu_tien||0)-($b$$.stt_uu_tien||0))[0],$g$$.ck.stt_uu_tien=$g$$.stt_uu_tien}delete $g$$.cks});if($groups$$.length==1)$id_app_rs$$=$groups$$[0].ck;
|
|
9
|
-
else if($groups$$.find($g$$=>$g$$.nh_me)){$groups$$=$groups$$.map($g$$=>{$g$$.nh_me&&($g$$.ma_nhom=$g$$.nh_me,$g$$.nh_me="",$g$$.phuong_phap_ap_dung="");return $g$$});const $new_groups$$=[...(new Set($groups$$.map($d$$=>$d$$.ma_nhom||"")))].map($ma_nhom$$=>{const $cks$$=$groups$$.filter($d$$=>($d$$.ma_nhom||"")==$ma_nhom$$).map($g$$=>$g$$.ck);return{ma_nhom:$ma_nhom$$,cks:$cks$$}});$id_app_rs$$=await calcDefaultDiscount($id_app_rs$$,$new_groups$$)}else $id_app_rs$$=$groups$$.sort(($a$$,$b$$)=>($a$$.stt_uu_tien||
|
|
10
|
-
0)-($b$$.stt_uu_tien||0))[0];return $id_app_rs$$};
|
|
11
|
-
model.tinhChietKhau=async($ckhds_groups$$,$ckhd$jscomp$1_id_app$$,$obj$$,$t_tt_nt$$,$i_lan_mua_thu$$=1)=>{$obj$$.tien_ck_hd=0;$obj$$.ty_le_ck_hd=0;var $ckhd_query$$={id_app:$ckhd$jscomp$1_id_app$$,gt_tu:{$lte:$t_tt_nt$$},ma_kho:{$in:[void 0,null,"",$obj$$.ma_kho]}};$ckhd_query$$.$and=[{$or:[{gt_den:{$in:[0,void 0,null]}},{gt_den:{$gte:$t_tt_nt$$}}]}];var $hieu_luc_den_q_nh_kh_tu_ngay$$=moment($obj$$.ngay_ct).startOf("date").toDate();var $hieu_luc_tu_q_ma_kh_sl_toi_thieu$$={$lte:moment($obj$$.ngay_ct).endOf("date").toDate()};
|
|
12
|
-
$hieu_luc_den_q_nh_kh_tu_ngay$$={$gte:$hieu_luc_den_q_nh_kh_tu_ngay$$};$ckhd_query$$.hieu_luc_tu=$hieu_luc_tu_q_ma_kh_sl_toi_thieu$$;$ckhd_query$$.hieu_luc_den=$hieu_luc_den_q_nh_kh_tu_ngay$$;$hieu_luc_tu_q_ma_kh_sl_toi_thieu$$={$in:[void 0,null,""]};$hieu_luc_den_q_nh_kh_tu_ngay$$={$in:[void 0,null,""]};let $query_kh$$={id_app:$ckhd$jscomp$1_id_app$$};$obj$$.ma_kh?$query_kh$$.ma_kh=$obj$$.ma_kh:$query_kh$$.of_user=$ckhds_groups$$;let $kh$$=await global.getModel("customer").findOne($query_kh$$,{nh_kh:1,
|
|
13
|
-
nh_kh2:1,nh_kh3:1,nh_kh4:1,nh_kh5:1,ma_kh:1}).lean();$kh$$&&($kh$$.nh_kh_me=$kh$$.nh_kh?await global.getModel("group").getAllMotherGroup($ckhd$jscomp$1_id_app$$,$kh$$.nh_kh):[],$kh$$.nh_kh2_me=$kh$$.nh_kh2?await global.getModel("group").getAllMotherGroup($ckhd$jscomp$1_id_app$$,$kh$$.nh_kh2):[],$kh$$.nh_kh3_me=$kh$$.nh_kh3?await global.getModel("group").getAllMotherGroup($ckhd$jscomp$1_id_app$$,$kh$$.nh_kh3):[],$kh$$.nh_kh4_me=$kh$$.nh_kh4?await global.getModel("group").getAllMotherGroup($ckhd$jscomp$1_id_app$$,
|
|
14
|
-
$kh$$.nh_kh4):[],$kh$$.nh_kh5_me=$kh$$.nh_kh5?await global.getModel("group").getAllMotherGroup($ckhd$jscomp$1_id_app$$,$kh$$.nh_kh5):[],$hieu_luc_tu_q_ma_kh_sl_toi_thieu$$={$in:[void 0,null,"",$kh$$.ma_kh]},$hieu_luc_den_q_nh_kh_tu_ngay$$={$in:[void 0,null,"",...$kh$$.nh_kh_me]},$ckhd_query$$.ap_dung_lan_mua_thu={$in:[null,void 0,0,$i_lan_mua_thu$$]});$ckhd_query$$.$or=[{$and:[{ma_kh:$hieu_luc_tu_q_ma_kh_sl_toi_thieu$$},{nh_kh:{$in:["",null,void 0]}}]},{$and:[{nh_kh:$hieu_luc_den_q_nh_kh_tu_ngay$$},
|
|
15
|
-
{ma_kh:{$in:["",null,void 0]}}]}];$ckhds_groups$$=await model.find($ckhd_query$$).sort({stt_uu_tien:1,gt_tu:-1,tien_ck:-1,ty_le_ck:-1,ma_kh:-1,nh_kh:-1,hieu_luc_tu:-1}).lean();$ckhds_groups$$=$ckhds_groups$$.filter($ck$$=>(!$ck$$.nh_kh2||$ck$$.nh_kh2.length==0||(($kh$$||[]).nh_kh2_me||[]).find($nh$$=>$ck$$.nh_kh2.indexOf($nh$$)>=0))&&(!$ck$$.nh_kh3||$ck$$.nh_kh3.length==0||(($kh$$||[]).nh_kh3_me||[]).find($nh$$=>$ck$$.nh_kh3.indexOf($nh$$)>=0))&&(!$ck$$.nh_kh4||$ck$$.nh_kh4.length==0||(($kh$$||[]).nh_kh4_me||
|
|
16
|
-
[]).find($nh$$=>$ck$$.nh_kh4.indexOf($nh$$)>=0))&&(!$ck$$.nh_kh5||$ck$$.nh_kh5.length==0||(($kh$$||[]).nh_kh5_me||[]).find($nh$$=>$ck$$.nh_kh5.indexOf($nh$$)>=0)));const $cs_thoai_man$$=[];if($ckhds_groups$$.length>0)for($i_lan_mua_thu$$=0;$i_lan_mua_thu$$<$ckhds_groups$$.length;$i_lan_mua_thu$$++){$ckhd_query$$=$ckhds_groups$$[$i_lan_mua_thu$$];$hieu_luc_tu_q_ma_kh_sl_toi_thieu$$=$ckhd_query$$.sl_toi_thieu||0;let $sl_dap_ung$$=0;$hieu_luc_tu_q_ma_kh_sl_toi_thieu$$&&$ckhd_query$$.vts&&$ckhd_query$$.vts.length>
|
|
17
|
-
0&&$ckhd_query$$.vts.forEach($vt$$=>{var $ds_tien$$=$obj$$.details.filter($d$$=>$d$$.ma_vt===$vt$$.ma_vt&&(!$vt$$.ma_tt1||$vt$$.ma_tt1===$d$$.ma_tt1)&&(!$vt$$.ma_tt2||$vt$$.ma_tt2===$d$$.ma_tt2)&&(!$vt$$.ma_tt3||$vt$$.ma_tt3===$d$$.ma_tt3));if($ds_tien$$.length!=0){var $so_luong$$=$ds_tien$$.map($d$$=>$d$$.sl_xuat).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$ds_tien$$=$ds_tien$$.map($d$$=>($d$$.tien_hang_nt||0)-($d$$.tien_ck_nt||0)).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$vt$$.sl_tu&&$so_luong$$<$vt$$.sl_tu||$vt$$.sl_den&&
|
|
18
|
-
$so_luong$$>$vt$$.sl_den||$vt$$.gt_tu&&$ds_tien$$<$vt$$.gt_tu||$vt$$.gt_den&&$ds_tien$$>$vt$$.gt_den||($sl_dap_ung$$+=1)}});$hieu_luc_tu_q_ma_kh_sl_toi_thieu$$<=$sl_dap_ung$$&&$cs_thoai_man$$.push($ckhd_query$$)}$cs_thoai_man$$.length>0&&($cs_thoai_man$$.forEach($cs$$=>{$cs$$.ty_le_ck=$cs$$.ty_le_ck||0;$cs$$.tien_ck=$cs$$.tien_ck||Math.roundBy($t_tt_nt$$*$cs$$.ty_le_ck/100,0)}),$ckhds_groups$$=[...(new Set($cs_thoai_man$$.map($d$$=>$d$$.ma_nhom||"")))].map($ma_nhom$$=>({ma_nhom:$ma_nhom$$,cks:$cs_thoai_man$$.filter($d$$=>
|
|
19
|
-
($d$$.ma_nhom||"")==($ma_nhom$$||""))})),$ckhd$jscomp$1_id_app$$=await calcDefaultDiscount($ckhd$jscomp$1_id_app$$,$ckhds_groups$$),$obj$$.id_cs_ck_hd=$ckhd$jscomp$1_id_app$$._id,$ckhd$jscomp$1_id_app$$.tien_ck?($obj$$.tien_ck_hd=$ckhd$jscomp$1_id_app$$.tien_ck,$obj$$.ty_le_ck_hd=0):($obj$$.ty_le_ck_hd=$ckhd$jscomp$1_id_app$$.ty_le_ck,$obj$$.tien_ck_hd=Math.roundBy($t_tt_nt$$*$ckhd$jscomp$1_id_app$$.ty_le_ck/100,0)),$ckhd$jscomp$1_id_app$$.so_tien_max&&($obj$$.tien_ck_hd=Math.min($ckhd$jscomp$1_id_app$$.so_tien_max,
|
|
20
|
-
$obj$$.tien_ck_hd)));return{tien_ck_hd:$obj$$.tien_ck_hd,ty_le_ck_hd:$obj$$.ty_le_ck_hd,_id:$obj$$.id_cs_ck_hd}};module.exports=model;
|
|
1
|
+
const _0x45ed1f=_0x270c;function _0x270c(_0x4fa968,_0x51efda){const _0x2efe4a=_0x4dbd();return _0x270c=function(_0x41cede,_0x2fb858){_0x41cede=_0x41cede-0xce;let _0x4dbd57=_0x2efe4a[_0x41cede];if(_0x270c['tVZFGM']===undefined){var _0x270c1f=function(_0x2c036a){const _0x595b24='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x497860='',_0x5690f0='',_0xcfd9c8=_0x497860+_0x270c1f;for(let _0x36c421=0x0,_0x3d8b45,_0x13f8e8,_0x17f98d=0x0;_0x13f8e8=_0x2c036a['charAt'](_0x17f98d++);~_0x13f8e8&&(_0x3d8b45=_0x36c421%0x4?_0x3d8b45*0x40+_0x13f8e8:_0x13f8e8,_0x36c421++%0x4)?_0x497860+=_0xcfd9c8['charCodeAt'](_0x17f98d+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3d8b45>>(-0x2*_0x36c421&0x6)):_0x36c421:0x0){_0x13f8e8=_0x595b24['indexOf'](_0x13f8e8);}for(let _0x5b8fe2=0x0,_0x127b1c=_0x497860['length'];_0x5b8fe2<_0x127b1c;_0x5b8fe2++){_0x5690f0+='%'+('00'+_0x497860['charCodeAt'](_0x5b8fe2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5690f0);};_0x270c['bUTbzk']=_0x270c1f,_0x4fa968=arguments,_0x270c['tVZFGM']=!![];}const _0x495996=_0x2efe4a[0x0],_0x50f723=_0x41cede+_0x495996,_0x51223b=_0x4fa968[_0x50f723];if(!_0x51223b){const _0x2fb7cf=function(_0x2ba51b){this['qlxwNN']=_0x2ba51b,this['eVdQaJ']=[0x1,0x0,0x0],this['SfBFxX']=function(){return'newState';},this['UFRYsf']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['shyGJy']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2fb7cf['prototype']['tLtbim']=function(){const _0x5ecb5e=new RegExp(this['UFRYsf']+this['shyGJy']),_0x554935=_0x5ecb5e['test'](this['SfBFxX']['toString']())?--this['eVdQaJ'][0x1]:--this['eVdQaJ'][0x0];return this['uKpFSi'](_0x554935);},_0x2fb7cf['prototype']['uKpFSi']=function(_0x377161){if(!Boolean(~_0x377161))return _0x377161;return this['tMURLh'](this['qlxwNN']);},_0x2fb7cf['prototype']['tMURLh']=function(_0x42b586){for(let _0x409317=0x0,_0x369dae=this['eVdQaJ']['length'];_0x409317<_0x369dae;_0x409317++){this['eVdQaJ']['push'](Math['round'](Math['random']())),_0x369dae=this['eVdQaJ']['length'];}return _0x42b586(this['eVdQaJ'][0x0]);},new _0x2fb7cf(_0x270c)['tLtbim'](),_0x4dbd57=_0x270c['bUTbzk'](_0x4dbd57),_0x4fa968[_0x50f723]=_0x4dbd57;}else _0x4dbd57=_0x51223b;return _0x4dbd57;},_0x270c(_0x4fa968,_0x51efda);}(function(_0x3a3749,_0x4b01f5){const _0x5a7f98=_0x270c,_0xaee5f2=_0x3a3749();while(!![]){try{const _0x8fd3e4=parseInt(_0x5a7f98(0x14a))/0x1+-parseInt(_0x5a7f98(0x158))/0x2*(-parseInt(_0x5a7f98(0xff))/0x3)+-parseInt(_0x5a7f98(0x159))/0x4+-parseInt(_0x5a7f98(0xf2))/0x5+-parseInt(_0x5a7f98(0x10f))/0x6*(-parseInt(_0x5a7f98(0x143))/0x7)+parseInt(_0x5a7f98(0x11f))/0x8+-parseInt(_0x5a7f98(0x115))/0x9*(parseInt(_0x5a7f98(0x162))/0xa);if(_0x8fd3e4===_0x4b01f5)break;else _0xaee5f2['push'](_0xaee5f2['shift']());}catch(_0x5a18fc){_0xaee5f2['push'](_0xaee5f2['shift']());}}}(_0x4dbd,0xad2cd));const _0x2fb858=(function(){const _0x2bec02=_0x270c,_0x4eb547={'lltHG':function(_0x4cbabb,_0xa7f123){return _0x4cbabb!==_0xa7f123;},'vfjbn':_0x2bec02(0x14b)};let _0x5df1fa=!![];return function(_0x1340c6,_0x1bfd34){const _0x224129=_0x2bec02;if(_0x4eb547[_0x224129(0x147)](_0x4eb547[_0x224129(0x14c)],_0x4eb547[_0x224129(0x14c)])){const _0x1171f4=_0x5b8fe2?function(){if(_0x377161){const _0x24a2f4=_0x260ebb['apply'](_0x2b01ad,arguments);return _0x358920=null,_0x24a2f4;}}:function(){};return _0x554935=![],_0x1171f4;}else{const _0x4db64d=_0x5df1fa?function(){const _0x425519=_0x224129;if(_0x1bfd34){const _0x1e3f14=_0x1bfd34[_0x425519(0x10e)](_0x1340c6,arguments);return _0x1bfd34=null,_0x1e3f14;}}:function(){};return _0x5df1fa=![],_0x4db64d;}};}()),_0x41cede=_0x2fb858(this,function(){const _0x55294c=_0x270c,_0x355ccd={'wzRCx':_0x55294c(0x164)};return _0x41cede[_0x55294c(0x102)]()[_0x55294c(0x148)](_0x355ccd[_0x55294c(0xd4)])[_0x55294c(0x102)]()[_0x55294c(0x121)](_0x41cede)[_0x55294c(0x148)](_0x355ccd[_0x55294c(0xd4)]);});_0x41cede();const dmchietkhauhdSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'stt_uu_tien':{'type':Number,'default':0x0},'ma_chietkhau':{'type':String,'uppercase':!![],'required':!![],'maxlength':0x20},'ten_chietkhau':{'type':String,'required':!![],'maxlength':0x400},'ma_nhom':String,'mieu_ta':{'type':String},'ma_kh':{'type':String,'default':'','maxlength':0x20},'ten_kh':String,'nh_kh':{'type':String,'default':'','maxlength':0x400},'ten_nh_kh':String,'nh_kh2':[],'nh_kh3':[],'nh_kh4':[],'nh_kh5':[],'ma_kho':{'type':String,'default':'','maxlength':0x20},'ten_kho':String,'gt_tu':{'type':Number,'default':0x0},'gt_den':{'type':Number,'default':0x0},'vts':[],'sl_toi_thieu':{'type':Number,'default':0x0},'tien_ck':{'type':Number,'default':0x0},'ty_le_ck':{'type':Number,'default':0x0},'so_tien_max':{'type':Number,'default':0x0},'hieu_luc_tu':{'type':Date,'required':!![]},'hieu_luc_den':{'type':Date,'required':!![]},'ap_dung_lan_mua_thu':{'type':Number},'ap_dung_lan_mua_tu_thu':{'type':Number},'ap_dung_lan_mua_den_thu':{'type':Number},'details_km':[],'picture':{'type':String},'exfields':Schema[_0x45ed1f(0xda)][_0x45ed1f(0x11a)],'newsfeed':{'type':Boolean,'default':!![]},'online':{'type':Boolean},'offline':{'type':Boolean},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x45ed1f(0x14d)]},'date_updated':{'type':Date,'default':Date[_0x45ed1f(0x14d)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'ma_kh_id':{'type':Schema[_0x45ed1f(0xda)][_0x45ed1f(0xf4)],'ref':_0x45ed1f(0xfa),'localField':[_0x45ed1f(0xd8)],'foreignField':[_0x45ed1f(0xd8)]},'ma_kho_id':{'type':Schema[_0x45ed1f(0xda)][_0x45ed1f(0xf4)],'ref':'dmkho','localField':[_0x45ed1f(0x142)],'foreignField':[_0x45ed1f(0x142)]}});if((global[_0x45ed1f(0x15e)]||{})[_0x45ed1f(0x13a)]){const TBuEuL=_0x45ed1f(0xe7)[_0x45ed1f(0xd3)]('|');let SLSolR=0x0;while(!![]){switch(TBuEuL[SLSolR++]){case'0':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'ten_nh_kh':0x1});continue;case'1':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'status':0x1});continue;case'2':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'mieu_ta':_0x45ed1f(0xea),'ma_chietkhau':_0x45ed1f(0xea),'ten_chietkhau':_0x45ed1f(0xea),'ma_kh':_0x45ed1f(0xea),'ten_kh':_0x45ed1f(0xea),'nh_kh':'text','ten_nh_kh':_0x45ed1f(0xea),'ma_kho':_0x45ed1f(0xea),'ten_kho':_0x45ed1f(0xea)},{'name':_0x45ed1f(0x106)});continue;case'3':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'user_created':0x1});continue;case'4':dmchietkhauhdSchema['index']({'ap_dung_lan_mua_den_thu':0x1});continue;case'5':dmchietkhauhdSchema['index']({'nh_kh':0x1});continue;case'6':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'ap_dung_lan_mua_thu':0x1});continue;case'7':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'ten_kho':0x1});continue;case'8':dmchietkhauhdSchema['set'](_0x45ed1f(0x134),{'virtuals':!![]});continue;case'9':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'date_created':-0x1});continue;case'10':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'gt_den':0x1});continue;case'11':dmchietkhauhdSchema[_0x45ed1f(0x155)](_0x45ed1f(0xeb),{'virtuals':!![]});continue;case'12':dmchietkhauhdSchema['index']({'nh_kh2':0x1});continue;case'13':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'ap_dung_lan_mua_tu_thu':0x1});continue;case'14':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'date_updated':-0x1});continue;case'15':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'offline':0x1});continue;case'16':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'nh_kh3':0x1});continue;case'17':dmchietkhauhdSchema['index']({'online':0x1});continue;case'18':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'nh_kh4':0x1});continue;case'19':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'id_app':0x1,'ma_chietkhau':0x1,'ma_kho':0x1,'ma_kh':0x1,'hieu_luc_tu':-0x1,'hieu_luc_den':-0x1});continue;case'20':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'ma_nhom':0x1});continue;case'21':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'nh_kh5':0x1});continue;case'22':dmchietkhauhdSchema[_0x45ed1f(0x13b)]({'gt_tu':0x1});continue;}break;}}function _0x4dbd(){const _0x495506=['Dg9eyxrL','CMDKs00','BwfFDhqY','z2v0tw9KzwW','y3jLyxrLsw5KzxHLCW','Aw5KzxG','CMfmCgW','Eez5wum','DgLLBL9JA19UDa','thvwtKe','C2XFEhvHDa','rMPpAe0','BwfFA2HV','ndaZmdzstff0wxG','ve9jx1risuvv','y3PfAuu','BMHFA2G1','BgX0seC','C2vHCMnO','z3rFDhu','mta3ntq5mxP3BeTAsq','yNzkwMy','DMzQyM4','BM93','DNrZ','CfLOu2W','BMHFA2GZ','z3rFzgvU','vwjSDKe','z2v0qwXStw90AgvYr3jVDxa','BwLU','C2v0','C3r0','AgLLDv9SDwnFzgvU','mMzAuLPVrW','mtu0otK4nhLjsg1yBq','Bw9Tzw50','t1PVsLO','zgf0zq','yNn2Eum','y29UzMLNCW','yK9UA0S','ChvZAa','BMHFA2G1x21L','mZCWntqXmgHoz0nbBW','uKTHzLG','kcGOlISPkYKRksSK','BMHFA2G','ze5btxe','zxHWB3j0CW','B2zFDxnLCG','rujvv2i','zw5Kt2y','BgvUz3rO','tvfSA2y','C3bSAxq','D3Psq3G','quPcD2e','CM91BMrcEq','DhLFBgvFy2TFAgq','BwfFA2G','DgLUAenOAwv0s2HHDq','vhLWzxm','BgD0CKG','ANrHELe','BwfFBMHVBq','DgLLBL9JA19Oza','BMDHEv9JDa','BwfFDhqX','uw10sfa','BMHFA2G0x21L','AxDMsM4','BwfW','qvfQELy','zMLSDgvY','mtL8mJb8nNWXm3W0FdiYFdeWFdD8nxWWFdeYFde2Fde4FdiXFde0FdL8m3WXn3WXnxWYFdH8mtf8mq','CgH1B25Nx3bOyxbFyxbFzhvUzW','q2rLqM8','Dgv4Da','Dg9ku09o','BerrBxi','DgLLBL9Oyw5Nx250','BwfFDNq','EvrMq20','q2zMtNa','BgvHBG','mtC3odyXnvfQrK1qEG','jgfUza','t2jQzwn0swq','rez3C1i','BMHFA2GY','EfLsywS','BMHFA2GYx21L','sK9SBxq','y3vZDg9Tzxi','tfjisum','zM9YrwfJAa','v1zwtLO','CLfxEMW','mteYodq4vwLtqMzr','C2rxquC','EfrXv0y','Dg9tDhjPBMC','q0jKCem','D3DJDLi','yxbFzhvUz19Syw5FBxvHx3rODq','zg1JAgLLDgTOyxvOzf9PBMrLEf90zxH0','wKD5BgK','BMHFA2G0','rejzCu0','wMHJuhC','AKfrBMO','v2XhuNC','BMHFA2HFBwu','yxbWBhK','ota2DfLzCMXc','BMHFBwu','DgLLBL9JAW','EurdyKS','C29FDgLLBL9TyxG','r0Pssvu','ndvXzfrpAMO','x2LK','Bw9KzwXZ','vMnAB0i','zMLUze9Uzq','twL4zwq','B0zUvwK','BMHFA2GZx21L','C2XFzgvU','Aw5KzxHpzG','mta1ode0nZjsrffeENa','EfPyswm','y29UC3rYDwn0B3i','EwDnAeO','C3r0x3v1x3rPzw4','zg1JAgLLDgTOyxvOza','AwrFy3nFy2TFAgq','C2XFDhu','DhLFBgvFy2S','u1jwqve','C3rHCNrpzG','C29YDa','BwfFDhqZ','q09orW','zgv0ywLSCW','rezYvhu','CMvKDwnL','uvbICxm','uMjut04','yw5Ht0C','y2TZ','Dg9pyMPLy3q','zMLUza'];_0x4dbd=function(){return _0x495506;};return _0x4dbd();}const model=mongoose[_0x45ed1f(0x117)][_0x45ed1f(0x124)]||mongoose['model'](_0x45ed1f(0x124),dmchietkhauhdSchema),moment=require(_0x45ed1f(0x15a)),calcDefaultDiscount=async(_0x507c27,_0x5ba5c4)=>{const _0x3e0ba2=_0x45ed1f,_0x3ce015={'LuVNA':function(_0x245b9d,_0x38b67f){return _0x245b9d===_0x38b67f;},'WlGRw':'vFJmy','iwfJn':_0x3e0ba2(0x12c),'ygMhJ':'dmnckkm','cffNG':_0x3e0ba2(0x116),'VcZoB':_0x3e0ba2(0xe8),'GkAKV':'nh_me','jtazQ':_0x3e0ba2(0x156),'JebCI':function(_0x341c07,_0xf676b1){return _0x341c07==_0xf676b1;},'qTfBo':'CffNp','CdeBo':_0x3e0ba2(0x131),'DFrTu':function(_0x1aad21,_0x345ba6,_0x9bc8d2){return _0x1aad21(_0x345ba6,_0x9bc8d2);}};let _0x1f0c5a;await _0x5ba5c4[_0x3e0ba2(0xe6)](_0x50fd9a=>_0x50fd9a[_0x3e0ba2(0xdd)]&&!_0x50fd9a['phuong_phap_ap_dung'])['asyncJoinModel2'](_0x507c27,_0x3ce015[_0x3e0ba2(0x122)],{'where':{'ma_nhom':_0x3ce015['cffNG']},'fields':[_0x3ce015[_0x3e0ba2(0x118)],_0x3ce015['GkAKV'],{'stt_uu_tien':_0x3ce015[_0x3e0ba2(0xdc)]}]}),_0x5ba5c4['forEach'](_0x2dbc07=>{const _0x4d4f28=_0x3e0ba2;switch(_0x2dbc07[_0x4d4f28(0xe8)]){case _0x4d4f28(0x144):{if(_0x3ce015[_0x4d4f28(0x13f)]('vFJmy',_0x3ce015[_0x4d4f28(0x10c)])){_0x2dbc07['ck']=_0x2dbc07['cks'][_0x4d4f28(0x12a)]((_0x3047e8,_0x54bb5a)=>_0x3047e8['tien_ck']-_0x54bb5a[_0x4d4f28(0x111)])[0x0],_0x2dbc07['ck'][_0x4d4f28(0x123)]=_0x2dbc07['stt_uu_tien'];break;}else _0x4e1d85=_0x2eeae0[0x0]['ck'];}case'TOI_DA':{_0x2dbc07['ck']=_0x2dbc07[_0x4d4f28(0x133)][_0x4d4f28(0x12a)]((_0x5a96ef,_0x18c1b6)=>_0x18c1b6[_0x4d4f28(0x111)]-_0x5a96ef[_0x4d4f28(0x111)])[0x0],_0x2dbc07['ck']['stt_uu_tien']=_0x2dbc07['stt_uu_tien'];break;}case _0x3ce015[_0x4d4f28(0xe3)]:{_0x2dbc07['ck']={'ty_le_ck':0x0,'tien_ck':_0x2dbc07[_0x4d4f28(0x133)][_0x4d4f28(0xe4)](_0x33ed8f=>_0x33ed8f['tien_ck']||0x0)[_0x4d4f28(0x12f)]((_0x22529e,_0x218767)=>_0x22529e+_0x218767,0x0)},_0x2dbc07['ck']['stt_uu_tien']=_0x2dbc07['stt_uu_tien'];break;}default:{_0x2dbc07['ck']=_0x2dbc07['cks'][_0x4d4f28(0x12a)]((_0x3ecd15,_0x8df7fe)=>(_0x3ecd15[_0x4d4f28(0x123)]||0x0)-(_0x8df7fe['stt_uu_tien']||0x0))[0x0],_0x2dbc07['ck'][_0x4d4f28(0x123)]=_0x2dbc07[_0x4d4f28(0x123)];break;}}delete _0x2dbc07['cks'];});if(_0x3ce015['JebCI'](_0x5ba5c4[_0x3e0ba2(0xd1)],0x1))_0x1f0c5a=_0x5ba5c4[0x0]['ck'];else{if(_0x3ce015['LuVNA'](_0x3ce015['qTfBo'],_0x3e0ba2(0xf0))){if(!_0x5ba5c4['find'](_0x527092=>_0x527092[_0x3e0ba2(0x110)])){if(_0x3ce015[_0x3e0ba2(0x13f)](_0x3e0ba2(0xcf),_0x3ce015[_0x3e0ba2(0xe9)])){const _0x4e581d=_0x1a3a6a[_0x3e0ba2(0xe6)](_0x54103a=>(_0x54103a[_0x3e0ba2(0xdd)]||'')==_0x1156c6)[_0x3e0ba2(0xe4)](_0x53f868=>_0x53f868['ck']);return{'ma_nhom':_0x5c8b21,'cks':_0x4e581d};}else _0x1f0c5a=_0x5ba5c4[_0x3e0ba2(0x12a)]((_0x375596,_0x146ded)=>(_0x375596[_0x3e0ba2(0x123)]||0x0)-(_0x146ded['stt_uu_tien']||0x0))[0x0];}else{_0x5ba5c4=_0x5ba5c4[_0x3e0ba2(0xe4)](_0x31cf8e=>{const _0x57b74f=_0x3e0ba2;return _0x31cf8e[_0x57b74f(0x110)]&&(_0x31cf8e[_0x57b74f(0xdd)]=_0x31cf8e[_0x57b74f(0x110)],_0x31cf8e[_0x57b74f(0x110)]='',_0x31cf8e[_0x57b74f(0xe8)]=''),_0x31cf8e;});const _0xea3466=[...new Set(_0x5ba5c4[_0x3e0ba2(0xe4)](_0x3e4977=>_0x3e4977[_0x3e0ba2(0xdd)]||''))][_0x3e0ba2(0xe4)](_0x4675fb=>{const _0x146524=_0x3e0ba2,_0x3ad082=_0x5ba5c4['filter'](_0x1635ca=>(_0x1635ca[_0x146524(0xdd)]||'')==_0x4675fb)[_0x146524(0xe4)](_0x25730a=>_0x25730a['ck']);return{'ma_nhom':_0x4675fb,'cks':_0x3ad082};});_0x1f0c5a=await _0x3ce015[_0x3e0ba2(0x12e)](calcDefaultDiscount,_0x507c27,_0xea3466);}}else return;}return _0x1f0c5a;};model[_0x45ed1f(0xd9)]=async(_0x728fa9,_0x132225,_0x4e5faa,_0x4509dd,_0x30027b=0x1)=>{const _0x49a9ec=_0x45ed1f,_0x4d5b8c={'AQjzV':function(_0x462e75,_0x1b4604){return _0x462e75>_0x1b4604;},'ZGyli':function(_0x2b6b1a,_0x1394a1){return _0x2b6b1a<_0x1394a1;},'RKafX':_0x49a9ec(0xea),'CBdpC':_0x49a9ec(0x106),'OZoJZ':_0x49a9ec(0xeb),'AJBwa':_0x49a9ec(0x141),'wwcvR':function(_0x5e2304,_0x3b85be){return _0x5e2304==_0x3b85be;},'MQlkf':function(_0x22cb70,_0x47f54c){return _0x22cb70==_0x47f54c;},'xTqWF':function(_0x5a4b39,_0x1357f2){return _0x5a4b39>_0x1357f2;},'oFnUi':function(_0xaaee20,_0x3ab2b2){return _0xaaee20>_0x3ab2b2;},'DFwsR':function(_0x244619,_0x1cad7a){return _0x244619/_0x1cad7a;},'GJRIU':function(_0xaa77c0,_0x9aa1d3){return _0xaa77c0*_0x9aa1d3;},'jAQnj':function(_0x2e3b89,_0x28bbc0){return _0x2e3b89(_0x28bbc0);},'bsvyC':_0x49a9ec(0x15c),'Ranvm':_0x49a9ec(0x109),'raLpl':function(_0x12076b,_0x4f8b1c){return _0x12076b!==_0x4f8b1c;},'lgtrH':_0x49a9ec(0x145),'WVVNZ':'customer','FQljF':function(_0x28c425,_0x483cfe){return _0x28c425!==_0x483cfe;},'dNAMq':_0x49a9ec(0x100),'xZXIc':'group','JOlmt':_0x49a9ec(0xf7),'rQWzl':function(_0xcb45f3,_0x6cdd0a){return _0xcb45f3===_0x6cdd0a;},'rgdKM':_0x49a9ec(0x132),'lDQmr':'Griyz','pYhSl':function(_0x338d2b,_0xbbd2f){return _0x338d2b!==_0xbbd2f;},'CUrJE':_0x49a9ec(0x112),'QPbqs':_0x49a9ec(0x152),'QmtHP':_0x49a9ec(0xfb),'yTfCm':function(_0x4ba2da,_0x366018){return _0x4ba2da>_0x366018;},'xFyYC':function(_0x18960b,_0x4b5014){return _0x18960b<=_0x4b5014;},'bOnkK':function(_0x5a67b3,_0x1808ca,_0x5680e3){return _0x5a67b3(_0x1808ca,_0x5680e3);},'DFskS':function(_0x5d6e58,_0x5e75bc){return _0x5d6e58/_0x5e75bc;},'ZhcPw':function(_0x511906,_0xdeafac){return _0x511906*_0xdeafac;}};_0x4e5faa[_0x49a9ec(0xde)]=0x0,_0x4e5faa['ty_le_ck_hd']=0x0;let _0x3eaca9={'id_app':_0x132225,'gt_tu':{'$lte':_0x4509dd},'ma_kho':{'$in':[undefined,null,'',_0x4e5faa['ma_kho']]}};_0x3eaca9[_0x49a9ec(0xf3)]=[{'$or':[{'gt_den':{'$in':[0x0,undefined,null]}},{'gt_den':{'$gte':_0x4509dd}}]}];let _0x13030a,_0x4cae82,_0x4a07ec=_0x4d5b8c[_0x49a9ec(0x10b)](moment,_0x4e5faa[_0x49a9ec(0xdf)])[_0x49a9ec(0x129)](_0x4d5b8c['bsvyC'])[_0x49a9ec(0x136)](),_0x2046be=moment(_0x4e5faa[_0x49a9ec(0xdf)])[_0x49a9ec(0xd0)](_0x4d5b8c[_0x49a9ec(0x15d)])[_0x49a9ec(0x136)]();_0x13030a={'$lte':_0x2046be},_0x4cae82={'$gte':_0x4a07ec},_0x3eaca9['hieu_luc_tu']=_0x13030a,_0x3eaca9[_0x49a9ec(0x157)]=_0x4cae82;let _0x3314e5={'stt_uu_tien':0x1,'gt_tu':-0x1,'tien_ck':-0x1,'ty_le_ck':-0x1,'ma_kh':-0x1,'nh_kh':-0x1,'hieu_luc_tu':-0x1},_0x1baabd={'$in':[undefined,null,'']},_0x2d4dc6={'$in':[undefined,null,'']},_0x140186={'id_app':_0x132225};_0x4e5faa['ma_kh']?_0x4d5b8c['Ranvm']===_0x4d5b8c['Ranvm']?_0x140186[_0x49a9ec(0xd8)]=_0x4e5faa[_0x49a9ec(0xd8)]:_0x484de5[_0x49a9ec(0xde)]=_0xd47e26[_0x49a9ec(0x154)](_0x50dba0[_0x49a9ec(0x113)],_0x4f07a5['tien_ck_hd']):_0x4d5b8c[_0x49a9ec(0x13c)](_0x4d5b8c[_0x49a9ec(0xdb)],_0x4d5b8c[_0x49a9ec(0xdb)])?_0x1f62bb[_0x49a9ec(0xe2)]=[]:_0x140186[_0x49a9ec(0xce)]=_0x728fa9;let _0x126049=await global['getModel'](_0x4d5b8c[_0x49a9ec(0xfd)])[_0x49a9ec(0x119)](_0x140186,{'nh_kh':0x1,'nh_kh2':0x1,'nh_kh3':0x1,'nh_kh4':0x1,'nh_kh5':0x1,'ma_kh':0x1})[_0x49a9ec(0xf1)]();if(_0x126049){if(_0x4d5b8c['FQljF'](_0x4d5b8c[_0x49a9ec(0x166)],_0x49a9ec(0x100)))_0x127f4f[_0x49a9ec(0xce)]=_0x5c7396;else{_0x126049[_0x49a9ec(0x165)]?_0x126049['nh_kh_me']=await global[_0x49a9ec(0x139)](_0x4d5b8c[_0x49a9ec(0x120)])[_0x49a9ec(0x153)](_0x132225,_0x126049['nh_kh']):_0x126049[_0x49a9ec(0x10d)]=[];if(_0x126049['nh_kh2']){if(_0x4d5b8c[_0x49a9ec(0xf9)]!==_0x4d5b8c['JOlmt']){let _0x2da587=_0x2d82a0[_0x49a9ec(0x12d)][_0x49a9ec(0xe6)](_0x181715=>_0x181715[_0x49a9ec(0xee)]===_0x2d3595['ma_vt']&&(!_0xe949f8[_0x49a9ec(0xe0)]||_0x132a4f[_0x49a9ec(0xe0)]===_0x181715[_0x49a9ec(0xe0)])&&(!_0x5f264d['ma_tt2']||_0x4fd6ac[_0x49a9ec(0x138)]===_0x181715['ma_tt2'])&&(!_0x28acd3[_0x49a9ec(0x12b)]||_0x55f506[_0x49a9ec(0x12b)]===_0x181715[_0x49a9ec(0x12b)]));if(_0x2da587[_0x49a9ec(0xd1)]==0x0)return;let _0x32e2f1=_0x2da587[_0x49a9ec(0xe4)](_0x1d1b28=>_0x1d1b28['sl_xuat'])[_0x49a9ec(0x12f)]((_0x2ab3cb,_0x5501c9)=>_0x2ab3cb+_0x5501c9,0x0),_0x28a3aa=_0x2da587[_0x49a9ec(0xe4)](_0x208336=>(_0x208336[_0x49a9ec(0xed)]||0x0)-(_0x208336[_0x49a9ec(0x13e)]||0x0))[_0x49a9ec(0x12f)]((_0x386ca2,_0x59a3c8)=>_0x386ca2+_0x59a3c8,0x0);if(_0x3d1810['sl_tu']&&_0x32e2f1<_0x1f51ee['sl_tu']||_0x2b8eb1['sl_den']&&_0x4d5b8c[_0x49a9ec(0xe5)](_0x32e2f1,_0x5f549b[_0x49a9ec(0x11d)]))return;if(_0xc71003[_0x49a9ec(0x149)]&&_0x4d5b8c[_0x49a9ec(0x107)](_0x28a3aa,_0x2978b6[_0x49a9ec(0x149)])||_0x5a0626[_0x49a9ec(0x151)]&&_0x28a3aa>_0x8c11cf[_0x49a9ec(0x151)])return;_0xe47b29+=0x1;}else _0x126049[_0x49a9ec(0xf8)]=await global['getModel'](_0x4d5b8c[_0x49a9ec(0x120)])[_0x49a9ec(0x153)](_0x132225,_0x126049[_0x49a9ec(0xf6)]);}else _0x126049[_0x49a9ec(0xf8)]=[];_0x126049[_0x49a9ec(0x150)]?_0x4d5b8c[_0x49a9ec(0xfe)](_0x4d5b8c[_0x49a9ec(0x137)],_0x4d5b8c['rgdKM'])?_0x126049['nh_kh3_me']=await global[_0x49a9ec(0x139)](_0x4d5b8c[_0x49a9ec(0x120)])[_0x49a9ec(0x153)](_0x132225,_0x126049['nh_kh3']):_0x32a7a4[_0x49a9ec(0x161)]=[]:_0x4d5b8c[_0x49a9ec(0xec)]!==_0x4d5b8c[_0x49a9ec(0xec)]?(_0xf30cbf[_0x49a9ec(0x13b)]({'id_app':0x1,'ma_chietkhau':0x1,'ma_kho':0x1,'ma_kh':0x1,'hieu_luc_tu':-0x1,'hieu_luc_den':-0x1}),_0xd65346['index']({'ma_nhom':0x1}),_0x1c90a6[_0x49a9ec(0x13b)]({'ap_dung_lan_mua_thu':0x1}),_0x49736c[_0x49a9ec(0x13b)]({'ap_dung_lan_mua_tu_thu':0x1}),_0x541f3e['index']({'ap_dung_lan_mua_den_thu':0x1}),_0x4557e4[_0x49a9ec(0x13b)]({'gt_tu':0x1}),_0x11bc52[_0x49a9ec(0x13b)]({'gt_den':0x1}),_0x281ba4[_0x49a9ec(0x13b)]({'ten_kho':0x1}),_0x18124c['index']({'nh_kh':0x1}),_0x518a87[_0x49a9ec(0x13b)]({'ten_nh_kh':0x1}),_0x167a3c['index']({'nh_kh2':0x1}),_0x4aa7da['index']({'nh_kh3':0x1}),_0x441648['index']({'nh_kh4':0x1}),_0x57b9be[_0x49a9ec(0x13b)]({'nh_kh5':0x1}),_0x194ff0[_0x49a9ec(0x13b)]({'date_updated':-0x1}),_0x38814c[_0x49a9ec(0x13b)]({'date_created':-0x1}),_0x546310['index']({'user_created':0x1}),_0x4488a0[_0x49a9ec(0x13b)]({'online':0x1}),_0x132b5d[_0x49a9ec(0x13b)]({'offline':0x1}),_0xfd11ec[_0x49a9ec(0x13b)]({'mieu_ta':_0x49a9ec(0xea),'ma_chietkhau':_0x4d5b8c[_0x49a9ec(0x163)],'ten_chietkhau':_0x4d5b8c[_0x49a9ec(0x163)],'ma_kh':_0x4d5b8c[_0x49a9ec(0x163)],'ten_kh':_0x49a9ec(0xea),'nh_kh':_0x4d5b8c[_0x49a9ec(0x163)],'ten_nh_kh':_0x4d5b8c['RKafX'],'ma_kho':_0x4d5b8c['RKafX'],'ten_kho':_0x4d5b8c[_0x49a9ec(0x163)]},{'name':_0x4d5b8c[_0x49a9ec(0x103)]}),_0x5ab6f9[_0x49a9ec(0x155)](_0x49a9ec(0x134),{'virtuals':!![]}),_0x1cda5e[_0x49a9ec(0x155)](_0x4d5b8c[_0x49a9ec(0x15b)],{'virtuals':!![]}),_0x191ddd['index']({'status':0x1})):_0x126049[_0x49a9ec(0x11c)]=[],_0x126049[_0x49a9ec(0x108)]?_0x126049[_0x49a9ec(0xe2)]=await global['getModel'](_0x4d5b8c[_0x49a9ec(0x120)])[_0x49a9ec(0x153)](_0x132225,_0x126049[_0x49a9ec(0x108)]):_0x126049[_0x49a9ec(0xe2)]=[],_0x126049['nh_kh5']?_0x4d5b8c[_0x49a9ec(0x14f)](_0x4d5b8c['CUrJE'],_0x4d5b8c[_0x49a9ec(0x130)])?_0x126049['nh_kh5_me']=await global[_0x49a9ec(0x139)](_0x4d5b8c[_0x49a9ec(0x120)])[_0x49a9ec(0x153)](_0x132225,_0x126049[_0x49a9ec(0x146)]):_0x67760b['nh_kh2_me']=[]:_0x126049[_0x49a9ec(0x161)]=[],_0x1baabd={'$in':[undefined,null,'',_0x126049[_0x49a9ec(0xd8)]]},_0x2d4dc6={'$in':[undefined,null,'',..._0x126049[_0x49a9ec(0x10d)]]},_0x3eaca9[_0x49a9ec(0x105)]={'$in':[null,undefined,0x0,_0x30027b]};}}_0x3eaca9['$or']=[{'$and':[{'ma_kh':_0x1baabd},{'nh_kh':{'$in':['',null,undefined]}}]},{'$and':[{'nh_kh':_0x2d4dc6},{'ma_kh':{'$in':['',null,undefined]}}]}];let _0x1c17bf=await model[_0x49a9ec(0x135)](_0x3eaca9)[_0x49a9ec(0x12a)](_0x3314e5)[_0x49a9ec(0xf1)]();_0x1c17bf=_0x1c17bf['filter'](_0x33500f=>{const _0x48fc24=_0x49a9ec;if(_0x4d5b8c[_0x48fc24(0xd5)]===_0x48fc24(0x141))return(!_0x33500f[_0x48fc24(0xf6)]||_0x4d5b8c[_0x48fc24(0x104)](_0x33500f[_0x48fc24(0xf6)][_0x48fc24(0xd1)],0x0)||((_0x126049||[])[_0x48fc24(0xf8)]||[])[_0x48fc24(0x135)](_0x430b9e=>_0x33500f[_0x48fc24(0xf6)]['indexOf'](_0x430b9e)>=0x0))&&(!_0x33500f[_0x48fc24(0x150)]||_0x4d5b8c['wwcvR'](_0x33500f[_0x48fc24(0x150)][_0x48fc24(0xd1)],0x0)||((_0x126049||[])['nh_kh3_me']||[])['find'](_0x8e8232=>_0x33500f[_0x48fc24(0x150)][_0x48fc24(0x11e)](_0x8e8232)>=0x0))&&(!_0x33500f[_0x48fc24(0x108)]||_0x4d5b8c[_0x48fc24(0x104)](_0x33500f[_0x48fc24(0x108)][_0x48fc24(0xd1)],0x0)||((_0x126049||[])[_0x48fc24(0xe2)]||[])['find'](_0x7d37d2=>_0x33500f[_0x48fc24(0x108)][_0x48fc24(0x11e)](_0x7d37d2)>=0x0))&&(!_0x33500f['nh_kh5']||_0x4d5b8c[_0x48fc24(0xd2)](_0x33500f[_0x48fc24(0x146)][_0x48fc24(0xd1)],0x0)||((_0x126049||[])[_0x48fc24(0x161)]||[])['find'](_0x18e1d8=>_0x33500f['nh_kh5']['indexOf'](_0x18e1d8)>=0x0));else return;});const _0x555434=[];if(_0x4d5b8c[_0x49a9ec(0xe5)](_0x1c17bf['length'],0x0))for(let _0x57ce5b=0x0;_0x57ce5b<_0x1c17bf[_0x49a9ec(0xd1)];_0x57ce5b++){if(_0x4d5b8c[_0x49a9ec(0xe1)]===_0x49a9ec(0x128)){const _0x44f7c3=_0x2fc180[_0x49a9ec(0x10e)](_0x2a0cd6,arguments);return _0x5b2c41=null,_0x44f7c3;}else{let _0x3484b4=_0x1c17bf[_0x57ce5b],_0x3ca774=_0x3484b4['sl_toi_thieu']||0x0,_0x539a2d=0x0;_0x3ca774&&_0x3484b4[_0x49a9ec(0x14e)]&&_0x4d5b8c[_0x49a9ec(0xef)](_0x3484b4[_0x49a9ec(0x14e)][_0x49a9ec(0xd1)],0x0)&&_0x3484b4[_0x49a9ec(0x14e)][_0x49a9ec(0xfc)](_0x211339=>{const _0x39f3f9=_0x49a9ec;let _0x3b6121=_0x4e5faa[_0x39f3f9(0x12d)][_0x39f3f9(0xe6)](_0x2d3a45=>_0x2d3a45[_0x39f3f9(0xee)]===_0x211339[_0x39f3f9(0xee)]&&(!_0x211339[_0x39f3f9(0xe0)]||_0x211339[_0x39f3f9(0xe0)]===_0x2d3a45[_0x39f3f9(0xe0)])&&(!_0x211339[_0x39f3f9(0x138)]||_0x211339[_0x39f3f9(0x138)]===_0x2d3a45['ma_tt2'])&&(!_0x211339[_0x39f3f9(0x12b)]||_0x211339[_0x39f3f9(0x12b)]===_0x2d3a45['ma_tt3']));if(_0x3b6121['length']==0x0)return;let _0x1204db=_0x3b6121[_0x39f3f9(0xe4)](_0x123b02=>_0x123b02[_0x39f3f9(0x140)])['reduce']((_0x19faea,_0x17d6f1)=>_0x19faea+_0x17d6f1,0x0),_0x34e893=_0x3b6121['map'](_0x2b493d=>(_0x2b493d[_0x39f3f9(0xed)]||0x0)-(_0x2b493d[_0x39f3f9(0x13e)]||0x0))['reduce']((_0x1f167f,_0x190892)=>_0x1f167f+_0x190892,0x0);if(_0x211339[_0x39f3f9(0x126)]&&_0x1204db<_0x211339[_0x39f3f9(0x126)]||_0x211339[_0x39f3f9(0x11d)]&&_0x4d5b8c[_0x39f3f9(0x101)](_0x1204db,_0x211339['sl_den']))return;if(_0x211339[_0x39f3f9(0x149)]&&_0x4d5b8c['ZGyli'](_0x34e893,_0x211339[_0x39f3f9(0x149)])||_0x211339[_0x39f3f9(0x151)]&&_0x4d5b8c[_0x39f3f9(0x11b)](_0x34e893,_0x211339['gt_den']))return;_0x539a2d+=0x1;}),_0x4d5b8c[_0x49a9ec(0x13d)](_0x3ca774,_0x539a2d)&&_0x555434[_0x49a9ec(0x160)](_0x3484b4);}}if(_0x4d5b8c[_0x49a9ec(0x11b)](_0x555434['length'],0x0)){_0x555434[_0x49a9ec(0xfc)](_0x19f3b5=>{const _0x4c7e15=_0x49a9ec;_0x19f3b5[_0x4c7e15(0x127)]=_0x19f3b5[_0x4c7e15(0x127)]||0x0,_0x19f3b5[_0x4c7e15(0x111)]=_0x19f3b5[_0x4c7e15(0x111)]||Math[_0x4c7e15(0xd6)](_0x4d5b8c[_0x4c7e15(0xf5)](_0x4d5b8c[_0x4c7e15(0x114)](_0x4509dd,_0x19f3b5[_0x4c7e15(0x127)]),0x64),0x0);});let _0x211d07=[...new Set(_0x555434[_0x49a9ec(0xe4)](_0x465cfe=>_0x465cfe[_0x49a9ec(0xdd)]||''))][_0x49a9ec(0xe4)](_0x5cf71f=>{const _0x14d984=_0x49a9ec;return{'ma_nhom':_0x5cf71f,'cks':_0x555434[_0x14d984(0xe6)](_0x81e052=>(_0x81e052['ma_nhom']||'')==(_0x5cf71f||''))};});const _0x9bf63f=await _0x4d5b8c[_0x49a9ec(0x15f)](calcDefaultDiscount,_0x132225,_0x211d07);_0x4e5faa[_0x49a9ec(0x125)]=_0x9bf63f['_id'],_0x9bf63f['tien_ck']?(_0x4e5faa['tien_ck_hd']=_0x9bf63f[_0x49a9ec(0x111)],_0x4e5faa[_0x49a9ec(0xd7)]=0x0):(_0x4e5faa[_0x49a9ec(0xd7)]=_0x9bf63f[_0x49a9ec(0x127)],_0x4e5faa['tien_ck_hd']=Math[_0x49a9ec(0xd6)](_0x4d5b8c['DFskS'](_0x4d5b8c[_0x49a9ec(0x10a)](_0x4509dd,_0x9bf63f['ty_le_ck']),0x64),0x0)),_0x9bf63f[_0x49a9ec(0x113)]&&(_0x4e5faa['tien_ck_hd']=Math['min'](_0x9bf63f[_0x49a9ec(0x113)],_0x4e5faa[_0x49a9ec(0xde)]));}return{'tien_ck_hd':_0x4e5faa[_0x49a9ec(0xde)],'ty_le_ck_hd':_0x4e5faa[_0x49a9ec(0xd7)],'_id':_0x4e5faa[_0x49a9ec(0x125)]};},module[_0x45ed1f(0x167)]=model;
|
package/server/models/dmcpmh.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const dmcpmhSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
(global.configs||{}).createIndexes&&(dmcpmhSchema.index({id_app:1,ma_cp:1,ten_cp:1}),dmcpmhSchema.index({ma_cp:"text",ten_cp:"text"},{name:"dmcpmh_index_text"}),dmcpmhSchema.index({status:1}),dmcpmhSchema.index({user_created:1,visible_to:1,visible_to_users:1}));module.exports=mongoose.models.dmcpmh||mongoose.model("dmcpmh",dmcpmhSchema);
|
|
1
|
+
function _0x25a0(_0x32c7cc,_0x46db18){const _0x31665b=_0x5816();return _0x25a0=function(_0x615728,_0x3e28a5){_0x615728=_0x615728-0x133;let _0x581644=_0x31665b[_0x615728];if(_0x25a0['yeANEh']===undefined){var _0x25a056=function(_0x546bd0){const _0xf5e117='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x47de97='',_0x50958b='',_0x1e7061=_0x47de97+_0x25a056;for(let _0x27f78d=0x0,_0x2d4aee,_0x31f9da,_0x58f566=0x0;_0x31f9da=_0x546bd0['charAt'](_0x58f566++);~_0x31f9da&&(_0x2d4aee=_0x27f78d%0x4?_0x2d4aee*0x40+_0x31f9da:_0x31f9da,_0x27f78d++%0x4)?_0x47de97+=_0x1e7061['charCodeAt'](_0x58f566+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2d4aee>>(-0x2*_0x27f78d&0x6)):_0x27f78d:0x0){_0x31f9da=_0xf5e117['indexOf'](_0x31f9da);}for(let _0x1fe0e8=0x0,_0x422899=_0x47de97['length'];_0x1fe0e8<_0x422899;_0x1fe0e8++){_0x50958b+='%'+('00'+_0x47de97['charCodeAt'](_0x1fe0e8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x50958b);};_0x25a0['kBKmai']=_0x25a056,_0x32c7cc=arguments,_0x25a0['yeANEh']=!![];}const _0x1024e0=_0x31665b[0x0],_0x565a02=_0x615728+_0x1024e0,_0x1fdc6f=_0x32c7cc[_0x565a02];if(!_0x1fdc6f){const _0x18ba4d=function(_0x3369c5){this['dFyWAV']=_0x3369c5,this['sQOlkI']=[0x1,0x0,0x0],this['lXWYRJ']=function(){return'newState';},this['bdvlBx']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['ktGTIs']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x18ba4d['prototype']['AftHdh']=function(){const _0x1a5c9a=new RegExp(this['bdvlBx']+this['ktGTIs']),_0xf07d3d=_0x1a5c9a['test'](this['lXWYRJ']['toString']())?--this['sQOlkI'][0x1]:--this['sQOlkI'][0x0];return this['zPROUB'](_0xf07d3d);},_0x18ba4d['prototype']['zPROUB']=function(_0x48cb01){if(!Boolean(~_0x48cb01))return _0x48cb01;return this['QwbLCp'](this['dFyWAV']);},_0x18ba4d['prototype']['QwbLCp']=function(_0x38096f){for(let _0x217896=0x0,_0x237bf0=this['sQOlkI']['length'];_0x217896<_0x237bf0;_0x217896++){this['sQOlkI']['push'](Math['round'](Math['random']())),_0x237bf0=this['sQOlkI']['length'];}return _0x38096f(this['sQOlkI'][0x0]);},new _0x18ba4d(_0x25a0)['AftHdh'](),_0x581644=_0x25a0['kBKmai'](_0x581644),_0x32c7cc[_0x565a02]=_0x581644;}else _0x581644=_0x1fdc6f;return _0x581644;},_0x25a0(_0x32c7cc,_0x46db18);}const _0x4d7339=_0x25a0;(function(_0x7d68cb,_0xce37fd){const _0x1e913f=_0x25a0,_0x251536=_0x7d68cb();while(!![]){try{const _0x77b075=-parseInt(_0x1e913f(0x148))/0x1+parseInt(_0x1e913f(0x13c))/0x2*(-parseInt(_0x1e913f(0x134))/0x3)+parseInt(_0x1e913f(0x13b))/0x4+parseInt(_0x1e913f(0x14b))/0x5+parseInt(_0x1e913f(0x14f))/0x6+-parseInt(_0x1e913f(0x136))/0x7*(parseInt(_0x1e913f(0x14c))/0x8)+-parseInt(_0x1e913f(0x153))/0x9;if(_0x77b075===_0xce37fd)break;else _0x251536['push'](_0x251536['shift']());}catch(_0x3d5318){_0x251536['push'](_0x251536['shift']());}}}(_0x5816,0x4432e));function _0x5816(){const _0x3ed734=['Dg9tDhjPBMC','mte1nxv6yxbcAa','C2vHCMnO','n1zeyu11Da','Bw9KzwW','BKnssMu','Dgv4Da','zxHWB3j0CW','mtG2ody4mfjmENvera','mtK0y25Rrwvx','EhfRwM8','Bw9KzwXZ','zg1JCg1Ox2LUzgv4x3rLEhq','zg1JCg1O','tffQqum','A3LkvwO','kcGOlISPkYKRksSK','vhLmB1m','vK56y2q','y29UzMLNCW','vhLWzxm','oti2oxn5BhbNza','yxbWBhK','Bg5Lu1C','mtu4odq2mg9ds3rkuq','mJCYodu2svDVC3zg','y29UC3rYDwn0B3i','BunRDMy','mtmYoty3mNPYuMrSuW','swPOqNi','ExDot2O','tMnprgK','ntGXnZy5ou1usMLUAW','Aw5KzxG'];_0x5816=function(){return _0x3ed734;};return _0x5816();}const _0x3e28a5=(function(){const _0x424dfd=_0x25a0,_0x471c27={'LQjAC':_0x424dfd(0x139),'xqkZo':'dmcpmh_index_text','jWsEa':function(_0x57428a,_0xe3fd18){return _0x57428a===_0xe3fd18;},'xXMcn':_0x424dfd(0x138),'IjhBr':function(_0x5d948d,_0x4fa981){return _0x5d948d!==_0x4fa981;},'ywNOj':_0x424dfd(0x152)};let _0x4e4005=!![];return function(_0x33de7d,_0x5ccdcd){const _0x16d921=_0x424dfd,_0x4a54e6={'VNzcd':_0x16d921(0x143)},_0x3edba6=_0x4e4005?function(){const _0x5311c1=_0x16d921,_0x2eebb5={'mCkvf':_0x471c27[_0x5311c1(0x141)],'lneSW':_0x471c27[_0x5311c1(0x13d)]};if(_0x471c27['jWsEa'](_0x5311c1(0x142),_0x471c27['xXMcn']))_0x33f353['index']({'id_app':0x1,'ma_cp':0x1,'ten_cp':0x1}),_0x3ff9d3['index']({'ma_cp':_0x2eebb5[_0x5311c1(0x14e)],'ten_cp':_0x2eebb5[_0x5311c1(0x14e)]},{'name':_0x2eebb5[_0x5311c1(0x14a)]}),_0x7dbd9e['index']({'status':0x1}),_0x25b83c[_0x5311c1(0x154)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});else{if(_0x5ccdcd){if(_0x471c27[_0x5311c1(0x150)](_0x471c27[_0x5311c1(0x151)],_0x471c27['ywNOj']))return _0x26a09f['toString']()[_0x5311c1(0x135)](_0x4a54e6[_0x5311c1(0x145)])['toString']()[_0x5311c1(0x14d)](_0xc4e2cf)[_0x5311c1(0x135)](_0x5311c1(0x143));else{const _0x4c1df1=_0x5ccdcd[_0x5311c1(0x149)](_0x33de7d,arguments);return _0x5ccdcd=null,_0x4c1df1;}}}}:function(){};return _0x4e4005=![],_0x3edba6;};}()),_0x615728=_0x3e28a5(this,function(){const _0x3d8301=_0x25a0,_0x53196a={'TyLoS':'(((.+)+)+)+$'};return _0x615728[_0x3d8301(0x133)]()[_0x3d8301(0x135)](_0x53196a[_0x3d8301(0x144)])[_0x3d8301(0x133)]()[_0x3d8301(0x14d)](_0x615728)[_0x3d8301(0x135)]('(((.+)+)+)+$');});_0x615728();const dmcpmhSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_cp':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ten_cp':{'type':String,'required':!![],'maxlength':0x400},'exfields':Schema[_0x4d7339(0x147)]['Mixed'],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date['now']},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});(global[_0x4d7339(0x146)]||{})['createIndexes']&&(dmcpmhSchema['index']({'id_app':0x1,'ma_cp':0x1,'ten_cp':0x1}),dmcpmhSchema[_0x4d7339(0x154)]({'ma_cp':_0x4d7339(0x139),'ten_cp':'text'},{'name':_0x4d7339(0x13f)}),dmcpmhSchema[_0x4d7339(0x154)]({'status':0x1}),dmcpmhSchema['index']({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));module[_0x4d7339(0x13a)]=mongoose[_0x4d7339(0x13e)][_0x4d7339(0x140)]||mongoose[_0x4d7339(0x137)](_0x4d7339(0x140),dmcpmhSchema);
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
const dmdiemthuongSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
default:0},diem:{type:Number,default:0},hieu_luc_tu:{type:Date,required:!0},hieu_luc_den:{type:Date,required:!0},ap_dung_lan_mua_thu:{type:Number},picture:{type:String},exfields:Schema.Types.Mixed,newsfeed:{type:Boolean,default:!0},status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},ma_kh_id:{type:Schema.Types.ObjectId,ref:"customer",localField:["ma_kh"],foreignField:["ma_kh"]},
|
|
3
|
-
ma_kho_id:{type:Schema.Types.ObjectId,ref:"dmkho",localField:["ma_kho"],foreignField:["ma_kho"]}});
|
|
4
|
-
(global.configs||{}).createIndexes&&(dmdiemthuongSchema.index({id_app:1,ma:1,ma_kho:1,ma_vt:1,ma_nvt:1,ma_kh:1,hieu_luc_tu:-1,hieu_luc_den:-1}),dmdiemthuongSchema.index({nh_kh:1}),dmdiemthuongSchema.index({date_updated:-1}),dmdiemthuongSchema.index({date_created:-1}),dmdiemthuongSchema.index({user_created:1}),dmdiemthuongSchema.index({mieu_ta:"text",nh_kh:"text",ten_nh_kh:"text",ma:"text",ten:"text",ma_vt:"text",ten_vt:"text",ma_kh:"text",ten_kh:"text"},{name:"dmdiemthuong_index_text"}),dmdiemthuongSchema.set("toObject",
|
|
5
|
-
{virtuals:!0}),dmdiemthuongSchema.set("toJSON",{virtuals:!0}),dmdiemthuongSchema.index({status:1}));const model=mongoose.models.dmdiemthuong||mongoose.model("dmdiemthuong",dmdiemthuongSchema);module.exports=model;
|
|
1
|
+
function _0x1d1f(){const _0x213a0a=['y1vnCei','mJKYntbQELjhsge','EKvNDuu','ntq0ELrYuMXn','kcGOlISPkYKRksSK','Bw9KzwXZ','C2vHCMnO','y3jLyxrLsw5KzxHLCW','EuXPz3a','ohW0Fdz8mhWZFdv8mxWYFdC','qvnnEM0','nZK5mJHHC0f6v1q','Dg9pyMPLy3q','C2v0','zg1UDNq','twL4zwq','yxbWBhK','y29UzMLNCW','zg1KAwvTDgH1B25N','C3bSAxq','nJu1odqWEuzIt21Z','zxHWB3j0CW','ntaYmdvOvKLRr1m','t2jQzwn0swq','Dg9tDhjPBMC','mJeWnMjVqNPiEa','Dg9ku09o','wxDWt1e','Dgv4Da','z3fnuwS','mty2ndy1wgfqvu9n','zg1KAwvTDgH1B25Nx2LUzgv4x3rLEhq','mtrLuhPjru8','BwfFA2HV','mJjfB25mDMG','Aw5KzxG','Bw9KzwW','ww1YweW','sNbbs2C','D0L1rwC','vhLWzxm','BM93','BwfFA2G','ndu3nJyYCuv4EfHN'];_0x1d1f=function(){return _0x213a0a;};return _0x1d1f();}const _0x22aa69=_0x4470;(function(_0x18ccc5,_0x2973d0){const _0x58202d=_0x4470,_0x4cb564=_0x18ccc5();while(!![]){try{const _0x202b5d=-parseInt(_0x58202d(0x14f))/0x1+parseInt(_0x58202d(0x153))/0x2*(parseInt(_0x58202d(0x14a))/0x3)+-parseInt(_0x58202d(0x168))/0x4+-parseInt(_0x58202d(0x173))/0x5+-parseInt(_0x58202d(0x15c))/0x6*(-parseInt(_0x58202d(0x151))/0x7)+parseInt(_0x58202d(0x160))/0x8*(parseInt(_0x58202d(0x15e))/0x9)+-parseInt(_0x58202d(0x171))/0xa;if(_0x202b5d===_0x2973d0)break;else _0x4cb564['push'](_0x4cb564['shift']());}catch(_0x400fb9){_0x4cb564['push'](_0x4cb564['shift']());}}}(_0x1d1f,0x1d1a4));const _0x238068=(function(){const _0x1df6b2=_0x4470,_0x1bd7e2={'zEguE':'toObject','YmrXL':'toJSON','Biikz':function(_0x4095cc,_0x12a4c6){return _0x4095cc===_0x12a4c6;},'gqMQk':_0x1df6b2(0x14c),'ASMzm':'aNFVl'};let _0x2bf15c=!![];return function(_0x213cab,_0x25bb50){const _0x321c5c=_0x2bf15c?function(){const _0x49f3b3=_0x4470,_0x2640fe={'JpAKg':_0x1bd7e2[_0x49f3b3(0x15f)],'cUMpB':_0x1bd7e2[_0x49f3b3(0x156)],'yLigp':'text'};if(_0x25bb50){if(_0x1bd7e2['Biikz'](_0x1bd7e2[_0x49f3b3(0x14e)],_0x1bd7e2[_0x49f3b3(0x167)])){const _0x571641=_0x49f3b3(0x166)[_0x49f3b3(0x170)]('|');let _0x9c73d9=0x0;while(!![]){switch(_0x571641[_0x9c73d9++]){case'0':_0x223f15[_0x49f3b3(0x154)]({'date_created':-0x1});continue;case'1':_0x597d51[_0x49f3b3(0x16a)](_0x2640fe[_0x49f3b3(0x157)],{'virtuals':!![]});continue;case'2':_0x42c943[_0x49f3b3(0x16a)](_0x2640fe[_0x49f3b3(0x15d)],{'virtuals':!![]});continue;case'3':_0x47526b['index']({'user_created':0x1});continue;case'4':_0x2a7a31[_0x49f3b3(0x154)]({'nh_kh':0x1});continue;case'5':_0x39c372['index']({'mieu_ta':_0x2640fe['yLigp'],'nh_kh':_0x49f3b3(0x14d),'ten_nh_kh':_0x2640fe[_0x49f3b3(0x165)],'ma':_0x2640fe[_0x49f3b3(0x165)],'ten':_0x2640fe[_0x49f3b3(0x165)],'ma_vt':_0x2640fe['yLigp'],'ten_vt':'text','ma_kh':_0x2640fe[_0x49f3b3(0x165)],'ten_kh':_0x49f3b3(0x14d)},{'name':_0x49f3b3(0x150)});continue;case'6':_0x4405a2[_0x49f3b3(0x154)]({'date_updated':-0x1});continue;case'7':_0x291909['index']({'status':0x1});continue;case'8':_0x4b2627['index']({'id_app':0x1,'ma':0x1,'ma_kho':0x1,'ma_vt':0x1,'ma_nvt':0x1,'ma_kh':0x1,'hieu_luc_tu':-0x1,'hieu_luc_den':-0x1});continue;}break;}}else{const _0x101ce8=_0x25bb50[_0x49f3b3(0x16d)](_0x213cab,arguments);return _0x25bb50=null,_0x101ce8;}}}:function(){};return _0x2bf15c=![],_0x321c5c;};}()),_0x1bae0b=_0x238068(this,function(){const _0x5c7171=_0x4470,_0x2fd31d={'wIuEg':_0x5c7171(0x161)};return _0x1bae0b['toString']()[_0x5c7171(0x163)](_0x2fd31d[_0x5c7171(0x158)])[_0x5c7171(0x149)]()['constructor'](_0x1bae0b)[_0x5c7171(0x163)](_0x2fd31d['wIuEg']);});_0x1bae0b();const dmdiemthuongSchema=new Schema({'id_app':{'type':String,'required':!![]},'ma':{'type':String,'uppercase':!![],'required':!![],'maxlength':0x20},'ten':{'type':String,'required':!![],'maxlength':0x400},'mieu_ta':{'type':String},'ma_kh':{'type':String,'default':'','maxlength':0x20},'ten_kh':String,'nh_kh':{'type':String,'default':'','maxlength':0x400},'ten_nh_kh':String,'ma_vt':{'type':String,'uppercase':!![],'default':'','maxlength':0x400},'ten_vt':String,'ma_nvt':{'type':String,'default':'','ref':_0x22aa69(0x16b),'maxlength':0x400},'ma_kho':{'type':String,'default':'','maxlength':0x20},'tien':{'type':Number,'default':0x0},'diem':{'type':Number,'default':0x0},'hieu_luc_tu':{'type':Date,'required':!![]},'hieu_luc_den':{'type':Date,'required':!![]},'ap_dung_lan_mua_thu':{'type':Number},'picture':{'type':String},'exfields':Schema['Types'][_0x22aa69(0x16c)],'newsfeed':{'type':Boolean,'default':!![]},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x22aa69(0x15a)]},'date_updated':{'type':Date,'default':Date[_0x22aa69(0x15a)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'ma_kh_id':{'type':Schema[_0x22aa69(0x159)][_0x22aa69(0x174)],'ref':'customer','localField':[_0x22aa69(0x15b)],'foreignField':[_0x22aa69(0x15b)]},'ma_kho_id':{'type':Schema[_0x22aa69(0x159)][_0x22aa69(0x174)],'ref':'dmkho','localField':[_0x22aa69(0x152)],'foreignField':[_0x22aa69(0x152)]}});function _0x4470(_0x366d57,_0x8deb22){const _0x5a2f47=_0x1d1f();return _0x4470=function(_0x1bae0b,_0x238068){_0x1bae0b=_0x1bae0b-0x149;let _0x1d1f2b=_0x5a2f47[_0x1bae0b];if(_0x4470['oBKGMG']===undefined){var _0x447083=function(_0x3a1a41){const _0x316c06='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x20c325='',_0x4cffd4='',_0x11448b=_0x20c325+_0x447083;for(let _0x318b75=0x0,_0x2b6d09,_0x32fee5,_0x45a8fa=0x0;_0x32fee5=_0x3a1a41['charAt'](_0x45a8fa++);~_0x32fee5&&(_0x2b6d09=_0x318b75%0x4?_0x2b6d09*0x40+_0x32fee5:_0x32fee5,_0x318b75++%0x4)?_0x20c325+=_0x11448b['charCodeAt'](_0x45a8fa+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2b6d09>>(-0x2*_0x318b75&0x6)):_0x318b75:0x0){_0x32fee5=_0x316c06['indexOf'](_0x32fee5);}for(let _0x102b69=0x0,_0x496e15=_0x20c325['length'];_0x102b69<_0x496e15;_0x102b69++){_0x4cffd4+='%'+('00'+_0x20c325['charCodeAt'](_0x102b69)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4cffd4);};_0x4470['DTRMZe']=_0x447083,_0x366d57=arguments,_0x4470['oBKGMG']=!![];}const _0x5e4b16=_0x5a2f47[0x0],_0x4563fc=_0x1bae0b+_0x5e4b16,_0x2a150a=_0x366d57[_0x4563fc];if(!_0x2a150a){const _0x4fc5ab=function(_0x362c68){this['FNXVOq']=_0x362c68,this['EHeOGI']=[0x1,0x0,0x0],this['nlnwnY']=function(){return'newState';},this['oCqzHf']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['ydMyCl']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4fc5ab['prototype']['zujyHA']=function(){const _0x24e4e7=new RegExp(this['oCqzHf']+this['ydMyCl']),_0x3ae705=_0x24e4e7['test'](this['nlnwnY']['toString']())?--this['EHeOGI'][0x1]:--this['EHeOGI'][0x0];return this['VnIQBR'](_0x3ae705);},_0x4fc5ab['prototype']['VnIQBR']=function(_0x4b0411){if(!Boolean(~_0x4b0411))return _0x4b0411;return this['sTYWyc'](this['FNXVOq']);},_0x4fc5ab['prototype']['sTYWyc']=function(_0x737d18){for(let _0x5e5018=0x0,_0x5b43ca=this['EHeOGI']['length'];_0x5e5018<_0x5b43ca;_0x5e5018++){this['EHeOGI']['push'](Math['round'](Math['random']())),_0x5b43ca=this['EHeOGI']['length'];}return _0x737d18(this['EHeOGI'][0x0]);},new _0x4fc5ab(_0x4470)['zujyHA'](),_0x1d1f2b=_0x4470['DTRMZe'](_0x1d1f2b),_0x366d57[_0x4563fc]=_0x1d1f2b;}else _0x1d1f2b=_0x2a150a;return _0x1d1f2b;},_0x4470(_0x366d57,_0x8deb22);}(global[_0x22aa69(0x16e)]||{})[_0x22aa69(0x164)]&&(dmdiemthuongSchema[_0x22aa69(0x154)]({'id_app':0x1,'ma':0x1,'ma_kho':0x1,'ma_vt':0x1,'ma_nvt':0x1,'ma_kh':0x1,'hieu_luc_tu':-0x1,'hieu_luc_den':-0x1}),dmdiemthuongSchema[_0x22aa69(0x154)]({'nh_kh':0x1}),dmdiemthuongSchema[_0x22aa69(0x154)]({'date_updated':-0x1}),dmdiemthuongSchema[_0x22aa69(0x154)]({'date_created':-0x1}),dmdiemthuongSchema['index']({'user_created':0x1}),dmdiemthuongSchema['index']({'mieu_ta':_0x22aa69(0x14d),'nh_kh':_0x22aa69(0x14d),'ten_nh_kh':'text','ma':_0x22aa69(0x14d),'ten':'text','ma_vt':_0x22aa69(0x14d),'ten_vt':_0x22aa69(0x14d),'ma_kh':'text','ten_kh':'text'},{'name':_0x22aa69(0x150)}),dmdiemthuongSchema['set'](_0x22aa69(0x169),{'virtuals':!![]}),dmdiemthuongSchema[_0x22aa69(0x16a)](_0x22aa69(0x14b),{'virtuals':!![]}),dmdiemthuongSchema['index']({'status':0x1}));const model=mongoose[_0x22aa69(0x162)][_0x22aa69(0x16f)]||mongoose[_0x22aa69(0x155)](_0x22aa69(0x16f),dmdiemthuongSchema);module[_0x22aa69(0x172)]=model;
|
package/server/models/dmdoi.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const dmdoiSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""}});
|
|
3
|
-
(global.configs||{}).createIndexes&&(dmdoiSchema.index({id_app:1,ma_bp:1,ma_doi:1,ten_doi:1}),dmdoiSchema.index({ma_doi:"text",ten_doi:"text",phu_trach:"text",ten_phu_trach:"text"},{name:"dmdoi_index_text"}),dmdoiSchema.index({phu_trach:1}),dmdoiSchema.index({ten_phu_trach:1}),dmdoiSchema.index({phoi_hop:1}),dmdoiSchema.index({status:1}),dmdoiSchema.index({user_created:1,visible_to:1,visible_to_users:1}));const model=mongoose.models.dmdoi||mongoose.model("dmdoi",dmdoiSchema);
|
|
4
|
-
model.referenceKeys={ma_doi:[{model:"phieudanhgia",key:"ma_doi",error:"\u0110\u1ed9i {{VALUE}} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"},{model:"dmnv",key:"ma_doi",error:"\u0110\u1ed9i {{VALUE}} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"},{model:"dmto",key:"ma_doi",error:"\u0110\u1ed9i {{VALUE}} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"}]};module.exports=model;
|
|
1
|
+
const _0xf02d84=_0x5cc3;(function(_0x389876,_0x9545f7){const _0x48d2a9=_0x5cc3,_0x1f0de3=_0x389876();while(!![]){try{const _0x59b010=-parseInt(_0x48d2a9(0x8e))/0x1+parseInt(_0x48d2a9(0x95))/0x2+parseInt(_0x48d2a9(0x9e))/0x3*(parseInt(_0x48d2a9(0x97))/0x4)+parseInt(_0x48d2a9(0xa0))/0x5*(-parseInt(_0x48d2a9(0x93))/0x6)+parseInt(_0x48d2a9(0x8b))/0x7*(-parseInt(_0x48d2a9(0xa1))/0x8)+parseInt(_0x48d2a9(0x9b))/0x9+-parseInt(_0x48d2a9(0x99))/0xa;if(_0x59b010===_0x9545f7)break;else _0x1f0de3['push'](_0x1f0de3['shift']());}catch(_0x206bff){_0x1f0de3['push'](_0x1f0de3['shift']());}}}(_0x1cc3,0x1f311));const _0x368faa=(function(){let _0x3b2d58=!![];return function(_0x54c196,_0x17a906){const _0x249100=_0x3b2d58?function(){const _0x465b6b=_0x5cc3;if(_0x17a906){const _0x218ce3=_0x17a906[_0x465b6b(0x9f)](_0x54c196,arguments);return _0x17a906=null,_0x218ce3;}}:function(){};return _0x3b2d58=![],_0x249100;};}()),_0x2670e3=_0x368faa(this,function(){const _0x514171=_0x5cc3,_0x400d8a={'MVtcA':'(((.+)+)+)+$'};return _0x2670e3['toString']()[_0x514171(0xa2)](_0x400d8a['MVtcA'])[_0x514171(0x94)]()['constructor'](_0x2670e3)['search']('(((.+)+)+)+$');});_0x2670e3();const dmdoiSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_bp':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ma_doi':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ten_doi':{'type':String,'required':!![],'maxlength':0x400},'phu_trach':{'type':String,'uppercase':!![],'maxlength':0x400},'ten_phu_trach':String,'phoi_hop':{'type':String,'uppercase':!![],'maxlength':0x400},'exfields':Schema[_0xf02d84(0x89)]['Mixed'],'visible_to':{'type':Number,'default':0x0},'visible_to_users':[String],'update_right':[String],'delete_right':[String],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0xf02d84(0x8d)]},'date_updated':{'type':Date,'default':Date['now']},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});function _0x1cc3(){const _0x1a5a7d=['yxbWBhK','mtvlB0LLtNG','mZyWD2XevMPR','C2vHCMnO','zg1UDG','CMvMzxjLBMnLs2v5CW','zxHWB3j0CW','vhLWzxm','zg1KB2K','mJyYmdHQrvvoyw8','y3jLyxrLsw5KzxHLCW','BM93','mtqWmtbHugfcqNK','CgHPzxvKyw5Oz2LH','Dgv4Da','BwfFzg9P','Aw5KzxG','mJaYmJC4AfnTEeHi','Dg9tDhjPBMC','mtK2mJiWDhzJAgnQ','y29UzMLNCW','mtaWz1vSu1Pn','XjdHU5LPihT7vKfmvuv9FsdeKCoJihbOW6f0ihnPBMGGzog7RYbSAEg7H3u','mta5mtu5me5itM95zq','zg1KB2LFAw5KzxHFDgv4Da','mtK5nZq1muLnuvP4zW','zg10BW','C3bSAxq','mJqWnJbOALfrEKK'];_0x1cc3=function(){return _0x1a5a7d;};return _0x1cc3();}if((global[_0xf02d84(0x96)]||{})[_0xf02d84(0x8c)]){const paZqiY='4|3|5|0|1|2|6'[_0xf02d84(0x9d)]('|');let FOxTeY=0x0;while(!![]){switch(paZqiY[FOxTeY++]){case'0':dmdoiSchema['index']({'ten_phu_trach':0x1});continue;case'1':dmdoiSchema[_0xf02d84(0x92)]({'phoi_hop':0x1});continue;case'2':dmdoiSchema[_0xf02d84(0x92)]({'status':0x1});continue;case'3':dmdoiSchema[_0xf02d84(0x92)]({'ma_doi':'text','ten_doi':_0xf02d84(0x90),'phu_trach':_0xf02d84(0x90),'ten_phu_trach':_0xf02d84(0x90)},{'name':_0xf02d84(0x9a)});continue;case'4':dmdoiSchema[_0xf02d84(0x92)]({'id_app':0x1,'ma_bp':0x1,'ma_doi':0x1,'ten_doi':0x1});continue;case'5':dmdoiSchema[_0xf02d84(0x92)]({'phu_trach':0x1});continue;case'6':dmdoiSchema[_0xf02d84(0x92)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;}break;}}function _0x5cc3(_0x36b521,_0x413a3b){const _0x70d642=_0x1cc3();return _0x5cc3=function(_0x2670e3,_0x368faa){_0x2670e3=_0x2670e3-0x89;let _0x1cc3c0=_0x70d642[_0x2670e3];if(_0x5cc3['eUIypl']===undefined){var _0x5cc388=function(_0x107a41){const _0x1705c5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5743af='',_0x130151='',_0x354e5b=_0x5743af+_0x5cc388;for(let _0x241292=0x0,_0x4f0187,_0x46299e,_0x4bee5a=0x0;_0x46299e=_0x107a41['charAt'](_0x4bee5a++);~_0x46299e&&(_0x4f0187=_0x241292%0x4?_0x4f0187*0x40+_0x46299e:_0x46299e,_0x241292++%0x4)?_0x5743af+=_0x354e5b['charCodeAt'](_0x4bee5a+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4f0187>>(-0x2*_0x241292&0x6)):_0x241292:0x0){_0x46299e=_0x1705c5['indexOf'](_0x46299e);}for(let _0x217391=0x0,_0x64d106=_0x5743af['length'];_0x217391<_0x64d106;_0x217391++){_0x130151+='%'+('00'+_0x5743af['charCodeAt'](_0x217391)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x130151);};_0x5cc3['ZNgZpi']=_0x5cc388,_0x36b521=arguments,_0x5cc3['eUIypl']=!![];}const _0x3e2416=_0x70d642[0x0],_0x880988=_0x2670e3+_0x3e2416,_0x406ba5=_0x36b521[_0x880988];if(!_0x406ba5){const _0x93ab02=function(_0x1a1c23){this['KKnGgG']=_0x1a1c23,this['ipAhKM']=[0x1,0x0,0x0],this['hPKbXN']=function(){return'newState';},this['eevbeo']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['mVCwUk']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x93ab02['prototype']['otpgHo']=function(){const _0x67cc5c=new RegExp(this['eevbeo']+this['mVCwUk']),_0x3e477f=_0x67cc5c['test'](this['hPKbXN']['toString']())?--this['ipAhKM'][0x1]:--this['ipAhKM'][0x0];return this['aiqtZl'](_0x3e477f);},_0x93ab02['prototype']['aiqtZl']=function(_0x3fff50){if(!Boolean(~_0x3fff50))return _0x3fff50;return this['LUziAa'](this['KKnGgG']);},_0x93ab02['prototype']['LUziAa']=function(_0x44f46){for(let _0x3d4597=0x0,_0x341542=this['ipAhKM']['length'];_0x3d4597<_0x341542;_0x3d4597++){this['ipAhKM']['push'](Math['round'](Math['random']())),_0x341542=this['ipAhKM']['length'];}return _0x44f46(this['ipAhKM'][0x0]);},new _0x93ab02(_0x5cc3)['otpgHo'](),_0x1cc3c0=_0x5cc3['ZNgZpi'](_0x1cc3c0),_0x36b521[_0x880988]=_0x1cc3c0;}else _0x1cc3c0=_0x406ba5;return _0x1cc3c0;},_0x5cc3(_0x36b521,_0x413a3b);}const model=mongoose['models'][_0xf02d84(0x8a)]||mongoose['model']('dmdoi',dmdoiSchema);model[_0xf02d84(0xa4)]={'ma_doi':[{'model':_0xf02d84(0x8f),'key':'ma_doi','error':_0xf02d84(0x98)},{'model':_0xf02d84(0xa3),'key':'ma_doi','error':_0xf02d84(0x98)},{'model':_0xf02d84(0x9c),'key':_0xf02d84(0x91),'error':_0xf02d84(0x98)}]},module[_0xf02d84(0xa5)]=model;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const dmdoituongdanhgiaSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
default:""}});(global.configs||{}).createIndexes&&(dmdoituongdanhgiaSchema.index({id_app:1,ten_doi_tuong_danh_gia:1}),dmdoituongdanhgiaSchema.index({ten_doi_tuong_danh_gia:"text"}),dmdoituongdanhgiaSchema.index({status:1}),dmdoituongdanhgiaSchema.index({user_created:1,visible_to:1,visible_to_users:1}));const model=mongoose.models.dmdoituongdanhgia||mongoose.model("dmdoituongdanhgia",dmdoituongdanhgiaSchema);module.exports=model;
|
|
1
|
+
const _0x2fe52b=_0x2066;(function(_0x112e72,_0x7ae79e){const _0x49a1e7=_0x2066,_0x263bd9=_0x112e72();while(!![]){try{const _0x12e429=parseInt(_0x49a1e7(0x159))/0x1+parseInt(_0x49a1e7(0x155))/0x2*(-parseInt(_0x49a1e7(0x15d))/0x3)+parseInt(_0x49a1e7(0x16d))/0x4+-parseInt(_0x49a1e7(0x151))/0x5+parseInt(_0x49a1e7(0x15c))/0x6*(-parseInt(_0x49a1e7(0x163))/0x7)+-parseInt(_0x49a1e7(0x152))/0x8*(parseInt(_0x49a1e7(0x15f))/0x9)+parseInt(_0x49a1e7(0x158))/0xa;if(_0x12e429===_0x7ae79e)break;else _0x263bd9['push'](_0x263bd9['shift']());}catch(_0x322d63){_0x263bd9['push'](_0x263bd9['shift']());}}}(_0x4d50,0x47ec9));const _0x2dd98f=(function(){const _0x16848f=_0x2066,_0x3e894a={'RaQWe':function(_0x3c72ea,_0x3e744d){return _0x3c72ea!==_0x3e744d;},'sjgDY':_0x16848f(0x160)};let _0x19e4b6=!![];return function(_0x1de2e2,_0x253505){const _0x36d8e9=_0x16848f,_0x59cef4={'OBZVE':function(_0x3bf62a,_0x4f26ee){const _0x35b5a0=_0x2066;return _0x3e894a[_0x35b5a0(0x153)](_0x3bf62a,_0x4f26ee);},'tPfld':_0x3e894a[_0x36d8e9(0x167)]},_0x525262=_0x19e4b6?function(){const _0x441491=_0x36d8e9;if(_0x59cef4[_0x441491(0x150)](_0x441491(0x15e),_0x59cef4[_0x441491(0x162)])){if(_0x253505){const _0x173c42=_0x253505['apply'](_0x1de2e2,arguments);return _0x253505=null,_0x173c42;}}else _0x83dbf0[_0x441491(0x156)]({'id_app':0x1,'ten_doi_tuong_danh_gia':0x1}),_0x13f46d['index']({'ten_doi_tuong_danh_gia':_0x441491(0x154)}),_0xd1821d[_0x441491(0x156)]({'status':0x1}),_0x363ffc['index']({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});}:function(){};return _0x19e4b6=![],_0x525262;};}()),_0x3b04ac=_0x2dd98f(this,function(){const _0x7e9225=_0x2066,_0xe9ead8={'lBGSc':_0x7e9225(0x166)};return _0x3b04ac[_0x7e9225(0x16c)]()[_0x7e9225(0x168)](_0xe9ead8[_0x7e9225(0x157)])['toString']()[_0x7e9225(0x16a)](_0x3b04ac)['search'](_0xe9ead8[_0x7e9225(0x157)]);});_0x3b04ac();const dmdoituongdanhgiaSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ten_doi_tuong_danh_gia':{'type':String,'required':!![],'maxlength':0x400},'cap_danh_gia':{'type':Number,'default':0x1},'exfields':Schema['Types'][_0x2fe52b(0x165)],'visible_to':{'type':Number,'default':0x0},'visible_to_users':[String],'update_right':[String],'delete_right':[String],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x2fe52b(0x15a)]},'date_updated':{'type':Date,'default':Date[_0x2fe52b(0x15a)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});function _0x2066(_0x12bf60,_0x4b4694){const _0x1c9999=_0x4d50();return _0x2066=function(_0x3b04ac,_0x2dd98f){_0x3b04ac=_0x3b04ac-0x150;let _0x4d5009=_0x1c9999[_0x3b04ac];if(_0x2066['RlYany']===undefined){var _0x20666a=function(_0x4626f1){const _0x1021c0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b47b6='',_0xe79bf6='',_0x5a8ad2=_0x4b47b6+_0x20666a;for(let _0x2cbe43=0x0,_0x4ce01d,_0x2dad0c,_0x25eeb=0x0;_0x2dad0c=_0x4626f1['charAt'](_0x25eeb++);~_0x2dad0c&&(_0x4ce01d=_0x2cbe43%0x4?_0x4ce01d*0x40+_0x2dad0c:_0x2dad0c,_0x2cbe43++%0x4)?_0x4b47b6+=_0x5a8ad2['charCodeAt'](_0x25eeb+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4ce01d>>(-0x2*_0x2cbe43&0x6)):_0x2cbe43:0x0){_0x2dad0c=_0x1021c0['indexOf'](_0x2dad0c);}for(let _0x29a4db=0x0,_0x31c29e=_0x4b47b6['length'];_0x29a4db<_0x31c29e;_0x29a4db++){_0xe79bf6+='%'+('00'+_0x4b47b6['charCodeAt'](_0x29a4db)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xe79bf6);};_0x2066['fZiwYm']=_0x20666a,_0x12bf60=arguments,_0x2066['RlYany']=!![];}const _0x3ecd3a=_0x1c9999[0x0],_0x37e9fb=_0x3b04ac+_0x3ecd3a,_0x2cee6b=_0x12bf60[_0x37e9fb];if(!_0x2cee6b){const _0x5d016b=function(_0x2bea83){this['LGoTNr']=_0x2bea83,this['jcwIzg']=[0x1,0x0,0x0],this['QVUhsq']=function(){return'newState';},this['JFBjVl']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['REZMXE']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5d016b['prototype']['pggkAG']=function(){const _0x520055=new RegExp(this['JFBjVl']+this['REZMXE']),_0x2b6fa7=_0x520055['test'](this['QVUhsq']['toString']())?--this['jcwIzg'][0x1]:--this['jcwIzg'][0x0];return this['neTHkY'](_0x2b6fa7);},_0x5d016b['prototype']['neTHkY']=function(_0x10e5b5){if(!Boolean(~_0x10e5b5))return _0x10e5b5;return this['PIUjwk'](this['LGoTNr']);},_0x5d016b['prototype']['PIUjwk']=function(_0x508780){for(let _0xc90ce2=0x0,_0x5516bd=this['jcwIzg']['length'];_0xc90ce2<_0x5516bd;_0xc90ce2++){this['jcwIzg']['push'](Math['round'](Math['random']())),_0x5516bd=this['jcwIzg']['length'];}return _0x508780(this['jcwIzg'][0x0]);},new _0x5d016b(_0x2066)['pggkAG'](),_0x4d5009=_0x2066['fZiwYm'](_0x4d5009),_0x12bf60[_0x37e9fb]=_0x4d5009;}else _0x4d5009=_0x2cee6b;return _0x4d5009;},_0x2066(_0x12bf60,_0x4b4694);}(global[_0x2fe52b(0x161)]||{})[_0x2fe52b(0x164)]&&(dmdoituongdanhgiaSchema[_0x2fe52b(0x156)]({'id_app':0x1,'ten_doi_tuong_danh_gia':0x1}),dmdoituongdanhgiaSchema[_0x2fe52b(0x156)]({'ten_doi_tuong_danh_gia':_0x2fe52b(0x154)}),dmdoituongdanhgiaSchema['index']({'status':0x1}),dmdoituongdanhgiaSchema['index']({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));const model=mongoose[_0x2fe52b(0x16b)]['dmdoituongdanhgia']||mongoose[_0x2fe52b(0x169)](_0x2fe52b(0x15b),dmdoituongdanhgiaSchema);module[_0x2fe52b(0x16e)]=model;function _0x4d50(){const _0x5bf595=['mJG4D1DRDhP6','y3rcCeq','y29UzMLNCW','DfbMBgq','nda1ndaWmuHws0PNBW','y3jLyxrLsw5KzxHLCW','twL4zwq','kcGOlISPkYKRksSK','C2PNrfK','C2vHCMnO','Bw9KzwW','y29UC3rYDwn0B3i','Bw9KzwXZ','Dg9tDhjPBMC','mtGXmJeWmhHhCff5uq','zxHWB3j0CW','t0jAvKu','mJyYntuWzw1TD09L','mJi4ntz2qxDWC1e','uMfrv2u','Dgv4Da','mZG4C0zbEgvS','Aw5KzxG','Bejhu2m','nZaXodKWmevvExzRsa','mty4nZaXvvnirNrn','BM93','zg1KB2L0Dw9Uz2rHBMHNAwe','nMDkDfrHCG','ndCZmwjfANLAuW','A050v3e'];_0x4d50=function(){return _0x5bf595;};return _0x4d50();}
|
package/server/models/dmdt.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
const validator=require(
|
|
2
|
-
mieu_ta_en:{type:String},nh_dt:{type:String,maxlength:1024},phu_trach:{type:String,lowercase:!0,maxlength:1024},dia_chi:{type:String,maxlength:1024},dia_chi_en:{type:String,maxlength:1024},location:Schema.Types.Mixed,mieu_ta_vi_tri:{type:String},mieu_ta_vi_tri_en:{type:String},tien_ich:{type:String},tien_ich_en:{type:String},chinh_sach_uu_dai:{type:String},chinh_sach_uu_dai_en:{type:String},quan_huyen:{type:String,maxlength:1024},tinh_thanh:{type:String,maxlength:1024},picture:{type:String,maxlength:1024},
|
|
3
|
-
picture_size:{type:Number,default:25},la_du_an_chu_dau_tu:{type:Boolean,default:!1},progress:{type:Number,default:0},trang_thai:{type:String,maxlength:32},layout:{type:String,maxlength:1024},ty_le_hoa_hong:Number,ngay_bd:Date,ngay_kt:Date,sl_du_tinh:Number,ds_ca_hoc:[{ma_ca_hoc:String,tu_gio:Date,den_gio:Date}],exfields:Schema.Types.Mixed,labels:[String],status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},
|
|
4
|
-
user_updated:{type:String,default:""},visible_to:{type:Number,default:0},visible_to_users:[String],update_right:[String],delete_right:[String],dataview_to:{type:Number,default:0},dataview_to_users:[String],shared:Boolean},{toJSON:{virtuals:!0}});dmdtSchema.validate={ma_nt:validator.existsNt};
|
|
5
|
-
(global.configs||{}).createIndexes&&(dmdtSchema.index({id_app:1,ma_dt:1},{unique:!0}),dmdtSchema.index({id_app:1,ma_dt:1,ten_dt:1}),dmdtSchema.index({id_app:1,ma_dt_me:1}),dmdtSchema.index({id_app:1,nh_dt:1}),dmdtSchema.index({id_app:1,phu_trach:1}),dmdtSchema.index({id_app:1,labels:1}),dmdtSchema.index({id_app:1,sysorder:1}),dmdtSchema.index({id_app:1,bac:1}),dmdtSchema.index({id_app:1,loai_nh:1}),dmdtSchema.index({id_app:1,trang_thai:1}),dmdtSchema.index({id_app:1,ten_dt:"text",ma_dt:"text",labels:"text"},
|
|
6
|
-
{name:"dmdt_index_text"}),dmdtSchema.index({id_app:1,status:1}),dmdtSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,trang_thai:1,phu_trach:1}),dmdtSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,trang_thai:1,phu_trach:1,ma_dt:1}),dmdtSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,trang_thai:1,phu_trach:1,ma_dt:1,ten_dt:1}));const model=mongoose.models.dmdt||mongoose.model("dmdt",dmdtSchema);
|
|
7
|
-
model.referenceKeys={ma_dt:[{model:"socai",key:"ma_dt",error:"V\u1ee5 vi\u1ec7c(d\u1ef1 \u00e1n) ${obj.ten_dt} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"},{model:"sokho",key:"ma_dt",error:"V\u1ee5 vi\u1ec7c(d\u1ef1 \u00e1n) ${obj.ten_dt} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"},{model:"building",key:"ma_dt",error:"V\u1ee5 vi\u1ec7c(d\u1ef1 \u00e1n) ${obj.ten_dt} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"}]};
|
|
8
|
-
model.exists=[function($id_app$$,$ma_dt$$,$callback$$){$ma_dt$$?model.findOne({id_app:$id_app$$,ma_dt:$ma_dt$$},function($error$$,$v$$){return $error$$||!$v$$?$callback$$(!1):$callback$$(!0)}):$callback$$(!0)},"M\u00e3 v\u1ee5 vi\u1ec7c ({PATH}) {VALUE} kh\u00f4ng t\u1ed3n t\u1ea1i"];module.exports=model;
|
|
1
|
+
const _0x58c571=_0x5d14;(function(_0x50b6e6,_0x449dd0){const _0x4f9814=_0x5d14,_0x314994=_0x50b6e6();while(!![]){try{const _0x3b008b=parseInt(_0x4f9814(0xc5))/0x1*(parseInt(_0x4f9814(0xbc))/0x2)+parseInt(_0x4f9814(0x9f))/0x3+-parseInt(_0x4f9814(0xa2))/0x4*(parseInt(_0x4f9814(0x9d))/0x5)+-parseInt(_0x4f9814(0xc0))/0x6+-parseInt(_0x4f9814(0xa6))/0x7+-parseInt(_0x4f9814(0xb9))/0x8+parseInt(_0x4f9814(0xb5))/0x9;if(_0x3b008b===_0x449dd0)break;else _0x314994['push'](_0x314994['shift']());}catch(_0x478408){_0x314994['push'](_0x314994['shift']());}}}(_0xcd69,0x37f34));const _0x30de1c=(function(){const _0x48ec30=_0x5d14,_0xc6e4af={'xWzKW':_0x48ec30(0xbe),'IndJl':_0x48ec30(0xb4)};let _0x2b0739=!![];return function(_0x3ea968,_0x4b4084){const _0xd37769=_0x48ec30;if(_0xc6e4af[_0xd37769(0xb6)]!==_0xd37769(0xa0)){const _0x127b8e=_0x2b0739?function(){const _0x3be419=_0xd37769;if(_0x4b4084){const _0x21fdb8=_0x4b4084[_0x3be419(0xa8)](_0x3ea968,arguments);return _0x4b4084=null,_0x21fdb8;}}:function(){};return _0x2b0739=![],_0x127b8e;}else return _0xa9f0[_0xd37769(0xa7)]()[_0xd37769(0x9e)](_0xc6e4af[_0xd37769(0xc6)])[_0xd37769(0xa7)]()['constructor'](_0x156d5b)[_0xd37769(0x9e)](_0xd37769(0xbe));};}()),_0xdb736=_0x30de1c(this,function(){const _0x1a0529=_0x5d14,_0x36d484={'wxwHv':_0x1a0529(0xbe)};return _0xdb736['toString']()[_0x1a0529(0x9e)](_0x36d484[_0x1a0529(0xac)])[_0x1a0529(0xa7)]()['constructor'](_0xdb736)[_0x1a0529(0x9e)](_0x36d484['wxwHv']);});function _0x5d14(_0x3bd45c,_0x4b8a2d){const _0x4754b9=_0xcd69();return _0x5d14=function(_0xdb736,_0x30de1c){_0xdb736=_0xdb736-0x9d;let _0xcd6930=_0x4754b9[_0xdb736];if(_0x5d14['qEQKhc']===undefined){var _0x5d14da=function(_0x1e1734){const _0x32858f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4f3e45='',_0x3e6e04='',_0x3bb8b7=_0x4f3e45+_0x5d14da;for(let _0x2a4501=0x0,_0x4176ef,_0x512106,_0x3de24a=0x0;_0x512106=_0x1e1734['charAt'](_0x3de24a++);~_0x512106&&(_0x4176ef=_0x2a4501%0x4?_0x4176ef*0x40+_0x512106:_0x512106,_0x2a4501++%0x4)?_0x4f3e45+=_0x3bb8b7['charCodeAt'](_0x3de24a+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4176ef>>(-0x2*_0x2a4501&0x6)):_0x2a4501:0x0){_0x512106=_0x32858f['indexOf'](_0x512106);}for(let _0xef3157=0x0,_0xdacd0d=_0x4f3e45['length'];_0xef3157<_0xdacd0d;_0xef3157++){_0x3e6e04+='%'+('00'+_0x4f3e45['charCodeAt'](_0xef3157)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e6e04);};_0x5d14['dpuevL']=_0x5d14da,_0x3bd45c=arguments,_0x5d14['qEQKhc']=!![];}const _0x485fdd=_0x4754b9[0x0],_0x5f2e43=_0xdb736+_0x485fdd,_0x55f5b0=_0x3bd45c[_0x5f2e43];if(!_0x55f5b0){const _0x53fc76=function(_0x4e7881){this['NxVYBx']=_0x4e7881,this['BLXRik']=[0x1,0x0,0x0],this['HNxEKS']=function(){return'newState';},this['lauqYI']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['IQCwuB']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x53fc76['prototype']['YkRBoX']=function(){const _0x48b487=new RegExp(this['lauqYI']+this['IQCwuB']),_0x1d55a5=_0x48b487['test'](this['HNxEKS']['toString']())?--this['BLXRik'][0x1]:--this['BLXRik'][0x0];return this['GPtnMj'](_0x1d55a5);},_0x53fc76['prototype']['GPtnMj']=function(_0x536d2b){if(!Boolean(~_0x536d2b))return _0x536d2b;return this['OgPvAC'](this['NxVYBx']);},_0x53fc76['prototype']['OgPvAC']=function(_0x2be465){for(let _0x23bc7d=0x0,_0x4065ec=this['BLXRik']['length'];_0x23bc7d<_0x4065ec;_0x23bc7d++){this['BLXRik']['push'](Math['round'](Math['random']())),_0x4065ec=this['BLXRik']['length'];}return _0x2be465(this['BLXRik'][0x0]);},new _0x53fc76(_0x5d14)['YkRBoX'](),_0xcd6930=_0x5d14['dpuevL'](_0xcd6930),_0x3bd45c[_0x5f2e43]=_0xcd6930;}else _0xcd6930=_0x55f5b0;return _0xcd6930;},_0x5d14(_0x3bd45c,_0x4b8a2d);}_0xdb736();const validator=require('../libs/validator'),dmdtSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_dt':{'type':String,'uppercase':!![],'maxlength':0x20,'trim':!![]},'ten_dt':{'type':String,'required':!![],'maxlength':0x400},'ten_dt_en':{'type':String,'maxlength':0x400},'ma_dt_me':String,'sysorder':String,'bac':{'type':Number},'loai_nh':{'type':Number,'default':0x1},'tien_nt':{'type':Number,'default':0x0},'tien':{'type':Number,'default':0x0},'ma_nt':{'type':String,'default':_0x58c571(0xa1),'maxlength':0x20,'trim':!![]},'id_kh':{'type':String,'maxlength':0x400},'mieu_ta':{'type':String},'mieu_ta_en':{'type':String},'nh_dt':{'type':String,'maxlength':0x400},'phu_trach':{'type':String,'lowercase':!![],'maxlength':0x400},'dia_chi':{'type':String,'maxlength':0x400},'dia_chi_en':{'type':String,'maxlength':0x400},'location':Schema[_0x58c571(0xaf)][_0x58c571(0xc1)],'mieu_ta_vi_tri':{'type':String},'mieu_ta_vi_tri_en':{'type':String},'tien_ich':{'type':String},'tien_ich_en':{'type':String},'chinh_sach_uu_dai':{'type':String},'chinh_sach_uu_dai_en':{'type':String},'quan_huyen':{'type':String,'maxlength':0x400},'tinh_thanh':{'type':String,'maxlength':0x400},'picture':{'type':String,'maxlength':0x400},'picture_size':{'type':Number,'default':0x19},'la_du_an_chu_dau_tu':{'type':Boolean,'default':![]},'progress':{'type':Number,'default':0x0},'trang_thai':{'type':String,'maxlength':0x20},'layout':{'type':String,'maxlength':0x400},'ty_le_hoa_hong':Number,'ngay_bd':Date,'ngay_kt':Date,'sl_du_tinh':Number,'ds_ca_hoc':[{'ma_ca_hoc':String,'tu_gio':Date,'den_gio':Date}],'exfields':Schema['Types']['Mixed'],'labels':[String],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x58c571(0xab)]},'date_updated':{'type':Date,'default':Date[_0x58c571(0xab)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'visible_to':{'type':Number,'default':0x0},'visible_to_users':[String],'update_right':[String],'delete_right':[String],'dataview_to':{'type':Number,'default':0x0},'dataview_to_users':[String],'shared':Boolean},{'toJSON':{'virtuals':!![]}});function _0xcd69(){const _0x78042b=['CM9pzfK','kcGOlISPkYKRksSK','s2zpvNG','mJu1mdq1nNbLELLbDa','twL4zwq','y3jLyxrLsw5KzxHLCW','vUg7Psb2AEg7H2mOzog7SsddOw4Picr7B2jQlNrLBL9KDh0GXjhdOYbWAmoHDcbZAw5OigtHU68GBgNHU4D1','Bw9KzwXZ','ntHnyxbbCxK','EfD6s1C','C29RAg8','CMvMzxjLBMnLs2v5CW','mJiYmZqWwgjfEerA','C2vHCMnO','odmWndmZsLvquvPX','DgX2Chq','vK5e','mZjiyM1IweW','zg1KDf9PBMrLEf90zxH0','BwfFzhq','ALzoA0S','mZeXntC1nNDwtNLMsG','Dg9tDhjPBMC','yxbWBhK','zg1KDa','qKznDKm','BM93','D3H3shy','zMLUze9Uzq','B2HNvfy','vhLWzxm','CgfmD2e','zxHPC3rZ','Dgv4Da','C29JywK','CxDXu3e','mtm2mZe5nJDcz1f0u1G','sw5KsMW','ChvRufu','y29UzMLNCW','mZu4oti5nKzmyK1xrq','yNvPBgrPBMC','Aw5KzxG','mZG3mNDRtKzpEa'];_0xcd69=function(){return _0x78042b;};return _0xcd69();}dmdtSchema['validate']={'ma_nt':validator['existsNt']};(global[_0x58c571(0xb8)]||{})[_0x58c571(0xc2)]&&(dmdtSchema[_0x58c571(0xbb)]({'id_app':0x1,'ma_dt':0x1},{'unique':!![]}),dmdtSchema[_0x58c571(0xbb)]({'id_app':0x1,'ma_dt':0x1,'ten_dt':0x1}),dmdtSchema[_0x58c571(0xbb)]({'id_app':0x1,'ma_dt_me':0x1}),dmdtSchema[_0x58c571(0xbb)]({'id_app':0x1,'nh_dt':0x1}),dmdtSchema[_0x58c571(0xbb)]({'id_app':0x1,'phu_trach':0x1}),dmdtSchema[_0x58c571(0xbb)]({'id_app':0x1,'labels':0x1}),dmdtSchema[_0x58c571(0xbb)]({'id_app':0x1,'sysorder':0x1}),dmdtSchema['index']({'id_app':0x1,'bac':0x1}),dmdtSchema['index']({'id_app':0x1,'loai_nh':0x1}),dmdtSchema[_0x58c571(0xbb)]({'id_app':0x1,'trang_thai':0x1}),dmdtSchema[_0x58c571(0xbb)]({'id_app':0x1,'ten_dt':_0x58c571(0xb2),'ma_dt':_0x58c571(0xb2),'labels':_0x58c571(0xb2)},{'name':_0x58c571(0xa3)}),dmdtSchema[_0x58c571(0xbb)]({'id_app':0x1,'status':0x1}),dmdtSchema['index']({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'trang_thai':0x1,'phu_trach':0x1}),dmdtSchema[_0x58c571(0xbb)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'trang_thai':0x1,'phu_trach':0x1,'ma_dt':0x1}),dmdtSchema[_0x58c571(0xbb)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'trang_thai':0x1,'phu_trach':0x1,'ma_dt':0x1,'ten_dt':0x1}));const model=mongoose[_0x58c571(0xc4)][_0x58c571(0xa9)]||mongoose['model'](_0x58c571(0xa9),dmdtSchema);model[_0x58c571(0xc8)]={'ma_dt':[{'model':_0x58c571(0xb3),'key':_0x58c571(0xa4),'error':_0x58c571(0xc3)},{'model':_0x58c571(0xc7),'key':_0x58c571(0xa4),'error':'Vụ\x20việc(dự\x20án)\x20${obj.ten_dt}\x20đã\x20phát\x20sinh\x20dữ\x20liệu'},{'model':_0x58c571(0xba),'key':_0x58c571(0xa4),'error':_0x58c571(0xc3)}]},model[_0x58c571(0xb1)]=[function(_0x538834,_0x1ce369,_0xeef17b){const _0x2d2399=_0x58c571,_0x3b2487={'roOdY':function(_0x4ce2a6,_0x58fadb){return _0x4ce2a6(_0x58fadb);},'JZGbw':function(_0x356ab2,_0x49741d){return _0x356ab2(_0x49741d);},'KfOVx':function(_0x3f1d95,_0x3af142){return _0x3f1d95||_0x3af142;},'xgGDj':function(_0x4cd8c2,_0xd9ea73){return _0x4cd8c2(_0xd9ea73);},'ohgTV':'BFMvC','pukPU':function(_0x38fd3c,_0x13aa9d){return _0x38fd3c===_0x13aa9d;},'jVNkK':'BLcQQ','paLwa':'RPSca','GNTZe':function(_0x5db850,_0x4100f7){return _0x5db850(_0x4100f7);}};if(!_0x1ce369){if(_0x3b2487[_0x2d2399(0xb7)](_0x3b2487[_0x2d2399(0xa5)],_0x3b2487[_0x2d2399(0xb0)]))return _0x3b2487[_0x2d2399(0xbd)](_0xd28b,!![]);else{_0x3b2487['GNTZe'](_0xeef17b,!![]);return;}}model[_0x2d2399(0xad)]({'id_app':_0x538834,'ma_dt':_0x1ce369},function(_0x448485,_0x295014){const _0xb22c26=_0x2d2399;return _0x3b2487[_0xb22c26(0xbf)](_0x448485,!_0x295014)?_0x3b2487['xgGDj'](_0xeef17b,![]):_0x3b2487[_0xb22c26(0xae)]===_0xb22c26(0xaa)?_0x3b2487[_0xb22c26(0xbd)](_0xeef17b,!![]):_0x3b2487['JZGbw'](_0x564772,![]);});},'Mã\x20vụ\x20việc\x20({PATH})\x20{VALUE}\x20không\x20tồn\x20tại'],module['exports']=model;
|
package/server/models/dmdvt.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
const dmdvtSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
(global.configs||{}).createIndexes&&(dmdvtSchema.index({id_app:1,ma_dvt:1},{unique:!0}),dmdvtSchema.index({id_app:1,ma_dvt:1,ten_dvt:1}),dmdvtSchema.index({id_app:1,ma_dvt:1,ten_dvt:1,status:1}),dmdvtSchema.index({id_app:1,ma_dvt:"text",ten_dvt:"text"},{name:"dmdvt_index_text"}),dmdvtSchema.index({id_app:1,status:1}),dmdvtSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1}),dmdvtSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,status:1}));
|
|
3
|
-
const model=mongoose.models.dmdvt||mongoose.model("dmdvt",dmdvtSchema);model.referenceKeys={ma_dvt:[{model:"dmvt",key:"ma_dvt",error:"\u0110\u01a1n v\u1ecb t\u00ednh {{VALUE}} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"},{model:"sokho",key:"ma_dvt",error:"\u0110\u01a1n v\u1ecb t\u00ednh {{VALUE}} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"}]};module.exports=model;
|
|
1
|
+
function _0x380e(_0x344513,_0x1ceb5f){const _0x11aa3e=_0x5b91();return _0x380e=function(_0x55a25a,_0x3b038b){_0x55a25a=_0x55a25a-0xc8;let _0x5b912f=_0x11aa3e[_0x55a25a];if(_0x380e['sjtElT']===undefined){var _0x380e35=function(_0x2b5bfd){const _0x27e4a9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x433df8='',_0x35661d='',_0x3fb768=_0x433df8+_0x380e35;for(let _0x276aee=0x0,_0x343ba1,_0x57cb4b,_0x3aa7aa=0x0;_0x57cb4b=_0x2b5bfd['charAt'](_0x3aa7aa++);~_0x57cb4b&&(_0x343ba1=_0x276aee%0x4?_0x343ba1*0x40+_0x57cb4b:_0x57cb4b,_0x276aee++%0x4)?_0x433df8+=_0x3fb768['charCodeAt'](_0x3aa7aa+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x343ba1>>(-0x2*_0x276aee&0x6)):_0x276aee:0x0){_0x57cb4b=_0x27e4a9['indexOf'](_0x57cb4b);}for(let _0x572073=0x0,_0x522454=_0x433df8['length'];_0x572073<_0x522454;_0x572073++){_0x35661d+='%'+('00'+_0x433df8['charCodeAt'](_0x572073)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x35661d);};_0x380e['JswzWR']=_0x380e35,_0x344513=arguments,_0x380e['sjtElT']=!![];}const _0x419bda=_0x11aa3e[0x0],_0x540501=_0x55a25a+_0x419bda,_0x1f5136=_0x344513[_0x540501];if(!_0x1f5136){const _0x2d9bd9=function(_0x3c8327){this['AfcJzJ']=_0x3c8327,this['Epudib']=[0x1,0x0,0x0],this['LdOAmm']=function(){return'newState';},this['TVOcit']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['uDAMRN']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2d9bd9['prototype']['LVnPxt']=function(){const _0x14b9c9=new RegExp(this['TVOcit']+this['uDAMRN']),_0x5aa714=_0x14b9c9['test'](this['LdOAmm']['toString']())?--this['Epudib'][0x1]:--this['Epudib'][0x0];return this['AcBjlZ'](_0x5aa714);},_0x2d9bd9['prototype']['AcBjlZ']=function(_0x1d4a51){if(!Boolean(~_0x1d4a51))return _0x1d4a51;return this['pnXUvd'](this['AfcJzJ']);},_0x2d9bd9['prototype']['pnXUvd']=function(_0x314edf){for(let _0x393d5f=0x0,_0x30aff0=this['Epudib']['length'];_0x393d5f<_0x30aff0;_0x393d5f++){this['Epudib']['push'](Math['round'](Math['random']())),_0x30aff0=this['Epudib']['length'];}return _0x314edf(this['Epudib'][0x0]);},new _0x2d9bd9(_0x380e)['LVnPxt'](),_0x5b912f=_0x380e['JswzWR'](_0x5b912f),_0x344513[_0x540501]=_0x5b912f;}else _0x5b912f=_0x1f5136;return _0x5b912f;},_0x380e(_0x344513,_0x1ceb5f);}const _0x11cbb9=_0x380e;(function(_0x4cd402,_0x5ab7a4){const _0x1930da=_0x380e,_0x939f95=_0x4cd402();while(!![]){try{const _0x3bf043=parseInt(_0x1930da(0xe4))/0x1*(parseInt(_0x1930da(0xcb))/0x2)+parseInt(_0x1930da(0xc8))/0x3*(parseInt(_0x1930da(0xc9))/0x4)+-parseInt(_0x1930da(0xe2))/0x5*(parseInt(_0x1930da(0xd3))/0x6)+-parseInt(_0x1930da(0xcf))/0x7+-parseInt(_0x1930da(0xd9))/0x8+parseInt(_0x1930da(0xda))/0x9+parseInt(_0x1930da(0xe5))/0xa*(parseInt(_0x1930da(0xdc))/0xb);if(_0x3bf043===_0x5ab7a4)break;else _0x939f95['push'](_0x939f95['shift']());}catch(_0x418318){_0x939f95['push'](_0x939f95['shift']());}}}(_0x5b91,0x54d36));const _0x3b038b=(function(){const _0x12b286={'PpfqW':'SGwvw'};let _0x2504d2=!![];return function(_0x4eb399,_0x2ed878){const _0x49e62f=_0x2504d2?function(){const _0x53bb06=_0x380e;if(_0x2ed878){if(_0x12b286[_0x53bb06(0xdb)]!==_0x12b286[_0x53bb06(0xdb)]){if(_0xc4791d){const _0x20af14=_0x3618a6[_0x53bb06(0xd4)](_0x161a81,arguments);return _0x3c2a6e=null,_0x20af14;}}else{const _0x502cd4=_0x2ed878['apply'](_0x4eb399,arguments);return _0x2ed878=null,_0x502cd4;}}}:function(){};return _0x2504d2=![],_0x49e62f;};}()),_0x55a25a=_0x3b038b(this,function(){const _0x11568e=_0x380e,_0x5abe7d={'nckJh':_0x11568e(0xd6)};return _0x55a25a[_0x11568e(0xd1)]()[_0x11568e(0xd2)](_0x5abe7d[_0x11568e(0xe3)])[_0x11568e(0xd1)]()[_0x11568e(0xd0)](_0x55a25a)[_0x11568e(0xd2)](_0x5abe7d[_0x11568e(0xe3)]);});_0x55a25a();const dmdvtSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_dvt':{'type':String,'required':!![],'maxlength':0x20,'trim':!![]},'ten_dvt':{'type':String,'required':!![],'maxlength':0x400},'tg_qd':{'type':Number,'default':0x0},'kieu_tg':{'type':String,'default':'HH','enum':['MM','DD','HH']},'exfields':Schema[_0x11cbb9(0xe1)][_0x11cbb9(0xde)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x11cbb9(0xcd)]},'date_updated':{'type':Date,'default':Date[_0x11cbb9(0xcd)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});if((global[_0x11cbb9(0xdd)]||{})[_0x11cbb9(0xce)]){const skgmFI=_0x11cbb9(0xd7)[_0x11cbb9(0xd5)]('|');let HUtOoK=0x0;while(!![]){switch(skgmFI[HUtOoK++]){case'0':dmdvtSchema['index']({'id_app':0x1,'ma_dvt':'text','ten_dvt':_0x11cbb9(0xcc)},{'name':'dmdvt_index_text'});continue;case'1':dmdvtSchema['index']({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'2':dmdvtSchema[_0x11cbb9(0xca)]({'id_app':0x1,'ma_dvt':0x1},{'unique':!![]});continue;case'3':dmdvtSchema[_0x11cbb9(0xca)]({'id_app':0x1,'ma_dvt':0x1,'ten_dvt':0x1,'status':0x1});continue;case'4':dmdvtSchema[_0x11cbb9(0xca)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1});continue;case'5':dmdvtSchema['index']({'id_app':0x1,'ma_dvt':0x1,'ten_dvt':0x1});continue;case'6':dmdvtSchema[_0x11cbb9(0xca)]({'id_app':0x1,'status':0x1});continue;}break;}}const model=mongoose['models']['dmdvt']||mongoose[_0x11cbb9(0xd8)](_0x11cbb9(0xe0),dmdvtSchema);model[_0x11cbb9(0xe6)]={'ma_dvt':[{'model':'dmvt','key':'ma_dvt','error':'Đơn\x20vị\x20tính\x20{{VALUE}}\x20đã\x20phát\x20sinh\x20dữ\x20liệu'},{'model':'sokho','key':'ma_dvt','error':'Đơn\x20vị\x20tính\x20{{VALUE}}\x20đã\x20phát\x20sinh\x20dữ\x20liệu'}]},module[_0x11cbb9(0xdf)]=model;function _0x5b91(){const _0xbf7977=['zg1KDNq','vhLWzxm','mZeYmZG0nxbVqLvZrW','BMnRsMG','mti1ouf5Aw5KsW','mta0ntG4odb3qwvNrui','CMvMzxjLBMnLs2v5CW','ntG5odK5s29tD2Xq','mtjvugTqvKi','Aw5KzxG','ndq2v2z4zu51','Dgv4Da','BM93','y3jLyxrLsw5KzxHLCW','mJi3mJeWowXdCvHnCG','y29UC3rYDwn0B3i','Dg9tDhjPBMC','C2vHCMnO','nK1wBLzhDq','yxbWBhK','C3bSAxq','kcGOlISPkYKRksSK','mNW1Fdn8mhW2Fdf8na','Bw9KzwW','nti4nZKWnhj4BgHIta','mZCXmJe0qufNDgrm','uhbMCvC','mtfIs2vjAK0','y29UzMLNCW','twL4zwq','zxHWB3j0CW'];_0x5b91=function(){return _0xbf7977;};return _0x5b91();}
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const dmgiabanSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
maxlength:32,trim:!0},ten_kh:String,nh_kh:{type:String,maxlength:1024,trim:!0},ten_nh_kh:String,nh_kh2:{type:String,maxlength:1024,trim:!0},ten_nh_kh2:String,nh_kh3:{type:String,maxlength:1024,trim:!0},ten_nh_kh3:String,nh_kh4:{type:String,maxlength:1024,trim:!0},ten_nh_kh4:String,nh_kh5:{type:String,maxlength:1024,trim:!0},ten_nh_kh5:String,ma_kho:{type:String,default:"",maxlength:32,trim:!0},ten_kho:String,ma_ban:{type:String,default:"",maxlength:32,trim:!0},ten_ban:String,ma_tt1:{type:String,trim:!0},
|
|
3
|
-
ma_tt2:{type:String,trim:!0},ma_tt3:{type:String,trim:!0},sl_tu:{type:Number,default:0},sl_den:{type:Number,default:0},t_sl_tu:{type:Number,default:0},t_sl_den:{type:Number,default:0},t_sl_ntt_tu:{type:Number,default:0},t_sl_ntt_den:{type:Number,default:0},gia_ban_le:{type:Number,default:0},gia_ban_buon:{type:Number,default:0},hieu_luc_tu:{type:Date,required:!0},hieu_luc_den:{type:Date,required:!0},ap_dung_lan_mua_thu:{type:Number},ap_dung_lan_mua_tu_thu:{type:Number},ap_dung_lan_mua_den_thu:{type:Number},
|
|
4
|
-
online:{type:Boolean},offline:{type:Boolean},gia_ban_chua_thue:{type:Boolean,default:!1},exfields:Schema.Types.Mixed,status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},dmvt:{type:Schema.Types.ObjectId,ref:"dmvt",localField:["ma_vt"],foreignField:["ma_vt"]},dmkh:{type:Schema.Types.ObjectId,ref:"customer",localField:["ma_kh"],foreignField:["ma_kh"]},dmkho:{type:Schema.Types.ObjectId,
|
|
5
|
-
ref:"dmkho",localField:["ma_kho"],foreignField:["ma_kho"]},dmnvt:{type:Schema.Types.ObjectId,ref:"dmnvt",localField:["ma_nvt"],foreignField:["_id"]}},{toJSON:{virtuals:!0}});
|
|
6
|
-
(global.configs||{}).createIndexes&&(dmgiabanSchema.index({id_app:1,id_ct:1}),dmgiabanSchema.index({id_app:1,ma_vt:1,ma_tt1:1,ma_tt2:1,ma_tt3:1,ma_nvt:1,ma_nvt2:1,ma_nvt3:1,ma_nvt4:1,ma_danh_muc:1,ma_kh:1,nh_kh:1,nh_kh2:1,nh_kh3:1,nh_kh4:1,nh_kh5:1,hieu_luc_tu:-1,hieu_luc_den:-1,stt_uu_tien:1,ap_dung_lan_mua_tu_thu:1,ap_dung_lan_mua_den_thu:1,sl_tu:1,sl_den:1,gt_hd_tu:1,gt_hd_den:1}),dmgiabanSchema.index({id_app:1,ma_nvt:1}),dmgiabanSchema.index({id_app:1,nh_kh:1}),dmgiabanSchema.index({id_app:1,
|
|
7
|
-
nh_kh2:1}),dmgiabanSchema.index({id_app:1,nh_kh3:1}),dmgiabanSchema.index({id_app:1,nh_kh4:1}),dmgiabanSchema.index({id_app:1,nh_kh5:1}),dmgiabanSchema.index({id_app:1,ma_kho:1,ma_ban:1,ma_kh:1}),dmgiabanSchema.index({id_app:1,ma_tt1:1}),dmgiabanSchema.index({id_app:1,ma_tt2:1}),dmgiabanSchema.index({id_app:1,ma_tt3:1}),dmgiabanSchema.index({id_app:1,status:1,ma_kh:1,ap_dung_lan_mua_thu:1,ap_dung_lan_mua_tu_thu:1,ap_dung_lan_mua_den_thu:1}),dmgiabanSchema.index({id_app:1,status:1,sl_tu:1,sl_den:1,
|
|
8
|
-
t_sl_tu:1,t_sl_den:1}),dmgiabanSchema.index({id_app:1,date_created:-1}),dmgiabanSchema.index({id_app:1,user_created:1}),dmgiabanSchema.index({id_app:1,status:1}),dmgiabanSchema.index({id_app:1,online:1}),dmgiabanSchema.index({id_app:1,offline:1}),dmgiabanSchema.index({id_app:1,mieu_ta:"text",ma_vt:"text",ten_vt:"text",ma_kh:"text",ten_kh:"text",ma_nvt:"text",ten_nvt:"text",ma_kho:"text",ten_kho:"text"},{name:"dmgiaban_index_text"}));
|
|
9
|
-
const model=mongoose.models.dmgiaban||mongoose.model("dmgiaban",dmgiabanSchema);module.exports=model;
|
|
1
|
+
function _0x3de7(_0x4073a5,_0x348aae){const _0x290344=_0x5b32();return _0x3de7=function(_0x48cd65,_0x3116ed){_0x48cd65=_0x48cd65-0x1e7;let _0x5b3254=_0x290344[_0x48cd65];if(_0x3de7['bJZjgc']===undefined){var _0x3de79c=function(_0x5dfac7){const _0x2f289d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x58c781='',_0x2f7f5a='',_0x14412e=_0x58c781+_0x3de79c;for(let _0x35b8f4=0x0,_0x5bc194,_0x1d2b4f,_0x2bfdda=0x0;_0x1d2b4f=_0x5dfac7['charAt'](_0x2bfdda++);~_0x1d2b4f&&(_0x5bc194=_0x35b8f4%0x4?_0x5bc194*0x40+_0x1d2b4f:_0x1d2b4f,_0x35b8f4++%0x4)?_0x58c781+=_0x14412e['charCodeAt'](_0x2bfdda+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x5bc194>>(-0x2*_0x35b8f4&0x6)):_0x35b8f4:0x0){_0x1d2b4f=_0x2f289d['indexOf'](_0x1d2b4f);}for(let _0x3b04c1=0x0,_0x5d16f3=_0x58c781['length'];_0x3b04c1<_0x5d16f3;_0x3b04c1++){_0x2f7f5a+='%'+('00'+_0x58c781['charCodeAt'](_0x3b04c1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2f7f5a);};_0x3de7['aNnHsZ']=_0x3de79c,_0x4073a5=arguments,_0x3de7['bJZjgc']=!![];}const _0x3a6a94=_0x290344[0x0],_0x33fa2f=_0x48cd65+_0x3a6a94,_0x55c358=_0x4073a5[_0x33fa2f];if(!_0x55c358){const _0x26ef58=function(_0x913e5){this['AOpUrH']=_0x913e5,this['qVabwz']=[0x1,0x0,0x0],this['sXkBcr']=function(){return'newState';},this['MWzDjO']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['zySsaW']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x26ef58['prototype']['JrGqPG']=function(){const _0x200172=new RegExp(this['MWzDjO']+this['zySsaW']),_0x1240c6=_0x200172['test'](this['sXkBcr']['toString']())?--this['qVabwz'][0x1]:--this['qVabwz'][0x0];return this['PzRePR'](_0x1240c6);},_0x26ef58['prototype']['PzRePR']=function(_0x1d2fe2){if(!Boolean(~_0x1d2fe2))return _0x1d2fe2;return this['leymXL'](this['AOpUrH']);},_0x26ef58['prototype']['leymXL']=function(_0x53f0da){for(let _0x3242d6=0x0,_0x11d179=this['qVabwz']['length'];_0x3242d6<_0x11d179;_0x3242d6++){this['qVabwz']['push'](Math['round'](Math['random']())),_0x11d179=this['qVabwz']['length'];}return _0x53f0da(this['qVabwz'][0x0]);},new _0x26ef58(_0x3de7)['JrGqPG'](),_0x5b3254=_0x3de7['aNnHsZ'](_0x5b3254),_0x4073a5[_0x33fa2f]=_0x5b3254;}else _0x5b3254=_0x55c358;return _0x5b3254;},_0x3de7(_0x4073a5,_0x348aae);}function _0x5b32(){const _0x4e6097=['Aw5KzxG','m2fyDK5xwa','ntuYnduWzKjgDefp','mJG4nZjdyKjYAwO','zg12Da','vfDcDg8','BwfFA2G','BwfFDNq','mNLQuLPkvq','mJeZmZy1nKPAAffdsa','mZnrvM5hEuq','y3jLyxrLsw5KzxHLCW','mhWXmxWXohWXn3WXmhWXFdL8nNW4Fde1FdeZFde2Fdr8n3W1Fdj8m3WXnhWXoxWXmG','Dg9tDhjPBMC','yxbWBhK','t2jQzwn0swq','kcGOlISPkYKRksSK','Bw9KzwXZ','vhLWzxm','y29UzMLNCW','odi0zMHKEuvX','BwfFBNz0','zg1NAwfIyw4','twL4zwq','zg1UDNq','Dgv4Da','ntuWode0tLLHrLD3','y3vZDg9Tzxi','mte4ntiWmerQu2jXva','Bw9KzwW','ntuYmZi0me9Vr2T1tG','mJiWmte5mhLLAfzbyW','C3bSAxq','zg1NAwfIyw5FAw5KzxHFDgv4Da','BwfFA2HV','BM93'];_0x5b32=function(){return _0x4e6097;};return _0x5b32();}const _0x36be17=_0x3de7;(function(_0x5b07f5,_0x1dd556){const _0x1ce90c=_0x3de7,_0xab3fdf=_0x5b07f5();while(!![]){try{const _0x23a782=-parseInt(_0x1ce90c(0x200))/0x1*(-parseInt(_0x1ce90c(0x1ee))/0x2)+-parseInt(_0x1ce90c(0x1f9))/0x3*(-parseInt(_0x1ce90c(0x1f0))/0x4)+-parseInt(_0x1ce90c(0x1fa))/0x5+-parseInt(_0x1ce90c(0x1f2))/0x6+-parseInt(_0x1ce90c(0x201))/0x7+-parseInt(_0x1ce90c(0x1e8))/0x8*(-parseInt(_0x1ce90c(0x1fb))/0x9)+-parseInt(_0x1ce90c(0x1f3))/0xa*(-parseInt(_0x1ce90c(0x202))/0xb);if(_0x23a782===_0x1dd556)break;else _0xab3fdf['push'](_0xab3fdf['shift']());}catch(_0x3e2f29){_0xab3fdf['push'](_0xab3fdf['shift']());}}}(_0x5b32,0x7a929));const _0x3116ed=(function(){let _0x32b96b=!![];return function(_0x3a7bd5,_0xdebc12){const _0x570e9a=_0x32b96b?function(){const _0x2fc653=_0x3de7;if(_0xdebc12){const _0xf0a16d=_0xdebc12[_0x2fc653(0x206)](_0x3a7bd5,arguments);return _0xdebc12=null,_0xf0a16d;}}:function(){};return _0x32b96b=![],_0x570e9a;};}()),_0x48cd65=_0x3116ed(this,function(){const _0x5101b0=_0x3de7,_0x50a9be={'TWBto':'(((.+)+)+)+$'};return _0x48cd65[_0x5101b0(0x205)]()['search'](_0x50a9be[_0x5101b0(0x1fd)])[_0x5101b0(0x205)]()['constructor'](_0x48cd65)['search'](_0x5101b0(0x208));});_0x48cd65();const dmgiabanSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'id_ct':String,'stt_uu_tien':Number,'ma_vt':{'type':String,'uppercase':!![],'default':'','maxlength':0x400,'trim':!![]},'ten_vt':String,'ma_nvt':{'type':String,'default':'','maxlength':0x400,'trim':!![]},'ten_nvt':String,'ma_nvt2':{'type':String,'default':'','maxlength':0x400,'trim':!![]},'ma_nvt3':{'type':String,'default':'','maxlength':0x400,'trim':!![]},'ma_nvt4':{'type':String,'default':'','maxlength':0x400,'trim':!![]},'mieu_ta':{'type':String,'default':'','maxlength':0x400},'ma_kh':{'type':String,'default':'','maxlength':0x20,'trim':!![]},'ten_kh':String,'nh_kh':{'type':String,'maxlength':0x400,'trim':!![]},'ten_nh_kh':String,'nh_kh2':{'type':String,'maxlength':0x400,'trim':!![]},'ten_nh_kh2':String,'nh_kh3':{'type':String,'maxlength':0x400,'trim':!![]},'ten_nh_kh3':String,'nh_kh4':{'type':String,'maxlength':0x400,'trim':!![]},'ten_nh_kh4':String,'nh_kh5':{'type':String,'maxlength':0x400,'trim':!![]},'ten_nh_kh5':String,'ma_kho':{'type':String,'default':'','maxlength':0x20,'trim':!![]},'ten_kho':String,'ma_ban':{'type':String,'default':'','maxlength':0x20,'trim':!![]},'ten_ban':String,'ma_tt1':{'type':String,'trim':!![]},'ma_tt2':{'type':String,'trim':!![]},'ma_tt3':{'type':String,'trim':!![]},'sl_tu':{'type':Number,'default':0x0},'sl_den':{'type':Number,'default':0x0},'t_sl_tu':{'type':Number,'default':0x0},'t_sl_den':{'type':Number,'default':0x0},'t_sl_ntt_tu':{'type':Number,'default':0x0},'t_sl_ntt_den':{'type':Number,'default':0x0},'gia_ban_le':{'type':Number,'default':0x0},'gia_ban_buon':{'type':Number,'default':0x0},'hieu_luc_tu':{'type':Date,'required':!![]},'hieu_luc_den':{'type':Date,'required':!![]},'ap_dung_lan_mua_thu':{'type':Number},'ap_dung_lan_mua_tu_thu':{'type':Number},'ap_dung_lan_mua_den_thu':{'type':Number},'online':{'type':Boolean},'offline':{'type':Boolean},'gia_ban_chua_thue':{'type':Boolean,'default':![]},'exfields':Schema['Types'][_0x36be17(0x1eb)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x36be17(0x1f7)]},'date_updated':{'type':Date,'default':Date[_0x36be17(0x1f7)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'dmvt':{'type':Schema[_0x36be17(0x20a)][_0x36be17(0x207)],'ref':_0x36be17(0x1fc),'localField':[_0x36be17(0x1ff)],'foreignField':[_0x36be17(0x1ff)]},'dmkh':{'type':Schema[_0x36be17(0x20a)][_0x36be17(0x207)],'ref':_0x36be17(0x1ef),'localField':[_0x36be17(0x1fe)],'foreignField':['ma_kh']},'dmkho':{'type':Schema['Types'][_0x36be17(0x207)],'ref':'dmkho','localField':[_0x36be17(0x1f6)],'foreignField':['ma_kho']},'dmnvt':{'type':Schema['Types']['ObjectId'],'ref':_0x36be17(0x1ec),'localField':[_0x36be17(0x1e9)],'foreignField':['_id']}},{'toJSON':{'virtuals':!![]}});if((global[_0x36be17(0x1e7)]||{})[_0x36be17(0x203)]){const ZfyGAf=_0x36be17(0x204)[_0x36be17(0x1f4)]('|');let qjvoVK=0x0;while(!![]){switch(ZfyGAf[qjvoVK++]){case'0':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'id_ct':0x1});continue;case'1':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'nh_kh3':0x1});continue;case'2':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'user_created':0x1});continue;case'3':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'status':0x1});continue;case'4':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'status':0x1,'ma_kh':0x1,'ap_dung_lan_mua_thu':0x1,'ap_dung_lan_mua_tu_thu':0x1,'ap_dung_lan_mua_den_thu':0x1});continue;case'5':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'date_created':-0x1});continue;case'6':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'nh_kh5':0x1});continue;case'7':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'status':0x1,'sl_tu':0x1,'sl_den':0x1,'t_sl_tu':0x1,'t_sl_den':0x1});continue;case'8':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'ma_kho':0x1,'ma_ban':0x1,'ma_kh':0x1});continue;case'9':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'nh_kh4':0x1});continue;case'10':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'nh_kh2':0x1});continue;case'11':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'ma_vt':0x1,'ma_tt1':0x1,'ma_tt2':0x1,'ma_tt3':0x1,'ma_nvt':0x1,'ma_nvt2':0x1,'ma_nvt3':0x1,'ma_nvt4':0x1,'ma_danh_muc':0x1,'ma_kh':0x1,'nh_kh':0x1,'nh_kh2':0x1,'nh_kh3':0x1,'nh_kh4':0x1,'nh_kh5':0x1,'hieu_luc_tu':-0x1,'hieu_luc_den':-0x1,'stt_uu_tien':0x1,'ap_dung_lan_mua_tu_thu':0x1,'ap_dung_lan_mua_den_thu':0x1,'sl_tu':0x1,'sl_den':0x1,'gt_hd_tu':0x1,'gt_hd_den':0x1});continue;case'12':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'mieu_ta':_0x36be17(0x1ed),'ma_vt':'text','ten_vt':_0x36be17(0x1ed),'ma_kh':'text','ten_kh':_0x36be17(0x1ed),'ma_nvt':_0x36be17(0x1ed),'ten_nvt':_0x36be17(0x1ed),'ma_kho':_0x36be17(0x1ed),'ten_kho':'text'},{'name':_0x36be17(0x1f5)});continue;case'13':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'ma_tt2':0x1});continue;case'14':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'online':0x1});continue;case'15':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'ma_tt1':0x1});continue;case'16':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'ma_tt3':0x1});continue;case'17':dmgiabanSchema['index']({'id_app':0x1,'nh_kh':0x1});continue;case'18':dmgiabanSchema[_0x36be17(0x1f8)]({'id_app':0x1,'ma_nvt':0x1});continue;case'19':dmgiabanSchema['index']({'id_app':0x1,'offline':0x1});continue;}break;}}const model=mongoose[_0x36be17(0x209)]['dmgiaban']||mongoose[_0x36be17(0x1f1)](_0x36be17(0x1ea),dmgiabanSchema);module['exports']=model;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
const dmgiamuaSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
default:0},gia_mua:{type:Number,default:0},gia_mua_qd:{type:Number,default:0},hieu_luc_tu:{type:Date,required:!0},hieu_luc_den:{type:Date,required:!0},exfields:Schema.Types.Mixed,status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},dmvt:{type:Schema.Types.ObjectId,ref:"dmvt",localField:["ma_vt"],foreignField:["ma_vt"]},dmkh:{type:Schema.Types.ObjectId,ref:"customer",
|
|
3
|
-
localField:["ma_kh"],foreignField:["ma_kh"]},dmkho:{type:Schema.Types.ObjectId,ref:"dmkho",localField:["ma_kho"],foreignField:["ma_kho"]}},{toJSON:{virtuals:!0}});
|
|
4
|
-
(global.configs||{}).createIndexes&&(dmgiamuaSchema.index({id_app:1,ma_vt:1,ma_kho:1,ma_kh:1,hieu_luc_tu:-1,hieu_luc_den:-1}),dmgiamuaSchema.index({nh_kh:1}),dmgiamuaSchema.index({ma_kho:1}),dmgiamuaSchema.index({ma_kh:1}),dmgiamuaSchema.index({ma_dvt:1}),dmgiamuaSchema.index({ma_tt1:1}),dmgiamuaSchema.index({ma_tt2:1}),dmgiamuaSchema.index({ma_tt3:1}),dmgiamuaSchema.index({sl_tu:1}),dmgiamuaSchema.index({sl_den:1}),dmgiamuaSchema.index({date_updated:-1}),dmgiamuaSchema.index({date_created:-1}),dmgiamuaSchema.index({user_created:1}),
|
|
5
|
-
dmgiamuaSchema.index({status:1}),dmgiamuaSchema.index({mieu_ta:"text",ma_vt:"text",ten_vt:"text",ma_kh:"text",ten_kh:"text",ma_kho:"text",ten_kho:"text"},{name:"dmgiamua_index_text"}));const model=mongoose.models.dmgiamua||mongoose.model("dmgiamua",dmgiamuaSchema);module.exports=model;
|
|
1
|
+
const _0x2f41e8=_0x290f;function _0x2d35(){const _0x43f9b9=['ndvNq2jQzMy','nZe2mdCZm2PIuNfxAW','C3bSAxq','nJb3rKDbDNe','mty4mda5zNvyyNPV','odyZntm0wNHfvMHz','mZKYodm4suXUquzZ','zxHWB3j0CW','twL4zwq','mtm1nZu4mwnoEvHOsW','wez1why','zg12Da','Dgv4Da','D1LWt2q','AwPczNu','zg1NAwfTDwfFAw5KzxHFDgv4Da','mti4mJq3nZbzEKXcyNO','y29UC3rYDwn0B3i','zg1NAwfTDwe','C2vHCMnO','zg1RAg8','BwfFA2G','y3jLyxrLsw5KzxHLCW','Dg9tDhjPBMC','oejMD3DPzq','BwfFA2HV','nJe4mZjNt1DAAMG','AeTzzKu','y29UzMLNCW','B3LyzfO','mhWXmNWZFdL8mxWXnhW3FdH8nhWXmxWYFdeZFdv8nNWXma','seflqve','Dhn1Auq','Bw9KzwW','Bw9KzwXZ','yxbWBhK','y3vZDg9Tzxi','t2jQzwn0swq','Aw5KzxG','mtf8nNWWFdj8mtn8mtj8oxWXFdH8nxWZFdr8n3WXnhWXma'];_0x2d35=function(){return _0x43f9b9;};return _0x2d35();}(function(_0x5c475e,_0x2fa465){const _0x4d5af2=_0x290f,_0x76f6e=_0x5c475e();while(!![]){try{const _0x169968=-parseInt(_0x4d5af2(0xc8))/0x1+parseInt(_0x4d5af2(0xb1))/0x2+parseInt(_0x4d5af2(0xc3))/0x3*(parseInt(_0x4d5af2(0xc2))/0x4)+parseInt(_0x4d5af2(0xbf))/0x5*(-parseInt(_0x4d5af2(0xc5))/0x6)+-parseInt(_0x4d5af2(0xc4))/0x7+parseInt(_0x4d5af2(0xaf))/0x8*(parseInt(_0x4d5af2(0xc0))/0x9)+parseInt(_0x4d5af2(0xa7))/0xa;if(_0x169968===_0x2fa465)break;else _0x76f6e['push'](_0x76f6e['shift']());}catch(_0x47e6b9){_0x76f6e['push'](_0x76f6e['shift']());}}}(_0x2d35,0xd691b));const _0x3827b9=(function(){const _0x2b7566=_0x290f,_0x5bb0d5={'oyXdZ':function(_0x34450b,_0xdb9e9d){return _0x34450b!==_0xdb9e9d;},'yoNLm':_0x2b7566(0xa3),'hKYfE':'dmgiamua_index_text','mcPnb':function(_0x2caccb,_0x7b05cc){return _0x2caccb===_0x7b05cc;},'XFuXv':_0x2b7566(0xb6)};let _0x1f2871=!![];return function(_0x5f0cca,_0x4dacfc){const _0x175720=_0x2b7566,_0x6616e6={'uSdlh':function(_0x25aa67,_0x2063f5){const _0x426f9f=_0x290f;return _0x5bb0d5[_0x426f9f(0xb4)](_0x25aa67,_0x2063f5);},'gWliG':'IVffR','wYpOd':_0x5bb0d5['yoNLm'],'XMuDh':_0x5bb0d5[_0x175720(0xb2)]};if(_0x5bb0d5['mcPnb'](_0x5bb0d5['XFuXv'],_0x5bb0d5[_0x175720(0xc9)])){const _0xfd8c51=_0x1f2871?function(){const _0x2913ab=_0x175720;if(_0x4dacfc){if(_0x6616e6['uSdlh'](_0x2913ab(0xb7),_0x6616e6['gWliG'])){const _0x4c0473=_0x4dacfc[_0x2913ab(0xba)](_0x5f0cca,arguments);return _0x4dacfc=null,_0x4c0473;}else{const _0x4ad80a=_0x51730c?function(){if(_0x24a5cc){const _0x40f666=_0x319bbb['apply'](_0x1ae40e,arguments);return _0x2d0cd5=null,_0x40f666;}}:function(){};return _0x2b2435=![],_0x4ad80a;}}}:function(){};return _0x1f2871=![],_0xfd8c51;}else{const _0x4596e8=_0x175720(0xbe)[_0x175720(0xc1)]('|');let _0x5b36c6=0x0;while(!![]){switch(_0x4596e8[_0x5b36c6++]){case'0':_0x4c1f5c[_0x175720(0xbd)]({'ma_kho':0x1});continue;case'1':_0x1d46e2[_0x175720(0xbd)]({'ma_tt3':0x1});continue;case'2':_0x16fab3[_0x175720(0xbd)]({'ma_kh':0x1});continue;case'3':_0x31fa26[_0x175720(0xbd)]({'date_updated':-0x1});continue;case'4':_0x23d31e[_0x175720(0xbd)]({'date_created':-0x1});continue;case'5':_0x3075db['index']({'sl_den':0x1});continue;case'6':_0x34f5ca['index']({'nh_kh':0x1});continue;case'7':_0x3f7e9e[_0x175720(0xbd)]({'user_created':0x1});continue;case'8':_0x5e369c['index']({'sl_tu':0x1});continue;case'9':_0x549e71[_0x175720(0xbd)]({'ma_tt2':0x1});continue;case'10':_0x16b4a9[_0x175720(0xbd)]({'mieu_ta':_0x6616e6[_0x175720(0xa4)],'ma_vt':_0x6616e6[_0x175720(0xa4)],'ten_vt':_0x6616e6['wYpOd'],'ma_kh':_0x6616e6[_0x175720(0xa4)],'ten_kh':_0x6616e6[_0x175720(0xa4)],'ma_kho':_0x6616e6[_0x175720(0xa4)],'ten_kho':_0x6616e6[_0x175720(0xa4)]},{'name':_0x6616e6['XMuDh']});continue;case'11':_0x364aa7[_0x175720(0xbd)]({'id_app':0x1,'ma_vt':0x1,'ma_kho':0x1,'ma_kh':0x1,'hieu_luc_tu':-0x1,'hieu_luc_den':-0x1});continue;case'12':_0x39154b[_0x175720(0xbd)]({'ma_tt1':0x1});continue;case'13':_0x1b7157[_0x175720(0xbd)]({'ma_dvt':0x1});continue;case'14':_0x25edb8[_0x175720(0xbd)]({'status':0x1});continue;}break;}}};}()),_0x33dfa5=_0x3827b9(this,function(){const _0xbe284d=_0x290f,_0x4d5ca2={'ijBfu':'(((.+)+)+)+$'};return _0x33dfa5[_0xbe284d(0xae)]()[_0xbe284d(0xaa)](_0x4d5ca2[_0xbe284d(0xa5)])[_0xbe284d(0xae)]()[_0xbe284d(0xa8)](_0x33dfa5)['search'](_0x4d5ca2['ijBfu']);});_0x33dfa5();const dmgiamuaSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_vt':{'type':String,'uppercase':!![],'default':'','maxlength':0x400,'trim':!![]},'ten_vt':String,'ma_dvt':{'type':String,'trim':!![]},'mieu_ta':{'type':String,'default':'','maxlength':0x400},'ma_kh':{'type':String,'default':'','maxlength':0x20,'trim':!![]},'ten_kh':String,'ma_kho':{'type':String,'default':'','maxlength':0x20,'trim':!![]},'ten_kho':String,'ma_tt1':{'type':String,'trim':!![]},'ma_tt2':{'type':String,'trim':!![]},'ma_tt3':{'type':String,'trim':!![]},'sl_tu':{'type':Number,'default':0x0},'sl_den':{'type':Number,'default':0x0},'gia_mua':{'type':Number,'default':0x0},'gia_mua_qd':{'type':Number,'default':0x0},'hieu_luc_tu':{'type':Date,'required':!![]},'hieu_luc_den':{'type':Date,'required':!![]},'exfields':Schema['Types'][_0x2f41e8(0xc7)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date['now']},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'dmvt':{'type':Schema['Types'][_0x2f41e8(0xbc)],'ref':_0x2f41e8(0xa2),'localField':['ma_vt'],'foreignField':['ma_vt']},'dmkh':{'type':Schema['Types'][_0x2f41e8(0xbc)],'ref':_0x2f41e8(0xbb),'localField':['ma_kh'],'foreignField':[_0x2f41e8(0xac)]},'dmkho':{'type':Schema['Types'][_0x2f41e8(0xbc)],'ref':_0x2f41e8(0xab),'localField':['ma_kho'],'foreignField':[_0x2f41e8(0xb0)]}},{'toJSON':{'virtuals':!![]}});if((global[_0x2f41e8(0xb3)]||{})[_0x2f41e8(0xad)]){const LUxkEU=_0x2f41e8(0xb5)['split']('|');let qmghYX=0x0;while(!![]){switch(LUxkEU[qmghYX++]){case'0':dmgiamuaSchema['index']({'id_app':0x1,'ma_vt':0x1,'ma_kho':0x1,'ma_kh':0x1,'hieu_luc_tu':-0x1,'hieu_luc_den':-0x1});continue;case'1':dmgiamuaSchema[_0x2f41e8(0xbd)]({'ma_dvt':0x1});continue;case'2':dmgiamuaSchema[_0x2f41e8(0xbd)]({'date_updated':-0x1});continue;case'3':dmgiamuaSchema[_0x2f41e8(0xbd)]({'ma_kho':0x1});continue;case'4':dmgiamuaSchema[_0x2f41e8(0xbd)]({'sl_tu':0x1});continue;case'5':dmgiamuaSchema[_0x2f41e8(0xbd)]({'user_created':0x1});continue;case'6':dmgiamuaSchema[_0x2f41e8(0xbd)]({'status':0x1});continue;case'7':dmgiamuaSchema[_0x2f41e8(0xbd)]({'ma_tt2':0x1});continue;case'8':dmgiamuaSchema[_0x2f41e8(0xbd)]({'ma_tt3':0x1});continue;case'9':dmgiamuaSchema[_0x2f41e8(0xbd)]({'ma_kh':0x1});continue;case'10':dmgiamuaSchema[_0x2f41e8(0xbd)]({'mieu_ta':'text','ma_vt':_0x2f41e8(0xa3),'ten_vt':_0x2f41e8(0xa3),'ma_kh':_0x2f41e8(0xa3),'ten_kh':_0x2f41e8(0xa3),'ma_kho':_0x2f41e8(0xa3),'ten_kho':'text'},{'name':_0x2f41e8(0xa6)});continue;case'11':dmgiamuaSchema[_0x2f41e8(0xbd)]({'sl_den':0x1});continue;case'12':dmgiamuaSchema['index']({'nh_kh':0x1});continue;case'13':dmgiamuaSchema[_0x2f41e8(0xbd)]({'date_created':-0x1});continue;case'14':dmgiamuaSchema['index']({'ma_tt1':0x1});continue;}break;}}const model=mongoose[_0x2f41e8(0xb9)][_0x2f41e8(0xa9)]||mongoose[_0x2f41e8(0xb8)](_0x2f41e8(0xa9),dmgiamuaSchema);function _0x290f(_0x40f949,_0x270820){const _0x42e5b7=_0x2d35();return _0x290f=function(_0x33dfa5,_0x3827b9){_0x33dfa5=_0x33dfa5-0xa2;let _0x2d355f=_0x42e5b7[_0x33dfa5];if(_0x290f['IudbIu']===undefined){var _0x290f9d=function(_0x595e19){const _0x2f075c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2e224a='',_0x247231='',_0x41fc25=_0x2e224a+_0x290f9d;for(let _0x2c15b6=0x0,_0x1187c4,_0x2c2067,_0xf3b56=0x0;_0x2c2067=_0x595e19['charAt'](_0xf3b56++);~_0x2c2067&&(_0x1187c4=_0x2c15b6%0x4?_0x1187c4*0x40+_0x2c2067:_0x2c2067,_0x2c15b6++%0x4)?_0x2e224a+=_0x41fc25['charCodeAt'](_0xf3b56+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1187c4>>(-0x2*_0x2c15b6&0x6)):_0x2c15b6:0x0){_0x2c2067=_0x2f075c['indexOf'](_0x2c2067);}for(let _0x51730c=0x0,_0x7e86f3=_0x2e224a['length'];_0x51730c<_0x7e86f3;_0x51730c++){_0x247231+='%'+('00'+_0x2e224a['charCodeAt'](_0x51730c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x247231);};_0x290f['GQEeOi']=_0x290f9d,_0x40f949=arguments,_0x290f['IudbIu']=!![];}const _0xaf860b=_0x42e5b7[0x0],_0x544262=_0x33dfa5+_0xaf860b,_0xf7e368=_0x40f949[_0x544262];if(!_0xf7e368){const _0x19c636=function(_0x179b4a){this['ZauYbn']=_0x179b4a,this['rTMJCi']=[0x1,0x0,0x0],this['AATucd']=function(){return'newState';},this['UKDlSh']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['jMCvgM']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x19c636['prototype']['ULkDVX']=function(){const _0x567937=new RegExp(this['UKDlSh']+this['jMCvgM']),_0x2b2435=_0x567937['test'](this['AATucd']['toString']())?--this['rTMJCi'][0x1]:--this['rTMJCi'][0x0];return this['HSHZoP'](_0x2b2435);},_0x19c636['prototype']['HSHZoP']=function(_0x24a5cc){if(!Boolean(~_0x24a5cc))return _0x24a5cc;return this['cGcmXh'](this['ZauYbn']);},_0x19c636['prototype']['cGcmXh']=function(_0x39db4a){for(let _0xfbb6b6=0x0,_0x4b790a=this['rTMJCi']['length'];_0xfbb6b6<_0x4b790a;_0xfbb6b6++){this['rTMJCi']['push'](Math['round'](Math['random']())),_0x4b790a=this['rTMJCi']['length'];}return _0x39db4a(this['rTMJCi'][0x0]);},new _0x19c636(_0x290f)['ULkDVX'](),_0x2d355f=_0x290f['GQEeOi'](_0x2d355f),_0x40f949[_0x544262]=_0x2d355f;}else _0x2d355f=_0xf7e368;return _0x2d355f;},_0x290f(_0x40f949,_0x270820);}module[_0x2f41e8(0xc6)]=model;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
const dmgiathitruongSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
sl_den:{type:Number,default:0},gia_thi_truong:{type:Number,default:0},gia_thi_truong_qd:{type:Number,default:0},gia_thi_truong_td:{type:Number,default:0},gia_thi_truong_tb:{type:Number,default:0},gia_thi_truong_tb_td:{type:Number,default:0},gia_mua:{type:Number,default:0},gia_mua_qd:{type:Number,default:0},ngay:{type:Date,default:Date.now},tinh_thanh:String,exfields:Schema.Types.Mixed,status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},
|
|
3
|
-
user_created:{type:String,default:""},user_updated:{type:String,default:""}},{toJSON:{virtuals:!0}});
|
|
4
|
-
(global.configs||{}).createIndexes&&(dmgiathitruongSchema.index({id_app:1,ma_vt:1,ma_kho:1,ma_kh:1,ngay:-1,tinh_thanh:1}),dmgiathitruongSchema.index({nh_kh:1}),dmgiathitruongSchema.index({ma_kho:1}),dmgiathitruongSchema.index({ma_kh:1}),dmgiathitruongSchema.index({ma_dvt:1}),dmgiathitruongSchema.index({ma_tt1:1}),dmgiathitruongSchema.index({ma_tt2:1}),dmgiathitruongSchema.index({ma_tt3:1}),dmgiathitruongSchema.index({sl_tu:1}),dmgiathitruongSchema.index({sl_den:1}),dmgiathitruongSchema.index({date_updated:-1}),
|
|
5
|
-
dmgiathitruongSchema.index({date_created:-1}),dmgiathitruongSchema.index({user_created:1}),dmgiathitruongSchema.index({status:1}),dmgiathitruongSchema.index({mieu_ta:"text",ma_vt:"text",ten_vt:"text",ma_kh:"text",ten_kh:"text",ma_kho:"text",ten_kho:"text"},{name:"dmgiathitruong_index_text"}));const model=mongoose.models.dmgiathitruong||mongoose.model("dmgiathitruong",dmgiathitruongSchema);module.exports=model;
|
|
1
|
+
const _0x2d69f6=_0x2a0d;(function(_0x1a1a16,_0x8e365c){const _0x33bd95=_0x2a0d,_0x200a63=_0x1a1a16();while(!![]){try{const _0x3bfacd=-parseInt(_0x33bd95(0x15e))/0x1*(-parseInt(_0x33bd95(0x170))/0x2)+-parseInt(_0x33bd95(0x16e))/0x3+parseInt(_0x33bd95(0x171))/0x4*(parseInt(_0x33bd95(0x163))/0x5)+parseInt(_0x33bd95(0x158))/0x6*(parseInt(_0x33bd95(0x153))/0x7)+-parseInt(_0x33bd95(0x164))/0x8*(parseInt(_0x33bd95(0x157))/0x9)+-parseInt(_0x33bd95(0x155))/0xa+parseInt(_0x33bd95(0x15d))/0xb*(parseInt(_0x33bd95(0x160))/0xc);if(_0x3bfacd===_0x8e365c)break;else _0x200a63['push'](_0x200a63['shift']());}catch(_0x1b43e7){_0x200a63['push'](_0x200a63['shift']());}}}(_0x233e,0x1ff79));function _0x2a0d(_0x556975,_0x2a3b82){const _0x902cc8=_0x233e();return _0x2a0d=function(_0xbcdc21,_0x515ce3){_0xbcdc21=_0xbcdc21-0x152;let _0x233ea6=_0x902cc8[_0xbcdc21];if(_0x2a0d['JPMrgN']===undefined){var _0x2a0d3f=function(_0x3d07f1){const _0x4f6437='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1d66c6='',_0x2b70ff='',_0x4701ef=_0x1d66c6+_0x2a0d3f;for(let _0x431652=0x0,_0x557bac,_0x5e61ab,_0x4490b2=0x0;_0x5e61ab=_0x3d07f1['charAt'](_0x4490b2++);~_0x5e61ab&&(_0x557bac=_0x431652%0x4?_0x557bac*0x40+_0x5e61ab:_0x5e61ab,_0x431652++%0x4)?_0x1d66c6+=_0x4701ef['charCodeAt'](_0x4490b2+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x557bac>>(-0x2*_0x431652&0x6)):_0x431652:0x0){_0x5e61ab=_0x4f6437['indexOf'](_0x5e61ab);}for(let _0x452255=0x0,_0xcb649f=_0x1d66c6['length'];_0x452255<_0xcb649f;_0x452255++){_0x2b70ff+='%'+('00'+_0x1d66c6['charCodeAt'](_0x452255)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2b70ff);};_0x2a0d['HwdENU']=_0x2a0d3f,_0x556975=arguments,_0x2a0d['JPMrgN']=!![];}const _0x330e92=_0x902cc8[0x0],_0x2ea1f4=_0xbcdc21+_0x330e92,_0x436e30=_0x556975[_0x2ea1f4];if(!_0x436e30){const _0x1cdc35=function(_0x2adf9d){this['GyoSMz']=_0x2adf9d,this['aRJjJo']=[0x1,0x0,0x0],this['pKAawv']=function(){return'newState';},this['Kbldrw']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['KqZQJa']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1cdc35['prototype']['GmQAVg']=function(){const _0x312753=new RegExp(this['Kbldrw']+this['KqZQJa']),_0x21e9d3=_0x312753['test'](this['pKAawv']['toString']())?--this['aRJjJo'][0x1]:--this['aRJjJo'][0x0];return this['QBSPlU'](_0x21e9d3);},_0x1cdc35['prototype']['QBSPlU']=function(_0x10dd4c){if(!Boolean(~_0x10dd4c))return _0x10dd4c;return this['IyQMbq'](this['GyoSMz']);},_0x1cdc35['prototype']['IyQMbq']=function(_0x9417a3){for(let _0x1c70dc=0x0,_0x218d0b=this['aRJjJo']['length'];_0x1c70dc<_0x218d0b;_0x1c70dc++){this['aRJjJo']['push'](Math['round'](Math['random']())),_0x218d0b=this['aRJjJo']['length'];}return _0x9417a3(this['aRJjJo'][0x0]);},new _0x1cdc35(_0x2a0d)['GmQAVg'](),_0x233ea6=_0x2a0d['HwdENU'](_0x233ea6),_0x556975[_0x2ea1f4]=_0x233ea6;}else _0x233ea6=_0x436e30;return _0x233ea6;},_0x2a0d(_0x556975,_0x2a3b82);}const _0x515ce3=(function(){const _0x3c4d08=_0x2a0d,_0x47dbb9={'WrvJT':function(_0x3dc486,_0x1c529a){return _0x3dc486!==_0x1c529a;},'cUpWF':_0x3c4d08(0x15a)};let _0x1b83e4=!![];return function(_0x41a9b8,_0x2748ae){const _0x29f36e=_0x3c4d08,_0x126d64={'QGAUI':function(_0x1c9bd3,_0xeb88db){const _0x58b340=_0x2a0d;return _0x47dbb9[_0x58b340(0x156)](_0x1c9bd3,_0xeb88db);},'ONGFN':_0x29f36e(0x16f),'EBNUk':function(_0x3afff4,_0x21399c){return _0x47dbb9['WrvJT'](_0x3afff4,_0x21399c);},'orJBn':_0x29f36e(0x166),'mvGzG':_0x47dbb9['cUpWF']},_0x5ce993=_0x1b83e4?function(){const _0x1fb675=_0x29f36e;if(_0x126d64[_0x1fb675(0x15f)](_0x126d64['ONGFN'],_0x126d64[_0x1fb675(0x168)])){if(_0x5de2d4){const _0x2b6e41=_0x10ff86['apply'](_0x2522f6,arguments);return _0x346d76=null,_0x2b6e41;}}else{if(_0x2748ae){if(_0x126d64['EBNUk'](_0x126d64[_0x1fb675(0x152)],_0x126d64[_0x1fb675(0x172)])){const _0x2b3841=_0x2748ae['apply'](_0x41a9b8,arguments);return _0x2748ae=null,_0x2b3841;}else{const _0x4ccec2=_0x452255?function(){const _0xe17f7d=_0x1fb675;if(_0x10dd4c){const _0x128aea=_0x5219ee[_0xe17f7d(0x16d)](_0x453ce6,arguments);return _0x46cc77=null,_0x128aea;}}:function(){};return _0x21e9d3=![],_0x4ccec2;}}}}:function(){};return _0x1b83e4=![],_0x5ce993;};}()),_0xbcdc21=_0x515ce3(this,function(){const _0x10798d=_0x2a0d,_0x241fbe={'drlqh':_0x10798d(0x169)};return _0xbcdc21[_0x10798d(0x15b)]()[_0x10798d(0x16a)](_0x241fbe['drlqh'])['toString']()[_0x10798d(0x165)](_0xbcdc21)[_0x10798d(0x16a)](_0x241fbe[_0x10798d(0x174)]);});_0xbcdc21();const dmgiathitruongSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_vt':{'type':String,'required':!![],'uppercase':!![],'default':'','maxlength':0x400,'trim':!![]},'ten_vt':String,'ma_dvt':{'type':String,'trim':!![]},'mieu_ta':{'type':String,'default':'','maxlength':0x400},'ma_kh':{'type':String,'default':'','maxlength':0x20,'trim':!![]},'ten_kh':String,'ma_kho':{'type':String,'default':'','maxlength':0x20,'trim':!![]},'ten_kho':String,'ma_tt1':{'type':String,'trim':!![]},'ma_tt2':{'type':String,'trim':!![]},'ma_tt3':{'type':String,'trim':!![]},'sl_tu':{'type':Number,'default':0x0},'sl_den':{'type':Number,'default':0x0},'gia_thi_truong':{'type':Number,'default':0x0},'gia_thi_truong_qd':{'type':Number,'default':0x0},'gia_thi_truong_td':{'type':Number,'default':0x0},'gia_thi_truong_tb':{'type':Number,'default':0x0},'gia_thi_truong_tb_td':{'type':Number,'default':0x0},'gia_mua':{'type':Number,'default':0x0},'gia_mua_qd':{'type':Number,'default':0x0},'ngay':{'type':Date,'default':Date[_0x2d69f6(0x159)]},'tinh_thanh':String,'exfields':Schema[_0x2d69f6(0x154)][_0x2d69f6(0x16b)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x2d69f6(0x159)]},'date_updated':{'type':Date,'default':Date[_0x2d69f6(0x159)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}},{'toJSON':{'virtuals':!![]}});function _0x233e(){const _0x50ff5f=['mtK1nJq4sMTeAwrW','mZa0mdy4sgnjAejg','BxzhEKC','mhWXmNWXFdz8ohWZFdj8mtf8mtr8mtb8nxW3FdL8nhWXmW','zhjSCwG','B3jkqM4','nZaXnZi5wuTgz3LQ','vhLWzxm','mti3ndaWmgTnwgvQsW','v3j2sLq','ovrtz2jrwa','nM9Nv1jpuW','BM93','uhDZB04','Dg9tDhjPBMC','C3bSAxq','mtf2teTfuwS','mw1hBKnZtG','uuDbvuK','mJy1mZK0ngfPzu11qG','Aw5KzxG','Dgv4Da','nwTmELrIzG','mZGYmJu2vxfwBuvn','y29UC3rYDwn0B3i','ywnWrfa','Bw9KzwW','t05hrK4','kcGOlISPkYKRksSK','C2vHCMnO','twL4zwq','zg1NAwf0AgL0CNvVBMC','yxbWBhK','nty3mZKZqMvgvMX0','CxrZCLe'];_0x233e=function(){return _0x50ff5f;};return _0x233e();}if((global['configs']||{})['createIndexes']){const mkhbMA=_0x2d69f6(0x173)[_0x2d69f6(0x15c)]('|');let oYKoBg=0x0;while(!![]){switch(mkhbMA[oYKoBg++]){case'0':dmgiathitruongSchema[_0x2d69f6(0x161)]({'id_app':0x1,'ma_vt':0x1,'ma_kho':0x1,'ma_kh':0x1,'ngay':-0x1,'tinh_thanh':0x1});continue;case'1':dmgiathitruongSchema[_0x2d69f6(0x161)]({'ma_kho':0x1});continue;case'2':dmgiathitruongSchema[_0x2d69f6(0x161)]({'ma_tt2':0x1});continue;case'3':dmgiathitruongSchema['index']({'ma_tt1':0x1});continue;case'4':dmgiathitruongSchema[_0x2d69f6(0x161)]({'status':0x1});continue;case'5':dmgiathitruongSchema[_0x2d69f6(0x161)]({'date_updated':-0x1});continue;case'6':dmgiathitruongSchema[_0x2d69f6(0x161)]({'ma_kh':0x1});continue;case'7':dmgiathitruongSchema['index']({'date_created':-0x1});continue;case'8':dmgiathitruongSchema['index']({'ma_dvt':0x1});continue;case'9':dmgiathitruongSchema[_0x2d69f6(0x161)]({'user_created':0x1});continue;case'10':dmgiathitruongSchema['index']({'sl_den':0x1});continue;case'11':dmgiathitruongSchema['index']({'ma_tt3':0x1});continue;case'12':dmgiathitruongSchema[_0x2d69f6(0x161)]({'nh_kh':0x1});continue;case'13':dmgiathitruongSchema['index']({'mieu_ta':'text','ma_vt':_0x2d69f6(0x162),'ten_vt':_0x2d69f6(0x162),'ma_kh':'text','ten_kh':_0x2d69f6(0x162),'ma_kho':_0x2d69f6(0x162),'ten_kho':_0x2d69f6(0x162)},{'name':'dmgiathitruong_index_text'});continue;case'14':dmgiathitruongSchema['index']({'sl_tu':0x1});continue;}break;}}const model=mongoose['models'][_0x2d69f6(0x16c)]||mongoose[_0x2d69f6(0x167)](_0x2d69f6(0x16c),dmgiathitruongSchema);module['exports']=model;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const dmgiathitruong_ngaySchema=new Schema({id_app:{type:String,required
|
|
2
|
-
const model=mongoose.models.dmgiathitruong_ngay||mongoose.model("dmgiathitruong_ngay",dmgiathitruong_ngaySchema);module.exports=model;
|
|
1
|
+
const _0x4abf41=_0x472c;(function(_0xc752a1,_0x3b753c){const _0x2766f2=_0x472c,_0x296c4f=_0xc752a1();while(!![]){try{const _0x4a2453=-parseInt(_0x2766f2(0x11b))/0x1+parseInt(_0x2766f2(0x11f))/0x2*(-parseInt(_0x2766f2(0x118))/0x3)+parseInt(_0x2766f2(0x129))/0x4*(parseInt(_0x2766f2(0x11a))/0x5)+-parseInt(_0x2766f2(0x128))/0x6*(parseInt(_0x2766f2(0x11c))/0x7)+parseInt(_0x2766f2(0x12a))/0x8*(parseInt(_0x2766f2(0x115))/0x9)+parseInt(_0x2766f2(0x119))/0xa*(-parseInt(_0x2766f2(0x123))/0xb)+-parseInt(_0x2766f2(0x10d))/0xc*(-parseInt(_0x2766f2(0x125))/0xd);if(_0x4a2453===_0x3b753c)break;else _0x296c4f['push'](_0x296c4f['shift']());}catch(_0x3937f4){_0x296c4f['push'](_0x296c4f['shift']());}}}(_0x27c4,0xf08e6));function _0x27c4(){const _0x116f01=['ndrXzxfsD08','nJeXmtjKCKDxvNG','wLD1zMS','nZKYnJbrqM5Ztey','C2vHCMnO','BM93','vhLWzxm','Bw9KzwW','zfzZzNG','Dgv4Da','v0XMD0u','mZzrC1j5s3e','zg1NAwf0AgL0CNvVBMDFBMDHEv9PBMrLEf90zxH0','A01rveO','ndq3EfLKvgfi','ndbHuM5dz2m','mJa4otG1u1LKtKTr','mJm1mZG2tujkq3Dw','nZe0mdDeAejOA1m','kcGOlISPkYKRksSK','y29UzMLNCW','ode5oevyAwryCa','Dg9tDhjPBMC','zg1NAwf0AgL0CNvVBMDFBMDHEq','Aw5KzxG','mJi4mJmZnvrmvxPPva','yxbWBhK','nZm0nxn6BKnoCq','AfHAtMi','twL4zwq','ote4yMTvC3bp'];_0x27c4=function(){return _0x116f01;};return _0x27c4();}const _0x198e2b=(function(){const _0x30ba45=_0x472c,_0x4e55f1={'kMQTJ':function(_0x5e76ef,_0x13d930){return _0x5e76ef!==_0x13d930;},'hXZNb':_0x30ba45(0x112)};let _0x288c29=!![];return function(_0x79e39,_0x2de70f){const _0x1c97e7=_0x30ba45;if(_0x4e55f1[_0x1c97e7(0x117)](_0x1c97e7(0x114),_0x4e55f1[_0x1c97e7(0x126)])){const _0xfe110e=_0x288c29?function(){const _0x7cd6da=_0x1c97e7;if(_0x2de70f){const _0x4ae617=_0x2de70f[_0x7cd6da(0x124)](_0x79e39,arguments);return _0x2de70f=null,_0x4ae617;}}:function(){};return _0x288c29=![],_0xfe110e;}else{if(_0x3ae034){const _0x10738d=_0x2ba95a['apply'](_0x50376c,arguments);return _0x3ca77d=null,_0x10738d;}}};}()),_0x5760e7=_0x198e2b(this,function(){const _0x472b0e=_0x472c,_0x1f226a={'ZWufk':_0x472b0e(0x11d)};return _0x5760e7[_0x472b0e(0x120)]()[_0x472b0e(0x10e)](_0x472b0e(0x11d))[_0x472b0e(0x120)]()['constructor'](_0x5760e7)[_0x472b0e(0x10e)](_0x1f226a[_0x472b0e(0x12b)]);});function _0x472c(_0x36a2ce,_0x3b2d35){const _0x52a475=_0x27c4();return _0x472c=function(_0x5760e7,_0x198e2b){_0x5760e7=_0x5760e7-0x10d;let _0x27c476=_0x52a475[_0x5760e7];if(_0x472c['weEzyT']===undefined){var _0x472c12=function(_0x1087e7){const _0x3c731b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x969471='',_0x2be20a='',_0xe89357=_0x969471+_0x472c12;for(let _0x49535c=0x0,_0x3b8ea2,_0x596719,_0x208c76=0x0;_0x596719=_0x1087e7['charAt'](_0x208c76++);~_0x596719&&(_0x3b8ea2=_0x49535c%0x4?_0x3b8ea2*0x40+_0x596719:_0x596719,_0x49535c++%0x4)?_0x969471+=_0xe89357['charCodeAt'](_0x208c76+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3b8ea2>>(-0x2*_0x49535c&0x6)):_0x49535c:0x0){_0x596719=_0x3c731b['indexOf'](_0x596719);}for(let _0x1c90a8=0x0,_0x26095c=_0x969471['length'];_0x1c90a8<_0x26095c;_0x1c90a8++){_0x2be20a+='%'+('00'+_0x969471['charCodeAt'](_0x1c90a8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2be20a);};_0x472c['ztnlIR']=_0x472c12,_0x36a2ce=arguments,_0x472c['weEzyT']=!![];}const _0x255edb=_0x52a475[0x0],_0x59f4fb=_0x5760e7+_0x255edb,_0x14d5ab=_0x36a2ce[_0x59f4fb];if(!_0x14d5ab){const _0x412fcf=function(_0x230996){this['QeCGOl']=_0x230996,this['waLkjw']=[0x1,0x0,0x0],this['KThLif']=function(){return'newState';},this['XjDkGD']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['nAuiyr']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x412fcf['prototype']['tGiDls']=function(){const _0x4ce1ca=new RegExp(this['XjDkGD']+this['nAuiyr']),_0x155c2d=_0x4ce1ca['test'](this['KThLif']['toString']())?--this['waLkjw'][0x1]:--this['waLkjw'][0x0];return this['oIyAMn'](_0x155c2d);},_0x412fcf['prototype']['oIyAMn']=function(_0x4ea5fb){if(!Boolean(~_0x4ea5fb))return _0x4ea5fb;return this['wCTFtj'](this['QeCGOl']);},_0x412fcf['prototype']['wCTFtj']=function(_0x27c3f6){for(let _0x34c611=0x0,_0x56292d=this['waLkjw']['length'];_0x34c611<_0x56292d;_0x34c611++){this['waLkjw']['push'](Math['round'](Math['random']())),_0x56292d=this['waLkjw']['length'];}return _0x27c3f6(this['waLkjw'][0x0]);},new _0x412fcf(_0x472c)['tGiDls'](),_0x27c476=_0x472c['ztnlIR'](_0x27c476),_0x36a2ce[_0x59f4fb]=_0x27c476;}else _0x27c476=_0x14d5ab;return _0x27c476;},_0x472c(_0x36a2ce,_0x3b2d35);}_0x5760e7();const dmgiathitruong_ngaySchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ngay':String,'exfields':Schema[_0x4abf41(0x110)][_0x4abf41(0x127)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x4abf41(0x10f)]},'date_updated':{'type':Date,'default':Date[_0x4abf41(0x10f)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}},{'toJSON':{'virtuals':!![]}});(global[_0x4abf41(0x11e)]||{})['createIndexes']&&(dmgiathitruong_ngaySchema[_0x4abf41(0x122)]({'id_app':0x1,'ngay':0x1}),dmgiathitruong_ngaySchema[_0x4abf41(0x122)]({'ngay':_0x4abf41(0x113)},{'name':_0x4abf41(0x116)}));const model=mongoose['models']['dmgiathitruong_ngay']||mongoose[_0x4abf41(0x111)](_0x4abf41(0x121),dmgiathitruong_ngaySchema);module['exports']=model;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const dmgiathitruong_theodoiSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
(global.configs||{}).createIndexes&&(dmgiathitruong_theodoiSchema.index({id_app:1,user:1,ma_vt:1,tinh_thanh:1}),dmgiathitruong_theodoiSchema.index({follow:1}),dmgiathitruong_theodoiSchema.index({ma_vt:"text"},{name:"dmgiathitruong_theodoi_index_text"}));const model=mongoose.models.dmgiathitruong_theodoi||mongoose.model("dmgiathitruong_theodoi",dmgiathitruong_theodoiSchema);module.exports=model;
|
|
1
|
+
const _0x3a36a5=_0x1bb1;(function(_0x232e28,_0x9e29fa){const _0x28e640=_0x1bb1,_0x287186=_0x232e28();while(!![]){try{const _0x51453e=-parseInt(_0x28e640(0x194))/0x1+parseInt(_0x28e640(0x18e))/0x2+-parseInt(_0x28e640(0x17f))/0x3*(parseInt(_0x28e640(0x17e))/0x4)+parseInt(_0x28e640(0x193))/0x5*(parseInt(_0x28e640(0x189))/0x6)+-parseInt(_0x28e640(0x188))/0x7+parseInt(_0x28e640(0x196))/0x8*(-parseInt(_0x28e640(0x191))/0x9)+parseInt(_0x28e640(0x18b))/0xa;if(_0x51453e===_0x9e29fa)break;else _0x287186['push'](_0x287186['shift']());}catch(_0x3b5d14){_0x287186['push'](_0x287186['shift']());}}}(_0x2864,0xec4f0));const _0x25ee3c=(function(){const _0x38ef6f=_0x1bb1,_0x3a4816={'ikdoZ':function(_0x117902,_0x32a284){return _0x117902===_0x32a284;},'onkJi':function(_0x7eb435,_0x2a4fb9){return _0x7eb435!==_0x2a4fb9;},'WLvqb':_0x38ef6f(0x197)};let _0x7f4695=!![];return function(_0x3ca479,_0x16c527){if(_0x3a4816['onkJi'](_0x3a4816['WLvqb'],'zNAxu')){const _0x1bf361=_0x504d66?function(){const _0x175cfd=_0x1bb1;if(_0x320b4c){const _0x4e4e20=_0x104849[_0x175cfd(0x18f)](_0xc7f4e3,arguments);return _0xb2d8b3=null,_0x4e4e20;}}:function(){};return _0x885c0f=![],_0x1bf361;}else{const _0x304fe1=_0x7f4695?function(){const _0x2d50cc=_0x1bb1,_0x903896={'uXVdT':_0x2d50cc(0x186)};if(_0x3a4816['ikdoZ'](_0x2d50cc(0x17b),_0x2d50cc(0x185)))return _0x576fff['toString']()[_0x2d50cc(0x180)](_0x903896[_0x2d50cc(0x198)])[_0x2d50cc(0x17d)]()[_0x2d50cc(0x18d)](_0x1c4e9a)['search'](_0x2d50cc(0x186));else{if(_0x16c527){const _0x5b1b48=_0x16c527['apply'](_0x3ca479,arguments);return _0x16c527=null,_0x5b1b48;}}}:function(){};return _0x7f4695=![],_0x304fe1;}};}()),_0x1712cc=_0x25ee3c(this,function(){const _0x1162eb=_0x1bb1,_0x1ec2ce={'ntQXn':_0x1162eb(0x186)};return _0x1712cc[_0x1162eb(0x17d)]()['search'](_0x1ec2ce[_0x1162eb(0x181)])[_0x1162eb(0x17d)]()[_0x1162eb(0x18d)](_0x1712cc)[_0x1162eb(0x180)](_0x1ec2ce[_0x1162eb(0x181)]);});_0x1712cc();const dmgiathitruong_theodoiSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'user':String,'ma_vt':String,'tinh_thanh':String,'follow':Boolean,'exfields':Schema[_0x3a36a5(0x183)]['Mixed'],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x3a36a5(0x192)]},'date_updated':{'type':Date,'default':Date[_0x3a36a5(0x192)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}},{'toJSON':{'virtuals':!![]}});(global[_0x3a36a5(0x195)]||{})[_0x3a36a5(0x184)]&&(dmgiathitruong_theodoiSchema[_0x3a36a5(0x187)]({'id_app':0x1,'user':0x1,'ma_vt':0x1,'tinh_thanh':0x1}),dmgiathitruong_theodoiSchema[_0x3a36a5(0x187)]({'follow':0x1}),dmgiathitruong_theodoiSchema[_0x3a36a5(0x187)]({'ma_vt':_0x3a36a5(0x182)},{'name':_0x3a36a5(0x18a)}));const model=mongoose[_0x3a36a5(0x17c)][_0x3a36a5(0x190)]||mongoose['model'](_0x3a36a5(0x190),dmgiathitruong_theodoiSchema);function _0x2864(){const _0x3ab90f=['Dgv4Da','vhLWzxm','y3jLyxrLsw5KzxHLCW','vg9RvNC','kcGOlISPkYKRksSK','Aw5KzxG','nJyXmJaXmwzyyMv4uG','mJu5mde0DLL4AMDi','zg1NAwf0AgL0CNvVBMDFDgHLB2rVAv9PBMrLEf90zxH0','mZq5ndi3mtbwCLbqvxK','zxHWB3j0CW','y29UC3rYDwn0B3i','mti4oteXmNzny0HQsq','yxbWBhK','zg1NAwf0AgL0CNvVBMDFDgHLB2rVAq','mte3vwPfDffy','BM93','ntvmDef4qNa','mtuXntC0muH5qvLzwa','y29UzMLNCW','mJu2nZq0rKPUsffx','EK5bEhu','DvHwzfq','tgzwsfK','Bw9KzwXZ','Dg9tDhjPBMC','ndm4otK2BgXKq3vx','mJfruxrPqMq','C2vHCMnO','BNrrwg4'];_0x2864=function(){return _0x3ab90f;};return _0x2864();}function _0x1bb1(_0x22a331,_0x23c4fe){const _0x2e3c16=_0x2864();return _0x1bb1=function(_0x1712cc,_0x25ee3c){_0x1712cc=_0x1712cc-0x17b;let _0x2864b7=_0x2e3c16[_0x1712cc];if(_0x1bb1['DBKWDz']===undefined){var _0x1bb138=function(_0x5c2b15){const _0x17c76e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3dd180='',_0x5b9874='',_0x4f1237=_0x3dd180+_0x1bb138;for(let _0x13c6c7=0x0,_0x31af6d,_0x2e6739,_0x52caa7=0x0;_0x2e6739=_0x5c2b15['charAt'](_0x52caa7++);~_0x2e6739&&(_0x31af6d=_0x13c6c7%0x4?_0x31af6d*0x40+_0x2e6739:_0x2e6739,_0x13c6c7++%0x4)?_0x3dd180+=_0x4f1237['charCodeAt'](_0x52caa7+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x31af6d>>(-0x2*_0x13c6c7&0x6)):_0x13c6c7:0x0){_0x2e6739=_0x17c76e['indexOf'](_0x2e6739);}for(let _0x504d66=0x0,_0x5b1dd0=_0x3dd180['length'];_0x504d66<_0x5b1dd0;_0x504d66++){_0x5b9874+='%'+('00'+_0x3dd180['charCodeAt'](_0x504d66)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5b9874);};_0x1bb1['LqMjau']=_0x1bb138,_0x22a331=arguments,_0x1bb1['DBKWDz']=!![];}const _0x6938a2=_0x2e3c16[0x0],_0x1fb6fd=_0x1712cc+_0x6938a2,_0x52d619=_0x22a331[_0x1fb6fd];if(!_0x52d619){const _0x11cd87=function(_0x549e00){this['DEearS']=_0x549e00,this['WfeNlP']=[0x1,0x0,0x0],this['oVwMbg']=function(){return'newState';},this['rPaRCK']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['SPtrkO']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x11cd87['prototype']['zznRgy']=function(){const _0x20af67=new RegExp(this['rPaRCK']+this['SPtrkO']),_0x885c0f=_0x20af67['test'](this['oVwMbg']['toString']())?--this['WfeNlP'][0x1]:--this['WfeNlP'][0x0];return this['bJobjV'](_0x885c0f);},_0x11cd87['prototype']['bJobjV']=function(_0x320b4c){if(!Boolean(~_0x320b4c))return _0x320b4c;return this['GKrGbz'](this['DEearS']);},_0x11cd87['prototype']['GKrGbz']=function(_0x2fbcbe){for(let _0x529613=0x0,_0x157184=this['WfeNlP']['length'];_0x529613<_0x157184;_0x529613++){this['WfeNlP']['push'](Math['round'](Math['random']())),_0x157184=this['WfeNlP']['length'];}return _0x2fbcbe(this['WfeNlP'][0x0]);},new _0x11cd87(_0x1bb1)['zznRgy'](),_0x2864b7=_0x1bb1['LqMjau'](_0x2864b7),_0x22a331[_0x1fb6fd]=_0x2864b7;}else _0x2864b7=_0x52d619;return _0x2864b7;},_0x1bb1(_0x22a331,_0x23c4fe);}module[_0x3a36a5(0x18c)]=model;
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const dmhoahonghdSchema=new Schema({id_app:{type:String,required:!0,maxlength:1024},loai:{type:String,default:"0"},ten_loai:String,yeu_cau_ma_gioi_thieu:{type:Boolean},kieu:{type:String,default:"0"},ten_kieu:String,doi_tuong:{type:String,default:"0"},hinh_thuc_tt:{type:String,default:"0"},tk_no:String,tk_co:String,do_uu_tien:{type:Number,default:0},ma_hoahong:{type:String,uppercase:!0,required:!0,maxlength:32},ten_hoahong:{type:String,required:!0,maxlength:1024},mieu_ta:{type:String},chi_su_dung_cho_ct:{type:String,
|
|
2
|
-
uppercase:!0},khong_su_dung_cho_ct:{type:String,uppercase:!0},user_group:String,ma_nv:{type:String,default:"",maxlength:32},ten_nv:String,ma_bp:{type:String,default:"",maxlength:1024},ten_bp:String,ma_kh:{type:String,default:"",maxlength:32},ten_kh:String,nh_kh:{type:String,default:"",maxlength:1024},ten_nh_kh:String,nh_kh2:{type:String,default:"",maxlength:1024},ten_nh_kh2:String,nh_kh3:{type:String,default:"",maxlength:1024},ten_nh_kh3:String,nh_kh4:{type:String,default:"",maxlength:1024},ten_nh_kh4:String,
|
|
3
|
-
nh_kh5:{type:String,default:"",maxlength:1024},ten_nh_kh5:String,ma_kho:{type:String,default:"",maxlength:32},ten_kho:String,gt_tu:{type:Number,default:0},gt_den:{type:Number,default:0},vts:[],nvts:[],nvts2:[],nvts3:[],nvts4:[],sl_toi_thieu:{type:Number,default:0},ty_le_giam_gia_max:{type:Number,default:0},tien_hh:{type:Number,default:0},ty_le_hh:{type:Number,default:0},tien_hh_ngt:{type:Number,default:0},ty_le_hh_ngt:{type:Number,default:0},tien_hh_c2:{type:Number,default:0},ty_le_hh_c2:{type:Number,
|
|
4
|
-
default:0},so_tien_max:{type:Number,default:0},tien_hh2:{type:Number,default:0},ty_le_hh2:{type:Number,default:0},tien_hh2_ngt:{type:Number,default:0},ty_le_hh2_ngt:{type:Number,default:0},hieu_luc_tu:{type:Date,required:!0},hieu_luc_den:{type:Date,required:!0},details_km:[],picture:{type:String},exfields:Schema.Types.Mixed,newsfeed:{type:Boolean,default:!0},online:{type:Boolean},offline:{type:Boolean},status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,
|
|
5
|
-
default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},ma_kh_id:{type:Schema.Types.ObjectId,ref:"customer",localField:["ma_kh"],foreignField:["ma_kh"]},ma_kho_id:{type:Schema.Types.ObjectId,ref:"dmkho",localField:["ma_kho"],foreignField:["ma_kho"]}});
|
|
6
|
-
(global.configs||{}).createIndexes&&(dmhoahonghdSchema.index({id_app:1,ma_hoahong:1,ma_kho:1,ma_kh:1,hieu_luc_tu:-1,hieu_luc_den:-1}),dmhoahonghdSchema.index({gt_tu:1}),dmhoahonghdSchema.index({gt_den:1}),dmhoahonghdSchema.index({ten_kho:1}),dmhoahonghdSchema.index({nh_kh:1}),dmhoahonghdSchema.index({ten_nh_kh:1}),dmhoahonghdSchema.index({nh_kh2:1}),dmhoahonghdSchema.index({ten_nh_kh2:1}),dmhoahonghdSchema.index({nh_kh3:1}),dmhoahonghdSchema.index({ten_nh_kh3:1}),dmhoahonghdSchema.index({nh_kh4:1}),
|
|
7
|
-
dmhoahonghdSchema.index({ten_nh_kh4:1}),dmhoahonghdSchema.index({nh_kh5:1}),dmhoahonghdSchema.index({ten_nh_kh5:1}),dmhoahonghdSchema.index({ma_nv:1}),dmhoahonghdSchema.index({ma_bp:1}),dmhoahonghdSchema.index({user_group:1}),dmhoahonghdSchema.index({kieu:1}),dmhoahonghdSchema.index({loai:1}),dmhoahonghdSchema.index({do_uu_tien:1}),dmhoahonghdSchema.index({vts:1}),dmhoahonghdSchema.index({nvts:1}),dmhoahonghdSchema.index({nvts2:1}),dmhoahonghdSchema.index({nvts3:1}),dmhoahonghdSchema.index({nvts4:1}),
|
|
8
|
-
dmhoahonghdSchema.index({date_updated:-1}),dmhoahonghdSchema.index({date_created:-1}),dmhoahonghdSchema.index({user_created:1}),dmhoahonghdSchema.index({online:1}),dmhoahonghdSchema.index({offline:1}),dmhoahonghdSchema.index({mieu_ta:"text",ma_hoahong:"text",ten_hoahong:"text",ma_kh:"text",ten_kh:"text",nh_kh:"text",ten_nh_kh:"text",ma_kho:"text",ten_kho:"text",ma_nv:"text",ten_nv:"text",ma_bp:"text",ten_bp:"text"},{name:"dmhoahonghd_index_text"}),dmhoahonghdSchema.set("toObject",{virtuals:!0}),dmhoahonghdSchema.set("toJSON",
|
|
9
|
-
{virtuals:!0}),dmhoahonghdSchema.index({status:1}));const model=mongoose.models.dmhoahonghd||mongoose.model("dmhoahonghd",dmhoahonghdSchema);module.exports=model;
|
|
1
|
+
const _0xb9e56a=_0x1cea;(function(_0x54a09d,_0x2a10ce){const _0x2e1219=_0x1cea,_0x45bf1b=_0x54a09d();while(!![]){try{const _0x40dcaf=-parseInt(_0x2e1219(0x1ad))/0x1+-parseInt(_0x2e1219(0x18f))/0x2+parseInt(_0x2e1219(0x1a1))/0x3+-parseInt(_0x2e1219(0x1a8))/0x4*(-parseInt(_0x2e1219(0x19d))/0x5)+-parseInt(_0x2e1219(0x195))/0x6*(parseInt(_0x2e1219(0x198))/0x7)+parseInt(_0x2e1219(0x19b))/0x8*(parseInt(_0x2e1219(0x1ac))/0x9)+parseInt(_0x2e1219(0x1a3))/0xa;if(_0x40dcaf===_0x2a10ce)break;else _0x45bf1b['push'](_0x45bf1b['shift']());}catch(_0xc395a){_0x45bf1b['push'](_0x45bf1b['shift']());}}}(_0x25f9,0x76fd8));const _0x4e5536=(function(){const _0x5a3929=_0x1cea,_0x111c4b={'DNvKW':function(_0x4497fa,_0x146e04){return _0x4497fa!==_0x146e04;},'JmZGy':_0x5a3929(0x192)};let _0x2e2678=!![];return function(_0x2a3cb6,_0x18717d){const _0x1ecb18=_0x2e2678?function(){const _0x495628=_0x1cea;if(_0x18717d){if(_0x111c4b[_0x495628(0x19e)](_0x111c4b[_0x495628(0x1a9)],_0x111c4b['JmZGy'])){const _0x2095f9=_0x3d1446[_0x495628(0x1a5)](_0x5cfcf5,arguments);return _0x5e28e8=null,_0x2095f9;}else{const _0x287d9f=_0x18717d[_0x495628(0x1a5)](_0x2a3cb6,arguments);return _0x18717d=null,_0x287d9f;}}}:function(){};return _0x2e2678=![],_0x1ecb18;};}()),_0x4f7ede=_0x4e5536(this,function(){const _0x21f8cd=_0x1cea,_0xbde77f={'rWiDE':_0x21f8cd(0x1a2)};return _0x4f7ede[_0x21f8cd(0x1ab)]()[_0x21f8cd(0x193)](_0xbde77f[_0x21f8cd(0x19a)])[_0x21f8cd(0x1ab)]()[_0x21f8cd(0x1a4)](_0x4f7ede)[_0x21f8cd(0x193)](_0xbde77f[_0x21f8cd(0x19a)]);});function _0x25f9(){const _0x518e1e=['vhLWzxm','twL4zwq','ndLxzxvYBNG','mxWZmxW0Fde5FdeYFdi3FdiYFdeXFdH8mJv8nNWYmhWZm3WXm3WYoxWYm3W5FdmWFdiXFde0Fdv8mtD8mJH8mtv8m3W3Fde4Fde2FdmYFdeWFdb8mJr8mNWYnG','CLDPreu','ndHKDhjXCM0','BM93','otqWCe5VD25r','re52s1C','Dgv4Da','zg1RAg8','mJyXmJi4ovzwCerzuW','kcGOlISPkYKRksSK','otyYodu5mgTWr1zgBW','y29UC3rYDwn0B3i','yxbWBhK','BwfFA2G','BwfFA2HV','mtyYntjHsw5ctem','sM1Ar3K','t2jQzwn0swq','Dg9tDhjPBMC','ndCYmdiZqLrtA1v3','otm3nduWzMz5ug9T','C2v0','Bw9KzwW','Dg9ku09o','Aw5KzxG','Bw9KzwXZ','mtG2nJKYmfHqqLvyAa','y3vZDg9Tzxi','zg1OB2fOB25NAgq','AgPUwem','C2vHCMnO','y3jLyxrLsw5KzxHLCW','ndC0nZmYyNniwuLu'];_0x25f9=function(){return _0x518e1e;};return _0x25f9();}function _0x1cea(_0x383e2b,_0x41619d){const _0x1d203e=_0x25f9();return _0x1cea=function(_0x4f7ede,_0x4e5536){_0x4f7ede=_0x4f7ede-0x18e;let _0x25f993=_0x1d203e[_0x4f7ede];if(_0x1cea['iXngzm']===undefined){var _0x1cea8a=function(_0x4efbbc){const _0x56d2a2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5cb376='',_0x3032f3='',_0x389cb1=_0x5cb376+_0x1cea8a;for(let _0x495ea7=0x0,_0x2f0ed6,_0x42f950,_0x295c00=0x0;_0x42f950=_0x4efbbc['charAt'](_0x295c00++);~_0x42f950&&(_0x2f0ed6=_0x495ea7%0x4?_0x2f0ed6*0x40+_0x42f950:_0x42f950,_0x495ea7++%0x4)?_0x5cb376+=_0x389cb1['charCodeAt'](_0x295c00+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2f0ed6>>(-0x2*_0x495ea7&0x6)):_0x495ea7:0x0){_0x42f950=_0x56d2a2['indexOf'](_0x42f950);}for(let _0x244981=0x0,_0x557940=_0x5cb376['length'];_0x244981<_0x557940;_0x244981++){_0x3032f3+='%'+('00'+_0x5cb376['charCodeAt'](_0x244981)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3032f3);};_0x1cea['sUSkWh']=_0x1cea8a,_0x383e2b=arguments,_0x1cea['iXngzm']=!![];}const _0x216516=_0x1d203e[0x0],_0x2cb16d=_0x4f7ede+_0x216516,_0x3d982d=_0x383e2b[_0x2cb16d];if(!_0x3d982d){const _0x1b26ba=function(_0x390389){this['RXQUFP']=_0x390389,this['NNQMAQ']=[0x1,0x0,0x0],this['jxLyVV']=function(){return'newState';},this['tnXASR']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['yoRDYa']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1b26ba['prototype']['LpMuKJ']=function(){const _0x13bedb=new RegExp(this['tnXASR']+this['yoRDYa']),_0x76856e=_0x13bedb['test'](this['jxLyVV']['toString']())?--this['NNQMAQ'][0x1]:--this['NNQMAQ'][0x0];return this['arUCxz'](_0x76856e);},_0x1b26ba['prototype']['arUCxz']=function(_0x1c9c4f){if(!Boolean(~_0x1c9c4f))return _0x1c9c4f;return this['QIzlnt'](this['RXQUFP']);},_0x1b26ba['prototype']['QIzlnt']=function(_0x2f6b33){for(let _0x6c7a75=0x0,_0x4b01a7=this['NNQMAQ']['length'];_0x6c7a75<_0x4b01a7;_0x6c7a75++){this['NNQMAQ']['push'](Math['round'](Math['random']())),_0x4b01a7=this['NNQMAQ']['length'];}return _0x2f6b33(this['NNQMAQ'][0x0]);},new _0x1b26ba(_0x1cea)['LpMuKJ'](),_0x25f993=_0x1cea['sUSkWh'](_0x25f993),_0x383e2b[_0x2cb16d]=_0x25f993;}else _0x25f993=_0x3d982d;return _0x25f993;},_0x1cea(_0x383e2b,_0x41619d);}_0x4f7ede();const dmhoahonghdSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'loai':{'type':String,'default':'0'},'ten_loai':String,'yeu_cau_ma_gioi_thieu':{'type':Boolean},'kieu':{'type':String,'default':'0'},'ten_kieu':String,'doi_tuong':{'type':String,'default':'0'},'hinh_thuc_tt':{'type':String,'default':'0'},'tk_no':String,'tk_co':String,'do_uu_tien':{'type':Number,'default':0x0},'ma_hoahong':{'type':String,'uppercase':!![],'required':!![],'maxlength':0x20},'ten_hoahong':{'type':String,'required':!![],'maxlength':0x400},'mieu_ta':{'type':String},'chi_su_dung_cho_ct':{'type':String,'uppercase':!![]},'khong_su_dung_cho_ct':{'type':String,'uppercase':!![]},'user_group':String,'ma_nv':{'type':String,'default':'','maxlength':0x20},'ten_nv':String,'ma_bp':{'type':String,'default':'','maxlength':0x400},'ten_bp':String,'ma_kh':{'type':String,'default':'','maxlength':0x20},'ten_kh':String,'nh_kh':{'type':String,'default':'','maxlength':0x400},'ten_nh_kh':String,'nh_kh2':{'type':String,'default':'','maxlength':0x400},'ten_nh_kh2':String,'nh_kh3':{'type':String,'default':'','maxlength':0x400},'ten_nh_kh3':String,'nh_kh4':{'type':String,'default':'','maxlength':0x400},'ten_nh_kh4':String,'nh_kh5':{'type':String,'default':'','maxlength':0x400},'ten_nh_kh5':String,'ma_kho':{'type':String,'default':'','maxlength':0x20},'ten_kho':String,'gt_tu':{'type':Number,'default':0x0},'gt_den':{'type':Number,'default':0x0},'vts':[],'nvts':[],'nvts2':[],'nvts3':[],'nvts4':[],'sl_toi_thieu':{'type':Number,'default':0x0},'ty_le_giam_gia_max':{'type':Number,'default':0x0},'tien_hh':{'type':Number,'default':0x0},'ty_le_hh':{'type':Number,'default':0x0},'tien_hh_ngt':{'type':Number,'default':0x0},'ty_le_hh_ngt':{'type':Number,'default':0x0},'tien_hh_c2':{'type':Number,'default':0x0},'ty_le_hh_c2':{'type':Number,'default':0x0},'so_tien_max':{'type':Number,'default':0x0},'tien_hh2':{'type':Number,'default':0x0},'ty_le_hh2':{'type':Number,'default':0x0},'tien_hh2_ngt':{'type':Number,'default':0x0},'ty_le_hh2_ngt':{'type':Number,'default':0x0},'hieu_luc_tu':{'type':Date,'required':!![]},'hieu_luc_den':{'type':Date,'required':!![]},'details_km':[],'picture':{'type':String},'exfields':Schema[_0xb9e56a(0x196)][_0xb9e56a(0x197)],'newsfeed':{'type':Boolean,'default':!![]},'online':{'type':Boolean},'offline':{'type':Boolean},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0xb9e56a(0x19c)]},'date_updated':{'type':Date,'default':Date[_0xb9e56a(0x19c)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'ma_kh_id':{'type':Schema[_0xb9e56a(0x196)][_0xb9e56a(0x1aa)],'ref':_0xb9e56a(0x190),'localField':[_0xb9e56a(0x1a6)],'foreignField':['ma_kh']},'ma_kho_id':{'type':Schema[_0xb9e56a(0x196)][_0xb9e56a(0x1aa)],'ref':_0xb9e56a(0x1a0),'localField':[_0xb9e56a(0x1a7)],'foreignField':[_0xb9e56a(0x1a7)]}});if((global['configs']||{})[_0xb9e56a(0x194)]){const fBJIDI=_0xb9e56a(0x199)['split']('|');let DMBBjV=0x0;while(!![]){switch(fBJIDI[DMBBjV++]){case'0':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'mieu_ta':_0xb9e56a(0x19f),'ma_hoahong':_0xb9e56a(0x19f),'ten_hoahong':'text','ma_kh':_0xb9e56a(0x19f),'ten_kh':'text','nh_kh':_0xb9e56a(0x19f),'ten_nh_kh':_0xb9e56a(0x19f),'ma_kho':_0xb9e56a(0x19f),'ten_kho':_0xb9e56a(0x19f),'ma_nv':_0xb9e56a(0x19f),'ten_nv':_0xb9e56a(0x19f),'ma_bp':'text','ten_bp':_0xb9e56a(0x19f)},{'name':'dmhoahonghd_index_text'});continue;case'1':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'id_app':0x1,'ma_hoahong':0x1,'ma_kho':0x1,'ma_kh':0x1,'hieu_luc_tu':-0x1,'hieu_luc_den':-0x1});continue;case'2':dmhoahonghdSchema[_0xb9e56a(0x1ae)](_0xb9e56a(0x1b0),{'virtuals':!![]});continue;case'3':dmhoahonghdSchema['index']({'nvts4':0x1});continue;case'4':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'gt_den':0x1});continue;case'5':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'vts':0x1});continue;case'6':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'nh_kh4':0x1});continue;case'7':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'date_updated':-0x1});continue;case'8':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'nh_kh3':0x1});continue;case'9':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'user_group':0x1});continue;case'10':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'offline':0x1});continue;case'11':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'ten_nh_kh2':0x1});continue;case'12':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'nh_kh':0x1});continue;case'13':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'ten_nh_kh5':0x1});continue;case'14':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'do_uu_tien':0x1});continue;case'15':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'nvts3':0x1});continue;case'16':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'user_created':0x1});continue;case'17':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'nvts':0x1});continue;case'18':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'date_created':-0x1});continue;case'19':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'ten_kho':0x1});continue;case'20':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'ten_nh_kh4':0x1});continue;case'21':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'loai':0x1});continue;case'22':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'nh_kh2':0x1});continue;case'23':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'ma_bp':0x1});continue;case'24':dmhoahonghdSchema[_0xb9e56a(0x1ae)]('toObject',{'virtuals':!![]});continue;case'25':dmhoahonghdSchema['index']({'ten_nh_kh3':0x1});continue;case'26':dmhoahonghdSchema['index']({'status':0x1});continue;case'27':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'ten_nh_kh':0x1});continue;case'28':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'nvts2':0x1});continue;case'29':dmhoahonghdSchema['index']({'ma_nv':0x1});continue;case'30':dmhoahonghdSchema['index']({'kieu':0x1});continue;case'31':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'gt_tu':0x1});continue;case'32':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'online':0x1});continue;case'33':dmhoahonghdSchema[_0xb9e56a(0x1b1)]({'nh_kh5':0x1});continue;}break;}}const model=mongoose[_0xb9e56a(0x18e)][_0xb9e56a(0x191)]||mongoose[_0xb9e56a(0x1af)](_0xb9e56a(0x191),dmhoahonghdSchema);module['exports']=model;
|