flexbiz-server 12.4.21 → 12.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/server/app.js +1 -22
- package/server/auths/bearer.js +1 -3
- package/server/auths/facebook.js +1 -12
- package/server/auths/google.js +1 -13
- package/server/auths/local.js +1 -64
- package/server/cluster.js +1 -27
- package/server/controllers/controller.js +1 -107
- package/server/controllers/controllerRPT.js +1 -27
- package/server/controllers/controllerUtils.js +1 -76
- package/server/controllers/createHandler.js +1 -35
- package/server/controllers/createRouteHandler.js +1 -4
- package/server/controllers/deleteHandler.js +1 -11
- package/server/controllers/deleteManyHandler.js +1 -2
- package/server/controllers/exportHandler.js +1 -17
- package/server/controllers/findHandler.js +1 -53
- package/server/controllers/handlers.js +1 -3
- package/server/controllers/historyHandler.js +1 -5
- package/server/controllers/importFromExcelHandler.js +1 -14
- package/server/controllers/importFromGsHandler.js +1 -10
- package/server/controllers/importFromJsonHandler.js +1 -7
- package/server/controllers/importHandler.js +1 -21
- package/server/controllers/logHandler.js +1 -5
- package/server/controllers/rptCreateRouteHandler.js +1 -4
- package/server/controllers/rptExcelHandler.js +1 -32
- package/server/controllers/rptHandler.js +1 -13
- package/server/controllers/updateBookHandler.js +1 -10
- package/server/controllers/updateFieldHandler.js +1 -12
- package/server/controllers/updateHandler.js +1 -39
- package/server/controllers/updateKeyHandler.js +1 -14
- package/server/controllers/viewHandler.js +1 -13
- package/server/flow/FlowEngine.js +1 -64
- package/server/flow/WebhookManager.js +1 -26
- package/server/flow/handlers.js +1 -3
- package/server/flow/nodes/aiAnalysis.js +1 -9
- package/server/flow/nodes/customer.js +1 -15
- package/server/flow/nodes/data.js +1 -14
- package/server/flow/nodes/debug.js +1 -2
- package/server/flow/nodes/delay.js +1 -3
- package/server/flow/nodes/email.js +1 -9
- package/server/flow/nodes/event.js +1 -11
- package/server/flow/nodes/facebook.js +1 -3
- package/server/flow/nodes/facebookConversations.js +1 -5
- package/server/flow/nodes/facebookCreatePost.js +1 -10
- package/server/flow/nodes/facebookSendMessage.js +1 -12
- package/server/flow/nodes/forEachItem.js +1 -8
- package/server/flow/nodes/function.js +1 -4
- package/server/flow/nodes/httprequest.js +1 -7
- package/server/flow/nodes/inject.js +1 -12
- package/server/flow/nodes/pushNotification.js +1 -5
- package/server/flow/nodes/report.js +1 -6
- package/server/flow/nodes/saveData.js +1 -2
- package/server/flow/nodes/switch.js +1 -20
- package/server/flow/nodes/webhook.js +1 -1
- package/server/flow/nodes/zaloSendMessage.js +1 -4
- package/server/flow/utils.js +1 -2
- package/server/global.js +1 -23
- package/server/libs/BlockchainTransactionPool.js +1 -3
- package/server/libs/WorkerPool.js +1 -4
- package/server/libs/WorkerStaticPool.js +1 -16
- package/server/libs/WorkerStaticPool_v1.js +1 -5
- package/server/libs/assbonus.js +1 -7
- package/server/libs/backup.js +1 -2
- package/server/libs/blockchainconnect.js +1 -12
- package/server/libs/cdpsdiem.js +1 -5
- package/server/libs/cdpsdt.js +1 -7
- package/server/libs/cdpskh.js +1 -9
- package/server/libs/cdpsnphep.js +1 -6
- package/server/libs/cdpstk.js +1 -11
- package/server/libs/ckcn.js +1 -12
- package/server/libs/ckdiem.js +1 -5
- package/server/libs/ckdt.js +1 -6
- package/server/libs/cknphep.js +1 -6
- package/server/libs/cktk.js +1 -4
- package/server/libs/cktt.js +1 -9
- package/server/libs/ckvt.js +1 -12
- package/server/libs/ckvtcapphat.js +1 -6
- package/server/libs/ckvtnpp.js +1 -8
- package/server/libs/ckvttt.js +1 -11
- package/server/libs/createSocaitheongay.js +1 -9
- package/server/libs/ctdiem.js +1 -5
- package/server/libs/ctvt.js +1 -7
- package/server/libs/ctvtnpp.js +1 -7
- package/server/libs/ctvttt.js +1 -7
- package/server/libs/databanle.js +1 -17
- package/server/libs/databanlenpp.js +1 -8
- package/server/libs/databanletheongay.js +1 -27
- package/server/libs/dkcn.js +1 -10
- package/server/libs/dkdiem.js +1 -5
- package/server/libs/dkdt.js +1 -6
- package/server/libs/dknphep.js +1 -7
- package/server/libs/dktk.js +1 -4
- package/server/libs/dktt.js +1 -8
- package/server/libs/dkvt.js +1 -9
- package/server/libs/dkvtnpp.js +1 -7
- package/server/libs/dkvttt.js +1 -7
- package/server/libs/dncn.js +1 -6
- package/server/libs/dntk.js +1 -4
- package/server/libs/dntt.js +1 -6
- package/server/libs/docs.js +1 -452
- package/server/libs/dstkcn.js +1 -1
- package/server/libs/dstktt.js +1 -1
- package/server/libs/dtbanletheonpp.js +1 -17
- package/server/libs/dtbanletheosp.js +1 -15
- package/server/libs/dtbanletheospnpp.js +1 -15
- package/server/libs/email.js +1 -3
- package/server/libs/excel.js +1 -2
- package/server/libs/getGiaban.js +1 -67
- package/server/libs/getGiabanAsync.js +1 -1
- package/server/libs/getNotifies.js +1 -1
- package/server/libs/htmlReport.js +1 -9
- package/server/libs/initDatabase.js +1 -9
- package/server/libs/invoiceEasy.js +1 -109
- package/server/libs/invoiceViettel.js +1 -29
- package/server/libs/invoiceVnpt.js +1 -22
- package/server/libs/kpistatus.js +1 -32
- package/server/libs/load-template.js +1 -3
- package/server/libs/mailmanagement.js +1 -13
- package/server/libs/mongooseDeletePost.js +1 -6
- package/server/libs/mongooseLeanId.js +1 -1
- package/server/libs/mongoosePatch.js +1 -8
- package/server/libs/onepay-payment.js +1 -4
- package/server/libs/optimizeBookkeeping.js +1 -14
- package/server/libs/parse-template.js +1 -5
- package/server/libs/permission.js +1 -51
- package/server/libs/phanbokh.js +1 -3
- package/server/libs/post-book.js +1 -23
- package/server/libs/post-socai.js +1 -25
- package/server/libs/post-sokho.js +1 -27
- package/server/libs/prototypes.js +1 -29
- package/server/libs/psdt.js +1 -1
- package/server/libs/pskh.js +1 -1
- package/server/libs/pstk.js +1 -1
- package/server/libs/redis-cache.js +1 -17
- package/server/libs/restore.js +1 -1
- package/server/libs/schedule.js +1 -18
- package/server/libs/sessionContext.js +2 -14
- package/server/libs/textReport.js +1 -3
- package/server/libs/thnxt.js +1 -9
- package/server/libs/thnxtnpp.js +1 -9
- package/server/libs/thnxttt.js +1 -8
- package/server/libs/tinhGt.js +1 -7
- package/server/libs/tinhGtCapnhatPNK.js +1 -7
- package/server/libs/tinhGtPhanboHeSo.js +1 -12
- package/server/libs/tinhGtPhanboSltp.js +1 -10
- package/server/libs/tinhGtPhanboYtcp.js +1 -11
- package/server/libs/tinhGtSltk.js +1 -9
- package/server/libs/tinhGtThcppstk.js +1 -10
- package/server/libs/tinhGtTrucTiep.js +1 -7
- package/server/libs/tinhGtXoa.js +1 -3
- package/server/libs/tinhgiatb.js +1 -38
- package/server/libs/tinhgiatb1vt.js +1 -5
- package/server/libs/tinhhoahong.js +1 -64
- package/server/libs/tinhhoahongnpp.js +1 -46
- package/server/libs/tinhkhauhao1ts.js +1 -12
- package/server/libs/tinhkhauhaots.js +1 -8
- package/server/libs/tuoinophaithu.js +1 -10
- package/server/libs/tuoinophaitra.js +1 -11
- package/server/libs/utils.js +1 -78
- package/server/libs/validate.js +1 -4
- package/server/libs/validator-acc-cust.js +1 -1
- package/server/libs/validator-account.js +1 -4
- package/server/libs/validator-vt.js +1 -2
- package/server/libs/validator.js +1 -11
- package/server/libs/vsocai.js +1 -8
- package/server/models/account.js +1 -7
- package/server/models/afflink.js +1 -2
- package/server/models/app.js +1 -15
- package/server/models/approve.js +1 -93
- package/server/models/assabcihandler.js +1 -35
- package/server/models/assbank.js +1 -19
- package/server/models/assbooking.js +1 -4
- package/server/models/assbuy.js +1 -3
- package/server/models/asscashwithdraw.js +1 -4
- package/server/models/assfindhash.js +1 -2
- package/server/models/assinvestment.js +1 -13
- package/server/models/assissue.js +1 -2
- package/server/models/asskey.js +1 -15
- package/server/models/assneedtobuy.js +1 -6
- package/server/models/assperiod.js +1 -7
- package/server/models/assproduct.js +1 -13
- package/server/models/assprofitsharing.js +1 -4
- package/server/models/assreceiver.js +1 -2
- package/server/models/assrequest.js +1 -11
- package/server/models/asssell.js +1 -7
- package/server/models/asstransaction.js +1 -3
- package/server/models/asstransfer.js +1 -4
- package/server/models/assuser_identity.js +1 -4
- package/server/models/asswithdraw.js +1 -4
- package/server/models/attend.js +1 -2
- package/server/models/banggiaban.js +1 -8
- package/server/models/bangtinhluong.js +1 -6
- package/server/models/base.js +1 -1
- package/server/models/bds_area.js +1 -4
- package/server/models/bds_block.js +1 -3
- package/server/models/bds_building.js +1 -4
- package/server/models/bds_floor.js +1 -3
- package/server/models/bds_floordetail.js +1 -9
- package/server/models/bds_nhadat.js +1 -11
- package/server/models/bds_nhomnhadat.js +1 -4
- package/server/models/bds_phanloainhadat.js +1 -3
- package/server/models/bg1.js +1 -9
- package/server/models/bg2.js +1 -10
- package/server/models/cache.js +1 -3
- package/server/models/calllog.js +1 -4
- package/server/models/campaign.js +1 -6
- package/server/models/cart.js +1 -5
- package/server/models/cddiem.js +1 -2
- package/server/models/cddt.js +1 -3
- package/server/models/cdkh.js +1 -5
- package/server/models/cdkhtheongay.js +1 -5
- package/server/models/cdnphep.js +1 -2
- package/server/models/cdtk.js +1 -3
- package/server/models/cdtktheongay.js +1 -3
- package/server/models/cdvt.js +1 -5
- package/server/models/cdvtnpp.js +1 -6
- package/server/models/cdvttheongay.js +1 -5
- package/server/models/chamcong.js +1 -7
- package/server/models/checkin.js +1 -4
- package/server/models/checkinactivity.js +1 -3
- package/server/models/checkinkpi.js +1 -4
- package/server/models/checkinlocation.js +1 -2
- package/server/models/chitieukpi.js +1 -3
- package/server/models/chudethaoluan.js +1 -3
- package/server/models/ckgtluong.js +1 -2
- package/server/models/colleague.js +1 -2
- package/server/models/comment.js +1 -4
- package/server/models/congdoansx.js +1 -4
- package/server/models/congtacvien.js +1 -4
- package/server/models/congthuctinhgiaban.js +1 -8
- package/server/models/consultant.js +1 -4
- package/server/models/contract.js +1 -6
- package/server/models/counter.js +1 -2
- package/server/models/ctds.js +1 -5
- package/server/models/ctds2.js +1 -6
- package/server/models/currency.js +1 -3
- package/server/models/customer.js +1 -31
- package/server/models/databanle.js +1 -8
- package/server/models/datlich.js +1 -4
- package/server/models/department.js +1 -4
- package/server/models/dh2.js +1 -20
- package/server/models/diagram.js +1 -2
- package/server/models/dinhmucsx.js +1 -8
- package/server/models/dkhoc.js +1 -6
- package/server/models/dknphep.js +1 -2
- package/server/models/dmban.js +1 -4
- package/server/models/dmbp.js +1 -12
- package/server/models/dmca.js +1 -2
- package/server/models/dmchietkhau.js +1 -9
- package/server/models/dmchietkhauhd.js +1 -20
- package/server/models/dmcpmh.js +1 -2
- package/server/models/dmdiemthuong.js +1 -5
- package/server/models/dmdoi.js +1 -4
- package/server/models/dmdoituongdanhgia.js +1 -2
- package/server/models/dmdt.js +1 -8
- package/server/models/dmdvt.js +1 -3
- package/server/models/dmgiaban.js +1 -9
- package/server/models/dmgiamua.js +1 -5
- package/server/models/dmgiathitruong.js +1 -5
- package/server/models/dmgiathitruong_ngay.js +1 -2
- package/server/models/dmgiathitruong_theodoi.js +1 -2
- package/server/models/dmhoahonghd.js +1 -9
- package/server/models/dmhoahongnpp.js +1 -9
- package/server/models/dmkc.js +1 -3
- package/server/models/dmkho.js +1 -6
- package/server/models/dmkhuyenmai.js +1 -9
- package/server/models/dmkhuyenmaihd.js +1 -11
- package/server/models/dmletet.js +1 -2
- package/server/models/dmlo.js +1 -4
- package/server/models/dmloaicong.js +1 -4
- package/server/models/dmloaitask.js +1 -2
- package/server/models/dmloaits.js +1 -2
- package/server/models/dmnckkm.js +1 -4
- package/server/models/dmnghiepvu.js +1 -4
- package/server/models/dmnguonvon.js +1 -2
- package/server/models/dmnhnv.js +1 -4
- package/server/models/dmnv.js +1 -17
- package/server/models/dmnvt.js +1 -9
- package/server/models/dmphatdichvu.js +1 -5
- package/server/models/dmphi.js +1 -3
- package/server/models/dmqct.js +1 -3
- package/server/models/dmqddvt.js +1 -3
- package/server/models/dmtanggiamts.js +1 -3
- package/server/models/dmto.js +1 -4
- package/server/models/dmtt.js +1 -6
- package/server/models/dmvt.js +1 -17
- package/server/models/dmyt.js +1 -4
- package/server/models/dn0.js +1 -13
- package/server/models/dnm.js +1 -11
- package/server/models/dokho.js +1 -2
- package/server/models/domain.js +1 -2
- package/server/models/dvcs.js +1 -3
- package/server/models/ecomcategories.js +1 -3
- package/server/models/ecomcategories_cty.js +1 -3
- package/server/models/ecomproductlines.js +1 -2
- package/server/models/ecompromotion_flashsales.js +1 -2
- package/server/models/ecompromotion_freeships.js +1 -2
- package/server/models/email.js +1 -2
- package/server/models/endpoint.js +1 -1
- package/server/models/events.js +1 -3
- package/server/models/evoucher.js +1 -5
- package/server/models/experiencejourney.js +1 -2
- package/server/models/experiencejourneydata.js +1 -4
- package/server/models/experiencejourneypersona.js +1 -3
- package/server/models/experiencejourneystage.js +1 -2
- package/server/models/exportexceltemplate.js +1 -2
- package/server/models/fbconversation.js +1 -15
- package/server/models/fbmessage.js +1 -2
- package/server/models/fbpage.js +1 -2
- package/server/models/fbpost.js +1 -2
- package/server/models/fieldright.js +1 -2
- package/server/models/file.js +1 -4
- package/server/models/financialroadmap.js +1 -3
- package/server/models/flow.js +1 -2
- package/server/models/flowdata.js +1 -3
- package/server/models/folder.js +1 -4
- package/server/models/follow.js +1 -2
- package/server/models/form.js +1 -3
- package/server/models/forminfo.js +1 -5
- package/server/models/formvalue.js +1 -3
- package/server/models/giaoca.js +1 -4
- package/server/models/giatb.js +1 -3
- package/server/models/group.js +1 -11
- package/server/models/gt_ctgt.js +1 -4
- package/server/models/gt_hspb.js +1 -3
- package/server/models/gt_sltk.js +1 -3
- package/server/models/gt_thcppstk.js +1 -3
- package/server/models/hanmucton.js +1 -4
- package/server/models/hd1.js +1 -11
- package/server/models/hd2.js +1 -27
- package/server/models/hd3.js +1 -18
- package/server/models/hd4.js +1 -13
- package/server/models/hd7.js +1 -17
- package/server/models/hd8.js +1 -12
- package/server/models/hde.js +1 -11
- package/server/models/hlink.js +1 -2
- package/server/models/hlinkvalue.js +1 -2
- package/server/models/hmcn.js +1 -3
- package/server/models/hmcnct.js +1 -2
- package/server/models/hspbts.js +1 -4
- package/server/models/htl.js +1 -13
- package/server/models/importexceltemplate.js +1 -2
- package/server/models/introducebonus.js +1 -4
- package/server/models/introducecode.js +1 -3
- package/server/models/introducer.js +1 -4
- package/server/models/kbbtpb.js +1 -7
- package/server/models/kbmPttct.js +1 -4
- package/server/models/kbmTkgtgt.js +1 -5
- package/server/models/kbm_bcdkt.js +1 -4
- package/server/models/kbm_kqhdkd.js +1 -3
- package/server/models/kbm_lcttgt.js +1 -5
- package/server/models/kbm_lctttt.js +1 -4
- package/server/models/kbm_pttct.js +1 -4
- package/server/models/kbm_tkgtgt.js +1 -5
- package/server/models/kbmbcdkt.js +1 -4
- package/server/models/kbmbcqt.js +1 -4
- package/server/models/kbmkqhdkd.js +1 -3
- package/server/models/kbmlcttgt.js +1 -6
- package/server/models/kbmlctttt.js +1 -4
- package/server/models/kbmtmbctc.js +1 -4
- package/server/models/kehoachdtcp.js +1 -3
- package/server/models/kehoachmh.js +1 -8
- package/server/models/keyresult.js +1 -7
- package/server/models/khunghangthanhvien.js +1 -3
- package/server/models/label.js +1 -2
- package/server/models/labelinfo.js +1 -2
- package/server/models/lenhcapphat.js +1 -8
- package/server/models/lenhsx.js +1 -8
- package/server/models/lienhe.js +1 -4
- package/server/models/like_module.js +1 -2
- package/server/models/link.js +1 -2
- package/server/models/loaidiem.js +1 -2
- package/server/models/lock.js +1 -2
- package/server/models/log.js +1 -5
- package/server/models/mailaccount.js +1 -3
- package/server/models/mailgroup.js +1 -3
- package/server/models/mailreceived.js +1 -2
- package/server/models/mailschedule.js +1 -2
- package/server/models/mailsent.js +1 -2
- package/server/models/mailtemplate.js +1 -2
- package/server/models/maudanhgia.js +1 -2
- package/server/models/menuinfo.js +1 -2
- package/server/models/message.js +1 -8
- package/server/models/message2.js +1 -4
- package/server/models/message2setting.js +1 -3
- package/server/models/moduleinfo.js +1 -4
- package/server/models/momo.js +1 -17
- package/server/models/news.js +1 -3
- package/server/models/newsfeed.js +1 -4
- package/server/models/note.js +1 -2
- package/server/models/notification.js +1 -7
- package/server/models/okr.js +1 -4
- package/server/models/okrdiagram.js +1 -3
- package/server/models/onepay.js +1 -24
- package/server/models/opportunity.js +1 -4
- package/server/models/options.js +1 -2
- package/server/models/originimportid.js +1 -1
- package/server/models/otp.js +1 -1
- package/server/models/parameter.js +1 -2
- package/server/models/participant.js +1 -20
- package/server/models/partner.js +1 -1
- package/server/models/payload.js +1 -1
- package/server/models/pbl.js +1 -16
- package/server/models/pc0.js +1 -13
- package/server/models/pc1.js +1 -14
- package/server/models/pc2.js +1 -13
- package/server/models/pc3.js +1 -13
- package/server/models/pc5.js +1 -8
- package/server/models/pc6.js +1 -14
- package/server/models/pcl.js +1 -6
- package/server/models/pdn.js +1 -9
- package/server/models/pdx.js +1 -9
- package/server/models/pgh.js +1 -5
- package/server/models/phieudanhgia.js +1 -3
- package/server/models/pht.js +1 -8
- package/server/models/phucap.js +1 -4
- package/server/models/pkc.js +1 -6
- package/server/models/pkh.js +1 -6
- package/server/models/pkk.js +1 -10
- package/server/models/pkt.js +1 -12
- package/server/models/pn1.js +1 -17
- package/server/models/pn2.js +1 -11
- package/server/models/pn3.js +1 -13
- package/server/models/pn5.js +1 -14
- package/server/models/pn6.js +1 -14
- package/server/models/pn9.js +1 -17
- package/server/models/pnc.js +1 -10
- package/server/models/pnh.js +1 -12
- package/server/models/pnk.js +1 -10
- package/server/models/po1.js +1 -19
- package/server/models/ppb.js +1 -6
- package/server/models/profile.js +1 -4
- package/server/models/pt1.js +1 -12
- package/server/models/pt5.js +1 -8
- package/server/models/ptl.js +1 -6
- package/server/models/ptthanhtoan.js +1 -6
- package/server/models/purchase_contract.js +1 -17
- package/server/models/pxc.js +1 -9
- package/server/models/pxh.js +1 -12
- package/server/models/pxk.js +1 -10
- package/server/models/qts.js +1 -14
- package/server/models/qts_dieuchinh.js +1 -3
- package/server/models/qts_dieuchuyen.js +1 -4
- package/server/models/quanhuyen.js +1 -2
- package/server/models/reason.js +1 -2
- package/server/models/receivedinvoice.js +1 -2
- package/server/models/reportinfo.js +1 -5
- package/server/models/right.js +1 -4
- package/server/models/rpt.js +1 -2
- package/server/models/rptform.js +1 -5
- package/server/models/rptobject.js +1 -2
- package/server/models/sale_contract.js +1 -9
- package/server/models/schedule.js +1 -16
- package/server/models/schedule_log.js +1 -2
- package/server/models/service.js +1 -4
- package/server/models/shipbook.js +1 -12
- package/server/models/shortcut.js +1 -2
- package/server/models/smsaccount.js +1 -10
- package/server/models/smssend.js +1 -2
- package/server/models/so1.js +1 -22
- package/server/models/so2.js +1 -10
- package/server/models/so3.js +1 -9
- package/server/models/so5.js +1 -15
- package/server/models/so9.js +1 -19
- package/server/models/socai.js +1 -26
- package/server/models/socainpp.js +1 -18
- package/server/models/socaitc.js +1 -6
- package/server/models/socaitmp.js +1 -16
- package/server/models/socaitt.js +1 -4
- package/server/models/sodiemthuong.js +1 -4
- package/server/models/sokho.js +1 -28
- package/server/models/sokhocapphat.js +1 -18
- package/server/models/sokhokhongton.js +1 -19
- package/server/models/sokhonpp.js +1 -19
- package/server/models/sokhotc.js +1 -8
- package/server/models/sokhott.js +1 -18
- package/server/models/sophanbokh.js +1 -3
- package/server/models/sosanxuat.js +1 -5
- package/server/models/sotinhkh.js +1 -2
- package/server/models/spdd_ck.js +1 -3
- package/server/models/spdd_dk.js +1 -3
- package/server/models/step.js +1 -2
- package/server/models/strategicdiagram.js +1 -3
- package/server/models/strategicgoal.js +1 -4
- package/server/models/strategickpi.js +1 -6
- package/server/models/strategicobjective.js +1 -5
- package/server/models/strategicplan.js +1 -5
- package/server/models/subscribe.js +1 -2
- package/server/models/support.js +1 -2
- package/server/models/synctime.js +1 -2
- package/server/models/sysconfig.js +1 -2
- package/server/models/sysgroup.js +1 -2
- package/server/models/tableinfo.js +1 -3
- package/server/models/task.js +1 -9
- package/server/models/taskreg.js +1 -4
- package/server/models/tc.js +1 -2
- package/server/models/tdttco.js +1 -8
- package/server/models/tdttco_tt.js +1 -5
- package/server/models/tdttno.js +1 -8
- package/server/models/tdttno_tt.js +1 -5
- package/server/models/templaterpt.js +1 -2
- package/server/models/templatestore.js +1 -3
- package/server/models/templatevoucher.js +1 -3
- package/server/models/tinhthanh.js +1 -2
- package/server/models/tokens.js +1 -2
- package/server/models/tontucthoi.js +1 -9
- package/server/models/trangthai.js +1 -4
- package/server/models/trangthaiapp.js +1 -4
- package/server/models/transaction.js +1 -16
- package/server/models/trialinfo.js +1 -2
- package/server/models/user.js +1 -38
- package/server/models/usergroup.js +1 -7
- package/server/models/vanchuyen.js +1 -12
- package/server/models/vat.js +1 -3
- package/server/models/vatra.js +1 -6
- package/server/models/vatvao.js +1 -6
- package/server/models/versioninfo.js +1 -2
- package/server/models/vietqrbanks.js +1 -2
- package/server/models/vsocai.js +1 -6
- package/server/models/waitevent.js +1 -2
- package/server/models/wallet.js +1 -8
- package/server/models/warranty.js +1 -3
- package/server/models/warrantyclaim.js +1 -2
- package/server/models/warrantypolicy.js +1 -1
- package/server/models/xaphuong.js +1 -2
- package/server/models/xhd.js +1 -10
- package/server/models/ytdd_ck.js +1 -4
- package/server/models/ytdd_dk.js +1 -4
- package/server/models/zalo.js +1 -17
- package/server/modules/lists/bg-cddiem.js +1 -6
- package/server/modules/lists/bg-cddt.js +1 -7
- package/server/modules/lists/bg-cdkh.js +1 -11
- package/server/modules/lists/bg-cdnphep.js +1 -6
- package/server/modules/lists/bg-cdtk.js +1 -9
- package/server/modules/lists/bg-cdvt.js +1 -8
- package/server/modules/lists/bg-cdvtnpp.js +1 -8
- package/server/modules/lists/ls-account.js +1 -4
- package/server/modules/lists/ls-afflink.js +1 -3
- package/server/modules/lists/ls-approve.js +1 -4
- package/server/modules/lists/ls-assabcihandler.js +1 -3
- package/server/modules/lists/ls-assbank.js +1 -3
- package/server/modules/lists/ls-assbooking.js +1 -20
- package/server/modules/lists/ls-assbuy.js +1 -8
- package/server/modules/lists/ls-asscashwithdraw.js +1 -8
- package/server/modules/lists/ls-assinvestment.js +1 -31
- package/server/modules/lists/ls-assissue.js +1 -3
- package/server/modules/lists/ls-asskey.js +1 -41
- package/server/modules/lists/ls-assneedtobuy.js +1 -10
- package/server/modules/lists/ls-assperiod.js +1 -19
- package/server/modules/lists/ls-assproduct.js +1 -9
- package/server/modules/lists/ls-assprofitsharing.js +1 -8
- package/server/modules/lists/ls-assreceiver.js +1 -3
- package/server/modules/lists/ls-assrequest.js +1 -4
- package/server/modules/lists/ls-asssell.js +1 -13
- package/server/modules/lists/ls-asstransaction.js +1 -3
- package/server/modules/lists/ls-asstransfer.js +1 -3
- package/server/modules/lists/ls-assuser_identity.js +1 -1
- package/server/modules/lists/ls-asswithdraw.js +1 -12
- package/server/modules/lists/ls-bangtinhluong.js +1 -2
- package/server/modules/lists/ls-bds_area.js +1 -3
- package/server/modules/lists/ls-bds_block.js +1 -1
- package/server/modules/lists/ls-bds_building.js +1 -3
- package/server/modules/lists/ls-bds_dmnhbds.js +1 -6
- package/server/modules/lists/ls-bds_floor.js +1 -2
- package/server/modules/lists/ls-bds_floordetail.js +1 -19
- package/server/modules/lists/ls-bds_nhadat.js +1 -16
- package/server/modules/lists/ls-bds_nhomnhadat.js +1 -1
- package/server/modules/lists/ls-bds_phanloainhadat.js +1 -1
- package/server/modules/lists/ls-calllog.js +1 -4
- package/server/modules/lists/ls-campaign.js +1 -1
- package/server/modules/lists/ls-cart.js +1 -14
- package/server/modules/lists/ls-chamcong.js +1 -3
- package/server/modules/lists/ls-checkin.js +1 -12
- package/server/modules/lists/ls-checkinactivity.js +1 -8
- package/server/modules/lists/ls-checkinkpi.js +1 -3
- package/server/modules/lists/ls-checkinlocation.js +1 -1
- package/server/modules/lists/ls-chitieukpi.js +1 -1
- package/server/modules/lists/ls-chudethaoluan.js +1 -1
- package/server/modules/lists/ls-ckgtluong.js +1 -1
- package/server/modules/lists/ls-comment.js +1 -9
- package/server/modules/lists/ls-congdoansx.js +1 -3
- package/server/modules/lists/ls-congtacvien.js +1 -5
- package/server/modules/lists/ls-consultant.js +1 -2
- package/server/modules/lists/ls-contract.js +1 -7
- package/server/modules/lists/ls-ctds.js +1 -4
- package/server/modules/lists/ls-ctds2.js +1 -4
- package/server/modules/lists/ls-currency.js +1 -1
- package/server/modules/lists/ls-customer.js +1 -21
- package/server/modules/lists/ls-datlich.js +1 -9
- package/server/modules/lists/ls-dckhauhaots.js +1 -3
- package/server/modules/lists/ls-department.js +1 -3
- package/server/modules/lists/ls-diagram.js +1 -1
- package/server/modules/lists/ls-dkhoc.js +1 -6
- package/server/modules/lists/ls-dknphep.js +1 -1
- package/server/modules/lists/ls-dmban.js +1 -4
- package/server/modules/lists/ls-dmbp.js +1 -7
- package/server/modules/lists/ls-dmca.js +1 -1
- package/server/modules/lists/ls-dmchietkhau.js +1 -19
- package/server/modules/lists/ls-dmchietkhauhd.js +1 -4
- package/server/modules/lists/ls-dmchucvu.js +1 -2
- package/server/modules/lists/ls-dmcpmh.js +1 -1
- package/server/modules/lists/ls-dmdiemthuong.js +1 -4
- package/server/modules/lists/ls-dmdoi.js +1 -4
- package/server/modules/lists/ls-dmdoituongdanhgia.js +1 -1
- package/server/modules/lists/ls-dmdt.js +1 -11
- package/server/modules/lists/ls-dmdvt.js +1 -2
- package/server/modules/lists/ls-dmgiaban.js +1 -4
- package/server/modules/lists/ls-dmgiamua.js +1 -4
- package/server/modules/lists/ls-dmgiathitruong.js +1 -15
- package/server/modules/lists/ls-dmgiathitruong_ngay.js +1 -2
- package/server/modules/lists/ls-dmgiathitruong_theodoi.js +1 -1
- package/server/modules/lists/ls-dmhoahonghd.js +1 -1
- package/server/modules/lists/ls-dmhoahongnpp.js +1 -1
- package/server/modules/lists/ls-dmkc.js +1 -3
- package/server/modules/lists/ls-dmkho.js +1 -1
- package/server/modules/lists/ls-dmkhuyenmai.js +1 -5
- package/server/modules/lists/ls-dmkhuyenmaihd.js +1 -3
- package/server/modules/lists/ls-dmletet.js +1 -1
- package/server/modules/lists/ls-dmlo.js +1 -1
- package/server/modules/lists/ls-dmloaicong.js +1 -1
- package/server/modules/lists/ls-dmloaits.js +1 -1
- package/server/modules/lists/ls-dmnckkm.js +1 -7
- package/server/modules/lists/ls-dmnghiepvu.js +1 -1
- package/server/modules/lists/ls-dmnguonvon.js +1 -1
- package/server/modules/lists/ls-dmnhnv.js +1 -6
- package/server/modules/lists/ls-dmnhtask.js +1 -5
- package/server/modules/lists/ls-dmnkh.js +1 -6
- package/server/modules/lists/ls-dmntt.js +1 -6
- package/server/modules/lists/ls-dmnv.js +1 -17
- package/server/modules/lists/ls-dmnvt.js +1 -8
- package/server/modules/lists/ls-dmphatdichvu.js +1 -3
- package/server/modules/lists/ls-dmphi.js +1 -6
- package/server/modules/lists/ls-dmqct.js +1 -2
- package/server/modules/lists/ls-dmqddvt.js +1 -3
- package/server/modules/lists/ls-dmtanggiamts.js +1 -1
- package/server/modules/lists/ls-dmto.js +1 -5
- package/server/modules/lists/ls-dmtt.js +1 -7
- package/server/modules/lists/ls-dmvt.js +1 -68
- package/server/modules/lists/ls-dmyt.js +1 -1
- package/server/modules/lists/ls-dokho.js +1 -1
- package/server/modules/lists/ls-dvcs.js +1 -1
- package/server/modules/lists/ls-ecomcategories.js +1 -5
- package/server/modules/lists/ls-ecomcategories_cty.js +1 -5
- package/server/modules/lists/ls-email.js +1 -4
- package/server/modules/lists/ls-events.js +1 -3
- package/server/modules/lists/ls-evoucher.js +1 -3
- package/server/modules/lists/ls-experiencejourney.js +1 -1
- package/server/modules/lists/ls-experiencejourneydata.js +1 -3
- package/server/modules/lists/ls-experiencejourneypersona.js +1 -4
- package/server/modules/lists/ls-experiencejourneystage.js +1 -1
- package/server/modules/lists/ls-fbconversation.js +1 -2
- package/server/modules/lists/ls-fbmessage.js +1 -2
- package/server/modules/lists/ls-fbpage.js +1 -11
- package/server/modules/lists/ls-fbpost.js +1 -2
- package/server/modules/lists/ls-file.js +1 -31
- package/server/modules/lists/ls-financialroadmap.js +1 -3
- package/server/modules/lists/ls-flow.js +1 -6
- package/server/modules/lists/ls-flowdata.js +1 -1
- package/server/modules/lists/ls-folder.js +1 -1
- package/server/modules/lists/ls-form.js +1 -1
- package/server/modules/lists/ls-forminfo.js +1 -1
- package/server/modules/lists/ls-formvalue.js +1 -1
- package/server/modules/lists/ls-giaoca.js +1 -4
- package/server/modules/lists/ls-group.js +1 -5
- package/server/modules/lists/ls-hlink.js +1 -1
- package/server/modules/lists/ls-hlinkvalue.js +1 -1
- package/server/modules/lists/ls-hmcn.js +1 -2
- package/server/modules/lists/ls-hspbts.js +1 -3
- package/server/modules/lists/ls-introducebonus.js +1 -4
- package/server/modules/lists/ls-introducecode.js +1 -10
- package/server/modules/lists/ls-introducer.js +1 -20
- package/server/modules/lists/ls-kbm-bcdkt.js +1 -1
- package/server/modules/lists/ls-kbm-bcqt.js +1 -5
- package/server/modules/lists/ls-kbm-kqhdkd.js +1 -1
- package/server/modules/lists/ls-kbm-lcttgt.js +1 -1
- package/server/modules/lists/ls-kbm-lctttt.js +1 -1
- package/server/modules/lists/ls-kbm-pttct.js +1 -3
- package/server/modules/lists/ls-kbm-tkgtgt.js +1 -3
- package/server/modules/lists/ls-kbm-tmbctc.js +1 -3
- package/server/modules/lists/ls-kehoachdtcp.js +1 -4
- package/server/modules/lists/ls-keyresult.js +1 -7
- package/server/modules/lists/ls-khunghangthanhvien.js +1 -1
- package/server/modules/lists/ls-kygui.js +1 -19
- package/server/modules/lists/ls-label.js +1 -1
- package/server/modules/lists/ls-lienhe.js +1 -4
- package/server/modules/lists/ls-like-module.js +1 -1
- package/server/modules/lists/ls-link.js +1 -1
- package/server/modules/lists/ls-loaidiem.js +1 -1
- package/server/modules/lists/ls-lock.js +1 -1
- package/server/modules/lists/ls-log.js +1 -3
- package/server/modules/lists/ls-mailaccount.js +1 -5
- package/server/modules/lists/ls-mailreceived.js +1 -5
- package/server/modules/lists/ls-mailschedule.js +1 -7
- package/server/modules/lists/ls-mailsent.js +1 -4
- package/server/modules/lists/ls-mailtemplate.js +1 -4
- package/server/modules/lists/ls-maudanhgia.js +1 -3
- package/server/modules/lists/ls-message2.js +1 -8
- package/server/modules/lists/ls-message2setting.js +1 -5
- package/server/modules/lists/ls-news.js +1 -7
- package/server/modules/lists/ls-newsfeed.js +1 -4
- package/server/modules/lists/ls-note.js +1 -6
- package/server/modules/lists/ls-okr.js +1 -5
- package/server/modules/lists/ls-okrdiagram.js +1 -1
- package/server/modules/lists/ls-opportunity.js +1 -5
- package/server/modules/lists/ls-options.js +1 -4
- package/server/modules/lists/ls-parameter.js +1 -3
- package/server/modules/lists/ls-participant.js +1 -10
- package/server/modules/lists/ls-phieudanhgia.js +1 -7
- package/server/modules/lists/ls-phucap.js +1 -2
- package/server/modules/lists/ls-profile.js +1 -1
- package/server/modules/lists/ls-ptthanhtoan.js +1 -3
- package/server/modules/lists/ls-qts-dieuchinh.js +1 -2
- package/server/modules/lists/ls-qts-dieuchuyen.js +1 -8
- package/server/modules/lists/ls-reason.js +1 -1
- package/server/modules/lists/ls-rpt.js +1 -5
- package/server/modules/lists/ls-rptform.js +1 -4
- package/server/modules/lists/ls-service.js +1 -3
- package/server/modules/lists/ls-shortcut.js +1 -1
- package/server/modules/lists/ls-smsaccount.js +1 -1
- package/server/modules/lists/ls-smssend.js +1 -3
- package/server/modules/lists/ls-sosanxuat.js +1 -4
- package/server/modules/lists/ls-step.js +1 -1
- package/server/modules/lists/ls-strategicdiagram.js +1 -1
- package/server/modules/lists/ls-strategicgoal.js +1 -3
- package/server/modules/lists/ls-strategickpi.js +1 -7
- package/server/modules/lists/ls-strategicobjective.js +1 -3
- package/server/modules/lists/ls-strategicplan.js +1 -6
- package/server/modules/lists/ls-support.js +1 -3
- package/server/modules/lists/ls-task.js +1 -34
- package/server/modules/lists/ls-taskreg.js +1 -2
- package/server/modules/lists/ls-tc.js +1 -1
- package/server/modules/lists/ls-templaterpt.js +1 -5
- package/server/modules/lists/ls-templatevoucher.js +1 -1
- package/server/modules/lists/ls-tontucthoi.js +1 -3
- package/server/modules/lists/ls-trangthaiapp.js +1 -3
- package/server/modules/lists/ls-transaction.js +1 -4
- package/server/modules/lists/ls-usergroup.js +1 -7
- package/server/modules/lists/ls-vat.js +1 -1
- package/server/modules/lists/ls-vatra.js +1 -5
- package/server/modules/lists/ls-vatvao.js +1 -6
- package/server/modules/lists/ls-waitevent.js +1 -1
- package/server/modules/lists/ls-warranty.js +1 -4
- package/server/modules/lists/ls_hanmucton.js +1 -3
- package/server/modules/lists/ls_hspb.js +1 -4
- package/server/modules/lists/ls_spdd_ck.js +1 -3
- package/server/modules/lists/ls_spdd_dk.js +1 -3
- package/server/modules/lists/ls_ytdd_ck.js +1 -4
- package/server/modules/lists/ls_ytdd_dk.js +1 -4
- package/server/modules/lists/sys-attend.js +1 -4
- package/server/modules/lists/sys-follow.js +1 -4
- package/server/modules/lists/sys-right.js +1 -2
- package/server/modules/public/app.js +1 -4
- package/server/modules/public/approve.js +1 -37
- package/server/modules/public/callin.js +1 -7
- package/server/modules/public/comment.js +1 -5
- package/server/modules/public/dmnvt.js +1 -4
- package/server/modules/public/dmvt.js +1 -9
- package/server/modules/public/file.js +1 -11
- package/server/modules/public/form.js +1 -7
- package/server/modules/public/forminfo.js +1 -1
- package/server/modules/public/group.js +1 -4
- package/server/modules/public/hlink.js +1 -3
- package/server/modules/public/introducecode.js +1 -1
- package/server/modules/public/listinfo.js +1 -1
- package/server/modules/public/media-webhook.js +1 -1
- package/server/modules/public/partner.js +1 -1
- package/server/modules/public/paymentCallback.js +1 -32
- package/server/modules/public/province.js +1 -1
- package/server/modules/public/ptthanhtoan.js +1 -4
- package/server/modules/public/subscribe.js +1 -30
- package/server/modules/public/support.js +1 -3
- package/server/modules/public/tableinfo.js +1 -1
- package/server/modules/public/trialinfo.js +1 -4
- package/server/modules/public/versioninfo.js +1 -1
- package/server/modules/reports/calc-tinhgiatb.js +1 -6
- package/server/modules/reports/calc-tinhgiathanh.js +1 -6
- package/server/modules/reports/calc-tinhkhauhaots.js +1 -3
- package/server/modules/reports/calc-tinhluong.js +1 -37
- package/server/modules/reports/rp-analyzedata.js +1 -6
- package/server/modules/reports/rp-assbonus.js +1 -4
- package/server/modules/reports/rp-assinterest.js +1 -8
- package/server/modules/reports/rp-assproductowners.js +1 -3
- package/server/modules/reports/rp-asssupply.js +1 -1
- package/server/modules/reports/rp-asstransferlog.js +1 -10
- package/server/modules/reports/rp-banggiatb.js +1 -3
- package/server/modules/reports/rp-bangtinhkhauhao.js +1 -6
- package/server/modules/reports/rp-baocaokhachhang.js +1 -6
- package/server/modules/reports/rp-bcdkt.js +1 -11
- package/server/modules/reports/rp-bcintroducebonus.js +1 -4
- package/server/modules/reports/rp-bckhtiemnang.js +1 -3
- package/server/modules/reports/rp-bcqt.js +1 -85
- package/server/modules/reports/rp-bkct.js +1 -13
- package/server/modules/reports/rp-bkshipbook.js +1 -8
- package/server/modules/reports/rp-bkvanchuyen.js +1 -8
- package/server/modules/reports/rp-bkvatra.js +1 -7
- package/server/modules/reports/rp-bkvatvao.js +1 -7
- package/server/modules/reports/rp-capnhatsocaitc.js +1 -4
- package/server/modules/reports/rp-cdpsdiem.js +1 -4
- package/server/modules/reports/rp-cdpsdt.js +1 -5
- package/server/modules/reports/rp-cdpskh.js +1 -7
- package/server/modules/reports/rp-cdpsnphep.js +1 -3
- package/server/modules/reports/rp-cdpstk.js +1 -4
- package/server/modules/reports/rp-chitietchitientheohoadon.js +1 -12
- package/server/modules/reports/rp-chitiettaisan.js +1 -13
- package/server/modules/reports/rp-chitietthutientheohoadon.js +1 -13
- package/server/modules/reports/rp-ckcn.js +1 -3
- package/server/modules/reports/rp-ckdiem.js +1 -2
- package/server/modules/reports/rp-cktk.js +1 -3
- package/server/modules/reports/rp-ckvt.js +1 -10
- package/server/modules/reports/rp-ckvttheokho.js +1 -4
- package/server/modules/reports/rp-ckvttheotg.js +1 -4
- package/server/modules/reports/rp-ckvttt.js +1 -3
- package/server/modules/reports/rp-congnophaithutheotuoino.js +1 -3
- package/server/modules/reports/rp-congnophaitratheotuoino.js +1 -3
- package/server/modules/reports/rp-congnosapthu.js +1 -4
- package/server/modules/reports/rp-congnosaptra.js +1 -4
- package/server/modules/reports/rp-congviectheobp.js +1 -9
- package/server/modules/reports/rp-congviectheodt.js +1 -8
- package/server/modules/reports/rp-congviectheokh.js +1 -8
- package/server/modules/reports/rp-congviectheonv.js +1 -9
- package/server/modules/reports/rp-congviectheotimeline.js +1 -6
- package/server/modules/reports/rp-ctbanle.js +1 -15
- package/server/modules/reports/rp-ctbanle2.js +1 -20
- package/server/modules/reports/rp-ctbanlectv.js +1 -20
- package/server/modules/reports/rp-ctbanlenpp.js +1 -24
- package/server/modules/reports/rp-ctdanhgianhanvien.js +1 -8
- package/server/modules/reports/rp-cthangbanbitralai.js +1 -4
- package/server/modules/reports/rp-ctmuahang.js +1 -7
- package/server/modules/reports/rp-cttralaihang.js +1 -4
- package/server/modules/reports/rp-databanle.js +1 -10
- package/server/modules/reports/rp-diemthuong.js +1 -2
- package/server/modules/reports/rp-dkcn.js +1 -3
- package/server/modules/reports/rp-dktk.js +1 -2
- package/server/modules/reports/rp-dsnhanviencm.js +1 -9
- package/server/modules/reports/rp-dsnhanvientb.js +1 -9
- package/server/modules/reports/rp-dtbanlekempk.js +1 -9
- package/server/modules/reports/rp-dtbanletheoct.js +1 -23
- package/server/modules/reports/rp-dtbanletheoctkempk.js +1 -25
- package/server/modules/reports/rp-dtbanletheokh.js +1 -20
- package/server/modules/reports/rp-dtbanletheokhnpp.js +1 -19
- package/server/modules/reports/rp-dtbanletheokho.js +1 -18
- package/server/modules/reports/rp-dtbanletheonam.js +1 -3
- package/server/modules/reports/rp-dtbanletheongay.js +1 -1
- package/server/modules/reports/rp-dtbanletheonpp.js +1 -23
- package/server/modules/reports/rp-dtbanletheonv.js +1 -19
- package/server/modules/reports/rp-dtbanletheoquy.js +1 -3
- package/server/modules/reports/rp-dtbanletheosp.js +1 -8
- package/server/modules/reports/rp-dtbanletheospnpp.js +1 -6
- package/server/modules/reports/rp-dtbanletheothang.js +1 -3
- package/server/modules/reports/rp-dtbanletheothungan.js +1 -12
- package/server/modules/reports/rp-dtbanletheovt.js +1 -2
- package/server/modules/reports/rp-dtbanletheovtnpp.js +1 -2
- package/server/modules/reports/rp-dutoanthuchitheodt.js +1 -4
- package/server/modules/reports/rp-getPXC2PNC.js +1 -8
- package/server/modules/reports/rp-getariseofaccountsbymonth.js +1 -4
- package/server/modules/reports/rp-getbtpb.js +1 -6
- package/server/modules/reports/rp-getcashbycashier.js +1 -7
- package/server/modules/reports/rp-getcschietkhau.js +1 -5
- package/server/modules/reports/rp-getdinhmuc4lenhcp.js +1 -7
- package/server/modules/reports/rp-getdinhmuc4pxk.js +1 -9
- package/server/modules/reports/rp-getdk4pht.js +1 -8
- package/server/modules/reports/rp-getdk4pkc.js +1 -9
- package/server/modules/reports/rp-getdttheoca.js +1 -5
- package/server/modules/reports/rp-getinvoice2pay.js +1 -4
- package/server/modules/reports/rp-getinvoice2receive.js +1 -4
- package/server/modules/reports/rp-getinvoice2return.js +1 -5
- package/server/modules/reports/rp-getinvoice2return_bl.js +1 -6
- package/server/modules/reports/rp-getkehoachmh4lenhcp.js +1 -4
- package/server/modules/reports/rp-getkhauhao.js +1 -7
- package/server/modules/reports/rp-getluong.js +1 -8
- package/server/modules/reports/rp-getluongchuyen.js +1 -5
- package/server/modules/reports/rp-getpn2fee.js +1 -5
- package/server/modules/reports/rp-getpn2return.js +1 -5
- package/server/modules/reports/rp-getthanhpham4pnk.js +1 -7
- package/server/modules/reports/rp-getvc2xhd.js +1 -11
- package/server/modules/reports/rp-gt_cpnvltt.js +1 -6
- package/server/modules/reports/rp-hangbanbitralai.js +1 -5
- package/server/modules/reports/rp-hangthanhvien.js +1 -3
- package/server/modules/reports/rp-hoadonbanhangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoadonmuahangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoahong.js +1 -15
- package/server/modules/reports/rp-kcsns.js +1 -19
- package/server/modules/reports/rp-kgchamcong.js +1 -7
- package/server/modules/reports/rp-khoaso.js +1 -12
- package/server/modules/reports/rp-kiemtrasocaitcvssocai.js +1 -6
- package/server/modules/reports/rp-kqdanhgianhanvien.js +1 -5
- package/server/modules/reports/rp-kqhdkd.js +1 -7
- package/server/modules/reports/rp-lcttgt.js +1 -17
- package/server/modules/reports/rp-lctttt.js +1 -11
- package/server/modules/reports/rp-linkslist.js +1 -4
- package/server/modules/reports/rp-phanbochitienchohoadon.js +1 -11
- package/server/modules/reports/rp-phanbothutienchohoadon.js +1 -10
- package/server/modules/reports/rp-ptbitralai.js +1 -7
- package/server/modules/reports/rp-ptcttct.js +1 -22
- package/server/modules/reports/rp-ptdonhang.js +1 -8
- package/server/modules/reports/rp-pttct.js +1 -49
- package/server/modules/reports/rp-pttctkho.js +1 -32
- package/server/modules/reports/rp-pttctkho2.js +1 -29
- package/server/modules/reports/rp-referredusers.js +1 -1
- package/server/modules/reports/rp-sctbhxh.js +1 -4
- package/server/modules/reports/rp-sctcnkh.js +1 -17
- package/server/modules/reports/rp-sctdiem.js +1 -3
- package/server/modules/reports/rp-sctdt.js +1 -7
- package/server/modules/reports/rp-sctdtcp.js +1 -11
- package/server/modules/reports/rp-sctluong.js +1 -4
- package/server/modules/reports/rp-sctthuetncn.js +1 -4
- package/server/modules/reports/rp-scttk.js +1 -7
- package/server/modules/reports/rp-sctvt.js +1 -5
- package/server/modules/reports/rp-sctvt_sl.js +1 -5
- package/server/modules/reports/rp-sctvtnpp.js +1 -6
- package/server/modules/reports/rp-sctvttt.js +1 -5
- package/server/modules/reports/rp-search.js +1 -4
- package/server/modules/reports/rp-socai.js +1 -6
- package/server/modules/reports/rp-socaitk.js +1 -7
- package/server/modules/reports/rp-sochut.js +1 -7
- package/server/modules/reports/rp-sokho.js +1 -7
- package/server/modules/reports/rp-sokhott.js +1 -5
- package/server/modules/reports/rp-sonkbh.js +1 -5
- package/server/modules/reports/rp-sonkc.js +1 -6
- package/server/modules/reports/rp-sonkct.js +1 -5
- package/server/modules/reports/rp-sonkmh.js +1 -5
- package/server/modules/reports/rp-sonktt.js +1 -5
- package/server/modules/reports/rp-soquy.js +1 -11
- package/server/modules/reports/rp-sosanhkhvatt.js +1 -13
- package/server/modules/reports/rp-sosanhkhvatt2.js +1 -6
- package/server/modules/reports/rp-sotaisan.js +1 -13
- package/server/modules/reports/rp-sotiengui.js +1 -7
- package/server/modules/reports/rp-taodinhmuctudkhoc.js +1 -5
- package/server/modules/reports/rp-thbanhangkempk.js +1 -28
- package/server/modules/reports/rp-thdanhgianhanvien.js +1 -9
- package/server/modules/reports/rp-thgt.js +1 -6
- package/server/modules/reports/rp-thnxt.js +1 -12
- package/server/modules/reports/rp-thnxt_sl.js +1 -9
- package/server/modules/reports/rp-thnxtnpp.js +1 -10
- package/server/modules/reports/rp-thnxttt.js +1 -9
- package/server/modules/reports/rp-tkbanhangtheogioithieu.js +1 -9
- package/server/modules/reports/rp-tkgioithieukh.js +1 -4
- package/server/modules/reports/rp-tkgtgt.js +1 -7
- package/server/modules/reports/rp-tmbctc.js +1 -20
- package/server/modules/reports/rp-tonghopbanhang.js +1 -6
- package/server/modules/reports/rp-tonghopmuahang.js +1 -5
- package/server/modules/reports/rp-tonghoptralaihang.js +1 -5
- package/server/modules/reports/rp-tongquanbanle.js +1 -20
- package/server/modules/reports/rp-tongquanbds.js +1 -3
- package/server/modules/reports/rp-tongquancongty.js +1 -6
- package/server/modules/reports/rp-tongquanctvnpp.js +1 -12
- package/server/modules/reports/rp-tongquannvbh.js +1 -14
- package/server/modules/reports/rp-tongquannvnpp.js +1 -5
- package/server/modules/reports/rp-uoctinhnvl.js +1 -11
- package/server/modules/reports/rp-wallet.js +1 -3
- package/server/modules/reports/rpt-tkdiemtichluy.js +1 -9
- package/server/modules/systems/sys-app.js +1 -30
- package/server/modules/systems/sys-colleague.js +1 -11
- package/server/modules/systems/sys-domain.js +1 -4
- package/server/modules/systems/sys-ecomproductlines.js +1 -1
- package/server/modules/systems/sys-exportexceltemplate.js +1 -4
- package/server/modules/systems/sys-fieldright.js +1 -3
- package/server/modules/systems/sys-importexceltemplate.js +1 -4
- package/server/modules/systems/sys-labelinfo.js +1 -4
- package/server/modules/systems/sys-listinfo.js +1 -10
- package/server/modules/systems/sys-menuinfo.js +1 -4
- package/server/modules/systems/sys-message.js +1 -14
- package/server/modules/systems/sys-moduleinfo.js +1 -4
- package/server/modules/systems/sys-notification.js +1 -8
- package/server/modules/systems/sys-quanhuyen.js +1 -4
- package/server/modules/systems/sys-reportinfo.js +1 -4
- package/server/modules/systems/sys-rptobject.js +1 -3
- package/server/modules/systems/sys-schedule.js +1 -11
- package/server/modules/systems/sys-sysconfig.js +1 -3
- package/server/modules/systems/sys-sysgroup.js +1 -3
- package/server/modules/systems/sys-tableinfo.js +1 -3
- package/server/modules/systems/sys-templatestore.js +1 -5
- package/server/modules/systems/sys-tinhthanh.js +1 -4
- package/server/modules/systems/sys-token.js +1 -3
- package/server/modules/systems/sys-trangthai.js +1 -4
- package/server/modules/systems/sys-trialinfo.js +1 -3
- package/server/modules/systems/sys-user.js +1 -45
- package/server/modules/systems/sys-users.js +1 -10
- package/server/modules/systems/sys-versioninfo.js +1 -3
- package/server/modules/systems/sys-vietqrbanks.js +1 -4
- package/server/modules/systems/sys-xaphuong.js +1 -4
- package/server/modules/vouchers/vo-banggiaban.js +1 -5
- package/server/modules/vouchers/vo-bc1.js +1 -33
- package/server/modules/vouchers/vo-bc5.js +1 -15
- package/server/modules/vouchers/vo-bg1.js +1 -10
- package/server/modules/vouchers/vo-bg2.js +1 -12
- package/server/modules/vouchers/vo-bn1.js +1 -35
- package/server/modules/vouchers/vo-bn5.js +1 -15
- package/server/modules/vouchers/vo-dh2.js +1 -35
- package/server/modules/vouchers/vo-dinhmucsx.js +1 -6
- package/server/modules/vouchers/vo-dkb.js +1 -21
- package/server/modules/vouchers/vo-dn0.js +1 -9
- package/server/modules/vouchers/vo-dnm.js +1 -21
- package/server/modules/vouchers/vo-hd1.js +1 -36
- package/server/modules/vouchers/vo-hd2.js +1 -107
- package/server/modules/vouchers/vo-hd3.js +1 -44
- package/server/modules/vouchers/vo-hd4.js +1 -13
- package/server/modules/vouchers/vo-hd7.js +1 -29
- package/server/modules/vouchers/vo-hd8.js +1 -29
- package/server/modules/vouchers/vo-hde.js +1 -40
- package/server/modules/vouchers/vo-htl.js +1 -11
- package/server/modules/vouchers/vo-kbbtpb.js +1 -6
- package/server/modules/vouchers/vo-kehoachmh.js +1 -13
- package/server/modules/vouchers/vo-lenhcapphat.js +1 -10
- package/server/modules/vouchers/vo-lenhsx.js +1 -12
- package/server/modules/vouchers/vo-pbl.js +1 -93
- package/server/modules/vouchers/vo-pc0.js +1 -14
- package/server/modules/vouchers/vo-pc1.js +1 -31
- package/server/modules/vouchers/vo-pc2.js +1 -24
- package/server/modules/vouchers/vo-pc3.js +1 -14
- package/server/modules/vouchers/vo-pc5.js +1 -15
- package/server/modules/vouchers/vo-pc6.js +1 -19
- package/server/modules/vouchers/vo-pcl.js +1 -7
- package/server/modules/vouchers/vo-pdn.js +1 -11
- package/server/modules/vouchers/vo-pdx.js +1 -9
- package/server/modules/vouchers/vo-pgh.js +1 -19
- package/server/modules/vouchers/vo-pht.js +1 -7
- package/server/modules/vouchers/vo-pkc.js +1 -7
- package/server/modules/vouchers/vo-pkh.js +1 -10
- package/server/modules/vouchers/vo-pkk.js +1 -12
- package/server/modules/vouchers/vo-pkt.js +1 -13
- package/server/modules/vouchers/vo-pn1.js +1 -33
- package/server/modules/vouchers/vo-pn2.js +1 -16
- package/server/modules/vouchers/vo-pn3.js +1 -18
- package/server/modules/vouchers/vo-pn5.js +1 -19
- package/server/modules/vouchers/vo-pn6.js +1 -18
- package/server/modules/vouchers/vo-pn9.js +1 -22
- package/server/modules/vouchers/vo-pnc.js +1 -20
- package/server/modules/vouchers/vo-pnh.js +1 -20
- package/server/modules/vouchers/vo-pnk.js +1 -14
- package/server/modules/vouchers/vo-pnknpp.js +1 -12
- package/server/modules/vouchers/vo-po1.js +1 -15
- package/server/modules/vouchers/vo-ppb.js +1 -8
- package/server/modules/vouchers/vo-pt1.js +1 -21
- package/server/modules/vouchers/vo-pt5.js +1 -15
- package/server/modules/vouchers/vo-ptl.js +1 -8
- package/server/modules/vouchers/vo-purchase_contract.js +1 -9
- package/server/modules/vouchers/vo-pxc.js +1 -22
- package/server/modules/vouchers/vo-pxh.js +1 -28
- package/server/modules/vouchers/vo-pxk.js +1 -15
- package/server/modules/vouchers/vo-pxknpp.js +1 -14
- package/server/modules/vouchers/vo-qts.js +1 -12
- package/server/modules/vouchers/vo-sale_contract.js +1 -11
- package/server/modules/vouchers/vo-shipbook.js +1 -17
- package/server/modules/vouchers/vo-so1.js +1 -126
- package/server/modules/vouchers/vo-so2.js +1 -37
- package/server/modules/vouchers/vo-so3.js +1 -41
- package/server/modules/vouchers/vo-so5.js +1 -57
- package/server/modules/vouchers/vo-so7.js +1 -97
- package/server/modules/vouchers/vo-so9.js +1 -119
- package/server/modules/vouchers/vo-vanchuyen.js +1 -14
- package/server/modules/vouchers/vo-xhd.js +1 -33
- package/server/route.js +1 -51
- package/server/services/invoiceFetcher.js +1 -15
- package/server/sslConfig.js +1 -2
- package/server/transactionMiddleware.js +1 -5
- package/server/workers/backupApp.js +1 -9
- package/server/workers/calcGrid.js +1 -9
- package/server/workers/customerOnImport.js +1 -8
- package/server/workers/dmvtOnImport.js +1 -9
- package/server/workers/excelParser.js +1 -9
- package/server/workers/inputWorker.js +1 -6
- package/server/workers/pushNotify.js +1 -10
- package/server/workers/reportWorker.js +1 -7
- package/server/workers/restoreApp.js +1 -23
- package/server/workers/runScript.js +1 -4
- package/server/workers/sendEmail.js +1 -13
- package/server/workers/webhook.js +1 -5
package/server/models/dmletet.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const dmletetSchema=new Schema({ma_le:{type:String,required
|
|
2
|
-
visible_to_users:[String],update_right:[String],delete_right:[String],dataview_to:{type:Number,default:0},dataview_to_users:[String]});(global.configs||{}).createIndexes&&(dmletetSchema.index({id_app:1,ma_le:1},{unique:!0}),dmletetSchema.index({ma_le:"text",ten_le:"text"}),dmletetSchema.index({status:1}),dmletetSchema.index({user_created:1,visible_to:1,visible_to_users:1}));const model=mongoose.model("dmletet",dmletetSchema);module.exports=model;
|
|
1
|
+
const _0x488758=_0x17f9;(function(_0x20636a,_0x5ca9a5){const _0x573432=_0x17f9,_0x5705a8=_0x20636a();while(!![]){try{const _0x50b362=-parseInt(_0x573432(0x12b))/0x1*(-parseInt(_0x573432(0x11b))/0x2)+-parseInt(_0x573432(0x12c))/0x3*(-parseInt(_0x573432(0x126))/0x4)+parseInt(_0x573432(0x119))/0x5*(-parseInt(_0x573432(0x123))/0x6)+parseInt(_0x573432(0x128))/0x7*(-parseInt(_0x573432(0x121))/0x8)+-parseInt(_0x573432(0x11a))/0x9+-parseInt(_0x573432(0x11f))/0xa+parseInt(_0x573432(0x12a))/0xb*(parseInt(_0x573432(0x129))/0xc);if(_0x50b362===_0x5ca9a5)break;else _0x5705a8['push'](_0x5705a8['shift']());}catch(_0x49e935){_0x5705a8['push'](_0x5705a8['shift']());}}}(_0x176d,0xd3146));function _0x176d(){const _0x201468=['mJy3mJa3ngf2CMTbza','vhLWzxm','zg1SzxrLDa','zxHWB3j0CW','ntyXnZmWDKvtDu5M','Aw5KzxG','mtC2CvDJuMDj','y3jLyxrLsw5KzxHLCW','mtu0mMjjA0HdtW','Dgv4Da','y29UzMLNCW','mtqWmta4vLzZsLnq','Bw9KzwW','ndu2odGZD3nitxL4','mta3nZK0mJbyvLjtCxm','mJjgEMvjwgC','mxjtDw5PAW','odrXExvREwy','BM93','mJKXnufjuujdzG','mtq0nJe3mZfwte1oDK8'];_0x176d=function(){return _0x201468;};return _0x176d();}const dmletetSchema=new Schema({'ma_le':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ten_le':{'type':String,'required':!![],'maxlength':0x400},'ngay':{'type':Number,'default':0x0},'thang':{'type':Number,'default':0x0},'id_app':{'type':String,'required':!![],'maxlength':0x400},'exfields':Schema[_0x488758(0x11c)]['Mixed'],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x488758(0x12d)]},'date_updated':{'type':Date,'default':Date['now']},'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]});(global[_0x488758(0x125)]||{})[_0x488758(0x122)]&&(dmletetSchema['index']({'id_app':0x1,'ma_le':0x1},{'unique':!![]}),dmletetSchema[_0x488758(0x120)]({'ma_le':'text','ten_le':_0x488758(0x124)}),dmletetSchema[_0x488758(0x120)]({'status':0x1}),dmletetSchema[_0x488758(0x120)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));function _0x17f9(_0x553b36,_0x52028b){const _0x176d29=_0x176d();return _0x17f9=function(_0x17f9f5,_0x4c6024){_0x17f9f5=_0x17f9f5-0x119;let _0x133a0e=_0x176d29[_0x17f9f5];if(_0x17f9['lFUuXF']===undefined){var _0x2e8cd2=function(_0x391985){const _0x4e2b42='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a889c='',_0x57cd78='';for(let _0x51c1e0=0x0,_0x3d66c6,_0x3ca4bb,_0x57b7e8=0x0;_0x3ca4bb=_0x391985['charAt'](_0x57b7e8++);~_0x3ca4bb&&(_0x3d66c6=_0x51c1e0%0x4?_0x3d66c6*0x40+_0x3ca4bb:_0x3ca4bb,_0x51c1e0++%0x4)?_0x5a889c+=String['fromCharCode'](0xff&_0x3d66c6>>(-0x2*_0x51c1e0&0x6)):0x0){_0x3ca4bb=_0x4e2b42['indexOf'](_0x3ca4bb);}for(let _0x35e0e3=0x0,_0x5104f6=_0x5a889c['length'];_0x35e0e3<_0x5104f6;_0x35e0e3++){_0x57cd78+='%'+('00'+_0x5a889c['charCodeAt'](_0x35e0e3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x57cd78);};_0x17f9['gAkSuG']=_0x2e8cd2,_0x553b36=arguments,_0x17f9['lFUuXF']=!![];}const _0x55c970=_0x176d29[0x0],_0x5cfd5f=_0x17f9f5+_0x55c970,_0xbf8670=_0x553b36[_0x5cfd5f];return!_0xbf8670?(_0x133a0e=_0x17f9['gAkSuG'](_0x133a0e),_0x553b36[_0x5cfd5f]=_0x133a0e):_0x133a0e=_0xbf8670,_0x133a0e;},_0x17f9(_0x553b36,_0x52028b);}const model=mongoose[_0x488758(0x127)](_0x488758(0x11d),dmletetSchema);module[_0x488758(0x11e)]=model;
|
package/server/models/dmlo.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const dmloSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
visible_to:{type:Number,default:0},visible_to_users:[String],update_right:[String],delete_right:[String]});
|
|
3
|
-
(global.configs||{}).createIndexes&&(dmloSchema.index({id_app:1,ma_lo:1,ten_lo:1,ma_vt:1,han_sd:1}),dmloSchema.index({id_app:1,ma_vt:1}),dmloSchema.index({id_app:1,han_sd:1}),dmloSchema.index({id_app:1,ma_lo:"text",ten_lo:"text",ma_vt:"text",ten_vt:"text"},{name:"dmlo_index_text"}),dmloSchema.index({id_app:1,status:1}),dmloSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1}),dmloSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,ma_vt:1,ma_lo:1,ten_lo:1}));
|
|
4
|
-
const model=mongoose.models.dmlo||mongoose.model("dmlo",dmloSchema);model.referenceKeys={ma_lo:[{model:"sokho",key:"ma_lo",error:"M\u00e3 l\u00f4 {{VALUE}} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"}]};module.exports=model;
|
|
1
|
+
function _0x144c(_0x4445e0,_0x24bfcb){const _0x14adbb=_0x14ad();return _0x144c=function(_0x144c13,_0x1592e2){_0x144c13=_0x144c13-0x14d;let _0x9fc959=_0x14adbb[_0x144c13];if(_0x144c['nePcmJ']===undefined){var _0xc9afe2=function(_0x46f6e9){const _0x26a3ff='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x247f05='',_0x551c4e='';for(let _0x2cfed5=0x0,_0x5e817a,_0x108fc4,_0x1722c2=0x0;_0x108fc4=_0x46f6e9['charAt'](_0x1722c2++);~_0x108fc4&&(_0x5e817a=_0x2cfed5%0x4?_0x5e817a*0x40+_0x108fc4:_0x108fc4,_0x2cfed5++%0x4)?_0x247f05+=String['fromCharCode'](0xff&_0x5e817a>>(-0x2*_0x2cfed5&0x6)):0x0){_0x108fc4=_0x26a3ff['indexOf'](_0x108fc4);}for(let _0x46b9b8=0x0,_0x1d173d=_0x247f05['length'];_0x46b9b8<_0x1d173d;_0x46b9b8++){_0x551c4e+='%'+('00'+_0x247f05['charCodeAt'](_0x46b9b8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x551c4e);};_0x144c['UEsUwm']=_0xc9afe2,_0x4445e0=arguments,_0x144c['nePcmJ']=!![];}const _0x2014af=_0x14adbb[0x0],_0x51d4a3=_0x144c13+_0x2014af,_0x18a026=_0x4445e0[_0x51d4a3];return!_0x18a026?(_0x9fc959=_0x144c['UEsUwm'](_0x9fc959),_0x4445e0[_0x51d4a3]=_0x9fc959):_0x9fc959=_0x18a026,_0x9fc959;},_0x144c(_0x4445e0,_0x24bfcb);}const _0x3418f6=_0x144c;function _0x14ad(){const _0x2ff5b3=['twL4zwq','mtqZodu2tuHzufP0','ntaYmZC0t2XjsMvK','mte2nJu2mJLRCMfewfe','Bw9KzwXZ','vhLWzxm','y3jLyxrLsw5KzxHLCW','zg1SBW','BM93','y29UzMLNCW','mZmZndmYBLvjuwTp','mNW2Fdv8mxWWFdn8na','zg1SB19PBMrLEf90zxH0','mJqZotiWmfPwAxbrrW','mtm4DefjBe9r','Dgv4Da','zxHWB3j0CW','tCoJigZdTcb7E1zbtfvfFx0GXjhdOYbWAmoHDcbZAw5OigtHU68GBgNHU4D1','CMvMzxjLBMnLs2v5CW','C3bSAxq','Aw5KzxG','Bw9KzwW','odC3nZntu2HbDfm','ote1mJu2rvHTs0z2','m0jqwLPqyq'];_0x14ad=function(){return _0x2ff5b3;};return _0x14ad();}(function(_0x5e17dd,_0x15c881){const _0x2fa43e=_0x144c,_0x32ef7d=_0x5e17dd();while(!![]){try{const _0x40e680=parseInt(_0x2fa43e(0x150))/0x1+parseInt(_0x2fa43e(0x161))/0x2+-parseInt(_0x2fa43e(0x15e))/0x3*(-parseInt(_0x2fa43e(0x15d))/0x4)+parseInt(_0x2fa43e(0x153))/0x5+-parseInt(_0x2fa43e(0x154))/0x6*(-parseInt(_0x2fa43e(0x15c))/0x7)+parseInt(_0x2fa43e(0x160))/0x8+-parseInt(_0x2fa43e(0x162))/0x9;if(_0x40e680===_0x15c881)break;else _0x32ef7d['push'](_0x32ef7d['shift']());}catch(_0x3d0091){_0x32ef7d['push'](_0x32ef7d['shift']());}}}(_0x14ad,0x4c0af));const dmloSchema=new Schema({'id_app':{'type':String,'required':!![]},'ma_lo':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ten_lo':{'type':String,'required':!![],'maxlength':0x400},'ma_vt':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x400,'trim':!![]},'ten_vt':String,'han_sd':{'type':Date,'required':!![]},'exfields':Schema[_0x3418f6(0x164)][_0x3418f6(0x15f)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x3418f6(0x14e)]},'date_updated':{'type':Date,'default':Date[_0x3418f6(0x14e)]},'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]});if((global[_0x3418f6(0x14f)]||{})[_0x3418f6(0x165)]){const Ntcruw=_0x3418f6(0x151)[_0x3418f6(0x159)]('|');let pBJmQR=0x0;while(!![]){switch(Ntcruw[pBJmQR++]){case'0':dmloSchema[_0x3418f6(0x15a)]({'id_app':0x1,'status':0x1});continue;case'1':dmloSchema[_0x3418f6(0x15a)]({'id_app':0x1,'ma_lo':_0x3418f6(0x155),'ten_lo':'text','ma_vt':'text','ten_vt':_0x3418f6(0x155)},{'name':_0x3418f6(0x152)});continue;case'2':dmloSchema[_0x3418f6(0x15a)]({'id_app':0x1,'ma_lo':0x1,'ten_lo':0x1,'ma_vt':0x1,'han_sd':0x1});continue;case'3':dmloSchema[_0x3418f6(0x15a)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'4':dmloSchema[_0x3418f6(0x15a)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'ma_vt':0x1,'ma_lo':0x1,'ten_lo':0x1});continue;case'5':dmloSchema[_0x3418f6(0x15a)]({'id_app':0x1,'han_sd':0x1});continue;case'6':dmloSchema[_0x3418f6(0x15a)]({'id_app':0x1,'ma_vt':0x1});continue;}break;}}const model=mongoose[_0x3418f6(0x163)][_0x3418f6(0x14d)]||mongoose[_0x3418f6(0x15b)](_0x3418f6(0x14d),dmloSchema);model[_0x3418f6(0x158)]={'ma_lo':[{'model':'sokho','key':'ma_lo','error':_0x3418f6(0x157)}]},module[_0x3418f6(0x156)]=model;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const dmloaicongSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
default:0},nhung_ngay_trong_tuan:[String],color:{type:String,maxlength:32},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:""}});
|
|
3
|
-
(global.configs||{}).createIndexes&&(dmloaicongSchema.index({id_app:1,ma_loai_cong:1},{unique:!0}),dmloaicongSchema.index({ten_loai_cong:1}),dmloaicongSchema.index({ma_loai_cong:"text",ten_loai_cong:"text"},{name:"dmloaicong_index_text"}),dmloaicongSchema.index({status:1}),dmloaicongSchema.index({user_created:1,visible_to:1,visible_to_users:1}));const model=mongoose.models.dmloaicong||mongoose.model("dmloaicong",dmloaicongSchema);
|
|
4
|
-
model.referenceKeys={ma_loai_cong:[{model:"chamcong",key:"ma_loai_cong",error:"M\u00e3 lo\u1ea1i c\u00f4ng {{VALUE}} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"}]};module.exports=model;
|
|
1
|
+
const _0xa52fdd=_0x52f5;(function(_0x13943e,_0x1e3d00){const _0x44b553=_0x52f5,_0x33a7b2=_0x13943e();while(!![]){try{const _0x297673=-parseInt(_0x44b553(0x172))/0x1*(parseInt(_0x44b553(0x189))/0x2)+-parseInt(_0x44b553(0x181))/0x3*(-parseInt(_0x44b553(0x17d))/0x4)+parseInt(_0x44b553(0x17b))/0x5+parseInt(_0x44b553(0x186))/0x6+-parseInt(_0x44b553(0x173))/0x7*(parseInt(_0x44b553(0x170))/0x8)+parseInt(_0x44b553(0x17a))/0x9+-parseInt(_0x44b553(0x188))/0xa*(parseInt(_0x44b553(0x16f))/0xb);if(_0x297673===_0x1e3d00)break;else _0x33a7b2['push'](_0x33a7b2['shift']());}catch(_0x21ffd3){_0x33a7b2['push'](_0x33a7b2['shift']());}}}(_0x4c77,0x68c23));function _0x52f5(_0x5c874f,_0x243505){const _0x4c7735=_0x4c77();return _0x52f5=function(_0x52f502,_0x4c773a){_0x52f502=_0x52f502-0x16e;let _0x37de16=_0x4c7735[_0x52f502];if(_0x52f5['NQvrnY']===undefined){var _0xd8fbf2=function(_0x1c8a22){const _0x3b3dbe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2013d8='',_0x4bc347='';for(let _0x3b21c5=0x0,_0x428dcb,_0x588559,_0x599f6f=0x0;_0x588559=_0x1c8a22['charAt'](_0x599f6f++);~_0x588559&&(_0x428dcb=_0x3b21c5%0x4?_0x428dcb*0x40+_0x588559:_0x588559,_0x3b21c5++%0x4)?_0x2013d8+=String['fromCharCode'](0xff&_0x428dcb>>(-0x2*_0x3b21c5&0x6)):0x0){_0x588559=_0x3b3dbe['indexOf'](_0x588559);}for(let _0x5d895f=0x0,_0x409006=_0x2013d8['length'];_0x5d895f<_0x409006;_0x5d895f++){_0x4bc347+='%'+('00'+_0x2013d8['charCodeAt'](_0x5d895f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4bc347);};_0x52f5['gRopiU']=_0xd8fbf2,_0x5c874f=arguments,_0x52f5['NQvrnY']=!![];}const _0x21b316=_0x4c7735[0x0],_0x5d91c1=_0x52f502+_0x21b316,_0x2f03b3=_0x5c874f[_0x5d91c1];return!_0x2f03b3?(_0x37de16=_0x52f5['gRopiU'](_0x37de16),_0x5c874f[_0x5d91c1]=_0x37de16):_0x37de16=_0x2f03b3,_0x37de16;},_0x52f5(_0x5c874f,_0x243505);}const dmloaicongSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'stt':Number,'ma_loai_cong':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ten_loai_cong':{'type':String,'required':!![],'maxlength':0x400},'ngay_cong':{'type':Number,'default':0x0},'ngay_phep':{'type':Number,'default':0x0},'ngay_khong_luong':{'type':Number,'default':0x0},'ngay_khong_phep':{'type':Number,'default':0x0},'la_cong_lam_them':{'type':Boolean,'default':![]},'tinh_phu_cap':{'type':Boolean,'default':!![]},'tong_gio_lam_tu':{'type':Number,'default':0x0},'tong_gio_lam_den':{'type':Number,'default':0x0},'nhung_ngay_trong_tuan':[String],'color':{'type':String,'maxlength':0x20},'exfields':Schema[_0xa52fdd(0x185)][_0xa52fdd(0x17c)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0xa52fdd(0x17f)]},'date_updated':{'type':Date,'default':Date['now']},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});if((global[_0xa52fdd(0x16e)]||{})[_0xa52fdd(0x178)]){const AkmsVD=_0xa52fdd(0x180)['split']('|');let XmwSyQ=0x0;while(!![]){switch(AkmsVD[XmwSyQ++]){case'0':dmloaicongSchema['index']({'id_app':0x1,'ma_loai_cong':0x1},{'unique':!![]});continue;case'1':dmloaicongSchema[_0xa52fdd(0x176)]({'ten_loai_cong':0x1});continue;case'2':dmloaicongSchema[_0xa52fdd(0x176)]({'ma_loai_cong':_0xa52fdd(0x17e),'ten_loai_cong':_0xa52fdd(0x17e)},{'name':_0xa52fdd(0x175)});continue;case'3':dmloaicongSchema[_0xa52fdd(0x176)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'4':dmloaicongSchema[_0xa52fdd(0x176)]({'status':0x1});continue;}break;}}function _0x4c77(){const _0x16af69=['mJeYmte1meLfwgjPra','Bw9KzwXZ','mJi4mtbpzvnTt3e','ngzXD1n1wa','y29UzMLNCW','mJm2nwDXwxrQqG','mZeYogvTAg5nvG','CMvMzxjLBMnLs2v5CW','mZuYmdi1rKPRsxvO','ntCZm0nywLf5Cq','Bw9KzwW','zg1SB2fPy29Uz19PBMrLEf90zxH0','Aw5KzxG','zxHWB3j0CW','y3jLyxrLsw5KzxHLCW','BwfFBg9HAv9JB25N','mZC3mJG4mxDezwnjCq','mZi0mJCWmfL3zxbtsq','twL4zwq','ndrAwxrlCvC','Dgv4Da','BM93','mhWXFdj8nhWZ','mtqYntaZs0frrefY','y2HHBwnVBMC','tCoJigXV4BQHAsbJW7rUzYb7E1zbtfvfFx0GXjhdOYbWAmoHDcbZAw5OigtHU68GBgNHU4D1','zg1SB2fPy29UzW','vhLWzxm'];_0x4c77=function(){return _0x16af69;};return _0x4c77();}const model=mongoose[_0xa52fdd(0x187)][_0xa52fdd(0x184)]||mongoose[_0xa52fdd(0x174)]('dmloaicong',dmloaicongSchema);model[_0xa52fdd(0x171)]={'ma_loai_cong':[{'model':_0xa52fdd(0x182),'key':_0xa52fdd(0x179),'error':_0xa52fdd(0x183)}]},module[_0xa52fdd(0x177)]=model;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const dmloaitaskSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
(global.configs||{}).createIndexes&&(dmloaitaskSchema.index({id_app:1,ma_loai_cv:1},{unique:!0}),dmloaitaskSchema.index({ten_loai_cv:1}),dmloaitaskSchema.index({ma_loai_cv:"text",ten_loai_cv:"text"},{name:"dmloaitask_index_text"}),dmloaitaskSchema.index({status:1}),dmloaitaskSchema.index({user_created:1,visible_to:1,visible_to_users:1}));module.exports=mongoose.models.dmloaitask||mongoose.model("dmloaitask",dmloaitaskSchema);
|
|
1
|
+
function _0x11d4(){const _0x2535b8=['mtC2ywPiqMTj','ndm1mZrAt01uwKO','mtu0mtiWDhvLv09w','mJKWmdvNC0npvvC','y3jLyxrLsw5KzxHLCW','mJK2nZeYnejuDeDlrW','Dgv4Da','otu0sefxCvPP','ndjWt1DczLu','BM93','zg1SB2fPDgfZAW','Bw9KzwXZ','nZGXy0nuDhbi','C3bSAxq','y29UzMLNCW','mtqXndD4vvbZC3e','zg1SB2fPDgfZA19PBMrLEf90zxH0','Bw9KzwW','nJiXnJy4zvzLEKDL','Aw5KzxG','mZmXodi4mMzwBez5sq'];_0x11d4=function(){return _0x2535b8;};return _0x11d4();}const _0x42762d=_0x2a3f;(function(_0x1e955e,_0x18c31c){const _0x1df0d1=_0x2a3f,_0xe3bd74=_0x1e955e();while(!![]){try{const _0x47afe9=-parseInt(_0x1df0d1(0x1b5))/0x1+parseInt(_0x1df0d1(0x1b9))/0x2*(parseInt(_0x1df0d1(0x1ab))/0x3)+-parseInt(_0x1df0d1(0x1bd))/0x4+-parseInt(_0x1df0d1(0x1bb))/0x5*(-parseInt(_0x1df0d1(0x1aa))/0x6)+parseInt(_0x1df0d1(0x1b2))/0x7*(-parseInt(_0x1df0d1(0x1b8))/0x8)+-parseInt(_0x1df0d1(0x1b7))/0x9+-parseInt(_0x1df0d1(0x1ba))/0xa*(-parseInt(_0x1df0d1(0x1af))/0xb);if(_0x47afe9===_0x18c31c)break;else _0xe3bd74['push'](_0xe3bd74['shift']());}catch(_0x2c80ce){_0xe3bd74['push'](_0xe3bd74['shift']());}}}(_0x11d4,0x84fe4));const dmloaitaskSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_loai_cv':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ten_loai_cv':{'type':String,'required':!![],'maxlength':0x400},'he_so':Number,'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x42762d(0x1ac)]},'date_updated':{'type':Date,'default':Date[_0x42762d(0x1ac)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});function _0x2a3f(_0x34118b,_0x47444a){const _0x11d40e=_0x11d4();return _0x2a3f=function(_0x2a3ffd,_0x14193f){_0x2a3ffd=_0x2a3ffd-0x1a9;let _0x5839e6=_0x11d40e[_0x2a3ffd];if(_0x2a3f['TjuJDs']===undefined){var _0x3226b1=function(_0x21bfe5){const _0x36803f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c5d98='',_0xf35997='';for(let _0x250940=0x0,_0x457fc1,_0xf70676,_0x325254=0x0;_0xf70676=_0x21bfe5['charAt'](_0x325254++);~_0xf70676&&(_0x457fc1=_0x250940%0x4?_0x457fc1*0x40+_0xf70676:_0xf70676,_0x250940++%0x4)?_0x4c5d98+=String['fromCharCode'](0xff&_0x457fc1>>(-0x2*_0x250940&0x6)):0x0){_0xf70676=_0x36803f['indexOf'](_0xf70676);}for(let _0x7a384d=0x0,_0x205b0a=_0x4c5d98['length'];_0x7a384d<_0x205b0a;_0x7a384d++){_0xf35997+='%'+('00'+_0x4c5d98['charCodeAt'](_0x7a384d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xf35997);};_0x2a3f['vgdQvx']=_0x3226b1,_0x34118b=arguments,_0x2a3f['TjuJDs']=!![];}const _0x6a6087=_0x11d40e[0x0],_0x385b6f=_0x2a3ffd+_0x6a6087,_0x600bcb=_0x34118b[_0x385b6f];return!_0x600bcb?(_0x5839e6=_0x2a3f['vgdQvx'](_0x5839e6),_0x34118b[_0x385b6f]=_0x5839e6):_0x5839e6=_0x600bcb,_0x5839e6;},_0x2a3f(_0x34118b,_0x47444a);}if((global[_0x42762d(0x1b1)]||{})[_0x42762d(0x1bc)]){const WsJTvY='1|2|4|3|0'[_0x42762d(0x1b0)]('|');let WhdwhT=0x0;while(!![]){switch(WsJTvY[WhdwhT++]){case'0':dmloaitaskSchema[_0x42762d(0x1b6)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'1':dmloaitaskSchema[_0x42762d(0x1b6)]({'id_app':0x1,'ma_loai_cv':0x1},{'unique':!![]});continue;case'2':dmloaitaskSchema[_0x42762d(0x1b6)]({'ten_loai_cv':0x1});continue;case'3':dmloaitaskSchema[_0x42762d(0x1b6)]({'status':0x1});continue;case'4':dmloaitaskSchema[_0x42762d(0x1b6)]({'ma_loai_cv':_0x42762d(0x1a9),'ten_loai_cv':_0x42762d(0x1a9)},{'name':_0x42762d(0x1b3)});continue;}break;}}module['exports']=mongoose[_0x42762d(0x1ae)]['dmloaitask']||mongoose[_0x42762d(0x1b4)](_0x42762d(0x1ad),dmloaitaskSchema);
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const dmloaitsSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
(global.configs||{}).createIndexes&&(dmloaitsSchema.index({id_app:1,ma_loai_ts:1},{unique:!0}),dmloaitsSchema.index({ten_loai_ts:1}),dmloaitsSchema.index({ma_loai_ts:"text",ten_loai_ts:"text"},{name:"dmloaits_index_text"}),dmloaitsSchema.index({status:1}),dmloaitsSchema.index({user_created:1,visible_to:1,visible_to_users:1}));module.exports=mongoose.models.dmloaits||mongoose.model("dmloaits",dmloaitsSchema);
|
|
1
|
+
const _0x2b6ff8=_0x1106;function _0x1106(_0x150255,_0x4d9964){const _0x1bbfae=_0x1bbf();return _0x1106=function(_0x110635,_0x19c834){_0x110635=_0x110635-0xd0;let _0x55188b=_0x1bbfae[_0x110635];if(_0x1106['jqaJkU']===undefined){var _0x9943be=function(_0x632bcf){const _0x4021de='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x349856='',_0x5add3c='';for(let _0x473fd0=0x0,_0x8de0a6,_0x4306eb,_0x5dbcb5=0x0;_0x4306eb=_0x632bcf['charAt'](_0x5dbcb5++);~_0x4306eb&&(_0x8de0a6=_0x473fd0%0x4?_0x8de0a6*0x40+_0x4306eb:_0x4306eb,_0x473fd0++%0x4)?_0x349856+=String['fromCharCode'](0xff&_0x8de0a6>>(-0x2*_0x473fd0&0x6)):0x0){_0x4306eb=_0x4021de['indexOf'](_0x4306eb);}for(let _0x44683d=0x0,_0x1b8942=_0x349856['length'];_0x44683d<_0x1b8942;_0x44683d++){_0x5add3c+='%'+('00'+_0x349856['charCodeAt'](_0x44683d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5add3c);};_0x1106['yXytHP']=_0x9943be,_0x150255=arguments,_0x1106['jqaJkU']=!![];}const _0x27be6e=_0x1bbfae[0x0],_0x4214ea=_0x110635+_0x27be6e,_0x5f499d=_0x150255[_0x4214ea];return!_0x5f499d?(_0x55188b=_0x1106['yXytHP'](_0x55188b),_0x150255[_0x4214ea]=_0x55188b):_0x55188b=_0x5f499d,_0x55188b;},_0x1106(_0x150255,_0x4d9964);}function _0x1bbf(){const _0x251a46=['mJm0mJqZr3jotxzH','Bw9KzwXZ','mJbxD3D0Deu','mZKYndC2veDdDwjA','zg1SB2fPDhnFAw5KzxHFDgv4Da','nJy1ndCYuKzYA0Lw','zxHWB3j0CW','nertCgzczq','mJbmAhbgvMq','mvPKwgrLyq','mtGYnJyYCMLWqK1I','mta0BuHzt29U','mtfrwLDOuu0','BM93','odi1nZK4mfzkr1DKBa','Dgv4Da','mtq3nZq5yw1gvuLH','zg1SB2fPDhm','ntK2mJqXr0LpCvrf','odmYChniy3zo','y29UzMLNCW','Aw5KzxG'];_0x1bbf=function(){return _0x251a46;};return _0x1bbf();}(function(_0x4e7280,_0x367cde){const _0x93c303=_0x1106,_0x5a8aad=_0x4e7280();while(!![]){try{const _0x5a759a=-parseInt(_0x93c303(0xda))/0x1*(parseInt(_0x93c303(0xdb))/0x2)+parseInt(_0x93c303(0xd1))/0x3*(-parseInt(_0x93c303(0xd8))/0x4)+-parseInt(_0x93c303(0xd3))/0x5*(parseInt(_0x93c303(0xd6))/0x6)+-parseInt(_0x93c303(0xe1))/0x7*(parseInt(_0x93c303(0xdc))/0x8)+parseInt(_0x93c303(0xe3))/0x9*(parseInt(_0x93c303(0xd9))/0xa)+parseInt(_0x93c303(0xdd))/0xb*(-parseInt(_0x93c303(0xdf))/0xc)+parseInt(_0x93c303(0xe4))/0xd*(parseInt(_0x93c303(0xd4))/0xe);if(_0x5a759a===_0x367cde)break;else _0x5a8aad['push'](_0x5a8aad['shift']());}catch(_0x56bf73){_0x5a8aad['push'](_0x5a8aad['shift']());}}}(_0x1bbf,0x55b52));const dmloaitsSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_loai_ts':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ten_loai_ts':{'type':String,'required':!![],'maxlength':0x400},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x2b6ff8(0xde)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});(global[_0x2b6ff8(0xe5)]||{})['createIndexes']&&(dmloaitsSchema[_0x2b6ff8(0xd0)]({'id_app':0x1,'ma_loai_ts':0x1},{'unique':!![]}),dmloaitsSchema[_0x2b6ff8(0xd0)]({'ten_loai_ts':0x1}),dmloaitsSchema[_0x2b6ff8(0xd0)]({'ma_loai_ts':'text','ten_loai_ts':_0x2b6ff8(0xe0)},{'name':_0x2b6ff8(0xd5)}),dmloaitsSchema[_0x2b6ff8(0xd0)]({'status':0x1}),dmloaitsSchema[_0x2b6ff8(0xd0)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));module[_0x2b6ff8(0xd7)]=mongoose[_0x2b6ff8(0xd2)][_0x2b6ff8(0xe2)]||mongoose['model'](_0x2b6ff8(0xe2),dmloaitsSchema);
|
package/server/models/dmnckkm.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const dmnckkmSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
status:{type:Boolean,default:!0},shared:{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:""}},{toJSON:{virtuals:!0}});
|
|
3
|
-
(global.configs||{}).createIndexes&&(dmnckkmSchema.index({id_app:1,ten_nhom:1,status:1}),dmnckkmSchema.index({id_app:1,nh_me:1}),dmnckkmSchema.index({id_app:1,loai_cs:1}),dmnckkmSchema.index({id_app:1,phuong_phap_ap_dung:1,status:1}),dmnckkmSchema.index({id_app:1,sysorder:1}),dmnckkmSchema.index({id_app:1,loai_nh:1}),dmnckkmSchema.index({id_app:1,group_kind:1}),dmnckkmSchema.index({id_app:1,bac:1}),dmnckkmSchema.index({id_app:1,description:1,status:1}),dmnckkmSchema.index({id_app:1,ten_nhom:"text",
|
|
4
|
-
nh_me:"text",description:"text"},{name:"dmnckkm_index_text"}),dmnckkmSchema.index({id_app:1,status:1}),dmnckkmSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,status:1}));const model=mongoose.models.dmnckkm||mongoose.model("dmnckkm",dmnckkmSchema);module.exports=model;
|
|
1
|
+
const _0x4c65ee=_0x38aa;function _0x38aa(_0x5212bb,_0x5ae680){const _0x49fd8d=_0x49fd();return _0x38aa=function(_0x38aaa1,_0x4e7d6a){_0x38aaa1=_0x38aaa1-0x14f;let _0x269077=_0x49fd8d[_0x38aaa1];if(_0x38aa['OCyhYK']===undefined){var _0x3378b7=function(_0x58533e){const _0x42957c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x971161='',_0x29285e='';for(let _0x23d372=0x0,_0x33d501,_0x12d641,_0x343150=0x0;_0x12d641=_0x58533e['charAt'](_0x343150++);~_0x12d641&&(_0x33d501=_0x23d372%0x4?_0x33d501*0x40+_0x12d641:_0x12d641,_0x23d372++%0x4)?_0x971161+=String['fromCharCode'](0xff&_0x33d501>>(-0x2*_0x23d372&0x6)):0x0){_0x12d641=_0x42957c['indexOf'](_0x12d641);}for(let _0x9ddd30=0x0,_0x573e35=_0x971161['length'];_0x9ddd30<_0x573e35;_0x9ddd30++){_0x29285e+='%'+('00'+_0x971161['charCodeAt'](_0x9ddd30)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x29285e);};_0x38aa['oYjzTZ']=_0x3378b7,_0x5212bb=arguments,_0x38aa['OCyhYK']=!![];}const _0xda602f=_0x49fd8d[0x0],_0xabc244=_0x38aaa1+_0xda602f,_0x218d70=_0x5212bb[_0xabc244];return!_0x218d70?(_0x269077=_0x38aa['oYjzTZ'](_0x269077),_0x5212bb[_0xabc244]=_0x269077):_0x269077=_0x218d70,_0x269077;},_0x38aa(_0x5212bb,_0x5ae680);}(function(_0x3d3597,_0x17f358){const _0x2d90e4=_0x38aa,_0x3e2497=_0x3d3597();while(!![]){try{const _0x21bd34=parseInt(_0x2d90e4(0x158))/0x1*(parseInt(_0x2d90e4(0x157))/0x2)+parseInt(_0x2d90e4(0x151))/0x3*(-parseInt(_0x2d90e4(0x16c))/0x4)+parseInt(_0x2d90e4(0x14f))/0x5*(-parseInt(_0x2d90e4(0x163))/0x6)+-parseInt(_0x2d90e4(0x16a))/0x7+parseInt(_0x2d90e4(0x166))/0x8+-parseInt(_0x2d90e4(0x154))/0x9+parseInt(_0x2d90e4(0x159))/0xa;if(_0x21bd34===_0x17f358)break;else _0x3e2497['push'](_0x3e2497['shift']());}catch(_0x469e83){_0x3e2497['push'](_0x3e2497['shift']());}}}(_0x49fd,0x6249b));const dmnckkmSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'stt':{'type':Number,'default':0x0},'loai_cs':{'type':String,'default':_0x4c65ee(0x16d),'enum':[_0x4c65ee(0x16d),_0x4c65ee(0x164),_0x4c65ee(0x168),_0x4c65ee(0x152)]},'ten_nhom':{'type':String,'required':!![],'maxlength':0x400},'phuong_phap_ap_dung':{'type':String,'default':_0x4c65ee(0x161),'enum':[_0x4c65ee(0x15d),'TOI_DA',_0x4c65ee(0x15c),_0x4c65ee(0x15a),_0x4c65ee(0x161)]},'nh_me':{'type':String,'maxlength':0x400},'loai_nh':{'type':Number,'default':0x1},'bac':Number,'sysorder':String,'description':String,'exfields':Schema['Types'][_0x4c65ee(0x15b)],'status':{'type':Boolean,'default':!![]},'shared':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x4c65ee(0x153)]},'date_updated':{'type':Date,'default':Date[_0x4c65ee(0x153)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}},{'toJSON':{'virtuals':!![]}});if((global[_0x4c65ee(0x156)]||{})[_0x4c65ee(0x155)]){const KhiVKN=_0x4c65ee(0x16b)[_0x4c65ee(0x15f)]('|');let MDQHDy=0x0;while(!![]){switch(KhiVKN[MDQHDy++]){case'0':dmnckkmSchema['index']({'id_app':0x1,'group_kind':0x1});continue;case'1':dmnckkmSchema[_0x4c65ee(0x15e)]({'id_app':0x1,'phuong_phap_ap_dung':0x1,'status':0x1});continue;case'2':dmnckkmSchema['index']({'id_app':0x1,'loai_nh':0x1});continue;case'3':dmnckkmSchema['index']({'id_app':0x1,'sysorder':0x1});continue;case'4':dmnckkmSchema[_0x4c65ee(0x15e)]({'id_app':0x1,'bac':0x1});continue;case'5':dmnckkmSchema['index']({'id_app':0x1,'ten_nhom':0x1,'status':0x1});continue;case'6':dmnckkmSchema[_0x4c65ee(0x15e)]({'id_app':0x1,'status':0x1});continue;case'7':dmnckkmSchema[_0x4c65ee(0x15e)]({'id_app':0x1,'ten_nhom':_0x4c65ee(0x150),'nh_me':'text','description':_0x4c65ee(0x150)},{'name':_0x4c65ee(0x167)});continue;case'8':dmnckkmSchema[_0x4c65ee(0x15e)]({'id_app':0x1,'description':0x1,'status':0x1});continue;case'9':dmnckkmSchema[_0x4c65ee(0x15e)]({'id_app':0x1,'nh_me':0x1});continue;case'10':dmnckkmSchema[_0x4c65ee(0x15e)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1});continue;case'11':dmnckkmSchema[_0x4c65ee(0x15e)]({'id_app':0x1,'loai_cs':0x1});continue;}break;}}function _0x49fd(){const _0x3c5393=['zg1Uy2TRBv9PBMrLEf90zxH0','re1dseLfveTiqvvira','Bw9KzwXZ','mtmWntu3A2z4y3jX','nxW5FdeXFdf8m3WYFdb8nhW4FdD8nNWXma','mJu3ody4ohvdseTcqG','re1dseLfveTiqvu','mJm5otbUy29VuxC','Dgv4Da','m0rjCNb2rq','re1lsfvzru5nquLira','BM93','mteYnZi4nNfizvvmAG','y3jLyxrLsw5KzxHLCW','y29UzMLNCW','mKnvzu5VqW','mZa1ntnLBen0zfC','mty4mJm1ntbUBKvVv2C','te9bsv9uuLu','twL4zwq','q09orW','ve9jx1risuvv','Aw5KzxG','C3bSAxq','zxHWB3j0CW','u1rux1vvx1rjru4','zg1Uy2TRBq','mtaWmMvir0DyzG','re1lsfvzru5nquK','Bw9KzwW','mJiZnJe3nLjJBgfWwG'];_0x49fd=function(){return _0x3c5393;};return _0x49fd();}const model=mongoose[_0x4c65ee(0x169)]['dmnckkm']||mongoose[_0x4c65ee(0x165)](_0x4c65ee(0x162),dmnckkmSchema);module[_0x4c65ee(0x160)]=model;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const dmnghiepvuSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
user_created:{type:String,default:""},user_updated:{type:String,default:""}});
|
|
3
|
-
(global.configs||{}).createIndexes&&(dmnghiepvuSchema.index({id_app:1,ma_ct:1,ma_nghiep_vu:1,ten_nghiep_vu:1}),dmnghiepvuSchema.index({id_app:1,ma_ct:1,ma_nghiep_vu:1,ten_nghiep_vu:1,status:1}),dmnghiepvuSchema.index({id_app:1,tk_no:1}),dmnghiepvuSchema.index({id_app:1,tk_co:1}),dmnghiepvuSchema.index({id_app:1,status:1}),dmnghiepvuSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1}),dmnghiepvuSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,trang_thai:1}),
|
|
4
|
-
dmnghiepvuSchema.index({id_app:1,trang_thai:1}),dmnghiepvuSchema.index({id_app:1,ma_nghiep_vu:"text",ten_nghiep_vu:"text",tk_no:"text",tk_co:"text",ma_ct:"text"},{name:"dmnghiepvu_index_text"}));const model=mongoose.models.dmnghiepvu||mongoose.model("dmnghiepvu",dmnghiepvuSchema);module.exports=model;
|
|
1
|
+
const _0x3f18e4=_0x48a5;(function(_0x26f62a,_0xb16050){const _0x20d544=_0x48a5,_0x2db348=_0x26f62a();while(!![]){try{const _0x1fed33=parseInt(_0x20d544(0x1a3))/0x1*(parseInt(_0x20d544(0x1ac))/0x2)+parseInt(_0x20d544(0x19c))/0x3+-parseInt(_0x20d544(0x1a5))/0x4+-parseInt(_0x20d544(0x1a0))/0x5+-parseInt(_0x20d544(0x1a7))/0x6+-parseInt(_0x20d544(0x1a4))/0x7*(-parseInt(_0x20d544(0x1a9))/0x8)+parseInt(_0x20d544(0x19f))/0x9;if(_0x1fed33===_0xb16050)break;else _0x2db348['push'](_0x2db348['shift']());}catch(_0x3d551f){_0x2db348['push'](_0x2db348['shift']());}}}(_0x2d9b,0x30f62));function _0x2d9b(){const _0x11f4f5=['nJm4nJu4mhLgBfzQDa','mtq3mZG2nuzivNnxCa','Aw5KzxG','BM93','otKXwLrXzeDl','nZCYmtiXy2r6yNb0','mtuZode0nhPRu1DhBq','Bw9KzwXZ','mtK0mdeZmfb2Eu9HzW','vhLWzxm','ogHJEeLVEq','twL4zwq','zg1Uz2HPzxb2Dq','ndHttNbnwfy','y3jLyxrLsw5KzxHLCW','zg1Uz2HPzxb2Dv9PBMrLEf90zxH0','Bw9KzwW','mta3oduWowzTvMThuq','y29UzMLNCW','Dgv4Da'];_0x2d9b=function(){return _0x11f4f5;};return _0x2d9b();}const dmnghiepvuSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_ct':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x40,'trim':!![]},'ma_nghiep_vu':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x40,'trim':!![]},'ten_nghiep_vu':String,'tk_no':{'type':String,'trim':!![]},'tk_co':{'type':String,'trim':!![]},'trang_thai':{'type':String,'maxlength':0x20},'stt':{'type':Number,'default':0x0},'exfields':Schema[_0x3f18e4(0x1a8)][_0x3f18e4(0x1aa)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x3f18e4(0x1a2)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});(global[_0x3f18e4(0x19d)]||{})[_0x3f18e4(0x1ad)]&&(dmnghiepvuSchema[_0x3f18e4(0x1a1)]({'id_app':0x1,'ma_ct':0x1,'ma_nghiep_vu':0x1,'ten_nghiep_vu':0x1}),dmnghiepvuSchema['index']({'id_app':0x1,'ma_ct':0x1,'ma_nghiep_vu':0x1,'ten_nghiep_vu':0x1,'status':0x1}),dmnghiepvuSchema[_0x3f18e4(0x1a1)]({'id_app':0x1,'tk_no':0x1}),dmnghiepvuSchema[_0x3f18e4(0x1a1)]({'id_app':0x1,'tk_co':0x1}),dmnghiepvuSchema[_0x3f18e4(0x1a1)]({'id_app':0x1,'status':0x1}),dmnghiepvuSchema[_0x3f18e4(0x1a1)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}),dmnghiepvuSchema['index']({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'trang_thai':0x1}),dmnghiepvuSchema[_0x3f18e4(0x1a1)]({'id_app':0x1,'trang_thai':0x1}),dmnghiepvuSchema[_0x3f18e4(0x1a1)]({'id_app':0x1,'ma_nghiep_vu':_0x3f18e4(0x19e),'ten_nghiep_vu':'text','tk_no':_0x3f18e4(0x19e),'tk_co':_0x3f18e4(0x19e),'ma_ct':_0x3f18e4(0x19e)},{'name':_0x3f18e4(0x1ae)}));function _0x48a5(_0x50e43b,_0x2d443b){const _0x2d9bf5=_0x2d9b();return _0x48a5=function(_0x48a5a0,_0x568d2f){_0x48a5a0=_0x48a5a0-0x19c;let _0x3289f8=_0x2d9bf5[_0x48a5a0];if(_0x48a5['SewcDa']===undefined){var _0xc85d43=function(_0x5cf081){const _0x354586='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e5d70='',_0x4850e9='';for(let _0x4775c3=0x0,_0x80a8a1,_0x3c6a67,_0x40086c=0x0;_0x3c6a67=_0x5cf081['charAt'](_0x40086c++);~_0x3c6a67&&(_0x80a8a1=_0x4775c3%0x4?_0x80a8a1*0x40+_0x3c6a67:_0x3c6a67,_0x4775c3++%0x4)?_0x5e5d70+=String['fromCharCode'](0xff&_0x80a8a1>>(-0x2*_0x4775c3&0x6)):0x0){_0x3c6a67=_0x354586['indexOf'](_0x3c6a67);}for(let _0x14ddbf=0x0,_0x5bffe1=_0x5e5d70['length'];_0x14ddbf<_0x5bffe1;_0x14ddbf++){_0x4850e9+='%'+('00'+_0x5e5d70['charCodeAt'](_0x14ddbf)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4850e9);};_0x48a5['zDgkWE']=_0xc85d43,_0x50e43b=arguments,_0x48a5['SewcDa']=!![];}const _0x1cab74=_0x2d9bf5[0x0],_0x3b4444=_0x48a5a0+_0x1cab74,_0x5b1258=_0x50e43b[_0x3b4444];return!_0x5b1258?(_0x3289f8=_0x48a5['zDgkWE'](_0x3289f8),_0x50e43b[_0x3b4444]=_0x3289f8):_0x3289f8=_0x5b1258,_0x3289f8;},_0x48a5(_0x50e43b,_0x2d443b);}const model=mongoose[_0x3f18e4(0x1a6)][_0x3f18e4(0x1ab)]||mongoose[_0x3f18e4(0x1af)](_0x3f18e4(0x1ab),dmnghiepvuSchema);module['exports']=model;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const dmnguonvonSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
(global.configs||{}).createIndexes&&(dmnguonvonSchema.index({id_app:1,ma_nguon_von:1},{unique:!0}),dmnguonvonSchema.index({ten_nguon_von:1}),dmnguonvonSchema.index({ma_nguon_von:"text",ten_nguon_von:"text"},{name:"dmnguonvon_index_text"}),dmnguonvonSchema.index({status:1}),dmnguonvonSchema.index({user_created:1,visible_to:1,visible_to_users:1}));module.exports=mongoose.models.dmnguonvon||mongoose.model("dmnguonvon",dmnguonvonSchema);
|
|
1
|
+
const _0x5847b6=_0x5439;function _0x522e(){const _0x4b03bb=['Dgv4Da','mtyYmte4og9Nz21hDG','Bw9KzwXZ','mZeYndm3m0P6uvbdsW','ntCWofvMANrHua','Aw5KzxG','mJu3D1LAq0rS','zg1Uz3vVBNzVBG','BM93','mZm3ndmYmMDvzLjzEq','mte5mMHgA2HXuq','nwnNzfH5AG','zxHWB3j0CW','ody3mdKYmgPut0DPwa','Bw9KzwW','y3jLyxrLsw5KzxHLCW','C3bSAxq','zg1Uz3vVBNzVBL9PBMrLEf90zxH0','nhWYFdf8m3WW','mZiZmZqZBuLetLDv','mJGZmtrdDwvpAge'];_0x522e=function(){return _0x4b03bb;};return _0x522e();}(function(_0x14a606,_0x33138c){const _0x937a34=_0x5439,_0x942ce6=_0x14a606();while(!![]){try{const _0x31a382=parseInt(_0x937a34(0x124))/0x1*(-parseInt(_0x937a34(0x122))/0x2)+parseInt(_0x937a34(0x11c))/0x3+parseInt(_0x937a34(0x11f))/0x4*(-parseInt(_0x937a34(0x114))/0x5)+parseInt(_0x937a34(0x112))/0x6+parseInt(_0x937a34(0x121))/0x7+-parseInt(_0x937a34(0x113))/0x8*(parseInt(_0x937a34(0x11d))/0x9)+parseInt(_0x937a34(0x116))/0xa;if(_0x31a382===_0x33138c)break;else _0x942ce6['push'](_0x942ce6['shift']());}catch(_0x2ec141){_0x942ce6['push'](_0x942ce6['shift']());}}}(_0x522e,0x5bd06));const dmnguonvonSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_nguon_von':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ten_nguon_von':{'type':String,'required':!![],'maxlength':0x400},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x5847b6(0x111)]},'date_updated':{'type':Date,'default':Date[_0x5847b6(0x111)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});function _0x5439(_0xa3a6d2,_0x546c3a){const _0x522e90=_0x522e();return _0x5439=function(_0x54398d,_0x516b03){_0x54398d=_0x54398d-0x110;let _0x2cd4eb=_0x522e90[_0x54398d];if(_0x5439['uNzrjr']===undefined){var _0x4f4528=function(_0x50aa1a){const _0x203491='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x55712c='',_0x4261d7='';for(let _0x19f7b0=0x0,_0x583d4f,_0x2e79b8,_0x332f0a=0x0;_0x2e79b8=_0x50aa1a['charAt'](_0x332f0a++);~_0x2e79b8&&(_0x583d4f=_0x19f7b0%0x4?_0x583d4f*0x40+_0x2e79b8:_0x2e79b8,_0x19f7b0++%0x4)?_0x55712c+=String['fromCharCode'](0xff&_0x583d4f>>(-0x2*_0x19f7b0&0x6)):0x0){_0x2e79b8=_0x203491['indexOf'](_0x2e79b8);}for(let _0x5879cd=0x0,_0x562474=_0x55712c['length'];_0x5879cd<_0x562474;_0x5879cd++){_0x4261d7+='%'+('00'+_0x55712c['charCodeAt'](_0x5879cd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4261d7);};_0x5439['JUdLOz']=_0x4f4528,_0xa3a6d2=arguments,_0x5439['uNzrjr']=!![];}const _0x552ee3=_0x522e90[0x0],_0x469561=_0x54398d+_0x552ee3,_0x5ec4ab=_0xa3a6d2[_0x469561];return!_0x5ec4ab?(_0x2cd4eb=_0x5439['JUdLOz'](_0x2cd4eb),_0xa3a6d2[_0x469561]=_0x2cd4eb):_0x2cd4eb=_0x5ec4ab,_0x2cd4eb;},_0x5439(_0xa3a6d2,_0x546c3a);}if((global['configs']||{})[_0x5847b6(0x118)]){const LPRAnP=_0x5847b6(0x11b)[_0x5847b6(0x119)]('|');let fKTqyz=0x0;while(!![]){switch(LPRAnP[fKTqyz++]){case'0':dmnguonvonSchema[_0x5847b6(0x123)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'1':dmnguonvonSchema[_0x5847b6(0x123)]({'ma_nguon_von':_0x5847b6(0x11e),'ten_nguon_von':_0x5847b6(0x11e)},{'name':_0x5847b6(0x11a)});continue;case'2':dmnguonvonSchema[_0x5847b6(0x123)]({'ten_nguon_von':0x1});continue;case'3':dmnguonvonSchema[_0x5847b6(0x123)]({'status':0x1});continue;case'4':dmnguonvonSchema['index']({'id_app':0x1,'ma_nguon_von':0x1},{'unique':!![]});continue;}break;}}module[_0x5847b6(0x115)]=mongoose[_0x5847b6(0x120)][_0x5847b6(0x110)]||mongoose[_0x5847b6(0x117)](_0x5847b6(0x110),dmnguonvonSchema);
|
package/server/models/dmnhnv.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const dmnhnvSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
uppercase:!0,maxlength:1024,trim:!0},exfields:Schema.Types.Mixed,visible_to:{type:Number,default:0},visible_to_users:[String],update_right:[String],delete_right:[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:""},user_updated:{type:String,default:""}});
|
|
3
|
-
(global.configs||{}).createIndexes&&(dmnhnvSchema.index({id_app:1,ma_bp:1,ma_doi:1,ma_to:1,ma_nh_nv:1}),dmnhnvSchema.index({ma_bp:1}),dmnhnvSchema.index({ma_doi:1}),dmnhnvSchema.index({ma_to:1}),dmnhnvSchema.index({ma_nh_nv:1}),dmnhnvSchema.index({ten_nh_nv:1}),dmnhnvSchema.index({phoi_hop:1}),dmnhnvSchema.index({phu_trach:1}),dmnhnvSchema.index({ten_phu_trach:1}),dmnhnvSchema.index({ma_nh_nv:"text",ten_nh_nv:"text",phu_trach:"text",ten_phu_trach:"text"},{name:"dmnhnv_index_text"}),dmnhnvSchema.index({status:1}),
|
|
4
|
-
dmnhnvSchema.index({user_created:1,visible_to:1,visible_to_users:1}));const model=mongoose.models.dmnhnv||mongoose.model("dmnhnv",dmnhnvSchema);model.referenceKeys={ma_nh_nv:[{model:"phieudanhgia",key:"ma_nh_nv",error:"Nh\u00f3m n\u00e0y \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"},{model:"dmnv",key:"ma_nh_nv",error:"Nh\u00f3m n\u00e0y \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"}]};module.exports=model;
|
|
1
|
+
function _0x2cfe(){const _0x3db601=['tMJdS20GBSoGEsdeKCoJihbOW6f0ihnPBMGGzog7RYbSAEg7H3u','ohvdB1rlyW','mtm3mZeZmwP6z1nusG','zg1UAg52','Aw5KzxG','mZiZmZK2nwPHrgzIrG','CMvMzxjLBMnLs2v5CW','nZKYmJeWmgfHterzAG','zg1UDG','mta0rLzesxDI','ndy1otGZvvvJtKr0','y29UzMLNCW','Bw9KzwW','ovnuEvPvzq','otCXmJKZme5LwvDZwa','mtiZmdmXmZDNEKPpCKS','twL4zwq','C3bSAxq','CgHPzxvKyw5Oz2LH','Dgv4Da','mtqWnJy3uK1ktNzt','mtjgBKr2sMC','BM93','Bw9KzwXZ'];_0x2cfe=function(){return _0x3db601;};return _0x2cfe();}const _0x39c210=_0x16ad;(function(_0x3d8f30,_0x27b1d1){const _0x1ae8b9=_0x16ad,_0x556521=_0x3d8f30();while(!![]){try{const _0x18495c=parseInt(_0x1ae8b9(0x8c))/0x1+parseInt(_0x1ae8b9(0x87))/0x2*(-parseInt(_0x1ae8b9(0x86))/0x3)+parseInt(_0x1ae8b9(0x8b))/0x4*(parseInt(_0x1ae8b9(0x8f))/0x5)+parseInt(_0x1ae8b9(0x91))/0x6+-parseInt(_0x1ae8b9(0x94))/0x7*(parseInt(_0x1ae8b9(0x93))/0x8)+-parseInt(_0x1ae8b9(0x97))/0x9*(parseInt(_0x1ae8b9(0x98))/0xa)+-parseInt(_0x1ae8b9(0x99))/0xb;if(_0x18495c===_0x27b1d1)break;else _0x556521['push'](_0x556521['shift']());}catch(_0x4fe38f){_0x556521['push'](_0x556521['shift']());}}}(_0x2cfe,0xb73f0));const dmnhnvSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_bp':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ma_doi':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ma_to':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ma_nh_nv':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ten_nh_nv':{'type':String,'required':!![],'maxlength':0x400},'phu_trach':{'type':String,'uppercase':!![],'maxlength':0x400,'trim':!![]},'ten_phu_trach':String,'phoi_hop':{'type':String,'uppercase':!![],'maxlength':0x400,'trim':!![]},'exfields':Schema['Types'][_0x39c210(0x9a)],'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[_0x39c210(0x88)]},'date_updated':{'type':Date,'default':Date['now']},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});function _0x16ad(_0x32bb79,_0x18d677){const _0x2cfe25=_0x2cfe();return _0x16ad=function(_0x16ad3f,_0x40587c){_0x16ad3f=_0x16ad3f-0x86;let _0xfec8ce=_0x2cfe25[_0x16ad3f];if(_0x16ad['OENIKQ']===undefined){var _0x485ad1=function(_0x2ef6cc){const _0x196de4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5b7967='',_0x59020a='';for(let _0x3be264=0x0,_0x32e3e0,_0x37ea84,_0x3d9097=0x0;_0x37ea84=_0x2ef6cc['charAt'](_0x3d9097++);~_0x37ea84&&(_0x32e3e0=_0x3be264%0x4?_0x32e3e0*0x40+_0x37ea84:_0x37ea84,_0x3be264++%0x4)?_0x5b7967+=String['fromCharCode'](0xff&_0x32e3e0>>(-0x2*_0x3be264&0x6)):0x0){_0x37ea84=_0x196de4['indexOf'](_0x37ea84);}for(let _0x245671=0x0,_0x3c0888=_0x5b7967['length'];_0x245671<_0x3c0888;_0x245671++){_0x59020a+='%'+('00'+_0x5b7967['charCodeAt'](_0x245671)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x59020a);};_0x16ad['LjDNkC']=_0x485ad1,_0x32bb79=arguments,_0x16ad['OENIKQ']=!![];}const _0x547dd8=_0x2cfe25[0x0],_0xb8c8b2=_0x16ad3f+_0x547dd8,_0x3a83bf=_0x32bb79[_0xb8c8b2];return!_0x3a83bf?(_0xfec8ce=_0x16ad['LjDNkC'](_0xfec8ce),_0x32bb79[_0xb8c8b2]=_0xfec8ce):_0xfec8ce=_0x3a83bf,_0xfec8ce;},_0x16ad(_0x32bb79,_0x18d677);}if((global[_0x39c210(0x95)]||{})['createIndexes']){const qpUkOc='5|3|1|7|9|4|0|8|2|10|11|6'[_0x39c210(0x9b)]('|');let cWUhUv=0x0;while(!![]){switch(qpUkOc[cWUhUv++]){case'0':dmnhnvSchema[_0x39c210(0x8e)]({'phoi_hop':0x1});continue;case'1':dmnhnvSchema[_0x39c210(0x8e)]({'ma_doi':0x1});continue;case'2':dmnhnvSchema[_0x39c210(0x8e)]({'ten_phu_trach':0x1});continue;case'3':dmnhnvSchema[_0x39c210(0x8e)]({'ma_bp':0x1});continue;case'4':dmnhnvSchema['index']({'ten_nh_nv':0x1});continue;case'5':dmnhnvSchema['index']({'id_app':0x1,'ma_bp':0x1,'ma_doi':0x1,'ma_to':0x1,'ma_nh_nv':0x1});continue;case'6':dmnhnvSchema[_0x39c210(0x8e)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'7':dmnhnvSchema[_0x39c210(0x8e)]({'ma_to':0x1});continue;case'8':dmnhnvSchema[_0x39c210(0x8e)]({'phu_trach':0x1});continue;case'9':dmnhnvSchema['index']({'ma_nh_nv':0x1});continue;case'10':dmnhnvSchema[_0x39c210(0x8e)]({'ma_nh_nv':_0x39c210(0x9d),'ten_nh_nv':'text','phu_trach':_0x39c210(0x9d),'ten_phu_trach':'text'},{'name':'dmnhnv_index_text'});continue;case'11':dmnhnvSchema[_0x39c210(0x8e)]({'status':0x1});continue;}break;}}const model=mongoose[_0x39c210(0x89)]['dmnhnv']||mongoose[_0x39c210(0x96)](_0x39c210(0x8d),dmnhnvSchema);model[_0x39c210(0x90)]={'ma_nh_nv':[{'model':_0x39c210(0x9c),'key':'ma_nh_nv','error':_0x39c210(0x8a)},{'model':_0x39c210(0x92),'key':'ma_nh_nv','error':_0x39c210(0x8a)}]},module['exports']=model;
|
package/server/models/dmnv.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
const bpSchema=new Schema({ma_bp:{type:String,uppercase:!0,trim:!0,required:!0,maxlength:32},chuc_vu:{type:String,trim:!0,maxlength:1024},cong_viec:{type:String,trim:!0,maxlength:1024},phu_trach:{type:String,maxlength:1024},tu_ngay:{type:Date,default:Date.now},den_ngay:{type:Date},line:{type:Number,default:0}}),dmnvSchema=new Schema({id_app:{type:String,required:!0,maxlength:1024},ma_nv:{type:String,required:!0,uppercase:!0,trim:!0,maxlength:32},ten_nv:{type:String,required:"Y\u00eau c\u1ea7u nh\u1eadp t\u00ean nh\u00e2n vi\u00ean",
|
|
2
|
-
trim:!0,maxlength:1024},device_user_id:String,ma_so_thue:{type:String,maxlength:32},phu_trach:{type:String,maxlength:1024,trim:!0},nh_nv:{type:String,trim:!0,maxlength:32},ma_nh_nv:{type:String,uppercase:!0,trim:!0,default:"",maxlength:32},ma_kh:String,ten_kh:String,ma_doi:{type:String,uppercase:!0,trim:!0,default:"",maxlength:32},ma_to:{type:String,uppercase:!0,trim:!0,default:"",maxlength:32},nguoi_danh_gia:[{ma_doi_tuong_danh_gia:String,user:String,line:Number}],ma_bp:{type:String,uppercase:!0,
|
|
3
|
-
trim:!0,default:"",maxlength:32},ten_bp:String,ma_kho:{type:String,uppercase:!0,trim:!0,default:"",maxlength:32},ten_kho:String,chuc_vu:{type:String,trim:!0,maxlength:1024},cong_viec:{type:String,trim:!0,maxlength:1024},cong_viec_chi_tiet:{type:String,trim:!0},trinh_do_hoc_van:String,trinh_do_chuyen_mon:String,bo_phan:[bpSchema],noi_sinh:{type:String,maxlength:1024},ngay_sinh:{type:Date},nguyen_quan:{type:String,maxlength:1024},ho_khau:{type:String,maxlength:1024},dia_chi:{type:String,maxlength:1024},
|
|
4
|
-
dien_thoai:{type:String,maxlength:1024},fax:{type:String,maxlength:1024},email:{type:String,maxlength:1024},website:{type:String,maxlength:1024},dan_toc:{type:String,maxlength:1024},ton_giao:{type:String,maxlength:1024},cmnd:{type:String,maxlength:1024},ngay_cap:Date,noi_cap:{type:String,maxlength:1024},gioi_tinh:{type:String,maxlength:1024},tinh_trang_hon_nhan:{type:String,maxlength:1024},quoc_tich:{type:String,maxlength:1024},lam_viec:{type:Boolean,default:!0},cham_cong:{type:Boolean,default:!0},
|
|
5
|
-
tinh_luong:{type:Boolean,default:!0},bhxh:{type:Boolean,default:!0},bhyt:{type:Boolean,default:!0},bhtn:{type:Boolean,default:!0},luong_co_ban:{type:Number,default:0},luong_bhxh:{type:Number,default:0},ngay_tinh_bhxh:Date,phu_cap:[],luong_thu_viec:{type:Number,default:0},thu_viec_tu_ngay:Date,thu_viec_den_ngay:Date,ngay_bat_dau_lam:Date,ngay_nghi_viec:Date,so_ngay_duoc_nghi_phep_nam:Number,ttncn_mst:String,ttncn_so_nguoi_phu_thuoc:Number,ttncn_muc_gt_phu_thuoc:Number,ttncn_so_thang_gt_ban_than:Number,
|
|
6
|
-
ttncn_muc_gt_ban_than:Number,so_tk_ngan_hang:String,ten_chu_tk_ngan_hang:String,phat_hanh_boi_ngan_hang:String,user:{type:String,lowercase:!0,maxlength:1024,set:function($user$$){this._previous_user=this.user;return $user$$}},group_user:String,default_password:{type:String,maxlength:1024},ghi_chu:{type:String,trim:!0,maxlength:1024},picture:String,location:Schema.Types.Mixed,exfields:Schema.Types.Mixed,status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,
|
|
7
|
-
default:Date.now},user_created:{type:String},user_updated:{type:String},visible_to:{type:Number,default:0},visible_to_users:[String]},{toJSON:{virtuals:!0}});
|
|
8
|
-
dmnvSchema.pre("save",function($next$$){if(!this.user)return $next$$();const $self$$=this;this.isNew||this.user!=this._previous_user?mongoose.models.dmnv.countDocuments({id_app:this.id_app,user:this.user,ma_nv:{$ne:this.ma_nv}},($e$$,$count$$)=>{$count$$>0?$next$$(Error(`Ng\u01b0\u1eddi s\u1eed d\u1ee5ng '${$self$$.user}' \u0111\u00e3 \u0111\u01b0\u1ee3c g\u1eafn cho m\u1ed9t nh\u00e2n vi\u00ean kh\u00e1c`)):$next$$()}):$next$$()});
|
|
9
|
-
(global.configs||{}).createIndexes&&(dmnvSchema.index({id_app:1,ma_nv:1},{unique:!0}),dmnvSchema.index({id_app:1,status:1}),dmnvSchema.index({id_app:1,phu_trach:1,status:1}),dmnvSchema.index({id_app:1,ma_bp:1,ten_bp:1,status:1}),dmnvSchema.index({id_app:1,ma_kh:1,ten_kh:1,status:1}),dmnvSchema.index({id_app:1,nh_nv:1,status:1}),dmnvSchema.index({id_app:1,device_user_id:1,status:1}),dmnvSchema.index({id_app:1,group_user:1,status:1}),dmnvSchema.index({id_app:1,ten_nv:1,ma_so_thue:1,ma_nv:1,chuc_vu:1,
|
|
10
|
-
status:1}),dmnvSchema.index({id_app:1,user:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,status:1}),dmnvSchema.index({id_app:1,user:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,status:1,ma_nv:1,ten_nv:1}),dmnvSchema.index({id_app:1,user:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,status:1,ma_bp:1}),dmnvSchema.index({id_app:1,user:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,status:1,ma_kh:1}),dmnvSchema.index({id_app:1,user:1,phu_trach:1,
|
|
11
|
-
user_created:1,visible_to:1,visible_to_users:1,status:1,device_user_id:1}),dmnvSchema.index({id_app:1,user:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,status:1,nh_nv:1}),dmnvSchema.index({id_app:1,ma_nv:"text",ten_nv:"text",ma_bp:"text",ten_bp:"text",chuc_vu:"text"},{name:"dmnv_index_text"}));const model=mongoose.models.dmnv||mongoose.model("dmnv",dmnvSchema);
|
|
12
|
-
if((global.configs||{}).createIndexes)model.on("index",async function($err$$){$err$$?(console.error("Employee index error",$err$$),(await model.aggregate([{$group:{_id:{id_app:"$id_app",ma_nv:"$ma_nv"},count:{$sum:1},ids:{$push:"$_id"}}},{$match:{count:{$gt:1}}}])).forEach($d$$=>{console.info("employee duplication",$d$$._id,$d$$.ids);$d$$.ids.forEach(($id$$,$index$$)=>{$index$$>0&&console.info("you should delete employee",$id$$)})})):console.info("emplyeee indexing complete")});
|
|
13
|
-
model.referenceKeys={ma_nv:[{model:"chamcong",key:"ma_nv",error:"Nh\u00e2n vi\u00ean ${obj.ma_nv} - ${obj.ten_nv} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u trong b\u1ea3ng ch\u1ea5m c\u00f4ng"},{model:"bangtinhluong",key:"ma_nv",error:"Nh\u00e2n vi\u00ean ${obj.ma_nv} - ${obj.ten_nv} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u trong b\u1ea3ng t\u00ednh l\u01b0\u01a1ng"},{model:"socai",key:"ma_nv",error:"Nh\u00e2n vi\u00ean ${obj.ma_nv} - ${obj.ten_nv} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u trong s\u1ed5 c\u00e1i"},
|
|
14
|
-
{model:"phieudanhgia",key:"ma_nv",error:"Nh\u00e2n vi\u00ean ${obj.ma_nv} - ${obj.ten_nv} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u trong phi\u1ebfu \u0111\u00e1nh gi\u00e1 nh\u00e2n vi\u00ean"}]};
|
|
15
|
-
model.createEmployeeCode=function($id_app$$,$ma_nv$$,$lanthu$$,$callback$$){$ma_nv$$=$ma_nv$$.replace(/[^\w\s]/gi,"").split(" ").join("").toUpperCase();model.findOne({ma_nv:$ma_nv$$,id_app:$id_app$$},function($e$$,$rs$$){if($e$$)return $callback$$($e$$);if($rs$$)$lanthu$$+=1,$ma_nv$$=$ma_nv$$.substring(0,$ma_nv$$.length-$lanthu$$.toString().length)+$lanthu$$.toString(),model.createEmployeeCode($id_app$$,$ma_nv$$,$lanthu$$,$callback$$);else return $callback$$(null,$ma_nv$$)})};
|
|
16
|
-
model.asyncCreateEmployeeCode=async($id_app$$,$ma_nv$$,$lanthu$$)=>{$lanthu$$||=0;$ma_nv$$.length>32&&($ma_nv$$=$ma_nv$$.substring(0,32));return new Promise($resolve$$=>{model.createEmployeeCode($id_app$$,$ma_nv$$,$lanthu$$,($e$$,$rs$$)=>{$resolve$$($rs$$||"")})})};
|
|
17
|
-
model.getInfo=async($id_app$$,$condition$$,$fields$$)=>{$condition$$.id_app=$id_app$$;return new Promise(($resolve$$,$reject$$)=>{model.findOne($condition$$).lean().then($rs$$=>{if(!$rs$$)return $reject$$(Error("Can't find data"));$resolve$$($fields$$?$rs$$[$fields$$]:$rs$$)}).catch($e$$=>{$reject$$($e$$)})})};module.exports=model;
|
|
1
|
+
const _0x122e3f=_0x3e70;(function(_0x3ff8d4,_0x57abd8){const _0xdf6cf6=_0x3e70,_0x256018=_0x3ff8d4();while(!![]){try{const _0x1d7dd5=-parseInt(_0xdf6cf6(0x216))/0x1+parseInt(_0xdf6cf6(0x1f6))/0x2+-parseInt(_0xdf6cf6(0x1e1))/0x3+parseInt(_0xdf6cf6(0x20b))/0x4*(parseInt(_0xdf6cf6(0x224))/0x5)+-parseInt(_0xdf6cf6(0x1d7))/0x6*(parseInt(_0xdf6cf6(0x21c))/0x7)+parseInt(_0xdf6cf6(0x1c9))/0x8+-parseInt(_0xdf6cf6(0x229))/0x9*(parseInt(_0xdf6cf6(0x1d0))/0xa);if(_0x1d7dd5===_0x57abd8)break;else _0x256018['push'](_0x256018['shift']());}catch(_0x1de449){_0x256018['push'](_0x256018['shift']());}}}(_0x1a5a,0x56efa));const bpSchema=new Schema({'ma_bp':{'type':String,'uppercase':!![],'trim':!![],'required':!![],'maxlength':0x20},'chuc_vu':{'type':String,'trim':!![],'maxlength':0x400},'cong_viec':{'type':String,'trim':!![],'maxlength':0x400},'phu_trach':{'type':String,'maxlength':0x400},'tu_ngay':{'type':Date,'default':Date['now']},'den_ngay':{'type':Date},'line':{'type':Number,'default':0x0}}),dmnvSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_nv':{'type':String,'required':!![],'uppercase':!![],'trim':!![],'maxlength':0x20},'ten_nv':{'type':String,'required':'Yêu\x20cầu\x20nhập\x20tên\x20nhân\x20viên','trim':!![],'maxlength':0x400},'device_user_id':String,'ma_so_thue':{'type':String,'maxlength':0x20},'phu_trach':{'type':String,'maxlength':0x400,'trim':!![]},'nh_nv':{'type':String,'trim':!![],'maxlength':0x20},'ma_nh_nv':{'type':String,'uppercase':!![],'trim':!![],'default':'','maxlength':0x20},'ma_kh':String,'ten_kh':String,'ma_doi':{'type':String,'uppercase':!![],'trim':!![],'default':'','maxlength':0x20},'ma_to':{'type':String,'uppercase':!![],'trim':!![],'default':'','maxlength':0x20},'nguoi_danh_gia':[{'ma_doi_tuong_danh_gia':String,'user':String,'line':Number}],'ma_bp':{'type':String,'uppercase':!![],'trim':!![],'default':'','maxlength':0x20},'ten_bp':String,'ma_kho':{'type':String,'uppercase':!![],'trim':!![],'default':'','maxlength':0x20},'ten_kho':String,'chuc_vu':{'type':String,'trim':!![],'maxlength':0x400},'cong_viec':{'type':String,'trim':!![],'maxlength':0x400},'cong_viec_chi_tiet':{'type':String,'trim':!![]},'trinh_do_hoc_van':String,'trinh_do_chuyen_mon':String,'bo_phan':[bpSchema],'noi_sinh':{'type':String,'maxlength':0x400},'ngay_sinh':{'type':Date},'nguyen_quan':{'type':String,'maxlength':0x400},'ho_khau':{'type':String,'maxlength':0x400},'dia_chi':{'type':String,'maxlength':0x400},'dien_thoai':{'type':String,'maxlength':0x400},'fax':{'type':String,'maxlength':0x400},'email':{'type':String,'maxlength':0x400},'website':{'type':String,'maxlength':0x400},'dan_toc':{'type':String,'maxlength':0x400},'ton_giao':{'type':String,'maxlength':0x400},'cmnd':{'type':String,'maxlength':0x400},'ngay_cap':Date,'noi_cap':{'type':String,'maxlength':0x400},'gioi_tinh':{'type':String,'maxlength':0x400},'tinh_trang_hon_nhan':{'type':String,'maxlength':0x400},'quoc_tich':{'type':String,'maxlength':0x400},'lam_viec':{'type':Boolean,'default':!![]},'cham_cong':{'type':Boolean,'default':!![]},'tinh_luong':{'type':Boolean,'default':!![]},'bhxh':{'type':Boolean,'default':!![]},'bhyt':{'type':Boolean,'default':!![]},'bhtn':{'type':Boolean,'default':!![]},'luong_co_ban':{'type':Number,'default':0x0},'luong_bhxh':{'type':Number,'default':0x0},'ngay_tinh_bhxh':Date,'phu_cap':[],'luong_thu_viec':{'type':Number,'default':0x0},'thu_viec_tu_ngay':Date,'thu_viec_den_ngay':Date,'ngay_bat_dau_lam':Date,'ngay_nghi_viec':Date,'so_ngay_duoc_nghi_phep_nam':Number,'ttncn_mst':String,'ttncn_so_nguoi_phu_thuoc':Number,'ttncn_muc_gt_phu_thuoc':Number,'ttncn_so_thang_gt_ban_than':Number,'ttncn_muc_gt_ban_than':Number,'so_tk_ngan_hang':String,'ten_chu_tk_ngan_hang':String,'phat_hanh_boi_ngan_hang':String,'user':{'type':String,'lowercase':!![],'maxlength':0x400,'set':function(_0xa704f1){const _0x4412e2=_0x3e70;return this['_previous_user']=this[_0x4412e2(0x1f9)],_0xa704f1;}},'group_user':String,'default_password':{'type':String,'maxlength':0x400},'ghi_chu':{'type':String,'trim':!![],'maxlength':0x400},'picture':String,'location':Schema[_0x122e3f(0x210)][_0x122e3f(0x1de)],'exfields':Schema[_0x122e3f(0x210)][_0x122e3f(0x1de)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x122e3f(0x21e)]},'date_updated':{'type':Date,'default':Date[_0x122e3f(0x21e)]},'user_created':{'type':String},'user_updated':{'type':String},'visible_to':{'type':Number,'default':0x0},'visible_to_users':[String]},{'toJSON':{'virtuals':!![]}});dmnvSchema['pre'](_0x122e3f(0x1cc),function(_0x4be1e1){const _0x4566eb=_0x122e3f,_0x3a556b={'hfoJQ':function(_0x108320,_0x3180e1){return _0x108320(_0x3180e1);},'ceEXy':'Can\x27t\x20find\x20data','LfGei':function(_0x47c841,_0x4475a0){return _0x47c841>_0x4475a0;},'PffBz':function(_0xd13fd6,_0x352a89){return _0xd13fd6(_0x352a89);},'iRpVr':function(_0x450b2c){return _0x450b2c();},'QRmvn':function(_0x4efb96){return _0x4efb96();},'YSeeg':function(_0x969b68,_0x46c262){return _0x969b68===_0x46c262;},'hbTad':_0x4566eb(0x21d),'QwLbK':_0x4566eb(0x1cf),'tfnEM':function(_0x2204ed){return _0x2204ed();}};if(!this['user'])return _0x3a556b[_0x4566eb(0x225)](_0x4be1e1);const _0x4d5b7f=this;if(this[_0x4566eb(0x219)]||this[_0x4566eb(0x1f9)]!=this['_previous_user']){if(_0x3a556b[_0x4566eb(0x1f1)](_0x3a556b[_0x4566eb(0x1d9)],_0x3a556b[_0x4566eb(0x1dd)])){if(!_0x43240d)return _0x3a556b[_0x4566eb(0x1f8)](_0x2c492d,new _0x116e25(_0x3a556b['ceEXy']));_0x5edebb(_0x4050fb?_0xa0b31a[_0x2bbbb7]:_0x568849);}else{let _0x290255={'id_app':this['id_app'],'user':this[_0x4566eb(0x1f9)],'ma_nv':{'$ne':this['ma_nv']}};mongoose['models'][_0x4566eb(0x1c6)][_0x4566eb(0x1e0)](_0x290255,(_0x2a7d94,_0x53e444)=>{const _0x39143f=_0x4566eb;_0x3a556b['LfGei'](_0x53e444,0x0)?_0x3a556b['PffBz'](_0x4be1e1,new Error('Người\x20sử\x20dụng\x20\x27'+_0x4d5b7f['user']+'\x27\x20đã\x20được\x20gắn\x20cho\x20một\x20nhân\x20viên\x20khác')):_0x3a556b[_0x39143f(0x1d6)](_0x4be1e1);});}}else _0x3a556b[_0x4566eb(0x1d1)](_0x4be1e1);});if((global[_0x122e3f(0x1c2)]||{})['createIndexes']){const jPoVxG=_0x122e3f(0x200)[_0x122e3f(0x208)]('|');let cxmYDj=0x0;while(!![]){switch(jPoVxG[cxmYDj++]){case'0':dmnvSchema[_0x122e3f(0x1e6)]({'id_app':0x1,'ten_nv':0x1,'ma_so_thue':0x1,'ma_nv':0x1,'chuc_vu':0x1,'status':0x1});continue;case'1':dmnvSchema[_0x122e3f(0x1e6)]({'id_app':0x1,'user':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'ma_kh':0x1});continue;case'2':dmnvSchema['index']({'id_app':0x1,'nh_nv':0x1,'status':0x1});continue;case'3':dmnvSchema['index']({'id_app':0x1,'user':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'device_user_id':0x1});continue;case'4':dmnvSchema['index']({'id_app':0x1,'user':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'ma_bp':0x1});continue;case'5':dmnvSchema[_0x122e3f(0x1e6)]({'id_app':0x1,'ma_bp':0x1,'ten_bp':0x1,'status':0x1});continue;case'6':dmnvSchema[_0x122e3f(0x1e6)]({'id_app':0x1,'device_user_id':0x1,'status':0x1});continue;case'7':dmnvSchema['index']({'id_app':0x1,'user':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1});continue;case'8':dmnvSchema[_0x122e3f(0x1e6)]({'id_app':0x1,'status':0x1});continue;case'9':dmnvSchema[_0x122e3f(0x1e6)]({'id_app':0x1,'ma_kh':0x1,'ten_kh':0x1,'status':0x1});continue;case'10':dmnvSchema[_0x122e3f(0x1e6)]({'id_app':0x1,'user':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'ma_nv':0x1,'ten_nv':0x1});continue;case'11':dmnvSchema[_0x122e3f(0x1e6)]({'id_app':0x1,'ma_nv':0x1},{'unique':!![]});continue;case'12':dmnvSchema['index']({'id_app':0x1,'user':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'nh_nv':0x1});continue;case'13':dmnvSchema[_0x122e3f(0x1e6)]({'id_app':0x1,'phu_trach':0x1,'status':0x1});continue;case'14':dmnvSchema[_0x122e3f(0x1e6)]({'id_app':0x1,'ma_nv':_0x122e3f(0x1c3),'ten_nv':_0x122e3f(0x1c3),'ma_bp':_0x122e3f(0x1c3),'ten_bp':_0x122e3f(0x1c3),'chuc_vu':'text'},{'name':_0x122e3f(0x213)});continue;case'15':dmnvSchema['index']({'id_app':0x1,'group_user':0x1,'status':0x1});continue;}break;}}const model=mongoose['models'][_0x122e3f(0x1c6)]||mongoose[_0x122e3f(0x202)](_0x122e3f(0x1c6),dmnvSchema);function _0x3e70(_0x487864,_0x48e117){const _0x1a5ab0=_0x1a5a();return _0x3e70=function(_0x3e70e3,_0x21de68){_0x3e70e3=_0x3e70e3-0x1bf;let _0x4ee313=_0x1a5ab0[_0x3e70e3];if(_0x3e70['MlUhSx']===undefined){var _0x579f45=function(_0x4bd13){const _0x52863c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2f1b35='',_0x68498='';for(let _0x35011a=0x0,_0x38baa5,_0x5d64ce,_0x1b5a4b=0x0;_0x5d64ce=_0x4bd13['charAt'](_0x1b5a4b++);~_0x5d64ce&&(_0x38baa5=_0x35011a%0x4?_0x38baa5*0x40+_0x5d64ce:_0x5d64ce,_0x35011a++%0x4)?_0x2f1b35+=String['fromCharCode'](0xff&_0x38baa5>>(-0x2*_0x35011a&0x6)):0x0){_0x5d64ce=_0x52863c['indexOf'](_0x5d64ce);}for(let _0xfd7a37=0x0,_0x22c2d2=_0x2f1b35['length'];_0xfd7a37<_0x22c2d2;_0xfd7a37++){_0x68498+='%'+('00'+_0x2f1b35['charCodeAt'](_0xfd7a37)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x68498);};_0x3e70['eCBqJR']=_0x579f45,_0x487864=arguments,_0x3e70['MlUhSx']=!![];}const _0x2b27e5=_0x1a5ab0[0x0],_0x3a974c=_0x3e70e3+_0x2b27e5,_0x2dac2e=_0x487864[_0x3a974c];return!_0x2dac2e?(_0x4ee313=_0x3e70['eCBqJR'](_0x4ee313),_0x487864[_0x3a974c]=_0x4ee313):_0x4ee313=_0x2dac2e,_0x4ee313;},_0x3e70(_0x487864,_0x48e117);}function _0x1a5a(){const _0x2ca90f=['nJeWCvnurKrx','DgzUru0','z01UqwK','Aw5MBW','u1zWAw0','Cfrgswi','AvjWvNi','nti3nhnhrvnAzW','B25freK','Agjuywq','C3vIC3rYAw5N','qMXmwKm','q293B0m','uxDmyKS','twL4zwq','EMHnwwu','y291BNreB2n1BwvUDhm','mJi0mZmXBMn2zM9l','r0zUCuO','zxjYB3i','rLLnEg4','BKrpBg0','Aw5KzxG','CNvrD2O','BvfwENK','sKvHuwu','v1ndr3C','rgDUALi','wxvqzxu','Dg9tDhjPBMC','EuzHvMm','tMHntve','whHkvwW','wvnLzwC','x2LK','BgvHBG','y3jLyxrLsw5KzxHLCW','jgLKx2fWCa','nZi4nJe4AKrMre1K','q2fUj3qGzMLUzcbKyxrH','AgzVsLe','DxnLCG','rMnKD1e','ALHRBMe','sMzZA1G','zxHWB3j0CW','sevJwhi','y3fIBM4','mtf8ohWXm3W1FdL8mNW2Fde1Fdb8n3WXmhW0Fdf8m3WXmNWXna','AgLHruC','Bw9KzwW','AM9PBG','Dg9vChbLCKnHC2u','rMjxy2u','BwfFBNy','y2f0y2G','C3bSAxq','DgHLBG','tMJdOM4GDMNdQM4GjhTVyMOUBwfFBNz9ic0GjhTVyMOUDgvUx252FsdeKCoJihbOW6f0ihnPBMGGzog7RYbSAEg7H3uGDhjVBMCGyUg6O25NihtdRw5OigZgSmAHBMC','nJHbv1v4t1m','AeTxDKy','jf9Pza','tMFgSog7NwKGC+g7RsbK4BULBMCGjW','C29JywK','vhLWzxm','Ahflq0G','CMvMzxjLBMnLs2v5CW','zg1UDL9PBMrLEf90zxH0','uuXSvLG','BgvUz3rO','mtmYnJqXEuLsEvrX','AuLnAue','A09WC1a','AxnozxC','wuLKtgK','zM9YrwfJAa','mte0mxnIqvHADq','CePkzLy','BM93','BxDhzMm','CMvWBgfJzq','A3rgCxG','su9VDNi','tMJdOM4GDMNdQM4GjhTVyMOUBwfFBNz9ic0GjhTVyMOUDgvUx252FsdeKCoJihbOW6f0ihnPBMGGzog7RYbSAEg7H3uGDhjVBMCGCgHP4BQ/DsdeKCoHBMGGz2NdOsbUAmoIBIb2ACoQBG','mtyWnte1AwnxELHy','uvjTDM4','uhjku0y','rxvjyu4','zw1WBhLLzwuGAw5KzxHPBMCGy29TCgXLDgu','mta4mti2vgzpy05A','tvnqENy','Ew91ihnOB3vSzcbKzwXLDguGzw1WBg95zwu','yurmshu','zfjwCLO','tMJdOM4GDMNdQM4GjhTVyMOUBwfFBNz9ic0GjhTVyMOUDgvUx252FsdeKCoJihbOW6f0ihnPBMGGzog7RYbSAEg7H3uGDhjVBMCGyUg6O25NignO4BQLBsbJW7rUzW','AwrZ','y29UzMLNCW','Dgv4Da','zw1WBg95zwuGzhvWBgLJyxrPB24','rNvJqxu','zg1UDG','r2DQDK0','yvLus00','ndiZnJyZmNDZufbPyW','CuDRywu','vNv4B1K','C2f2zq','y3jLyxrLrw1WBg95zwvdB2rL','AwrFyxbW','Cgfxs2G'];_0x1a5a=function(){return _0x2ca90f;};return _0x1a5a();}(global[_0x122e3f(0x1c2)]||{})[_0x122e3f(0x1f4)]&&model['on']('index',async function(_0x2c449a){const _0x54161d=_0x122e3f,_0x465bb0={'qGkae':function(_0x21d7d0,_0x2f63b6){return _0x21d7d0>_0x2f63b6;},'SVpim':_0x54161d(0x22b),'hqKCH':function(_0xee72e,_0x4ca597){return _0xee72e!==_0x4ca597;},'FYMxn':_0x54161d(0x1ee),'mQVzy':_0x54161d(0x1c4),'PrJSF':function(_0x3f3ad0,_0x25e596){return _0x3f3ad0(_0x25e596);},'iIMiA':function(_0x3328f9,_0x5856a6){return _0x3328f9!==_0x5856a6;},'DgnjR':_0x54161d(0x1fa),'aDLHu':'Employee\x20index\x20error','peAvm':'$ma_nv','oLlzf':_0x54161d(0x228)};if(_0x2c449a){if(_0x465bb0[_0x54161d(0x217)](_0x465bb0[_0x54161d(0x1eb)],'cPTvM')){console[_0x54161d(0x1e3)](_0x465bb0[_0x54161d(0x22c)],_0x2c449a);let _0x4564c8=await model['aggregate']([{'$group':{'_id':{'id_app':_0x54161d(0x1f5),'ma_nv':_0x465bb0['peAvm']},'count':{'$sum':0x1},'ids':{'$push':_0x54161d(0x20d)}}},{'$match':{'count':{'$gt':0x1}}}]);_0x4564c8[_0x54161d(0x21b)](_0x13bb4a=>{const _0x19b5ec=_0x54161d,_0x4af012={'EuIaN':function(_0x49e1e3,_0x2f7146){const _0x1c898e=_0x3e70;return _0x465bb0[_0x1c898e(0x1ca)](_0x49e1e3,_0x2f7146);},'HbHpk':_0x465bb0['SVpim']};_0x465bb0[_0x19b5ec(0x211)](_0x465bb0[_0x19b5ec(0x1e4)],_0x19b5ec(0x1d8))?(console[_0x19b5ec(0x1d3)](_0x465bb0[_0x19b5ec(0x1e8)],_0x13bb4a[_0x19b5ec(0x1f2)],_0x13bb4a[_0x19b5ec(0x1c1)]),_0x13bb4a[_0x19b5ec(0x1c1)]['forEach']((_0x2c4b8b,_0x16b4b9)=>{const _0x33c22f=_0x19b5ec;_0x465bb0[_0x33c22f(0x1ca)](_0x16b4b9,0x0)&&console[_0x33c22f(0x1d3)](_0x465bb0[_0x33c22f(0x1d4)],_0x2c4b8b);})):_0x4af012[_0x19b5ec(0x227)](_0x10651a,0x0)&&_0x1d95b2['info'](_0x4af012['HbHpk'],_0x411ab9);});}else{const _0x56ed6d={'WSCGw':function(_0x16baab,_0x2daa32){const _0x1c61ba=_0x54161d;return _0x465bb0[_0x1c61ba(0x226)](_0x16baab,_0x2daa32);},'LfQtS':_0x54161d(0x1f7),'FucAu':function(_0x4dc5bf,_0x21c5e3){return _0x4dc5bf(_0x21c5e3);}};_0x1f73d2['findOne'](_0xa88ef)['lean']()[_0x54161d(0x209)](_0xc5e1b8=>{const _0x56e3f4=_0x54161d;if(!_0xc5e1b8)return _0x56ed6d[_0x56e3f4(0x1ea)](_0x1941ef,new _0x511661(_0x56ed6d['LfQtS']));_0x56ed6d[_0x56e3f4(0x1ea)](_0x3588f7,_0xd5f7bd?_0xc5e1b8[_0xd23d89]:_0xc5e1b8);})[_0x54161d(0x207)](_0x3744c8=>{const _0x437443=_0x54161d;_0x56ed6d[_0x437443(0x1c5)](_0x536a66,_0x3744c8);});}}else console[_0x54161d(0x1d3)](_0x465bb0['oLlzf']);});model[_0x122e3f(0x212)]={'ma_nv':[{'model':'chamcong','key':'ma_nv','error':_0x122e3f(0x1c0)},{'model':'bangtinhluong','key':_0x122e3f(0x206),'error':_0x122e3f(0x20a)},{'model':_0x122e3f(0x20f),'key':_0x122e3f(0x206),'error':'Nhân\x20viên\x20${obj.ma_nv}\x20-\x20${obj.ten_nv}\x20đã\x20phát\x20sinh\x20dữ\x20liệu\x20trong\x20sổ\x20cái'},{'model':'phieudanhgia','key':_0x122e3f(0x206),'error':_0x122e3f(0x223)}]},model[_0x122e3f(0x1cd)]=function(_0x444a9a,_0x324987,_0x513121,_0x481e2f){const _0x14dc53=_0x122e3f,_0x356027={'luqmy':function(_0x38722e){return _0x38722e();},'MSPzv':function(_0x37580b,_0x33db7e){return _0x37580b===_0x33db7e;},'EoqYt':_0x14dc53(0x214),'EnIZg':_0x14dc53(0x21a),'ruQwj':function(_0x1718b8,_0xb55051){return _0x1718b8(_0xb55051);},'zhMYe':function(_0x1d9083,_0x2efcf9){return _0x1d9083!==_0x2efcf9;},'jXkna':_0x14dc53(0x1d2),'XxJUl':function(_0x231275,_0x94df3c,_0x423429){return _0x231275(_0x94df3c,_0x423429);},'owjFh':function(_0x56c065,_0x39cd69){return _0x56c065+_0x39cd69;},'sykIq':function(_0x402020,_0x4a8269){return _0x402020+_0x4a8269;},'rWFHz':function(_0x4d6a40,_0x5db54f){return _0x4d6a40-_0x5db54f;}};_0x324987=_0x324987[_0x14dc53(0x220)](/[^\w\s]/gi,'')[_0x14dc53(0x208)]('\x20')[_0x14dc53(0x203)]('')[_0x14dc53(0x204)](),model['findOne']({'ma_nv':_0x324987,'id_app':_0x444a9a},function(_0x5222a2,_0x5a91b9){const _0x7a1e6e=_0x14dc53,_0x4b4b32={'BlLZC':function(_0x42949f,_0x38926f){return _0x42949f(_0x38926f);}};if(_0x356027[_0x7a1e6e(0x22a)](_0x356027['EoqYt'],_0x356027['EnIZg']))_0x356027['luqmy'](_0x425703);else{if(_0x5222a2)return _0x356027[_0x7a1e6e(0x1e7)](_0x481e2f,_0x5222a2);if(!_0x5a91b9){if(_0x356027[_0x7a1e6e(0x1df)](_0x356027[_0x7a1e6e(0x1fb)],_0x356027['jXkna']))_0x4b4b32[_0x7a1e6e(0x1db)](_0x247ec9,_0x105941);else return _0x356027[_0x7a1e6e(0x1f0)](_0x481e2f,null,_0x324987);}else _0x513121=_0x356027['owjFh'](_0x513121,0x1),_0x324987=_0x356027['sykIq'](_0x324987[_0x7a1e6e(0x1da)](0x0,_0x356027['rWFHz'](_0x324987[_0x7a1e6e(0x215)],_0x513121[_0x7a1e6e(0x1ed)]()['length'])),_0x513121[_0x7a1e6e(0x1ed)]()),model[_0x7a1e6e(0x1cd)](_0x444a9a,_0x324987,_0x513121,_0x481e2f);}});},model['asyncCreateEmployeeCode']=async(_0x33b279,_0x2d8c9f,_0x235a28)=>{const _0x37e3bd=_0x122e3f,_0x58b4bd={'aYTKM':'1|5|8|14|7|6|15|0|2|10|12|13|11|3|9|4','pTFIb':_0x37e3bd(0x1c3),'cqbnn':_0x37e3bd(0x213),'VuxoY':function(_0x155990,_0x5c6158){return _0x155990>_0x5c6158;},'IOovr':function(_0x20ce6d,_0x4d9f13){return _0x20ce6d(_0x4d9f13);},'KFRvu':function(_0x11eb59,_0x25b67c){return _0x11eb59!==_0x25b67c;},'JEaQe':_0x37e3bd(0x218),'hiaEG':function(_0x537fef,_0x4d303e){return _0x537fef||_0x4d303e;},'HEcXr':function(_0x126441,_0x15640b){return _0x126441>_0x15640b;},'GFnqJ':function(_0x30bd0c,_0x2ddc95){return _0x30bd0c===_0x2ddc95;},'CowoC':'AzoXO'};if(!_0x235a28)_0x235a28=0x0;if(_0x58b4bd[_0x37e3bd(0x1fe)](_0x2d8c9f[_0x37e3bd(0x215)],0x20)){if(_0x58b4bd[_0x37e3bd(0x1e2)](_0x58b4bd[_0x37e3bd(0x1dc)],_0x58b4bd[_0x37e3bd(0x1dc)]))_0x2d8c9f=_0x2d8c9f[_0x37e3bd(0x1da)](0x0,0x20);else{const _0x3de212=_0x58b4bd[_0x37e3bd(0x1c8)][_0x37e3bd(0x208)]('|');let _0x2cf8bb=0x0;while(!![]){switch(_0x3de212[_0x2cf8bb++]){case'0':_0x224d51[_0x37e3bd(0x1e6)]({'id_app':0x1,'group_user':0x1,'status':0x1});continue;case'1':_0x18c441[_0x37e3bd(0x1e6)]({'id_app':0x1,'ma_nv':0x1},{'unique':!![]});continue;case'2':_0x5b3c86[_0x37e3bd(0x1e6)]({'id_app':0x1,'ten_nv':0x1,'ma_so_thue':0x1,'ma_nv':0x1,'chuc_vu':0x1,'status':0x1});continue;case'3':_0x3595bc[_0x37e3bd(0x1e6)]({'id_app':0x1,'user':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'device_user_id':0x1});continue;case'4':_0x3e6b5a[_0x37e3bd(0x1e6)]({'id_app':0x1,'ma_nv':_0x37e3bd(0x1c3),'ten_nv':_0x58b4bd[_0x37e3bd(0x1d5)],'ma_bp':_0x58b4bd[_0x37e3bd(0x1d5)],'ten_bp':_0x58b4bd[_0x37e3bd(0x1d5)],'chuc_vu':_0x58b4bd['pTFIb']},{'name':_0x58b4bd[_0x37e3bd(0x1ff)]});continue;case'5':_0x4277e6[_0x37e3bd(0x1e6)]({'id_app':0x1,'status':0x1});continue;case'6':_0x4903fd['index']({'id_app':0x1,'nh_nv':0x1,'status':0x1});continue;case'7':_0x1f32f7[_0x37e3bd(0x1e6)]({'id_app':0x1,'ma_kh':0x1,'ten_kh':0x1,'status':0x1});continue;case'8':_0xe80062[_0x37e3bd(0x1e6)]({'id_app':0x1,'phu_trach':0x1,'status':0x1});continue;case'9':_0xa9dd57[_0x37e3bd(0x1e6)]({'id_app':0x1,'user':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'nh_nv':0x1});continue;case'10':_0x3c355f[_0x37e3bd(0x1e6)]({'id_app':0x1,'user':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1});continue;case'11':_0x422e21[_0x37e3bd(0x1e6)]({'id_app':0x1,'user':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'ma_kh':0x1});continue;case'12':_0x3d49bc[_0x37e3bd(0x1e6)]({'id_app':0x1,'user':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'ma_nv':0x1,'ten_nv':0x1});continue;case'13':_0x431f2c[_0x37e3bd(0x1e6)]({'id_app':0x1,'user':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'ma_bp':0x1});continue;case'14':_0x3f6f33['index']({'id_app':0x1,'ma_bp':0x1,'ten_bp':0x1,'status':0x1});continue;case'15':_0x561e58[_0x37e3bd(0x1e6)]({'id_app':0x1,'device_user_id':0x1,'status':0x1});continue;}break;}}}let _0x6e6733=new Promise(_0x4f13e2=>{model['createEmployeeCode'](_0x33b279,_0x2d8c9f,_0x235a28,(_0x4451d0,_0x36d750)=>{const _0x7db74=_0x3e70,_0x4d3c78={'YuPeu':function(_0x48cbc6,_0xe5a31c){const _0x325891=_0x3e70;return _0x58b4bd[_0x325891(0x1cb)](_0x48cbc6,_0xe5a31c);},'XChPb':function(_0x15812c,_0x547796){const _0x1651a4=_0x3e70;return _0x58b4bd[_0x1651a4(0x222)](_0x15812c,_0x547796);}};_0x58b4bd['KFRvu']('kOpsP',_0x58b4bd[_0x7db74(0x1e9)])?_0x4d3c78[_0x7db74(0x1ec)](_0x28648f,0x0)?_0x4d3c78['XChPb'](_0x3b5942,new _0x478048(_0x7db74(0x20e)+_0x3a840b[_0x7db74(0x1f9)]+'\x27\x20đã\x20được\x20gắn\x20cho\x20một\x20nhân\x20viên\x20khác')):_0x10bdbc():_0x4f13e2(_0x58b4bd[_0x7db74(0x201)](_0x36d750,''));});});return _0x6e6733;},model['getInfo']=async(_0x5606c9,_0x4f8753,_0x56d1f3)=>{const _0x3c1ea9=_0x122e3f,_0x24c46e={'nDOlm':function(_0x330bd7,_0x2e4d65){return _0x330bd7(_0x2e4d65);},'kpCpZ':_0x3c1ea9(0x22b),'NhMMQ':_0x3c1ea9(0x1c7),'ktFqx':_0x3c1ea9(0x205)};_0x4f8753[_0x3c1ea9(0x1ce)]=_0x5606c9;const _0x1a080c=new Promise((_0x108bed,_0x43fbac)=>{const _0x2aa1fb=_0x3c1ea9,_0x167d97={'hKWvF':function(_0x2b95b2,_0x10d489){return _0x2b95b2>_0x10d489;},'mwGfc':_0x24c46e['kpCpZ'],'dRVrZ':_0x2aa1fb(0x1c4),'JfskX':function(_0xaf9ef2,_0xf3393d){const _0x562d6e=_0x2aa1fb;return _0x24c46e[_0x562d6e(0x1e5)](_0xaf9ef2,_0xf3393d);}};_0x24c46e[_0x2aa1fb(0x1ef)]===_0x24c46e[_0x2aa1fb(0x221)]?(_0x46d760[_0x2aa1fb(0x1d3)](_0x167d97[_0x2aa1fb(0x1bf)],_0x148970[_0x2aa1fb(0x1f2)],_0x37b9b1[_0x2aa1fb(0x1c1)]),_0x2b3bf0['ids'][_0x2aa1fb(0x21b)]((_0x1ea71c,_0x3bb854)=>{const _0x30aedf=_0x2aa1fb;_0x167d97[_0x30aedf(0x20c)](_0x3bb854,0x0)&&_0x379e66['info'](_0x167d97[_0x30aedf(0x21f)],_0x1ea71c);})):model['findOne'](_0x4f8753)[_0x2aa1fb(0x1f3)]()[_0x2aa1fb(0x209)](_0x1e74cc=>{const _0x159075=_0x2aa1fb;if(!_0x1e74cc)return _0x24c46e['nDOlm'](_0x43fbac,new Error(_0x159075(0x1f7)));_0x24c46e[_0x159075(0x1e5)](_0x108bed,_0x56d1f3?_0x1e74cc[_0x56d1f3]:_0x1e74cc);})[_0x2aa1fb(0x207)](_0x316828=>{const _0x444aaf=_0x2aa1fb;_0x167d97[_0x444aaf(0x1fc)](_0x43fbac,_0x316828);});});return _0x1a080c;},module[_0x122e3f(0x1fd)]=model;
|
package/server/models/dmnvt.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const dmnvtSchema=new Schema({id_app:{type:String,required:!0,maxlength:1024},stt:{type:Number,default:0},ten_nvt:{type:String,required:!0,maxlength:1024},nh_me:{type:String,maxlength:1024},ma_nganh_hang:String,ds_nganh_hang:[String],group_kind:{type:Number,default:1},loai_nh:{type:Number,default:1},bac:Number,sysorder:String,quan_trong:Boolean,la_nhom_hang_hoa:Boolean,ban_tai_quay:Boolean,description:String,logo:{type:String,maxlength:1024},banner1:{type:String,maxlength:1024},banner2:{type:String,
|
|
2
|
-
maxlength:1024},cac_thuoc_tinh:[],exfields:Schema.Types.Mixed,status:{type:Boolean,default:!0},shared:{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:""}},{toJSON:{virtuals:!0}});
|
|
3
|
-
(global.configs||{}).createIndexes&&(dmnvtSchema.index({id_app:1,_id:1,group_kind:1}),dmnvtSchema.index({id_app:1,ten_nvt:1,status:1,stt:1,group_kind:1}),dmnvtSchema.index({id_app:1,nh_me:1,status:1,group_kind:1}),dmnvtSchema.index({id_app:1,sysorder:1}),dmnvtSchema.index({id_app:1,loai_nh:1}),dmnvtSchema.index({id_app:1,group_kind:1}),dmnvtSchema.index({id_app:1,bac:1}),dmnvtSchema.index({id_app:1,"cac_thuoc_tinh.id_tt":1,status:1,stt:1,group_kind:1}),dmnvtSchema.index({id_app:1,"cac_thuoc_tinh.ma_vt":1,
|
|
4
|
-
status:1,stt:1,group_kind:1}),dmnvtSchema.index({id_app:1,"cac_thuoc_tinh.ma_tt":1,status:1,stt:1,group_kind:1}),dmnvtSchema.index({id_app:1,"cac_thuoc_tinh.loai_tt":1,status:1,stt:1,group_kind:1}),dmnvtSchema.index({id_app:1,ma_nganh_hang:1,ds_nganh_hang:1,group_kind:1}),dmnvtSchema.index({id_app:1,la_nhom_hang_hoa:1,status:1,stt:1,group_kind:1}),dmnvtSchema.index({id_app:1,la_nhom_hang_hoa:1,ban_tai_quay:1,status:1,stt:1,group_kind:1}),dmnvtSchema.index({id_app:1,description:1,status:1,stt:1,group_kind:1}),
|
|
5
|
-
dmnvtSchema.index({id_app:1,status:1,stt:1,group_kind:1}),dmnvtSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,status:1,stt:1,group_kind:1}),dmnvtSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,status:1,stt:1,ten_nvt:1,group_kind:1}),dmnvtSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,status:1,stt:1,ten_nvt:1,la_nhom_hang_hoa:1,group_kind:1}),dmnvtSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,status:1,stt:1,
|
|
6
|
-
ten_nvt:1,la_nhom_hang_hoa:1,ban_tai_quay:1,group_kind:1}),dmnvtSchema.index({id_app:1,ten_nvt:"text",nh_me:"text",description:"text"},{name:"dmnvt_index_text"}));const model=mongoose.models.dmnvt||mongoose.model("dmnvt",dmnvtSchema);model.referenceKeys={_id:[{model:"dmvt",key:"ma_nvt",error:"Nh\u00f3m v\u1eadt t\u01b0 ${obj.ten_nvt} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u trong danh m\u1ee5c v\u1eadt t\u01b0"}]};const _=require("lodash");
|
|
7
|
-
model.getAllChildrenGroup=async($id_app$$,$chil_ma_nvt_nh_vt_cons$$,$la_nhom_hang_hoa$$,$ma_nganh_hang$$,$condition_query$$={group_kind:1})=>{let $rs$$=[];$condition_query$$={id_app:$id_app$$,status:!0,...$condition_query$$};$ma_nganh_hang$$&&($condition_query$$.ds_nganh_hang=$ma_nganh_hang$$);$la_nhom_hang_hoa$$!=void 0&&($condition_query$$.la_nhom_hang_hoa=$la_nhom_hang_hoa$$);$chil_ma_nvt_nh_vt_cons$$&&(_.isArray($chil_ma_nvt_nh_vt_cons$$)?($rs$$=[...$rs$$,...$chil_ma_nvt_nh_vt_cons$$],$condition_query$$.nh_me=
|
|
8
|
-
{$in:$chil_ma_nvt_nh_vt_cons$$}):($condition_query$$.nh_me=$chil_ma_nvt_nh_vt_cons$$,$chil_ma_nvt_nh_vt_cons$$.$in?$rs$$=[...$rs$$,...$chil_ma_nvt_nh_vt_cons$$.$in]:$rs$$.push($chil_ma_nvt_nh_vt_cons$$)));$chil_ma_nvt_nh_vt_cons$$=(await model.find($condition_query$$,{_id:1,nh_me:1}).lean()).filter($n$$=>$n$$._id.toString()!=$n$$.nh_me).map($d$$=>$d$$._id);$chil_ma_nvt_nh_vt_cons$$.length>0&&($chil_ma_nvt_nh_vt_cons$$=await Promise.all($chil_ma_nvt_nh_vt_cons$$.map($nh$$=>model.getAllChildrenGroup($id_app$$,
|
|
9
|
-
$nh$$,$la_nhom_hang_hoa$$,$ma_nganh_hang$$))),$chil_ma_nvt_nh_vt_cons$$=$chil_ma_nvt_nh_vt_cons$$.reduce(($a$$,$b$$)=>$a$$.concat($b$$),[]),$rs$$=[...$chil_ma_nvt_nh_vt_cons$$,...$rs$$]);return $rs$$};module.exports=model;
|
|
1
|
+
const _0x265fea=_0x4fed;(function(_0x3868a9,_0x38ead3){const _0x475136=_0x4fed,_0x2d0280=_0x3868a9();while(!![]){try{const _0x6180fd=-parseInt(_0x475136(0x6c))/0x1+parseInt(_0x475136(0x6e))/0x2+-parseInt(_0x475136(0x68))/0x3+-parseInt(_0x475136(0x8b))/0x4*(parseInt(_0x475136(0x70))/0x5)+parseInt(_0x475136(0x7f))/0x6*(parseInt(_0x475136(0x87))/0x7)+-parseInt(_0x475136(0x80))/0x8+parseInt(_0x475136(0x69))/0x9;if(_0x6180fd===_0x38ead3)break;else _0x2d0280['push'](_0x2d0280['shift']());}catch(_0x439e9e){_0x2d0280['push'](_0x2d0280['shift']());}}}(_0x5a78,0xd291f));const dmnvtSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'stt':{'type':Number,'default':0x0},'ten_nvt':{'type':String,'required':!![],'maxlength':0x400},'nh_me':{'type':String,'maxlength':0x400},'ma_nganh_hang':String,'ds_nganh_hang':[String],'group_kind':{'type':Number,'default':0x1},'loai_nh':{'type':Number,'default':0x1},'bac':Number,'sysorder':String,'quan_trong':Boolean,'la_nhom_hang_hoa':Boolean,'ban_tai_quay':Boolean,'description':String,'logo':{'type':String,'maxlength':0x400},'banner1':{'type':String,'maxlength':0x400},'banner2':{'type':String,'maxlength':0x400},'cac_thuoc_tinh':[],'exfields':Schema[_0x265fea(0x85)][_0x265fea(0x6d)],'status':{'type':Boolean,'default':!![]},'shared':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x265fea(0x71)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}},{'toJSON':{'virtuals':!![]}});if((global[_0x265fea(0x77)]||{})[_0x265fea(0x83)]){const ypesZE='14|2|12|15|13|8|3|11|17|5|1|0|16|7|4|18|19|9|6|10|20'['split']('|');let xmfVsw=0x0;while(!![]){switch(ypesZE[xmfVsw++]){case'0':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'ma_nganh_hang':0x1,'ds_nganh_hang':0x1,'group_kind':0x1});continue;case'1':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'cac_thuoc_tinh.loai_tt':0x1,'status':0x1,'stt':0x1,'group_kind':0x1});continue;case'2':dmnvtSchema['index']({'id_app':0x1,'ten_nvt':0x1,'status':0x1,'stt':0x1,'group_kind':0x1});continue;case'3':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'bac':0x1});continue;case'4':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'description':0x1,'status':0x1,'stt':0x1,'group_kind':0x1});continue;case'5':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'cac_thuoc_tinh.ma_tt':0x1,'status':0x1,'stt':0x1,'group_kind':0x1});continue;case'6':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'stt':0x1,'ten_nvt':0x1,'la_nhom_hang_hoa':0x1,'group_kind':0x1});continue;case'7':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'la_nhom_hang_hoa':0x1,'ban_tai_quay':0x1,'status':0x1,'stt':0x1,'group_kind':0x1});continue;case'8':dmnvtSchema['index']({'id_app':0x1,'group_kind':0x1});continue;case'9':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'stt':0x1,'ten_nvt':0x1,'group_kind':0x1});continue;case'10':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'stt':0x1,'ten_nvt':0x1,'la_nhom_hang_hoa':0x1,'ban_tai_quay':0x1,'group_kind':0x1});continue;case'11':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'cac_thuoc_tinh.id_tt':0x1,'status':0x1,'stt':0x1,'group_kind':0x1});continue;case'12':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'nh_me':0x1,'status':0x1,'group_kind':0x1});continue;case'13':dmnvtSchema['index']({'id_app':0x1,'loai_nh':0x1});continue;case'14':dmnvtSchema['index']({'id_app':0x1,'_id':0x1,'group_kind':0x1});continue;case'15':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'sysorder':0x1});continue;case'16':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'la_nhom_hang_hoa':0x1,'status':0x1,'stt':0x1,'group_kind':0x1});continue;case'17':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'cac_thuoc_tinh.ma_vt':0x1,'status':0x1,'stt':0x1,'group_kind':0x1});continue;case'18':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'status':0x1,'stt':0x1,'group_kind':0x1});continue;case'19':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'stt':0x1,'group_kind':0x1});continue;case'20':dmnvtSchema[_0x265fea(0x7e)]({'id_app':0x1,'ten_nvt':_0x265fea(0x8c),'nh_me':_0x265fea(0x8c),'description':_0x265fea(0x8c)},{'name':'dmnvt_index_text'});continue;}break;}}const model=mongoose['models'][_0x265fea(0x65)]||mongoose[_0x265fea(0x91)](_0x265fea(0x65),dmnvtSchema);model[_0x265fea(0x93)]={'_id':[{'model':_0x265fea(0x6a),'key':_0x265fea(0x67),'error':'Nhóm\x20vật\x20tư\x20${obj.ten_nvt}\x20đã\x20phát\x20sinh\x20dữ\x20liệu\x20trong\x20danh\x20mục\x20vật\x20tư'}]};function _0x4fed(_0x20c89f,_0x685242){const _0x5a781e=_0x5a78();return _0x4fed=function(_0x4fed72,_0x4adfb7){_0x4fed72=_0x4fed72-0x65;let _0x377d85=_0x5a781e[_0x4fed72];if(_0x4fed['QPniWc']===undefined){var _0x20c18f=function(_0x22d500){const _0x5b693a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2d0cd1='',_0x2cd0dd='';for(let _0x354f6a=0x0,_0x2f0a2a,_0x4a44ca,_0x166f25=0x0;_0x4a44ca=_0x22d500['charAt'](_0x166f25++);~_0x4a44ca&&(_0x2f0a2a=_0x354f6a%0x4?_0x2f0a2a*0x40+_0x4a44ca:_0x4a44ca,_0x354f6a++%0x4)?_0x2d0cd1+=String['fromCharCode'](0xff&_0x2f0a2a>>(-0x2*_0x354f6a&0x6)):0x0){_0x4a44ca=_0x5b693a['indexOf'](_0x4a44ca);}for(let _0x39dd30=0x0,_0x424661=_0x2d0cd1['length'];_0x39dd30<_0x424661;_0x39dd30++){_0x2cd0dd+='%'+('00'+_0x2d0cd1['charCodeAt'](_0x39dd30)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2cd0dd);};_0x4fed['zKFOcz']=_0x20c18f,_0x20c89f=arguments,_0x4fed['QPniWc']=!![];}const _0x251122=_0x5a781e[0x0],_0x3fc0fb=_0x4fed72+_0x251122,_0x41539b=_0x20c89f[_0x3fc0fb];return!_0x41539b?(_0x377d85=_0x4fed['zKFOcz'](_0x377d85),_0x20c89f[_0x3fc0fb]=_0x377d85):_0x377d85=_0x41539b,_0x377d85;},_0x4fed(_0x20c89f,_0x685242);}const _=require('lodash');function _0x5a78(){const _0x3fcec3=['zg1UDNq','DKHmugK','BwfFBNz0','ndC2nZKXnwTlveTmAG','mZm5nJq1mtvKqxbcwuy','zg12Da','AxnbCNjHEq','mtiYnZK1m01dBMr6DW','twL4zwq','mJi1nZy3mMX4sKTcCW','jgLU','mtmZmJG4mgrjs2ngzq','BM93','EK9ozwG','tfnhzuG','x2LK','y3j2tMm','DNf2t0G','y29UzMLNCW','CMvKDwnL','zMLSDgvY','BwfW','y29Uy2f0','AgzOChe','zxHWB3j0CW','Aw5KzxG','mtaXng5AsejnDG','mta2nJCWndHVB3nJrLG','ChvZAa','tgjrBM0','y3jLyxrLsw5KzxHLCW','zg1UDNrFAw5KzxHFDgv4Da','vhLWzxm','tK1nruO','mtu2mtDstun2Cuy','BgvHBG','s3H0vuK','BgfFBMHVBv9Oyw5Nx2HVyq','nfPjz2DSta','Dgv4Da','z2v0qwXSq2HPBgrYzw5hCM91Ca','zfzMvvK','zhnFBMDHBMHFAgfUzW','ywXS','Bw9KzwW','BMHFBwu','CMvMzxjLBMnLs2v5CW'];_0x5a78=function(){return _0x3fcec3;};return _0x5a78();}model[_0x265fea(0x8d)]=async(_0x8c387a,_0xebbbe1,_0xef5b0a,_0x2cc0c1,_0x22b78d={'group_kind':0x1})=>{const _0x307578=_0x265fea,_0x31a495={'zONeh':_0x307578(0x8c),'dVfUY':_0x307578(0x84),'NMMEJ':function(_0x1b7890,_0x1c7076){return _0x1b7890!==_0x1c7076;},'KxtUI':_0x307578(0x66),'vqvOH':_0x307578(0x7c),'iLwgF':function(_0x4c2372,_0xead4f9){return _0x4c2372!==_0xead4f9;},'LbQnm':_0x307578(0x75),'RADRs':'BmVwn','vXQVn':function(_0x28ea24,_0x4c7255){return _0x28ea24>_0x4c7255;}};let _0x196d3e=[],_0x5d75ad={'id_app':_0x8c387a,'status':!![],..._0x22b78d};_0x2cc0c1&&(_0x31a495[_0x307578(0x86)](_0x31a495[_0x307578(0x89)],_0x31a495[_0x307578(0x76)])?_0x5d75ad[_0x307578(0x8f)]=_0x2cc0c1:(_0x2c4a43[_0x307578(0x7e)]({'id_app':0x1,'_id':0x1,'group_kind':0x1}),_0x5d4486[_0x307578(0x7e)]({'id_app':0x1,'ten_nvt':0x1,'status':0x1,'stt':0x1,'group_kind':0x1}),_0x1903ae[_0x307578(0x7e)]({'id_app':0x1,'nh_me':0x1,'status':0x1,'group_kind':0x1}),_0x5d7b7a[_0x307578(0x7e)]({'id_app':0x1,'sysorder':0x1}),_0x4df0fb[_0x307578(0x7e)]({'id_app':0x1,'loai_nh':0x1}),_0x47d521[_0x307578(0x7e)]({'id_app':0x1,'group_kind':0x1}),_0x3fdce9[_0x307578(0x7e)]({'id_app':0x1,'bac':0x1}),_0x2776de[_0x307578(0x7e)]({'id_app':0x1,'cac_thuoc_tinh.id_tt':0x1,'status':0x1,'stt':0x1,'group_kind':0x1}),_0x2175af[_0x307578(0x7e)]({'id_app':0x1,'cac_thuoc_tinh.ma_vt':0x1,'status':0x1,'stt':0x1,'group_kind':0x1}),_0x527ae3[_0x307578(0x7e)]({'id_app':0x1,'cac_thuoc_tinh.ma_tt':0x1,'status':0x1,'stt':0x1,'group_kind':0x1}),_0x4c171b[_0x307578(0x7e)]({'id_app':0x1,'cac_thuoc_tinh.loai_tt':0x1,'status':0x1,'stt':0x1,'group_kind':0x1}),_0x2dff4d['index']({'id_app':0x1,'ma_nganh_hang':0x1,'ds_nganh_hang':0x1,'group_kind':0x1}),_0x2065a6[_0x307578(0x7e)]({'id_app':0x1,'la_nhom_hang_hoa':0x1,'status':0x1,'stt':0x1,'group_kind':0x1}),_0x3c8540[_0x307578(0x7e)]({'id_app':0x1,'la_nhom_hang_hoa':0x1,'ban_tai_quay':0x1,'status':0x1,'stt':0x1,'group_kind':0x1}),_0x34d747[_0x307578(0x7e)]({'id_app':0x1,'description':0x1,'status':0x1,'stt':0x1,'group_kind':0x1}),_0x50c463[_0x307578(0x7e)]({'id_app':0x1,'status':0x1,'stt':0x1,'group_kind':0x1}),_0x2dc2e3['index']({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'stt':0x1,'group_kind':0x1}),_0x495501[_0x307578(0x7e)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'stt':0x1,'ten_nvt':0x1,'group_kind':0x1}),_0x4cba2['index']({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'stt':0x1,'ten_nvt':0x1,'la_nhom_hang_hoa':0x1,'group_kind':0x1}),_0x4d854f[_0x307578(0x7e)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'stt':0x1,'ten_nvt':0x1,'la_nhom_hang_hoa':0x1,'ban_tai_quay':0x1,'group_kind':0x1}),_0x462010[_0x307578(0x7e)]({'id_app':0x1,'ten_nvt':_0x31a495[_0x307578(0x72)],'nh_me':_0x307578(0x8c),'description':_0x31a495[_0x307578(0x72)]},{'name':_0x31a495[_0x307578(0x8e)]})));_0xef5b0a!=undefined&&(_0x31a495['iLwgF'](_0x307578(0x73),_0x31a495[_0x307578(0x82)])?_0x5d75ad[_0x307578(0x8a)]=_0xef5b0a:_0x4d2f1b=[..._0x51e731,..._0x198c9e[_0x307578(0x6f)]]);_0xebbbe1&&(_0x31a495['RADRs']!==_0x31a495['RADRs']?_0x118143[_0x307578(0x81)](_0x5be1b2):_[_0x307578(0x6b)](_0xebbbe1)?(_0x196d3e=[..._0x196d3e,..._0xebbbe1],_0x5d75ad[_0x307578(0x92)]={'$in':_0xebbbe1}):(_0x5d75ad[_0x307578(0x92)]=_0xebbbe1,_0xebbbe1[_0x307578(0x6f)]?_0x196d3e=[..._0x196d3e,..._0xebbbe1['$in']]:_0x196d3e['push'](_0xebbbe1)));let _0x122b6c=(await model['find'](_0x5d75ad,{'_id':0x1,'nh_me':0x1})[_0x307578(0x88)]())[_0x307578(0x79)](_0x1aa55b=>_0x1aa55b[_0x307578(0x74)]['toString']()!=_0x1aa55b[_0x307578(0x92)]),_0xf56cf3=_0x122b6c[_0x307578(0x7a)](_0x4f249f=>_0x4f249f[_0x307578(0x74)]);if(_0x31a495['vXQVn'](_0xf56cf3['length'],0x0)){let _0x2e1933=await Promise[_0x307578(0x90)](_0xf56cf3[_0x307578(0x7a)](_0x5cc469=>{const _0x29f580=_0x307578;return model[_0x29f580(0x8d)](_0x8c387a,_0x5cc469,_0xef5b0a,_0x2cc0c1);}));_0x2e1933=_0x2e1933[_0x307578(0x78)]((_0x197f59,_0x15ca9e)=>_0x197f59[_0x307578(0x7b)](_0x15ca9e),[]),_0x196d3e=[..._0x2e1933,..._0x196d3e];}return _0x196d3e;},module[_0x265fea(0x7d)]=model;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
const dmphatdichvuSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
default:0},tien_tra_cho_nguoi_lien_quan:{type:Number,default:0},hieu_luc_tu:{type:Date,required:!0},hieu_luc_den:{type:Date,required:!0},ap_dung_lan_thu:{type:Number},picture:{type:String,maxlength:1024},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:""},service_code_id:{type:Schema.Types.ObjectId,
|
|
3
|
-
ref:"service",localField:["service_code"],foreignField:["service_code"]},ma_kh_id:{type:Schema.Types.ObjectId,ref:"customer",localField:["ma_kh"],foreignField:["ma_kh"]}});
|
|
4
|
-
(global.configs||{}).createIndexes&&(dmphatdichvuSchema.index({id_app:1,service_code:1,hieu_luc_tu:-1,hieu_luc_den:-1}),dmphatdichvuSchema.index({ap_dung_cho:1}),dmphatdichvuSchema.index({nh_kh:1}),dmphatdichvuSchema.index({date_updated:-1}),dmphatdichvuSchema.index({date_created:-1}),dmphatdichvuSchema.index({user_created:1}),dmphatdichvuSchema.index({service_code:"text",service_name:"text"}),dmphatdichvuSchema.set("toObject",{virtuals:!0}),dmphatdichvuSchema.set("toJSON",{virtuals:!0}),dmphatdichvuSchema.index({trang_thai:1}),
|
|
5
|
-
dmphatdichvuSchema.index({status:1}));const model=mongoose.models.dmphatdichvu||mongoose.model("dmphatdichvu",dmphatdichvuSchema);module.exports=model;
|
|
1
|
+
function _0x5271(_0x2e9b11,_0x4b7254){const _0x3e3bb6=_0x3e3b();return _0x5271=function(_0x527120,_0x1eca83){_0x527120=_0x527120-0x149;let _0x3c870f=_0x3e3bb6[_0x527120];if(_0x5271['bjFcjU']===undefined){var _0x983d2a=function(_0x3a688c){const _0x3d5d00='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x47af3d='',_0x1fa8ce='';for(let _0x2aa0f9=0x0,_0x279be0,_0x383b7f,_0xde2bba=0x0;_0x383b7f=_0x3a688c['charAt'](_0xde2bba++);~_0x383b7f&&(_0x279be0=_0x2aa0f9%0x4?_0x279be0*0x40+_0x383b7f:_0x383b7f,_0x2aa0f9++%0x4)?_0x47af3d+=String['fromCharCode'](0xff&_0x279be0>>(-0x2*_0x2aa0f9&0x6)):0x0){_0x383b7f=_0x3d5d00['indexOf'](_0x383b7f);}for(let _0x39289c=0x0,_0x512a9f=_0x47af3d['length'];_0x39289c<_0x512a9f;_0x39289c++){_0x1fa8ce+='%'+('00'+_0x47af3d['charCodeAt'](_0x39289c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1fa8ce);};_0x5271['ocQWsG']=_0x983d2a,_0x2e9b11=arguments,_0x5271['bjFcjU']=!![];}const _0x295e2a=_0x3e3bb6[0x0],_0x325a8b=_0x527120+_0x295e2a,_0x45f183=_0x2e9b11[_0x325a8b];return!_0x45f183?(_0x3c870f=_0x5271['ocQWsG'](_0x3c870f),_0x2e9b11[_0x325a8b]=_0x3c870f):_0x3c870f=_0x45f183,_0x3c870f;},_0x5271(_0x2e9b11,_0x4b7254);}const _0x43dafe=_0x5271;function _0x3e3b(){const _0x294117=['Bw9KzwXZ','vhLWzxm','Aw5KzxG','ndmWndyYngrnyuPiEa','twL4zwq','mtzpvK9xqui','ntqYndCZnvHwwhPyAq','Dg9ku09o','t2jQzwn0swq','C2vYDMLJzv9JB2rL','Dgv4Da','BM93','oxWWFdH8m3W2FdD8mxW1FdeWFdj8na','mJC4nZy1mwHjDK9xyq','Dg9pyMPLy3q','C3bSAxq','nZuYmta2zMrAAwHk','mtCYodq2mMT3r3zZwq','BwfFA2G','zg1WAgf0zgLJAhz1','y3vZDg9Tzxi','otm4mtuXmfL2thvPEq','Bw9KzwW','y3jLyxrLsw5KzxHLCW','mtG2ouv5sNLKDq','C2vYDMLJzq','mJyZnZbRy3LruKy'];_0x3e3b=function(){return _0x294117;};return _0x3e3b();}(function(_0x367585,_0x3530be){const _0x346139=_0x5271,_0x6253ff=_0x367585();while(!![]){try{const _0xb96f99=-parseInt(_0x346139(0x162))/0x1+parseInt(_0x346139(0x161))/0x2+-parseInt(_0x346139(0x15e))/0x3+-parseInt(_0x346139(0x154))/0x4+parseInt(_0x346139(0x157))/0x5+parseInt(_0x346139(0x150))/0x6*(parseInt(_0x346139(0x14e))/0x7)+-parseInt(_0x346139(0x156))/0x8*(-parseInt(_0x346139(0x14b))/0x9);if(_0xb96f99===_0x3530be)break;else _0x6253ff['push'](_0x6253ff['shift']());}catch(_0x1a16ac){_0x6253ff['push'](_0x6253ff['shift']());}}}(_0x3e3b,0xf0942));const dmphatdichvuSchema=new Schema({'id_app':{'type':String,'required':!![]},'service_code':{'type':String,'uppercase':!![],'default':'','maxlength':0x20},'service_name':String,'ap_dung_cho':{'type':Number,'default':0x0},'ma_kh':{'type':String,'default':'','maxlength':0x20},'nh_kh':{'type':String,'default':'','maxlength':0x400},'trang_thai':{'type':String,'maxlength':0x20},'thoi_gian_tu':{'type':Number,'default':0x0},'thoi_gian_den':{'type':Number,'default':0x0},'tien_phat':{'type':Number,'default':0x0},'ty_le_phat':{'type':Number,'default':0x0},'ty_le_tra_cho_nguoi_lien_quan':{'type':Number,'default':0x0},'tien_tra_cho_nguoi_lien_quan':{'type':Number,'default':0x0},'hieu_luc_tu':{'type':Date,'required':!![]},'hieu_luc_den':{'type':Date,'required':!![]},'ap_dung_lan_thu':{'type':Number},'picture':{'type':String,'maxlength':0x400},'exfields':Schema['Types'][_0x43dafe(0x155)],'newsfeed':{'type':Boolean,'default':!![]},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x43dafe(0x15c)]},'date_updated':{'type':Date,'default':Date[_0x43dafe(0x15c)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'service_code_id':{'type':Schema[_0x43dafe(0x152)][_0x43dafe(0x159)],'ref':_0x43dafe(0x14f),'localField':['service_code'],'foreignField':[_0x43dafe(0x15a)]},'ma_kh_id':{'type':Schema[_0x43dafe(0x152)][_0x43dafe(0x159)],'ref':_0x43dafe(0x14a),'localField':[_0x43dafe(0x163)],'foreignField':[_0x43dafe(0x163)]}});if((global['configs']||{})[_0x43dafe(0x14d)]){const yADcmU=_0x43dafe(0x15d)[_0x43dafe(0x160)]('|');let bFOGrF=0x0;while(!![]){switch(yADcmU[bFOGrF++]){case'0':dmphatdichvuSchema[_0x43dafe(0x153)]({'ap_dung_cho':0x1});continue;case'1':dmphatdichvuSchema[_0x43dafe(0x153)]({'service_code':_0x43dafe(0x15b),'service_name':'text'});continue;case'2':dmphatdichvuSchema['index']({'trang_thai':0x1});continue;case'3':dmphatdichvuSchema[_0x43dafe(0x153)]({'date_updated':-0x1});continue;case'4':dmphatdichvuSchema[_0x43dafe(0x153)]({'status':0x1});continue;case'5':dmphatdichvuSchema['set'](_0x43dafe(0x15f),{'virtuals':!![]});continue;case'6':dmphatdichvuSchema['index']({'date_created':-0x1});continue;case'7':dmphatdichvuSchema[_0x43dafe(0x153)]({'user_created':0x1});continue;case'8':dmphatdichvuSchema[_0x43dafe(0x153)]({'nh_kh':0x1});continue;case'9':dmphatdichvuSchema['index']({'id_app':0x1,'service_code':0x1,'hieu_luc_tu':-0x1,'hieu_luc_den':-0x1});continue;case'10':dmphatdichvuSchema['set'](_0x43dafe(0x158),{'virtuals':!![]});continue;}break;}}const model=mongoose[_0x43dafe(0x151)][_0x43dafe(0x149)]||mongoose[_0x43dafe(0x14c)](_0x43dafe(0x149),dmphatdichvuSchema);module['exports']=model;
|
package/server/models/dmphi.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
const dmphiSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
{toJSON:{virtuals:!0}});(global.configs||{}).createIndexes&&(dmphiSchema.index({id_app:1,ma_phi:1},{unique:!0}),dmphiSchema.index({ten_phi:1}),dmphiSchema.index({ma_phi_me:1}),dmphiSchema.index({ma_phi:"text",ten_phi:"text"}),dmphiSchema.index({status:1}),dmphiSchema.index({stt:1}),dmphiSchema.index({sysorder:1}),dmphiSchema.index({loai_nh:1}),dmphiSchema.index({bac:1}),dmphiSchema.index({user_created:1,visible_to:1,visible_to_users:1}));const model=mongoose.models.dmphi||mongoose.model("dmphi",dmphiSchema);
|
|
3
|
-
model.referenceKeys={ma_phi:[{model:"vsocai",key:"ma_phi",error:"Ph\u00ed ${obj.ma_phi} - ${obj.ten_phi} \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"}]};module.exports=model;
|
|
1
|
+
const _0x3c6d8f=_0x3772;(function(_0x102716,_0x447dbb){const _0x46715c=_0x3772,_0x3d7a84=_0x102716();while(!![]){try{const _0x4c8019=parseInt(_0x46715c(0x156))/0x1+-parseInt(_0x46715c(0x153))/0x2*(-parseInt(_0x46715c(0x149))/0x3)+-parseInt(_0x46715c(0x14d))/0x4*(parseInt(_0x46715c(0x14b))/0x5)+-parseInt(_0x46715c(0x14c))/0x6+parseInt(_0x46715c(0x157))/0x7+-parseInt(_0x46715c(0x154))/0x8+parseInt(_0x46715c(0x150))/0x9*(parseInt(_0x46715c(0x151))/0xa);if(_0x4c8019===_0x447dbb)break;else _0x3d7a84['push'](_0x3d7a84['shift']());}catch(_0x427a4d){_0x3d7a84['push'](_0x3d7a84['shift']());}}}(_0x2727,0xac7c9));const dmphiSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_phi':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ten_phi':{'type':String,'required':!![],'maxlength':0x400},'ma_phi_me':{'type':String},'loai_nh':{'type':Number,'default':0x1},'stt':Number,'bac':Number,'sysorder':String,'exfields':Schema['Types'][_0x3c6d8f(0x14f)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x3c6d8f(0x14a)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}},{'toJSON':{'virtuals':!![]}});(global[_0x3c6d8f(0x147)]||{})['createIndexes']&&(dmphiSchema[_0x3c6d8f(0x14e)]({'id_app':0x1,'ma_phi':0x1},{'unique':!![]}),dmphiSchema[_0x3c6d8f(0x14e)]({'ten_phi':0x1}),dmphiSchema[_0x3c6d8f(0x14e)]({'ma_phi_me':0x1}),dmphiSchema[_0x3c6d8f(0x14e)]({'ma_phi':_0x3c6d8f(0x146),'ten_phi':_0x3c6d8f(0x146)}),dmphiSchema['index']({'status':0x1}),dmphiSchema[_0x3c6d8f(0x14e)]({'stt':0x1}),dmphiSchema[_0x3c6d8f(0x14e)]({'sysorder':0x1}),dmphiSchema['index']({'loai_nh':0x1}),dmphiSchema[_0x3c6d8f(0x14e)]({'bac':0x1}),dmphiSchema[_0x3c6d8f(0x14e)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));const model=mongoose[_0x3c6d8f(0x159)][_0x3c6d8f(0x158)]||mongoose['model'](_0x3c6d8f(0x158),dmphiSchema);model[_0x3c6d8f(0x152)]={'ma_phi':[{'model':'vsocai','key':_0x3c6d8f(0x155),'error':'Phí\x20${obj.ma_phi}\x20-\x20${obj.ten_phi}\x20đã\x20phát\x20sinh\x20dữ\x20liệu'}]},module[_0x3c6d8f(0x148)]=model;function _0x3772(_0x6c6c5d,_0x4af0e3){const _0x27275e=_0x2727();return _0x3772=function(_0x37728d,_0x17f1d3){_0x37728d=_0x37728d-0x146;let _0x392bf8=_0x27275e[_0x37728d];if(_0x3772['XFzmux']===undefined){var _0x1cfbe0=function(_0x520aa9){const _0x21f965='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x39ace7='',_0x445ee6='';for(let _0x5d2344=0x0,_0x237aca,_0x3e1300,_0x3eff3c=0x0;_0x3e1300=_0x520aa9['charAt'](_0x3eff3c++);~_0x3e1300&&(_0x237aca=_0x5d2344%0x4?_0x237aca*0x40+_0x3e1300:_0x3e1300,_0x5d2344++%0x4)?_0x39ace7+=String['fromCharCode'](0xff&_0x237aca>>(-0x2*_0x5d2344&0x6)):0x0){_0x3e1300=_0x21f965['indexOf'](_0x3e1300);}for(let _0x27916c=0x0,_0x108457=_0x39ace7['length'];_0x27916c<_0x108457;_0x27916c++){_0x445ee6+='%'+('00'+_0x39ace7['charCodeAt'](_0x27916c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x445ee6);};_0x3772['cSmjZM']=_0x1cfbe0,_0x6c6c5d=arguments,_0x3772['XFzmux']=!![];}const _0x1fe707=_0x27275e[0x0],_0x562aa5=_0x37728d+_0x1fe707,_0x587c37=_0x6c6c5d[_0x562aa5];return!_0x587c37?(_0x392bf8=_0x3772['cSmjZM'](_0x392bf8),_0x6c6c5d[_0x562aa5]=_0x392bf8):_0x392bf8=_0x587c37,_0x392bf8;},_0x3772(_0x6c6c5d,_0x4af0e3);}function _0x2727(){const _0x3ac4a4=['mZC2meXVDuDuyW','CMvMzxjLBMnLs2v5CW','mtrzDhDgDwi','mtmZnZiWmefLvKrkBa','BwfFCgHP','nZa3mJnuD3PNDfG','nteWmta2og5vCM1SEa','zg1WAgK','Bw9KzwXZ','Dgv4Da','y29UzMLNCW','zxHWB3j0CW','mtqXmJG1sKjjwxnH','BM93','mtyYodGZnvftALjkwa','otyZmZi0y05OAgHU','nhLpywnvBa','Aw5KzxG','twL4zwq','ntuYnNvcywTUrG'];_0x2727=function(){return _0x3ac4a4;};return _0x2727();}
|
package/server/models/dmqct.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
const dmqctSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
so_ht:{type:Number,default:0},tu_dong_reset:Boolean,tu_ngay:{type:Date},den_ngay:{type:Date},dieu_kien:String,check_duplicate:Boolean,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:""}});
|
|
3
|
-
(global.configs||{}).createIndexes&&(dmqctSchema.index({id_app:1,ma_ct:1}),dmqctSchema.index({id_app:1,ten_qct:1}),dmqctSchema.index({id_app:1,cac_ma_ct:1}),dmqctSchema.index({id_app:1,cac_ma_ct:"text",ten_qct:"text",ma_ct:"text"}),dmqctSchema.index({id_app:1,status:1}),dmqctSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1}));module.exports=mongoose.models.dmqct||mongoose.model("dmqct",dmqctSchema);
|
|
1
|
+
const _0x1137fb=_0x5511;(function(_0x18a24c,_0x515dc7){const _0x423eaa=_0x5511,_0x1f0b69=_0x18a24c();while(!![]){try{const _0x934ae=parseInt(_0x423eaa(0x1af))/0x1*(-parseInt(_0x423eaa(0x1b4))/0x2)+-parseInt(_0x423eaa(0x1bb))/0x3*(parseInt(_0x423eaa(0x1ba))/0x4)+-parseInt(_0x423eaa(0x1bc))/0x5+parseInt(_0x423eaa(0x1b2))/0x6+-parseInt(_0x423eaa(0x1b6))/0x7*(parseInt(_0x423eaa(0x1b1))/0x8)+-parseInt(_0x423eaa(0x1c4))/0x9+-parseInt(_0x423eaa(0x1ad))/0xa*(-parseInt(_0x423eaa(0x1ae))/0xb);if(_0x934ae===_0x515dc7)break;else _0x1f0b69['push'](_0x1f0b69['shift']());}catch(_0x152008){_0x1f0b69['push'](_0x1f0b69['shift']());}}}(_0x18e4,0x8a7c5));function _0x5511(_0x258e84,_0xcaac86){const _0x18e415=_0x18e4();return _0x5511=function(_0x55116c,_0x5135d3){_0x55116c=_0x55116c-0x1ad;let _0x762844=_0x18e415[_0x55116c];if(_0x5511['HbPTRs']===undefined){var _0xa7220a=function(_0x51b2f6){const _0x1f0009='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c3e79='',_0x334321='';for(let _0x306ea7=0x0,_0x378416,_0x3a6ae9,_0x3da0ac=0x0;_0x3a6ae9=_0x51b2f6['charAt'](_0x3da0ac++);~_0x3a6ae9&&(_0x378416=_0x306ea7%0x4?_0x378416*0x40+_0x3a6ae9:_0x3a6ae9,_0x306ea7++%0x4)?_0x2c3e79+=String['fromCharCode'](0xff&_0x378416>>(-0x2*_0x306ea7&0x6)):0x0){_0x3a6ae9=_0x1f0009['indexOf'](_0x3a6ae9);}for(let _0x18906c=0x0,_0xe283c1=_0x2c3e79['length'];_0x18906c<_0xe283c1;_0x18906c++){_0x334321+='%'+('00'+_0x2c3e79['charCodeAt'](_0x18906c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x334321);};_0x5511['nDoRqg']=_0xa7220a,_0x258e84=arguments,_0x5511['HbPTRs']=!![];}const _0xe2b917=_0x18e415[0x0],_0x34a0ef=_0x55116c+_0xe2b917,_0x445d69=_0x258e84[_0x34a0ef];return!_0x445d69?(_0x762844=_0x5511['nDoRqg'](_0x762844),_0x258e84[_0x34a0ef]=_0x762844):_0x762844=_0x445d69,_0x762844;},_0x5511(_0x258e84,_0xcaac86);}function _0x18e4(){const _0x58ce2a=['Dgv4Da','mtq4vhjdv3zs','vhLWzxm','ntm5z3P4yMfl','Aw5KzxG','zg1Xy3q','C29Fy3q','nde0oti4sNbgBvrd','mtHlwfn4te8','mtC2mda3merRu1fMEa','twL4zwq','mxW0Fdn8mhWYFdu','y3jLyxrLsw5KzxHLCW','Bw9KzwW','y29UzMLNCW','BM93','Bw9KzwXZ','nty5ntu5nKv0vxLJEq','mtCXmZCWBeXVvwjN','mti3nMXrv0jbsG','ntq3oxHRug10Cq','C3bSAxq','mJy4mgfsD2PkzW','mZCWnZaXnNzgEfnVCW'];_0x18e4=function(){return _0x58ce2a;};return _0x18e4();}const dmqctSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ten_qct':{'type':String,'required':!![],'maxlength':0x400},'ma_ct':{'type':String,'uppercase':!![],'maxlength':0x20,'trim':!![]},'ma_ct_khac':{'type':String,'uppercase':!![],'maxlength':0x20,'trim':!![]},'cac_ma_ct':[String],'field':{'type':String,'default':_0x1137fb(0x1b9),'maxlength':0x20,'trim':!![]},'tien_to':{'type':String,'trim':!![]},'hau_to':{'type':String,'trim':!![]},'tu_so':{'type':Number,'default':0x1},'den_so':{'type':Number,'default':0xf423f},'tien_to_ht':{'type':String,'trim':!![]},'hau_to_ht':{'type':String,'trim':!![]},'so_ht':{'type':Number,'default':0x0},'tu_dong_reset':Boolean,'tu_ngay':{'type':Date},'den_ngay':{'type':Date},'dieu_kien':String,'check_duplicate':Boolean,'exfields':Schema[_0x1137fb(0x1b5)][_0x1137fb(0x1bd)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x1137fb(0x1c2)]},'date_updated':{'type':Date,'default':Date[_0x1137fb(0x1c2)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});if((global[_0x1137fb(0x1c1)]||{})[_0x1137fb(0x1bf)]){const KdDsQo=_0x1137fb(0x1be)[_0x1137fb(0x1b0)]('|');let ljrVEY=0x0;while(!![]){switch(KdDsQo[ljrVEY++]){case'0':dmqctSchema[_0x1137fb(0x1b7)]({'id_app':0x1,'cac_ma_ct':_0x1137fb(0x1b3),'ten_qct':'text','ma_ct':'text'});continue;case'1':dmqctSchema[_0x1137fb(0x1b7)]({'id_app':0x1,'ma_ct':0x1});continue;case'2':dmqctSchema['index']({'id_app':0x1,'status':0x1});continue;case'3':dmqctSchema['index']({'id_app':0x1,'cac_ma_ct':0x1});continue;case'4':dmqctSchema[_0x1137fb(0x1b7)]({'id_app':0x1,'ten_qct':0x1});continue;case'5':dmqctSchema[_0x1137fb(0x1b7)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;}break;}}module['exports']=mongoose[_0x1137fb(0x1c3)]['dmqct']||mongoose[_0x1137fb(0x1c0)](_0x1137fb(0x1b8),dmqctSchema);
|
package/server/models/dmqddvt.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
const dmqddvtSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
(global.configs||{}).createIndexes&&(dmqddvtSchema.index({id_app:1,ma_vt:1,ma_dvt:1}),dmqddvtSchema.index({id_app:1,ma_vt:1,ma_dvt:1,status:1}),dmqddvtSchema.index({id_app:1,ma_vt:1}),dmqddvtSchema.index({id_app:1,ma_dvt:"text",ma_vt:"text",ten_vt:"text"}),dmqddvtSchema.index({id_app:1,status:1}),dmqddvtSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1}),dmqddvtSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,status:1}));
|
|
3
|
-
const model=mongoose.models.dmqddvt||mongoose.model("dmqddvt",dmqddvtSchema);module.exports=model;
|
|
1
|
+
const _0x901d55=_0x3f47;(function(_0x918c47,_0x485ffe){const _0x43c903=_0x3f47,_0x4709a0=_0x918c47();while(!![]){try{const _0x1523fe=parseInt(_0x43c903(0x18f))/0x1*(parseInt(_0x43c903(0x194))/0x2)+parseInt(_0x43c903(0x1a0))/0x3+parseInt(_0x43c903(0x1a2))/0x4+-parseInt(_0x43c903(0x193))/0x5*(-parseInt(_0x43c903(0x198))/0x6)+-parseInt(_0x43c903(0x19d))/0x7*(parseInt(_0x43c903(0x192))/0x8)+parseInt(_0x43c903(0x197))/0x9*(-parseInt(_0x43c903(0x19a))/0xa)+-parseInt(_0x43c903(0x1a1))/0xb;if(_0x1523fe===_0x485ffe)break;else _0x4709a0['push'](_0x4709a0['shift']());}catch(_0xe66934){_0x4709a0['push'](_0x4709a0['shift']());}}}(_0xfe4c,0x9a6fc));const dmqddvtSchema=new Schema({'id_app':{'type':String,'required':!![]},'ma_vt':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x400,'trim':!![]},'ten_vt':String,'ma_dvt':{'type':String,'required':!![],'maxlength':0x20,'trim':!![]},'ten_dvt':String,'tu':Number,'mau':Number,'ty_le_qd':{'type':Number,'default':0x1},'exfields':Schema[_0x901d55(0x196)]['Mixed'],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x901d55(0x19c)]},'date_updated':{'type':Date,'default':Date[_0x901d55(0x19c)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});function _0x3f47(_0x199550,_0x42fcc7){const _0xfe4c4f=_0xfe4c();return _0x3f47=function(_0x3f4778,_0x52addb){_0x3f4778=_0x3f4778-0x18f;let _0x339f0e=_0xfe4c4f[_0x3f4778];if(_0x3f47['ShjKGx']===undefined){var _0x234ab1=function(_0x1d5b3b){const _0x1b8c5e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x512165='',_0x59d835='';for(let _0x52cf4c=0x0,_0x16a2fd,_0x310aeb,_0x4d46c6=0x0;_0x310aeb=_0x1d5b3b['charAt'](_0x4d46c6++);~_0x310aeb&&(_0x16a2fd=_0x52cf4c%0x4?_0x16a2fd*0x40+_0x310aeb:_0x310aeb,_0x52cf4c++%0x4)?_0x512165+=String['fromCharCode'](0xff&_0x16a2fd>>(-0x2*_0x52cf4c&0x6)):0x0){_0x310aeb=_0x1b8c5e['indexOf'](_0x310aeb);}for(let _0x26af44=0x0,_0x26bc2f=_0x512165['length'];_0x26af44<_0x26bc2f;_0x26af44++){_0x59d835+='%'+('00'+_0x512165['charCodeAt'](_0x26af44)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x59d835);};_0x3f47['KtwoGp']=_0x234ab1,_0x199550=arguments,_0x3f47['ShjKGx']=!![];}const _0x49cd10=_0xfe4c4f[0x0],_0x5d99fe=_0x3f4778+_0x49cd10,_0x383f19=_0x199550[_0x5d99fe];return!_0x383f19?(_0x339f0e=_0x3f47['KtwoGp'](_0x339f0e),_0x199550[_0x5d99fe]=_0x339f0e):_0x339f0e=_0x383f19,_0x339f0e;},_0x3f47(_0x199550,_0x42fcc7);}(global[_0x901d55(0x19f)]||{})[_0x901d55(0x199)]&&(dmqddvtSchema['index']({'id_app':0x1,'ma_vt':0x1,'ma_dvt':0x1}),dmqddvtSchema[_0x901d55(0x195)]({'id_app':0x1,'ma_vt':0x1,'ma_dvt':0x1,'status':0x1}),dmqddvtSchema[_0x901d55(0x195)]({'id_app':0x1,'ma_vt':0x1}),dmqddvtSchema['index']({'id_app':0x1,'ma_dvt':'text','ma_vt':_0x901d55(0x191),'ten_vt':_0x901d55(0x191)}),dmqddvtSchema[_0x901d55(0x195)]({'id_app':0x1,'status':0x1}),dmqddvtSchema[_0x901d55(0x195)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}),dmqddvtSchema[_0x901d55(0x195)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1}));const model=mongoose[_0x901d55(0x190)][_0x901d55(0x19b)]||mongoose['model'](_0x901d55(0x19b),dmqddvtSchema);function _0xfe4c(){const _0x6cabc7=['Aw5KzxG','vhLWzxm','ndv0rKrfDLm','mtiZntq5mg12y1bssa','y3jLyxrLsw5KzxHLCW','mZmYmtmWvxrttMPU','zg1Xzgr2Da','BM93','mtC1qLPpChvN','zxHWB3j0CW','y29UzMLNCW','mJuYndiYngHdtentBG','mtK0nZi3nJfcCeHyywy','mJKYodiWoeXNBvHvDa','nJeYmte5DxDTtvDN','Bw9KzwXZ','Dgv4Da','mtm5mteYDvvKwwPc','nxbvq0n1uW','neD5rKPlwG'];_0xfe4c=function(){return _0x6cabc7;};return _0xfe4c();}module[_0x901d55(0x19e)]=model;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
const dmtanggiamtsSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
dmtanggiamtsSchema.validate={kieu:[function($id_app$$,$value$$,$callback$$){$value$$=="1"||$value$$=="2"?$callback$$(!0):$callback$$(!1)},"Ki\u1ec3u(kieu): 1- t\u0103ng, 2- gi\u1ea3m"]};
|
|
3
|
-
(global.configs||{}).createIndexes&&(dmtanggiamtsSchema.index({id_app:1,ma_tang_giam_ts:1},{unique:!0}),dmtanggiamtsSchema.index({ten_tang_giam_ts:1}),dmtanggiamtsSchema.index({ma_tang_giam_ts:"text",ten_tang_giam_ts:"text"}),dmtanggiamtsSchema.index({status:1}),dmtanggiamtsSchema.index({user_created:1,visible_to:1,visible_to_users:1}));module.exports=mongoose.models.dmtanggiamts||mongoose.model("dmtanggiamts",dmtanggiamtsSchema);
|
|
1
|
+
const _0x2baa1f=_0x55f2;(function(_0x46f2c7,_0x34bb54){const _0x267150=_0x55f2,_0x48618b=_0x46f2c7();while(!![]){try{const _0x39ff14=-parseInt(_0x267150(0xe8))/0x1*(parseInt(_0x267150(0xdf))/0x2)+-parseInt(_0x267150(0xe7))/0x3*(-parseInt(_0x267150(0xe4))/0x4)+parseInt(_0x267150(0xdc))/0x5+parseInt(_0x267150(0xec))/0x6*(-parseInt(_0x267150(0xe9))/0x7)+-parseInt(_0x267150(0xe6))/0x8*(parseInt(_0x267150(0xd8))/0x9)+parseInt(_0x267150(0xee))/0xa*(parseInt(_0x267150(0xea))/0xb)+-parseInt(_0x267150(0xdb))/0xc;if(_0x39ff14===_0x34bb54)break;else _0x48618b['push'](_0x48618b['shift']());}catch(_0x361d16){_0x48618b['push'](_0x48618b['shift']());}}}(_0xa457,0xb7892));const dmtanggiamtsSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'kieu':{'type':String,'default':'1','required':!![],'enum':['1','2']},'ma_tang_giam_ts':{'type':String,'required':!![],'uppercase':!![],'trim':!![]},'ten_tang_giam_ts':{'type':String,'required':!![]},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x2baa1f(0xdd)]},'date_updated':{'type':Date,'default':Date[_0x2baa1f(0xdd)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});dmtanggiamtsSchema[_0x2baa1f(0xe3)]={'kieu':[function(_0x21184e,_0x559da7,_0x1c3a88){const _0x2e500b=_0x2baa1f,_0x3fc283={'fxUfj':function(_0x3a9291,_0x301aec){return _0x3a9291==_0x301aec;},'UHsOD':function(_0x33f2d6,_0x20a7da){return _0x33f2d6(_0x20a7da);}};_0x559da7=='1'||_0x3fc283[_0x2e500b(0xe2)](_0x559da7,'2')?_0x3fc283[_0x2e500b(0xe1)](_0x1c3a88,!![]):_0x3fc283[_0x2e500b(0xe1)](_0x1c3a88,![]);},_0x2baa1f(0xeb)]};function _0x55f2(_0x97286a,_0x3ce14b){const _0xa4578e=_0xa457();return _0x55f2=function(_0x55f2ad,_0x40f654){_0x55f2ad=_0x55f2ad-0xd8;let _0x2a0694=_0xa4578e[_0x55f2ad];if(_0x55f2['jqZfJo']===undefined){var _0x1777be=function(_0x144431){const _0x38938a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4d153e='',_0x385f2e='';for(let _0x520ac=0x0,_0x2a713c,_0x3ebe84,_0x4da861=0x0;_0x3ebe84=_0x144431['charAt'](_0x4da861++);~_0x3ebe84&&(_0x2a713c=_0x520ac%0x4?_0x2a713c*0x40+_0x3ebe84:_0x3ebe84,_0x520ac++%0x4)?_0x4d153e+=String['fromCharCode'](0xff&_0x2a713c>>(-0x2*_0x520ac&0x6)):0x0){_0x3ebe84=_0x38938a['indexOf'](_0x3ebe84);}for(let _0x46ebdb=0x0,_0x54d431=_0x4d153e['length'];_0x46ebdb<_0x54d431;_0x46ebdb++){_0x385f2e+='%'+('00'+_0x4d153e['charCodeAt'](_0x46ebdb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x385f2e);};_0x55f2['GcMFqn']=_0x1777be,_0x97286a=arguments,_0x55f2['jqZfJo']=!![];}const _0x64f71=_0xa4578e[0x0],_0x5dceb9=_0x55f2ad+_0x64f71,_0x169339=_0x97286a[_0x5dceb9];return!_0x169339?(_0x2a0694=_0x55f2['GcMFqn'](_0x2a0694),_0x97286a[_0x5dceb9]=_0x2a0694):_0x2a0694=_0x169339,_0x2a0694;},_0x55f2(_0x97286a,_0x3ce14b);}(global[_0x2baa1f(0xde)]||{})['createIndexes']&&(dmtanggiamtsSchema[_0x2baa1f(0xe5)]({'id_app':0x1,'ma_tang_giam_ts':0x1},{'unique':!![]}),dmtanggiamtsSchema[_0x2baa1f(0xe5)]({'ten_tang_giam_ts':0x1}),dmtanggiamtsSchema[_0x2baa1f(0xe5)]({'ma_tang_giam_ts':_0x2baa1f(0xed),'ten_tang_giam_ts':_0x2baa1f(0xed)}),dmtanggiamtsSchema[_0x2baa1f(0xe5)]({'status':0x1}),dmtanggiamtsSchema['index']({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));function _0xa457(){const _0x5cf238=['Aw5KzxG','mJe2mZjlCNnjwg0','nK5PuLHyzG','mxb0BMX6ua','mtmWndm3m2v6vNHXAa','nJGWnZeZDwnZDMTL','s2NHU4n1kgTPzxuPoIaXlsb0XinUzYWGmI0Gz2NHUQnT','nLb5BgDguW','Dgv4Da','nZbet0vqrem','mtK5ofjvr2zbzW','Bw9KzwW','zg10yw5Nz2LHBxrZ','ndaWndqZnMDRAu52AG','nJG5ntiXme1fwwzOuq','BM93','y29UzMLNCW','mJy4nte4uhjurfjd','Bw9KzwXZ','vuHZt0q','zNHvzMO','DMfSAwrHDgu','mZG4mJu2rK5qrgzx'];_0xa457=function(){return _0x5cf238;};return _0xa457();}module['exports']=mongoose[_0x2baa1f(0xe0)][_0x2baa1f(0xda)]||mongoose[_0x2baa1f(0xd9)](_0x2baa1f(0xda),dmtanggiamtsSchema);
|
package/server/models/dmto.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const dmtoSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
default:0},visible_to_users:[String],update_right:[String],delete_right:[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:""},user_updated:{type:String,default:""}});
|
|
3
|
-
(global.configs||{}).createIndexes&&(dmtoSchema.index({id_app:1,ma_bp:1,ma_doi:1,ma_to:1},{unique:!0}),dmtoSchema.index({ten_to:1}),dmtoSchema.index({ten_bp:1}),dmtoSchema.index({ma_bp:"text",ten_bp:"text",ma_doi:"text",ten_doi:"text",ma_to:"text",ten_to:"text"},{name:"dmto_index_text"}),dmtoSchema.index({status:1}),dmtoSchema.index({user_created:1,visible_to:1,visible_to_users:1}),dmtoSchema.index({phu_trach:1}),dmtoSchema.index({phoi_hop:1}));
|
|
4
|
-
const model=mongoose.models.dmto||mongoose.model("dmto",dmtoSchema);model.referenceKeys={ma_to:[{model:"phieudanhgia",key:"ma_to",error:"T\u1ed5 n\u00e0y \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"},{model:"dmnv",key:"ma_to",error:"T\u1ed5 n\u00e0y \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"}]};module.exports=model;
|
|
1
|
+
const _0x531dac=_0x5f4c;(function(_0x54c5b2,_0x27af08){const _0x51ca8f=_0x5f4c,_0x47fb30=_0x54c5b2();while(!![]){try{const _0x48b90d=parseInt(_0x51ca8f(0xfd))/0x1+-parseInt(_0x51ca8f(0x100))/0x2*(-parseInt(_0x51ca8f(0xfa))/0x3)+-parseInt(_0x51ca8f(0xf4))/0x4+-parseInt(_0x51ca8f(0xfe))/0x5+parseInt(_0x51ca8f(0xf3))/0x6*(parseInt(_0x51ca8f(0x107))/0x7)+parseInt(_0x51ca8f(0xff))/0x8*(parseInt(_0x51ca8f(0x104))/0x9)+-parseInt(_0x51ca8f(0xf5))/0xa*(parseInt(_0x51ca8f(0xf9))/0xb);if(_0x48b90d===_0x27af08)break;else _0x47fb30['push'](_0x47fb30['shift']());}catch(_0x2eb02d){_0x47fb30['push'](_0x47fb30['shift']());}}}(_0x187e,0xd1ca6));function _0x5f4c(_0x3da0ef,_0x79bd54){const _0x187eb1=_0x187e();return _0x5f4c=function(_0x5f4ca1,_0x15fac6){_0x5f4ca1=_0x5f4ca1-0xf2;let _0x4a8397=_0x187eb1[_0x5f4ca1];if(_0x5f4c['nKaFqI']===undefined){var _0xe27f64=function(_0x589aa2){const _0x5ed853='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2bfdcb='',_0x592496='';for(let _0x14560b=0x0,_0x3ad5c8,_0x2f65c4,_0x40e529=0x0;_0x2f65c4=_0x589aa2['charAt'](_0x40e529++);~_0x2f65c4&&(_0x3ad5c8=_0x14560b%0x4?_0x3ad5c8*0x40+_0x2f65c4:_0x2f65c4,_0x14560b++%0x4)?_0x2bfdcb+=String['fromCharCode'](0xff&_0x3ad5c8>>(-0x2*_0x14560b&0x6)):0x0){_0x2f65c4=_0x5ed853['indexOf'](_0x2f65c4);}for(let _0x150b81=0x0,_0x51b6dd=_0x2bfdcb['length'];_0x150b81<_0x51b6dd;_0x150b81++){_0x592496+='%'+('00'+_0x2bfdcb['charCodeAt'](_0x150b81)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x592496);};_0x5f4c['rNvEKF']=_0xe27f64,_0x3da0ef=arguments,_0x5f4c['nKaFqI']=!![];}const _0x4c17cd=_0x187eb1[0x0],_0x40b552=_0x5f4ca1+_0x4c17cd,_0x36b955=_0x3da0ef[_0x40b552];return!_0x36b955?(_0x4a8397=_0x5f4c['rNvEKF'](_0x4a8397),_0x3da0ef[_0x40b552]=_0x4a8397):_0x4a8397=_0x36b955,_0x4a8397;},_0x5f4c(_0x3da0ef,_0x79bd54);}function _0x187e(){const _0x8829ec=['Aw5KzxG','y29UzMLNCW','Dgv4Da','mJj4vvLjwLm','mJeZAgH2DKXo','zg1UDG','zxHWB3j0CW','mtu1mdi5oePPuhnYwG','ndyWmZK5mfLyDwvMCq','ndqWEwPHt1jh','ndmYmdjYtezmC2e','zg10B19PBMrLEf90zxH0','zg10BW','vog7LsbUW6b5imsrW6mGCgJdOxqGC2LUAcbK4BUVigXP4BUhDq','ode4mZDvu2nhAuK','vhLWzxm','y3jLyxrLsw5KzxHLCW','mZyZotnxy21rvgO','Bw9KzwW','BM93','CMvMzxjLBMnLs2v5CW','twL4zwq','mtq0vNndrwXn','mZaZody3mM5xDwTvDq','ntG0ntq2mhLzBwfIrG'];_0x187e=function(){return _0x8829ec;};return _0x187e();}const dmtoSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_bp':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ten_bp':String,'ma_doi':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ten_doi':String,'ma_to':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ten_to':{'type':String,'required':!![],'maxlength':0x400},'phu_trach':{'type':String,'uppercase':!![],'maxlength':0x400,'trim':!![]},'phoi_hop':{'type':String,'uppercase':!![],'maxlength':0x400,'trim':!![]},'exfields':Schema[_0x531dac(0x105)][_0x531dac(0xf2)],'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[_0x531dac(0x109)]},'date_updated':{'type':Date,'default':Date[_0x531dac(0x109)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});if((global[_0x531dac(0xf7)]||{})[_0x531dac(0x106)]){const GJZPuu='2|5|1|0|4|3|6|7'['split']('|');let IGshCH=0x0;while(!![]){switch(GJZPuu[IGshCH++]){case'0':dmtoSchema[_0x531dac(0xf6)]({'ma_bp':_0x531dac(0xf8),'ten_bp':'text','ma_doi':_0x531dac(0xf8),'ten_doi':_0x531dac(0xf8),'ma_to':_0x531dac(0xf8),'ten_to':_0x531dac(0xf8)},{'name':_0x531dac(0x101)});continue;case'1':dmtoSchema[_0x531dac(0xf6)]({'ten_bp':0x1});continue;case'2':dmtoSchema[_0x531dac(0xf6)]({'id_app':0x1,'ma_bp':0x1,'ma_doi':0x1,'ma_to':0x1},{'unique':!![]});continue;case'3':dmtoSchema[_0x531dac(0xf6)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'4':dmtoSchema[_0x531dac(0xf6)]({'status':0x1});continue;case'5':dmtoSchema['index']({'ten_to':0x1});continue;case'6':dmtoSchema['index']({'phu_trach':0x1});continue;case'7':dmtoSchema[_0x531dac(0xf6)]({'phoi_hop':0x1});continue;}break;}}const model=mongoose['models'][_0x531dac(0x102)]||mongoose[_0x531dac(0x108)](_0x531dac(0x102),dmtoSchema);model[_0x531dac(0x10a)]={'ma_to':[{'model':'phieudanhgia','key':'ma_to','error':_0x531dac(0x103)},{'model':_0x531dac(0xfb),'key':'ma_to','error':_0x531dac(0x103)}]},module[_0x531dac(0xfc)]=model;
|
package/server/models/dmtt.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
const dmttSchema=new Schema({id_app:String,loai_tt:String,ma_vt:{type:String,required
|
|
2
|
-
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&&(dmttSchema.index({id_app:1}),dmttSchema.index({id_app:1,ma_vt:1}),dmttSchema.index({id_app:1,loai_tt:1}),dmttSchema.index({id_app:1,nh_tt:1}),dmttSchema.index({id_app:1,nh_tt2:1}),dmttSchema.index({id_app:1,nh_tt3:1}),dmttSchema.index({id_app:1,nh_tt4:1}),dmttSchema.index({id_app:1,nh_tt5:1}),dmttSchema.index({id_app:1,ma_tt:1}),dmttSchema.index({id_app:1,ma_tt2:1}),dmttSchema.index({id_app:1,ma_can:1}),dmttSchema.index({id_app:1,ten_tt:1}),dmttSchema.index({id_app:1,
|
|
4
|
-
"details.ma_bien_the":1}),dmttSchema.index({id_app:1,"details.gia_tri_bien_the":1}),dmttSchema.index({id_app:1,status:1}),dmttSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1}),dmttSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,nh_tt:1}),dmttSchema.index({id_app:1,user_created:1,visible_to:1,nh_tt2:1}),dmttSchema.index({id_app:1,user_created:1,visible_to:1,nh_tt3:1}),dmttSchema.index({id_app:1,user_created:1,visible_to:1,nh_tt4:1}),dmttSchema.index({id_app:1,
|
|
5
|
-
user_created:1,visible_to:1,nh_tt5:1}),dmttSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,ma_vt:1}),dmttSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,ma_vt:1,ma_can:1}),dmttSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,ma_vt:1,loai_tt:1,ma_tt:1}),dmttSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1,"details.ma_bien_the":1,"details.gia_tri_bien_the":1}),dmttSchema.index({id_app:1,ma_vt:1,loai_tt:1,ma_tt:1},
|
|
6
|
-
{unique:!0}),dmttSchema.index({ma_vt:"text",ma_tt:"text",ten_tt:"text",ma_tt2:"text",ma_can:"text"},{name:"dmtt_index"}));const model=mongoose.models.dmtt||mongoose.model("dmtt",dmttSchema);module.exports=model;
|
|
1
|
+
const _0x298029=_0x1c8f;function _0x1c8f(_0x43df6f,_0x4dfb08){const _0x247b15=_0x247b();return _0x1c8f=function(_0x1c8f19,_0x63c783){_0x1c8f19=_0x1c8f19-0x1cd;let _0x38a6c0=_0x247b15[_0x1c8f19];if(_0x1c8f['wOVwmm']===undefined){var _0x21dd06=function(_0x541b71){const _0x4d68ff='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x43935a='',_0x1d4ba7='';for(let _0x500fb7=0x0,_0x249d68,_0xb35c9d,_0x1de5de=0x0;_0xb35c9d=_0x541b71['charAt'](_0x1de5de++);~_0xb35c9d&&(_0x249d68=_0x500fb7%0x4?_0x249d68*0x40+_0xb35c9d:_0xb35c9d,_0x500fb7++%0x4)?_0x43935a+=String['fromCharCode'](0xff&_0x249d68>>(-0x2*_0x500fb7&0x6)):0x0){_0xb35c9d=_0x4d68ff['indexOf'](_0xb35c9d);}for(let _0x2285fc=0x0,_0x46c010=_0x43935a['length'];_0x2285fc<_0x46c010;_0x2285fc++){_0x1d4ba7+='%'+('00'+_0x43935a['charCodeAt'](_0x2285fc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1d4ba7);};_0x1c8f['wQHbtn']=_0x21dd06,_0x43df6f=arguments,_0x1c8f['wOVwmm']=!![];}const _0x352e38=_0x247b15[0x0],_0x56db9a=_0x1c8f19+_0x352e38,_0x44d4ec=_0x43df6f[_0x56db9a];return!_0x44d4ec?(_0x38a6c0=_0x1c8f['wQHbtn'](_0x38a6c0),_0x43df6f[_0x56db9a]=_0x38a6c0):_0x38a6c0=_0x44d4ec,_0x38a6c0;},_0x1c8f(_0x43df6f,_0x4dfb08);}(function(_0x566039,_0xfe43dc){const _0x3ba9c9=_0x1c8f,_0x153e96=_0x566039();while(!![]){try{const _0x59ef0a=-parseInt(_0x3ba9c9(0x1de))/0x1+parseInt(_0x3ba9c9(0x1d6))/0x2+-parseInt(_0x3ba9c9(0x1d5))/0x3+-parseInt(_0x3ba9c9(0x1dc))/0x4+parseInt(_0x3ba9c9(0x1cd))/0x5*(-parseInt(_0x3ba9c9(0x1ce))/0x6)+parseInt(_0x3ba9c9(0x1d3))/0x7+-parseInt(_0x3ba9c9(0x1d0))/0x8*(parseInt(_0x3ba9c9(0x1d4))/0x9);if(_0x59ef0a===_0xfe43dc)break;else _0x153e96['push'](_0x153e96['shift']());}catch(_0x2ae044){_0x153e96['push'](_0x153e96['shift']());}}}(_0x247b,0x25d76));const dmttSchema=new Schema({'id_app':String,'loai_tt':String,'ma_vt':{'type':String,'required':!![],'maxlength':0x400,'uppercase':!![],'trim':!![]},'ma_tt':{'type':String,'required':!![],'maxlength':0x400,'trim':!![]},'ten_tt':{'type':String,'required':!![],'maxlength':0xfa0},'ma_tt2':{'type':String,'maxlength':0x400,'trim':!![]},'ma_can':{'type':String,'maxlength':0x400,'trim':!![]},'ma_dvt':{'type':String,'trim':!![]},'gia_ban_le':{'type':Number,'maxlength':0x0},'nh_tt':String,'nh_tt2':[String],'nh_tt3':[String],'nh_tt4':[String],'nh_tt5':[String],'details':[],'exfields':Schema[_0x298029(0x1e1)][_0x298029(0x1e2)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x298029(0x1d9)]},'date_updated':{'type':Date,'default':Date[_0x298029(0x1d9)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});if((global[_0x298029(0x1d1)]||{})[_0x298029(0x1dd)]){const ilCtVz=_0x298029(0x1d2)[_0x298029(0x1db)]('|');let TSzphv=0x0;while(!![]){switch(ilCtVz[TSzphv++]){case'0':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'nh_tt3':0x1});continue;case'1':dmttSchema[_0x298029(0x1d8)]({'ma_vt':_0x298029(0x1e0),'ma_tt':_0x298029(0x1e0),'ten_tt':_0x298029(0x1e0),'ma_tt2':_0x298029(0x1e0),'ma_can':_0x298029(0x1e0)},{'name':_0x298029(0x1d7)});continue;case'2':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'status':0x1});continue;case'3':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'nh_tt5':0x1});continue;case'4':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'details.ma_bien_the':0x1});continue;case'5':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'ma_can':0x1});continue;case'6':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'ma_vt':0x1,'loai_tt':0x1,'ma_tt':0x1});continue;case'7':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'ma_vt':0x1,'loai_tt':0x1,'ma_tt':0x1},{'unique':!![]});continue;case'8':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'nh_tt5':0x1});continue;case'9':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'loai_tt':0x1});continue;case'10':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'ma_vt':0x1,'ma_can':0x1});continue;case'11':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1});continue;case'12':dmttSchema['index']({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'13':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'details.gia_tri_bien_the':0x1});continue;case'14':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'ma_tt2':0x1});continue;case'15':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'nh_tt2':0x1});continue;case'16':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'ten_tt':0x1});continue;case'17':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'nh_tt2':0x1});continue;case'18':dmttSchema['index']({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'nh_tt4':0x1});continue;case'19':dmttSchema['index']({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'details.ma_bien_the':0x1,'details.gia_tri_bien_the':0x1});continue;case'20':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'nh_tt4':0x1});continue;case'21':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'ma_vt':0x1});continue;case'22':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'nh_tt3':0x1});continue;case'23':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'nh_tt':0x1});continue;case'24':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'ma_vt':0x1});continue;case'25':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'ma_tt':0x1});continue;case'26':dmttSchema[_0x298029(0x1d8)]({'id_app':0x1,'nh_tt':0x1});continue;}break;}}const model=mongoose[_0x298029(0x1df)][_0x298029(0x1cf)]||mongoose['model'](_0x298029(0x1cf),dmttSchema);module[_0x298029(0x1da)]=model;function _0x247b(){const _0x30c2e4=['mty5ntuYAu5TyKrY','y29UzMLNCW','mtf8mJf8oxWYnNWXnxWYmNWYmhWZFdi1Fde0Fdv8mtz8nhWXm3WYFdeYFdiZFde3Fdb8mtH8ohWYnhWXmhW2Fde5FdD8mq','mtCWotaWohLqBhPOrW','mtHsz2r0rem','mZaYmJHby3bZvwq','ntKWnty2A1rNsfvS','zg10Df9PBMrLEa','Aw5KzxG','BM93','zxHWB3j0CW','C3bSAxq','otmYndy0vwD6runK','y3jLyxrLsw5KzxHLCW','nty0odboELvYANK','Bw9KzwXZ','Dgv4Da','vhLWzxm','twL4zwq','mJqZnuTPD2DZBG','ntiYrwzmyvP1','zg10Da'];_0x247b=function(){return _0x30c2e4;};return _0x247b();}
|