flexbiz-server 12.4.21 → 12.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/server/app.js +1 -22
- package/server/auths/bearer.js +1 -3
- package/server/auths/facebook.js +1 -12
- package/server/auths/google.js +1 -13
- package/server/auths/local.js +1 -64
- package/server/cluster.js +1 -27
- package/server/controllers/controller.js +1 -107
- package/server/controllers/controllerRPT.js +1 -27
- package/server/controllers/controllerUtils.js +1 -76
- package/server/controllers/createHandler.js +1 -35
- package/server/controllers/createRouteHandler.js +1 -4
- package/server/controllers/deleteHandler.js +1 -11
- package/server/controllers/deleteManyHandler.js +1 -2
- package/server/controllers/exportHandler.js +1 -17
- package/server/controllers/findHandler.js +1 -53
- package/server/controllers/handlers.js +1 -3
- package/server/controllers/historyHandler.js +1 -5
- package/server/controllers/importFromExcelHandler.js +1 -14
- package/server/controllers/importFromGsHandler.js +1 -10
- package/server/controllers/importFromJsonHandler.js +1 -7
- package/server/controllers/importHandler.js +1 -21
- package/server/controllers/logHandler.js +1 -5
- package/server/controllers/rptCreateRouteHandler.js +1 -4
- package/server/controllers/rptExcelHandler.js +1 -32
- package/server/controllers/rptHandler.js +1 -13
- package/server/controllers/updateBookHandler.js +1 -10
- package/server/controllers/updateFieldHandler.js +1 -12
- package/server/controllers/updateHandler.js +1 -39
- package/server/controllers/updateKeyHandler.js +1 -14
- package/server/controllers/viewHandler.js +1 -13
- package/server/flow/FlowEngine.js +1 -64
- package/server/flow/WebhookManager.js +1 -26
- package/server/flow/handlers.js +1 -3
- package/server/flow/nodes/aiAnalysis.js +1 -9
- package/server/flow/nodes/customer.js +1 -15
- package/server/flow/nodes/data.js +1 -14
- package/server/flow/nodes/debug.js +1 -2
- package/server/flow/nodes/delay.js +1 -3
- package/server/flow/nodes/email.js +1 -9
- package/server/flow/nodes/event.js +1 -11
- package/server/flow/nodes/facebook.js +1 -3
- package/server/flow/nodes/facebookConversations.js +1 -5
- package/server/flow/nodes/facebookCreatePost.js +1 -10
- package/server/flow/nodes/facebookSendMessage.js +1 -12
- package/server/flow/nodes/forEachItem.js +1 -8
- package/server/flow/nodes/function.js +1 -4
- package/server/flow/nodes/httprequest.js +1 -7
- package/server/flow/nodes/inject.js +1 -12
- package/server/flow/nodes/pushNotification.js +1 -5
- package/server/flow/nodes/report.js +1 -6
- package/server/flow/nodes/saveData.js +1 -2
- package/server/flow/nodes/switch.js +1 -20
- package/server/flow/nodes/webhook.js +1 -1
- package/server/flow/nodes/zaloSendMessage.js +1 -4
- package/server/flow/utils.js +1 -2
- package/server/global.js +1 -23
- package/server/libs/BlockchainTransactionPool.js +1 -3
- package/server/libs/WorkerPool.js +1 -4
- package/server/libs/WorkerStaticPool.js +1 -16
- package/server/libs/WorkerStaticPool_v1.js +1 -5
- package/server/libs/assbonus.js +1 -7
- package/server/libs/backup.js +1 -2
- package/server/libs/blockchainconnect.js +1 -12
- package/server/libs/cdpsdiem.js +1 -5
- package/server/libs/cdpsdt.js +1 -7
- package/server/libs/cdpskh.js +1 -9
- package/server/libs/cdpsnphep.js +1 -6
- package/server/libs/cdpstk.js +1 -11
- package/server/libs/ckcn.js +1 -12
- package/server/libs/ckdiem.js +1 -5
- package/server/libs/ckdt.js +1 -6
- package/server/libs/cknphep.js +1 -6
- package/server/libs/cktk.js +1 -4
- package/server/libs/cktt.js +1 -9
- package/server/libs/ckvt.js +1 -12
- package/server/libs/ckvtcapphat.js +1 -6
- package/server/libs/ckvtnpp.js +1 -8
- package/server/libs/ckvttt.js +1 -11
- package/server/libs/createSocaitheongay.js +1 -9
- package/server/libs/ctdiem.js +1 -5
- package/server/libs/ctvt.js +1 -7
- package/server/libs/ctvtnpp.js +1 -7
- package/server/libs/ctvttt.js +1 -7
- package/server/libs/databanle.js +1 -17
- package/server/libs/databanlenpp.js +1 -8
- package/server/libs/databanletheongay.js +1 -27
- package/server/libs/dkcn.js +1 -10
- package/server/libs/dkdiem.js +1 -5
- package/server/libs/dkdt.js +1 -6
- package/server/libs/dknphep.js +1 -7
- package/server/libs/dktk.js +1 -4
- package/server/libs/dktt.js +1 -8
- package/server/libs/dkvt.js +1 -9
- package/server/libs/dkvtnpp.js +1 -7
- package/server/libs/dkvttt.js +1 -7
- package/server/libs/dncn.js +1 -6
- package/server/libs/dntk.js +1 -4
- package/server/libs/dntt.js +1 -6
- package/server/libs/docs.js +1 -452
- package/server/libs/dstkcn.js +1 -1
- package/server/libs/dstktt.js +1 -1
- package/server/libs/dtbanletheonpp.js +1 -17
- package/server/libs/dtbanletheosp.js +1 -15
- package/server/libs/dtbanletheospnpp.js +1 -15
- package/server/libs/email.js +1 -3
- package/server/libs/excel.js +1 -2
- package/server/libs/getGiaban.js +1 -67
- package/server/libs/getGiabanAsync.js +1 -1
- package/server/libs/getNotifies.js +1 -1
- package/server/libs/htmlReport.js +1 -9
- package/server/libs/initDatabase.js +1 -9
- package/server/libs/invoiceEasy.js +1 -109
- package/server/libs/invoiceViettel.js +1 -29
- package/server/libs/invoiceVnpt.js +1 -22
- package/server/libs/kpistatus.js +1 -32
- package/server/libs/load-template.js +1 -3
- package/server/libs/mailmanagement.js +1 -13
- package/server/libs/mongooseDeletePost.js +1 -6
- package/server/libs/mongooseLeanId.js +1 -1
- package/server/libs/mongoosePatch.js +1 -8
- package/server/libs/onepay-payment.js +1 -4
- package/server/libs/optimizeBookkeeping.js +1 -14
- package/server/libs/parse-template.js +1 -5
- package/server/libs/permission.js +1 -51
- package/server/libs/phanbokh.js +1 -3
- package/server/libs/post-book.js +1 -23
- package/server/libs/post-socai.js +1 -25
- package/server/libs/post-sokho.js +1 -27
- package/server/libs/prototypes.js +1 -29
- package/server/libs/psdt.js +1 -1
- package/server/libs/pskh.js +1 -1
- package/server/libs/pstk.js +1 -1
- package/server/libs/redis-cache.js +1 -17
- package/server/libs/restore.js +1 -1
- package/server/libs/schedule.js +1 -18
- package/server/libs/sessionContext.js +2 -14
- package/server/libs/textReport.js +1 -3
- package/server/libs/thnxt.js +1 -9
- package/server/libs/thnxtnpp.js +1 -9
- package/server/libs/thnxttt.js +1 -8
- package/server/libs/tinhGt.js +1 -7
- package/server/libs/tinhGtCapnhatPNK.js +1 -7
- package/server/libs/tinhGtPhanboHeSo.js +1 -12
- package/server/libs/tinhGtPhanboSltp.js +1 -10
- package/server/libs/tinhGtPhanboYtcp.js +1 -11
- package/server/libs/tinhGtSltk.js +1 -9
- package/server/libs/tinhGtThcppstk.js +1 -10
- package/server/libs/tinhGtTrucTiep.js +1 -7
- package/server/libs/tinhGtXoa.js +1 -3
- package/server/libs/tinhgiatb.js +1 -38
- package/server/libs/tinhgiatb1vt.js +1 -5
- package/server/libs/tinhhoahong.js +1 -64
- package/server/libs/tinhhoahongnpp.js +1 -46
- package/server/libs/tinhkhauhao1ts.js +1 -12
- package/server/libs/tinhkhauhaots.js +1 -8
- package/server/libs/tuoinophaithu.js +1 -10
- package/server/libs/tuoinophaitra.js +1 -11
- package/server/libs/utils.js +1 -78
- package/server/libs/validate.js +1 -4
- package/server/libs/validator-acc-cust.js +1 -1
- package/server/libs/validator-account.js +1 -4
- package/server/libs/validator-vt.js +1 -2
- package/server/libs/validator.js +1 -11
- package/server/libs/vsocai.js +1 -8
- package/server/models/account.js +1 -7
- package/server/models/afflink.js +1 -2
- package/server/models/app.js +1 -15
- package/server/models/approve.js +1 -93
- package/server/models/assabcihandler.js +1 -35
- package/server/models/assbank.js +1 -19
- package/server/models/assbooking.js +1 -4
- package/server/models/assbuy.js +1 -3
- package/server/models/asscashwithdraw.js +1 -4
- package/server/models/assfindhash.js +1 -2
- package/server/models/assinvestment.js +1 -13
- package/server/models/assissue.js +1 -2
- package/server/models/asskey.js +1 -15
- package/server/models/assneedtobuy.js +1 -6
- package/server/models/assperiod.js +1 -7
- package/server/models/assproduct.js +1 -13
- package/server/models/assprofitsharing.js +1 -4
- package/server/models/assreceiver.js +1 -2
- package/server/models/assrequest.js +1 -11
- package/server/models/asssell.js +1 -7
- package/server/models/asstransaction.js +1 -3
- package/server/models/asstransfer.js +1 -4
- package/server/models/assuser_identity.js +1 -4
- package/server/models/asswithdraw.js +1 -4
- package/server/models/attend.js +1 -2
- package/server/models/banggiaban.js +1 -8
- package/server/models/bangtinhluong.js +1 -6
- package/server/models/base.js +1 -1
- package/server/models/bds_area.js +1 -4
- package/server/models/bds_block.js +1 -3
- package/server/models/bds_building.js +1 -4
- package/server/models/bds_floor.js +1 -3
- package/server/models/bds_floordetail.js +1 -9
- package/server/models/bds_nhadat.js +1 -11
- package/server/models/bds_nhomnhadat.js +1 -4
- package/server/models/bds_phanloainhadat.js +1 -3
- package/server/models/bg1.js +1 -9
- package/server/models/bg2.js +1 -10
- package/server/models/cache.js +1 -3
- package/server/models/calllog.js +1 -4
- package/server/models/campaign.js +1 -6
- package/server/models/cart.js +1 -5
- package/server/models/cddiem.js +1 -2
- package/server/models/cddt.js +1 -3
- package/server/models/cdkh.js +1 -5
- package/server/models/cdkhtheongay.js +1 -5
- package/server/models/cdnphep.js +1 -2
- package/server/models/cdtk.js +1 -3
- package/server/models/cdtktheongay.js +1 -3
- package/server/models/cdvt.js +1 -5
- package/server/models/cdvtnpp.js +1 -6
- package/server/models/cdvttheongay.js +1 -5
- package/server/models/chamcong.js +1 -7
- package/server/models/checkin.js +1 -4
- package/server/models/checkinactivity.js +1 -3
- package/server/models/checkinkpi.js +1 -4
- package/server/models/checkinlocation.js +1 -2
- package/server/models/chitieukpi.js +1 -3
- package/server/models/chudethaoluan.js +1 -3
- package/server/models/ckgtluong.js +1 -2
- package/server/models/colleague.js +1 -2
- package/server/models/comment.js +1 -4
- package/server/models/congdoansx.js +1 -4
- package/server/models/congtacvien.js +1 -4
- package/server/models/congthuctinhgiaban.js +1 -8
- package/server/models/consultant.js +1 -4
- package/server/models/contract.js +1 -6
- package/server/models/counter.js +1 -2
- package/server/models/ctds.js +1 -5
- package/server/models/ctds2.js +1 -6
- package/server/models/currency.js +1 -3
- package/server/models/customer.js +1 -31
- package/server/models/databanle.js +1 -8
- package/server/models/datlich.js +1 -4
- package/server/models/department.js +1 -4
- package/server/models/dh2.js +1 -20
- package/server/models/diagram.js +1 -2
- package/server/models/dinhmucsx.js +1 -8
- package/server/models/dkhoc.js +1 -6
- package/server/models/dknphep.js +1 -2
- package/server/models/dmban.js +1 -4
- package/server/models/dmbp.js +1 -12
- package/server/models/dmca.js +1 -2
- package/server/models/dmchietkhau.js +1 -9
- package/server/models/dmchietkhauhd.js +1 -20
- package/server/models/dmcpmh.js +1 -2
- package/server/models/dmdiemthuong.js +1 -5
- package/server/models/dmdoi.js +1 -4
- package/server/models/dmdoituongdanhgia.js +1 -2
- package/server/models/dmdt.js +1 -8
- package/server/models/dmdvt.js +1 -3
- package/server/models/dmgiaban.js +1 -9
- package/server/models/dmgiamua.js +1 -5
- package/server/models/dmgiathitruong.js +1 -5
- package/server/models/dmgiathitruong_ngay.js +1 -2
- package/server/models/dmgiathitruong_theodoi.js +1 -2
- package/server/models/dmhoahonghd.js +1 -9
- package/server/models/dmhoahongnpp.js +1 -9
- package/server/models/dmkc.js +1 -3
- package/server/models/dmkho.js +1 -6
- package/server/models/dmkhuyenmai.js +1 -9
- package/server/models/dmkhuyenmaihd.js +1 -11
- package/server/models/dmletet.js +1 -2
- package/server/models/dmlo.js +1 -4
- package/server/models/dmloaicong.js +1 -4
- package/server/models/dmloaitask.js +1 -2
- package/server/models/dmloaits.js +1 -2
- package/server/models/dmnckkm.js +1 -4
- package/server/models/dmnghiepvu.js +1 -4
- package/server/models/dmnguonvon.js +1 -2
- package/server/models/dmnhnv.js +1 -4
- package/server/models/dmnv.js +1 -17
- package/server/models/dmnvt.js +1 -9
- package/server/models/dmphatdichvu.js +1 -5
- package/server/models/dmphi.js +1 -3
- package/server/models/dmqct.js +1 -3
- package/server/models/dmqddvt.js +1 -3
- package/server/models/dmtanggiamts.js +1 -3
- package/server/models/dmto.js +1 -4
- package/server/models/dmtt.js +1 -6
- package/server/models/dmvt.js +1 -17
- package/server/models/dmyt.js +1 -4
- package/server/models/dn0.js +1 -13
- package/server/models/dnm.js +1 -11
- package/server/models/dokho.js +1 -2
- package/server/models/domain.js +1 -2
- package/server/models/dvcs.js +1 -3
- package/server/models/ecomcategories.js +1 -3
- package/server/models/ecomcategories_cty.js +1 -3
- package/server/models/ecomproductlines.js +1 -2
- package/server/models/ecompromotion_flashsales.js +1 -2
- package/server/models/ecompromotion_freeships.js +1 -2
- package/server/models/email.js +1 -2
- package/server/models/endpoint.js +1 -1
- package/server/models/events.js +1 -3
- package/server/models/evoucher.js +1 -5
- package/server/models/experiencejourney.js +1 -2
- package/server/models/experiencejourneydata.js +1 -4
- package/server/models/experiencejourneypersona.js +1 -3
- package/server/models/experiencejourneystage.js +1 -2
- package/server/models/exportexceltemplate.js +1 -2
- package/server/models/fbconversation.js +1 -15
- package/server/models/fbmessage.js +1 -2
- package/server/models/fbpage.js +1 -2
- package/server/models/fbpost.js +1 -2
- package/server/models/fieldright.js +1 -2
- package/server/models/file.js +1 -4
- package/server/models/financialroadmap.js +1 -3
- package/server/models/flow.js +1 -2
- package/server/models/flowdata.js +1 -3
- package/server/models/folder.js +1 -4
- package/server/models/follow.js +1 -2
- package/server/models/form.js +1 -3
- package/server/models/forminfo.js +1 -5
- package/server/models/formvalue.js +1 -3
- package/server/models/giaoca.js +1 -4
- package/server/models/giatb.js +1 -3
- package/server/models/group.js +1 -11
- package/server/models/gt_ctgt.js +1 -4
- package/server/models/gt_hspb.js +1 -3
- package/server/models/gt_sltk.js +1 -3
- package/server/models/gt_thcppstk.js +1 -3
- package/server/models/hanmucton.js +1 -4
- package/server/models/hd1.js +1 -11
- package/server/models/hd2.js +1 -27
- package/server/models/hd3.js +1 -18
- package/server/models/hd4.js +1 -13
- package/server/models/hd7.js +1 -17
- package/server/models/hd8.js +1 -12
- package/server/models/hde.js +1 -11
- package/server/models/hlink.js +1 -2
- package/server/models/hlinkvalue.js +1 -2
- package/server/models/hmcn.js +1 -3
- package/server/models/hmcnct.js +1 -2
- package/server/models/hspbts.js +1 -4
- package/server/models/htl.js +1 -13
- package/server/models/importexceltemplate.js +1 -2
- package/server/models/introducebonus.js +1 -4
- package/server/models/introducecode.js +1 -3
- package/server/models/introducer.js +1 -4
- package/server/models/kbbtpb.js +1 -7
- package/server/models/kbmPttct.js +1 -4
- package/server/models/kbmTkgtgt.js +1 -5
- package/server/models/kbm_bcdkt.js +1 -4
- package/server/models/kbm_kqhdkd.js +1 -3
- package/server/models/kbm_lcttgt.js +1 -5
- package/server/models/kbm_lctttt.js +1 -4
- package/server/models/kbm_pttct.js +1 -4
- package/server/models/kbm_tkgtgt.js +1 -5
- package/server/models/kbmbcdkt.js +1 -4
- package/server/models/kbmbcqt.js +1 -4
- package/server/models/kbmkqhdkd.js +1 -3
- package/server/models/kbmlcttgt.js +1 -6
- package/server/models/kbmlctttt.js +1 -4
- package/server/models/kbmtmbctc.js +1 -4
- package/server/models/kehoachdtcp.js +1 -3
- package/server/models/kehoachmh.js +1 -8
- package/server/models/keyresult.js +1 -7
- package/server/models/khunghangthanhvien.js +1 -3
- package/server/models/label.js +1 -2
- package/server/models/labelinfo.js +1 -2
- package/server/models/lenhcapphat.js +1 -8
- package/server/models/lenhsx.js +1 -8
- package/server/models/lienhe.js +1 -4
- package/server/models/like_module.js +1 -2
- package/server/models/link.js +1 -2
- package/server/models/loaidiem.js +1 -2
- package/server/models/lock.js +1 -2
- package/server/models/log.js +1 -5
- package/server/models/mailaccount.js +1 -3
- package/server/models/mailgroup.js +1 -3
- package/server/models/mailreceived.js +1 -2
- package/server/models/mailschedule.js +1 -2
- package/server/models/mailsent.js +1 -2
- package/server/models/mailtemplate.js +1 -2
- package/server/models/maudanhgia.js +1 -2
- package/server/models/menuinfo.js +1 -2
- package/server/models/message.js +1 -8
- package/server/models/message2.js +1 -4
- package/server/models/message2setting.js +1 -3
- package/server/models/moduleinfo.js +1 -4
- package/server/models/momo.js +1 -17
- package/server/models/news.js +1 -3
- package/server/models/newsfeed.js +1 -4
- package/server/models/note.js +1 -2
- package/server/models/notification.js +1 -7
- package/server/models/okr.js +1 -4
- package/server/models/okrdiagram.js +1 -3
- package/server/models/onepay.js +1 -24
- package/server/models/opportunity.js +1 -4
- package/server/models/options.js +1 -2
- package/server/models/originimportid.js +1 -1
- package/server/models/otp.js +1 -1
- package/server/models/parameter.js +1 -2
- package/server/models/participant.js +1 -20
- package/server/models/partner.js +1 -1
- package/server/models/payload.js +1 -1
- package/server/models/pbl.js +1 -16
- package/server/models/pc0.js +1 -13
- package/server/models/pc1.js +1 -14
- package/server/models/pc2.js +1 -13
- package/server/models/pc3.js +1 -13
- package/server/models/pc5.js +1 -8
- package/server/models/pc6.js +1 -14
- package/server/models/pcl.js +1 -6
- package/server/models/pdn.js +1 -9
- package/server/models/pdx.js +1 -9
- package/server/models/pgh.js +1 -5
- package/server/models/phieudanhgia.js +1 -3
- package/server/models/pht.js +1 -8
- package/server/models/phucap.js +1 -4
- package/server/models/pkc.js +1 -6
- package/server/models/pkh.js +1 -6
- package/server/models/pkk.js +1 -10
- package/server/models/pkt.js +1 -12
- package/server/models/pn1.js +1 -17
- package/server/models/pn2.js +1 -11
- package/server/models/pn3.js +1 -13
- package/server/models/pn5.js +1 -14
- package/server/models/pn6.js +1 -14
- package/server/models/pn9.js +1 -17
- package/server/models/pnc.js +1 -10
- package/server/models/pnh.js +1 -12
- package/server/models/pnk.js +1 -10
- package/server/models/po1.js +1 -19
- package/server/models/ppb.js +1 -6
- package/server/models/profile.js +1 -4
- package/server/models/pt1.js +1 -12
- package/server/models/pt5.js +1 -8
- package/server/models/ptl.js +1 -6
- package/server/models/ptthanhtoan.js +1 -6
- package/server/models/purchase_contract.js +1 -17
- package/server/models/pxc.js +1 -9
- package/server/models/pxh.js +1 -12
- package/server/models/pxk.js +1 -10
- package/server/models/qts.js +1 -14
- package/server/models/qts_dieuchinh.js +1 -3
- package/server/models/qts_dieuchuyen.js +1 -4
- package/server/models/quanhuyen.js +1 -2
- package/server/models/reason.js +1 -2
- package/server/models/receivedinvoice.js +1 -2
- package/server/models/reportinfo.js +1 -5
- package/server/models/right.js +1 -4
- package/server/models/rpt.js +1 -2
- package/server/models/rptform.js +1 -5
- package/server/models/rptobject.js +1 -2
- package/server/models/sale_contract.js +1 -9
- package/server/models/schedule.js +1 -16
- package/server/models/schedule_log.js +1 -2
- package/server/models/service.js +1 -4
- package/server/models/shipbook.js +1 -12
- package/server/models/shortcut.js +1 -2
- package/server/models/smsaccount.js +1 -10
- package/server/models/smssend.js +1 -2
- package/server/models/so1.js +1 -22
- package/server/models/so2.js +1 -10
- package/server/models/so3.js +1 -9
- package/server/models/so5.js +1 -15
- package/server/models/so9.js +1 -19
- package/server/models/socai.js +1 -26
- package/server/models/socainpp.js +1 -18
- package/server/models/socaitc.js +1 -6
- package/server/models/socaitmp.js +1 -16
- package/server/models/socaitt.js +1 -4
- package/server/models/sodiemthuong.js +1 -4
- package/server/models/sokho.js +1 -28
- package/server/models/sokhocapphat.js +1 -18
- package/server/models/sokhokhongton.js +1 -19
- package/server/models/sokhonpp.js +1 -19
- package/server/models/sokhotc.js +1 -8
- package/server/models/sokhott.js +1 -18
- package/server/models/sophanbokh.js +1 -3
- package/server/models/sosanxuat.js +1 -5
- package/server/models/sotinhkh.js +1 -2
- package/server/models/spdd_ck.js +1 -3
- package/server/models/spdd_dk.js +1 -3
- package/server/models/step.js +1 -2
- package/server/models/strategicdiagram.js +1 -3
- package/server/models/strategicgoal.js +1 -4
- package/server/models/strategickpi.js +1 -6
- package/server/models/strategicobjective.js +1 -5
- package/server/models/strategicplan.js +1 -5
- package/server/models/subscribe.js +1 -2
- package/server/models/support.js +1 -2
- package/server/models/synctime.js +1 -2
- package/server/models/sysconfig.js +1 -2
- package/server/models/sysgroup.js +1 -2
- package/server/models/tableinfo.js +1 -3
- package/server/models/task.js +1 -9
- package/server/models/taskreg.js +1 -4
- package/server/models/tc.js +1 -2
- package/server/models/tdttco.js +1 -8
- package/server/models/tdttco_tt.js +1 -5
- package/server/models/tdttno.js +1 -8
- package/server/models/tdttno_tt.js +1 -5
- package/server/models/templaterpt.js +1 -2
- package/server/models/templatestore.js +1 -3
- package/server/models/templatevoucher.js +1 -3
- package/server/models/tinhthanh.js +1 -2
- package/server/models/tokens.js +1 -2
- package/server/models/tontucthoi.js +1 -9
- package/server/models/trangthai.js +1 -4
- package/server/models/trangthaiapp.js +1 -4
- package/server/models/transaction.js +1 -16
- package/server/models/trialinfo.js +1 -2
- package/server/models/user.js +1 -38
- package/server/models/usergroup.js +1 -7
- package/server/models/vanchuyen.js +1 -12
- package/server/models/vat.js +1 -3
- package/server/models/vatra.js +1 -6
- package/server/models/vatvao.js +1 -6
- package/server/models/versioninfo.js +1 -2
- package/server/models/vietqrbanks.js +1 -2
- package/server/models/vsocai.js +1 -6
- package/server/models/waitevent.js +1 -2
- package/server/models/wallet.js +1 -8
- package/server/models/warranty.js +1 -3
- package/server/models/warrantyclaim.js +1 -2
- package/server/models/warrantypolicy.js +1 -1
- package/server/models/xaphuong.js +1 -2
- package/server/models/xhd.js +1 -10
- package/server/models/ytdd_ck.js +1 -4
- package/server/models/ytdd_dk.js +1 -4
- package/server/models/zalo.js +1 -17
- package/server/modules/lists/bg-cddiem.js +1 -6
- package/server/modules/lists/bg-cddt.js +1 -7
- package/server/modules/lists/bg-cdkh.js +1 -11
- package/server/modules/lists/bg-cdnphep.js +1 -6
- package/server/modules/lists/bg-cdtk.js +1 -9
- package/server/modules/lists/bg-cdvt.js +1 -8
- package/server/modules/lists/bg-cdvtnpp.js +1 -8
- package/server/modules/lists/ls-account.js +1 -4
- package/server/modules/lists/ls-afflink.js +1 -3
- package/server/modules/lists/ls-approve.js +1 -4
- package/server/modules/lists/ls-assabcihandler.js +1 -3
- package/server/modules/lists/ls-assbank.js +1 -3
- package/server/modules/lists/ls-assbooking.js +1 -20
- package/server/modules/lists/ls-assbuy.js +1 -8
- package/server/modules/lists/ls-asscashwithdraw.js +1 -8
- package/server/modules/lists/ls-assinvestment.js +1 -31
- package/server/modules/lists/ls-assissue.js +1 -3
- package/server/modules/lists/ls-asskey.js +1 -41
- package/server/modules/lists/ls-assneedtobuy.js +1 -10
- package/server/modules/lists/ls-assperiod.js +1 -19
- package/server/modules/lists/ls-assproduct.js +1 -9
- package/server/modules/lists/ls-assprofitsharing.js +1 -8
- package/server/modules/lists/ls-assreceiver.js +1 -3
- package/server/modules/lists/ls-assrequest.js +1 -4
- package/server/modules/lists/ls-asssell.js +1 -13
- package/server/modules/lists/ls-asstransaction.js +1 -3
- package/server/modules/lists/ls-asstransfer.js +1 -3
- package/server/modules/lists/ls-assuser_identity.js +1 -1
- package/server/modules/lists/ls-asswithdraw.js +1 -12
- package/server/modules/lists/ls-bangtinhluong.js +1 -2
- package/server/modules/lists/ls-bds_area.js +1 -3
- package/server/modules/lists/ls-bds_block.js +1 -1
- package/server/modules/lists/ls-bds_building.js +1 -3
- package/server/modules/lists/ls-bds_dmnhbds.js +1 -6
- package/server/modules/lists/ls-bds_floor.js +1 -2
- package/server/modules/lists/ls-bds_floordetail.js +1 -19
- package/server/modules/lists/ls-bds_nhadat.js +1 -16
- package/server/modules/lists/ls-bds_nhomnhadat.js +1 -1
- package/server/modules/lists/ls-bds_phanloainhadat.js +1 -1
- package/server/modules/lists/ls-calllog.js +1 -4
- package/server/modules/lists/ls-campaign.js +1 -1
- package/server/modules/lists/ls-cart.js +1 -14
- package/server/modules/lists/ls-chamcong.js +1 -3
- package/server/modules/lists/ls-checkin.js +1 -12
- package/server/modules/lists/ls-checkinactivity.js +1 -8
- package/server/modules/lists/ls-checkinkpi.js +1 -3
- package/server/modules/lists/ls-checkinlocation.js +1 -1
- package/server/modules/lists/ls-chitieukpi.js +1 -1
- package/server/modules/lists/ls-chudethaoluan.js +1 -1
- package/server/modules/lists/ls-ckgtluong.js +1 -1
- package/server/modules/lists/ls-comment.js +1 -9
- package/server/modules/lists/ls-congdoansx.js +1 -3
- package/server/modules/lists/ls-congtacvien.js +1 -5
- package/server/modules/lists/ls-consultant.js +1 -2
- package/server/modules/lists/ls-contract.js +1 -7
- package/server/modules/lists/ls-ctds.js +1 -4
- package/server/modules/lists/ls-ctds2.js +1 -4
- package/server/modules/lists/ls-currency.js +1 -1
- package/server/modules/lists/ls-customer.js +1 -21
- package/server/modules/lists/ls-datlich.js +1 -9
- package/server/modules/lists/ls-dckhauhaots.js +1 -3
- package/server/modules/lists/ls-department.js +1 -3
- package/server/modules/lists/ls-diagram.js +1 -1
- package/server/modules/lists/ls-dkhoc.js +1 -6
- package/server/modules/lists/ls-dknphep.js +1 -1
- package/server/modules/lists/ls-dmban.js +1 -4
- package/server/modules/lists/ls-dmbp.js +1 -7
- package/server/modules/lists/ls-dmca.js +1 -1
- package/server/modules/lists/ls-dmchietkhau.js +1 -19
- package/server/modules/lists/ls-dmchietkhauhd.js +1 -4
- package/server/modules/lists/ls-dmchucvu.js +1 -2
- package/server/modules/lists/ls-dmcpmh.js +1 -1
- package/server/modules/lists/ls-dmdiemthuong.js +1 -4
- package/server/modules/lists/ls-dmdoi.js +1 -4
- package/server/modules/lists/ls-dmdoituongdanhgia.js +1 -1
- package/server/modules/lists/ls-dmdt.js +1 -11
- package/server/modules/lists/ls-dmdvt.js +1 -2
- package/server/modules/lists/ls-dmgiaban.js +1 -4
- package/server/modules/lists/ls-dmgiamua.js +1 -4
- package/server/modules/lists/ls-dmgiathitruong.js +1 -15
- package/server/modules/lists/ls-dmgiathitruong_ngay.js +1 -2
- package/server/modules/lists/ls-dmgiathitruong_theodoi.js +1 -1
- package/server/modules/lists/ls-dmhoahonghd.js +1 -1
- package/server/modules/lists/ls-dmhoahongnpp.js +1 -1
- package/server/modules/lists/ls-dmkc.js +1 -3
- package/server/modules/lists/ls-dmkho.js +1 -1
- package/server/modules/lists/ls-dmkhuyenmai.js +1 -5
- package/server/modules/lists/ls-dmkhuyenmaihd.js +1 -3
- package/server/modules/lists/ls-dmletet.js +1 -1
- package/server/modules/lists/ls-dmlo.js +1 -1
- package/server/modules/lists/ls-dmloaicong.js +1 -1
- package/server/modules/lists/ls-dmloaits.js +1 -1
- package/server/modules/lists/ls-dmnckkm.js +1 -7
- package/server/modules/lists/ls-dmnghiepvu.js +1 -1
- package/server/modules/lists/ls-dmnguonvon.js +1 -1
- package/server/modules/lists/ls-dmnhnv.js +1 -6
- package/server/modules/lists/ls-dmnhtask.js +1 -5
- package/server/modules/lists/ls-dmnkh.js +1 -6
- package/server/modules/lists/ls-dmntt.js +1 -6
- package/server/modules/lists/ls-dmnv.js +1 -17
- package/server/modules/lists/ls-dmnvt.js +1 -8
- package/server/modules/lists/ls-dmphatdichvu.js +1 -3
- package/server/modules/lists/ls-dmphi.js +1 -6
- package/server/modules/lists/ls-dmqct.js +1 -2
- package/server/modules/lists/ls-dmqddvt.js +1 -3
- package/server/modules/lists/ls-dmtanggiamts.js +1 -1
- package/server/modules/lists/ls-dmto.js +1 -5
- package/server/modules/lists/ls-dmtt.js +1 -7
- package/server/modules/lists/ls-dmvt.js +1 -68
- package/server/modules/lists/ls-dmyt.js +1 -1
- package/server/modules/lists/ls-dokho.js +1 -1
- package/server/modules/lists/ls-dvcs.js +1 -1
- package/server/modules/lists/ls-ecomcategories.js +1 -5
- package/server/modules/lists/ls-ecomcategories_cty.js +1 -5
- package/server/modules/lists/ls-email.js +1 -4
- package/server/modules/lists/ls-events.js +1 -3
- package/server/modules/lists/ls-evoucher.js +1 -3
- package/server/modules/lists/ls-experiencejourney.js +1 -1
- package/server/modules/lists/ls-experiencejourneydata.js +1 -3
- package/server/modules/lists/ls-experiencejourneypersona.js +1 -4
- package/server/modules/lists/ls-experiencejourneystage.js +1 -1
- package/server/modules/lists/ls-fbconversation.js +1 -2
- package/server/modules/lists/ls-fbmessage.js +1 -2
- package/server/modules/lists/ls-fbpage.js +1 -11
- package/server/modules/lists/ls-fbpost.js +1 -2
- package/server/modules/lists/ls-file.js +1 -31
- package/server/modules/lists/ls-financialroadmap.js +1 -3
- package/server/modules/lists/ls-flow.js +1 -6
- package/server/modules/lists/ls-flowdata.js +1 -1
- package/server/modules/lists/ls-folder.js +1 -1
- package/server/modules/lists/ls-form.js +1 -1
- package/server/modules/lists/ls-forminfo.js +1 -1
- package/server/modules/lists/ls-formvalue.js +1 -1
- package/server/modules/lists/ls-giaoca.js +1 -4
- package/server/modules/lists/ls-group.js +1 -5
- package/server/modules/lists/ls-hlink.js +1 -1
- package/server/modules/lists/ls-hlinkvalue.js +1 -1
- package/server/modules/lists/ls-hmcn.js +1 -2
- package/server/modules/lists/ls-hspbts.js +1 -3
- package/server/modules/lists/ls-introducebonus.js +1 -4
- package/server/modules/lists/ls-introducecode.js +1 -10
- package/server/modules/lists/ls-introducer.js +1 -20
- package/server/modules/lists/ls-kbm-bcdkt.js +1 -1
- package/server/modules/lists/ls-kbm-bcqt.js +1 -5
- package/server/modules/lists/ls-kbm-kqhdkd.js +1 -1
- package/server/modules/lists/ls-kbm-lcttgt.js +1 -1
- package/server/modules/lists/ls-kbm-lctttt.js +1 -1
- package/server/modules/lists/ls-kbm-pttct.js +1 -3
- package/server/modules/lists/ls-kbm-tkgtgt.js +1 -3
- package/server/modules/lists/ls-kbm-tmbctc.js +1 -3
- package/server/modules/lists/ls-kehoachdtcp.js +1 -4
- package/server/modules/lists/ls-keyresult.js +1 -7
- package/server/modules/lists/ls-khunghangthanhvien.js +1 -1
- package/server/modules/lists/ls-kygui.js +1 -19
- package/server/modules/lists/ls-label.js +1 -1
- package/server/modules/lists/ls-lienhe.js +1 -4
- package/server/modules/lists/ls-like-module.js +1 -1
- package/server/modules/lists/ls-link.js +1 -1
- package/server/modules/lists/ls-loaidiem.js +1 -1
- package/server/modules/lists/ls-lock.js +1 -1
- package/server/modules/lists/ls-log.js +1 -3
- package/server/modules/lists/ls-mailaccount.js +1 -5
- package/server/modules/lists/ls-mailreceived.js +1 -5
- package/server/modules/lists/ls-mailschedule.js +1 -7
- package/server/modules/lists/ls-mailsent.js +1 -4
- package/server/modules/lists/ls-mailtemplate.js +1 -4
- package/server/modules/lists/ls-maudanhgia.js +1 -3
- package/server/modules/lists/ls-message2.js +1 -8
- package/server/modules/lists/ls-message2setting.js +1 -5
- package/server/modules/lists/ls-news.js +1 -7
- package/server/modules/lists/ls-newsfeed.js +1 -4
- package/server/modules/lists/ls-note.js +1 -6
- package/server/modules/lists/ls-okr.js +1 -5
- package/server/modules/lists/ls-okrdiagram.js +1 -1
- package/server/modules/lists/ls-opportunity.js +1 -5
- package/server/modules/lists/ls-options.js +1 -4
- package/server/modules/lists/ls-parameter.js +1 -3
- package/server/modules/lists/ls-participant.js +1 -10
- package/server/modules/lists/ls-phieudanhgia.js +1 -7
- package/server/modules/lists/ls-phucap.js +1 -2
- package/server/modules/lists/ls-profile.js +1 -1
- package/server/modules/lists/ls-ptthanhtoan.js +1 -3
- package/server/modules/lists/ls-qts-dieuchinh.js +1 -2
- package/server/modules/lists/ls-qts-dieuchuyen.js +1 -8
- package/server/modules/lists/ls-reason.js +1 -1
- package/server/modules/lists/ls-rpt.js +1 -5
- package/server/modules/lists/ls-rptform.js +1 -4
- package/server/modules/lists/ls-service.js +1 -3
- package/server/modules/lists/ls-shortcut.js +1 -1
- package/server/modules/lists/ls-smsaccount.js +1 -1
- package/server/modules/lists/ls-smssend.js +1 -3
- package/server/modules/lists/ls-sosanxuat.js +1 -4
- package/server/modules/lists/ls-step.js +1 -1
- package/server/modules/lists/ls-strategicdiagram.js +1 -1
- package/server/modules/lists/ls-strategicgoal.js +1 -3
- package/server/modules/lists/ls-strategickpi.js +1 -7
- package/server/modules/lists/ls-strategicobjective.js +1 -3
- package/server/modules/lists/ls-strategicplan.js +1 -6
- package/server/modules/lists/ls-support.js +1 -3
- package/server/modules/lists/ls-task.js +1 -34
- package/server/modules/lists/ls-taskreg.js +1 -2
- package/server/modules/lists/ls-tc.js +1 -1
- package/server/modules/lists/ls-templaterpt.js +1 -5
- package/server/modules/lists/ls-templatevoucher.js +1 -1
- package/server/modules/lists/ls-tontucthoi.js +1 -3
- package/server/modules/lists/ls-trangthaiapp.js +1 -3
- package/server/modules/lists/ls-transaction.js +1 -4
- package/server/modules/lists/ls-usergroup.js +1 -7
- package/server/modules/lists/ls-vat.js +1 -1
- package/server/modules/lists/ls-vatra.js +1 -5
- package/server/modules/lists/ls-vatvao.js +1 -6
- package/server/modules/lists/ls-waitevent.js +1 -1
- package/server/modules/lists/ls-warranty.js +1 -4
- package/server/modules/lists/ls_hanmucton.js +1 -3
- package/server/modules/lists/ls_hspb.js +1 -4
- package/server/modules/lists/ls_spdd_ck.js +1 -3
- package/server/modules/lists/ls_spdd_dk.js +1 -3
- package/server/modules/lists/ls_ytdd_ck.js +1 -4
- package/server/modules/lists/ls_ytdd_dk.js +1 -4
- package/server/modules/lists/sys-attend.js +1 -4
- package/server/modules/lists/sys-follow.js +1 -4
- package/server/modules/lists/sys-right.js +1 -2
- package/server/modules/public/app.js +1 -4
- package/server/modules/public/approve.js +1 -37
- package/server/modules/public/callin.js +1 -7
- package/server/modules/public/comment.js +1 -5
- package/server/modules/public/dmnvt.js +1 -4
- package/server/modules/public/dmvt.js +1 -9
- package/server/modules/public/file.js +1 -11
- package/server/modules/public/form.js +1 -7
- package/server/modules/public/forminfo.js +1 -1
- package/server/modules/public/group.js +1 -4
- package/server/modules/public/hlink.js +1 -3
- package/server/modules/public/introducecode.js +1 -1
- package/server/modules/public/listinfo.js +1 -1
- package/server/modules/public/media-webhook.js +1 -1
- package/server/modules/public/partner.js +1 -1
- package/server/modules/public/paymentCallback.js +1 -32
- package/server/modules/public/province.js +1 -1
- package/server/modules/public/ptthanhtoan.js +1 -4
- package/server/modules/public/subscribe.js +1 -30
- package/server/modules/public/support.js +1 -3
- package/server/modules/public/tableinfo.js +1 -1
- package/server/modules/public/trialinfo.js +1 -4
- package/server/modules/public/versioninfo.js +1 -1
- package/server/modules/reports/calc-tinhgiatb.js +1 -6
- package/server/modules/reports/calc-tinhgiathanh.js +1 -6
- package/server/modules/reports/calc-tinhkhauhaots.js +1 -3
- package/server/modules/reports/calc-tinhluong.js +1 -37
- package/server/modules/reports/rp-analyzedata.js +1 -6
- package/server/modules/reports/rp-assbonus.js +1 -4
- package/server/modules/reports/rp-assinterest.js +1 -8
- package/server/modules/reports/rp-assproductowners.js +1 -3
- package/server/modules/reports/rp-asssupply.js +1 -1
- package/server/modules/reports/rp-asstransferlog.js +1 -10
- package/server/modules/reports/rp-banggiatb.js +1 -3
- package/server/modules/reports/rp-bangtinhkhauhao.js +1 -6
- package/server/modules/reports/rp-baocaokhachhang.js +1 -6
- package/server/modules/reports/rp-bcdkt.js +1 -11
- package/server/modules/reports/rp-bcintroducebonus.js +1 -4
- package/server/modules/reports/rp-bckhtiemnang.js +1 -3
- package/server/modules/reports/rp-bcqt.js +1 -85
- package/server/modules/reports/rp-bkct.js +1 -13
- package/server/modules/reports/rp-bkshipbook.js +1 -8
- package/server/modules/reports/rp-bkvanchuyen.js +1 -8
- package/server/modules/reports/rp-bkvatra.js +1 -7
- package/server/modules/reports/rp-bkvatvao.js +1 -7
- package/server/modules/reports/rp-capnhatsocaitc.js +1 -4
- package/server/modules/reports/rp-cdpsdiem.js +1 -4
- package/server/modules/reports/rp-cdpsdt.js +1 -5
- package/server/modules/reports/rp-cdpskh.js +1 -7
- package/server/modules/reports/rp-cdpsnphep.js +1 -3
- package/server/modules/reports/rp-cdpstk.js +1 -4
- package/server/modules/reports/rp-chitietchitientheohoadon.js +1 -12
- package/server/modules/reports/rp-chitiettaisan.js +1 -13
- package/server/modules/reports/rp-chitietthutientheohoadon.js +1 -13
- package/server/modules/reports/rp-ckcn.js +1 -3
- package/server/modules/reports/rp-ckdiem.js +1 -2
- package/server/modules/reports/rp-cktk.js +1 -3
- package/server/modules/reports/rp-ckvt.js +1 -10
- package/server/modules/reports/rp-ckvttheokho.js +1 -4
- package/server/modules/reports/rp-ckvttheotg.js +1 -4
- package/server/modules/reports/rp-ckvttt.js +1 -3
- package/server/modules/reports/rp-congnophaithutheotuoino.js +1 -3
- package/server/modules/reports/rp-congnophaitratheotuoino.js +1 -3
- package/server/modules/reports/rp-congnosapthu.js +1 -4
- package/server/modules/reports/rp-congnosaptra.js +1 -4
- package/server/modules/reports/rp-congviectheobp.js +1 -9
- package/server/modules/reports/rp-congviectheodt.js +1 -8
- package/server/modules/reports/rp-congviectheokh.js +1 -8
- package/server/modules/reports/rp-congviectheonv.js +1 -9
- package/server/modules/reports/rp-congviectheotimeline.js +1 -6
- package/server/modules/reports/rp-ctbanle.js +1 -15
- package/server/modules/reports/rp-ctbanle2.js +1 -20
- package/server/modules/reports/rp-ctbanlectv.js +1 -20
- package/server/modules/reports/rp-ctbanlenpp.js +1 -24
- package/server/modules/reports/rp-ctdanhgianhanvien.js +1 -8
- package/server/modules/reports/rp-cthangbanbitralai.js +1 -4
- package/server/modules/reports/rp-ctmuahang.js +1 -7
- package/server/modules/reports/rp-cttralaihang.js +1 -4
- package/server/modules/reports/rp-databanle.js +1 -10
- package/server/modules/reports/rp-diemthuong.js +1 -2
- package/server/modules/reports/rp-dkcn.js +1 -3
- package/server/modules/reports/rp-dktk.js +1 -2
- package/server/modules/reports/rp-dsnhanviencm.js +1 -9
- package/server/modules/reports/rp-dsnhanvientb.js +1 -9
- package/server/modules/reports/rp-dtbanlekempk.js +1 -9
- package/server/modules/reports/rp-dtbanletheoct.js +1 -23
- package/server/modules/reports/rp-dtbanletheoctkempk.js +1 -25
- package/server/modules/reports/rp-dtbanletheokh.js +1 -20
- package/server/modules/reports/rp-dtbanletheokhnpp.js +1 -19
- package/server/modules/reports/rp-dtbanletheokho.js +1 -18
- package/server/modules/reports/rp-dtbanletheonam.js +1 -3
- package/server/modules/reports/rp-dtbanletheongay.js +1 -1
- package/server/modules/reports/rp-dtbanletheonpp.js +1 -23
- package/server/modules/reports/rp-dtbanletheonv.js +1 -19
- package/server/modules/reports/rp-dtbanletheoquy.js +1 -3
- package/server/modules/reports/rp-dtbanletheosp.js +1 -8
- package/server/modules/reports/rp-dtbanletheospnpp.js +1 -6
- package/server/modules/reports/rp-dtbanletheothang.js +1 -3
- package/server/modules/reports/rp-dtbanletheothungan.js +1 -12
- package/server/modules/reports/rp-dtbanletheovt.js +1 -2
- package/server/modules/reports/rp-dtbanletheovtnpp.js +1 -2
- package/server/modules/reports/rp-dutoanthuchitheodt.js +1 -4
- package/server/modules/reports/rp-getPXC2PNC.js +1 -8
- package/server/modules/reports/rp-getariseofaccountsbymonth.js +1 -4
- package/server/modules/reports/rp-getbtpb.js +1 -6
- package/server/modules/reports/rp-getcashbycashier.js +1 -7
- package/server/modules/reports/rp-getcschietkhau.js +1 -5
- package/server/modules/reports/rp-getdinhmuc4lenhcp.js +1 -7
- package/server/modules/reports/rp-getdinhmuc4pxk.js +1 -9
- package/server/modules/reports/rp-getdk4pht.js +1 -8
- package/server/modules/reports/rp-getdk4pkc.js +1 -9
- package/server/modules/reports/rp-getdttheoca.js +1 -5
- package/server/modules/reports/rp-getinvoice2pay.js +1 -4
- package/server/modules/reports/rp-getinvoice2receive.js +1 -4
- package/server/modules/reports/rp-getinvoice2return.js +1 -5
- package/server/modules/reports/rp-getinvoice2return_bl.js +1 -6
- package/server/modules/reports/rp-getkehoachmh4lenhcp.js +1 -4
- package/server/modules/reports/rp-getkhauhao.js +1 -7
- package/server/modules/reports/rp-getluong.js +1 -8
- package/server/modules/reports/rp-getluongchuyen.js +1 -5
- package/server/modules/reports/rp-getpn2fee.js +1 -5
- package/server/modules/reports/rp-getpn2return.js +1 -5
- package/server/modules/reports/rp-getthanhpham4pnk.js +1 -7
- package/server/modules/reports/rp-getvc2xhd.js +1 -11
- package/server/modules/reports/rp-gt_cpnvltt.js +1 -6
- package/server/modules/reports/rp-hangbanbitralai.js +1 -5
- package/server/modules/reports/rp-hangthanhvien.js +1 -3
- package/server/modules/reports/rp-hoadonbanhangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoadonmuahangtheohantt.js +1 -5
- package/server/modules/reports/rp-hoahong.js +1 -15
- package/server/modules/reports/rp-kcsns.js +1 -19
- package/server/modules/reports/rp-kgchamcong.js +1 -7
- package/server/modules/reports/rp-khoaso.js +1 -12
- package/server/modules/reports/rp-kiemtrasocaitcvssocai.js +1 -6
- package/server/modules/reports/rp-kqdanhgianhanvien.js +1 -5
- package/server/modules/reports/rp-kqhdkd.js +1 -7
- package/server/modules/reports/rp-lcttgt.js +1 -17
- package/server/modules/reports/rp-lctttt.js +1 -11
- package/server/modules/reports/rp-linkslist.js +1 -4
- package/server/modules/reports/rp-phanbochitienchohoadon.js +1 -11
- package/server/modules/reports/rp-phanbothutienchohoadon.js +1 -10
- package/server/modules/reports/rp-ptbitralai.js +1 -7
- package/server/modules/reports/rp-ptcttct.js +1 -22
- package/server/modules/reports/rp-ptdonhang.js +1 -8
- package/server/modules/reports/rp-pttct.js +1 -49
- package/server/modules/reports/rp-pttctkho.js +1 -32
- package/server/modules/reports/rp-pttctkho2.js +1 -29
- package/server/modules/reports/rp-referredusers.js +1 -1
- package/server/modules/reports/rp-sctbhxh.js +1 -4
- package/server/modules/reports/rp-sctcnkh.js +1 -17
- package/server/modules/reports/rp-sctdiem.js +1 -3
- package/server/modules/reports/rp-sctdt.js +1 -7
- package/server/modules/reports/rp-sctdtcp.js +1 -11
- package/server/modules/reports/rp-sctluong.js +1 -4
- package/server/modules/reports/rp-sctthuetncn.js +1 -4
- package/server/modules/reports/rp-scttk.js +1 -7
- package/server/modules/reports/rp-sctvt.js +1 -5
- package/server/modules/reports/rp-sctvt_sl.js +1 -5
- package/server/modules/reports/rp-sctvtnpp.js +1 -6
- package/server/modules/reports/rp-sctvttt.js +1 -5
- package/server/modules/reports/rp-search.js +1 -4
- package/server/modules/reports/rp-socai.js +1 -6
- package/server/modules/reports/rp-socaitk.js +1 -7
- package/server/modules/reports/rp-sochut.js +1 -7
- package/server/modules/reports/rp-sokho.js +1 -7
- package/server/modules/reports/rp-sokhott.js +1 -5
- package/server/modules/reports/rp-sonkbh.js +1 -5
- package/server/modules/reports/rp-sonkc.js +1 -6
- package/server/modules/reports/rp-sonkct.js +1 -5
- package/server/modules/reports/rp-sonkmh.js +1 -5
- package/server/modules/reports/rp-sonktt.js +1 -5
- package/server/modules/reports/rp-soquy.js +1 -11
- package/server/modules/reports/rp-sosanhkhvatt.js +1 -13
- package/server/modules/reports/rp-sosanhkhvatt2.js +1 -6
- package/server/modules/reports/rp-sotaisan.js +1 -13
- package/server/modules/reports/rp-sotiengui.js +1 -7
- package/server/modules/reports/rp-taodinhmuctudkhoc.js +1 -5
- package/server/modules/reports/rp-thbanhangkempk.js +1 -28
- package/server/modules/reports/rp-thdanhgianhanvien.js +1 -9
- package/server/modules/reports/rp-thgt.js +1 -6
- package/server/modules/reports/rp-thnxt.js +1 -12
- package/server/modules/reports/rp-thnxt_sl.js +1 -9
- package/server/modules/reports/rp-thnxtnpp.js +1 -10
- package/server/modules/reports/rp-thnxttt.js +1 -9
- package/server/modules/reports/rp-tkbanhangtheogioithieu.js +1 -9
- package/server/modules/reports/rp-tkgioithieukh.js +1 -4
- package/server/modules/reports/rp-tkgtgt.js +1 -7
- package/server/modules/reports/rp-tmbctc.js +1 -20
- package/server/modules/reports/rp-tonghopbanhang.js +1 -6
- package/server/modules/reports/rp-tonghopmuahang.js +1 -5
- package/server/modules/reports/rp-tonghoptralaihang.js +1 -5
- package/server/modules/reports/rp-tongquanbanle.js +1 -20
- package/server/modules/reports/rp-tongquanbds.js +1 -3
- package/server/modules/reports/rp-tongquancongty.js +1 -6
- package/server/modules/reports/rp-tongquanctvnpp.js +1 -12
- package/server/modules/reports/rp-tongquannvbh.js +1 -14
- package/server/modules/reports/rp-tongquannvnpp.js +1 -5
- package/server/modules/reports/rp-uoctinhnvl.js +1 -11
- package/server/modules/reports/rp-wallet.js +1 -3
- package/server/modules/reports/rpt-tkdiemtichluy.js +1 -9
- package/server/modules/systems/sys-app.js +1 -30
- package/server/modules/systems/sys-colleague.js +1 -11
- package/server/modules/systems/sys-domain.js +1 -4
- package/server/modules/systems/sys-ecomproductlines.js +1 -1
- package/server/modules/systems/sys-exportexceltemplate.js +1 -4
- package/server/modules/systems/sys-fieldright.js +1 -3
- package/server/modules/systems/sys-importexceltemplate.js +1 -4
- package/server/modules/systems/sys-labelinfo.js +1 -4
- package/server/modules/systems/sys-listinfo.js +1 -10
- package/server/modules/systems/sys-menuinfo.js +1 -4
- package/server/modules/systems/sys-message.js +1 -14
- package/server/modules/systems/sys-moduleinfo.js +1 -4
- package/server/modules/systems/sys-notification.js +1 -8
- package/server/modules/systems/sys-quanhuyen.js +1 -4
- package/server/modules/systems/sys-reportinfo.js +1 -4
- package/server/modules/systems/sys-rptobject.js +1 -3
- package/server/modules/systems/sys-schedule.js +1 -11
- package/server/modules/systems/sys-sysconfig.js +1 -3
- package/server/modules/systems/sys-sysgroup.js +1 -3
- package/server/modules/systems/sys-tableinfo.js +1 -3
- package/server/modules/systems/sys-templatestore.js +1 -5
- package/server/modules/systems/sys-tinhthanh.js +1 -4
- package/server/modules/systems/sys-token.js +1 -3
- package/server/modules/systems/sys-trangthai.js +1 -4
- package/server/modules/systems/sys-trialinfo.js +1 -3
- package/server/modules/systems/sys-user.js +1 -45
- package/server/modules/systems/sys-users.js +1 -10
- package/server/modules/systems/sys-versioninfo.js +1 -3
- package/server/modules/systems/sys-vietqrbanks.js +1 -4
- package/server/modules/systems/sys-xaphuong.js +1 -4
- package/server/modules/vouchers/vo-banggiaban.js +1 -5
- package/server/modules/vouchers/vo-bc1.js +1 -33
- package/server/modules/vouchers/vo-bc5.js +1 -15
- package/server/modules/vouchers/vo-bg1.js +1 -10
- package/server/modules/vouchers/vo-bg2.js +1 -12
- package/server/modules/vouchers/vo-bn1.js +1 -35
- package/server/modules/vouchers/vo-bn5.js +1 -15
- package/server/modules/vouchers/vo-dh2.js +1 -35
- package/server/modules/vouchers/vo-dinhmucsx.js +1 -6
- package/server/modules/vouchers/vo-dkb.js +1 -21
- package/server/modules/vouchers/vo-dn0.js +1 -9
- package/server/modules/vouchers/vo-dnm.js +1 -21
- package/server/modules/vouchers/vo-hd1.js +1 -36
- package/server/modules/vouchers/vo-hd2.js +1 -107
- package/server/modules/vouchers/vo-hd3.js +1 -44
- package/server/modules/vouchers/vo-hd4.js +1 -13
- package/server/modules/vouchers/vo-hd7.js +1 -29
- package/server/modules/vouchers/vo-hd8.js +1 -29
- package/server/modules/vouchers/vo-hde.js +1 -40
- package/server/modules/vouchers/vo-htl.js +1 -11
- package/server/modules/vouchers/vo-kbbtpb.js +1 -6
- package/server/modules/vouchers/vo-kehoachmh.js +1 -13
- package/server/modules/vouchers/vo-lenhcapphat.js +1 -10
- package/server/modules/vouchers/vo-lenhsx.js +1 -12
- package/server/modules/vouchers/vo-pbl.js +1 -93
- package/server/modules/vouchers/vo-pc0.js +1 -14
- package/server/modules/vouchers/vo-pc1.js +1 -31
- package/server/modules/vouchers/vo-pc2.js +1 -24
- package/server/modules/vouchers/vo-pc3.js +1 -14
- package/server/modules/vouchers/vo-pc5.js +1 -15
- package/server/modules/vouchers/vo-pc6.js +1 -19
- package/server/modules/vouchers/vo-pcl.js +1 -7
- package/server/modules/vouchers/vo-pdn.js +1 -11
- package/server/modules/vouchers/vo-pdx.js +1 -9
- package/server/modules/vouchers/vo-pgh.js +1 -19
- package/server/modules/vouchers/vo-pht.js +1 -7
- package/server/modules/vouchers/vo-pkc.js +1 -7
- package/server/modules/vouchers/vo-pkh.js +1 -10
- package/server/modules/vouchers/vo-pkk.js +1 -12
- package/server/modules/vouchers/vo-pkt.js +1 -13
- package/server/modules/vouchers/vo-pn1.js +1 -33
- package/server/modules/vouchers/vo-pn2.js +1 -16
- package/server/modules/vouchers/vo-pn3.js +1 -18
- package/server/modules/vouchers/vo-pn5.js +1 -19
- package/server/modules/vouchers/vo-pn6.js +1 -18
- package/server/modules/vouchers/vo-pn9.js +1 -22
- package/server/modules/vouchers/vo-pnc.js +1 -20
- package/server/modules/vouchers/vo-pnh.js +1 -20
- package/server/modules/vouchers/vo-pnk.js +1 -14
- package/server/modules/vouchers/vo-pnknpp.js +1 -12
- package/server/modules/vouchers/vo-po1.js +1 -15
- package/server/modules/vouchers/vo-ppb.js +1 -8
- package/server/modules/vouchers/vo-pt1.js +1 -21
- package/server/modules/vouchers/vo-pt5.js +1 -15
- package/server/modules/vouchers/vo-ptl.js +1 -8
- package/server/modules/vouchers/vo-purchase_contract.js +1 -9
- package/server/modules/vouchers/vo-pxc.js +1 -22
- package/server/modules/vouchers/vo-pxh.js +1 -28
- package/server/modules/vouchers/vo-pxk.js +1 -15
- package/server/modules/vouchers/vo-pxknpp.js +1 -14
- package/server/modules/vouchers/vo-qts.js +1 -12
- package/server/modules/vouchers/vo-sale_contract.js +1 -11
- package/server/modules/vouchers/vo-shipbook.js +1 -17
- package/server/modules/vouchers/vo-so1.js +1 -126
- package/server/modules/vouchers/vo-so2.js +1 -37
- package/server/modules/vouchers/vo-so3.js +1 -41
- package/server/modules/vouchers/vo-so5.js +1 -57
- package/server/modules/vouchers/vo-so7.js +1 -97
- package/server/modules/vouchers/vo-so9.js +1 -119
- package/server/modules/vouchers/vo-vanchuyen.js +1 -14
- package/server/modules/vouchers/vo-xhd.js +1 -33
- package/server/route.js +1 -51
- package/server/services/invoiceFetcher.js +1 -15
- package/server/sslConfig.js +1 -2
- package/server/transactionMiddleware.js +1 -5
- package/server/workers/backupApp.js +1 -9
- package/server/workers/calcGrid.js +1 -9
- package/server/workers/customerOnImport.js +1 -8
- package/server/workers/dmvtOnImport.js +1 -9
- package/server/workers/excelParser.js +1 -9
- package/server/workers/inputWorker.js +1 -6
- package/server/workers/pushNotify.js +1 -10
- package/server/workers/reportWorker.js +1 -7
- package/server/workers/restoreApp.js +1 -23
- package/server/workers/runScript.js +1 -4
- package/server/workers/sendEmail.js +1 -13
- package/server/workers/webhook.js +1 -5
|
@@ -1,14 +1 @@
|
|
|
1
|
-
const dvcs=global.getModel("dvcs"),account=global.getModel("account"),dmdt=global.getModel("dmdt"),customer=global.getModel("customer"),dmnv=global.getModel("dmnv"),dmbp=global.getModel("dmbp"),contract=global.getModel("contract"),dmphi=global.getModel("dmphi"),model=global.getModel("pc0"),pc1=global.getModel("pc1"),trangthai=global.getModel("trangthai"),controller=require("../../controllers/controller"),async=require("async"),ma_ct="PC0",valid_detail=function($i_i$jscomp$1_i$$,$obj$$,$fn$$){if($obj$$.details)for($i_i$jscomp$1_i$$=
|
|
2
|
-
0;$i_i$jscomp$1_i$$<$obj$$.details.length;$i_i$jscomp$1_i$$++){var $detail_tdttco_vatvao$$=$obj$$.details[$i_i$jscomp$1_i$$];$detail_tdttco_vatvao$$.line=$i_i$jscomp$1_i$$;$obj$$.ma_nt=="VND"&&($detail_tdttco_vatvao$$.tien=$detail_tdttco_vatvao$$.tien_nt)}if($obj$$.vatvaos)for($i_i$jscomp$1_i$$=0;$i_i$jscomp$1_i$$<$obj$$.vatvaos.length;$i_i$jscomp$1_i$$++)$detail_tdttco_vatvao$$=$obj$$.vatvaos[$i_i$jscomp$1_i$$],$detail_tdttco_vatvao$$.line=$i_i$jscomp$1_i$$,$obj$$.ma_nt=="VND"&&($detail_tdttco_vatvao$$.t_thue=
|
|
3
|
-
$detail_tdttco_vatvao$$.t_thue_nt);if($obj$$.tdttcos)for($i_i$jscomp$1_i$$=0;$i_i$jscomp$1_i$$<$obj$$.tdttcos.length;$i_i$jscomp$1_i$$++)$detail_tdttco_vatvao$$=$obj$$.tdttcos[$i_i$jscomp$1_i$$],$detail_tdttco_vatvao$$.line=$i_i$jscomp$1_i$$,$obj$$.ma_nt=="VND"&&($detail_tdttco_vatvao$$.tien=$detail_tdttco_vatvao$$.tien_nt);$fn$$(null,$obj$$)};
|
|
4
|
-
module.exports=function($contr_router$$){$contr_router$$=new controller($contr_router$$,model,ma_ct.toLowerCase(),{isVoucher:!0,sort:{ngay_ct:-1,so_ct:-1},onExport:($user$$,$obj$$,$next$$)=>{$obj$$.tdttcos&&$obj$$.tdttcos.length>0&&($obj$$.details=$obj$$.tdttcos);$next$$()}});$contr_router$$.route();$contr_router$$.creating=function($user$$,$obj$$,$next$$){if(!($obj$$.details&&$obj$$.details.csum("tien_nt")!=0||$obj$$.tdttcos&&$obj$$.tdttcos.csum("tien_nt")!=0))return $next$$("B\u1ea1n ch\u01b0a nh\u1eadp chi ti\u1ebft \u0111\u1ec1 ngh\u1ecb thanh to\u00e1n");
|
|
5
|
-
$obj$$.id_pc1="";valid_detail($user$$,$obj$$,function($error$$){if($error$$)return $next$$($error$$);$next$$(null,$obj$$)})};$contr_router$$.updating=function($user$$,$data$$,$obj$$,$next$$){valid_detail($user$$,$data$$,function($error$$){if($error$$)return $next$$($error$$);$next$$(null,$data$$,$obj$$)})};$contr_router$$.view=function($user$$,$items$$,$fn$$){const $id_app$$=$user$$.current_id_app;async.series({kh:function($callback$$){$items$$.filter($item$$=>$item$$.ma_kh).joinModel2($id_app$$,
|
|
6
|
-
customer,[{where:"ma_kh",fields:["ten_kh"]}],function(){$callback$$()})},nv:function($callback$$){$items$$.filter($item$$=>$item$$.ma_nv).joinModel2($id_app$$,dmnv,[{where:"ma_nv",fields:["ten_nv"]}],function(){$callback$$()})},bp:function($callback$$){$items$$.filter($item$$=>$item$$.ma_bp).joinModel2($id_app$$,dmbp,[{where:"ma_bp",fields:["ten_bp"]}],function(){$callback$$()})},tk:function($callback$$){$items$$.filter($item$$=>$item$$.tk_co).joinModel2($id_app$$,account,[{where:$item$$=>({tk:$item$$.tk_co}),
|
|
7
|
-
fields:[{name:"ten_tk_co",value:"ten_tk"}]}],function(){$callback$$()})},dv:function($callback$$){$items$$.filter($item$$=>$item$$.ma_dvcs).joinModel2($id_app$$,dvcs,[{where:$item$$=>({_id:$item$$.ma_dvcs}),setFields:($item$$,$ref$$)=>{$item$$.ten_dvcs=$ref$$.ten_dvcs}}],function(){$callback$$()})},trangthai:function($callback$$){$items$$.filter($item$$=>$item$$.trang_thai).joinModel2(null,trangthai,[{where:{trang_thai:"ma_trang_thai",ma_ct:"ma_ct"},fields:["ten_trang_thai","color"]}],function(){$callback$$()})},
|
|
8
|
-
pc1:function($callback$$){$items$$.joinModel2($id_app$$,pc1,[{where:{_id:"id_pc0"},fields:[{id_pc1:"_id"},{so_ct_pc1:"so_ct"},{ma_ct_pc1:"ma_ct"},{ngay_ct_pc1:"ngay_ct"}]}],function(){$callback$$()})},t_tien:function($callback$$){$items$$.forEach(function($r$$){$r$$.t_tien=0;$r$$.t_tien_nt=0;$r$$.t_thue_vao=0;$r$$.t_thue_vao_nt=0;$r$$.details&&($r$$.t_tien=$r$$.details.csum("tien"),$r$$.t_tien_nt=$r$$.details.csum("tien_nt"));$r$$.tdttcos&&($r$$.t_tien+=$r$$.tdttcos.csum("tien"),$r$$.t_tien_nt+=$r$$.tdttcos.csum("tien_nt"));
|
|
9
|
-
$r$$.vatvaos&&($r$$.t_thue_vao=$r$$.vatvaos.csum("t_thue"),$r$$.t_thue_vao_nt=$r$$.vatvaos.csum("t_thue_nt"));$r$$.t_tt=$r$$.t_tien+$r$$.t_thue_vao;$r$$.t_tt_nt=$r$$.t_tien_nt+$r$$.t_thue_vao_nt});$callback$$()},details_tk:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.details||[]).filter($item$$=>$item$$.tk_no).joinModel2($id_app$$,account,[{where:$item$$=>({tk:$item$$.tk_no}),fields:[{ten_tk_no:"ten_tk"}]}],function(){$callback1$$()})},function(){$callback$$()})},
|
|
10
|
-
details_tk_tdttco:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.tdttcos||[]).filter($item$$=>$item$$.tk_no).joinModel2($id_app$$,account,[{where:{tk_no:"tk"},fields:[{ten_tk_no:"ten_tk"}]}],function(){$callback1$$()})},function(){$callback$$()})},details_dt_tdttco:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.tdttcos||[]).filter($item$$=>$item$$.ma_dt).joinModel2($id_app$$,dmdt,[{where:"ma_dt",fields:["ten_dt"]}],function(){$callback1$$()})},
|
|
11
|
-
function(){$callback$$()})},details_hd_tdttco:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.tdttcos||[]).filter($item$$=>$item$$.ma_hd).joinModel2($id_app$$,contract,[{wher:$item$$=>({so_hd:$item$$.ma_hd}),fields:["ten_hd"]}],function(){$callback1$$()})},function(){$callback$$()})},details_phi_tdttco:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.tdttcos||[]).filter($item$$=>$item$$.ma_phi).joinModel2($id_app$$,dmphi,[{where:"ma_phi",
|
|
12
|
-
fields:["ten_phi"]}],function(){$callback1$$()})},function(){$callback$$()})},details_customer:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.details||[]).filter($item$$=>$item$$.ma_kh).joinModel2($id_app$$,customer,[{where:"ma_kh",fields:["ten_kh"]}],function(){$callback1$$()})},function(){$callback$$()})},details_dt:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.details||[]).filter($item$$=>$item$$.ma_dt).joinModel2($id_app$$,dmdt,
|
|
13
|
-
[{where:"ma_dt",fields:["ten_dt"]}],function(){$callback1$$()})},function(){$callback$$()})},details_hopdong:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.details||[]).filter($item$$=>$item$$.ma_hd).joinModel2($id_app$$,contract,[{where:$item$$=>({so_hd:$item$$.ma_hd}),fields:["ten_hd"]}],function(){$callback1$$()})},function(){$callback$$()})},details_phi:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.details||[]).filter($item$$=>
|
|
14
|
-
$item$$.ma_phi).joinModel2($id_app$$,dmphi,[{where:"ma_phi",fields:["ten_phi"]}],function(){$callback1$$()})},function(){$callback$$()})}},function(){$fn$$(null,$items$$)})}};
|
|
1
|
+
const _0x341a2c=_0xe95e;(function(_0x11e3e1,_0x2a5099){const _0x15a54a=_0xe95e,_0x37a120=_0x11e3e1();while(!![]){try{const _0x18e44a=-parseInt(_0x15a54a(0x1df))/0x1*(-parseInt(_0x15a54a(0x1dd))/0x2)+-parseInt(_0x15a54a(0x278))/0x3+parseInt(_0x15a54a(0x29b))/0x4+parseInt(_0x15a54a(0x29c))/0x5+parseInt(_0x15a54a(0x297))/0x6+-parseInt(_0x15a54a(0x242))/0x7*(parseInt(_0x15a54a(0x29a))/0x8)+parseInt(_0x15a54a(0x275))/0x9;if(_0x18e44a===_0x2a5099)break;else _0x37a120['push'](_0x37a120['shift']());}catch(_0x59edee){_0x37a120['push'](_0x37a120['shift']());}}}(_0x1104,0x41b26));const _0x8fbc08=(function(){const _0x2af5c4=_0xe95e,_0x37df18={'QzWYX':function(_0x80212c,_0x43bd82){return _0x80212c(_0x43bd82);},'QDXlg':function(_0x527c74,_0xc585d5,_0x41b0f1,_0x5617aa){return _0x527c74(_0xc585d5,_0x41b0f1,_0x5617aa);},'JLMxm':_0x2af5c4(0x237),'kukEc':_0x2af5c4(0x19d),'rsVKK':function(_0x5acd52,_0x529419){return _0x5acd52===_0x529419;},'dffbm':_0x2af5c4(0x21a),'oIScN':_0x2af5c4(0x1ca),'cdZuy':_0x2af5c4(0x238)};let _0x23fe45=!![];return function(_0x31ec3c,_0x30524b){const _0x368f13=_0x2af5c4;if(_0x37df18[_0x368f13(0x220)](_0x37df18[_0x368f13(0x264)],_0x37df18[_0x368f13(0x1ef)])){if(_0x2103fe)return _0x37df18[_0x368f13(0x269)](_0x723e8f,_0x4ce1b1);_0x37df18['QDXlg'](_0x566f86,null,_0x4e2dde,_0x29204a);}else{const _0x1a0502=_0x23fe45?function(){const _0x1217a4=_0x368f13,_0x472585={'LmTxH':_0x37df18[_0x1217a4(0x1a2)],'lOWJs':_0x37df18['kukEc'],'IQdJR':function(_0x39a77e){return _0x39a77e();}};if(_0x30524b){if(_0x37df18[_0x1217a4(0x220)](_0x37df18[_0x1217a4(0x2b1)],_0x37df18[_0x1217a4(0x2b1)])){const _0x5550be=_0x30524b[_0x1217a4(0x247)](_0x31ec3c,arguments);return _0x30524b=null,_0x5550be;}else{const _0x2cea47={'yYZgO':function(_0x3aa82){return _0x3aa82();}};_0x35a454[_0x1217a4(0x1a4)](_0x102978,0x14,function(_0x33c041,_0xb5199e){const _0x504a69=_0x1217a4,_0xe6fe3=_0x33c041[_0x504a69(0x2b5)]||[];_0xe6fe3[_0x504a69(0x25f)](_0xaaa8e=>_0xaaa8e[_0x504a69(0x237)])[_0x504a69(0x1a5)](_0x5c42e3,_0x191f69,[{'where':_0x472585[_0x504a69(0x288)],'fields':[_0x472585[_0x504a69(0x21d)]]}],function(){const _0x24b1f0=_0x504a69;_0x2cea47[_0x24b1f0(0x1e9)](_0xb5199e);});},function(){_0x472585['IQdJR'](_0x43f238);});}}}:function(){};return _0x23fe45=![],_0x1a0502;}};}()),_0x33f95f=_0x8fbc08(this,function(){const _0x2ab367=_0xe95e,_0x32aa7f={'xYexb':_0x2ab367(0x25e)};return _0x33f95f[_0x2ab367(0x2c5)]()[_0x2ab367(0x260)](_0x32aa7f[_0x2ab367(0x2c3)])[_0x2ab367(0x2c5)]()[_0x2ab367(0x226)](_0x33f95f)[_0x2ab367(0x260)](_0x32aa7f[_0x2ab367(0x2c3)]);});_0x33f95f();function _0x1104(){const _0x1b3e56=['uM90ANy','wNz4s0O','Df90AwvUx250','uwDPrNa','r1LXEeK','zwD6zgW','BuzPChO','zuPKsLa','sKnfsNi','EfPPD28','DgvUx2r0','vxjXrw4','zg1ICa','sNfxuNq','BNjLBLq','uLPqDKS','A29SBgq','uhbKz24','z2v0tw9KzwW','shPiAM0','B0TYAwC','s2LTvhu','AuLOruq','zu9gsgm','zNDSsMG','sLLOufO','Be9xsNm','Dgr0DgnVCW','u2XlyNC','CNnws0S','BwfFDhjHBMDFDgHHAq','z1zZCeu','y3vYCMvUDf9Pzf9HCha','ExHvqu4','uLPPDgu','y29UC3rYDwn0B3i','q0LAs2S','suzOu1y','zfjfwK8','Df90AwvU','qxrMz3e','wMPmwMG','uu5PuuS','BwfFAgq','CwP3A2W','t1vrCNO','Bfvjvee','DgvUx3rR','vNzfCgW','Aerluuq','DgvUx3rYyw5Nx3rOywK','Dgjir0q','BwfFA2G','tejNCxm','BNDQwfm','BNfqveu','wMDgvei','zNvLu08','ENnkCvu','uKH2yvK','DxHRuhm','AK9jAge','EhLdrMq','mti5otjUwhLAEMO','t2TtB1G','vNbfBem','ugrRBeW','zwT6rNa','yxbWBhK','DgLLBL9UDa','AKfuB3m','u3bKDwu','wvPYtMG','BgTusxC','rLrqseW','Df90Da','wLzAyKq','wMzdrfu','uw9xu3y','zM1MC3e','vK5pDxK','s1H0EuC','vejyyuy','ufj0Bgy','qMzYwKu','tNj3Afm','ugHiAxO','EgTkD0K','BwfFCgHP','C2rOy3m','qNnrqNu','kcGOlISPkYKRksSK','zMLSDgvY','C2vHCMnO','wg1vsNC','DhngEha','ANjnvgq','B0Lty04','CePYr2G','DM1SBxa','Df90AhvLx3zHBW','s3vtzMK','uxPxwvG','Df90Df9UDa','AwnzB2G','CM91Dgu','DgvUx3bOAq','vevbrKi','zM9YrwfJAa','BwfFBNy','tNzhuee','BwfFzhq','wwL1t28','EgnXEu0','mZaYnJi5nxPsyKH3zG','whfwBgq','rMXXseO','mtu1mZu0ngnoD0D1DG','zg1KDa','CePur1y','vK5e','EenwuMW','BgLUzq','yw9VuKO','zxLXEvq','DgvUx252','vKLVD2G','tfjMz0C','s01TAu0','BwfFBNq','sKvkyum','zvzmC1a','wuDjqvG','tg1uEeG','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCG','DhjHBMD0AgfP','vM9hzM8','y3jLyxrPBMC','AwrFCgmX','y3vZDg9Tzxi','C0TuBuO','AxzcuuG','u0Pgv1G','zfDdEwG','s0zWEwG','ELHlt2W','sNvVBNG','C3bSAxq','mtqXotG2ngvby3DvDa','BgvUz3rO','yNvxvuK','mtC0nffnCNP5BW','mtu0nJeXnNHRqLzoCa','ody5otiWtxHKqLDz','DgLLBG','t3Lqze8','qurbruW','r2jOzuS','DMLLDW','tg1Qsfq','tNz1t2C','reXzEei','r3PPCu8','tvjUBwS','DhDHy2i','vg1rEgi','BvvZq28','wwfXA3m','ChHuy00','tw9Is28','DxH6u1y','DLfUsfq','Df90AhvLx250','Dw1sEvq','zgzMyM0','BMDHEv9JDa','Df90AhvL','Chrfywi','zgv0ywLSCW','BezVEuq','vNDgD1y','AwvXALO','CuLutvK','t0nqEM4','svPeAwO','tu9QtMy','C1DRufO','qvveDMm','yNn4CgG','ywT1wgi','zg1WAgK','zM5vtNm','EfLLEgi','EvnovLO','Dg9tDhjPBMC','ALjWA0C','vhbzyNu','uLHowg8','C2L4CgK','EwP3B1e','DMf0DMfVCW','D3nUCgS','z1vzCg0','u0LnAMK','BhLju0u','tLruBeW','DgvUx2TO','BNHrvfa','z2fWzui','q3r3A0G','vMXMu04','sKXnEg0','DgvUx2r2y3m','BwfWtgLTAxq','AM9PBK1VzgvSmG','z1rYqw0','uhPlAwu','sKXABxG','Cxn1B3e','qxncyu0','uu95sLe','DgTFy28','EfrfBeq','DuzTqMW','Bxrpwhy','u1Lvvuy','y3n1Bq','CuHdtwy','thvwsLu','u2z2ufe','D1boyKO','EunJAMi','twjyqKm','A3r5u2i','BhPnDxO','qxf2A3e','zxHWB3j0CW','txzmq1O','yvHfuhO','quzkz1e','DLznB3y','DerVBeu','CvnLvLK','DvvHEfm','q2DvBvm','t3vzt3u','rgftCMq','Avnquhm','CgfYywXSzwW','BenOC2K','BwfFyNa','u016CuC','qxv2why','vwDyAuS','AwrFCgmW','tvbSv3O','ENLdz00','CgmX','CNrOy2C','zK5UEMK','D2rTEge','zhzLuuG','q1jRt0S','CeXPv0C','ug5zqNu','CgmW','svrNCeG','v1zWENu','z0DdsKK','AhLTufy','odjZBhHIqwi','AMPQug8','mtqXog5KAvHfAW','vgzcwwS','rffhzKe','zfrfELa','Df90AhvLx3zHB19UDa','tLPREhu','EMf5ru4','tezYz1e','yw1Tu1y','uhnKs1K','EvLAz08','yNnnwvq','D09KCgq','CuDQB0i','ywTqwem','sef6sNi','y2rADxK','DgTFBM8','zKfmrhC','y29SB3i','rMDkse8','suLAEwi','u0L4zxm','EgnYwee','ENfLDgq','Cxjjtey','z3nVExi','DgvUx2HK','C29Fy3q','B29HBMK','DeDtt1C','ALbItNi','BufNvgG','DNj4vvi','CLbRueq','A1nWrgu'];_0x1104=function(){return _0x1b3e56;};return _0x1104();}function _0xe95e(_0xcd215a,_0x5c48fe){const _0x206a4e=_0x1104();return _0xe95e=function(_0x33f95f,_0x8fbc08){_0x33f95f=_0x33f95f-0x195;let _0x1104f2=_0x206a4e[_0x33f95f];if(_0xe95e['LWecLm']===undefined){var _0xe95e39=function(_0x29e951){const _0xf41bed='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x451314='',_0x73e010='',_0x421187=_0x451314+_0xe95e39;for(let _0x34c5e8=0x0,_0x297647,_0x363985,_0x168626=0x0;_0x363985=_0x29e951['charAt'](_0x168626++);~_0x363985&&(_0x297647=_0x34c5e8%0x4?_0x297647*0x40+_0x363985:_0x363985,_0x34c5e8++%0x4)?_0x451314+=_0x421187['charCodeAt'](_0x168626+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x297647>>(-0x2*_0x34c5e8&0x6)):_0x34c5e8:0x0){_0x363985=_0xf41bed['indexOf'](_0x363985);}for(let _0x35de73=0x0,_0x269ae5=_0x451314['length'];_0x35de73<_0x269ae5;_0x35de73++){_0x73e010+='%'+('00'+_0x451314['charCodeAt'](_0x35de73)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x73e010);};_0xe95e['MvHZJq']=_0xe95e39,_0xcd215a=arguments,_0xe95e['LWecLm']=!![];}const _0x1f5c7e=_0x206a4e[0x0],_0x835806=_0x33f95f+_0x1f5c7e,_0x4999ee=_0xcd215a[_0x835806];if(!_0x4999ee){const _0x12c121=function(_0x228121){this['lEigJe']=_0x228121,this['myBhwW']=[0x1,0x0,0x0],this['DaFqBP']=function(){return'newState';},this['vOwfIm']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['sYcVAB']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x12c121['prototype']['lADzts']=function(){const _0x36fafc=new RegExp(this['vOwfIm']+this['sYcVAB']),_0xb50ca7=_0x36fafc['test'](this['DaFqBP']['toString']())?--this['myBhwW'][0x1]:--this['myBhwW'][0x0];return this['vyjzfC'](_0xb50ca7);},_0x12c121['prototype']['vyjzfC']=function(_0xb455ef){if(!Boolean(~_0xb455ef))return _0xb455ef;return this['lXvfsL'](this['lEigJe']);},_0x12c121['prototype']['lXvfsL']=function(_0x66e406){for(let _0x31bf6f=0x0,_0x3ce5ee=this['myBhwW']['length'];_0x31bf6f<_0x3ce5ee;_0x31bf6f++){this['myBhwW']['push'](Math['round'](Math['random']())),_0x3ce5ee=this['myBhwW']['length'];}return _0x66e406(this['myBhwW'][0x0]);},new _0x12c121(_0xe95e)['lADzts'](),_0x1104f2=_0xe95e['MvHZJq'](_0x1104f2),_0xcd215a[_0x835806]=_0x1104f2;}else _0x1104f2=_0x4999ee;return _0x1104f2;},_0xe95e(_0xcd215a,_0x5c48fe);}const dvcs=global[_0x341a2c(0x215)]('dvcs'),account=global['getModel']('account'),dmdt=global[_0x341a2c(0x215)](_0x341a2c(0x279)),customer=global[_0x341a2c(0x215)](_0x341a2c(0x28e)),dmnv=global['getModel']('dmnv'),dmbp=global[_0x341a2c(0x215)](_0x341a2c(0x20f)),contract=global[_0x341a2c(0x215)]('contract'),dmphi=global['getModel'](_0x341a2c(0x2c1)),model=global[_0x341a2c(0x215)](_0x341a2c(0x1d8)),pc1=global[_0x341a2c(0x215)](_0x341a2c(0x1d0)),trangthai=global[_0x341a2c(0x215)](_0x341a2c(0x28a)),controller=require(_0x341a2c(0x289)),async=require('async'),ma_ct='PC0',valid_detail=function(_0x594fc8,_0x1d4ed1,_0xaf5259){const _0x35168f=_0x341a2c,_0x3dfaf7={'qITMY':_0x35168f(0x29d),'CgUmS':_0x35168f(0x248),'LuVJU':function(_0x377a55,_0x15395b){return _0x377a55(_0x15395b);},'SfvPQ':function(_0xc09836,_0xc2ba57,_0x3851a5){return _0xc09836(_0xc2ba57,_0x3851a5);},'akuXb':function(_0x2bafd2,_0x1782c6){return _0x2bafd2!==_0x1782c6;},'egzdl':'lCoyY','KimTu':function(_0x517b39,_0x153807){return _0x517b39<_0x153807;},'hDKQD':function(_0x1e9780,_0x2a5373){return _0x1e9780==_0x2a5373;},'gUYpm':_0x35168f(0x27b),'aooRJ':function(_0x335b25,_0x591c0d){return _0x335b25<_0x591c0d;},'Juonx':function(_0x44010f,_0x3b55f9){return _0x44010f!==_0x3b55f9;},'tzASi':_0x35168f(0x26b),'DqJOG':_0x35168f(0x2a6),'sXBNm':function(_0x2d185a,_0x4e1a7a,_0x3b93ca){return _0x2d185a(_0x4e1a7a,_0x3b93ca);}};if(_0x1d4ed1[_0x35168f(0x2b5)]){if(_0x3dfaf7[_0x35168f(0x2c0)]('zjkTp',_0x3dfaf7[_0x35168f(0x208)]))for(let _0x500cbc=0x0;_0x3dfaf7[_0x35168f(0x218)](_0x500cbc,_0x1d4ed1[_0x35168f(0x2b5)][_0x35168f(0x298)]);_0x500cbc++){const _0x4bac72=_0x1d4ed1[_0x35168f(0x2b5)][_0x500cbc];_0x4bac72[_0x35168f(0x27d)]=_0x500cbc,_0x3dfaf7[_0x35168f(0x234)](_0x1d4ed1[_0x35168f(0x284)],'VND')&&(_0x4bac72[_0x35168f(0x29d)]=_0x4bac72['tien_nt']);}else _0x5983de[_0x35168f(0x22a)]=_0x4819f2[_0x35168f(0x2b5)][_0x35168f(0x1b1)](_0x3dfaf7[_0x35168f(0x2b9)]),_0x1908fa[_0x35168f(0x205)]=_0x1519ec['details'][_0x35168f(0x1b1)](_0x3dfaf7[_0x35168f(0x1c3)]);}if(_0x1d4ed1[_0x35168f(0x197)])for(let _0xddea51=0x0;_0x3dfaf7[_0x35168f(0x218)](_0xddea51,_0x1d4ed1[_0x35168f(0x197)]['length']);_0xddea51++){const _0xc35941=_0x1d4ed1[_0x35168f(0x197)][_0xddea51];_0xc35941['line']=_0xddea51,_0x3dfaf7['hDKQD'](_0x1d4ed1[_0x35168f(0x284)],_0x3dfaf7[_0x35168f(0x199)])&&(_0xc35941[_0x35168f(0x2b3)]=_0xc35941[_0x35168f(0x2af)]);}if(_0x1d4ed1[_0x35168f(0x21e)])for(let _0x1e6d91=0x0;_0x3dfaf7[_0x35168f(0x27e)](_0x1e6d91,_0x1d4ed1['tdttcos'][_0x35168f(0x298)]);_0x1e6d91++){if(_0x3dfaf7[_0x35168f(0x295)](_0x3dfaf7['tzASi'],_0x3dfaf7['DqJOG'])){const _0x318aa8=_0x1d4ed1[_0x35168f(0x21e)][_0x1e6d91];_0x318aa8[_0x35168f(0x27d)]=_0x1e6d91,_0x3dfaf7['hDKQD'](_0x1d4ed1['ma_nt'],_0x3dfaf7[_0x35168f(0x199)])&&(_0x318aa8[_0x35168f(0x29d)]=_0x318aa8[_0x35168f(0x248)]);}else{if(_0x345b7e)return _0x3dfaf7[_0x35168f(0x1b3)](_0x4ec123,_0x584832);_0x3dfaf7[_0x35168f(0x1b4)](_0x1fe684,null,_0x4ad30a);}}_0x3dfaf7['sXBNm'](_0xaf5259,null,_0x1d4ed1);};module[_0x341a2c(0x1bb)]=function(_0x1d6c56){const _0x27d132=_0x341a2c,_0x26d6bb={'guYzS':_0x27d132(0x1cd),'sdhcs':'_id','TfBYk':_0x27d132(0x1fb),'FTPHL':'ma_ct','jrMTd':function(_0x376dbe){return _0x376dbe();},'fwlJh':function(_0x2eefb6,_0x2118af){return _0x2eefb6>_0x2118af;},'vmlmp':function(_0x39e518,_0x377b12){return _0x39e518===_0x377b12;},'lFoyD':_0x27d132(0x281),'qSeVY':function(_0x5f2d73){return _0x5f2d73();},'qHCMf':function(_0x249e38){return _0x249e38();},'oKrig':function(_0x41c029,_0x10ab5b){return _0x41c029===_0x10ab5b;},'wPNbJ':_0x27d132(0x250),'fALDw':_0x27d132(0x1d7),'yjwoQ':function(_0x15612f,_0x404aca){return _0x15612f==_0x404aca;},'MbXBC':'tien_nt','iIhED':'kolld','ZEYGH':'Bạn\x20chưa\x20nhập\x20chi\x20tiết\x20đề\x20nghị\x20thanh\x20toán','yDFFl':function(_0x18ab8c,_0x9fc52a,_0x4287b9,_0xc7d9e9){return _0x18ab8c(_0x9fc52a,_0x4287b9,_0xc7d9e9);},'JqWRt':function(_0x174629,_0x7bff3b,_0x49e8ba,_0x32b5a5){return _0x174629(_0x7bff3b,_0x49e8ba,_0x32b5a5);},'pJrGh':function(_0x395fb6){return _0x395fb6();},'uxkPs':'ma_nv','DaSrd':'ten_tk_co','DLYxB':_0x27d132(0x27b),'rthcg':_0x27d132(0x221),'uUmqP':_0x27d132(0x1f2),'LmjHT':_0x27d132(0x1cc),'xCVRl':_0x27d132(0x1da),'OkSoX':_0x27d132(0x2b2),'OuYOu':_0x27d132(0x20d),'dTEzP':_0x27d132(0x274),'lUITA':function(_0x1039c4,_0x2ced14){return _0x1039c4!==_0x2ced14;},'qrILF':_0x27d132(0x19f),'JLZmx':function(_0x10e089,_0x244163,_0x3eddba){return _0x10e089(_0x244163,_0x3eddba);},'YZrNh':function(_0x5a8b6f,_0x1e80fd){return _0x5a8b6f===_0x1e80fd;},'kSpDe':_0x27d132(0x1af),'NZkxu':'ma_kh','buWUI':'ten_kh','TmQxb':function(_0x4cf331,_0x9617a){return _0x4cf331==_0x9617a;},'SIMji':_0x27d132(0x256),'nwjXS':function(_0x378a4e){return _0x378a4e();},'CRkOK':function(_0x3d0d45,_0x37f493){return _0x3d0d45+_0x37f493;},'SRCfi':_0x27d132(0x2af),'BPGoh':_0x27d132(0x24a),'PdklL':'ma_bp','TBXaF':'ten_bp','KkJPv':'TpMjg','vVMov':_0x27d132(0x1de),'fmfsq':_0x27d132(0x235),'ySNVZ':'MfHsi','ZDBwC':'6|4|0|1|5|8|2|3|7','BsQBu':'t_thue','PWSzu':_0x27d132(0x22c),'mAgTh':_0x27d132(0x1fa),'VpElC':_0x27d132(0x1b0),'JEJaC':_0x27d132(0x232),'uIjRE':'mxAaN','Yaqks':'ma_phi','VvEpl':_0x27d132(0x26d),'biqlB':_0x27d132(0x272),'PsdKY':'RkXRY','lkTIw':_0x27d132(0x209),'IIZyb':function(_0x640b){return _0x640b();},'dveQH':'qIsQO','pJTGV':function(_0x5e9bb5,_0x1af5f8){return _0x5e9bb5!==_0x1af5f8;},'laSxa':_0x27d132(0x20e)},_0x422717=new controller(_0x1d6c56,model,ma_ct['toLowerCase'](),{'isVoucher':!![],'sort':{'ngay_ct':-0x1,'so_ct':-0x1},'onExport':(_0x5b7831,_0x5208b7,_0x464fca)=>{const _0x3b1fdc=_0x27d132,_0x2f7c0f={'XqVld':function(_0x429a99){const _0x52cf5d=_0xe95e;return _0x26d6bb[_0x52cf5d(0x263)](_0x429a99);}};_0x5208b7[_0x3b1fdc(0x21e)]&&_0x26d6bb[_0x3b1fdc(0x21b)](_0x5208b7[_0x3b1fdc(0x21e)]['length'],0x0)&&(_0x26d6bb[_0x3b1fdc(0x266)](_0x26d6bb[_0x3b1fdc(0x2b6)],_0x3b1fdc(0x23c))?_0x57325b[_0x3b1fdc(0x1a5)](_0x5b81ae,_0x8b6d36,[{'where':{'_id':_0x26d6bb['guYzS']},'fields':[{'id_pc1':_0x26d6bb[_0x3b1fdc(0x25c)]},{'so_ct_pc1':_0x26d6bb[_0x3b1fdc(0x1e0)]},{'ma_ct_pc1':_0x26d6bb[_0x3b1fdc(0x24d)]},{'ngay_ct_pc1':'ngay_ct'}]}],function(){const _0x4929e2=_0x3b1fdc;_0x2f7c0f[_0x4929e2(0x276)](_0x504ebf);}):_0x5208b7[_0x3b1fdc(0x2b5)]=_0x5208b7['tdttcos']),_0x26d6bb[_0x3b1fdc(0x263)](_0x464fca);}});_0x422717[_0x27d132(0x26c)](),_0x422717[_0x27d132(0x28c)]=function(_0x451650,_0x211f10,_0x219548){const _0x346a2c=_0x27d132,_0x10c9fd={'QgiFp':function(_0x5067a1){const _0x90b659=_0xe95e;return _0x26d6bb[_0x90b659(0x1b2)](_0x5067a1);},'xZiwo':function(_0x3f291a,_0x5a8005,_0xfe85f0){return _0x3f291a(_0x5a8005,_0xfe85f0);}};if(_0x26d6bb[_0x346a2c(0x217)](_0x26d6bb[_0x346a2c(0x1b5)],_0x26d6bb[_0x346a2c(0x1f1)]))_0x10c9fd[_0x346a2c(0x206)](_0x469890);else{if((!_0x211f10[_0x346a2c(0x2b5)]||_0x26d6bb[_0x346a2c(0x196)](_0x211f10[_0x346a2c(0x2b5)][_0x346a2c(0x1b1)](_0x26d6bb[_0x346a2c(0x1b7)]),0x0))&&(!_0x211f10[_0x346a2c(0x21e)]||_0x26d6bb['yjwoQ'](_0x211f10[_0x346a2c(0x21e)][_0x346a2c(0x1b1)](_0x26d6bb['MbXBC']),0x0))){if(_0x26d6bb[_0x346a2c(0x219)]!==_0x346a2c(0x213))_0x26d6bb[_0x346a2c(0x1c1)](_0x873be2);else return _0x219548(_0x26d6bb['ZEYGH']);}_0x211f10[_0x346a2c(0x28d)]='',_0x26d6bb['yDFFl'](valid_detail,_0x451650,_0x211f10,function(_0x173638){const _0x1219e6=_0x346a2c;if(_0x173638)return _0x219548(_0x173638);_0x10c9fd[_0x1219e6(0x20c)](_0x219548,null,_0x211f10);});}},_0x422717['updating']=function(_0x22e6c1,_0x46d1a8,_0x251526,_0x5a83ec){const _0x1abd6c=_0x27d132;_0x26d6bb[_0x1abd6c(0x210)](valid_detail,_0x22e6c1,_0x46d1a8,function(_0x57a47a){const _0x1673d5=_0x1abd6c;if(_0x57a47a)return _0x5a83ec(_0x57a47a);_0x26d6bb[_0x1673d5(0x210)](_0x5a83ec,null,_0x46d1a8,_0x251526);});},_0x422717[_0x27d132(0x2a1)]=function(_0x3d2f5f,_0x4b65d0,_0x4b2981){const _0x5d6415=_0x27d132,_0x6a9314={'VwFwV':function(_0x3e04f9){const _0x430013=_0xe95e;return _0x26d6bb[_0x430013(0x265)](_0x3e04f9);},'GziqO':_0x5d6415(0x1aa),'NTTlL':function(_0x40910b,_0x1a2235){const _0x130655=_0x5d6415;return _0x26d6bb[_0x130655(0x24b)](_0x40910b,_0x1a2235);},'iSPPs':_0x26d6bb[_0x5d6415(0x202)],'ieqjZ':_0x26d6bb[_0x5d6415(0x1e4)],'zyCgM':_0x26d6bb[_0x5d6415(0x299)],'vrxUR':function(_0x2c660c,_0x3b6674){const _0x3833df=_0x5d6415;return _0x26d6bb[_0x3833df(0x2a8)](_0x2c660c,_0x3b6674);},'uxzSV':_0x5d6415(0x21f),'rTdOX':_0x26d6bb[_0x5d6415(0x19a)],'KMmiM':function(_0x28f3b4){const _0x55d030=_0x5d6415;return _0x26d6bb[_0x55d030(0x239)](_0x28f3b4);},'HzHjm':_0x5d6415(0x29d),'Ppdgn':_0x26d6bb['MbXBC'],'TpYbu':function(_0x8c1f04,_0x574ac7){const _0x27cf61=_0x5d6415;return _0x26d6bb[_0x27cf61(0x1d5)](_0x8c1f04,_0x574ac7);},'TEAFB':_0x26d6bb['SRCfi'],'zsJqU':_0x26d6bb['BPGoh'],'TZTUt':_0x26d6bb[_0x5d6415(0x245)],'tYkGE':_0x26d6bb[_0x5d6415(0x255)],'sWkPZ':function(_0x18dcd9){return _0x18dcd9();},'RZPvK':_0x5d6415(0x1fc),'pLiWG':function(_0x3537a0){return _0x3537a0();},'qGjoB':function(_0x33561d,_0x16a59d){return _0x26d6bb['lUITA'](_0x33561d,_0x16a59d);},'MPlWz':_0x26d6bb['KkJPv'],'QNiQK':_0x26d6bb[_0x5d6415(0x1bf)],'Ykwjp':_0x26d6bb[_0x5d6415(0x1d1)],'JYhPZ':_0x26d6bb[_0x5d6415(0x24d)],'KXtyG':_0x26d6bb[_0x5d6415(0x252)],'PhHiz':_0x26d6bb['uUmqP'],'uFmBl':_0x26d6bb[_0x5d6415(0x2c4)],'mCEBo':_0x26d6bb['ZDBwC'],'BZTAI':_0x26d6bb[_0x5d6415(0x25d)],'MOjNf':function(_0x255b61,_0x3515b0){return _0x26d6bb['CRkOK'](_0x255b61,_0x3515b0);},'bsMYT':_0x5d6415(0x1ad),'SJFWX':_0x26d6bb['PWSzu'],'nxQTP':_0x26d6bb[_0x5d6415(0x1ff)],'JCEJr':_0x26d6bb[_0x5d6415(0x244)],'uUaxS':_0x26d6bb[_0x5d6415(0x285)],'tnMar':function(_0x2ab671,_0x4c42a1){return _0x2ab671===_0x4c42a1;},'akPXC':_0x5d6415(0x241),'bsxph':_0x5d6415(0x204),'Atfgq':'ksnce','eyqyT':_0x26d6bb['uIjRE'],'CdOLF':function(_0x5d55db){return _0x5d55db();},'vQnHT':function(_0x5c5a61,_0x3308fc){return _0x5c5a61===_0x3308fc;},'dREZO':_0x5d6415(0x258),'nqPTE':function(_0x28f95c){return _0x28f95c();},'fyXnr':_0x5d6415(0x27b),'VlfSN':_0x26d6bb[_0x5d6415(0x2aa)],'DQGfA':_0x26d6bb[_0x5d6415(0x233)],'NvuOg':function(_0x2c2ff9){return _0x2c2ff9();},'umRyT':_0x26d6bb['biqlB'],'NvGPA':_0x26d6bb[_0x5d6415(0x1c4)],'PzKie':function(_0x12d716){const _0x21eeb4=_0x5d6415;return _0x26d6bb[_0x21eeb4(0x1c1)](_0x12d716);},'gsoyr':_0x26d6bb[_0x5d6415(0x1e8)],'ElbxY':_0x26d6bb[_0x5d6415(0x24c)],'lsEhZ':function(_0x689671){const _0x56c342=_0x5d6415;return _0x26d6bb[_0x56c342(0x239)](_0x689671);},'fNnzi':function(_0x169287){const _0x50a342=_0x5d6415;return _0x26d6bb[_0x50a342(0x1f4)](_0x169287);},'XmUJw':_0x5d6415(0x227),'AUDvc':_0x26d6bb[_0x5d6415(0x1d4)],'GYqxI':function(_0x39464d,_0x4b3664){const _0xee9f3d=_0x5d6415;return _0x26d6bb[_0xee9f3d(0x27a)](_0x39464d,_0x4b3664);},'ZgFTB':_0x26d6bb['laSxa']},_0x1f91a6=_0x3d2f5f[_0x5d6415(0x223)];async[_0x5d6415(0x1c7)]({'kh':function(_0x29442a){const _0x293ccc=_0x5d6415,_0x5cf434={'ZVZbD':function(_0x29e231){const _0x25a043=_0xe95e;return _0x6a9314[_0x25a043(0x2b7)](_0x29e231);},'OyPdO':_0x6a9314[_0x293ccc(0x2a5)]};if(_0x6a9314[_0x293ccc(0x19c)](_0x6a9314[_0x293ccc(0x1c6)],_0x6a9314[_0x293ccc(0x1c6)]))_0x4b65d0[_0x293ccc(0x25f)](_0x21e7fc=>_0x21e7fc[_0x293ccc(0x237)])[_0x293ccc(0x1a5)](_0x1f91a6,customer,[{'where':_0x6a9314[_0x293ccc(0x2b8)],'fields':[_0x6a9314[_0x293ccc(0x1cf)]]}],function(){const _0x1f0d40=_0x293ccc;_0x1f0d40(0x251)!==_0x5cf434[_0x1f0d40(0x29e)]?_0x5cf434[_0x1f0d40(0x24f)](_0x29442a):_0x5cf434['ZVZbD'](_0x5e3059);});else{const _0x246eb1=_0xc03f75[_0x293ccc(0x247)](_0x11b2de,arguments);return _0x16d415=null,_0x246eb1;}},'nv':function(_0x4f9a43){const _0x33d8a2=_0x5d6415,_0x26c1fc={'LFrgQ':function(_0x595dae){const _0x8e17da=_0xe95e;return _0x26d6bb[_0x8e17da(0x265)](_0x595dae);}};_0x4b65d0[_0x33d8a2(0x25f)](_0x4e5a5f=>_0x4e5a5f[_0x33d8a2(0x270)])[_0x33d8a2(0x1a5)](_0x1f91a6,dmnv,[{'where':_0x26d6bb[_0x33d8a2(0x23f)],'fields':[_0x33d8a2(0x280)]}],function(){const _0x4886a2=_0x33d8a2;_0x26c1fc[_0x4886a2(0x1e6)](_0x4f9a43);});},'bp':function(_0x2913c3){const _0x878dcc=_0x5d6415;_0x6a9314[_0x878dcc(0x23d)]===_0x6a9314[_0x878dcc(0x23d)]?_0x4b65d0[_0x878dcc(0x25f)](_0x39be37=>_0x39be37[_0x878dcc(0x1c9)])[_0x878dcc(0x1a5)](_0x1f91a6,dmbp,[{'where':_0x6a9314['TZTUt'],'fields':[_0x6a9314['tYkGE']]}],function(){const _0x1f0dec=_0x878dcc,_0x6accb7={'Aqvkq':function(_0x423d82,_0x517260){return _0x423d82<_0x517260;},'qjwkl':function(_0x53ab96,_0x4c9c3c){const _0xacc3b3=_0xe95e;return _0x6a9314[_0xacc3b3(0x200)](_0x53ab96,_0x4c9c3c);},'QOyJQ':_0x1f0dec(0x27b)};if(_0x6a9314[_0x1f0dec(0x2ad)]===_0x6a9314['rTdOX'])for(let _0x1b38a4=0x0;_0x6accb7[_0x1f0dec(0x1ba)](_0x1b38a4,_0x479378[_0x1f0dec(0x21e)][_0x1f0dec(0x298)]);_0x1b38a4++){const _0x1a6d2d=_0x42c2c1['tdttcos'][_0x1b38a4];_0x1a6d2d[_0x1f0dec(0x27d)]=_0x1b38a4,_0x6accb7[_0x1f0dec(0x22f)](_0x533865['ma_nt'],_0x6accb7[_0x1f0dec(0x1ab)])&&(_0x1a6d2d[_0x1f0dec(0x29d)]=_0x1a6d2d['tien_nt']);}else _0x6a9314[_0x1f0dec(0x283)](_0x2913c3);}):(_0x2b0516[_0x878dcc(0x22a)]=0x0,_0x47b124['t_tien_nt']=0x0,_0x5c9aac[_0x878dcc(0x267)]=0x0,_0x3d5697[_0x878dcc(0x1e3)]=0x0,_0x1b42f7['details']&&(_0x59b6ea['t_tien']=_0x10c099['details'][_0x878dcc(0x1b1)](_0x6a9314[_0x878dcc(0x216)]),_0x21526a[_0x878dcc(0x205)]=_0x323808[_0x878dcc(0x2b5)][_0x878dcc(0x1b1)](_0x6a9314[_0x878dcc(0x214)])),_0x151201['tdttcos']&&(_0x3e059b[_0x878dcc(0x22a)]=_0x6a9314['TpYbu'](_0x419fa6[_0x878dcc(0x22a)],_0x59e7e1['tdttcos'][_0x878dcc(0x1b1)](_0x6a9314[_0x878dcc(0x216)])),_0x42e51b[_0x878dcc(0x205)]=_0x6a9314[_0x878dcc(0x2c7)](_0x48dbe1[_0x878dcc(0x205)],_0x477b43['tdttcos'][_0x878dcc(0x1b1)](_0x6a9314['Ppdgn']))),_0x5d653a['vatvaos']&&(_0x2f33e1[_0x878dcc(0x267)]=_0x500bb8[_0x878dcc(0x197)]['csum'](_0x878dcc(0x2b3)),_0x1a5511['t_thue_vao_nt']=_0x43e6af[_0x878dcc(0x197)]['csum'](_0x6a9314['TEAFB'])),_0x532bac[_0x878dcc(0x24e)]=_0x1fcc6e['t_tien']+_0x2e5b45[_0x878dcc(0x267)],_0x54317c[_0x878dcc(0x26a)]=_0x55921b[_0x878dcc(0x205)]+_0x1acaec[_0x878dcc(0x1e3)]);},'tk':function(_0x213965){const _0x1ca67b=_0x5d6415;_0x4b65d0[_0x1ca67b(0x25f)](_0x502d6e=>_0x502d6e[_0x1ca67b(0x1ac)])[_0x1ca67b(0x1a5)](_0x1f91a6,account,[{'where':_0xe03127=>({'tk':_0xe03127[_0x1ca67b(0x1ac)]}),'fields':[{'name':_0x26d6bb[_0x1ca67b(0x1c5)],'value':_0x1ca67b(0x232)}]}],function(){const _0x5c0c59=_0x1ca67b,_0x43f49a={'FgJHO':function(_0x172a96){const _0x5a2386=_0xe95e;return _0x6a9314[_0x5a2386(0x2bd)](_0x172a96);}};if(_0x5c0c59(0x2b4)!==_0x6a9314[_0x5c0c59(0x212)])_0x213965();else{const _0x665e64={'VNOuy':'ten_hd'};_0x1a6574[_0x5c0c59(0x1a4)](_0x4e2339,0x14,function(_0x5a4918,_0x3be5d9){const _0x34cef2=_0x5c0c59,_0x4ed63d={'xkJwI':function(_0xc3d05){return _0xc3d05();}},_0x287210=_0x5a4918[_0x34cef2(0x2b5)]||[];_0x287210[_0x34cef2(0x25f)](_0xd3bc6=>_0xd3bc6['ma_hd'])[_0x34cef2(0x1a5)](_0x23ed01,_0x15d1bf,[{'where':_0x4698d1=>({'so_hd':_0x4698d1[_0x34cef2(0x22e)]}),'fields':[_0x665e64[_0x34cef2(0x253)]]}],function(){const _0x405754=_0x34cef2;_0x4ed63d[_0x405754(0x25a)](_0x3be5d9);});},function(){const _0x56f291=_0x5c0c59;_0x43f49a[_0x56f291(0x1f3)](_0x47ed98);});}});},'dv':function(_0x18ba92){const _0x6a68af=_0x5d6415;_0x4b65d0[_0x6a68af(0x25f)](_0x542166=>_0x542166['ma_dvcs'])['joinModel2'](_0x1f91a6,dvcs,[{'where':_0x311f95=>({'_id':_0x311f95['ma_dvcs']}),'setFields':(_0x4248f5,_0x261d3c)=>{const _0x2393ea=_0x6a68af;_0x4248f5[_0x2393ea(0x1a3)]=_0x261d3c[_0x2393ea(0x1a3)];}}],function(){_0x18ba92();});},'trangthai':function(_0x3f7227){const _0x31042f=_0x5d6415,_0x508ca7={'qsuoq':function(_0x4a98fd,_0x42e4f8){const _0x74f162=_0xe95e;return _0x26d6bb[_0x74f162(0x196)](_0x4a98fd,_0x42e4f8);},'dWCyh':_0x26d6bb[_0x31042f(0x2a4)],'qEltd':_0x31042f(0x2ba),'FlqHJ':function(_0x198129){const _0x27620e=_0x31042f;return _0x26d6bb[_0x27620e(0x1b2)](_0x198129);}};_0x4b65d0[_0x31042f(0x25f)](_0x4a1717=>_0x4a1717['trang_thai'])[_0x31042f(0x1a5)](null,trangthai,[{'where':{'trang_thai':_0x26d6bb[_0x31042f(0x1d1)],'ma_ct':_0x26d6bb[_0x31042f(0x24d)]},'fields':[_0x31042f(0x235),_0x26d6bb['uUmqP']]}],function(){const _0x5b1459=_0x31042f;if(_0x508ca7['qEltd']!==_0x5b1459(0x1f7))_0x508ca7[_0x5b1459(0x277)](_0x3f7227);else{const _0x3c9881=_0x3baaea['details'][_0x3a43f2];_0x3c9881[_0x5b1459(0x27d)]=_0x489983,_0x508ca7[_0x5b1459(0x1a9)](_0x4e95e6[_0x5b1459(0x284)],_0x508ca7[_0x5b1459(0x292)])&&(_0x3c9881[_0x5b1459(0x29d)]=_0x3c9881['tien_nt']);}});},'pc1':function(_0x18e839){const _0x5318b6=_0x5d6415;_0x26d6bb['oKrig'](_0x26d6bb[_0x5318b6(0x2a2)],_0x26d6bb[_0x5318b6(0x27c)])?_0xe06f47():_0x4b65d0['joinModel2'](_0x1f91a6,pc1,[{'where':{'_id':_0x26d6bb['guYzS']},'fields':[{'id_pc1':'_id'},{'so_ct_pc1':_0x26d6bb[_0x5318b6(0x1e0)]},{'ma_ct_pc1':_0x26d6bb['FTPHL']},{'ngay_ct_pc1':_0x26d6bb[_0x5318b6(0x243)]}]}],function(){const _0x2b616f=_0x5318b6,_0x1ffa16={'nrenT':function(_0x4a509f){const _0x1e2867=_0xe95e;return _0x6a9314[_0x1e2867(0x1d6)](_0x4a509f);}};_0x6a9314[_0x2b616f(0x1ec)](_0x6a9314[_0x2b616f(0x1ce)],_0x6a9314[_0x2b616f(0x22d)])?_0x6a9314['VwFwV'](_0x18e839):_0x1ffa16[_0x2b616f(0x211)](_0x59ebdc);});},'t_tien':function(_0x2033c4){const _0x1be0de=_0x5d6415,_0x42dbc4={'wdmxa':function(_0xbbc866,_0x58ed01){return _0xbbc866===_0x58ed01;},'RZite':_0x6a9314[_0x1be0de(0x1ae)],'AuvXv':_0x6a9314['mCEBo'],'OUQrz':_0x6a9314['BZTAI'],'uQQfT':_0x6a9314['TEAFB'],'YiuOo':function(_0x3f6355,_0x3cbc9e){const _0x2e193e=_0x1be0de;return _0x6a9314[_0x2e193e(0x2c7)](_0x3f6355,_0x3cbc9e);},'GbheK':_0x6a9314[_0x1be0de(0x216)],'jATos':_0x6a9314['Ppdgn'],'jRpkG':function(_0x48ce35,_0x171c28){return _0x6a9314['TpYbu'](_0x48ce35,_0x171c28);},'yCcjb':function(_0x1ae8ea,_0xbd919c){const _0x4c7fc8=_0x1be0de;return _0x6a9314[_0x4c7fc8(0x2bc)](_0x1ae8ea,_0xbd919c);}};if(_0x6a9314[_0x1be0de(0x1ea)]!==_0x6a9314[_0x1be0de(0x291)])_0x4b65d0[_0x1be0de(0x26f)](function(_0x5bd721){const _0xdeace3=_0x1be0de;if(_0x42dbc4[_0xdeace3(0x1d3)](_0x42dbc4[_0xdeace3(0x225)],_0x42dbc4[_0xdeace3(0x225)])){const _0x5bf651=_0x42dbc4[_0xdeace3(0x1cb)][_0xdeace3(0x296)]('|');let _0xeeab42=0x0;while(!![]){switch(_0x5bf651[_0xeeab42++]){case'0':_0x5bd721['t_thue_vao']=0x0;continue;case'1':_0x5bd721[_0xdeace3(0x1e3)]=0x0;continue;case'2':_0x5bd721[_0xdeace3(0x197)]&&(_0x5bd721[_0xdeace3(0x267)]=_0x5bd721[_0xdeace3(0x197)][_0xdeace3(0x1b1)](_0x42dbc4[_0xdeace3(0x230)]),_0x5bd721[_0xdeace3(0x1e3)]=_0x5bd721[_0xdeace3(0x197)][_0xdeace3(0x1b1)](_0x42dbc4['uQQfT']));continue;case'3':_0x5bd721[_0xdeace3(0x24e)]=_0x42dbc4[_0xdeace3(0x273)](_0x5bd721[_0xdeace3(0x22a)],_0x5bd721[_0xdeace3(0x267)]);continue;case'4':_0x5bd721[_0xdeace3(0x205)]=0x0;continue;case'5':_0x5bd721[_0xdeace3(0x2b5)]&&(_0x5bd721['t_tien']=_0x5bd721[_0xdeace3(0x2b5)][_0xdeace3(0x1b1)](_0x42dbc4[_0xdeace3(0x2a0)]),_0x5bd721['t_tien_nt']=_0x5bd721[_0xdeace3(0x2b5)][_0xdeace3(0x1b1)](_0x42dbc4[_0xdeace3(0x249)]));continue;case'6':_0x5bd721[_0xdeace3(0x22a)]=0x0;continue;case'7':_0x5bd721[_0xdeace3(0x26a)]=_0x42dbc4[_0xdeace3(0x2c6)](_0x5bd721[_0xdeace3(0x205)],_0x5bd721[_0xdeace3(0x1e3)]);continue;case'8':_0x5bd721[_0xdeace3(0x21e)]&&(_0x5bd721[_0xdeace3(0x22a)]=_0x42dbc4[_0xdeace3(0x1b6)](_0x5bd721[_0xdeace3(0x22a)],_0x5bd721[_0xdeace3(0x21e)][_0xdeace3(0x1b1)](_0x42dbc4[_0xdeace3(0x2a0)])),_0x5bd721[_0xdeace3(0x205)]=_0x5bd721[_0xdeace3(0x205)]+_0x5bd721[_0xdeace3(0x21e)][_0xdeace3(0x1b1)](_0x42dbc4[_0xdeace3(0x249)]));continue;}break;}}else _0x543c36(null,_0x1eb428);}),_0x6a9314[_0x1be0de(0x2bd)](_0x2033c4);else{const _0x80a01c={'jPbNr':function(_0x1d055b){return _0x1d055b();}};_0x6b82ef[_0x1be0de(0x25f)](_0x3b8524=>_0x3b8524['trang_thai'])['joinModel2'](null,_0x172b36,[{'where':{'trang_thai':_0x6a9314['Ykwjp'],'ma_ct':_0x6a9314[_0x1be0de(0x21c)]},'fields':[_0x6a9314[_0x1be0de(0x254)],_0x6a9314[_0x1be0de(0x259)]]}],function(){const _0x4cdaee=_0x1be0de;_0x80a01c[_0x4cdaee(0x1fe)](_0x4446bb);});}},'details_tk':function(_0x19e04f){const _0x5ad61b=_0x5d6415;_0x6a9314['tnMar'](_0x6a9314[_0x5ad61b(0x1ed)],_0x6a9314[_0x5ad61b(0x2bf)])?_0x410d12[_0x5ad61b(0x29d)]=_0x34a7b6[_0x5ad61b(0x248)]:async[_0x5ad61b(0x1a4)](_0x4b65d0,0x14,function(_0x2b029d,_0x31ca4e){const _0x260369=_0x5ad61b,_0x37e0fe={'ekzFp':function(_0x5f56e8){const _0x49f2e9=_0xe95e;return _0x6a9314[_0x49f2e9(0x2bd)](_0x5f56e8);},'LtUuR':_0x6a9314[_0x260369(0x19e)],'hymPV':'ma_dt','jOIha':'nNMrS'};if(_0x6a9314[_0x260369(0x1ec)](_0x6a9314[_0x260369(0x20b)],_0x6a9314[_0x260369(0x20b)])){const _0x5c8041={'veInx':function(_0xb96211){const _0x3b3a78=_0x260369;return _0x37e0fe[_0x3b3a78(0x246)](_0xb96211);}},_0x733179=_0x385feb[_0x260369(0x2b5)]||[];_0x733179[_0x260369(0x25f)](_0x5db916=>_0x5db916['ma_hd'])['joinModel2'](_0x15fe67,_0x37c4ac,[{'where':_0x421703=>({'so_hd':_0x421703['ma_hd']}),'fields':[_0x37e0fe['LtUuR']]}],function(){_0x5c8041['veInx'](_0x534f2e);});}else{const _0x35c3f3=_0x2b029d[_0x260369(0x2b5)]||[];_0x35c3f3[_0x260369(0x25f)](_0x686c06=>_0x686c06[_0x260369(0x1f0)])[_0x260369(0x1a5)](_0x1f91a6,account,[{'where':_0x38b169=>({'tk':_0x38b169[_0x260369(0x1f0)]}),'fields':[{'ten_tk_no':_0x6a9314[_0x260369(0x1c2)]}]}],function(){const _0x44958c=_0x260369,_0x1f49ea={'kxBPH':function(_0x199ac8){return _0x199ac8();},'IFhSV':_0x37e0fe[_0x44958c(0x1dc)]};if('oycHG'===_0x37e0fe[_0x44958c(0x240)]){const _0x502796=_0x47e7d5[_0x44958c(0x2b5)]||[];_0x502796[_0x44958c(0x25f)](_0x1bc66b=>_0x1bc66b[_0x44958c(0x272)])[_0x44958c(0x1a5)](_0x2f759a,_0x3d1679,[{'where':_0x1f49ea[_0x44958c(0x228)],'fields':['ten_dt']}],function(){_0x1f49ea['kxBPH'](_0x3070ce);});}else _0x31ca4e();});}},function(){_0x19e04f();});},'details_tk_tdttco':function(_0xca3301){const _0x1ee289=_0x5d6415;async[_0x1ee289(0x1a4)](_0x4b65d0,0x14,function(_0x18ff78,_0x1f0714){const _0x289eb1=_0x1ee289,_0x53e929={'MobKo':function(_0x13f5c1){return _0x13f5c1();},'VoGfo':_0x6a9314[_0x289eb1(0x1cf)],'gKMgU':_0x6a9314[_0x289eb1(0x22b)],'ammSV':_0x6a9314[_0x289eb1(0x27f)]},_0x2db873=_0x18ff78[_0x289eb1(0x21e)]||[];_0x2db873[_0x289eb1(0x25f)](_0x2d3981=>_0x2d3981['tk_no'])['joinModel2'](_0x1f91a6,account,[{'where':{'tk_no':'tk'},'fields':[{'ten_tk_no':_0x6a9314['uUaxS']}]}],function(){const _0xd4825c=_0x289eb1;if(_0x53e929['gKMgU']===_0x53e929[_0xd4825c(0x1e7)]){const _0xc7e32={'tsFxp':function(_0x1b8d8e){const _0x134639=_0xd4825c;return _0x53e929[_0x134639(0x2ac)](_0x1b8d8e);}},_0x3a7222=_0x332f94[_0xd4825c(0x2b5)]||[];_0x3a7222[_0xd4825c(0x25f)](_0x2483d4=>_0x2483d4[_0xd4825c(0x237)])[_0xd4825c(0x1a5)](_0x13736e,_0x1a1b82,[{'where':_0xd4825c(0x237),'fields':[_0x53e929[_0xd4825c(0x28b)]]}],function(){const _0x28152b=_0xd4825c;_0xc7e32[_0x28152b(0x262)](_0x41cda5);});}else _0x1f0714();});},function(){_0x6a9314['CdOLF'](_0xca3301);});},'details_dt_tdttco':function(_0x21ee36){const _0x115e49=_0x5d6415,_0x593246={'twacb':function(_0x3482a7){return _0x3482a7();},'bYfKN':function(_0x3df32a,_0x2c1459){const _0x58d6cb=_0xe95e;return _0x26d6bb[_0x58d6cb(0x266)](_0x3df32a,_0x2c1459);},'gVspE':'ma_dt','dYXCz':_0x26d6bb[_0x115e49(0x1c4)],'aXEPz':function(_0x59673b){const _0x1ca9aa=_0x115e49;return _0x26d6bb[_0x1ca9aa(0x1b2)](_0x59673b);},'Rotjv':_0x26d6bb[_0x115e49(0x1e2)]};async[_0x115e49(0x1a4)](_0x4b65d0,0x14,function(_0x169b88,_0x14133b){const _0x25d613=_0x115e49,_0x4773b9={'pxTcM':function(_0x3ab6ff){const _0x3e28c2=_0xe95e;return _0x593246[_0x3e28c2(0x2a7)](_0x3ab6ff);},'QQCxe':function(_0x2f8847,_0x4384d8){return _0x593246['bYfKN'](_0x2f8847,_0x4384d8);},'lzMuz':'LRfgG'},_0x54a61f=_0x169b88[_0x25d613(0x21e)]||[];_0x54a61f[_0x25d613(0x25f)](_0x14e27f=>_0x14e27f[_0x25d613(0x272)])[_0x25d613(0x1a5)](_0x1f91a6,dmdt,[{'where':_0x593246[_0x25d613(0x222)],'fields':[_0x593246['dYXCz']]}],function(){const _0x44e063=_0x25d613;_0x4773b9['QQCxe'](_0x4773b9[_0x44e063(0x1b9)],_0x44e063(0x282))?_0x4773b9[_0x44e063(0x2ab)](_0x14133b):_0x4773b9[_0x44e063(0x2ab)](_0x20be76);});},function(){const _0x2506c9=_0x115e49;_0x2506c9(0x1c8)!==_0x593246[_0x2506c9(0x203)]?_0x593246[_0x2506c9(0x1bd)](_0x21ee36):_0x593246[_0x2506c9(0x1bd)](_0x44fce2);});},'details_hd_tdttco':function(_0x3178db){const _0x311112=_0x5d6415;async[_0x311112(0x1a4)](_0x4b65d0,0x14,function(_0x318116,_0x55fda4){const _0x58aa07=_0x311112,_0x475422={'sKTmJ':function(_0x124a99){return _0x124a99();}},_0xcbcbcc=_0x318116[_0x58aa07(0x21e)]||[];_0xcbcbcc[_0x58aa07(0x25f)](_0x18605=>_0x18605['ma_hd'])[_0x58aa07(0x1a5)](_0x1f91a6,contract,[{'wher':_0x398458=>({'so_hd':_0x398458[_0x58aa07(0x22e)]}),'fields':[_0x6a9314[_0x58aa07(0x19e)]]}],function(){const _0x36bba2=_0x58aa07;_0x475422[_0x36bba2(0x28f)](_0x55fda4);});},function(){const _0x37463=_0x311112;_0x6a9314[_0x37463(0x2b7)](_0x3178db);});},'details_phi_tdttco':function(_0x1fc78e){const _0x3a8fdb=_0x5d6415,_0x115130={'gGCJI':function(_0x33d10d,_0x43391c){return _0x6a9314['vrxUR'](_0x33d10d,_0x43391c);},'KFpyh':_0x6a9314['fyXnr'],'wsnpk':_0x3a8fdb(0x290),'IZDij':_0x6a9314[_0x3a8fdb(0x1a1)],'xcrXA':_0x6a9314[_0x3a8fdb(0x1e1)]};async[_0x3a8fdb(0x1a4)](_0x4b65d0,0x14,function(_0x264cf9,_0x1e2b0c){const _0x1fa0d5=_0x3a8fdb,_0x594996={'mUsCo':function(_0xcc0972,_0x2d0bd8){const _0x192051=_0xe95e;return _0x115130[_0x192051(0x1db)](_0xcc0972,_0x2d0bd8);},'eJdJP':_0x115130[_0x1fa0d5(0x293)]};if(_0x115130[_0x1fa0d5(0x198)]!==_0x115130['wsnpk']){const _0x7e9e34=_0x45b59b[_0x1fa0d5(0x21e)][_0x29449f];_0x7e9e34[_0x1fa0d5(0x27d)]=_0x4b91c4,_0x594996[_0x1fa0d5(0x2a9)](_0x35ba29[_0x1fa0d5(0x284)],_0x594996[_0x1fa0d5(0x20a)])&&(_0x7e9e34[_0x1fa0d5(0x29d)]=_0x7e9e34[_0x1fa0d5(0x248)]);}else{const _0xf39514=_0x264cf9[_0x1fa0d5(0x21e)]||[];_0xf39514[_0x1fa0d5(0x25f)](_0x306566=>_0x306566[_0x1fa0d5(0x25b)])[_0x1fa0d5(0x1a5)](_0x1f91a6,dmphi,[{'where':_0x115130[_0x1fa0d5(0x2bb)],'fields':[_0x115130[_0x1fa0d5(0x1f6)]]}],function(){_0x1e2b0c();});}},function(){const _0x2e18b4=_0x3a8fdb;_0x6a9314[_0x2e18b4(0x2ae)](_0x6a9314['dREZO'],_0x6a9314[_0x2e18b4(0x229)])?_0x6a9314[_0x2e18b4(0x23a)](_0x1fc78e):_0x215a58();});},'details_customer':function(_0x1aa380){const _0x455037=_0x5d6415,_0x13ffc0={'tGSOW':function(_0x50c7d8,_0x5875b8){const _0x45771b=_0xe95e;return _0x6a9314[_0x45771b(0x1ec)](_0x50c7d8,_0x5875b8);},'gTrAm':'hspyy','KuSfi':_0x455037(0x1c0),'Rsnhm':function(_0xdeebb5){const _0x1dc468=_0x455037;return _0x6a9314[_0x1dc468(0x2a3)](_0xdeebb5);}};async[_0x455037(0x1a4)](_0x4b65d0,0x14,function(_0x4b7727,_0x461764){const _0x32eb47=_0x455037,_0x34b0ef=_0x4b7727[_0x32eb47(0x2b5)]||[];_0x34b0ef[_0x32eb47(0x25f)](_0x29bad5=>_0x29bad5['ma_kh'])['joinModel2'](_0x1f91a6,customer,[{'where':_0x32eb47(0x237),'fields':[_0x32eb47(0x19d)]}],function(){const _0x549ea9=_0x32eb47,_0x5f3f6f={'SIxes':function(_0x169cc9){return _0x169cc9();}};_0x13ffc0[_0x549ea9(0x1fd)](_0x13ffc0[_0x549ea9(0x1a6)],_0x13ffc0[_0x549ea9(0x268)])?_0x13ffc0['Rsnhm'](_0x461764):_0x5f3f6f[_0x549ea9(0x1f5)](_0x30da1a);});},function(){_0x1aa380();});},'details_dt':function(_0x39432c){const _0x15a15d=_0x5d6415,_0x385487={'yxUAN':_0x6a9314[_0x15a15d(0x2b0)],'WyvQV':_0x6a9314[_0x15a15d(0x271)]};async[_0x15a15d(0x1a4)](_0x4b65d0,0x14,function(_0x5bb831,_0x37e941){const _0x29b6b5=_0x15a15d,_0x402f88={'rkZZY':function(_0x563a04){return _0x563a04();}},_0x1156fd=_0x5bb831[_0x29b6b5(0x2b5)]||[];_0x1156fd[_0x29b6b5(0x25f)](_0x336ad9=>_0x336ad9[_0x29b6b5(0x272)])['joinModel2'](_0x1f91a6,dmdt,[{'where':_0x385487[_0x29b6b5(0x224)],'fields':[_0x385487['WyvQV']]}],function(){_0x402f88['rkZZY'](_0x37e941);});},function(){_0x39432c();});},'details_hopdong':function(_0x504826){const _0x3d5d05=_0x5d6415,_0x5079c2={'RXNXo':function(_0xf9354b){return _0x6a9314['lsEhZ'](_0xf9354b);},'zXKOl':_0x6a9314[_0x3d5d05(0x2b0)],'BfrZE':function(_0x4ea277){return _0x6a9314['VwFwV'](_0x4ea277);},'ADAEL':function(_0x532c42,_0x38358e){const _0x116147=_0x3d5d05;return _0x6a9314[_0x116147(0x2ae)](_0x532c42,_0x38358e);},'sixpi':_0x3d5d05(0x286),'zayEN':_0x3d5d05(0x1d9)};async['mapLimit'](_0x4b65d0,0x14,function(_0x375a84,_0x2bc3bf){const _0x530907=_0x3d5d05,_0x10351a={'wOdpd':function(_0x136fc1){const _0x46d50e=_0xe95e;return _0x6a9314[_0x46d50e(0x1a7)](_0x136fc1);},'VVBWE':function(_0x29164e){const _0x48d828=_0xe95e;return _0x6a9314[_0x48d828(0x283)](_0x29164e);},'DEOGS':_0x530907(0x232)};if(_0x6a9314[_0x530907(0x1ec)](_0x6a9314[_0x530907(0x1f9)],_0x6a9314['ElbxY'])){const _0x29a472=_0x375a84[_0x530907(0x2b5)]||[];_0x29a472[_0x530907(0x25f)](_0x734860=>_0x734860[_0x530907(0x22e)])[_0x530907(0x1a5)](_0x1f91a6,contract,[{'where':_0x517b8b=>({'so_hd':_0x517b8b[_0x530907(0x22e)]}),'fields':[_0x6a9314['nxQTP']]}],function(){const _0x53a1b9=_0x530907;_0x5079c2[_0x53a1b9(0x2c8)](_0x2bc3bf);});}else{const _0x160c83={'ktySb':function(_0x370a8c){return _0x10351a['VVBWE'](_0x370a8c);},'uzleM':_0x10351a['DEOGS']};_0x275533['mapLimit'](_0x424abd,0x14,function(_0x2549d2,_0x4c79b0){const _0x364dc5=_0x530907,_0x57753a=_0x2549d2[_0x364dc5(0x21e)]||[];_0x57753a['filter'](_0x2376b7=>_0x2376b7[_0x364dc5(0x1f0)])[_0x364dc5(0x1a5)](_0x49abd9,_0x3909ed,[{'where':{'tk_no':'tk'},'fields':[{'ten_tk_no':_0x160c83['uzleM']}]}],function(){const _0x2d4f9a=_0x364dc5;_0x160c83[_0x2d4f9a(0x1b8)](_0x4c79b0);});},function(){const _0x46d7b8=_0x530907;_0x10351a[_0x46d7b8(0x1eb)](_0x5d6f56);});}},function(){const _0x458e5f=_0x3d5d05;if(_0x5079c2[_0x458e5f(0x29f)](_0x5079c2[_0x458e5f(0x195)],_0x5079c2[_0x458e5f(0x1e5)])){const _0x20481f={'OsMRM':_0x5079c2[_0x458e5f(0x294)],'AFJgQ':function(_0x101190){return _0x5079c2['BfrZE'](_0x101190);}};_0x179f23[_0x458e5f(0x1a4)](_0x30cd60,0x14,function(_0x46ad3a,_0x2a9b2c){const _0x3ea519=_0x458e5f,_0x42d1bd={'MvLCZ':function(_0x5bb5ed){return _0x5bb5ed();}},_0x4b6173=_0x46ad3a['tdttcos']||[];_0x4b6173[_0x3ea519(0x25f)](_0x1d4b33=>_0x1d4b33[_0x3ea519(0x272)])[_0x3ea519(0x1a5)](_0x298b2c,_0x47daa5,[{'where':_0x20481f['OsMRM'],'fields':['ten_dt']}],function(){const _0x47ec71=_0x3ea519;_0x42d1bd[_0x47ec71(0x1bc)](_0x2a9b2c);});},function(){const _0x3ed090=_0x458e5f;_0x20481f[_0x3ed090(0x1be)](_0x2a3ea6);});}else _0x5079c2[_0x458e5f(0x257)](_0x504826);});},'details_phi':function(_0x480030){const _0x516017=_0x5d6415,_0x4bd134={'rPkPD':_0x6a9314[_0x516017(0x26e)],'YGIAX':function(_0x1d5909,_0x41df1d){const _0x4ab049=_0x516017;return _0x6a9314[_0x4ab049(0x207)](_0x1d5909,_0x41df1d);},'HAzJr':_0x6a9314[_0x516017(0x23b)],'tbHGD':_0x6a9314['VlfSN'],'CtwkH':_0x6a9314['DQGfA']};async[_0x516017(0x1a4)](_0x4b65d0,0x14,function(_0x58bf19,_0x23aa6d){const _0x537514=_0x516017,_0x586cbf=_0x58bf19[_0x537514(0x2b5)]||[];_0x586cbf[_0x537514(0x25f)](_0x345fad=>_0x345fad['ma_phi'])[_0x537514(0x1a5)](_0x1f91a6,dmphi,[{'where':_0x6a9314[_0x537514(0x1a1)],'fields':[_0x6a9314['DQGfA']]}],function(){const _0x235e0f=_0x537514,_0x24cc96={'RHvaY':_0x4bd134[_0x235e0f(0x201)]};_0x4bd134[_0x235e0f(0x287)](_0x235e0f(0x20e),_0x4bd134[_0x235e0f(0x1ee)])?(_0x565b61[_0x235e0f(0x267)]=_0x305182[_0x235e0f(0x197)][_0x235e0f(0x1b1)](_0x235e0f(0x2b3)),_0x4575c4[_0x235e0f(0x1e3)]=_0x259eb8['vatvaos'][_0x235e0f(0x1b1)](_0x24cc96[_0x235e0f(0x23e)])):_0x23aa6d();});},function(){const _0x1104f0=_0x516017,_0x58387f={'lyISE':function(_0x28303c){const _0x2bff0d=_0xe95e;return _0x6a9314[_0x2bff0d(0x1d2)](_0x28303c);}};if(_0x6a9314[_0x1104f0(0x1ec)](_0x6a9314[_0x1104f0(0x261)],_0x6a9314[_0x1104f0(0x2be)]))_0x6a9314[_0x1104f0(0x1a7)](_0x480030);else{const _0x1cca84=_0x455c03['tdttcos']||[];_0x1cca84[_0x1104f0(0x25f)](_0x1910a4=>_0x1910a4[_0x1104f0(0x25b)])[_0x1104f0(0x1a5)](_0x1c20ce,_0x4fd8be,[{'where':_0x4bd134[_0x1104f0(0x236)],'fields':[_0x4bd134[_0x1104f0(0x1a0)]]}],function(){const _0x57c732=_0x1104f0;_0x58387f[_0x57c732(0x19b)](_0x5b0b46);});}});}},function(){const _0x1412a2=_0x5d6415,_0x3605e1={'fnUNs':function(_0x5729c1){const _0x307826=_0xe95e;return _0x26d6bb[_0x307826(0x265)](_0x5729c1);}};_0x26d6bb[_0x1412a2(0x231)](_0x26d6bb[_0x1412a2(0x1f8)],_0x26d6bb[_0x1412a2(0x1f8)])?_0x3605e1[_0x1412a2(0x2c2)](_0x210243):_0x26d6bb[_0x1412a2(0x1a8)](_0x4b2981,null,_0x4b65d0);});};};
|
|
@@ -1,31 +1 @@
|
|
|
1
|
-
const PostBook=require("../../libs/post-book"),PostSocai=require("../../libs/post-socai"),Vatvao=global.getModel("vatvao"),Tdttco_tt=global.getModel("tdttco_tt"),Tdttco=global.getModel("tdttco"),dvcs=global.getModel("dvcs"),account=global.getModel("account"),dmdt=global.getModel("dmdt"),customer=global.getModel("customer"),dmnv=global.getModel("dmnv"),contract=global.getModel("contract"),dmphi=global.getModel("dmphi"),model=global.getModel("pc1"),pc0=global.getModel("pc0"),pn6=global.getModel("pn6"),
|
|
2
|
-
trangthai=global.getModel("trangthai"),controller=require("../../controllers/controller"),{round}=require("../../libs/utils"),async=require("async"),ma_ct="PC1",valid_detail=function($i_i$jscomp$1_i$$,$obj$$,$fn$$){for($i_i$jscomp$1_i$$=0;$i_i$jscomp$1_i$$<$obj$$.details.length;$i_i$jscomp$1_i$$++){var $detail_tdttco_vatvao$$=$obj$$.details[$i_i$jscomp$1_i$$];$detail_tdttco_vatvao$$.line=$i_i$jscomp$1_i$$;$obj$$.ma_nt==="VND"&&($detail_tdttco_vatvao$$.tien=$detail_tdttco_vatvao$$.tien_nt)}if($obj$$.vatvaos)for($i_i$jscomp$1_i$$=
|
|
3
|
-
0;$i_i$jscomp$1_i$$<$obj$$.vatvaos.length;$i_i$jscomp$1_i$$++)$detail_tdttco_vatvao$$=$obj$$.vatvaos[$i_i$jscomp$1_i$$],$detail_tdttco_vatvao$$.line=$i_i$jscomp$1_i$$,$obj$$.ma_nt==="VND"&&($detail_tdttco_vatvao$$.t_thue=$detail_tdttco_vatvao$$.t_thue_nt);if($obj$$.tdttcos)for($i_i$jscomp$1_i$$=0;$i_i$jscomp$1_i$$<$obj$$.tdttcos.length;$i_i$jscomp$1_i$$++)$detail_tdttco_vatvao$$=$obj$$.tdttcos[$i_i$jscomp$1_i$$],$detail_tdttco_vatvao$$.line=$i_i$jscomp$1_i$$,$obj$$.ma_nt==="VND"&&($detail_tdttco_vatvao$$.tien=
|
|
4
|
-
$detail_tdttco_vatvao$$.tien_nt),$detail_tdttco_vatvao$$.thanh_toan_qd=$detail_tdttco_vatvao$$.ma_nt_hd==$obj$$.ma_nt?$detail_tdttco_vatvao$$.tien_nt:round($detail_tdttco_vatvao$$.tien/$detail_tdttco_vatvao$$.ty_gia_hd,2);$fn$$(null,$obj$$)};
|
|
5
|
-
module.exports=function($contr_router$$){$contr_router$$=new controller($contr_router$$,model,ma_ct.toLowerCase(),{isVoucher:!0,sort:{ngay_ct:-1,so_ct:-1},keyValues:{ma_ct},onExport:function($user$$,$obj$$,$next$$){$obj$$.tdttcos&&$obj$$.tdttcos.length>0&&($obj$$.details=$obj$$.tdttcos);$next$$()}});$contr_router$$.route();$contr_router$$.post=function($obj$$,$fn$$){$fn$$||=function(){};async.series({post_vatvao:function($callback$$){(new PostBook($obj$$,$obj$$.vatvaos,Vatvao)).run(function($e$$,
|
|
6
|
-
$rs$$){$callback$$($e$$,$rs$$)})},post_tdttco:function($callback$$){(new PostBook($obj$$,$obj$$.tdttcos,Tdttco_tt,function($tdttco$$,$callback$$){$tdttco$$.tk_co=$obj$$.tk_co;$callback$$($tdttco$$)})).run(function($e$$,$details$$){if($e$$)return $callback$$($e$$);async.mapSeries($details$$,($detail$$,$callback$$)=>{$detail$$.con_lai_nt<=$detail$$.thanh_toan_qd?Tdttco.findOneAndUpdate({_id:$detail$$.id_tdtt.toString()},{$set:{tat_toan:!0}},function($error$$,$result$$){$callback$$($error$$,$result$$)}):
|
|
7
|
-
$callback$$(null,$detail$$)},function($e$$,$rs$$){$callback$$($e$$,$rs$$)})})},post_socai:function($callback$$){setImmediate(async()=>{const $details_sc$$=[];$obj$$.vatvaos.forEach(function($v_vatvao$$){$v_vatvao$$={...$v_vatvao$$};$v_vatvao$$.tk_no=$v_vatvao$$.tk_thue_no;$v_vatvao$$.tk_co=$v_vatvao$$.tk_du_thue;$v_vatvao$$.tien_nt=$v_vatvao$$.t_thue_nt;$v_vatvao$$.tien=$v_vatvao$$.t_thue;$details_sc$$.push($v_vatvao$$)});$obj$$.details.forEach(function($d_detail$$){$d_detail$$={...$d_detail$$};$d_detail$$.tk_co=
|
|
8
|
-
$obj$$.tk_co;$d_detail$$.ma_kh||($d_detail$$.ma_kh=$obj$$.ma_kh);$details_sc$$.push($d_detail$$)});$obj$$.tdttcos.forEach(function($t_tdttco$$){$t_tdttco$$={...$t_tdttco$$};$t_tdttco$$.tk_co=$obj$$.tk_co;$t_tdttco$$.ma_kh||($t_tdttco$$.ma_kh=$obj$$.ma_kh);$details_sc$$.push($t_tdttco$$)});const $tdttcos_cl$$=$obj$$.tdttcos.filter($t$$=>$t$$.ty_gia_hd!=$obj$$.ty_gia);await $tdttcos_cl$$.asyncJoinModel2($obj$$.id_app,"currency",{where:{ma_nt_hd:"ma_nt"},fields:["tk_cl_no","tk_cl_co"]});$tdttcos_cl$$.forEach($t$$=>
|
|
9
|
-
{let $chenh_lech$$=Math.roundBy($obj$$.ty_gia*$t$$.tien_nt-$t$$.ty_gia_hd*$t$$.thanh_toan_qd,0);if($chenh_lech$$!=0){const $ht$$={...$t$$,ma_nt:"VND",ty_gia:1};$ht$$.tien_nt=$ht$$.tien=Math.abs($chenh_lech$$);$chenh_lech$$<0?$ht$$.tk_co=$t$$.tk_cl_co:($ht$$.tk_co=$t$$.tk_no,$ht$$.tk_no=$t$$.tk_cl_no);$ht$$.ma_kh||($ht$$.ma_kh=$obj$$.ma_kh);$details_sc$$.push($ht$$)}});(new PostSocai($obj$$,$details_sc$$)).run(function($e$$,$rs$$){$callback$$($e$$,$rs$$)})})}},function($e$$,$rs$$){$fn$$($e$$,$rs$$)})};
|
|
10
|
-
$contr_router$$.creating=async function($user$$,$obj$$,$next$$){if($user$$.current_app_info.options.phieu_chi_phai_co_phieu_de_nghi&&!$obj$$.id_pc0&&!$obj$$.id_pn6)return $next$$("Ch\u01b0a c\u00f3 phi\u1ebfu \u0111\u1ec1 ngh\u1ecb thanh to\u00e1n");$obj$$.details||($obj$$.details=[]);if($obj$$.id_pc0&&global.mongoose.Types.ObjectId.isValid($obj$$.id_pc0)){if(await model.findOne({id_app:$user$$.current_id_app,id_pc0:$obj$$.id_pc0}))return $next$$("\u0110\u1ec1 ngh\u1ecb thanh to\u00e1n n\u00e0y \u0111\u00e3 \u0111\u01b0\u1ee3c chi");
|
|
11
|
-
var $dntt_t_tien_dn$$=await pc0.findOne({_id:$obj$$.id_pc0,id_app:$user$$.current_id_app});if(!$dntt_t_tien_dn$$)return $next$$("\u0110\u1ec1 ngh\u1ecb thanh to\u00e1n kh\u00f4ng t\u1ed3n t\u1ea1i");$dntt_t_tien_dn$$=($dntt_t_tien_dn$$.details||[]).map($d$$=>$d$$.tien_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0)+($dntt_t_tien_dn$$.tdttcos||[]).map($d$$=>$d$$.tien_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0)+($dntt_t_tien_dn$$.vatvaos||[]).map($d$$=>$d$$.t_thue_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0);let $t_tien_tt$$=
|
|
12
|
-
($obj$$.details||[]).map($d$$=>$d$$.tien_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0)+($obj$$.tdttcos||[]).map($d$$=>$d$$.tien_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0)+($obj$$.vatvaos||[]).map($d$$=>$d$$.t_thue_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0);if($dntt_t_tien_dn$$!==$t_tien_tt$$)return $next$$("T\u1ed5ng s\u1ed1 ti\u1ec1n thanh to\u00e1n ph\u1ea3i b\u1eb1ng v\u1edbi s\u1ed1 ti\u1ec1n trong \u0111\u1ec1 ngh\u1ecb thanh to\u00e1n \u0111\u00e3 \u0111\u01b0\u1ee3c duy\u1ec7t")}if($obj$$.tdttcos&&$obj$$.tdttcos.length>
|
|
13
|
-
0&&(await $obj$$.tdttcos.asyncJoinModel2($user$$.current_id_app,Tdttco,{where:{id_tdtt:"_id"},fields:["tat_toan",{tien_hd_nt:"tien_nt"}]}),(await Promise.all($obj$$.tdttcos.map($hd$$=>(async()=>{if(!global.mongoose.Types.ObjectId.isValid($hd$$.id_tdtt))return{error:"Ho\u00e1 \u0111\u01a1n kh\u00f4ng h\u1ee3p l\u1ec7",invoice:$hd$$};let $ds_da_thanh_toan$$=await Tdttco_tt.find({id_app:$obj$$.id_app,id_tdtt:$hd$$.id_tdtt}).lean(),$da_thanh_toan$$=$ds_da_thanh_toan$$.map($t$$=>$t$$.thanh_toan_qd||0).reduce(($a$$,
|
|
14
|
-
$b$$)=>$a$$+$b$$,0),$con_lai$$=$hd$$.tien_hd_nt-$da_thanh_toan$$;return $con_lai$$<$hd$$.thanh_toan_qd?{error:"S\u1ed1 ti\u1ec1n c\u00f2n l\u1ea1i nh\u1ecf h\u01a1n s\u1ed1 ti\u1ec1n thanh to\u00e1n",invoice:$hd$$,da_thanh_toan:$da_thanh_toan$$,con_lai:$con_lai$$,ds_da_thanh_toan:$ds_da_thanh_toan$$}:{invoice:$hd$$,da_thanh_toan:$da_thanh_toan$$,con_lai:$con_lai$$,ds_da_thanh_toan:$ds_da_thanh_toan$$}})()))).filter($hd$$=>$hd$$.error).length>0))return $next$$("S\u1ed1 ti\u1ec1n thanh to\u00e1n kh\u00f4ng \u0111\u01b0\u1ee3c l\u1edbn h\u01a1n s\u1ed1 ti\u1ec1n c\u00f2n l\u1ea1i c\u1ee7a ho\u00e1 \u0111\u01a1n");
|
|
15
|
-
valid_detail($user$$,$obj$$,function($error$$){if($error$$)return $next$$($error$$);$next$$(null,$obj$$)})};$contr_router$$.updating=async function($user$$,$data$$,$obj$$,$next$$){if($data$$.id_pc0||$obj$$.id_pc0){var $dntt$jscomp$1_id_pc0_t_tien_dn$$=$data$$.id_pc0||$obj$$.id_pc0,$ex$jscomp$1_t_tien_tt$$=await model.findOne({id_app:$obj$$.id_app,id_pc0:$dntt$jscomp$1_id_pc0_t_tien_dn$$}).lean();if($ex$jscomp$1_t_tien_tt$$&&$ex$jscomp$1_t_tien_tt$$._id.toString()!==$obj$$._id.toString())return $next$$("\u0110\u1ec1 ngh\u1ecb thanh to\u00e1n n\u00e0y \u0111\u00e3 \u0111\u01b0\u1ee3c chi");
|
|
16
|
-
$dntt$jscomp$1_id_pc0_t_tien_dn$$=await pc0.findOne({_id:$dntt$jscomp$1_id_pc0_t_tien_dn$$,id_app:$user$$.current_id_app});if(!$dntt$jscomp$1_id_pc0_t_tien_dn$$)return $next$$("\u0110\u1ec1 ngh\u1ecb thanh to\u00e1n kh\u00f4ng t\u1ed3n t\u1ea1i");$dntt$jscomp$1_id_pc0_t_tien_dn$$=($dntt$jscomp$1_id_pc0_t_tien_dn$$.details||[]).map($d$$=>$d$$.tien_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0)+($dntt$jscomp$1_id_pc0_t_tien_dn$$.tdttcos||[]).map($d$$=>$d$$.tien_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0)+($dntt$jscomp$1_id_pc0_t_tien_dn$$.vatvaos||
|
|
17
|
-
[]).map($d$$=>$d$$.t_thue_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$ex$jscomp$1_t_tien_tt$$=($data$$.details||$obj$$.details||[]).map($d$$=>$d$$.tien_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0)+($data$$.tdttcos||$obj$$.tdttcos||[]).map($d$$=>$d$$.tien_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0)+($data$$.vatvaos||$obj$$.vatvaos||[]).map($d$$=>$d$$.t_thue_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0);if($dntt$jscomp$1_id_pc0_t_tien_dn$$!==$ex$jscomp$1_t_tien_tt$$)return $next$$("T\u1ed5ng s\u1ed1 ti\u1ec1n thanh to\u00e1n ph\u1ea3i b\u1eb1ng v\u1edbi s\u1ed1 ti\u1ec1n trong \u0111\u1ec1 ngh\u1ecb thanh to\u00e1n \u0111\u00e3 \u0111\u01b0\u1ee3c duy\u1ec7t")}if($obj$$.tdttcos&&
|
|
18
|
-
$obj$$.tdttcos.length>0&&(await $obj$$.tdttcos.asyncJoinModel2($user$$.current_id_app,Tdttco,{where:{id_tdtt:"_id"},fields:["tat_toan",{tien_hd_nt:"tien_nt"}]}),(await Promise.all($obj$$.tdttcos.map($hd$$=>(async()=>{if(!global.mongoose.Types.ObjectId.isValid($hd$$.id_tdtt))return{error:"Ho\u00e1 \u0111\u01a1n kh\u00f4ng h\u1ee3p l\u1ec7",invoice:$hd$$};let $ds_da_thanh_toan$$=await Tdttco_tt.find({id_app:$obj$$.id_app,id_tdtt:$hd$$.id_tdtt,id_ct:{$ne:$obj$$._id.toString()}}).lean(),$da_thanh_toan$$=
|
|
19
|
-
$ds_da_thanh_toan$$.map($t$$=>$t$$.thanh_toan_qd||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0),$con_lai$$=$hd$$.tien_hd_nt-$da_thanh_toan$$;return $con_lai$$<$hd$$.thanh_toan_qd?{error:!0,invoice:$hd$$}:{ds_da_thanh_toan:$ds_da_thanh_toan$$,da_thanh_toan:$da_thanh_toan$$,invoice:$hd$$,con_lai:$con_lai$$}})()))).filter($hd$$=>$hd$$.error).length>0))return $next$$("S\u1ed1 ti\u1ec1n thanh to\u00e1n kh\u00f4ng \u0111\u01b0\u1ee3c l\u1edbn h\u01a1n s\u1ed1 ti\u1ec1n c\u00f2n l\u1ea1i c\u1ee7a ho\u00e1 \u0111\u01a1n");
|
|
20
|
-
valid_detail($user$$,$data$$,function($error$$){if($error$$)return $next$$($error$$);$next$$(null,$data$$,$obj$$)})};$contr_router$$.deleted=($details$jscomp$1_user$$,$obj$$,$next$$)=>{$details$jscomp$1_user$$=($obj$$.details||[]).filter($d$$=>$d$$.id_tdtt);async.mapSeries($details$jscomp$1_user$$,($detail$$,$callback$$)=>{setImmediate(()=>{Tdttco.findOneAndUpdate({_id:$detail$$.id_tdtt.toString()},{$set:{tat_toan:!1}},function($error$$,$result$$){$callback$$($error$$,$result$$)})})},$e$$=>{$next$$($e$$,
|
|
21
|
-
$obj$$)})};$contr_router$$.on("saved",function($obj$$){$obj$$.id_pc0&&pc0.updateMany({_id:$obj$$.id_pc0,id_app:$obj$$.id_app},{id_pc1:$obj$$._id.toString(),trang_thai:"6"},($e$$,$rs$$)=>{console.log("update pc0",$obj$$.id_pc0,$rs$$);pc0.findOne({_id:$obj$$.id_pc0},($e$$,$_obj$$)=>{$_obj$$&&controller.postData($_obj$$,global.controllers.PC0,$e$$=>{$e$$&&console.error($e$$)})})});$obj$$.id_pn6&&pn6.updateMany({_id:$obj$$.id_pn6,id_app:$obj$$.id_app},{id_pc1:$obj$$._id.toString(),trang_thai:"7"},($e$$,
|
|
22
|
-
$rs$$)=>{console.log("update pn6",$obj$$.id_pn6,$rs$$);pn6.findOne({_id:$obj$$.id_pn6},($e$$,$_obj$$)=>{$_obj$$&&controller.postData($_obj$$,global.controllers.PN6,$e$$=>{$e$$&&console.error($e$$)})})})});$contr_router$$.on("deleted",function($obj$$){$obj$$.id_pc0&&pc0.updateMany({_id:$obj$$.id_pc0,id_app:$obj$$.id_app},{id_pc1:""},()=>{pc0.updateMany({_id:$obj$$.id_pc0,id_app:$obj$$.id_app,trang_thai:"6"},{trang_thai:"4"},($e$$,$rs$$)=>{console.log("update pc0",$obj$$.id_pc0,$rs$$);pc0.findOne({_id:$obj$$.id_pc0,
|
|
23
|
-
id_app:$obj$$.id_app},($e$$,$_obj$$)=>{$_obj$$&&controller.postData($_obj$$,global.controllers.PC0,$e$$=>{$e$$&&console.error($e$$)})})})});$obj$$.id_pn6&&pn6.updateMany({_id:$obj$$.id_pn6,id_app:$obj$$.id_app},{id_pc1:""},()=>{pn6.updateMany({_id:$obj$$.id_pn6,id_app:$obj$$.id_app,trang_thai:"7"},{trang_thai:"5"},($e$$,$rs$$)=>{console.log("update pn6",$obj$$.id_pn6,$rs$$);pn6.findOne({_id:$obj$$.id_pn6,id_app:$obj$$.id_app},($e$$,$_obj$$)=>{$_obj$$&&controller.postData($_obj$$,global.controllers.PN6,
|
|
24
|
-
$e$$=>{$e$$&&console.error($e$$)})})})})});$contr_router$$.view=function($user$$,$items$$,$fn$$){let $id_app$$=$user$$.current_id_app;async.series({kh:function($callback$$){$items$$.filter($item$$=>$item$$.ma_kh).joinModel2($id_app$$,customer,[{where:"ma_kh",fields:["ten_kh"]}],function(){$callback$$()})},nv:function($callback$$){$items$$.filter($item$$=>$item$$.ma_nv).joinModel2($id_app$$,dmnv,[{where:"ma_nv",fields:["ten_nv"]}],function(){$callback$$()})},tk:function($callback$$){$items$$.joinModel2($id_app$$,
|
|
25
|
-
account,[{where:{tk_co:"tk"},fields:[{ten_tk_co:"ten_tk"}]}],function(){$callback$$()})},dv:function($callback$$){$items$$.filter($item$$=>$item$$.ma_dvcs).joinModel2($id_app$$,dvcs,[{where:{ma_dvcs:"_id"},fields:["ten_dvcs"]}],function(){$callback$$()})},trangthai:function($callback$$){$items$$.filter($item$$=>$item$$.trang_thai).joinModel2(null,trangthai,[{where:{trang_thai:"ma_trang_thai",ma_ct:"ma_ct"},fields:["ten_trang_thai","color"]}],function(){$callback$$()})},pc0:function($callback$$){$items$$.joinModel2($id_app$$,
|
|
26
|
-
pc0,[{where:{id_pc0:"_id"},fields:[{so_ct_pc0:"so_ct"},{ngay_ct_pc0:"ngay_ct"}]}],function(){$callback$$()})},t_tien:function($callback$$){$items$$.forEach(function($r$$){$r$$.t_tien=0;$r$$.t_tien_nt=0;$r$$.t_thue_vao=0;$r$$.t_thue_vao_nt=0;$r$$.details&&($r$$.t_tien=$r$$.details.csum("tien"),$r$$.t_tien_nt=$r$$.details.csum("tien_nt"));$r$$.tdttcos&&($r$$.t_tien+=$r$$.tdttcos.csum("tien"),$r$$.t_tien_nt+=$r$$.tdttcos.csum("tien_nt"));$r$$.vatvaos&&($r$$.t_thue_vao=$r$$.vatvaos.csum("t_thue"),$r$$.t_thue_vao_nt=
|
|
27
|
-
$r$$.vatvaos.csum("t_thue_nt"));$r$$.t_tt=$r$$.t_tien+$r$$.t_thue_vao;$r$$.t_tt_nt=$r$$.t_tien_nt+$r$$.t_thue_vao_nt});$callback$$()},details_tk:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.details||[]).joinModel($id_app$$,account,[{akey:"tk_no",bkey:"tk",fields:[{name:"ten_tk_no",value:"ten_tk"}]}],function(){$callback1$$()})},function(){$callback$$()})},details_tk_tdttco:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.tdttcos||
|
|
28
|
-
[]).joinModel($id_app$$,account,[{akey:"tk_no",bkey:"tk",fields:[{name:"ten_tk_no",value:"ten_tk"}]}],function(){$callback1$$()})},function(){$callback$$()})},details_dt_tdttco:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.tdttcos||[]).filter($item$$=>$item$$.ma_dt).joinModel($id_app$$,dmdt,[{akey:"ma_dt",bkey:"ma_dt",fields:[{name:"ten_dt",value:"ten_dt"}]}],function(){$callback1$$()})},function(){$callback$$()})},details_hd_tdttco:function($callback$$){async.mapSeries($items$$,
|
|
29
|
-
function($r$$,$callback1$$){($r$$.tdttcos||[]).filter($item$$=>$item$$.ma_hd).joinModel2($id_app$$,contract,[{wher:{ma_hd:"so_hd"},fields:["ten_hd"]}],function(){$callback1$$()})},function(){$callback$$()})},details_phi_tdttco:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.tdttcos||[]).filter($item$$=>$item$$.ma_phi).joinModel2($id_app$$,dmphi,[{where:"ma_phi",fields:["ten_phi"]}],function(){$callback1$$()})},function(){$callback$$()})},details_customer:function($callback$$){async.mapSeries($items$$,
|
|
30
|
-
function($r$$,$callback1$$){($r$$.details||[]).filter($item$$=>$item$$.ma_kh).joinModel2($id_app$$,customer,[{where:"ma_kh",fields:["ten_kh"]}],function(){$callback1$$()})},function(){$callback$$()})},details_dt:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.details||[]).filter($item$$=>$item$$.ma_dt).joinModel2($id_app$$,dmdt,[{where:"ma_dt",fields:["ten_dt"]}],function(){$callback1$$()})},function(){$callback$$()})},details_hopdong:function($callback$$){async.mapSeries($items$$,
|
|
31
|
-
function($r$$,$callback1$$){($r$$.details||[]).filter($item$$=>$item$$.ma_hd).joinModel2($id_app$$,contract,[{where:{ma_hd:"so_hd"},fields:["ten_hd"]}],function(){$callback1$$()})},function(){$callback$$()})},details_phi:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.details||[]).filter($item$$=>$item$$.ma_phi).joinModel2($id_app$$,dmphi,[{where:"ma_phi",fields:["ten_phi"]}],function(){$callback1$$()})},function(){$callback$$()})}},function(){$fn$$(null,$items$$)})}};
|
|
1
|
+
const _0x4fe0af=_0x1a5c;(function(_0x22a1d0,_0x514520){const _0x2bd16a=_0x1a5c,_0x45513d=_0x22a1d0();while(!![]){try{const _0x48c10f=parseInt(_0x2bd16a(0xef))/0x1+-parseInt(_0x2bd16a(0x1d3))/0x2+parseInt(_0x2bd16a(0x157))/0x3+parseInt(_0x2bd16a(0x1c2))/0x4+parseInt(_0x2bd16a(0xbf))/0x5*(parseInt(_0x2bd16a(0xcf))/0x6)+parseInt(_0x2bd16a(0x1c1))/0x7+-parseInt(_0x2bd16a(0x22e))/0x8;if(_0x48c10f===_0x514520)break;else _0x45513d['push'](_0x45513d['shift']());}catch(_0x24ddec){_0x45513d['push'](_0x45513d['shift']());}}}(_0x470a,0xbfb5b));const _0xee170c=(function(){const _0x37a748=_0x1a5c,_0x20649b={'PQKVV':function(_0x4f5d1b){return _0x4f5d1b();},'ODzBv':function(_0x40f4a6,_0x2165e8){return _0x40f4a6!==_0x2165e8;},'wRULT':_0x37a748(0x1ea)};let _0x10f7c9=!![];return function(_0x528391,_0x1655f4){const _0x4bff39=_0x37a748;if(_0x20649b[_0x4bff39(0xaf)](_0x20649b['wRULT'],_0x4bff39(0x1ea)))_0x20649b[_0x4bff39(0x120)](_0x34c231);else{const _0x5a7941=_0x10f7c9?function(){const _0x5d0fa7=_0x4bff39;if(_0x1655f4){const _0xd41a61=_0x1655f4[_0x5d0fa7(0x228)](_0x528391,arguments);return _0x1655f4=null,_0xd41a61;}}:function(){};return _0x10f7c9=![],_0x5a7941;}};}()),_0x25acca=_0xee170c(this,function(){const _0x1bae9b=_0x1a5c,_0x4f70db={'qOddP':_0x1bae9b(0x111)};return _0x25acca[_0x1bae9b(0x11d)]()[_0x1bae9b(0x20d)](_0x4f70db[_0x1bae9b(0x10d)])[_0x1bae9b(0x11d)]()['constructor'](_0x25acca)[_0x1bae9b(0x20d)](_0x4f70db[_0x1bae9b(0x10d)]);});function _0x470a(){const _0xaec4f=['DKXYvu0','DKrrzwC','C1DRANi','vhHxvMq','rer2Cge','DKzZv2m','DMf0DMfVCW','uNb6Axm','q2niyK8','Df90AhvLx3zHB19UDa','C09Sq2G','AKrRreC','wLzrzMq','uezpsKO','rMjvyxe','Dgr0DgnVCW','CK56rxK','zuHwA1m','DgTFy2XFy28','y3vZDg9Tzxi','CgmW','s2jqqM8','DfrRv0S','q2jdCKW','qLzwA0u','Ehberxm','zxHWB3j0CW','CLvptuC','nZmWotGZwKDUsvzQ','vhLWzxm','DxbKyxrPBMC','rKHdwNK','wuPNsgW','vgvrChy','DefYqMK','DLnyvMq','DuD4swq','DeHAyNO','shbgrey','EezWwui','AwrFCg42','r0Pfugy','qNPcu0W','yMrKAuK','EwznB3u','svnRsg4','EwflA1C','BvfmAu4','AxPoue8','zKHrv3y','AuzkufO','wNDhz24','u2X1t2G','yxf4Du8','Cw9Tq1q','v3zxyuq','AxHXwfO','BvLLCxK','CxDkD04','rxLcsK4','r0LgBfi','y3vYCMvUy3K','C05brKy','y29Ux2XHAv9UDa','yuj6AuK','zgvSzxrLza','BNrQqxm','D3vOtuC','EwDxsey','z09iAeG','swviwMW','tvrrtwy','qu5fEK4','twfKEKu','D3bmEMm','DvbzCu8','wvPhsvi','lI4VlI4VBgLICY9WB3n0lxnVy2fP','ExDwCw0','quP2qNy','ywn0tMy','zef2Dxi','q2vVsuC','rwXzy20','BLbgD1e','Df90AwvUx250','r3PMBvm','zxzRBhG','sxHpALC','yw5ruuG','t2jQzwn0swq','sgjvAMK','BwfFBNrFAgq','qNzcsg4','q3PkEw8','ywjZ','ANfyDgy','wfHbqMi','BfHdtuu','tfnAAxu','y2jdBMK','zhvmEgO','DgvUx2TO','z2L6AuO','tvjrqu8','yNLWCu0','vK5e','u0L1y0m','t0jpyui','DgvUx252','Bg9N','svD0rK8','DgLLBG','zxjYB3i','BgLUzq','vvDbD2K','BwfFCgHP','z0XSzhu','CM91Dgu','AwrFDgr0Da','BMDHEv9JDa','DxbKyxrLtwfUEq','tgHPCvO','qLD4ve4','yxvWwNC','y29UC3rYDwn0B3i','zuPjtM8','serhvKW','DgHHBMHFDg9HBL9Xza','sg56u0q','uMr0zg8','sfDuyum','A25lse0','seHXu0O','odu0ota1oergwKfmAW','mZCYmtCZnMDdEMX0sq','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCG','vuPqtLy','vw1WAhu','DgvUx2HK','DMLLDW','y29UDhjVBgXLCNm','CwjZBKG','vgHNANC','D2rxtha','EffKBKe','uuf3z1q','wg1ou20','CxvwB28','wffgtLC','s0DqEeW','C2HeuuG','nJu4mdqWrwj3uevw','BwfFDhjHBMDFDgHHAq','AM1ZsK8','B1HMtNC','vMLvzfK','shLqCu8','qxLdALm','z25HDhq','vurbsfC','u2PZB3m','AhHWy2C','sNDryuy','BgvHBG','Bfnjuwy','CxnZtgi','vK90BNe','sNvsANm','rfH6Dw4','rLPhyLm','BwfW','DgLLBL9Ozf9UDa','u+g7Ksb0AEg7Gw4Gy8oYBIbS4BQHAsbUAog7JYbOXQfUihpHU5eGDgNHU4fUihrOyw5OihrVW6fU','vvv5zK4','s3jwt3m','rKHQsvi','Df90AwvU','wLvOyLG','A0fbB1K','sg/dOsdeKCAHBIbRAmo0BMCGAog7O3aGBog7HW','C2jTyNa','z0fgB1i','DgTFzhvFDgH1zq','re1vt3i','wuvmzfe','DNDMu3u','Df90Df9UDa','Df90AhvLx250','AeviAve','q3nyAfe','y29UDhjHy3q','rxDRC3C','z2nzCu4','z1v1wgK','y3vYCMvUDf9Pzf9HCha','BwfWtgLTAxq','DxbKyxrLihbUnG','yxn5BMm','AxnwywXPza','Cw9fzfu','wNzhzM8','BwfFBNy','zfvxvu4','DNfjv3i','zgv0ywLSCW','B1LxDgC','B05my1u','zgnruve','tM9Ryvu','C2vHCMnO','vvLVCha','qvzMueG','vw9ZywO','CgfYywXSzwW','CK5jDfi','DgTFDgH1zv9UBW','u2vUuLu','qK1Mv28','A3bprgy','wwHtChm','tKPJy3O','AuTgu3e','z1bRC0m','yLzYvKi','ru5qyw8','AKjWCvO','ww52Avu','A2nSrfa','zKTgBe4','x2LK','DgTFy2XFBM8','EefLBgy','u1rVteG','BwfFAgq','Dg5oDei','AwzwBLC','yxbWBhK','sNv1qMC','AMrbDxC','AM9PBK1VzgvS','sfjtq08','q2JgSgeGy8oZihbOAEg6V3uGXjhHU4eGBMDO4BUlihrOyw5OihrVW6fU','mJy1odG1nJHjCLnUDvG','CNbwyKu','DKnYEKq','tgzpA1y','Cg9ZDa','rLj5tK0','zMLUza','CM5Mv1q','Du1VzKK','EuLmAwm','sML6z1y','zgHkqKi','CKXpq2W','tMriyMi','D0rXBuS','BwfFA2G','s2zJD1G','v1HLwNu','D0jwC1O','zLPHu08','BwfFy3q','XjdHU4eGBMDO4BUlihrOyw5OihrVW6fUig7dOhKGXjhdOYdeKCAW4BUJyYbJAgK','svjJy2K','swTvr0O','suL4Evu','yMH1zNi','zK5Yvui','weHwBue','qvLOzhe','qLLjwLm','u+g7Ksb0AEg7Gw4GDgHHBMGGDg/dOw4GA2JdTg5NimsrXRdHU6nJigZHU5TUigJgOw4GC+g7Ksb0AEg7Gw4Gy8oYBIbS4BQHAsbJ4BUNysbOB8oHimsrXQfU','ANb0wKe','DLzoy24','qvrJy20','yLrwsKC','C2zptKm','Df90AhvL','B3b0Aw9UCW','B1Por2C','AhvHz1u','whHzwgy','CMnhwuu','ENfuCuy','z09qDMS','Cenxv04','DLnVug8','zgfVBg8','Be5xrgC','BwfFBNq','ENrjELm','CwDmugW','AvjIsuK','DuLowNK','rvzWAxq','sMTvr2e','zejRqvG','D3biq0W','Df90AhvLx3zHBW','BxbXqK8','uKXfB0O','CwHnuhK','twnmCuC','r3nbrLi','uM5jC3C','qKPAvfK','BNrlzKO','zfj4qwi','C2f2zwq','sMjrCMq','wfDeBui','y3vYCMvUDf9HChbFAw5MBW','tg1LBLq','z2v0tw9KzwW','CvvXsgK','u0jwDwy','BvDet0G','u1jQz08','y3zgEwm','r0XdC2C','u29frNC','wMjtzui','veDguge','z1zxAvO','r0rfAKm','qvfcvum','vgXKuLa','q3LNvvy','BuPctLO','DuD4zwi','zg1WAgK','C0zYsMC','CxzLzNu','twLZBhi','vwHOvey','AKviqvu','ywXS','qxHzvMW','EeDkvxa','sMfYqNq','zMjfwfm','AwrFyxbW','CM91BMrcEq','rMTurvO','DwjwzfO','vg5hzhe','uemX','BwDhteW','t1nbtK8','zfv3vxi','q3rhCgG','Cg42','BvPQu2y','y25kzhq','Dgf0x3rVyw4','DxbKyxrLihbJma','BuXRA0C','tw1oq1K','zwTQwgK','EevSEw4','DMDUuee','ue42','uemW','wgnQCMy','C3Dfy1q','yw51vvO','sNPlDhe','ChvZAa','yurktLu','twHjyuW','t0r6qNy','B0nnB2G','A0zREg8','DgvUx2r0','whHSBfC','C2n3z2i','zunpALa','Bw9Uz29VC2u','Df90Da','zMLUze9Uzq','t0vys0G','CMvKDwnL','sMfKrfK','AMfVs2C','DgTFy28','EfLUDMe','ndu1qKzpD2fW','yxrZtfC','BKHZwxe','rwXRsLq','u095Bg4','EKXbCee','s2DnANm','r2DmBNO','t3P6z1C','CLv1wwG','Dg9mB3DLCKnHC2u','DvzAvKi','zef2vg8','v1rSqxG','BfHYq2m','q25Tr2C','nJqZmtrWsxbnBxC','qNHuB0O','Bgzzr0e','DhjHBMDFDgHHAq','DLnQC0y','rMnMtNO','BeziBgC','DgTFBM8','tLfXwhm','yNPXweu','zwvir1y','CgHPzxvFy2HPx3bOywLFy29FCgHPzxvFzgvFBMDOAq','BwfFzhq','DxP4DNO','q2jVugm','AM9PBK1VzgvSmG','EgT5v2m','ENHtD3e','DhLFz2LHx2HK','v1nTz0q','qNPdENu','rMfhz0G','whHxA0e','r0XNzxe','BurgsfK','qvLfvKO','v1PzuuS','DK5VDg8','vgjwBg8','r1netNa','wKHmvfi','zM9YrwfJAa','mta2nZaXnNvRquLPva','rMfJv2W','wfbfv20','BgvUz3rO','rxn2vvC','tfbVB2e','C29FAgq','v3DiyLi','EurJCfK','C29Fy3q','sNP2r08','CePwDw0','zMLUze9UzufUzfvWzgf0zq','r0jhCei','DeTkwem','CKDqyvK','vwjiDvu','Be1dEhu','DhjHBMD0AgfP','vgPHA2e','tfnzANa','BKPZB2C','txnKzMW','v1j0ve4','DhLFz2LH','q1DxCem','lI4VlI4VBgLICY91DgLSCW','tw1xqwy','y3n1Bq','y29SB3i','Cu9Kzfa','wwvVy1O','XjdHU4eGBMDO4BUlihrOyw5OihrVW6fUigTOW7rUzYb04BUtBIb04BQHAq','ANnxuNi','kcGOlISPkYKRksSK','AwPfAuy','tM9qwfa','vxzTy2i','wuflBw8','s3PZthG','y3HNyNC','DKTOD2y','BKn3u0K','Dgr0DgnVx3r0','Dhjgr0m','yxn5BMnkB2LUtw9KzwWY','Dg9tDhjPBMC','txLHq1e','CK1Uufu','ufflvLy','vw5sswK','Cg9ZDerHDge','uePAvfC','q3jvs0S','zMLSDgvY','Dgr0DgnV','wNDpDu4','yLPmBKm','yuDHExu','uwvntKe','DuTmyxu','DgLLBL9UDa','AwrFCgmW','BLnesgC','DxPnBMK','DgvUx3bOAq','AhDOBwi','u3nhDKW','ywnryKC','uNr2vKW','BvHUqMG','t1jMu1u','CNvU','DfbgC2u','EevKuw8','rejSBLa'];_0x470a=function(){return _0xaec4f;};return _0x470a();}function _0x1a5c(_0xd52962,_0x461f24){const _0x52dd79=_0x470a();return _0x1a5c=function(_0x25acca,_0xee170c){_0x25acca=_0x25acca-0x9d;let _0x470aeb=_0x52dd79[_0x25acca];if(_0x1a5c['yMSZAp']===undefined){var _0x1a5c4b=function(_0x297c56){const _0x5c3513='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x47b2e6='',_0x42f17e='',_0xe504c6=_0x47b2e6+_0x1a5c4b;for(let _0x5a2a7a=0x0,_0x26498c,_0x1ab36d,_0x387aec=0x0;_0x1ab36d=_0x297c56['charAt'](_0x387aec++);~_0x1ab36d&&(_0x26498c=_0x5a2a7a%0x4?_0x26498c*0x40+_0x1ab36d:_0x1ab36d,_0x5a2a7a++%0x4)?_0x47b2e6+=_0xe504c6['charCodeAt'](_0x387aec+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x26498c>>(-0x2*_0x5a2a7a&0x6)):_0x5a2a7a:0x0){_0x1ab36d=_0x5c3513['indexOf'](_0x1ab36d);}for(let _0x19b7fb=0x0,_0x2f8857=_0x47b2e6['length'];_0x19b7fb<_0x2f8857;_0x19b7fb++){_0x42f17e+='%'+('00'+_0x47b2e6['charCodeAt'](_0x19b7fb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x42f17e);};_0x1a5c['LXHcYU']=_0x1a5c4b,_0xd52962=arguments,_0x1a5c['yMSZAp']=!![];}const _0x109902=_0x52dd79[0x0],_0x2fd6f8=_0x25acca+_0x109902,_0x22febf=_0xd52962[_0x2fd6f8];if(!_0x22febf){const _0x552d5d=function(_0x6e722e){this['qXmPJL']=_0x6e722e,this['yqxyGu']=[0x1,0x0,0x0],this['MvzsJL']=function(){return'newState';},this['LlfZBS']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['CBbiqz']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x552d5d['prototype']['OlHkNg']=function(){const _0x2fe84e=new RegExp(this['LlfZBS']+this['CBbiqz']),_0xae6863=_0x2fe84e['test'](this['MvzsJL']['toString']())?--this['yqxyGu'][0x1]:--this['yqxyGu'][0x0];return this['XSJssf'](_0xae6863);},_0x552d5d['prototype']['XSJssf']=function(_0x34abdc){if(!Boolean(~_0x34abdc))return _0x34abdc;return this['ZtdOXH'](this['qXmPJL']);},_0x552d5d['prototype']['ZtdOXH']=function(_0x1771dd){for(let _0x2029ae=0x0,_0x115c53=this['yqxyGu']['length'];_0x2029ae<_0x115c53;_0x2029ae++){this['yqxyGu']['push'](Math['round'](Math['random']())),_0x115c53=this['yqxyGu']['length'];}return _0x1771dd(this['yqxyGu'][0x0]);},new _0x552d5d(_0x1a5c)['OlHkNg'](),_0x470aeb=_0x1a5c['LXHcYU'](_0x470aeb),_0xd52962[_0x2fd6f8]=_0x470aeb;}else _0x470aeb=_0x22febf;return _0x470aeb;},_0x1a5c(_0xd52962,_0x461f24);}_0x25acca();const PostBook=require('../../libs/post-book'),PostSocai=require(_0x4fe0af(0x188)),Vatvao=global[_0x4fe0af(0x276)]('vatvao'),Tdttco_tt=global[_0x4fe0af(0x276)](_0x4fe0af(0x11a)),Tdttco=global['getModel'](_0x4fe0af(0x126)),dmdt=global[_0x4fe0af(0x276)]('dmdt'),customer=global[_0x4fe0af(0x276)](_0x4fe0af(0x14e)),dmnv=global[_0x4fe0af(0x276)]('dmnv'),contract=global[_0x4fe0af(0x276)](_0x4fe0af(0x1fa)),dmphi=global[_0x4fe0af(0x276)](_0x4fe0af(0x287)),model=global[_0x4fe0af(0x276)]('pc1'),pc0=global[_0x4fe0af(0x276)](_0x4fe0af(0x14f)),pn6=global[_0x4fe0af(0x276)](_0x4fe0af(0x29c)),trangthai=global[_0x4fe0af(0x276)](_0x4fe0af(0x101)),controller=require(_0x4fe0af(0x1c3)),{round}=require(_0x4fe0af(0x109)),async=require(_0x4fe0af(0x201)),ma_ct=_0x4fe0af(0x297),valid_detail=function(_0x38d36e,_0x1446b1,_0xa42a3c){const _0x369d72=_0x4fe0af,_0x392599={'HDGVL':function(_0x542fc1,_0x5df840){return _0x542fc1(_0x5df840);},'fHQWv':function(_0x36ad2f){return _0x36ad2f();},'xdSLp':function(_0x282fac,_0x309834,_0x4a273f){return _0x282fac(_0x309834,_0x4a273f);},'HRSCO':'ten_phi','Mislr':function(_0x5f1184,_0x581900){return _0x5f1184<_0x581900;},'daolo':function(_0x147f96,_0x373512){return _0x147f96===_0x373512;},'ubVdZ':_0x369d72(0x1a5),'PFOJJ':function(_0x4cf6ed,_0x55a691){return _0x4cf6ed!==_0x55a691;},'NQqXs':_0x369d72(0xa5),'Zkswu':_0x369d72(0x1d7),'xYnva':_0x369d72(0x1cd),'EyBJN':_0x369d72(0x26a),'aBziI':function(_0x52960c,_0x10517f){return _0x52960c===_0x10517f;},'zgrCw':function(_0x4aa8ee,_0x65cd5d){return _0x4aa8ee!==_0x65cd5d;},'anQQH':_0x369d72(0x18d),'WZYQK':_0x369d72(0x119),'SsGvL':_0x369d72(0x17d),'VOtnq':_0x369d72(0x1dd),'atsLW':function(_0x34d690,_0x35c637){return _0x34d690==_0x35c637;},'zQSKf':'MwnNh','JwQaF':function(_0x58a61f,_0xb95ef1,_0x2170f9){return _0x58a61f(_0xb95ef1,_0x2170f9);},'AyCjS':function(_0x1e9e48,_0xea9601){return _0x1e9e48/_0xea9601;},'scCtW':function(_0x216d98,_0x268a3e,_0x2673f1){return _0x216d98(_0x268a3e,_0x2673f1);}};for(let _0x334048=0x0;_0x392599[_0x369d72(0x28a)](_0x334048,_0x1446b1[_0x369d72(0x208)]['length']);_0x334048++){const _0x2f6fa9=_0x1446b1[_0x369d72(0x208)][_0x334048];_0x2f6fa9[_0x369d72(0x1ad)]=_0x334048;if(_0x392599['daolo'](_0x1446b1['ma_nt'],_0x392599['ubVdZ'])){if(_0x392599[_0x369d72(0x148)](_0x392599[_0x369d72(0xd7)],_0x392599['Zkswu']))_0x2f6fa9[_0x369d72(0x1ab)]=_0x2f6fa9[_0x369d72(0x12c)];else{const _0x53d2e4={..._0x44b436};_0x53d2e4['tk_co']=_0x85b260[_0x369d72(0xbd)],!_0x53d2e4[_0x369d72(0x23d)]&&(_0x53d2e4[_0x369d72(0x23d)]=_0x1ddbcd['ma_kh']),_0x5510a3[_0x369d72(0xac)](_0x53d2e4);}}}if(_0x1446b1[_0x369d72(0x141)]){if(_0x392599['PFOJJ'](_0x392599[_0x369d72(0xbe)],_0x392599[_0x369d72(0x176)]))for(let _0x21373a=0x0;_0x21373a<_0x1446b1['vatvaos'][_0x369d72(0xf2)];_0x21373a++){const _0x3e5cfa=_0x1446b1['vatvaos'][_0x21373a];_0x3e5cfa['line']=_0x21373a,_0x392599[_0x369d72(0x25c)](_0x1446b1[_0x369d72(0x25e)],_0x392599[_0x369d72(0x295)])&&(_0x392599[_0x369d72(0x17b)](_0x369d72(0x1cc),_0x369d72(0x1cc))?_0x3e5cfa[_0x369d72(0x252)]=_0x3e5cfa['t_thue_nt']:(_0xb53e12[_0x369d72(0xbd)]=_0x1f88d9['tk_co'],_0x392599[_0x369d72(0x1ba)](_0x57b6a8,_0x31368b)));}else _0x392599[_0x369d72(0x16c)](_0x41269e);}if(_0x1446b1[_0x369d72(0x14a)]){if(_0x392599['zgrCw'](_0x392599[_0x369d72(0x194)],_0x392599[_0x369d72(0xe9)]))for(let _0x12b2b5=0x0;_0x12b2b5<_0x1446b1[_0x369d72(0x14a)]['length'];_0x12b2b5++){if(_0x392599[_0x369d72(0x148)](_0x392599[_0x369d72(0x132)],_0x392599[_0x369d72(0x132)]))_0x3ac0a8[_0x369d72(0xfb)]({'_id':_0x400ed8['id_tdtt']['toString']()},{'$set':{'tat_toan':![]}},function(_0x167ee6,_0x5c43ea){_0x392599['xdSLp'](_0x5b6882,_0x167ee6,_0x5c43ea);});else{const _0x1f4424=_0x1446b1[_0x369d72(0x14a)][_0x12b2b5];_0x1f4424[_0x369d72(0x1ad)]=_0x12b2b5,_0x1446b1[_0x369d72(0x25e)]===_0x392599[_0x369d72(0x295)]&&(_0x392599['zgrCw'](_0x392599[_0x369d72(0x1e2)],_0x392599['VOtnq'])?_0x392599[_0x369d72(0x16c)](_0x264c45):_0x1f4424['tien']=_0x1f4424[_0x369d72(0x12c)]),_0x392599[_0x369d72(0xc0)](_0x1f4424[_0x369d72(0x197)],_0x1446b1[_0x369d72(0x25e)])?_0x392599['zQSKf']!==_0x392599['zQSKf']?_0x176b54[_0x369d72(0x1bb)]=_0x1a68d1[_0x369d72(0x12c)]:_0x1f4424['thanh_toan_qd']=_0x1f4424[_0x369d72(0x12c)]:_0x1f4424['thanh_toan_qd']=_0x392599[_0x369d72(0x1de)](round,_0x392599[_0x369d72(0x1d9)](_0x1f4424[_0x369d72(0x1ab)],_0x1f4424['ty_gia_hd']),0x2);}}else _0x3291fe[_0x369d72(0x1ff)](_0x12d67b,0x14,function(_0x4c14b1,_0x5643be){const _0x4364ef=_0x369d72,_0x1db947={'HHqSJ':function(_0x1d7a99){return _0x1d7a99();}},_0x3617ee=_0x4c14b1['details']||[];_0x3617ee['filter'](_0x1653d6=>_0x1653d6[_0x4364ef(0x1af)])[_0x4364ef(0xde)](_0x5b8cdf,_0x28b747,[{'where':_0x4364ef(0x1af),'fields':[_0x392599[_0x4364ef(0x22c)]]}],function(){const _0x41d857=_0x4364ef;_0x1db947[_0x41d857(0x1c0)](_0x5643be);});},function(){_0x50f434();});}_0x392599['scCtW'](_0xa42a3c,null,_0x1446b1);};module[_0x4fe0af(0x155)]=function(_0x5cecde){const _0x1339c7=_0x4fe0af,_0x59ece7={'TQMEF':function(_0x5a059d,_0x1b3580){return _0x5a059d>_0x1b3580;},'HnzSD':function(_0xe6c77b){return _0xe6c77b();},'LPooa':function(_0x35f4fa,_0x3dcfa3){return _0x35f4fa===_0x3dcfa3;},'sbIzU':'VND','eeHGV':'PN6','EYinq':_0x1339c7(0x206),'oZewf':_0x1339c7(0x113),'WTlAx':function(_0x1cc4b9,_0x13ec59,_0x294bf7){return _0x1cc4b9(_0x13ec59,_0x294bf7);},'ekjXi':function(_0x207594,_0x240f56){return _0x207594(_0x240f56);},'mWDOH':_0x1339c7(0x18b),'kpODf':_0x1339c7(0x1c5),'uGxeb':_0x1339c7(0x256),'MTQMf':function(_0x1a8e01,_0xdac0){return _0x1a8e01(_0xdac0);},'XmNSm':'MTcUX','czFCd':_0x1339c7(0xa7),'smvaa':_0x1339c7(0x254),'mQLiN':function(_0x5b0414,_0x191472){return _0x5b0414!=_0x191472;},'swEcT':_0x1339c7(0x178),'lSIQf':_0x1339c7(0x14d),'YELdQ':'OVGti','KGPxL':_0x1339c7(0x207),'YeocZ':function(_0x34ba49,_0x55e129){return _0x34ba49(_0x55e129);},'GJEPf':function(_0x38eca1,_0x482f9c){return _0x38eca1===_0x482f9c;},'HpFDF':_0x1339c7(0x273),'eHVkS':function(_0x4898cd,_0x10ab33,_0x29100c){return _0x4898cd(_0x10ab33,_0x29100c);},'DDvpa':_0x1339c7(0x1e8),'XHVmA':_0x1339c7(0x130),'tHZbz':function(_0x1e18b2,_0x21036f){return _0x1e18b2!==_0x21036f;},'JizgV':_0x1339c7(0x11e),'Zflzz':_0x1339c7(0x189),'DXzun':'qZcSW','vLrUM':function(_0x53fff8,_0x12b433){return _0x53fff8(_0x12b433);},'dcQQQ':_0x1339c7(0x22d),'LmenT':function(_0x486c0b,_0x1b6424){return _0x486c0b===_0x1b6424;},'vVNcn':_0x1339c7(0x20c),'YJgHl':function(_0x27b3b7,_0x38c4ac){return _0x27b3b7(_0x38c4ac);},'PJZTW':_0x1339c7(0x10f),'gLldu':function(_0x2439e0,_0x39f260){return _0x2439e0+_0x39f260;},'wuhMG':function(_0x1a8ea0,_0x4f4201){return _0x1a8ea0+_0x4f4201;},'kclDP':function(_0x147a01,_0x3499a6){return _0x147a01+_0x3499a6;},'TxWVd':function(_0x21a3cb,_0x20f413){return _0x21a3cb!==_0x20f413;},'OFMKV':_0x1339c7(0x118),'xAelf':'Tổng\x20số\x20tiền\x20thanh\x20toán\x20phải\x20bằng\x20với\x20số\x20tiền\x20trong\x20đề\x20nghị\x20thanh\x20toán\x20đã\x20được\x20duyệt','NJccz':function(_0x32b12c,_0x19b35b){return _0x32b12c>_0x19b35b;},'FacWl':'_id','WSmgD':'tat_toan','ElYcm':_0x1339c7(0x12c),'zmUIB':function(_0x80ddd9,_0x4d705f){return _0x80ddd9(_0x4d705f);},'qbsnH':_0x1339c7(0x24c),'rUOMG':_0x1339c7(0x200),'cWhkJ':function(_0x35da23,_0x4f1ddb){return _0x35da23===_0x4f1ddb;},'cnJdt':_0x1339c7(0xca),'LfAZR':function(_0x3d3c04,_0x5c23ba,_0x223de7,_0x531b17){return _0x3d3c04(_0x5c23ba,_0x223de7,_0x531b17);},'GDEjC':_0x1339c7(0xf5),'zLApA':function(_0x5292cf){return _0x5292cf();},'HDCcj':function(_0x51078f,_0xd5eccd){return _0x51078f<_0xd5eccd;},'IpwOp':_0x1339c7(0xe6),'oXfNw':_0x1339c7(0x1ef),'rUuYh':function(_0x26bcd0,_0x5e7904){return _0x26bcd0-_0x5e7904;},'eCOjP':_0x1339c7(0x103),'AasoN':function(_0x35f1d5){return _0x35f1d5();},'ACNCZ':'qMAaW','XxWkA':_0x1339c7(0x26f),'acQbG':_0x1339c7(0x1f0),'AVfPH':function(_0x54913b,_0x351f0c){return _0x54913b+_0x351f0c;},'IWtFO':function(_0x41efe9,_0x57eda1){return _0x41efe9+_0x57eda1;},'bzqXE':function(_0x4d1e58,_0x5531de){return _0x4d1e58!==_0x5531de;},'TnGdq':_0x1339c7(0x261),'Uvmcb':_0x1339c7(0x1fc),'fybGh':_0x1339c7(0x138),'trFGC':_0x1339c7(0x210),'JzvGO':function(_0x1f30e0,_0xf0a0d7,_0x2fe44d){return _0x1f30e0(_0xf0a0d7,_0x2fe44d);},'tTkWK':function(_0x2a8ced,_0x12cb45){return _0x2a8ced(_0x12cb45);},'wdWLp':_0x1339c7(0x1c6),'GqEWg':function(_0x461867,_0x4a065d){return _0x461867===_0x4a065d;},'yfMou':'update\x20pc0','oNLcU':'ten_kh','BvBHn':'XtTJn','rLOCl':_0x1339c7(0x13c),'rtXLJ':_0x1339c7(0x27b),'LhiqZ':_0x1339c7(0x186),'jEHAU':function(_0x4542c6,_0x3ac87b){return _0x4542c6===_0x3ac87b;},'SluOh':_0x1339c7(0x246),'ThBOf':_0x1339c7(0x1fd),'mYeqy':function(_0x2092d9){return _0x2092d9();},'XxQQA':function(_0xd3e6a0,_0xbee6d0){return _0xd3e6a0!==_0xbee6d0;},'gAFoR':_0x1339c7(0x258),'HyPqO':_0x1339c7(0x23d),'TbVlo':_0x1339c7(0x1a8),'SOyln':function(_0x4f2993,_0x4ecb6a){return _0x4f2993(_0x4ecb6a);},'ZVQfd':'YZJvr','rpVbE':_0x1339c7(0x1d4),'BWxTN':_0x1339c7(0x242),'JarBt':_0x1339c7(0x1b9),'BWFVy':_0x1339c7(0x19f),'aupZw':function(_0x12ca80){return _0x12ca80();},'lfYGA':_0x1339c7(0xb2),'vFsWc':function(_0x29606a,_0x178cae){return _0x29606a===_0x178cae;},'huagU':_0x1339c7(0x12e),'BVVkE':'PTkey','ElkJT':_0x1339c7(0x217),'CsXhQ':function(_0x3573af,_0x3900c2){return _0x3573af===_0x3900c2;},'rGPaY':_0x1339c7(0x252),'JadDY':_0x1339c7(0x131),'rNItR':_0x1339c7(0x226),'NdHbb':function(_0x639ced,_0x59b57a){return _0x639ced!==_0x59b57a;},'Thgjw':_0x1339c7(0x145),'sWDua':'tien','Onday':_0x1339c7(0x21c),'XfxuZ':_0x1339c7(0x1f7),'JbQrd':'ma_phi','BJZTY':_0x1339c7(0x12a),'ReyIA':_0x1339c7(0x235),'ijEiF':_0x1339c7(0x15f),'zSMkA':_0x1339c7(0xdb),'nNVBN':'ZUDuN','DgfbF':_0x1339c7(0x259),'jdAuw':_0x1339c7(0x271),'qYBqb':_0x1339c7(0x17c)},_0x305401=new controller(_0x5cecde,model,ma_ct[_0x1339c7(0xc9)](),{'isVoucher':!![],'sort':{'ngay_ct':-0x1,'so_ct':-0x1},'keyValues':{'ma_ct':ma_ct},'onExport':function(_0x24c500,_0x1f4e16,_0x5844c6){const _0x4f4531=_0x1339c7;_0x1f4e16[_0x4f4531(0x14a)]&&_0x59ece7['TQMEF'](_0x1f4e16[_0x4f4531(0x14a)][_0x4f4531(0xf2)],0x0)&&(_0x1f4e16[_0x4f4531(0x208)]=_0x1f4e16[_0x4f4531(0x14a)]),_0x59ece7['HnzSD'](_0x5844c6);}});_0x305401[_0x1339c7(0x1b1)](),_0x305401[_0x1339c7(0x232)]=function(_0x500d38,_0x355e4e){const _0x454d02=_0x1339c7,_0x361acd={'dAvur':_0x59ece7[_0x454d02(0xd9)],'lFHlg':function(_0x2b9f8f,_0x20dd35){return _0x2b9f8f!==_0x20dd35;},'wwvic':_0x59ece7['EYinq'],'rPlzA':_0x59ece7['oZewf'],'uzMni':function(_0x3e3fa9,_0x399ad5,_0x373fb0){const _0x5849b6=_0x454d02;return _0x59ece7[_0x5849b6(0xcc)](_0x3e3fa9,_0x399ad5,_0x373fb0);},'EVpit':function(_0x51edd8,_0x472d8f){const _0x3882f2=_0x454d02;return _0x59ece7[_0x3882f2(0xa3)](_0x51edd8,_0x472d8f);},'lNWDg':_0x59ece7[_0x454d02(0x279)],'UWAwi':function(_0x2c43b4,_0x47d72e){const _0x3cbaa2=_0x454d02;return _0x59ece7[_0x3cbaa2(0xf4)](_0x2c43b4,_0x47d72e);},'WvWaD':_0x59ece7[_0x454d02(0x216)],'KfcwX':_0x59ece7[_0x454d02(0x286)],'qomCT':function(_0x57ef01,_0x5b300a,_0x29dd1c){return _0x59ece7['WTlAx'](_0x57ef01,_0x5b300a,_0x29dd1c);},'thTBs':function(_0xa3d074,_0x3361a5){const _0x2a44ed=_0x454d02;return _0x59ece7[_0x2a44ed(0x182)](_0xa3d074,_0x3361a5);},'IRcci':'tien_nt','YKssW':_0x454d02(0x15a),'HbUji':_0x59ece7[_0x454d02(0x1ce)],'oCMoh':_0x59ece7['czFCd'],'ERaaK':function(_0x4669c7){return _0x4669c7();},'JzKtq':_0x454d02(0x283),'RjBFj':_0x454d02(0x22d),'bypqM':_0x59ece7['smvaa'],'qUqHi':function(_0x2db420,_0x4883dd){return _0x2db420*_0x4883dd;},'qgLPl':function(_0x1ba598,_0x1d186f){const _0x11e2ba=_0x454d02;return _0x59ece7[_0x11e2ba(0x16a)](_0x1ba598,_0x1d186f);},'xGJUp':_0x454d02(0x21d),'WXeZu':'ZmSfc','uMofI':_0x59ece7[_0x454d02(0xa9)],'nQBPh':_0x59ece7[_0x454d02(0x1e0)],'KbPBo':_0x59ece7[_0x454d02(0x1f4)],'wpLzc':_0x59ece7[_0x454d02(0x1d1)],'bhufr':function(_0xa304e4,_0x4a32f8){return _0x59ece7['YeocZ'](_0xa304e4,_0x4a32f8);}};if(_0x59ece7[_0x454d02(0x164)](_0x59ece7[_0x454d02(0x161)],_0x59ece7[_0x454d02(0x161)])){if(!_0x355e4e)_0x355e4e=function(){};async[_0x454d02(0x211)]({'post_vatvao':function(_0x334345){const _0x4dd24b=_0x454d02,_0x2efcc7={'sfONC':_0x361acd[_0x4dd24b(0x18c)],'MmWAf':function(_0x396107,_0x4ecf87){const _0x24875a=_0x4dd24b;return _0x361acd[_0x24875a(0xd5)](_0x396107,_0x4ecf87);},'RnIsw':_0x361acd['wwvic'],'WRtTN':_0x361acd['rPlzA'],'Xcjrf':function(_0x16c677,_0x533418,_0x437a72){const _0x223b79=_0x4dd24b;return _0x361acd[_0x223b79(0x12f)](_0x16c677,_0x533418,_0x437a72);}},_0x47c0fd=new PostBook(_0x500d38,_0x500d38[_0x4dd24b(0x141)],Vatvao);_0x47c0fd['run'](function(_0x72b6d0,_0x221398){const _0x22083f=_0x4dd24b;if(_0x2efcc7[_0x22083f(0x10a)](_0x2efcc7[_0x22083f(0x26d)],_0x2efcc7[_0x22083f(0x106)]))_0x2efcc7[_0x22083f(0xa8)](_0x334345,_0x72b6d0,_0x221398);else{if(_0x1f15f7){const _0x3df175=_0x20e947['controllers'][_0x2efcc7[_0x22083f(0x251)]];_0x3b2410['postData'](_0x541942,_0x3df175,_0x31aa93=>{const _0x42dd2d=_0x22083f;if(_0x31aa93)_0x35413b[_0x42dd2d(0x1ac)](_0x31aa93);});}}});},'post_tdttco':function(_0x4899de){const _0x4857d3=_0x454d02,_0x35c4e9={'SbCjv':function(_0x2a985b,_0x24e9b6){return _0x361acd['lFHlg'](_0x2a985b,_0x24e9b6);},'qPoqd':_0x361acd['YKssW'],'vwfSu':function(_0x26cdbb,_0x58284c,_0x2e198a){return _0x361acd['qomCT'](_0x26cdbb,_0x58284c,_0x2e198a);}};if(_0x361acd[_0x4857d3(0x196)]===_0x361acd[_0x4857d3(0x196)]){const _0x4a82cb=new PostBook(_0x500d38,_0x500d38[_0x4857d3(0x14a)],Tdttco_tt,function(_0x2a45fb,_0x1a9399){const _0x3ca663=_0x4857d3;_0x2a45fb[_0x3ca663(0xbd)]=_0x500d38[_0x3ca663(0xbd)],_0x361acd[_0x3ca663(0x263)](_0x1a9399,_0x2a45fb);});_0x4a82cb['run'](function(_0x26f5b0,_0x5716a1){const _0x36f43a=_0x4857d3,_0x51e79b={'BMfWo':function(_0x3ff459,_0x40172b,_0x5a20d3){return _0x361acd['uzMni'](_0x3ff459,_0x40172b,_0x5a20d3);},'ZPgOc':function(_0x4fa150,_0x4d5f06){return _0x4fa150===_0x4d5f06;},'LSZiu':_0x361acd[_0x36f43a(0x25d)],'lXrCc':'YvcJP','WYWff':function(_0x4ddfaf,_0x316ab8){return _0x4ddfaf(_0x316ab8);},'AxYVl':function(_0x153dae,_0x2f69b3){const _0x38bd7d=_0x36f43a;return _0x361acd[_0x38bd7d(0x1ae)](_0x153dae,_0x2f69b3);},'xEdQo':_0x361acd[_0x36f43a(0x172)],'dUwUr':_0x361acd[_0x36f43a(0x23e)],'nxBCC':function(_0x281b9b,_0x1575a8,_0x4b223a){const _0x59e53b=_0x36f43a;return _0x361acd[_0x59e53b(0x171)](_0x281b9b,_0x1575a8,_0x4b223a);}};if(_0x26f5b0)return _0x361acd['thTBs'](_0x4899de,_0x26f5b0);async[_0x36f43a(0x1e6)](_0x5716a1,(_0x2f76f9,_0xfee61e)=>{const _0x16acdb=_0x36f43a,_0x31a485={'ZwGgn':function(_0x1c4421,_0x519336,_0x2d64d6){const _0xc96a39=_0x1a5c;return _0x51e79b[_0xc96a39(0x215)](_0x1c4421,_0x519336,_0x2d64d6);},'TeQpv':function(_0x445a70,_0x29f904){return _0x51e79b['WYWff'](_0x445a70,_0x29f904);}};_0x2f76f9[_0x16acdb(0x17a)]<=_0x2f76f9[_0x16acdb(0x1bb)]?_0x51e79b[_0x16acdb(0x28e)](_0x51e79b[_0x16acdb(0x139)],_0x51e79b[_0x16acdb(0x29a)])?_0x31a485[_0x16acdb(0x15c)](_0x34800e,()=>{const _0xf5755d=_0x16acdb,_0x49ca4f={'MFGeH':function(_0x31d143,_0x4b1ef4,_0x11aad0){const _0x506ed2=_0x1a5c;return _0x31a485[_0x506ed2(0x16e)](_0x31d143,_0x4b1ef4,_0x11aad0);}};_0x17f545['findOneAndUpdate']({'_id':_0x1c29e2[_0xf5755d(0x1b2)][_0xf5755d(0x11d)]()},{'$set':{'tat_toan':![]}},function(_0x401c3a,_0x437a09){_0x49ca4f['MFGeH'](_0x12beea,_0x401c3a,_0x437a09);});}):Tdttco[_0x16acdb(0xfb)]({'_id':_0x2f76f9['id_tdtt'][_0x16acdb(0x11d)]()},{'$set':{'tat_toan':!![]}},function(_0x1298cc,_0x3dc0b9){const _0x21e3cd=_0x16acdb,_0x121662={'AJayS':function(_0x13e377,_0x1d918b,_0x10574f){return _0x51e79b['BMfWo'](_0x13e377,_0x1d918b,_0x10574f);}};_0x51e79b['ZPgOc'](_0x51e79b[_0x21e3cd(0x19e)],_0x51e79b[_0x21e3cd(0xcd)])?_0x121662['AJayS'](_0x1bd851,_0xfe8636,_0x380cfe):_0xfee61e(_0x1298cc,_0x3dc0b9);}):_0x51e79b['nxBCC'](_0xfee61e,null,_0x2f76f9);},function(_0x5b2a6a,_0x5c10e8){const _0x29823f=_0x36f43a;_0x35c4e9['SbCjv'](_0x35c4e9['qPoqd'],'FHCZy')?(_0xf7f65b['log'](_0x29823f(0xa0),_0xf50de7[_0x29823f(0x12d)],_0x229450),_0x500798['findOne']({'_id':_0x5a13d4[_0x29823f(0x12d)],'id_app':_0x2691fd[_0x29823f(0x292)]},(_0x1eae7b,_0x53cec2)=>{const _0x243f34=_0x29823f;if(_0x53cec2){const _0x49fe61=_0x10c481[_0x243f34(0x1c8)][_0x243f34(0xa7)];_0x22c647[_0x243f34(0x122)](_0x53cec2,_0x49fe61,_0x28048b=>{const _0x248ed9=_0x243f34;if(_0x28048b)_0x546522[_0x248ed9(0x1ac)](_0x28048b);});}})):_0x35c4e9[_0x29823f(0x1f5)](_0x4899de,_0x5b2a6a,_0x5c10e8);});});}else _0x486e5c[_0x4857d3(0x1ec)]=_0x17382f['details'][_0x4857d3(0x10b)](_0x4857d3(0x1ab)),_0x23d3d0[_0x4857d3(0x190)]=_0x3cb7ba[_0x4857d3(0x208)]['csum'](_0x361acd[_0x4857d3(0x244)]);},'post_socai':function(_0x49ca66){const _0x27e22c=_0x454d02,_0x3c3a6a={'qssLb':function(_0x15fdc4){return _0x361acd['ERaaK'](_0x15fdc4);},'zxSwq':_0x361acd[_0x27e22c(0xab)],'wBVsZ':_0x361acd['RjBFj'],'kAAoY':_0x361acd[_0x27e22c(0x1a4)],'sCkGN':function(_0x4d40ae,_0x3c5341){const _0x36d777=_0x27e22c;return _0x361acd[_0x36d777(0x277)](_0x4d40ae,_0x3c5341);},'knKHM':function(_0x19e731,_0x596675){const _0x2087e2=_0x27e22c;return _0x361acd[_0x2087e2(0x277)](_0x19e731,_0x596675);},'yILic':function(_0x58cdfb,_0x7f1f12){const _0x297fdf=_0x27e22c;return _0x361acd[_0x297fdf(0x260)](_0x58cdfb,_0x7f1f12);},'dhJBB':_0x361acd[_0x27e22c(0x28f)],'lMCxu':function(_0x5c4a77,_0x11509a){const _0x378aed=_0x27e22c;return _0x361acd[_0x378aed(0x1ae)](_0x5c4a77,_0x11509a);},'GIFlR':_0x361acd[_0x27e22c(0x23f)],'Rpzis':_0x361acd[_0x27e22c(0x236)],'JuRjs':_0x27e22c(0x222),'mpqBO':_0x361acd['nQBPh']};if(_0x361acd[_0x27e22c(0x150)]!==_0x361acd[_0x27e22c(0x185)])_0x361acd[_0x27e22c(0x247)](setImmediate,async()=>{const _0x5e64d5=_0x27e22c,_0x5f5d52={'gVWiZ':_0x3c3a6a[_0x5e64d5(0xe0)],'JkUGa':_0x3c3a6a[_0x5e64d5(0x240)],'izNPO':function(_0x170271,_0x15d2f5){return _0x170271===_0x15d2f5;},'fbEXS':_0x3c3a6a[_0x5e64d5(0x1ee)],'CygUV':function(_0x53150c,_0x4fbc6c){return _0x3c3a6a['sCkGN'](_0x53150c,_0x4fbc6c);},'SIucC':function(_0x30dd53,_0x3cbdf1){const _0x356e4f=_0x5e64d5;return _0x3c3a6a[_0x356e4f(0x1bf)](_0x30dd53,_0x3cbdf1);},'FaGgH':function(_0x484328,_0x54b543){const _0x3fc247=_0x5e64d5;return _0x3c3a6a[_0x3fc247(0x237)](_0x484328,_0x54b543);},'ISkHn':'vSoPo','nPFwQ':_0x5e64d5(0x1a5),'ZvGfo':_0x5e64d5(0x165),'jfLZY':_0x3c3a6a[_0x5e64d5(0x239)],'xFpYB':function(_0xfe32ac,_0x5dd2aa,_0x36638d){return _0xfe32ac(_0x5dd2aa,_0x36638d);}};if(_0x3c3a6a[_0x5e64d5(0x100)](_0x3c3a6a[_0x5e64d5(0x177)],_0x3c3a6a[_0x5e64d5(0x177)])){const _0x395fbe=[];_0x500d38['vatvaos']['forEach'](function(_0x2d9c18){const _0x1d95dd=_0x5e64d5,_0x24b715={..._0x2d9c18};_0x24b715[_0x1d95dd(0xd6)]=_0x24b715['tk_thue_no'],_0x24b715[_0x1d95dd(0xbd)]=_0x24b715[_0x1d95dd(0x1f2)],_0x24b715[_0x1d95dd(0x12c)]=_0x24b715[_0x1d95dd(0x1f7)],_0x24b715['tien']=_0x24b715[_0x1d95dd(0x252)],_0x395fbe[_0x1d95dd(0xac)](_0x24b715);}),_0x500d38[_0x5e64d5(0x208)][_0x5e64d5(0xee)](function(_0x177032){const _0x2647a5=_0x5e64d5,_0x463bcb={..._0x177032};_0x463bcb['tk_co']=_0x500d38[_0x2647a5(0xbd)],!_0x463bcb['ma_kh']&&(_0x463bcb[_0x2647a5(0x23d)]=_0x500d38['ma_kh']),_0x395fbe[_0x2647a5(0xac)](_0x463bcb);}),_0x500d38[_0x5e64d5(0x14a)][_0x5e64d5(0xee)](function(_0x326295){const _0x3f44c4=_0x5e64d5,_0x4bb4d6={..._0x326295};_0x4bb4d6[_0x3f44c4(0xbd)]=_0x500d38[_0x3f44c4(0xbd)],!_0x4bb4d6[_0x3f44c4(0x23d)]&&(_0x5f5d52[_0x3f44c4(0x280)]===_0x3f44c4(0x20e)?_0x5834d8[_0x3f44c4(0x23d)]=_0x20bf8f[_0x3f44c4(0x23d)]:_0x4bb4d6[_0x3f44c4(0x23d)]=_0x500d38[_0x3f44c4(0x23d)]),_0x395fbe['push'](_0x4bb4d6);});const _0x14a9ec=_0x500d38[_0x5e64d5(0x14a)][_0x5e64d5(0x125)](_0x5f08a0=>_0x5f08a0[_0x5e64d5(0xe1)]!=_0x500d38[_0x5e64d5(0x107)]);await _0x14a9ec[_0x5e64d5(0x11c)](_0x500d38[_0x5e64d5(0x292)],_0x3c3a6a[_0x5e64d5(0x142)],{'where':{'ma_nt_hd':_0x5e64d5(0x25e)},'fields':[_0x3c3a6a[_0x5e64d5(0x1e3)],_0x3c3a6a[_0x5e64d5(0x268)]]}),_0x14a9ec[_0x5e64d5(0xee)](_0x5d8e8e=>{const _0x3eef14=_0x5e64d5;if(_0x5f5d52[_0x3eef14(0x16b)](_0x5f5d52[_0x3eef14(0x291)],_0x5f5d52[_0x3eef14(0x291)])){let _0x31cfea=Math[_0x3eef14(0x293)](_0x5f5d52[_0x3eef14(0x284)](_0x500d38[_0x3eef14(0x107)],_0x5d8e8e['tien_nt'])-_0x5f5d52[_0x3eef14(0x1a6)](_0x5d8e8e[_0x3eef14(0xe1)],_0x5d8e8e['thanh_toan_qd']),0x0);if(_0x5f5d52[_0x3eef14(0xe4)](_0x31cfea,0x0)){if(_0x5f5d52['izNPO'](_0x5f5d52[_0x3eef14(0x168)],_0x3eef14(0x25b))){const _0x59231e={..._0x5d8e8e};_0x59231e['ma_nt']=_0x5f5d52[_0x3eef14(0x18f)],_0x59231e[_0x3eef14(0x107)]=0x1,_0x59231e[_0x3eef14(0x12c)]=_0x59231e['tien']=Math[_0x3eef14(0x19a)](_0x31cfea),_0x31cfea<0x0?_0x59231e[_0x3eef14(0xbd)]=_0x5d8e8e[_0x3eef14(0x14d)]:_0x5f5d52[_0x3eef14(0x204)]!==_0x5f5d52['jfLZY']?(_0x59231e[_0x3eef14(0xbd)]=_0x5d8e8e[_0x3eef14(0xd6)],_0x59231e['tk_no']=_0x5d8e8e[_0x3eef14(0x222)]):_0x478f88(_0x4a023c,_0x505383),!_0x59231e[_0x3eef14(0x23d)]&&(_0x59231e[_0x3eef14(0x23d)]=_0x500d38[_0x3eef14(0x23d)]),_0x395fbe[_0x3eef14(0xac)](_0x59231e);}else _0x1ea0db[_0x3eef14(0x208)]=_0x1acb9b[_0x3eef14(0x14a)];}}else return _0x3aa6d3(_0x5f5d52[_0x3eef14(0x264)]);});const _0x4e6f45=new PostSocai(_0x500d38,_0x395fbe);_0x4e6f45[_0x5e64d5(0x137)](function(_0x17e8fb,_0x4e330c){const _0x3cccd7=_0x5e64d5;_0x5f5d52[_0x3cccd7(0x162)](_0x49ca66,_0x17e8fb,_0x4e330c);});}else _0x3c3a6a[_0x5e64d5(0x1e1)](_0x1c56ad);});else{if(_0x85967b){const _0x1c19e4=_0x9d660e[_0x27e22c(0x1c8)][_0x361acd[_0x27e22c(0xb0)]];_0x3f6fe6['postData'](_0x54fd55,_0x1c19e4,_0x20d9f4=>{const _0x542dba=_0x27e22c;if(_0x20d9f4)_0x4190ac[_0x542dba(0x1ac)](_0x20d9f4);});}}}},function(_0x4c2ff2,_0x48afde){_0x361acd['uzMni'](_0x355e4e,_0x4c2ff2,_0x48afde);});}else{const _0xa87c3=_0x169fb3[_0x454d02(0x208)][_0x490d6b];_0xa87c3['line']=_0x1b8687,_0x59ece7[_0x454d02(0xf4)](_0x5c3e76['ma_nt'],_0x59ece7['sbIzU'])&&(_0xa87c3[_0x454d02(0x1ab)]=_0xa87c3[_0x454d02(0x12c)]);}},_0x305401['creating']=async function(_0xbb9c6a,_0x5ab855,_0x52de89){const _0xf13c0=_0x1339c7,_0x3f1a7b={'jmsJO':_0xf13c0(0x1ef),'MdCtM':function(_0x467ad1,_0x133d30){return _0x467ad1-_0x133d30;},'sFrJg':function(_0xf3c694,_0x113b6e){return _0xf3c694<_0x113b6e;},'zzpTT':_0x59ece7[_0xf13c0(0x13f)],'CcHbO':_0x59ece7[_0xf13c0(0x249)],'smJzC':function(_0x25a620,_0x3f28ad){return _0x59ece7['tHZbz'](_0x25a620,_0x3f28ad);},'TQygP':_0x59ece7[_0xf13c0(0x238)],'EsvUW':_0xf13c0(0x199),'dBkAX':function(_0x44259d){const _0x13377f=_0xf13c0;return _0x59ece7[_0x13377f(0x1bc)](_0x44259d);},'BzCzu':'ten_hd'};if(_0x59ece7['Zflzz']!==_0x59ece7[_0xf13c0(0x1e4)]){if(_0xbb9c6a[_0xf13c0(0x274)][_0xf13c0(0x253)][_0xf13c0(0xda)]&&!_0x5ab855[_0xf13c0(0x12d)]&&!_0x5ab855[_0xf13c0(0x163)])return _0x59ece7[_0xf13c0(0x13b)](_0x52de89,_0x59ece7[_0xf13c0(0x20b)]);if(!_0x5ab855[_0xf13c0(0x208)])_0x5ab855[_0xf13c0(0x208)]=[];if(_0x5ab855[_0xf13c0(0x12d)]&&global['mongoose'][_0xf13c0(0x158)]['ObjectId'][_0xf13c0(0x202)](_0x5ab855[_0xf13c0(0x12d)])){if(_0x59ece7[_0xf13c0(0x275)]('NokaU',_0x59ece7[_0xf13c0(0x24e)])){let _0x510791=await model[_0xf13c0(0xb8)]({'id_app':_0xbb9c6a[_0xf13c0(0x1fe)],'id_pc0':_0x5ab855[_0xf13c0(0x12d)]});if(_0x510791)return _0x59ece7[_0xf13c0(0x15b)](_0x52de89,_0xf13c0(0x243));let _0x42f81b=await pc0[_0xf13c0(0xb8)]({'_id':_0x5ab855['id_pc0'],'id_app':_0xbb9c6a[_0xf13c0(0x1fe)]});if(!_0x42f81b)return _0x59ece7[_0xf13c0(0x182)](_0x52de89,_0x59ece7[_0xf13c0(0x123)]);let _0x4f70ec=_0x59ece7[_0xf13c0(0x1b0)](_0x59ece7['gLldu']((_0x42f81b[_0xf13c0(0x208)]||[])[_0xf13c0(0x1e6)](_0x38ad80=>_0x38ad80[_0xf13c0(0x12c)]||0x0)[_0xf13c0(0xba)]((_0x3026f9,_0x4d20de)=>_0x3026f9+_0x4d20de,0x0),(_0x42f81b[_0xf13c0(0x14a)]||[])[_0xf13c0(0x1e6)](_0x35e04d=>_0x35e04d['tien_nt']||0x0)[_0xf13c0(0xba)]((_0x48d4fd,_0x100316)=>_0x48d4fd+_0x100316,0x0)),(_0x42f81b[_0xf13c0(0x141)]||[])['map'](_0x892368=>_0x892368['t_thue_nt']||0x0)[_0xf13c0(0xba)]((_0x2c9325,_0x47b474)=>_0x2c9325+_0x47b474,0x0)),_0x16e0c9=_0x59ece7['wuhMG'](_0x59ece7[_0xf13c0(0x21f)]((_0x5ab855['details']||[])[_0xf13c0(0x1e6)](_0xf705b4=>_0xf705b4[_0xf13c0(0x12c)]||0x0)[_0xf13c0(0xba)]((_0x276919,_0x3d74b9)=>_0x276919+_0x3d74b9,0x0),(_0x5ab855[_0xf13c0(0x14a)]||[])[_0xf13c0(0x1e6)](_0x2dc483=>_0x2dc483['tien_nt']||0x0)[_0xf13c0(0xba)]((_0x336230,_0x2e1c31)=>_0x336230+_0x2e1c31,0x0)),(_0x5ab855[_0xf13c0(0x141)]||[])[_0xf13c0(0x1e6)](_0x22067b=>_0x22067b[_0xf13c0(0x1f7)]||0x0)['reduce']((_0x22f76e,_0x458378)=>_0x22f76e+_0x458378,0x0));if(_0x59ece7[_0xf13c0(0x13e)](_0x4f70ec,_0x16e0c9)){if(_0x59ece7['OFMKV']!==_0xf13c0(0x118)){if(_0x17a77d)_0x45b135[_0xf13c0(0x1ac)](_0x3e1307);}else return _0x59ece7['YeocZ'](_0x52de89,_0x59ece7[_0xf13c0(0x223)]);}}else _0x3525c9[_0xf13c0(0x14a)]&&_0xd5319b[_0xf13c0(0x14a)]['length']>0x0&&(_0x2e21d3[_0xf13c0(0x208)]=_0x2815ab[_0xf13c0(0x14a)]),_0x59ece7['HnzSD'](_0x24b04f);}if(_0x5ab855[_0xf13c0(0x14a)]&&_0x59ece7['NJccz'](_0x5ab855[_0xf13c0(0x14a)][_0xf13c0(0xf2)],0x0)){await _0x5ab855[_0xf13c0(0x14a)]['asyncJoinModel2'](_0xbb9c6a[_0xf13c0(0x1fe)],Tdttco,{'where':{'id_tdtt':_0x59ece7[_0xf13c0(0xf0)]},'fields':[_0x59ece7[_0xf13c0(0xe2)],{'tien_hd_nt':_0x59ece7[_0xf13c0(0x18e)]}]});let _0x340a21=await Promise[_0xf13c0(0x28d)](_0x5ab855[_0xf13c0(0x14a)]['map'](_0x4a238e=>{const _0x45a973=_0xf13c0,_0x41968d={'HWTaC':_0x3f1a7b[_0x45a973(0x1d5)],'mXnBh':function(_0x56c7be,_0x53361f){return _0x3f1a7b['MdCtM'](_0x56c7be,_0x53361f);},'OBOaB':function(_0x33b4f7,_0x3c4423){const _0x6b7e3b=_0x45a973;return _0x3f1a7b[_0x6b7e3b(0x288)](_0x33b4f7,_0x3c4423);},'rPJxN':_0x3f1a7b['zzpTT'],'RLEoJ':_0x3f1a7b[_0x45a973(0x143)]};if(_0x3f1a7b['smJzC'](_0x3f1a7b['TQygP'],_0x3f1a7b[_0x45a973(0xf3)]))return((async()=>{const _0x497b8b=_0x45a973;if(!global['mongoose'][_0x497b8b(0x158)]['ObjectId']['isValid'](_0x4a238e[_0x497b8b(0x1b2)]))return{'error':_0x41968d[_0x497b8b(0x1be)],'invoice':_0x4a238e};let _0x3939e7=await Tdttco_tt[_0x497b8b(0x234)]({'id_app':_0x5ab855[_0x497b8b(0x292)],'id_tdtt':_0x4a238e[_0x497b8b(0x1b2)]})[_0x497b8b(0x1df)](),_0x1a6302=_0x3939e7['map'](_0x4f6632=>_0x4f6632['thanh_toan_qd']||0x0)[_0x497b8b(0xba)]((_0x4aaf22,_0x5e0a8c)=>_0x4aaf22+_0x5e0a8c,0x0),_0x3a9b25=_0x41968d[_0x497b8b(0x135)](_0x4a238e[_0x497b8b(0x1e7)],_0x1a6302);if(_0x41968d[_0x497b8b(0x1a7)](_0x3a9b25,_0x4a238e['thanh_toan_qd']))return{'error':_0x41968d['rPJxN'],'invoice':_0x4a238e,'da_thanh_toan':_0x1a6302,'con_lai':_0x3a9b25,'ds_da_thanh_toan':_0x3939e7};return{'invoice':_0x4a238e,'da_thanh_toan':_0x1a6302,'con_lai':_0x3a9b25,'ds_da_thanh_toan':_0x3939e7};})());else{const _0x49b929={'XXABb':function(_0x6a7b6c){return _0x6a7b6c();}},_0x485566=_0x12bc02['details']||[];_0x485566[_0x45a973(0x125)](_0x3f72ca=>_0x3f72ca[_0x45a973(0x1af)])[_0x45a973(0xde)](_0x3e56d8,_0x5cb985,[{'where':_0x45a973(0x1af),'fields':[_0x41968d[_0x45a973(0x269)]]}],function(){const _0xe55a94=_0x45a973;_0x49b929[_0xe55a94(0x19c)](_0xe44fab);});}})),_0x48138e=_0x340a21[_0xf13c0(0x125)](_0x292a19=>_0x292a19[_0xf13c0(0x1ac)]);if(_0x48138e[_0xf13c0(0xf2)]>0x0)return _0x59ece7['zmUIB'](_0x52de89,_0x59ece7[_0xf13c0(0x1c9)]);}valid_detail(_0xbb9c6a,_0x5ab855,function(_0x22add3){const _0x164817=_0xf13c0;if(_0x22add3)return _0x59ece7[_0x164817(0x10e)](_0x52de89,_0x22add3);_0x59ece7[_0x164817(0x14c)](_0x52de89,null,_0x5ab855);});}else{const _0x42adb7=_0x504e71[_0xf13c0(0x14a)]||[];_0x42adb7[_0xf13c0(0x125)](_0x26ded9=>_0x26ded9['ma_hd'])[_0xf13c0(0xde)](_0xae5f04,_0x29731c,[{'wher':{'ma_hd':_0xf13c0(0xf5)},'fields':[_0x3f1a7b[_0xf13c0(0xe3)]]}],function(){const _0x3325b8=_0xf13c0;_0x3f1a7b[_0x3325b8(0x265)](_0x2a133c);});}},_0x305401[_0x1339c7(0x159)]=async function(_0x1614e1,_0x5e1a5f,_0x914ec0,_0xd4d12c){const _0x41f932=_0x1339c7,_0x188e42={'kFkxo':function(_0x3bb8c1){return _0x3bb8c1();},'rcGYE':_0x59ece7['eeHGV'],'aGayu':function(_0x5be487){const _0x4eebee=_0x1a5c;return _0x59ece7[_0x4eebee(0xc4)](_0x5be487);},'UUyfN':function(_0x517f88,_0x23bb1a){return _0x59ece7['HDCcj'](_0x517f88,_0x23bb1a);},'vSXVd':_0x59ece7['sbIzU'],'dAvTo':function(_0x5215ce,_0x1ec3c3){const _0x3500fc=_0x1a5c;return _0x59ece7[_0x3500fc(0xf4)](_0x5215ce,_0x1ec3c3);},'sNAFF':_0x59ece7['IpwOp'],'qvefu':_0x59ece7[_0x41f932(0x1d6)],'BxToJ':function(_0x22cd97,_0x4ffeda){const _0x27fc81=_0x41f932;return _0x59ece7[_0x27fc81(0xc8)](_0x22cd97,_0x4ffeda);},'vJCvT':_0x59ece7[_0x41f932(0xb5)],'vSjsF':'VOqMW','OEXKH':function(_0x4d7d0c){return _0x59ece7['AasoN'](_0x4d7d0c);}};if(_0x59ece7['ACNCZ']!==_0x59ece7[_0x41f932(0xe5)]){if(_0x5e1a5f[_0x41f932(0x12d)]||_0x914ec0[_0x41f932(0x12d)]){if(_0x41f932(0x1f0)===_0x59ece7[_0x41f932(0x133)]){let _0x65bf9b=_0x5e1a5f[_0x41f932(0x12d)]||_0x914ec0[_0x41f932(0x12d)],_0x324f2d=await model[_0x41f932(0xb8)]({'id_app':_0x914ec0['id_app'],'id_pc0':_0x65bf9b})[_0x41f932(0x1df)]();if(_0x324f2d&&_0x324f2d[_0x41f932(0x221)][_0x41f932(0x11d)]()!==_0x914ec0[_0x41f932(0x221)]['toString']())return _0x59ece7[_0x41f932(0x10e)](_0xd4d12c,_0x41f932(0x243));let _0x3c4d3a=await pc0[_0x41f932(0xb8)]({'_id':_0x65bf9b,'id_app':_0x1614e1[_0x41f932(0x1fe)]});if(!_0x3c4d3a)return _0x59ece7[_0x41f932(0x10e)](_0xd4d12c,_0x59ece7['PJZTW']);let _0x5ac143=_0x59ece7[_0x41f932(0x20f)](_0x59ece7[_0x41f932(0x17e)]((_0x3c4d3a[_0x41f932(0x208)]||[])[_0x41f932(0x1e6)](_0x30c953=>_0x30c953[_0x41f932(0x12c)]||0x0)[_0x41f932(0xba)]((_0x5cd5d5,_0x32c553)=>_0x5cd5d5+_0x32c553,0x0),(_0x3c4d3a['tdttcos']||[])[_0x41f932(0x1e6)](_0x13bd86=>_0x13bd86[_0x41f932(0x12c)]||0x0)[_0x41f932(0xba)]((_0x3bdb8e,_0x241258)=>_0x3bdb8e+_0x241258,0x0)),(_0x3c4d3a[_0x41f932(0x141)]||[])[_0x41f932(0x1e6)](_0x4a052c=>_0x4a052c[_0x41f932(0x1f7)]||0x0)[_0x41f932(0xba)]((_0x544016,_0x4ecb36)=>_0x544016+_0x4ecb36,0x0)),_0x56ee08=_0x59ece7[_0x41f932(0x1aa)]((_0x5e1a5f[_0x41f932(0x208)]||_0x914ec0['details']||[])['map'](_0x4a6971=>_0x4a6971[_0x41f932(0x12c)]||0x0)[_0x41f932(0xba)]((_0x5a61a7,_0xa8116)=>_0x5a61a7+_0xa8116,0x0)+(_0x5e1a5f['tdttcos']||_0x914ec0[_0x41f932(0x14a)]||[])[_0x41f932(0x1e6)](_0x1a0d3b=>_0x1a0d3b[_0x41f932(0x12c)]||0x0)['reduce']((_0x31687b,_0x466291)=>_0x31687b+_0x466291,0x0),(_0x5e1a5f[_0x41f932(0x141)]||_0x914ec0[_0x41f932(0x141)]||[])[_0x41f932(0x1e6)](_0x512b23=>_0x512b23['t_thue_nt']||0x0)[_0x41f932(0xba)]((_0x487014,_0x4c9539)=>_0x487014+_0x4c9539,0x0));if(_0x59ece7['bzqXE'](_0x5ac143,_0x56ee08)){if(_0x59ece7['cWhkJ'](_0x59ece7[_0x41f932(0x296)],_0x59ece7[_0x41f932(0x296)]))return _0x59ece7['ekjXi'](_0xd4d12c,_0x59ece7[_0x41f932(0x223)]);else _0x188e42[_0x41f932(0xb1)](_0x19e3fd);}}else _0x490706[_0x41f932(0x1a9)](_0x59ece7[_0x41f932(0x156)],_0x11ac21[_0x41f932(0x163)],_0x316ab6),_0x279bcf['findOne']({'_id':_0x3ae6c7[_0x41f932(0x163)]},(_0x35c5e7,_0x53a0ec)=>{const _0x1033a2=_0x41f932;if(_0x53a0ec){const _0x326eb9=_0x15fcb8[_0x1033a2(0x1c8)][_0x188e42[_0x1033a2(0x257)]];_0x45a6c2[_0x1033a2(0x122)](_0x53a0ec,_0x326eb9,_0x44a7f6=>{if(_0x44a7f6)_0x1f2fc3['error'](_0x44a7f6);});}});}if(_0x914ec0[_0x41f932(0x14a)]&&_0x59ece7[_0x41f932(0x218)](_0x914ec0[_0x41f932(0x14a)]['length'],0x0)){if(_0x59ece7[_0x41f932(0xd8)](_0x59ece7[_0x41f932(0x114)],_0x59ece7[_0x41f932(0x114)])){if(_0x5b3c58){const _0x4c9687=_0xe76260['controllers'][_0x59ece7['czFCd']];_0x47f871[_0x41f932(0x122)](_0x510d75,_0x4c9687,_0x102c66=>{if(_0x102c66)_0x382fe2['error'](_0x102c66);});}}else{await _0x914ec0[_0x41f932(0x14a)][_0x41f932(0x11c)](_0x1614e1['current_id_app'],Tdttco,{'where':{'id_tdtt':_0x59ece7['FacWl']},'fields':[_0x41f932(0x9f),{'tien_hd_nt':_0x59ece7[_0x41f932(0x18e)]}]});let _0x5a940a=await Promise[_0x41f932(0x28d)](_0x914ec0['tdttcos']['map'](_0x715045=>{const _0x306116=_0x41f932,_0x195d41={'KgMjs':function(_0x1d1aab,_0x27c251){const _0x1199d6=_0x1a5c;return _0x188e42[_0x1199d6(0x1e9)](_0x1d1aab,_0x27c251);},'FRyNM':_0x188e42[_0x306116(0x15e)],'DMUOr':function(_0x1b82cb,_0x40bf3f){const _0x43fad2=_0x306116;return _0x188e42[_0x43fad2(0xcb)](_0x1b82cb,_0x40bf3f);},'VxZsn':_0x188e42[_0x306116(0x179)],'zeyfS':_0x188e42[_0x306116(0x289)],'ANEzN':function(_0x60e98f,_0x1f3d7f){const _0x1805bb=_0x306116;return _0x188e42[_0x1805bb(0xd0)](_0x60e98f,_0x1f3d7f);}};if(_0x188e42['vJCvT']===_0x188e42[_0x306116(0xd3)])_0x188e42[_0x306116(0x129)](_0x566be7);else return((async()=>{const _0x16a209=_0x306116;if(_0x195d41[_0x16a209(0x1f3)](_0x16a209(0xe6),_0x195d41['VxZsn'])){if(!global[_0x16a209(0xb6)][_0x16a209(0x158)][_0x16a209(0x195)][_0x16a209(0x202)](_0x715045[_0x16a209(0x1b2)]))return{'error':_0x195d41['zeyfS'],'invoice':_0x715045};let _0xc4ab58=await Tdttco_tt[_0x16a209(0x234)]({'id_app':_0x914ec0[_0x16a209(0x292)],'id_tdtt':_0x715045[_0x16a209(0x1b2)],'id_ct':{'$ne':_0x914ec0[_0x16a209(0x221)]['toString']()}})[_0x16a209(0x1df)](),_0x66ea20=_0xc4ab58[_0x16a209(0x1e6)](_0x5677ee=>_0x5677ee[_0x16a209(0x1bb)]||0x0)['reduce']((_0x5afd46,_0x481fe8)=>_0x5afd46+_0x481fe8,0x0),_0x1ba89a=_0x195d41[_0x16a209(0x183)](_0x715045['tien_hd_nt'],_0x66ea20);if(_0x195d41[_0x16a209(0xc5)](_0x1ba89a,_0x715045['thanh_toan_qd']))return{'error':!![],'invoice':_0x715045};return{'ds_da_thanh_toan':_0xc4ab58,'da_thanh_toan':_0x66ea20,'invoice':_0x715045,'con_lai':_0x1ba89a};}else for(let _0x63b818=0x0;_0x195d41['KgMjs'](_0x63b818,_0x1dfa90[_0x16a209(0x141)][_0x16a209(0xf2)]);_0x63b818++){const _0x185106=_0x1cd2f2[_0x16a209(0x141)][_0x63b818];_0x185106[_0x16a209(0x1ad)]=_0x63b818,_0x44ab47[_0x16a209(0x25e)]===_0x195d41[_0x16a209(0x233)]&&(_0x185106['t_thue']=_0x185106['t_thue_nt']);}})());})),_0x48368e=_0x5a940a[_0x41f932(0x125)](_0x41734e=>_0x41734e[_0x41f932(0x1ac)]);if(_0x59ece7['NJccz'](_0x48368e[_0x41f932(0xf2)],0x0)){if(_0x59ece7['fybGh']===_0x59ece7[_0x41f932(0x11b)])_0x38b837[_0x41f932(0xbd)]=_0x18b8a0[_0x41f932(0x14d)];else return _0x59ece7[_0x41f932(0x10e)](_0xd4d12c,_0x41f932(0x24c));}}}_0x59ece7['LfAZR'](valid_detail,_0x1614e1,_0x5e1a5f,function(_0x24a13d){const _0x593f85=_0x41f932;if(_0x59ece7['cWhkJ'](_0x59ece7[_0x593f85(0x9e)],_0x59ece7[_0x593f85(0x9e)])){if(_0x24a13d)return _0xd4d12c(_0x24a13d);_0x59ece7['LfAZR'](_0xd4d12c,null,_0x5e1a5f,_0x914ec0);}else _0x188e42[_0x593f85(0x129)](_0x4d7d8e);});}else{const _0x473d73=_0x49ddd9['details']||[];_0x473d73[_0x41f932(0x125)](_0x7ba45b=>_0x7ba45b[_0x41f932(0x225)])[_0x41f932(0xde)](_0x52ca94,_0x397004,[{'where':{'ma_hd':_0x59ece7['GDEjC']},'fields':[_0x41f932(0x1c6)]}],function(){const _0x18db32=_0x41f932;_0x188e42[_0x18db32(0xb9)](_0x1bac13);});}},_0x305401[_0x1339c7(0x17c)]=(_0x5eca63,_0xd8d00f,_0x9c5f64)=>{const _0x457f40=_0x1339c7,_0x26dad5={'HcZpR':function(_0x1a8659,_0x513678,_0xd0250c){const _0x513d2c=_0x1a5c;return _0x59ece7[_0x513d2c(0xf9)](_0x1a8659,_0x513678,_0xd0250c);},'SBVuf':_0x457f40(0x169),'mLkkG':function(_0x32a25e,_0x5b7adb){const _0x5047bb=_0x457f40;return _0x59ece7[_0x5047bb(0x151)](_0x32a25e,_0x5b7adb);},'SGekL':_0x59ece7[_0x457f40(0x281)],'iKFSq':_0x59ece7['wdWLp']};let _0xc3208e=(_0xd8d00f[_0x457f40(0x208)]||[])[_0x457f40(0x125)](_0xe37299=>_0xe37299[_0x457f40(0x1b2)]);async[_0x457f40(0x1e6)](_0xc3208e,(_0x2aa09a,_0x1fdb80)=>{const _0x446c39=_0x457f40,_0xa80121={'SenRU':function(_0x3feb48,_0x4084fc,_0x3fb8e2){return _0x26dad5['HcZpR'](_0x3feb48,_0x4084fc,_0x3fb8e2);},'mgGLL':function(_0x510f58,_0x204f95){return _0x510f58!==_0x204f95;},'vLWgD':_0x26dad5[_0x446c39(0x278)]};_0x26dad5[_0x446c39(0xa1)](setImmediate,()=>{const _0x201592=_0x446c39,_0x21de33={'aqxuO':function(_0x596958,_0x479c5e,_0x5c3624){return _0xa80121['SenRU'](_0x596958,_0x479c5e,_0x5c3624);}};_0xa80121[_0x201592(0x298)](_0xa80121['vLWgD'],_0xa80121['vLWgD'])?_0x21de33[_0x201592(0x170)](_0x2aa5b2,_0x11a405,_0x2fd4a4):Tdttco[_0x201592(0xfb)]({'_id':_0x2aa09a[_0x201592(0x1b2)]['toString']()},{'$set':{'tat_toan':![]}},function(_0x2e580f,_0x54b6b7){const _0x1cdd8d=_0x201592;_0xa80121[_0x1cdd8d(0x214)](_0x1fdb80,_0x2e580f,_0x54b6b7);});});},_0x4b0402=>{const _0x22f9b9=_0x457f40,_0x125908={'DBlnP':function(_0x33d36a){return _0x59ece7['zLApA'](_0x33d36a);}};if(_0x59ece7['bzqXE'](_0x22f9b9(0x27d),_0x22f9b9(0x1a3)))_0x59ece7[_0x22f9b9(0xcc)](_0x9c5f64,_0x4b0402,_0xd8d00f);else{const _0x56f292={'OzzgW':_0x26dad5['SGekL'],'QMGws':_0x26dad5[_0x22f9b9(0x219)]};_0x54321b[_0x22f9b9(0x1ff)](_0x4b4cb7,0x14,function(_0x4b6c75,_0x8fdfce){const _0x463bc4=_0x22f9b9,_0x47fe40={'ZbSeB':function(_0x1316f7){return _0x1316f7();}},_0x3c40be=_0x4b6c75[_0x463bc4(0x14a)]||[];_0x3c40be[_0x463bc4(0x125)](_0x2f47=>_0x2f47[_0x463bc4(0x225)])[_0x463bc4(0xde)](_0x208186,_0x432ea1,[{'wher':{'ma_hd':_0x56f292[_0x463bc4(0xc7)]},'fields':[_0x56f292['QMGws']]}],function(){const _0x289ab8=_0x463bc4;_0x47fe40[_0x289ab8(0x27e)](_0x8fdfce);});},function(){const _0x5e8a38=_0x22f9b9;_0x125908[_0x5e8a38(0x13a)](_0x5e27ad);});}});},_0x305401['on'](_0x59ece7[_0x1339c7(0x22a)],function(_0x4253c2){const _0x550e1b=_0x1339c7,_0x496e5a={'MhIaL':function(_0xdf02e,_0x3a309d){return _0x59ece7['GqEWg'](_0xdf02e,_0x3a309d);},'XQFNW':_0x550e1b(0xa7),'Ewksw':_0x59ece7[_0x550e1b(0x167)],'ixqXZ':function(_0x590dc9,_0x16f2c2){return _0x590dc9<=_0x16f2c2;},'FkTEZ':_0x59ece7['oNLcU'],'bZLnC':'PN6','bPaFz':_0x59ece7[_0x550e1b(0x156)]};_0x4253c2[_0x550e1b(0x12d)]&&pc0['updateMany']({'_id':_0x4253c2[_0x550e1b(0x12d)],'id_app':_0x4253c2['id_app']},{'id_pc1':_0x4253c2[_0x550e1b(0x221)][_0x550e1b(0x11d)](),'trang_thai':'6'},(_0x1d4486,_0x211750)=>{const _0x481536=_0x550e1b,_0x43e5e2={'MmNCY':function(_0x3554f3,_0x321286){const _0x1ee959=_0x1a5c;return _0x496e5a[_0x1ee959(0xae)](_0x3554f3,_0x321286);},'XPEWm':_0x481536(0x136),'vEbaZ':_0x496e5a[_0x481536(0x1d0)]};console['log'](_0x496e5a[_0x481536(0x1fb)],_0x4253c2['id_pc0'],_0x211750),pc0['findOne']({'_id':_0x4253c2[_0x481536(0x12d)]},(_0x2793ad,_0x3dd27f)=>{const _0xb42f5e=_0x481536;if(_0x43e5e2[_0xb42f5e(0xa2)](_0xb42f5e(0x136),_0x43e5e2[_0xb42f5e(0xf1)])){if(_0x3dd27f){const _0x97c21c=global[_0xb42f5e(0x1c8)][_0x43e5e2['vEbaZ']];controller['postData'](_0x3dd27f,_0x97c21c,_0x522a9a=>{const _0x53dd7a=_0xb42f5e;if(_0x522a9a)console[_0x53dd7a(0x1ac)](_0x522a9a);});}}else _0x4c84b7[_0xb42f5e(0x1ab)]=_0x4eaf1c['tien_nt'];});}),_0x4253c2[_0x550e1b(0x163)]&&pn6[_0x550e1b(0x1b4)]({'_id':_0x4253c2[_0x550e1b(0x163)],'id_app':_0x4253c2[_0x550e1b(0x292)]},{'id_pc1':_0x4253c2['_id'][_0x550e1b(0x11d)](),'trang_thai':'7'},(_0x9cae07,_0x189d18)=>{const _0x1affb3=_0x550e1b,_0x5ab166={'CtGph':function(_0xe293e9,_0x55b35c){const _0x440530=_0x1a5c;return _0x496e5a[_0x440530(0x173)](_0xe293e9,_0x55b35c);},'Itigs':_0x496e5a[_0x1affb3(0x294)],'CbCrL':function(_0x2fb683,_0x41f339){return _0x2fb683===_0x41f339;},'GzfmS':_0x1affb3(0xd4),'rMnPU':_0x1affb3(0x1db),'AQBUC':_0x496e5a[_0x1affb3(0x128)]};console['log'](_0x496e5a['bPaFz'],_0x4253c2['id_pn6'],_0x189d18),pn6[_0x1affb3(0xb8)]({'_id':_0x4253c2[_0x1affb3(0x163)]},(_0x4190c1,_0x547422)=>{const _0x3ba82e=_0x1affb3,_0x1dd3ba={'xElyn':_0x3ba82e(0x23d),'AYhdq':_0x5ab166['Itigs'],'McLqG':function(_0x2c422a,_0x47ba6c){const _0x21676d=_0x3ba82e;return _0x5ab166[_0x21676d(0x152)](_0x2c422a,_0x47ba6c);},'xkyWc':_0x5ab166[_0x3ba82e(0x191)]};if(_0x5ab166[_0x3ba82e(0x152)](_0x5ab166[_0x3ba82e(0x11f)],_0x5ab166[_0x3ba82e(0x11f)])){if(_0x547422){const _0xa201dd=global[_0x3ba82e(0x1c8)][_0x5ab166[_0x3ba82e(0x282)]];controller[_0x3ba82e(0x122)](_0x547422,_0xa201dd,_0x29318b=>{const _0x427d62=_0x3ba82e,_0x3258ce={'WwHbR':_0x1dd3ba[_0x427d62(0xa4)],'gOHhH':_0x1dd3ba[_0x427d62(0x24a)]};if(_0x1dd3ba[_0x427d62(0x26b)](_0x1dd3ba[_0x427d62(0xdf)],_0x427d62(0x184))){const _0x42ab28={'wpHCL':function(_0x559f65){return _0x559f65();}},_0x1385ef=_0x201648[_0x427d62(0x208)]||[];_0x1385ef[_0x427d62(0x125)](_0x166391=>_0x166391[_0x427d62(0x23d)])[_0x427d62(0xde)](_0x148750,_0x5a5f96,[{'where':_0x3258ce[_0x427d62(0xf6)],'fields':[_0x3258ce[_0x427d62(0x180)]]}],function(){const _0x32b60b=_0x427d62;_0x42ab28[_0x32b60b(0x266)](_0x33c6ff);});}else{if(_0x29318b)console[_0x427d62(0x1ac)](_0x29318b);}});}}else _0x5ab166[_0x3ba82e(0x29b)](_0x233b79['con_lai_nt'],_0x485dbd[_0x3ba82e(0x1bb)])?_0x2776b5[_0x3ba82e(0xfb)]({'_id':_0x1df4c8['id_tdtt']['toString']()},{'$set':{'tat_toan':!![]}},function(_0x16e73d,_0x45d67d){_0x596a5e(_0x16e73d,_0x45d67d);}):_0x4fd6e2(null,_0x59e306);});});}),_0x305401['on'](_0x59ece7['qYBqb'],function(_0x4391e5){const _0x48e3d8=_0x1339c7,_0x28e50a={'Tjaka':function(_0x4b249f){return _0x4b249f();},'wyYLH':function(_0x4afc60,_0x55ab20){return _0x59ece7['GqEWg'](_0x4afc60,_0x55ab20);},'dfIfx':_0x59ece7[_0x48e3d8(0x23a)],'bTVJG':_0x59ece7['rtXLJ'],'mZjSf':_0x59ece7[_0x48e3d8(0x167)],'pCWWN':_0x59ece7[_0x48e3d8(0x156)],'wDqmK':function(_0x4bb73c,_0x40bb5f){const _0x27a852=_0x48e3d8;return _0x59ece7[_0x27a852(0x13e)](_0x4bb73c,_0x40bb5f);},'hEHiQ':_0x59ece7[_0x48e3d8(0x1b5)],'UhhTF':_0x59ece7['eeHGV'],'uzxvz':function(_0x354584,_0xc36b7f){const _0x448a19=_0x48e3d8;return _0x59ece7[_0x448a19(0x28c)](_0x354584,_0xc36b7f);},'anuUZ':_0x48e3d8(0x116),'LzNSa':_0x59ece7[_0x48e3d8(0x16f)]};_0x4391e5[_0x48e3d8(0x12d)]&&pc0['updateMany']({'_id':_0x4391e5[_0x48e3d8(0x12d)],'id_app':_0x4391e5[_0x48e3d8(0x292)]},{'id_pc1':''},()=>{const _0x108815=_0x48e3d8,_0x235c50={'bVrVB':_0x59ece7[_0x108815(0xd9)],'vNoto':function(_0xc791a1,_0x5807a8){return _0xc791a1===_0x5807a8;},'aDJNU':_0x59ece7[_0x108815(0x198)],'scwgb':_0x108815(0xa7)};pc0['updateMany']({'_id':_0x4391e5[_0x108815(0x12d)],'id_app':_0x4391e5[_0x108815(0x292)],'trang_thai':'6'},{'trang_thai':'4'},(_0x1ec141,_0x343cd0)=>{const _0x3849c0=_0x108815,_0x39b45c={'lXCME':function(_0x20c91d){const _0x50c415=_0x1a5c;return _0x28e50a[_0x50c415(0x102)](_0x20c91d);}};if(_0x28e50a['wyYLH'](_0x28e50a['dfIfx'],_0x28e50a[_0x3849c0(0x250)])){const _0x2848c7=_0xa82ad[_0x3849c0(0x1c8)][_0x235c50[_0x3849c0(0x21b)]];_0x1ffff4['postData'](_0x42cf50,_0x2848c7,_0x4e77fc=>{const _0x14e9c9=_0x3849c0;if(_0x4e77fc)_0x569762[_0x14e9c9(0x1ac)](_0x4e77fc);});}else console[_0x3849c0(0x1a9)](_0x28e50a[_0x3849c0(0x9d)],_0x4391e5[_0x3849c0(0x12d)],_0x343cd0),pc0[_0x3849c0(0xb8)]({'_id':_0x4391e5[_0x3849c0(0x12d)],'id_app':_0x4391e5['id_app']},(_0x17d4f9,_0x153e46)=>{const _0x305039=_0x3849c0;if(_0x235c50[_0x305039(0xea)](_0x235c50[_0x305039(0xad)],_0x235c50['aDJNU'])){if(_0x153e46){const _0x476866=global[_0x305039(0x1c8)][_0x235c50[_0x305039(0xb4)]];controller[_0x305039(0x122)](_0x153e46,_0x476866,_0x5ca148=>{const _0x23780a=_0x305039;if(_0x5ca148)console[_0x23780a(0x1ac)](_0x5ca148);});}}else _0x39b45c[_0x305039(0x19d)](_0x4a385c);});});});if(_0x4391e5['id_pn6']){if(_0x48e3d8(0x1fd)!==_0x59ece7['ThBOf']){const _0x4ec3a6=_0x19b7fb?function(){if(_0x34abdc){const _0x28ac3e=_0xbac673['apply'](_0x1d64b5,arguments);return _0x11aad8=null,_0x28ac3e;}}:function(){};return _0xae6863=![],_0x4ec3a6;}else pn6[_0x48e3d8(0x1b4)]({'_id':_0x4391e5[_0x48e3d8(0x163)],'id_app':_0x4391e5[_0x48e3d8(0x292)]},{'id_pc1':''},()=>{const _0x14a115=_0x48e3d8,_0x202521={'jptZA':_0x28e50a[_0x14a115(0x9d)],'CWWpC':function(_0x647238){return _0x28e50a['Tjaka'](_0x647238);},'oYWtg':_0x14a115(0x221),'DOaYL':function(_0x341ff3,_0x544477){const _0x546c1e=_0x14a115;return _0x28e50a[_0x546c1e(0x23c)](_0x341ff3,_0x544477);},'giziJ':'cTAIO','nHsYq':function(_0x1fbd03,_0x495a63){return _0x1fbd03!==_0x495a63;},'AYEVJ':_0x28e50a[_0x14a115(0x1f8)],'qkSHC':_0x14a115(0xe7),'BlPMo':_0x28e50a[_0x14a115(0x28b)]};if(_0x28e50a[_0x14a115(0xdc)](_0x28e50a[_0x14a115(0xaa)],_0x28e50a['LzNSa'])){if(_0x26e457)_0x4c85d1['error'](_0x606c08);}else pn6[_0x14a115(0x1b4)]({'_id':_0x4391e5[_0x14a115(0x163)],'id_app':_0x4391e5[_0x14a115(0x292)],'trang_thai':'7'},{'trang_thai':'5'},(_0x547942,_0x5bf097)=>{const _0x276751=_0x14a115;console['log'](_0x28e50a[_0x276751(0x25a)],_0x4391e5[_0x276751(0x163)],_0x5bf097),pn6[_0x276751(0xb8)]({'_id':_0x4391e5[_0x276751(0x163)],'id_app':_0x4391e5[_0x276751(0x292)]},(_0x5327f4,_0x532e44)=>{const _0x5acdc5=_0x276751,_0x9a6dd4={'jqXtf':_0x202521[_0x5acdc5(0x24d)],'IxOjW':function(_0x1f2c56){const _0x516469=_0x5acdc5;return _0x202521[_0x516469(0x108)](_0x1f2c56);},'Rdtdo':_0x202521[_0x5acdc5(0x209)],'rNzEy':'so_ct'};if(_0x202521['DOaYL'](_0x202521[_0x5acdc5(0x1a2)],_0x202521[_0x5acdc5(0x1a2)]))_0x44fcaa[_0x5acdc5(0x1a9)](_0x9a6dd4[_0x5acdc5(0x19b)],_0x553efd['id_pc0'],_0xd1668c),_0x3f2bcf['findOne']({'_id':_0x300153[_0x5acdc5(0x12d)]},(_0x3e0d0d,_0x2b8e9a)=>{const _0xe5764d=_0x5acdc5;if(_0x2b8e9a){const _0x4f8edd=_0x2c7f1a[_0xe5764d(0x1c8)][_0xe5764d(0xa7)];_0x49f6b3[_0xe5764d(0x122)](_0x2b8e9a,_0x4f8edd,_0x42004b=>{const _0x53226d=_0xe5764d;if(_0x42004b)_0x1c2cf7[_0x53226d(0x1ac)](_0x42004b);});}});else{if(_0x532e44){if(_0x202521[_0x5acdc5(0xc1)](_0x202521[_0x5acdc5(0xe8)],_0x202521['qkSHC'])){const _0x50126f=global['controllers'][_0x202521['BlPMo']];controller[_0x5acdc5(0x122)](_0x532e44,_0x50126f,_0x64fb41=>{const _0x5248b5=_0x5acdc5;if(_0x64fb41)console[_0x5248b5(0x1ac)](_0x64fb41);});}else{const _0x420341={'uKLau':function(_0x5534fb){const _0x114ad2=_0x5acdc5;return _0x9a6dd4[_0x114ad2(0x193)](_0x5534fb);}};_0x43625d[_0x5acdc5(0xde)](_0x335a11,_0x1c347d,[{'where':{'id_pc0':_0x9a6dd4[_0x5acdc5(0x1bd)]},'fields':[{'so_ct_pc0':_0x9a6dd4[_0x5acdc5(0x14b)]},{'ngay_ct_pc0':_0x5acdc5(0x1b3)}]}],function(){const _0x5c3a1d=_0x5acdc5;_0x420341[_0x5c3a1d(0x12b)](_0x4696cd);});}}}});});});}}),_0x305401[_0x1339c7(0x1c7)]=function(_0x34b4e5,_0x407126,_0x1c7969){const _0x4aedc8=_0x1339c7,_0x52dca5={'duLxj':function(_0x515600){return _0x515600();},'gnatt':function(_0x588b09,_0xeeabfa){const _0x2ab7e9=_0x1a5c;return _0x59ece7[_0x2ab7e9(0x160)](_0x588b09,_0xeeabfa);},'QezPM':_0x59ece7[_0x4aedc8(0x212)],'sOEJC':function(_0xbaaaf7){return _0x59ece7['aupZw'](_0xbaaaf7);},'qwJwN':function(_0x21e91c,_0x2305fc){const _0x3c6860=_0x4aedc8;return _0x59ece7[_0x3c6860(0x23b)](_0x21e91c,_0x2305fc);},'bddiI':_0x59ece7[_0x4aedc8(0x1ca)],'mJBNZ':_0x59ece7['sWDua'],'fZaSO':function(_0x130ff0,_0x1c3674){return _0x130ff0!==_0x1c3674;},'SToLH':_0x59ece7['Onday'],'jDkDG':function(_0x4cba9a,_0x2acbe0){return _0x4cba9a+_0x2acbe0;},'YAKmo':_0x59ece7[_0x4aedc8(0x18e)],'dRxAb':_0x59ece7['XfxuZ'],'ZHLTR':_0x4aedc8(0x1a1),'sWkjr':function(_0x28760d){return _0x59ece7['mYeqy'](_0x28760d);},'FbUaq':_0x59ece7[_0x4aedc8(0x272)],'mIQtN':_0x59ece7['XHVmA'],'tKJXC':function(_0x4d94cb,_0x2a9ce7){return _0x4d94cb===_0x2a9ce7;},'YYJtP':_0x59ece7[_0x4aedc8(0x26e)],'xpDEs':_0x59ece7['ReyIA'],'GgLnz':function(_0x28798c,_0x2e461b){return _0x28798c!==_0x2e461b;},'EuWgM':_0x59ece7[_0x4aedc8(0x112)],'jaoKg':_0x59ece7[_0x4aedc8(0x1d8)],'tArBi':_0x59ece7['zSMkA'],'ztIzS':_0x59ece7[_0x4aedc8(0xd1)],'CboPc':_0x59ece7['nNVBN'],'QAahJ':'dIsHr','cxgbw':_0x59ece7['DgfbF']};let _0x36f9a7=_0x34b4e5[_0x4aedc8(0x1fe)];async[_0x4aedc8(0x211)]({'kh':function(_0x2d5762){const _0x3c82b2=_0x4aedc8,_0xd83d2c={'Msdfl':function(_0x10d341,_0x1dbe45){const _0x4d8bae=_0x1a5c;return _0x59ece7[_0x4d8bae(0xd8)](_0x10d341,_0x1dbe45);},'FHjIR':function(_0x54b06e){const _0x2cd519=_0x1a5c;return _0x59ece7[_0x2cd519(0x174)](_0x54b06e);}};_0x59ece7['XxQQA'](_0x3c82b2(0x258),_0x59ece7[_0x3c82b2(0x1f1)])?_0x52c5c4[_0x3c82b2(0x23d)]=_0x2d6120[_0x3c82b2(0x23d)]:_0x407126[_0x3c82b2(0x125)](_0x24d844=>_0x24d844['ma_kh'])[_0x3c82b2(0xde)](_0x36f9a7,customer,[{'where':_0x59ece7[_0x3c82b2(0x1d8)],'fields':[_0x59ece7[_0x3c82b2(0x20a)]]}],function(){const _0x1c2396=_0x3c82b2;_0xd83d2c[_0x1c2396(0x105)](_0x1c2396(0x16d),_0x1c2396(0x16d))?_0x44be4c(_0x43549c,_0x1a1488):_0xd83d2c[_0x1c2396(0x1eb)](_0x2d5762);});},'nv':function(_0x1adb35){const _0x4ebe19=_0x4aedc8;_0x407126[_0x4ebe19(0x125)](_0x4e0442=>_0x4e0442[_0x4ebe19(0x205)])[_0x4ebe19(0xde)](_0x36f9a7,dmnv,[{'where':_0x4ebe19(0x205),'fields':[_0x59ece7[_0x4ebe19(0xeb)]]}],function(){const _0x300ece=_0x4ebe19;_0x52dca5[_0x300ece(0x1a0)](_0x1adb35);});},'trangthai':function(_0x2cb00b){const _0x5cdbf8=_0x4aedc8,_0x1e5f33={'ifVnW':function(_0x1241f0,_0x50122d){const _0x1428a0=_0x1a5c;return _0x59ece7[_0x1428a0(0xc3)](_0x1241f0,_0x50122d);},'XxllW':_0x5cdbf8(0x24c)};if(_0x59ece7['TxWVd'](_0x59ece7[_0x5cdbf8(0x147)],'eWXlV'))_0x407126[_0x5cdbf8(0x125)](_0x3deb45=>_0x3deb45[_0x5cdbf8(0xd2)])[_0x5cdbf8(0xde)](null,trangthai,[{'where':{'trang_thai':_0x59ece7[_0x5cdbf8(0x22f)],'ma_ct':_0x59ece7[_0x5cdbf8(0x1b6)]},'fields':['ten_trang_thai',_0x5cdbf8(0x10c)]}],function(){const _0x4add20=_0x5cdbf8,_0x3b5024={'uINZy':function(_0x44310d,_0x56cab0,_0x1219e3){return _0x44310d(_0x56cab0,_0x1219e3);}};_0x52dca5['gnatt'](_0x52dca5['QezPM'],_0x4add20(0x231))?_0x52dca5['duLxj'](_0x2cb00b):_0x3b5024[_0x4add20(0x262)](_0xc08005,null,_0x2a5df7);});else return _0x1e5f33[_0x5cdbf8(0x227)](_0x2f1e8e,_0x1e5f33[_0x5cdbf8(0xb3)]);},'pc0':function(_0x3c5630){const _0x13837c=_0x4aedc8,_0x7651ba={'shDQH':function(_0x18dd30){return _0x59ece7['AasoN'](_0x18dd30);},'JJlzc':function(_0x567bde,_0x312372){return _0x59ece7['jEHAU'](_0x567bde,_0x312372);},'AJvBv':_0x59ece7[_0x13837c(0x290)],'ZwOuN':_0x59ece7['BWFVy'],'UnRIi':function(_0x525aee){const _0x4979ca=_0x13837c;return _0x59ece7[_0x4979ca(0x1b7)](_0x525aee);}};_0x407126[_0x13837c(0xde)](_0x36f9a7,pc0,[{'where':{'id_pc0':_0x13837c(0x221)},'fields':[{'so_ct_pc0':_0x13837c(0xf8)},{'ngay_ct_pc0':_0x13837c(0x1b3)}]}],function(){const _0x24435c=_0x13837c,_0x2a7497={'BYIZS':function(_0x20144f){const _0x18c5bd=_0x1a5c;return _0x7651ba[_0x18c5bd(0x1d2)](_0x20144f);}};if(_0x7651ba['JJlzc'](_0x7651ba[_0x24435c(0x18a)],_0x7651ba[_0x24435c(0x127)])){const _0x5db86f={'evklx':function(_0x2c6ad3){const _0x3bb945=_0x24435c;return _0x2a7497[_0x3bb945(0x24b)](_0x2c6ad3);}};_0x4240ac['mapLimit'](_0x4676bf,0x14,function(_0x187468,_0x5b2de7){const _0x2a7c44=_0x24435c,_0x2363e8={'tRAtT':function(_0x4cb58e){return _0x4cb58e();}},_0x535f96=_0x187468[_0x2a7c44(0x208)]||[];_0x535f96[_0x2a7c44(0x125)](_0x4fd9c8=>_0x4fd9c8[_0x2a7c44(0x225)])[_0x2a7c44(0xde)](_0x177fd8,_0x58909c,[{'where':{'ma_hd':'so_hd'},'fields':[_0x2a7c44(0x1c6)]}],function(){_0x2363e8['tRAtT'](_0x5b2de7);});},function(){const _0x343794=_0x24435c;_0x5db86f[_0x343794(0x192)](_0x48ff84);});}else _0x7651ba[_0x24435c(0x121)](_0x3c5630);});},'t_tien':function(_0x517ddc){const _0xf8c8ba=_0x4aedc8,_0x18bb30={'DhIdz':_0x52dca5[_0xf8c8ba(0xed)]};_0x407126[_0xf8c8ba(0xee)](function(_0x21d15f){const _0x511908=_0xf8c8ba,_0x51a8e2={'YnviU':_0x511908(0x111),'yDcpY':function(_0x199c61){return _0x52dca5['sOEJC'](_0x199c61);}};if(_0x52dca5[_0x511908(0x175)](_0x52dca5[_0x511908(0x166)],_0x511908(0x145)))return _0x36c747[_0x511908(0x11d)]()[_0x511908(0x20d)]('(((.+)+)+)+$')[_0x511908(0x11d)]()[_0x511908(0x1b8)](_0x3e99cf)[_0x511908(0x20d)](OCTBXB[_0x511908(0x21e)]);else _0x21d15f[_0x511908(0x1ec)]=0x0,_0x21d15f['t_tien_nt']=0x0,_0x21d15f[_0x511908(0x267)]=0x0,_0x21d15f[_0x511908(0x144)]=0x0,_0x21d15f[_0x511908(0x208)]&&(_0x21d15f[_0x511908(0x1ec)]=_0x21d15f[_0x511908(0x208)]['csum'](_0x52dca5[_0x511908(0x285)]),_0x21d15f[_0x511908(0x190)]=_0x21d15f[_0x511908(0x208)][_0x511908(0x10b)](_0x511908(0x12c))),_0x21d15f[_0x511908(0x14a)]&&(_0x52dca5[_0x511908(0x241)](_0x52dca5[_0x511908(0x224)],_0x52dca5[_0x511908(0x224)])?_0x390558[_0x511908(0x125)](_0x5b8d4e=>_0x5b8d4e[_0x511908(0x23d)])[_0x511908(0xde)](_0x28b130,_0x592f17,[{'where':_0x511908(0x23d),'fields':[_0x18bb30['DhIdz']]}],function(){const _0x51c437=_0x511908;_0x51a8e2[_0x51c437(0xf7)](_0x1752d0);}):(_0x21d15f[_0x511908(0x1ec)]=_0x52dca5[_0x511908(0x146)](_0x21d15f[_0x511908(0x1ec)],_0x21d15f[_0x511908(0x14a)][_0x511908(0x10b)](_0x511908(0x1ab))),_0x21d15f[_0x511908(0x190)]=_0x21d15f[_0x511908(0x190)]+_0x21d15f[_0x511908(0x14a)][_0x511908(0x10b)](_0x52dca5[_0x511908(0x115)]))),_0x21d15f[_0x511908(0x141)]&&(_0x21d15f[_0x511908(0x267)]=_0x21d15f[_0x511908(0x141)][_0x511908(0x10b)](_0x511908(0x252)),_0x21d15f[_0x511908(0x144)]=_0x21d15f[_0x511908(0x141)][_0x511908(0x10b)](_0x52dca5[_0x511908(0x270)])),_0x21d15f[_0x511908(0xb7)]=_0x21d15f[_0x511908(0x1ec)]+_0x21d15f[_0x511908(0x267)],_0x21d15f[_0x511908(0x1f6)]=_0x52dca5['jDkDG'](_0x21d15f[_0x511908(0x190)],_0x21d15f['t_thue_vao_nt']);}),_0x52dca5[_0xf8c8ba(0x13d)](_0x517ddc);},'details_dt_tdttco':function(_0x40d988){const _0x380952=_0x4aedc8,_0x5c32f0={'UJPNV':_0x380952(0xdb),'UbHuU':_0x59ece7['lfYGA'],'tnGNO':_0x59ece7['eeHGV'],'CnmGg':_0x59ece7[_0x380952(0x156)],'quVoo':function(_0xd370b7,_0x13fd22){const _0x3c7679=_0x380952;return _0x59ece7[_0x3c7679(0x140)](_0xd370b7,_0x13fd22);},'cHRDu':'HumKf'};async[_0x380952(0x1ff)](_0x407126,0x14,function(_0x132b49,_0x561dd6){const _0x1d1a99=_0x380952,_0x43b4ec=_0x132b49[_0x1d1a99(0x14a)]||[];_0x43b4ec['filter'](_0x5660cc=>_0x5660cc[_0x1d1a99(0xdb)])[_0x1d1a99(0x22b)](_0x36f9a7,dmdt,[{'akey':_0x5c32f0[_0x1d1a99(0x1c4)],'bkey':_0x5c32f0[_0x1d1a99(0x1c4)],'fields':[{'name':_0x5c32f0['UbHuU'],'value':_0x5c32f0[_0x1d1a99(0xff)]}]}],function(){_0x561dd6();});},function(){const _0x31024f=_0x380952,_0x554c7={'nnTrw':_0x5c32f0['tnGNO'],'OSANO':_0x5c32f0[_0x31024f(0xce)]};_0x5c32f0[_0x31024f(0x1cf)](_0x5c32f0['cHRDu'],'HumKf')?_0x40d988():(_0x2c48ed[_0x31024f(0x1a9)](_0x554c7[_0x31024f(0x299)],_0x32a7fa[_0x31024f(0x163)],_0xc78739),_0xf2cfdd[_0x31024f(0xb8)]({'_id':_0x418a6e[_0x31024f(0x163)],'id_app':_0x1a5973['id_app']},(_0x19ba5e,_0x3890ac)=>{const _0x2327b1=_0x31024f;if(_0x3890ac){const _0x14ff8f=_0x3a7482[_0x2327b1(0x1c8)][_0x554c7['nnTrw']];_0x11bed8[_0x2327b1(0x122)](_0x3890ac,_0x14ff8f,_0x35704b=>{const _0x397271=_0x2327b1;if(_0x35704b)_0x5f4d2c[_0x397271(0x1ac)](_0x35704b);});}}));});},'details_hd_tdttco':function(_0x5a41fa){const _0x3791ba=_0x4aedc8,_0x36d850={'fNrUB':function(_0xa38fdf,_0x71cee7){return _0xa38fdf===_0x71cee7;},'ygWHF':_0x59ece7[_0x3791ba(0x255)],'YZGIR':_0x59ece7['GDEjC'],'TGFPa':_0x59ece7[_0x3791ba(0x1cb)]};async[_0x3791ba(0x1ff)](_0x407126,0x14,function(_0x274448,_0x37264b){const _0x109b4c=_0x3791ba;if(_0x36d850[_0x109b4c(0x248)](_0x36d850[_0x109b4c(0x17f)],'nSDHg')){const _0x37b5a5=_0x274448[_0x109b4c(0x14a)]||[];_0x37b5a5[_0x109b4c(0x125)](_0x5db80a=>_0x5db80a[_0x109b4c(0x225)])['joinModel2'](_0x36f9a7,contract,[{'wher':{'ma_hd':_0x36d850[_0x109b4c(0x187)]},'fields':[_0x36d850[_0x109b4c(0x27f)]]}],function(){_0x37264b();});}else{if(_0x3b15f5){const _0x4d472a=_0x57538a['controllers'][_0x109b4c(0xa6)];_0x4c9d9f['postData'](_0x26cdde,_0x4d472a,_0x5512ee=>{const _0x21fceb=_0x109b4c;if(_0x5512ee)_0x339d2a[_0x21fceb(0x1ac)](_0x5512ee);});}}},function(){const _0x265707=_0x3791ba;_0x52dca5[_0x265707(0x13d)](_0x5a41fa);});},'details_phi_tdttco':function(_0x1b92be){const _0x494ef4=_0x4aedc8,_0x1ea124={'FZGbS':function(_0x406cc2){return _0x406cc2();}};_0x52dca5[_0x494ef4(0xfd)](_0x52dca5['YYJtP'],_0x52dca5[_0x494ef4(0x154)])?_0x1ea124[_0x494ef4(0x1e5)](_0x5a4a8b):async[_0x494ef4(0x1ff)](_0x407126,0x14,function(_0x4d5831,_0x1dc815){const _0x3df8eb=_0x494ef4,_0x401c5d={'IkUGJ':function(_0x23693e){const _0x5dd016=_0x1a5c;return _0x52dca5[_0x5dd016(0x13d)](_0x23693e);}},_0x28cac5=_0x4d5831[_0x3df8eb(0x14a)]||[];_0x28cac5[_0x3df8eb(0x125)](_0x1a7519=>_0x1a7519[_0x3df8eb(0x1af)])['joinModel2'](_0x36f9a7,dmphi,[{'where':_0x52dca5['FbUaq'],'fields':[_0x52dca5['mIQtN']]}],function(){const _0x231766=_0x3df8eb;_0x401c5d[_0x231766(0x245)](_0x1dc815);});},function(){const _0x48edac=_0x494ef4;_0x1ea124[_0x48edac(0x1e5)](_0x1b92be);});},'details_customer':function(_0x548859){const _0x45b63a=_0x4aedc8,_0x15f0c3={'VWmKK':function(_0x4d6544){const _0x359278=_0x1a5c;return _0x59ece7[_0x359278(0xc4)](_0x4d6544);},'jsWRr':function(_0x226af2){const _0x15ab97=_0x1a5c;return _0x59ece7[_0x15ab97(0xc4)](_0x226af2);}};async[_0x45b63a(0x1ff)](_0x407126,0x14,function(_0x4a97a5,_0x13bd7c){const _0x315d12=_0x45b63a;if(_0x52dca5[_0x315d12(0xc6)](_0x315d12(0x24f),_0x52dca5['EuWgM'])){const _0x1e6f23=_0x4a97a5['details']||[];_0x1e6f23[_0x315d12(0x125)](_0x142e74=>_0x142e74[_0x315d12(0x23d)])[_0x315d12(0xde)](_0x36f9a7,customer,[{'where':_0x52dca5[_0x315d12(0xbc)],'fields':[_0x52dca5[_0x315d12(0xed)]]}],function(){_0x15f0c3['VWmKK'](_0x13bd7c);});}else{if(_0x2307e2)_0x106f94[_0x315d12(0x1ac)](_0x2813dd);}},function(){const _0x581daf=_0x45b63a;_0x15f0c3[_0x581daf(0x110)](_0x548859);});},'details_dt':function(_0x32791b){const _0x1eab76=_0x4aedc8,_0x136101={'GSDNp':function(_0x163f8d){return _0x59ece7['zLApA'](_0x163f8d);}};if(_0x59ece7[_0x1eab76(0x153)]===_0x59ece7[_0x1eab76(0xc2)]){const _0x4e9ae0=_0x69e90d['controllers'][_0x1eab76(0xa7)];_0x465ed6['postData'](_0x339960,_0x4e9ae0,_0x769ca8=>{if(_0x769ca8)_0x264f40['error'](_0x769ca8);});}else async[_0x1eab76(0x1ff)](_0x407126,0x14,function(_0x1544a3,_0x276aee){const _0x561f77=_0x1eab76,_0x432e0b={'CrUKK':_0x52dca5[_0x561f77(0x15d)],'pJVum':_0x52dca5['ztIzS'],'GsAFR':function(_0x404aa8){const _0x8d2c0b=_0x561f77;return _0x52dca5[_0x8d2c0b(0x13d)](_0x404aa8);}};if(_0x52dca5[_0x561f77(0x1da)](_0x52dca5[_0x561f77(0xdd)],_0x52dca5['CboPc'])){const _0x556859={'JuuBg':function(_0x325fe3){return _0x325fe3();}};_0x3e13df[_0x561f77(0x1ff)](_0xe1cb79,0x14,function(_0x5a0e55,_0x291c63){const _0x3bd2cc=_0x561f77,_0xd9dd23=_0x5a0e55[_0x3bd2cc(0x14a)]||[];_0xd9dd23[_0x3bd2cc(0x125)](_0x29841f=>_0x29841f[_0x3bd2cc(0xdb)])[_0x3bd2cc(0x22b)](_0x5edc6d,_0x21e94e,[{'akey':_0x432e0b[_0x3bd2cc(0x124)],'bkey':'ma_dt','fields':[{'name':_0x432e0b[_0x3bd2cc(0xfa)],'value':_0x432e0b['pJVum']}]}],function(){_0x556859['JuuBg'](_0x291c63);});},function(){const _0xb35605=_0x561f77;_0x556859[_0xb35605(0x229)](_0x322708);});}else{const _0x4cb21f=_0x1544a3[_0x561f77(0x208)]||[];_0x4cb21f['filter'](_0x163681=>_0x163681[_0x561f77(0xdb)])[_0x561f77(0xde)](_0x36f9a7,dmdt,[{'where':_0x52dca5['tArBi'],'fields':[_0x52dca5[_0x561f77(0x25f)]]}],function(){const _0x325619=_0x561f77;_0x432e0b[_0x325619(0x26c)](_0x276aee);});}},function(){const _0x3ef992=_0x1eab76;_0x136101[_0x3ef992(0xec)](_0x32791b);});},'details_hopdong':function(_0x3db751){const _0x205613=_0x4aedc8,_0x179064={'GLCsg':function(_0x3627e8,_0x4357ee){return _0x3627e8===_0x4357ee;},'HRfyt':function(_0x5799d1,_0x316376){const _0x22af22=_0x1a5c;return _0x59ece7[_0x22af22(0x1f9)](_0x5799d1,_0x316376);},'ZUhbX':_0x205613(0x27a),'IeHZl':_0x59ece7[_0x205613(0x281)]};async[_0x205613(0x1ff)](_0x407126,0x14,function(_0x155a14,_0x12dd03){const _0x428db6=_0x205613,_0x26f8bf={'Sjsos':function(_0x36f76c){return _0x36f76c();},'gPksC':function(_0xa183cf,_0x33572a){const _0x5ce5b4=_0x1a5c;return _0x179064[_0x5ce5b4(0x27c)](_0xa183cf,_0x33572a);}};if(_0x179064['HRfyt'](_0x428db6(0x27a),_0x179064[_0x428db6(0x1ed)])){const _0x5af580=_0x155a14[_0x428db6(0x208)]||[];_0x5af580[_0x428db6(0x125)](_0x4dc0ee=>_0x4dc0ee['ma_hd'])[_0x428db6(0xde)](_0x36f9a7,contract,[{'where':{'ma_hd':_0x179064[_0x428db6(0x181)]},'fields':[_0x428db6(0x1c6)]}],function(){const _0x4353ef=_0x428db6;_0x26f8bf[_0x4353ef(0x1dc)](_0x12dd03);});}else{const _0x2df713=_0x439984['vatvaos'][_0x37b763];_0x2df713[_0x428db6(0x1ad)]=_0x25e693,_0x26f8bf[_0x428db6(0x21a)](_0x3bd961[_0x428db6(0x25e)],_0x428db6(0x1a5))&&(_0x2df713[_0x428db6(0x252)]=_0x2df713[_0x428db6(0x1f7)]);}},function(){_0x3db751();});},'details_phi':function(_0x3ebb09){const _0x564ced=_0x4aedc8,_0x15a276={'GBGpB':_0x59ece7[_0x564ced(0xfe)]};_0x59ece7[_0x564ced(0xf4)](_0x564ced(0x104),_0x59ece7[_0x564ced(0xbb)])?(_0x28d6ab[_0x564ced(0x267)]=_0x32c0b7[_0x564ced(0x141)][_0x564ced(0x10b)](_0x15a276[_0x564ced(0xfc)]),_0x2b7135[_0x564ced(0x144)]=_0x36523f[_0x564ced(0x141)][_0x564ced(0x10b)](_0x564ced(0x1f7))):async['mapLimit'](_0x407126,0x14,function(_0x219416,_0xdbfa2){const _0xb41606=_0x564ced,_0x3353ff={'fKFlN':function(_0x530e1b,_0x5a1575){const _0x2a9351=_0x1a5c;return _0x52dca5[_0x2a9351(0xfd)](_0x530e1b,_0x5a1575);},'RtvVL':_0xb41606(0x203),'vCrzD':_0x52dca5['QAahJ'],'AAVti':function(_0x14e508){return _0x52dca5['duLxj'](_0x14e508);}};if(_0xb41606(0x259)===_0x52dca5[_0xb41606(0x117)]){const _0x1bda38=_0x219416['details']||[];_0x1bda38['filter'](_0x46245e=>_0x46245e['ma_phi'])[_0xb41606(0xde)](_0x36f9a7,dmphi,[{'where':_0x52dca5[_0xb41606(0x149)],'fields':[_0x52dca5['mIQtN']]}],function(){const _0x2cca00=_0xb41606;if(_0x3353ff[_0x2cca00(0x220)](_0x3353ff[_0x2cca00(0x134)],_0x3353ff[_0x2cca00(0x230)])){const _0x1c2bd1={..._0x21d49b};_0x1c2bd1[_0x2cca00(0xd6)]=_0x1c2bd1[_0x2cca00(0x213)],_0x1c2bd1['tk_co']=_0x1c2bd1[_0x2cca00(0x1f2)],_0x1c2bd1['tien_nt']=_0x1c2bd1[_0x2cca00(0x1f7)],_0x1c2bd1[_0x2cca00(0x1ab)]=_0x1c2bd1['t_thue'],_0x245eff[_0x2cca00(0xac)](_0x1c2bd1);}else _0x3353ff['AAVti'](_0xdbfa2);});}else _0x3353ff['AAVti'](_0x3b0e12);},function(){_0x52dca5['duLxj'](_0x3ebb09);});}},function(){const _0x467ab4=_0x4aedc8;_0x59ece7[_0x467ab4(0xf9)](_0x1c7969,null,_0x407126);});};};
|