flexbiz-server 12.4.21 → 12.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/server/app.js +1 -22
- package/server/auths/bearer.js +1 -3
- package/server/auths/facebook.js +1 -12
- package/server/auths/google.js +1 -13
- package/server/auths/local.js +1 -64
- package/server/cluster.js +1 -27
- package/server/controllers/controller.js +1 -107
- package/server/controllers/controllerRPT.js +1 -27
- package/server/controllers/controllerUtils.js +1 -76
- package/server/controllers/createHandler.js +1 -35
- package/server/controllers/createRouteHandler.js +1 -4
- package/server/controllers/deleteHandler.js +1 -11
- package/server/controllers/deleteManyHandler.js +1 -2
- package/server/controllers/exportHandler.js +1 -17
- package/server/controllers/findHandler.js +1 -53
- package/server/controllers/handlers.js +1 -3
- package/server/controllers/historyHandler.js +1 -5
- package/server/controllers/importFromExcelHandler.js +1 -14
- package/server/controllers/importFromGsHandler.js +1 -10
- package/server/controllers/importFromJsonHandler.js +1 -7
- package/server/controllers/importHandler.js +1 -21
- package/server/controllers/logHandler.js +1 -5
- package/server/controllers/rptCreateRouteHandler.js +1 -4
- package/server/controllers/rptExcelHandler.js +1 -32
- package/server/controllers/rptHandler.js +1 -13
- package/server/controllers/updateBookHandler.js +1 -10
- package/server/controllers/updateFieldHandler.js +1 -12
- package/server/controllers/updateHandler.js +1 -39
- package/server/controllers/updateKeyHandler.js +1 -14
- package/server/controllers/viewHandler.js +1 -13
- package/server/flow/FlowEngine.js +1 -64
- package/server/flow/WebhookManager.js +1 -26
- package/server/flow/handlers.js +1 -3
- package/server/flow/nodes/aiAnalysis.js +1 -9
- package/server/flow/nodes/customer.js +1 -15
- package/server/flow/nodes/data.js +1 -14
- package/server/flow/nodes/debug.js +1 -2
- package/server/flow/nodes/delay.js +1 -3
- package/server/flow/nodes/email.js +1 -9
- package/server/flow/nodes/event.js +1 -11
- package/server/flow/nodes/facebook.js +1 -3
- package/server/flow/nodes/facebookConversations.js +1 -5
- package/server/flow/nodes/facebookCreatePost.js +1 -10
- package/server/flow/nodes/facebookSendMessage.js +1 -12
- package/server/flow/nodes/forEachItem.js +1 -8
- package/server/flow/nodes/function.js +1 -4
- package/server/flow/nodes/httprequest.js +1 -7
- package/server/flow/nodes/inject.js +1 -12
- package/server/flow/nodes/pushNotification.js +1 -5
- package/server/flow/nodes/report.js +1 -6
- package/server/flow/nodes/saveData.js +1 -2
- package/server/flow/nodes/switch.js +1 -20
- package/server/flow/nodes/webhook.js +1 -1
- package/server/flow/nodes/zaloSendMessage.js +1 -4
- package/server/flow/utils.js +1 -2
- package/server/global.js +1 -23
- package/server/libs/BlockchainTransactionPool.js +1 -3
- package/server/libs/WorkerPool.js +1 -4
- package/server/libs/WorkerStaticPool.js +1 -16
- package/server/libs/WorkerStaticPool_v1.js +1 -5
- package/server/libs/assbonus.js +1 -7
- package/server/libs/backup.js +1 -2
- package/server/libs/blockchainconnect.js +1 -12
- package/server/libs/cdpsdiem.js +1 -5
- package/server/libs/cdpsdt.js +1 -7
- package/server/libs/cdpskh.js +1 -9
- package/server/libs/cdpsnphep.js +1 -6
- package/server/libs/cdpstk.js +1 -11
- package/server/libs/ckcn.js +1 -12
- package/server/libs/ckdiem.js +1 -5
- package/server/libs/ckdt.js +1 -6
- package/server/libs/cknphep.js +1 -6
- package/server/libs/cktk.js +1 -4
- package/server/libs/cktt.js +1 -9
- package/server/libs/ckvt.js +1 -12
- package/server/libs/ckvtcapphat.js +1 -6
- package/server/libs/ckvtnpp.js +1 -8
- package/server/libs/ckvttt.js +1 -11
- package/server/libs/createSocaitheongay.js +1 -9
- package/server/libs/ctdiem.js +1 -5
- package/server/libs/ctvt.js +1 -7
- package/server/libs/ctvtnpp.js +1 -7
- package/server/libs/ctvttt.js +1 -7
- package/server/libs/databanle.js +1 -17
- package/server/libs/databanlenpp.js +1 -8
- package/server/libs/databanletheongay.js +1 -27
- package/server/libs/dkcn.js +1 -10
- package/server/libs/dkdiem.js +1 -5
- package/server/libs/dkdt.js +1 -6
- package/server/libs/dknphep.js +1 -7
- package/server/libs/dktk.js +1 -4
- package/server/libs/dktt.js +1 -8
- package/server/libs/dkvt.js +1 -9
- package/server/libs/dkvtnpp.js +1 -7
- package/server/libs/dkvttt.js +1 -7
- package/server/libs/dncn.js +1 -6
- package/server/libs/dntk.js +1 -4
- package/server/libs/dntt.js +1 -6
- package/server/libs/docs.js +1 -452
- package/server/libs/dstkcn.js +1 -1
- package/server/libs/dstktt.js +1 -1
- package/server/libs/dtbanletheonpp.js +1 -17
- package/server/libs/dtbanletheosp.js +1 -15
- package/server/libs/dtbanletheospnpp.js +1 -15
- package/server/libs/email.js +1 -3
- package/server/libs/excel.js +1 -2
- package/server/libs/getGiaban.js +1 -67
- package/server/libs/getGiabanAsync.js +1 -1
- package/server/libs/getNotifies.js +1 -1
- package/server/libs/htmlReport.js +1 -9
- package/server/libs/initDatabase.js +1 -9
- package/server/libs/invoiceEasy.js +1 -109
- package/server/libs/invoiceViettel.js +1 -29
- package/server/libs/invoiceVnpt.js +1 -22
- package/server/libs/kpistatus.js +1 -32
- package/server/libs/load-template.js +1 -3
- package/server/libs/mailmanagement.js +1 -13
- package/server/libs/mongooseDeletePost.js +1 -6
- package/server/libs/mongooseLeanId.js +1 -1
- package/server/libs/mongoosePatch.js +1 -8
- package/server/libs/onepay-payment.js +1 -4
- package/server/libs/optimizeBookkeeping.js +1 -14
- package/server/libs/parse-template.js +1 -5
- package/server/libs/permission.js +1 -51
- package/server/libs/phanbokh.js +1 -3
- package/server/libs/post-book.js +1 -23
- package/server/libs/post-socai.js +1 -25
- package/server/libs/post-sokho.js +1 -27
- package/server/libs/prototypes.js +1 -29
- package/server/libs/psdt.js +1 -1
- package/server/libs/pskh.js +1 -1
- package/server/libs/pstk.js +1 -1
- package/server/libs/redis-cache.js +1 -17
- package/server/libs/restore.js +1 -1
- package/server/libs/schedule.js +1 -18
- package/server/libs/sessionContext.js +2 -14
- package/server/libs/textReport.js +1 -3
- package/server/libs/thnxt.js +1 -9
- package/server/libs/thnxtnpp.js +1 -9
- package/server/libs/thnxttt.js +1 -8
- package/server/libs/tinhGt.js +1 -7
- package/server/libs/tinhGtCapnhatPNK.js +1 -7
- package/server/libs/tinhGtPhanboHeSo.js +1 -12
- package/server/libs/tinhGtPhanboSltp.js +1 -10
- package/server/libs/tinhGtPhanboYtcp.js +1 -11
- package/server/libs/tinhGtSltk.js +1 -9
- package/server/libs/tinhGtThcppstk.js +1 -10
- package/server/libs/tinhGtTrucTiep.js +1 -7
- package/server/libs/tinhGtXoa.js +1 -3
- package/server/libs/tinhgiatb.js +1 -38
- package/server/libs/tinhgiatb1vt.js +1 -5
- package/server/libs/tinhhoahong.js +1 -64
- package/server/libs/tinhhoahongnpp.js +1 -46
- package/server/libs/tinhkhauhao1ts.js +1 -12
- package/server/libs/tinhkhauhaots.js +1 -8
- package/server/libs/tuoinophaithu.js +1 -10
- package/server/libs/tuoinophaitra.js +1 -11
- package/server/libs/utils.js +1 -78
- package/server/libs/validate.js +1 -4
- package/server/libs/validator-acc-cust.js +1 -1
- package/server/libs/validator-account.js +1 -4
- package/server/libs/validator-vt.js +1 -2
- package/server/libs/validator.js +1 -11
- package/server/libs/vsocai.js +1 -8
- package/server/models/account.js +1 -7
- package/server/models/afflink.js +1 -2
- package/server/models/app.js +1 -15
- package/server/models/approve.js +1 -93
- package/server/models/assabcihandler.js +1 -35
- package/server/models/assbank.js +1 -19
- package/server/models/assbooking.js +1 -4
- package/server/models/assbuy.js +1 -3
- package/server/models/asscashwithdraw.js +1 -4
- package/server/models/assfindhash.js +1 -2
- package/server/models/assinvestment.js +1 -13
- package/server/models/assissue.js +1 -2
- package/server/models/asskey.js +1 -15
- package/server/models/assneedtobuy.js +1 -6
- package/server/models/assperiod.js +1 -7
- package/server/models/assproduct.js +1 -13
- package/server/models/assprofitsharing.js +1 -4
- package/server/models/assreceiver.js +1 -2
- package/server/models/assrequest.js +1 -11
- package/server/models/asssell.js +1 -7
- package/server/models/asstransaction.js +1 -3
- package/server/models/asstransfer.js +1 -4
- package/server/models/assuser_identity.js +1 -4
- package/server/models/asswithdraw.js +1 -4
- package/server/models/attend.js +1 -2
- package/server/models/banggiaban.js +1 -8
- package/server/models/bangtinhluong.js +1 -6
- package/server/models/base.js +1 -1
- package/server/models/bds_area.js +1 -4
- package/server/models/bds_block.js +1 -3
- package/server/models/bds_building.js +1 -4
- package/server/models/bds_floor.js +1 -3
- package/server/models/bds_floordetail.js +1 -9
- package/server/models/bds_nhadat.js +1 -11
- package/server/models/bds_nhomnhadat.js +1 -4
- package/server/models/bds_phanloainhadat.js +1 -3
- package/server/models/bg1.js +1 -9
- package/server/models/bg2.js +1 -10
- package/server/models/cache.js +1 -3
- package/server/models/calllog.js +1 -4
- package/server/models/campaign.js +1 -6
- package/server/models/cart.js +1 -5
- package/server/models/cddiem.js +1 -2
- package/server/models/cddt.js +1 -3
- package/server/models/cdkh.js +1 -5
- package/server/models/cdkhtheongay.js +1 -5
- package/server/models/cdnphep.js +1 -2
- package/server/models/cdtk.js +1 -3
- package/server/models/cdtktheongay.js +1 -3
- package/server/models/cdvt.js +1 -5
- package/server/models/cdvtnpp.js +1 -6
- package/server/models/cdvttheongay.js +1 -5
- package/server/models/chamcong.js +1 -7
- package/server/models/checkin.js +1 -4
- package/server/models/checkinactivity.js +1 -3
- package/server/models/checkinkpi.js +1 -4
- package/server/models/checkinlocation.js +1 -2
- package/server/models/chitieukpi.js +1 -3
- package/server/models/chudethaoluan.js +1 -3
- package/server/models/ckgtluong.js +1 -2
- package/server/models/colleague.js +1 -2
- package/server/models/comment.js +1 -4
- package/server/models/congdoansx.js +1 -4
- package/server/models/congtacvien.js +1 -4
- package/server/models/congthuctinhgiaban.js +1 -8
- package/server/models/consultant.js +1 -4
- package/server/models/contract.js +1 -6
- package/server/models/counter.js +1 -2
- package/server/models/ctds.js +1 -5
- package/server/models/ctds2.js +1 -6
- package/server/models/currency.js +1 -3
- package/server/models/customer.js +1 -31
- package/server/models/databanle.js +1 -8
- package/server/models/datlich.js +1 -4
- package/server/models/department.js +1 -4
- package/server/models/dh2.js +1 -20
- package/server/models/diagram.js +1 -2
- package/server/models/dinhmucsx.js +1 -8
- package/server/models/dkhoc.js +1 -6
- package/server/models/dknphep.js +1 -2
- package/server/models/dmban.js +1 -4
- package/server/models/dmbp.js +1 -12
- package/server/models/dmca.js +1 -2
- package/server/models/dmchietkhau.js +1 -9
- package/server/models/dmchietkhauhd.js +1 -20
- package/server/models/dmcpmh.js +1 -2
- package/server/models/dmdiemthuong.js +1 -5
- package/server/models/dmdoi.js +1 -4
- package/server/models/dmdoituongdanhgia.js +1 -2
- package/server/models/dmdt.js +1 -8
- package/server/models/dmdvt.js +1 -3
- package/server/models/dmgiaban.js +1 -9
- package/server/models/dmgiamua.js +1 -5
- package/server/models/dmgiathitruong.js +1 -5
- package/server/models/dmgiathitruong_ngay.js +1 -2
- package/server/models/dmgiathitruong_theodoi.js +1 -2
- package/server/models/dmhoahonghd.js +1 -9
- package/server/models/dmhoahongnpp.js +1 -9
- package/server/models/dmkc.js +1 -3
- package/server/models/dmkho.js +1 -6
- package/server/models/dmkhuyenmai.js +1 -9
- package/server/models/dmkhuyenmaihd.js +1 -11
- package/server/models/dmletet.js +1 -2
- package/server/models/dmlo.js +1 -4
- package/server/models/dmloaicong.js +1 -4
- package/server/models/dmloaitask.js +1 -2
- package/server/models/dmloaits.js +1 -2
- package/server/models/dmnckkm.js +1 -4
- package/server/models/dmnghiepvu.js +1 -4
- package/server/models/dmnguonvon.js +1 -2
- package/server/models/dmnhnv.js +1 -4
- package/server/models/dmnv.js +1 -17
- package/server/models/dmnvt.js +1 -9
- package/server/models/dmphatdichvu.js +1 -5
- package/server/models/dmphi.js +1 -3
- package/server/models/dmqct.js +1 -3
- package/server/models/dmqddvt.js +1 -3
- package/server/models/dmtanggiamts.js +1 -3
- package/server/models/dmto.js +1 -4
- package/server/models/dmtt.js +1 -6
- package/server/models/dmvt.js +1 -17
- package/server/models/dmyt.js +1 -4
- package/server/models/dn0.js +1 -13
- package/server/models/dnm.js +1 -11
- package/server/models/dokho.js +1 -2
- package/server/models/domain.js +1 -2
- package/server/models/dvcs.js +1 -3
- package/server/models/ecomcategories.js +1 -3
- package/server/models/ecomcategories_cty.js +1 -3
- package/server/models/ecomproductlines.js +1 -2
- package/server/models/ecompromotion_flashsales.js +1 -2
- package/server/models/ecompromotion_freeships.js +1 -2
- package/server/models/email.js +1 -2
- package/server/models/endpoint.js +1 -1
- package/server/models/events.js +1 -3
- package/server/models/evoucher.js +1 -5
- package/server/models/experiencejourney.js +1 -2
- package/server/models/experiencejourneydata.js +1 -4
- package/server/models/experiencejourneypersona.js +1 -3
- package/server/models/experiencejourneystage.js +1 -2
- package/server/models/exportexceltemplate.js +1 -2
- package/server/models/fbconversation.js +1 -15
- package/server/models/fbmessage.js +1 -2
- package/server/models/fbpage.js +1 -2
- package/server/models/fbpost.js +1 -2
- package/server/models/fieldright.js +1 -2
- package/server/models/file.js +1 -4
- package/server/models/financialroadmap.js +1 -3
- package/server/models/flow.js +1 -2
- package/server/models/flowdata.js +1 -3
- package/server/models/folder.js +1 -4
- package/server/models/follow.js +1 -2
- package/server/models/form.js +1 -3
- package/server/models/forminfo.js +1 -5
- package/server/models/formvalue.js +1 -3
- package/server/models/giaoca.js +1 -4
- package/server/models/giatb.js +1 -3
- package/server/models/group.js +1 -11
- package/server/models/gt_ctgt.js +1 -4
- package/server/models/gt_hspb.js +1 -3
- package/server/models/gt_sltk.js +1 -3
- package/server/models/gt_thcppstk.js +1 -3
- package/server/models/hanmucton.js +1 -4
- package/server/models/hd1.js +1 -11
- package/server/models/hd2.js +1 -27
- package/server/models/hd3.js +1 -18
- package/server/models/hd4.js +1 -13
- package/server/models/hd7.js +1 -17
- package/server/models/hd8.js +1 -12
- package/server/models/hde.js +1 -11
- package/server/models/hlink.js +1 -2
- package/server/models/hlinkvalue.js +1 -2
- package/server/models/hmcn.js +1 -3
- package/server/models/hmcnct.js +1 -2
- package/server/models/hspbts.js +1 -4
- package/server/models/htl.js +1 -13
- package/server/models/importexceltemplate.js +1 -2
- package/server/models/introducebonus.js +1 -4
- package/server/models/introducecode.js +1 -3
- package/server/models/introducer.js +1 -4
- package/server/models/kbbtpb.js +1 -7
- package/server/models/kbmPttct.js +1 -4
- package/server/models/kbmTkgtgt.js +1 -5
- package/server/models/kbm_bcdkt.js +1 -4
- package/server/models/kbm_kqhdkd.js +1 -3
- package/server/models/kbm_lcttgt.js +1 -5
- package/server/models/kbm_lctttt.js +1 -4
- package/server/models/kbm_pttct.js +1 -4
- package/server/models/kbm_tkgtgt.js +1 -5
- package/server/models/kbmbcdkt.js +1 -4
- package/server/models/kbmbcqt.js +1 -4
- package/server/models/kbmkqhdkd.js +1 -3
- package/server/models/kbmlcttgt.js +1 -6
- package/server/models/kbmlctttt.js +1 -4
- package/server/models/kbmtmbctc.js +1 -4
- package/server/models/kehoachdtcp.js +1 -3
- package/server/models/kehoachmh.js +1 -8
- package/server/models/keyresult.js +1 -7
- package/server/models/khunghangthanhvien.js +1 -3
- package/server/models/label.js +1 -2
- package/server/models/labelinfo.js +1 -2
- package/server/models/lenhcapphat.js +1 -8
- package/server/models/lenhsx.js +1 -8
- package/server/models/lienhe.js +1 -4
- package/server/models/like_module.js +1 -2
- package/server/models/link.js +1 -2
- package/server/models/loaidiem.js +1 -2
- package/server/models/lock.js +1 -2
- package/server/models/log.js +1 -5
- package/server/models/mailaccount.js +1 -3
- package/server/models/mailgroup.js +1 -3
- package/server/models/mailreceived.js +1 -2
- package/server/models/mailschedule.js +1 -2
- package/server/models/mailsent.js +1 -2
- package/server/models/mailtemplate.js +1 -2
- package/server/models/maudanhgia.js +1 -2
- package/server/models/menuinfo.js +1 -2
- package/server/models/message.js +1 -8
- package/server/models/message2.js +1 -4
- package/server/models/message2setting.js +1 -3
- package/server/models/moduleinfo.js +1 -4
- package/server/models/momo.js +1 -17
- package/server/models/news.js +1 -3
- package/server/models/newsfeed.js +1 -4
- package/server/models/note.js +1 -2
- package/server/models/notification.js +1 -7
- package/server/models/okr.js +1 -4
- package/server/models/okrdiagram.js +1 -3
- package/server/models/onepay.js +1 -24
- package/server/models/opportunity.js +1 -4
- package/server/models/options.js +1 -2
- package/server/models/originimportid.js +1 -1
- package/server/models/otp.js +1 -1
- package/server/models/parameter.js +1 -2
- package/server/models/participant.js +1 -20
- package/server/models/partner.js +1 -1
- package/server/models/payload.js +1 -1
- package/server/models/pbl.js +1 -16
- package/server/models/pc0.js +1 -13
- package/server/models/pc1.js +1 -14
- package/server/models/pc2.js +1 -13
- package/server/models/pc3.js +1 -13
- package/server/models/pc5.js +1 -8
- package/server/models/pc6.js +1 -14
- package/server/models/pcl.js +1 -6
- package/server/models/pdn.js +1 -9
- package/server/models/pdx.js +1 -9
- package/server/models/pgh.js +1 -5
- package/server/models/phieudanhgia.js +1 -3
- package/server/models/pht.js +1 -8
- package/server/models/phucap.js +1 -4
- package/server/models/pkc.js +1 -6
- package/server/models/pkh.js +1 -6
- package/server/models/pkk.js +1 -10
- package/server/models/pkt.js +1 -12
- package/server/models/pn1.js +1 -17
- package/server/models/pn2.js +1 -11
- package/server/models/pn3.js +1 -13
- package/server/models/pn5.js +1 -14
- package/server/models/pn6.js +1 -14
- package/server/models/pn9.js +1 -17
- package/server/models/pnc.js +1 -10
- package/server/models/pnh.js +1 -12
- package/server/models/pnk.js +1 -10
- package/server/models/po1.js +1 -19
- package/server/models/ppb.js +1 -6
- package/server/models/profile.js +1 -4
- package/server/models/pt1.js +1 -12
- package/server/models/pt5.js +1 -8
- package/server/models/ptl.js +1 -6
- package/server/models/ptthanhtoan.js +1 -6
- package/server/models/purchase_contract.js +1 -17
- package/server/models/pxc.js +1 -9
- package/server/models/pxh.js +1 -12
- package/server/models/pxk.js +1 -10
- package/server/models/qts.js +1 -14
- package/server/models/qts_dieuchinh.js +1 -3
- package/server/models/qts_dieuchuyen.js +1 -4
- package/server/models/quanhuyen.js +1 -2
- package/server/models/reason.js +1 -2
- package/server/models/receivedinvoice.js +1 -2
- package/server/models/reportinfo.js +1 -5
- package/server/models/right.js +1 -4
- package/server/models/rpt.js +1 -2
- package/server/models/rptform.js +1 -5
- package/server/models/rptobject.js +1 -2
- package/server/models/sale_contract.js +1 -9
- package/server/models/schedule.js +1 -16
- package/server/models/schedule_log.js +1 -2
- package/server/models/service.js +1 -4
- package/server/models/shipbook.js +1 -12
- package/server/models/shortcut.js +1 -2
- package/server/models/smsaccount.js +1 -10
- package/server/models/smssend.js +1 -2
- package/server/models/so1.js +1 -22
- package/server/models/so2.js +1 -10
- package/server/models/so3.js +1 -9
- package/server/models/so5.js +1 -15
- package/server/models/so9.js +1 -19
- package/server/models/socai.js +1 -26
- package/server/models/socainpp.js +1 -18
- package/server/models/socaitc.js +1 -6
- package/server/models/socaitmp.js +1 -16
- package/server/models/socaitt.js +1 -4
- package/server/models/sodiemthuong.js +1 -4
- package/server/models/sokho.js +1 -28
- package/server/models/sokhocapphat.js +1 -18
- package/server/models/sokhokhongton.js +1 -19
- package/server/models/sokhonpp.js +1 -19
- package/server/models/sokhotc.js +1 -8
- package/server/models/sokhott.js +1 -18
- package/server/models/sophanbokh.js +1 -3
- package/server/models/sosanxuat.js +1 -5
- package/server/models/sotinhkh.js +1 -2
- package/server/models/spdd_ck.js +1 -3
- package/server/models/spdd_dk.js +1 -3
- package/server/models/step.js +1 -2
- package/server/models/strategicdiagram.js +1 -3
- package/server/models/strategicgoal.js +1 -4
- package/server/models/strategickpi.js +1 -6
- package/server/models/strategicobjective.js +1 -5
- package/server/models/strategicplan.js +1 -5
- package/server/models/subscribe.js +1 -2
- package/server/models/support.js +1 -2
- package/server/models/synctime.js +1 -2
- package/server/models/sysconfig.js +1 -2
- package/server/models/sysgroup.js +1 -2
- package/server/models/tableinfo.js +1 -3
- package/server/models/task.js +1 -9
- package/server/models/taskreg.js +1 -4
- package/server/models/tc.js +1 -2
- package/server/models/tdttco.js +1 -8
- package/server/models/tdttco_tt.js +1 -5
- package/server/models/tdttno.js +1 -8
- package/server/models/tdttno_tt.js +1 -5
- package/server/models/templaterpt.js +1 -2
- package/server/models/templatestore.js +1 -3
- package/server/models/templatevoucher.js +1 -3
- package/server/models/tinhthanh.js +1 -2
- package/server/models/tokens.js +1 -2
- package/server/models/tontucthoi.js +1 -9
- package/server/models/trangthai.js +1 -4
- package/server/models/trangthaiapp.js +1 -4
- package/server/models/transaction.js +1 -16
- package/server/models/trialinfo.js +1 -2
- package/server/models/user.js +1 -38
- package/server/models/usergroup.js +1 -7
- package/server/models/vanchuyen.js +1 -12
- package/server/models/vat.js +1 -3
- package/server/models/vatra.js +1 -6
- package/server/models/vatvao.js +1 -6
- package/server/models/versioninfo.js +1 -2
- package/server/models/vietqrbanks.js +1 -2
- package/server/models/vsocai.js +1 -6
- package/server/models/waitevent.js +1 -2
- package/server/models/wallet.js +1 -8
- package/server/models/warranty.js +1 -3
- package/server/models/warrantyclaim.js +1 -2
- package/server/models/warrantypolicy.js +1 -1
- package/server/models/xaphuong.js +1 -2
- package/server/models/xhd.js +1 -10
- package/server/models/ytdd_ck.js +1 -4
- package/server/models/ytdd_dk.js +1 -4
- package/server/models/zalo.js +1 -17
- package/server/modules/lists/bg-cddiem.js +1 -6
- package/server/modules/lists/bg-cddt.js +1 -7
- package/server/modules/lists/bg-cdkh.js +1 -11
- package/server/modules/lists/bg-cdnphep.js +1 -6
- package/server/modules/lists/bg-cdtk.js +1 -9
- package/server/modules/lists/bg-cdvt.js +1 -8
- package/server/modules/lists/bg-cdvtnpp.js +1 -8
- package/server/modules/lists/ls-account.js +1 -4
- package/server/modules/lists/ls-afflink.js +1 -3
- package/server/modules/lists/ls-approve.js +1 -4
- package/server/modules/lists/ls-assabcihandler.js +1 -3
- package/server/modules/lists/ls-assbank.js +1 -3
- package/server/modules/lists/ls-assbooking.js +1 -20
- package/server/modules/lists/ls-assbuy.js +1 -8
- package/server/modules/lists/ls-asscashwithdraw.js +1 -8
- package/server/modules/lists/ls-assinvestment.js +1 -31
- package/server/modules/lists/ls-assissue.js +1 -3
- package/server/modules/lists/ls-asskey.js +1 -41
- package/server/modules/lists/ls-assneedtobuy.js +1 -10
- package/server/modules/lists/ls-assperiod.js +1 -19
- package/server/modules/lists/ls-assproduct.js +1 -9
- package/server/modules/lists/ls-assprofitsharing.js +1 -8
- package/server/modules/lists/ls-assreceiver.js +1 -3
- package/server/modules/lists/ls-assrequest.js +1 -4
- package/server/modules/lists/ls-asssell.js +1 -13
- package/server/modules/lists/ls-asstransaction.js +1 -3
- package/server/modules/lists/ls-asstransfer.js +1 -3
- package/server/modules/lists/ls-assuser_identity.js +1 -1
- package/server/modules/lists/ls-asswithdraw.js +1 -12
- package/server/modules/lists/ls-bangtinhluong.js +1 -2
- package/server/modules/lists/ls-bds_area.js +1 -3
- package/server/modules/lists/ls-bds_block.js +1 -1
- package/server/modules/lists/ls-bds_building.js +1 -3
- package/server/modules/lists/ls-bds_dmnhbds.js +1 -6
- package/server/modules/lists/ls-bds_floor.js +1 -2
- package/server/modules/lists/ls-bds_floordetail.js +1 -19
- package/server/modules/lists/ls-bds_nhadat.js +1 -16
- package/server/modules/lists/ls-bds_nhomnhadat.js +1 -1
- package/server/modules/lists/ls-bds_phanloainhadat.js +1 -1
- package/server/modules/lists/ls-calllog.js +1 -4
- package/server/modules/lists/ls-campaign.js +1 -1
- package/server/modules/lists/ls-cart.js +1 -14
- package/server/modules/lists/ls-chamcong.js +1 -3
- package/server/modules/lists/ls-checkin.js +1 -12
- package/server/modules/lists/ls-checkinactivity.js +1 -8
- package/server/modules/lists/ls-checkinkpi.js +1 -3
- package/server/modules/lists/ls-checkinlocation.js +1 -1
- package/server/modules/lists/ls-chitieukpi.js +1 -1
- package/server/modules/lists/ls-chudethaoluan.js +1 -1
- package/server/modules/lists/ls-ckgtluong.js +1 -1
- package/server/modules/lists/ls-comment.js +1 -9
- package/server/modules/lists/ls-congdoansx.js +1 -3
- package/server/modules/lists/ls-congtacvien.js +1 -5
- package/server/modules/lists/ls-consultant.js +1 -2
- package/server/modules/lists/ls-contract.js +1 -7
- package/server/modules/lists/ls-ctds.js +1 -4
- package/server/modules/lists/ls-ctds2.js +1 -4
- package/server/modules/lists/ls-currency.js +1 -1
- package/server/modules/lists/ls-customer.js +1 -21
- package/server/modules/lists/ls-datlich.js +1 -9
- package/server/modules/lists/ls-dckhauhaots.js +1 -3
- package/server/modules/lists/ls-department.js +1 -3
- package/server/modules/lists/ls-diagram.js +1 -1
- package/server/modules/lists/ls-dkhoc.js +1 -6
- package/server/modules/lists/ls-dknphep.js +1 -1
- package/server/modules/lists/ls-dmban.js +1 -4
- package/server/modules/lists/ls-dmbp.js +1 -7
- package/server/modules/lists/ls-dmca.js +1 -1
- package/server/modules/lists/ls-dmchietkhau.js +1 -19
- package/server/modules/lists/ls-dmchietkhauhd.js +1 -4
- package/server/modules/lists/ls-dmchucvu.js +1 -2
- package/server/modules/lists/ls-dmcpmh.js +1 -1
- package/server/modules/lists/ls-dmdiemthuong.js +1 -4
- package/server/modules/lists/ls-dmdoi.js +1 -4
- package/server/modules/lists/ls-dmdoituongdanhgia.js +1 -1
- package/server/modules/lists/ls-dmdt.js +1 -11
- package/server/modules/lists/ls-dmdvt.js +1 -2
- package/server/modules/lists/ls-dmgiaban.js +1 -4
- package/server/modules/lists/ls-dmgiamua.js +1 -4
- package/server/modules/lists/ls-dmgiathitruong.js +1 -15
- package/server/modules/lists/ls-dmgiathitruong_ngay.js +1 -2
- package/server/modules/lists/ls-dmgiathitruong_theodoi.js +1 -1
- package/server/modules/lists/ls-dmhoahonghd.js +1 -1
- package/server/modules/lists/ls-dmhoahongnpp.js +1 -1
- package/server/modules/lists/ls-dmkc.js +1 -3
- package/server/modules/lists/ls-dmkho.js +1 -1
- package/server/modules/lists/ls-dmkhuyenmai.js +1 -5
- package/server/modules/lists/ls-dmkhuyenmaihd.js +1 -3
- package/server/modules/lists/ls-dmletet.js +1 -1
- package/server/modules/lists/ls-dmlo.js +1 -1
- package/server/modules/lists/ls-dmloaicong.js +1 -1
- package/server/modules/lists/ls-dmloaits.js +1 -1
- package/server/modules/lists/ls-dmnckkm.js +1 -7
- package/server/modules/lists/ls-dmnghiepvu.js +1 -1
- package/server/modules/lists/ls-dmnguonvon.js +1 -1
- package/server/modules/lists/ls-dmnhnv.js +1 -6
- package/server/modules/lists/ls-dmnhtask.js +1 -5
- package/server/modules/lists/ls-dmnkh.js +1 -6
- package/server/modules/lists/ls-dmntt.js +1 -6
- package/server/modules/lists/ls-dmnv.js +1 -17
- package/server/modules/lists/ls-dmnvt.js +1 -8
- package/server/modules/lists/ls-dmphatdichvu.js +1 -3
- package/server/modules/lists/ls-dmphi.js +1 -6
- package/server/modules/lists/ls-dmqct.js +1 -2
- package/server/modules/lists/ls-dmqddvt.js +1 -3
- package/server/modules/lists/ls-dmtanggiamts.js +1 -1
- package/server/modules/lists/ls-dmto.js +1 -5
- package/server/modules/lists/ls-dmtt.js +1 -7
- package/server/modules/lists/ls-dmvt.js +1 -68
- package/server/modules/lists/ls-dmyt.js +1 -1
- package/server/modules/lists/ls-dokho.js +1 -1
- package/server/modules/lists/ls-dvcs.js +1 -1
- package/server/modules/lists/ls-ecomcategories.js +1 -5
- package/server/modules/lists/ls-ecomcategories_cty.js +1 -5
- package/server/modules/lists/ls-email.js +1 -4
- package/server/modules/lists/ls-events.js +1 -3
- package/server/modules/lists/ls-evoucher.js +1 -3
- package/server/modules/lists/ls-experiencejourney.js +1 -1
- package/server/modules/lists/ls-experiencejourneydata.js +1 -3
- package/server/modules/lists/ls-experiencejourneypersona.js +1 -4
- package/server/modules/lists/ls-experiencejourneystage.js +1 -1
- package/server/modules/lists/ls-fbconversation.js +1 -2
- package/server/modules/lists/ls-fbmessage.js +1 -2
- package/server/modules/lists/ls-fbpage.js +1 -11
- package/server/modules/lists/ls-fbpost.js +1 -2
- package/server/modules/lists/ls-file.js +1 -31
- package/server/modules/lists/ls-financialroadmap.js +1 -3
- package/server/modules/lists/ls-flow.js +1 -6
- package/server/modules/lists/ls-flowdata.js +1 -1
- package/server/modules/lists/ls-folder.js +1 -1
- package/server/modules/lists/ls-form.js +1 -1
- package/server/modules/lists/ls-forminfo.js +1 -1
- package/server/modules/lists/ls-formvalue.js +1 -1
- package/server/modules/lists/ls-giaoca.js +1 -4
- package/server/modules/lists/ls-group.js +1 -5
- package/server/modules/lists/ls-hlink.js +1 -1
- package/server/modules/lists/ls-hlinkvalue.js +1 -1
- package/server/modules/lists/ls-hmcn.js +1 -2
- package/server/modules/lists/ls-hspbts.js +1 -3
- package/server/modules/lists/ls-introducebonus.js +1 -4
- package/server/modules/lists/ls-introducecode.js +1 -10
- package/server/modules/lists/ls-introducer.js +1 -20
- package/server/modules/lists/ls-kbm-bcdkt.js +1 -1
- package/server/modules/lists/ls-kbm-bcqt.js +1 -5
- package/server/modules/lists/ls-kbm-kqhdkd.js +1 -1
- package/server/modules/lists/ls-kbm-lcttgt.js +1 -1
- package/server/modules/lists/ls-kbm-lctttt.js +1 -1
- package/server/modules/lists/ls-kbm-pttct.js +1 -3
- package/server/modules/lists/ls-kbm-tkgtgt.js +1 -3
- package/server/modules/lists/ls-kbm-tmbctc.js +1 -3
- package/server/modules/lists/ls-kehoachdtcp.js +1 -4
- package/server/modules/lists/ls-keyresult.js +1 -7
- package/server/modules/lists/ls-khunghangthanhvien.js +1 -1
- package/server/modules/lists/ls-kygui.js +1 -19
- package/server/modules/lists/ls-label.js +1 -1
- package/server/modules/lists/ls-lienhe.js +1 -4
- package/server/modules/lists/ls-like-module.js +1 -1
- package/server/modules/lists/ls-link.js +1 -1
- package/server/modules/lists/ls-loaidiem.js +1 -1
- package/server/modules/lists/ls-lock.js +1 -1
- package/server/modules/lists/ls-log.js +1 -3
- package/server/modules/lists/ls-mailaccount.js +1 -5
- package/server/modules/lists/ls-mailreceived.js +1 -5
- package/server/modules/lists/ls-mailschedule.js +1 -7
- package/server/modules/lists/ls-mailsent.js +1 -4
- package/server/modules/lists/ls-mailtemplate.js +1 -4
- package/server/modules/lists/ls-maudanhgia.js +1 -3
- package/server/modules/lists/ls-message2.js +1 -8
- package/server/modules/lists/ls-message2setting.js +1 -5
- package/server/modules/lists/ls-news.js +1 -7
- package/server/modules/lists/ls-newsfeed.js +1 -4
- package/server/modules/lists/ls-note.js +1 -6
- package/server/modules/lists/ls-okr.js +1 -5
- package/server/modules/lists/ls-okrdiagram.js +1 -1
- package/server/modules/lists/ls-opportunity.js +1 -5
- package/server/modules/lists/ls-options.js +1 -4
- package/server/modules/lists/ls-parameter.js +1 -3
- package/server/modules/lists/ls-participant.js +1 -10
- package/server/modules/lists/ls-phieudanhgia.js +1 -7
- package/server/modules/lists/ls-phucap.js +1 -2
- package/server/modules/lists/ls-profile.js +1 -1
- package/server/modules/lists/ls-ptthanhtoan.js +1 -3
- package/server/modules/lists/ls-qts-dieuchinh.js +1 -2
- package/server/modules/lists/ls-qts-dieuchuyen.js +1 -8
- package/server/modules/lists/ls-reason.js +1 -1
- package/server/modules/lists/ls-rpt.js +1 -5
- package/server/modules/lists/ls-rptform.js +1 -4
- package/server/modules/lists/ls-service.js +1 -3
- package/server/modules/lists/ls-shortcut.js +1 -1
- package/server/modules/lists/ls-smsaccount.js +1 -1
- package/server/modules/lists/ls-smssend.js +1 -3
- package/server/modules/lists/ls-sosanxuat.js +1 -4
- package/server/modules/lists/ls-step.js +1 -1
- package/server/modules/lists/ls-strategicdiagram.js +1 -1
- package/server/modules/lists/ls-strategicgoal.js +1 -3
- package/server/modules/lists/ls-strategickpi.js +1 -7
- package/server/modules/lists/ls-strategicobjective.js +1 -3
- package/server/modules/lists/ls-strategicplan.js +1 -6
- package/server/modules/lists/ls-support.js +1 -3
- package/server/modules/lists/ls-task.js +1 -34
- package/server/modules/lists/ls-taskreg.js +1 -2
- package/server/modules/lists/ls-tc.js +1 -1
- package/server/modules/lists/ls-templaterpt.js +1 -5
- package/server/modules/lists/ls-templatevoucher.js +1 -1
- package/server/modules/lists/ls-tontucthoi.js +1 -3
- package/server/modules/lists/ls-trangthaiapp.js +1 -3
- package/server/modules/lists/ls-transaction.js +1 -4
- package/server/modules/lists/ls-usergroup.js +1 -7
- package/server/modules/lists/ls-vat.js +1 -1
- package/server/modules/lists/ls-vatra.js +1 -5
- package/server/modules/lists/ls-vatvao.js +1 -6
- package/server/modules/lists/ls-waitevent.js +1 -1
- package/server/modules/lists/ls-warranty.js +1 -4
- package/server/modules/lists/ls_hanmucton.js +1 -3
- package/server/modules/lists/ls_hspb.js +1 -4
- package/server/modules/lists/ls_spdd_ck.js +1 -3
- package/server/modules/lists/ls_spdd_dk.js +1 -3
- package/server/modules/lists/ls_ytdd_ck.js +1 -4
- package/server/modules/lists/ls_ytdd_dk.js +1 -4
- package/server/modules/lists/sys-attend.js +1 -4
- package/server/modules/lists/sys-follow.js +1 -4
- package/server/modules/lists/sys-right.js +1 -2
- package/server/modules/public/app.js +1 -4
- package/server/modules/public/approve.js +1 -37
- package/server/modules/public/callin.js +1 -7
- package/server/modules/public/comment.js +1 -5
- package/server/modules/public/dmnvt.js +1 -4
- package/server/modules/public/dmvt.js +1 -9
- package/server/modules/public/file.js +1 -11
- package/server/modules/public/form.js +1 -7
- package/server/modules/public/forminfo.js +1 -1
- package/server/modules/public/group.js +1 -4
- package/server/modules/public/hlink.js +1 -3
- package/server/modules/public/introducecode.js +1 -1
- package/server/modules/public/listinfo.js +1 -1
- package/server/modules/public/media-webhook.js +1 -1
- package/server/modules/public/partner.js +1 -1
- package/server/modules/public/paymentCallback.js +1 -32
- package/server/modules/public/province.js +1 -1
- package/server/modules/public/ptthanhtoan.js +1 -4
- package/server/modules/public/subscribe.js +1 -30
- package/server/modules/public/support.js +1 -3
- package/server/modules/public/tableinfo.js +1 -1
- package/server/modules/public/trialinfo.js +1 -4
- package/server/modules/public/versioninfo.js +1 -1
- package/server/modules/reports/calc-tinhgiatb.js +1 -6
- package/server/modules/reports/calc-tinhgiathanh.js +1 -6
- package/server/modules/reports/calc-tinhkhauhaots.js +1 -3
- package/server/modules/reports/calc-tinhluong.js +1 -37
- package/server/modules/reports/rp-analyzedata.js +1 -6
- package/server/modules/reports/rp-assbonus.js +1 -4
- package/server/modules/reports/rp-assinterest.js +1 -8
- package/server/modules/reports/rp-assproductowners.js +1 -3
- package/server/modules/reports/rp-asssupply.js +1 -1
- package/server/modules/reports/rp-asstransferlog.js +1 -10
- package/server/modules/reports/rp-banggiatb.js +1 -3
- package/server/modules/reports/rp-bangtinhkhauhao.js +1 -6
- package/server/modules/reports/rp-baocaokhachhang.js +1 -6
- package/server/modules/reports/rp-bcdkt.js +1 -11
- package/server/modules/reports/rp-bcintroducebonus.js +1 -4
- package/server/modules/reports/rp-bckhtiemnang.js +1 -3
- package/server/modules/reports/rp-bcqt.js +1 -85
- package/server/modules/reports/rp-bkct.js +1 -13
- package/server/modules/reports/rp-bkshipbook.js +1 -8
- package/server/modules/reports/rp-bkvanchuyen.js +1 -8
- package/server/modules/reports/rp-bkvatra.js +1 -7
- package/server/modules/reports/rp-bkvatvao.js +1 -7
- package/server/modules/reports/rp-capnhatsocaitc.js +1 -4
- package/server/modules/reports/rp-cdpsdiem.js +1 -4
- package/server/modules/reports/rp-cdpsdt.js +1 -5
- package/server/modules/reports/rp-cdpskh.js +1 -7
- package/server/modules/reports/rp-cdpsnphep.js +1 -3
- package/server/modules/reports/rp-cdpstk.js +1 -4
- package/server/modules/reports/rp-chitietchitientheohoadon.js +1 -12
- package/server/modules/reports/rp-chitiettaisan.js +1 -13
- package/server/modules/reports/rp-chitietthutientheohoadon.js +1 -13
- package/server/modules/reports/rp-ckcn.js +1 -3
- package/server/modules/reports/rp-ckdiem.js +1 -2
- package/server/modules/reports/rp-cktk.js +1 -3
- package/server/modules/reports/rp-ckvt.js +1 -10
- package/server/modules/reports/rp-ckvttheokho.js +1 -4
- package/server/modules/reports/rp-ckvttheotg.js +1 -4
- package/server/modules/reports/rp-ckvttt.js +1 -3
- package/server/modules/reports/rp-congnophaithutheotuoino.js +1 -3
- package/server/modules/reports/rp-congnophaitratheotuoino.js +1 -3
- package/server/modules/reports/rp-congnosapthu.js +1 -4
- package/server/modules/reports/rp-congnosaptra.js +1 -4
- package/server/modules/reports/rp-congviectheobp.js +1 -9
- package/server/modules/reports/rp-congviectheodt.js +1 -8
- package/server/modules/reports/rp-congviectheokh.js +1 -8
- package/server/modules/reports/rp-congviectheonv.js +1 -9
- package/server/modules/reports/rp-congviectheotimeline.js +1 -6
- package/server/modules/reports/rp-ctbanle.js +1 -15
- package/server/modules/reports/rp-ctbanle2.js +1 -20
- package/server/modules/reports/rp-ctbanlectv.js +1 -20
- package/server/modules/reports/rp-ctbanlenpp.js +1 -24
- package/server/modules/reports/rp-ctdanhgianhanvien.js +1 -8
- package/server/modules/reports/rp-cthangbanbitralai.js +1 -4
- package/server/modules/reports/rp-ctmuahang.js +1 -7
- package/server/modules/reports/rp-cttralaihang.js +1 -4
- package/server/modules/reports/rp-databanle.js +1 -10
- package/server/modules/reports/rp-diemthuong.js +1 -2
- package/server/modules/reports/rp-dkcn.js +1 -3
- package/server/modules/reports/rp-dktk.js +1 -2
- package/server/modules/reports/rp-dsnhanviencm.js +1 -9
- package/server/modules/reports/rp-dsnhanvientb.js +1 -9
- package/server/modules/reports/rp-dtbanlekempk.js +1 -9
- package/server/modules/reports/rp-dtbanletheoct.js +1 -23
- package/server/modules/reports/rp-dtbanletheoctkempk.js +1 -25
- package/server/modules/reports/rp-dtbanletheokh.js +1 -20
- package/server/modules/reports/rp-dtbanletheokhnpp.js +1 -19
- package/server/modules/reports/rp-dtbanletheokho.js +1 -18
- package/server/modules/reports/rp-dtbanletheonam.js +1 -3
- package/server/modules/reports/rp-dtbanletheongay.js +1 -1
- package/server/modules/reports/rp-dtbanletheonpp.js +1 -23
- package/server/modules/reports/rp-dtbanletheonv.js +1 -19
- package/server/modules/reports/rp-dtbanletheoquy.js +1 -3
- package/server/modules/reports/rp-dtbanletheosp.js +1 -8
- package/server/modules/reports/rp-dtbanletheospnpp.js +1 -6
- package/server/modules/reports/rp-dtbanletheothang.js +1 -3
- package/server/modules/reports/rp-dtbanletheothungan.js +1 -12
- package/server/modules/reports/rp-dtbanletheovt.js +1 -2
- package/server/modules/reports/rp-dtbanletheovtnpp.js +1 -2
- package/server/modules/reports/rp-dutoanthuchitheodt.js +1 -4
- package/server/modules/reports/rp-getPXC2PNC.js +1 -8
- package/server/modules/reports/rp-getariseofaccountsbymonth.js +1 -4
- package/server/modules/reports/rp-getbtpb.js +1 -6
- package/server/modules/reports/rp-getcashbycashier.js +1 -7
- package/server/modules/reports/rp-getcschietkhau.js +1 -5
- package/server/modules/reports/rp-getdinhmuc4lenhcp.js +1 -7
- package/server/modules/reports/rp-getdinhmuc4pxk.js +1 -9
- package/server/modules/reports/rp-getdk4pht.js +1 -8
- package/server/modules/reports/rp-getdk4pkc.js +1 -9
- package/server/modules/reports/rp-getdttheoca.js +1 -5
- package/server/modules/reports/rp-getinvoice2pay.js +1 -4
- package/server/modules/reports/rp-getinvoice2receive.js +1 -4
- package/server/modules/reports/rp-getinvoice2return.js +1 -5
- package/server/modules/reports/rp-getinvoice2return_bl.js +1 -6
- package/server/modules/reports/rp-getkehoachmh4lenhcp.js +1 -4
- package/server/modules/reports/rp-getkhauhao.js +1 -7
- package/server/modules/reports/rp-getluong.js +1 -8
- package/server/modules/reports/rp-getluongchuyen.js +1 -5
- package/server/modules/reports/rp-getpn2fee.js +1 -5
- package/server/modules/reports/rp-getpn2return.js +1 -5
- package/server/modules/reports/rp-getthanhpham4pnk.js +1 -7
- package/server/modules/reports/rp-getvc2xhd.js +1 -11
- package/server/modules/reports/rp-gt_cpnvltt.js +1 -6
- package/server/modules/reports/rp-hangbanbitralai.js +1 -5
- package/server/modules/reports/rp-hangthanhvien.js +1 -3
- package/server/modules/reports/rp-hoadonbanhangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoadonmuahangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoahong.js +1 -15
- package/server/modules/reports/rp-kcsns.js +1 -19
- package/server/modules/reports/rp-kgchamcong.js +1 -7
- package/server/modules/reports/rp-khoaso.js +1 -12
- package/server/modules/reports/rp-kiemtrasocaitcvssocai.js +1 -6
- package/server/modules/reports/rp-kqdanhgianhanvien.js +1 -5
- package/server/modules/reports/rp-kqhdkd.js +1 -7
- package/server/modules/reports/rp-lcttgt.js +1 -17
- package/server/modules/reports/rp-lctttt.js +1 -11
- package/server/modules/reports/rp-linkslist.js +1 -4
- package/server/modules/reports/rp-phanbochitienchohoadon.js +1 -11
- package/server/modules/reports/rp-phanbothutienchohoadon.js +1 -10
- package/server/modules/reports/rp-ptbitralai.js +1 -7
- package/server/modules/reports/rp-ptcttct.js +1 -22
- package/server/modules/reports/rp-ptdonhang.js +1 -8
- package/server/modules/reports/rp-pttct.js +1 -49
- package/server/modules/reports/rp-pttctkho.js +1 -32
- package/server/modules/reports/rp-pttctkho2.js +1 -29
- package/server/modules/reports/rp-referredusers.js +1 -1
- package/server/modules/reports/rp-sctbhxh.js +1 -4
- package/server/modules/reports/rp-sctcnkh.js +1 -17
- package/server/modules/reports/rp-sctdiem.js +1 -3
- package/server/modules/reports/rp-sctdt.js +1 -7
- package/server/modules/reports/rp-sctdtcp.js +1 -11
- package/server/modules/reports/rp-sctluong.js +1 -4
- package/server/modules/reports/rp-sctthuetncn.js +1 -4
- package/server/modules/reports/rp-scttk.js +1 -7
- package/server/modules/reports/rp-sctvt.js +1 -5
- package/server/modules/reports/rp-sctvt_sl.js +1 -5
- package/server/modules/reports/rp-sctvtnpp.js +1 -6
- package/server/modules/reports/rp-sctvttt.js +1 -5
- package/server/modules/reports/rp-search.js +1 -4
- package/server/modules/reports/rp-socai.js +1 -6
- package/server/modules/reports/rp-socaitk.js +1 -7
- package/server/modules/reports/rp-sochut.js +1 -7
- package/server/modules/reports/rp-sokho.js +1 -7
- package/server/modules/reports/rp-sokhott.js +1 -5
- package/server/modules/reports/rp-sonkbh.js +1 -5
- package/server/modules/reports/rp-sonkc.js +1 -6
- package/server/modules/reports/rp-sonkct.js +1 -5
- package/server/modules/reports/rp-sonkmh.js +1 -5
- package/server/modules/reports/rp-sonktt.js +1 -5
- package/server/modules/reports/rp-soquy.js +1 -11
- package/server/modules/reports/rp-sosanhkhvatt.js +1 -13
- package/server/modules/reports/rp-sosanhkhvatt2.js +1 -6
- package/server/modules/reports/rp-sotaisan.js +1 -13
- package/server/modules/reports/rp-sotiengui.js +1 -7
- package/server/modules/reports/rp-taodinhmuctudkhoc.js +1 -5
- package/server/modules/reports/rp-thbanhangkempk.js +1 -28
- package/server/modules/reports/rp-thdanhgianhanvien.js +1 -9
- package/server/modules/reports/rp-thgt.js +1 -6
- package/server/modules/reports/rp-thnxt.js +1 -12
- package/server/modules/reports/rp-thnxt_sl.js +1 -9
- package/server/modules/reports/rp-thnxtnpp.js +1 -10
- package/server/modules/reports/rp-thnxttt.js +1 -9
- package/server/modules/reports/rp-tkbanhangtheogioithieu.js +1 -9
- package/server/modules/reports/rp-tkgioithieukh.js +1 -4
- package/server/modules/reports/rp-tkgtgt.js +1 -7
- package/server/modules/reports/rp-tmbctc.js +1 -20
- package/server/modules/reports/rp-tonghopbanhang.js +1 -6
- package/server/modules/reports/rp-tonghopmuahang.js +1 -5
- package/server/modules/reports/rp-tonghoptralaihang.js +1 -5
- package/server/modules/reports/rp-tongquanbanle.js +1 -20
- package/server/modules/reports/rp-tongquanbds.js +1 -3
- package/server/modules/reports/rp-tongquancongty.js +1 -6
- package/server/modules/reports/rp-tongquanctvnpp.js +1 -12
- package/server/modules/reports/rp-tongquannvbh.js +1 -14
- package/server/modules/reports/rp-tongquannvnpp.js +1 -5
- package/server/modules/reports/rp-uoctinhnvl.js +1 -11
- package/server/modules/reports/rp-wallet.js +1 -3
- package/server/modules/reports/rpt-tkdiemtichluy.js +1 -9
- package/server/modules/systems/sys-app.js +1 -30
- package/server/modules/systems/sys-colleague.js +1 -11
- package/server/modules/systems/sys-domain.js +1 -4
- package/server/modules/systems/sys-ecomproductlines.js +1 -1
- package/server/modules/systems/sys-exportexceltemplate.js +1 -4
- package/server/modules/systems/sys-fieldright.js +1 -3
- package/server/modules/systems/sys-importexceltemplate.js +1 -4
- package/server/modules/systems/sys-labelinfo.js +1 -4
- package/server/modules/systems/sys-listinfo.js +1 -10
- package/server/modules/systems/sys-menuinfo.js +1 -4
- package/server/modules/systems/sys-message.js +1 -14
- package/server/modules/systems/sys-moduleinfo.js +1 -4
- package/server/modules/systems/sys-notification.js +1 -8
- package/server/modules/systems/sys-quanhuyen.js +1 -4
- package/server/modules/systems/sys-reportinfo.js +1 -4
- package/server/modules/systems/sys-rptobject.js +1 -3
- package/server/modules/systems/sys-schedule.js +1 -11
- package/server/modules/systems/sys-sysconfig.js +1 -3
- package/server/modules/systems/sys-sysgroup.js +1 -3
- package/server/modules/systems/sys-tableinfo.js +1 -3
- package/server/modules/systems/sys-templatestore.js +1 -5
- package/server/modules/systems/sys-tinhthanh.js +1 -4
- package/server/modules/systems/sys-token.js +1 -3
- package/server/modules/systems/sys-trangthai.js +1 -4
- package/server/modules/systems/sys-trialinfo.js +1 -3
- package/server/modules/systems/sys-user.js +1 -45
- package/server/modules/systems/sys-users.js +1 -10
- package/server/modules/systems/sys-versioninfo.js +1 -3
- package/server/modules/systems/sys-vietqrbanks.js +1 -4
- package/server/modules/systems/sys-xaphuong.js +1 -4
- package/server/modules/vouchers/vo-banggiaban.js +1 -5
- package/server/modules/vouchers/vo-bc1.js +1 -33
- package/server/modules/vouchers/vo-bc5.js +1 -15
- package/server/modules/vouchers/vo-bg1.js +1 -10
- package/server/modules/vouchers/vo-bg2.js +1 -12
- package/server/modules/vouchers/vo-bn1.js +1 -35
- package/server/modules/vouchers/vo-bn5.js +1 -15
- package/server/modules/vouchers/vo-dh2.js +1 -35
- package/server/modules/vouchers/vo-dinhmucsx.js +1 -6
- package/server/modules/vouchers/vo-dkb.js +1 -21
- package/server/modules/vouchers/vo-dn0.js +1 -9
- package/server/modules/vouchers/vo-dnm.js +1 -21
- package/server/modules/vouchers/vo-hd1.js +1 -36
- package/server/modules/vouchers/vo-hd2.js +1 -107
- package/server/modules/vouchers/vo-hd3.js +1 -44
- package/server/modules/vouchers/vo-hd4.js +1 -13
- package/server/modules/vouchers/vo-hd7.js +1 -29
- package/server/modules/vouchers/vo-hd8.js +1 -29
- package/server/modules/vouchers/vo-hde.js +1 -40
- package/server/modules/vouchers/vo-htl.js +1 -11
- package/server/modules/vouchers/vo-kbbtpb.js +1 -6
- package/server/modules/vouchers/vo-kehoachmh.js +1 -13
- package/server/modules/vouchers/vo-lenhcapphat.js +1 -10
- package/server/modules/vouchers/vo-lenhsx.js +1 -12
- package/server/modules/vouchers/vo-pbl.js +1 -93
- package/server/modules/vouchers/vo-pc0.js +1 -14
- package/server/modules/vouchers/vo-pc1.js +1 -31
- package/server/modules/vouchers/vo-pc2.js +1 -24
- package/server/modules/vouchers/vo-pc3.js +1 -14
- package/server/modules/vouchers/vo-pc5.js +1 -15
- package/server/modules/vouchers/vo-pc6.js +1 -19
- package/server/modules/vouchers/vo-pcl.js +1 -7
- package/server/modules/vouchers/vo-pdn.js +1 -11
- package/server/modules/vouchers/vo-pdx.js +1 -9
- package/server/modules/vouchers/vo-pgh.js +1 -19
- package/server/modules/vouchers/vo-pht.js +1 -7
- package/server/modules/vouchers/vo-pkc.js +1 -7
- package/server/modules/vouchers/vo-pkh.js +1 -10
- package/server/modules/vouchers/vo-pkk.js +1 -12
- package/server/modules/vouchers/vo-pkt.js +1 -13
- package/server/modules/vouchers/vo-pn1.js +1 -33
- package/server/modules/vouchers/vo-pn2.js +1 -16
- package/server/modules/vouchers/vo-pn3.js +1 -18
- package/server/modules/vouchers/vo-pn5.js +1 -19
- package/server/modules/vouchers/vo-pn6.js +1 -18
- package/server/modules/vouchers/vo-pn9.js +1 -22
- package/server/modules/vouchers/vo-pnc.js +1 -20
- package/server/modules/vouchers/vo-pnh.js +1 -20
- package/server/modules/vouchers/vo-pnk.js +1 -14
- package/server/modules/vouchers/vo-pnknpp.js +1 -12
- package/server/modules/vouchers/vo-po1.js +1 -15
- package/server/modules/vouchers/vo-ppb.js +1 -8
- package/server/modules/vouchers/vo-pt1.js +1 -21
- package/server/modules/vouchers/vo-pt5.js +1 -15
- package/server/modules/vouchers/vo-ptl.js +1 -8
- package/server/modules/vouchers/vo-purchase_contract.js +1 -9
- package/server/modules/vouchers/vo-pxc.js +1 -22
- package/server/modules/vouchers/vo-pxh.js +1 -28
- package/server/modules/vouchers/vo-pxk.js +1 -15
- package/server/modules/vouchers/vo-pxknpp.js +1 -14
- package/server/modules/vouchers/vo-qts.js +1 -12
- package/server/modules/vouchers/vo-sale_contract.js +1 -11
- package/server/modules/vouchers/vo-shipbook.js +1 -17
- package/server/modules/vouchers/vo-so1.js +1 -126
- package/server/modules/vouchers/vo-so2.js +1 -37
- package/server/modules/vouchers/vo-so3.js +1 -41
- package/server/modules/vouchers/vo-so5.js +1 -57
- package/server/modules/vouchers/vo-so7.js +1 -97
- package/server/modules/vouchers/vo-so9.js +1 -119
- package/server/modules/vouchers/vo-vanchuyen.js +1 -14
- package/server/modules/vouchers/vo-xhd.js +1 -33
- package/server/route.js +1 -51
- package/server/services/invoiceFetcher.js +1 -15
- package/server/sslConfig.js +1 -2
- package/server/transactionMiddleware.js +1 -5
- package/server/workers/backupApp.js +1 -9
- package/server/workers/calcGrid.js +1 -9
- package/server/workers/customerOnImport.js +1 -8
- package/server/workers/dmvtOnImport.js +1 -9
- package/server/workers/excelParser.js +1 -9
- package/server/workers/inputWorker.js +1 -6
- package/server/workers/pushNotify.js +1 -10
- package/server/workers/reportWorker.js +1 -7
- package/server/workers/restoreApp.js +1 -23
- package/server/workers/runScript.js +1 -4
- package/server/workers/sendEmail.js +1 -13
- package/server/workers/webhook.js +1 -5
|
@@ -1,10 +1 @@
|
|
|
1
|
-
const PostBook=require("../../libs/post-book"),dvcs=global.getModel("dvcs"),dmvt=global.getModel("dmvt"),dmdt=global.getModel("dmdt"),congdoansx=global.getModel("congdoansx"),lenhsx=global.getModel("lenhsx"),sokhocapphat=global.getModel("sokhocapphat"),dmkho=global.getModel("dmkho"),sale_contract=global.getModel("sale_contract"),pxk=global.getModel("pxk"),model=global.getModel("lenhcapphat"),trangthai=global.getModel("trangthai"),controller=require("../../controllers/controller"),async=require("async"),
|
|
2
|
-
ma_ct="LENHCAPPHAT";
|
|
3
|
-
module.exports=function($contr_router$$){$contr_router$$=new controller($contr_router$$,model,ma_ct.toLowerCase(),{isVoucher:!0,check_stock:!1,sort:{ngay_ct:-1,so_ct:-1}});$contr_router$$.route();$contr_router$$.post=function($obj$$,$fn$$){$fn$$||=function(){};async.series({post_sokhocapphat:function($callback$$){(new PostBook($obj$$,$obj$$.details,sokhocapphat,function($detail$$,$callback$$){$detail$$.nxt=1;$detail$$.ma_kho=$obj$$.ma_kho||$detail$$.ma_kho;$detail$$.he_so_qd=1;$detail$$.sl_nhap=$detail$$.so_luong;
|
|
4
|
-
$detail$$.sl_nhap_qd=$detail$$.sl_nhap*$detail$$.he_so_qd;$detail$$.id_lenhcapphat=$obj$$._id.toString();$obj$$.ma_gd=="1"&&($detail$$.pn_gia_tb=!1);$callback$$($detail$$)})).run(function($e$$,$rs$$){$callback$$($e$$,$rs$$)})}},function($e$$,$rs$$){$fn$$($e$$,$rs$$)})};const $valid$$=function($user$$,$obj$$,$next$$){$next$$(null,$obj$$)};$contr_router$$.creating=function($user$$,$obj$$,$next$$){$obj$$.details||($obj$$.details=[]);$valid$$($user$$,$obj$$,function($error$$){if($error$$)return $next$$($error$$);
|
|
5
|
-
$next$$(null,$obj$$)})};$contr_router$$.created=function($user$$,$obj$$,$next$$){$next$$(null,$obj$$)};$contr_router$$.updating=function($user$$,$data$$,$obj$$,$next$$){$valid$$($user$$,$data$$,function($error$$){if($error$$)return $next$$($error$$);$next$$(null,$data$$,$obj$$)})};$contr_router$$.updated=function($user$$,$obj$$,$next$$){$next$$(null,$obj$$)};$contr_router$$.deleting=function($user$$,$obj$$,$next$$){$next$$(null,$obj$$)};$contr_router$$.view=function($user$$,$items$$,$fn$$){const $id_app$$=
|
|
6
|
-
$user$$.current_id_app;async.series({dv:function($callback$$){$items$$.joinModel($id_app$$,dvcs,[{akey:"ma_dvcs",bkey:"_id",fields:[{name:"ten_dvcs",value:"ten_dvcs"}]}],function(){$callback$$()})},dt:function($callback$$){$items$$.joinModel($id_app$$,dmdt,[{akey:"ma_dt",bkey:"ma_dt",fields:[{name:"ten_dt",value:"ten_dt"}]}],function(){$callback$$()})},trangthai:function($callback$$){$items$$.joinModel2(null,trangthai,[{where:{trang_thai:"ma_trang_thai",ma_ct:"ma_ct"},fields:["ten_trang_thai","color"]}],
|
|
7
|
-
function(){$callback$$()})},kho:function($callback$$){$items$$.joinModel2(null,dmkho,[{where:{ma_kho:"ma_kho"},fields:["ten_kho"]}],function(){$callback$$()})},tinhtong:function($callback$$){$items$$.forEach($item$$=>{$item$$.t_sl=($item$$.details||[]).csum("so_luong")});$callback$$()},details_vt:function($callback$$){async.each($items$$,function($r$$,$callback1$$){($r$$.details||[]).joinModel2($id_app$$,dmvt,[{where:"ma_vt",fields:["ten_vt","tk_vt"]}],function(){$callback1$$()})},function(){$callback$$()})},
|
|
8
|
-
san_pham:function($callback$$){async.each($items$$,function($r$$,$callback1$$){($r$$.details||[]).joinModel2($id_app$$,dmvt,[{where:{ma_sp:"ma_vt"},fields:{ten_sp:"ten_vt"}}],function(){$callback1$$()})},function(){$callback$$()})},sale_contract:function($callback$$){$items$$.joinModel2($id_app$$,sale_contract,{where:{id_contract:"_id"},fields:{so_ct_contract:"so_ct"}},function(){$callback$$()})},lenhsx:function($callback$$){$items$$.joinModel2($id_app$$,lenhsx,{where:{id_lenhsx:"_id"},fields:{so_lenh_sx:"so_ct"}},
|
|
9
|
-
function(){$callback$$()})},congdoansx:function($callback$$){async.each($items$$,function($r$$,$callback1$$){($r$$.details||[]).joinModel2($id_app$$,congdoansx,{where:{ma_cong_doan:"ma_cong_doan"},fields:{ten_cong_doan:"ten_cong_doan"}},function(){$callback1$$()})},function(){$callback$$()})}},function(){async.mapSeries($items$$,($item$$,$callback$$)=>{pxk.find({id_lenhcapphat:$item$$._id}).lean().exec(($e$$,$pxks$$)=>{if(!$item$$.details)return $callback$$();$item$$.details.forEach($d$$=>{$d$$.sl_da_xuat=
|
|
10
|
-
$pxks$$.map($xk$$=>$xk$$.details.filter($_d$$=>$d$$.ma_vt===$_d$$.ma_vt).csum("sl_xuat")).reduce(($a$$,$b$$)=>$a$$+$b$$,0)});$item$$.t_sl_da_xuat=$pxks$$.map($xk$$=>$xk$$.details.csum("sl_xuat")).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$callback$$()})},()=>{$fn$$(null,$items$$)})})}};
|
|
1
|
+
function _0x511f(_0x2f9ea8,_0x240d91){const _0x108b45=_0x108b();return _0x511f=function(_0x511fa2,_0x4eb1af){_0x511fa2=_0x511fa2-0x95;let _0x19688f=_0x108b45[_0x511fa2];if(_0x511f['InkGGZ']===undefined){var _0x1d76f0=function(_0x30a4f0){const _0x229ef9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2f2d84='',_0x5c2a38='';for(let _0x3a3114=0x0,_0x39e42e,_0x54ad8e,_0x2ab2ad=0x0;_0x54ad8e=_0x30a4f0['charAt'](_0x2ab2ad++);~_0x54ad8e&&(_0x39e42e=_0x3a3114%0x4?_0x39e42e*0x40+_0x54ad8e:_0x54ad8e,_0x3a3114++%0x4)?_0x2f2d84+=String['fromCharCode'](0xff&_0x39e42e>>(-0x2*_0x3a3114&0x6)):0x0){_0x54ad8e=_0x229ef9['indexOf'](_0x54ad8e);}for(let _0x17cc3d=0x0,_0x4919da=_0x2f2d84['length'];_0x17cc3d<_0x4919da;_0x17cc3d++){_0x5c2a38+='%'+('00'+_0x2f2d84['charCodeAt'](_0x17cc3d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5c2a38);};_0x511f['rsnOaU']=_0x1d76f0,_0x2f9ea8=arguments,_0x511f['InkGGZ']=!![];}const _0x3ca5dc=_0x108b45[0x0],_0x2f94c4=_0x511fa2+_0x3ca5dc,_0x5ec31b=_0x2f9ea8[_0x2f94c4];return!_0x5ec31b?(_0x19688f=_0x511f['rsnOaU'](_0x19688f),_0x2f9ea8[_0x2f94c4]=_0x19688f):_0x19688f=_0x5ec31b,_0x19688f;},_0x511f(_0x2f9ea8,_0x240d91);}const _0x11882b=_0x511f;(function(_0x330037,_0x186bf0){const _0xa46caf=_0x511f,_0x3df389=_0x330037();while(!![]){try{const _0x282c64=parseInt(_0xa46caf(0xad))/0x1*(parseInt(_0xa46caf(0xaf))/0x2)+-parseInt(_0xa46caf(0x148))/0x3+-parseInt(_0xa46caf(0xcd))/0x4+parseInt(_0xa46caf(0xf2))/0x5+-parseInt(_0xa46caf(0xec))/0x6+parseInt(_0xa46caf(0x9a))/0x7*(parseInt(_0xa46caf(0x9e))/0x8)+-parseInt(_0xa46caf(0x11b))/0x9*(-parseInt(_0xa46caf(0x117))/0xa);if(_0x282c64===_0x186bf0)break;else _0x3df389['push'](_0x3df389['shift']());}catch(_0x4a0caf){_0x3df389['push'](_0x3df389['shift']());}}}(_0x108b,0xd4e34));function _0x108b(){const _0xc48719=['zeP4zLm','EeHVENe','mte1mMHMvMzKzq','zxHLyW','C29Fy3q','Ee9QB1a','s2rxtfu','zM54Ahq','DgvUx2TOBW','DxrxrKy','DMLLDW','rxLpuhy','rfDRseS','wfvHvvu','A1jOzfm','AfrSCvm','AxfzzwG','C29RAg9JyxbWAgf0','CLnqtwK','tu50CNm','Df9ZBf9Kyv94Dwf0','ruj2sw4','AxztDuW','z0f3Agu','BwfWtgLTAxq','lI4VlI4VBgLICY9WB3n0lwjVB2S','AxvIqLG','t3fPExG','x2LK','tgLoD1m','r3viyLC','Bgz5qxK','uM5kyuy','vKnVvK8','AM9PBK1VzgvS','CNzHzKC','zMv5Dfi','txnOEg4','zwfJAa','Dw9YAwm','y3jLyxrPBMC','D2ToCLq','wwzvsgq','DgvUx3z0','rhLbtNu','z3HHEwK','ANjhrK8','mZm1mdqZmgncENHfAW','rurQtwe','senkue8','vu1xuMK','DM5Hz0y','rKjrsLO','D3ztvuu','rwv4sgW','y3n1Bq','ruXhDNy','y3n0Dg4','AgvFC29FCwq','CerfrNa','zxnMwei','ChHR','qLj6z1q','z291qwq','zg1RAg8','mJG3ndLyq1vvCem','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCG','yMzpt1y','z2v0tw9KzwW','mJiWmgTqs2DgDa','vgvuBvG','wgzdENu','tevosenbufbiqvq','wufAqMK','tKHSv0K','zg12Da','Dg9tDhjPBMC','BwfFDNq','v2DqtfG','C2XFBMHHCa','BwfFA2HV','shDQyw8','ExLNBK0','Bgfyve0','mti4nePRtgX6qG','BwfFy29Uz19KB2fU','mJyZmfD1A1ztsW','DgTFDNq','Bg1XEfu','yKHnsNi','v3L1Bfa','y29Uz2rVyw5ZEa','uKPAAue','C2fSzv9JB250CMfJDa','Cg5Fz2LHx3rI','y29SB3i','EgnVquO','B3PZv0q','werfCLq','tunyrMG','C2XFEhvHDa','D2LkuwW','CwXRwfO','y3zVEuW','CgfYywXSzwW','z01cDxa','DhjHBMD0AgfP','D0XiBKW','zM9YrwfJAa','ugDQwfe','sgfxy3u','BMDeu0q','CezuyLi','BwfW','AuHICgq','suT6Cgy','nJi1nty1nKHKBuvyBG','y2ncEgG','z053D2m','B1Per28','sKLUDui','CgLZq0S','BgvHBG','DgvUx3rYyw5Nx3rOywK','DgvUx2nVBMDFzg9HBG','rfzKCKO','BhnuzgG','vMTSyu8','wu9Xz0S','AxnQCu8','tvnnuwG','qu15Ahq','vejZBwG','wNPLtem','zxHWB3j0CW','twLkthi','Ee1PBhC','z05Vz28','C29FBhvVBMC','BMTetfG','z3fYAMe','EwTArfe','ve91A1i','C2XFzgfFEhvHDa','Be56wxi','Afzzvum','zKLMsgi','mtG0otK1mgfXsgvAsq','CNvU','DwLdBvm','zhv2ruO','BwfFzhq','B0TfyMi','ndK3mtKYmgnTqvnHqq','AM9PBK1VzgvSmG','BfnssNu','Bg9oyLu','AgfQs2C','BwfFz2q','CM91Dgu','C3PmtfG','CK5trLa','v3Ppq24','zMLSDgvY','AfzjDu4','t3D0zfm','u2TNA2C','rvHMrvu','qvP2vvO','DxbKyxrLza','yxn5BMm','zgv0ywLSCW','CMvKDwnL','tuTlsuG','vLLht0i','zM1SsxO','EeD4q1m','A3b2uMW','qMPmq0u','uw5OzwC','uuvYvuu','sLrmuNG','CxDQwuu','CwngyNm','A3jqz0m','s3nbzLa','BKvcyu8','B0nosvu','DgvUx2r0','BMj1wvG','mZGXmeLNug1Asq','y3rIvKq'];_0x108b=function(){return _0xc48719;};return _0x108b();}const PostBook=require(_0x11882b(0x132)),dmvt=global['getModel'](_0x11882b(0xa4)),dmdt=global[_0x11882b(0x9d)]('dmdt'),congdoansx=global['getModel'](_0x11882b(0xb4)),lenhsx=global['getModel']('lenhsx'),sokhocapphat=global['getModel'](_0x11882b(0x12a)),dmkho=global[_0x11882b(0x9d)](_0x11882b(0x99)),sale_contract=global[_0x11882b(0x9d)](_0x11882b(0xb6)),pxk=global[_0x11882b(0x9d)](_0x11882b(0x96)),model=global['getModel']('lenhcapphat'),trangthai=global[_0x11882b(0x9d)](_0x11882b(0xc3)),controller=require(_0x11882b(0x9b)),async=require(_0x11882b(0x103)),ma_ct=_0x11882b(0xa1);module[_0x11882b(0xdf)]=function(_0x34915a){const _0x2bd441=_0x11882b,_0x2982d3={'fmlIz':_0x2bd441(0xa6),'kRhdS':function(_0x201089){return _0x201089();},'RJZiA':function(_0x41a86a,_0x4ea84e){return _0x41a86a===_0x4ea84e;},'VYGOB':_0x2bd441(0x113),'hajKg':_0x2bd441(0xe2),'bHMJr':_0x2bd441(0xc9),'lfyAy':function(_0x53b8fc,_0x464ebc,_0x1c5bb9){return _0x53b8fc(_0x464ebc,_0x1c5bb9);},'ykZDQ':_0x2bd441(0x10f),'BBidY':function(_0x2f187e,_0x1c4d8d){return _0x2f187e!==_0x1c4d8d;},'AMyht':_0x2bd441(0xd1),'gqrja':'ZPyWZ','TzoiO':function(_0x382912,_0x3a0ced,_0x29f180){return _0x382912(_0x3a0ced,_0x29f180);},'XUaUU':function(_0x48d7e7,_0x33a71c){return _0x48d7e7(_0x33a71c);},'nfjKv':function(_0x367d71,_0x50abb4,_0x32fa10){return _0x367d71(_0x50abb4,_0x32fa10);},'loNbU':_0x2bd441(0x13c),'rSPMi':function(_0x23f475,_0x2c05a7,_0x5d00e6){return _0x23f475(_0x2c05a7,_0x5d00e6);},'WgPLX':function(_0x14f8e8,_0x24fca3,_0x5b36f8,_0x57dd12){return _0x14f8e8(_0x24fca3,_0x5b36f8,_0x57dd12);},'ccBxh':function(_0x551b80,_0x52dd81,_0x536579){return _0x551b80(_0x52dd81,_0x536579);},'WzOCn':'ma_trang_thai','gNwwc':'ma_ct','EXfEU':_0x2bd441(0xd4),'wiJQl':_0x2bd441(0xb8),'XDErT':function(_0x2b09e6,_0x22aa76){return _0x2b09e6!==_0x22aa76;},'lmqxU':function(_0x13a041,_0x36de86){return _0x13a041!==_0x36de86;},'ndDpY':_0x2bd441(0xc4),'cvoyL':function(_0x45deb2){return _0x45deb2();},'kpvRl':_0x2bd441(0xae),'OXEDn':_0x2bd441(0xd5),'rNSFP':_0x2bd441(0x101),'hVIuN':'ten_vt','ELGvv':_0x2bd441(0x11a),'LiNwS':_0x2bd441(0x135),'NHlWI':_0x2bd441(0x11d),'lsTdh':function(_0x3eac38){return _0x3eac38();},'ZyEuS':_0x2bd441(0x146),'VklaO':function(_0x4db33e){return _0x4db33e();},'utWFF':_0x2bd441(0xe1),'wkNrT':function(_0x4b6d61){return _0x4b6d61();},'qlkXZ':function(_0x247039,_0x4a960b){return _0x247039===_0x4a960b;},'CalYt':'UfvlT','vnagF':_0x2bd441(0xc6),'fIfHb':_0x2bd441(0xf0),'HaWcu':_0x2bd441(0x115),'yygnM':function(_0x10bfdf){return _0x10bfdf();},'RnJaF':'Scuhf','qcQHY':_0x2bd441(0xa9),'inYvs':_0x2bd441(0x121),'bdcdJ':function(_0x534a1c,_0x164d51){return _0x534a1c!==_0x164d51;},'FBQJZ':_0x2bd441(0x145),'KsAfP':_0x2bd441(0x13d),'lSRJu':function(_0x4023ff,_0x533ccc,_0x11e9c7){return _0x4023ff(_0x533ccc,_0x11e9c7);},'Skgkg':function(_0x35c82d){return _0x35c82d();}},_0x1a0c7a=new controller(_0x34915a,model,ma_ct['toLowerCase'](),{'isVoucher':!![],'check_stock':![],'sort':{'ngay_ct':-0x1,'so_ct':-0x1}});_0x1a0c7a[_0x2bd441(0xf8)](),_0x1a0c7a['post']=function(_0xed6f5e,_0x67e352){const _0x2bb995=_0x2bd441,_0x189e25={'gLHap':_0x2982d3[_0x2bb995(0x108)],'MSMQh':_0x2bb995(0x144),'xcoAJ':function(_0x25a4f9){const _0x559883=_0x2bb995;return _0x2982d3[_0x559883(0x127)](_0x25a4f9);},'krPgC':function(_0x15690f){return _0x15690f();},'nbuYX':function(_0x50f3af,_0x1bd745){const _0x57bcad=_0x2bb995;return _0x2982d3[_0x57bcad(0xb5)](_0x50f3af,_0x1bd745);},'KdWLU':_0x2982d3[_0x2bb995(0x107)],'MCXFh':_0x2982d3[_0x2bb995(0xf6)],'EyKRy':function(_0x249637,_0x5570b6){return _0x249637*_0x5570b6;},'qcFbs':_0x2982d3[_0x2bb995(0xb2)],'UMWRi':function(_0xb12d41,_0x4304ba,_0x54a3b3){const _0x21c534=_0x2bb995;return _0x2982d3[_0x21c534(0x138)](_0xb12d41,_0x4304ba,_0x54a3b3);},'WyulP':_0x2982d3[_0x2bb995(0xe6)]};if(_0x2982d3['BBidY'](_0x2982d3[_0x2bb995(0xdc)],_0x2982d3[_0x2bb995(0xe5)])){if(!_0x67e352)_0x67e352=function(){};async['series']({'post_sokhocapphat':function(_0x10d6f1){const _0x42bd02=_0x2bb995,_0xde7417={'MNtrs':function(_0x2b76cd){const _0x21dea9=_0x511f;return _0x189e25[_0x21dea9(0xb9)](_0x2b76cd);},'isjqO':function(_0x50f572){const _0x27b8d6=_0x511f;return _0x189e25[_0x27b8d6(0x111)](_0x50f572);},'HhMOY':function(_0x264981,_0x17190e){const _0x2072e5=_0x511f;return _0x189e25[_0x2072e5(0x116)](_0x264981,_0x17190e);},'Mshxn':_0x189e25[_0x42bd02(0x11f)],'szLLX':_0x189e25[_0x42bd02(0xbc)],'MKKIH':function(_0x296bf9,_0x23b314){return _0x189e25['EyKRy'](_0x296bf9,_0x23b314);},'ZzeLC':function(_0x3aa0fd,_0x114ffa){return _0x3aa0fd!==_0x114ffa;},'ryLPf':_0x189e25[_0x42bd02(0x110)],'dozBb':function(_0x3cbb69,_0x32f40e){return _0x3cbb69(_0x32f40e);},'JwUrX':function(_0xe1b904,_0x2e3754,_0x4a9ff9){return _0x189e25['UMWRi'](_0xe1b904,_0x2e3754,_0x4a9ff9);}};if(_0x189e25[_0x42bd02(0xb3)]!==_0x42bd02(0x10f)){const _0x2726cb=_0x59f668[_0x42bd02(0x104)]||[];_0x2726cb[_0x42bd02(0xf3)](_0x145b76,_0x116505,[{'where':{'ma_sp':_0x189e25['gLHap']},'fields':{'ten_sp':_0x189e25[_0x42bd02(0xdb)]}}],function(){const _0x327007=_0x42bd02;_0xde7417[_0x327007(0x12c)](_0x841ff);});}else{const _0x123dc9=new PostBook(_0xed6f5e,_0xed6f5e[_0x42bd02(0x104)],sokhocapphat,function(_0x6acb33,_0x3baa58){const _0x311e07=_0x42bd02,_0x26cf36={'OwtdS':function(_0x95cc3f){return _0x95cc3f();},'DWkHK':function(_0x526400){const _0x404bc4=_0x511f;return _0xde7417[_0x404bc4(0xda)](_0x526400);}};if(_0xde7417['HhMOY'](_0xde7417[_0x311e07(0x13e)],_0xde7417[_0x311e07(0xf9)])){const _0x228a3a={'ivSuL':function(_0x488a24){const _0x2590a9=_0x311e07;return _0x26cf36[_0x2590a9(0xfe)](_0x488a24);}};_0x137ce5['find']({'id_lenhcapphat':_0x392193[_0x311e07(0x135)]})['lean']()[_0x311e07(0x11c)]((_0x5b5b9a,_0x40736f)=>{const _0x1d9d05=_0x311e07;if(!_0x27221d['details'])return _0x228a3a[_0x1d9d05(0x12f)](_0x1b1a94);_0x52dd8e[_0x1d9d05(0x104)][_0x1d9d05(0xc5)](_0x4f7d0d=>{const _0x1ecf8b=_0x1d9d05;_0x4f7d0d['sl_da_xuat']=_0x40736f[_0x1ecf8b(0xca)](_0x49ff53=>_0x49ff53[_0x1ecf8b(0x104)][_0x1ecf8b(0xfc)](_0x55b2c0=>_0x4f7d0d[_0x1ecf8b(0xa6)]===_0x55b2c0[_0x1ecf8b(0xa6)])['csum'](_0x1ecf8b(0xbd)))[_0x1ecf8b(0x105)]((_0x415ae2,_0x6df9a7)=>_0x415ae2+_0x6df9a7,0x0);}),_0x4ee158[_0x1d9d05(0x12d)]=_0x40736f[_0x1d9d05(0xca)](_0x164bdc=>_0x164bdc[_0x1d9d05(0x104)][_0x1d9d05(0x150)](_0x1d9d05(0xbd)))[_0x1d9d05(0x105)]((_0xaba468,_0x34ea2d)=>_0xaba468+_0x34ea2d,0x0),_0x228a3a[_0x1d9d05(0x12f)](_0x58770f);});}else{_0x6acb33['nxt']=0x1,_0x6acb33[_0x311e07(0xa9)]=_0xed6f5e[_0x311e07(0xa9)]||_0x6acb33[_0x311e07(0xa9)],_0x6acb33[_0x311e07(0x153)]=0x1,_0x6acb33[_0x311e07(0xa8)]=_0x6acb33['so_luong'],_0x6acb33['sl_nhap_qd']=_0xde7417[_0x311e07(0x106)](_0x6acb33[_0x311e07(0xa8)],_0x6acb33[_0x311e07(0x153)]),_0x6acb33['id_lenhcapphat']=_0xed6f5e[_0x311e07(0x135)][_0x311e07(0xa5)]();if(_0xed6f5e[_0x311e07(0xf7)]=='1'){if(_0xde7417[_0x311e07(0xde)](_0xde7417['ryLPf'],_0x311e07(0x119)))_0x6acb33[_0x311e07(0xb7)]=![];else{if(!_0x3d1ad1[_0x311e07(0x104)])return _0x2f4368();_0x587c3e[_0x311e07(0x104)][_0x311e07(0xc5)](_0x3d6dab=>{const _0x1f170b=_0x311e07;_0x3d6dab[_0x1f170b(0xe8)]=_0x6b4d7['map'](_0x369296=>_0x369296[_0x1f170b(0x104)][_0x1f170b(0xfc)](_0x58c09c=>_0x3d6dab[_0x1f170b(0xa6)]===_0x58c09c[_0x1f170b(0xa6)])[_0x1f170b(0x150)](_0x1f170b(0xbd)))[_0x1f170b(0x105)]((_0x517d41,_0x35a9f7)=>_0x517d41+_0x35a9f7,0x0);}),_0x4ca925['t_sl_da_xuat']=_0x5f59f8[_0x311e07(0xca)](_0x85f6f8=>_0x85f6f8[_0x311e07(0x104)][_0x311e07(0x150)](_0x311e07(0xbd)))[_0x311e07(0x105)]((_0x2759ea,_0x18dade)=>_0x2759ea+_0x18dade,0x0),_0x26cf36[_0x311e07(0x125)](_0x34c98a);}}_0xde7417['dozBb'](_0x3baa58,_0x6acb33);}});_0x123dc9[_0x42bd02(0xed)](function(_0x1008b1,_0x527545){_0xde7417['JwUrX'](_0x10d6f1,_0x1008b1,_0x527545);});}}},function(_0x251045,_0x2ebdda){_0x67e352(_0x251045,_0x2ebdda);});}else _0x189e25[_0x2bb995(0x14b)](_0x346ca9,_0x31fde6,_0x4e4364);};const _0x402c2a=function(_0x5591b4,_0x159b13,_0x312c2b){const _0x2ea689=_0x2bd441;_0x2982d3[_0x2ea689(0x138)](_0x312c2b,null,_0x159b13);};_0x1a0c7a[_0x2bd441(0x141)]=function(_0x38e668,_0x3f2af7,_0x3e9224){const _0x2162f6=_0x2bd441,_0x375457={'ibdJH':function(_0x3da554,_0x519cf1){return _0x3da554(_0x519cf1);},'laXTM':function(_0x3bd79e,_0xf12db4,_0xfb7f0d){return _0x2982d3['TzoiO'](_0x3bd79e,_0xf12db4,_0xfb7f0d);}};if(!_0x3f2af7['details'])_0x3f2af7[_0x2162f6(0x104)]=[];_0x402c2a(_0x38e668,_0x3f2af7,function(_0x65e5a3){const _0x4ee47e=_0x2162f6;if(_0x65e5a3)return _0x375457['ibdJH'](_0x3e9224,_0x65e5a3);_0x375457[_0x4ee47e(0xac)](_0x3e9224,null,_0x3f2af7);});},_0x1a0c7a['created']=function(_0x3277a9,_0x5a759c,_0x547fd6){const _0x96c093=_0x2bd441;if('bZHQv'!==_0x2982d3[_0x96c093(0xf5)])_0x2982d3[_0x96c093(0x12b)](_0x547fd6,null,_0x5a759c);else{if(_0x13cb85)return _0x2982d3[_0x96c093(0x126)](_0x3ebf2c,_0x3a6bce);_0x2982d3['nfjKv'](_0x5ef43e,null,_0x26c273);}},_0x1a0c7a['updating']=function(_0x35d930,_0x9bb084,_0x16f8b9,_0x1ea34a){const _0x9d4de1={'TeTmX':function(_0x31ed02,_0x53b7c4){const _0x43b35e=_0x511f;return _0x2982d3[_0x43b35e(0x126)](_0x31ed02,_0x53b7c4);},'oKEbb':function(_0x12ac90,_0x2a83f9,_0x2f9c02,_0x16e8e5){return _0x2982d3['WgPLX'](_0x12ac90,_0x2a83f9,_0x2f9c02,_0x16e8e5);}};_0x2982d3['WgPLX'](_0x402c2a,_0x35d930,_0x9bb084,function(_0x47c45b){const _0x4d61bd=_0x511f;if(_0x47c45b)return _0x9d4de1[_0x4d61bd(0x9f)](_0x1ea34a,_0x47c45b);_0x9d4de1[_0x4d61bd(0xf1)](_0x1ea34a,null,_0x9bb084,_0x16f8b9);});},_0x1a0c7a[_0x2bd441(0x102)]=function(_0x4cc527,_0x43a6e2,_0x309be0){_0x2982d3['lfyAy'](_0x309be0,null,_0x43a6e2);},_0x1a0c7a['deleting']=function(_0x12f5e5,_0x2914a6,_0x1d2ee6){const _0x18a066=_0x2bd441;_0x2982d3[_0x18a066(0xce)](_0x1d2ee6,null,_0x2914a6);},_0x1a0c7a[_0x2bd441(0x123)]=function(_0xcccef8,_0x2ec538,_0x48fde8){const _0x59e53c=_0x2bd441,_0x5c469f={'wvSUE':function(_0x527766){const _0x473282=_0x511f;return _0x2982d3[_0x473282(0x127)](_0x527766);},'LuKaf':_0x2982d3[_0x59e53c(0xeb)],'uiCmS':_0x2982d3[_0x59e53c(0xc7)],'gMBup':function(_0x3bacf1){const _0x141fd2=_0x59e53c;return _0x2982d3[_0x141fd2(0xab)](_0x3bacf1);},'bfOOV':function(_0x1858a3,_0x56d667){const _0x128b8d=_0x59e53c;return _0x2982d3[_0x128b8d(0xbf)](_0x1858a3,_0x56d667);},'xGxCS':_0x2982d3[_0x59e53c(0x139)],'JTLRx':_0x2982d3['qcQHY'],'lNzYr':_0x2982d3['inYvs'],'EDjMa':function(_0x2808ac,_0xc6f0f6){const _0x33c4d5=_0x59e53c;return _0x2982d3[_0x33c4d5(0xb1)](_0x2808ac,_0xc6f0f6);},'iqYeh':_0x59e53c(0x133),'jrGFO':function(_0xdba72d){return _0x2982d3['lsTdh'](_0xdba72d);},'EBvIn':function(_0x53ccbe){return _0x53ccbe();},'YGbuN':function(_0x211636,_0x5f1b27){return _0x2982d3['bdcdJ'](_0x211636,_0x5f1b27);},'GuHbW':_0x2982d3[_0x59e53c(0x14d)],'VCoVO':_0x2982d3[_0x59e53c(0x112)],'YOqgK':_0x2982d3[_0x59e53c(0x108)],'EyOPv':_0x59e53c(0x144),'ozsWD':function(_0x35eff4,_0x2ea131,_0x4ca55f){const _0x10cd9c=_0x59e53c;return _0x2982d3[_0x10cd9c(0xf4)](_0x35eff4,_0x2ea131,_0x4ca55f);},'KqCGT':function(_0x73c4ac){const _0x4bf0f3=_0x59e53c;return _0x2982d3[_0x4bf0f3(0xff)](_0x73c4ac);},'nkDLX':_0x59e53c(0xc8),'hxJwg':_0x59e53c(0xef),'BjLCE':'ma_cong_doan','dhCNQ':_0x2982d3['OXEDn']},_0xfdc47b=_0xcccef8['current_id_app'];async[_0x59e53c(0xc1)]({'dt':function(_0x27fffe){const _0x31b509=_0x59e53c;_0x2ec538[_0x31b509(0x13b)](_0xfdc47b,dmdt,[{'akey':'ma_dt','bkey':_0x5c469f['LuKaf'],'fields':[{'name':_0x31b509(0x115),'value':_0x5c469f[_0x31b509(0xee)]}]}],function(){const _0x2c6839=_0x31b509;_0x5c469f[_0x2c6839(0x14e)](_0x27fffe);});},'trangthai':function(_0x2287e1){const _0x16c7b2=_0x59e53c,_0x5bae1c={'csttn':_0x2982d3[_0x16c7b2(0xfb)],'gouAd':_0x2982d3['gNwwc'],'fnxht':_0x2982d3[_0x16c7b2(0x100)],'EexHl':_0x2982d3[_0x16c7b2(0xbe)]};_0x2982d3['XDErT'](_0x16c7b2(0xe0),'wyIwZ')?_0x2ec538[_0x16c7b2(0xf3)](null,trangthai,[{'where':{'trang_thai':_0x2982d3[_0x16c7b2(0xfb)],'ma_ct':_0x2982d3[_0x16c7b2(0xcf)]},'fields':[_0x16c7b2(0xd4),_0x2982d3[_0x16c7b2(0xbe)]]}],function(){const _0x282ce0=_0x16c7b2,_0x202274={'enmTh':function(_0x1bfb28){return _0x5c469f['gMBup'](_0x1bfb28);}};_0x5c469f[_0x282ce0(0x9c)]('Scuhf',_0x5c469f[_0x282ce0(0x109)])?_0x2287e1():_0x42106b['joinModel2'](null,_0x595ddb,[{'where':{'trang_thai':_0x5bae1c[_0x282ce0(0x152)],'ma_ct':_0x5bae1c[_0x282ce0(0x98)]},'fields':[_0x5bae1c[_0x282ce0(0x120)],_0x5bae1c[_0x282ce0(0x14f)]]}],function(){_0x202274['enmTh'](_0xee60ec);});}):_0x456947['joinModel2'](null,_0x4767a7,[{'where':{'ma_kho':_0x5c469f[_0x16c7b2(0x10e)]},'fields':[_0x5c469f[_0x16c7b2(0xe9)]]}],function(){_0x51561c();});},'kho':function(_0x3ee1d2){const _0xb9ddd7=_0x59e53c;_0x2ec538[_0xb9ddd7(0xf3)](null,dmkho,[{'where':{'ma_kho':'ma_kho'},'fields':[_0xb9ddd7(0x121)]}],function(){const _0x50bf29=_0xb9ddd7,_0x3f1734={'HaXPp':function(_0x10cfec){const _0x92b754=_0x511f;return _0x5c469f[_0x92b754(0xc2)](_0x10cfec);}};_0x5c469f[_0x50bf29(0x149)](_0x50bf29(0x133),_0x5c469f[_0x50bf29(0x129)])?_0x3f1734['HaXPp'](_0x2b4a2f):_0x5c469f[_0x50bf29(0x147)](_0x3ee1d2);});},'tinhtong':function(_0x4b8afe){const _0xc61eb8=_0x59e53c,_0x111049={'QWuVE':function(_0x5a232f){return _0x5a232f();}};_0x2982d3[_0xc61eb8(0xb1)](_0x2982d3['ndDpY'],_0xc61eb8(0x114))?(_0x2ec538[_0xc61eb8(0xc5)](_0x24d52e=>{const _0x211186=_0xc61eb8,_0x319a11={'esfXB':function(_0x3a938a){const _0x3db578=_0x511f;return _0x5c469f[_0x3db578(0x12e)](_0x3a938a);}};_0x5c469f['YGbuN'](_0x5c469f[_0x211186(0x137)],_0x5c469f[_0x211186(0x13a)])?_0x24d52e['t_sl']=(_0x24d52e[_0x211186(0x104)]||[])['csum'](_0x211186(0xe3)):_0x319a11[_0x211186(0x95)](_0x52e34b);}),_0x2982d3[_0xc61eb8(0xc0)](_0x4b8afe)):_0x111049['QWuVE'](_0x1a373f);},'details_vt':function(_0x328527){const _0x4ea1be=_0x59e53c,_0x1c8c93={'aMwky':_0x2982d3[_0x4ea1be(0x10a)],'kxMWW':_0x2982d3['OXEDn'],'uoric':function(_0x4d6595){const _0x45f4f3=_0x4ea1be;return _0x2982d3[_0x45f4f3(0x127)](_0x4d6595);},'hTlqS':function(_0x350a2d,_0x2a526e){return _0x350a2d!==_0x2a526e;},'pDEFp':_0x2982d3[_0x4ea1be(0xfa)],'YAZBi':_0x2982d3['fmlIz'],'oZDGo':_0x2982d3[_0x4ea1be(0xfd)],'BRzgT':_0x4ea1be(0xb0)};async['each'](_0x2ec538,function(_0x34e4ea,_0x28bb2e){const _0x45ddb3=_0x4ea1be,_0x49ef8b={'Hwjao':_0x1c8c93['aMwky'],'gAwhe':_0x1c8c93['kxMWW'],'IKzpf':function(_0x4215b5){const _0x5f31ae=_0x511f;return _0x1c8c93[_0x5f31ae(0x140)](_0x4215b5);},'IJtnK':function(_0x1c79dc){const _0x37f408=_0x511f;return _0x1c8c93[_0x37f408(0x140)](_0x1c79dc);}};if(_0x1c8c93[_0x45ddb3(0x128)](_0x45ddb3(0x101),_0x1c8c93[_0x45ddb3(0x154)]))_0x1b96a8[_0x45ddb3(0x13f)](_0x3a6459,function(_0x5ed668,_0x193bc0){const _0xe2e573=_0x45ddb3,_0x5d26d3=_0x5ed668[_0xe2e573(0x104)]||[];_0x5d26d3[_0xe2e573(0xf3)](_0x3152fc,_0x51c95f,{'where':{'ma_cong_doan':_0x49ef8b[_0xe2e573(0xaa)]},'fields':{'ten_cong_doan':_0x49ef8b[_0xe2e573(0x130)]}},function(){_0x193bc0();});},function(){const _0x37913e=_0x45ddb3;_0x49ef8b[_0x37913e(0xcc)](_0x1416fe);});else{const _0x2a4ca3=_0x34e4ea[_0x45ddb3(0x104)]||[];_0x2a4ca3[_0x45ddb3(0xf3)](_0xfdc47b,dmvt,[{'where':_0x1c8c93[_0x45ddb3(0xa2)],'fields':[_0x1c8c93[_0x45ddb3(0xd0)],_0x1c8c93[_0x45ddb3(0x97)]]}],function(){_0x49ef8b['IJtnK'](_0x28bb2e);});}},function(){const _0x14baf0=_0x4ea1be;_0x1c8c93[_0x14baf0(0x140)](_0x328527);});},'san_pham':function(_0x6004a5){const _0x2bfcf0=_0x59e53c;async[_0x2bfcf0(0x13f)](_0x2ec538,function(_0x5da16f,_0x575194){const _0x578e45=_0x2bfcf0,_0x41dc2e=_0x5da16f[_0x578e45(0x104)]||[];_0x41dc2e[_0x578e45(0xf3)](_0xfdc47b,dmvt,[{'where':{'ma_sp':_0x5c469f[_0x578e45(0xd9)]},'fields':{'ten_sp':_0x5c469f[_0x578e45(0x124)]}}],function(){_0x575194();});},function(){_0x6004a5();});},'sale_contract':function(_0x2bca21){const _0x117042=_0x59e53c,_0x4f41dd={'XfCzu':function(_0x20305d){return _0x20305d();}};_0x2982d3[_0x117042(0xb5)](_0x2982d3[_0x117042(0x151)],_0x2982d3[_0x117042(0x151)])?_0x2ec538['joinModel2'](_0xfdc47b,sale_contract,{'where':{'id_contract':_0x2982d3[_0x117042(0x136)]},'fields':{'so_ct_contract':_0x2982d3[_0x117042(0xa3)]}},function(){const _0x2a6681=_0x117042;_0x4f41dd[_0x2a6681(0xa0)](_0x2bca21);}):_0x5c469f['jrGFO'](_0x5782c8);},'lenhsx':function(_0x149911){const _0x2cc6e7=_0x59e53c,_0x1c7c15={'QErUE':function(_0x5881e6){const _0x4e6bf7=_0x511f;return _0x2982d3[_0x4e6bf7(0xd7)](_0x5881e6);},'ZPsFP':'ma_cong_doan'};if(_0x2982d3['ZyEuS']!==_0x2cc6e7(0xcb))_0x2ec538[_0x2cc6e7(0xf3)](_0xfdc47b,lenhsx,{'where':{'id_lenhsx':_0x2982d3[_0x2cc6e7(0x136)]},'fields':{'so_lenh_sx':'so_ct'}},function(){_0x149911();});else{const _0x5bd847=_0x1b6f31[_0x2cc6e7(0x104)]||[];_0x5bd847[_0x2cc6e7(0xf3)](_0x91176c,_0x14c349,{'where':{'ma_cong_doan':_0x1c7c15['ZPsFP']},'fields':{'ten_cong_doan':_0x2cc6e7(0xd5)}},function(){const _0xac45c=_0x2cc6e7;_0x1c7c15[_0xac45c(0x10d)](_0x26a1dd);});}},'congdoansx':function(_0x5ed929){const _0x55f067=_0x59e53c,_0x726b71={'TBsmh':function(_0x4b9ba9){const _0x561614=_0x511f;return _0x2982d3[_0x561614(0xd8)](_0x4b9ba9);},'YfUHd':function(_0x481f3d,_0x2eeb8e,_0x501e30){return _0x481f3d(_0x2eeb8e,_0x501e30);}};_0x2982d3[_0x55f067(0xb5)](_0x2982d3[_0x55f067(0x122)],_0x2982d3[_0x55f067(0x122)])?async['each'](_0x2ec538,function(_0x3885a4,_0x36f532){const _0x290b50=_0x55f067,_0x20fa17={'DVdrJ':function(_0x1d5b65,_0x3cf351,_0x45b35e){const _0x42d55a=_0x511f;return _0x5c469f[_0x42d55a(0xba)](_0x1d5b65,_0x3cf351,_0x45b35e);},'ifbYy':function(_0x38ce35){return _0x5c469f['KqCGT'](_0x38ce35);}};if(_0x5c469f[_0x290b50(0xe4)]===_0x5c469f['hxJwg'])_0x20fa17[_0x290b50(0xd6)](_0x96f95,null,_0x29152a);else{const _0x4540d2=_0x3885a4[_0x290b50(0x104)]||[];_0x4540d2[_0x290b50(0xf3)](_0xfdc47b,congdoansx,{'where':{'ma_cong_doan':_0x5c469f[_0x290b50(0x10b)]},'fields':{'ten_cong_doan':_0x5c469f['dhCNQ']}},function(){_0x20fa17['ifbYy'](_0x36f532);});}},function(){const _0x14989d=_0x55f067;_0x726b71[_0x14989d(0xdd)](_0x5ed929);}):_0x726b71[_0x55f067(0x143)](_0xd5231e,null,_0x1fbf06);}},function(){const _0x4b30b4=_0x59e53c,_0x30ff60={'WLQCU':function(_0x31b665,_0x5676c0,_0xcaf001){const _0x47c7e4=_0x511f;return _0x2982d3[_0x47c7e4(0x138)](_0x31b665,_0x5676c0,_0xcaf001);},'pisCK':function(_0x49c828){const _0x4b22ba=_0x511f;return _0x2982d3[_0x4b22ba(0x142)](_0x49c828);},'Oqiyx':function(_0x5def99,_0x744ffb){const _0x4e1ff4=_0x511f;return _0x2982d3[_0x4e1ff4(0x126)](_0x5def99,_0x744ffb);},'ctbVD':function(_0x6953cc,_0x13b8b9,_0x5d7d83,_0x2f9c30){const _0x536684=_0x511f;return _0x2982d3[_0x536684(0xa7)](_0x6953cc,_0x13b8b9,_0x5d7d83,_0x2f9c30);},'eiEZw':function(_0x157c1b,_0x45504c){const _0x1ccb3f=_0x511f;return _0x2982d3[_0x1ccb3f(0xbf)](_0x157c1b,_0x45504c);},'LlcrX':_0x4b30b4(0xea)};_0x2982d3[_0x4b30b4(0xbb)](_0x2982d3['CalYt'],_0x2982d3[_0x4b30b4(0x14c)])?async[_0x4b30b4(0x131)](_0x2ec538,0x14,(_0x333c4c,_0xba6a04)=>{const _0x211df7=_0x4b30b4;if(_0x30ff60['eiEZw']('hVYUC',_0x30ff60['LlcrX']))pxk['find']({'id_lenhcapphat':_0x333c4c[_0x211df7(0x135)]})[_0x211df7(0xd3)]()[_0x211df7(0x11c)]((_0x5d5395,_0x928969)=>{const _0x1fb76d=_0x211df7,_0xe8d42={'xOjoP':function(_0x7086b5,_0x2e0724,_0x3eb9af){return _0x30ff60['WLQCU'](_0x7086b5,_0x2e0724,_0x3eb9af);},'HCJPO':_0x1fb76d(0x10c)};if(!_0x333c4c['details'])return _0x30ff60[_0x1fb76d(0xd2)](_0xba6a04);_0x333c4c['details'][_0x1fb76d(0xc5)](_0x1f9ead=>{const _0x2876a2=_0x1fb76d,_0x39a0b0={'TOukR':function(_0x2861c9,_0x42174c,_0x67f899){const _0xd016ab=_0x511f;return _0xe8d42[_0xd016ab(0x11e)](_0x2861c9,_0x42174c,_0x67f899);}};_0xe8d42[_0x2876a2(0x14a)]===_0xe8d42['HCJPO']?_0x1f9ead[_0x2876a2(0xe8)]=_0x928969[_0x2876a2(0xca)](_0x4fe275=>_0x4fe275[_0x2876a2(0x104)][_0x2876a2(0xfc)](_0x4c529b=>_0x1f9ead[_0x2876a2(0xa6)]===_0x4c529b[_0x2876a2(0xa6)])['csum']('sl_xuat'))['reduce']((_0x109dba,_0x201fea)=>_0x109dba+_0x201fea,0x0):_0x39a0b0[_0x2876a2(0xe7)](_0x4fff5d,null,_0x576341);}),_0x333c4c[_0x1fb76d(0x12d)]=_0x928969[_0x1fb76d(0xca)](_0x4182f6=>_0x4182f6[_0x1fb76d(0x104)][_0x1fb76d(0x150)](_0x1fb76d(0xbd)))[_0x1fb76d(0x105)]((_0x5ee03c,_0x20fbae)=>_0x5ee03c+_0x20fbae,0x0),_0xba6a04();});else{if(_0x4c4486)return _0x30ff60[_0x211df7(0x134)](_0x6884bf,_0x4b87a0);_0x30ff60[_0x211df7(0x118)](_0x5108fb,null,_0x1f7d17,_0x22759b);}},()=>{_0x48fde8(null,_0x2ec538);}):_0x57bdeb(_0x19b939,_0x4d37b1);});};};
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
const dvcs=global.getModel("dvcs"),dmvt=global.getModel("dmvt"),dmdt=global.getModel("dmdt"),dmbp=global.getModel("dmbp"),customer=global.getModel("customer"),congdoansx=global.getModel("congdoansx"),dinhmucsx=global.getModel("dinhmucsx"),sale_contract=global.getModel("sale_contract"),model=global.getModel("lenhsx"),Sosanxuat=global.getModel("sosanxuat"),trangthai=global.getModel("trangthai"),controller=require("../../controllers/controller"),PostBook=require("../../libs/post-book"),async=require("async"),
|
|
2
|
-
lenhcapphat=global.getModel("lenhcapphat"),ma_ct="LENHSX";
|
|
3
|
-
module.exports=function($contr_router$$){$contr_router$$=new controller($contr_router$$,model,ma_ct.toLowerCase(),{isVoucher:!0,check_stock:!1,sort:{ngay_ct:-1,so_ct:-1}});$contr_router$$.route();const $valid$$=function($user$$,$obj$$,$next$$){$next$$(null,$obj$$)};$contr_router$$.creating=function($user$$,$obj$$,$next$$){$obj$$.details||($obj$$.details=[]);$valid$$($user$$,$obj$$,function($error$$){if($error$$)return $next$$($error$$);$next$$(null,$obj$$)})};$contr_router$$.created=function($user$$,
|
|
4
|
-
$obj$$,$next$$){$next$$(null,$obj$$)};$contr_router$$.updating=function($user$$,$data$$,$obj$$,$next$$){$valid$$($user$$,$data$$,function($error$$){if($error$$)return $next$$($error$$);$next$$(null,$data$$,$obj$$)})};$contr_router$$.updated=function($user$$,$obj$$,$next$$){$next$$(null,$obj$$)};$contr_router$$.deleting=function($user$$,$obj$$,$next$$){$next$$(null,$obj$$)};$contr_router$$.post=function($obj$$,$fn$$){$fn$$||=function(){};async.series({post_sosanxuat:function($callback$$){let $details$$=
|
|
5
|
-
[];($obj$$.details||[]).forEach($detail$$=>{let $_detail$$={...$detail$$};delete $_detail$$.sl_ht;($_detail$$.cong_doan_sx||[]).forEach($congdoan$$=>{$details$$.push({...$_detail$$,...$congdoan$$,id_lenhsx:$obj$$._id.toString()})})});(new PostBook($obj$$,$details$$,Sosanxuat,function($detail$$,$callback$$){$callback$$($detail$$)})).run(function($e$$,$rs$$){$callback$$($e$$,$rs$$)})}},function($e$$,$rs$$){$fn$$($e$$,$rs$$)})};$contr_router$$.view=function($user$$,$items$$,$fn$$){let $id_app$$=$user$$.current_id_app;
|
|
6
|
-
async.series({dv:function($callback$$){$items$$.joinModel2($id_app$$,dvcs,[{where:$item$$=>({_id:$item$$.ma_dvcs}),fields:["ten_dvcs"]}],function(){$callback$$()})},cust:function($callback$$){$items$$.filter($i$$=>$i$$.ma_kh).joinModel2($id_app$$,customer,[{where:$item$$=>({ma_kh:$item$$.ma_kh}),fields:["ten_kh"]}],function(){$callback$$()})},dt:function($callback$$){$items$$.filter($i$$=>$i$$.ma_dt).joinModel2($id_app$$,dmdt,[{where:$item$$=>({ma_dt:$item$$.ma_dt}),fields:["ma_dt"]}],function(){$callback$$()})},
|
|
7
|
-
trangthai:function($callback$$){$items$$.joinModel2(null,trangthai,[{where:$item$$=>({ma_trang_thai:$item$$.trang_thai,ma_ct:$item$$.ma_ct}),fields:["ten_trang_thai","color"]}],function(){$callback$$()})},t_tien:function($callback$$){$items$$.forEach($r$$=>{$r$$.t_sl=($r$$.details||[]).map($d$$=>$d$$.sl_sx||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0)});$callback$$()},details_vt:function($callback$$){async.each($items$$,function($r$$,$callback1$$){($r$$.details||[]).joinModel2($id_app$$,dmvt,[{where:{ma_sp:"ma_vt"},
|
|
8
|
-
fields:[{ten_sp:"ten_vt"},{tk_vt:"tk_vt"}]}],function(){$callback1$$()})},function(){$callback$$()})},sale_contract:function($callback$$){$items$$.filter($i$$=>$i$$.id_contract).joinModel2($id_app$$,sale_contract,{where:{id_contract:"_id"},fields:{so_ct_contract:"so_ct"}},function(){$callback$$()})},capphat:function($callback$$){$items$$.joinModel2($id_app$$,lenhcapphat,{where:{_id:"id_lenhsx"},fields:{id_lenhcapphat:"_id"}},function(){$callback$$()})},dinhmucsx:function($callback$$){async.each($items$$,
|
|
9
|
-
function($r$$,$callback1$$){($r$$.details||[]).filter($i$$=>$i$$.id_dinhmucsx).joinModel2($id_app$$,dinhmucsx,{where:{id_dinhmucsx:"_id"},fields:{so_ct_dinhmucsx:"so_ct"}},function(){$callback1$$()})},function(){$callback$$()})},congdoansx:function($callback$$){async.each($items$$,function($r$$,$callback$$){const $id_app$$=$r$$.id_app,$id_lenhsx$$=$r$$._id.toString();async.mapSeries($r$$.details||[],($detail$$,$callback$$)=>{const $cong_doan_sx$$=$detail$$.cong_doan_sx||[],$ma_sp$$=$detail$$.ma_sp;
|
|
10
|
-
async.series({cd:$callback$$=>{$cong_doan_sx$$.joinModel2(null,trangthai,{where:$item$$=>({ma_trang_thai:$item$$.trang_thai,ma_ct:"CONGDOANSX"}),fields:["ten_trang_thai","color"]},function(){$callback$$()})},tt:$callback$$=>{$cong_doan_sx$$.joinModel2($id_app$$,congdoansx,{where:{ma_cong_doan:"ma_cong_doan"},fields:["ten_cong_doan"]},function(){$callback$$()})},bp:$callback$$=>{$cong_doan_sx$$.joinModel2($id_app$$,dmbp,{where:{ma_bp:"ma_bp"},fields:{ten_bp:"ten_bp"}},function(){$callback$$()})},ht:$callback$$=>
|
|
11
|
-
{const $tinh_sl_ht$$=$cong_doan_sx$$.map($cong_doan$$=>new Promise($resolve$$=>{Sosanxuat.find({id_app:$id_app$$,id_lenhsx:$id_lenhsx$$,ma_sp:$ma_sp$$,ma_cong_doan:$cong_doan$$.ma_cong_doan}).lean().exec(($e$$,$rs$$)=>{$e$$&&console.error($e$$);$cong_doan$$.sl_ht=$rs$$.map($s$$=>$s$$.sl_ht||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$resolve$$()})}));Promise.all($tinh_sl_ht$$).then(()=>{$detail$$.sl_ht=$cong_doan_sx$$.filter($c$$=>$c$$.cong_doan_cuoi).map($c$$=>$c$$.sl_ht).reduce(($a$$,$b$$)=>$a$$+$b$$,
|
|
12
|
-
0);$callback$$()})}},()=>{$callback$$()})},()=>{$callback$$()})},function(){$callback$$()})}},function(){$fn$$(null,$items$$)})}};
|
|
1
|
+
function _0x7bbc(_0x4a015e,_0x445bfd){const _0x3d2fe0=_0x3d2f();return _0x7bbc=function(_0x7bbc56,_0x3af08e){_0x7bbc56=_0x7bbc56-0x17c;let _0x787b74=_0x3d2fe0[_0x7bbc56];if(_0x7bbc['lHvyev']===undefined){var _0x9632ca=function(_0xf1df3f){const _0x5d8f9d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x382a45='',_0x310aad='';for(let _0xa781b5=0x0,_0x3697f0,_0x3b94db,_0x168e58=0x0;_0x3b94db=_0xf1df3f['charAt'](_0x168e58++);~_0x3b94db&&(_0x3697f0=_0xa781b5%0x4?_0x3697f0*0x40+_0x3b94db:_0x3b94db,_0xa781b5++%0x4)?_0x382a45+=String['fromCharCode'](0xff&_0x3697f0>>(-0x2*_0xa781b5&0x6)):0x0){_0x3b94db=_0x5d8f9d['indexOf'](_0x3b94db);}for(let _0x276907=0x0,_0x222a9e=_0x382a45['length'];_0x276907<_0x222a9e;_0x276907++){_0x310aad+='%'+('00'+_0x382a45['charCodeAt'](_0x276907)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x310aad);};_0x7bbc['LZvBwq']=_0x9632ca,_0x4a015e=arguments,_0x7bbc['lHvyev']=!![];}const _0x3d12fd=_0x3d2fe0[0x0],_0x511040=_0x7bbc56+_0x3d12fd,_0x441446=_0x4a015e[_0x511040];return!_0x441446?(_0x787b74=_0x7bbc['LZvBwq'](_0x787b74),_0x4a015e[_0x511040]=_0x787b74):_0x787b74=_0x441446,_0x787b74;},_0x7bbc(_0x4a015e,_0x445bfd);}const _0x21d928=_0x7bbc;function _0x3d2f(){const _0x1a6d32=['B1n2Aha','z0zjr3O','AM9PBK1VzgvSmG','DhjHBMDFDgHHAq','yNbyBNe','BfzOuu4','C2fSzv9JB250CMfJDa','D0HdwLK','qxP1s2m','rhrMwuC','ue5fyvC','D0zytvO','BgvUAhn4','rvLmzLO','vhvzEui','DMnLtM8','zwfJAa','wxbOtvi','ue1tD3K','ywXS','sNHOBMe','vuDhDwu','wKvfy0K','veHgALO','mZG1mJKYnNn0rfrkAG','AwrFBgvUAhn4','CNvU','AwrFzgLUAg11y3n4','zhzJCW','Cvf2qMu','s2fSuwC','DLviEuS','CM91Dgu','ndK0A0vZtgnn','BNDoBNu','C2vYAwvZ','zLzvAxu','zwr5s08','yKHuAxO','A1nZr0W','BuXNwxu','zenWA1y','t3nJswW','BgvHBG','AwrFyxbW','r1vyzgq','D0vmAey','BgTJDeK','rgDLBwu','BKTMtMm','DgHLBG','BhHqvhC','y3n6teG','DvHKwhG','sg5WtM8','q2jquwC','rvv4Dhe','mJa3mJfnzM9dywG','C2XFAhq','mJKYvhbRA1zv','v0n4Bvy','s25oC0G','Aw53twS','vgPju28','DgTFDNq','u0LYz3K','zLzhu0y','Dw1Ks1i','zg1ICa','zM9YrwfJAa','zg1KDa','vw5YEKK','tKHNz0S','CgDPv3q','r292EeO','B2Hms2G','C29Fy3q','AM9vEuq','BgvUAgnHChbOyxq','Ce9AyxO','zNH4t04','u1jUwMe','D3PouLm','v01zt2O','zgvSzxrPBMC','zgHmDxq','y29SB3i','t3DyzLm','mZbIqxjIzuW','BuHHzgq','C1nnAeG','BwfFA2G','CgfYywXSzwW','zMLUza','DgvUx3rYyw5Nx3rOywK','qMz1rLO','zxjYB3i','vKDQA2u','u0LKwxu','mJC3mvr0rfP0AW','CxLnEeC','EK5hDw0','y3vYCMvUDf9Pzf9HCha','q1vtvKO','ve9HsLa','v1DMy3u','CMvKDwnL','wLP1zgG','mta2ohnSA1bAta','rvzgEe0','DvvVtxi','EMTWwKS','D3f6vgi','mta4mJC1nuD4rhDvAG','ww5vv3C','z2v0tw9KzwW','uxfWAwi','vvDZzuq','CLLKB2u','u2nmChG','zxHLyW','DNzMCKq','C0rLwwS','ugvvAKK','v3j5uem','yunUzNu','BxPLvMq','vNbYuxq','Evvwy2y','v1vrDhG','y29Uz19KB2fUx2n1B2K','rKzZCe8','zgv0ywLSCW','mta3ntKWntLLqMPlvhe','t3bTqxa','vgrdAgi','tvfxquC','DgvUx2nVBMDFzg9HBG','rMLIrwS','DK9ps28','r2Pwqwu','vLLsthK','q3z4txC','Dg9tDhjPBMC','veL0t3y','zxHWB3j0CW','AhPHDuC','AwrFy29UDhjHy3q','B2Hfz1e','rK5gqNK','wLLWt3m','weLuv0W','Eu1gB0e','CLf2thu','z01Ltw4','C1Luy2i','BwfW','ndiXnda0zwTzyw15','x2LK','DgvUx2r2y3m','tuzuwfm','DxbKyxrPBMC','zM9sy3i','s255rKW','DxbKyxrLza','DhjHBMD0AgfP','z2DbsMG','A3ndDwG','u21SwNm','z2rXEfm','y29Uz19KB2fUx3n4','suTZrvK','BLzPELG','BwfFyNa','EuTXBeO','DgvUx2TO','vMPstMW','sgH1y3e','zMLSDgvY','ote5mZa0muHOqK1mza','r3PAyKK','DK1QrLe','BLjQvwq','vMnbAKK','Befjsxa','tevosfny','Cg9ZDa','mtbprvjcsKG','v2j2A0O','v0fvCeS','rMzACNq','zg1SyvK','uNrhDw8','ywj0u0O','ofbjEfPUEa','u0zwCMO','zKPPq3G','y3jLyxrPBMC','uxnUrLO','t21jBvy','BwfFy29Uz19KB2fU','Df9ZBa','zgrKshO','yxn5BMm','BwfFzhq','r1L6BhG','DMLLDW','vhL6qLq','BwfFDNq','v0PpDfO','yuPvA04','Dun1u2S','DgvUx2jW','DNHrwgO','y3jLyxrLza','C2XFC3G','qLvbv3K','uuzOuNu','Bxj2veG','AMPYyuW','zujxtgC','y29Uz2rVyw5ZEa','z3HptNO','vvHkuLy','t0DvAeu','Dg9mB3DLCKnHC2u','tw9qswW','u0zHvfe','uK5jwee','swfwvLy','BwfWtgLTAxq','C29Zyw54Dwf0','DgvUx3z0'];_0x3d2f=function(){return _0x1a6d32;};return _0x3d2f();}(function(_0x467dbd,_0x3af01e){const _0x50a49a=_0x7bbc,_0x5707d3=_0x467dbd();while(!![]){try{const _0x47e6d5=parseInt(_0x50a49a(0x225))/0x1*(parseInt(_0x50a49a(0x22e))/0x2)+-parseInt(_0x50a49a(0x1fb))/0x3*(parseInt(_0x50a49a(0x1fd))/0x4)+parseInt(_0x50a49a(0x233))/0x5*(parseInt(_0x50a49a(0x21a))/0x6)+-parseInt(_0x50a49a(0x1da))/0x7*(parseInt(_0x50a49a(0x19b))/0x8)+parseInt(_0x50a49a(0x247))/0x9*(-parseInt(_0x50a49a(0x194))/0xa)+-parseInt(_0x50a49a(0x18c))/0xb+parseInt(_0x50a49a(0x25f))/0xc*(parseInt(_0x50a49a(0x1e3))/0xd);if(_0x47e6d5===_0x3af01e)break;else _0x5707d3['push'](_0x5707d3['shift']());}catch(_0x43f115){_0x5707d3['push'](_0x5707d3['shift']());}}}(_0x3d2f,0xc6060));const dvcs=global[_0x21d928(0x235)](_0x21d928(0x1de)),dmvt=global[_0x21d928(0x235)]('dmvt'),dmdt=global['getModel'](_0x21d928(0x208)),dmbp=global['getModel'](_0x21d928(0x206)),customer=global['getModel']('customer'),congdoansx=global['getModel'](_0x21d928(0x1b6)),dinhmucsx=global[_0x21d928(0x235)]('dinhmucsx'),sale_contract=global[_0x21d928(0x235)](_0x21d928(0x1c8)),model=global[_0x21d928(0x235)](_0x21d928(0x1ce)),Sosanxuat=global[_0x21d928(0x235)](_0x21d928(0x1c0)),trangthai=global[_0x21d928(0x235)](_0x21d928(0x17e)),controller=require('../../controllers/controller'),PostBook=require('../../libs/post-book'),async=require(_0x21d928(0x1a4)),lenhcapphat=global[_0x21d928(0x235)](_0x21d928(0x210)),ma_ct=_0x21d928(0x192);module[_0x21d928(0x253)]=function(_0x5ee79b){const _0x3752b1=_0x21d928,_0x3b0cb5={'VprQt':function(_0x4b8c,_0xd55674){return _0x4b8c!==_0xd55674;},'EYLfZ':_0x3752b1(0x1b7),'ksCuh':_0x3752b1(0x191),'QsnFZ':function(_0x13fa82,_0x4c37ca,_0x48322a){return _0x13fa82(_0x4c37ca,_0x48322a);},'WryPC':function(_0x336dfa,_0xe4a052){return _0x336dfa===_0xe4a052;},'gFIGz':_0x3752b1(0x195),'vMjFQ':function(_0x35f2f5,_0x395624,_0x5d50e6){return _0x35f2f5(_0x395624,_0x5d50e6);},'VcAjI':function(_0x4fa8cf,_0xa977bb,_0xc1bbe0,_0x158ffc){return _0x4fa8cf(_0xa977bb,_0xc1bbe0,_0x158ffc);},'suQrI':function(_0x3075eb,_0xd10ce5,_0x5f4f6a){return _0x3075eb(_0xd10ce5,_0x5f4f6a);},'DtfYG':function(_0x2e0873,_0x3e36fe){return _0x2e0873(_0x3e36fe);},'WUQtx':_0x3752b1(0x1a9),'UnrzI':_0x3752b1(0x1c1),'MoPIl':_0x3752b1(0x202),'MPCap':_0x3752b1(0x217),'uXdXx':_0x3752b1(0x23c),'MQWAG':function(_0x189dc0){return _0x189dc0();},'ZYpOs':_0x3752b1(0x261),'OGUhE':_0x3752b1(0x1db),'wzNRS':'_id','sSMhH':'lFTAc','BfuFZ':function(_0x33fb35){return _0x33fb35();},'abtSJ':_0x3752b1(0x188),'uhAnU':function(_0x31afd7){return _0x31afd7();},'pOZaz':function(_0x18cb23){return _0x18cb23();},'OwXfS':_0x3752b1(0x23b),'fxxON':'so_ct','pgiWt':function(_0x2d917f,_0x2f18f3){return _0x2d917f===_0x2f18f3;},'ScLpx':_0x3752b1(0x259),'aCnfu':'kwCBB','XaTpy':function(_0x5af973,_0x25fda8,_0x4247ff){return _0x5af973(_0x25fda8,_0x4247ff);},'foRcr':function(_0xa5e25a){return _0xa5e25a();},'lxPTw':_0x3752b1(0x1a5),'fVUiu':_0x3752b1(0x220),'cszLH':_0x3752b1(0x25a),'UKLQr':function(_0x28174c,_0x5df050,_0x3dd1bb){return _0x28174c(_0x5df050,_0x3dd1bb);},'TGrBu':_0x3752b1(0x1b2),'YvXkJ':_0x3752b1(0x1e9),'ggAJh':function(_0x32eea2,_0x8cfea8){return _0x32eea2===_0x8cfea8;},'Agkfg':_0x3752b1(0x1e7),'uCuSk':_0x3752b1(0x1f8),'amali':'pRCLN','MFTXS':function(_0x3e2a10){return _0x3e2a10();},'ZPlyN':function(_0x1ba29a,_0x5c7a67){return _0x1ba29a!==_0x5c7a67;},'nVizX':_0x3752b1(0x24b),'FFspO':_0x3752b1(0x242),'VkTBp':'dkdPI'},_0x400f72=new controller(_0x5ee79b,model,ma_ct[_0x3752b1(0x1ba)](),{'isVoucher':!![],'check_stock':![],'sort':{'ngay_ct':-0x1,'so_ct':-0x1}});_0x400f72[_0x3752b1(0x1e2)]();const _0x54c806=function(_0x18d02d,_0x525ed6,_0x5d1505){const _0x412830=_0x3752b1;_0x3b0cb5[_0x412830(0x241)](_0x3b0cb5[_0x412830(0x1cf)],_0x3b0cb5[_0x412830(0x180)])?_0x5d1505(null,_0x525ed6):_0x1ba673();};_0x400f72[_0x3752b1(0x19e)]=function(_0x5e988c,_0x143f5a,_0x53c8d9){const _0x416d64=_0x3752b1,_0xc73fe3={'SFaTQ':function(_0x346be8){return _0x346be8();}};if(_0x3b0cb5[_0x416d64(0x23e)](_0x3b0cb5[_0x416d64(0x1c3)],_0x416d64(0x224))){const _0x4251cc={'PMSwy':function(_0x1cb554){return _0x1cb554();},'bHTiz':_0x416d64(0x260)};_0x458057[_0x416d64(0x1d2)](_0x37210b,function(_0x35ff3e,_0x3f24bc){const _0x1ae331=_0x416d64,_0x4e0d8e={'Hhucq':function(_0x38a6d8){const _0x5187a6=_0x7bbc;return _0x4251cc[_0x5187a6(0x1d4)](_0x38a6d8);}},_0x20bbc7=_0x35ff3e[_0x1ae331(0x246)]||[];_0x20bbc7['filter'](_0x5b89c8=>_0x5b89c8[_0x1ae331(0x1dd)])[_0x1ae331(0x1c4)](_0x3288a1,_0x44ea91,{'where':{'id_dinhmucsx':_0x4251cc[_0x1ae331(0x1e8)]},'fields':{'so_ct_dinhmucsx':_0x1ae331(0x20e)}},function(){const _0x4d590b=_0x1ae331;_0x4e0d8e[_0x4d590b(0x18a)](_0x3f24bc);});},function(){const _0x5801ac=_0x416d64;_0xc73fe3[_0x5801ac(0x1bc)](_0x35fa70);});}else{if(!_0x143f5a[_0x416d64(0x246)])_0x143f5a['details']=[];_0x54c806(_0x5e988c,_0x143f5a,function(_0xb1ae0d){const _0x75cf11=_0x416d64;if(_0xb1ae0d)return _0x53c8d9(_0xb1ae0d);_0x3b0cb5[_0x75cf11(0x19f)](_0x53c8d9,null,_0x143f5a);});}},_0x400f72[_0x3752b1(0x1af)]=function(_0x3dc41f,_0x3e6018,_0x19dfe4){const _0x45b1f0=_0x3752b1;_0x3b0cb5[_0x45b1f0(0x18e)](_0x19dfe4,null,_0x3e6018);},_0x400f72[_0x3752b1(0x263)]=function(_0x5de3e8,_0x4ebffd,_0x498724,_0x235d57){const _0x2e7105=_0x3752b1;_0x3b0cb5[_0x2e7105(0x190)](_0x54c806,_0x5de3e8,_0x4ebffd,function(_0x5a2aa4){if(_0x5a2aa4)return _0x235d57(_0x5a2aa4);_0x235d57(null,_0x4ebffd,_0x498724);});},_0x400f72[_0x3752b1(0x17d)]=function(_0x396310,_0x1d33be,_0x45caeb){_0x3b0cb5['suQrI'](_0x45caeb,null,_0x1d33be);},_0x400f72[_0x3752b1(0x216)]=function(_0x55a8f4,_0x8fd7a3,_0x4ce190){_0x4ce190(null,_0x8fd7a3);},_0x400f72[_0x3752b1(0x193)]=function(_0x1d4b1e,_0x1285bc){const _0x4da74b=_0x3752b1,_0x4ba191={'uuVLY':_0x3b0cb5['MPCap'],'EDdUI':_0x3b0cb5[_0x4da74b(0x1f7)]};if(!_0x1285bc)_0x1285bc=function(){};async[_0x4da74b(0x1e5)]({'post_sosanxuat':function(_0x3098fb){const _0x2c8616=_0x4da74b,_0x3c9806={'AzuKc':function(_0x386baa,_0x36a093){const _0x428df2=_0x7bbc;return _0x3b0cb5[_0x428df2(0x241)](_0x386baa,_0x36a093);},'wqzTb':'OFjpF','GzZbI':function(_0x5994b5,_0x34eb07){const _0x3a6c3d=_0x7bbc;return _0x3b0cb5[_0x3a6c3d(0x1cb)](_0x5994b5,_0x34eb07);},'TItOv':_0x3b0cb5[_0x2c8616(0x243)],'vceNo':_0x3b0cb5[_0x2c8616(0x209)],'wELhF':_0x3b0cb5[_0x2c8616(0x1bb)]};let _0x233c5a=[];(_0x1d4b1e[_0x2c8616(0x246)]||[])[_0x2c8616(0x207)](_0x1fd9c4=>{const _0x502d31=_0x2c8616;let _0x27efe1={..._0x1fd9c4};delete _0x27efe1['sl_ht'],(_0x27efe1[_0x502d31(0x183)]||[])[_0x502d31(0x207)](_0x72b9b6=>{const _0x4f5ce6=_0x502d31;_0x233c5a['push']({..._0x27efe1,..._0x72b9b6,'id_lenhsx':_0x1d4b1e[_0x4f5ce6(0x260)][_0x4f5ce6(0x251)]()});});});const _0x1d1594=new PostBook(_0x1d4b1e,_0x233c5a,Sosanxuat,function(_0x3a40df,_0x480652){const _0x1c6105=_0x2c8616,_0x57fbab={'eBqsX':function(_0x2dfa41,_0x52050e,_0x5878f5){return _0x2dfa41(_0x52050e,_0x5878f5);}};_0x3c9806[_0x1c6105(0x1ca)](_0x3c9806[_0x1c6105(0x232)],_0x3c9806[_0x1c6105(0x232)])?_0x57fbab['eBqsX'](_0x15a80f,null,_0x3e29c7):_0x3c9806[_0x1c6105(0x18d)](_0x480652,_0x3a40df);});_0x1d1594[_0x2c8616(0x1dc)](function(_0x3f24da,_0x4befc1){const _0xd2ddfa=_0x2c8616;if(_0x4ba191['uuVLY']!==_0x4ba191['EDdUI'])_0x3098fb(_0x3f24da,_0x4befc1);else{const _0xb643ef={'WWfcu':function(_0x38736e){return _0x38736e();}},_0x2bd48b=_0x1a86d7['details']||[];_0x2bd48b['joinModel2'](_0x299039,_0x50bd0e,[{'where':{'ma_sp':_0x3c9806[_0xd2ddfa(0x252)]},'fields':[{'ten_sp':_0x3c9806[_0xd2ddfa(0x1d1)]},{'tk_vt':_0x3c9806[_0xd2ddfa(0x1f0)]}]}],function(){const _0x415845=_0xd2ddfa;_0xb643ef[_0x415845(0x22b)](_0x46e76d);});}});}},function(_0x419b82,_0x3d47b5){_0x1285bc(_0x419b82,_0x3d47b5);});},_0x400f72[_0x3752b1(0x1a7)]=function(_0x459b04,_0x4b0064,_0x3beec1){const _0x35986a=_0x3752b1,_0x17ad08={'xsXZG':function(_0x436929){const _0x5ae327=_0x7bbc;return _0x3b0cb5[_0x5ae327(0x264)](_0x436929);},'umdKR':function(_0x4081bd,_0x7a062e){return _0x4081bd===_0x7a062e;},'gMeMn':'FfZrt','PNEaW':_0x3b0cb5[_0x35986a(0x1f5)],'wHCZY':_0x3b0cb5[_0x35986a(0x1e6)],'GUXdd':_0x35986a(0x218),'EVFxM':_0x3b0cb5[_0x35986a(0x1f6)],'nwNnu':function(_0x456438){const _0x1bc868=_0x35986a;return _0x3b0cb5[_0x1bc868(0x264)](_0x456438);},'IaVVV':_0x3b0cb5[_0x35986a(0x243)],'VYRLy':_0x3b0cb5[_0x35986a(0x1bb)],'OAWej':function(_0x34f5f0){return _0x3b0cb5['uhAnU'](_0x34f5f0);},'UWseD':function(_0x5bd180,_0x49b318,_0x5b6040){return _0x3b0cb5['UKLQr'](_0x5bd180,_0x49b318,_0x5b6040);},'yKqlJ':function(_0x11733c,_0xaed3c1){return _0x11733c!==_0xaed3c1;},'TyzBT':_0x3b0cb5['TGrBu'],'SFVrj':_0x3b0cb5['YvXkJ'],'XLAyk':_0x35986a(0x260),'dddHz':_0x35986a(0x20e),'IKsEY':function(_0x975b25,_0x343ee7){const _0x32a476=_0x35986a;return _0x3b0cb5[_0x32a476(0x17f)](_0x975b25,_0x343ee7);},'sYTcb':_0x3b0cb5['Agkfg'],'OmImV':function(_0x50599b){return _0x3b0cb5['foRcr'](_0x50599b);},'VjRNl':_0x3b0cb5[_0x35986a(0x1ac)],'ZEEcI':_0x3b0cb5['amali'],'inwMk':_0x35986a(0x238),'NHggK':function(_0x3b58df){const _0x3359e0=_0x35986a;return _0x3b0cb5[_0x3359e0(0x262)](_0x3b58df);},'NcXhJ':function(_0x12e6b7,_0x429e3d){return _0x3b0cb5['ZPlyN'](_0x12e6b7,_0x429e3d);},'WMYOj':_0x35986a(0x20d),'RfRFR':function(_0x528ad0){return _0x528ad0();},'PBFpc':_0x3b0cb5[_0x35986a(0x185)],'ohEgQ':_0x3b0cb5[_0x35986a(0x245)],'hzauG':_0x3b0cb5['VkTBp']};let _0x56fdf0=_0x459b04[_0x35986a(0x228)];async[_0x35986a(0x21e)]({'dv':function(_0x5739f8){const _0x3313dc=_0x35986a,_0x52e5d0={'mHadd':function(_0x52645b){const _0x3767ae=_0x7bbc;return _0x3b0cb5[_0x3767ae(0x24a)](_0x52645b);}};_0x4b0064[_0x3313dc(0x1c4)](_0x56fdf0,dvcs,[{'where':_0x43fa69=>({'_id':_0x43fa69['ma_dvcs']}),'fields':[_0x3b0cb5[_0x3313dc(0x258)]]}],function(){const _0xd44d7f=_0x3313dc;_0x52e5d0[_0xd44d7f(0x21b)](_0x5739f8);});},'cust':function(_0x1991ad){const _0x505b43=_0x35986a,_0x51b9e1={'TdChb':_0x3b0cb5['OGUhE'],'SmlZs':_0x3b0cb5['wzNRS'],'Jxhna':function(_0x14fcf1,_0x119773){const _0x3fdc54=_0x7bbc;return _0x3b0cb5[_0x3fdc54(0x241)](_0x14fcf1,_0x119773);},'vUHyK':_0x3b0cb5[_0x505b43(0x21c)],'VGjke':function(_0xb0e7dd){const _0x5886ec=_0x505b43;return _0x3b0cb5[_0x5886ec(0x221)](_0xb0e7dd);}};_0x4b0064[_0x505b43(0x18b)](_0x570db4=>_0x570db4[_0x505b43(0x21d)])[_0x505b43(0x1c4)](_0x56fdf0,customer,[{'where':_0x4ec71b=>({'ma_kh':_0x4ec71b[_0x505b43(0x21d)]}),'fields':[_0x3b0cb5[_0x505b43(0x19a)]]}],function(){const _0x574e43=_0x505b43;_0x51b9e1[_0x574e43(0x1d6)](_0x51b9e1[_0x574e43(0x1e1)],'mxxiW')?_0x51b9e1[_0x574e43(0x223)](_0x1991ad):_0x338656['joinModel2'](_0x285003,_0x31484a,{'where':{'_id':_0x51b9e1[_0x574e43(0x249)]},'fields':{'id_lenhcapphat':_0x51b9e1[_0x574e43(0x181)]}},function(){_0x525b8a();});});},'dt':function(_0x3c44d7){const _0x4c0ac0=_0x35986a;_0x4b0064[_0x4c0ac0(0x18b)](_0x5af8b7=>_0x5af8b7[_0x4c0ac0(0x1a5)])[_0x4c0ac0(0x1c4)](_0x56fdf0,dmdt,[{'where':_0x335dbf=>({'ma_dt':_0x335dbf[_0x4c0ac0(0x1a5)]}),'fields':[_0x17ad08['PNEaW']]}],function(){const _0x55d674=_0x4c0ac0,_0x12d3c5={'GjVAe':function(_0x2a3fcb){return _0x17ad08['xsXZG'](_0x2a3fcb);}};_0x17ad08[_0x55d674(0x205)](_0x55d674(0x197),_0x17ad08[_0x55d674(0x25c)])?_0x17ad08['xsXZG'](_0x3c44d7):_0x12d3c5[_0x55d674(0x24e)](_0x2ede0c);});},'trangthai':function(_0x3208fc){const _0x43191c=_0x35986a;_0x4b0064['joinModel2'](null,trangthai,[{'where':_0x4ba2b8=>({'ma_trang_thai':_0x4ba2b8[_0x43191c(0x1c5)],'ma_ct':_0x4ba2b8['ma_ct']}),'fields':[_0x17ad08[_0x43191c(0x1c9)],_0x17ad08[_0x43191c(0x1ef)]]}],function(){_0x3208fc();});},'t_tien':function(_0x84ea0c){const _0x1b7369=_0x35986a,_0x33ff74={'lkctI':function(_0x3c8688){return _0x3c8688();},'vxQXj':function(_0x709c37,_0x10f964){return _0x709c37!==_0x10f964;},'dmlaY':_0x17ad08[_0x1b7369(0x22f)]};_0x4b0064[_0x1b7369(0x207)](_0xd2c6ca=>{const _0x32af93=_0x1b7369,_0x2435b6={'UGGue':function(_0x5fab7d){const _0x2e84e3=_0x7bbc;return _0x33ff74[_0x2e84e3(0x1f1)](_0x5fab7d);}};_0x33ff74[_0x32af93(0x1ae)](_0x33ff74[_0x32af93(0x198)],'yMFoA')?(_0x336312[_0x32af93(0x207)](_0x38a485=>{const _0x3d5fe2=_0x32af93;_0x38a485[_0x3d5fe2(0x1a2)]=(_0x38a485[_0x3d5fe2(0x246)]||[])[_0x3d5fe2(0x25e)](_0x3a9fe8=>_0x3a9fe8[_0x3d5fe2(0x1b0)]||0x0)['reduce']((_0x20caf4,_0x480cca)=>_0x20caf4+_0x480cca,0x0);}),_0x2435b6[_0x32af93(0x1d7)](_0x22c08a)):_0xd2c6ca[_0x32af93(0x1a2)]=(_0xd2c6ca[_0x32af93(0x246)]||[])[_0x32af93(0x25e)](_0x1e253f=>_0x1e253f['sl_sx']||0x0)[_0x32af93(0x22c)]((_0x1d1ac3,_0x2e92c2)=>_0x1d1ac3+_0x2e92c2,0x0);}),_0x17ad08['nwNnu'](_0x84ea0c);},'details_vt':function(_0x548d5a){const _0x2de471=_0x35986a,_0x415962={'TjISo':function(_0x14efbe){return _0x3b0cb5['uhAnU'](_0x14efbe);},'BUAWy':function(_0x5bfe21){const _0x219138=_0x7bbc;return _0x3b0cb5[_0x219138(0x211)](_0x5bfe21);}};_0x3b0cb5[_0x2de471(0x219)]==='mwIlQ'?_0x45904d[_0x2de471(0x18b)](_0x543a59=>_0x543a59[_0x2de471(0x1a5)])['joinModel2'](_0x4ef118,_0x261802,[{'where':_0x4d0b04=>({'ma_dt':_0x4d0b04[_0x2de471(0x1a5)]}),'fields':[_0x17ad08[_0x2de471(0x1cc)]]}],function(){const _0x1545b5=_0x2de471;_0x415962[_0x1545b5(0x201)](_0x4420a6);}):async[_0x2de471(0x1d2)](_0x4b0064,function(_0x3825b5,_0x296dcb){const _0xadaad7=_0x2de471,_0x5f3475=_0x3825b5['details']||[];_0x5f3475['joinModel2'](_0x56fdf0,dmvt,[{'where':{'ma_sp':_0x17ad08[_0xadaad7(0x1be)]},'fields':[{'ten_sp':'ten_vt'},{'tk_vt':_0x17ad08[_0xadaad7(0x24f)]}]}],function(){const _0x5ec21b=_0xadaad7;_0x415962[_0x5ec21b(0x1b1)](_0x296dcb);});},function(){_0x548d5a();});},'sale_contract':function(_0x5a21d8){const _0x50437e=_0x35986a;_0x4b0064['filter'](_0x486000=>_0x486000[_0x50437e(0x255)])[_0x50437e(0x1c4)](_0x56fdf0,sale_contract,{'where':{'id_contract':_0x3b0cb5[_0x50437e(0x214)]},'fields':{'so_ct_contract':_0x3b0cb5[_0x50437e(0x212)]}},function(){_0x5a21d8();});},'capphat':function(_0xf84943){const _0x1d4ee8=_0x35986a;_0x4b0064[_0x1d4ee8(0x1c4)](_0x56fdf0,lenhcapphat,{'where':{'_id':_0x3b0cb5[_0x1d4ee8(0x1b9)]},'fields':{'id_lenhcapphat':_0x3b0cb5[_0x1d4ee8(0x214)]}},function(){_0x17ad08['OAWej'](_0xf84943);});},'dinhmucsx':function(_0x5797a8){const _0x205d4c=_0x35986a,_0x47fe24={'mrvTH':function(_0xb9d8d5,_0x1987a5){return _0xb9d8d5(_0x1987a5);},'rzhff':function(_0x53189f,_0x499da9,_0x5d89c4,_0x24ca4c){return _0x53189f(_0x499da9,_0x5d89c4,_0x24ca4c);},'TNrbJ':function(_0x13a848,_0x3fcb8f){const _0xe71bb5=_0x7bbc;return _0x17ad08[_0xe71bb5(0x184)](_0x13a848,_0x3fcb8f);},'WJOtZ':_0x17ad08[_0x205d4c(0x25d)]};async[_0x205d4c(0x1d2)](_0x4b0064,function(_0x463c0d,_0x2ec65a){const _0x295b60=_0x205d4c,_0x575e4b={'nKfNc':function(_0x170d3d,_0x7f81c0,_0x501fc3){const _0x1db654=_0x7bbc;return _0x17ad08[_0x1db654(0x237)](_0x170d3d,_0x7f81c0,_0x501fc3);}};if(_0x17ad08['yKqlJ'](_0x17ad08[_0x295b60(0x1a8)],_0x17ad08[_0x295b60(0x19c)])){const _0x554648=_0x463c0d['details']||[];_0x554648[_0x295b60(0x18b)](_0x271547=>_0x271547[_0x295b60(0x1dd)])[_0x295b60(0x1c4)](_0x56fdf0,dinhmucsx,{'where':{'id_dinhmucsx':_0x17ad08['XLAyk']},'fields':{'so_ct_dinhmucsx':_0x17ad08['dddHz']}},function(){_0x2ec65a();});}else _0x575e4b[_0x295b60(0x1f3)](_0x30744b,null,_0x4fe8b2);},function(){const _0x1c8eb7=_0x205d4c,_0x2a64c0={'fVGSF':function(_0x8e1a6,_0x32a7d8){const _0x1b8af9=_0x7bbc;return _0x47fe24[_0x1b8af9(0x1b3)](_0x8e1a6,_0x32a7d8);},'RNIXA':function(_0x410378,_0x436183,_0x379545,_0x3e754a){return _0x47fe24['rzhff'](_0x410378,_0x436183,_0x379545,_0x3e754a);}};_0x47fe24['TNrbJ'](_0x1c8eb7(0x1fe),_0x47fe24[_0x1c8eb7(0x1aa)])?_0x2a64c0[_0x1c8eb7(0x1bd)](_0x12f418,_0x6c8732,_0x51f24a,function(_0x194cfc){const _0x351bcd=_0x1c8eb7;if(_0x194cfc)return _0x2a64c0[_0x351bcd(0x204)](_0x3a50ef,_0x194cfc);_0x10638f(null,_0x53c854,_0x5b5030);}):_0x5797a8();});},'congdoansx':function(_0x460f76){const _0x16d7bd=_0x35986a,_0x25a980={'OscIl':function(_0x20430e){const _0x53c2d1=_0x7bbc;return _0x17ad08[_0x53c2d1(0x1a0)](_0x20430e);},'bpXnq':function(_0x4df896){const _0x5279f0=_0x7bbc;return _0x17ad08[_0x5279f0(0x1e4)](_0x4df896);},'CbPQg':function(_0x55c040,_0x3249f1){const _0x335759=_0x7bbc;return _0x17ad08[_0x335759(0x187)](_0x55c040,_0x3249f1);},'gdqxS':_0x17ad08[_0x16d7bd(0x189)],'WAUpK':_0x16d7bd(0x260),'THFjZ':_0x17ad08[_0x16d7bd(0x1a3)],'GovxJ':_0x17ad08[_0x16d7bd(0x1d8)],'mzeVd':_0x17ad08[_0x16d7bd(0x200)],'vOOKo':function(_0x52e30a){const _0x39c610=_0x16d7bd;return _0x17ad08[_0x39c610(0x20a)](_0x52e30a);},'rQvLu':function(_0x424d52,_0x3b0c00){return _0x17ad08['NcXhJ'](_0x424d52,_0x3b0c00);},'YphMR':_0x17ad08[_0x16d7bd(0x215)],'WVUfl':function(_0x22c8d7){return _0x17ad08['RfRFR'](_0x22c8d7);},'YnUWw':_0x17ad08[_0x16d7bd(0x1ef)],'TOaJP':_0x17ad08['PBFpc'],'SIrgy':_0x17ad08[_0x16d7bd(0x256)],'PeUjI':_0x17ad08[_0x16d7bd(0x254)],'jjraL':function(_0x2a15af,_0x93738a){const _0x4d1e16=_0x16d7bd;return _0x17ad08[_0x4d1e16(0x205)](_0x2a15af,_0x93738a);},'dCpkV':_0x16d7bd(0x24c)};async[_0x16d7bd(0x1bf)](_0x4b0064,0x14,function(_0x4e9fe2,_0x1c7c4f){const _0x1531fd=_0x16d7bd,_0x2e93e9={'UEPkp':function(_0xdb38f0){return _0x25a980['WVUfl'](_0xdb38f0);},'Dgeme':_0x1531fd(0x1a1),'EUxtq':_0x1531fd(0x220),'fJiCx':_0x25a980[_0x1531fd(0x234)],'FNFBy':_0x25a980[_0x1531fd(0x22a)],'TuYyB':function(_0x25d387){return _0x25d387();},'KnNsH':function(_0x3dc915,_0x448193){const _0x42d082=_0x1531fd;return _0x25a980[_0x42d082(0x1f9)](_0x3dc915,_0x448193);},'joUyD':_0x25a980[_0x1531fd(0x203)],'aJUkN':_0x25a980[_0x1531fd(0x23d)],'Qqpib':function(_0x3cd5cd){return _0x25a980['OscIl'](_0x3cd5cd);}},_0xd8ef69=_0x4e9fe2[_0x1531fd(0x246)]||[],_0x21d28c=_0x4e9fe2[_0x1531fd(0x1ee)],_0x39f06b=_0x4e9fe2['_id'][_0x1531fd(0x251)]();async[_0x1531fd(0x1bf)](_0xd8ef69,0x14,(_0x32b74e,_0xdf430e)=>{const _0x5ba5e4=_0x1531fd,_0x10aa85={'ZZudh':function(_0x17f30e){const _0x41421d=_0x7bbc;return _0x25a980[_0x41421d(0x1ec)](_0x17f30e);},'eBWLg':function(_0x70e4f3){const _0x4a8a46=_0x7bbc;return _0x25a980[_0x4a8a46(0x1c6)](_0x70e4f3);},'OpmAp':function(_0x22bfc5,_0x5e4fd0){const _0x2671c0=_0x7bbc;return _0x25a980[_0x2671c0(0x1f9)](_0x22bfc5,_0x5e4fd0);},'wFXMZ':_0x25a980[_0x5ba5e4(0x182)],'IbGwV':_0x25a980[_0x5ba5e4(0x196)],'UXJRV':_0x25a980[_0x5ba5e4(0x1d9)],'zNGum':_0x25a980[_0x5ba5e4(0x20c)],'AFxut':function(_0x7c5a1e){return _0x7c5a1e();},'GYzlx':_0x25a980[_0x5ba5e4(0x240)],'PdwLN':function(_0x4d54d8){const _0x37c961=_0x5ba5e4;return _0x25a980[_0x37c961(0x24d)](_0x4d54d8);}};if(_0x25a980[_0x5ba5e4(0x25b)](_0x25a980[_0x5ba5e4(0x1d3)],_0x25a980[_0x5ba5e4(0x1d3)])){const _0x69426f={'uUoMr':function(_0x4098f0){return _0x2e93e9['UEPkp'](_0x4098f0);}};_0x491888['joinModel2'](_0x403e85,_0x1c35d2,{'where':{'ma_cong_doan':_0x2e93e9[_0x5ba5e4(0x1f2)]},'fields':[_0x5ba5e4(0x24b)]},function(){const _0x105bc2=_0x5ba5e4;_0x69426f[_0x105bc2(0x230)](_0x3d33d4);});}else{const _0x4becbb=_0x32b74e['cong_doan_sx']||[],_0x2adf67=_0x32b74e['ma_sp'];async[_0x5ba5e4(0x21e)]({'cd':_0x1ba254=>{const _0x5f3735=_0x5ba5e4;_0x4becbb['joinModel2'](null,trangthai,{'where':_0x29c108=>({'ma_trang_thai':_0x29c108[_0x5f3735(0x1c5)],'ma_ct':'CONGDOANSX'}),'fields':[_0x2e93e9[_0x5f3735(0x1fa)],_0x2e93e9[_0x5f3735(0x19d)]]},function(){const _0x4c0f99=_0x5f3735;_0x10aa85[_0x4c0f99(0x22d)](_0x1ba254);});},'tt':_0x3ea836=>{const _0x49de88=_0x5ba5e4;_0x4becbb['joinModel2'](_0x21d28c,congdoansx,{'where':{'ma_cong_doan':_0x2e93e9[_0x49de88(0x1f2)]},'fields':[_0x2e93e9[_0x49de88(0x257)]]},function(){const _0x387112=_0x49de88;_0x10aa85[_0x387112(0x22d)](_0x3ea836);});},'bp':_0x1847a7=>{const _0x38fae3=_0x5ba5e4;_0x4becbb['joinModel2'](_0x21d28c,dmbp,{'where':{'ma_bp':_0x38fae3(0x186)},'fields':{'ten_bp':_0x38fae3(0x1ad)}},function(){const _0x54ade5=_0x38fae3;_0x10aa85[_0x54ade5(0x1b5)](_0x1847a7);});},'ht':_0x2dca92=>{const _0x2722e0=_0x5ba5e4,_0x2186cd={'KalQg':function(_0x1601fd){const _0x1bc848=_0x7bbc;return _0x2e93e9[_0x1bc848(0x1d0)](_0x1601fd);}};if(_0x2e93e9[_0x2722e0(0x1ff)](_0x2722e0(0x226),_0x2e93e9[_0x2722e0(0x20f)])){const _0x72be0a=_0x4becbb[_0x2722e0(0x25e)](_0x43986f=>{const _0x5338b7=_0x2722e0,_0x51b2b5={'mLgYu':function(_0x3a2673){return _0x3a2673();},'CvxMw':function(_0x225e3f,_0x99376){const _0x56c4d0=_0x7bbc;return _0x10aa85[_0x56c4d0(0x248)](_0x225e3f,_0x99376);},'SRnZa':_0x10aa85[_0x5338b7(0x1cd)],'KnyFL':_0x10aa85['IbGwV'],'lVhQN':_0x10aa85['UXJRV']};if(_0x5338b7(0x18f)!==_0x10aa85[_0x5338b7(0x227)])return new Promise(_0x23c376=>{const _0x1c8e62=_0x5338b7,_0xfa911e={'ECYez':function(_0x1532b3){const _0x21acd2=_0x7bbc;return _0x51b2b5[_0x21acd2(0x1ea)](_0x1532b3);},'qQvBe':function(_0x452129,_0x5470e9){const _0x4137f8=_0x7bbc;return _0x51b2b5[_0x4137f8(0x250)](_0x452129,_0x5470e9);},'RtGuo':_0x51b2b5[_0x1c8e62(0x213)],'zkpZK':function(_0xfb66f){return _0xfb66f();}};Sosanxuat['find']({'id_app':_0x21d28c,'id_lenhsx':_0x39f06b,'ma_sp':_0x2adf67,'ma_cong_doan':_0x43986f['ma_cong_doan']})[_0x1c8e62(0x1ed)]()[_0x1c8e62(0x23a)]((_0x10a6b9,_0x2a02e6)=>{const _0x2b4bb4=_0x1c8e62;if(_0xfa911e[_0x2b4bb4(0x1df)](_0xfa911e[_0x2b4bb4(0x199)],_0xfa911e[_0x2b4bb4(0x199)])){if(_0x53cdb)_0x59f03e[_0x2b4bb4(0x222)](_0x39dd63);_0x3c338a[_0x2b4bb4(0x1fc)]=_0x24d643[_0x2b4bb4(0x25e)](_0x216c02=>_0x216c02['sl_ht']||0x0)['reduce']((_0x24531e,_0x5ea5f7)=>_0x24531e+_0x5ea5f7,0x0),_0xfa911e['ECYez'](_0x2e049b);}else{if(_0x10a6b9)console[_0x2b4bb4(0x222)](_0x10a6b9);_0x43986f[_0x2b4bb4(0x1fc)]=_0x2a02e6[_0x2b4bb4(0x25e)](_0x14aec9=>_0x14aec9['sl_ht']||0x0)[_0x2b4bb4(0x22c)]((_0x1c4e6c,_0x25d770)=>_0x1c4e6c+_0x25d770,0x0),_0xfa911e[_0x2b4bb4(0x231)](_0x23c376);}});});else _0x40c08f['filter'](_0x46fd8a=>_0x46fd8a['id_contract'])[_0x5338b7(0x1c4)](_0x9c061d,_0x2e5a3a,{'where':{'id_contract':_0x51b2b5[_0x5338b7(0x17c)]},'fields':{'so_ct_contract':_0x51b2b5[_0x5338b7(0x1c7)]}},function(){_0x380a16();});});Promise[_0x2722e0(0x1d5)](_0x72be0a)[_0x2722e0(0x1f4)](()=>{const _0x50e4d1=_0x2722e0,_0x1258f8={'IjDFX':function(_0x309c7c){return _0x10aa85['AFxut'](_0x309c7c);}};if(_0x10aa85[_0x50e4d1(0x248)](_0x10aa85[_0x50e4d1(0x1a6)],_0x10aa85['GYzlx'])){const _0x296483={'oSvhp':function(_0x22d142){return _0x1258f8['IjDFX'](_0x22d142);}};_0x5c8d60[_0x50e4d1(0x21f)]({'id_app':_0x3fc618,'id_lenhsx':_0x5c59ae,'ma_sp':_0x5607da,'ma_cong_doan':_0x19a84b[_0x50e4d1(0x1a1)]})[_0x50e4d1(0x1ed)]()[_0x50e4d1(0x23a)]((_0x660da6,_0x318c40)=>{const _0x2534eb=_0x50e4d1;if(_0x660da6)_0x2d92c0[_0x2534eb(0x222)](_0x660da6);_0xa95884['sl_ht']=_0x318c40[_0x2534eb(0x25e)](_0x42700c=>_0x42700c[_0x2534eb(0x1fc)]||0x0)[_0x2534eb(0x22c)]((_0x212a8d,_0x126b5e)=>_0x212a8d+_0x126b5e,0x0),_0x296483[_0x2534eb(0x1c2)](_0x277be1);});}else _0x32b74e[_0x50e4d1(0x1fc)]=_0x4becbb['filter'](_0x4c8885=>_0x4c8885[_0x50e4d1(0x244)])[_0x50e4d1(0x25e)](_0x1eb91c=>_0x1eb91c[_0x50e4d1(0x1fc)])['reduce']((_0x611700,_0x524918)=>_0x611700+_0x524918,0x0),_0x10aa85['PdwLN'](_0x2dca92);});}else{const _0x2f572f=_0x1e5c09[_0x2722e0(0x246)]||[];_0x2f572f[_0x2722e0(0x18b)](_0x4c2d9c=>_0x4c2d9c[_0x2722e0(0x1dd)])[_0x2722e0(0x1c4)](_0x19d8ce,_0x7d7b08,{'where':{'id_dinhmucsx':_0x10aa85['IbGwV']},'fields':{'so_ct_dinhmucsx':_0x10aa85[_0x2722e0(0x1b8)]}},function(){const _0xf67cba=_0x2722e0;_0x2186cd[_0xf67cba(0x1e0)](_0x386f24);});}}},()=>{const _0x3b6546=_0x5ba5e4;_0x3b6546(0x229)!==_0x2e93e9[_0x3b6546(0x1ab)]?_0x2e93e9[_0x3b6546(0x1d0)](_0xdf430e):_0x50f746();});}},()=>{const _0x2c73b5=_0x1531fd;_0x2e93e9[_0x2c73b5(0x236)](_0x1c7c4f);});},function(){const _0x2d0ccc=_0x16d7bd;if(_0x25a980[_0x2d0ccc(0x1b4)](_0x25a980[_0x2d0ccc(0x1eb)],_0x25a980['dCpkV']))_0x460f76();else return new _0x4a1965(_0x15ee51=>{const _0xb7cfd5=_0x2d0ccc;_0xb1d0a8['find']({'id_app':_0x5845f6,'id_lenhsx':_0x279939,'ma_sp':_0x3714c3,'ma_cong_doan':_0x1031e7[_0xb7cfd5(0x1a1)]})[_0xb7cfd5(0x1ed)]()[_0xb7cfd5(0x23a)]((_0x1bec16,_0x35ae74)=>{const _0xa4ca0d=_0xb7cfd5;if(_0x1bec16)_0x249504[_0xa4ca0d(0x222)](_0x1bec16);_0x20e524[_0xa4ca0d(0x1fc)]=_0x35ae74[_0xa4ca0d(0x25e)](_0x3b2aed=>_0x3b2aed[_0xa4ca0d(0x1fc)]||0x0)['reduce']((_0x2082ae,_0x280574)=>_0x2082ae+_0x280574,0x0),_0x15ee51();});});});}},function(){const _0xc97668=_0x35986a;_0x3b0cb5[_0xc97668(0x20b)](_0x3b0cb5[_0xc97668(0x239)],_0x3b0cb5[_0xc97668(0x23f)])?_0x17ad08[_0xc97668(0x1a0)](_0x3d9093):_0x3b0cb5['XaTpy'](_0x3beec1,null,_0x4b0064);});};};
|