flexbiz-server 12.4.21 → 12.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/server/app.js +1 -22
- package/server/auths/bearer.js +1 -3
- package/server/auths/facebook.js +1 -12
- package/server/auths/google.js +1 -13
- package/server/auths/local.js +1 -64
- package/server/cluster.js +1 -27
- package/server/controllers/controller.js +1 -107
- package/server/controllers/controllerRPT.js +1 -27
- package/server/controllers/controllerUtils.js +1 -76
- package/server/controllers/createHandler.js +1 -35
- package/server/controllers/createRouteHandler.js +1 -4
- package/server/controllers/deleteHandler.js +1 -11
- package/server/controllers/deleteManyHandler.js +1 -2
- package/server/controllers/exportHandler.js +1 -17
- package/server/controllers/findHandler.js +1 -53
- package/server/controllers/handlers.js +1 -3
- package/server/controllers/historyHandler.js +1 -5
- package/server/controllers/importFromExcelHandler.js +1 -14
- package/server/controllers/importFromGsHandler.js +1 -10
- package/server/controllers/importFromJsonHandler.js +1 -7
- package/server/controllers/importHandler.js +1 -21
- package/server/controllers/logHandler.js +1 -5
- package/server/controllers/rptCreateRouteHandler.js +1 -4
- package/server/controllers/rptExcelHandler.js +1 -32
- package/server/controllers/rptHandler.js +1 -13
- package/server/controllers/updateBookHandler.js +1 -10
- package/server/controllers/updateFieldHandler.js +1 -12
- package/server/controllers/updateHandler.js +1 -39
- package/server/controllers/updateKeyHandler.js +1 -14
- package/server/controllers/viewHandler.js +1 -13
- package/server/flow/FlowEngine.js +1 -64
- package/server/flow/WebhookManager.js +1 -26
- package/server/flow/handlers.js +1 -3
- package/server/flow/nodes/aiAnalysis.js +1 -9
- package/server/flow/nodes/customer.js +1 -15
- package/server/flow/nodes/data.js +1 -14
- package/server/flow/nodes/debug.js +1 -2
- package/server/flow/nodes/delay.js +1 -3
- package/server/flow/nodes/email.js +1 -9
- package/server/flow/nodes/event.js +1 -11
- package/server/flow/nodes/facebook.js +1 -3
- package/server/flow/nodes/facebookConversations.js +1 -5
- package/server/flow/nodes/facebookCreatePost.js +1 -10
- package/server/flow/nodes/facebookSendMessage.js +1 -12
- package/server/flow/nodes/forEachItem.js +1 -8
- package/server/flow/nodes/function.js +1 -4
- package/server/flow/nodes/httprequest.js +1 -7
- package/server/flow/nodes/inject.js +1 -12
- package/server/flow/nodes/pushNotification.js +1 -5
- package/server/flow/nodes/report.js +1 -6
- package/server/flow/nodes/saveData.js +1 -2
- package/server/flow/nodes/switch.js +1 -20
- package/server/flow/nodes/webhook.js +1 -1
- package/server/flow/nodes/zaloSendMessage.js +1 -4
- package/server/flow/utils.js +1 -2
- package/server/global.js +1 -23
- package/server/libs/BlockchainTransactionPool.js +1 -3
- package/server/libs/WorkerPool.js +1 -4
- package/server/libs/WorkerStaticPool.js +1 -16
- package/server/libs/WorkerStaticPool_v1.js +1 -5
- package/server/libs/assbonus.js +1 -7
- package/server/libs/backup.js +1 -2
- package/server/libs/blockchainconnect.js +1 -12
- package/server/libs/cdpsdiem.js +1 -5
- package/server/libs/cdpsdt.js +1 -7
- package/server/libs/cdpskh.js +1 -9
- package/server/libs/cdpsnphep.js +1 -6
- package/server/libs/cdpstk.js +1 -11
- package/server/libs/ckcn.js +1 -12
- package/server/libs/ckdiem.js +1 -5
- package/server/libs/ckdt.js +1 -6
- package/server/libs/cknphep.js +1 -6
- package/server/libs/cktk.js +1 -4
- package/server/libs/cktt.js +1 -9
- package/server/libs/ckvt.js +1 -12
- package/server/libs/ckvtcapphat.js +1 -6
- package/server/libs/ckvtnpp.js +1 -8
- package/server/libs/ckvttt.js +1 -11
- package/server/libs/createSocaitheongay.js +1 -9
- package/server/libs/ctdiem.js +1 -5
- package/server/libs/ctvt.js +1 -7
- package/server/libs/ctvtnpp.js +1 -7
- package/server/libs/ctvttt.js +1 -7
- package/server/libs/databanle.js +1 -17
- package/server/libs/databanlenpp.js +1 -8
- package/server/libs/databanletheongay.js +1 -27
- package/server/libs/dkcn.js +1 -10
- package/server/libs/dkdiem.js +1 -5
- package/server/libs/dkdt.js +1 -6
- package/server/libs/dknphep.js +1 -7
- package/server/libs/dktk.js +1 -4
- package/server/libs/dktt.js +1 -8
- package/server/libs/dkvt.js +1 -9
- package/server/libs/dkvtnpp.js +1 -7
- package/server/libs/dkvttt.js +1 -7
- package/server/libs/dncn.js +1 -6
- package/server/libs/dntk.js +1 -4
- package/server/libs/dntt.js +1 -6
- package/server/libs/docs.js +1 -452
- package/server/libs/dstkcn.js +1 -1
- package/server/libs/dstktt.js +1 -1
- package/server/libs/dtbanletheonpp.js +1 -17
- package/server/libs/dtbanletheosp.js +1 -15
- package/server/libs/dtbanletheospnpp.js +1 -15
- package/server/libs/email.js +1 -3
- package/server/libs/excel.js +1 -2
- package/server/libs/getGiaban.js +1 -67
- package/server/libs/getGiabanAsync.js +1 -1
- package/server/libs/getNotifies.js +1 -1
- package/server/libs/htmlReport.js +1 -9
- package/server/libs/initDatabase.js +1 -9
- package/server/libs/invoiceEasy.js +1 -109
- package/server/libs/invoiceViettel.js +1 -29
- package/server/libs/invoiceVnpt.js +1 -22
- package/server/libs/kpistatus.js +1 -32
- package/server/libs/load-template.js +1 -3
- package/server/libs/mailmanagement.js +1 -13
- package/server/libs/mongooseDeletePost.js +1 -6
- package/server/libs/mongooseLeanId.js +1 -1
- package/server/libs/mongoosePatch.js +1 -8
- package/server/libs/onepay-payment.js +1 -4
- package/server/libs/optimizeBookkeeping.js +1 -14
- package/server/libs/parse-template.js +1 -5
- package/server/libs/permission.js +1 -51
- package/server/libs/phanbokh.js +1 -3
- package/server/libs/post-book.js +1 -23
- package/server/libs/post-socai.js +1 -25
- package/server/libs/post-sokho.js +1 -27
- package/server/libs/prototypes.js +1 -29
- package/server/libs/psdt.js +1 -1
- package/server/libs/pskh.js +1 -1
- package/server/libs/pstk.js +1 -1
- package/server/libs/redis-cache.js +1 -17
- package/server/libs/restore.js +1 -1
- package/server/libs/schedule.js +1 -18
- package/server/libs/sessionContext.js +2 -14
- package/server/libs/textReport.js +1 -3
- package/server/libs/thnxt.js +1 -9
- package/server/libs/thnxtnpp.js +1 -9
- package/server/libs/thnxttt.js +1 -8
- package/server/libs/tinhGt.js +1 -7
- package/server/libs/tinhGtCapnhatPNK.js +1 -7
- package/server/libs/tinhGtPhanboHeSo.js +1 -12
- package/server/libs/tinhGtPhanboSltp.js +1 -10
- package/server/libs/tinhGtPhanboYtcp.js +1 -11
- package/server/libs/tinhGtSltk.js +1 -9
- package/server/libs/tinhGtThcppstk.js +1 -10
- package/server/libs/tinhGtTrucTiep.js +1 -7
- package/server/libs/tinhGtXoa.js +1 -3
- package/server/libs/tinhgiatb.js +1 -38
- package/server/libs/tinhgiatb1vt.js +1 -5
- package/server/libs/tinhhoahong.js +1 -64
- package/server/libs/tinhhoahongnpp.js +1 -46
- package/server/libs/tinhkhauhao1ts.js +1 -12
- package/server/libs/tinhkhauhaots.js +1 -8
- package/server/libs/tuoinophaithu.js +1 -10
- package/server/libs/tuoinophaitra.js +1 -11
- package/server/libs/utils.js +1 -78
- package/server/libs/validate.js +1 -4
- package/server/libs/validator-acc-cust.js +1 -1
- package/server/libs/validator-account.js +1 -4
- package/server/libs/validator-vt.js +1 -2
- package/server/libs/validator.js +1 -11
- package/server/libs/vsocai.js +1 -8
- package/server/models/account.js +1 -7
- package/server/models/afflink.js +1 -2
- package/server/models/app.js +1 -15
- package/server/models/approve.js +1 -93
- package/server/models/assabcihandler.js +1 -35
- package/server/models/assbank.js +1 -19
- package/server/models/assbooking.js +1 -4
- package/server/models/assbuy.js +1 -3
- package/server/models/asscashwithdraw.js +1 -4
- package/server/models/assfindhash.js +1 -2
- package/server/models/assinvestment.js +1 -13
- package/server/models/assissue.js +1 -2
- package/server/models/asskey.js +1 -15
- package/server/models/assneedtobuy.js +1 -6
- package/server/models/assperiod.js +1 -7
- package/server/models/assproduct.js +1 -13
- package/server/models/assprofitsharing.js +1 -4
- package/server/models/assreceiver.js +1 -2
- package/server/models/assrequest.js +1 -11
- package/server/models/asssell.js +1 -7
- package/server/models/asstransaction.js +1 -3
- package/server/models/asstransfer.js +1 -4
- package/server/models/assuser_identity.js +1 -4
- package/server/models/asswithdraw.js +1 -4
- package/server/models/attend.js +1 -2
- package/server/models/banggiaban.js +1 -8
- package/server/models/bangtinhluong.js +1 -6
- package/server/models/base.js +1 -1
- package/server/models/bds_area.js +1 -4
- package/server/models/bds_block.js +1 -3
- package/server/models/bds_building.js +1 -4
- package/server/models/bds_floor.js +1 -3
- package/server/models/bds_floordetail.js +1 -9
- package/server/models/bds_nhadat.js +1 -11
- package/server/models/bds_nhomnhadat.js +1 -4
- package/server/models/bds_phanloainhadat.js +1 -3
- package/server/models/bg1.js +1 -9
- package/server/models/bg2.js +1 -10
- package/server/models/cache.js +1 -3
- package/server/models/calllog.js +1 -4
- package/server/models/campaign.js +1 -6
- package/server/models/cart.js +1 -5
- package/server/models/cddiem.js +1 -2
- package/server/models/cddt.js +1 -3
- package/server/models/cdkh.js +1 -5
- package/server/models/cdkhtheongay.js +1 -5
- package/server/models/cdnphep.js +1 -2
- package/server/models/cdtk.js +1 -3
- package/server/models/cdtktheongay.js +1 -3
- package/server/models/cdvt.js +1 -5
- package/server/models/cdvtnpp.js +1 -6
- package/server/models/cdvttheongay.js +1 -5
- package/server/models/chamcong.js +1 -7
- package/server/models/checkin.js +1 -4
- package/server/models/checkinactivity.js +1 -3
- package/server/models/checkinkpi.js +1 -4
- package/server/models/checkinlocation.js +1 -2
- package/server/models/chitieukpi.js +1 -3
- package/server/models/chudethaoluan.js +1 -3
- package/server/models/ckgtluong.js +1 -2
- package/server/models/colleague.js +1 -2
- package/server/models/comment.js +1 -4
- package/server/models/congdoansx.js +1 -4
- package/server/models/congtacvien.js +1 -4
- package/server/models/congthuctinhgiaban.js +1 -8
- package/server/models/consultant.js +1 -4
- package/server/models/contract.js +1 -6
- package/server/models/counter.js +1 -2
- package/server/models/ctds.js +1 -5
- package/server/models/ctds2.js +1 -6
- package/server/models/currency.js +1 -3
- package/server/models/customer.js +1 -31
- package/server/models/databanle.js +1 -8
- package/server/models/datlich.js +1 -4
- package/server/models/department.js +1 -4
- package/server/models/dh2.js +1 -20
- package/server/models/diagram.js +1 -2
- package/server/models/dinhmucsx.js +1 -8
- package/server/models/dkhoc.js +1 -6
- package/server/models/dknphep.js +1 -2
- package/server/models/dmban.js +1 -4
- package/server/models/dmbp.js +1 -12
- package/server/models/dmca.js +1 -2
- package/server/models/dmchietkhau.js +1 -9
- package/server/models/dmchietkhauhd.js +1 -20
- package/server/models/dmcpmh.js +1 -2
- package/server/models/dmdiemthuong.js +1 -5
- package/server/models/dmdoi.js +1 -4
- package/server/models/dmdoituongdanhgia.js +1 -2
- package/server/models/dmdt.js +1 -8
- package/server/models/dmdvt.js +1 -3
- package/server/models/dmgiaban.js +1 -9
- package/server/models/dmgiamua.js +1 -5
- package/server/models/dmgiathitruong.js +1 -5
- package/server/models/dmgiathitruong_ngay.js +1 -2
- package/server/models/dmgiathitruong_theodoi.js +1 -2
- package/server/models/dmhoahonghd.js +1 -9
- package/server/models/dmhoahongnpp.js +1 -9
- package/server/models/dmkc.js +1 -3
- package/server/models/dmkho.js +1 -6
- package/server/models/dmkhuyenmai.js +1 -9
- package/server/models/dmkhuyenmaihd.js +1 -11
- package/server/models/dmletet.js +1 -2
- package/server/models/dmlo.js +1 -4
- package/server/models/dmloaicong.js +1 -4
- package/server/models/dmloaitask.js +1 -2
- package/server/models/dmloaits.js +1 -2
- package/server/models/dmnckkm.js +1 -4
- package/server/models/dmnghiepvu.js +1 -4
- package/server/models/dmnguonvon.js +1 -2
- package/server/models/dmnhnv.js +1 -4
- package/server/models/dmnv.js +1 -17
- package/server/models/dmnvt.js +1 -9
- package/server/models/dmphatdichvu.js +1 -5
- package/server/models/dmphi.js +1 -3
- package/server/models/dmqct.js +1 -3
- package/server/models/dmqddvt.js +1 -3
- package/server/models/dmtanggiamts.js +1 -3
- package/server/models/dmto.js +1 -4
- package/server/models/dmtt.js +1 -6
- package/server/models/dmvt.js +1 -17
- package/server/models/dmyt.js +1 -4
- package/server/models/dn0.js +1 -13
- package/server/models/dnm.js +1 -11
- package/server/models/dokho.js +1 -2
- package/server/models/domain.js +1 -2
- package/server/models/dvcs.js +1 -3
- package/server/models/ecomcategories.js +1 -3
- package/server/models/ecomcategories_cty.js +1 -3
- package/server/models/ecomproductlines.js +1 -2
- package/server/models/ecompromotion_flashsales.js +1 -2
- package/server/models/ecompromotion_freeships.js +1 -2
- package/server/models/email.js +1 -2
- package/server/models/endpoint.js +1 -1
- package/server/models/events.js +1 -3
- package/server/models/evoucher.js +1 -5
- package/server/models/experiencejourney.js +1 -2
- package/server/models/experiencejourneydata.js +1 -4
- package/server/models/experiencejourneypersona.js +1 -3
- package/server/models/experiencejourneystage.js +1 -2
- package/server/models/exportexceltemplate.js +1 -2
- package/server/models/fbconversation.js +1 -15
- package/server/models/fbmessage.js +1 -2
- package/server/models/fbpage.js +1 -2
- package/server/models/fbpost.js +1 -2
- package/server/models/fieldright.js +1 -2
- package/server/models/file.js +1 -4
- package/server/models/financialroadmap.js +1 -3
- package/server/models/flow.js +1 -2
- package/server/models/flowdata.js +1 -3
- package/server/models/folder.js +1 -4
- package/server/models/follow.js +1 -2
- package/server/models/form.js +1 -3
- package/server/models/forminfo.js +1 -5
- package/server/models/formvalue.js +1 -3
- package/server/models/giaoca.js +1 -4
- package/server/models/giatb.js +1 -3
- package/server/models/group.js +1 -11
- package/server/models/gt_ctgt.js +1 -4
- package/server/models/gt_hspb.js +1 -3
- package/server/models/gt_sltk.js +1 -3
- package/server/models/gt_thcppstk.js +1 -3
- package/server/models/hanmucton.js +1 -4
- package/server/models/hd1.js +1 -11
- package/server/models/hd2.js +1 -27
- package/server/models/hd3.js +1 -18
- package/server/models/hd4.js +1 -13
- package/server/models/hd7.js +1 -17
- package/server/models/hd8.js +1 -12
- package/server/models/hde.js +1 -11
- package/server/models/hlink.js +1 -2
- package/server/models/hlinkvalue.js +1 -2
- package/server/models/hmcn.js +1 -3
- package/server/models/hmcnct.js +1 -2
- package/server/models/hspbts.js +1 -4
- package/server/models/htl.js +1 -13
- package/server/models/importexceltemplate.js +1 -2
- package/server/models/introducebonus.js +1 -4
- package/server/models/introducecode.js +1 -3
- package/server/models/introducer.js +1 -4
- package/server/models/kbbtpb.js +1 -7
- package/server/models/kbmPttct.js +1 -4
- package/server/models/kbmTkgtgt.js +1 -5
- package/server/models/kbm_bcdkt.js +1 -4
- package/server/models/kbm_kqhdkd.js +1 -3
- package/server/models/kbm_lcttgt.js +1 -5
- package/server/models/kbm_lctttt.js +1 -4
- package/server/models/kbm_pttct.js +1 -4
- package/server/models/kbm_tkgtgt.js +1 -5
- package/server/models/kbmbcdkt.js +1 -4
- package/server/models/kbmbcqt.js +1 -4
- package/server/models/kbmkqhdkd.js +1 -3
- package/server/models/kbmlcttgt.js +1 -6
- package/server/models/kbmlctttt.js +1 -4
- package/server/models/kbmtmbctc.js +1 -4
- package/server/models/kehoachdtcp.js +1 -3
- package/server/models/kehoachmh.js +1 -8
- package/server/models/keyresult.js +1 -7
- package/server/models/khunghangthanhvien.js +1 -3
- package/server/models/label.js +1 -2
- package/server/models/labelinfo.js +1 -2
- package/server/models/lenhcapphat.js +1 -8
- package/server/models/lenhsx.js +1 -8
- package/server/models/lienhe.js +1 -4
- package/server/models/like_module.js +1 -2
- package/server/models/link.js +1 -2
- package/server/models/loaidiem.js +1 -2
- package/server/models/lock.js +1 -2
- package/server/models/log.js +1 -5
- package/server/models/mailaccount.js +1 -3
- package/server/models/mailgroup.js +1 -3
- package/server/models/mailreceived.js +1 -2
- package/server/models/mailschedule.js +1 -2
- package/server/models/mailsent.js +1 -2
- package/server/models/mailtemplate.js +1 -2
- package/server/models/maudanhgia.js +1 -2
- package/server/models/menuinfo.js +1 -2
- package/server/models/message.js +1 -8
- package/server/models/message2.js +1 -4
- package/server/models/message2setting.js +1 -3
- package/server/models/moduleinfo.js +1 -4
- package/server/models/momo.js +1 -17
- package/server/models/news.js +1 -3
- package/server/models/newsfeed.js +1 -4
- package/server/models/note.js +1 -2
- package/server/models/notification.js +1 -7
- package/server/models/okr.js +1 -4
- package/server/models/okrdiagram.js +1 -3
- package/server/models/onepay.js +1 -24
- package/server/models/opportunity.js +1 -4
- package/server/models/options.js +1 -2
- package/server/models/originimportid.js +1 -1
- package/server/models/otp.js +1 -1
- package/server/models/parameter.js +1 -2
- package/server/models/participant.js +1 -20
- package/server/models/partner.js +1 -1
- package/server/models/payload.js +1 -1
- package/server/models/pbl.js +1 -16
- package/server/models/pc0.js +1 -13
- package/server/models/pc1.js +1 -14
- package/server/models/pc2.js +1 -13
- package/server/models/pc3.js +1 -13
- package/server/models/pc5.js +1 -8
- package/server/models/pc6.js +1 -14
- package/server/models/pcl.js +1 -6
- package/server/models/pdn.js +1 -9
- package/server/models/pdx.js +1 -9
- package/server/models/pgh.js +1 -5
- package/server/models/phieudanhgia.js +1 -3
- package/server/models/pht.js +1 -8
- package/server/models/phucap.js +1 -4
- package/server/models/pkc.js +1 -6
- package/server/models/pkh.js +1 -6
- package/server/models/pkk.js +1 -10
- package/server/models/pkt.js +1 -12
- package/server/models/pn1.js +1 -17
- package/server/models/pn2.js +1 -11
- package/server/models/pn3.js +1 -13
- package/server/models/pn5.js +1 -14
- package/server/models/pn6.js +1 -14
- package/server/models/pn9.js +1 -17
- package/server/models/pnc.js +1 -10
- package/server/models/pnh.js +1 -12
- package/server/models/pnk.js +1 -10
- package/server/models/po1.js +1 -19
- package/server/models/ppb.js +1 -6
- package/server/models/profile.js +1 -4
- package/server/models/pt1.js +1 -12
- package/server/models/pt5.js +1 -8
- package/server/models/ptl.js +1 -6
- package/server/models/ptthanhtoan.js +1 -6
- package/server/models/purchase_contract.js +1 -17
- package/server/models/pxc.js +1 -9
- package/server/models/pxh.js +1 -12
- package/server/models/pxk.js +1 -10
- package/server/models/qts.js +1 -14
- package/server/models/qts_dieuchinh.js +1 -3
- package/server/models/qts_dieuchuyen.js +1 -4
- package/server/models/quanhuyen.js +1 -2
- package/server/models/reason.js +1 -2
- package/server/models/receivedinvoice.js +1 -2
- package/server/models/reportinfo.js +1 -5
- package/server/models/right.js +1 -4
- package/server/models/rpt.js +1 -2
- package/server/models/rptform.js +1 -5
- package/server/models/rptobject.js +1 -2
- package/server/models/sale_contract.js +1 -9
- package/server/models/schedule.js +1 -16
- package/server/models/schedule_log.js +1 -2
- package/server/models/service.js +1 -4
- package/server/models/shipbook.js +1 -12
- package/server/models/shortcut.js +1 -2
- package/server/models/smsaccount.js +1 -10
- package/server/models/smssend.js +1 -2
- package/server/models/so1.js +1 -22
- package/server/models/so2.js +1 -10
- package/server/models/so3.js +1 -9
- package/server/models/so5.js +1 -15
- package/server/models/so9.js +1 -19
- package/server/models/socai.js +1 -26
- package/server/models/socainpp.js +1 -18
- package/server/models/socaitc.js +1 -6
- package/server/models/socaitmp.js +1 -16
- package/server/models/socaitt.js +1 -4
- package/server/models/sodiemthuong.js +1 -4
- package/server/models/sokho.js +1 -28
- package/server/models/sokhocapphat.js +1 -18
- package/server/models/sokhokhongton.js +1 -19
- package/server/models/sokhonpp.js +1 -19
- package/server/models/sokhotc.js +1 -8
- package/server/models/sokhott.js +1 -18
- package/server/models/sophanbokh.js +1 -3
- package/server/models/sosanxuat.js +1 -5
- package/server/models/sotinhkh.js +1 -2
- package/server/models/spdd_ck.js +1 -3
- package/server/models/spdd_dk.js +1 -3
- package/server/models/step.js +1 -2
- package/server/models/strategicdiagram.js +1 -3
- package/server/models/strategicgoal.js +1 -4
- package/server/models/strategickpi.js +1 -6
- package/server/models/strategicobjective.js +1 -5
- package/server/models/strategicplan.js +1 -5
- package/server/models/subscribe.js +1 -2
- package/server/models/support.js +1 -2
- package/server/models/synctime.js +1 -2
- package/server/models/sysconfig.js +1 -2
- package/server/models/sysgroup.js +1 -2
- package/server/models/tableinfo.js +1 -3
- package/server/models/task.js +1 -9
- package/server/models/taskreg.js +1 -4
- package/server/models/tc.js +1 -2
- package/server/models/tdttco.js +1 -8
- package/server/models/tdttco_tt.js +1 -5
- package/server/models/tdttno.js +1 -8
- package/server/models/tdttno_tt.js +1 -5
- package/server/models/templaterpt.js +1 -2
- package/server/models/templatestore.js +1 -3
- package/server/models/templatevoucher.js +1 -3
- package/server/models/tinhthanh.js +1 -2
- package/server/models/tokens.js +1 -2
- package/server/models/tontucthoi.js +1 -9
- package/server/models/trangthai.js +1 -4
- package/server/models/trangthaiapp.js +1 -4
- package/server/models/transaction.js +1 -16
- package/server/models/trialinfo.js +1 -2
- package/server/models/user.js +1 -38
- package/server/models/usergroup.js +1 -7
- package/server/models/vanchuyen.js +1 -12
- package/server/models/vat.js +1 -3
- package/server/models/vatra.js +1 -6
- package/server/models/vatvao.js +1 -6
- package/server/models/versioninfo.js +1 -2
- package/server/models/vietqrbanks.js +1 -2
- package/server/models/vsocai.js +1 -6
- package/server/models/waitevent.js +1 -2
- package/server/models/wallet.js +1 -8
- package/server/models/warranty.js +1 -3
- package/server/models/warrantyclaim.js +1 -2
- package/server/models/warrantypolicy.js +1 -1
- package/server/models/xaphuong.js +1 -2
- package/server/models/xhd.js +1 -10
- package/server/models/ytdd_ck.js +1 -4
- package/server/models/ytdd_dk.js +1 -4
- package/server/models/zalo.js +1 -17
- package/server/modules/lists/bg-cddiem.js +1 -6
- package/server/modules/lists/bg-cddt.js +1 -7
- package/server/modules/lists/bg-cdkh.js +1 -11
- package/server/modules/lists/bg-cdnphep.js +1 -6
- package/server/modules/lists/bg-cdtk.js +1 -9
- package/server/modules/lists/bg-cdvt.js +1 -8
- package/server/modules/lists/bg-cdvtnpp.js +1 -8
- package/server/modules/lists/ls-account.js +1 -4
- package/server/modules/lists/ls-afflink.js +1 -3
- package/server/modules/lists/ls-approve.js +1 -4
- package/server/modules/lists/ls-assabcihandler.js +1 -3
- package/server/modules/lists/ls-assbank.js +1 -3
- package/server/modules/lists/ls-assbooking.js +1 -20
- package/server/modules/lists/ls-assbuy.js +1 -8
- package/server/modules/lists/ls-asscashwithdraw.js +1 -8
- package/server/modules/lists/ls-assinvestment.js +1 -31
- package/server/modules/lists/ls-assissue.js +1 -3
- package/server/modules/lists/ls-asskey.js +1 -41
- package/server/modules/lists/ls-assneedtobuy.js +1 -10
- package/server/modules/lists/ls-assperiod.js +1 -19
- package/server/modules/lists/ls-assproduct.js +1 -9
- package/server/modules/lists/ls-assprofitsharing.js +1 -8
- package/server/modules/lists/ls-assreceiver.js +1 -3
- package/server/modules/lists/ls-assrequest.js +1 -4
- package/server/modules/lists/ls-asssell.js +1 -13
- package/server/modules/lists/ls-asstransaction.js +1 -3
- package/server/modules/lists/ls-asstransfer.js +1 -3
- package/server/modules/lists/ls-assuser_identity.js +1 -1
- package/server/modules/lists/ls-asswithdraw.js +1 -12
- package/server/modules/lists/ls-bangtinhluong.js +1 -2
- package/server/modules/lists/ls-bds_area.js +1 -3
- package/server/modules/lists/ls-bds_block.js +1 -1
- package/server/modules/lists/ls-bds_building.js +1 -3
- package/server/modules/lists/ls-bds_dmnhbds.js +1 -6
- package/server/modules/lists/ls-bds_floor.js +1 -2
- package/server/modules/lists/ls-bds_floordetail.js +1 -19
- package/server/modules/lists/ls-bds_nhadat.js +1 -16
- package/server/modules/lists/ls-bds_nhomnhadat.js +1 -1
- package/server/modules/lists/ls-bds_phanloainhadat.js +1 -1
- package/server/modules/lists/ls-calllog.js +1 -4
- package/server/modules/lists/ls-campaign.js +1 -1
- package/server/modules/lists/ls-cart.js +1 -14
- package/server/modules/lists/ls-chamcong.js +1 -3
- package/server/modules/lists/ls-checkin.js +1 -12
- package/server/modules/lists/ls-checkinactivity.js +1 -8
- package/server/modules/lists/ls-checkinkpi.js +1 -3
- package/server/modules/lists/ls-checkinlocation.js +1 -1
- package/server/modules/lists/ls-chitieukpi.js +1 -1
- package/server/modules/lists/ls-chudethaoluan.js +1 -1
- package/server/modules/lists/ls-ckgtluong.js +1 -1
- package/server/modules/lists/ls-comment.js +1 -9
- package/server/modules/lists/ls-congdoansx.js +1 -3
- package/server/modules/lists/ls-congtacvien.js +1 -5
- package/server/modules/lists/ls-consultant.js +1 -2
- package/server/modules/lists/ls-contract.js +1 -7
- package/server/modules/lists/ls-ctds.js +1 -4
- package/server/modules/lists/ls-ctds2.js +1 -4
- package/server/modules/lists/ls-currency.js +1 -1
- package/server/modules/lists/ls-customer.js +1 -21
- package/server/modules/lists/ls-datlich.js +1 -9
- package/server/modules/lists/ls-dckhauhaots.js +1 -3
- package/server/modules/lists/ls-department.js +1 -3
- package/server/modules/lists/ls-diagram.js +1 -1
- package/server/modules/lists/ls-dkhoc.js +1 -6
- package/server/modules/lists/ls-dknphep.js +1 -1
- package/server/modules/lists/ls-dmban.js +1 -4
- package/server/modules/lists/ls-dmbp.js +1 -7
- package/server/modules/lists/ls-dmca.js +1 -1
- package/server/modules/lists/ls-dmchietkhau.js +1 -19
- package/server/modules/lists/ls-dmchietkhauhd.js +1 -4
- package/server/modules/lists/ls-dmchucvu.js +1 -2
- package/server/modules/lists/ls-dmcpmh.js +1 -1
- package/server/modules/lists/ls-dmdiemthuong.js +1 -4
- package/server/modules/lists/ls-dmdoi.js +1 -4
- package/server/modules/lists/ls-dmdoituongdanhgia.js +1 -1
- package/server/modules/lists/ls-dmdt.js +1 -11
- package/server/modules/lists/ls-dmdvt.js +1 -2
- package/server/modules/lists/ls-dmgiaban.js +1 -4
- package/server/modules/lists/ls-dmgiamua.js +1 -4
- package/server/modules/lists/ls-dmgiathitruong.js +1 -15
- package/server/modules/lists/ls-dmgiathitruong_ngay.js +1 -2
- package/server/modules/lists/ls-dmgiathitruong_theodoi.js +1 -1
- package/server/modules/lists/ls-dmhoahonghd.js +1 -1
- package/server/modules/lists/ls-dmhoahongnpp.js +1 -1
- package/server/modules/lists/ls-dmkc.js +1 -3
- package/server/modules/lists/ls-dmkho.js +1 -1
- package/server/modules/lists/ls-dmkhuyenmai.js +1 -5
- package/server/modules/lists/ls-dmkhuyenmaihd.js +1 -3
- package/server/modules/lists/ls-dmletet.js +1 -1
- package/server/modules/lists/ls-dmlo.js +1 -1
- package/server/modules/lists/ls-dmloaicong.js +1 -1
- package/server/modules/lists/ls-dmloaits.js +1 -1
- package/server/modules/lists/ls-dmnckkm.js +1 -7
- package/server/modules/lists/ls-dmnghiepvu.js +1 -1
- package/server/modules/lists/ls-dmnguonvon.js +1 -1
- package/server/modules/lists/ls-dmnhnv.js +1 -6
- package/server/modules/lists/ls-dmnhtask.js +1 -5
- package/server/modules/lists/ls-dmnkh.js +1 -6
- package/server/modules/lists/ls-dmntt.js +1 -6
- package/server/modules/lists/ls-dmnv.js +1 -17
- package/server/modules/lists/ls-dmnvt.js +1 -8
- package/server/modules/lists/ls-dmphatdichvu.js +1 -3
- package/server/modules/lists/ls-dmphi.js +1 -6
- package/server/modules/lists/ls-dmqct.js +1 -2
- package/server/modules/lists/ls-dmqddvt.js +1 -3
- package/server/modules/lists/ls-dmtanggiamts.js +1 -1
- package/server/modules/lists/ls-dmto.js +1 -5
- package/server/modules/lists/ls-dmtt.js +1 -7
- package/server/modules/lists/ls-dmvt.js +1 -68
- package/server/modules/lists/ls-dmyt.js +1 -1
- package/server/modules/lists/ls-dokho.js +1 -1
- package/server/modules/lists/ls-dvcs.js +1 -1
- package/server/modules/lists/ls-ecomcategories.js +1 -5
- package/server/modules/lists/ls-ecomcategories_cty.js +1 -5
- package/server/modules/lists/ls-email.js +1 -4
- package/server/modules/lists/ls-events.js +1 -3
- package/server/modules/lists/ls-evoucher.js +1 -3
- package/server/modules/lists/ls-experiencejourney.js +1 -1
- package/server/modules/lists/ls-experiencejourneydata.js +1 -3
- package/server/modules/lists/ls-experiencejourneypersona.js +1 -4
- package/server/modules/lists/ls-experiencejourneystage.js +1 -1
- package/server/modules/lists/ls-fbconversation.js +1 -2
- package/server/modules/lists/ls-fbmessage.js +1 -2
- package/server/modules/lists/ls-fbpage.js +1 -11
- package/server/modules/lists/ls-fbpost.js +1 -2
- package/server/modules/lists/ls-file.js +1 -31
- package/server/modules/lists/ls-financialroadmap.js +1 -3
- package/server/modules/lists/ls-flow.js +1 -6
- package/server/modules/lists/ls-flowdata.js +1 -1
- package/server/modules/lists/ls-folder.js +1 -1
- package/server/modules/lists/ls-form.js +1 -1
- package/server/modules/lists/ls-forminfo.js +1 -1
- package/server/modules/lists/ls-formvalue.js +1 -1
- package/server/modules/lists/ls-giaoca.js +1 -4
- package/server/modules/lists/ls-group.js +1 -5
- package/server/modules/lists/ls-hlink.js +1 -1
- package/server/modules/lists/ls-hlinkvalue.js +1 -1
- package/server/modules/lists/ls-hmcn.js +1 -2
- package/server/modules/lists/ls-hspbts.js +1 -3
- package/server/modules/lists/ls-introducebonus.js +1 -4
- package/server/modules/lists/ls-introducecode.js +1 -10
- package/server/modules/lists/ls-introducer.js +1 -20
- package/server/modules/lists/ls-kbm-bcdkt.js +1 -1
- package/server/modules/lists/ls-kbm-bcqt.js +1 -5
- package/server/modules/lists/ls-kbm-kqhdkd.js +1 -1
- package/server/modules/lists/ls-kbm-lcttgt.js +1 -1
- package/server/modules/lists/ls-kbm-lctttt.js +1 -1
- package/server/modules/lists/ls-kbm-pttct.js +1 -3
- package/server/modules/lists/ls-kbm-tkgtgt.js +1 -3
- package/server/modules/lists/ls-kbm-tmbctc.js +1 -3
- package/server/modules/lists/ls-kehoachdtcp.js +1 -4
- package/server/modules/lists/ls-keyresult.js +1 -7
- package/server/modules/lists/ls-khunghangthanhvien.js +1 -1
- package/server/modules/lists/ls-kygui.js +1 -19
- package/server/modules/lists/ls-label.js +1 -1
- package/server/modules/lists/ls-lienhe.js +1 -4
- package/server/modules/lists/ls-like-module.js +1 -1
- package/server/modules/lists/ls-link.js +1 -1
- package/server/modules/lists/ls-loaidiem.js +1 -1
- package/server/modules/lists/ls-lock.js +1 -1
- package/server/modules/lists/ls-log.js +1 -3
- package/server/modules/lists/ls-mailaccount.js +1 -5
- package/server/modules/lists/ls-mailreceived.js +1 -5
- package/server/modules/lists/ls-mailschedule.js +1 -7
- package/server/modules/lists/ls-mailsent.js +1 -4
- package/server/modules/lists/ls-mailtemplate.js +1 -4
- package/server/modules/lists/ls-maudanhgia.js +1 -3
- package/server/modules/lists/ls-message2.js +1 -8
- package/server/modules/lists/ls-message2setting.js +1 -5
- package/server/modules/lists/ls-news.js +1 -7
- package/server/modules/lists/ls-newsfeed.js +1 -4
- package/server/modules/lists/ls-note.js +1 -6
- package/server/modules/lists/ls-okr.js +1 -5
- package/server/modules/lists/ls-okrdiagram.js +1 -1
- package/server/modules/lists/ls-opportunity.js +1 -5
- package/server/modules/lists/ls-options.js +1 -4
- package/server/modules/lists/ls-parameter.js +1 -3
- package/server/modules/lists/ls-participant.js +1 -10
- package/server/modules/lists/ls-phieudanhgia.js +1 -7
- package/server/modules/lists/ls-phucap.js +1 -2
- package/server/modules/lists/ls-profile.js +1 -1
- package/server/modules/lists/ls-ptthanhtoan.js +1 -3
- package/server/modules/lists/ls-qts-dieuchinh.js +1 -2
- package/server/modules/lists/ls-qts-dieuchuyen.js +1 -8
- package/server/modules/lists/ls-reason.js +1 -1
- package/server/modules/lists/ls-rpt.js +1 -5
- package/server/modules/lists/ls-rptform.js +1 -4
- package/server/modules/lists/ls-service.js +1 -3
- package/server/modules/lists/ls-shortcut.js +1 -1
- package/server/modules/lists/ls-smsaccount.js +1 -1
- package/server/modules/lists/ls-smssend.js +1 -3
- package/server/modules/lists/ls-sosanxuat.js +1 -4
- package/server/modules/lists/ls-step.js +1 -1
- package/server/modules/lists/ls-strategicdiagram.js +1 -1
- package/server/modules/lists/ls-strategicgoal.js +1 -3
- package/server/modules/lists/ls-strategickpi.js +1 -7
- package/server/modules/lists/ls-strategicobjective.js +1 -3
- package/server/modules/lists/ls-strategicplan.js +1 -6
- package/server/modules/lists/ls-support.js +1 -3
- package/server/modules/lists/ls-task.js +1 -34
- package/server/modules/lists/ls-taskreg.js +1 -2
- package/server/modules/lists/ls-tc.js +1 -1
- package/server/modules/lists/ls-templaterpt.js +1 -5
- package/server/modules/lists/ls-templatevoucher.js +1 -1
- package/server/modules/lists/ls-tontucthoi.js +1 -3
- package/server/modules/lists/ls-trangthaiapp.js +1 -3
- package/server/modules/lists/ls-transaction.js +1 -4
- package/server/modules/lists/ls-usergroup.js +1 -7
- package/server/modules/lists/ls-vat.js +1 -1
- package/server/modules/lists/ls-vatra.js +1 -5
- package/server/modules/lists/ls-vatvao.js +1 -6
- package/server/modules/lists/ls-waitevent.js +1 -1
- package/server/modules/lists/ls-warranty.js +1 -4
- package/server/modules/lists/ls_hanmucton.js +1 -3
- package/server/modules/lists/ls_hspb.js +1 -4
- package/server/modules/lists/ls_spdd_ck.js +1 -3
- package/server/modules/lists/ls_spdd_dk.js +1 -3
- package/server/modules/lists/ls_ytdd_ck.js +1 -4
- package/server/modules/lists/ls_ytdd_dk.js +1 -4
- package/server/modules/lists/sys-attend.js +1 -4
- package/server/modules/lists/sys-follow.js +1 -4
- package/server/modules/lists/sys-right.js +1 -2
- package/server/modules/public/app.js +1 -4
- package/server/modules/public/approve.js +1 -37
- package/server/modules/public/callin.js +1 -7
- package/server/modules/public/comment.js +1 -5
- package/server/modules/public/dmnvt.js +1 -4
- package/server/modules/public/dmvt.js +1 -9
- package/server/modules/public/file.js +1 -11
- package/server/modules/public/form.js +1 -7
- package/server/modules/public/forminfo.js +1 -1
- package/server/modules/public/group.js +1 -4
- package/server/modules/public/hlink.js +1 -3
- package/server/modules/public/introducecode.js +1 -1
- package/server/modules/public/listinfo.js +1 -1
- package/server/modules/public/media-webhook.js +1 -1
- package/server/modules/public/partner.js +1 -1
- package/server/modules/public/paymentCallback.js +1 -32
- package/server/modules/public/province.js +1 -1
- package/server/modules/public/ptthanhtoan.js +1 -4
- package/server/modules/public/subscribe.js +1 -30
- package/server/modules/public/support.js +1 -3
- package/server/modules/public/tableinfo.js +1 -1
- package/server/modules/public/trialinfo.js +1 -4
- package/server/modules/public/versioninfo.js +1 -1
- package/server/modules/reports/calc-tinhgiatb.js +1 -6
- package/server/modules/reports/calc-tinhgiathanh.js +1 -6
- package/server/modules/reports/calc-tinhkhauhaots.js +1 -3
- package/server/modules/reports/calc-tinhluong.js +1 -37
- package/server/modules/reports/rp-analyzedata.js +1 -6
- package/server/modules/reports/rp-assbonus.js +1 -4
- package/server/modules/reports/rp-assinterest.js +1 -8
- package/server/modules/reports/rp-assproductowners.js +1 -3
- package/server/modules/reports/rp-asssupply.js +1 -1
- package/server/modules/reports/rp-asstransferlog.js +1 -10
- package/server/modules/reports/rp-banggiatb.js +1 -3
- package/server/modules/reports/rp-bangtinhkhauhao.js +1 -6
- package/server/modules/reports/rp-baocaokhachhang.js +1 -6
- package/server/modules/reports/rp-bcdkt.js +1 -11
- package/server/modules/reports/rp-bcintroducebonus.js +1 -4
- package/server/modules/reports/rp-bckhtiemnang.js +1 -3
- package/server/modules/reports/rp-bcqt.js +1 -85
- package/server/modules/reports/rp-bkct.js +1 -13
- package/server/modules/reports/rp-bkshipbook.js +1 -8
- package/server/modules/reports/rp-bkvanchuyen.js +1 -8
- package/server/modules/reports/rp-bkvatra.js +1 -7
- package/server/modules/reports/rp-bkvatvao.js +1 -7
- package/server/modules/reports/rp-capnhatsocaitc.js +1 -4
- package/server/modules/reports/rp-cdpsdiem.js +1 -4
- package/server/modules/reports/rp-cdpsdt.js +1 -5
- package/server/modules/reports/rp-cdpskh.js +1 -7
- package/server/modules/reports/rp-cdpsnphep.js +1 -3
- package/server/modules/reports/rp-cdpstk.js +1 -4
- package/server/modules/reports/rp-chitietchitientheohoadon.js +1 -12
- package/server/modules/reports/rp-chitiettaisan.js +1 -13
- package/server/modules/reports/rp-chitietthutientheohoadon.js +1 -13
- package/server/modules/reports/rp-ckcn.js +1 -3
- package/server/modules/reports/rp-ckdiem.js +1 -2
- package/server/modules/reports/rp-cktk.js +1 -3
- package/server/modules/reports/rp-ckvt.js +1 -10
- package/server/modules/reports/rp-ckvttheokho.js +1 -4
- package/server/modules/reports/rp-ckvttheotg.js +1 -4
- package/server/modules/reports/rp-ckvttt.js +1 -3
- package/server/modules/reports/rp-congnophaithutheotuoino.js +1 -3
- package/server/modules/reports/rp-congnophaitratheotuoino.js +1 -3
- package/server/modules/reports/rp-congnosapthu.js +1 -4
- package/server/modules/reports/rp-congnosaptra.js +1 -4
- package/server/modules/reports/rp-congviectheobp.js +1 -9
- package/server/modules/reports/rp-congviectheodt.js +1 -8
- package/server/modules/reports/rp-congviectheokh.js +1 -8
- package/server/modules/reports/rp-congviectheonv.js +1 -9
- package/server/modules/reports/rp-congviectheotimeline.js +1 -6
- package/server/modules/reports/rp-ctbanle.js +1 -15
- package/server/modules/reports/rp-ctbanle2.js +1 -20
- package/server/modules/reports/rp-ctbanlectv.js +1 -20
- package/server/modules/reports/rp-ctbanlenpp.js +1 -24
- package/server/modules/reports/rp-ctdanhgianhanvien.js +1 -8
- package/server/modules/reports/rp-cthangbanbitralai.js +1 -4
- package/server/modules/reports/rp-ctmuahang.js +1 -7
- package/server/modules/reports/rp-cttralaihang.js +1 -4
- package/server/modules/reports/rp-databanle.js +1 -10
- package/server/modules/reports/rp-diemthuong.js +1 -2
- package/server/modules/reports/rp-dkcn.js +1 -3
- package/server/modules/reports/rp-dktk.js +1 -2
- package/server/modules/reports/rp-dsnhanviencm.js +1 -9
- package/server/modules/reports/rp-dsnhanvientb.js +1 -9
- package/server/modules/reports/rp-dtbanlekempk.js +1 -9
- package/server/modules/reports/rp-dtbanletheoct.js +1 -23
- package/server/modules/reports/rp-dtbanletheoctkempk.js +1 -25
- package/server/modules/reports/rp-dtbanletheokh.js +1 -20
- package/server/modules/reports/rp-dtbanletheokhnpp.js +1 -19
- package/server/modules/reports/rp-dtbanletheokho.js +1 -18
- package/server/modules/reports/rp-dtbanletheonam.js +1 -3
- package/server/modules/reports/rp-dtbanletheongay.js +1 -1
- package/server/modules/reports/rp-dtbanletheonpp.js +1 -23
- package/server/modules/reports/rp-dtbanletheonv.js +1 -19
- package/server/modules/reports/rp-dtbanletheoquy.js +1 -3
- package/server/modules/reports/rp-dtbanletheosp.js +1 -8
- package/server/modules/reports/rp-dtbanletheospnpp.js +1 -6
- package/server/modules/reports/rp-dtbanletheothang.js +1 -3
- package/server/modules/reports/rp-dtbanletheothungan.js +1 -12
- package/server/modules/reports/rp-dtbanletheovt.js +1 -2
- package/server/modules/reports/rp-dtbanletheovtnpp.js +1 -2
- package/server/modules/reports/rp-dutoanthuchitheodt.js +1 -4
- package/server/modules/reports/rp-getPXC2PNC.js +1 -8
- package/server/modules/reports/rp-getariseofaccountsbymonth.js +1 -4
- package/server/modules/reports/rp-getbtpb.js +1 -6
- package/server/modules/reports/rp-getcashbycashier.js +1 -7
- package/server/modules/reports/rp-getcschietkhau.js +1 -5
- package/server/modules/reports/rp-getdinhmuc4lenhcp.js +1 -7
- package/server/modules/reports/rp-getdinhmuc4pxk.js +1 -9
- package/server/modules/reports/rp-getdk4pht.js +1 -8
- package/server/modules/reports/rp-getdk4pkc.js +1 -9
- package/server/modules/reports/rp-getdttheoca.js +1 -5
- package/server/modules/reports/rp-getinvoice2pay.js +1 -4
- package/server/modules/reports/rp-getinvoice2receive.js +1 -4
- package/server/modules/reports/rp-getinvoice2return.js +1 -5
- package/server/modules/reports/rp-getinvoice2return_bl.js +1 -6
- package/server/modules/reports/rp-getkehoachmh4lenhcp.js +1 -4
- package/server/modules/reports/rp-getkhauhao.js +1 -7
- package/server/modules/reports/rp-getluong.js +1 -8
- package/server/modules/reports/rp-getluongchuyen.js +1 -5
- package/server/modules/reports/rp-getpn2fee.js +1 -5
- package/server/modules/reports/rp-getpn2return.js +1 -5
- package/server/modules/reports/rp-getthanhpham4pnk.js +1 -7
- package/server/modules/reports/rp-getvc2xhd.js +1 -11
- package/server/modules/reports/rp-gt_cpnvltt.js +1 -6
- package/server/modules/reports/rp-hangbanbitralai.js +1 -5
- package/server/modules/reports/rp-hangthanhvien.js +1 -3
- package/server/modules/reports/rp-hoadonbanhangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoadonmuahangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoahong.js +1 -15
- package/server/modules/reports/rp-kcsns.js +1 -19
- package/server/modules/reports/rp-kgchamcong.js +1 -7
- package/server/modules/reports/rp-khoaso.js +1 -12
- package/server/modules/reports/rp-kiemtrasocaitcvssocai.js +1 -6
- package/server/modules/reports/rp-kqdanhgianhanvien.js +1 -5
- package/server/modules/reports/rp-kqhdkd.js +1 -7
- package/server/modules/reports/rp-lcttgt.js +1 -17
- package/server/modules/reports/rp-lctttt.js +1 -11
- package/server/modules/reports/rp-linkslist.js +1 -4
- package/server/modules/reports/rp-phanbochitienchohoadon.js +1 -11
- package/server/modules/reports/rp-phanbothutienchohoadon.js +1 -10
- package/server/modules/reports/rp-ptbitralai.js +1 -7
- package/server/modules/reports/rp-ptcttct.js +1 -22
- package/server/modules/reports/rp-ptdonhang.js +1 -8
- package/server/modules/reports/rp-pttct.js +1 -49
- package/server/modules/reports/rp-pttctkho.js +1 -32
- package/server/modules/reports/rp-pttctkho2.js +1 -29
- package/server/modules/reports/rp-referredusers.js +1 -1
- package/server/modules/reports/rp-sctbhxh.js +1 -4
- package/server/modules/reports/rp-sctcnkh.js +1 -17
- package/server/modules/reports/rp-sctdiem.js +1 -3
- package/server/modules/reports/rp-sctdt.js +1 -7
- package/server/modules/reports/rp-sctdtcp.js +1 -11
- package/server/modules/reports/rp-sctluong.js +1 -4
- package/server/modules/reports/rp-sctthuetncn.js +1 -4
- package/server/modules/reports/rp-scttk.js +1 -7
- package/server/modules/reports/rp-sctvt.js +1 -5
- package/server/modules/reports/rp-sctvt_sl.js +1 -5
- package/server/modules/reports/rp-sctvtnpp.js +1 -6
- package/server/modules/reports/rp-sctvttt.js +1 -5
- package/server/modules/reports/rp-search.js +1 -4
- package/server/modules/reports/rp-socai.js +1 -6
- package/server/modules/reports/rp-socaitk.js +1 -7
- package/server/modules/reports/rp-sochut.js +1 -7
- package/server/modules/reports/rp-sokho.js +1 -7
- package/server/modules/reports/rp-sokhott.js +1 -5
- package/server/modules/reports/rp-sonkbh.js +1 -5
- package/server/modules/reports/rp-sonkc.js +1 -6
- package/server/modules/reports/rp-sonkct.js +1 -5
- package/server/modules/reports/rp-sonkmh.js +1 -5
- package/server/modules/reports/rp-sonktt.js +1 -5
- package/server/modules/reports/rp-soquy.js +1 -11
- package/server/modules/reports/rp-sosanhkhvatt.js +1 -13
- package/server/modules/reports/rp-sosanhkhvatt2.js +1 -6
- package/server/modules/reports/rp-sotaisan.js +1 -13
- package/server/modules/reports/rp-sotiengui.js +1 -7
- package/server/modules/reports/rp-taodinhmuctudkhoc.js +1 -5
- package/server/modules/reports/rp-thbanhangkempk.js +1 -28
- package/server/modules/reports/rp-thdanhgianhanvien.js +1 -9
- package/server/modules/reports/rp-thgt.js +1 -6
- package/server/modules/reports/rp-thnxt.js +1 -12
- package/server/modules/reports/rp-thnxt_sl.js +1 -9
- package/server/modules/reports/rp-thnxtnpp.js +1 -10
- package/server/modules/reports/rp-thnxttt.js +1 -9
- package/server/modules/reports/rp-tkbanhangtheogioithieu.js +1 -9
- package/server/modules/reports/rp-tkgioithieukh.js +1 -4
- package/server/modules/reports/rp-tkgtgt.js +1 -7
- package/server/modules/reports/rp-tmbctc.js +1 -20
- package/server/modules/reports/rp-tonghopbanhang.js +1 -6
- package/server/modules/reports/rp-tonghopmuahang.js +1 -5
- package/server/modules/reports/rp-tonghoptralaihang.js +1 -5
- package/server/modules/reports/rp-tongquanbanle.js +1 -20
- package/server/modules/reports/rp-tongquanbds.js +1 -3
- package/server/modules/reports/rp-tongquancongty.js +1 -6
- package/server/modules/reports/rp-tongquanctvnpp.js +1 -12
- package/server/modules/reports/rp-tongquannvbh.js +1 -14
- package/server/modules/reports/rp-tongquannvnpp.js +1 -5
- package/server/modules/reports/rp-uoctinhnvl.js +1 -11
- package/server/modules/reports/rp-wallet.js +1 -3
- package/server/modules/reports/rpt-tkdiemtichluy.js +1 -9
- package/server/modules/systems/sys-app.js +1 -30
- package/server/modules/systems/sys-colleague.js +1 -11
- package/server/modules/systems/sys-domain.js +1 -4
- package/server/modules/systems/sys-ecomproductlines.js +1 -1
- package/server/modules/systems/sys-exportexceltemplate.js +1 -4
- package/server/modules/systems/sys-fieldright.js +1 -3
- package/server/modules/systems/sys-importexceltemplate.js +1 -4
- package/server/modules/systems/sys-labelinfo.js +1 -4
- package/server/modules/systems/sys-listinfo.js +1 -10
- package/server/modules/systems/sys-menuinfo.js +1 -4
- package/server/modules/systems/sys-message.js +1 -14
- package/server/modules/systems/sys-moduleinfo.js +1 -4
- package/server/modules/systems/sys-notification.js +1 -8
- package/server/modules/systems/sys-quanhuyen.js +1 -4
- package/server/modules/systems/sys-reportinfo.js +1 -4
- package/server/modules/systems/sys-rptobject.js +1 -3
- package/server/modules/systems/sys-schedule.js +1 -11
- package/server/modules/systems/sys-sysconfig.js +1 -3
- package/server/modules/systems/sys-sysgroup.js +1 -3
- package/server/modules/systems/sys-tableinfo.js +1 -3
- package/server/modules/systems/sys-templatestore.js +1 -5
- package/server/modules/systems/sys-tinhthanh.js +1 -4
- package/server/modules/systems/sys-token.js +1 -3
- package/server/modules/systems/sys-trangthai.js +1 -4
- package/server/modules/systems/sys-trialinfo.js +1 -3
- package/server/modules/systems/sys-user.js +1 -45
- package/server/modules/systems/sys-users.js +1 -10
- package/server/modules/systems/sys-versioninfo.js +1 -3
- package/server/modules/systems/sys-vietqrbanks.js +1 -4
- package/server/modules/systems/sys-xaphuong.js +1 -4
- package/server/modules/vouchers/vo-banggiaban.js +1 -5
- package/server/modules/vouchers/vo-bc1.js +1 -33
- package/server/modules/vouchers/vo-bc5.js +1 -15
- package/server/modules/vouchers/vo-bg1.js +1 -10
- package/server/modules/vouchers/vo-bg2.js +1 -12
- package/server/modules/vouchers/vo-bn1.js +1 -35
- package/server/modules/vouchers/vo-bn5.js +1 -15
- package/server/modules/vouchers/vo-dh2.js +1 -35
- package/server/modules/vouchers/vo-dinhmucsx.js +1 -6
- package/server/modules/vouchers/vo-dkb.js +1 -21
- package/server/modules/vouchers/vo-dn0.js +1 -9
- package/server/modules/vouchers/vo-dnm.js +1 -21
- package/server/modules/vouchers/vo-hd1.js +1 -36
- package/server/modules/vouchers/vo-hd2.js +1 -107
- package/server/modules/vouchers/vo-hd3.js +1 -44
- package/server/modules/vouchers/vo-hd4.js +1 -13
- package/server/modules/vouchers/vo-hd7.js +1 -29
- package/server/modules/vouchers/vo-hd8.js +1 -29
- package/server/modules/vouchers/vo-hde.js +1 -40
- package/server/modules/vouchers/vo-htl.js +1 -11
- package/server/modules/vouchers/vo-kbbtpb.js +1 -6
- package/server/modules/vouchers/vo-kehoachmh.js +1 -13
- package/server/modules/vouchers/vo-lenhcapphat.js +1 -10
- package/server/modules/vouchers/vo-lenhsx.js +1 -12
- package/server/modules/vouchers/vo-pbl.js +1 -93
- package/server/modules/vouchers/vo-pc0.js +1 -14
- package/server/modules/vouchers/vo-pc1.js +1 -31
- package/server/modules/vouchers/vo-pc2.js +1 -24
- package/server/modules/vouchers/vo-pc3.js +1 -14
- package/server/modules/vouchers/vo-pc5.js +1 -15
- package/server/modules/vouchers/vo-pc6.js +1 -19
- package/server/modules/vouchers/vo-pcl.js +1 -7
- package/server/modules/vouchers/vo-pdn.js +1 -11
- package/server/modules/vouchers/vo-pdx.js +1 -9
- package/server/modules/vouchers/vo-pgh.js +1 -19
- package/server/modules/vouchers/vo-pht.js +1 -7
- package/server/modules/vouchers/vo-pkc.js +1 -7
- package/server/modules/vouchers/vo-pkh.js +1 -10
- package/server/modules/vouchers/vo-pkk.js +1 -12
- package/server/modules/vouchers/vo-pkt.js +1 -13
- package/server/modules/vouchers/vo-pn1.js +1 -33
- package/server/modules/vouchers/vo-pn2.js +1 -16
- package/server/modules/vouchers/vo-pn3.js +1 -18
- package/server/modules/vouchers/vo-pn5.js +1 -19
- package/server/modules/vouchers/vo-pn6.js +1 -18
- package/server/modules/vouchers/vo-pn9.js +1 -22
- package/server/modules/vouchers/vo-pnc.js +1 -20
- package/server/modules/vouchers/vo-pnh.js +1 -20
- package/server/modules/vouchers/vo-pnk.js +1 -14
- package/server/modules/vouchers/vo-pnknpp.js +1 -12
- package/server/modules/vouchers/vo-po1.js +1 -15
- package/server/modules/vouchers/vo-ppb.js +1 -8
- package/server/modules/vouchers/vo-pt1.js +1 -21
- package/server/modules/vouchers/vo-pt5.js +1 -15
- package/server/modules/vouchers/vo-ptl.js +1 -8
- package/server/modules/vouchers/vo-purchase_contract.js +1 -9
- package/server/modules/vouchers/vo-pxc.js +1 -22
- package/server/modules/vouchers/vo-pxh.js +1 -28
- package/server/modules/vouchers/vo-pxk.js +1 -15
- package/server/modules/vouchers/vo-pxknpp.js +1 -14
- package/server/modules/vouchers/vo-qts.js +1 -12
- package/server/modules/vouchers/vo-sale_contract.js +1 -11
- package/server/modules/vouchers/vo-shipbook.js +1 -17
- package/server/modules/vouchers/vo-so1.js +1 -126
- package/server/modules/vouchers/vo-so2.js +1 -37
- package/server/modules/vouchers/vo-so3.js +1 -41
- package/server/modules/vouchers/vo-so5.js +1 -57
- package/server/modules/vouchers/vo-so7.js +1 -97
- package/server/modules/vouchers/vo-so9.js +1 -119
- package/server/modules/vouchers/vo-vanchuyen.js +1 -14
- package/server/modules/vouchers/vo-xhd.js +1 -33
- package/server/route.js +1 -51
- package/server/services/invoiceFetcher.js +1 -15
- package/server/sslConfig.js +1 -2
- package/server/transactionMiddleware.js +1 -5
- package/server/workers/backupApp.js +1 -9
- package/server/workers/calcGrid.js +1 -9
- package/server/workers/customerOnImport.js +1 -8
- package/server/workers/dmvtOnImport.js +1 -9
- package/server/workers/excelParser.js +1 -9
- package/server/workers/inputWorker.js +1 -6
- package/server/workers/pushNotify.js +1 -10
- package/server/workers/reportWorker.js +1 -7
- package/server/workers/restoreApp.js +1 -23
- package/server/workers/runScript.js +1 -4
- package/server/workers/sendEmail.js +1 -13
- package/server/workers/webhook.js +1 -5
|
@@ -1,3 +1 @@
|
|
|
1
|
-
const tableinfoSchema=new global
|
|
2
|
-
rowSpan:Number,colSpan:Number,textAlign:String,index:Number,dataType:String,readOnly:Boolean,hide:Boolean,hide_when:String,width:Number,color:String,bold:Boolean,italic:Boolean,small:Boolean,label:String,maximumFractionDigits:Number,style:String}]}],description: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&&(tableinfoSchema.index({code:"text",title:"text"}),tableinfoSchema.index({code:1}),tableinfoSchema.index({title:1}),tableinfoSchema.index({status:1}),tableinfoSchema.index({user_created:1,visible_to:1,visible_to_users:1}));var model=global.mongoose.models.tableinfo||global.mongoose.model("tableinfo",tableinfoSchema);module.exports=model;
|
|
1
|
+
const _0x2908fb=_0x10b8;(function(_0x952956,_0x334b2c){const _0xb347a2=_0x10b8,_0x18b01d=_0x952956();while(!![]){try{const _0x49db5f=parseInt(_0xb347a2(0x174))/0x1*(parseInt(_0xb347a2(0x179))/0x2)+parseInt(_0xb347a2(0x185))/0x3*(parseInt(_0xb347a2(0x176))/0x4)+-parseInt(_0xb347a2(0x17a))/0x5*(parseInt(_0xb347a2(0x175))/0x6)+-parseInt(_0xb347a2(0x17b))/0x7+parseInt(_0xb347a2(0x170))/0x8+-parseInt(_0xb347a2(0x16f))/0x9*(parseInt(_0xb347a2(0x16e))/0xa)+parseInt(_0xb347a2(0x183))/0xb*(-parseInt(_0xb347a2(0x180))/0xc);if(_0x49db5f===_0x334b2c)break;else _0x18b01d['push'](_0x18b01d['shift']());}catch(_0x38960b){_0x18b01d['push'](_0x18b01d['shift']());}}}(_0x2fd9,0x80869));const _0x1b9621=(function(){let _0x5e7906=!![];return function(_0x339696,_0x154a20){const _0x2eecab=_0x5e7906?function(){const _0x3c3540=_0x10b8;if(_0x154a20){const _0x15e0e2=_0x154a20[_0x3c3540(0x173)](_0x339696,arguments);return _0x154a20=null,_0x15e0e2;}}:function(){};return _0x5e7906=![],_0x2eecab;};}()),_0x4d9b6f=_0x1b9621(this,function(){const _0xd378b0=_0x10b8;return _0x4d9b6f[_0xd378b0(0x17f)]()['search'](_0xd378b0(0x178))[_0xd378b0(0x17f)]()[_0xd378b0(0x171)](_0x4d9b6f)['search'](_0xd378b0(0x178));});_0x4d9b6f();const tableinfoSchema=new global[(_0x2908fb(0x17c))]({'code':{'type':String,'uppercase':!![],'required':!![],'trim':!![]},'title':{'type':String,'uppercase':!![],'required':!![]},'headers':[{'line':Number,'hide':String,'cells':[{'header':String,'field':String,'rowSpan':Number,'colSpan':Number,'textAlign':String,'index':Number,'dataType':String,'readOnly':Boolean,'hide':Boolean,'hide_when':String,'width':Number,'color':String,'bold':Boolean,'italic':Boolean,'small':Boolean,'label':String,'maximumFractionDigits':Number,'style':String}]}],'rows':[{'line':Number,'hide':String,'cells':[{'field':String,'rowSpan':Number,'colSpan':Number,'textAlign':String,'index':Number,'dataType':String,'readOnly':Boolean,'hide':Boolean,'hide_when':String,'width':Number,'color':String,'bold':Boolean,'italic':Boolean,'small':Boolean,'label':String,'maximumFractionDigits':Number,'style':String}]}],'description':String,'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x2908fb(0x16d)]},'date_updated':{'type':Date,'default':Date['now']},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});if((global[_0x2908fb(0x177)]||{})['createIndexes']){const qGcBcA=_0x2908fb(0x17d)[_0x2908fb(0x16b)]('|');let vzkPRO=0x0;while(!![]){switch(qGcBcA[vzkPRO++]){case'0':tableinfoSchema[_0x2908fb(0x17e)]({'title':0x1});continue;case'1':tableinfoSchema[_0x2908fb(0x17e)]({'status':0x1});continue;case'2':tableinfoSchema[_0x2908fb(0x17e)]({'code':0x1});continue;case'3':tableinfoSchema[_0x2908fb(0x17e)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'4':tableinfoSchema[_0x2908fb(0x17e)]({'code':_0x2908fb(0x184),'title':_0x2908fb(0x184)});continue;}break;}}var model=global[_0x2908fb(0x181)][_0x2908fb(0x182)]['tableinfo']||global['mongoose'][_0x2908fb(0x172)](_0x2908fb(0x16c),tableinfoSchema);function _0x2fd9(){const _0x28769f=['muDgsNjZzG','nZeZntjVy0LPALO','odm2mtjgswnWzeO','y29UzMLNCW','kcGOlISPkYKRksSK','mti4mZeYngjOrNb0qW','mJv5BNjHv1G','mZaXntK3mxDuqxjqDW','u2nOzw1H','nhWYFdb8mxWZ','Aw5KzxG','Dg9tDhjPBMC','mtj2Ag5jvgG','Bw9Uz29VC2u','Bw9KzwXZ','mtKYnJKXng9uyxPysq','Dgv4Da','mteXrxzHzKTf','C3bSAxq','DgfIBgvPBMzV','BM93','mty3mgLrCNPQra','nde0odfyuhblDNa','ndm3mZi2nefOwhfuzW','y29UC3rYDwn0B3i','Bw9KzwW','yxbWBhK'];_0x2fd9=function(){return _0x28769f;};return _0x2fd9();}function _0x10b8(_0x42216f,_0x3a393f){const _0x3f79a2=_0x2fd9();return _0x10b8=function(_0x4d9b6f,_0x1b9621){_0x4d9b6f=_0x4d9b6f-0x16b;let _0x2fd97e=_0x3f79a2[_0x4d9b6f];if(_0x10b8['lWUnfd']===undefined){var _0x10b82c=function(_0x482bcf){const _0x25ac4a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x264b04='',_0x563de4='',_0x271c54=_0x264b04+_0x10b82c;for(let _0x16ce78=0x0,_0x29f644,_0x4a1774,_0xc38abb=0x0;_0x4a1774=_0x482bcf['charAt'](_0xc38abb++);~_0x4a1774&&(_0x29f644=_0x16ce78%0x4?_0x29f644*0x40+_0x4a1774:_0x4a1774,_0x16ce78++%0x4)?_0x264b04+=_0x271c54['charCodeAt'](_0xc38abb+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x29f644>>(-0x2*_0x16ce78&0x6)):_0x16ce78:0x0){_0x4a1774=_0x25ac4a['indexOf'](_0x4a1774);}for(let _0x1e1933=0x0,_0x22428b=_0x264b04['length'];_0x1e1933<_0x22428b;_0x1e1933++){_0x563de4+='%'+('00'+_0x264b04['charCodeAt'](_0x1e1933)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x563de4);};_0x10b8['dgvXee']=_0x10b82c,_0x42216f=arguments,_0x10b8['lWUnfd']=!![];}const _0x128edf=_0x3f79a2[0x0],_0x19dd61=_0x4d9b6f+_0x128edf,_0x5393c2=_0x42216f[_0x19dd61];if(!_0x5393c2){const _0x5d56ce=function(_0x1b328b){this['qVPJri']=_0x1b328b,this['Ykgeny']=[0x1,0x0,0x0],this['ZXNSgw']=function(){return'newState';},this['wxyIRL']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['TPGlNj']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5d56ce['prototype']['rFdOpo']=function(){const _0x531863=new RegExp(this['wxyIRL']+this['TPGlNj']),_0x59336a=_0x531863['test'](this['ZXNSgw']['toString']())?--this['Ykgeny'][0x1]:--this['Ykgeny'][0x0];return this['yFdyyU'](_0x59336a);},_0x5d56ce['prototype']['yFdyyU']=function(_0x3832f9){if(!Boolean(~_0x3832f9))return _0x3832f9;return this['KCllDl'](this['qVPJri']);},_0x5d56ce['prototype']['KCllDl']=function(_0x516e7a){for(let _0x58b904=0x0,_0x4083c2=this['Ykgeny']['length'];_0x58b904<_0x4083c2;_0x58b904++){this['Ykgeny']['push'](Math['round'](Math['random']())),_0x4083c2=this['Ykgeny']['length'];}return _0x516e7a(this['Ykgeny'][0x0]);},new _0x5d56ce(_0x10b8)['rFdOpo'](),_0x2fd97e=_0x10b8['dgvXee'](_0x2fd97e),_0x42216f[_0x19dd61]=_0x2fd97e;}else _0x2fd97e=_0x5393c2;return _0x2fd97e;},_0x10b8(_0x42216f,_0x3a393f);}module['exports']=model;
|
package/server/models/task.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const taskSchema=new Schema({id_app:{type:String,required:!0},ten_cv:{type:String,required:!0},id_link:{type:String},id_job:{type:String},id_ct:{type:String},id_kh:{type:String,default:""},id_dt:{type:String,default:""},ten_kh:String,id_bp:{type:String,default:""},ten_bp:String,id_lh:{type:String,default:""},id_dokho:{type:String},diem_toi_thieu:Number,diem_toi_da:Number,diem_du_tinh:Number,chia_diem:Boolean,he_so_chia_diem:Schema.Types.Mixed,mieu_ta:{type:String},ghi_chu:{type:String},nh_cv:{type:String},
|
|
2
|
-
ten_nh_cv:String,ma_loai_cv:String,phu_trach:{type:String,lowercase:!0},ten_phu_trach:String,location:{type:String},attends:[String],attend_groups:[String],nguoi_kiem_tra:String,nguoi_thuc_hien:String,start_date:{type:Date},due_date:{type:Date},finished_date:{type:Date},estimate_complete_hour:Number,complete_hour:Number,nhac_nho_truoc:{type:Number,default:60},reminder:{type:Date},repeat:{type:Number,default:0},priority:{type:Number,default:1},progress:{type:Number,default:0},percent:{type:Number,
|
|
3
|
-
default:0,max:100},exfields:Schema.Types.Mixed,labels:[String],todos:Schema.Types.Mixed,stt:{type:Number,default:0},saved:Boolean,ma_ct:{type:String,uppercase:!0},so_ct:{type:String,uppercase:!0},ngay_ct:Date,ma_nt:{type:String,uppercase:!0},ty_gia:Number,thu_phi:Number,da_thu:Number,tk_no:{type:String,uppercase:!0},tk_co:{type:String,uppercase:!0},phi_dich_vu_1_lan:Number,ty_le_hoa_hong:Number,tien_hoa_hong:Number,tk_no_hh:{type:String,uppercase:!0},tk_co_hh:{type:String,uppercase:!0},ma_dvcs:String,
|
|
4
|
-
group_id_link:String,group_name_link: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:""},visible_to:{type:Number,default:0},visible_to_users:[String],update_right:[String],delete_right:[String]});
|
|
5
|
-
(global.configs||{}).createIndexes&&(taskSchema.index({id_app:1,start_date:-1}),taskSchema.index({id_app:1,start_date:-1,due_date:-1}),taskSchema.index({id_app:1,start_date:-1,ten_cv:1}),taskSchema.index({id_app:1,start_date:-1,nh_cv:1}),taskSchema.index({id_app:1,start_date:-1,phu_trach:1,ten_phu_trach:1}),taskSchema.index({id_app:1,start_date:-1,user_created:1}),taskSchema.index({id_app:1,start_date:-1,date_created:-1}),taskSchema.index({id_app:1,start_date:-1,labels:1}),taskSchema.index({id_app:1,
|
|
6
|
-
start_date:-1,nguoi_thuc_hien:1,nguoi_kiem_tra:1}),taskSchema.index({id_app:1,start_date:-1,ma_loai_cv:1}),taskSchema.index({id_app:1,id_ct:1}),taskSchema.index({id_app:1,id_kh:1,ten_kh:1}),taskSchema.index({id_app:1,id_bp:1,ten_bp:1}),taskSchema.index({id_app:1,so_ct:1}),taskSchema.index({id_link:1}),taskSchema.index({id_app:1,id_job:1}),taskSchema.index({id_app:1,progress:1}),taskSchema.index({id_app:1,saved:1}),taskSchema.index({id_app:1,attends:1}),taskSchema.index({id_app:1,status:1}),taskSchema.index({id_app:1,
|
|
7
|
-
start_date:-1,progress:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1}),taskSchema.index({id_app:1,start_date:-1,progress:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,due_date:-1}),taskSchema.index({id_app:1,start_date:-1,progress:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,ten_cv:1}),taskSchema.index({id_app:1,start_date:-1,progress:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,id_kh:1,ten_kh:1}),taskSchema.index({id_app:1,start_date:-1,
|
|
8
|
-
progress:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,id_bp:1,ten_bp:1}),taskSchema.index({id_app:1,start_date:-1,progress:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,saved:1}),taskSchema.index({id_app:1,start_date:-1,progress:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,nh_cv:1}),taskSchema.index({id_app:1,start_date:-1,progress:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,ma_loai_cv:1}),taskSchema.index({id_app:1,ten_cv:"text",phu_trach:"text",
|
|
9
|
-
ten_phu_trach:"text",ten_nh_cv:"text",ten_bp:"text",ten_kh:"text"},{name:"task_index_text"}));const model=mongoose.models.task||mongoose.model("task",taskSchema);if((global.configs||{}).createIndexes)model.on("index",async function($err$$){$err$$?console.error("task index error",$err$$):console.info("task indexing complete")});model.calcCompleteHours=$obj$$=>$obj$$.complete_hour;module.exports=model;
|
|
1
|
+
const _0x3df742=_0x38e4;(function(_0x351261,_0x41940b){const _0x1d3f31=_0x38e4,_0x429c30=_0x351261();while(!![]){try{const _0x5d1a64=parseInt(_0x1d3f31(0xb5))/0x1+-parseInt(_0x1d3f31(0xa1))/0x2+parseInt(_0x1d3f31(0x9f))/0x3*(-parseInt(_0x1d3f31(0xbb))/0x4)+parseInt(_0x1d3f31(0xa6))/0x5+parseInt(_0x1d3f31(0xa7))/0x6*(-parseInt(_0x1d3f31(0xc2))/0x7)+parseInt(_0x1d3f31(0xb8))/0x8*(-parseInt(_0x1d3f31(0xa4))/0x9)+parseInt(_0x1d3f31(0xb1))/0xa*(parseInt(_0x1d3f31(0xbf))/0xb);if(_0x5d1a64===_0x41940b)break;else _0x429c30['push'](_0x429c30['shift']());}catch(_0x4d2481){_0x429c30['push'](_0x429c30['shift']());}}}(_0x3e76,0x646a3));const _0x4094c7=(function(){const _0x50f40f=_0x38e4,_0x22b22b={'AIjwy':function(_0x3b4d19,_0x3ff783){return _0x3b4d19!==_0x3ff783;},'ngFJz':_0x50f40f(0x9a),'jOhnx':'PtTyL'};let _0x4526ea=!![];return function(_0x4fffb5,_0x31893a){const _0x5db474=_0x50f40f;if(_0x22b22b[_0x5db474(0x9b)](_0x22b22b['ngFJz'],_0x22b22b['jOhnx'])){const _0x516a8c=_0x4526ea?function(){const _0x577b63=_0x5db474;if(_0x31893a){const _0x2c284c=_0x31893a[_0x577b63(0x99)](_0x4fffb5,arguments);return _0x31893a=null,_0x2c284c;}}:function(){};return _0x4526ea=![],_0x516a8c;}else{const _0x4484a4=_0x42f678[_0x5db474(0x99)](_0x127e4a,arguments);return _0x862ca3=null,_0x4484a4;}};}()),_0x1eef01=_0x4094c7(this,function(){const _0x37fdb4=_0x38e4,_0x5dd338={'MsisI':_0x37fdb4(0xab)};return _0x1eef01[_0x37fdb4(0xbd)]()['search'](_0x5dd338[_0x37fdb4(0xad)])['toString']()[_0x37fdb4(0xb6)](_0x1eef01)[_0x37fdb4(0xa9)](_0x5dd338[_0x37fdb4(0xad)]);});function _0x38e4(_0x540887,_0x2cca85){const _0x3573f8=_0x3e76();return _0x38e4=function(_0x1eef01,_0x4094c7){_0x1eef01=_0x1eef01-0x96;let _0x3e768e=_0x3573f8[_0x1eef01];if(_0x38e4['RruGYF']===undefined){var _0x38e456=function(_0x3de0a9){const _0x59638b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1db16f='',_0x547f54='',_0x35d80b=_0x1db16f+_0x38e456;for(let _0x4bc0e9=0x0,_0x145a44,_0x2ebcd7,_0x5be693=0x0;_0x2ebcd7=_0x3de0a9['charAt'](_0x5be693++);~_0x2ebcd7&&(_0x145a44=_0x4bc0e9%0x4?_0x145a44*0x40+_0x2ebcd7:_0x2ebcd7,_0x4bc0e9++%0x4)?_0x1db16f+=_0x35d80b['charCodeAt'](_0x5be693+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x145a44>>(-0x2*_0x4bc0e9&0x6)):_0x4bc0e9:0x0){_0x2ebcd7=_0x59638b['indexOf'](_0x2ebcd7);}for(let _0x5db3d8=0x0,_0x58e0e0=_0x1db16f['length'];_0x5db3d8<_0x58e0e0;_0x5db3d8++){_0x547f54+='%'+('00'+_0x1db16f['charCodeAt'](_0x5db3d8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x547f54);};_0x38e4['OWgGOS']=_0x38e456,_0x540887=arguments,_0x38e4['RruGYF']=!![];}const _0x35948e=_0x3573f8[0x0],_0x135220=_0x1eef01+_0x35948e,_0x1f074a=_0x540887[_0x135220];if(!_0x1f074a){const _0x5298ed=function(_0x1938f6){this['qeAVIS']=_0x1938f6,this['ZNgnLA']=[0x1,0x0,0x0],this['dWdSyJ']=function(){return'newState';},this['gQbEod']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['jfmgvq']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5298ed['prototype']['lPTXCC']=function(){const _0x48faf3=new RegExp(this['gQbEod']+this['jfmgvq']),_0x287493=_0x48faf3['test'](this['dWdSyJ']['toString']())?--this['ZNgnLA'][0x1]:--this['ZNgnLA'][0x0];return this['TxRPVw'](_0x287493);},_0x5298ed['prototype']['TxRPVw']=function(_0x2e428b){if(!Boolean(~_0x2e428b))return _0x2e428b;return this['FmIJTI'](this['qeAVIS']);},_0x5298ed['prototype']['FmIJTI']=function(_0x3b8dc4){for(let _0x2603b3=0x0,_0x3e818c=this['ZNgnLA']['length'];_0x2603b3<_0x3e818c;_0x2603b3++){this['ZNgnLA']['push'](Math['round'](Math['random']())),_0x3e818c=this['ZNgnLA']['length'];}return _0x3b8dc4(this['ZNgnLA'][0x0]);},new _0x5298ed(_0x38e4)['lPTXCC'](),_0x3e768e=_0x38e4['OWgGOS'](_0x3e768e),_0x540887[_0x135220]=_0x3e768e;}else _0x3e768e=_0x1f074a;return _0x3e768e;},_0x38e4(_0x540887,_0x2cca85);}_0x1eef01();const taskSchema=new Schema({'id_app':{'type':String,'required':!![]},'ten_cv':{'type':String,'required':!![]},'id_link':{'type':String},'id_job':{'type':String},'id_ct':{'type':String},'id_kh':{'type':String,'default':''},'id_dt':{'type':String,'default':''},'ten_kh':String,'id_bp':{'type':String,'default':''},'ten_bp':String,'id_lh':{'type':String,'default':''},'id_dokho':{'type':String},'diem_toi_thieu':Number,'diem_toi_da':Number,'diem_du_tinh':Number,'chia_diem':Boolean,'he_so_chia_diem':Schema['Types'][_0x3df742(0xa2)],'mieu_ta':{'type':String},'ghi_chu':{'type':String},'nh_cv':{'type':String},'ten_nh_cv':String,'ma_loai_cv':String,'phu_trach':{'type':String,'lowercase':!![]},'ten_phu_trach':String,'location':{'type':String},'attends':[String],'attend_groups':[String],'nguoi_kiem_tra':String,'nguoi_thuc_hien':String,'start_date':{'type':Date},'due_date':{'type':Date},'finished_date':{'type':Date},'estimate_complete_hour':Number,'complete_hour':Number,'nhac_nho_truoc':{'type':Number,'default':0x3c},'reminder':{'type':Date},'repeat':{'type':Number,'default':0x0},'priority':{'type':Number,'default':0x1},'progress':{'type':Number,'default':0x0},'percent':{'type':Number,'default':0x0,'max':0x64},'exfields':Schema[_0x3df742(0xc0)][_0x3df742(0xa2)],'labels':[String],'todos':Schema[_0x3df742(0xc0)][_0x3df742(0xa2)],'stt':{'type':Number,'default':0x0},'saved':Boolean,'ma_ct':{'type':String,'uppercase':!![]},'so_ct':{'type':String,'uppercase':!![]},'ngay_ct':Date,'ma_nt':{'type':String,'uppercase':!![]},'ty_gia':Number,'thu_phi':Number,'da_thu':Number,'tk_no':{'type':String,'uppercase':!![]},'tk_co':{'type':String,'uppercase':!![]},'phi_dich_vu_1_lan':Number,'ty_le_hoa_hong':Number,'tien_hoa_hong':Number,'tk_no_hh':{'type':String,'uppercase':!![]},'tk_co_hh':{'type':String,'uppercase':!![]},'ma_dvcs':String,'group_id_link':String,'group_name_link':String,'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x3df742(0xac)]},'date_updated':{'type':Date,'default':Date[_0x3df742(0xac)]},'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[_0x3df742(0xa8)]||{})[_0x3df742(0xa0)]){const aAQaCH='17|11|25|21|23|27|7|14|6|18|15|20|5|22|1|2|12|19|28|3|10|4|9|16|24|13|26|8|0'['split']('|');let XndhLV=0x0;while(!![]){switch(aAQaCH[XndhLV++]){case'0':taskSchema['index']({'id_app':0x1,'ten_cv':_0x3df742(0xc1),'phu_trach':'text','ten_phu_trach':'text','ten_nh_cv':_0x3df742(0xc1),'ten_bp':_0x3df742(0xc1),'ten_kh':_0x3df742(0xc1)},{'name':_0x3df742(0xb3)});continue;case'1':taskSchema[_0x3df742(0x97)]({'id_link':0x1});continue;case'2':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'id_job':0x1});continue;case'3':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'status':0x1});continue;case'4':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'due_date':-0x1});continue;case'5':taskSchema['index']({'id_app':0x1,'id_bp':0x1,'ten_bp':0x1});continue;case'6':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'nguoi_thuc_hien':0x1,'nguoi_kiem_tra':0x1});continue;case'7':taskSchema['index']({'id_app':0x1,'start_date':-0x1,'date_created':-0x1});continue;case'8':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'ma_loai_cv':0x1});continue;case'9':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'ten_cv':0x1});continue;case'10':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'11':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'due_date':-0x1});continue;case'12':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'progress':0x1});continue;case'13':taskSchema['index']({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'saved':0x1});continue;case'14':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'labels':0x1});continue;case'15':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'id_ct':0x1});continue;case'16':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'id_kh':0x1,'ten_kh':0x1});continue;case'17':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1});continue;case'18':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'ma_loai_cv':0x1});continue;case'19':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'saved':0x1});continue;case'20':taskSchema['index']({'id_app':0x1,'id_kh':0x1,'ten_kh':0x1});continue;case'21':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'nh_cv':0x1});continue;case'22':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'so_ct':0x1});continue;case'23':taskSchema['index']({'id_app':0x1,'start_date':-0x1,'phu_trach':0x1,'ten_phu_trach':0x1});continue;case'24':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'id_bp':0x1,'ten_bp':0x1});continue;case'25':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'ten_cv':0x1});continue;case'26':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'nh_cv':0x1});continue;case'27':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'start_date':-0x1,'user_created':0x1});continue;case'28':taskSchema[_0x3df742(0x97)]({'id_app':0x1,'attends':0x1});continue;}break;}}const model=mongoose[_0x3df742(0x9c)]['task']||mongoose[_0x3df742(0x9d)](_0x3df742(0xb0),taskSchema);function _0x3e76(){const _0x1247fb=['quLQD3K','Bw9KzwXZ','Bw9KzwW','C3bSAxq','mJmYnZKXouXgugnfuG','y3jLyxrLsw5KzxHLCW','nti2mdHHuNjXtM8','twL4zwq','mJn8mtz8mtD8mtf8mtj8m3WXnhWYnxW2FdeWFde5Fde4Fdi3FdD8nhWXnxWYnhWYmhWYnNW1FdeZFdiXFdiYFdb8mNW4Fdi4FdL8mq','nJaZvuXmBePy','vfn0u1y','mZm3ntK3nxvqqNndyG','nZC0ndjctgryDM0','y29UzMLNCW','C2vHCMnO','zfbUvKW','kcGOlISPkYKRksSK','BM93','txnPC0K','CwL5Auq','y2fSy0nVBxbSzxrLsg91CNm','DgfZAW','mJG2ntCWv2nZD2DN','CvzoEwO','DgfZA19PBMrLEf90zxH0','zxHWB3j0CW','mtC5ndGWvgXhuNjY','y29UC3rYDwn0B3i','CNHerfi','ndm4nJrbANPJCvy','y29TCgXLDgvFAg91CG','DgfZAYbPBMrLEgLUzYbJB21WBgv0zq','nhPXDgTptG','vfnOCfy','Dg9tDhjPBMC','v1nqwLi','mZyZCejWy3PZ','vhLWzxm','Dgv4Da','mte5v0DbruDb','DgfZAYbPBMrLEcbLCNjVCG','vMvSzvK','Aw5KzxG','zxjYB3i','yxbWBhK','qLncDhC'];_0x3e76=function(){return _0x1247fb;};return _0x3e76();}(global[_0x3df742(0xa8)]||{})[_0x3df742(0xa0)]&&model['on'](_0x3df742(0x97),async function(_0x4299f9){const _0x5f351d=_0x3df742,_0x2aae62={'TStSV':_0x5f351d(0xc1),'dPnVL':_0x5f351d(0xb3),'qiyiD':function(_0x2a0ec7,_0x17dc92){return _0x2a0ec7!==_0x17dc92;},'WSPZR':_0x5f351d(0x96),'cqjHT':function(_0x180241,_0x367284){return _0x180241===_0x367284;},'qVNyj':_0x5f351d(0xb7),'TShpV':_0x5f351d(0xba)};if(_0x4299f9){if(_0x2aae62[_0x5f351d(0xae)](_0x2aae62[_0x5f351d(0xbe)],_0x2aae62[_0x5f351d(0xbe)])){if(_0xc459ea){const _0x3873be=_0x24a3f6['apply'](_0x485ec1,arguments);return _0x20a1b0=null,_0x3873be;}}else console[_0x5f351d(0x98)](_0x5f351d(0xc3),_0x4299f9);}else{if(_0x2aae62['cqjHT'](_0x2aae62[_0x5f351d(0xb2)],_0x2aae62[_0x5f351d(0xb2)]))console['info'](_0x2aae62[_0x5f351d(0xbc)]);else{const _0x581477=_0x5f351d(0xa3)[_0x5f351d(0x9e)]('|');let _0x2e25d4=0x0;while(!![]){switch(_0x581477[_0x2e25d4++]){case'0':_0x1d022b['index']({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'id_kh':0x1,'ten_kh':0x1});continue;case'1':_0x5dac72['index']({'id_app':0x1,'ten_cv':_0x2aae62[_0x5f351d(0xa5)],'phu_trach':_0x2aae62[_0x5f351d(0xa5)],'ten_phu_trach':'text','ten_nh_cv':_0x2aae62['TStSV'],'ten_bp':_0x2aae62[_0x5f351d(0xa5)],'ten_kh':_0x2aae62[_0x5f351d(0xa5)]},{'name':_0x2aae62[_0x5f351d(0xaa)]});continue;case'2':_0x18f79c[_0x5f351d(0x97)]({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'id_bp':0x1,'ten_bp':0x1});continue;case'3':_0x2eda91[_0x5f351d(0x97)]({'id_app':0x1,'start_date':-0x1,'user_created':0x1});continue;case'4':_0x5d0734['index']({'id_link':0x1});continue;case'5':_0x192027[_0x5f351d(0x97)]({'id_app':0x1,'status':0x1});continue;case'6':_0x4d5285[_0x5f351d(0x97)]({'id_app':0x1,'start_date':-0x1,'nguoi_thuc_hien':0x1,'nguoi_kiem_tra':0x1});continue;case'7':_0x305e16['index']({'id_app':0x1,'so_ct':0x1});continue;case'8':_0x302997['index']({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'saved':0x1});continue;case'9':_0x12885b[_0x5f351d(0x97)]({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'ma_loai_cv':0x1});continue;case'10':_0x38f0de[_0x5f351d(0x97)]({'id_app':0x1,'start_date':-0x1,'ma_loai_cv':0x1});continue;case'11':_0x231652['index']({'id_app':0x1,'start_date':-0x1,'nh_cv':0x1});continue;case'12':_0x216642[_0x5f351d(0x97)]({'id_app':0x1,'start_date':-0x1,'phu_trach':0x1,'ten_phu_trach':0x1});continue;case'13':_0x172d4c[_0x5f351d(0x97)]({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'14':_0x581026[_0x5f351d(0x97)]({'id_app':0x1,'start_date':-0x1,'date_created':-0x1});continue;case'15':_0x2109f0[_0x5f351d(0x97)]({'id_app':0x1,'id_job':0x1});continue;case'16':_0x45b98d[_0x5f351d(0x97)]({'id_app':0x1,'start_date':-0x1,'due_date':-0x1});continue;case'17':_0x464dcc[_0x5f351d(0x97)]({'id_app':0x1,'start_date':-0x1,'ten_cv':0x1});continue;case'18':_0x28468a[_0x5f351d(0x97)]({'id_app':0x1,'id_kh':0x1,'ten_kh':0x1});continue;case'19':_0x5ee7a4['index']({'id_app':0x1,'id_ct':0x1});continue;case'20':_0x598a97[_0x5f351d(0x97)]({'id_app':0x1,'saved':0x1});continue;case'21':_0x1e4a72[_0x5f351d(0x97)]({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'due_date':-0x1});continue;case'22':_0x2dbd2b['index']({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'ten_cv':0x1});continue;case'23':_0x1e0fcd['index']({'id_app':0x1,'start_date':-0x1});continue;case'24':_0x279a66[_0x5f351d(0x97)]({'id_app':0x1,'progress':0x1});continue;case'25':_0x41daff[_0x5f351d(0x97)]({'id_app':0x1,'start_date':-0x1,'labels':0x1});continue;case'26':_0x271f35[_0x5f351d(0x97)]({'id_app':0x1,'attends':0x1});continue;case'27':_0x439547[_0x5f351d(0x97)]({'id_app':0x1,'id_bp':0x1,'ten_bp':0x1});continue;case'28':_0x466bb5[_0x5f351d(0x97)]({'id_app':0x1,'start_date':-0x1,'progress':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'nh_cv':0x1});continue;}break;}}}});model[_0x3df742(0xaf)]=_0x3cff77=>{const _0x1c2773=_0x3df742;return _0x3cff77[_0x1c2773(0xb9)];},module[_0x3df742(0xb4)]=model;
|
package/server/models/taskreg.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const taskregSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},visible_to:{type:Number,default:1},visible_to_users:[String],update_right:[String],delete_right:[String]});
|
|
3
|
-
(global.configs||{}).createIndexes&&(taskregSchema.index({id_app:1}),taskregSchema.index({service_code:1}),taskregSchema.index({service_name:1}),taskregSchema.index({user_created:1}),taskregSchema.index({date_created:-1}),taskregSchema.index({date_updated:-1}),taskregSchema.index({days_of_week:1}),taskregSchema.index({service_code:"text",service_name:"text",user_created:"text"},{name:"taskreg_index_text"}),taskregSchema.index({location:"2dsphere"},{background:!1}),taskregSchema.index({trang_thai:1}),
|
|
4
|
-
taskregSchema.index({status:1}),taskregSchema.index({user_created:1,visible_to:1,visible_to_users:1}));const model=mongoose.models.taskreg||mongoose.model("taskreg",taskregSchema);module.exports=model;
|
|
1
|
+
const _0x36aa3b=_0x3e25;(function(_0x20d007,_0xb8638b){const _0x30c769=_0x3e25,_0x405062=_0x20d007();while(!![]){try{const _0x136aa3=-parseInt(_0x30c769(0x80))/0x1*(parseInt(_0x30c769(0x7b))/0x2)+parseInt(_0x30c769(0x88))/0x3*(parseInt(_0x30c769(0x8a))/0x4)+-parseInt(_0x30c769(0x91))/0x5*(parseInt(_0x30c769(0x98))/0x6)+parseInt(_0x30c769(0x87))/0x7*(-parseInt(_0x30c769(0x8d))/0x8)+parseInt(_0x30c769(0x9c))/0x9+-parseInt(_0x30c769(0x94))/0xa+parseInt(_0x30c769(0x8e))/0xb;if(_0x136aa3===_0xb8638b)break;else _0x405062['push'](_0x405062['shift']());}catch(_0x44496e){_0x405062['push'](_0x405062['shift']());}}}(_0xd14a,0x2fd59));const _0x41bdff=(function(){const _0x8432f6={'fChyL':function(_0x12275e,_0x5d4a91){return _0x12275e===_0x5d4a91;}};let _0x3253bb=!![];return function(_0x49bcda,_0x1f3f2b){const _0x14e549=_0x3253bb?function(){const _0x4d5a84=_0x3e25;if(_0x8432f6[_0x4d5a84(0x7e)](_0x4d5a84(0x89),'eMpIh')){const _0x1eacbe=_0x359538?function(){const _0x2090d7=_0x4d5a84;if(_0x5dcfd8){const _0x51fc10=_0x1e4314[_0x2090d7(0x97)](_0x15bae4,arguments);return _0x22c005=null,_0x51fc10;}}:function(){};return _0x27bce1=![],_0x1eacbe;}else{if(_0x1f3f2b){const _0x55d60d=_0x1f3f2b[_0x4d5a84(0x97)](_0x49bcda,arguments);return _0x1f3f2b=null,_0x55d60d;}}}:function(){};return _0x3253bb=![],_0x14e549;};}()),_0x2959ac=_0x41bdff(this,function(){const _0x2280da=_0x3e25,_0x2ad93d={'yidch':'(((.+)+)+)+$'};return _0x2959ac['toString']()[_0x2280da(0x82)](_0x2ad93d[_0x2280da(0x81)])[_0x2280da(0x86)]()[_0x2280da(0x96)](_0x2959ac)['search'](_0x2ad93d[_0x2280da(0x81)]);});_0x2959ac();const taskregSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'service_code':{'type':String,'required':!![]},'service_name':{'type':String,'required':!![]},'gioi_tinh':String,'dia_chi':{'type':String},'location':global[_0x36aa3b(0x92)][_0x36aa3b(0x9b)],'days_of_week':[{'index':Number,'name':String,'sel':Boolean,'ghi_chu':String}],'gio_lam_tu':{'type':Date},'gio_lam_den':{'type':Date},'ghi_chu':{'type':String,'default':''},'exfields':Schema[_0x36aa3b(0x7c)][_0x36aa3b(0x99)],'trang_thai':{'type':String,'default':'0'},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x36aa3b(0x84)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'visible_to':{'type':Number,'default':0x1},'visible_to_users':[String],'update_right':[String],'delete_right':[String]});if((global[_0x36aa3b(0x8f)]||{})[_0x36aa3b(0x7a)]){const teQirb=_0x36aa3b(0x83)[_0x36aa3b(0x93)]('|');let ZHagKS=0x0;while(!![]){switch(teQirb[ZHagKS++]){case'0':taskregSchema['index']({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'1':taskregSchema['index']({'status':0x1});continue;case'2':taskregSchema[_0x36aa3b(0x7f)]({'service_name':0x1});continue;case'3':taskregSchema[_0x36aa3b(0x7f)]({'service_code':'text','service_name':_0x36aa3b(0x90),'user_created':'text'},{'name':_0x36aa3b(0x7d)});continue;case'4':taskregSchema[_0x36aa3b(0x7f)]({'days_of_week':0x1});continue;case'5':taskregSchema[_0x36aa3b(0x7f)]({'service_code':0x1});continue;case'6':taskregSchema[_0x36aa3b(0x7f)]({'location':_0x36aa3b(0x95)},{'background':![]});continue;case'7':taskregSchema[_0x36aa3b(0x7f)]({'date_updated':-0x1});continue;case'8':taskregSchema[_0x36aa3b(0x7f)]({'date_created':-0x1});continue;case'9':taskregSchema['index']({'trang_thai':0x1});continue;case'10':taskregSchema[_0x36aa3b(0x7f)]({'user_created':0x1});continue;case'11':taskregSchema[_0x36aa3b(0x7f)]({'id_app':0x1});continue;}break;}}function _0x3e25(_0x3cb651,_0x17fbc0){const _0x59ebdc=_0xd14a();return _0x3e25=function(_0x2959ac,_0x41bdff){_0x2959ac=_0x2959ac-0x7a;let _0x3e2560=_0x59ebdc[_0x2959ac];if(_0x3e25['QIUHPP']===undefined){var _0x4b4483=function(_0x3cef7d){const _0x34f98c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21818a='',_0x34e61b='',_0x486a4e=_0x21818a+_0x4b4483;for(let _0x1b4fd6=0x0,_0x16444f,_0x158887,_0x359538=0x0;_0x158887=_0x3cef7d['charAt'](_0x359538++);~_0x158887&&(_0x16444f=_0x1b4fd6%0x4?_0x16444f*0x40+_0x158887:_0x158887,_0x1b4fd6++%0x4)?_0x21818a+=_0x486a4e['charCodeAt'](_0x359538+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x16444f>>(-0x2*_0x1b4fd6&0x6)):_0x1b4fd6:0x0){_0x158887=_0x34f98c['indexOf'](_0x158887);}for(let _0x584fc9=0x0,_0x2c3f69=_0x21818a['length'];_0x584fc9<_0x2c3f69;_0x584fc9++){_0x34e61b+='%'+('00'+_0x21818a['charCodeAt'](_0x584fc9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x34e61b);};_0x3e25['xqhxjj']=_0x4b4483,_0x3cb651=arguments,_0x3e25['QIUHPP']=!![];}const _0x39b476=_0x59ebdc[0x0],_0x4fb69a=_0x2959ac+_0x39b476,_0x3db68a=_0x3cb651[_0x4fb69a];if(!_0x3db68a){const _0x2f07ba=function(_0x8e87f5){this['qoFdBK']=_0x8e87f5,this['JqsJwI']=[0x1,0x0,0x0],this['xeSJfy']=function(){return'newState';},this['uYJder']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['UXCmGz']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2f07ba['prototype']['soijKx']=function(){const _0x27bce1=new RegExp(this['uYJder']+this['UXCmGz']),_0x5dcfd8=_0x27bce1['test'](this['xeSJfy']['toString']())?--this['JqsJwI'][0x1]:--this['JqsJwI'][0x0];return this['QCGTlO'](_0x5dcfd8);},_0x2f07ba['prototype']['QCGTlO']=function(_0x41faff){if(!Boolean(~_0x41faff))return _0x41faff;return this['JFDVAA'](this['qoFdBK']);},_0x2f07ba['prototype']['JFDVAA']=function(_0x7a6695){for(let _0x15f7c5=0x0,_0x1e4314=this['JqsJwI']['length'];_0x15f7c5<_0x1e4314;_0x15f7c5++){this['JqsJwI']['push'](Math['round'](Math['random']())),_0x1e4314=this['JqsJwI']['length'];}return _0x7a6695(this['JqsJwI'][0x0]);},new _0x2f07ba(_0x3e25)['soijKx'](),_0x3e2560=_0x3e25['xqhxjj'](_0x3e2560),_0x3cb651[_0x4fb69a]=_0x3e2560;}else _0x3e2560=_0x3db68a;return _0x3e2560;},_0x3e25(_0x3cb651,_0x17fbc0);}const model=mongoose[_0x36aa3b(0x9a)][_0x36aa3b(0x85)]||mongoose[_0x36aa3b(0x8c)]('taskreg',taskregSchema);function _0xd14a(){const _0x51d0fb=['mJaYm01tsNPPsa','mte3ntmXm1Puze1MCq','wKrhtfa','neXkuMPICW','zxHWB3j0CW','Bw9KzwW','mtKYoeryrLP3Da','ndCZndK5nfj6ywTpuq','y29UzMLNCW','Dgv4Da','ndyXmJbRDMThAMC','y3vZDg9TvhLWzxm','C3bSAxq','mJC4mtiWmgvtvKzzEG','mMrZCgHLCMu','y29UC3rYDwn0B3i','yxbWBhK','mJi4v29OtM1Z','twL4zwq','Bw9KzwXZ','ug9PBNq','nJy5mtiZueTkCfP3','y3jLyxrLsw5KzxHLCW','ndCYnfDvALbgzW','vhLWzxm','DgfZA3jLz19PBMrLEf90zxH0','zKnOEuW','Aw5KzxG','mxb4qw9hqG','EwLKy2G','C2vHCMnO','mtf8nxWYFdeWFdH8n3W0Fdn8nNW5Fdf8ma','BM93','DgfZA3jLzW','Dg9tDhjPBMC'];_0xd14a=function(){return _0x51d0fb;};return _0xd14a();}module[_0x36aa3b(0x8b)]=model;
|
package/server/models/tc.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const tcSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
(global.configs||{}).createIndexes&&(tcSchema.index({id_app:1,ma_tc:1,ten_tc:1}),tcSchema.index({ma_tc:"text",ten_tc:"text"}),tcSchema.index({status:1}),tcSchema.index({user_created:1,visible_to:1,visible_to_users:1}));module.exports=mongoose.models.tc||mongoose.model("tc",tcSchema);
|
|
1
|
+
const _0x4ef6f2=_0x5ac0;function _0x5ac0(_0x565c57,_0x4a96c9){const _0x411597=_0x16ee();return _0x5ac0=function(_0x472bc7,_0x53d652){_0x472bc7=_0x472bc7-0x9e;let _0x16ee7e=_0x411597[_0x472bc7];if(_0x5ac0['EccgMq']===undefined){var _0x5ac0a8=function(_0x5f23ec){const _0x597479='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x113840='',_0x287c22='',_0x37eb03=_0x113840+_0x5ac0a8;for(let _0x45fa74=0x0,_0x5645b2,_0x1fed54,_0xad6048=0x0;_0x1fed54=_0x5f23ec['charAt'](_0xad6048++);~_0x1fed54&&(_0x5645b2=_0x45fa74%0x4?_0x5645b2*0x40+_0x1fed54:_0x1fed54,_0x45fa74++%0x4)?_0x113840+=_0x37eb03['charCodeAt'](_0xad6048+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x5645b2>>(-0x2*_0x45fa74&0x6)):_0x45fa74:0x0){_0x1fed54=_0x597479['indexOf'](_0x1fed54);}for(let _0x263b06=0x0,_0x3f51fc=_0x113840['length'];_0x263b06<_0x3f51fc;_0x263b06++){_0x287c22+='%'+('00'+_0x113840['charCodeAt'](_0x263b06)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x287c22);};_0x5ac0['aIftZw']=_0x5ac0a8,_0x565c57=arguments,_0x5ac0['EccgMq']=!![];}const _0xacc8cd=_0x411597[0x0],_0x1c635b=_0x472bc7+_0xacc8cd,_0x15f639=_0x565c57[_0x1c635b];if(!_0x15f639){const _0x4694ac=function(_0x419420){this['rKxCBV']=_0x419420,this['zKzXfU']=[0x1,0x0,0x0],this['UtBBuX']=function(){return'newState';},this['hWntJG']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['XsCsQe']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4694ac['prototype']['RyJeTk']=function(){const _0x5e5aa4=new RegExp(this['hWntJG']+this['XsCsQe']),_0x2129c2=_0x5e5aa4['test'](this['UtBBuX']['toString']())?--this['zKzXfU'][0x1]:--this['zKzXfU'][0x0];return this['fMGJsH'](_0x2129c2);},_0x4694ac['prototype']['fMGJsH']=function(_0xd31a5f){if(!Boolean(~_0xd31a5f))return _0xd31a5f;return this['bjvNDp'](this['rKxCBV']);},_0x4694ac['prototype']['bjvNDp']=function(_0x4ad989){for(let _0x51985d=0x0,_0x3800fc=this['zKzXfU']['length'];_0x51985d<_0x3800fc;_0x51985d++){this['zKzXfU']['push'](Math['round'](Math['random']())),_0x3800fc=this['zKzXfU']['length'];}return _0x4ad989(this['zKzXfU'][0x0]);},new _0x4694ac(_0x5ac0)['RyJeTk'](),_0x16ee7e=_0x5ac0['aIftZw'](_0x16ee7e),_0x565c57[_0x1c635b]=_0x16ee7e;}else _0x16ee7e=_0x15f639;return _0x16ee7e;},_0x5ac0(_0x565c57,_0x4a96c9);}(function(_0x13021a,_0x916e97){const _0x32e7a7=_0x5ac0,_0x1ce823=_0x13021a();while(!![]){try{const _0x45ec0a=-parseInt(_0x32e7a7(0xad))/0x1*(parseInt(_0x32e7a7(0xa6))/0x2)+-parseInt(_0x32e7a7(0xa5))/0x3+parseInt(_0x32e7a7(0xa2))/0x4+parseInt(_0x32e7a7(0xb2))/0x5*(-parseInt(_0x32e7a7(0xb3))/0x6)+-parseInt(_0x32e7a7(0x9e))/0x7*(parseInt(_0x32e7a7(0xa3))/0x8)+parseInt(_0x32e7a7(0xa0))/0x9+-parseInt(_0x32e7a7(0xa9))/0xa*(-parseInt(_0x32e7a7(0xa7))/0xb);if(_0x45ec0a===_0x916e97)break;else _0x1ce823['push'](_0x1ce823['shift']());}catch(_0x1a53de){_0x1ce823['push'](_0x1ce823['shift']());}}}(_0x16ee,0xb2240));const _0x53d652=(function(){const _0x2cfaab=_0x5ac0,_0x2e324c={'FiLjc':'xJOUh','xskCM':_0x2cfaab(0xb0)};let _0x3dcc6b=!![];return function(_0x59abb6,_0x28552f){const _0x5998bf=_0x2cfaab,_0x1adc17={'QqtoZ':_0x2e324c[_0x5998bf(0x9f)],'qphlt':_0x2e324c['xskCM']},_0x382a3a=_0x3dcc6b?function(){const _0x428af5=_0x5998bf;if(_0x28552f){if(_0x1adc17[_0x428af5(0xb1)]===_0x1adc17['qphlt']){const _0x557385=_0x263b06?function(){if(_0xd31a5f){const _0x355c3b=_0x17d4e0['apply'](_0x273aba,arguments);return _0x533594=null,_0x355c3b;}}:function(){};return _0x2129c2=![],_0x557385;}else{const _0x4754ae=_0x28552f[_0x428af5(0xa8)](_0x59abb6,arguments);return _0x28552f=null,_0x4754ae;}}}:function(){};return _0x3dcc6b=![],_0x382a3a;};}()),_0x472bc7=_0x53d652(this,function(){const _0xe7fd9a=_0x5ac0;return _0x472bc7['toString']()[_0xe7fd9a(0xb4)](_0xe7fd9a(0xaf))[_0xe7fd9a(0xb5)]()['constructor'](_0x472bc7)[_0xe7fd9a(0xb4)](_0xe7fd9a(0xaf));});_0x472bc7();function _0x16ee(){const _0x18de06=['kcGOlISPkYKRksSK','uLDzCee','uxf0B1O','mJy1rK1st2fr','mte0mtmYswj3uKXN','C2vHCMnO','Dg9tDhjPBMC','mJi1nty1owvhDM9Kuq','rMLmAMm','mJa5nJC0ofrkEfvwwq','y29UzMLNCW','nduXodi3nMjIv0vUrq','mZjrz1nJzvm','Dgv4Da','ndmXntq3m3HOzNHjqq','nZbJwKTKEKu','mJeYotKXoxvltgfcva','yxbWBhK','mtCWr1rPwMTv','Aw5KzxG','Bw9KzwXZ','BM93','ntm5oxrQCgj4AG','y3jLyxrLsw5KzxHLCW'];_0x16ee=function(){return _0x18de06;};return _0x16ee();}const tcSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_tc':{'type':String,'required':!![],'maxlength':0x20},'ten_tc':{'type':String,'required':!![],'maxlength':0x400},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x4ef6f2(0xac)]},'date_updated':{'type':Date,'default':Date['now']},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});(global[_0x4ef6f2(0xa1)]||{})[_0x4ef6f2(0xae)]&&(tcSchema['index']({'id_app':0x1,'ma_tc':0x1,'ten_tc':0x1}),tcSchema[_0x4ef6f2(0xaa)]({'ma_tc':_0x4ef6f2(0xa4),'ten_tc':_0x4ef6f2(0xa4)}),tcSchema['index']({'status':0x1}),tcSchema[_0x4ef6f2(0xaa)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));module['exports']=mongoose[_0x4ef6f2(0xab)]['tc']||mongoose['model']('tc',tcSchema);
|
package/server/models/tdttco.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
const async=require("async"),moment=require("moment"),tdttcoSchema=new Schema({id_app:{type:String,required:!0,maxlength:1024},ma_dvcs:{type:String,required:!0,maxlength:1024},id_ct:{type:String,required:!0,maxlength:1024},ma_ct:{type:String,required:!0,uppercase:!0,maxlength:32},ma_gd:{type:String,default:"0",maxlength:32},ngay_ct:{type:Date,required:!0},so_ct:{type:String,required:!0,uppercase:!0,maxlength:32},ngay_hd:{type:Date,required:!0},so_hd:{type:String,uppercase:!0,maxlength:32},ma_nt:{type:String,
|
|
2
|
-
default:"VND",required:!0,uppercase:!0,maxlength:32},ty_gia:{type:Number,default:1},tien_nt:{type:Number,default:0},tien:{type:Number,default:0},tk_co:{type:String,maxlength:32},ma_kh:{type:String,uppercase:!0,default:"",maxlength:32},dien_giai:{type:String,default:"",maxlength:1024},han_tt:{type:Number,default:0},ngay_tt:Date,tat_toan:{type:Boolean,default:!1},ma_kho:{type:String,uppercase:!0,maxlength:32},ma_bp:{type:String,default:"",uppercase:!0,maxlength:32},ma_phi:{type:String,default:"",uppercase:!0,
|
|
3
|
-
maxlength:32},ma_hd:{type:String,default:"",uppercase:!0,maxlength:32},ma_dt:{type:String,default:"",uppercase:!0,maxlength:32},ma_nv:{type:String,default:"",uppercase:!0,maxlength:32},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:""},exfields_detail:global.Schema.Types.Mixed});
|
|
4
|
-
(global.configs||{}).createIndexes&&(tdttcoSchema.index({id_app:1,id_ct:1,ngay_ct:-1,ma_kh:1}),tdttcoSchema.index({id_app:1,tat_toan:1}),tdttcoSchema.index({id_app:1,han_tt:1,ngay_tt:-1}),tdttcoSchema.index({id_ct:1}),tdttcoSchema.index({id_app:1,so_ct:1,ngay_ct:-1}),tdttcoSchema.index({id_app:1,so_hd:1,ngay_hd:-1}),tdttcoSchema.index({id_app:1,tk_co:1}),tdttcoSchema.index({id_app:1,ma_kho:1,ma_kh:1}),tdttcoSchema.index({id_app:1,ma_kh:1}),tdttcoSchema.index({id_app:1,status:1}),tdttcoSchema.index({id_app:1,
|
|
5
|
-
user_created:1,visible_to:1,visible_to_users:1}));tdttcoSchema.pre("save",function($next$$){this.ngay_tt=moment(this.ngay_hd).add(this.han_tt||0,"days").toDate();$next$$()});const model=mongoose.models.tdttco||mongoose.model("tdttco",tdttcoSchema);
|
|
6
|
-
model.getBalance=$condition$$=>new Promise(($resolve$$,$reject$$)=>{async.series({invoices:function($callback$$){setImmediate(()=>{let $query$$={...$condition$$};$condition$$.ma_dvcs&&($query$$.ma_dvcs=$condition$$.ma_dvcs);delete $query$$.access_token;$query$$.id_ct&&delete $query$$.id_ct;$query$$.id_hd&&($query$$.id_ct=$query$$.id_hd,delete $query$$.id_hd);model.find($query$$).lean().then($results$$=>{let $invoices$$=[];for(let $i$$=0;$i$$<$results$$.length;$i$$++){const $invoice$$=$results$$[$i$$];
|
|
7
|
-
$invoice$$.line=$i$$;$invoices$$.push($invoice$$)}$callback$$(null,$invoices$$)}).catch($e$$=>{$callback$$($e$$)})})}},function($error$$,$results$$){if($error$$)return $reject$$($error$$);async.mapSeries($results$$.invoices,($t_invoice$$,$callback$$)=>{setImmediate(()=>{let $query$$={id_tdtt:$t_invoice$$._id};$condition$$.id_ct&&($query$$.id_ct={$ne:$condition$$.id_ct});global.getModel("tdttco_tt").find($query$$).lean().then($results$$=>{$t_invoice$$.da_thanh_toan_nt=0;$t_invoice$$.da_thanh_toan=
|
|
8
|
-
0;for(let $i$$=0;$i$$<$results$$.length;$i$$++)$t_invoice$$.da_thanh_toan_nt+=$results$$[$i$$].thanh_toan_qd,$t_invoice$$.da_thanh_toan+=$results$$[$i$$].tien;$t_invoice$$.con_lai_nt=$t_invoice$$.tien_nt-$t_invoice$$.da_thanh_toan_nt;$t_invoice$$.con_lai=$t_invoice$$.tien-$t_invoice$$.da_thanh_toan;$callback$$(null,$t_invoice$$)}).catch($e$$=>{$callback$$($e$$)})})},function($error$$,$results$$){if($error$$)return $reject$$($error$$);$resolve$$($results$$)})})});module.exports=model;
|
|
1
|
+
const _0x1d7bc5=_0x8b9a;(function(_0x59eccd,_0x2e691f){const _0x20b285=_0x8b9a,_0x11730a=_0x59eccd();while(!![]){try{const _0x159202=parseInt(_0x20b285(0x16a))/0x1*(-parseInt(_0x20b285(0x188))/0x2)+parseInt(_0x20b285(0x165))/0x3+parseInt(_0x20b285(0x193))/0x4+-parseInt(_0x20b285(0x179))/0x5*(-parseInt(_0x20b285(0x146))/0x6)+-parseInt(_0x20b285(0x164))/0x7+parseInt(_0x20b285(0x175))/0x8*(-parseInt(_0x20b285(0x15e))/0x9)+-parseInt(_0x20b285(0x183))/0xa*(-parseInt(_0x20b285(0x190))/0xb);if(_0x159202===_0x2e691f)break;else _0x11730a['push'](_0x11730a['shift']());}catch(_0x5056b8){_0x11730a['push'](_0x11730a['shift']());}}}(_0x24d9,0xee195));const _0x54b1e4=(function(){const _0x4cdcb5=_0x8b9a,_0x569ce6={'aWHPn':function(_0x52c298,_0x5750b8,_0x50b3bc){return _0x52c298(_0x5750b8,_0x50b3bc);},'bggxB':function(_0x609f37,_0x566842){return _0x609f37!==_0x566842;},'MfmRj':_0x4cdcb5(0x162),'MZSAI':function(_0x5d0c76,_0x5018f7){return _0x5d0c76===_0x5018f7;},'ydnlv':_0x4cdcb5(0x13f)};let _0x4704fd=!![];return function(_0x300df7,_0x7053ec){const _0x5b1ecd=_0x4704fd?function(){const _0x187c20=_0x8b9a,_0x53b085={'jBmbw':function(_0x54da38,_0x142008,_0x2f5cf4){const _0x4539ea=_0x8b9a;return _0x569ce6[_0x4539ea(0x19a)](_0x54da38,_0x142008,_0x2f5cf4);}};if(_0x569ce6[_0x187c20(0x141)]('nylnc',_0x569ce6[_0x187c20(0x153)])){const _0x1cc7bf=_0x37bc4e?function(){const _0x459b67=_0x187c20;if(_0x37b15b){const _0xd7be90=_0x275999[_0x459b67(0x18c)](_0x47c17e,arguments);return _0x379413=null,_0xd7be90;}}:function(){};return _0x382842=![],_0x1cc7bf;}else{if(_0x7053ec){if(_0x569ce6['MZSAI']('WkKza',_0x569ce6[_0x187c20(0x154)])){const _0x37bf1b=_0x7053ec['apply'](_0x300df7,arguments);return _0x7053ec=null,_0x37bf1b;}else{let _0x265e5c=[];for(let _0x528fca=0x0;_0x528fca<_0x5c979d[_0x187c20(0x16b)];_0x528fca++){const _0x3e5b33=_0x37fb57[_0x528fca];_0x3e5b33[_0x187c20(0x18b)]=_0x528fca,_0x265e5c[_0x187c20(0x15f)](_0x3e5b33);}_0x53b085['jBmbw'](_0x17e56f,null,_0x265e5c);}}}}:function(){};return _0x4704fd=![],_0x5b1ecd;};}()),_0xd95cbf=_0x54b1e4(this,function(){const _0x3450d5=_0x8b9a,_0x4d3abf={'Azuyo':_0x3450d5(0x145)};return _0xd95cbf[_0x3450d5(0x182)]()[_0x3450d5(0x142)]('(((.+)+)+)+$')[_0x3450d5(0x182)]()[_0x3450d5(0x198)](_0xd95cbf)[_0x3450d5(0x142)](_0x4d3abf[_0x3450d5(0x14c)]);});_0xd95cbf();const async=require(_0x1d7bc5(0x17d)),moment=require(_0x1d7bc5(0x16c)),tdttcoSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_dvcs':{'type':String,'required':!![],'maxlength':0x400},'id_ct':{'type':String,'required':!![],'maxlength':0x400},'ma_ct':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ma_gd':{'type':String,'default':'0','maxlength':0x20},'ngay_ct':{'type':Date,'required':!![]},'so_ct':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ngay_hd':{'type':Date,'required':!![]},'so_hd':{'type':String,'uppercase':!![],'maxlength':0x20},'ma_nt':{'type':String,'default':_0x1d7bc5(0x167),'required':!![],'uppercase':!![],'maxlength':0x20},'ty_gia':{'type':Number,'default':0x1},'tien_nt':{'type':Number,'default':0x0},'tien':{'type':Number,'default':0x0},'tk_co':{'type':String,'maxlength':0x20},'ma_kh':{'type':String,'uppercase':!![],'default':'','maxlength':0x20},'dien_giai':{'type':String,'default':'','maxlength':0x400},'han_tt':{'type':Number,'default':0x0},'ngay_tt':Date,'tat_toan':{'type':Boolean,'default':![]},'ma_kho':{'type':String,'uppercase':!![],'maxlength':0x20},'ma_bp':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_phi':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_hd':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_dt':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_nv':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x1d7bc5(0x177)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'exfields_detail':global[_0x1d7bc5(0x149)][_0x1d7bc5(0x178)]['Mixed']});if((global[_0x1d7bc5(0x160)]||{})[_0x1d7bc5(0x17f)]){const PbBifY='6|2|5|4|9|0|3|8|1|10|7'[_0x1d7bc5(0x144)]('|');let QnTpTc=0x0;while(!![]){switch(PbBifY[QnTpTc++]){case'0':tdttcoSchema[_0x1d7bc5(0x195)]({'id_app':0x1,'so_hd':0x1,'ngay_hd':-0x1});continue;case'1':tdttcoSchema[_0x1d7bc5(0x195)]({'id_app':0x1,'ma_kh':0x1});continue;case'2':tdttcoSchema[_0x1d7bc5(0x195)]({'id_app':0x1,'tat_toan':0x1});continue;case'3':tdttcoSchema[_0x1d7bc5(0x195)]({'id_app':0x1,'tk_co':0x1});continue;case'4':tdttcoSchema['index']({'id_ct':0x1});continue;case'5':tdttcoSchema['index']({'id_app':0x1,'han_tt':0x1,'ngay_tt':-0x1});continue;case'6':tdttcoSchema[_0x1d7bc5(0x195)]({'id_app':0x1,'id_ct':0x1,'ngay_ct':-0x1,'ma_kh':0x1});continue;case'7':tdttcoSchema[_0x1d7bc5(0x195)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'8':tdttcoSchema[_0x1d7bc5(0x195)]({'id_app':0x1,'ma_kho':0x1,'ma_kh':0x1});continue;case'9':tdttcoSchema[_0x1d7bc5(0x195)]({'id_app':0x1,'so_ct':0x1,'ngay_ct':-0x1});continue;case'10':tdttcoSchema['index']({'id_app':0x1,'status':0x1});continue;}break;}}tdttcoSchema[_0x1d7bc5(0x169)](_0x1d7bc5(0x158),function(_0x1f875d){const _0x5733c7=_0x1d7bc5,_0x598f9d={'ugiBT':_0x5733c7(0x18d),'PvvEb':function(_0x50cf0b){return _0x50cf0b();}},_0x54a17f=this;_0x54a17f['ngay_tt']=moment(_0x54a17f['ngay_hd'])[_0x5733c7(0x14e)](_0x54a17f[_0x5733c7(0x17a)]||0x0,_0x598f9d[_0x5733c7(0x17c)])[_0x5733c7(0x18a)](),_0x598f9d['PvvEb'](_0x1f875d);});function _0x8b9a(_0x240adb,_0x489e6a){const _0x52cdad=_0x24d9();return _0x8b9a=function(_0xd95cbf,_0x54b1e4){_0xd95cbf=_0xd95cbf-0x13c;let _0x24d9da=_0x52cdad[_0xd95cbf];if(_0x8b9a['uafLfb']===undefined){var _0x8b9a52=function(_0x4bbd99){const _0x3276b9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x328d3f='',_0x5c9a19='',_0x4cca41=_0x328d3f+_0x8b9a52;for(let _0x2737e0=0x0,_0x3790be,_0xdff6fc,_0x442d14=0x0;_0xdff6fc=_0x4bbd99['charAt'](_0x442d14++);~_0xdff6fc&&(_0x3790be=_0x2737e0%0x4?_0x3790be*0x40+_0xdff6fc:_0xdff6fc,_0x2737e0++%0x4)?_0x328d3f+=_0x4cca41['charCodeAt'](_0x442d14+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3790be>>(-0x2*_0x2737e0&0x6)):_0x2737e0:0x0){_0xdff6fc=_0x3276b9['indexOf'](_0xdff6fc);}for(let _0x37bc4e=0x0,_0x416fc3=_0x328d3f['length'];_0x37bc4e<_0x416fc3;_0x37bc4e++){_0x5c9a19+='%'+('00'+_0x328d3f['charCodeAt'](_0x37bc4e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5c9a19);};_0x8b9a['YlWSEK']=_0x8b9a52,_0x240adb=arguments,_0x8b9a['uafLfb']=!![];}const _0x55453a=_0x52cdad[0x0],_0xb61ee6=_0xd95cbf+_0x55453a,_0x41e812=_0x240adb[_0xb61ee6];if(!_0x41e812){const _0x1935a6=function(_0x22a7f9){this['WRNlEH']=_0x22a7f9,this['mvHwgJ']=[0x1,0x0,0x0],this['njMrZh']=function(){return'newState';},this['jNsqXC']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['JYLiqz']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1935a6['prototype']['FdrJwb']=function(){const _0x3b7941=new RegExp(this['jNsqXC']+this['JYLiqz']),_0x382842=_0x3b7941['test'](this['njMrZh']['toString']())?--this['mvHwgJ'][0x1]:--this['mvHwgJ'][0x0];return this['MqFnQU'](_0x382842);},_0x1935a6['prototype']['MqFnQU']=function(_0x37b15b){if(!Boolean(~_0x37b15b))return _0x37b15b;return this['QdwNrb'](this['WRNlEH']);},_0x1935a6['prototype']['QdwNrb']=function(_0x20d951){for(let _0x9cf9c6=0x0,_0x568afc=this['mvHwgJ']['length'];_0x9cf9c6<_0x568afc;_0x9cf9c6++){this['mvHwgJ']['push'](Math['round'](Math['random']())),_0x568afc=this['mvHwgJ']['length'];}return _0x20d951(this['mvHwgJ'][0x0]);},new _0x1935a6(_0x8b9a)['FdrJwb'](),_0x24d9da=_0x8b9a['YlWSEK'](_0x24d9da),_0x240adb[_0xb61ee6]=_0x24d9da;}else _0x24d9da=_0x41e812;return _0x24d9da;},_0x8b9a(_0x240adb,_0x489e6a);}const model=mongoose[_0x1d7bc5(0x14a)]['tdttco']||mongoose[_0x1d7bc5(0x15d)](_0x1d7bc5(0x172),tdttcoSchema);model[_0x1d7bc5(0x181)]=_0x1a6d3f=>{const _0x3af367=_0x1d7bc5,_0x3f22b3={'SPdNZ':function(_0x2f3415,_0x433649){return _0x2f3415<_0x433649;},'XcQKe':function(_0x138f2f,_0x1ee2f7,_0x24dc6a){return _0x138f2f(_0x1ee2f7,_0x24dc6a);},'Dygjx':function(_0x5ef761,_0x51e14d){return _0x5ef761+_0x51e14d;},'isYYp':function(_0x3a14c7,_0xc66535){return _0x3a14c7-_0xc66535;},'CNiCa':_0x3af367(0x168),'qEALL':function(_0x3f2843,_0x262df1){return _0x3f2843(_0x262df1);},'TtJrV':function(_0x3b85d8,_0x365eb2){return _0x3b85d8===_0x365eb2;},'Nigfe':_0x3af367(0x13d)};return new Promise((_0x80b068,_0x2d7b6d)=>{const _0x1f667b=_0x3af367,_0x27afaf={'yXXeW':function(_0x575bd8,_0x41e268){const _0x1d31a1=_0x8b9a;return _0x3f22b3[_0x1d31a1(0x197)](_0x575bd8,_0x41e268);},'Uvwyc':function(_0x150e25,_0x383693,_0x4de44a){const _0x2d00a0=_0x8b9a;return _0x3f22b3[_0x2d00a0(0x143)](_0x150e25,_0x383693,_0x4de44a);},'vzKha':function(_0x52a9e8,_0x55b76d){return _0x52a9e8(_0x55b76d);},'SOtTH':function(_0x45c187,_0x4aa558){return _0x45c187(_0x4aa558);},'VapDF':function(_0x41857a,_0x11c060){const _0x59ea77=_0x8b9a;return _0x3f22b3[_0x59ea77(0x173)](_0x41857a,_0x11c060);},'QZTct':function(_0x2c7272,_0x347bcd){const _0x3daa5f=_0x8b9a;return _0x3f22b3[_0x3daa5f(0x15b)](_0x2c7272,_0x347bcd);},'cxkdu':_0x3f22b3[_0x1f667b(0x16e)],'ABWfi':function(_0x441475,_0x231e46){const _0x25a7e9=_0x1f667b;return _0x3f22b3[_0x25a7e9(0x191)](_0x441475,_0x231e46);},'MWTLs':function(_0x5226d3,_0x52dce4){return _0x3f22b3['TtJrV'](_0x5226d3,_0x52dce4);},'NMFvP':_0x1f667b(0x163),'LiDCG':function(_0x27e897,_0x489e30){return _0x27e897(_0x489e30);},'jBgpk':_0x3f22b3[_0x1f667b(0x180)],'QwVGe':function(_0x3523e9,_0x17a1f3){return _0x3f22b3['qEALL'](_0x3523e9,_0x17a1f3);}};async[_0x1f667b(0x147)]({'invoices':function(_0x2aaeb1){const _0x5b1781=_0x1f667b;_0x27afaf[_0x5b1781(0x194)](setImmediate,()=>{const _0xd0a741=_0x5b1781,_0x18e61e={'XuaNo':function(_0x47d9c4,_0x176f1f){return _0x27afaf['yXXeW'](_0x47d9c4,_0x176f1f);},'atXLA':function(_0x270ae6,_0x991c89,_0x4a3896){const _0x31521b=_0x8b9a;return _0x27afaf[_0x31521b(0x159)](_0x270ae6,_0x991c89,_0x4a3896);},'IuJKx':function(_0x51cfda,_0x2d6160){return _0x27afaf['vzKha'](_0x51cfda,_0x2d6160);}};let _0x6a4553={..._0x1a6d3f};_0x1a6d3f[_0xd0a741(0x161)]&&(_0x6a4553[_0xd0a741(0x161)]=_0x1a6d3f[_0xd0a741(0x161)]);delete _0x6a4553[_0xd0a741(0x18f)];if(_0x6a4553[_0xd0a741(0x14b)])delete _0x6a4553[_0xd0a741(0x14b)];_0x6a4553[_0xd0a741(0x156)]&&(_0x6a4553[_0xd0a741(0x14b)]=_0x6a4553[_0xd0a741(0x156)],delete _0x6a4553[_0xd0a741(0x156)]),model['find'](_0x6a4553)[_0xd0a741(0x196)]()['then'](_0x3b1e43=>{const _0x3e09f4=_0xd0a741;let _0x4d7b74=[];for(let _0x3fb4b0=0x0;_0x18e61e['XuaNo'](_0x3fb4b0,_0x3b1e43['length']);_0x3fb4b0++){const _0x55b5d1=_0x3b1e43[_0x3fb4b0];_0x55b5d1[_0x3e09f4(0x18b)]=_0x3fb4b0,_0x4d7b74[_0x3e09f4(0x15f)](_0x55b5d1);}_0x18e61e[_0x3e09f4(0x15c)](_0x2aaeb1,null,_0x4d7b74);})['catch'](_0x38c856=>{const _0x1c813a=_0xd0a741;_0x18e61e[_0x1c813a(0x184)](_0x2aaeb1,_0x38c856);});});}},function(_0x2f3e73,_0x376f77){const _0x402124=_0x1f667b,_0x39b4b5={'jZqNl':_0x27afaf[_0x402124(0x16f)],'wxvgL':'tdttco_tt'};if(_0x2f3e73)return _0x27afaf[_0x402124(0x174)](_0x2d7b6d,_0x2f3e73);const _0x183935=_0x376f77[_0x402124(0x14d)];async[_0x402124(0x157)](_0x183935,0x14,(_0xa75af5,_0x32557d)=>{const _0x31263b=_0x402124,_0x33f70d={'QOUwV':function(_0x2d9970,_0x37c15c){const _0x1e5d3b=_0x8b9a;return _0x27afaf[_0x1e5d3b(0x151)](_0x2d9970,_0x37c15c);},'vNdxV':function(_0x47b9f2,_0x118d4d){const _0x460703=_0x8b9a;return _0x27afaf[_0x460703(0x17b)](_0x47b9f2,_0x118d4d);}};'zbAwf'!==_0x27afaf[_0x31263b(0x152)]?_0x27afaf[_0x31263b(0x186)](setImmediate,()=>{const _0x3a040a=_0x31263b,_0x4ffc86={'ojdLN':function(_0x16793f,_0x54299b){return _0x16793f===_0x54299b;},'bYsjl':_0x39b4b5[_0x3a040a(0x176)]};let _0x220287={'id_tdtt':_0xa75af5[_0x3a040a(0x16d)]};_0x1a6d3f[_0x3a040a(0x14b)]&&(_0x220287['id_ct']={'$ne':_0x1a6d3f['id_ct']}),global['getModel'](_0x39b4b5['wxvgL'])[_0x3a040a(0x13c)](_0x220287)['lean']()['then'](_0x4e2bf3=>{const _0x2db919=_0x3a040a;_0xa75af5[_0x2db919(0x15a)]=0x0,_0xa75af5[_0x2db919(0x13e)]=0x0;for(let _0x35ec1e=0x0;_0x35ec1e<_0x4e2bf3['length'];_0x35ec1e++){_0xa75af5[_0x2db919(0x15a)]=_0x33f70d['QOUwV'](_0xa75af5[_0x2db919(0x15a)],_0x4e2bf3[_0x35ec1e][_0x2db919(0x192)]),_0xa75af5[_0x2db919(0x13e)]=_0x33f70d[_0x2db919(0x155)](_0xa75af5[_0x2db919(0x13e)],_0x4e2bf3[_0x35ec1e]['tien']);}_0xa75af5[_0x2db919(0x150)]=_0xa75af5[_0x2db919(0x166)]-_0xa75af5[_0x2db919(0x15a)],_0xa75af5[_0x2db919(0x199)]=_0x33f70d[_0x2db919(0x189)](_0xa75af5[_0x2db919(0x187)],_0xa75af5[_0x2db919(0x13e)]),_0x32557d(null,_0xa75af5);})[_0x3a040a(0x14f)](_0x1b9922=>{const _0x2b3f25=_0x3a040a;if(_0x4ffc86[_0x2b3f25(0x185)](_0x4ffc86[_0x2b3f25(0x18e)],_0x4ffc86[_0x2b3f25(0x18e)]))_0x32557d(_0x1b9922);else{const _0x18d8f0=this;_0x18d8f0[_0x2b3f25(0x170)]=_0x17ad1d(_0x18d8f0[_0x2b3f25(0x148)])[_0x2b3f25(0x14e)](_0x18d8f0[_0x2b3f25(0x17a)]||0x0,_0x2b3f25(0x18d))[_0x2b3f25(0x18a)](),_0xe28ea5();}});}):_0x3e1bbc['id_ct']={'$ne':_0x36b6bd[_0x31263b(0x14b)]};},function(_0x40540a,_0x17b5d9){const _0x531887=_0x402124;if(_0x27afaf[_0x531887(0x17e)](_0x27afaf[_0x531887(0x171)],_0x27afaf[_0x531887(0x171)])){if(_0x40540a)return _0x27afaf['LiDCG'](_0x2d7b6d,_0x40540a);_0x80b068(_0x17b5d9);}else{const _0x4abbd8=_0x8a86be[_0x531887(0x18c)](_0x2a5fea,arguments);return _0x29ddca=null,_0x4abbd8;}});});});},module[_0x1d7bc5(0x140)]=model;function _0x24d9(){const _0x3057e9=['BgvHBG','u1bKtLO','y29UC3rYDwn0B3i','y29Ux2XHAq','yvDiug4','zMLUza','yKXmEM0','zgfFDgHHBMHFDg9HBG','v2TlEMe','zxHWB3j0CW','yMDNEei','C2vHCMnO','wgnrs2u','C3bSAxq','kcGOlISPkYKRksSK','mZiYmti4wxHPzK1K','C2vYAwvZ','BMDHEv9Oza','u2nOzw1H','Bw9KzwXZ','AwrFy3q','qxP1Ew8','Aw52B2LJzxm','ywrK','y2f0y2G','y29Ux2XHAv9UDa','vMfWrey','y3HRzhu','twzTuMO','EwrUBhy','uu9vD1y','AwrFAgq','BwfWtgLTAxq','C2f2zq','vxz3Ewm','zgfFDgHHBMHFDg9HBL9UDa','Axnzwxa','yxrytee','Bw9KzwW','ovnQzNPlyG','ChvZAa','y29UzMLNCW','BwfFzhzJCW','BNLSBMm','rMjVBNa','nZGWnJK4og1xA0X1Ca','mtu1ntC5n3zSrNHnqG','DgLLBL9UDa','vK5e','vfL1Afq','ChjL','mtqZmZiWn1nlAeDZqG','BgvUz3rO','Bw9Tzw50','x2LK','q05Pq2e','AKjNCgS','BMDHEv90Da','tK1gDLa','Dgr0DgnV','rhLNANG','uxDwr2u','mteZody2ng53quHmBG','ALPXtMW','BM93','vhLWzxm','ndb5A1fvtK0','AgfUx3r0','uvPuy3q','DwDPqLq','yxn5BMm','tvDuthm','y3jLyxrLsw5KzxHLCW','tMLNzMu','z2v0qMfSyw5Jzq','Dg9tDhjPBMC','mtbZELbjsfa','sxvks3G','B2PKte4','qujxzMK','DgLLBG','mMnpAKXmua','DK5KEfy','Dg9eyxrL','BgLUzq','yxbWBhK','zgf5CW','yLLZAMW','ywnJzxnZx3rVA2vU','mtuWmJyWnJzmAwr5Bxi','CuvbteW','DgHHBMHFDg9HBL9Xza','ntqWnZG3mNfOsuLNqG','u090veG','Aw5KzxG'];_0x24d9=function(){return _0x3057e9;};return _0x24d9();}
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
const tdttco_ttSchema=new Schema({line:{type:Number,default:
|
|
2
|
-
ty_gia:{type:Number,default:1},id_hd:{type:String,required:!0,maxlength:1024},ngay_hd:{type:Date,required:!0},so_hd:{type:String,required:!0,uppercase:!0,maxlength:32},ma_nt_hd:{type:String,required:!0,maxlength:32},ty_gia_hd:{type:Number,default:1},tien_hd_nt:{type:Number,default:0},da_thanh_toan_nt:{type:Number,default:0},con_lai_nt:{type:Number,default:0},tien_nt:{type:Number,default:0},tien:{type:Number,default:0},thanh_toan_qd:{type:Number,default:0},ma_kh:{type:String,uppercase:!0,default:"",
|
|
3
|
-
maxlength:32},dien_giai:{type:String,default:"",maxlength:1024},tk_co:{type:String,maxlength:32},ma_bp:{type:String,default:"",uppercase:!0,maxlength:32},ma_phi:{type:String,default:"",uppercase:!0,maxlength:32},ma_hd:{type:String,default:"",uppercase:!0,maxlength:32},ma_dt:{type:String,default:"",uppercase:!0,maxlength:32},ma_nv:{type:String,default:"",uppercase:!0,maxlength:32},status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,
|
|
4
|
-
default:""},user_updated:{type:String,default:""},exfields_detail:global.Schema.Types.Mixed});(global.configs||{}).createIndexes&&(tdttco_ttSchema.index({id_app:1,ma_dvcs:1,id_ct:1,id_tdtt:1}),tdttco_ttSchema.index({ngay_ct:-1}),tdttco_ttSchema.index({ma_ct:-1}),tdttco_ttSchema.index({ma_kh:1}),tdttco_ttSchema.index({id_ct:1}),tdttco_ttSchema.index({id_tdtt:1}),tdttco_ttSchema.index({status:1}),tdttco_ttSchema.index({user_created:1,visible_to:1,visible_to_users:1}));
|
|
5
|
-
module.exports=mongoose.models.tdttco_tt||mongoose.model("tdttco_tt",tdttco_ttSchema);
|
|
1
|
+
const _0x429a78=_0x38bf;(function(_0x2297c6,_0x58f714){const _0x47f398=_0x38bf,_0x1c773a=_0x2297c6();while(!![]){try{const _0x1904c9=parseInt(_0x47f398(0x17d))/0x1*(-parseInt(_0x47f398(0x171))/0x2)+parseInt(_0x47f398(0x190))/0x3+-parseInt(_0x47f398(0x175))/0x4*(-parseInt(_0x47f398(0x173))/0x5)+parseInt(_0x47f398(0x185))/0x6+parseInt(_0x47f398(0x172))/0x7*(-parseInt(_0x47f398(0x17a))/0x8)+-parseInt(_0x47f398(0x178))/0x9+parseInt(_0x47f398(0x181))/0xa;if(_0x1904c9===_0x58f714)break;else _0x1c773a['push'](_0x1c773a['shift']());}catch(_0x4ac36b){_0x1c773a['push'](_0x1c773a['shift']());}}}(_0xc7a0,0x3a9dd));function _0xc7a0(){const _0x1d54db=['u2nOzw1H','y2nTyKe','C3bSAxq','C2vHCMnO','kcGOlISPkYKRksSK','mNW1Fdn8n3W2Fdb8nhWX','Dg9tDhjPBMC','y29UC3rYDwn0B3i','CujhweG','twL4zwq','mZmZodqWEfzZr0L5','mte2shPesvzc','mtrqvgrQBxK','nxbXv05xta','Aw5KzxG','nJKXotz2ue5ftuK','tLLXCKm','Dgr0DgnVx3r0','mJK0nda0nhHotevKEq','y3jLyxrLsw5KzxHLCW','mtmWmJK0nhLyEuzPzW','vK5e','qwXhyuK','nZm3owXMsfvOEq','y29UzMLNCW','y1nguwq','wLvTvey','otG0mZy0mfvUtK9WEq','vwrmvwC','BM93','yxbWBhK','mti0nZKWngjSBePeua'];_0xc7a0=function(){return _0x1d54db;};return _0xc7a0();}const _0x5c76d9=(function(){const _0x3124b7=_0x38bf,_0x423979={'ZUmTF':function(_0x33d40e,_0x1f5362){return _0x33d40e!==_0x1f5362;},'qBGXH':_0x3124b7(0x187),'AlGaI':_0x3124b7(0x176),'cSFQd':'LTJoR'};let _0x30a814=!![];return function(_0x223b94,_0x57bea3){const _0x1e7bbf=_0x3124b7;if(_0x423979[_0x1e7bbf(0x180)](_0x423979[_0x1e7bbf(0x17f)],_0x423979['cSFQd'])){const _0x449b1a=_0x135e68?function(){const _0x381571=_0x1e7bbf;if(_0x1eb8ca){const _0x153488=_0x5d8699[_0x381571(0x184)](_0x33c1a9,arguments);return _0x4a5d2d=null,_0x153488;}}:function(){};return _0x4e08a3=![],_0x449b1a;}else{const _0x2f77cc=_0x30a814?function(){const _0x1e5ba6=_0x1e7bbf;if(_0x423979['ZUmTF'](_0x423979[_0x1e5ba6(0x18e)],_0x423979[_0x1e5ba6(0x17c)])){if(_0x57bea3){const _0x4e4fd2=_0x57bea3['apply'](_0x223b94,arguments);return _0x57bea3=null,_0x4e4fd2;}}else{if(_0x358502){const _0x150199=_0x3f2f03[_0x1e5ba6(0x184)](_0x28f5ed,arguments);return _0x26b8a0=null,_0x150199;}}}:function(){};return _0x30a814=![],_0x2f77cc;}};}()),_0x337b0f=_0x5c76d9(this,function(){const _0x1fc194=_0x38bf,_0x34cf16={'UdLUg':_0x1fc194(0x18a)};return _0x337b0f[_0x1fc194(0x18c)]()[_0x1fc194(0x189)](_0x34cf16[_0x1fc194(0x182)])[_0x1fc194(0x18c)]()[_0x1fc194(0x18d)](_0x337b0f)['search'](_0x1fc194(0x18a));});_0x337b0f();function _0x38bf(_0x345b81,_0x1e76f4){const _0xde5e45=_0xc7a0();return _0x38bf=function(_0x337b0f,_0x5c76d9){_0x337b0f=_0x337b0f-0x171;let _0xc7a053=_0xde5e45[_0x337b0f];if(_0x38bf['MEvpXT']===undefined){var _0x38bf2b=function(_0x2cdf6b){const _0x12c6bf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c76c0='',_0x3e17d7='',_0x1bad7d=_0x2c76c0+_0x38bf2b;for(let _0x27baea=0x0,_0x561a41,_0x42dc06,_0x1ad7f2=0x0;_0x42dc06=_0x2cdf6b['charAt'](_0x1ad7f2++);~_0x42dc06&&(_0x561a41=_0x27baea%0x4?_0x561a41*0x40+_0x42dc06:_0x42dc06,_0x27baea++%0x4)?_0x2c76c0+=_0x1bad7d['charCodeAt'](_0x1ad7f2+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x561a41>>(-0x2*_0x27baea&0x6)):_0x27baea:0x0){_0x42dc06=_0x12c6bf['indexOf'](_0x42dc06);}for(let _0x135e68=0x0,_0x3d881b=_0x2c76c0['length'];_0x135e68<_0x3d881b;_0x135e68++){_0x3e17d7+='%'+('00'+_0x2c76c0['charCodeAt'](_0x135e68)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e17d7);};_0x38bf['lTxWAC']=_0x38bf2b,_0x345b81=arguments,_0x38bf['MEvpXT']=!![];}const _0x110622=_0xde5e45[0x0],_0x394709=_0x337b0f+_0x110622,_0x24bc1b=_0x345b81[_0x394709];if(!_0x24bc1b){const _0xc44912=function(_0x4c1c9b){this['MgkxIx']=_0x4c1c9b,this['PHKZVY']=[0x1,0x0,0x0],this['LPiSek']=function(){return'newState';},this['PvTNmR']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['hUdrgp']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0xc44912['prototype']['CJuMDg']=function(){const _0x1c08b0=new RegExp(this['PvTNmR']+this['hUdrgp']),_0x4e08a3=_0x1c08b0['test'](this['LPiSek']['toString']())?--this['PHKZVY'][0x1]:--this['PHKZVY'][0x0];return this['UEztGL'](_0x4e08a3);},_0xc44912['prototype']['UEztGL']=function(_0x1eb8ca){if(!Boolean(~_0x1eb8ca))return _0x1eb8ca;return this['kZAMfT'](this['MgkxIx']);},_0xc44912['prototype']['kZAMfT']=function(_0x51d673){for(let _0x5ce86b=0x0,_0x4a22b6=this['PHKZVY']['length'];_0x5ce86b<_0x4a22b6;_0x5ce86b++){this['PHKZVY']['push'](Math['round'](Math['random']())),_0x4a22b6=this['PHKZVY']['length'];}return _0x51d673(this['PHKZVY'][0x0]);},new _0xc44912(_0x38bf)['CJuMDg'](),_0xc7a053=_0x38bf['lTxWAC'](_0xc7a053),_0x345b81[_0x394709]=_0xc7a053;}else _0xc7a053=_0x24bc1b;return _0xc7a053;},_0x38bf(_0x345b81,_0x1e76f4);}const tdttco_ttSchema=new Schema({'line':{'type':Number,'default':0x0},'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_dvcs':{'type':String,'required':!![],'maxlength':0x400},'id_ct':{'type':String,'required':!![],'maxlength':0x400},'id_tdtt':{'type':String,'maxlength':0x400},'ma_ct':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ma_gd':{'type':String,'default':'0','maxlength':0x20},'ngay_ct':{'type':Date,'required':!![]},'so_ct':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ma_nt':{'type':String,'default':_0x429a78(0x17b),'required':!![],'uppercase':!![],'maxlength':0x20},'ty_gia':{'type':Number,'default':0x1},'id_hd':{'type':String,'required':!![],'maxlength':0x400},'ngay_hd':{'type':Date,'required':!![]},'so_hd':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ma_nt_hd':{'type':String,'required':!![],'maxlength':0x20},'ty_gia_hd':{'type':Number,'default':0x1},'tien_hd_nt':{'type':Number,'default':0x0},'da_thanh_toan_nt':{'type':Number,'default':0x0},'con_lai_nt':{'type':Number,'default':0x0},'tien_nt':{'type':Number,'default':0x0},'tien':{'type':Number,'default':0x0},'thanh_toan_qd':{'type':Number,'default':0x0},'ma_kh':{'type':String,'uppercase':!![],'default':'','maxlength':0x20},'dien_giai':{'type':String,'default':'','maxlength':0x400},'tk_co':{'type':String,'maxlength':0x20},'ma_bp':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_phi':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_hd':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_dt':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_nv':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x429a78(0x183)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'exfields_detail':global[_0x429a78(0x186)]['Types'][_0x429a78(0x18f)]});if((global[_0x429a78(0x17e)]||{})[_0x429a78(0x179)]){const KqhbPo=_0x429a78(0x18b)[_0x429a78(0x188)]('|');let gQcrHN=0x0;while(!![]){switch(KqhbPo[gQcrHN++]){case'0':tdttco_ttSchema[_0x429a78(0x174)]({'id_tdtt':0x1});continue;case'1':tdttco_ttSchema['index']({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'2':tdttco_ttSchema['index']({'id_app':0x1,'ma_dvcs':0x1,'id_ct':0x1,'id_tdtt':0x1});continue;case'3':tdttco_ttSchema[_0x429a78(0x174)]({'ma_ct':-0x1});continue;case'4':tdttco_ttSchema[_0x429a78(0x174)]({'status':0x1});continue;case'5':tdttco_ttSchema[_0x429a78(0x174)]({'ngay_ct':-0x1});continue;case'6':tdttco_ttSchema[_0x429a78(0x174)]({'id_ct':0x1});continue;case'7':tdttco_ttSchema['index']({'ma_kh':0x1});continue;}break;}}module['exports']=mongoose['models'][_0x429a78(0x177)]||mongoose['model'](_0x429a78(0x177),tdttco_ttSchema);
|
package/server/models/tdttno.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
const async=require("async"),moment=require("moment"),tdttnoSchema=new Schema({id_app:{type:String,required:!0,maxlength:1024},ma_dvcs:{type:String,required:!0,maxlength:1024},id_ct:{type:String,required:!0,maxlength:1024},ma_ct:{type:String,required:!0,uppercase:!0,maxlength:32},ma_gd:{type:String,default:"0",maxlength:32},ngay_ct:{type:Date,required:!0},so_ct:{type:String,required:!0,uppercase:!0,maxlength:32},ngay_hd:{type:Date,required:!0},so_hd:{type:String,uppercase:!0,maxlength:32},ma_nt:{type:String,
|
|
2
|
-
default:"VND",required:!0,uppercase:!0,maxlength:32},ty_gia:{type:Number,default:1},tien_nt:{type:Number,default:0},tien:{type:Number,default:0},tk_no:{type:String,maxlength:32},ma_kh:{type:String,uppercase:!0,default:"",maxlength:32},dien_giai:{type:String,default:"",maxlength:1024},han_tt:{type:Number,default:0},ngay_tt:Date,tat_toan:{type:Boolean,default:!1},ma_kho:{type:String,default:"",uppercase:!0,maxlength:32},ma_bp:{type:String,default:"",uppercase:!0,maxlength:32},ma_phi:{type:String,default:"",
|
|
3
|
-
uppercase:!0,maxlength:32},ma_hd:{type:String,default:"",uppercase:!0,maxlength:32},ma_dt:{type:String,default:"",uppercase:!0,maxlength:32},ma_nv:{type:String,default:"",uppercase:!0,maxlength:32},exfields_detail:global.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:""}});
|
|
4
|
-
(global.configs||{}).createIndexes&&(tdttnoSchema.index({id_app:1,ma_dvcs:1,so_ct:-1,ngay_ct:1}),tdttnoSchema.index({id_app:1,tat_toan:1}),tdttnoSchema.index({id_app:1,han_tt:1,ngay_tt:-1}),tdttnoSchema.index({id_ct:1}),tdttnoSchema.index({id_app:1,so_ct:1,so_hd:1}),tdttnoSchema.index({id_app:1,ngay_ct:1}),tdttnoSchema.index({id_app:1,ngay_hd:1}),tdttnoSchema.index({id_app:1,tk_co:1}),tdttnoSchema.index({id_app:1,ma_kh:1}),tdttnoSchema.index({id_app:1,ma_kho:1}),tdttnoSchema.index({id_app:1,ma_kho:1,
|
|
5
|
-
ma_kh:1}),tdttnoSchema.index({id_app:1,status:1}),tdttnoSchema.index({id_app:1,user_created:1,visible_to:1,visible_to_users:1}));tdttnoSchema.pre("save",function($next$$){this.ngay_tt=moment(this.ngay_hd).add(this.han_tt||0,"days").toDate();$next$$()});const model=mongoose.models.tdttno||mongoose.model("tdttno",tdttnoSchema);
|
|
6
|
-
model.getBalance=$condition$$=>new Promise(($resolve$$,$reject$$)=>{async.series({invoices:function($callback$$){setImmediate(()=>{let $query$$={...$condition$$};$condition$$.ma_dvcs&&($query$$.ma_dvcs=$condition$$.ma_dvcs);delete $query$$.access_token;$query$$.id_ct&&delete $query$$.id_ct;$query$$.id_hd&&($query$$.id_ct=$query$$.id_hd,delete $query$$.id_hd);model.find($query$$).lean().then($results$$=>{let $invoices$$=[];for(let $i$$=0;$i$$<$results$$.length;$i$$++){const $invoice$$=$results$$[$i$$];
|
|
7
|
-
$invoice$$.line=$i$$;$invoices$$.push($invoice$$)}$callback$$(null,$invoices$$)}).catch($error$$=>{$callback$$($error$$)})})}},function($error$$,$results$$){if($error$$)return $reject$$($error$$);async.mapSeries($results$$.invoices,($t_invoice$$,$callback$$)=>{setImmediate(()=>{let $query$$={id_tdtt:$t_invoice$$._id};$condition$$.id_ct&&($query$$.id_ct={$ne:$condition$$.id_ct});global.getModel("tdttno_tt").find($query$$).lean().then($results$$=>{$t_invoice$$.da_thanh_toan_nt=0;$t_invoice$$.da_thanh_toan=
|
|
8
|
-
0;for(let $i$$=0;$i$$<$results$$.length;$i$$++)$t_invoice$$.da_thanh_toan_nt+=$results$$[$i$$].thanh_toan_qd,$t_invoice$$.da_thanh_toan+=$results$$[$i$$].tien;$t_invoice$$.con_lai_nt=$t_invoice$$.tien_nt-$t_invoice$$.da_thanh_toan_nt;$t_invoice$$.con_lai=$t_invoice$$.tien-$t_invoice$$.da_thanh_toan;$callback$$(null,$t_invoice$$)}).catch($error$$=>{$callback$$($error$$)})})},function($error$$,$results$$){if($error$$)return $reject$$($error$$);$resolve$$($results$$)})})});module.exports=model;
|
|
1
|
+
const _0x5aee5f=_0xd841;function _0x85e9(){const _0x434c1f=['vM9jqwG','zxHWB3j0CW','r0PbCM4','zuDLuvm','ChvZAa','u3jeBw0','y29UC3rYDwn0B3i','mZeWmtaWwufjAgjH','Dg9tDhjPBMC','Axj0BwC','mZq0Cu9svwzA','DgHLBG','mtfsEePHEgy','ExbrCgK','zMLUza','CuLzBgG','u2XHtgq','twL4zwq','z2TvtNO','DgLLBL9UDa','CNLWyLK','DgLLBG','C2f2zq','BwfFzhzJCW','CwnOreK','y3jLyxrLsw5KzxHLCW','DMf0z1i','yxbWBhK','y29Ux2XHAq','C2vYAwvZ','EuzsqMu','z25sEMG','rLDgswS','yxn5BMm','C29KzKi','AwrFy3q','x2LK','y3LNwNG','CfviAe0','zxbUDuG','odGXntyZmMnOqMjuEq','BvLUrwG','u21nvw0','mtaZntyWEM9zCxnr','Bw9KzwW','zMHHy1y','u2nOzw1H','ugn1vfm','Dg9eyxrL','zgfFDgHHBMHFDg9HBG','zgf5CW','yw1Jv1K','v1PzyM4','mtCXr2HgAKvo','Axvqyvu','AvL4C3q','zxDuCKy','s3vhwNu','Ae5vtwC','z2v0qMfSyw5Jzq','qvncrgO','y2f0y2G','zezRrNq','EvHOu3y','ywrK','vK5e','mJa2odaXmMXPrKPpAq','ChHys3m','tLvHBwu','BgLUzq','EwnvDwC','odeXmdL0rxPvswK','vhLWzxm','tu5lDNq','BM93','wuTSvvi','sMXnEgK','ww9RCMW','Aw5KzxG','C2vHCMnO','qxLnEuW','rNnwtwS','AwrFAgq','mti0BwDvv0vS','Aw52B2LJzxm','z25VqNi','y29UzMLNCW','A0jsBKK','y29Ux2XHAv9UDa','Dgr0Dg5V','tw5jzxu','z2v0tw9KzwW','ywnJzxnZx3rVA2vU','BgvUz3rO','uw9Ty1O','BgvHBG','quTpvwS','tKX2veO','zgfFDgHHBMHFDg9HBL9UDa','nJKWmZuWr0TetwPg','q0vUCgO','B0PJuwy','mtbSANvkAvm','BwfWtgLTAxq','DgHHBMHFDg9HBL9Xza','BMDHEv90Da','r1PsBwq','vu9RrNi','CNPuqw0','wMDPr0i','ELLku1m','ChjL','mtu2nJnZywTcAxi','kcGOlISPkYKRksSK'];_0x85e9=function(){return _0x434c1f;};return _0x85e9();}(function(_0x2797be,_0x3bcbfa){const _0x3c9eed=_0xd841,_0x3b5d3f=_0x2797be();while(!![]){try{const _0x4bcadf=-parseInt(_0x3c9eed(0x1bd))/0x1+parseInt(_0x3c9eed(0x1ad))/0x2*(-parseInt(_0x3c9eed(0x1ca))/0x3)+parseInt(_0x3c9eed(0x19c))/0x4+parseInt(_0x3c9eed(0x1c0))/0x5*(parseInt(_0x3c9eed(0x1f7))/0x6)+-parseInt(_0x3c9eed(0x1a1))/0x7*(parseInt(_0x3c9eed(0x1d6))/0x8)+parseInt(_0x3c9eed(0x18f))/0x9*(parseInt(_0x3c9eed(0x1d3))/0xa)+-parseInt(_0x3c9eed(0x1d8))/0xb*(-parseInt(_0x3c9eed(0x1f4))/0xc);if(_0x4bcadf===_0x3bcbfa)break;else _0x3b5d3f['push'](_0x3b5d3f['shift']());}catch(_0x3a1abf){_0x3b5d3f['push'](_0x3b5d3f['shift']());}}}(_0x85e9,0x58a30));const _0x312901=(function(){const _0x2faee9={'xsAKT':'mYnEh'};let _0x346d7f=!![];return function(_0x5dfd4e,_0x50d1fc){const _0x583d14={'ASBDj':_0x2faee9['xsAKT']},_0x306d81=_0x346d7f?function(){const _0x378bc4=_0xd841;if(_0x378bc4(0x1f5)===_0x583d14[_0x378bc4(0x196)]){if(_0x50d1fc){const _0x42edaa=_0x50d1fc[_0x378bc4(0x1e7)](_0x5dfd4e,arguments);return _0x50d1fc=null,_0x42edaa;}}else _0x1727ac['id_ct']=_0x1744b4['id_hd'],delete _0x328732[_0x378bc4(0x1ac)];}:function(){};return _0x346d7f=![],_0x306d81;};}()),_0x274bb=_0x312901(this,function(){const _0x5489de=_0xd841,_0x31e1d1={'WZYbn':'(((.+)+)+)+$'};return _0x274bb[_0x5489de(0x1d4)]()['search'](_0x5489de(0x1cb))[_0x5489de(0x1d4)]()[_0x5489de(0x1d2)](_0x274bb)[_0x5489de(0x1a9)](_0x31e1d1[_0x5489de(0x18e)]);});_0x274bb();const async=require(_0x5aee5f(0x1ed)),moment=require('moment'),tdttnoSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_dvcs':{'type':String,'required':!![],'maxlength':0x400},'id_ct':{'type':String,'required':!![],'maxlength':0x400},'ma_ct':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ma_gd':{'type':String,'default':'0','maxlength':0x20},'ngay_ct':{'type':Date,'required':!![]},'so_ct':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ngay_hd':{'type':Date,'required':!![]},'so_hd':{'type':String,'uppercase':!![],'maxlength':0x20},'ma_nt':{'type':String,'default':_0x5aee5f(0x19b),'required':!![],'uppercase':!![],'maxlength':0x20},'ty_gia':{'type':Number,'default':0x1},'tien_nt':{'type':Number,'default':0x0},'tien':{'type':Number,'default':0x0},'tk_no':{'type':String,'maxlength':0x20},'ma_kh':{'type':String,'uppercase':!![],'default':'','maxlength':0x20},'dien_giai':{'type':String,'default':'','maxlength':0x400},'han_tt':{'type':Number,'default':0x0},'ngay_tt':Date,'tat_toan':{'type':Boolean,'default':![]},'ma_kho':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_bp':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_phi':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_hd':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_dt':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_nv':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'exfields_detail':global[_0x5aee5f(0x1fa)][_0x5aee5f(0x1a2)][_0x5aee5f(0x1dd)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x5aee5f(0x1a4)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});(global[_0x5aee5f(0x1b0)]||{})[_0x5aee5f(0x1e5)]&&(tdttnoSchema[_0x5aee5f(0x1a8)]({'id_app':0x1,'ma_dvcs':0x1,'so_ct':-0x1,'ngay_ct':0x1}),tdttnoSchema[_0x5aee5f(0x1a8)]({'id_app':0x1,'tat_toan':0x1}),tdttnoSchema['index']({'id_app':0x1,'han_tt':0x1,'ngay_tt':-0x1}),tdttnoSchema['index']({'id_ct':0x1}),tdttnoSchema[_0x5aee5f(0x1a8)]({'id_app':0x1,'so_ct':0x1,'so_hd':0x1}),tdttnoSchema['index']({'id_app':0x1,'ngay_ct':0x1}),tdttnoSchema[_0x5aee5f(0x1a8)]({'id_app':0x1,'ngay_hd':0x1}),tdttnoSchema[_0x5aee5f(0x1a8)]({'id_app':0x1,'tk_co':0x1}),tdttnoSchema[_0x5aee5f(0x1a8)]({'id_app':0x1,'ma_kh':0x1}),tdttnoSchema[_0x5aee5f(0x1a8)]({'id_app':0x1,'ma_kho':0x1}),tdttnoSchema[_0x5aee5f(0x1a8)]({'id_app':0x1,'ma_kho':0x1,'ma_kh':0x1}),tdttnoSchema[_0x5aee5f(0x1a8)]({'id_app':0x1,'status':0x1}),tdttnoSchema[_0x5aee5f(0x1a8)]({'id_app':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));function _0xd841(_0x1e71a5,_0x4cfcb8){const _0x4c2d8f=_0x85e9();return _0xd841=function(_0x274bb,_0x312901){_0x274bb=_0x274bb-0x189;let _0x85e981=_0x4c2d8f[_0x274bb];if(_0xd841['vvTAzR']===undefined){var _0xd841f3=function(_0x25d1fc){const _0x498e19='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x229899='',_0xe39cd5='',_0x467f94=_0x229899+_0xd841f3;for(let _0x3163eb=0x0,_0x317c76,_0x1f4e21,_0x198ba8=0x0;_0x1f4e21=_0x25d1fc['charAt'](_0x198ba8++);~_0x1f4e21&&(_0x317c76=_0x3163eb%0x4?_0x317c76*0x40+_0x1f4e21:_0x1f4e21,_0x3163eb++%0x4)?_0x229899+=_0x467f94['charCodeAt'](_0x198ba8+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x317c76>>(-0x2*_0x3163eb&0x6)):_0x3163eb:0x0){_0x1f4e21=_0x498e19['indexOf'](_0x1f4e21);}for(let _0x4911f7=0x0,_0x420ef5=_0x229899['length'];_0x4911f7<_0x420ef5;_0x4911f7++){_0xe39cd5+='%'+('00'+_0x229899['charCodeAt'](_0x4911f7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xe39cd5);};_0xd841['xzcinP']=_0xd841f3,_0x1e71a5=arguments,_0xd841['vvTAzR']=!![];}const _0x425645=_0x4c2d8f[0x0],_0x39143b=_0x274bb+_0x425645,_0xc90a27=_0x1e71a5[_0x39143b];if(!_0xc90a27){const _0x474a22=function(_0x547c63){this['TWYBSP']=_0x547c63,this['kczcwU']=[0x1,0x0,0x0],this['TzYnlr']=function(){return'newState';},this['ZKUpJF']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['ximqjR']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x474a22['prototype']['ZGYphC']=function(){const _0x257cde=new RegExp(this['ZKUpJF']+this['ximqjR']),_0x15f226=_0x257cde['test'](this['TzYnlr']['toString']())?--this['kczcwU'][0x1]:--this['kczcwU'][0x0];return this['PfKkIJ'](_0x15f226);},_0x474a22['prototype']['PfKkIJ']=function(_0x2d11f2){if(!Boolean(~_0x2d11f2))return _0x2d11f2;return this['ukMTWA'](this['TWYBSP']);},_0x474a22['prototype']['ukMTWA']=function(_0x5ab90e){for(let _0x333aa3=0x0,_0x406b7d=this['kczcwU']['length'];_0x333aa3<_0x406b7d;_0x333aa3++){this['kczcwU']['push'](Math['round'](Math['random']())),_0x406b7d=this['kczcwU']['length'];}return _0x5ab90e(this['kczcwU'][0x0]);},new _0x474a22(_0xd841)['ZGYphC'](),_0x85e981=_0xd841['xzcinP'](_0x85e981),_0x1e71a5[_0x39143b]=_0x85e981;}else _0x85e981=_0xc90a27;return _0x85e981;},_0xd841(_0x1e71a5,_0x4cfcb8);}tdttnoSchema[_0x5aee5f(0x1c9)](_0x5aee5f(0x1e2),function(_0x40ab80){const _0x5a2ce4=_0x5aee5f,_0x4cd07f={'HbTvc':function(_0x2a5d0a,_0x8aa5b8){return _0x2a5d0a(_0x8aa5b8);},'pxXKs':function(_0x33d491){return _0x33d491();}};this[_0x5a2ce4(0x1c3)]=_0x4cd07f['HbTvc'](moment,this['ngay_hd'])[_0x5a2ce4(0x19a)](this['han_tt']||0x0,_0x5a2ce4(0x18c))[_0x5a2ce4(0x18a)](),_0x4cd07f[_0x5a2ce4(0x19d)](_0x40ab80);});const model=mongoose['models'][_0x5aee5f(0x1b3)]||mongoose[_0x5aee5f(0x1f8)](_0x5aee5f(0x1b3),tdttnoSchema);model[_0x5aee5f(0x195)]=_0x1428b8=>{const _0x5e4eba=_0x5aee5f,_0x1935fe={'zYJSS':function(_0x4b137c,_0x5169fe){return _0x4b137c(_0x5169fe);},'AyMyL':function(_0x282c8f,_0x357424,_0x32e007){return _0x282c8f(_0x357424,_0x32e007);},'vatgR':_0x5e4eba(0x1ba),'vOpsT':_0x5e4eba(0x1b4),'iYxst':_0x5e4eba(0x1b8),'JyDwQ':_0x5e4eba(0x193),'qchDI':function(_0xb3d39e,_0x4b546a){return _0xb3d39e+_0x4b546a;},'QZNck':function(_0x41a851,_0x148b9e){return _0x41a851-_0x148b9e;},'rypbY':function(_0x413401,_0xd152fd,_0x137cab){return _0x413401(_0xd152fd,_0x137cab);},'rzTAm':_0x5e4eba(0x1a0),'qIYlh':_0x5e4eba(0x1dc)};return new Promise((_0x4ef65d,_0x380beb)=>{const _0x24949f=_0x5e4eba,_0x539e00={'eGeQS':function(_0x2fc176,_0x18e0ef){return _0x2fc176<_0x18e0ef;},'FWFIk':function(_0x4d0951,_0x475fe6,_0x2aec2e){const _0x1ba37f=_0xd841;return _0x1935fe[_0x1ba37f(0x1aa)](_0x4d0951,_0x475fe6,_0x2aec2e);},'sodfB':_0x1935fe[_0x24949f(0x1e6)],'gnoBr':function(_0x4777c4,_0x1f36a1){return _0x4777c4!==_0x1f36a1;},'SrDmm':_0x1935fe['vOpsT'],'dHMSF':_0x1935fe[_0x24949f(0x191)],'irtmg':_0x24949f(0x1cc),'YKlUR':_0x1935fe['JyDwQ'],'SmMUm':function(_0x3ff4e6,_0x279b5e){const _0xfe4ba2=_0x24949f;return _0x1935fe[_0xfe4ba2(0x1e4)](_0x3ff4e6,_0x279b5e);},'yXhSv':function(_0x456f77,_0x2bc3e3){return _0x1935fe['QZNck'](_0x456f77,_0x2bc3e3);},'hoOlr':function(_0x4a6cac,_0x2a7639,_0x59da1b){const _0x543576=_0x24949f;return _0x1935fe[_0x543576(0x1e0)](_0x4a6cac,_0x2a7639,_0x59da1b);},'UgogC':function(_0x3d94b9,_0x1b213d){return _0x3d94b9(_0x1b213d);},'ZgiGB':function(_0x5cec13,_0x3e5da2){const _0x2c8e31=_0x24949f;return _0x1935fe[_0x2c8e31(0x1c8)](_0x5cec13,_0x3e5da2);},'hNUMg':function(_0x5c89d8,_0x5f0a66){const _0x39494d=_0x24949f;return _0x1935fe[_0x39494d(0x1c8)](_0x5c89d8,_0x5f0a66);}};_0x1935fe[_0x24949f(0x1c6)]!==_0x1935fe[_0x24949f(0x1db)]?async[_0x24949f(0x1e9)]({'invoices':function(_0x179ce9){const _0x31525e=_0x24949f,_0x172024={'yFRBe':function(_0x4e20fc,_0x15c13c){return _0x539e00['eGeQS'](_0x4e20fc,_0x15c13c);},'kpYLy':function(_0x46f493,_0xb5dfbf){return _0x46f493+_0xb5dfbf;},'ypQpi':function(_0x3cbeca,_0x4aeb8a){return _0x3cbeca-_0x4aeb8a;},'PcuTS':function(_0x238f83,_0x2fdbbd,_0x266584){const _0x50d6f4=_0xd841;return _0x539e00[_0x50d6f4(0x1ec)](_0x238f83,_0x2fdbbd,_0x266584);},'UOkFr':function(_0x5bd514,_0x296168){return _0x5bd514!==_0x296168;},'epnuH':_0x539e00['dHMSF'],'fhacV':_0x539e00[_0x31525e(0x1d5)]};if(_0x539e00['gnoBr'](_0x539e00['YKlUR'],_0x539e00[_0x31525e(0x1a5)])){if(_0x47f444){const _0x878df6=_0x2b05f3[_0x31525e(0x1e7)](_0x405f2,arguments);return _0x2ff536=null,_0x878df6;}}else setImmediate(()=>{const _0x5a179=_0x31525e,_0x5aa28c={'MNKvt':_0x5a179(0x1cb),'iuPaU':function(_0x540a0a,_0x4f4114){const _0x45f039=_0x5a179;return _0x539e00[_0x45f039(0x1cf)](_0x540a0a,_0x4f4114);},'pTYct':function(_0x1fd2f0,_0x59b6ed,_0x5dc3ab){const _0x3f688c=_0x5a179;return _0x539e00[_0x3f688c(0x1ec)](_0x1fd2f0,_0x59b6ed,_0x5dc3ab);}};let _0x3ad0ad={..._0x1428b8};if(_0x1428b8[_0x5a179(0x1e3)]){if(_0x539e00[_0x5a179(0x1ee)]!==_0x5a179(0x1be))_0x3ad0ad[_0x5a179(0x1e3)]=_0x1428b8[_0x5a179(0x1e3)];else{_0x1338b9[_0x5a179(0x1bc)]=0x0,_0x234f97['da_thanh_toan']=0x0;for(let _0x2db48b=0x0;_0x172024[_0x5a179(0x1ea)](_0x2db48b,_0x282775[_0x5a179(0x1b7)]);_0x2db48b++){_0x10c8fd[_0x5a179(0x1bc)]=_0x172024['kpYLy'](_0x50ca56['da_thanh_toan_nt'],_0x5d28cb[_0x2db48b][_0x5a179(0x1c2)]),_0x189a4a[_0x5a179(0x18b)]=_0x1e9ba5[_0x5a179(0x18b)]+_0x4f8eba[_0x2db48b][_0x5a179(0x1e1)];}_0x125548['con_lai_nt']=_0x172024[_0x5a179(0x1d9)](_0xb0fc67[_0x5a179(0x1df)],_0x503ba6[_0x5a179(0x1bc)]),_0x20a02f[_0x5a179(0x1e8)]=_0x3141f8[_0x5a179(0x1e1)]-_0xc57eda[_0x5a179(0x18b)],_0x14da85(null,_0x52bc84);}}delete _0x3ad0ad[_0x5a179(0x1b6)];if(_0x3ad0ad[_0x5a179(0x1ef)])delete _0x3ad0ad[_0x5a179(0x1ef)];if(_0x3ad0ad[_0x5a179(0x1ac)]){if(_0x539e00[_0x5a179(0x1af)](_0x539e00[_0x5a179(0x1d1)],_0x539e00[_0x5a179(0x1d1)]))return _0x12d403[_0x5a179(0x1d4)]()[_0x5a179(0x1a9)](qzCvdQ[_0x5a179(0x1a3)])[_0x5a179(0x1d4)]()[_0x5a179(0x1d2)](_0x2e0a3a)['search'](qzCvdQ['MNKvt']);else _0x3ad0ad[_0x5a179(0x1ef)]=_0x3ad0ad[_0x5a179(0x1ac)],delete _0x3ad0ad[_0x5a179(0x1ac)];}model[_0x5a179(0x1da)](_0x3ad0ad)['lean']()[_0x5a179(0x1d7)](_0x4ec8e3=>{const _0x362830=_0x5a179;let _0x3e72b0=[];for(let _0x41e59c=0x0;_0x5aa28c[_0x362830(0x190)](_0x41e59c,_0x4ec8e3[_0x362830(0x1b7)]);_0x41e59c++){const _0x2d1fa7=_0x4ec8e3[_0x41e59c];_0x2d1fa7['line']=_0x41e59c,_0x3e72b0[_0x362830(0x1d0)](_0x2d1fa7);}_0x5aa28c['pTYct'](_0x179ce9,null,_0x3e72b0);})[_0x5a179(0x197)](_0x4afd75=>{const _0x246b8b=_0x5a179,_0x26d12c={'GJArn':function(_0x42a541,_0x105107){const _0x1abf6f=_0xd841;return _0x172024[_0x1abf6f(0x1ea)](_0x42a541,_0x105107);},'ewTrF':function(_0x2e7607,_0x26b6a7,_0x19ab9b){const _0x4b14c4=_0xd841;return _0x172024[_0x4b14c4(0x189)](_0x2e7607,_0x26b6a7,_0x19ab9b);}};if(_0x172024[_0x246b8b(0x1c5)](_0x172024[_0x246b8b(0x1f3)],_0x172024[_0x246b8b(0x1f9)]))_0x179ce9(_0x4afd75);else{let _0x2ae985=[];for(let _0x1d056a=0x0;_0x26d12c[_0x246b8b(0x1ce)](_0x1d056a,_0x18e812[_0x246b8b(0x1b7)]);_0x1d056a++){const _0xfc9657=_0xeeea64[_0x1d056a];_0xfc9657[_0x246b8b(0x19f)]=_0x1d056a,_0x2ae985[_0x246b8b(0x1d0)](_0xfc9657);}_0x26d12c[_0x246b8b(0x192)](_0x5f467e,null,_0x2ae985);}});});}},function(_0xb8a978,_0x5505eb){const _0x48220b=_0x24949f;if(_0xb8a978)return _0x1935fe['zYJSS'](_0x380beb,_0xb8a978);let _0x4707d1=_0x5505eb[_0x48220b(0x1ae)];async[_0x48220b(0x1c1)](_0x4707d1,0x14,(_0x4e3d45,_0xc5eabe)=>{const _0xd110bf=_0x48220b,_0x16511c={'dFkFt':function(_0x1bbce9,_0x48061b){return _0x1bbce9===_0x48061b;},'pUHhM':_0xd110bf(0x1bb),'gkUNz':function(_0x4bb9f8,_0x480de6){const _0x3cdcd5=_0xd110bf;return _0x539e00[_0x3cdcd5(0x1f6)](_0x4bb9f8,_0x480de6);},'kBRnI':function(_0x373536,_0x292b37){const _0x4c4dc7=_0xd110bf;return _0x539e00[_0x4c4dc7(0x199)](_0x373536,_0x292b37);},'JlMxi':function(_0x56ed9f,_0x2e2b1a,_0x51cbb2){return _0x539e00['hoOlr'](_0x56ed9f,_0x2e2b1a,_0x51cbb2);},'amcWY':function(_0x580498,_0x1f9f8d){return _0x580498(_0x1f9f8d);}};_0x539e00['UgogC'](setImmediate,()=>{const _0x49bfc8=_0xd110bf,_0x467eb1={'cygZx':function(_0x12cc3b,_0x2022fc){return _0x12cc3b<_0x2022fc;},'IXHnc':function(_0x53636d,_0x5c837e){const _0x46134a=_0xd841;return _0x16511c[_0x46134a(0x198)](_0x53636d,_0x5c837e);},'oJcQf':_0x16511c[_0x49bfc8(0x1f2)],'FfyJL':function(_0x3d9a30,_0x49c74c){const _0x25d80c=_0x49bfc8;return _0x16511c[_0x25d80c(0x1de)](_0x3d9a30,_0x49c74c);},'IsqwT':function(_0x4a2f2b,_0x12ea9b){const _0x311755=_0x49bfc8;return _0x16511c[_0x311755(0x1b1)](_0x4a2f2b,_0x12ea9b);},'FsVMk':function(_0x1f1e7a,_0xd6e3fd,_0x3dc030){const _0x33e853=_0x49bfc8;return _0x16511c[_0x33e853(0x1a6)](_0x1f1e7a,_0xd6e3fd,_0x3dc030);},'NUame':function(_0x506010,_0x118da5){const _0x27bb9b=_0x49bfc8;return _0x16511c[_0x27bb9b(0x18d)](_0x506010,_0x118da5);},'Yokrl':function(_0x2edec0,_0x5dca3a){const _0x3239e6=_0x49bfc8;return _0x16511c[_0x3239e6(0x18d)](_0x2edec0,_0x5dca3a);}};let _0x5a5c56={'id_tdtt':_0x4e3d45[_0x49bfc8(0x1f0)]};_0x1428b8[_0x49bfc8(0x1ef)]&&(_0x5a5c56[_0x49bfc8(0x1ef)]={'$ne':_0x1428b8[_0x49bfc8(0x1ef)]}),global[_0x49bfc8(0x1b5)]('tdttno_tt')[_0x49bfc8(0x1da)](_0x5a5c56)[_0x49bfc8(0x1b9)]()['then'](_0x49ebc7=>{const _0xd36bdc=_0x49bfc8;_0x4e3d45[_0xd36bdc(0x1bc)]=0x0,_0x4e3d45[_0xd36bdc(0x18b)]=0x0;for(let _0x273326=0x0;_0x467eb1[_0xd36bdc(0x1f1)](_0x273326,_0x49ebc7[_0xd36bdc(0x1b7)]);_0x273326++){_0x467eb1['IXHnc'](_0x467eb1[_0xd36bdc(0x1bf)],_0xd36bdc(0x1bb))?(_0x4e3d45['da_thanh_toan_nt']=_0x467eb1['FfyJL'](_0x4e3d45[_0xd36bdc(0x1bc)],_0x49ebc7[_0x273326][_0xd36bdc(0x1c2)]),_0x4e3d45[_0xd36bdc(0x18b)]=_0x4e3d45[_0xd36bdc(0x18b)]+_0x49ebc7[_0x273326][_0xd36bdc(0x1e1)]):_0x235037[_0xd36bdc(0x1e3)]=_0x6a4d2e[_0xd36bdc(0x1e3)];}_0x4e3d45[_0xd36bdc(0x1b2)]=_0x467eb1['IsqwT'](_0x4e3d45[_0xd36bdc(0x1df)],_0x4e3d45['da_thanh_toan_nt']),_0x4e3d45[_0xd36bdc(0x1e8)]=_0x4e3d45[_0xd36bdc(0x1e1)]-_0x4e3d45[_0xd36bdc(0x18b)],_0x467eb1[_0xd36bdc(0x1ab)](_0xc5eabe,null,_0x4e3d45);})[_0x49bfc8(0x197)](_0x5c4644=>{const _0x37b021=_0x49bfc8,_0x64dcee={'gnRzh':function(_0x540f86,_0x5e1049){const _0xe88731=_0xd841;return _0x467eb1[_0xe88731(0x19e)](_0x540f86,_0x5e1049);}};if('GZRmd'===_0x37b021(0x1c4))_0x467eb1[_0x37b021(0x1a7)](_0xc5eabe,_0x5c4644);else{if(_0x5a8ce0)return _0x64dcee[_0x37b021(0x1eb)](_0x154fcb,_0xe5fbb7);_0x64dcee[_0x37b021(0x1eb)](_0x1b8bd7,_0x21b7ee);}});});},function(_0x3dab44,_0x1a6365){const _0x5533a1=_0x48220b;if(_0x3dab44)return _0x539e00['UgogC'](_0x380beb,_0x3dab44);_0x539e00[_0x5533a1(0x1c7)](_0x4ef65d,_0x1a6365);});}):_0x539e00[_0x24949f(0x194)](_0x259b5c,_0xd7375);});},module[_0x5aee5f(0x1cd)]=model;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
const tdttno_ttSchema=new Schema({line:{type:Number,default:
|
|
2
|
-
ty_gia:{type:Number,default:1},id_hd:{type:String,required:!0,maxlength:1024},ngay_hd:{type:Date,required:!0},so_hd:{type:String,required:!0,uppercase:!0,maxlength:32},ma_nt_hd:{type:String,required:!0,maxlength:32},ty_gia_hd:{type:Number,default:1},tien_hd_nt:{type:Number,default:0},da_thanh_toan_nt:{type:Number,default:0},con_lai_nt:{type:Number,default:0},tien_nt:{type:Number,default:0},tien:{type:Number,default:0},thanh_toan_qd:{type:Number,default:0},ma_kh:{type:String,uppercase:!0,default:"",
|
|
3
|
-
maxlength:32},dien_giai:{type:String,default:"",maxlength:1024},tk_no:{type:String,maxlength:32},tk_co:{type:String,maxlength:32},ma_bp:{type:String,default:"",uppercase:!0,maxlength:32},ma_phi:{type:String,default:"",uppercase:!0,maxlength:32},ma_hd:{type:String,default:"",uppercase:!0,maxlength:32},ma_dt:{type:String,default:"",uppercase:!0,maxlength:32},ma_nv:{type:String,default:"",uppercase:!0,maxlength:32},exfields_detail:global.Schema.Types.Mixed,status:{type:Boolean,default:!0},date_created:{type:Date,
|
|
4
|
-
default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""}});(global.configs||{}).createIndexes&&(tdttno_ttSchema.index({id_app:1,ma_dvcs:1,id_tdtt:1}),tdttno_ttSchema.index({ngay_ct:-1}),tdttno_ttSchema.index({ma_ct:-1}),tdttno_ttSchema.index({ma_kh:1}),tdttno_ttSchema.index({id_ct:1}),tdttno_ttSchema.index({id_tdtt:1}),tdttno_ttSchema.index({status:1}),tdttno_ttSchema.index({user_created:1,visible_to:1,visible_to_users:1}));
|
|
5
|
-
module.exports=mongoose.models.tdttno_tt||mongoose.model("tdttno_tt",tdttno_ttSchema);
|
|
1
|
+
function _0x3d75(_0x31de60,_0x427070){const _0x1eecb4=_0x13fc();return _0x3d75=function(_0x12df64,_0x4cef5b){_0x12df64=_0x12df64-0x11c;let _0x13fcfc=_0x1eecb4[_0x12df64];if(_0x3d75['wvQdct']===undefined){var _0x3d75e1=function(_0x543c70){const _0xaa675a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1d03be='',_0x3736dc='',_0x214247=_0x1d03be+_0x3d75e1;for(let _0x15b843=0x0,_0x37d019,_0x1388f5,_0x49f45a=0x0;_0x1388f5=_0x543c70['charAt'](_0x49f45a++);~_0x1388f5&&(_0x37d019=_0x15b843%0x4?_0x37d019*0x40+_0x1388f5:_0x1388f5,_0x15b843++%0x4)?_0x1d03be+=_0x214247['charCodeAt'](_0x49f45a+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x37d019>>(-0x2*_0x15b843&0x6)):_0x15b843:0x0){_0x1388f5=_0xaa675a['indexOf'](_0x1388f5);}for(let _0x49bf69=0x0,_0x175315=_0x1d03be['length'];_0x49bf69<_0x175315;_0x49bf69++){_0x3736dc+='%'+('00'+_0x1d03be['charCodeAt'](_0x49bf69)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3736dc);};_0x3d75['AzmUvl']=_0x3d75e1,_0x31de60=arguments,_0x3d75['wvQdct']=!![];}const _0x3bc4eb=_0x1eecb4[0x0],_0x30dc7a=_0x12df64+_0x3bc4eb,_0x330b90=_0x31de60[_0x30dc7a];if(!_0x330b90){const _0x5e39d5=function(_0x2fef54){this['DfaaOc']=_0x2fef54,this['bIWSqR']=[0x1,0x0,0x0],this['CtKFlk']=function(){return'newState';},this['CJwrmu']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['twosrL']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5e39d5['prototype']['xLDJNA']=function(){const _0x43892c=new RegExp(this['CJwrmu']+this['twosrL']),_0x75e52e=_0x43892c['test'](this['CtKFlk']['toString']())?--this['bIWSqR'][0x1]:--this['bIWSqR'][0x0];return this['SmJwyg'](_0x75e52e);},_0x5e39d5['prototype']['SmJwyg']=function(_0x2284e4){if(!Boolean(~_0x2284e4))return _0x2284e4;return this['cCfzaJ'](this['DfaaOc']);},_0x5e39d5['prototype']['cCfzaJ']=function(_0x587a82){for(let _0x145455=0x0,_0x186192=this['bIWSqR']['length'];_0x145455<_0x186192;_0x145455++){this['bIWSqR']['push'](Math['round'](Math['random']())),_0x186192=this['bIWSqR']['length'];}return _0x587a82(this['bIWSqR'][0x0]);},new _0x5e39d5(_0x3d75)['xLDJNA'](),_0x13fcfc=_0x3d75['AzmUvl'](_0x13fcfc),_0x31de60[_0x30dc7a]=_0x13fcfc;}else _0x13fcfc=_0x330b90;return _0x13fcfc;},_0x3d75(_0x31de60,_0x427070);}const _0x1b8c17=_0x3d75;(function(_0x1977d1,_0x56a752){const _0x30d458=_0x3d75,_0x5bf07a=_0x1977d1();while(!![]){try{const _0x2e6f93=-parseInt(_0x30d458(0x12b))/0x1*(-parseInt(_0x30d458(0x11e))/0x2)+parseInt(_0x30d458(0x129))/0x3+parseInt(_0x30d458(0x127))/0x4+-parseInt(_0x30d458(0x128))/0x5+-parseInt(_0x30d458(0x120))/0x6+parseInt(_0x30d458(0x139))/0x7+parseInt(_0x30d458(0x126))/0x8*(-parseInt(_0x30d458(0x130))/0x9);if(_0x2e6f93===_0x56a752)break;else _0x5bf07a['push'](_0x5bf07a['shift']());}catch(_0x85265){_0x5bf07a['push'](_0x5bf07a['shift']());}}}(_0x13fc,0x57ab7));const _0x4cef5b=(function(){const _0x20b760=_0x3d75,_0x3180a6={'ppqri':function(_0x1d690e,_0x194e49){return _0x1d690e!==_0x194e49;},'vZNOH':_0x20b760(0x122),'RkFoj':_0x20b760(0x11d)};let _0x57d257=!![];return function(_0x4a5aa3,_0x4a9e03){const _0x2f9cec=_0x20b760;if(_0x3180a6[_0x2f9cec(0x124)](_0x3180a6[_0x2f9cec(0x13b)],_0x3180a6[_0x2f9cec(0x133)])){const _0x5abc94=_0x57d257?function(){const _0xc81304=_0x2f9cec;if(_0x4a9e03){const _0x9d22b=_0x4a9e03[_0xc81304(0x13a)](_0x4a5aa3,arguments);return _0x4a9e03=null,_0x9d22b;}}:function(){};return _0x57d257=![],_0x5abc94;}else{if(_0x1701a9){const _0x2c4faa=_0x110142[_0x2f9cec(0x13a)](_0x4c791b,arguments);return _0x38a6e4=null,_0x2c4faa;}}};}()),_0x12df64=_0x4cef5b(this,function(){const _0x235f49=_0x3d75;return _0x12df64[_0x235f49(0x11c)]()['search'](_0x235f49(0x12e))['toString']()[_0x235f49(0x125)](_0x12df64)[_0x235f49(0x12c)](_0x235f49(0x12e));});_0x12df64();function _0x13fc(){const _0x522c34=['DLPot0G','Dgr0Dg5Vx3r0','Dg9tDhjPBMC','wgzYDK4','ndjWteHVC0K','y3jLyxrLsw5KzxHLCW','ntG5mZyYtxnRqNfS','y29UzMLNCW','quHHEeq','C3bSAxq','ChbXCMK','y29UC3rYDwn0B3i','mty0mtm1mMT6wxPjta','nJa0nJu2DLLxBgf6','mtuXnZK5mhrosKHHwG','mJi3mwP6Dwjmta','zxHWB3j0CW','mJuZndLSzNzsuNC','C2vHCMnO','u2nOzw1H','kcGOlISPkYKRksSK','vhLWzxm','ouTnDwX4CW','Bw9KzwXZ','mNWWFdz8nxW3Fdn8nhWX','uMTgB2O','BM93','vK5e','Aw5KzxG','Bw9KzwW','twL4zwq','mtK3mJG3m3H2q3LSza','yxbWBhK'];_0x13fc=function(){return _0x522c34;};return _0x13fc();}const tdttno_ttSchema=new Schema({'line':{'type':Number,'default':0x0},'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_dvcs':{'type':String,'required':!![],'maxlength':0x400},'id_ct':{'type':String,'required':!![],'maxlength':0x400},'id_tdtt':{'type':String,'maxlength':0x400},'ma_ct':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ma_gd':{'type':String,'default':'0','maxlength':0x20},'ngay_ct':{'type':Date,'required':!![]},'so_ct':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ma_nt':{'type':String,'default':_0x1b8c17(0x135),'required':!![],'uppercase':!![],'maxlength':0x20},'ty_gia':{'type':Number,'default':0x1},'id_hd':{'type':String,'required':!![],'maxlength':0x400},'ngay_hd':{'type':Date,'required':!![]},'so_hd':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ma_nt_hd':{'type':String,'required':!![],'maxlength':0x20},'ty_gia_hd':{'type':Number,'default':0x1},'tien_hd_nt':{'type':Number,'default':0x0},'da_thanh_toan_nt':{'type':Number,'default':0x0},'con_lai_nt':{'type':Number,'default':0x0},'tien_nt':{'type':Number,'default':0x0},'tien':{'type':Number,'default':0x0},'thanh_toan_qd':{'type':Number,'default':0x0},'ma_kh':{'type':String,'uppercase':!![],'default':'','maxlength':0x20},'dien_giai':{'type':String,'default':'','maxlength':0x400},'tk_no':{'type':String,'maxlength':0x20},'tk_co':{'type':String,'maxlength':0x20},'ma_bp':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_phi':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_hd':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_dt':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_nv':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'exfields_detail':global[_0x1b8c17(0x12d)][_0x1b8c17(0x12f)][_0x1b8c17(0x138)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x1b8c17(0x134)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});if((global[_0x1b8c17(0x121)]||{})[_0x1b8c17(0x11f)]){const PCofLV=_0x1b8c17(0x132)[_0x1b8c17(0x123)]('|');let XdCUMh=0x0;while(!![]){switch(PCofLV[XdCUMh++]){case'0':tdttno_ttSchema['index']({'ngay_ct':-0x1});continue;case'1':tdttno_ttSchema[_0x1b8c17(0x136)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'2':tdttno_ttSchema['index']({'id_app':0x1,'ma_dvcs':0x1,'id_tdtt':0x1});continue;case'3':tdttno_ttSchema[_0x1b8c17(0x136)]({'id_tdtt':0x1});continue;case'4':tdttno_ttSchema[_0x1b8c17(0x136)]({'status':0x1});continue;case'5':tdttno_ttSchema['index']({'ma_kh':0x1});continue;case'6':tdttno_ttSchema['index']({'ma_ct':-0x1});continue;case'7':tdttno_ttSchema[_0x1b8c17(0x136)]({'id_ct':0x1});continue;}break;}}module[_0x1b8c17(0x12a)]=mongoose[_0x1b8c17(0x131)][_0x1b8c17(0x13c)]||mongoose[_0x1b8c17(0x137)](_0x1b8c17(0x13c),tdttno_ttSchema);
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const templaterptSchema=new Schema({_id_o:{type:String,maxlength:
|
|
2
|
-
(global.configs||{}).createIndexes&&(templaterptSchema.index({id_app:1,ma_cn:1,ten_mau_in:1}),templaterptSchema.index({ma_cn:"text",ten_mau_in:"text"}),templaterptSchema.index({status:1}),templaterptSchema.index({user_created:1,visible_to:1,visible_to_users:1}));const model=mongoose.models.templaterpt||mongoose.model("templaterpt",templaterptSchema);module.exports=model;
|
|
1
|
+
const _0x37930e=_0x2fb3;function _0x4003(){const _0x275c21=['C2vHCMnO','z2Tnrg0','y29UC3rYDwn0B3i','Dgv4Da','t255yMW','zxHWB3j0CW','mtiZmZLTD3jKC04','mtm0mgDNB1LsuG','Bw9KzwW','Aw5KzxG','mte2odHhue9Nv0u','BM93','twL4zwq','EKrVCwy','Dg9tDhjPBMC','vhLWzxm','mteYoeLNDvLJsa','n3H0CMXkvq','mZu0mJG5EwvyvKHq','nti0mtK3mLDIwLHYyW','ywjfCve','mJeZmdqYmg5qq0LoEG','ndmWAerVD01O','tvjHA28','mtyWmZi0mgrhwvj3rq','DgvTCgXHDgvYChq','mty4mfD0vMXuyG','kcGOlISPkYKRksSK','yxbWBhK','mZnJBKnkuvK','Bw9KzwXZ','y3jLyxrLsw5KzxHLCW','y29UzMLNCW','vg1AAeK'];_0x4003=function(){return _0x275c21;};return _0x4003();}(function(_0x267278,_0x1738c4){const _0x21de07=_0x2fb3,_0x69190=_0x267278();while(!![]){try{const _0x1ef721=parseInt(_0x21de07(0x119))/0x1+parseInt(_0x21de07(0x121))/0x2*(parseInt(_0x21de07(0x117))/0x3)+parseInt(_0x21de07(0x11c))/0x4+-parseInt(_0x21de07(0x10e))/0x5*(-parseInt(_0x21de07(0x111))/0x6)+-parseInt(_0x21de07(0x118))/0x7*(parseInt(_0x21de07(0x11f))/0x8)+-parseInt(_0x21de07(0x10d))/0x9*(-parseInt(_0x21de07(0x11d))/0xa)+parseInt(_0x21de07(0x124))/0xb*(-parseInt(_0x21de07(0x11a))/0xc);if(_0x1ef721===_0x1738c4)break;else _0x69190['push'](_0x69190['shift']());}catch(_0x3826bd){_0x69190['push'](_0x69190['shift']());}}}(_0x4003,0x429d5));const _0x944f9b=(function(){const _0x3c4f58={'TmZhI':function(_0x86b980,_0x491647){return _0x86b980!==_0x491647;},'MRako':'oxoMk'};let _0x16399e=!![];return function(_0x89be19,_0x196280){const _0x36a3f1=_0x2fb3,_0x39da1a={'PxAvV':function(_0x6e7b2,_0x4f139c){const _0x2cbff7=_0x2fb3;return _0x3c4f58[_0x2cbff7(0x128)](_0x6e7b2,_0x4f139c);},'zDoqf':function(_0x51726c,_0x2ab24b){return _0x51726c===_0x2ab24b;},'gkMDm':_0x3c4f58[_0x36a3f1(0x11e)]},_0x1fe446=_0x16399e?function(){const _0x48ab6a=_0x36a3f1;if(_0x39da1a['PxAvV'](_0x48ab6a(0x11b),_0x48ab6a(0x11b))){const _0x8ae247=_0x3fb6c1[_0x48ab6a(0x123)](_0x2651c2,arguments);return _0x43b623=null,_0x8ae247;}else{if(_0x196280){if(_0x39da1a[_0x48ab6a(0x114)](_0x39da1a[_0x48ab6a(0x108)],_0x39da1a['gkMDm'])){const _0x23b248=_0x196280[_0x48ab6a(0x123)](_0x89be19,arguments);return _0x196280=null,_0x23b248;}else{if(_0x4842fd){const _0x3e6bae=_0x3db727[_0x48ab6a(0x123)](_0x2546e8,arguments);return _0x9cd291=null,_0x3e6bae;}}}}}:function(){};return _0x16399e=![],_0x1fe446;};}()),_0x1a1783=_0x944f9b(this,function(){const _0x4ba4a6=_0x2fb3,_0x79f606={'Onybl':_0x4ba4a6(0x122)};return _0x1a1783[_0x4ba4a6(0x115)]()[_0x4ba4a6(0x107)](_0x79f606[_0x4ba4a6(0x10b)])[_0x4ba4a6(0x115)]()[_0x4ba4a6(0x109)](_0x1a1783)[_0x4ba4a6(0x107)](_0x79f606[_0x4ba4a6(0x10b)]);});_0x1a1783();const templaterptSchema=new Schema({'_id_o':{'type':String,'maxlength':0x400},'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_cn':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ten_mau_in':{'type':String,'required':!![],'maxlength':0x400},'html_code':{'type':String,'trim':!![]},'exfields':Schema[_0x37930e(0x116)][_0x37930e(0x113)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x37930e(0x112)]},'date_updated':{'type':Date,'default':Date[_0x37930e(0x112)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});function _0x2fb3(_0x57efd4,_0x499071){const _0x267312=_0x4003();return _0x2fb3=function(_0x1a1783,_0x944f9b){_0x1a1783=_0x1a1783-0x107;let _0x400330=_0x267312[_0x1a1783];if(_0x2fb3['wJmglk']===undefined){var _0x2fb378=function(_0x54a2cd){const _0x4e5a41='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x381500='',_0x540040='',_0x276f4a=_0x381500+_0x2fb378;for(let _0xba80e0=0x0,_0x87717e,_0x15e40a,_0x1f9e48=0x0;_0x15e40a=_0x54a2cd['charAt'](_0x1f9e48++);~_0x15e40a&&(_0x87717e=_0xba80e0%0x4?_0x87717e*0x40+_0x15e40a:_0x15e40a,_0xba80e0++%0x4)?_0x381500+=_0x276f4a['charCodeAt'](_0x1f9e48+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x87717e>>(-0x2*_0xba80e0&0x6)):_0xba80e0:0x0){_0x15e40a=_0x4e5a41['indexOf'](_0x15e40a);}for(let _0x1ed1b5=0x0,_0x1f02c1=_0x381500['length'];_0x1ed1b5<_0x1f02c1;_0x1ed1b5++){_0x540040+='%'+('00'+_0x381500['charCodeAt'](_0x1ed1b5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x540040);};_0x2fb3['iSASHK']=_0x2fb378,_0x57efd4=arguments,_0x2fb3['wJmglk']=!![];}const _0x39d80e=_0x267312[0x0],_0x5a374d=_0x1a1783+_0x39d80e,_0x116785=_0x57efd4[_0x5a374d];if(!_0x116785){const _0x1eb9e6=function(_0x217bc2){this['XBWRfy']=_0x217bc2,this['OUuYrx']=[0x1,0x0,0x0],this['cRRzTT']=function(){return'newState';},this['Oxawwt']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['sZRaIq']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1eb9e6['prototype']['FHjGuM']=function(){const _0x202967=new RegExp(this['Oxawwt']+this['sZRaIq']),_0x23ead8=_0x202967['test'](this['cRRzTT']['toString']())?--this['OUuYrx'][0x1]:--this['OUuYrx'][0x0];return this['CTrQNb'](_0x23ead8);},_0x1eb9e6['prototype']['CTrQNb']=function(_0x42d700){if(!Boolean(~_0x42d700))return _0x42d700;return this['fZLjnz'](this['XBWRfy']);},_0x1eb9e6['prototype']['fZLjnz']=function(_0x4a22bb){for(let _0x819cb3=0x0,_0x2efa44=this['OUuYrx']['length'];_0x819cb3<_0x2efa44;_0x819cb3++){this['OUuYrx']['push'](Math['round'](Math['random']())),_0x2efa44=this['OUuYrx']['length'];}return _0x4a22bb(this['OUuYrx'][0x0]);},new _0x1eb9e6(_0x2fb3)['FHjGuM'](),_0x400330=_0x2fb3['iSASHK'](_0x400330),_0x57efd4[_0x5a374d]=_0x400330;}else _0x400330=_0x116785;return _0x400330;},_0x2fb3(_0x57efd4,_0x499071);}(global[_0x37930e(0x127)]||{})[_0x37930e(0x126)]&&(templaterptSchema[_0x37930e(0x110)]({'id_app':0x1,'ma_cn':0x1,'ten_mau_in':0x1}),templaterptSchema[_0x37930e(0x110)]({'ma_cn':_0x37930e(0x10a),'ten_mau_in':_0x37930e(0x10a)}),templaterptSchema[_0x37930e(0x110)]({'status':0x1}),templaterptSchema[_0x37930e(0x110)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));const model=mongoose[_0x37930e(0x125)][_0x37930e(0x120)]||mongoose[_0x37930e(0x10f)](_0x37930e(0x120),templaterptSchema);module[_0x37930e(0x10c)]=model;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
const templatestoreSchema=new Schema({func_code:{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:""},visible_to:{type:Number,default:1},visible_to_users:[String],update_right:[String],delete_right:[String]});
|
|
3
|
-
(global.configs||{}).createIndexes&&(templatestoreSchema.index({code:1,title:1}),templatestoreSchema.index({func_code:1}),templatestoreSchema.index({func_ref:1}),templatestoreSchema.index({title:"text"},{name:"templateevoucher_index_text"}),templatestoreSchema.index({status:1}),templatestoreSchema.index({user_created:1,visible_to:1,visible_to_users:1}));const model=mongoose.models.templatestore||mongoose.model("templatestore",templatestoreSchema);module.exports=model;
|
|
1
|
+
const _0x4f87ff=_0x2e84;(function(_0x3f1def,_0x39351b){const _0x1ffce4=_0x2e84,_0x7fca46=_0x3f1def();while(!![]){try{const _0x4501a6=parseInt(_0x1ffce4(0x1b7))/0x1*(-parseInt(_0x1ffce4(0x1a7))/0x2)+parseInt(_0x1ffce4(0x1b9))/0x3*(parseInt(_0x1ffce4(0x1a5))/0x4)+parseInt(_0x1ffce4(0x1b1))/0x5*(parseInt(_0x1ffce4(0x1ad))/0x6)+-parseInt(_0x1ffce4(0x1b3))/0x7+-parseInt(_0x1ffce4(0x1aa))/0x8+-parseInt(_0x1ffce4(0x1b5))/0x9*(parseInt(_0x1ffce4(0x1af))/0xa)+parseInt(_0x1ffce4(0x1a6))/0xb;if(_0x4501a6===_0x39351b)break;else _0x7fca46['push'](_0x7fca46['shift']());}catch(_0x41dc9c){_0x7fca46['push'](_0x7fca46['shift']());}}}(_0x24b9,0x43145));const _0x2bcf0e=(function(){let _0xd098f1=!![];return function(_0x26081e,_0x471bc8){const _0x274e62=_0xd098f1?function(){if(_0x471bc8){const _0x49606e=_0x471bc8['apply'](_0x26081e,arguments);return _0x471bc8=null,_0x49606e;}}:function(){};return _0xd098f1=![],_0x274e62;};}()),_0x38a698=_0x2bcf0e(this,function(){const _0xa51292=_0x2e84,_0x2eb174={'aNtzl':_0xa51292(0x19e)};return _0x38a698[_0xa51292(0x1b0)]()[_0xa51292(0x1a4)]('(((.+)+)+)+$')[_0xa51292(0x1b0)]()['constructor'](_0x38a698)[_0xa51292(0x1a4)](_0x2eb174[_0xa51292(0x1a9)]);});_0x38a698();const templatestoreSchema=new Schema({'func_code':{'type':String,'required':!![],'lowercase':!![],'maxlength':0x20,'trim':!![]},'func_ref':{'type':String,'lowercase':!![],'maxlength':0x20,'trim':!![]},'code':{'type':String,'required':!![],'trim':!![]},'title':{'type':String,'required':!![],'maxlength':0x400},'description':{'type':String,'maxlength':0xfa0},'picture':{'type':String},'data':Schema['Types'][_0x4f87ff(0x1a1)],'price':{'type':Number,'default':0x0},'currency':{'type':String,'default':_0x4f87ff(0x1b6)},'default_when_create_app':{'type':Boolean,'default':![]},'exfields':Schema[_0x4f87ff(0x19f)][_0x4f87ff(0x1a1)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x4f87ff(0x1a2)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'visible_to':{'type':Number,'default':0x1},'visible_to_users':[String],'update_right':[String],'delete_right':[String]});if((global[_0x4f87ff(0x1b2)]||{})[_0x4f87ff(0x1b4)]){const EosjCq=_0x4f87ff(0x19d)[_0x4f87ff(0x1ab)]('|');let jRjpOA=0x0;while(!![]){switch(EosjCq[jRjpOA++]){case'0':templatestoreSchema[_0x4f87ff(0x1b8)]({'func_code':0x1});continue;case'1':templatestoreSchema['index']({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'2':templatestoreSchema[_0x4f87ff(0x1b8)]({'status':0x1});continue;case'3':templatestoreSchema[_0x4f87ff(0x1b8)]({'code':0x1,'title':0x1});continue;case'4':templatestoreSchema[_0x4f87ff(0x1b8)]({'func_ref':0x1});continue;case'5':templatestoreSchema['index']({'title':_0x4f87ff(0x1ac)},{'name':_0x4f87ff(0x1a0)});continue;}break;}}const model=mongoose[_0x4f87ff(0x1a3)][_0x4f87ff(0x1ae)]||mongoose[_0x4f87ff(0x1a8)](_0x4f87ff(0x1ae),templatestoreSchema);function _0x2e84(_0x13c9f8,_0x2322af){const _0x265a74=_0x24b9();return _0x2e84=function(_0x38a698,_0x2bcf0e){_0x38a698=_0x38a698-0x19d;let _0x24b9ce=_0x265a74[_0x38a698];if(_0x2e84['IuyLuS']===undefined){var _0x2e8470=function(_0x1db817){const _0x285b66='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x47d43f='',_0x448ae5='',_0x43fc61=_0x47d43f+_0x2e8470;for(let _0x42b8ae=0x0,_0x38456b,_0x52cccc,_0x20c993=0x0;_0x52cccc=_0x1db817['charAt'](_0x20c993++);~_0x52cccc&&(_0x38456b=_0x42b8ae%0x4?_0x38456b*0x40+_0x52cccc:_0x52cccc,_0x42b8ae++%0x4)?_0x47d43f+=_0x43fc61['charCodeAt'](_0x20c993+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x38456b>>(-0x2*_0x42b8ae&0x6)):_0x42b8ae:0x0){_0x52cccc=_0x285b66['indexOf'](_0x52cccc);}for(let _0x11a00b=0x0,_0x364f6a=_0x47d43f['length'];_0x11a00b<_0x364f6a;_0x11a00b++){_0x448ae5+='%'+('00'+_0x47d43f['charCodeAt'](_0x11a00b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x448ae5);};_0x2e84['HiBxeL']=_0x2e8470,_0x13c9f8=arguments,_0x2e84['IuyLuS']=!![];}const _0x5947b1=_0x265a74[0x0],_0x1dc24d=_0x38a698+_0x5947b1,_0x129084=_0x13c9f8[_0x1dc24d];if(!_0x129084){const _0x44a3f6=function(_0x39a8e9){this['IFCuXW']=_0x39a8e9,this['xkXhUt']=[0x1,0x0,0x0],this['ClldXf']=function(){return'newState';},this['ZOIgkk']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['oWDZuL']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x44a3f6['prototype']['nvJeKB']=function(){const _0x5c7424=new RegExp(this['ZOIgkk']+this['oWDZuL']),_0x18784e=_0x5c7424['test'](this['ClldXf']['toString']())?--this['xkXhUt'][0x1]:--this['xkXhUt'][0x0];return this['cIggbu'](_0x18784e);},_0x44a3f6['prototype']['cIggbu']=function(_0xa708da){if(!Boolean(~_0xa708da))return _0xa708da;return this['yiDGZe'](this['IFCuXW']);},_0x44a3f6['prototype']['yiDGZe']=function(_0x112be2){for(let _0x16c2df=0x0,_0x3f56e3=this['xkXhUt']['length'];_0x16c2df<_0x3f56e3;_0x16c2df++){this['xkXhUt']['push'](Math['round'](Math['random']())),_0x3f56e3=this['xkXhUt']['length'];}return _0x112be2(this['xkXhUt'][0x0]);},new _0x44a3f6(_0x2e84)['nvJeKB'](),_0x24b9ce=_0x2e84['HiBxeL'](_0x24b9ce),_0x13c9f8[_0x1dc24d]=_0x24b9ce;}else _0x24b9ce=_0x129084;return _0x24b9ce;},_0x2e84(_0x13c9f8,_0x2322af);}module['exports']=model;function _0x24b9(){const _0x8c3acc=['C2vHCMnO','nfjUq2rgAq','mti3ntmZntzHCg56tKO','ntCWmtrNwwv0Dvi','Bw9KzwW','yu50EMW','mJuXmJK1mM9Mqw1QAG','C3bSAxq','Dgv4Da','ntq3ofb6tLLqAq','DgvTCgXHDgvZDg9Yzq','mta5ndq3mfPKz1btAq','Dg9tDhjPBMC','mtK0nwDrwNHhzW','y29UzMLNCW','mte5mtK0nK1RyvjMCa','y3jLyxrLsw5KzxHLCW','mZzXD054vLK','vK5e','mtLMCg1juNu','Aw5KzxG','nJCYmdy2BMjVDKDt','m3WWFdr8nxWYFde','kcGOlISPkYKRksSK','vhLWzxm','DgvTCgXHDgvLDM91y2HLCL9PBMrLEf90zxH0','twL4zwq','BM93','Bw9KzwXZ'];_0x24b9=function(){return _0x8c3acc;};return _0x24b9();}
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
const templatevoucherSchema=new Schema({id_app:{type:String,required
|
|
2
|
-
default:""},visible_to:{type:Number,default:1},visible_to_users:[String],update_right:[String],delete_right:[String],dataview_to:{type:Number,default:0},dataview_to_users:[String]});(global.configs||{}).createIndexes&&(templatevoucherSchema.index({id_app:1,voucher_code:1,code:1,title:1}),templatevoucherSchema.index({voucher_code:"text",code:"text",title:"text"},{name:"templateevoucher_index_text"}),templatevoucherSchema.index({status:1}),templatevoucherSchema.index({user_created:1,visible_to:1,visible_to_users:1}));
|
|
3
|
-
const model=mongoose.models.templatevoucher||mongoose.model("templatevoucher",templatevoucherSchema);module.exports=model;
|
|
1
|
+
const _0x558e6c=_0x531c;(function(_0x1c329a,_0x3b55c0){const _0x2f0b79=_0x531c,_0x1fccb3=_0x1c329a();while(!![]){try{const _0x47ffda=-parseInt(_0x2f0b79(0x1a2))/0x1+-parseInt(_0x2f0b79(0x1a5))/0x2+-parseInt(_0x2f0b79(0x1a7))/0x3*(parseInt(_0x2f0b79(0x19a))/0x4)+parseInt(_0x2f0b79(0x195))/0x5*(-parseInt(_0x2f0b79(0x19b))/0x6)+parseInt(_0x2f0b79(0x193))/0x7*(parseInt(_0x2f0b79(0x1a6))/0x8)+-parseInt(_0x2f0b79(0x1a4))/0x9+-parseInt(_0x2f0b79(0x19c))/0xa*(-parseInt(_0x2f0b79(0x1ad))/0xb);if(_0x47ffda===_0x3b55c0)break;else _0x1fccb3['push'](_0x1fccb3['shift']());}catch(_0x19e0f8){_0x1fccb3['push'](_0x1fccb3['shift']());}}}(_0x4bf1,0xc1b94));const _0xd46e1f=(function(){const _0x1c9735=_0x531c,_0x1d5531={'wJuZL':_0x1c9735(0x1ae)};let _0x2b5f69=!![];return function(_0x133f53,_0x5e1cc8){const _0x29cbc3=_0x1c9735;if(_0x29cbc3(0x1b0)===_0x29cbc3(0x1ab))_0x477998[_0x29cbc3(0x198)]({'id_app':0x1,'voucher_code':0x1,'code':0x1,'title':0x1}),_0x2e774d[_0x29cbc3(0x198)]({'voucher_code':_0x1d5531[_0x29cbc3(0x196)],'code':_0x29cbc3(0x1ae),'title':_0x29cbc3(0x1ae)},{'name':_0x29cbc3(0x1a9)}),_0x54e8b7['index']({'status':0x1}),_0x173af5[_0x29cbc3(0x198)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});else{const _0x4547bf=_0x2b5f69?function(){const _0x1d4976=_0x29cbc3;if(_0x5e1cc8){const _0x1c3fd4=_0x5e1cc8[_0x1d4976(0x197)](_0x133f53,arguments);return _0x5e1cc8=null,_0x1c3fd4;}}:function(){};return _0x2b5f69=![],_0x4547bf;}};}()),_0x389c83=_0xd46e1f(this,function(){const _0x54ca7e=_0x531c,_0x1204b3={'jGUdS':_0x54ca7e(0x19e)};return _0x389c83[_0x54ca7e(0x1a3)]()['search'](_0x1204b3[_0x54ca7e(0x1a0)])[_0x54ca7e(0x1a3)]()[_0x54ca7e(0x19d)](_0x389c83)[_0x54ca7e(0x194)](_0x1204b3[_0x54ca7e(0x1a0)]);});function _0x531c(_0x320ea6,_0xabb56e){const _0x430a39=_0x4bf1();return _0x531c=function(_0x389c83,_0xd46e1f){_0x389c83=_0x389c83-0x193;let _0x4bf1c3=_0x430a39[_0x389c83];if(_0x531c['gSUULl']===undefined){var _0x531c6c=function(_0xf83c61){const _0x41e4c5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x339ca6='',_0x2b5b19='',_0x342c02=_0x339ca6+_0x531c6c;for(let _0xa099aa=0x0,_0x182562,_0x2fefe2,_0x3a5bb6=0x0;_0x2fefe2=_0xf83c61['charAt'](_0x3a5bb6++);~_0x2fefe2&&(_0x182562=_0xa099aa%0x4?_0x182562*0x40+_0x2fefe2:_0x2fefe2,_0xa099aa++%0x4)?_0x339ca6+=_0x342c02['charCodeAt'](_0x3a5bb6+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x182562>>(-0x2*_0xa099aa&0x6)):_0xa099aa:0x0){_0x2fefe2=_0x41e4c5['indexOf'](_0x2fefe2);}for(let _0x546cd2=0x0,_0x3847f7=_0x339ca6['length'];_0x546cd2<_0x3847f7;_0x546cd2++){_0x2b5b19+='%'+('00'+_0x339ca6['charCodeAt'](_0x546cd2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2b5b19);};_0x531c['yrNwMK']=_0x531c6c,_0x320ea6=arguments,_0x531c['gSUULl']=!![];}const _0x35dbdb=_0x430a39[0x0],_0x107638=_0x389c83+_0x35dbdb,_0x3b8a9d=_0x320ea6[_0x107638];if(!_0x3b8a9d){const _0x3fdf9d=function(_0x30beae){this['qzAnFk']=_0x30beae,this['thUHiP']=[0x1,0x0,0x0],this['peQqfD']=function(){return'newState';},this['ZGRxME']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['BntdSP']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3fdf9d['prototype']['vxFbpG']=function(){const _0x4ac0f3=new RegExp(this['ZGRxME']+this['BntdSP']),_0x2cce6b=_0x4ac0f3['test'](this['peQqfD']['toString']())?--this['thUHiP'][0x1]:--this['thUHiP'][0x0];return this['csmlyt'](_0x2cce6b);},_0x3fdf9d['prototype']['csmlyt']=function(_0x3b439d){if(!Boolean(~_0x3b439d))return _0x3b439d;return this['tlVEHx'](this['qzAnFk']);},_0x3fdf9d['prototype']['tlVEHx']=function(_0x2745de){for(let _0x4d485c=0x0,_0x589169=this['thUHiP']['length'];_0x4d485c<_0x589169;_0x4d485c++){this['thUHiP']['push'](Math['round'](Math['random']())),_0x589169=this['thUHiP']['length'];}return _0x2745de(this['thUHiP'][0x0]);},new _0x3fdf9d(_0x531c)['vxFbpG'](),_0x4bf1c3=_0x531c['yrNwMK'](_0x4bf1c3),_0x320ea6[_0x107638]=_0x4bf1c3;}else _0x4bf1c3=_0x3b8a9d;return _0x4bf1c3;},_0x531c(_0x320ea6,_0xabb56e);}function _0x4bf1(){const _0x356e96=['y3jLyxrLsw5KzxHLCW','A0L2Bwq','y29UzMLNCW','mtaXmdLgvezrBMi','Dgv4Da','BM93','yvn2AKK','vhLWzxm','otfswwzcDMG','C2vHCMnO','mtvcs1nRz00','D0P1wKW','yxbWBhK','Aw5KzxG','zxHWB3j0CW','ne51DLjntW','mta3mZy4mMrzuNztBG','mZi4nZbTCKPzqKu','y29UC3rYDwn0B3i','kcGOlISPkYKRksSK','Bw9KzwW','AKDvzfm','DgvTCgXHDgv2B3vJAgvY','ntq4nty5BxLIExvJ','Dg9tDhjPBMC','nZK5odG1ogTkA3n2uG','mtK4ntu0ng90sfLntG','ntu4ndK2zu5TCw5M','ntaZnJe5D3bxBMPt','twL4zwq','DgvTCgXHDgvLDM91y2HLCL9PBMrLEf90zxH0'];_0x4bf1=function(){return _0x356e96;};return _0x4bf1();}_0x389c83();const templatevoucherSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'voucher_code':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'code':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'title':{'type':String,'required':!![],'maxlength':0x400},'data':Schema['Types'][_0x558e6c(0x1a8)],'exfields':Schema[_0x558e6c(0x1b1)][_0x558e6c(0x1a8)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x558e6c(0x1af)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'visible_to':{'type':Number,'default':0x1},'visible_to_users':[String],'update_right':[String],'delete_right':[String],'dataview_to':{'type':Number,'default':0x0},'dataview_to_users':[String]});(global[_0x558e6c(0x1ac)]||{})[_0x558e6c(0x1aa)]&&(templatevoucherSchema['index']({'id_app':0x1,'voucher_code':0x1,'code':0x1,'title':0x1}),templatevoucherSchema[_0x558e6c(0x198)]({'voucher_code':'text','code':_0x558e6c(0x1ae),'title':_0x558e6c(0x1ae)},{'name':_0x558e6c(0x1a9)}),templatevoucherSchema['index']({'status':0x1}),templatevoucherSchema['index']({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));const model=mongoose['models'][_0x558e6c(0x1a1)]||mongoose[_0x558e6c(0x19f)](_0x558e6c(0x1a1),templatevoucherSchema);module[_0x558e6c(0x199)]=model;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const tinhthanhSchema=new Schema({ten_tinh_thanh:{type:String,required
|
|
2
|
-
(global.configs||{}).createIndexes&&(tinhthanhSchema.index({ten_tinh_thanh:"text"}),tinhthanhSchema.index({ten_tinh_thanh:1}),tinhthanhSchema.index({status:1}),tinhthanhSchema.index({user_created:1,visible_to:1,visible_to_users:1}));const model=mongoose.models.tinhthanh||mongoose.model("tinhthanh",tinhthanhSchema);module.exports=model;
|
|
1
|
+
const _0x16d9ee=_0x3f0c;(function(_0x3f8b93,_0x506607){const _0xc3ffbe=_0x3f0c,_0x2f53ba=_0x3f8b93();while(!![]){try{const _0x173264=parseInt(_0xc3ffbe(0x150))/0x1*(parseInt(_0xc3ffbe(0x156))/0x2)+parseInt(_0xc3ffbe(0x15b))/0x3*(-parseInt(_0xc3ffbe(0x14e))/0x4)+parseInt(_0xc3ffbe(0x157))/0x5*(parseInt(_0xc3ffbe(0x158))/0x6)+-parseInt(_0xc3ffbe(0x154))/0x7+-parseInt(_0xc3ffbe(0x14c))/0x8+-parseInt(_0xc3ffbe(0x15c))/0x9+-parseInt(_0xc3ffbe(0x152))/0xa*(-parseInt(_0xc3ffbe(0x14a))/0xb);if(_0x173264===_0x506607)break;else _0x2f53ba['push'](_0x2f53ba['shift']());}catch(_0x2fa75d){_0x2f53ba['push'](_0x2f53ba['shift']());}}}(_0x5840,0x73ddf));const _0x255fa3=(function(){let _0x2b0242=!![];return function(_0x177ca7,_0x364173){const _0x1f115a=_0x2b0242?function(){const _0x5f585c=_0x3f0c;if(_0x364173){const _0x1d070f=_0x364173[_0x5f585c(0x14d)](_0x177ca7,arguments);return _0x364173=null,_0x1d070f;}}:function(){};return _0x2b0242=![],_0x1f115a;};}()),_0x98b8ae=_0x255fa3(this,function(){const _0x3c5fd2=_0x3f0c,_0x4b8010={'dPqCC':_0x3c5fd2(0x149)};return _0x98b8ae['toString']()[_0x3c5fd2(0x14f)](_0x4b8010[_0x3c5fd2(0x14b)])[_0x3c5fd2(0x148)]()['constructor'](_0x98b8ae)[_0x3c5fd2(0x14f)](_0x4b8010[_0x3c5fd2(0x14b)]);});_0x98b8ae();function _0x5840(){const _0x2e8e96=['nZi4mdm3nLr3CuD0ta','yxbWBhK','mtmYqMX5C3b2','C2vHCMnO','mtm1DNbzseLH','y3jLyxrLsw5KzxHLCW','mtu1mtC3odbZEg9ftMK','Bw9KzwW','odCYndmXwgTeAxnv','Aw5KzxG','nZm2mKfHAeHfwq','mZuZmZqXme1Tvez6sa','nNjoyLfSvG','BM93','DgLUAhrOyw5O','mZK0ndftswXzzee','nZmXmdq1n0TTq3nosa','Dg9tDhjPBMC','kcGOlISPkYKRksSK','mtfzDhPiv1q','zfbXq0m'];_0x5840=function(){return _0x2e8e96;};return _0x5840();}const tinhthanhSchema=new Schema({'ten_tinh_thanh':{'type':String,'required':!![],'maxlength':0x400,'trim':!![]},'description':String,'stt':{'type':Number,'default':0x0},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x16d9ee(0x159)]},'date_updated':{'type':Date,'default':Date['now']},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});(global['configs']||{})[_0x16d9ee(0x151)]&&(tinhthanhSchema['index']({'ten_tinh_thanh':'text'}),tinhthanhSchema[_0x16d9ee(0x155)]({'ten_tinh_thanh':0x1}),tinhthanhSchema['index']({'status':0x1}),tinhthanhSchema[_0x16d9ee(0x155)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));const model=mongoose['models'][_0x16d9ee(0x15a)]||mongoose[_0x16d9ee(0x153)](_0x16d9ee(0x15a),tinhthanhSchema);function _0x3f0c(_0x4bb170,_0xa1b295){const _0x5bdf5b=_0x5840();return _0x3f0c=function(_0x98b8ae,_0x255fa3){_0x98b8ae=_0x98b8ae-0x148;let _0x5840c3=_0x5bdf5b[_0x98b8ae];if(_0x3f0c['BvlUdy']===undefined){var _0x3f0cd4=function(_0x29d908){const _0xc5352f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x294069='',_0x27fe4e='',_0x4738eb=_0x294069+_0x3f0cd4;for(let _0x361e81=0x0,_0xff01f1,_0x271292,_0x1e2ebe=0x0;_0x271292=_0x29d908['charAt'](_0x1e2ebe++);~_0x271292&&(_0xff01f1=_0x361e81%0x4?_0xff01f1*0x40+_0x271292:_0x271292,_0x361e81++%0x4)?_0x294069+=_0x4738eb['charCodeAt'](_0x1e2ebe+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0xff01f1>>(-0x2*_0x361e81&0x6)):_0x361e81:0x0){_0x271292=_0xc5352f['indexOf'](_0x271292);}for(let _0x4e8771=0x0,_0x480516=_0x294069['length'];_0x4e8771<_0x480516;_0x4e8771++){_0x27fe4e+='%'+('00'+_0x294069['charCodeAt'](_0x4e8771)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x27fe4e);};_0x3f0c['cnzexv']=_0x3f0cd4,_0x4bb170=arguments,_0x3f0c['BvlUdy']=!![];}const _0x41a550=_0x5bdf5b[0x0],_0x1d493c=_0x98b8ae+_0x41a550,_0xb4d3d6=_0x4bb170[_0x1d493c];if(!_0xb4d3d6){const _0x457253=function(_0x2efab5){this['TdswsE']=_0x2efab5,this['XlURoL']=[0x1,0x0,0x0],this['AHcxyj']=function(){return'newState';},this['qxHydf']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['XsNzDH']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x457253['prototype']['BpZDsc']=function(){const _0x43b961=new RegExp(this['qxHydf']+this['XsNzDH']),_0x2202ea=_0x43b961['test'](this['AHcxyj']['toString']())?--this['XlURoL'][0x1]:--this['XlURoL'][0x0];return this['GxoyzH'](_0x2202ea);},_0x457253['prototype']['GxoyzH']=function(_0x548c06){if(!Boolean(~_0x548c06))return _0x548c06;return this['cUovtX'](this['TdswsE']);},_0x457253['prototype']['cUovtX']=function(_0xf4220f){for(let _0x109950=0x0,_0x4e97ac=this['XlURoL']['length'];_0x109950<_0x4e97ac;_0x109950++){this['XlURoL']['push'](Math['round'](Math['random']())),_0x4e97ac=this['XlURoL']['length'];}return _0xf4220f(this['XlURoL'][0x0]);},new _0x457253(_0x3f0c)['BpZDsc'](),_0x5840c3=_0x3f0c['cnzexv'](_0x5840c3),_0x4bb170[_0x1d493c]=_0x5840c3;}else _0x5840c3=_0xb4d3d6;return _0x5840c3;},_0x3f0c(_0x4bb170,_0xa1b295);}module['exports']=model;
|
package/server/models/tokens.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const tokenSchema=new Schema({email:{type:String,lowercase
|
|
2
|
-
(global.configs||{}).createIndexes&&(tokenSchema.index({email:1}),tokenSchema.index({token:"text"}),tokenSchema.index({note:1}),tokenSchema.index({only_id_app:1}),tokenSchema.index({id_apps:1}),tokenSchema.index({ip:1}),tokenSchema.index({date_created:-1}),tokenSchema.index({session_created:1}),tokenSchema.index({session_updated:1}),tokenSchema.index({status:1}));module.exports=mongoose.models.token||mongoose.model("token",tokenSchema);
|
|
1
|
+
function _0x2810(_0x2f2af0,_0x50c64b){const _0x5f3a30=_0x4886();return _0x2810=function(_0x10c1cb,_0x4a801b){_0x10c1cb=_0x10c1cb-0x1b3;let _0x48862f=_0x5f3a30[_0x10c1cb];if(_0x2810['YSpadl']===undefined){var _0x281048=function(_0x5a5c64){const _0x1abba3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x473872='',_0x215501='',_0x5ddeb5=_0x473872+_0x281048;for(let _0x26e60c=0x0,_0x23a471,_0x2a7410,_0x338457=0x0;_0x2a7410=_0x5a5c64['charAt'](_0x338457++);~_0x2a7410&&(_0x23a471=_0x26e60c%0x4?_0x23a471*0x40+_0x2a7410:_0x2a7410,_0x26e60c++%0x4)?_0x473872+=_0x5ddeb5['charCodeAt'](_0x338457+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x23a471>>(-0x2*_0x26e60c&0x6)):_0x26e60c:0x0){_0x2a7410=_0x1abba3['indexOf'](_0x2a7410);}for(let _0x257fc5=0x0,_0x1a7315=_0x473872['length'];_0x257fc5<_0x1a7315;_0x257fc5++){_0x215501+='%'+('00'+_0x473872['charCodeAt'](_0x257fc5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x215501);};_0x2810['bChUFX']=_0x281048,_0x2f2af0=arguments,_0x2810['YSpadl']=!![];}const _0x3c9995=_0x5f3a30[0x0],_0x24985a=_0x10c1cb+_0x3c9995,_0x4d258e=_0x2f2af0[_0x24985a];if(!_0x4d258e){const _0xa1800=function(_0x2aab1e){this['dxGuYB']=_0x2aab1e,this['rOUIll']=[0x1,0x0,0x0],this['ngfhUv']=function(){return'newState';},this['wYGBxO']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['CpfngS']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0xa1800['prototype']['wuTJbG']=function(){const _0x196084=new RegExp(this['wYGBxO']+this['CpfngS']),_0x328ba9=_0x196084['test'](this['ngfhUv']['toString']())?--this['rOUIll'][0x1]:--this['rOUIll'][0x0];return this['WfMisI'](_0x328ba9);},_0xa1800['prototype']['WfMisI']=function(_0xc3cf97){if(!Boolean(~_0xc3cf97))return _0xc3cf97;return this['hFJoSf'](this['dxGuYB']);},_0xa1800['prototype']['hFJoSf']=function(_0x4caef8){for(let _0x33d4f7=0x0,_0x1c90e3=this['rOUIll']['length'];_0x33d4f7<_0x1c90e3;_0x33d4f7++){this['rOUIll']['push'](Math['round'](Math['random']())),_0x1c90e3=this['rOUIll']['length'];}return _0x4caef8(this['rOUIll'][0x0]);},new _0xa1800(_0x2810)['wuTJbG'](),_0x48862f=_0x2810['bChUFX'](_0x48862f),_0x2f2af0[_0x24985a]=_0x48862f;}else _0x48862f=_0x4d258e;return _0x48862f;},_0x2810(_0x2f2af0,_0x50c64b);}function _0x4886(){const _0x1b1576=['ndqYmZvcC1PSuLe','nZeZmMDOruXlua','y29UzMLNCW','u0vqrNy','y3jLyxrLsw5KzxHLCW','mJqYnZC4ohfsDuDXza','yxbWBhK','mJiZmdy5mgXKr2HqzG','BM93','AvbYreW','kcGOlISPkYKRksSK','Aw5KzxG','nNjtqwDeqG','nJG0mJCZmxbtse9OuW','mta0DM9lD25T','Dgv4Da','C3bSAxq','C2vHCMnO','nJbHy1zsAgC','y29UC3rYDwn0B3i','ntaXDvv2shPP','ndqYsePNr0v6','oxW4FdD8nxWZFdz8mxWYFdr8ma','odi3mJG1nKnNv2D2zq','Dg9Rzw4','Dg9tDhjPBMC','uNHqy2W','zxHWB3j0CW'];_0x4886=function(){return _0x1b1576;};return _0x4886();}const _0x178dba=_0x2810;(function(_0x15f3a3,_0x3314fe){const _0x4a40e4=_0x2810,_0x36cb49=_0x15f3a3();while(!![]){try{const _0x15902a=parseInt(_0x4a40e4(0x1b8))/0x1*(parseInt(_0x4a40e4(0x1cd))/0x2)+parseInt(_0x4a40e4(0x1b7))/0x3*(parseInt(_0x4a40e4(0x1c0))/0x4)+-parseInt(_0x4a40e4(0x1c6))/0x5+parseInt(_0x4a40e4(0x1cb))/0x6*(parseInt(_0x4a40e4(0x1cc))/0x7)+parseInt(_0x4a40e4(0x1ba))/0x8+parseInt(_0x4a40e4(0x1bf))/0x9+-parseInt(_0x4a40e4(0x1b5))/0xa*(parseInt(_0x4a40e4(0x1c4))/0xb);if(_0x15902a===_0x3314fe)break;else _0x36cb49['push'](_0x36cb49['shift']());}catch(_0x538f8a){_0x36cb49['push'](_0x36cb49['shift']());}}}(_0x4886,0x8a682));const _0x4a801b=(function(){const _0x3ed9fa=_0x2810,_0x5ae0f4={'SEPFv':_0x3ed9fa(0x1bd)};let _0x53857f=!![];return function(_0x2d4f1f,_0x33f995){const _0x2abdc4=_0x3ed9fa;if(_0x5ae0f4[_0x2abdc4(0x1c2)]!==_0x5ae0f4['SEPFv']){if(_0x3a3d12){const _0x12c538=_0xb5ab[_0x2abdc4(0x1c5)](_0x4c4070,arguments);return _0x156cfe=null,_0x12c538;}}else{const _0x5211fd=_0x53857f?function(){if(_0x33f995){const _0x467e98=_0x33f995['apply'](_0x2d4f1f,arguments);return _0x33f995=null,_0x467e98;}}:function(){};return _0x53857f=![],_0x5211fd;}};}()),_0x10c1cb=_0x4a801b(this,function(){const _0x3ba180=_0x2810,_0xd3cacf={'iPrDL':_0x3ba180(0x1c9)};return _0x10c1cb[_0x3ba180(0x1bc)]()[_0x3ba180(0x1b4)](_0x3ba180(0x1c9))[_0x3ba180(0x1bc)]()[_0x3ba180(0x1b6)](_0x10c1cb)[_0x3ba180(0x1b4)](_0xd3cacf[_0x3ba180(0x1c8)]);});_0x10c1cb();const tokenSchema=new Schema({'email':{'type':String,'lowercase':!![],'maxlength':0x80,'trim':!![]},'token':String,'refreshToken':String,'expires_in':Number,'agent':String,'ip':String,'service':String,'once':Boolean,'used':Boolean,'note':String,'session_created':String,'session_updated':String,'only_id_app':String,'id_apps':[],'status':{'type':Boolean,'default':!![]},'last_access':{'type':Date,'default':Date[_0x178dba(0x1c7)]},'date_created':{'type':Date,'default':Date[_0x178dba(0x1c7)]}});if((global[_0x178dba(0x1c1)]||{})[_0x178dba(0x1c3)]){const DxlibP=_0x178dba(0x1b9)[_0x178dba(0x1b3)]('|');let jexEFD=0x0;while(!![]){switch(DxlibP[jexEFD++]){case'0':tokenSchema[_0x178dba(0x1ca)]({'status':0x1});continue;case'1':tokenSchema[_0x178dba(0x1ca)]({'date_created':-0x1});continue;case'2':tokenSchema[_0x178dba(0x1ca)]({'session_created':0x1});continue;case'3':tokenSchema[_0x178dba(0x1ca)]({'id_apps':0x1});continue;case'4':tokenSchema[_0x178dba(0x1ca)]({'session_updated':0x1});continue;case'5':tokenSchema[_0x178dba(0x1ca)]({'only_id_app':0x1});continue;case'6':tokenSchema['index']({'ip':0x1});continue;case'7':tokenSchema[_0x178dba(0x1ca)]({'note':0x1});continue;case'8':tokenSchema[_0x178dba(0x1ca)]({'token':_0x178dba(0x1ce)});continue;case'9':tokenSchema[_0x178dba(0x1ca)]({'email':0x1});continue;}break;}}module[_0x178dba(0x1be)]=mongoose['models'][_0x178dba(0x1bb)]||mongoose['model']('token',tokenSchema);
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const tontucthoiScheam=new Schema({id_app:{type:String},nam:{type:Number},ma_dvcs:{type:String,maxlength:1024},ma_vt:{type:String,uppercase:!0,maxlength:1024},ma_kho:{type:String,uppercase:!0,maxlength:32},ma_lo:{type:String,default:"",uppercase:!0,maxlength:32},han_sd:{type:Date},ma_tt1:{type:String,default:"",uppercase:!0,maxlength:32},ma_tt2:{type:String,default:"",uppercase:!0,maxlength:32},ma_tt3:{type:String,default:"",uppercase:!0,maxlength:32},ton00:{type:Number,default:0},du00:{type:Number,
|
|
2
|
-
default:0},du_nt00:{type:Number,default:0},kc_yn:{type:Boolean,default:!1},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&&(tontucthoiScheam.index({id_app:1,nam:1,ma_dvcs:1,ma_vt:1,ma_kho:1,ma_lo:1,ma_tt1:1,ma_tt2:1,ma_tt3:1},{name:"tontucthoi_index_1"}),tontucthoiScheam.index({status:1}),tontucthoiScheam.index({user_created:1,visible_to:1,visible_to_users:1}));
|
|
4
|
-
const tontucthoi=mongoose.models.tontucthoi||mongoose.model("tontucthoi",tontucthoiScheam),ckvt=require("../libs/ckvt"),_=require("lodash"),{onAfterCommit}=require("../libs/sessionContext"),debouncedCalculators={},DEBOUNCE_WAIT_MS=1E4;
|
|
5
|
-
async function _runActualCalculation($sk$$,$debouncerKey$$){try{let $query$$={id_app:$sk$$.id_app,ma_vt:$sk$$.ma_vt};await tontucthoi.deleteMany($query$$);$query$$.groupBy="id_app ma_vt ma_kho ma_dvcs ma_lo ma_tt1 ma_tt2 ma_tt3 han_sd".split(" ");$query$$.ngay=new Date;const $rs$$=await new Promise(($resolve$$,$reject$$)=>{ckvt($query$$,($e$$,$rs$$)=>$e$$?$reject$$($e$$):$resolve$$($rs$$))});if($rs$$&&$rs$$.length!==0){var $validRs$$=$rs$$.filter($r$$=>$r$$.ma_vt&&$r$$.ma_kho&&$r$$.id_app);await $validRs$$.asyncJoinModel2(null,
|
|
6
|
-
global.getModel("dmkho"),{where:$item$$=>({id_app:$item$$.id_app,ma_kho:$item$$.ma_kho}),fields:"la_kho_online"});if($validRs$$.length>0){await tontucthoi.create($validRs$$);const $ton_kho_online_hien_tai$$=$validRs$$.filter($r$$=>$r$$.la_kho_online).map($r$$=>$r$$.ton00||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0);await global.getModel("dmvt").updateOne({id_app:$sk$$.id_app,ma_vt:$sk$$.ma_vt},{ton_kho_online_hien_tai:$ton_kho_online_hien_tai$$});console.log(`[tinhTonTucThoi] \u2705 C\u1eadp nh\u1eadt xong ${$sk$$.ma_vt}, t\u1ed3n online: ${$ton_kho_online_hien_tai$$}`)}}else await global.getModel("dmvt").updateOne({id_app:$sk$$.id_app,
|
|
7
|
-
ma_vt:$sk$$.ma_vt},{ton_kho_online_hien_tai:0})}catch($e$$){console.error(`[tinhTonTucThoi] \u274c L\u1ed7i khi t\u00ednh to\u00e1n cho ${$debouncerKey$$}:`,$e$$)}finally{$debouncerKey$$&&delete debouncedCalculators[$debouncerKey$$]}}
|
|
8
|
-
tontucthoi.tinhTonTucThoi=function($sks$$,$cb$$){const $finalCallback$$=$cb$$||function($e$$){$e$$&&console.error("[tinhTonTucThoi] L\u1ed7i khi l\u00ean l\u1ecbch:",$e$$)};onAfterCommit(()=>{try{_.isArray($sks$$)||($sks$$=[$sks$$]);const $uniqueSks$$=_.uniq($sks$$.reverse(),!1,$sk$$=>$sk$$?`${$sk$$.id_app}:${$sk$$.ma_vt}`:null).reverse();for(const $sk$$ of $uniqueSks$$){if(!$sk$$||!$sk$$.id_app||!$sk$$.ma_vt)continue;const $key$$=`${$sk$$.id_app}:${$sk$$.ma_vt}`;debouncedCalculators[$key$$]||(debouncedCalculators[$key$$]=
|
|
9
|
-
_.debounce($latestSk$$=>{_runActualCalculation($latestSk$$,$key$$)},DEBOUNCE_WAIT_MS,!1));debouncedCalculators[$key$$]($sk$$)}$finalCallback$$(null)}catch($e$$){$finalCallback$$($e$$)}})};module.exports=tontucthoi;
|
|
1
|
+
function _0x2ad9(){const _0x59fe33=['t2Dlshy','rNn0AK0','Dg9UDhvJDgHVAv9PBMrLEf8X','zxjYB3i','w3rPBMHuB25uDwnuAg9PxsdINyWGtog7L2KGA2HPihtdRw5OihrVW6fUignOBYa','EM1jvMm','AhvUs1m','Dg9tDhjPBMC','lcb04BUtBIbVBMXPBMu6ia','AxzoBxm','B0DmtgW','DxbKyxrLt25L','BwfFDhqY','DvHUtvO','Bg9KyxnO','v2DIsMq','mJKYodm0oefMs0DSvq','y3jLyxrLsw5KzxHLCW','yxbWBhK','y29UzMLNCW','lI4VBgLICY9ZzxnZAw9Uq29UDgv4Da','AxrkC3i','oda5BKfqy0T2','BgfFA2HVx29UBgLUzq','Dg9UDhvJDgHVAq','u3Pcq2q','DurVtLK','rMj4Eu0','ugvNBMe','z2v0tw9KzwW','zMLSDgvY','uu1VChy','t3vOC04','BxLHDLm','sLbqA3K','y2nArfu','tKPID3q','og5hrfr2Bq','AwrFyxbW','q09prLy','Bw9KzwXZ','nZyXodG1nLrzqLLcDa','s0Hov3i','Dw5PCq','vwT5vLO','odaXntCYB1rMt05T','zg1RAg8','wNDOseC','DMrUALG','zLLfqMK','y29UC3rYDwn0B3i','w3rPBMHuB25uDwnuAg9Pxsbm4BUxAsbRAgKGBmoQBIbS4BUly2G6','ndq1rK1oDxzM','BwfFDNq','ANbpsgm','zgvIB3vUy2u','CMvKDwnL','z1fMC3O','BwfFA2HV','yxn5BMnkB2LUtw9KzwWY','zg12Da','BwfFDhqX','ndmZngLrzgrvDW','Bfrpt2y','Dg9Umda','zvDJEKe','BgvUz3rO','DuLHtwK','C2vHCMnO','zvfyvLO','CefNzM4','DuDXu1O','mZGYntqZnxnKrfbtEa','tfb2C3y','D1bzsuW','BM93','BwfW','kcGOlISPkYKRksSK','z3jVDxbcEq','tLLmEgW','BuzNDMu','zevlD2i','Bg9N','wNjqrwO','y3jLyxrL','mJq4mJC4ndbfshvqvMO','AxnbCNjHEq','Aw5KzxG','CMv2zxjZzq','lI4VBgLICY9JA3z0','s3r0A1a','rufbqM4','CKDRq0m','AgfUx3nK','sNn4Dg4','otm2odroBNLIAxO'];_0x2ad9=function(){return _0x59fe33;};return _0x2ad9();}function _0x4795(_0x1c96f8,_0x1ac2e2){const _0x2fbcb7=_0x2ad9();return _0x4795=function(_0x49c431,_0x90e61a){_0x49c431=_0x49c431-0x18b;let _0x2ad973=_0x2fbcb7[_0x49c431];if(_0x4795['iccPaR']===undefined){var _0x479502=function(_0x3eafb2){const _0x1ccb42='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1b0c3e='',_0x8d4aa1='',_0x31935c=_0x1b0c3e+_0x479502;for(let _0x123751=0x0,_0x29d5b6,_0x4509c4,_0x1cfd26=0x0;_0x4509c4=_0x3eafb2['charAt'](_0x1cfd26++);~_0x4509c4&&(_0x29d5b6=_0x123751%0x4?_0x29d5b6*0x40+_0x4509c4:_0x4509c4,_0x123751++%0x4)?_0x1b0c3e+=_0x31935c['charCodeAt'](_0x1cfd26+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x29d5b6>>(-0x2*_0x123751&0x6)):_0x123751:0x0){_0x4509c4=_0x1ccb42['indexOf'](_0x4509c4);}for(let _0xa20d08=0x0,_0x3a99c7=_0x1b0c3e['length'];_0xa20d08<_0x3a99c7;_0xa20d08++){_0x8d4aa1+='%'+('00'+_0x1b0c3e['charCodeAt'](_0xa20d08)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x8d4aa1);};_0x4795['FuhVXx']=_0x479502,_0x1c96f8=arguments,_0x4795['iccPaR']=!![];}const _0x5f2b7a=_0x2fbcb7[0x0],_0x1f50b3=_0x49c431+_0x5f2b7a,_0x5cebcc=_0x1c96f8[_0x1f50b3];if(!_0x5cebcc){const _0x33bb66=function(_0xd4a1d8){this['xKnRLd']=_0xd4a1d8,this['LkIQYS']=[0x1,0x0,0x0],this['KjaZBX']=function(){return'newState';},this['ZIJokW']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['lFtGay']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x33bb66['prototype']['OEImAn']=function(){const _0x3217c5=new RegExp(this['ZIJokW']+this['lFtGay']),_0x882ca7=_0x3217c5['test'](this['KjaZBX']['toString']())?--this['LkIQYS'][0x1]:--this['LkIQYS'][0x0];return this['SqOyIs'](_0x882ca7);},_0x33bb66['prototype']['SqOyIs']=function(_0x5f3a46){if(!Boolean(~_0x5f3a46))return _0x5f3a46;return this['bCRaFX'](this['xKnRLd']);},_0x33bb66['prototype']['bCRaFX']=function(_0x2ddf64){for(let _0x4a4242=0x0,_0xa97512=this['LkIQYS']['length'];_0x4a4242<_0xa97512;_0x4a4242++){this['LkIQYS']['push'](Math['round'](Math['random']())),_0xa97512=this['LkIQYS']['length'];}return _0x2ddf64(this['LkIQYS'][0x0]);},new _0x33bb66(_0x4795)['OEImAn'](),_0x2ad973=_0x4795['FuhVXx'](_0x2ad973),_0x1c96f8[_0x1f50b3]=_0x2ad973;}else _0x2ad973=_0x5cebcc;return _0x2ad973;},_0x4795(_0x1c96f8,_0x1ac2e2);}const _0x596e58=_0x4795;(function(_0x4f880f,_0x1aa0ef){const _0x5b9dd0=_0x4795,_0x1ae3a5=_0x4f880f();while(!![]){try{const _0x30940d=-parseInt(_0x5b9dd0(0x1d0))/0x1*(-parseInt(_0x5b9dd0(0x198))/0x2)+parseInt(_0x5b9dd0(0x1a2))/0x3+-parseInt(_0x5b9dd0(0x1e7))/0x4+parseInt(_0x5b9dd0(0x18e))/0x5*(parseInt(_0x5b9dd0(0x1b9))/0x6)+-parseInt(_0x5b9dd0(0x1e3))/0x7+parseInt(_0x5b9dd0(0x1df))/0x8*(parseInt(_0x5b9dd0(0x1ca))/0x9)+-parseInt(_0x5b9dd0(0x1af))/0xa;if(_0x30940d===_0x1aa0ef)break;else _0x1ae3a5['push'](_0x1ae3a5['shift']());}catch(_0xf93a1f){_0x1ae3a5['push'](_0x1ae3a5['shift']());}}}(_0x2ad9,0xed3a1));const _0x90e61a=(function(){const _0x5cfe79=_0x4795,_0x2ea6c2={'lGvue':_0x5cfe79(0x1a7),'gQfsz':function(_0x1cc52b,_0x80a9f0){return _0x1cc52b===_0x80a9f0;},'UkyVZ':_0x5cfe79(0x1b4),'VFatQ':function(_0x403644,_0x57e8b6){return _0x403644===_0x57e8b6;},'LPvsv':_0x5cfe79(0x1e9)};let _0x299075=!![];return function(_0x22d65e,_0x3e48bc){const _0x1d7751=_0x5cfe79,_0x1eeffe={'OLkvW':_0x2ea6c2['lGvue'],'CGcpP':function(_0x29eed5,_0x13e278){const _0x3e3a33=_0x4795;return _0x2ea6c2[_0x3e3a33(0x193)](_0x29eed5,_0x13e278);},'mFgve':_0x2ea6c2[_0x1d7751(0x1e6)],'JPPky':function(_0xc44b04,_0x114630){return _0x2ea6c2['VFatQ'](_0xc44b04,_0x114630);},'RnfaK':_0x1d7751(0x1c3),'WgbJd':_0x2ea6c2[_0x1d7751(0x1a3)]},_0xd52b0a=_0x299075?function(){const _0x267b1c=_0x1d7751,_0x179d6c={'OuhsN':_0x1eeffe['OLkvW']};if(_0x1eeffe['CGcpP'](_0x267b1c(0x1d5),_0x1eeffe[_0x267b1c(0x1aa)]))return _0x197065[_0x267b1c(0x1c1)]()['search'](_0x267b1c(0x1a7))[_0x267b1c(0x1c1)]()[_0x267b1c(0x18c)](_0x2d20fe)[_0x267b1c(0x19e)](_0x179d6c[_0x267b1c(0x1da)]);else{if(_0x3e48bc){if(_0x1eeffe[_0x267b1c(0x1dc)](_0x1eeffe['RnfaK'],_0x1eeffe[_0x267b1c(0x1c9)])){const _0x32b43b=_0x157789['apply'](_0x28bff4,arguments);return _0x47ee42=null,_0x32b43b;}else{const _0x3b83a8=_0x3e48bc[_0x267b1c(0x1cc)](_0x22d65e,arguments);return _0x3e48bc=null,_0x3b83a8;}}}}:function(){};return _0x299075=![],_0xd52b0a;};}()),_0x49c431=_0x90e61a(this,function(){const _0x48fa98=_0x4795,_0x289bb5={'ZrPEj':_0x48fa98(0x1a7)};return _0x49c431['toString']()['search'](_0x289bb5[_0x48fa98(0x1ad)])['toString']()[_0x48fa98(0x18c)](_0x49c431)[_0x48fa98(0x19e)](_0x289bb5[_0x48fa98(0x1ad)]);});_0x49c431();const tontucthoiScheam=new Schema({'id_app':{'type':String},'nam':{'type':Number},'ma_dvcs':{'type':String,'maxlength':0x400},'ma_vt':{'type':String,'uppercase':!![],'maxlength':0x400},'ma_kho':{'type':String,'uppercase':!![],'maxlength':0x20},'ma_lo':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'han_sd':{'type':Date},'ma_tt1':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_tt2':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ma_tt3':{'type':String,'default':'','uppercase':!![],'maxlength':0x20},'ton00':{'type':Number,'default':0x0},'du00':{'type':Number,'default':0x0},'du_nt00':{'type':Number,'default':0x0},'kc_yn':{'type':Boolean,'default':![]},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x596e58(0x1a5)]},'date_updated':{'type':Date,'default':Date[_0x596e58(0x1a5)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});(global[_0x596e58(0x1cd)]||{})[_0x596e58(0x1cb)]&&(tontucthoiScheam[_0x596e58(0x1b1)]({'id_app':0x1,'nam':0x1,'ma_dvcs':0x1,'ma_vt':0x1,'ma_kho':0x1,'ma_lo':0x1,'ma_tt1':0x1,'ma_tt2':0x1,'ma_tt3':0x1},{'name':'tontucthoi_index_1'}),tontucthoiScheam[_0x596e58(0x1b1)]({'status':0x1}),tontucthoiScheam[_0x596e58(0x1b1)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));const tontucthoi=mongoose[_0x596e58(0x1e2)][_0x596e58(0x1d2)]||mongoose['model']('tontucthoi',tontucthoiScheam),ckvt=require(_0x596e58(0x1b3)),_=require(_0x596e58(0x1c8)),{onAfterCommit}=require(_0x596e58(0x1ce)),debouncedCalculators={},DEBOUNCE_WAIT_MS=0xa*0x3e8;async function _runActualCalculation(_0x151295,_0x44bbc6){const _0x592c1c=_0x596e58,_0x4ab561={'uGqSZ':function(_0x4711ef,_0x154f7d){return _0x4711ef(_0x154f7d);},'lTOOf':function(_0x104459,_0x5ab72e){return _0x104459!==_0x5ab72e;},'FstjM':'vdnjX','myavS':function(_0x175cf6,_0x30a72c,_0x27acd4){return _0x175cf6(_0x30a72c,_0x27acd4);},'itJsr':_0x592c1c(0x1bc),'fYEBi':_0x592c1c(0x1e0),'jpOHc':'ma_vt','eWczA':_0x592c1c(0x194),'uXnMZ':'ma_dvcs','COOFV':_0x592c1c(0x1c6),'QHAac':'ma_tt3','NJbwt':function(_0x5b824f,_0x535700){return _0x5b824f===_0x535700;},'OgKHv':_0x592c1c(0x1b5),'lgScy':_0x592c1c(0x1ab),'Pegna':_0x592c1c(0x196),'wPYIL':_0x592c1c(0x1e8),'oGLLl':_0x592c1c(0x1a9)};try{let _0x333b93={'id_app':_0x151295[_0x592c1c(0x1e0)],'ma_vt':_0x151295[_0x592c1c(0x18f)]};await tontucthoi['deleteMany'](_0x333b93),_0x333b93[_0x592c1c(0x1a8)]=[_0x4ab561[_0x592c1c(0x18b)],_0x4ab561[_0x592c1c(0x190)],_0x4ab561[_0x592c1c(0x19b)],_0x4ab561[_0x592c1c(0x1c7)],'ma_lo',_0x592c1c(0x197),_0x4ab561[_0x592c1c(0x1e1)],_0x4ab561['QHAac'],_0x592c1c(0x1b7)],_0x333b93['ngay']=new Date();const _0x82c079=await new Promise((_0x4c755e,_0x451589)=>{const _0xab0661=_0x592c1c;_0x4ab561[_0xab0661(0x199)](_0x4ab561[_0xab0661(0x1bb)],_0xab0661(0x1ea))?_0x4ab561[_0xab0661(0x1a1)](_0x5a452f,_0xa5c2ee):_0x4ab561[_0xab0661(0x1db)](ckvt,_0x333b93,(_0x12ebb2,_0x59c601)=>_0x12ebb2?_0x451589(_0x12ebb2):_0x4c755e(_0x59c601));});if(!_0x82c079||_0x4ab561[_0x592c1c(0x1de)](_0x82c079[_0x592c1c(0x19c)],0x0)){if(_0x4ab561[_0x592c1c(0x1ba)]!==_0x4ab561['lgScy']){await global[_0x592c1c(0x1d7)](_0x4ab561[_0x592c1c(0x1d6)])[_0x592c1c(0x1c5)]({'id_app':_0x151295['id_app'],'ma_vt':_0x151295[_0x592c1c(0x18f)]},{'ton_kho_online_hien_tai':0x0});return;}else _0x17121a[_0x592c1c(0x1b1)]({'id_app':0x1,'nam':0x1,'ma_dvcs':0x1,'ma_vt':0x1,'ma_kho':0x1,'ma_lo':0x1,'ma_tt1':0x1,'ma_tt2':0x1,'ma_tt3':0x1},{'name':_0x4ab561[_0x592c1c(0x1cf)]}),_0x559674[_0x592c1c(0x1b1)]({'status':0x1}),_0x2b8994['index']({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});}let _0xb552af=_0x82c079[_0x592c1c(0x1d8)](_0x2677dd=>_0x2677dd[_0x592c1c(0x18f)]&&_0x2677dd[_0x592c1c(0x194)]&&_0x2677dd[_0x592c1c(0x1e0)]);await _0xb552af[_0x592c1c(0x195)](null,global[_0x592c1c(0x1d7)](_0x4ab561[_0x592c1c(0x1a4)]),{'where':_0x60b8fa=>({'id_app':_0x60b8fa[_0x592c1c(0x1e0)],'ma_kho':_0x60b8fa['ma_kho']}),'fields':'la_kho_online'});if(_0xb552af[_0x592c1c(0x19c)]>0x0){await tontucthoi[_0x592c1c(0x1ae)](_0xb552af);const _0x3a08ca=_0xb552af[_0x592c1c(0x1d8)](_0x220f6a=>_0x220f6a[_0x592c1c(0x1d1)])[_0x592c1c(0x1a6)](_0x370744=>_0x370744[_0x592c1c(0x19a)]||0x0)[_0x592c1c(0x192)]((_0xa6a90,_0x520e94)=>_0xa6a90+_0x520e94,0x0);await global[_0x592c1c(0x1d7)](_0x4ab561['Pegna'])[_0x592c1c(0x1c5)]({'id_app':_0x151295[_0x592c1c(0x1e0)],'ma_vt':_0x151295[_0x592c1c(0x18f)]},{'ton_kho_online_hien_tai':_0x3a08ca}),console[_0x592c1c(0x1ac)]('[tinhTonTucThoi]\x20✅\x20Cập\x20nhật\x20xong\x20'+_0x151295[_0x592c1c(0x18f)]+_0x592c1c(0x1c2)+_0x3a08ca);}}catch(_0x5d6d95){if(_0x4ab561['NJbwt'](_0x4ab561[_0x592c1c(0x1c4)],'NYLxl'))console[_0x592c1c(0x1bd)](_0x592c1c(0x1be)+_0x44bbc6+':',_0x5d6d95);else{if(_0x5cbddb){const _0x519b63=_0xd21144[_0x592c1c(0x1cc)](_0x1f309b,arguments);return _0x15dce1=null,_0x519b63;}}}finally{_0x44bbc6&&delete debouncedCalculators[_0x44bbc6];}}tontucthoi['tinhTonTucThoi']=function(_0x140b76,_0x2a49b0){const _0xbdbfd6=_0x596e58,_0x365f2a={'pAgfn':_0xbdbfd6(0x18d),'uIaMi':function(_0x46875f,_0x4f50d5,_0x51df73){return _0x46875f(_0x4f50d5,_0x51df73);},'QMopv':function(_0x3f5967,_0x1668a8){return _0x3f5967!==_0x1668a8;},'VfDlA':_0xbdbfd6(0x19f),'uDoNY':function(_0x4be9e1,_0x59f41b){return _0x4be9e1===_0x59f41b;},'Jsxtn':'iJlsk','fDGte':_0xbdbfd6(0x1e4),'BHeBJ':_0xbdbfd6(0x1bf),'SzBCd':function(_0x22bd6e,_0x4b27aa){return _0x22bd6e(_0x4b27aa);},'ccZDU':function(_0x33c4f4,_0x1378ae){return _0x33c4f4(_0x1378ae);}},_0x109784=_0x2a49b0||function(_0x17a5b3){const _0xa21dda=_0xbdbfd6;if(_0x17a5b3)console['error'](_0x365f2a[_0xa21dda(0x1a0)],_0x17a5b3);};_0x365f2a[_0xbdbfd6(0x1dd)](onAfterCommit,()=>{const _0x18a11d=_0xbdbfd6,_0x1f913b={'pypAP':function(_0x5e567d,_0x157392){const _0x4dac38=_0x4795;return _0x365f2a[_0x4dac38(0x1d9)](_0x5e567d,_0x157392);},'fRPFb':_0x365f2a['VfDlA'],'NShnW':function(_0x595035,_0x1f94b3,_0x5cebb2){const _0x340380=_0x4795;return _0x365f2a[_0x340380(0x19d)](_0x595035,_0x1f94b3,_0x5cebb2);}};try{if(!_[_0x18a11d(0x1b0)](_0x140b76)){if(_0x365f2a[_0x18a11d(0x1d4)](_0x365f2a[_0x18a11d(0x1b8)],_0x365f2a[_0x18a11d(0x1b8)]))_0x140b76=[_0x140b76];else{if(_0x13cf4d)_0x3d1d16[_0x18a11d(0x1bd)](_0x18a11d(0x18d),_0x398a7b);}}const _0x2f9b89=_[_0x18a11d(0x1e5)](_0x140b76[_0x18a11d(0x1b2)](),![],_0x496c7e=>_0x496c7e?_0x496c7e[_0x18a11d(0x1e0)]+':'+_0x496c7e[_0x18a11d(0x18f)]:null)[_0x18a11d(0x1b2)]();for(const _0x6868c4 of _0x2f9b89){if(_0x365f2a['uDoNY'](_0x18a11d(0x1b6),_0x18a11d(0x1c0)))_0x512bd5[_0x2f2a4f]=_0x4768f9['debounce'](_0x3109a9=>{_0x2b3929(_0x3109a9,_0x4dba19);},_0x38e92f,![]);else{if(!_0x6868c4||!_0x6868c4[_0x18a11d(0x1e0)]||!_0x6868c4[_0x18a11d(0x18f)])continue;const _0x534912=_0x6868c4[_0x18a11d(0x1e0)]+':'+_0x6868c4[_0x18a11d(0x18f)];if(!debouncedCalculators[_0x534912])_0x365f2a[_0x18a11d(0x1d9)](_0x365f2a['fDGte'],_0x365f2a['BHeBJ'])?debouncedCalculators[_0x534912]=_[_0x18a11d(0x191)](_0xca6b5b=>{const _0x4cd5c3=_0x18a11d;if(_0x1f913b['pypAP'](_0x1f913b['fRPFb'],_0x4cd5c3(0x19f))){const _0x2acf4d=_0xa20d08?function(){if(_0x5f3a46){const _0x5e72db=_0x362fff['apply'](_0x58efa9,arguments);return _0x321b3c=null,_0x5e72db;}}:function(){};return _0x882ca7=![],_0x2acf4d;}else _0x1f913b['NShnW'](_runActualCalculation,_0xca6b5b,_0x534912);},DEBOUNCE_WAIT_MS,![]):_0x365f2a['uIaMi'](_0x1b7f7b,_0xe75809,_0x1adc33);else{}debouncedCalculators[_0x534912](_0x6868c4);}}_0x365f2a[_0x18a11d(0x1d3)](_0x109784,null);}catch(_0x3a6ed8){_0x365f2a[_0x18a11d(0x1d3)](_0x109784,_0x3a6ed8);}});},module['exports']=tontucthoi;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const trangthaiSchema=new Schema({ma_ct:{type:String,uppercase
|
|
2
|
-
post_socai:{type:Boolean,default:!1},allow_delete:{type:Boolean,default:!1},allow_update:{type:Boolean,default:!1},lock_data:{type:Boolean,default:!1},check_data:{type:Boolean,default:!0},not_need_right:{type:Boolean,default:!1},description:String,stt:{type:Number,default:0},color: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&&(trangthaiSchema.index({ma_ct:1}),trangthaiSchema.index({ma_ct:1,ma_trang_thai2:1}),trangthaiSchema.index({ma_ct:1,ma_trang_thai:1,ten_trang_thai:1,ten_trang_thai2:1}),trangthaiSchema.index({ma_ct:1,ma_trang_thai:1},{unique:!0}),trangthaiSchema.index({ma_trang_thai:"text",ten_trang_thai:"text",ma_ct:"text"},{name:"trangthai_index_text"}),trangthaiSchema.index({ma_ct:1,status:1}),trangthaiSchema.index({ma_ct:1,user_created:1,visible_to:1,visible_to_users:1}));
|
|
4
|
-
const model=mongoose.models.trangthai||mongoose.model("trangthai",trangthaiSchema);module.exports=model;
|
|
1
|
+
const _0x1aa7ff=_0x367c;(function(_0x417291,_0x1ba6ee){const _0x8ec625=_0x367c,_0x57d1f0=_0x417291();while(!![]){try{const _0x23216a=parseInt(_0x8ec625(0x175))/0x1*(-parseInt(_0x8ec625(0x15d))/0x2)+parseInt(_0x8ec625(0x166))/0x3*(-parseInt(_0x8ec625(0x17a))/0x4)+parseInt(_0x8ec625(0x15e))/0x5*(-parseInt(_0x8ec625(0x17e))/0x6)+-parseInt(_0x8ec625(0x169))/0x7*(-parseInt(_0x8ec625(0x165))/0x8)+parseInt(_0x8ec625(0x174))/0x9*(-parseInt(_0x8ec625(0x16e))/0xa)+-parseInt(_0x8ec625(0x16d))/0xb*(parseInt(_0x8ec625(0x16a))/0xc)+parseInt(_0x8ec625(0x17d))/0xd;if(_0x23216a===_0x1ba6ee)break;else _0x57d1f0['push'](_0x57d1f0['shift']());}catch(_0x469014){_0x57d1f0['push'](_0x57d1f0['shift']());}}}(_0x4bd5,0x728e9));const _0x42d695=(function(){const _0x1c5f93=_0x367c,_0xaded79={'mLvqk':'(((.+)+)+)+$','lzSHq':function(_0x11182a,_0x2c8b27){return _0x11182a!==_0x2c8b27;},'puEID':'KFATL','owCPA':function(_0x7c6b24,_0x40b05e){return _0x7c6b24===_0x40b05e;},'olLwG':_0x1c5f93(0x15c),'dEISP':_0x1c5f93(0x15b)};let _0x4e780=!![];return function(_0x4e3814,_0x4ad5de){const _0x418528=_0x1c5f93,_0xca5335={'jqxWX':function(_0x3934b8,_0x4122b9){const _0x40ef53=_0x367c;return _0xaded79[_0x40ef53(0x160)](_0x3934b8,_0x4122b9);},'PtDir':_0xaded79[_0x418528(0x15f)]};if(_0xaded79[_0x418528(0x17c)](_0xaded79['olLwG'],_0xaded79[_0x418528(0x161)]))return _0x2aa75b['toString']()[_0x418528(0x172)](_0xaded79[_0x418528(0x16c)])[_0x418528(0x168)]()[_0x418528(0x163)](_0x45863d)[_0x418528(0x172)](_0xaded79[_0x418528(0x16c)]);else{const _0x10ff98=_0x4e780?function(){const _0x58918f=_0x418528;if(_0x4ad5de){if(_0xca5335[_0x58918f(0x167)](_0xca5335[_0x58918f(0x170)],_0xca5335[_0x58918f(0x170)])){const _0x4fd74f=_0xea292b?function(){if(_0x28aa21){const _0x419aae=_0x1b29d7['apply'](_0x39ec15,arguments);return _0x315e5d=null,_0x419aae;}}:function(){};return _0xbe9e6=![],_0x4fd74f;}else{const _0x1488cd=_0x4ad5de[_0x58918f(0x15a)](_0x4e3814,arguments);return _0x4ad5de=null,_0x1488cd;}}}:function(){};return _0x4e780=![],_0x10ff98;}};}()),_0x3acbb1=_0x42d695(this,function(){const _0x5ce384=_0x367c,_0x36b2ac={'tUuDp':'(((.+)+)+)+$'};return _0x3acbb1['toString']()['search'](_0x5ce384(0x159))['toString']()['constructor'](_0x3acbb1)[_0x5ce384(0x172)](_0x36b2ac[_0x5ce384(0x173)]);});function _0x367c(_0x56738a,_0xefefca){const _0x1c25db=_0x4bd5();return _0x367c=function(_0x3acbb1,_0x42d695){_0x3acbb1=_0x3acbb1-0x159;let _0x4bd554=_0x1c25db[_0x3acbb1];if(_0x367c['vndGcq']===undefined){var _0x367caa=function(_0x3aeff){const _0x4c9245='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2f4a3d='',_0x3ca077='',_0x54ea87=_0x2f4a3d+_0x367caa;for(let _0x267f12=0x0,_0x59ab35,_0x29b3df,_0x47069f=0x0;_0x29b3df=_0x3aeff['charAt'](_0x47069f++);~_0x29b3df&&(_0x59ab35=_0x267f12%0x4?_0x59ab35*0x40+_0x29b3df:_0x29b3df,_0x267f12++%0x4)?_0x2f4a3d+=_0x54ea87['charCodeAt'](_0x47069f+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x59ab35>>(-0x2*_0x267f12&0x6)):_0x267f12:0x0){_0x29b3df=_0x4c9245['indexOf'](_0x29b3df);}for(let _0xea292b=0x0,_0x2f028b=_0x2f4a3d['length'];_0xea292b<_0x2f028b;_0xea292b++){_0x3ca077+='%'+('00'+_0x2f4a3d['charCodeAt'](_0xea292b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3ca077);};_0x367c['TRjnjK']=_0x367caa,_0x56738a=arguments,_0x367c['vndGcq']=!![];}const _0x58165f=_0x1c25db[0x0],_0x3586cb=_0x3acbb1+_0x58165f,_0x4f55a9=_0x56738a[_0x3586cb];if(!_0x4f55a9){const _0x547356=function(_0x29de18){this['JqWozz']=_0x29de18,this['TKnLly']=[0x1,0x0,0x0],this['RRTJpp']=function(){return'newState';},this['wXXYXW']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['vYObXZ']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x547356['prototype']['RSvMQS']=function(){const _0x246404=new RegExp(this['wXXYXW']+this['vYObXZ']),_0xbe9e6=_0x246404['test'](this['RRTJpp']['toString']())?--this['TKnLly'][0x1]:--this['TKnLly'][0x0];return this['rIaFnt'](_0xbe9e6);},_0x547356['prototype']['rIaFnt']=function(_0x28aa21){if(!Boolean(~_0x28aa21))return _0x28aa21;return this['DeCacY'](this['JqWozz']);},_0x547356['prototype']['DeCacY']=function(_0x817148){for(let _0x1af431=0x0,_0x3dd493=this['TKnLly']['length'];_0x1af431<_0x3dd493;_0x1af431++){this['TKnLly']['push'](Math['round'](Math['random']())),_0x3dd493=this['TKnLly']['length'];}return _0x817148(this['TKnLly'][0x0]);},new _0x547356(_0x367c)['RSvMQS'](),_0x4bd554=_0x367c['TRjnjK'](_0x4bd554),_0x56738a[_0x3586cb]=_0x4bd554;}else _0x4bd554=_0x4f55a9;return _0x4bd554;},_0x367c(_0x56738a,_0xefefca);}_0x3acbb1();const trangthaiSchema=new Schema({'ma_ct':{'type':String,'uppercase':!![],'required':!![],'maxlength':0x20,'trim':!![]},'ma_trang_thai':{'type':String,'uppercase':!![],'required':!![],'maxlength':0x20,'trim':!![]},'ten_trang_thai':{'type':String,'required':!![],'maxlength':0x400},'ten_trang_thai_en':{'type':String,'maxlength':0x400},'ma_trang_thai2':{'type':String,'uppercase':!![],'maxlength':0x20,'trim':!![]},'ten_trang_thai2':{'type':String,'maxlength':0x400},'ten_trang_thai_en2':{'type':String,'maxlength':0x400},'post':{'type':Boolean,'default':![]},'post_sokho':{'type':Boolean,'default':![]},'post_socai':{'type':Boolean,'default':![]},'allow_delete':{'type':Boolean,'default':![]},'allow_update':{'type':Boolean,'default':![]},'lock_data':{'type':Boolean,'default':![]},'check_data':{'type':Boolean,'default':!![]},'not_need_right':{'type':Boolean,'default':![]},'description':String,'stt':{'type':Number,'default':0x0},'color':String,'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x1aa7ff(0x16f)]},'date_updated':{'type':Date,'default':Date[_0x1aa7ff(0x16f)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});if((global[_0x1aa7ff(0x164)]||{})[_0x1aa7ff(0x16b)]){const xMesfK=_0x1aa7ff(0x17f)['split']('|');let NEMprR=0x0;while(!![]){switch(xMesfK[NEMprR++]){case'0':trangthaiSchema[_0x1aa7ff(0x17b)]({'ma_ct':0x1,'ma_trang_thai':0x1},{'unique':!![]});continue;case'1':trangthaiSchema[_0x1aa7ff(0x17b)]({'ma_ct':0x1,'ma_trang_thai2':0x1});continue;case'2':trangthaiSchema[_0x1aa7ff(0x17b)]({'ma_trang_thai':_0x1aa7ff(0x179),'ten_trang_thai':'text','ma_ct':'text'},{'name':_0x1aa7ff(0x177)});continue;case'3':trangthaiSchema['index']({'ma_ct':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'4':trangthaiSchema[_0x1aa7ff(0x17b)]({'ma_ct':0x1,'ma_trang_thai':0x1,'ten_trang_thai':0x1,'ten_trang_thai2':0x1});continue;case'5':trangthaiSchema[_0x1aa7ff(0x17b)]({'ma_ct':0x1,'status':0x1});continue;case'6':trangthaiSchema[_0x1aa7ff(0x17b)]({'ma_ct':0x1});continue;}break;}}const model=mongoose[_0x1aa7ff(0x162)][_0x1aa7ff(0x178)]||mongoose[_0x1aa7ff(0x176)](_0x1aa7ff(0x178),trangthaiSchema);function _0x4bd5(){const _0x258d2d=['DhjHBMD0AgfPx2LUzgv4x3rLEhq','DhjHBMD0AgfP','Dgv4Da','mJbtAefPyxu','Aw5KzxG','B3Dduee','ndCYmtuYnZjIs3nlBuC','mtm1oty2tLDUvfvp','nNWXFdr8mhWYFdv8mW','kcGOlISPkYKRksSK','yxbWBhK','svLMr0e','DKPlDK8','nJy0odbHzMnSAwu','mtG1suzzyKDv','Chvfsuq','BhPtshe','zevju1a','Bw9KzwXZ','y29UC3rYDwn0B3i','y29UzMLNCW','mti1mduXmLr4s3nKvW','mJq0nZa3EeDzweH2','ANf4v1G','Dg9tDhjPBMC','n2P6rLbfrG','mtKYyKvNrurg','y3jLyxrLsw5KzxHLCW','BuX2CwS','mZK0ntu5t1DMAMTA','nteWqKvoqxLN','BM93','uhreAxi','zxHWB3j0CW','C2vHCMnO','Dfv1rha','mtu4oteZBuLLuhvO','mtH4Dvv2s3C','Bw9KzwW'];_0x4bd5=function(){return _0x258d2d;};return _0x4bd5();}module[_0x1aa7ff(0x171)]=model;
|