flexbiz-server 12.4.21 → 12.4.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1068) hide show
  1. package/package.json +2 -1
  2. package/server/app.js +1 -22
  3. package/server/auths/bearer.js +1 -3
  4. package/server/auths/facebook.js +1 -12
  5. package/server/auths/google.js +1 -13
  6. package/server/auths/local.js +1 -64
  7. package/server/cluster.js +1 -27
  8. package/server/controllers/controller.js +1 -107
  9. package/server/controllers/controllerRPT.js +1 -27
  10. package/server/controllers/controllerUtils.js +1 -76
  11. package/server/controllers/createHandler.js +1 -35
  12. package/server/controllers/createRouteHandler.js +1 -4
  13. package/server/controllers/deleteHandler.js +1 -11
  14. package/server/controllers/deleteManyHandler.js +1 -2
  15. package/server/controllers/exportHandler.js +1 -17
  16. package/server/controllers/findHandler.js +1 -53
  17. package/server/controllers/handlers.js +1 -3
  18. package/server/controllers/historyHandler.js +1 -5
  19. package/server/controllers/importFromExcelHandler.js +1 -14
  20. package/server/controllers/importFromGsHandler.js +1 -10
  21. package/server/controllers/importFromJsonHandler.js +1 -7
  22. package/server/controllers/importHandler.js +1 -21
  23. package/server/controllers/logHandler.js +1 -5
  24. package/server/controllers/rptCreateRouteHandler.js +1 -4
  25. package/server/controllers/rptExcelHandler.js +1 -32
  26. package/server/controllers/rptHandler.js +1 -13
  27. package/server/controllers/updateBookHandler.js +1 -10
  28. package/server/controllers/updateFieldHandler.js +1 -12
  29. package/server/controllers/updateHandler.js +1 -39
  30. package/server/controllers/updateKeyHandler.js +1 -14
  31. package/server/controllers/viewHandler.js +1 -13
  32. package/server/flow/FlowEngine.js +1 -64
  33. package/server/flow/WebhookManager.js +1 -26
  34. package/server/flow/handlers.js +1 -3
  35. package/server/flow/nodes/aiAnalysis.js +1 -9
  36. package/server/flow/nodes/customer.js +1 -15
  37. package/server/flow/nodes/data.js +1 -14
  38. package/server/flow/nodes/debug.js +1 -2
  39. package/server/flow/nodes/delay.js +1 -3
  40. package/server/flow/nodes/email.js +1 -9
  41. package/server/flow/nodes/event.js +1 -11
  42. package/server/flow/nodes/facebook.js +1 -3
  43. package/server/flow/nodes/facebookConversations.js +1 -5
  44. package/server/flow/nodes/facebookCreatePost.js +1 -10
  45. package/server/flow/nodes/facebookSendMessage.js +1 -12
  46. package/server/flow/nodes/forEachItem.js +1 -8
  47. package/server/flow/nodes/function.js +1 -4
  48. package/server/flow/nodes/httprequest.js +1 -7
  49. package/server/flow/nodes/inject.js +1 -12
  50. package/server/flow/nodes/pushNotification.js +1 -5
  51. package/server/flow/nodes/report.js +1 -6
  52. package/server/flow/nodes/saveData.js +1 -2
  53. package/server/flow/nodes/switch.js +1 -20
  54. package/server/flow/nodes/webhook.js +1 -1
  55. package/server/flow/nodes/zaloSendMessage.js +1 -4
  56. package/server/flow/utils.js +1 -2
  57. package/server/global.js +1 -23
  58. package/server/libs/BlockchainTransactionPool.js +1 -3
  59. package/server/libs/WorkerPool.js +1 -4
  60. package/server/libs/WorkerStaticPool.js +1 -16
  61. package/server/libs/WorkerStaticPool_v1.js +1 -5
  62. package/server/libs/assbonus.js +1 -7
  63. package/server/libs/backup.js +1 -2
  64. package/server/libs/blockchainconnect.js +1 -12
  65. package/server/libs/cdpsdiem.js +1 -5
  66. package/server/libs/cdpsdt.js +1 -7
  67. package/server/libs/cdpskh.js +1 -9
  68. package/server/libs/cdpsnphep.js +1 -6
  69. package/server/libs/cdpstk.js +1 -11
  70. package/server/libs/ckcn.js +1 -12
  71. package/server/libs/ckdiem.js +1 -5
  72. package/server/libs/ckdt.js +1 -6
  73. package/server/libs/cknphep.js +1 -6
  74. package/server/libs/cktk.js +1 -4
  75. package/server/libs/cktt.js +1 -9
  76. package/server/libs/ckvt.js +1 -12
  77. package/server/libs/ckvtcapphat.js +1 -6
  78. package/server/libs/ckvtnpp.js +1 -8
  79. package/server/libs/ckvttt.js +1 -11
  80. package/server/libs/createSocaitheongay.js +1 -9
  81. package/server/libs/ctdiem.js +1 -5
  82. package/server/libs/ctvt.js +1 -7
  83. package/server/libs/ctvtnpp.js +1 -7
  84. package/server/libs/ctvttt.js +1 -7
  85. package/server/libs/databanle.js +1 -17
  86. package/server/libs/databanlenpp.js +1 -8
  87. package/server/libs/databanletheongay.js +1 -27
  88. package/server/libs/dkcn.js +1 -10
  89. package/server/libs/dkdiem.js +1 -5
  90. package/server/libs/dkdt.js +1 -6
  91. package/server/libs/dknphep.js +1 -7
  92. package/server/libs/dktk.js +1 -4
  93. package/server/libs/dktt.js +1 -8
  94. package/server/libs/dkvt.js +1 -9
  95. package/server/libs/dkvtnpp.js +1 -7
  96. package/server/libs/dkvttt.js +1 -7
  97. package/server/libs/dncn.js +1 -6
  98. package/server/libs/dntk.js +1 -4
  99. package/server/libs/dntt.js +1 -6
  100. package/server/libs/docs.js +1 -452
  101. package/server/libs/dstkcn.js +1 -1
  102. package/server/libs/dstktt.js +1 -1
  103. package/server/libs/dtbanletheonpp.js +1 -17
  104. package/server/libs/dtbanletheosp.js +1 -15
  105. package/server/libs/dtbanletheospnpp.js +1 -15
  106. package/server/libs/email.js +1 -3
  107. package/server/libs/excel.js +1 -2
  108. package/server/libs/getGiaban.js +1 -67
  109. package/server/libs/getGiabanAsync.js +1 -1
  110. package/server/libs/getNotifies.js +1 -1
  111. package/server/libs/htmlReport.js +1 -9
  112. package/server/libs/initDatabase.js +1 -9
  113. package/server/libs/invoiceEasy.js +1 -109
  114. package/server/libs/invoiceViettel.js +1 -29
  115. package/server/libs/invoiceVnpt.js +1 -22
  116. package/server/libs/kpistatus.js +1 -32
  117. package/server/libs/load-template.js +1 -3
  118. package/server/libs/mailmanagement.js +1 -13
  119. package/server/libs/mongooseDeletePost.js +1 -6
  120. package/server/libs/mongooseLeanId.js +1 -1
  121. package/server/libs/mongoosePatch.js +1 -8
  122. package/server/libs/onepay-payment.js +1 -4
  123. package/server/libs/optimizeBookkeeping.js +1 -14
  124. package/server/libs/parse-template.js +1 -5
  125. package/server/libs/permission.js +1 -51
  126. package/server/libs/phanbokh.js +1 -3
  127. package/server/libs/post-book.js +1 -23
  128. package/server/libs/post-socai.js +1 -25
  129. package/server/libs/post-sokho.js +1 -27
  130. package/server/libs/prototypes.js +1 -29
  131. package/server/libs/psdt.js +1 -1
  132. package/server/libs/pskh.js +1 -1
  133. package/server/libs/pstk.js +1 -1
  134. package/server/libs/redis-cache.js +1 -17
  135. package/server/libs/restore.js +1 -1
  136. package/server/libs/schedule.js +1 -18
  137. package/server/libs/sessionContext.js +2 -14
  138. package/server/libs/textReport.js +1 -3
  139. package/server/libs/thnxt.js +1 -9
  140. package/server/libs/thnxtnpp.js +1 -9
  141. package/server/libs/thnxttt.js +1 -8
  142. package/server/libs/tinhGt.js +1 -7
  143. package/server/libs/tinhGtCapnhatPNK.js +1 -7
  144. package/server/libs/tinhGtPhanboHeSo.js +1 -12
  145. package/server/libs/tinhGtPhanboSltp.js +1 -10
  146. package/server/libs/tinhGtPhanboYtcp.js +1 -11
  147. package/server/libs/tinhGtSltk.js +1 -9
  148. package/server/libs/tinhGtThcppstk.js +1 -10
  149. package/server/libs/tinhGtTrucTiep.js +1 -7
  150. package/server/libs/tinhGtXoa.js +1 -3
  151. package/server/libs/tinhgiatb.js +1 -38
  152. package/server/libs/tinhgiatb1vt.js +1 -5
  153. package/server/libs/tinhhoahong.js +1 -64
  154. package/server/libs/tinhhoahongnpp.js +1 -46
  155. package/server/libs/tinhkhauhao1ts.js +1 -12
  156. package/server/libs/tinhkhauhaots.js +1 -8
  157. package/server/libs/tuoinophaithu.js +1 -10
  158. package/server/libs/tuoinophaitra.js +1 -11
  159. package/server/libs/utils.js +1 -78
  160. package/server/libs/validate.js +1 -4
  161. package/server/libs/validator-acc-cust.js +1 -1
  162. package/server/libs/validator-account.js +1 -4
  163. package/server/libs/validator-vt.js +1 -2
  164. package/server/libs/validator.js +1 -11
  165. package/server/libs/vsocai.js +1 -8
  166. package/server/models/account.js +1 -7
  167. package/server/models/afflink.js +1 -2
  168. package/server/models/app.js +1 -15
  169. package/server/models/approve.js +1 -93
  170. package/server/models/assabcihandler.js +1 -35
  171. package/server/models/assbank.js +1 -19
  172. package/server/models/assbooking.js +1 -4
  173. package/server/models/assbuy.js +1 -3
  174. package/server/models/asscashwithdraw.js +1 -4
  175. package/server/models/assfindhash.js +1 -2
  176. package/server/models/assinvestment.js +1 -13
  177. package/server/models/assissue.js +1 -2
  178. package/server/models/asskey.js +1 -15
  179. package/server/models/assneedtobuy.js +1 -6
  180. package/server/models/assperiod.js +1 -7
  181. package/server/models/assproduct.js +1 -13
  182. package/server/models/assprofitsharing.js +1 -4
  183. package/server/models/assreceiver.js +1 -2
  184. package/server/models/assrequest.js +1 -11
  185. package/server/models/asssell.js +1 -7
  186. package/server/models/asstransaction.js +1 -3
  187. package/server/models/asstransfer.js +1 -4
  188. package/server/models/assuser_identity.js +1 -4
  189. package/server/models/asswithdraw.js +1 -4
  190. package/server/models/attend.js +1 -2
  191. package/server/models/banggiaban.js +1 -8
  192. package/server/models/bangtinhluong.js +1 -6
  193. package/server/models/base.js +1 -1
  194. package/server/models/bds_area.js +1 -4
  195. package/server/models/bds_block.js +1 -3
  196. package/server/models/bds_building.js +1 -4
  197. package/server/models/bds_floor.js +1 -3
  198. package/server/models/bds_floordetail.js +1 -9
  199. package/server/models/bds_nhadat.js +1 -11
  200. package/server/models/bds_nhomnhadat.js +1 -4
  201. package/server/models/bds_phanloainhadat.js +1 -3
  202. package/server/models/bg1.js +1 -9
  203. package/server/models/bg2.js +1 -10
  204. package/server/models/cache.js +1 -3
  205. package/server/models/calllog.js +1 -4
  206. package/server/models/campaign.js +1 -6
  207. package/server/models/cart.js +1 -5
  208. package/server/models/cddiem.js +1 -2
  209. package/server/models/cddt.js +1 -3
  210. package/server/models/cdkh.js +1 -5
  211. package/server/models/cdkhtheongay.js +1 -5
  212. package/server/models/cdnphep.js +1 -2
  213. package/server/models/cdtk.js +1 -3
  214. package/server/models/cdtktheongay.js +1 -3
  215. package/server/models/cdvt.js +1 -5
  216. package/server/models/cdvtnpp.js +1 -6
  217. package/server/models/cdvttheongay.js +1 -5
  218. package/server/models/chamcong.js +1 -7
  219. package/server/models/checkin.js +1 -4
  220. package/server/models/checkinactivity.js +1 -3
  221. package/server/models/checkinkpi.js +1 -4
  222. package/server/models/checkinlocation.js +1 -2
  223. package/server/models/chitieukpi.js +1 -3
  224. package/server/models/chudethaoluan.js +1 -3
  225. package/server/models/ckgtluong.js +1 -2
  226. package/server/models/colleague.js +1 -2
  227. package/server/models/comment.js +1 -4
  228. package/server/models/congdoansx.js +1 -4
  229. package/server/models/congtacvien.js +1 -4
  230. package/server/models/congthuctinhgiaban.js +1 -8
  231. package/server/models/consultant.js +1 -4
  232. package/server/models/contract.js +1 -6
  233. package/server/models/counter.js +1 -2
  234. package/server/models/ctds.js +1 -5
  235. package/server/models/ctds2.js +1 -6
  236. package/server/models/currency.js +1 -3
  237. package/server/models/customer.js +1 -31
  238. package/server/models/databanle.js +1 -8
  239. package/server/models/datlich.js +1 -4
  240. package/server/models/department.js +1 -4
  241. package/server/models/dh2.js +1 -20
  242. package/server/models/diagram.js +1 -2
  243. package/server/models/dinhmucsx.js +1 -8
  244. package/server/models/dkhoc.js +1 -6
  245. package/server/models/dknphep.js +1 -2
  246. package/server/models/dmban.js +1 -4
  247. package/server/models/dmbp.js +1 -12
  248. package/server/models/dmca.js +1 -2
  249. package/server/models/dmchietkhau.js +1 -9
  250. package/server/models/dmchietkhauhd.js +1 -20
  251. package/server/models/dmcpmh.js +1 -2
  252. package/server/models/dmdiemthuong.js +1 -5
  253. package/server/models/dmdoi.js +1 -4
  254. package/server/models/dmdoituongdanhgia.js +1 -2
  255. package/server/models/dmdt.js +1 -8
  256. package/server/models/dmdvt.js +1 -3
  257. package/server/models/dmgiaban.js +1 -9
  258. package/server/models/dmgiamua.js +1 -5
  259. package/server/models/dmgiathitruong.js +1 -5
  260. package/server/models/dmgiathitruong_ngay.js +1 -2
  261. package/server/models/dmgiathitruong_theodoi.js +1 -2
  262. package/server/models/dmhoahonghd.js +1 -9
  263. package/server/models/dmhoahongnpp.js +1 -9
  264. package/server/models/dmkc.js +1 -3
  265. package/server/models/dmkho.js +1 -6
  266. package/server/models/dmkhuyenmai.js +1 -9
  267. package/server/models/dmkhuyenmaihd.js +1 -11
  268. package/server/models/dmletet.js +1 -2
  269. package/server/models/dmlo.js +1 -4
  270. package/server/models/dmloaicong.js +1 -4
  271. package/server/models/dmloaitask.js +1 -2
  272. package/server/models/dmloaits.js +1 -2
  273. package/server/models/dmnckkm.js +1 -4
  274. package/server/models/dmnghiepvu.js +1 -4
  275. package/server/models/dmnguonvon.js +1 -2
  276. package/server/models/dmnhnv.js +1 -4
  277. package/server/models/dmnv.js +1 -17
  278. package/server/models/dmnvt.js +1 -9
  279. package/server/models/dmphatdichvu.js +1 -5
  280. package/server/models/dmphi.js +1 -3
  281. package/server/models/dmqct.js +1 -3
  282. package/server/models/dmqddvt.js +1 -3
  283. package/server/models/dmtanggiamts.js +1 -3
  284. package/server/models/dmto.js +1 -4
  285. package/server/models/dmtt.js +1 -6
  286. package/server/models/dmvt.js +1 -17
  287. package/server/models/dmyt.js +1 -4
  288. package/server/models/dn0.js +1 -13
  289. package/server/models/dnm.js +1 -11
  290. package/server/models/dokho.js +1 -2
  291. package/server/models/domain.js +1 -2
  292. package/server/models/dvcs.js +1 -3
  293. package/server/models/ecomcategories.js +1 -3
  294. package/server/models/ecomcategories_cty.js +1 -3
  295. package/server/models/ecomproductlines.js +1 -2
  296. package/server/models/ecompromotion_flashsales.js +1 -2
  297. package/server/models/ecompromotion_freeships.js +1 -2
  298. package/server/models/email.js +1 -2
  299. package/server/models/endpoint.js +1 -1
  300. package/server/models/events.js +1 -3
  301. package/server/models/evoucher.js +1 -5
  302. package/server/models/experiencejourney.js +1 -2
  303. package/server/models/experiencejourneydata.js +1 -4
  304. package/server/models/experiencejourneypersona.js +1 -3
  305. package/server/models/experiencejourneystage.js +1 -2
  306. package/server/models/exportexceltemplate.js +1 -2
  307. package/server/models/fbconversation.js +1 -15
  308. package/server/models/fbmessage.js +1 -2
  309. package/server/models/fbpage.js +1 -2
  310. package/server/models/fbpost.js +1 -2
  311. package/server/models/fieldright.js +1 -2
  312. package/server/models/file.js +1 -4
  313. package/server/models/financialroadmap.js +1 -3
  314. package/server/models/flow.js +1 -2
  315. package/server/models/flowdata.js +1 -3
  316. package/server/models/folder.js +1 -4
  317. package/server/models/follow.js +1 -2
  318. package/server/models/form.js +1 -3
  319. package/server/models/forminfo.js +1 -5
  320. package/server/models/formvalue.js +1 -3
  321. package/server/models/giaoca.js +1 -4
  322. package/server/models/giatb.js +1 -3
  323. package/server/models/group.js +1 -11
  324. package/server/models/gt_ctgt.js +1 -4
  325. package/server/models/gt_hspb.js +1 -3
  326. package/server/models/gt_sltk.js +1 -3
  327. package/server/models/gt_thcppstk.js +1 -3
  328. package/server/models/hanmucton.js +1 -4
  329. package/server/models/hd1.js +1 -11
  330. package/server/models/hd2.js +1 -27
  331. package/server/models/hd3.js +1 -18
  332. package/server/models/hd4.js +1 -13
  333. package/server/models/hd7.js +1 -17
  334. package/server/models/hd8.js +1 -12
  335. package/server/models/hde.js +1 -11
  336. package/server/models/hlink.js +1 -2
  337. package/server/models/hlinkvalue.js +1 -2
  338. package/server/models/hmcn.js +1 -3
  339. package/server/models/hmcnct.js +1 -2
  340. package/server/models/hspbts.js +1 -4
  341. package/server/models/htl.js +1 -13
  342. package/server/models/importexceltemplate.js +1 -2
  343. package/server/models/introducebonus.js +1 -4
  344. package/server/models/introducecode.js +1 -3
  345. package/server/models/introducer.js +1 -4
  346. package/server/models/kbbtpb.js +1 -7
  347. package/server/models/kbmPttct.js +1 -4
  348. package/server/models/kbmTkgtgt.js +1 -5
  349. package/server/models/kbm_bcdkt.js +1 -4
  350. package/server/models/kbm_kqhdkd.js +1 -3
  351. package/server/models/kbm_lcttgt.js +1 -5
  352. package/server/models/kbm_lctttt.js +1 -4
  353. package/server/models/kbm_pttct.js +1 -4
  354. package/server/models/kbm_tkgtgt.js +1 -5
  355. package/server/models/kbmbcdkt.js +1 -4
  356. package/server/models/kbmbcqt.js +1 -4
  357. package/server/models/kbmkqhdkd.js +1 -3
  358. package/server/models/kbmlcttgt.js +1 -6
  359. package/server/models/kbmlctttt.js +1 -4
  360. package/server/models/kbmtmbctc.js +1 -4
  361. package/server/models/kehoachdtcp.js +1 -3
  362. package/server/models/kehoachmh.js +1 -8
  363. package/server/models/keyresult.js +1 -7
  364. package/server/models/khunghangthanhvien.js +1 -3
  365. package/server/models/label.js +1 -2
  366. package/server/models/labelinfo.js +1 -2
  367. package/server/models/lenhcapphat.js +1 -8
  368. package/server/models/lenhsx.js +1 -8
  369. package/server/models/lienhe.js +1 -4
  370. package/server/models/like_module.js +1 -2
  371. package/server/models/link.js +1 -2
  372. package/server/models/loaidiem.js +1 -2
  373. package/server/models/lock.js +1 -2
  374. package/server/models/log.js +1 -5
  375. package/server/models/mailaccount.js +1 -3
  376. package/server/models/mailgroup.js +1 -3
  377. package/server/models/mailreceived.js +1 -2
  378. package/server/models/mailschedule.js +1 -2
  379. package/server/models/mailsent.js +1 -2
  380. package/server/models/mailtemplate.js +1 -2
  381. package/server/models/maudanhgia.js +1 -2
  382. package/server/models/menuinfo.js +1 -2
  383. package/server/models/message.js +1 -8
  384. package/server/models/message2.js +1 -4
  385. package/server/models/message2setting.js +1 -3
  386. package/server/models/moduleinfo.js +1 -4
  387. package/server/models/momo.js +1 -17
  388. package/server/models/news.js +1 -3
  389. package/server/models/newsfeed.js +1 -4
  390. package/server/models/note.js +1 -2
  391. package/server/models/notification.js +1 -7
  392. package/server/models/okr.js +1 -4
  393. package/server/models/okrdiagram.js +1 -3
  394. package/server/models/onepay.js +1 -24
  395. package/server/models/opportunity.js +1 -4
  396. package/server/models/options.js +1 -2
  397. package/server/models/originimportid.js +1 -1
  398. package/server/models/otp.js +1 -1
  399. package/server/models/parameter.js +1 -2
  400. package/server/models/participant.js +1 -20
  401. package/server/models/partner.js +1 -1
  402. package/server/models/payload.js +1 -1
  403. package/server/models/pbl.js +1 -16
  404. package/server/models/pc0.js +1 -13
  405. package/server/models/pc1.js +1 -14
  406. package/server/models/pc2.js +1 -13
  407. package/server/models/pc3.js +1 -13
  408. package/server/models/pc5.js +1 -8
  409. package/server/models/pc6.js +1 -14
  410. package/server/models/pcl.js +1 -6
  411. package/server/models/pdn.js +1 -9
  412. package/server/models/pdx.js +1 -9
  413. package/server/models/pgh.js +1 -5
  414. package/server/models/phieudanhgia.js +1 -3
  415. package/server/models/pht.js +1 -8
  416. package/server/models/phucap.js +1 -4
  417. package/server/models/pkc.js +1 -6
  418. package/server/models/pkh.js +1 -6
  419. package/server/models/pkk.js +1 -10
  420. package/server/models/pkt.js +1 -12
  421. package/server/models/pn1.js +1 -17
  422. package/server/models/pn2.js +1 -11
  423. package/server/models/pn3.js +1 -13
  424. package/server/models/pn5.js +1 -14
  425. package/server/models/pn6.js +1 -14
  426. package/server/models/pn9.js +1 -17
  427. package/server/models/pnc.js +1 -10
  428. package/server/models/pnh.js +1 -12
  429. package/server/models/pnk.js +1 -10
  430. package/server/models/po1.js +1 -19
  431. package/server/models/ppb.js +1 -6
  432. package/server/models/profile.js +1 -4
  433. package/server/models/pt1.js +1 -12
  434. package/server/models/pt5.js +1 -8
  435. package/server/models/ptl.js +1 -6
  436. package/server/models/ptthanhtoan.js +1 -6
  437. package/server/models/purchase_contract.js +1 -17
  438. package/server/models/pxc.js +1 -9
  439. package/server/models/pxh.js +1 -12
  440. package/server/models/pxk.js +1 -10
  441. package/server/models/qts.js +1 -14
  442. package/server/models/qts_dieuchinh.js +1 -3
  443. package/server/models/qts_dieuchuyen.js +1 -4
  444. package/server/models/quanhuyen.js +1 -2
  445. package/server/models/reason.js +1 -2
  446. package/server/models/receivedinvoice.js +1 -2
  447. package/server/models/reportinfo.js +1 -5
  448. package/server/models/right.js +1 -4
  449. package/server/models/rpt.js +1 -2
  450. package/server/models/rptform.js +1 -5
  451. package/server/models/rptobject.js +1 -2
  452. package/server/models/sale_contract.js +1 -9
  453. package/server/models/schedule.js +1 -16
  454. package/server/models/schedule_log.js +1 -2
  455. package/server/models/service.js +1 -4
  456. package/server/models/shipbook.js +1 -12
  457. package/server/models/shortcut.js +1 -2
  458. package/server/models/smsaccount.js +1 -10
  459. package/server/models/smssend.js +1 -2
  460. package/server/models/so1.js +1 -22
  461. package/server/models/so2.js +1 -10
  462. package/server/models/so3.js +1 -9
  463. package/server/models/so5.js +1 -15
  464. package/server/models/so9.js +1 -19
  465. package/server/models/socai.js +1 -26
  466. package/server/models/socainpp.js +1 -18
  467. package/server/models/socaitc.js +1 -6
  468. package/server/models/socaitmp.js +1 -16
  469. package/server/models/socaitt.js +1 -4
  470. package/server/models/sodiemthuong.js +1 -4
  471. package/server/models/sokho.js +1 -28
  472. package/server/models/sokhocapphat.js +1 -18
  473. package/server/models/sokhokhongton.js +1 -19
  474. package/server/models/sokhonpp.js +1 -19
  475. package/server/models/sokhotc.js +1 -8
  476. package/server/models/sokhott.js +1 -18
  477. package/server/models/sophanbokh.js +1 -3
  478. package/server/models/sosanxuat.js +1 -5
  479. package/server/models/sotinhkh.js +1 -2
  480. package/server/models/spdd_ck.js +1 -3
  481. package/server/models/spdd_dk.js +1 -3
  482. package/server/models/step.js +1 -2
  483. package/server/models/strategicdiagram.js +1 -3
  484. package/server/models/strategicgoal.js +1 -4
  485. package/server/models/strategickpi.js +1 -6
  486. package/server/models/strategicobjective.js +1 -5
  487. package/server/models/strategicplan.js +1 -5
  488. package/server/models/subscribe.js +1 -2
  489. package/server/models/support.js +1 -2
  490. package/server/models/synctime.js +1 -2
  491. package/server/models/sysconfig.js +1 -2
  492. package/server/models/sysgroup.js +1 -2
  493. package/server/models/tableinfo.js +1 -3
  494. package/server/models/task.js +1 -9
  495. package/server/models/taskreg.js +1 -4
  496. package/server/models/tc.js +1 -2
  497. package/server/models/tdttco.js +1 -8
  498. package/server/models/tdttco_tt.js +1 -5
  499. package/server/models/tdttno.js +1 -8
  500. package/server/models/tdttno_tt.js +1 -5
  501. package/server/models/templaterpt.js +1 -2
  502. package/server/models/templatestore.js +1 -3
  503. package/server/models/templatevoucher.js +1 -3
  504. package/server/models/tinhthanh.js +1 -2
  505. package/server/models/tokens.js +1 -2
  506. package/server/models/tontucthoi.js +1 -9
  507. package/server/models/trangthai.js +1 -4
  508. package/server/models/trangthaiapp.js +1 -4
  509. package/server/models/transaction.js +1 -16
  510. package/server/models/trialinfo.js +1 -2
  511. package/server/models/user.js +1 -38
  512. package/server/models/usergroup.js +1 -7
  513. package/server/models/vanchuyen.js +1 -12
  514. package/server/models/vat.js +1 -3
  515. package/server/models/vatra.js +1 -6
  516. package/server/models/vatvao.js +1 -6
  517. package/server/models/versioninfo.js +1 -2
  518. package/server/models/vietqrbanks.js +1 -2
  519. package/server/models/vsocai.js +1 -6
  520. package/server/models/waitevent.js +1 -2
  521. package/server/models/wallet.js +1 -8
  522. package/server/models/warranty.js +1 -3
  523. package/server/models/warrantyclaim.js +1 -2
  524. package/server/models/warrantypolicy.js +1 -1
  525. package/server/models/xaphuong.js +1 -2
  526. package/server/models/xhd.js +1 -10
  527. package/server/models/ytdd_ck.js +1 -4
  528. package/server/models/ytdd_dk.js +1 -4
  529. package/server/models/zalo.js +1 -17
  530. package/server/modules/lists/bg-cddiem.js +1 -6
  531. package/server/modules/lists/bg-cddt.js +1 -7
  532. package/server/modules/lists/bg-cdkh.js +1 -11
  533. package/server/modules/lists/bg-cdnphep.js +1 -6
  534. package/server/modules/lists/bg-cdtk.js +1 -9
  535. package/server/modules/lists/bg-cdvt.js +1 -8
  536. package/server/modules/lists/bg-cdvtnpp.js +1 -8
  537. package/server/modules/lists/ls-account.js +1 -4
  538. package/server/modules/lists/ls-afflink.js +1 -3
  539. package/server/modules/lists/ls-approve.js +1 -4
  540. package/server/modules/lists/ls-assabcihandler.js +1 -3
  541. package/server/modules/lists/ls-assbank.js +1 -3
  542. package/server/modules/lists/ls-assbooking.js +1 -20
  543. package/server/modules/lists/ls-assbuy.js +1 -8
  544. package/server/modules/lists/ls-asscashwithdraw.js +1 -8
  545. package/server/modules/lists/ls-assinvestment.js +1 -31
  546. package/server/modules/lists/ls-assissue.js +1 -3
  547. package/server/modules/lists/ls-asskey.js +1 -41
  548. package/server/modules/lists/ls-assneedtobuy.js +1 -10
  549. package/server/modules/lists/ls-assperiod.js +1 -19
  550. package/server/modules/lists/ls-assproduct.js +1 -9
  551. package/server/modules/lists/ls-assprofitsharing.js +1 -8
  552. package/server/modules/lists/ls-assreceiver.js +1 -3
  553. package/server/modules/lists/ls-assrequest.js +1 -4
  554. package/server/modules/lists/ls-asssell.js +1 -13
  555. package/server/modules/lists/ls-asstransaction.js +1 -3
  556. package/server/modules/lists/ls-asstransfer.js +1 -3
  557. package/server/modules/lists/ls-assuser_identity.js +1 -1
  558. package/server/modules/lists/ls-asswithdraw.js +1 -12
  559. package/server/modules/lists/ls-bangtinhluong.js +1 -2
  560. package/server/modules/lists/ls-bds_area.js +1 -3
  561. package/server/modules/lists/ls-bds_block.js +1 -1
  562. package/server/modules/lists/ls-bds_building.js +1 -3
  563. package/server/modules/lists/ls-bds_dmnhbds.js +1 -6
  564. package/server/modules/lists/ls-bds_floor.js +1 -2
  565. package/server/modules/lists/ls-bds_floordetail.js +1 -19
  566. package/server/modules/lists/ls-bds_nhadat.js +1 -16
  567. package/server/modules/lists/ls-bds_nhomnhadat.js +1 -1
  568. package/server/modules/lists/ls-bds_phanloainhadat.js +1 -1
  569. package/server/modules/lists/ls-calllog.js +1 -4
  570. package/server/modules/lists/ls-campaign.js +1 -1
  571. package/server/modules/lists/ls-cart.js +1 -14
  572. package/server/modules/lists/ls-chamcong.js +1 -3
  573. package/server/modules/lists/ls-checkin.js +1 -12
  574. package/server/modules/lists/ls-checkinactivity.js +1 -8
  575. package/server/modules/lists/ls-checkinkpi.js +1 -3
  576. package/server/modules/lists/ls-checkinlocation.js +1 -1
  577. package/server/modules/lists/ls-chitieukpi.js +1 -1
  578. package/server/modules/lists/ls-chudethaoluan.js +1 -1
  579. package/server/modules/lists/ls-ckgtluong.js +1 -1
  580. package/server/modules/lists/ls-comment.js +1 -9
  581. package/server/modules/lists/ls-congdoansx.js +1 -3
  582. package/server/modules/lists/ls-congtacvien.js +1 -5
  583. package/server/modules/lists/ls-consultant.js +1 -2
  584. package/server/modules/lists/ls-contract.js +1 -7
  585. package/server/modules/lists/ls-ctds.js +1 -4
  586. package/server/modules/lists/ls-ctds2.js +1 -4
  587. package/server/modules/lists/ls-currency.js +1 -1
  588. package/server/modules/lists/ls-customer.js +1 -21
  589. package/server/modules/lists/ls-datlich.js +1 -9
  590. package/server/modules/lists/ls-dckhauhaots.js +1 -3
  591. package/server/modules/lists/ls-department.js +1 -3
  592. package/server/modules/lists/ls-diagram.js +1 -1
  593. package/server/modules/lists/ls-dkhoc.js +1 -6
  594. package/server/modules/lists/ls-dknphep.js +1 -1
  595. package/server/modules/lists/ls-dmban.js +1 -4
  596. package/server/modules/lists/ls-dmbp.js +1 -7
  597. package/server/modules/lists/ls-dmca.js +1 -1
  598. package/server/modules/lists/ls-dmchietkhau.js +1 -19
  599. package/server/modules/lists/ls-dmchietkhauhd.js +1 -4
  600. package/server/modules/lists/ls-dmchucvu.js +1 -2
  601. package/server/modules/lists/ls-dmcpmh.js +1 -1
  602. package/server/modules/lists/ls-dmdiemthuong.js +1 -4
  603. package/server/modules/lists/ls-dmdoi.js +1 -4
  604. package/server/modules/lists/ls-dmdoituongdanhgia.js +1 -1
  605. package/server/modules/lists/ls-dmdt.js +1 -11
  606. package/server/modules/lists/ls-dmdvt.js +1 -2
  607. package/server/modules/lists/ls-dmgiaban.js +1 -4
  608. package/server/modules/lists/ls-dmgiamua.js +1 -4
  609. package/server/modules/lists/ls-dmgiathitruong.js +1 -15
  610. package/server/modules/lists/ls-dmgiathitruong_ngay.js +1 -2
  611. package/server/modules/lists/ls-dmgiathitruong_theodoi.js +1 -1
  612. package/server/modules/lists/ls-dmhoahonghd.js +1 -1
  613. package/server/modules/lists/ls-dmhoahongnpp.js +1 -1
  614. package/server/modules/lists/ls-dmkc.js +1 -3
  615. package/server/modules/lists/ls-dmkho.js +1 -1
  616. package/server/modules/lists/ls-dmkhuyenmai.js +1 -5
  617. package/server/modules/lists/ls-dmkhuyenmaihd.js +1 -3
  618. package/server/modules/lists/ls-dmletet.js +1 -1
  619. package/server/modules/lists/ls-dmlo.js +1 -1
  620. package/server/modules/lists/ls-dmloaicong.js +1 -1
  621. package/server/modules/lists/ls-dmloaits.js +1 -1
  622. package/server/modules/lists/ls-dmnckkm.js +1 -7
  623. package/server/modules/lists/ls-dmnghiepvu.js +1 -1
  624. package/server/modules/lists/ls-dmnguonvon.js +1 -1
  625. package/server/modules/lists/ls-dmnhnv.js +1 -6
  626. package/server/modules/lists/ls-dmnhtask.js +1 -5
  627. package/server/modules/lists/ls-dmnkh.js +1 -6
  628. package/server/modules/lists/ls-dmntt.js +1 -6
  629. package/server/modules/lists/ls-dmnv.js +1 -17
  630. package/server/modules/lists/ls-dmnvt.js +1 -8
  631. package/server/modules/lists/ls-dmphatdichvu.js +1 -3
  632. package/server/modules/lists/ls-dmphi.js +1 -6
  633. package/server/modules/lists/ls-dmqct.js +1 -2
  634. package/server/modules/lists/ls-dmqddvt.js +1 -3
  635. package/server/modules/lists/ls-dmtanggiamts.js +1 -1
  636. package/server/modules/lists/ls-dmto.js +1 -5
  637. package/server/modules/lists/ls-dmtt.js +1 -7
  638. package/server/modules/lists/ls-dmvt.js +1 -68
  639. package/server/modules/lists/ls-dmyt.js +1 -1
  640. package/server/modules/lists/ls-dokho.js +1 -1
  641. package/server/modules/lists/ls-dvcs.js +1 -1
  642. package/server/modules/lists/ls-ecomcategories.js +1 -5
  643. package/server/modules/lists/ls-ecomcategories_cty.js +1 -5
  644. package/server/modules/lists/ls-email.js +1 -4
  645. package/server/modules/lists/ls-events.js +1 -3
  646. package/server/modules/lists/ls-evoucher.js +1 -3
  647. package/server/modules/lists/ls-experiencejourney.js +1 -1
  648. package/server/modules/lists/ls-experiencejourneydata.js +1 -3
  649. package/server/modules/lists/ls-experiencejourneypersona.js +1 -4
  650. package/server/modules/lists/ls-experiencejourneystage.js +1 -1
  651. package/server/modules/lists/ls-fbconversation.js +1 -2
  652. package/server/modules/lists/ls-fbmessage.js +1 -2
  653. package/server/modules/lists/ls-fbpage.js +1 -11
  654. package/server/modules/lists/ls-fbpost.js +1 -2
  655. package/server/modules/lists/ls-file.js +1 -31
  656. package/server/modules/lists/ls-financialroadmap.js +1 -3
  657. package/server/modules/lists/ls-flow.js +1 -6
  658. package/server/modules/lists/ls-flowdata.js +1 -1
  659. package/server/modules/lists/ls-folder.js +1 -1
  660. package/server/modules/lists/ls-form.js +1 -1
  661. package/server/modules/lists/ls-forminfo.js +1 -1
  662. package/server/modules/lists/ls-formvalue.js +1 -1
  663. package/server/modules/lists/ls-giaoca.js +1 -4
  664. package/server/modules/lists/ls-group.js +1 -5
  665. package/server/modules/lists/ls-hlink.js +1 -1
  666. package/server/modules/lists/ls-hlinkvalue.js +1 -1
  667. package/server/modules/lists/ls-hmcn.js +1 -2
  668. package/server/modules/lists/ls-hspbts.js +1 -3
  669. package/server/modules/lists/ls-introducebonus.js +1 -4
  670. package/server/modules/lists/ls-introducecode.js +1 -10
  671. package/server/modules/lists/ls-introducer.js +1 -20
  672. package/server/modules/lists/ls-kbm-bcdkt.js +1 -1
  673. package/server/modules/lists/ls-kbm-bcqt.js +1 -5
  674. package/server/modules/lists/ls-kbm-kqhdkd.js +1 -1
  675. package/server/modules/lists/ls-kbm-lcttgt.js +1 -1
  676. package/server/modules/lists/ls-kbm-lctttt.js +1 -1
  677. package/server/modules/lists/ls-kbm-pttct.js +1 -3
  678. package/server/modules/lists/ls-kbm-tkgtgt.js +1 -3
  679. package/server/modules/lists/ls-kbm-tmbctc.js +1 -3
  680. package/server/modules/lists/ls-kehoachdtcp.js +1 -4
  681. package/server/modules/lists/ls-keyresult.js +1 -7
  682. package/server/modules/lists/ls-khunghangthanhvien.js +1 -1
  683. package/server/modules/lists/ls-kygui.js +1 -19
  684. package/server/modules/lists/ls-label.js +1 -1
  685. package/server/modules/lists/ls-lienhe.js +1 -4
  686. package/server/modules/lists/ls-like-module.js +1 -1
  687. package/server/modules/lists/ls-link.js +1 -1
  688. package/server/modules/lists/ls-loaidiem.js +1 -1
  689. package/server/modules/lists/ls-lock.js +1 -1
  690. package/server/modules/lists/ls-log.js +1 -3
  691. package/server/modules/lists/ls-mailaccount.js +1 -5
  692. package/server/modules/lists/ls-mailreceived.js +1 -5
  693. package/server/modules/lists/ls-mailschedule.js +1 -7
  694. package/server/modules/lists/ls-mailsent.js +1 -4
  695. package/server/modules/lists/ls-mailtemplate.js +1 -4
  696. package/server/modules/lists/ls-maudanhgia.js +1 -3
  697. package/server/modules/lists/ls-message2.js +1 -8
  698. package/server/modules/lists/ls-message2setting.js +1 -5
  699. package/server/modules/lists/ls-news.js +1 -7
  700. package/server/modules/lists/ls-newsfeed.js +1 -4
  701. package/server/modules/lists/ls-note.js +1 -6
  702. package/server/modules/lists/ls-okr.js +1 -5
  703. package/server/modules/lists/ls-okrdiagram.js +1 -1
  704. package/server/modules/lists/ls-opportunity.js +1 -5
  705. package/server/modules/lists/ls-options.js +1 -4
  706. package/server/modules/lists/ls-parameter.js +1 -3
  707. package/server/modules/lists/ls-participant.js +1 -10
  708. package/server/modules/lists/ls-phieudanhgia.js +1 -7
  709. package/server/modules/lists/ls-phucap.js +1 -2
  710. package/server/modules/lists/ls-profile.js +1 -1
  711. package/server/modules/lists/ls-ptthanhtoan.js +1 -3
  712. package/server/modules/lists/ls-qts-dieuchinh.js +1 -2
  713. package/server/modules/lists/ls-qts-dieuchuyen.js +1 -8
  714. package/server/modules/lists/ls-reason.js +1 -1
  715. package/server/modules/lists/ls-rpt.js +1 -5
  716. package/server/modules/lists/ls-rptform.js +1 -4
  717. package/server/modules/lists/ls-service.js +1 -3
  718. package/server/modules/lists/ls-shortcut.js +1 -1
  719. package/server/modules/lists/ls-smsaccount.js +1 -1
  720. package/server/modules/lists/ls-smssend.js +1 -3
  721. package/server/modules/lists/ls-sosanxuat.js +1 -4
  722. package/server/modules/lists/ls-step.js +1 -1
  723. package/server/modules/lists/ls-strategicdiagram.js +1 -1
  724. package/server/modules/lists/ls-strategicgoal.js +1 -3
  725. package/server/modules/lists/ls-strategickpi.js +1 -7
  726. package/server/modules/lists/ls-strategicobjective.js +1 -3
  727. package/server/modules/lists/ls-strategicplan.js +1 -6
  728. package/server/modules/lists/ls-support.js +1 -3
  729. package/server/modules/lists/ls-task.js +1 -34
  730. package/server/modules/lists/ls-taskreg.js +1 -2
  731. package/server/modules/lists/ls-tc.js +1 -1
  732. package/server/modules/lists/ls-templaterpt.js +1 -5
  733. package/server/modules/lists/ls-templatevoucher.js +1 -1
  734. package/server/modules/lists/ls-tontucthoi.js +1 -3
  735. package/server/modules/lists/ls-trangthaiapp.js +1 -3
  736. package/server/modules/lists/ls-transaction.js +1 -4
  737. package/server/modules/lists/ls-usergroup.js +1 -7
  738. package/server/modules/lists/ls-vat.js +1 -1
  739. package/server/modules/lists/ls-vatra.js +1 -5
  740. package/server/modules/lists/ls-vatvao.js +1 -6
  741. package/server/modules/lists/ls-waitevent.js +1 -1
  742. package/server/modules/lists/ls-warranty.js +1 -4
  743. package/server/modules/lists/ls_hanmucton.js +1 -3
  744. package/server/modules/lists/ls_hspb.js +1 -4
  745. package/server/modules/lists/ls_spdd_ck.js +1 -3
  746. package/server/modules/lists/ls_spdd_dk.js +1 -3
  747. package/server/modules/lists/ls_ytdd_ck.js +1 -4
  748. package/server/modules/lists/ls_ytdd_dk.js +1 -4
  749. package/server/modules/lists/sys-attend.js +1 -4
  750. package/server/modules/lists/sys-follow.js +1 -4
  751. package/server/modules/lists/sys-right.js +1 -2
  752. package/server/modules/public/app.js +1 -4
  753. package/server/modules/public/approve.js +1 -37
  754. package/server/modules/public/callin.js +1 -7
  755. package/server/modules/public/comment.js +1 -5
  756. package/server/modules/public/dmnvt.js +1 -4
  757. package/server/modules/public/dmvt.js +1 -9
  758. package/server/modules/public/file.js +1 -11
  759. package/server/modules/public/form.js +1 -7
  760. package/server/modules/public/forminfo.js +1 -1
  761. package/server/modules/public/group.js +1 -4
  762. package/server/modules/public/hlink.js +1 -3
  763. package/server/modules/public/introducecode.js +1 -1
  764. package/server/modules/public/listinfo.js +1 -1
  765. package/server/modules/public/media-webhook.js +1 -1
  766. package/server/modules/public/partner.js +1 -1
  767. package/server/modules/public/paymentCallback.js +1 -32
  768. package/server/modules/public/province.js +1 -1
  769. package/server/modules/public/ptthanhtoan.js +1 -4
  770. package/server/modules/public/subscribe.js +1 -30
  771. package/server/modules/public/support.js +1 -3
  772. package/server/modules/public/tableinfo.js +1 -1
  773. package/server/modules/public/trialinfo.js +1 -4
  774. package/server/modules/public/versioninfo.js +1 -1
  775. package/server/modules/reports/calc-tinhgiatb.js +1 -6
  776. package/server/modules/reports/calc-tinhgiathanh.js +1 -6
  777. package/server/modules/reports/calc-tinhkhauhaots.js +1 -3
  778. package/server/modules/reports/calc-tinhluong.js +1 -37
  779. package/server/modules/reports/rp-analyzedata.js +1 -6
  780. package/server/modules/reports/rp-assbonus.js +1 -4
  781. package/server/modules/reports/rp-assinterest.js +1 -8
  782. package/server/modules/reports/rp-assproductowners.js +1 -3
  783. package/server/modules/reports/rp-asssupply.js +1 -1
  784. package/server/modules/reports/rp-asstransferlog.js +1 -10
  785. package/server/modules/reports/rp-banggiatb.js +1 -3
  786. package/server/modules/reports/rp-bangtinhkhauhao.js +1 -6
  787. package/server/modules/reports/rp-baocaokhachhang.js +1 -6
  788. package/server/modules/reports/rp-bcdkt.js +1 -11
  789. package/server/modules/reports/rp-bcintroducebonus.js +1 -4
  790. package/server/modules/reports/rp-bckhtiemnang.js +1 -3
  791. package/server/modules/reports/rp-bcqt.js +1 -85
  792. package/server/modules/reports/rp-bkct.js +1 -13
  793. package/server/modules/reports/rp-bkshipbook.js +1 -8
  794. package/server/modules/reports/rp-bkvanchuyen.js +1 -8
  795. package/server/modules/reports/rp-bkvatra.js +1 -7
  796. package/server/modules/reports/rp-bkvatvao.js +1 -7
  797. package/server/modules/reports/rp-capnhatsocaitc.js +1 -4
  798. package/server/modules/reports/rp-cdpsdiem.js +1 -4
  799. package/server/modules/reports/rp-cdpsdt.js +1 -5
  800. package/server/modules/reports/rp-cdpskh.js +1 -7
  801. package/server/modules/reports/rp-cdpsnphep.js +1 -3
  802. package/server/modules/reports/rp-cdpstk.js +1 -4
  803. package/server/modules/reports/rp-chitietchitientheohoadon.js +1 -12
  804. package/server/modules/reports/rp-chitiettaisan.js +1 -13
  805. package/server/modules/reports/rp-chitietthutientheohoadon.js +1 -13
  806. package/server/modules/reports/rp-ckcn.js +1 -3
  807. package/server/modules/reports/rp-ckdiem.js +1 -2
  808. package/server/modules/reports/rp-cktk.js +1 -3
  809. package/server/modules/reports/rp-ckvt.js +1 -10
  810. package/server/modules/reports/rp-ckvttheokho.js +1 -4
  811. package/server/modules/reports/rp-ckvttheotg.js +1 -4
  812. package/server/modules/reports/rp-ckvttt.js +1 -3
  813. package/server/modules/reports/rp-congnophaithutheotuoino.js +1 -3
  814. package/server/modules/reports/rp-congnophaitratheotuoino.js +1 -3
  815. package/server/modules/reports/rp-congnosapthu.js +1 -4
  816. package/server/modules/reports/rp-congnosaptra.js +1 -4
  817. package/server/modules/reports/rp-congviectheobp.js +1 -9
  818. package/server/modules/reports/rp-congviectheodt.js +1 -8
  819. package/server/modules/reports/rp-congviectheokh.js +1 -8
  820. package/server/modules/reports/rp-congviectheonv.js +1 -9
  821. package/server/modules/reports/rp-congviectheotimeline.js +1 -6
  822. package/server/modules/reports/rp-ctbanle.js +1 -15
  823. package/server/modules/reports/rp-ctbanle2.js +1 -20
  824. package/server/modules/reports/rp-ctbanlectv.js +1 -20
  825. package/server/modules/reports/rp-ctbanlenpp.js +1 -24
  826. package/server/modules/reports/rp-ctdanhgianhanvien.js +1 -8
  827. package/server/modules/reports/rp-cthangbanbitralai.js +1 -4
  828. package/server/modules/reports/rp-ctmuahang.js +1 -7
  829. package/server/modules/reports/rp-cttralaihang.js +1 -4
  830. package/server/modules/reports/rp-databanle.js +1 -10
  831. package/server/modules/reports/rp-diemthuong.js +1 -2
  832. package/server/modules/reports/rp-dkcn.js +1 -3
  833. package/server/modules/reports/rp-dktk.js +1 -2
  834. package/server/modules/reports/rp-dsnhanviencm.js +1 -9
  835. package/server/modules/reports/rp-dsnhanvientb.js +1 -9
  836. package/server/modules/reports/rp-dtbanlekempk.js +1 -9
  837. package/server/modules/reports/rp-dtbanletheoct.js +1 -23
  838. package/server/modules/reports/rp-dtbanletheoctkempk.js +1 -25
  839. package/server/modules/reports/rp-dtbanletheokh.js +1 -20
  840. package/server/modules/reports/rp-dtbanletheokhnpp.js +1 -19
  841. package/server/modules/reports/rp-dtbanletheokho.js +1 -18
  842. package/server/modules/reports/rp-dtbanletheonam.js +1 -3
  843. package/server/modules/reports/rp-dtbanletheongay.js +1 -1
  844. package/server/modules/reports/rp-dtbanletheonpp.js +1 -23
  845. package/server/modules/reports/rp-dtbanletheonv.js +1 -19
  846. package/server/modules/reports/rp-dtbanletheoquy.js +1 -3
  847. package/server/modules/reports/rp-dtbanletheosp.js +1 -8
  848. package/server/modules/reports/rp-dtbanletheospnpp.js +1 -6
  849. package/server/modules/reports/rp-dtbanletheothang.js +1 -3
  850. package/server/modules/reports/rp-dtbanletheothungan.js +1 -12
  851. package/server/modules/reports/rp-dtbanletheovt.js +1 -2
  852. package/server/modules/reports/rp-dtbanletheovtnpp.js +1 -2
  853. package/server/modules/reports/rp-dutoanthuchitheodt.js +1 -4
  854. package/server/modules/reports/rp-getPXC2PNC.js +1 -8
  855. package/server/modules/reports/rp-getariseofaccountsbymonth.js +1 -4
  856. package/server/modules/reports/rp-getbtpb.js +1 -6
  857. package/server/modules/reports/rp-getcashbycashier.js +1 -7
  858. package/server/modules/reports/rp-getcschietkhau.js +1 -5
  859. package/server/modules/reports/rp-getdinhmuc4lenhcp.js +1 -7
  860. package/server/modules/reports/rp-getdinhmuc4pxk.js +1 -9
  861. package/server/modules/reports/rp-getdk4pht.js +1 -8
  862. package/server/modules/reports/rp-getdk4pkc.js +1 -9
  863. package/server/modules/reports/rp-getdttheoca.js +1 -5
  864. package/server/modules/reports/rp-getinvoice2pay.js +1 -4
  865. package/server/modules/reports/rp-getinvoice2receive.js +1 -4
  866. package/server/modules/reports/rp-getinvoice2return.js +1 -5
  867. package/server/modules/reports/rp-getinvoice2return_bl.js +1 -6
  868. package/server/modules/reports/rp-getkehoachmh4lenhcp.js +1 -4
  869. package/server/modules/reports/rp-getkhauhao.js +1 -7
  870. package/server/modules/reports/rp-getluong.js +1 -8
  871. package/server/modules/reports/rp-getluongchuyen.js +1 -5
  872. package/server/modules/reports/rp-getpn2fee.js +1 -5
  873. package/server/modules/reports/rp-getpn2return.js +1 -5
  874. package/server/modules/reports/rp-getthanhpham4pnk.js +1 -7
  875. package/server/modules/reports/rp-getvc2xhd.js +1 -11
  876. package/server/modules/reports/rp-gt_cpnvltt.js +1 -6
  877. package/server/modules/reports/rp-hangbanbitralai.js +1 -5
  878. package/server/modules/reports/rp-hangthanhvien.js +1 -3
  879. package/server/modules/reports/rp-hoadonbanhangtheohantt.js +1 -5
  880. package/server/modules/reports/rp-hoadonmuahangtheohantt.js +1 -5
  881. package/server/modules/reports/rp-hoahong.js +1 -15
  882. package/server/modules/reports/rp-kcsns.js +1 -19
  883. package/server/modules/reports/rp-kgchamcong.js +1 -7
  884. package/server/modules/reports/rp-khoaso.js +1 -12
  885. package/server/modules/reports/rp-kiemtrasocaitcvssocai.js +1 -6
  886. package/server/modules/reports/rp-kqdanhgianhanvien.js +1 -5
  887. package/server/modules/reports/rp-kqhdkd.js +1 -7
  888. package/server/modules/reports/rp-lcttgt.js +1 -17
  889. package/server/modules/reports/rp-lctttt.js +1 -11
  890. package/server/modules/reports/rp-linkslist.js +1 -4
  891. package/server/modules/reports/rp-phanbochitienchohoadon.js +1 -11
  892. package/server/modules/reports/rp-phanbothutienchohoadon.js +1 -10
  893. package/server/modules/reports/rp-ptbitralai.js +1 -7
  894. package/server/modules/reports/rp-ptcttct.js +1 -22
  895. package/server/modules/reports/rp-ptdonhang.js +1 -8
  896. package/server/modules/reports/rp-pttct.js +1 -49
  897. package/server/modules/reports/rp-pttctkho.js +1 -32
  898. package/server/modules/reports/rp-pttctkho2.js +1 -29
  899. package/server/modules/reports/rp-referredusers.js +1 -1
  900. package/server/modules/reports/rp-sctbhxh.js +1 -4
  901. package/server/modules/reports/rp-sctcnkh.js +1 -17
  902. package/server/modules/reports/rp-sctdiem.js +1 -3
  903. package/server/modules/reports/rp-sctdt.js +1 -7
  904. package/server/modules/reports/rp-sctdtcp.js +1 -11
  905. package/server/modules/reports/rp-sctluong.js +1 -4
  906. package/server/modules/reports/rp-sctthuetncn.js +1 -4
  907. package/server/modules/reports/rp-scttk.js +1 -7
  908. package/server/modules/reports/rp-sctvt.js +1 -5
  909. package/server/modules/reports/rp-sctvt_sl.js +1 -5
  910. package/server/modules/reports/rp-sctvtnpp.js +1 -6
  911. package/server/modules/reports/rp-sctvttt.js +1 -5
  912. package/server/modules/reports/rp-search.js +1 -4
  913. package/server/modules/reports/rp-socai.js +1 -6
  914. package/server/modules/reports/rp-socaitk.js +1 -7
  915. package/server/modules/reports/rp-sochut.js +1 -7
  916. package/server/modules/reports/rp-sokho.js +1 -7
  917. package/server/modules/reports/rp-sokhott.js +1 -5
  918. package/server/modules/reports/rp-sonkbh.js +1 -5
  919. package/server/modules/reports/rp-sonkc.js +1 -6
  920. package/server/modules/reports/rp-sonkct.js +1 -5
  921. package/server/modules/reports/rp-sonkmh.js +1 -5
  922. package/server/modules/reports/rp-sonktt.js +1 -5
  923. package/server/modules/reports/rp-soquy.js +1 -11
  924. package/server/modules/reports/rp-sosanhkhvatt.js +1 -13
  925. package/server/modules/reports/rp-sosanhkhvatt2.js +1 -6
  926. package/server/modules/reports/rp-sotaisan.js +1 -13
  927. package/server/modules/reports/rp-sotiengui.js +1 -7
  928. package/server/modules/reports/rp-taodinhmuctudkhoc.js +1 -5
  929. package/server/modules/reports/rp-thbanhangkempk.js +1 -28
  930. package/server/modules/reports/rp-thdanhgianhanvien.js +1 -9
  931. package/server/modules/reports/rp-thgt.js +1 -6
  932. package/server/modules/reports/rp-thnxt.js +1 -12
  933. package/server/modules/reports/rp-thnxt_sl.js +1 -9
  934. package/server/modules/reports/rp-thnxtnpp.js +1 -10
  935. package/server/modules/reports/rp-thnxttt.js +1 -9
  936. package/server/modules/reports/rp-tkbanhangtheogioithieu.js +1 -9
  937. package/server/modules/reports/rp-tkgioithieukh.js +1 -4
  938. package/server/modules/reports/rp-tkgtgt.js +1 -7
  939. package/server/modules/reports/rp-tmbctc.js +1 -20
  940. package/server/modules/reports/rp-tonghopbanhang.js +1 -6
  941. package/server/modules/reports/rp-tonghopmuahang.js +1 -5
  942. package/server/modules/reports/rp-tonghoptralaihang.js +1 -5
  943. package/server/modules/reports/rp-tongquanbanle.js +1 -20
  944. package/server/modules/reports/rp-tongquanbds.js +1 -3
  945. package/server/modules/reports/rp-tongquancongty.js +1 -6
  946. package/server/modules/reports/rp-tongquanctvnpp.js +1 -12
  947. package/server/modules/reports/rp-tongquannvbh.js +1 -14
  948. package/server/modules/reports/rp-tongquannvnpp.js +1 -5
  949. package/server/modules/reports/rp-uoctinhnvl.js +1 -11
  950. package/server/modules/reports/rp-wallet.js +1 -3
  951. package/server/modules/reports/rpt-tkdiemtichluy.js +1 -9
  952. package/server/modules/systems/sys-app.js +1 -30
  953. package/server/modules/systems/sys-colleague.js +1 -11
  954. package/server/modules/systems/sys-domain.js +1 -4
  955. package/server/modules/systems/sys-ecomproductlines.js +1 -1
  956. package/server/modules/systems/sys-exportexceltemplate.js +1 -4
  957. package/server/modules/systems/sys-fieldright.js +1 -3
  958. package/server/modules/systems/sys-importexceltemplate.js +1 -4
  959. package/server/modules/systems/sys-labelinfo.js +1 -4
  960. package/server/modules/systems/sys-listinfo.js +1 -10
  961. package/server/modules/systems/sys-menuinfo.js +1 -4
  962. package/server/modules/systems/sys-message.js +1 -14
  963. package/server/modules/systems/sys-moduleinfo.js +1 -4
  964. package/server/modules/systems/sys-notification.js +1 -8
  965. package/server/modules/systems/sys-quanhuyen.js +1 -4
  966. package/server/modules/systems/sys-reportinfo.js +1 -4
  967. package/server/modules/systems/sys-rptobject.js +1 -3
  968. package/server/modules/systems/sys-schedule.js +1 -11
  969. package/server/modules/systems/sys-sysconfig.js +1 -3
  970. package/server/modules/systems/sys-sysgroup.js +1 -3
  971. package/server/modules/systems/sys-tableinfo.js +1 -3
  972. package/server/modules/systems/sys-templatestore.js +1 -5
  973. package/server/modules/systems/sys-tinhthanh.js +1 -4
  974. package/server/modules/systems/sys-token.js +1 -3
  975. package/server/modules/systems/sys-trangthai.js +1 -4
  976. package/server/modules/systems/sys-trialinfo.js +1 -3
  977. package/server/modules/systems/sys-user.js +1 -45
  978. package/server/modules/systems/sys-users.js +1 -10
  979. package/server/modules/systems/sys-versioninfo.js +1 -3
  980. package/server/modules/systems/sys-vietqrbanks.js +1 -4
  981. package/server/modules/systems/sys-xaphuong.js +1 -4
  982. package/server/modules/vouchers/vo-banggiaban.js +1 -5
  983. package/server/modules/vouchers/vo-bc1.js +1 -33
  984. package/server/modules/vouchers/vo-bc5.js +1 -15
  985. package/server/modules/vouchers/vo-bg1.js +1 -10
  986. package/server/modules/vouchers/vo-bg2.js +1 -12
  987. package/server/modules/vouchers/vo-bn1.js +1 -35
  988. package/server/modules/vouchers/vo-bn5.js +1 -15
  989. package/server/modules/vouchers/vo-dh2.js +1 -35
  990. package/server/modules/vouchers/vo-dinhmucsx.js +1 -6
  991. package/server/modules/vouchers/vo-dkb.js +1 -21
  992. package/server/modules/vouchers/vo-dn0.js +1 -9
  993. package/server/modules/vouchers/vo-dnm.js +1 -21
  994. package/server/modules/vouchers/vo-hd1.js +1 -36
  995. package/server/modules/vouchers/vo-hd2.js +1 -107
  996. package/server/modules/vouchers/vo-hd3.js +1 -44
  997. package/server/modules/vouchers/vo-hd4.js +1 -13
  998. package/server/modules/vouchers/vo-hd7.js +1 -29
  999. package/server/modules/vouchers/vo-hd8.js +1 -29
  1000. package/server/modules/vouchers/vo-hde.js +1 -40
  1001. package/server/modules/vouchers/vo-htl.js +1 -11
  1002. package/server/modules/vouchers/vo-kbbtpb.js +1 -6
  1003. package/server/modules/vouchers/vo-kehoachmh.js +1 -13
  1004. package/server/modules/vouchers/vo-lenhcapphat.js +1 -10
  1005. package/server/modules/vouchers/vo-lenhsx.js +1 -12
  1006. package/server/modules/vouchers/vo-pbl.js +1 -93
  1007. package/server/modules/vouchers/vo-pc0.js +1 -14
  1008. package/server/modules/vouchers/vo-pc1.js +1 -31
  1009. package/server/modules/vouchers/vo-pc2.js +1 -24
  1010. package/server/modules/vouchers/vo-pc3.js +1 -14
  1011. package/server/modules/vouchers/vo-pc5.js +1 -15
  1012. package/server/modules/vouchers/vo-pc6.js +1 -19
  1013. package/server/modules/vouchers/vo-pcl.js +1 -7
  1014. package/server/modules/vouchers/vo-pdn.js +1 -11
  1015. package/server/modules/vouchers/vo-pdx.js +1 -9
  1016. package/server/modules/vouchers/vo-pgh.js +1 -19
  1017. package/server/modules/vouchers/vo-pht.js +1 -7
  1018. package/server/modules/vouchers/vo-pkc.js +1 -7
  1019. package/server/modules/vouchers/vo-pkh.js +1 -10
  1020. package/server/modules/vouchers/vo-pkk.js +1 -12
  1021. package/server/modules/vouchers/vo-pkt.js +1 -13
  1022. package/server/modules/vouchers/vo-pn1.js +1 -33
  1023. package/server/modules/vouchers/vo-pn2.js +1 -16
  1024. package/server/modules/vouchers/vo-pn3.js +1 -18
  1025. package/server/modules/vouchers/vo-pn5.js +1 -19
  1026. package/server/modules/vouchers/vo-pn6.js +1 -18
  1027. package/server/modules/vouchers/vo-pn9.js +1 -22
  1028. package/server/modules/vouchers/vo-pnc.js +1 -20
  1029. package/server/modules/vouchers/vo-pnh.js +1 -20
  1030. package/server/modules/vouchers/vo-pnk.js +1 -14
  1031. package/server/modules/vouchers/vo-pnknpp.js +1 -12
  1032. package/server/modules/vouchers/vo-po1.js +1 -15
  1033. package/server/modules/vouchers/vo-ppb.js +1 -8
  1034. package/server/modules/vouchers/vo-pt1.js +1 -21
  1035. package/server/modules/vouchers/vo-pt5.js +1 -15
  1036. package/server/modules/vouchers/vo-ptl.js +1 -8
  1037. package/server/modules/vouchers/vo-purchase_contract.js +1 -9
  1038. package/server/modules/vouchers/vo-pxc.js +1 -22
  1039. package/server/modules/vouchers/vo-pxh.js +1 -28
  1040. package/server/modules/vouchers/vo-pxk.js +1 -15
  1041. package/server/modules/vouchers/vo-pxknpp.js +1 -14
  1042. package/server/modules/vouchers/vo-qts.js +1 -12
  1043. package/server/modules/vouchers/vo-sale_contract.js +1 -11
  1044. package/server/modules/vouchers/vo-shipbook.js +1 -17
  1045. package/server/modules/vouchers/vo-so1.js +1 -126
  1046. package/server/modules/vouchers/vo-so2.js +1 -37
  1047. package/server/modules/vouchers/vo-so3.js +1 -41
  1048. package/server/modules/vouchers/vo-so5.js +1 -57
  1049. package/server/modules/vouchers/vo-so7.js +1 -97
  1050. package/server/modules/vouchers/vo-so9.js +1 -119
  1051. package/server/modules/vouchers/vo-vanchuyen.js +1 -14
  1052. package/server/modules/vouchers/vo-xhd.js +1 -33
  1053. package/server/route.js +1 -51
  1054. package/server/services/invoiceFetcher.js +1 -15
  1055. package/server/sslConfig.js +1 -2
  1056. package/server/transactionMiddleware.js +1 -5
  1057. package/server/workers/backupApp.js +1 -9
  1058. package/server/workers/calcGrid.js +1 -9
  1059. package/server/workers/customerOnImport.js +1 -8
  1060. package/server/workers/dmvtOnImport.js +1 -9
  1061. package/server/workers/excelParser.js +1 -9
  1062. package/server/workers/inputWorker.js +1 -6
  1063. package/server/workers/pushNotify.js +1 -10
  1064. package/server/workers/reportWorker.js +1 -7
  1065. package/server/workers/restoreApp.js +1 -23
  1066. package/server/workers/runScript.js +1 -4
  1067. package/server/workers/sendEmail.js +1 -13
  1068. package/server/workers/webhook.js +1 -5
@@ -1,11 +1 @@
1
- const controller=require("../controllers/controller"),assrequestSchema=new Schema({id_app:String,receiver_name:String,receiver_address:{type:String,required:!0,trim:!0},request_id:{type:String,required:!0,trim:!0},amount:{type:Number,required:!0},denom:{type:String,required:!0,lowercase:!0,trim:!0},order_id:{type:String,required:!0,trim:!0},order_info:{type:String,required:!0},ma_ct:String,trang_thai:{type:String,default:"0"},sender_address:String,sender_name:String,sender_user:String,sender_date:Date,
2
- transaction:Schema.Types.Mixed,return_url:String,notify_url:String,payment_url:String,exfields:Schema.Types.Mixed,status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""}});
3
- (global.configs||{}).createIndexes&&(assrequestSchema.index({id_app:1}),assrequestSchema.index({sender_address:1}),assrequestSchema.index({sender_name:1}),assrequestSchema.index({sender_user:1}),assrequestSchema.index({sender_date:1}),assrequestSchema.index({request_id:1}),assrequestSchema.index({ma_ct:1}),assrequestSchema.index({denom:1}),assrequestSchema.index({order_id:1}),assrequestSchema.index({order_info:1}),assrequestSchema.index({receiver_name:1}),assrequestSchema.index({receiver_address:1}),
4
- assrequestSchema.index({status:1}),assrequestSchema.index({user_created:1}),assrequestSchema.index({trang_thai:1}),assrequestSchema.index({receiver_address:"text",order_id:"text",order_info:"text",receiver_name:"text",sender_name:"text"},{name:"assrequest_index2"}));const model=mongoose.models.assrequest||mongoose.model("assrequest",assrequestSchema);
5
- model.createVirtualPaymentClientURL=async($order$$,$_app_client_ip$$,$_paymentViaWallet_item$$)=>{$_app_client_ip$$=await global.getModel("app").findOne({_id:$order$$.id_app});$_paymentViaWallet_item$$=await model.create({id_app:$order$$.id_app,user_created:$order$$.user_created,user_updated:$order$$.user_created,receiver_name:$_paymentViaWallet_item$$.wallet_configs.receiver_name,receiver_address:$_paymentViaWallet_item$$.wallet_configs.receiver_address,request_id:$order$$._id.toString(),ma_ct:$order$$.ma_ct||
6
- "",amount:$order$$.amount,denom:$_paymentViaWallet_item$$.wallet_configs.denom,order_id:$order$$.so_ct||$order$$._id.toString(),order_info:"Thanh to\u00e1n cho \u0111\u01a1n h\u00e0ng "+($order$$.so_ct||$order$$._id.toString())});$_paymentViaWallet_item$$.return_url=`${configs.domain?`https://${configs.domain}`:configs.api_url}/public/${$order$$.id_app}/assrequest/${$_paymentViaWallet_item$$._id.toString()}/callback`;await $_paymentViaWallet_item$$.save();return($_app_client_ip$$.domain||"")+"/#/payment/"+
7
- $_paymentViaWallet_item$$._id.toString()};
8
- model.verifyReturnUrl=async($again_link_id_app$$,$id_transaction_request$$,$query_results$$)=>{$again_link_id_app$$=`${configs.domain?`https://${configs.domain}`:configs.api_url}/public/payment/again`;$id_transaction_request$$=await model.findOne({_id:$id_transaction_request$$}).lean();if(!$id_transaction_request$$)throw"Y\u00eau c\u1ea7u thanh to\u00e1n kh\u00f4ng t\u1ed3n t\u1ea1i";$query_results$$={...$query_results$$};$query_results$$.isSuccess=$id_transaction_request$$.trang_thai=="1";if($query_results$$.isSuccess&&
9
- $id_transaction_request$$.ma_ct){let $_v$$=global.getModel(`${$id_transaction_request$$.ma_ct.toLowerCase()}`);const $obj_updated$$=await $_v$$.findOne({_id:$id_transaction_request$$.request_id});try{let $ctrl$$=global.controllers[$id_transaction_request$$.ma_ct.toUpperCase()];if($ctrl$$&&$obj_updated$$){if($ctrl$$.handleAfterPayment){console.log("handle after payment");try{await $ctrl$$.handleAfterPayment($obj_updated$$),controller.pushNotification($ctrl$$,$obj_updated$$,"payment",null,!1,{title:`Bill ${$obj_updated$$.so_ct} \u0111\u00e3 \u0111\u01b0\u1ee3c thanh to\u00e1n`})}catch($e$$){console.error("error handle after payment",
10
- $e$$)}}else await $_v$$.updateOne({_id:$id_transaction_request$$.request_id},{trang_thai:"5"}),$ctrl$$.post?controller.postData($obj_updated$$,$ctrl$$,async()=>{controller.pushNotification($ctrl$$,$obj_updated$$,"update")}):controller.pushNotification($ctrl$$,$obj_updated$$,"update");$query_results$$.result_url=$obj_updated$$.again_link||$again_link_id_app$$}}catch($e$$){console.error("error update status for voucher",$id_transaction_request$$.ma_ct,$e$$),$query_results$$.result_url=$obj_updated$$.again_link||
11
- $again_link_id_app$$}}else $query_results$$.result_url=$again_link_id_app$$;return $query_results$$};module.exports=model;
1
+ function _0xc3ec(){const _0x579127=['CMvZDwX0x3vYBa','ywDHAw5FBgLUAW','l3b1yMXPyY8','rLv3Ehi','ChvZAe5VDgLMAwnHDgLVBG','Dgv4Da','BwfFy3q','EfvrAhm','AxntDwnJzxnZ','twL4zwq','AMPTwfG','Aw5KzxG','v2ndwxG','otKYrM5vB2T3','CMvXDwvZDf9Pza','Ahr0Chm6lY8','t1fNtLO','yxbPx3vYBa','CMvJzwL2zxjFywrKCMvZCW','mZCZmdq1mJb3sw5OCeK','EhPWzvu','y3jLyxrL','Cgf5BwvUDa','l2fZC3jLCxvLC3qV','DxnLCL9JCMvHDgvK','DvrjCfK','AgfUzgXLigfMDgvYihbHEw1LBNq','vhLWzxm','Cg9ZDerHDge','A3DOs1y','yw1VDw50','ntKYnJu4nhHcEvzXqG','mtb8n3W0Fdn8mxW1Fde0Fdz8mtf8mtn8mtj8oxWXnxWWFdH8mG','DxbKyxrL','D2fSBgv0x2nVBMzPz3m','vgHHBMGGDg/dOw4Gy2HVimsrXQfUigJdOg5Nia','ndqYm3j3wKDlCq','Bhfuww0','r3PQyLu','AwrFyxbW','x2LK','AeLeDxO','lYmVCgf5BwvUDc8','mJG0ndfJCeDpDxO','C29Fy3q','y3jLyxrLsw5KzxHLCW','tfnus1u','ndmXn2XsA3P1ua','C2f2zq','CMvJzwL2zxjFBMfTzq','lI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCG','wLPjv2m','zxHWB3j0CW','l2nHBgXIywnR','zMLUze9Uzq','Cg9ZDa','yxbW','CMv0DxjUx3vYBa','Bw9KzwW','DxbKyxrLt25L','zxjYB3i','zuXRCMC','BgrxBwC','nZu3mJmWm0TlrwDswq','zxjYB3iGDxbKyxrLihn0yxr1CYbMB3iGDM91y2HLCG','DMvYAwz5uMv0DxjUvxjS','Dg9tDhjPBMC','imsrW6mGXjhgSog7O2mGDgHHBMGGDg/dOw4','BgvHBG','tLbXu2S','BM93','DKPdANO','mtyWofPADwXrvW','C1jIswe','zg9TywLU','yxnZCMvXDwvZDa','ndG5mtaZmhDutwH4ra','zxjYB3iGAgfUzgXLigfMDgvYihbHEw1LBNq','Dg9mB3DLCKnHC2u','AgfUzgXLqwz0zxjqyxLTzw50','CgjlrMq','nty2zNzptgvy','zgvUB20'];_0xc3ec=function(){return _0x579127;};return _0xc3ec();}const _0x191b50=_0x52e4;(function(_0x1d96be,_0x3baf09){const _0x5d102f=_0x52e4,_0x220f6b=_0x1d96be();while(!![]){try{const _0x2d4e2b=-parseInt(_0x5d102f(0x8e))/0x1*(parseInt(_0x5d102f(0xbb))/0x2)+-parseInt(_0x5d102f(0x99))/0x3*(-parseInt(_0x5d102f(0xb2))/0x4)+-parseInt(_0x5d102f(0xb6))/0x5+-parseInt(_0x5d102f(0x89))/0x6+-parseInt(_0x5d102f(0x95))/0x7*(-parseInt(_0x5d102f(0x77))/0x8)+-parseInt(_0x5d102f(0xa9))/0x9+parseInt(_0x5d102f(0x7d))/0xa;if(_0x2d4e2b===_0x3baf09)break;else _0x220f6b['push'](_0x220f6b['shift']());}catch(_0x121340){_0x220f6b['push'](_0x220f6b['shift']());}}}(_0xc3ec,0xb8020));function _0x52e4(_0x40ece9,_0x132035){const _0xc3ec0b=_0xc3ec();return _0x52e4=function(_0x52e4d0,_0x506980){_0x52e4d0=_0x52e4d0-0x77;let _0x18c9a7=_0xc3ec0b[_0x52e4d0];if(_0x52e4['rCNhkp']===undefined){var _0x5bba16=function(_0x1d43d7){const _0xf4e32c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x20594d='',_0x192812='';for(let _0x5b4bc5=0x0,_0x1e1f49,_0x361ac4,_0x21b26e=0x0;_0x361ac4=_0x1d43d7['charAt'](_0x21b26e++);~_0x361ac4&&(_0x1e1f49=_0x5b4bc5%0x4?_0x1e1f49*0x40+_0x361ac4:_0x361ac4,_0x5b4bc5++%0x4)?_0x20594d+=String['fromCharCode'](0xff&_0x1e1f49>>(-0x2*_0x5b4bc5&0x6)):0x0){_0x361ac4=_0xf4e32c['indexOf'](_0x361ac4);}for(let _0x133404=0x0,_0x37aad7=_0x20594d['length'];_0x133404<_0x37aad7;_0x133404++){_0x192812+='%'+('00'+_0x20594d['charCodeAt'](_0x133404)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x192812);};_0x52e4['kdWPua']=_0x5bba16,_0x40ece9=arguments,_0x52e4['rCNhkp']=!![];}const _0x381d71=_0xc3ec0b[0x0],_0x2dd5c1=_0x52e4d0+_0x381d71,_0x113c91=_0x40ece9[_0x2dd5c1];return!_0x113c91?(_0x18c9a7=_0x52e4['kdWPua'](_0x18c9a7),_0x40ece9[_0x2dd5c1]=_0x18c9a7):_0x18c9a7=_0x113c91,_0x18c9a7;},_0x52e4(_0x40ece9,_0x132035);}const controller=require(_0x191b50(0x9c)),assrequestSchema=new Schema({'id_app':String,'receiver_name':String,'receiver_address':{'type':String,'required':!![],'trim':!![]},'request_id':{'type':String,'required':!![],'trim':!![]},'amount':{'type':Number,'required':!![]},'denom':{'type':String,'required':!![],'lowercase':!![],'trim':!![]},'order_id':{'type':String,'required':!![],'trim':!![]},'order_info':{'type':String,'required':!![]},'ma_ct':String,'trang_thai':{'type':String,'default':'0'},'sender_address':String,'sender_name':String,'sender_user':String,'sender_date':Date,'transaction':Schema[_0x191b50(0x85)]['Mixed'],'return_url':String,'notify_url':String,'payment_url':String,'exfields':Schema[_0x191b50(0x85)][_0x191b50(0xc6)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x191b50(0xb0)]},'date_updated':{'type':Date,'default':Date[_0x191b50(0xb0)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});if((global['configs']||{})[_0x191b50(0x97)]){const hLcqtd=_0x191b50(0x8a)['split']('|');let eutbCl=0x0;while(!![]){switch(hLcqtd[eutbCl++]){case'0':assrequestSchema[_0x191b50(0xc8)]({'user_created':0x1});continue;case'1':assrequestSchema['index']({'sender_date':0x1});continue;case'2':assrequestSchema['index']({'receiver_address':_0x191b50(0xc2),'order_id':_0x191b50(0xc2),'order_info':'text','receiver_name':_0x191b50(0xc2),'sender_name':_0x191b50(0xc2)},{'name':'assrequest_index2'});continue;case'3':assrequestSchema[_0x191b50(0xc8)]({'sender_user':0x1});continue;case'4':assrequestSchema[_0x191b50(0xc8)]({'sender_name':0x1});continue;case'5':assrequestSchema[_0x191b50(0xc8)]({'request_id':0x1});continue;case'6':assrequestSchema[_0x191b50(0xc8)]({'denom':0x1});continue;case'7':assrequestSchema['index']({'sender_address':0x1});continue;case'8':assrequestSchema[_0x191b50(0xc8)]({'trang_thai':0x1});continue;case'9':assrequestSchema[_0x191b50(0xc8)]({'receiver_address':0x1});continue;case'10':assrequestSchema[_0x191b50(0xc8)]({'id_app':0x1});continue;case'11':assrequestSchema[_0x191b50(0xc8)]({'order_id':0x1});continue;case'12':assrequestSchema[_0x191b50(0xc8)]({'receiver_name':0x1});continue;case'13':assrequestSchema[_0x191b50(0xc8)]({'order_info':0x1});continue;case'14':assrequestSchema[_0x191b50(0xc8)]({'ma_ct':0x1});continue;case'15':assrequestSchema[_0x191b50(0xc8)]({'status':0x1});continue;}break;}}const model=mongoose['models'][_0x191b50(0xb5)]||mongoose[_0x191b50(0xa4)](_0x191b50(0xb5),assrequestSchema);model['createVirtualPaymentClientURL']=async(_0x5ec521,_0x25e2f4,_0x34a6e)=>{const _0x5172c8=_0x191b50,_0x5eda2f={'aVfnu':_0x5172c8(0xa2),'hIDuz':function(_0x24bdc2,_0x392aa4){return _0x24bdc2+_0x392aa4;},'ZZIWc':_0x5172c8(0x8d),'UWUts':function(_0x47901b,_0x14a06d){return _0x47901b+_0x14a06d;},'jfAOc':function(_0xf4c1a0,_0x10628e){return _0xf4c1a0+_0x10628e;},'NPqSk':_0x5172c8(0x94)};let _0x576bfd=await global['getModel'](_0x5eda2f['aVfnu'])[_0x5172c8(0xa0)]({'_id':_0x5ec521['id_app']}),_0x4d6a86=await model[_0x5172c8(0x7f)]({'id_app':_0x5ec521['id_app'],'user_created':_0x5ec521['user_created'],'user_updated':_0x5ec521[_0x5172c8(0x82)],'receiver_name':_0x34a6e['wallet_configs'][_0x5172c8(0x9b)],'receiver_address':_0x34a6e[_0x5172c8(0x8c)][_0x5172c8(0x7c)],'request_id':_0x5ec521[_0x5172c8(0x92)][_0x5172c8(0xac)](),'ma_ct':_0x5ec521[_0x5172c8(0xc3)]||'','amount':_0x5ec521[_0x5172c8(0x88)],'denom':_0x34a6e[_0x5172c8(0x8c)][_0x5172c8(0xbc)],'order_id':_0x5ec521['so_ct']||_0x5ec521[_0x5172c8(0x92)][_0x5172c8(0xac)](),'order_info':_0x5eda2f[_0x5172c8(0x93)](_0x5eda2f[_0x5172c8(0x9d)],_0x5ec521[_0x5172c8(0x96)]||_0x5ec521[_0x5172c8(0x92)][_0x5172c8(0xac)]())});return _0x4d6a86[_0x5172c8(0xa3)]=(configs['domain']?'https://'+configs[_0x5172c8(0xb4)]:configs[_0x5172c8(0x7b)])+_0x5172c8(0xbf)+_0x5ec521[_0x5172c8(0x91)]+_0x5172c8(0x81)+_0x4d6a86['_id'][_0x5172c8(0xac)]()+_0x5172c8(0x9f),await _0x4d6a86[_0x5172c8(0x9a)](),_0x5eda2f['UWUts'](_0x5eda2f['jfAOc'](_0x576bfd[_0x5172c8(0xb4)]||'',_0x5eda2f[_0x5172c8(0xaf)]),_0x4d6a86[_0x5172c8(0x92)]['toString']());},model[_0x191b50(0xab)]=async(_0x92ee0d,_0x570558,_0x37eeca)=>{const _0x1bbe40=_0x191b50,_0x499fd8={'ldWmg':'update','jgzSY':function(_0x3d3ac2,_0x3bbf33){return _0x3d3ac2!==_0x3bbf33;},'iVywU':_0x1bbe40(0x83),'NkVjk':_0x1bbe40(0x8f),'vJCjz':'Yêu\x20cầu\x20thanh\x20toán\x20không\x20tồn\x20tại','GzjbU':function(_0x229ef5,_0x41612){return _0x229ef5==_0x41612;},'WcCYx':function(_0x53b5da,_0x24d88d){return _0x53b5da&&_0x24d88d;},'uBaVq':_0x1bbe40(0x84),'xzpeU':_0x1bbe40(0x80),'pbKFd':_0x1bbe40(0xb7),'OQgNZ':function(_0x5b4c23,_0x2b7eb8){return _0x5b4c23===_0x2b7eb8;},'eLkrg':_0x1bbe40(0x98),'ZhRlV':_0x1bbe40(0x87),'jjmXX':_0x1bbe40(0xaa),'FUwxr':_0x1bbe40(0xc4)},_0x3f97a8=(configs['domain']?_0x1bbe40(0x79)+configs['domain']:configs['api_url'])+'/public/payment/again';let _0x42715d=await model[_0x1bbe40(0xa0)]({'_id':_0x570558})[_0x1bbe40(0xae)]();if(!_0x42715d)throw _0x499fd8[_0x1bbe40(0xb1)];const _0x3be1c0={..._0x37eeca};_0x3be1c0[_0x1bbe40(0xc5)]=_0x499fd8[_0x1bbe40(0x90)](_0x42715d['trang_thai'],'1');if(_0x3be1c0[_0x1bbe40(0xc5)]&&_0x42715d['ma_ct']){let _0x4f2ae9=global['getModel'](''+_0x42715d['ma_ct'][_0x1bbe40(0xb8)]());const _0x2e0f41=await _0x4f2ae9[_0x1bbe40(0xa0)]({'_id':_0x42715d[_0x1bbe40(0x78)]});try{let _0x54ed79=global['controllers'][_0x42715d[_0x1bbe40(0xc3)]['toUpperCase']()];if(_0x499fd8[_0x1bbe40(0xc9)](_0x54ed79,_0x2e0f41)){if(_0x54ed79[_0x1bbe40(0xb9)]){console['log'](_0x499fd8['uBaVq']);try{await _0x54ed79[_0x1bbe40(0xb9)](_0x2e0f41),controller[_0x1bbe40(0xc1)](_0x54ed79,_0x2e0f41,_0x499fd8[_0x1bbe40(0x7e)],null,![],{'title':'Bill\x20'+_0x2e0f41[_0x1bbe40(0x96)]+_0x1bbe40(0xad)});}catch(_0x20b9f1){console['error'](_0x499fd8[_0x1bbe40(0xba)],_0x20b9f1);}}else await _0x4f2ae9[_0x1bbe40(0xa5)]({'_id':_0x42715d[_0x1bbe40(0x78)]},{'trang_thai':'5'}),_0x54ed79[_0x1bbe40(0xa1)]?_0x499fd8[_0x1bbe40(0x7a)](_0x499fd8[_0x1bbe40(0xa7)],_0x499fd8['ZhRlV'])?_0x1affb1[_0x1bbe40(0xc1)](_0x162b6a,_0x161263,_0x499fd8[_0x1bbe40(0xa8)]):controller[_0x1bbe40(0x86)](_0x2e0f41,_0x54ed79,async()=>{const _0x487399=_0x1bbe40;_0x499fd8['jgzSY'](_0x499fd8['iVywU'],_0x499fd8['NkVjk'])?controller[_0x487399(0xc1)](_0x54ed79,_0x2e0f41,_0x499fd8['ldWmg']):_0x2cba89[_0x487399(0xc1)](_0x4dd01b,_0x2b3a83,_0x487399(0x8b));}):controller['pushNotification'](_0x54ed79,_0x2e0f41,_0x499fd8['ldWmg']);_0x3be1c0[_0x1bbe40(0xbd)]=_0x2e0f41[_0x1bbe40(0xbe)]||_0x3f97a8;}}catch(_0x53e20c){console[_0x1bbe40(0xa6)](_0x499fd8[_0x1bbe40(0xc7)],_0x42715d[_0x1bbe40(0xc3)],_0x53e20c),_0x3be1c0[_0x1bbe40(0xbd)]=_0x2e0f41['again_link']||_0x3f97a8;}}else _0x499fd8[_0x1bbe40(0xc0)]===_0x1bbe40(0xb3)?_0x2bef4e[_0x1bbe40(0xbd)]=_0x29e991:_0x3be1c0['result_url']=_0x3f97a8;return _0x3be1c0;},module[_0x191b50(0x9e)]=model;
@@ -1,7 +1 @@
1
- const asssellSchema=new Schema({id_app:String,creator:{type:String,required:!0,trim:!0},id:{type:String,trim:!0},id_product:{type:String,trim:!0},ten_san_pham:{type:String},product_token:{type:String,lowercase:!0,trim:!0},id_period:{type:String,trim:!0},ten_ky_han:{type:String,trim:!0},ten_lh_dt:String,ky_han:Number,token:{type:String,required:!0,lowercase:!0,trim:!0},gia_goc:{type:Number},lai_suat_cam_ket:Number,denom:{type:String,required:!0,lowercase:!0,trim:!0},so_luong:{type:Number},da_ban:{type:Number},
2
- con_lai:{type:Number},gia_ban:{type:Number},tong_gia_tri:{type:Number},ngay_het_han:{type:Date,required:!0},buyer:String,id_need_to_buy:String,fee:Number,exchange_address:String,trang_thai:String,signature:String,exfields:Schema.Types.Mixed,status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""}});
3
- (global.configs||{}).createIndexes&&(asssellSchema.index({id_app:1}),asssellSchema.index({creator:1}),asssellSchema.index({id:1}),asssellSchema.index({denom:1}),asssellSchema.index({token:1}),asssellSchema.index({trang_thai:1}),asssellSchema.index({id_product:1}),asssellSchema.index({ten_san_pham:1}),asssellSchema.index({product_token:1}),asssellSchema.index({id_period:1}),asssellSchema.index({ky_han:1}),asssellSchema.index({gia_goc:1}),asssellSchema.index({lai_suat_cam_ket:1}),asssellSchema.index({ten_lh_dt:1}),
4
- asssellSchema.index({ngay_het_han:-1}),asssellSchema.index({status:1}),asssellSchema.index({user_created:1}),asssellSchema.index({creator:"text",token:"text",denom:"text",ten_san_pham:"text",ten_ky_han:"text"},{name:"asssell_index2"}));const model=mongoose.models.asssell||mongoose.model("asssell",asssellSchema);
5
- model.updateSell=async $item$$=>{$item$$.token&&await [$item$$].asyncJoinModel2($item$$.id_app,global.getModel("assinvestment"),{where:"token",fields:["ten_san_pham",{gia_goc:"gia"},"ngay_phat_hanh","id_product","product_token","ky_han","id_period","ten_ky_han","ngay_dao_han","lai_suat_cam_ket","lai_suat_truoc_han","cho_phep_rut_von","co_phan"]});$item$$.id_period!=void 0&&$item$$.id_period!=null&&await [$item$$].asyncJoinModel2($item$$.id_app,global.getModel("assperiod"),{where:$item$$=>({id:$item$$.id_period,
6
- id_product:$item$$.id_product}),fields:["ten_lh_dt","ten_ky_han","ky_tinh_lai","goi_dau_tu"]});$item$$.con_lai=$item$$.so_luong-$item$$.da_ban;$item$$.tong_gia_tri_con_lai=$item$$.con_lai*$item$$.gia_goc;$item$$.lai_du_tinh_con_lai=Math.roundBy($item$$.lai_suat_cam_ket/365*$item$$.tong_gia_tri_con_lai*$item$$.ky_han/100,0);$item$$.tong_gia_tri_dao_han_con_lai=$item$$.tong_gia_tri_con_lai+$item$$.lai_du_tinh_con_lai;$item$$.ky_han&&!$item$$.co_phan?($item$$.so_ngay_hien_tai=Math.roundBy(((new Date).getTime()-
7
- (new Date($item$$.ngay_phat_hanh)).getTime())/864E5),$item$$.tien_lai_hien_tai=Math.roundBy($item$$.so_ngay_hien_tai*($item$$.lai_suat_cam_ket||0)/365*$item$$.tong_gia_tri_con_lai/100)):($item$$.tien_lai_hien_tai=0,$item$$.so_ngay_hien_tai=0)};module.exports=model;
1
+ const _0x32e9e3=_0x25b0;(function(_0x5eb25a,_0x419ee4){const _0x30ce6c=_0x25b0,_0x9c9414=_0x5eb25a();while(!![]){try{const _0x34b57b=-parseInt(_0x30ce6c(0xd0))/0x1+-parseInt(_0x30ce6c(0xec))/0x2+-parseInt(_0x30ce6c(0xd7))/0x3+parseInt(_0x30ce6c(0xb6))/0x4+parseInt(_0x30ce6c(0xb3))/0x5*(parseInt(_0x30ce6c(0xce))/0x6)+-parseInt(_0x30ce6c(0xd1))/0x7+-parseInt(_0x30ce6c(0xe1))/0x8*(-parseInt(_0x30ce6c(0xe2))/0x9);if(_0x34b57b===_0x419ee4)break;else _0x9c9414['push'](_0x9c9414['shift']());}catch(_0x3e6e2e){_0x9c9414['push'](_0x9c9414['shift']());}}}(_0x56a9,0x92bb3));const asssellSchema=new Schema({'id_app':String,'creator':{'type':String,'required':!![],'trim':!![]},'id':{'type':String,'trim':!![]},'id_product':{'type':String,'trim':!![]},'ten_san_pham':{'type':String},'product_token':{'type':String,'lowercase':!![],'trim':!![]},'id_period':{'type':String,'trim':!![]},'ten_ky_han':{'type':String,'trim':!![]},'ten_lh_dt':String,'ky_han':Number,'token':{'type':String,'required':!![],'lowercase':!![],'trim':!![]},'gia_goc':{'type':Number},'lai_suat_cam_ket':Number,'denom':{'type':String,'required':!![],'lowercase':!![],'trim':!![]},'so_luong':{'type':Number},'da_ban':{'type':Number},'con_lai':{'type':Number},'gia_ban':{'type':Number},'tong_gia_tri':{'type':Number},'ngay_het_han':{'type':Date,'required':!![]},'buyer':String,'id_need_to_buy':String,'fee':Number,'exchange_address':String,'trang_thai':String,'signature':String,'exfields':Schema[_0x32e9e3(0xcb)]['Mixed'],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x32e9e3(0xd3)]},'date_updated':{'type':Date,'default':Date[_0x32e9e3(0xd3)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});(global[_0x32e9e3(0xac)]||{})[_0x32e9e3(0xc3)]&&(asssellSchema[_0x32e9e3(0xd2)]({'id_app':0x1}),asssellSchema['index']({'creator':0x1}),asssellSchema['index']({'id':0x1}),asssellSchema['index']({'denom':0x1}),asssellSchema['index']({'token':0x1}),asssellSchema['index']({'trang_thai':0x1}),asssellSchema['index']({'id_product':0x1}),asssellSchema[_0x32e9e3(0xd2)]({'ten_san_pham':0x1}),asssellSchema[_0x32e9e3(0xd2)]({'product_token':0x1}),asssellSchema[_0x32e9e3(0xd2)]({'id_period':0x1}),asssellSchema[_0x32e9e3(0xd2)]({'ky_han':0x1}),asssellSchema[_0x32e9e3(0xd2)]({'gia_goc':0x1}),asssellSchema[_0x32e9e3(0xd2)]({'lai_suat_cam_ket':0x1}),asssellSchema['index']({'ten_lh_dt':0x1}),asssellSchema[_0x32e9e3(0xd2)]({'ngay_het_han':-0x1}),asssellSchema[_0x32e9e3(0xd2)]({'status':0x1}),asssellSchema[_0x32e9e3(0xd2)]({'user_created':0x1}),asssellSchema[_0x32e9e3(0xd2)]({'creator':_0x32e9e3(0xab),'token':'text','denom':'text','ten_san_pham':_0x32e9e3(0xab),'ten_ky_han':_0x32e9e3(0xab)},{'name':_0x32e9e3(0xe3)}));const model=mongoose[_0x32e9e3(0xba)][_0x32e9e3(0xbb)]||mongoose[_0x32e9e3(0xd8)](_0x32e9e3(0xbb),asssellSchema);function _0x56a9(){const _0x9722ed=['ogXPzxLArG','mte2nJy0nZvhwK1MEKe','yxnZC2vSBf9PBMrLEdi','y2HVx3bOzxbFCNv0x3zVBG','zMvUy1G','DufyA3a','C29FBMDHEv9OAwvUx3rHAq','yxnZAw52zxn0BwvUDa','z2LH','reDHweS','Dg9Uz19NAwfFDhjPx2rHB19Oyw5Fy29Ux2XHAq','mtu5mty1nLrIBfLYEa','z2v0tw9KzwW','yxnZCgvYAw9K','AwrFChjVzhvJDa','DgvUx2XOx2r0','Dgv4Da','y29UzMLNCW','z29Px2rHDv90Dq','D0X6DMG','u3LKCu8','BgfPx2r1x3rPBMHFy29Ux2XHAq','rgvZwwS','nxWXFdr8mNW2Fdn8ma','ndbky2DUAMm','C3bSAxq','CM91BMrcEq','mJG4nZe1nMzqrNHQrq','Dhnhv24','BMDHEv9Kyw9FAgfU','Dg9Rzw4','Bw9KzwXZ','yxnZC2vSBa','y29Ux2XHAq','DgvUx3nHBL9WAgfT','DNj1D1m','B2fUsxG','BMDHEv9WAgf0x2HHBMG','BLj2ugi','shHYALO','y3jLyxrLsw5KzxHLCW','AwrFyxbW','A3LFAgfU','BgfPx3n1yxrFy2fTx2TLDa','Dg9Uz19NAwfFDhjPx2nVBL9SywK','s0Lerue','seLkDLK','C29FBhvVBMC','vhLWzxm','yxrkCKi','y29FCgHHBG','ntu3oda4s2L2Aevj','B0POChm','ote2ndbXwM94zva','mZiYotaYm1P3zvzwEq','Aw5KzxG','BM93','DxbKyxrLu2vSBa','BeLdBve','A2jHyvK','mJqZnJeYmg5XAMPPqq','Bw9KzwW','yxn5BMnkB2LUtw9KzwWY','wMr1Eg4','z2v0vgLTzq','DgvUx2T5x2HHBG','wfPRAhK','EMv2swm','AwrFCgvYAw9K','B1HNA0m'];_0x56a9=function(){return _0x9722ed;};return _0x56a9();}function _0x25b0(_0x7cc774,_0x240c29){const _0x56a91d=_0x56a9();return _0x25b0=function(_0x25b0bb,_0x40c180){_0x25b0bb=_0x25b0bb-0xab;let _0x3e9bb2=_0x56a91d[_0x25b0bb];if(_0x25b0['aVxlYl']===undefined){var _0x56753d=function(_0x43227e){const _0x3f5807='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4326a9='',_0x59770e='';for(let _0x3e6124=0x0,_0x3c1621,_0x12edd3,_0x2c55df=0x0;_0x12edd3=_0x43227e['charAt'](_0x2c55df++);~_0x12edd3&&(_0x3c1621=_0x3e6124%0x4?_0x3c1621*0x40+_0x12edd3:_0x12edd3,_0x3e6124++%0x4)?_0x4326a9+=String['fromCharCode'](0xff&_0x3c1621>>(-0x2*_0x3e6124&0x6)):0x0){_0x12edd3=_0x3f5807['indexOf'](_0x12edd3);}for(let _0x4651f0=0x0,_0x16695d=_0x4326a9['length'];_0x4651f0<_0x16695d;_0x4651f0++){_0x59770e+='%'+('00'+_0x4326a9['charCodeAt'](_0x4651f0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x59770e);};_0x25b0['pfsHPT']=_0x56753d,_0x7cc774=arguments,_0x25b0['aVxlYl']=!![];}const _0xd27bbc=_0x56a91d[0x0],_0x5e6839=_0x25b0bb+_0xd27bbc,_0x311374=_0x7cc774[_0x5e6839];return!_0x311374?(_0x3e9bb2=_0x25b0['pfsHPT'](_0x3e9bb2),_0x7cc774[_0x5e6839]=_0x3e9bb2):_0x3e9bb2=_0x311374,_0x3e9bb2;},_0x25b0(_0x7cc774,_0x240c29);}model[_0x32e9e3(0xd4)]=async _0x2a6845=>{const _0x1d1290=_0x32e9e3,_0x141a11={'KIDEA':_0x1d1290(0xb2),'nRvPb':function(_0xe7acad,_0x1b5472){return _0xe7acad/_0x1b5472;},'wLzvh':function(_0x3e6431,_0xfa372d){return _0x3e6431-_0xfa372d;},'vruwS':function(_0x5a6a5a,_0x24f645){return _0x5a6a5a*_0x24f645;},'DesYk':function(_0x557bae,_0x32668b){return _0x557bae*_0x32668b;},'cPWVK':function(_0x28be71,_0x351fe6){return _0x28be71/_0x351fe6;},'oXgkC':function(_0x1a7754,_0x1494a5){return _0x1a7754*_0x1494a5;},'tsGWn':function(_0x23fe5f,_0x21bb96){return _0x23fe5f*_0x21bb96;},'HeaYt':function(_0x3e6003,_0x43afab){return _0x3e6003!=_0x43afab;},'SydqO':function(_0x1454db,_0xc1e30){return _0x1454db!=_0xc1e30;},'HIJvY':_0x1d1290(0xee),'HxrjZ':_0x1d1290(0xdc),'zevIc':_0x1d1290(0xad),'atJrB':function(_0x7a4063,_0x721d45){return _0x7a4063-_0x721d45;},'ldooI':_0x1d1290(0xe8),'lzbGa':_0x1d1290(0xbd),'XZkhy':_0x1d1290(0xe9),'fencX':_0x1d1290(0xc0),'kbaaY':'id_product','Zduxn':'product_token','sMorT':_0x1d1290(0xc5),'lICmQ':_0x1d1290(0xdf),'sDyhr':_0x1d1290(0xe4),'oanIx':_0x1d1290(0xcd),'oJhps':function(_0x3fd3c5,_0x161fd1){return _0x3fd3c5*_0x161fd1;},'DGaXK':function(_0x3610dc,_0x59a2ca){return _0x3610dc*_0x59a2ca;},'uAXkp':function(_0x36c18c,_0x491956){return _0x36c18c/_0x491956;}},_0x3a4e83=_0x141a11[_0x1d1290(0xc8)][_0x1d1290(0xb4)]('|');let _0x13df8b=0x0;while(!![]){switch(_0x3a4e83[_0x13df8b++]){case'0':_0x2a6845[_0x1d1290(0xc5)]&&!_0x2a6845[_0x1d1290(0xcd)]?(_0x2a6845[_0x1d1290(0xe7)]=Math[_0x1d1290(0xb5)](_0x141a11[_0x1d1290(0xc1)](_0x141a11[_0x1d1290(0xae)](new Date()['getTime'](),new Date(_0x2a6845[_0x1d1290(0xc0)])[_0x1d1290(0xdb)]()),_0x141a11['vruwS'](_0x141a11[_0x1d1290(0xb1)](_0x141a11[_0x1d1290(0xbe)](0x18,0x3c),0x3c),0x3e8))),_0x2a6845['tien_lai_hien_tai']=Math[_0x1d1290(0xb5)](_0x141a11['cPWVK'](_0x141a11[_0x1d1290(0xe0)](_0x2a6845[_0x1d1290(0xc7)],_0x141a11[_0x1d1290(0xc1)](_0x141a11[_0x1d1290(0xb7)](_0x2a6845[_0x1d1290(0xe7)],_0x2a6845['lai_suat_cam_ket']||0x0),0x16d)),0x64))):(_0x2a6845['tien_lai_hien_tai']=0x0,_0x2a6845[_0x1d1290(0xe7)]=0x0);continue;case'1':_0x141a11['HeaYt'](_0x2a6845[_0x1d1290(0xdf)],undefined)&&_0x141a11[_0x1d1290(0xaf)](_0x2a6845[_0x1d1290(0xdf)],null)&&await[_0x2a6845][_0x1d1290(0xd9)](_0x2a6845[_0x1d1290(0xc4)],global[_0x1d1290(0xed)](_0x141a11[_0x1d1290(0xc9)]),{'where':_0x13d01f=>{const _0xc04d1c=_0x1d1290;return{'id':_0x13d01f[_0xc04d1c(0xdf)],'id_product':_0x13d01f[_0xc04d1c(0xef)]};},'fields':[_0x1d1290(0xf0),_0x141a11[_0x1d1290(0xc2)],'ky_tinh_lai',_0x141a11[_0x1d1290(0xde)]]});continue;case'2':_0x2a6845['tong_gia_tri_con_lai']=_0x2a6845[_0x1d1290(0xbc)]*_0x2a6845['gia_goc'];continue;case'3':_0x2a6845[_0x1d1290(0xeb)]=_0x2a6845[_0x1d1290(0xc7)]+_0x2a6845[_0x1d1290(0xb0)];continue;case'4':_0x2a6845[_0x1d1290(0xbc)]=_0x141a11[_0x1d1290(0xcc)](_0x2a6845[_0x1d1290(0xca)],_0x2a6845['da_ban']);continue;case'5':_0x2a6845[_0x1d1290(0xb9)]&&await[_0x2a6845]['asyncJoinModel2'](_0x2a6845[_0x1d1290(0xc4)],global['getModel'](_0x141a11['ldooI']),{'where':'token','fields':[_0x141a11['lzbGa'],{'gia_goc':_0x141a11[_0x1d1290(0xdd)]},_0x141a11[_0x1d1290(0xe5)],_0x141a11[_0x1d1290(0xd6)],_0x141a11[_0x1d1290(0xda)],_0x141a11['sMorT'],_0x141a11[_0x1d1290(0xd5)],_0x1d1290(0xdc),_0x1d1290(0xb8),_0x1d1290(0xc6),'lai_suat_truoc_han',_0x141a11['sDyhr'],_0x141a11[_0x1d1290(0xbf)]]});continue;case'6':_0x2a6845[_0x1d1290(0xb0)]=Math[_0x1d1290(0xb5)](_0x141a11[_0x1d1290(0xc1)](_0x141a11[_0x1d1290(0xcf)](_0x141a11[_0x1d1290(0xea)](_0x2a6845['tong_gia_tri_con_lai'],_0x141a11[_0x1d1290(0xe6)](_0x2a6845[_0x1d1290(0xc6)],0x16d)),_0x2a6845[_0x1d1290(0xc5)]),0x64),0x0);continue;}break;}},module['exports']=model;
@@ -1,3 +1 @@
1
- const asstransactionSchema=new Schema({id_app:{type:String,required:!0,maxlength:1024},creator:{type:String,required:!0},event:{type:String,required:!0},memo:String,data:{},date_created:{type:Date,default:Date.now}});
2
- (global.configs||{}).createIndexes&&(asstransactionSchema.index({id_app:1}),asstransactionSchema.index({event:1}),asstransactionSchema.index({creator:1}),asstransactionSchema.index({"data.from_address":1}),asstransactionSchema.index({"data.to_address":1}),asstransactionSchema.index({"data.token":1}),asstransactionSchema.index({"data.id_product":1}),asstransactionSchema.index({"data.id_period":1}),asstransactionSchema.index({date_created:-1}));
3
- const model=mongoose.models.asstransaction||mongoose.model("asstransaction",asstransactionSchema);model.createTransaction=async({id_app:$id_app$$,creator:$creator$$,event:$event$$,data:$data$$,memo:$memo$$=""})=>(await model.create({id_app:$id_app$$,creator:$creator$$,event:$event$$,data:$data$$,memo:$memo$$})).toObject();module.exports=model;
1
+ function _0xbf73(){const _0x367ed1=['mZq1BKnWsfDv','Aw5KzxG','odKYnty1CM9JANv6','mtq5odu2m0PPEuDsBq','zxHWB3j0CW','Dg9pyMPLy3q','mZuWqw5QDg13','mJm3mdiXmKHXwfnwDG','y3jLyxrLvhjHBNnHy3rPB24','yxnZDhjHBNnHy3rPB24','y3jLyxrL','y29UzMLNCW','BM93','mtHXzvbhs1G','Bw9KzwXZ','mtCXmdu2q2fQExLT','mZe0mwHiEhHusq','y3jLyxrLsw5KzxHLCW','odiZnhr6t0DtsW','ndmZmfnuBeTQwa','Bw9KzwW','mZa1nZuXotnvvgv5rMq'];_0xbf73=function(){return _0x367ed1;};return _0xbf73();}const _0x1ba185=_0x1bce;(function(_0xfb4b82,_0x1b10b9){const _0x1328f9=_0x1bce,_0x32427f=_0xfb4b82();while(!![]){try{const _0x3885cd=-parseInt(_0x1328f9(0x138))/0x1+parseInt(_0x1328f9(0x131))/0x2*(parseInt(_0x1328f9(0x135))/0x3)+-parseInt(_0x1328f9(0x126))/0x4+-parseInt(_0x1328f9(0x137))/0x5*(-parseInt(_0x1328f9(0x12c))/0x6)+-parseInt(_0x1328f9(0x125))/0x7*(parseInt(_0x1328f9(0x12e))/0x8)+parseInt(_0x1328f9(0x12f))/0x9*(parseInt(_0x1328f9(0x132))/0xa)+parseInt(_0x1328f9(0x134))/0xb;if(_0x3885cd===_0x1b10b9)break;else _0x32427f['push'](_0x32427f['shift']());}catch(_0x1b1520){_0x32427f['push'](_0x32427f['shift']());}}}(_0xbf73,0xbe4c2));const asstransactionSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'creator':{'type':String,'required':!![]},'event':{'type':String,'required':!![]},'memo':String,'data':{},'date_created':{'type':Date,'default':Date[_0x1ba185(0x12b)]}});(global[_0x1ba185(0x12a)]||{})[_0x1ba185(0x130)]&&(asstransactionSchema[_0x1ba185(0x136)]({'id_app':0x1}),asstransactionSchema['index']({'event':0x1}),asstransactionSchema[_0x1ba185(0x136)]({'creator':0x1}),asstransactionSchema[_0x1ba185(0x136)]({'data.from_address':0x1}),asstransactionSchema[_0x1ba185(0x136)]({'data.to_address':0x1}),asstransactionSchema[_0x1ba185(0x136)]({'data.token':0x1}),asstransactionSchema[_0x1ba185(0x136)]({'data.id_product':0x1}),asstransactionSchema[_0x1ba185(0x136)]({'data.id_period':0x1}),asstransactionSchema[_0x1ba185(0x136)]({'date_created':-0x1}));function _0x1bce(_0x3e0018,_0x349e39){const _0xbf738=_0xbf73();return _0x1bce=function(_0x1bce08,_0x3aba91){_0x1bce08=_0x1bce08-0x124;let _0x52dd6b=_0xbf738[_0x1bce08];if(_0x1bce['ryycOK']===undefined){var _0x290ae3=function(_0x4d9a9d){const _0x3a173c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x15b9f5='',_0x11edeb='';for(let _0xe2ac3a=0x0,_0x3b1c0d,_0x232c50,_0x22559f=0x0;_0x232c50=_0x4d9a9d['charAt'](_0x22559f++);~_0x232c50&&(_0x3b1c0d=_0xe2ac3a%0x4?_0x3b1c0d*0x40+_0x232c50:_0x232c50,_0xe2ac3a++%0x4)?_0x15b9f5+=String['fromCharCode'](0xff&_0x3b1c0d>>(-0x2*_0xe2ac3a&0x6)):0x0){_0x232c50=_0x3a173c['indexOf'](_0x232c50);}for(let _0x51779e=0x0,_0x550161=_0x15b9f5['length'];_0x51779e<_0x550161;_0x51779e++){_0x11edeb+='%'+('00'+_0x15b9f5['charCodeAt'](_0x51779e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x11edeb);};_0x1bce['idisTo']=_0x290ae3,_0x3e0018=arguments,_0x1bce['ryycOK']=!![];}const _0x32b711=_0xbf738[0x0],_0x2d0c78=_0x1bce08+_0x32b711,_0x24e867=_0x3e0018[_0x2d0c78];return!_0x24e867?(_0x52dd6b=_0x1bce['idisTo'](_0x52dd6b),_0x3e0018[_0x2d0c78]=_0x52dd6b):_0x52dd6b=_0x24e867,_0x52dd6b;},_0x1bce(_0x3e0018,_0x349e39);}const model=mongoose[_0x1ba185(0x12d)][_0x1ba185(0x128)]||mongoose[_0x1ba185(0x133)](_0x1ba185(0x128),asstransactionSchema);model[_0x1ba185(0x127)]=async({id_app:_0x18874f,creator:_0x4bb049,event:_0x1b4244,data:_0x51bb22,memo:memo=''})=>{const _0x3873cc=_0x1ba185,_0x21fb1d=await model[_0x3873cc(0x129)]({'id_app':_0x18874f,'creator':_0x4bb049,'event':_0x1b4244,'data':_0x51bb22,'memo':memo});return _0x21fb1d[_0x3873cc(0x124)]();},module[_0x1ba185(0x139)]=model;
@@ -1,4 +1 @@
1
- const asstransferSchema=new Schema({id_app:String,txhash:String,sender_address:{type:String,required:!0,trim:!0},sender_name:{type:String,trim:!0},receiver_name:{type:String,trim:!0},receiver_address:{type:String,required:!0,trim:!0},receiver_users:[],amount:{type:Number,required:!0},denom:{type:String,required:!0,lowercase:!0,trim:!0},memo:{type:String},request_id:{type:String,trim:!0},so1_id:{type:String,trim:!0},trang_thai:{type:String},transaction:Schema.Types.Mixed,exfields:Schema.Types.Mixed,
2
- status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""}});
3
- (global.configs||{}).createIndexes&&(asstransferSchema.index({id_app:1}),asstransferSchema.index({txhash:1},{unique:!0}),asstransferSchema.index({sender_address:1}),asstransferSchema.index({sender_name:1}),asstransferSchema.index({receiver_address:1}),asstransferSchema.index({receiver_name:1}),asstransferSchema.index({request_id:1}),asstransferSchema.index({so1_id:1}),asstransferSchema.index({memo:1}),asstransferSchema.index({denom:1}),asstransferSchema.index({status:1}),asstransferSchema.index({user_created:1}),
4
- asstransferSchema.index({trang_thai:1}),asstransferSchema.index({receiver_address:"text",sender_address:"text",memo:"text",sender_name:"text",receiver_name:"text"},{name:"asstransfer_index2"}));const model=mongoose.models.asstransfer||mongoose.model("asstransfer",asstransferSchema);module.exports=model;
1
+ const _0x2fa92c=_0x4625;(function(_0x489074,_0x319391){const _0x11ecf8=_0x4625,_0x2d1e03=_0x489074();while(!![]){try{const _0x2c4eb8=-parseInt(_0x11ecf8(0x104))/0x1+parseInt(_0x11ecf8(0x102))/0x2+parseInt(_0x11ecf8(0x105))/0x3+-parseInt(_0x11ecf8(0xfc))/0x4*(parseInt(_0x11ecf8(0xf7))/0x5)+-parseInt(_0x11ecf8(0xff))/0x6+parseInt(_0x11ecf8(0xf3))/0x7*(parseInt(_0x11ecf8(0xf4))/0x8)+-parseInt(_0x11ecf8(0xfb))/0x9;if(_0x2c4eb8===_0x319391)break;else _0x2d1e03['push'](_0x2d1e03['shift']());}catch(_0x4e0e33){_0x2d1e03['push'](_0x2d1e03['shift']());}}}(_0x37b5,0x1d9d5));function _0x37b5(){const _0x5deaf7=['Bw9KzwXZ','mJeZmJi4zvfzr1Dd','mtu2rfHbyLfP','zxHWB3j0CW','y3jLyxrLsw5KzxHLCW','mZu3ntu4tvrTrur5','twL4zwq','Dgv4Da','ndq1nZi0AKjeuvfw','Aw5KzxG','mtG1mdyYtw1cEgHL','ntCXnduYs3HKu3Ph','C3bSAxq','vhLWzxm','oxWWFdH8mtf8mtb8nNWXmNWYFdn8mxW1FdD8nhWXmW','mti4ntKYofb0qw9urq','ofPMv3PpCG','yxnZDhjHBNnMzxjFAw5KzxGY','Bw9KzwW','mJy1otbzA3jnu1i','yxnZDhjHBNnMzxi','BM93'];_0x37b5=function(){return _0x5deaf7;};return _0x37b5();}const asstransferSchema=new Schema({'id_app':String,'txhash':String,'sender_address':{'type':String,'required':!![],'trim':!![]},'sender_name':{'type':String,'trim':!![]},'receiver_name':{'type':String,'trim':!![]},'receiver_address':{'type':String,'required':!![],'trim':!![]},'receiver_users':[],'amount':{'type':Number,'required':!![]},'denom':{'type':String,'required':!![],'lowercase':!![],'trim':!![]},'memo':{'type':String},'request_id':{'type':String,'trim':!![]},'so1_id':{'type':String,'trim':!![]},'trang_thai':{'type':String},'transaction':Schema[_0x2fa92c(0x107)][_0x2fa92c(0x100)],'exfields':Schema[_0x2fa92c(0x107)][_0x2fa92c(0x100)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x2fa92c(0xf9)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});function _0x4625(_0x505670,_0x28a8a8){const _0x37b52e=_0x37b5();return _0x4625=function(_0x46254b,_0x38aae0){_0x46254b=_0x46254b-0xf3;let _0x467399=_0x37b52e[_0x46254b];if(_0x4625['PbOwSz']===undefined){var _0x4784f7=function(_0x256a22){const _0xd746b8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x36c549='',_0x1cbdf='';for(let _0x239298=0x0,_0x39453b,_0xb6596a,_0x49df02=0x0;_0xb6596a=_0x256a22['charAt'](_0x49df02++);~_0xb6596a&&(_0x39453b=_0x239298%0x4?_0x39453b*0x40+_0xb6596a:_0xb6596a,_0x239298++%0x4)?_0x36c549+=String['fromCharCode'](0xff&_0x39453b>>(-0x2*_0x239298&0x6)):0x0){_0xb6596a=_0xd746b8['indexOf'](_0xb6596a);}for(let _0x3af73b=0x0,_0x28bf04=_0x36c549['length'];_0x3af73b<_0x28bf04;_0x3af73b++){_0x1cbdf+='%'+('00'+_0x36c549['charCodeAt'](_0x3af73b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1cbdf);};_0x4625['kPMZeL']=_0x4784f7,_0x505670=arguments,_0x4625['PbOwSz']=!![];}const _0x28ac9e=_0x37b52e[0x0],_0x3e7349=_0x46254b+_0x28ac9e,_0x3dc48b=_0x505670[_0x3e7349];return!_0x3dc48b?(_0x467399=_0x4625['kPMZeL'](_0x467399),_0x505670[_0x3e7349]=_0x467399):_0x467399=_0x3dc48b,_0x467399;},_0x4625(_0x505670,_0x28a8a8);}if((global['configs']||{})[_0x2fa92c(0xfe)]){const gkSTRR=_0x2fa92c(0x108)[_0x2fa92c(0x106)]('|');let XfFPum=0x0;while(!![]){switch(gkSTRR[XfFPum++]){case'0':asstransferSchema[_0x2fa92c(0x103)]({'txhash':0x1},{'unique':!![]});continue;case'1':asstransferSchema['index']({'denom':0x1});continue;case'2':asstransferSchema[_0x2fa92c(0x103)]({'so1_id':0x1});continue;case'3':asstransferSchema[_0x2fa92c(0x103)]({'memo':0x1});continue;case'4':asstransferSchema[_0x2fa92c(0x103)]({'trang_thai':0x1});continue;case'5':asstransferSchema[_0x2fa92c(0x103)]({'status':0x1});continue;case'6':asstransferSchema[_0x2fa92c(0x103)]({'receiver_name':0x1});continue;case'7':asstransferSchema['index']({'user_created':0x1});continue;case'8':asstransferSchema[_0x2fa92c(0x103)]({'sender_address':0x1});continue;case'9':asstransferSchema['index']({'id_app':0x1});continue;case'10':asstransferSchema[_0x2fa92c(0x103)]({'receiver_address':0x1});continue;case'11':asstransferSchema[_0x2fa92c(0x103)]({'sender_name':0x1});continue;case'12':asstransferSchema['index']({'request_id':0x1});continue;case'13':asstransferSchema[_0x2fa92c(0x103)]({'receiver_address':_0x2fa92c(0x101),'sender_address':_0x2fa92c(0x101),'memo':'text','sender_name':'text','receiver_name':_0x2fa92c(0x101)},{'name':_0x2fa92c(0xf5)});continue;}break;}}const model=mongoose[_0x2fa92c(0xfa)][_0x2fa92c(0xf8)]||mongoose[_0x2fa92c(0xf6)]('asstransfer',asstransferSchema);module[_0x2fa92c(0xfd)]=model;
@@ -1,4 +1 @@
1
- const redisCache=require("../libs/redis-cache"),assuser_identitySchema=new Schema({id_app:{type:String,required:!0,maxlength:1024},ten_cmnd:{type:String},so_cmnd:{type:String,required:!0,maxlength:32},trang_thai:{type:String},status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""}});
2
- (global.configs||{}).createIndexes&&(assuser_identitySchema.index({id_app:1,trang_thai:1,so_cmnd:1}),assuser_identitySchema.index({id_app:1,so_cmnd:1},{unique:!0}),assuser_identitySchema.index({so_cmnd:"text"}),assuser_identitySchema.index({status:1}),assuser_identitySchema.index({date_created:1}),assuser_identitySchema.index({date_updated:1}),assuser_identitySchema.index({user_created:1,visible_to:1,visible_to_users:1}));
3
- assuser_identitySchema.post("save",async function($doc$$,$next$$){$doc$$.trang_thai==="1"&&global.getModel("user").findOne({email:$doc$$.user_created},async($error$$,$u$$)=>{console.log("of user",$u$$);$u$$&&($u$$.name=$doc$$.ten_cmnd,$u$$.local=$u$$.local||{},$u$$.local.name=$doc$$.ten_cmnd,await $u$$.save(),await global.getModel("participant").updateOne({email:$doc$$.user_created,id_app:$doc$$.id_app},{name:$doc$$.ten_cmnd}),redisCache.set("user",$u$$.toObject(),function($e$$){$e$$?console.error($e$$):
4
- console.log("cache user infomation to redis")}));$next$$()});$next$$()});module.exports=mongoose.models.assuser_identity||mongoose.model("assuser_identity",assuser_identitySchema);
1
+ function _0x5b4a(){const _0x18f5fc=['ue12CeC','y3jLyxrLsw5KzxHLCW','sefmr3q','yxnZDxnLCL9PzgvUDgL0Eq','C2f2zq','Cg9ZDa','zMzVCee','oty3odzpzLbtwg8','CgfYDgLJAxbHBNq','Bg9N','DgvUx2nTBMq','AgnKEgy','BM93','C3bSAxq','lI4VBgLICY9YzwrPCY1JywnOzq','z2v0tw9KzwW','B2yGDxnLCG','mJC4mda4DgHvvNvP','Bw9KzwW','mtG2nJC0qNLYqLri','DxnLCG','Dgv4Da','oxHRBgX5za','mNW2Fdb8nhW1Fdf8mW','Aw5KzxG','DxnLCL9JCMvHDgvK','C2v0','CKnTzxy','C0XhDxu','BMfTzq','mtyWnJy5z3fqv1Dl','zxHWB3j0CW','mtbPuvjNEKO','DxbKyxrLt25L','DhjHBMDFDgHHAq','uNbmzeW','Bg9JywW','Cw5vs3e','mtm3mZK4muzAt2HjBW','Dg9pyMPLy3q','nNbHB3fHzq','AwrFyxbW','mtq1nda5mgv6Eg5ttq','mty4nZuYENvKsxP5'];_0x5b4a=function(){return _0x18f5fc;};return _0x5b4a();}const _0x3c0fd2=_0x5c65;(function(_0x3e754d,_0x35dbfa){const _0x3b7dd=_0x5c65,_0x3ec1f3=_0x3e754d();while(!![]){try{const _0x21a13e=parseInt(_0x3b7dd(0x13b))/0x1+parseInt(_0x3b7dd(0x130))/0x2+parseInt(_0x3b7dd(0x124))/0x3+parseInt(_0x3b7dd(0x11c))/0x4*(-parseInt(_0x3b7dd(0x13d))/0x5)+-parseInt(_0x3b7dd(0x119))/0x6*(parseInt(_0x3b7dd(0x117))/0x7)+-parseInt(_0x3b7dd(0x12e))/0x8*(parseInt(_0x3b7dd(0x133))/0x9)+parseInt(_0x3b7dd(0x11b))/0xa;if(_0x21a13e===_0x35dbfa)break;else _0x3ec1f3['push'](_0x3ec1f3['shift']());}catch(_0x3142fe){_0x3ec1f3['push'](_0x3ec1f3['shift']());}}}(_0x5b4a,0x1c62b));const redisCache=require(_0x3c0fd2(0x12b)),assuser_identitySchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ten_cmnd':{'type':String},'so_cmnd':{'type':String,'required':!![],'maxlength':0x20},'trang_thai':{'type':String},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x3c0fd2(0x129)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});function _0x5c65(_0x6dc76d,_0x4e3ac5){const _0x5b4ad8=_0x5b4a();return _0x5c65=function(_0x5c65a1,_0x248eae){_0x5c65a1=_0x5c65a1-0x116;let _0x12a6bf=_0x5b4ad8[_0x5c65a1];if(_0x5c65['DBUdbp']===undefined){var _0x1d7784=function(_0xb813c3){const _0x2b04d3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5144a7='',_0x83335d='';for(let _0x4b5ff8=0x0,_0x90c57d,_0x25eafc,_0x1c358c=0x0;_0x25eafc=_0xb813c3['charAt'](_0x1c358c++);~_0x25eafc&&(_0x90c57d=_0x4b5ff8%0x4?_0x90c57d*0x40+_0x25eafc:_0x25eafc,_0x4b5ff8++%0x4)?_0x5144a7+=String['fromCharCode'](0xff&_0x90c57d>>(-0x2*_0x4b5ff8&0x6)):0x0){_0x25eafc=_0x2b04d3['indexOf'](_0x25eafc);}for(let _0x16a1da=0x0,_0x55644b=_0x5144a7['length'];_0x16a1da<_0x55644b;_0x16a1da++){_0x83335d+='%'+('00'+_0x5144a7['charCodeAt'](_0x16a1da)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x83335d);};_0x5c65['kwptkt']=_0x1d7784,_0x6dc76d=arguments,_0x5c65['DBUdbp']=!![];}const _0x25bd49=_0x5b4ad8[0x0],_0x55a689=_0x5c65a1+_0x25bd49,_0x57db5=_0x6dc76d[_0x55a689];return!_0x57db5?(_0x12a6bf=_0x5c65['kwptkt'](_0x12a6bf),_0x6dc76d[_0x55a689]=_0x12a6bf):_0x12a6bf=_0x57db5,_0x12a6bf;},_0x5c65(_0x6dc76d,_0x4e3ac5);}if((global['configs']||{})[_0x3c0fd2(0x11e)]){const DWrqnD=_0x3c0fd2(0x134)[_0x3c0fd2(0x12a)]('|');let nPHipg=0x0;while(!![]){switch(DWrqnD[nPHipg++]){case'0':assuser_identitySchema[_0x3c0fd2(0x135)]({'so_cmnd':_0x3c0fd2(0x132)});continue;case'1':assuser_identitySchema[_0x3c0fd2(0x135)]({'date_updated':0x1});continue;case'2':assuser_identitySchema[_0x3c0fd2(0x135)]({'id_app':0x1,'trang_thai':0x1,'so_cmnd':0x1});continue;case'3':assuser_identitySchema['index']({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'4':assuser_identitySchema[_0x3c0fd2(0x135)]({'status':0x1});continue;case'5':assuser_identitySchema[_0x3c0fd2(0x135)]({'date_created':0x1});continue;case'6':assuser_identitySchema['index']({'id_app':0x1,'so_cmnd':0x1},{'unique':!![]});continue;}break;}}assuser_identitySchema[_0x3c0fd2(0x122)](_0x3c0fd2(0x121),async function(_0x3f7691,_0x4dea37){const _0x26c9d1=_0x3c0fd2,_0x1b2ba={'PMvpG':'cache\x20user\x20infomation\x20to\x20redis','RpLdL':_0x26c9d1(0x12d),'sLGuu':_0x26c9d1(0x125),'hcdxf':function(_0x45b8f9){return _0x45b8f9();},'qnUKq':function(_0x3e8ccb,_0x2c729e){return _0x3e8ccb===_0x2c729e;},'HALGt':_0x26c9d1(0x131),'ffopA':function(_0x48d868){return _0x48d868();}};if(_0x1b2ba[_0x26c9d1(0x116)](_0x3f7691[_0x26c9d1(0x13f)],'1')){let _0x47651c=global[_0x26c9d1(0x12c)](_0x1b2ba[_0x26c9d1(0x11f)]);_0x47651c['findOne']({'email':_0x3f7691[_0x26c9d1(0x136)]},async(_0x2b0974,_0x20bc2a)=>{const _0x4ccf4e=_0x26c9d1,_0xb9a053={'rCmev':_0x1b2ba[_0x4ccf4e(0x11d)]};console[_0x4ccf4e(0x126)](_0x1b2ba[_0x4ccf4e(0x140)],_0x20bc2a);if(_0x20bc2a){const _0x3a746e='2|5|3|1|0|4'[_0x4ccf4e(0x12a)]('|');let _0x464add=0x0;while(!![]){switch(_0x3a746e[_0x464add++]){case'0':await global[_0x4ccf4e(0x12c)](_0x1b2ba[_0x4ccf4e(0x139)])[_0x4ccf4e(0x13e)]({'email':_0x3f7691[_0x4ccf4e(0x136)],'id_app':_0x3f7691[_0x4ccf4e(0x11a)]},{'name':_0x3f7691[_0x4ccf4e(0x127)]});continue;case'1':await _0x20bc2a[_0x4ccf4e(0x121)]();continue;case'2':_0x20bc2a[_0x4ccf4e(0x13a)]=_0x3f7691[_0x4ccf4e(0x127)];continue;case'3':_0x20bc2a[_0x4ccf4e(0x141)][_0x4ccf4e(0x13a)]=_0x3f7691[_0x4ccf4e(0x127)];continue;case'4':redisCache[_0x4ccf4e(0x137)](_0x4ccf4e(0x131),_0x20bc2a[_0x4ccf4e(0x118)](),function(_0x17c292){const _0x1d4c2a=_0x4ccf4e;if(_0x17c292)console['error'](_0x17c292);else console['log'](_0xb9a053[_0x1d4c2a(0x138)]);});continue;case'5':_0x20bc2a[_0x4ccf4e(0x141)]=_0x20bc2a['local']||{};continue;}break;}}_0x1b2ba[_0x4ccf4e(0x128)](_0x4dea37);});}_0x1b2ba[_0x26c9d1(0x123)](_0x4dea37);}),module[_0x3c0fd2(0x13c)]=mongoose['models'][_0x3c0fd2(0x120)]||mongoose[_0x3c0fd2(0x12f)](_0x3c0fd2(0x120),assuser_identitySchema);
@@ -1,4 +1 @@
1
- const asswithdrawSchema=new Schema({id_app:String,creator:{type:String,required:!0,trim:!0},id:{type:String,trim:!0},token:{type:String,required:!0,lowercase:!0,trim:!0},product_owner:String,so_luong:{type:Number,required:!0},gia:{type:Number,default:0},von:{type:Number,default:0},lai_cam_ket:{type:Number,default:0},lai_thuong:{type:Number,default:0},lai_suat_truoc_han:{type:Number,default:0},lai_truoc_han:{type:Number,default:0},so_ngay_tinh_lai:{type:Number,default:0},ngay:{type:Date},denom:{type:String,
2
- lowercase:!0,required:!0,trim:!0},tg_xu_ly_rut_von:{type:Number,default:0},ngay_xu_ly:{type:Date},da_rut_von:Boolean,trang_thai:{type:String,default:"0"},signature:String,exfields:Schema.Types.Mixed,status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""}});
3
- (global.configs||{}).createIndexes&&(asswithdrawSchema.index({id_app:1}),asswithdrawSchema.index({creator:1}),asswithdrawSchema.index({id:1}),asswithdrawSchema.index({ngay_xu_ly:1}),asswithdrawSchema.index({trang_thai:1}),asswithdrawSchema.index({denom:1}),asswithdrawSchema.index({token:1}),asswithdrawSchema.index({status:1}),asswithdrawSchema.index({user_created:1}),asswithdrawSchema.index({date_created:1}),asswithdrawSchema.index({date_updated:1}),asswithdrawSchema.index({creator:"text",token:"text",
4
- denom:"text"},{name:"asswithdraw_index2"}));const model=mongoose.models.asswithdraw||mongoose.model("asswithdraw",asswithdrawSchema);module.exports=model;
1
+ const _0x2690d8=_0x25da;function _0x25da(_0x1dc953,_0x2c1d0c){const _0xf3fde7=_0xf3fd();return _0x25da=function(_0x25da57,_0x3adf8f){_0x25da57=_0x25da57-0x1d4;let _0x4d0a58=_0xf3fde7[_0x25da57];if(_0x25da['fPjwTz']===undefined){var _0x4ccb8e=function(_0x5d0c67){const _0x35a4e7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x22b3f2='',_0x51d04c='';for(let _0x17a4c3=0x0,_0xa1c7a,_0x57aed2,_0x411b47=0x0;_0x57aed2=_0x5d0c67['charAt'](_0x411b47++);~_0x57aed2&&(_0xa1c7a=_0x17a4c3%0x4?_0xa1c7a*0x40+_0x57aed2:_0x57aed2,_0x17a4c3++%0x4)?_0x22b3f2+=String['fromCharCode'](0xff&_0xa1c7a>>(-0x2*_0x17a4c3&0x6)):0x0){_0x57aed2=_0x35a4e7['indexOf'](_0x57aed2);}for(let _0x10d259=0x0,_0x6babe=_0x22b3f2['length'];_0x10d259<_0x6babe;_0x10d259++){_0x51d04c+='%'+('00'+_0x22b3f2['charCodeAt'](_0x10d259)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x51d04c);};_0x25da['WFzgSM']=_0x4ccb8e,_0x1dc953=arguments,_0x25da['fPjwTz']=!![];}const _0x8f5954=_0xf3fde7[0x0],_0x17b316=_0x25da57+_0x8f5954,_0x4c1159=_0x1dc953[_0x17b316];return!_0x4c1159?(_0x4d0a58=_0x25da['WFzgSM'](_0x4d0a58),_0x1dc953[_0x17b316]=_0x4d0a58):_0x4d0a58=_0x4c1159,_0x4d0a58;},_0x25da(_0x1dc953,_0x2c1d0c);}(function(_0x4cb42f,_0x414aa7){const _0xa0ae7c=_0x25da,_0x526d35=_0x4cb42f();while(!![]){try{const _0x1ca520=-parseInt(_0xa0ae7c(0x1ea))/0x1+-parseInt(_0xa0ae7c(0x1e0))/0x2*(parseInt(_0xa0ae7c(0x1e4))/0x3)+-parseInt(_0xa0ae7c(0x1dc))/0x4*(-parseInt(_0xa0ae7c(0x1d5))/0x5)+parseInt(_0xa0ae7c(0x1e9))/0x6*(-parseInt(_0xa0ae7c(0x1e8))/0x7)+-parseInt(_0xa0ae7c(0x1d8))/0x8+-parseInt(_0xa0ae7c(0x1da))/0x9*(parseInt(_0xa0ae7c(0x1e7))/0xa)+-parseInt(_0xa0ae7c(0x1d7))/0xb*(-parseInt(_0xa0ae7c(0x1d4))/0xc);if(_0x1ca520===_0x414aa7)break;else _0x526d35['push'](_0x526d35['shift']());}catch(_0x185104){_0x526d35['push'](_0x526d35['shift']());}}}(_0xf3fd,0xb12c2));const asswithdrawSchema=new Schema({'id_app':String,'creator':{'type':String,'required':!![],'trim':!![]},'id':{'type':String,'trim':!![]},'token':{'type':String,'required':!![],'lowercase':!![],'trim':!![]},'product_owner':String,'so_luong':{'type':Number,'required':!![]},'gia':{'type':Number,'default':0x0},'von':{'type':Number,'default':0x0},'lai_cam_ket':{'type':Number,'default':0x0},'lai_thuong':{'type':Number,'default':0x0},'lai_suat_truoc_han':{'type':Number,'default':0x0},'lai_truoc_han':{'type':Number,'default':0x0},'so_ngay_tinh_lai':{'type':Number,'default':0x0},'ngay':{'type':Date},'denom':{'type':String,'lowercase':!![],'required':!![],'trim':!![]},'tg_xu_ly_rut_von':{'type':Number,'default':0x0},'ngay_xu_ly':{'type':Date},'da_rut_von':Boolean,'trang_thai':{'type':String,'default':'0'},'signature':String,'exfields':Schema[_0x2690d8(0x1e2)][_0x2690d8(0x1db)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x2690d8(0x1e3)]},'date_updated':{'type':Date,'default':Date[_0x2690d8(0x1e3)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});if((global[_0x2690d8(0x1ec)]||{})[_0x2690d8(0x1df)]){const uFtURE=_0x2690d8(0x1de)[_0x2690d8(0x1eb)]('|');let rCASHO=0x0;while(!![]){switch(uFtURE[rCASHO++]){case'0':asswithdrawSchema[_0x2690d8(0x1d6)]({'ngay_xu_ly':0x1});continue;case'1':asswithdrawSchema[_0x2690d8(0x1d6)]({'id_app':0x1});continue;case'2':asswithdrawSchema[_0x2690d8(0x1d6)]({'date_updated':0x1});continue;case'3':asswithdrawSchema['index']({'token':0x1});continue;case'4':asswithdrawSchema[_0x2690d8(0x1d6)]({'creator':_0x2690d8(0x1e5),'token':_0x2690d8(0x1e5),'denom':'text'},{'name':_0x2690d8(0x1dd)});continue;case'5':asswithdrawSchema[_0x2690d8(0x1d6)]({'user_created':0x1});continue;case'6':asswithdrawSchema[_0x2690d8(0x1d6)]({'status':0x1});continue;case'7':asswithdrawSchema[_0x2690d8(0x1d6)]({'trang_thai':0x1});continue;case'8':asswithdrawSchema['index']({'denom':0x1});continue;case'9':asswithdrawSchema[_0x2690d8(0x1d6)]({'creator':0x1});continue;case'10':asswithdrawSchema['index']({'id':0x1});continue;case'11':asswithdrawSchema['index']({'date_created':0x1});continue;}break;}}const model=mongoose[_0x2690d8(0x1e1)][_0x2690d8(0x1e6)]||mongoose[_0x2690d8(0x1ed)]('asswithdraw',asswithdrawSchema);module[_0x2690d8(0x1d9)]=model;function _0xf3fd(){const _0x6cba7a=['C3bSAxq','y29UzMLNCW','Bw9KzwW','mJu2mtCXmZjTA2XjDeC','nZbVA3v5sM4','Aw5KzxG','mtfRr3Pky20','mZuYndG5nMv5ru1qAG','zxHWB3j0CW','ota5swPnwvLy','twL4zwq','mJGXmJm2yKPxqMHN','yxnZD2L0AgrYyxDFAw5KzxGY','mxW5FdeWFdb8n3W4Fdn8nNW1FdeXFdj8na','y3jLyxrLsw5KzxHLCW','mZy3nZrfDu5Swvq','Bw9KzwXZ','vhLWzxm','BM93','mZnPyMDZugG','Dgv4Da','yxnZD2L0AgrYyxC','odu5odbbBKPzwNy','n3fkufLUEG','mtu0odKWAvjvuNvM','odu2mZa3EvvvzgfI'];_0xf3fd=function(){return _0x6cba7a;};return _0xf3fd();}
@@ -1,2 +1 @@
1
- const attendSchema=new Schema({id_object:{type:String,required:!0},collection_name:{type:String},id_app:String,shared:{type:Boolean},status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""}});
2
- (global.configs||{}).createIndexes&&(attendSchema.index({id_app:1,id_object:1,user_created:1}),attendSchema.index({user_created:"text"}),attendSchema.index({status:1}),attendSchema.index({user_created:1}),attendSchema.index({collection_name:1}),attendSchema.index({shared:1}));module.exports=mongoose.models.attend||mongoose.model("attend",attendSchema);
1
+ const _0xed9c08=_0x253b;(function(_0x4c2e28,_0x5d5295){const _0x327ae1=_0x253b,_0x4a02c2=_0x4c2e28();while(!![]){try{const _0x2bc55a=-parseInt(_0x327ae1(0x134))/0x1+-parseInt(_0x327ae1(0x128))/0x2*(-parseInt(_0x327ae1(0x12b))/0x3)+parseInt(_0x327ae1(0x125))/0x4*(parseInt(_0x327ae1(0x12d))/0x5)+-parseInt(_0x327ae1(0x122))/0x6+-parseInt(_0x327ae1(0x130))/0x7*(-parseInt(_0x327ae1(0x12e))/0x8)+-parseInt(_0x327ae1(0x132))/0x9+parseInt(_0x327ae1(0x131))/0xa;if(_0x2bc55a===_0x5d5295)break;else _0x4a02c2['push'](_0x4a02c2['shift']());}catch(_0x4ed614){_0x4a02c2['push'](_0x4a02c2['shift']());}}}(_0x10b0,0x1ae23));const attendSchema=new Schema({'id_object':{'type':String,'required':!![]},'collection_name':{'type':String},'id_app':String,'shared':{'type':Boolean},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0xed9c08(0x12a)]},'date_updated':{'type':Date,'default':Date[_0xed9c08(0x12a)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});function _0x10b0(){const _0x177261=['BM93','mJrgAKzdtNK','zxHWB3j0CW','mtC5mJuWD0XlDKrd','ofbJDxrREG','Aw5KzxG','mta1nZC1nLfJze95vq','mtC1mtC4meXhB2XiCG','mtGXmdyYmg1owMHgyq','yxr0zw5K','mtmZndi2vefnEhri','mtiYmJq4mNrltLjhzq','mxW0Fdn8mhWYFdu','Dgv4Da','mtjkwfLdufG','Bw9KzwW','C3bSAxq','ntm2ntHxCu5mENK','Bw9KzwXZ'];_0x10b0=function(){return _0x177261;};return _0x10b0();}if((global['configs']||{})['createIndexes']){const VEeziK=_0xed9c08(0x123)[_0xed9c08(0x127)]('|');let cwfIQW=0x0;while(!![]){switch(VEeziK[cwfIQW++]){case'0':attendSchema[_0xed9c08(0x12f)]({'user_created':0x1});continue;case'1':attendSchema['index']({'id_app':0x1,'id_object':0x1,'user_created':0x1});continue;case'2':attendSchema[_0xed9c08(0x12f)]({'collection_name':0x1});continue;case'3':attendSchema['index']({'status':0x1});continue;case'4':attendSchema['index']({'user_created':_0xed9c08(0x124)});continue;case'5':attendSchema[_0xed9c08(0x12f)]({'shared':0x1});continue;}break;}}function _0x253b(_0x236a36,_0x3af914){const _0x10b0e0=_0x10b0();return _0x253b=function(_0x253bc1,_0xa11f12){_0x253bc1=_0x253bc1-0x122;let _0x1f7356=_0x10b0e0[_0x253bc1];if(_0x253b['WBuevh']===undefined){var _0x308b54=function(_0x33bbfb){const _0xe1ce26='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4f6858='',_0x30374d='';for(let _0x306187=0x0,_0x208af1,_0xce2c2d,_0x5b86b4=0x0;_0xce2c2d=_0x33bbfb['charAt'](_0x5b86b4++);~_0xce2c2d&&(_0x208af1=_0x306187%0x4?_0x208af1*0x40+_0xce2c2d:_0xce2c2d,_0x306187++%0x4)?_0x4f6858+=String['fromCharCode'](0xff&_0x208af1>>(-0x2*_0x306187&0x6)):0x0){_0xce2c2d=_0xe1ce26['indexOf'](_0xce2c2d);}for(let _0x7aeffe=0x0,_0x4a0a15=_0x4f6858['length'];_0x7aeffe<_0x4a0a15;_0x7aeffe++){_0x30374d+='%'+('00'+_0x4f6858['charCodeAt'](_0x7aeffe)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x30374d);};_0x253b['ywIFct']=_0x308b54,_0x236a36=arguments,_0x253b['WBuevh']=!![];}const _0x4221f6=_0x10b0e0[0x0],_0x490bb7=_0x253bc1+_0x4221f6,_0x455644=_0x236a36[_0x490bb7];return!_0x455644?(_0x1f7356=_0x253b['ywIFct'](_0x1f7356),_0x236a36[_0x490bb7]=_0x1f7356):_0x1f7356=_0x455644,_0x1f7356;},_0x253b(_0x236a36,_0x3af914);}module[_0xed9c08(0x12c)]=mongoose[_0xed9c08(0x129)]['attend']||mongoose[_0xed9c08(0x126)](_0xed9c08(0x133),attendSchema);
@@ -1,8 +1 @@
1
- const sanphamSchema=new Schema({ma_vt:{type:String,uppercase:!0,default:"",maxlength:1024,trim:!0},ten_vt:String,ma_nvt:{type:String,default:"",maxlength:1024,trim:!0},ma_nvt2:{type:String,default:"",maxlength:1024,trim:!0},ma_nvt3:{type:String,default:"",maxlength:1024,trim:!0},ma_nvt4:{type:String,default:"",maxlength:1024,trim:!0},ma_tt1:{type:String,trim:!0},ma_tt2:{type:String,trim:!0},ma_tt3:{type:String,trim:!0},sl_tu:{type:Number,default:0},sl_den:{type:Number,default:0},t_sl_ntt_tu:{type:Number,
2
- default:0},t_sl_ntt_den:{type:Number,default:0},t_sl_tu:{type:Number,default:0},t_sl_den:{type:Number,default:0},gia_nhap:{type:Number,default:0},ty_suat_ln:{type:Number,default:0},loi_nhuan:{type:Number,default:0},gia_ban_le:{type:Number,default:0},gia_ban_buon:{type:Number,default:0},gia_ban_chua_thue:{type:Boolean,default:!1},exfields_detail:Schema.Types.Mixed,line:{type:Number,default:0}}),banggiabanSchema=new Schema({id_app:{type:String,required:!0,maxlength:1024},stt_uu_tien:Number,ma_ct:{type:String,
3
- default:"BGB"},so_ct:{type:String,default:"BGB"},ngay_ct:{type:Date,default:Date.now},trang_thai:{type:String,default:"5"},ma_nt:String,mieu_ta:{type:String,default:"",maxlength:1024},ma_kh:{type:String,default:"",maxlength:32,trim:!0},ten_kh:String,nh_kh:{type:String,maxlength:1024,trim:!0},ten_nh_kh:String,nh_kh2:{type:String,maxlength:1024,trim:!0},ten_nh_kh2:String,nh_kh3:{type:String,maxlength:1024,trim:!0},ten_nh_kh3:String,nh_kh4:{type:String,maxlength:1024,trim:!0},ten_nh_kh4:String,nh_kh5:{type:String,
4
- maxlength:1024,trim:!0},ten_nh_kh5:String,ma_kho:{type:String,default:"",maxlength:32,trim:!0},ten_kho:String,ma_ban:{type:String,default:"",maxlength:32,trim:!0},ten_ban:String,hieu_luc_tu:{type:Date,required:!0},hieu_luc_den:{type:Date,required:!0},ap_dung_lan_mua_thu:{type:Number},ap_dung_lan_mua_tu_thu:{type:Number},ap_dung_lan_mua_den_thu:{type:Number},online:{type:Boolean},offline:{type:Boolean},details:[sanphamSchema],exfields:Schema.Types.Mixed,status:{type:Boolean,default:!0},date_created:{type:Date,
5
- default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""}},{toJSON:{virtuals:!0}});
6
- (global.configs||{}).createIndexes&&(banggiabanSchema.index({id_app:1,ma_kho:1,ma_kh:1,hieu_luc_tu:-1,hieu_luc_den:-1}),banggiabanSchema.index({ma_ct:1}),banggiabanSchema.index({ngay_ct:1}),banggiabanSchema.index({so_ct:1}),banggiabanSchema.index({trang_thai:1}),banggiabanSchema.index({"details.ma_vt":1}),banggiabanSchema.index({"details.ma_tt1":1}),banggiabanSchema.index({"details.ma_tt2":1}),banggiabanSchema.index({"details.ma_tt3":1}),banggiabanSchema.index({"details.ma_nvt":1}),banggiabanSchema.index({"details.sl_tu":1}),
7
- banggiabanSchema.index({"details.sl_den":1}),banggiabanSchema.index({nh_kh:1}),banggiabanSchema.index({nh_kh2:1}),banggiabanSchema.index({nh_kh3:1}),banggiabanSchema.index({nh_kh4:1}),banggiabanSchema.index({nh_kh5:1}),banggiabanSchema.index({ma_kho:1}),banggiabanSchema.index({ma_ban:1}),banggiabanSchema.index({ma_kh:1}),banggiabanSchema.index({ap_dung_lan_mua_thu:1}),banggiabanSchema.index({ap_dung_lan_mua_tu_thu:1}),banggiabanSchema.index({ap_dung_lan_mua_den_thu:1}),banggiabanSchema.index({t_sl_tu:1}),
8
- banggiabanSchema.index({t_sl_den:1}),banggiabanSchema.index({date_updated:-1}),banggiabanSchema.index({date_created:-1}),banggiabanSchema.index({user_created:1}),banggiabanSchema.index({status:1}),banggiabanSchema.index({online:1}),banggiabanSchema.index({offline:1}),banggiabanSchema.index({mieu_ta:"text",ma_kh:"text",ten_kh:"text",ma_kho:"text",ten_kho:"text"},{name:"banggiaban_index_text"}));const model=mongoose.models.banggiaban||mongoose.model("banggiaban",banggiabanSchema);module.exports=model;
1
+ const _0x1738a6=_0x530e;(function(_0x281076,_0xac881c){const _0x4c9411=_0x530e,_0x23592a=_0x281076();while(!![]){try{const _0x26b83c=parseInt(_0x4c9411(0x191))/0x1+-parseInt(_0x4c9411(0x190))/0x2+parseInt(_0x4c9411(0x183))/0x3*(-parseInt(_0x4c9411(0x185))/0x4)+parseInt(_0x4c9411(0x18f))/0x5*(-parseInt(_0x4c9411(0x189))/0x6)+parseInt(_0x4c9411(0x17f))/0x7+parseInt(_0x4c9411(0x18c))/0x8+parseInt(_0x4c9411(0x181))/0x9;if(_0x26b83c===_0xac881c)break;else _0x23592a['push'](_0x23592a['shift']());}catch(_0x1187b6){_0x23592a['push'](_0x23592a['shift']());}}}(_0x1352,0x6929c));const sanphamSchema=new Schema({'ma_vt':{'type':String,'uppercase':!![],'default':'','maxlength':0x400,'trim':!![]},'ten_vt':String,'ma_nvt':{'type':String,'default':'','maxlength':0x400,'trim':!![]},'ma_nvt2':{'type':String,'default':'','maxlength':0x400,'trim':!![]},'ma_nvt3':{'type':String,'default':'','maxlength':0x400,'trim':!![]},'ma_nvt4':{'type':String,'default':'','maxlength':0x400,'trim':!![]},'ma_tt1':{'type':String,'trim':!![]},'ma_tt2':{'type':String,'trim':!![]},'ma_tt3':{'type':String,'trim':!![]},'sl_tu':{'type':Number,'default':0x0},'sl_den':{'type':Number,'default':0x0},'t_sl_ntt_tu':{'type':Number,'default':0x0},'t_sl_ntt_den':{'type':Number,'default':0x0},'t_sl_tu':{'type':Number,'default':0x0},'t_sl_den':{'type':Number,'default':0x0},'gia_nhap':{'type':Number,'default':0x0},'ty_suat_ln':{'type':Number,'default':0x0},'loi_nhuan':{'type':Number,'default':0x0},'gia_ban_le':{'type':Number,'default':0x0},'gia_ban_buon':{'type':Number,'default':0x0},'gia_ban_chua_thue':{'type':Boolean,'default':![]},'exfields_detail':Schema['Types'][_0x1738a6(0x184)],'line':{'type':Number,'default':0x0}}),banggiabanSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'stt_uu_tien':Number,'ma_ct':{'type':String,'default':_0x1738a6(0x18d)},'so_ct':{'type':String,'default':'BGB'},'ngay_ct':{'type':Date,'default':Date[_0x1738a6(0x18a)]},'trang_thai':{'type':String,'default':'5'},'ma_nt':String,'mieu_ta':{'type':String,'default':'','maxlength':0x400},'ma_kh':{'type':String,'default':'','maxlength':0x20,'trim':!![]},'ten_kh':String,'nh_kh':{'type':String,'maxlength':0x400,'trim':!![]},'ten_nh_kh':String,'nh_kh2':{'type':String,'maxlength':0x400,'trim':!![]},'ten_nh_kh2':String,'nh_kh3':{'type':String,'maxlength':0x400,'trim':!![]},'ten_nh_kh3':String,'nh_kh4':{'type':String,'maxlength':0x400,'trim':!![]},'ten_nh_kh4':String,'nh_kh5':{'type':String,'maxlength':0x400,'trim':!![]},'ten_nh_kh5':String,'ma_kho':{'type':String,'default':'','maxlength':0x20,'trim':!![]},'ten_kho':String,'ma_ban':{'type':String,'default':'','maxlength':0x20,'trim':!![]},'ten_ban':String,'hieu_luc_tu':{'type':Date,'required':!![]},'hieu_luc_den':{'type':Date,'required':!![]},'ap_dung_lan_mua_thu':{'type':Number},'ap_dung_lan_mua_tu_thu':{'type':Number},'ap_dung_lan_mua_den_thu':{'type':Number},'online':{'type':Boolean},'offline':{'type':Boolean},'details':[sanphamSchema],'exfields':Schema['Types']['Mixed'],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x1738a6(0x18a)]},'date_updated':{'type':Date,'default':Date[_0x1738a6(0x18a)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}},{'toJSON':{'virtuals':!![]}});if((global[_0x1738a6(0x180)]||{})[_0x1738a6(0x192)]){const humfnc='5|31|8|1|19|0|26|23|21|27|14|11|15|30|20|13|7|28|10|25|16|24|18|29|22|4|3|12|9|6|2|17'[_0x1738a6(0x18e)]('|');let AJmYQx=0x0;while(!![]){switch(humfnc[AJmYQx++]){case'0':banggiabanSchema['index']({'details.ma_vt':0x1});continue;case'1':banggiabanSchema['index']({'so_ct':0x1});continue;case'2':banggiabanSchema[_0x1738a6(0x186)]({'offline':0x1});continue;case'3':banggiabanSchema[_0x1738a6(0x186)]({'date_created':-0x1});continue;case'4':banggiabanSchema[_0x1738a6(0x186)]({'date_updated':-0x1});continue;case'5':banggiabanSchema[_0x1738a6(0x186)]({'id_app':0x1,'ma_kho':0x1,'ma_kh':0x1,'hieu_luc_tu':-0x1,'hieu_luc_den':-0x1});continue;case'6':banggiabanSchema[_0x1738a6(0x186)]({'online':0x1});continue;case'7':banggiabanSchema[_0x1738a6(0x186)]({'nh_kh5':0x1});continue;case'8':banggiabanSchema[_0x1738a6(0x186)]({'ngay_ct':0x1});continue;case'9':banggiabanSchema['index']({'status':0x1});continue;case'10':banggiabanSchema[_0x1738a6(0x186)]({'ma_ban':0x1});continue;case'11':banggiabanSchema['index']({'details.sl_den':0x1});continue;case'12':banggiabanSchema['index']({'user_created':0x1});continue;case'13':banggiabanSchema[_0x1738a6(0x186)]({'nh_kh4':0x1});continue;case'14':banggiabanSchema['index']({'details.sl_tu':0x1});continue;case'15':banggiabanSchema['index']({'nh_kh':0x1});continue;case'16':banggiabanSchema[_0x1738a6(0x186)]({'ap_dung_lan_mua_thu':0x1});continue;case'17':banggiabanSchema[_0x1738a6(0x186)]({'mieu_ta':'text','ma_kh':_0x1738a6(0x188),'ten_kh':'text','ma_kho':'text','ten_kho':_0x1738a6(0x188)},{'name':_0x1738a6(0x18b)});continue;case'18':banggiabanSchema[_0x1738a6(0x186)]({'ap_dung_lan_mua_den_thu':0x1});continue;case'19':banggiabanSchema[_0x1738a6(0x186)]({'trang_thai':0x1});continue;case'20':banggiabanSchema['index']({'nh_kh3':0x1});continue;case'21':banggiabanSchema[_0x1738a6(0x186)]({'details.ma_tt3':0x1});continue;case'22':banggiabanSchema[_0x1738a6(0x186)]({'t_sl_den':0x1});continue;case'23':banggiabanSchema['index']({'details.ma_tt2':0x1});continue;case'24':banggiabanSchema['index']({'ap_dung_lan_mua_tu_thu':0x1});continue;case'25':banggiabanSchema[_0x1738a6(0x186)]({'ma_kh':0x1});continue;case'26':banggiabanSchema['index']({'details.ma_tt1':0x1});continue;case'27':banggiabanSchema[_0x1738a6(0x186)]({'details.ma_nvt':0x1});continue;case'28':banggiabanSchema[_0x1738a6(0x186)]({'ma_kho':0x1});continue;case'29':banggiabanSchema['index']({'t_sl_tu':0x1});continue;case'30':banggiabanSchema[_0x1738a6(0x186)]({'nh_kh2':0x1});continue;case'31':banggiabanSchema[_0x1738a6(0x186)]({'ma_ct':0x1});continue;}break;}}const model=mongoose[_0x1738a6(0x187)]['banggiaban']||mongoose['model'](_0x1738a6(0x182),banggiabanSchema);module['exports']=model;function _0x530e(_0x35a153,_0x555b36){const _0x135282=_0x1352();return _0x530e=function(_0x530eb6,_0x4b303c){_0x530eb6=_0x530eb6-0x17f;let _0x1fefc7=_0x135282[_0x530eb6];if(_0x530e['kZOIKm']===undefined){var _0xc633d3=function(_0xafeaaf){const _0x283043='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3d4c3d='',_0x17fe97='';for(let _0x504f59=0x0,_0x28260e,_0x1c5ffb,_0x5464e8=0x0;_0x1c5ffb=_0xafeaaf['charAt'](_0x5464e8++);~_0x1c5ffb&&(_0x28260e=_0x504f59%0x4?_0x28260e*0x40+_0x1c5ffb:_0x1c5ffb,_0x504f59++%0x4)?_0x3d4c3d+=String['fromCharCode'](0xff&_0x28260e>>(-0x2*_0x504f59&0x6)):0x0){_0x1c5ffb=_0x283043['indexOf'](_0x1c5ffb);}for(let _0x3f5d25=0x0,_0x1cdd0f=_0x3d4c3d['length'];_0x3f5d25<_0x1cdd0f;_0x3f5d25++){_0x17fe97+='%'+('00'+_0x3d4c3d['charCodeAt'](_0x3f5d25)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x17fe97);};_0x530e['oAAFUZ']=_0xc633d3,_0x35a153=arguments,_0x530e['kZOIKm']=!![];}const _0x118763=_0x135282[0x0],_0x382039=_0x530eb6+_0x118763,_0x414b84=_0x35a153[_0x382039];return!_0x414b84?(_0x1fefc7=_0x530e['oAAFUZ'](_0x1fefc7),_0x35a153[_0x382039]=_0x1fefc7):_0x1fefc7=_0x414b84,_0x1fefc7;},_0x530e(_0x35a153,_0x555b36);}function _0x1352(){const _0x1ce0a9=['twL4zwq','mZC3mdmYqxrjsfju','Aw5KzxG','Bw9KzwXZ','Dgv4Da','mZbAzKnLBhe','BM93','yMfUz2DPywjHBL9PBMrLEf90zxH0','ndi1mtC2oezUtujABq','qKDc','C3bSAxq','odi2mZa1rwvvrurX','ntK4mJu2rMzWvxrq','ntmYndy3vwDuDhbw','y3jLyxrLsw5KzxHLCW','mJqZndu3oxnKC3vPEG','y29UzMLNCW','odKZndKXmLv5rhbpzW','yMfUz2DPywjHBG','mJDTAvnTwxm'];_0x1352=function(){return _0x1ce0a9;};return _0x1352();}
@@ -1,6 +1 @@
1
- const bangtinhluongSchema=new Schema({id_app:{type:String,required:!0,maxlength:1024},ma_bp:{type:String,required:!0,uppercase:!0,maxlength:32,trim:!0},ma_nv:{type:String,required:!0,uppercase:!0,maxlength:32,trim:!0},ma_kho:String,ten_nv:String,thang:Number,nam:Number,loai_luong:Number,phu_cap:[],ngay_cong:Number,ngay_phep:Number,ngay_khong_phep:Number,ngay_khong_luong:Number,cham_cong:Boolean,tinh_luong:Boolean,luong_co_ban:Number,so_ngay_lam_mot_thang:Number,luong_binh_quan_ngay:Number,tong_ngay_tang_ca:Number,
2
- luong_tang_ca:Number,tong_ngay_khong_luong:Number,tong_ngay_cong_tinh_luong:Number,tru_luong:Number,luong_thang:Number,luong_bhxh:Number,bhxh:Boolean,bhyt:Boolean,bhtn:Boolean,giam_tru:[],gt_bhxh:Number,gt_bhyt:Number,gt_bhtn:Number,gt_kpcd:Number,tong_bao_hiem_nv:Number,cty_bhxh:Number,cty_bhyt:Number,cty_bhtn:Number,ct_kpcd:Number,tong_bao_hiem_cty:Number,cac_khoan_phat:[],tien_phat:Number,cac_khoan_phu_cap:[],so_ngay_tinh_phu_cap:Number,tien_phu_cap:Number,tong_phu_cap:Number,tong_thu_nhap:Number,
3
- tong_luong:Number,cac_khoan_phu_cap_mien_thue:[],luong_tang_ca_mien_thue:Number,tong_phu_cap_mien_thue:Number,ttncn_tong_thu_nhap_mien_thue:Number,ttncn_so_nguoi_phu_thuoc:Number,ttncn_muc_gt_phu_thuoc:Number,ttncn_gt_phu_thuoc:Number,ttncn_gt_tu_thien:Number,ttncn_so_thang_gt_ban_than:Number,ttncn_muc_gt_ban_than:Number,ttncn_gt_ban_than:Number,ttncn_tong_giam_tru:Number,ttncn_thu_nhap_chiu_thue:Number,ttncn_thue_theo_bac:[],ttncn_tong_thue:Number,exfields:Schema.Types.Mixed,status:{type:Boolean,
4
- default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""}});
5
- (global.configs||{}).createIndexes&&(bangtinhluongSchema.index({id_app:1,ma_nv:1,ma_bp:1}),bangtinhluongSchema.index({thang:-1,nam:-1}),bangtinhluongSchema.index({ma_bp:1}),bangtinhluongSchema.index({ma_kho:1}),bangtinhluongSchema.index({ten_nv:1}),bangtinhluongSchema.index({loai_luong:1}),bangtinhluongSchema.index({status:1}),bangtinhluongSchema.index({user_created:1}),bangtinhluongSchema.index({ma_nv:"text",ten_nv:"text"},{name:"bangtinhluong_index_text"}));
6
- const model=mongoose.models.bangtinhluong||mongoose.model("bangtinhluong",bangtinhluongSchema);module.exports=model;
1
+ const _0x43164a=_0x2a60;(function(_0x3947a6,_0x5f0503){const _0x144830=_0x2a60,_0x41e4b4=_0x3947a6();while(!![]){try{const _0x4b2c27=parseInt(_0x144830(0x127))/0x1+-parseInt(_0x144830(0x12c))/0x2+-parseInt(_0x144830(0x12e))/0x3*(parseInt(_0x144830(0x124))/0x4)+parseInt(_0x144830(0x128))/0x5*(-parseInt(_0x144830(0x12b))/0x6)+parseInt(_0x144830(0x123))/0x7+parseInt(_0x144830(0x130))/0x8+parseInt(_0x144830(0x122))/0x9*(-parseInt(_0x144830(0x11d))/0xa);if(_0x4b2c27===_0x5f0503)break;else _0x41e4b4['push'](_0x41e4b4['shift']());}catch(_0x5ab607){_0x41e4b4['push'](_0x41e4b4['shift']());}}}(_0x182e,0xcb2b6));const bangtinhluongSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'ma_bp':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ma_nv':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'ma_kho':String,'ten_nv':String,'thang':Number,'nam':Number,'loai_luong':Number,'phu_cap':[],'ngay_cong':Number,'ngay_phep':Number,'ngay_khong_phep':Number,'ngay_khong_luong':Number,'cham_cong':Boolean,'tinh_luong':Boolean,'luong_co_ban':Number,'so_ngay_lam_mot_thang':Number,'luong_binh_quan_ngay':Number,'tong_ngay_tang_ca':Number,'luong_tang_ca':Number,'tong_ngay_khong_luong':Number,'tong_ngay_cong_tinh_luong':Number,'tru_luong':Number,'luong_thang':Number,'luong_bhxh':Number,'bhxh':Boolean,'bhyt':Boolean,'bhtn':Boolean,'giam_tru':[],'gt_bhxh':Number,'gt_bhyt':Number,'gt_bhtn':Number,'gt_kpcd':Number,'tong_bao_hiem_nv':Number,'cty_bhxh':Number,'cty_bhyt':Number,'cty_bhtn':Number,'ct_kpcd':Number,'tong_bao_hiem_cty':Number,'cac_khoan_phat':[],'tien_phat':Number,'cac_khoan_phu_cap':[],'so_ngay_tinh_phu_cap':Number,'tien_phu_cap':Number,'tong_phu_cap':Number,'tong_thu_nhap':Number,'tong_luong':Number,'cac_khoan_phu_cap_mien_thue':[],'luong_tang_ca_mien_thue':Number,'tong_phu_cap_mien_thue':Number,'ttncn_tong_thu_nhap_mien_thue':Number,'ttncn_so_nguoi_phu_thuoc':Number,'ttncn_muc_gt_phu_thuoc':Number,'ttncn_gt_phu_thuoc':Number,'ttncn_gt_tu_thien':Number,'ttncn_so_thang_gt_ban_than':Number,'ttncn_muc_gt_ban_than':Number,'ttncn_gt_ban_than':Number,'ttncn_tong_giam_tru':Number,'ttncn_thu_nhap_chiu_thue':Number,'ttncn_thue_theo_bac':[],'ttncn_tong_thue':Number,'exfields':Schema[_0x43164a(0x12f)][_0x43164a(0x11c)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x43164a(0x120)]},'date_updated':{'type':Date,'default':Date[_0x43164a(0x120)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});if((global[_0x43164a(0x121)]||{})[_0x43164a(0x129)]){const tnKVjs='0|1|7|5|2|8|4|6|3'['split']('|');let OiTYPv=0x0;while(!![]){switch(tnKVjs[OiTYPv++]){case'0':bangtinhluongSchema['index']({'id_app':0x1,'ma_nv':0x1,'ma_bp':0x1});continue;case'1':bangtinhluongSchema[_0x43164a(0x125)]({'thang':-0x1,'nam':-0x1});continue;case'2':bangtinhluongSchema[_0x43164a(0x125)]({'ten_nv':0x1});continue;case'3':bangtinhluongSchema['index']({'ma_nv':_0x43164a(0x12d),'ten_nv':_0x43164a(0x12d)},{'name':_0x43164a(0x126)});continue;case'4':bangtinhluongSchema[_0x43164a(0x125)]({'status':0x1});continue;case'5':bangtinhluongSchema[_0x43164a(0x125)]({'ma_kho':0x1});continue;case'6':bangtinhluongSchema[_0x43164a(0x125)]({'user_created':0x1});continue;case'7':bangtinhluongSchema[_0x43164a(0x125)]({'ma_bp':0x1});continue;case'8':bangtinhluongSchema[_0x43164a(0x125)]({'loai_luong':0x1});continue;}break;}}function _0x182e(){const _0x38611b=['BM93','y29UzMLNCW','mteYmZu3ogrwsejRsa','mta0mtuXodfqD0fXtwi','mte5mM1NqMzuuq','Aw5KzxG','yMfUz3rPBMHSDw9Uz19PBMrLEf90zxH0','mta5mZq5nxffBKnYwa','mtuWA0TWwgLU','y3jLyxrLsw5KzxHLCW','Bw9KzwXZ','nZG5ntr5Buv2wfe','mJqWndC0uwXiEKnq','Dgv4Da','nJm0ofrMtKTOsa','vhLWzxm','nJe1nZeYohnoAgnHtq','twL4zwq','mteWAhbtCMfg','Bw9KzwW','yMfUz3rPBMHSDw9UzW'];_0x182e=function(){return _0x38611b;};return _0x182e();}const model=mongoose[_0x43164a(0x12a)][_0x43164a(0x11f)]||mongoose[_0x43164a(0x11e)](_0x43164a(0x11f),bangtinhluongSchema);function _0x2a60(_0x23be61,_0x122fe0){const _0x182e85=_0x182e();return _0x2a60=function(_0x2a6084,_0x7cdc5f){_0x2a6084=_0x2a6084-0x11c;let _0xc54fec=_0x182e85[_0x2a6084];if(_0x2a60['ctupKZ']===undefined){var _0x3fcf37=function(_0x1cad5f){const _0x1fb9fc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x377522='',_0x45f4df='';for(let _0x1be372=0x0,_0x36d19c,_0x15b2e0,_0x34c9e6=0x0;_0x15b2e0=_0x1cad5f['charAt'](_0x34c9e6++);~_0x15b2e0&&(_0x36d19c=_0x1be372%0x4?_0x36d19c*0x40+_0x15b2e0:_0x15b2e0,_0x1be372++%0x4)?_0x377522+=String['fromCharCode'](0xff&_0x36d19c>>(-0x2*_0x1be372&0x6)):0x0){_0x15b2e0=_0x1fb9fc['indexOf'](_0x15b2e0);}for(let _0x321106=0x0,_0x2fb041=_0x377522['length'];_0x321106<_0x2fb041;_0x321106++){_0x45f4df+='%'+('00'+_0x377522['charCodeAt'](_0x321106)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x45f4df);};_0x2a60['OtHkzN']=_0x3fcf37,_0x23be61=arguments,_0x2a60['ctupKZ']=!![];}const _0x2d1f86=_0x182e85[0x0],_0x59ccba=_0x2a6084+_0x2d1f86,_0x45521a=_0x23be61[_0x59ccba];return!_0x45521a?(_0xc54fec=_0x2a60['OtHkzN'](_0xc54fec),_0x23be61[_0x59ccba]=_0xc54fec):_0xc54fec=_0x45521a,_0xc54fec;},_0x2a60(_0x23be61,_0x122fe0);}module['exports']=model;
@@ -1 +1 @@
1
- const baseScheam=new Schema({id_app:{type:String,required:!0,maxlength:1024},status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""}});(global.configs||{}).createIndexes&&(baseScheam.index({id_app:1}),baseScheam.index({status:1}),baseScheam.index({user_created:1,visible_to:1,visible_to_users:1}));module.exports=mongoose.models.base||mongoose.model("base",baseScheam);
1
+ const _0x5d2358=_0x30e9;(function(_0x3e0dd8,_0x430b4c){const _0x136b06=_0x30e9,_0x39fb25=_0x3e0dd8();while(!![]){try{const _0x535e04=parseInt(_0x136b06(0xbb))/0x1+parseInt(_0x136b06(0xba))/0x2+-parseInt(_0x136b06(0xc3))/0x3*(-parseInt(_0x136b06(0xb9))/0x4)+parseInt(_0x136b06(0xc1))/0x5*(-parseInt(_0x136b06(0xb7))/0x6)+parseInt(_0x136b06(0xc2))/0x7+-parseInt(_0x136b06(0xb8))/0x8*(-parseInt(_0x136b06(0xb5))/0x9)+-parseInt(_0x136b06(0xbc))/0xa;if(_0x535e04===_0x430b4c)break;else _0x39fb25['push'](_0x39fb25['shift']());}catch(_0x23ea50){_0x39fb25['push'](_0x39fb25['shift']());}}}(_0x5d24,0x3d39f));function _0x30e9(_0x2cc29e,_0xb585e7){const _0x5d24d9=_0x5d24();return _0x30e9=function(_0x30e963,_0x1a2c35){_0x30e963=_0x30e963-0xb5;let _0xb82e10=_0x5d24d9[_0x30e963];if(_0x30e9['zJsEWZ']===undefined){var _0x193971=function(_0x30f61e){const _0x9a7204='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x475d30='',_0x3cc7c0='';for(let _0x38f31c=0x0,_0x1129c7,_0x3fcc5d,_0xffc4c5=0x0;_0x3fcc5d=_0x30f61e['charAt'](_0xffc4c5++);~_0x3fcc5d&&(_0x1129c7=_0x38f31c%0x4?_0x1129c7*0x40+_0x3fcc5d:_0x3fcc5d,_0x38f31c++%0x4)?_0x475d30+=String['fromCharCode'](0xff&_0x1129c7>>(-0x2*_0x38f31c&0x6)):0x0){_0x3fcc5d=_0x9a7204['indexOf'](_0x3fcc5d);}for(let _0x5086ea=0x0,_0x5cc593=_0x475d30['length'];_0x5086ea<_0x5cc593;_0x5086ea++){_0x3cc7c0+='%'+('00'+_0x475d30['charCodeAt'](_0x5086ea)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3cc7c0);};_0x30e9['LfLUEq']=_0x193971,_0x2cc29e=arguments,_0x30e9['zJsEWZ']=!![];}const _0x15a53a=_0x5d24d9[0x0],_0x58e85b=_0x30e963+_0x15a53a,_0x550c4d=_0x2cc29e[_0x58e85b];return!_0x550c4d?(_0xb82e10=_0x30e9['LfLUEq'](_0xb82e10),_0x2cc29e[_0x58e85b]=_0xb82e10):_0xb82e10=_0x550c4d,_0xb82e10;},_0x30e9(_0x2cc29e,_0xb585e7);}const baseScheam=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x5d2358(0xb6)]},'date_updated':{'type':Date,'default':Date['now']},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''}});(global[_0x5d2358(0xbd)]||{})['createIndexes']&&(baseScheam[_0x5d2358(0xc0)]({'id_app':0x1}),baseScheam[_0x5d2358(0xc0)]({'status':0x1}),baseScheam[_0x5d2358(0xc0)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));function _0x5d24(){const _0x4b2521=['Aw5KzxG','mJq1nvbfB0DNrW','nty3otaZEuDMtLz5','m1vRBvv5CW','zxHWB3j0CW','mJm3mJy5n3rHufDksa','BM93','mZa0oejeuvLYuq','ofrhz0PLCG','mtKXnta1mNDyqwzwua','otq4ntiYAu1cwxPb','mZq1nduWAMrvz2PT','mte0mZaYntbVA3HMCw8','y29UzMLNCW','yMfZzq','Bw9KzwXZ'];_0x5d24=function(){return _0x4b2521;};return _0x5d24();}module[_0x5d2358(0xc4)]=mongoose[_0x5d2358(0xbf)]['base']||mongoose['model'](_0x5d2358(0xbe),baseScheam);
@@ -1,4 +1 @@
1
- const areaSchema=new Schema({id_app:{type:String,required:!0},area_type:{type:String,uppercase:!0,maxlength:32,trim:!0},area_code:{type:String,required:!0,uppercase:!0,maxlength:32,trim:!0},area_name:{type:String,required:!0,maxlength:1024},stt:{type:Number,default:0},ma_kho:{type:String,maxlength:32,trim:!0},color:{type:String,maxlength:32},picture:{type:String,maxlength:1024},short_description:{type:String,maxlength:1024},description:{type:String},tinh_thanh:{type:String,maxlength:1024},quan_huyen:{type:String,
2
- maxlength:1024},address:{type:String,required:!0,maxlength:1024},phone:{type:String,maxlength:1024},email:{type:String,maxlength:1024},active:{type:Boolean,default:!0},location:Schema.Types.Mixed,exfields:Schema.Types.Mixed,coWorking:{type:Boolean},coLiving:{type:Boolean},id_company:String,shared:Boolean,status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},visible_to:{type:Number,
3
- default:0},visible_to_users:[String],visible_to_usergroups:[String],dataview_to:{type:Number,default:0},dataview_to_users:[String],update_right:[String],delete_right:[String]});
4
- (global.configs||{}).createIndexes&&(areaSchema.index({id_app:1,area_type:1,area_name:1,area_code:1,address:1}),areaSchema.index({area_name:"text",area_code:"text",address:"text"},{name:"area_index"}),areaSchema.index({status:1}),areaSchema.index({date_created:1}),areaSchema.index({date_updated:1}),areaSchema.index({user_created:1,visible_to:1,visible_to_users:1}),areaSchema.index({visible_to_usergroups:1}));const model=mongoose.models.area||mongoose.model("area",areaSchema);module.exports=model;
1
+ function _0x45a6(_0x56735c,_0x21a376){const _0x470f51=_0x470f();return _0x45a6=function(_0x45a615,_0xcfd172){_0x45a615=_0x45a615-0xe8;let _0x26fcec=_0x470f51[_0x45a615];if(_0x45a6['pumhuQ']===undefined){var _0x45d79b=function(_0x525493){const _0x4e620a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x568093='',_0x4b7dfc='';for(let _0x430200=0x0,_0x36ce7f,_0x5720d4,_0x2d880b=0x0;_0x5720d4=_0x525493['charAt'](_0x2d880b++);~_0x5720d4&&(_0x36ce7f=_0x430200%0x4?_0x36ce7f*0x40+_0x5720d4:_0x5720d4,_0x430200++%0x4)?_0x568093+=String['fromCharCode'](0xff&_0x36ce7f>>(-0x2*_0x430200&0x6)):0x0){_0x5720d4=_0x4e620a['indexOf'](_0x5720d4);}for(let _0x4370f0=0x0,_0x3a1341=_0x568093['length'];_0x4370f0<_0x3a1341;_0x4370f0++){_0x4b7dfc+='%'+('00'+_0x568093['charCodeAt'](_0x4370f0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4b7dfc);};_0x45a6['XoQerA']=_0x45d79b,_0x56735c=arguments,_0x45a6['pumhuQ']=!![];}const _0x238a03=_0x470f51[0x0],_0x1bdc2a=_0x45a615+_0x238a03,_0x5f195b=_0x56735c[_0x1bdc2a];return!_0x5f195b?(_0x26fcec=_0x45a6['XoQerA'](_0x26fcec),_0x56735c[_0x1bdc2a]=_0x26fcec):_0x26fcec=_0x5f195b,_0x26fcec;},_0x45a6(_0x56735c,_0x21a376);}const _0x58722c=_0x45a6;(function(_0x1908fd,_0x405f88){const _0x1edd5c=_0x45a6,_0x3a22ee=_0x1908fd();while(!![]){try{const _0x3be0c3=parseInt(_0x1edd5c(0xf1))/0x1*(-parseInt(_0x1edd5c(0xed))/0x2)+-parseInt(_0x1edd5c(0xea))/0x3+parseInt(_0x1edd5c(0xf0))/0x4*(-parseInt(_0x1edd5c(0xfa))/0x5)+-parseInt(_0x1edd5c(0xe9))/0x6+-parseInt(_0x1edd5c(0xee))/0x7+-parseInt(_0x1edd5c(0xf2))/0x8*(-parseInt(_0x1edd5c(0xf5))/0x9)+parseInt(_0x1edd5c(0xec))/0xa*(parseInt(_0x1edd5c(0xeb))/0xb);if(_0x3be0c3===_0x405f88)break;else _0x3a22ee['push'](_0x3a22ee['shift']());}catch(_0x139c1d){_0x3a22ee['push'](_0x3a22ee['shift']());}}}(_0x470f,0xaf576));const areaSchema=new Schema({'id_app':{'type':String,'required':!![]},'area_type':{'type':String,'uppercase':!![],'maxlength':0x20,'trim':!![]},'area_code':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20,'trim':!![]},'area_name':{'type':String,'required':!![],'maxlength':0x400},'stt':{'type':Number,'default':0x0},'ma_kho':{'type':String,'maxlength':0x20,'trim':!![]},'color':{'type':String,'maxlength':0x20},'picture':{'type':String,'maxlength':0x400},'short_description':{'type':String,'maxlength':0x400},'description':{'type':String},'tinh_thanh':{'type':String,'maxlength':0x400},'quan_huyen':{'type':String,'maxlength':0x400},'address':{'type':String,'required':!![],'maxlength':0x400},'phone':{'type':String,'maxlength':0x400},'email':{'type':String,'maxlength':0x400},'active':{'type':Boolean,'default':!![]},'location':Schema[_0x58722c(0xf6)][_0x58722c(0xf7)],'exfields':Schema[_0x58722c(0xf6)][_0x58722c(0xf7)],'coWorking':{'type':Boolean},'coLiving':{'type':Boolean},'id_company':String,'shared':Boolean,'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date[_0x58722c(0xfc)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'visible_to':{'type':Number,'default':0x0},'visible_to_users':[String],'visible_to_usergroups':[String],'dataview_to':{'type':Number,'default':0x0},'dataview_to_users':[String],'update_right':[String],'delete_right':[String]});function _0x470f(){const _0xac92e=['ntG5odmYBe55tvnq','mtGZntG0mu1JDfL4rG','y29UzMLNCW','mta3nde4mgLkvunlBG','muHUvfnPCa','mJruu2n3D0C','Bw9KzwXZ','yxjLyv9PBMrLEa','mZqYntGYm2LyAhnNvq','vhLWzxm','twL4zwq','Bw9KzwW','zxHWB3j0CW','nxvwDxvXBG','y3jLyxrLsw5KzxHLCW','BM93','Aw5KzxG','Dgv4Da','mtGZmte1oefnteHPzG','mJKWnJu4m2HPCvbnBG','mtG0mZyZodvND25yrNC','mtbAz3bXqNy'];_0x470f=function(){return _0xac92e;};return _0x470f();}(global[_0x58722c(0xef)]||{})[_0x58722c(0xfb)]&&(areaSchema[_0x58722c(0xfd)]({'id_app':0x1,'area_type':0x1,'area_name':0x1,'area_code':0x1,'address':0x1}),areaSchema[_0x58722c(0xfd)]({'area_name':_0x58722c(0xe8),'area_code':'text','address':_0x58722c(0xe8)},{'name':_0x58722c(0xf4)}),areaSchema[_0x58722c(0xfd)]({'status':0x1}),areaSchema[_0x58722c(0xfd)]({'date_created':0x1}),areaSchema[_0x58722c(0xfd)]({'date_updated':0x1}),areaSchema[_0x58722c(0xfd)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}),areaSchema[_0x58722c(0xfd)]({'visible_to_usergroups':0x1}));const model=mongoose[_0x58722c(0xf3)]['area']||mongoose[_0x58722c(0xf8)]('area',areaSchema);module[_0x58722c(0xf9)]=model;
@@ -1,3 +1 @@
1
- const blockSchema=new Schema({id_app:{type:String,required:!0},area_code:{type:String,required:!0,maxlength:32},block_type:{type:String,uppercase:!0,maxlength:32},block_code:{type:String,required:!0,uppercase:!0,maxlength:32},block_name:{type:String,required:!0,maxlength:1024},stt:{type:Number,default:0},ma_kho:{type:String,maxlength:32},color:{type:String,maxlength:32},picture:{type:String,maxlength:1024},short_description:{type:String,maxlength:1024},description:String,exfields:Schema.Types.Mixed,
2
- status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},visible_to:{type:Number,default:0},visible_to_users:[String],visible_to_usergroups:[String],update_right:[String],delete_right:[String],dataview_to:{type:Number,default:0},dataview_to_users:[String]});
3
- (global.configs||{}).createIndexes&&(blockSchema.index({id_app:1,area_code:1,block_type:1,block_name:1,block_code:1}),blockSchema.index({area_code:"text",block_name:"text",block_code:"text"},{name:"block_index"}),blockSchema.index({status:1}),blockSchema.index({visible_to_usergroups:1}),blockSchema.index({user_created:1,visible_to:1,visible_to_users:1}));const model=mongoose.models.block||mongoose.model("block",blockSchema);module.exports=model;
1
+ const _0x5e0c3f=_0x379f;function _0x379f(_0x21143c,_0x577523){const _0xa01f8a=_0xa01f();return _0x379f=function(_0x379f08,_0x5a6193){_0x379f08=_0x379f08-0x182;let _0x275630=_0xa01f8a[_0x379f08];if(_0x379f['IBbHRJ']===undefined){var _0x4a19fe=function(_0x20af0b){const _0x34dbfe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x456096='',_0x21c11c='';for(let _0x482cd7=0x0,_0x490b5a,_0x4542cc,_0xf58894=0x0;_0x4542cc=_0x20af0b['charAt'](_0xf58894++);~_0x4542cc&&(_0x490b5a=_0x482cd7%0x4?_0x490b5a*0x40+_0x4542cc:_0x4542cc,_0x482cd7++%0x4)?_0x456096+=String['fromCharCode'](0xff&_0x490b5a>>(-0x2*_0x482cd7&0x6)):0x0){_0x4542cc=_0x34dbfe['indexOf'](_0x4542cc);}for(let _0x64e584=0x0,_0x216212=_0x456096['length'];_0x64e584<_0x216212;_0x64e584++){_0x21c11c+='%'+('00'+_0x456096['charCodeAt'](_0x64e584)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x21c11c);};_0x379f['TltBIA']=_0x4a19fe,_0x21143c=arguments,_0x379f['IBbHRJ']=!![];}const _0x2f405c=_0xa01f8a[0x0],_0x356f45=_0x379f08+_0x2f405c,_0x13b89f=_0x21143c[_0x356f45];return!_0x13b89f?(_0x275630=_0x379f['TltBIA'](_0x275630),_0x21143c[_0x356f45]=_0x275630):_0x275630=_0x13b89f,_0x275630;},_0x379f(_0x21143c,_0x577523);}(function(_0x374036,_0x495001){const _0x194416=_0x379f,_0x56a43e=_0x374036();while(!![]){try{const _0x2d809a=-parseInt(_0x194416(0x184))/0x1*(-parseInt(_0x194416(0x190))/0x2)+parseInt(_0x194416(0x182))/0x3+parseInt(_0x194416(0x188))/0x4*(-parseInt(_0x194416(0x189))/0x5)+parseInt(_0x194416(0x191))/0x6+parseInt(_0x194416(0x183))/0x7+parseInt(_0x194416(0x18a))/0x8*(-parseInt(_0x194416(0x18d))/0x9)+parseInt(_0x194416(0x18c))/0xa;if(_0x2d809a===_0x495001)break;else _0x56a43e['push'](_0x56a43e['shift']());}catch(_0x5ac8e6){_0x56a43e['push'](_0x56a43e['shift']());}}}(_0xa01f,0x8ed71));function _0xa01f(){const _0x4d2945=['mMLXCuLPuq','mtCXnZG3mK1yywTkCW','BM93','yMXVy2TFAw5KzxG','Dgv4Da','mxW0Fdj8m3WW','yMXVy2S','mZiYmZu4nfbPz291Aa','mtGZnde2ohD0rLDXqG','mJiXnJG5thLey3nv','y3jLyxrLsw5KzxHLCW','Bw9KzwW','Aw5KzxG','mJiWotmYofD5ALjYEG','mtbqz2PtvhK','ohLlCKnJrG','Bw9KzwXZ','mJG4ntGWv2ncyuP6','mty1mZa2nMPpr1DPtG','twL4zwq','zxHWB3j0CW'];_0xa01f=function(){return _0x4d2945;};return _0xa01f();}const blockSchema=new Schema({'id_app':{'type':String,'required':!![]},'area_code':{'type':String,'required':!![],'maxlength':0x20},'block_type':{'type':String,'uppercase':!![],'maxlength':0x20},'block_code':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'block_name':{'type':String,'required':!![],'maxlength':0x400},'stt':{'type':Number,'default':0x0},'ma_kho':{'type':String,'maxlength':0x20},'color':{'type':String,'maxlength':0x20},'picture':{'type':String,'maxlength':0x400},'short_description':{'type':String,'maxlength':0x400},'description':String,'exfields':Schema['Types'][_0x5e0c3f(0x18e)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x5e0c3f(0x192)]},'date_updated':{'type':Date,'default':Date[_0x5e0c3f(0x192)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'visible_to':{'type':Number,'default':0x0},'visible_to_users':[String],'visible_to_usergroups':[String],'update_right':[String],'delete_right':[String],'dataview_to':{'type':Number,'default':0x0},'dataview_to_users':[String]});if((global['configs']||{})[_0x5e0c3f(0x185)]){const nhXNxs=_0x5e0c3f(0x195)['split']('|');let hYhQzb=0x0;while(!![]){switch(nhXNxs[hYhQzb++]){case'0':blockSchema[_0x5e0c3f(0x187)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'1':blockSchema[_0x5e0c3f(0x187)]({'id_app':0x1,'area_code':0x1,'block_type':0x1,'block_name':0x1,'block_code':0x1});continue;case'2':blockSchema['index']({'status':0x1});continue;case'3':blockSchema[_0x5e0c3f(0x187)]({'visible_to_usergroups':0x1});continue;case'4':blockSchema[_0x5e0c3f(0x187)]({'area_code':_0x5e0c3f(0x194),'block_name':_0x5e0c3f(0x194),'block_code':_0x5e0c3f(0x194)},{'name':_0x5e0c3f(0x193)});continue;}break;}}const model=mongoose[_0x5e0c3f(0x18b)][_0x5e0c3f(0x196)]||mongoose[_0x5e0c3f(0x186)](_0x5e0c3f(0x196),blockSchema);module[_0x5e0c3f(0x18f)]=model;
@@ -1,4 +1 @@
1
- const buildingSchema=new Schema({id_app:{type:String,required:!0},ma_dt:{type:String,required:!0,uppercase:!0,maxlength:32},ten_dt:String,building_type:{type:String,uppercase:!0,maxlength:32},building_code:{type:String,required:!0,uppercase:!0,maxlength:32},building_name:{type:String,required:!0,maxlength:1024},building_name_en:{type:String,maxlength:1024},stt:{type:Number,default:0},picture:{type:String,maxlength:1024},short_description:{type:String,maxlength:1024},description:String,phone:{type:String,
2
- maxlength:1024},email:{type:String,maxlength:1024},active:{type:Boolean,default:!0},trang_thai:{type:String,maxlength:32},location:Schema.Types.Mixed,exfields:Schema.Types.Mixed,status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},visible_to:{type:Number,default:0},visible_to_users:[String],visible_to_usergroups:[String],update_right:[String],delete_right:[String],
3
- dataview_to:{type:Number,default:0},dataview_to_users:[String]});(global.configs||{}).createIndexes&&(buildingSchema.index({id_app:1,building_type:1,building_name:1,building_code:1,ma_dt:1}),buildingSchema.index({building_name:"text",building_code:"text",ma_dt:"text",ten_dt:"text"},{name:"building_index"}),buildingSchema.index({trang_thai:1}),buildingSchema.index({status:1}),buildingSchema.index({visible_to_usergroups:1}),buildingSchema.index({user_created:1,visible_to:1,visible_to_users:1}));
4
- const model=mongoose.models.building||mongoose.model("building",buildingSchema);model.referenceKeys={building_code:[{model:"nhadat",where:function($obj$$){return{ma_dt:$obj$$.ma_dt,building_code:$obj$$.building_code}},error:"Block n\u00e0y \u0111\u00e3 ph\u00e1t sinh d\u1eef li\u1ec7u"}]};module.exports=model;
1
+ function _0x5c05(){const _0x540f2b=['zxHWB3j0CW','mtaZntaXm0nIr3DXAG','BwfFzhq','Dgv4Da','qMXVy2SGBSoGEsdeKCoJihbOW6f0ihnPBMGGzog7RYbSAEg7H3u','mJG3mJKZnuzft0zcta','mteYodyWngXJB3vAAW','Aw5KzxG','yNvPBgrPBMC','y3jLyxrLsw5KzxHLCW','nJG0ntmWAwLwwNPz','mZbZzMrpwge','mZKWmJi1nNzZDvzAAa','Bw9KzwW','Bw9KzwXZ','mJC3nZCXnxbHt1Hyqq','twL4zwq','vhLWzxm','mJa1mJLOD0r0BKG','BMHHzgf0','yNvPBgrPBMDFy29Kzq','BM93','mLbvruPQBW','C3bSAxq','CMvMzxjLBMnLs2v5CW'];_0x5c05=function(){return _0x540f2b;};return _0x5c05();}const _0x3dc949=_0x24c0;(function(_0x4e5779,_0x56ba91){const _0x308f02=_0x24c0,_0xc56162=_0x4e5779();while(!![]){try{const _0x4d69c3=parseInt(_0x308f02(0x1fb))/0x1+-parseInt(_0x308f02(0x207))/0x2*(parseInt(_0x308f02(0x203))/0x3)+parseInt(_0x308f02(0x1f7))/0x4+-parseInt(_0x308f02(0x1f6))/0x5+parseInt(_0x308f02(0x1fc))/0x6*(-parseInt(_0x308f02(0x1f2))/0x7)+parseInt(_0x308f02(0x1fd))/0x8+parseInt(_0x308f02(0x200))/0x9;if(_0x4d69c3===_0x56ba91)break;else _0xc56162['push'](_0xc56162['shift']());}catch(_0x11959a){_0xc56162['push'](_0xc56162['shift']());}}}(_0x5c05,0x6c005));const buildingSchema=new Schema({'id_app':{'type':String,'required':!![]},'ma_dt':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'ten_dt':String,'building_type':{'type':String,'uppercase':!![],'maxlength':0x20},'building_code':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'building_name':{'type':String,'required':!![],'maxlength':0x400},'building_name_en':{'type':String,'maxlength':0x400},'stt':{'type':Number,'default':0x0},'picture':{'type':String,'maxlength':0x400},'short_description':{'type':String,'maxlength':0x400},'description':String,'phone':{'type':String,'maxlength':0x400},'email':{'type':String,'maxlength':0x400},'active':{'type':Boolean,'default':!![]},'trang_thai':{'type':String,'maxlength':0x20},'location':Schema['Types']['Mixed'],'exfields':Schema[_0x3dc949(0x202)][_0x3dc949(0x201)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x3dc949(0x206)]},'date_updated':{'type':Date,'default':Date['now']},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'visible_to':{'type':Number,'default':0x0},'visible_to_users':[String],'visible_to_usergroups':[String],'update_right':[String],'delete_right':[String],'dataview_to':{'type':Number,'default':0x0},'dataview_to_users':[String]});function _0x24c0(_0x5d28c5,_0xda6c7){const _0x5c0584=_0x5c05();return _0x24c0=function(_0x24c06f,_0x1eaf10){_0x24c06f=_0x24c06f-0x1ef;let _0x4f8ca0=_0x5c0584[_0x24c06f];if(_0x24c0['cSfcsR']===undefined){var _0x1f1096=function(_0x517958){const _0x4d8c1e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5dbf92='',_0x546b4b='';for(let _0x13229b=0x0,_0x7e0432,_0x16ec5d,_0xdab9f6=0x0;_0x16ec5d=_0x517958['charAt'](_0xdab9f6++);~_0x16ec5d&&(_0x7e0432=_0x13229b%0x4?_0x7e0432*0x40+_0x16ec5d:_0x16ec5d,_0x13229b++%0x4)?_0x5dbf92+=String['fromCharCode'](0xff&_0x7e0432>>(-0x2*_0x13229b&0x6)):0x0){_0x16ec5d=_0x4d8c1e['indexOf'](_0x16ec5d);}for(let _0xfcc686=0x0,_0x26ac63=_0x5dbf92['length'];_0xfcc686<_0x26ac63;_0xfcc686++){_0x546b4b+='%'+('00'+_0x5dbf92['charCodeAt'](_0xfcc686)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x546b4b);};_0x24c0['kbZIuN']=_0x1f1096,_0x5d28c5=arguments,_0x24c0['cSfcsR']=!![];}const _0x44c8d3=_0x5c0584[0x0],_0x3e0f3f=_0x24c06f+_0x44c8d3,_0x4b0943=_0x5d28c5[_0x3e0f3f];return!_0x4b0943?(_0x4f8ca0=_0x24c0['kbZIuN'](_0x4f8ca0),_0x5d28c5[_0x3e0f3f]=_0x4f8ca0):_0x4f8ca0=_0x4b0943,_0x4f8ca0;},_0x24c0(_0x5d28c5,_0xda6c7);}if((global['configs']||{})[_0x3dc949(0x1fa)]){const wwMdfV='0|2|4|5|3|1'[_0x3dc949(0x1ef)]('|');let kkRqAq=0x0;while(!![]){switch(wwMdfV[kkRqAq++]){case'0':buildingSchema['index']({'id_app':0x1,'building_type':0x1,'building_name':0x1,'building_code':0x1,'ma_dt':0x1});continue;case'1':buildingSchema[_0x3dc949(0x1f8)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'2':buildingSchema[_0x3dc949(0x1f8)]({'building_name':_0x3dc949(0x1f4),'building_code':'text','ma_dt':_0x3dc949(0x1f4),'ten_dt':'text'},{'name':'building_index'});continue;case'3':buildingSchema[_0x3dc949(0x1f8)]({'visible_to_usergroups':0x1});continue;case'4':buildingSchema[_0x3dc949(0x1f8)]({'trang_thai':0x1});continue;case'5':buildingSchema[_0x3dc949(0x1f8)]({'status':0x1});continue;}break;}}const model=mongoose[_0x3dc949(0x1ff)][_0x3dc949(0x1f9)]||mongoose[_0x3dc949(0x1fe)](_0x3dc949(0x1f9),buildingSchema);model[_0x3dc949(0x1f0)]={'building_code':[{'model':_0x3dc949(0x204),'where':function(_0x53a165){const _0x570eb6=_0x3dc949;return{'ma_dt':_0x53a165[_0x570eb6(0x1f3)],'building_code':_0x53a165[_0x570eb6(0x205)]};},'error':_0x3dc949(0x1f5)}]},module[_0x3dc949(0x1f1)]=model;
@@ -1,3 +1 @@
1
- const floorSchema=new Schema({id_app:{type:String,required:!0,maxlength:1024},floor_code:{type:String,required:!0,uppercase:!0,maxlength:32},floor_name:{type:String,required:!0,maxlength:1024},floor_name_en:{type:String,maxlength:1024},floor_type:String,floor_type_en:String,stt:{type:Number,default:0},picture:{type:String,maxlength:1024},short_description:String,description:String,exfields:Schema.Types.Mixed,status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,
2
- default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},visible_to:{type:Number,default:0},visible_to_users:[String],visible_to_usergroups:[String],update_right:[String],delete_right:[String],dataview_to:{type:Number,default:0},dataview_to_users:[String]});
3
- (global.configs||{}).createIndexes&&(floorSchema.index({id_app:1,floor_code:1}),floorSchema.index({floor_code:"text",floor_name:"text"}),floorSchema.index({status:1}),floorSchema.index({visible_to_usergroups:1}),floorSchema.index({user_created:1,visible_to:1,visible_to_users:1}));const model=mongoose.models.floor||mongoose.model("floor",floorSchema);module.exports=model;
1
+ const _0x1f7131=_0x118e;(function(_0x582a4a,_0x53b2b0){const _0xbad95b=_0x118e,_0x27c62b=_0x582a4a();while(!![]){try{const _0x1a856f=-parseInt(_0xbad95b(0x16b))/0x1+parseInt(_0xbad95b(0x169))/0x2*(parseInt(_0xbad95b(0x163))/0x3)+-parseInt(_0xbad95b(0x16c))/0x4*(-parseInt(_0xbad95b(0x171))/0x5)+-parseInt(_0xbad95b(0x16d))/0x6+-parseInt(_0xbad95b(0x172))/0x7+-parseInt(_0xbad95b(0x170))/0x8+parseInt(_0xbad95b(0x166))/0x9;if(_0x1a856f===_0x53b2b0)break;else _0x27c62b['push'](_0x27c62b['shift']());}catch(_0x378916){_0x27c62b['push'](_0x27c62b['shift']());}}}(_0x3568,0x8e98d));const floorSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'floor_code':{'type':String,'required':!![],'uppercase':!![],'maxlength':0x20},'floor_name':{'type':String,'required':!![],'maxlength':0x400},'floor_name_en':{'type':String,'maxlength':0x400},'floor_type':String,'floor_type_en':String,'stt':{'type':Number,'default':0x0},'picture':{'type':String,'maxlength':0x400},'short_description':String,'description':String,'exfields':Schema[_0x1f7131(0x16a)][_0x1f7131(0x16e)],'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x1f7131(0x164)]},'date_updated':{'type':Date,'default':Date[_0x1f7131(0x164)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'visible_to':{'type':Number,'default':0x0},'visible_to_users':[String],'visible_to_usergroups':[String],'update_right':[String],'delete_right':[String],'dataview_to':{'type':Number,'default':0x0},'dataview_to_users':[String]});(global[_0x1f7131(0x165)]||{})[_0x1f7131(0x168)]&&(floorSchema[_0x1f7131(0x16f)]({'id_app':0x1,'floor_code':0x1}),floorSchema[_0x1f7131(0x16f)]({'floor_code':'text','floor_name':'text'}),floorSchema[_0x1f7131(0x16f)]({'status':0x1}),floorSchema['index']({'visible_to_usergroups':0x1}),floorSchema[_0x1f7131(0x16f)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1}));function _0x3568(){const _0x331122=['ntqWodi1nMfmre5iwq','mZiYntu0m0PqAu9wCa','BM93','y29UzMLNCW','mti1mZKWndndB3D2sMq','zxHWB3j0CW','y3jLyxrLsw5KzxHLCW','mKTQzMjoBW','vhLWzxm','odu1ota5D29hwMDt','nejeqKr4ra','mJGWnda3nMnYv2nhvW','twL4zwq','Aw5KzxG','mtu3otK3nKPbu0Pcza','mJa0nte0nurjEfPVDG'];_0x3568=function(){return _0x331122;};return _0x3568();}const model=mongoose['models']['floor']||mongoose['model']('floor',floorSchema);function _0x118e(_0x3fe0d7,_0x5bb757){const _0x356897=_0x3568();return _0x118e=function(_0x118ecd,_0xf156d4){_0x118ecd=_0x118ecd-0x163;let _0x26d393=_0x356897[_0x118ecd];if(_0x118e['RsVaRS']===undefined){var _0x23c0ec=function(_0x151cf5){const _0x46afd4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5eb6e2='',_0x2d713c='';for(let _0x17d485=0x0,_0x280bc1,_0x309207,_0x3378e1=0x0;_0x309207=_0x151cf5['charAt'](_0x3378e1++);~_0x309207&&(_0x280bc1=_0x17d485%0x4?_0x280bc1*0x40+_0x309207:_0x309207,_0x17d485++%0x4)?_0x5eb6e2+=String['fromCharCode'](0xff&_0x280bc1>>(-0x2*_0x17d485&0x6)):0x0){_0x309207=_0x46afd4['indexOf'](_0x309207);}for(let _0x24d059=0x0,_0x5b02f2=_0x5eb6e2['length'];_0x24d059<_0x5b02f2;_0x24d059++){_0x2d713c+='%'+('00'+_0x5eb6e2['charCodeAt'](_0x24d059)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2d713c);};_0x118e['jqUTJf']=_0x23c0ec,_0x3fe0d7=arguments,_0x118e['RsVaRS']=!![];}const _0x3e15b6=_0x356897[0x0],_0x1638ba=_0x118ecd+_0x3e15b6,_0x281b7b=_0x3fe0d7[_0x1638ba];return!_0x281b7b?(_0x26d393=_0x118e['jqUTJf'](_0x26d393),_0x3fe0d7[_0x1638ba]=_0x26d393):_0x26d393=_0x281b7b,_0x26d393;},_0x118e(_0x3fe0d7,_0x5bb757);}module[_0x1f7131(0x167)]=model;
@@ -1,9 +1 @@
1
- const banSchema=new Schema({gia_ban:{type:Number,default:0},ma_nt:{type:String,default:"VND",maxlength:32},da_co_so:Boolean,bao_phi_chuyen_nhuong:Boolean,tra_lai_tien_chua_dong_so:Boolean,dang_hop_dong_thue:Boolean,co_the_thanh_ly:Boolean,tang_noi_that:String,tang_noi_that_en:String,ty_le_da_tt_cdt:Number,noi_that_yn:Boolean}),thueSchema=new Schema({gia_thue:{type:Number,default:0},ma_nt:{type:String,default:"VND",maxlength:32},so_thang_dat_coc:Number,ngay_bat_dau:Date,ngay_het_han:Date,bao_phi_quan_ly:Boolean,
2
- co_noi_that:String,co_noi_that_en:String,vao_o_ngay:Boolean,dich_vu_tang_kem:String,dich_vu_tang_kem_en:String,noi_that_yn:Boolean}),chusohuuSchema=new Schema({line:Number,name:String,phone:String,email:String,zalo:String,whatsapp:String,facebook:String,status:Boolean,username:String}),floordetailSchema=new Schema({id_app:{type:String,required:!0},floor_code:{type:String,required:!0,uppercase:!0},so_ct:String,ma_dt:{type:String},building_code:{type:String},ma_nd:{type:String,required:!1,uppercase:!0},
3
- nh_nd:{type:String},mieu_ta_goc:{type:String},mieu_ta_goc_en:{type:String},mieu_ta:{type:String},mieu_ta_en:{type:String},phan_loai:String,can_ho_so:{type:String},so_phong:Number,so_wc:Number,noi_that:String,noi_that_en:String,dien_tich_phong_thuy:Number,dien_tich_tim_tuong:Number,huong_ban_cong:String,huong_ban_cong_en:String,huong_cua_chinh:String,huong_cua_chinh_en:String,nh_nd_goc:{type:String},so_phong_goc:Number,so_wc_goc:Number,noi_that_goc:String,noi_that_goc_en:String,dien_tich_phong_thuy_goc:Number,
4
- dien_tich_tim_tuong_goc:Number,huong_ban_cong_goc:String,huong_ban_cong_goc_en:String,huong_cua_chinh_goc:String,huong_cua_chinh_goc_en:String,ban:banSchema,thue:thueSchema,chusohuu:[chusohuuSchema],stt:{type:Number,default:0},picture:{type:String},dia_chi:String,ky_gui:Boolean,kieu_bds_ky_gui:{type:String,enum:["DU_AN","RIENG_LE"]},hinh_thuc_ky_gui:String,anh_cmnd:String,anh_chu_so_huu:String,chap_nhan_dieu_khoan:{type:Boolean},duyet:Boolean,location:Schema.Types.Mixed,mieu_ta_vi_tri:String,mieu_ta_vi_tri_en:String,
5
- short_description:String,description:String,note:String,featured_content:String,featured_content_en:String,exfields:Schema.Types.Mixed,trang_thai:{type:String,maxlength:32},status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},visible_to:{type:Number,default:0},visible_to_users:[String],visible_to_usergroups:[String],dataview_to:{type:Number,default:0},dataview_to_users:[String],
6
- shared:Boolean});
7
- (global.configs||{}).createIndexes&&(floordetailSchema.index({id_app:1,ma_dt:1,building_code:1,floor_code:1}),floordetailSchema.index({ma_dt:"text",building_code:"text",floor_code:"text"},{name:"floordetail_index_text"}),floordetailSchema.index({"chusohuu.name":1}),floordetailSchema.index({"chusohuu.phone":1}),floordetailSchema.index({"chusohuu.email":1}),floordetailSchema.index({"chusohuu.zalo":1}),floordetailSchema.index({"chusohuu.whatsapp":1}),floordetailSchema.index({"chusohuu.facebook":1}),floordetailSchema.index({"ban.gia_ban":1}),
8
- floordetailSchema.index({"ban.da_co_so":1}),floordetailSchema.index({"ban.bao_phi_chuyen_nhuong":1}),floordetailSchema.index({"ban.tra_lai_tien_chua_dong_so":1}),floordetailSchema.index({"ban.dang_hop_dong_thue":1}),floordetailSchema.index({"ban.co_the_thanh_ly":1}),floordetailSchema.index({"ban.tang_noi_that":1}),floordetailSchema.index({"ban.tang_noi_that_en":1}),floordetailSchema.index({"ban.ty_le_da_tt_cdt":1}),floordetailSchema.index({"ban.noi_that_yn":1}),floordetailSchema.index({phan_loai:1}),
9
- floordetailSchema.index({status:1}),floordetailSchema.index({visible_to_usergroups:1}),floordetailSchema.index({user_created:1,visible_to:1,visible_to_users:1}),floordetailSchema.index({trang_thai:1}));const model=mongoose.models.floordetail||mongoose.model("floordetail",floordetailSchema);module.exports=model;
1
+ const _0x2daa02=_0x31aa;function _0x8717(){const _0x2754a3=['Dgv4Da','y29UzMLNCW','Bw9KzwXZ','mtm4mZaZmM1TB3zeuG','y3jLyxrLsw5KzxHLCW','twL4zwq','oxWXFdiXFde3Fde2Fdj8m3WXmhW0Fde0Fde4FdiYFdiWFdv8mhWXm3WXmxWXmNW2FdD8ohWXoxWXnq','Aw5KzxG','mta5otvgA0vhA08','nwz5AwnLBa','zxHWB3j0CW','vhLWzxm','zMXVB3jKzxrHAwW','nJiXnJKWuMPdsfDA','mJmYndC1nfP2z2TXqW','mtC0mJq2m09RvgT1Ea','C3bSAxq','mZuWntm2mfzZwKXPDa','nZbmtvzpD0C','mZe2mtqZogT5rLnirG','oda4CfzjBLzJ'];_0x8717=function(){return _0x2754a3;};return _0x8717();}(function(_0x5a8c8d,_0x2c6695){const _0x498277=_0x31aa,_0xb18f49=_0x5a8c8d();while(!![]){try{const _0x2ba6d0=-parseInt(_0x498277(0x157))/0x1+-parseInt(_0x498277(0x14d))/0x2+-parseInt(_0x498277(0x152))/0x3*(-parseInt(_0x498277(0x15e))/0x4)+-parseInt(_0x498277(0x153))/0x5*(parseInt(_0x498277(0x158))/0x6)+-parseInt(_0x498277(0x15d))/0x7+parseInt(_0x498277(0x15b))/0x8+-parseInt(_0x498277(0x159))/0x9*(-parseInt(_0x498277(0x15c))/0xa);if(_0x2ba6d0===_0x2c6695)break;else _0xb18f49['push'](_0xb18f49['shift']());}catch(_0x46ea11){_0xb18f49['push'](_0xb18f49['shift']());}}}(_0x8717,0x5d20a));function _0x31aa(_0x2a1cc8,_0x117b17){const _0x8717f5=_0x8717();return _0x31aa=function(_0x31aa3a,_0x335708){_0x31aa3a=_0x31aa3a-0x14d;let _0x546779=_0x8717f5[_0x31aa3a];if(_0x31aa['Neuohf']===undefined){var _0x10162d=function(_0x423243){const _0x192e9a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x46a7ff='',_0x5f1768='';for(let _0x132b37=0x0,_0x4c870d,_0x245fd2,_0x16beb9=0x0;_0x245fd2=_0x423243['charAt'](_0x16beb9++);~_0x245fd2&&(_0x4c870d=_0x132b37%0x4?_0x4c870d*0x40+_0x245fd2:_0x245fd2,_0x132b37++%0x4)?_0x46a7ff+=String['fromCharCode'](0xff&_0x4c870d>>(-0x2*_0x132b37&0x6)):0x0){_0x245fd2=_0x192e9a['indexOf'](_0x245fd2);}for(let _0x4c7861=0x0,_0x178db5=_0x46a7ff['length'];_0x4c7861<_0x178db5;_0x4c7861++){_0x5f1768+='%'+('00'+_0x46a7ff['charCodeAt'](_0x4c7861)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5f1768);};_0x31aa['WpxRwz']=_0x10162d,_0x2a1cc8=arguments,_0x31aa['Neuohf']=!![];}const _0x5c9bb3=_0x8717f5[0x0],_0x113814=_0x31aa3a+_0x5c9bb3,_0x302b70=_0x2a1cc8[_0x113814];return!_0x302b70?(_0x546779=_0x31aa['WpxRwz'](_0x546779),_0x2a1cc8[_0x113814]=_0x546779):_0x546779=_0x302b70,_0x546779;},_0x31aa(_0x2a1cc8,_0x117b17);}const banSchema=new Schema({'gia_ban':{'type':Number,'default':0x0},'ma_nt':{'type':String,'default':'VND','maxlength':0x20},'da_co_so':Boolean,'bao_phi_chuyen_nhuong':Boolean,'tra_lai_tien_chua_dong_so':Boolean,'dang_hop_dong_thue':Boolean,'co_the_thanh_ly':Boolean,'tang_noi_that':String,'tang_noi_that_en':String,'ty_le_da_tt_cdt':Number,'noi_that_yn':Boolean}),thueSchema=new Schema({'gia_thue':{'type':Number,'default':0x0},'ma_nt':{'type':String,'default':'VND','maxlength':0x20},'so_thang_dat_coc':Number,'ngay_bat_dau':Date,'ngay_het_han':Date,'bao_phi_quan_ly':Boolean,'co_noi_that':String,'co_noi_that_en':String,'vao_o_ngay':Boolean,'dich_vu_tang_kem':String,'dich_vu_tang_kem_en':String,'noi_that_yn':Boolean}),chusohuuSchema=new Schema({'line':Number,'name':String,'phone':String,'email':String,'zalo':String,'whatsapp':String,'facebook':String,'status':Boolean,'username':String}),floordetailSchema=new Schema({'id_app':{'type':String,'required':!![]},'floor_code':{'type':String,'required':!![],'uppercase':!![]},'so_ct':String,'ma_dt':{'type':String},'building_code':{'type':String},'ma_nd':{'type':String,'required':![],'uppercase':!![]},'nh_nd':{'type':String},'mieu_ta_goc':{'type':String},'mieu_ta_goc_en':{'type':String},'mieu_ta':{'type':String},'mieu_ta_en':{'type':String},'phan_loai':String,'can_ho_so':{'type':String},'so_phong':Number,'so_wc':Number,'noi_that':String,'noi_that_en':String,'dien_tich_phong_thuy':Number,'dien_tich_tim_tuong':Number,'huong_ban_cong':String,'huong_ban_cong_en':String,'huong_cua_chinh':String,'huong_cua_chinh_en':String,'nh_nd_goc':{'type':String},'so_phong_goc':Number,'so_wc_goc':Number,'noi_that_goc':String,'noi_that_goc_en':String,'dien_tich_phong_thuy_goc':Number,'dien_tich_tim_tuong_goc':Number,'huong_ban_cong_goc':String,'huong_ban_cong_goc_en':String,'huong_cua_chinh_goc':String,'huong_cua_chinh_goc_en':String,'ban':banSchema,'thue':thueSchema,'chusohuu':[chusohuuSchema],'stt':{'type':Number,'default':0x0},'picture':{'type':String},'dia_chi':String,'ky_gui':Boolean,'kieu_bds_ky_gui':{'type':String,'enum':['DU_AN','RIENG_LE']},'hinh_thuc_ky_gui':String,'anh_cmnd':String,'anh_chu_so_huu':String,'chap_nhan_dieu_khoan':{'type':Boolean},'duyet':Boolean,'location':Schema[_0x2daa02(0x155)][_0x2daa02(0x14f)],'mieu_ta_vi_tri':String,'mieu_ta_vi_tri_en':String,'short_description':String,'description':String,'note':String,'featured_content':String,'featured_content_en':String,'exfields':Schema[_0x2daa02(0x155)][_0x2daa02(0x14f)],'trang_thai':{'type':String,'maxlength':0x20},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date['now']},'date_updated':{'type':Date,'default':Date['now']},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'visible_to':{'type':Number,'default':0x0},'visible_to_users':[String],'visible_to_usergroups':[String],'dataview_to':{'type':Number,'default':0x0},'dataview_to_users':[String],'shared':Boolean});if((global[_0x2daa02(0x160)]||{})[_0x2daa02(0x14e)]){const lHKCEw=_0x2daa02(0x150)[_0x2daa02(0x15a)]('|');let reHKJE=0x0;while(!![]){switch(lHKCEw[reHKJE++]){case'0':floordetailSchema[_0x2daa02(0x151)]({'ban.tang_noi_that':0x1});continue;case'1':floordetailSchema[_0x2daa02(0x151)]({'ma_dt':_0x2daa02(0x15f),'building_code':_0x2daa02(0x15f),'floor_code':_0x2daa02(0x15f)},{'name':'floordetail_index_text'});continue;case'2':floordetailSchema[_0x2daa02(0x151)]({'chusohuu.zalo':0x1});continue;case'3':floordetailSchema[_0x2daa02(0x151)]({'chusohuu.whatsapp':0x1});continue;case'4':floordetailSchema[_0x2daa02(0x151)]({'ban.gia_ban':0x1});continue;case'5':floordetailSchema[_0x2daa02(0x151)]({'ban.co_the_thanh_ly':0x1});continue;case'6':floordetailSchema[_0x2daa02(0x151)]({'phan_loai':0x1});continue;case'7':floordetailSchema[_0x2daa02(0x151)]({'status':0x1});continue;case'8':floordetailSchema[_0x2daa02(0x151)]({'visible_to_usergroups':0x1});continue;case'9':floordetailSchema[_0x2daa02(0x151)]({'id_app':0x1,'ma_dt':0x1,'building_code':0x1,'floor_code':0x1});continue;case'10':floordetailSchema['index']({'chusohuu.facebook':0x1});continue;case'11':floordetailSchema[_0x2daa02(0x151)]({'ban.ty_le_da_tt_cdt':0x1});continue;case'12':floordetailSchema[_0x2daa02(0x151)]({'ban.noi_that_yn':0x1});continue;case'13':floordetailSchema['index']({'ban.tang_noi_that_en':0x1});continue;case'14':floordetailSchema[_0x2daa02(0x151)]({'ban.da_co_so':0x1});continue;case'15':floordetailSchema[_0x2daa02(0x151)]({'trang_thai':0x1});continue;case'16':floordetailSchema[_0x2daa02(0x151)]({'chusohuu.email':0x1});continue;case'17':floordetailSchema[_0x2daa02(0x151)]({'chusohuu.phone':0x1});continue;case'18':floordetailSchema[_0x2daa02(0x151)]({'ban.bao_phi_chuyen_nhuong':0x1});continue;case'19':floordetailSchema['index']({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'20':floordetailSchema[_0x2daa02(0x151)]({'ban.dang_hop_dong_thue':0x1});continue;case'21':floordetailSchema[_0x2daa02(0x151)]({'chusohuu.name':0x1});continue;case'22':floordetailSchema[_0x2daa02(0x151)]({'ban.tra_lai_tien_chua_dong_so':0x1});continue;}break;}}const model=mongoose[_0x2daa02(0x161)][_0x2daa02(0x156)]||mongoose['model'](_0x2daa02(0x156),floordetailSchema);module[_0x2daa02(0x154)]=model;
@@ -1,11 +1 @@
1
- const validator=require("../libs/validator"),nhadatSchema=new Schema({id_app:{type:String,required:!0,maxlength:1024},stt:{type:Number,default:0},ma_nd:{type:String,required:!0,uppercase:!0},ten_nd:{type:String,required:!0},ten_nd_en:{type:String},nh_nd:{type:String},phan_loai:String,nh_bds:{type:String,default:"",trim:!0,maxlength:1024},ten_nh_bds:String,nh_bds2:[String],nh_bds3:[String],ma_dt:{type:String,uppercase:!0},building_code:{type:String,uppercase:!0},dia_chi:{type:String},dia_chi_en:{type:String},
2
- xa_phuong:{type:String},quan_huyen:{type:String},tinh_thanh:{type:String},so_to:{type:String},so_thua:{type:String},location:Schema.Types.Mixed,chieu_ngang:{type:Number,default:0},chieu_dai:{type:Number,default:0},dien_tich:{type:Number,default:0},gia_ban:{type:Number,default:0},gia_ban_m2:{type:Number,default:0},so_phong:Number,so_wc:Number,noi_that:String,noi_that_en:String,can_ho_so:String,dien_tich_phong_thuy:Number,dien_tich_tim_tuong:Number,huong_ban_cong:String,huong_ban_cong_en:String,huong_cua_chinh:String,
3
- huong_cua_chinh_en:String,mieu_ta:String,mieu_ta_en:String,picture:String,ky_gui:Boolean,ten_chu_so_huu:String,dien_thoai_chu_so_huu:String,dia_chi_chu_so_huu:String,anh_cmnd:String,anh_giay_to:String,chap_nhan_dieu_khoan:{type:Boolean},so_ct:String,id_kh:{type:String},exfields:Schema.Types.Mixed,phu_trach:{type:String,lowercase:!0},ngay_cap_nhat:{type:Date,default:Date.now},progress:{type:Number,default:0},trang_thai:{type:String,maxlength:32},ngay_het_han:Date,da_nhac_nho:{type:Number,default:0},
4
- status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},visible_to:{type:Number,default:0},visible_to_users:[String],visible_to_usergroups:[String],update_right:[String],delete_right:[String],shared:Boolean});nhadatSchema.validate={ma_nt:validator.existsNt};
5
- (global.configs||{}).createIndexes&&(nhadatSchema.index({id_app:1,trang_thai:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,ma_nd:1,ten_nd:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,phan_loai:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,ma_dt:1,building_code:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,nh_nd:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,nh_bds:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,nh_bds2:1,stt:1,date_created:-1}),
6
- nhadatSchema.index({id_app:1,nh_bds3:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,ngay_het_han:1,da_nhac_nho:1}),nhadatSchema.index({id_app:1,tinh_thanh:1,stt:1}),nhadatSchema.index({id_app:1,tinh_thanh:1,quan_huyen:1,xa_phuong:1,dia_chi:1,dia_chi_en:1,location:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,so_to:1,so_thua:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,so_phong:1,so_wc:1,noi_that:1,noi_that_en:1,can_ho_so:1,dien_tich_phong_thuy:1,dien_tich_tim_tuong:1,stt:1,
7
- date_created:-1}),nhadatSchema.index({id_app:1,huong_ban_cong:1,huong_ban_cong_en:1,huong_cua_chinh:1,huong_cua_chinh_en:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,chieu_ngang:1,chieu_dai:1,gia_ban:1,dien_tich:1,gia_ban_m2:1,stt:1,date_created:-1,status:1}),nhadatSchema.index({id_app:1,ma_nd:"text",ten_nd:"text",phu_trach:"text",mieu_ta:"text",mieu_ta_en:"text",stt:1,date_created:-1,status:1}),nhadatSchema.index({id_app:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,status:1,
8
- phan_loai:1,ten_nd:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,status:1,ma_dt:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,status:1,tinh_thanh:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,phu_trach:1,user_created:1,visible_to:1,visible_to_users:1,status:1,tinh_thanh:1,phan_loai:1,stt:1,date_created:-1}),nhadatSchema.index({id_app:1,phu_trach:1,user_created:1,
9
- visible_to:1,visible_to_users:1,status:1,tinh_thanh:1,chieu_ngang:1,chieu_dai:1,gia_ban:1,dien_tich:1,gia_ban_m2:1,ma_dt:1,stt:1,date_created:-1}));const model=mongoose.models.nhadat||mongoose.model("nhadat",nhadatSchema);
10
- model.createCode=function($id_app$$,$ma_nd$$,$lanthu$$,$callback$$){$ma_nd$$=$ma_nd$$.replace(/[^\w\s]/gi,"").split(" ").join("").toUpperCase();model.findOne({ma_nd:$ma_nd$$,id_app:$id_app$$},function($e$$,$rs$$){if($e$$)return $callback$$($e$$);if($rs$$)$lanthu$$+=1,$ma_nd$$=$ma_nd$$.substring(0,$ma_nd$$.length-$lanthu$$.toString().length)+$lanthu$$.toString(),model.createCode($id_app$$,$ma_nd$$,$lanthu$$,$callback$$);else return $callback$$(null,$ma_nd$$)})};
11
- model.asyncCreateCode=async($id_app$$,$ma_nd$$,$lanthu$$)=>{$lanthu$$||=0;$ma_nd$$.length>32&&($ma_nd$$=$ma_nd$$.substring(0,32));return new Promise($resolve$$=>{model.createCode($id_app$$,$ma_nd$$,$lanthu$$,($e$$,$rs$$)=>{$resolve$$($rs$$||"")})})};module.exports=model;
1
+ const _0x2e33ea=_0x2ec3;function _0x2ec3(_0x5b1d35,_0x4b68eb){const _0xe8102b=_0xe810();return _0x2ec3=function(_0x2ec3b2,_0x39f957){_0x2ec3b2=_0x2ec3b2-0xdb;let _0x436f89=_0xe8102b[_0x2ec3b2];if(_0x2ec3['BzERbz']===undefined){var _0x31a864=function(_0x225b2c){const _0x589134='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x32e8c0='',_0x18b85a='';for(let _0x2943bf=0x0,_0x4b7703,_0x4135f2,_0x42f713=0x0;_0x4135f2=_0x225b2c['charAt'](_0x42f713++);~_0x4135f2&&(_0x4b7703=_0x2943bf%0x4?_0x4b7703*0x40+_0x4135f2:_0x4135f2,_0x2943bf++%0x4)?_0x32e8c0+=String['fromCharCode'](0xff&_0x4b7703>>(-0x2*_0x2943bf&0x6)):0x0){_0x4135f2=_0x589134['indexOf'](_0x4135f2);}for(let _0x54ec37=0x0,_0xdcf107=_0x32e8c0['length'];_0x54ec37<_0xdcf107;_0x54ec37++){_0x18b85a+='%'+('00'+_0x32e8c0['charCodeAt'](_0x54ec37)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x18b85a);};_0x2ec3['VwuoCo']=_0x31a864,_0x5b1d35=arguments,_0x2ec3['BzERbz']=!![];}const _0x235bed=_0xe8102b[0x0],_0x19d09d=_0x2ec3b2+_0x235bed,_0x361d10=_0x5b1d35[_0x19d09d];return!_0x361d10?(_0x436f89=_0x2ec3['VwuoCo'](_0x436f89),_0x5b1d35[_0x19d09d]=_0x436f89):_0x436f89=_0x361d10,_0x436f89;},_0x2ec3(_0x5b1d35,_0x4b68eb);}(function(_0x3fe5e7,_0x7a60ff){const _0x4587ac=_0x2ec3,_0x3fb28b=_0x3fe5e7();while(!![]){try{const _0x44b236=parseInt(_0x4587ac(0xf3))/0x1*(parseInt(_0x4587ac(0xf0))/0x2)+parseInt(_0x4587ac(0xf1))/0x3+-parseInt(_0x4587ac(0xfe))/0x4+-parseInt(_0x4587ac(0xfb))/0x5*(parseInt(_0x4587ac(0xed))/0x6)+-parseInt(_0x4587ac(0xe1))/0x7*(parseInt(_0x4587ac(0xf2))/0x8)+parseInt(_0x4587ac(0xdb))/0x9+-parseInt(_0x4587ac(0x105))/0xa*(-parseInt(_0x4587ac(0xf6))/0xb);if(_0x44b236===_0x7a60ff)break;else _0x3fb28b['push'](_0x3fb28b['shift']());}catch(_0x30350b){_0x3fb28b['push'](_0x3fb28b['shift']());}}}(_0xe810,0x83b35));const validator=require('../libs/validator'),nhadatSchema=new Schema({'id_app':{'type':String,'required':!![],'maxlength':0x400},'stt':{'type':Number,'default':0x0},'ma_nd':{'type':String,'required':!![],'uppercase':!![]},'ten_nd':{'type':String,'required':!![]},'ten_nd_en':{'type':String},'nh_nd':{'type':String},'phan_loai':String,'nh_bds':{'type':String,'default':'','trim':!![],'maxlength':0x400},'ten_nh_bds':String,'nh_bds2':[String],'nh_bds3':[String],'ma_dt':{'type':String,'uppercase':!![]},'building_code':{'type':String,'uppercase':!![]},'dia_chi':{'type':String},'dia_chi_en':{'type':String},'xa_phuong':{'type':String},'quan_huyen':{'type':String},'tinh_thanh':{'type':String},'so_to':{'type':String},'so_thua':{'type':String},'location':Schema['Types'][_0x2e33ea(0x100)],'chieu_ngang':{'type':Number,'default':0x0},'chieu_dai':{'type':Number,'default':0x0},'dien_tich':{'type':Number,'default':0x0},'gia_ban':{'type':Number,'default':0x0},'gia_ban_m2':{'type':Number,'default':0x0},'so_phong':Number,'so_wc':Number,'noi_that':String,'noi_that_en':String,'can_ho_so':String,'dien_tich_phong_thuy':Number,'dien_tich_tim_tuong':Number,'huong_ban_cong':String,'huong_ban_cong_en':String,'huong_cua_chinh':String,'huong_cua_chinh_en':String,'mieu_ta':String,'mieu_ta_en':String,'picture':String,'ky_gui':Boolean,'ten_chu_so_huu':String,'dien_thoai_chu_so_huu':String,'dia_chi_chu_so_huu':String,'anh_cmnd':String,'anh_giay_to':String,'chap_nhan_dieu_khoan':{'type':Boolean},'so_ct':String,'id_kh':{'type':String},'exfields':Schema['Types'][_0x2e33ea(0x100)],'phu_trach':{'type':String,'lowercase':!![]},'ngay_cap_nhat':{'type':Date,'default':Date[_0x2e33ea(0xf7)]},'progress':{'type':Number,'default':0x0},'trang_thai':{'type':String,'maxlength':0x20},'ngay_het_han':Date,'da_nhac_nho':{'type':Number,'default':0x0},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x2e33ea(0xf7)]},'date_updated':{'type':Date,'default':Date[_0x2e33ea(0xf7)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'visible_to':{'type':Number,'default':0x0},'visible_to_users':[String],'visible_to_usergroups':[String],'update_right':[String],'delete_right':[String],'shared':Boolean});nhadatSchema['validate']={'ma_nt':validator[_0x2e33ea(0xef)]};function _0xe810(){const _0x187d4b=['t1PdvKm','quTIwgG','tMDesLq','wvf0D24','zMLUze9Uzq','nZGXntvICgDgwNi','CMvWBgfJzq','yu9pBve','uNzRBK0','tundsgi','AKjwvge','C3vIC3rYAw5N','CLPKyM4','AM9PBG','tMTrD1O','y3jLyxrLq29Kzq','ru1RtLa','ntiZodGZnfrfCgfJzq','Bw9KzwXZ','zxHPC3rZtNq','mKLHz1vNBq','mtC2mJGZmenlwMrWzq','mZC2thb0wMH3','mZu2nJj3q1LSrMG','zxHWB3j0CW','Dg9vChbLCKnHC2u','mtf4DKTdr2C','BM93','C3bSAxq','Dgv4Da','BLv6suG','nvfcvg1Wvq','BgvUz3rO','Aw5KzxG','mJaXnJiZmLvIwuTQDW','yur0EwO','twL4zwq','q25quMG','Bw9KzwW','BMHHzgf0','zLLYD1K','mtuWnJy5otbREM5YDvO','zeDQyuC','mJGWmJGZng9Vtfjiuq'];_0xe810=function(){return _0x187d4b;};return _0xe810();}if((global['configs']||{})['createIndexes']){const nmxrYO='3|5|17|14|12|0|8|7|19|10|13|6|18|1|16|2|9|20|4|11|15'[_0x2e33ea(0xf8)]('|');let xsEyjk=0x0;while(!![]){switch(nmxrYO[xsEyjk++]){case'0':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'nh_bds':0x1,'stt':0x1,'date_created':-0x1});continue;case'1':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'huong_ban_cong':0x1,'huong_ban_cong_en':0x1,'huong_cua_chinh':0x1,'huong_cua_chinh_en':0x1,'stt':0x1,'date_created':-0x1});continue;case'2':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'ma_nd':_0x2e33ea(0xf9),'ten_nd':_0x2e33ea(0xf9),'phu_trach':_0x2e33ea(0xf9),'mieu_ta':_0x2e33ea(0xf9),'mieu_ta_en':'text','stt':0x1,'date_created':-0x1,'status':0x1});continue;case'3':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'trang_thai':0x1,'stt':0x1,'date_created':-0x1});continue;case'4':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'tinh_thanh':0x1,'stt':0x1,'date_created':-0x1});continue;case'5':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'ma_nd':0x1,'ten_nd':0x1,'stt':0x1,'date_created':-0x1});continue;case'6':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'so_to':0x1,'so_thua':0x1,'stt':0x1,'date_created':-0x1});continue;case'7':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'nh_bds3':0x1,'stt':0x1,'date_created':-0x1});continue;case'8':nhadatSchema['index']({'id_app':0x1,'nh_bds2':0x1,'stt':0x1,'date_created':-0x1});continue;case'9':nhadatSchema['index']({'id_app':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'phan_loai':0x1,'ten_nd':0x1,'stt':0x1,'date_created':-0x1});continue;case'10':nhadatSchema['index']({'id_app':0x1,'tinh_thanh':0x1,'stt':0x1});continue;case'11':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'tinh_thanh':0x1,'phan_loai':0x1,'stt':0x1,'date_created':-0x1});continue;case'12':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'nh_nd':0x1,'stt':0x1,'date_created':-0x1});continue;case'13':nhadatSchema['index']({'id_app':0x1,'tinh_thanh':0x1,'quan_huyen':0x1,'xa_phuong':0x1,'dia_chi':0x1,'dia_chi_en':0x1,'location':0x1,'stt':0x1,'date_created':-0x1});continue;case'14':nhadatSchema['index']({'id_app':0x1,'ma_dt':0x1,'building_code':0x1,'stt':0x1,'date_created':-0x1});continue;case'15':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'tinh_thanh':0x1,'chieu_ngang':0x1,'chieu_dai':0x1,'gia_ban':0x1,'dien_tich':0x1,'gia_ban_m2':0x1,'ma_dt':0x1,'stt':0x1,'date_created':-0x1});continue;case'16':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'chieu_ngang':0x1,'chieu_dai':0x1,'gia_ban':0x1,'dien_tich':0x1,'gia_ban_m2':0x1,'stt':0x1,'date_created':-0x1,'status':0x1});continue;case'17':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'phan_loai':0x1,'stt':0x1,'date_created':-0x1});continue;case'18':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'so_phong':0x1,'so_wc':0x1,'noi_that':0x1,'noi_that_en':0x1,'can_ho_so':0x1,'dien_tich_phong_thuy':0x1,'dien_tich_tim_tuong':0x1,'stt':0x1,'date_created':-0x1});continue;case'19':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'ngay_het_han':0x1,'da_nhac_nho':0x1});continue;case'20':nhadatSchema[_0x2e33ea(0xfd)]({'id_app':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'ma_dt':0x1,'stt':0x1,'date_created':-0x1});continue;}break;}}const model=mongoose[_0x2e33ea(0xee)]['nhadat']||mongoose[_0x2e33ea(0x102)](_0x2e33ea(0x103),nhadatSchema);model[_0x2e33ea(0xeb)]=function(_0x5492cf,_0x4f5439,_0x4540b7,_0xbdce8e){const _0x2173fa=_0x2e33ea,_0x3559a7={'aDtyj':_0x2173fa(0xf9),'nUzIH':function(_0x6f81f0,_0x48863c){return _0x6f81f0!==_0x48863c;},'ayKjw':_0x2173fa(0x104),'jBVTa':function(_0x854b9b,_0x546008){return _0x854b9b(_0x546008);},'RvknM':function(_0x47031c,_0x547e89,_0x218f70){return _0x47031c(_0x547e89,_0x218f70);},'ZBiZC':function(_0x218c34,_0x29a505){return _0x218c34+_0x29a505;},'euPYF':function(_0xf5bc28,_0x1c9c60){return _0xf5bc28-_0x1c9c60;}};_0x4f5439=_0x4f5439[_0x2173fa(0xe2)](/[^\w\s]/gi,'')['split']('\x20')[_0x2173fa(0xe9)]('')['toUpperCase'](),model[_0x2173fa(0xe0)]({'ma_nd':_0x4f5439,'id_app':_0x5492cf},function(_0x118812,_0x435f27){const _0x171f65=_0x2173fa;if(_0x3559a7[_0x171f65(0xfa)](_0x3559a7['ayKjw'],_0x171f65(0x104)))_0x21592d[_0x171f65(0xfd)]({'id_app':0x1,'trang_thai':0x1,'stt':0x1,'date_created':-0x1}),_0x20beb8['index']({'id_app':0x1,'ma_nd':0x1,'ten_nd':0x1,'stt':0x1,'date_created':-0x1}),_0x4b4a4e[_0x171f65(0xfd)]({'id_app':0x1,'phan_loai':0x1,'stt':0x1,'date_created':-0x1}),_0x1e2fdb[_0x171f65(0xfd)]({'id_app':0x1,'ma_dt':0x1,'building_code':0x1,'stt':0x1,'date_created':-0x1}),_0x1ffbd1['index']({'id_app':0x1,'nh_nd':0x1,'stt':0x1,'date_created':-0x1}),_0x132e1f[_0x171f65(0xfd)]({'id_app':0x1,'nh_bds':0x1,'stt':0x1,'date_created':-0x1}),_0x5546f7[_0x171f65(0xfd)]({'id_app':0x1,'nh_bds2':0x1,'stt':0x1,'date_created':-0x1}),_0x21a416[_0x171f65(0xfd)]({'id_app':0x1,'nh_bds3':0x1,'stt':0x1,'date_created':-0x1}),_0x57d7e4[_0x171f65(0xfd)]({'id_app':0x1,'ngay_het_han':0x1,'da_nhac_nho':0x1}),_0x306eec[_0x171f65(0xfd)]({'id_app':0x1,'tinh_thanh':0x1,'stt':0x1}),_0x24194c['index']({'id_app':0x1,'tinh_thanh':0x1,'quan_huyen':0x1,'xa_phuong':0x1,'dia_chi':0x1,'dia_chi_en':0x1,'location':0x1,'stt':0x1,'date_created':-0x1}),_0x233dcf['index']({'id_app':0x1,'so_to':0x1,'so_thua':0x1,'stt':0x1,'date_created':-0x1}),_0x54d309[_0x171f65(0xfd)]({'id_app':0x1,'so_phong':0x1,'so_wc':0x1,'noi_that':0x1,'noi_that_en':0x1,'can_ho_so':0x1,'dien_tich_phong_thuy':0x1,'dien_tich_tim_tuong':0x1,'stt':0x1,'date_created':-0x1}),_0x47f049[_0x171f65(0xfd)]({'id_app':0x1,'huong_ban_cong':0x1,'huong_ban_cong_en':0x1,'huong_cua_chinh':0x1,'huong_cua_chinh_en':0x1,'stt':0x1,'date_created':-0x1}),_0x27556b['index']({'id_app':0x1,'chieu_ngang':0x1,'chieu_dai':0x1,'gia_ban':0x1,'dien_tich':0x1,'gia_ban_m2':0x1,'stt':0x1,'date_created':-0x1,'status':0x1}),_0x114d63[_0x171f65(0xfd)]({'id_app':0x1,'ma_nd':_0x3559a7[_0x171f65(0xff)],'ten_nd':_0x3559a7[_0x171f65(0xff)],'phu_trach':_0x3559a7[_0x171f65(0xff)],'mieu_ta':_0x3559a7[_0x171f65(0xff)],'mieu_ta_en':_0x171f65(0xf9),'stt':0x1,'date_created':-0x1,'status':0x1}),_0x25395b['index']({'id_app':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'phan_loai':0x1,'ten_nd':0x1,'stt':0x1,'date_created':-0x1}),_0x48c2d0[_0x171f65(0xfd)]({'id_app':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'ma_dt':0x1,'stt':0x1,'date_created':-0x1}),_0x528b03['index']({'id_app':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'tinh_thanh':0x1,'stt':0x1,'date_created':-0x1}),_0x177b69[_0x171f65(0xfd)]({'id_app':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'tinh_thanh':0x1,'phan_loai':0x1,'stt':0x1,'date_created':-0x1}),_0x32bf23[_0x171f65(0xfd)]({'id_app':0x1,'phu_trach':0x1,'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1,'status':0x1,'tinh_thanh':0x1,'chieu_ngang':0x1,'chieu_dai':0x1,'gia_ban':0x1,'dien_tich':0x1,'gia_ban_m2':0x1,'ma_dt':0x1,'stt':0x1,'date_created':-0x1});else{if(_0x118812)return _0x3559a7[_0x171f65(0xe6)](_0xbdce8e,_0x118812);if(!_0x435f27)return _0x3559a7[_0x171f65(0xe4)](_0xbdce8e,null,_0x4f5439);else _0x4540b7=_0x3559a7['ZBiZC'](_0x4540b7,0x1),_0x4f5439=_0x3559a7['ZBiZC'](_0x4f5439[_0x171f65(0xe7)](0x0,_0x3559a7['euPYF'](_0x4f5439[_0x171f65(0xfc)],_0x4540b7['toString']()[_0x171f65(0xfc)])),_0x4540b7['toString']()),model[_0x171f65(0xeb)](_0x5492cf,_0x4f5439,_0x4540b7,_0xbdce8e);}});},model['asyncCreateCode']=async(_0x3d0756,_0x10f337,_0x2500e4)=>{const _0x1ae716=_0x2e33ea,_0x333e0c={'OZCVC':function(_0x2af236,_0x7a48c8){return _0x2af236(_0x7a48c8);},'CnPRh':function(_0x5679f3,_0x51de25){return _0x5679f3||_0x51de25;},'FTabT':function(_0x61e71e,_0xc04518){return _0x61e71e(_0xc04518);},'AKbXh':function(_0x258865,_0x3e4cff,_0x34140e){return _0x258865(_0x3e4cff,_0x34140e);},'NgDJT':function(_0x2cc947,_0x432df0){return _0x2cc947!==_0x432df0;},'EMkNP':'VJbCh','NkQwZ':_0x1ae716(0xe5),'aOOmQ':function(_0x444be0,_0x9e4374){return _0x444be0>_0x9e4374;}};if(!_0x2500e4)_0x2500e4=0x0;_0x333e0c[_0x1ae716(0xe3)](_0x10f337[_0x1ae716(0xfc)],0x20)&&(_0x10f337=_0x10f337[_0x1ae716(0xe7)](0x0,0x20));let _0x49cd6c=new Promise(_0x15244d=>{const _0x235ea5=_0x1ae716;if(_0x333e0c[_0x235ea5(0xde)](_0x333e0c[_0x235ea5(0xec)],_0x333e0c[_0x235ea5(0xea)]))model[_0x235ea5(0xeb)](_0x3d0756,_0x10f337,_0x2500e4,(_0x12cc52,_0x2f8410)=>{const _0x23e15c=_0x235ea5;_0x333e0c[_0x23e15c(0xdc)](_0x15244d,_0x333e0c[_0x23e15c(0x101)](_0x2f8410,''));});else{const _0x2c8876={'YQtwn':function(_0x51848,_0x2bab34){return _0x333e0c['FTabT'](_0x51848,_0x2bab34);},'dGjaG':function(_0x36ec06,_0x1046f4,_0xe36643){const _0x6c0873=_0x235ea5;return _0x333e0c[_0x6c0873(0xdd)](_0x36ec06,_0x1046f4,_0xe36643);},'rZdbn':function(_0x3fd3a3,_0x573cad){return _0x3fd3a3+_0x573cad;}};_0x5c1989=_0x1089ba[_0x235ea5(0xe2)](/[^\w\s]/gi,'')[_0x235ea5(0xf8)]('\x20')[_0x235ea5(0xe9)]('')[_0x235ea5(0xf5)](),_0xe00d9a[_0x235ea5(0xe0)]({'ma_nd':_0x17ba00,'id_app':_0x1ab14d},function(_0x5860ae,_0x56f04e){const _0xbc08ac=_0x235ea5;if(_0x5860ae)return _0x2c8876[_0xbc08ac(0xdf)](_0x2d6f12,_0x5860ae);if(!_0x56f04e)return _0x2c8876[_0xbc08ac(0x106)](_0x11702a,null,_0x6373b1);else _0x3cb4ed=_0x2c8876[_0xbc08ac(0xe8)](_0x2cf8de,0x1),_0x15c90f=_0x2c8876[_0xbc08ac(0xe8)](_0xbe0d9[_0xbc08ac(0xe7)](0x0,_0x422787['length']-_0x8dc4de['toString']()[_0xbc08ac(0xfc)]),_0x3c6e49['toString']()),_0x137c48[_0xbc08ac(0xeb)](_0x267652,_0x10b1f8,_0x5202b1,_0x33d00c);});}});return _0x49cd6c;},module[_0x2e33ea(0xf4)]=model;
@@ -1,4 +1 @@
1
- const nhomnhadatSchema=new Schema({id_app:{type:String,required:!0},stt:Number,ma_nhom:{type:String,required:!0,maxlength:1024},ten_nhom:{type:String,required:!0,maxlength:1024},public:Boolean,status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},visible_to:{type:Number,default:0},visible_to_users:[String],visible_to_usergroups:[String],dataview_to:{type:Number,
2
- default:0},dataview_to_users:[String],update_right:[String],delete_right:[String]});
3
- (global.configs||{}).createIndexes&&(nhomnhadatSchema.index({id_app:1,ma_nhom:1}),nhomnhadatSchema.index({public:1}),nhomnhadatSchema.index({stt:1}),nhomnhadatSchema.index({ten_nhom:"text"},{ten_nhom:"nhomnhadat_index"}),nhomnhadatSchema.index({status:1}),nhomnhadatSchema.index({date_created:1}),nhomnhadatSchema.index({date_updated:1}),nhomnhadatSchema.index({visible_to_usergroups:1}),nhomnhadatSchema.index({user_created:1,visible_to:1,visible_to_users:1}));
4
- const model=mongoose.models.nhomnhadat||mongoose.model("nhomnhadat",nhomnhadatSchema);module.exports=model;
1
+ const _0x2d187c=_0x2478;(function(_0x3df4f9,_0x268625){const _0x465e1d=_0x2478,_0x547256=_0x3df4f9();while(!![]){try{const _0x349156=-parseInt(_0x465e1d(0xd5))/0x1*(parseInt(_0x465e1d(0xd3))/0x2)+parseInt(_0x465e1d(0xd0))/0x3*(-parseInt(_0x465e1d(0xcf))/0x4)+parseInt(_0x465e1d(0xcd))/0x5+-parseInt(_0x465e1d(0xda))/0x6+parseInt(_0x465e1d(0xd4))/0x7+parseInt(_0x465e1d(0xdc))/0x8+parseInt(_0x465e1d(0xce))/0x9;if(_0x349156===_0x268625)break;else _0x547256['push'](_0x547256['shift']());}catch(_0x386f37){_0x547256['push'](_0x547256['shift']());}}}(_0x46c5,0xd3ced));const nhomnhadatSchema=new Schema({'id_app':{'type':String,'required':!![]},'stt':Number,'ma_nhom':{'type':String,'required':!![],'maxlength':0x400},'ten_nhom':{'type':String,'required':!![],'maxlength':0x400},'public':Boolean,'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x2d187c(0xd8)]},'date_updated':{'type':Date,'default':Date[_0x2d187c(0xd8)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'visible_to':{'type':Number,'default':0x0},'visible_to_users':[String],'visible_to_usergroups':[String],'dataview_to':{'type':Number,'default':0x0},'dataview_to_users':[String],'update_right':[String],'delete_right':[String]});if((global[_0x2d187c(0xd1)]||{})[_0x2d187c(0xdd)]){const vDWFyJ='8|0|1|6|3|2|4|5|7'[_0x2d187c(0xd2)]('|');let fDiRNU=0x0;while(!![]){switch(vDWFyJ[fDiRNU++]){case'0':nhomnhadatSchema['index']({'public':0x1});continue;case'1':nhomnhadatSchema['index']({'stt':0x1});continue;case'2':nhomnhadatSchema[_0x2d187c(0xd7)]({'date_created':0x1});continue;case'3':nhomnhadatSchema['index']({'status':0x1});continue;case'4':nhomnhadatSchema[_0x2d187c(0xd7)]({'date_updated':0x1});continue;case'5':nhomnhadatSchema[_0x2d187c(0xd7)]({'visible_to_usergroups':0x1});continue;case'6':nhomnhadatSchema[_0x2d187c(0xd7)]({'ten_nhom':'text'},{'ten_nhom':_0x2d187c(0xdb)});continue;case'7':nhomnhadatSchema[_0x2d187c(0xd7)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'8':nhomnhadatSchema['index']({'id_app':0x1,'ma_nhom':0x1});continue;}break;}}function _0x2478(_0x52a625,_0x485468){const _0x46c5ac=_0x46c5();return _0x2478=function(_0x247897,_0x17e9ae){_0x247897=_0x247897-0xcd;let _0x4edcc8=_0x46c5ac[_0x247897];if(_0x2478['fqCUqK']===undefined){var _0xcd1874=function(_0x118086){const _0x2e4d82='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2195bc='',_0xd0f414='';for(let _0x566d9a=0x0,_0xb15de6,_0x1d39a2,_0x430cd1=0x0;_0x1d39a2=_0x118086['charAt'](_0x430cd1++);~_0x1d39a2&&(_0xb15de6=_0x566d9a%0x4?_0xb15de6*0x40+_0x1d39a2:_0x1d39a2,_0x566d9a++%0x4)?_0x2195bc+=String['fromCharCode'](0xff&_0xb15de6>>(-0x2*_0x566d9a&0x6)):0x0){_0x1d39a2=_0x2e4d82['indexOf'](_0x1d39a2);}for(let _0x380577=0x0,_0x2f66eb=_0x2195bc['length'];_0x380577<_0x2f66eb;_0x380577++){_0xd0f414+='%'+('00'+_0x2195bc['charCodeAt'](_0x380577)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xd0f414);};_0x2478['vXEmwl']=_0xcd1874,_0x52a625=arguments,_0x2478['fqCUqK']=!![];}const _0x3ba285=_0x46c5ac[0x0],_0x118da3=_0x247897+_0x3ba285,_0x17623c=_0x52a625[_0x118da3];return!_0x17623c?(_0x4edcc8=_0x2478['vXEmwl'](_0x4edcc8),_0x52a625[_0x118da3]=_0x4edcc8):_0x4edcc8=_0x17623c,_0x4edcc8;},_0x2478(_0x52a625,_0x485468);}const model=mongoose[_0x2d187c(0xd6)]['nhomnhadat']||mongoose['model'](_0x2d187c(0xd9),nhomnhadatSchema);module['exports']=model;function _0x46c5(){const _0x9e9fa1=['ntm5mtK5mfvOre5jBa','mtq1otu0odL2s0PgCKO','ntyXnZzbEgPYr0O','mtK4zKjqqKDK','y29UzMLNCW','C3bSAxq','mtCZotGYtgDHy0nW','mZq4odqWohPSt21Kqq','mMvnq3rsBa','Bw9KzwXZ','Aw5KzxG','BM93','BMHVBw5OywrHDa','odmWmty4nfbsrfLWta','BMHVBw5OywrHDf9PBMrLEa','mtiYodGXnLb2z3b5sG','y3jLyxrLsw5KzxHLCW'];_0x46c5=function(){return _0x9e9fa1;};return _0x46c5();}
@@ -1,3 +1 @@
1
- const phanloainhadatSchema=new Schema({id_app:{type:String,required:!0},stt:Number,ten_phan_loai:{type:String,required:!0,maxlength:1024},status:{type:Boolean,default:!0},date_created:{type:Date,default:Date.now},date_updated:{type:Date,default:Date.now},user_created:{type:String,default:""},user_updated:{type:String,default:""},visible_to:{type:Number,default:0},visible_to_users:[String],visible_to_usergroups:[String],dataview_to:{type:Number,default:0},dataview_to_users:[String],update_right:[String],
2
- delete_right:[String]});(global.configs||{}).createIndexes&&(phanloainhadatSchema.index({ten_phan_loai:"text"},{name:"phanloainhadat_index"}),phanloainhadatSchema.index({status:1}),phanloainhadatSchema.index({date_created:1}),phanloainhadatSchema.index({date_updated:1}),phanloainhadatSchema.index({visible_to_usergroups:1}),phanloainhadatSchema.index({user_created:1,visible_to:1,visible_to_users:1}));const model=mongoose.models.phanloainhadat||mongoose.model("phanloainhadat",phanloainhadatSchema);
3
- module.exports=model;
1
+ const _0x224446=_0x3aa9;function _0x3277(){const _0x265d99=['mJu1ndnKzezTqMm','nZC3odi0mgrhEvLeDq','ndeWofLrs2nOuW','mJa4ndaWmeHNDhbgAG','CgHHBMXVywLUAgfKyxrFAw5KzxG','nJaXu2PMweXQ','Bw9KzwXZ','mti1nZqYnZHLCMT6Dxi','BM93','oeLtt1jutG','C3bSAxq','y3jLyxrLsw5KzxHLCW','zxHWB3j0CW','Bw9KzwW','Dgv4Da','CgHHBMXVywLUAgfKyxq','Aw5KzxG','mJmZngXeCwnvwa','ndi3mdK5mNPozKHvra','mteWmJm1ouvrA2HirW'];_0x3277=function(){return _0x265d99;};return _0x3277();}(function(_0x49b8de,_0xbcd27d){const _0x174a2f=_0x3aa9,_0x1fa83c=_0x49b8de();while(!![]){try{const _0x151bd4=-parseInt(_0x174a2f(0x1d8))/0x1*(-parseInt(_0x174a2f(0x1d5))/0x2)+parseInt(_0x174a2f(0x1d2))/0x3+-parseInt(_0x174a2f(0x1c8))/0x4*(-parseInt(_0x174a2f(0x1d6))/0x5)+parseInt(_0x174a2f(0x1d0))/0x6*(-parseInt(_0x174a2f(0x1d3))/0x7)+parseInt(_0x174a2f(0x1d1))/0x8+-parseInt(_0x174a2f(0x1c6))/0x9+parseInt(_0x174a2f(0x1d4))/0xa;if(_0x151bd4===_0xbcd27d)break;else _0x1fa83c['push'](_0x1fa83c['shift']());}catch(_0x2bdc37){_0x1fa83c['push'](_0x1fa83c['shift']());}}}(_0x3277,0xe332a));const phanloainhadatSchema=new Schema({'id_app':{'type':String,'required':!![]},'stt':Number,'ten_phan_loai':{'type':String,'required':!![],'maxlength':0x400},'status':{'type':Boolean,'default':!![]},'date_created':{'type':Date,'default':Date[_0x224446(0x1c7)]},'date_updated':{'type':Date,'default':Date[_0x224446(0x1c7)]},'user_created':{'type':String,'default':''},'user_updated':{'type':String,'default':''},'visible_to':{'type':Number,'default':0x0},'visible_to_users':[String],'visible_to_usergroups':[String],'dataview_to':{'type':Number,'default':0x0},'dataview_to_users':[String],'update_right':[String],'delete_right':[String]});function _0x3aa9(_0x147736,_0x106b09){const _0x3277cd=_0x3277();return _0x3aa9=function(_0x3aa940,_0x547e49){_0x3aa940=_0x3aa940-0x1c5;let _0x1d5509=_0x3277cd[_0x3aa940];if(_0x3aa9['bOhdDL']===undefined){var _0x25d748=function(_0x2c90aa){const _0x55a28d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x36e5d3='',_0x580afb='';for(let _0x3c20d4=0x0,_0x404bc,_0x30a2a9,_0x44fdc2=0x0;_0x30a2a9=_0x2c90aa['charAt'](_0x44fdc2++);~_0x30a2a9&&(_0x404bc=_0x3c20d4%0x4?_0x404bc*0x40+_0x30a2a9:_0x30a2a9,_0x3c20d4++%0x4)?_0x36e5d3+=String['fromCharCode'](0xff&_0x404bc>>(-0x2*_0x3c20d4&0x6)):0x0){_0x30a2a9=_0x55a28d['indexOf'](_0x30a2a9);}for(let _0x192c22=0x0,_0x3c8884=_0x36e5d3['length'];_0x192c22<_0x3c8884;_0x192c22++){_0x580afb+='%'+('00'+_0x36e5d3['charCodeAt'](_0x192c22)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x580afb);};_0x3aa9['EukndH']=_0x25d748,_0x147736=arguments,_0x3aa9['bOhdDL']=!![];}const _0x5cec94=_0x3277cd[0x0],_0x260c95=_0x3aa940+_0x5cec94,_0x2615e1=_0x147736[_0x260c95];return!_0x2615e1?(_0x1d5509=_0x3aa9['EukndH'](_0x1d5509),_0x147736[_0x260c95]=_0x1d5509):_0x1d5509=_0x2615e1,_0x1d5509;},_0x3aa9(_0x147736,_0x106b09);}if((global['configs']||{})[_0x224446(0x1ca)]){const epAiOR='0|3|2|5|4|1'[_0x224446(0x1c9)]('|');let yeoluS=0x0;while(!![]){switch(epAiOR[yeoluS++]){case'0':phanloainhadatSchema[_0x224446(0x1cf)]({'ten_phan_loai':_0x224446(0x1cd)},{'name':_0x224446(0x1d7)});continue;case'1':phanloainhadatSchema[_0x224446(0x1cf)]({'user_created':0x1,'visible_to':0x1,'visible_to_users':0x1});continue;case'2':phanloainhadatSchema[_0x224446(0x1cf)]({'date_created':0x1});continue;case'3':phanloainhadatSchema[_0x224446(0x1cf)]({'status':0x1});continue;case'4':phanloainhadatSchema[_0x224446(0x1cf)]({'visible_to_usergroups':0x1});continue;case'5':phanloainhadatSchema['index']({'date_updated':0x1});continue;}break;}}const model=mongoose[_0x224446(0x1c5)]['phanloainhadat']||mongoose[_0x224446(0x1cc)](_0x224446(0x1ce),phanloainhadatSchema);module[_0x224446(0x1cb)]=model;