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,12 +1 @@
1
- const databanlenpp=require("../../libs/databanlenpp"),async=require("async"),moment=require("moment"),controller=require("../../controllers/controllerRPT");
2
- module.exports=function($router$$){new controller($router$$,"tongquanctvnpp",async function($m_m$$,$callback$$){const $condition$$=$m_m$$.query;$condition$$.tu_ngay||($m_m$$=moment(),$condition$$.nam&&$m_m$$.set("year",Number($condition$$.nam)),$condition$$.thang?($m_m$$.set("month",Number($condition$$.thang)-1),$condition$$.tu_ngay=$m_m$$.startOf("month").toDate()):$condition$$.tu_ngay=$m_m$$.startOf("year").toDate());$condition$$.den_ngay||($m_m$$=moment(),$condition$$.nam&&$m_m$$.set("year",Number($condition$$.nam)),
3
- $condition$$.thang?($m_m$$.set("month",Number($condition$$.thang)-1),$condition$$.den_ngay=$m_m$$.endOf("month").toDate()):$condition$$.den_ngay=$m_m$$.endOf("year").toDate());const $query$$={id_app:$condition$$.id_app};$query$$.ngay_ct={$gte:$condition$$.tu_ngay,$lte:$condition$$.den_ngay};$condition$$.ma_dvcs&&($query$$.ma_dvcs=$condition$$.ma_dvcs);$condition$$.ma_kho&&($query$$.ma_kho=$condition$$.ma_kho);$condition$$.ma_ct&&($query$$.ma_ct=$condition$$.ma_ct);$condition$$.user_hoa_hong&&($query$$.$and||
4
- ($query$$.$and=[]),$query$$.$and.push({$or:[{user_nv:$condition$$.user_hoa_hong},{user_ctv:$condition$$.user_hoa_hong},{user_ctv2:$condition$$.user_hoa_hong},{user_kho:$condition$$.user_hoa_hong},{user_gt:$condition$$.user_hoa_hong},{user_ql:$condition$$.user_hoa_hong},{"details.user_nv":$condition$$.user_hoa_hong},{"details.user_ctv":$condition$$.user_hoa_hong},{"details.user_ctv2":$condition$$.user_hoa_hong},{"details.user_kho":$condition$$.user_hoa_hong},{"details.user_gt":$condition$$.user_hoa_hong},
5
- {"details.user_ql":$condition$$.user_hoa_hong}]}));$condition$$.ma_nv=$condition$$.ma_nv||$condition$$.user_hoa_hong;async.series({npp:$cb$$=>{databanlenpp($query$$,function($error$$,$rs$$){$cb$$($error$$,$rs$$)})}},($error$$,$rs$$)=>{if($error$$)return $callback$$($error$$);async.mapSeries($rs$$.npp,function($r$$,$callback$$){$r$$.t_tien_hang_ct=$r$$.details.csum("tien_hang_ct");$r$$.t_thue=$r$$.details.csum("tien_thue");$r$$.t_tien_ck=$r$$.details.csum("tien_ck");$r$$.t_tien_cp=$r$$.details.csum("tien_cp");
6
- $r$$.tien_ck_hd=$r$$.tien_ck_hd||0;$r$$.t_tien_hoa_hong=$r$$.details.csum("tien_hoa_hong");$r$$.t_tien_hoa_hong_gt=$r$$.details.csum("tien_hoa_hong_gt");$r$$.t_tien_hoa_hong_ctv=$r$$.details.csum("tien_hoa_hong_ctv");$r$$.t_tien_hoa_hong_ctv2=$r$$.details.csum("tien_hoa_hong_ctv2");$r$$.t_tien_hoa_hong_ql=$r$$.details.csum("tien_hoa_hong_ql");$r$$.t_tien_hoa_hong_kho=$r$$.details.csum("tien_hoa_hong_kho");$r$$.thang=(new Date($r$$.ngay_ct)).getMonth()+1;$r$$.nam=(new Date($r$$.ngay_ct)).getFullYear();
7
- $condition$$.chi_hien_chua_post_sokho?global.getModel("sokho").find({id_ct:$r$$._id}).lean().then($rs$$=>{$r$$.t_sl_xuat_kho=$rs$$.map($r$$=>$r$$.sl_xuat).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$callback$$(null,$r$$)}):$callback$$(null,$r$$)},function($error$$,$rs$$){if($error$$)return $callback$$($error$$);$condition$$.chi_hien_chua_post_sokho&&($rs$$=$rs$$.filter($r$$=>!$r$$.t_sl_xuat_kho));let $data_orgin$$=[...$rs$$],$t_doanh_thu_thuan$$=0;$rs$$.forEach($tl$$=>{$t_doanh_thu_thuan$$=$t_doanh_thu_thuan$$+
8
- ($tl$$.t_tien_hang_ct||0)-($tl$$.t_tien_ck||0)+($tl$$.tien_phi_vc||0)-($tl$$.tien_freeship||0)-($tl$$.tien_ck_hd||0)-($tl$$.tien_evoucher||0);$t_doanh_thu_thuan$$-=($tl$$.details_tl||[]).csum("tien_hang_ct")-($tl$$.details_tl||[]).csum("tien_ck");($tl$$.details_tl||[]).forEach($r$$=>{$r$$.t_tien_hoa_hong=0-$r$$.tien_hoa_hong;$r$$.t_tien_hoa_hong_ql=0-$r$$.tien_hoa_hong_ql;$r$$.t_tien_hoa_hong_ctv=0-$r$$.tien_hoa_hong_ctv;$r$$.t_tien_hoa_hong_ctv2=0-($r$$.tien_hoa_hong_ctv2||0);$r$$.t_tien_hoa_hong_gt=
9
- 0-$r$$.tien_hoa_hong_gt;$r$$.t_tien_hoa_hong_kho=0-$r$$.tien_hoa_hong_kho;$r$$.thang=(new Date($tl$$.ngay_ct)).getMonth()+1;$r$$.nam=(new Date($tl$$.ngay_ct)).getFullYear();$data_orgin$$.push($r$$)})});var $data_t_tien_hoa_hong_gt$$=$data_orgin$$.map($r$$=>{let $_r$$=[];$r$$.user_nv&&$r$$.t_tien_hoa_hong&&$_r$$.push({user_hoa_hong:$r$$.user_nv,t_tien_hoa_hong:$r$$.t_tien_hoa_hong,thang:$r$$.thang,nam:$r$$.nam});$r$$.user_ql&&$r$$.t_tien_hoa_hong_ql&&$_r$$.push({user_hoa_hong:$r$$.user_ql,t_tien_hoa_hong:$r$$.t_tien_hoa_hong_ql,
10
- thang:$r$$.thang,nam:$r$$.nam});$r$$.user_ctv&&$r$$.t_tien_hoa_hong_ctv&&$_r$$.push({user_hoa_hong:$r$$.user_ctv,t_tien_hoa_hong:$r$$.t_tien_hoa_hong_ctv,thang:$r$$.thang,nam:$r$$.nam});$r$$.user_ctv2&&$r$$.t_tien_hoa_hong_ctv2&&$_r$$.push({user_hoa_hong:$r$$.user_ctv2,t_tien_hoa_hong:$r$$.t_tien_hoa_hong_ctv2,thang:$r$$.thang,nam:$r$$.nam});$r$$.user_kho&&$r$$.t_tien_hoa_hong_kho&&$_r$$.push({user_hoa_hong:$r$$.user_kho,t_tien_hoa_hong:$r$$.t_tien_hoa_hong_kho,thang:$r$$.thang,nam:$r$$.nam});$r$$.user_gt&&
11
- $r$$.t_tien_hoa_hong_gt&&$_r$$.push({user_hoa_hong:$r$$.user_gt,t_tien_hoa_hong_gt:$r$$.t_tien_hoa_hong_gt,thang:$r$$.thang,nam:$r$$.nam});return $_r$$}).reduce(($a$$,$b$$)=>$a$$.concat($b$$),[]);$data_t_tien_hoa_hong_gt$$=[...$data_t_tien_hoa_hong_gt$$];$condition$$.user_hoa_hong&&($data_t_tien_hoa_hong_gt$$=$data_t_tien_hoa_hong_gt$$.filter($r$$=>$r$$.user_hoa_hong==$condition$$.user_hoa_hong));$error$$=[];$rs$$=$data_t_tien_hoa_hong_gt$$.csum("t_tien_hoa_hong");$data_t_tien_hoa_hong_gt$$=$data_t_tien_hoa_hong_gt$$.csum("t_tien_hoa_hong_gt");
12
- $error$$.push({nam:"T\u1ed5ng c\u1ed9ng",t_doanh_thu_thuan:$t_doanh_thu_thuan$$,t_tien_hoa_hong:$rs$$,t_tien_hoa_hong_gt:$data_t_tien_hoa_hong_gt$$,t_cong:$rs$$+$data_t_tien_hoa_hong_gt$$,bold:!0});$callback$$(null,$error$$)})})})};
1
+ function _0x477c(_0x3b836e,_0x488b83){const _0x21e6fa=_0x21e6();return _0x477c=function(_0x477c7f,_0x347f75){_0x477c7f=_0x477c7f-0x1be;let _0x4959aa=_0x21e6fa[_0x477c7f];if(_0x477c['VEOHDn']===undefined){var _0x441f32=function(_0x392c61){const _0x29b771='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x558fa1='',_0x24d3b3='';for(let _0x36ec8c=0x0,_0x4948af,_0x80cc79,_0x2749d1=0x0;_0x80cc79=_0x392c61['charAt'](_0x2749d1++);~_0x80cc79&&(_0x4948af=_0x36ec8c%0x4?_0x4948af*0x40+_0x80cc79:_0x80cc79,_0x36ec8c++%0x4)?_0x558fa1+=String['fromCharCode'](0xff&_0x4948af>>(-0x2*_0x36ec8c&0x6)):0x0){_0x80cc79=_0x29b771['indexOf'](_0x80cc79);}for(let _0x360cc7=0x0,_0x21e6b9=_0x558fa1['length'];_0x360cc7<_0x21e6b9;_0x360cc7++){_0x24d3b3+='%'+('00'+_0x558fa1['charCodeAt'](_0x360cc7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x24d3b3);};_0x477c['sykIYc']=_0x441f32,_0x3b836e=arguments,_0x477c['VEOHDn']=!![];}const _0x3d4d52=_0x21e6fa[0x0],_0x108183=_0x477c7f+_0x3d4d52,_0x5573a4=_0x3b836e[_0x108183];return!_0x5573a4?(_0x4959aa=_0x477c['sykIYc'](_0x4959aa),_0x3b836e[_0x108183]=_0x4959aa):_0x4959aa=_0x5573a4,_0x4959aa;},_0x477c(_0x3b836e,_0x488b83);}const _0x3f414c=_0x477c;(function(_0x4657dd,_0x21c07f){const _0x38e933=_0x477c,_0x25ada1=_0x4657dd();while(!![]){try{const _0x575e5b=parseInt(_0x38e933(0x23a))/0x1*(-parseInt(_0x38e933(0x232))/0x2)+-parseInt(_0x38e933(0x214))/0x3+-parseInt(_0x38e933(0x27e))/0x4+parseInt(_0x38e933(0x209))/0x5*(parseInt(_0x38e933(0x24b))/0x6)+parseInt(_0x38e933(0x246))/0x7+-parseInt(_0x38e933(0x273))/0x8+parseInt(_0x38e933(0x206))/0x9*(parseInt(_0x38e933(0x1dd))/0xa);if(_0x575e5b===_0x21c07f)break;else _0x25ada1['push'](_0x25ada1['shift']());}catch(_0x419669){_0x25ada1['push'](_0x25ada1['shift']());}}}(_0x21e6,0xd7f8e));const databanlenpp=require(_0x3f414c(0x243)),async=require(_0x3f414c(0x1be)),moment=require(_0x3f414c(0x27b)),controller=require(_0x3f414c(0x244));function _0x21e6(){const _0x21bf87=['q09OqLK','zgv0ywLSCW','senpzg8','mxLvqMfdDa','BLn3ChC','nhWWFdj8ohWXFdv8nNWZFdC','zw5Kt2y','tMvgsu0','wu1vuxq','tNjQu2q','zMLSDgvY','uhv2y0m','lI4VlI4VBgLICY9KyxrHyMfUBgvUCha','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCLjqva','vMXKsxu','mZu1nJq2ow1cA2L2tG','tLvSsei','yMXzwMm','CxnuCM4','BwfFBNy','mZa2vevqA2TQ','DgLkBxa','vw55vha','quPKC2m','Dg9Uz3f1yw5JDhzUCha','zgv0ywLSC190Ba','DgLLBL9JCa','zgfZwgC','DxnLCL9NDa','n3W0Fdn8nxW4Fdj8nNWXFda','D0XZA3m','DxnLCL9XBa','C2XFEhvHDa','BgvHBG','uezYA1y','yuTmD1a','EhzhuuO','y2HPx2HPzw5Fy2H1yv9WB3n0x3nVA2HV','DgLLBL9OB2fFAg9Uz19JDhyY','A0Hgqwi','Df90AwvUx2HVyv9OB25Nx2D0','vxf4AxC','EwvHCG','DgLLBL9OB2fFAg9Uz19RAg8','vu5hDwS','uLfVCwq','yKDQshi','Dg9eyxrL','zuLnq3u','CuTnz0C','z2v0tw9UDgG','rMDsCgK','C0fjsNK','B0vbsvm','D3PwuhG','DgLLBL9JA19Oza','wufSyNa','qLjOr3C','yMT4B20','ChvZAa','ndC5mdK4nhH3wKHNqq','Df90AwvUx2HVyv9OB25Nx2TOBW','AwTct3K','CxvLCNK','Cu1cENa','Df90AwvUx2HHBMDFy3q','sLbmwKq','BMfT','Bw9Tzw50','A2vKENG','DxnLCL9UDG','mZiXotyXmNn2C0vPua','zM9YrwfJAa','tfP2AgW','z2v0rNvSBfLLyxi','Df90AwvUx2nW','AfncD20','uLPXALq','Df90AwvUx2HVyv9OB25Nx2n0DJi','zhjnuMq','t0r4z2W','tgrRsNe','yxn5BMm','ruPwChm','r0r5rvi','D1rvBeC','Bw9UDgG','DgLLBL9WAgLFDMm','Cfn2wuO','yxrcs2q','wMDMCLm','AMPwzee','zgvUx25NyxK','yMriAva','u1DtD3C','DgHgyxm','q1vwrKO','DgLLBL9MCMvLC2HPCa','q1vMDe4','DgLLBL9OB2fFAg9Uz19NDa','Df90AhvL','EvHVsNC','qNPRufe','zgLfuNe','vog7Lw5NigpHU5LUzW','sxruEuG','svPbBNa','C2vYAwvZ','C29RAg8','DgHLBG','DgLLBL9OB2fFAg9Uz19XBa','wwjHu1G','Du9TuNi','odyWmgPir0z6Aq','BwfFy3q','BKXXA1O','qurxt0q','DgLLBL9OB2fFAg9Uz19JDhy','vKTdy1e','BwfFA2HV','DgLLBL9JAW','te5ZAKm','DgLLBL90AhvL','rKXbCva','sevIsee','B3vOzMm','wMzzEMG','s2zrEMq','BwXvrwS','EefzsMe','ENbuC3C','DgLLBL9LDM91y2HLCG','BwfW','sLftrKu','sgrvCMG','zvvlDMW','r2HpuLe','y29Uy2f0','EKvkDgC','v1P2u1i','rgHsBfC','mtn8nxWWFdz8mNWXmhWZFdeXFdr8oxW4FdD8mxWXmG','B1vqzui','twvYug0','ruXwzLq','DxnLCL9RAg8','Df90AwvUx2nR','DxnLCL9JDhy','uvP1AhK','vLrOthe','DgLLBL9Oyw5Nx2n0','Df90AwvUx2HVyv9OB25Nx3fS','rvriEwi','ugXWr2O','mZi1ndrLvxv5CfC','DgHHBMC','tevYsNe','mte3nte1vu9gshnv','y3n1Bq','tujZww8','Dw1AyMS','t091Dgq','vLbuuKm','Bgvxt3y','zejzEhO','DxnLCL9JDhyY','Df90AwvUx2HVyv9OB25N','BwfFzhzJCW','nti0mdiZmKXpquvIta','Df9ZBf94Dwf0x2TOBW','DwPSww0','qLnNu2y','z2v0tw9KzwW','CMvKDwnL','DhvFBMDHEq','ALfjB2e','sM9QAK0','Ae94Ewi','DgLLBL9OB2fFAg9UzW','z09kC1q','EvvZtwS','Ce5qCwy','tgLdr08','B3PuvfO','EwfItK0','u3rvA1y','DxnLCL9OB2fFAg9UzW','yMj0qxu','zMLUza','C3bSAxq','DhrhrhO','txD0sK4','jgfUza','Cgfxrfi','BMDHEv9JDa','t01PqKy','C1PUEK0','C3rHCNrpzG','mtu2mJy3nM5lAuXIta','x2LK','Df90AwvUx2HVyv9OB25Nx2n0DG','CMPUAwu','C2v0'];_0x21e6=function(){return _0x21bf87;};return _0x21e6();}module['exports']=function(_0x30ac1b){const _0x50b764=_0x3f414c,_0x3212e1={'LErJq':function(_0x16491f,_0xe4d321){return _0x16491f-_0xe4d321;},'zpTsw':function(_0x5cc2f2,_0x3b1ae){return _0x5cc2f2-_0x3b1ae;},'yUsMk':function(_0x5d813a,_0x5c56c0){return _0x5d813a+_0x5c56c0;},'zEJtg':_0x50b764(0x202),'oPUXS':_0x50b764(0x1e4),'eIMCu':'year','COhBY':function(_0x332fc4,_0x2570be,_0x20bc59){return _0x332fc4(_0x2570be,_0x20bc59);},'thFas':_0x50b764(0x1c2),'leWOv':function(_0x52ebd8,_0x2de174){return _0x52ebd8-_0x2de174;},'ETHyb':function(_0x2832e6,_0x1accb9){return _0x2832e6(_0x1accb9);},'OMiBF':function(_0xd674de,_0x1753eb){return _0xd674de-_0x1753eb;},'JPLZD':function(_0x2fb487,_0x4abed5){return _0x2fb487-_0x4abed5;},'YMUQt':'3|6|7|0|1|8|5|4|2','ZgfrS':function(_0x442e48,_0x4ab2f0){return _0x442e48-_0x4ab2f0;},'VThLq':function(_0x34c686,_0x51bb9b){return _0x34c686-_0x51bb9b;},'PFrkV':function(_0x22c677,_0x5d5627){return _0x22c677-_0x5d5627;},'umZbk':function(_0x15885b,_0x555aee){return _0x15885b-_0x555aee;},'yXoJw':function(_0x8a2f0b,_0x3d37ff){return _0x8a2f0b-_0x3d37ff;},'LNsjC':function(_0x52607e,_0x204452){return _0x52607e!==_0x204452;},'bbtAu':function(_0x346f09,_0x1ce455){return _0x346f09===_0x1ce455;},'mlUEk':_0x50b764(0x25d),'TKpYU':_0x50b764(0x1e6),'RZqjT':_0x50b764(0x251),'ujlYm':_0x50b764(0x262),'Uqxiw':_0x50b764(0x21e),'LdkJq':_0x50b764(0x1d8),'LZvhl':_0x50b764(0x254),'RQoqd':function(_0x287cef,_0x8f0ff7){return _0x287cef-_0x8f0ff7;},'nSwpw':_0x50b764(0x212),'aKLwP':'t_tien_hoa_hong_ql','drMRd':_0x50b764(0x256),'FLAqP':_0x50b764(0x1ff),'JKFPE':_0x50b764(0x265),'bAxlb':_0x50b764(0x253),'QHDen':function(_0x4d76a6,_0x560a6b){return _0x4d76a6(_0x560a6b);},'MBsYo':function(_0x5b70b8){return _0x5b70b8();},'SvUdQ':_0x50b764(0x22a),'jQIoa':function(_0x413eef,_0x13862d){return _0x413eef(_0x13862d);},'uOmRr':function(_0x1d302f,_0x3f2a52){return _0x1d302f-_0x3f2a52;},'rjnie':function(_0x5a5163,_0x5a49d1){return _0x5a5163(_0x5a49d1);},'KfQzd':function(_0x3ca13c,_0x4d4b7f){return _0x3ca13c===_0x4d4b7f;},'atBKd':_0x50b764(0x247),'VKCcQ':_0x50b764(0x283),'JojjM':_0x50b764(0x230),'ODxgl':_0x50b764(0x1fc),'jgaIk':_0x50b764(0x24f)};new controller(_0x30ac1b,_0x3212e1['jgaIk'],async function(_0x28bb06,_0x357fb7){const _0x31f293=_0x50b764,_0x13d01b={'wzVPx':_0x3212e1['thFas'],'VPTRC':function(_0x4fb0b8,_0x5a62b4){const _0x4e8d6f=_0x477c;return _0x3212e1[_0x4e8d6f(0x20f)](_0x4fb0b8,_0x5a62b4);},'diERq':function(_0x1daac7,_0x200dd9){const _0x48b187=_0x477c;return _0x3212e1[_0x48b187(0x204)](_0x1daac7,_0x200dd9);},'VldIu':function(_0x28b2ab,_0x333acf,_0x297f5c){const _0x3d04fa=_0x477c;return _0x3212e1[_0x3d04fa(0x237)](_0x28b2ab,_0x333acf,_0x297f5c);},'JQSFE':function(_0x5c85b8,_0x41470d){const _0x31a931=_0x477c;return _0x3212e1[_0x31a931(0x22f)](_0x5c85b8,_0x41470d);},'BRhGw':function(_0xf4f81e,_0x2316ae){const _0x5c93a9=_0x477c;return _0x3212e1[_0x5c93a9(0x1ee)](_0xf4f81e,_0x2316ae);},'HdUrh':function(_0x46dc3,_0x392d77){const _0x7ca0ec=_0x477c;return _0x3212e1[_0x7ca0ec(0x279)](_0x46dc3,_0x392d77);},'ikBOy':function(_0x5e2a4d,_0xc37ef0){const _0x4bacbc=_0x477c;return _0x3212e1[_0x4bacbc(0x220)](_0x5e2a4d,_0xc37ef0);},'ozTTZ':_0x3212e1[_0x31f293(0x23f)],'cxoZN':function(_0x162fa0,_0x3882b3){const _0x476a49=_0x31f293;return _0x3212e1[_0x476a49(0x1c6)](_0x162fa0,_0x3882b3);},'dBYxz':function(_0x3f5691,_0x2489ac){const _0x34a954=_0x31f293;return _0x3212e1[_0x34a954(0x201)](_0x3f5691,_0x2489ac);},'Ydxay':function(_0x228a22,_0x5192ec){const _0x20a5ca=_0x31f293;return _0x3212e1[_0x20a5ca(0x259)](_0x228a22,_0x5192ec);},'LiCGO':function(_0x409703,_0x350d8c){const _0x33d3a4=_0x31f293;return _0x3212e1[_0x33d3a4(0x20c)](_0x409703,_0x350d8c);},'NeFIM':function(_0x89d9d6,_0x33c947){const _0x4dc4f6=_0x31f293;return _0x3212e1[_0x4dc4f6(0x1d1)](_0x89d9d6,_0x33c947);},'PlpGj':function(_0x48f58c,_0x7e7eff){return _0x3212e1['LNsjC'](_0x48f58c,_0x7e7eff);},'OOutd':'CUVFJ','oEAIS':function(_0x2b9cef,_0x98521e,_0x5d178a){return _0x2b9cef(_0x98521e,_0x5d178a);},'kHFAb':function(_0x3774bc,_0x117c6e){const _0x535bd3=_0x31f293;return _0x3212e1[_0x535bd3(0x227)](_0x3774bc,_0x117c6e);},'sAIJy':_0x31f293(0x21d),'blYZc':_0x31f293(0x1f9),'cbQov':_0x3212e1[_0x31f293(0x1ec)],'tbVrH':_0x3212e1['TKpYU'],'MwtJN':_0x3212e1[_0x31f293(0x284)],'dasXg':function(_0x41a261,_0xe5c893){const _0x6c8c18=_0x31f293;return _0x3212e1[_0x6c8c18(0x220)](_0x41a261,_0xe5c893);},'CBmYD':_0x3212e1[_0x31f293(0x216)],'QZuhy':_0x3212e1[_0x31f293(0x260)],'oUPeB':_0x31f293(0x1e1),'wLsks':_0x3212e1[_0x31f293(0x288)],'HEbHA':'tUbQN','jjVdA':_0x3212e1[_0x31f293(0x280)],'gOJsT':function(_0x187ee5,_0x3df231){const _0x55f392=_0x31f293;return _0x3212e1[_0x55f392(0x264)](_0x187ee5,_0x3df231);},'EJVps':function(_0x713630,_0xbfcf7b){const _0x5a6f49=_0x31f293;return _0x3212e1[_0x5a6f49(0x220)](_0x713630,_0xbfcf7b);},'yabNM':_0x31f293(0x261),'StUkV':function(_0x4963e8,_0x42df73){return _0x4963e8-_0x42df73;},'paWDR':_0x31f293(0x202),'SWSww':_0x3212e1[_0x31f293(0x23b)],'GhORQ':_0x3212e1[_0x31f293(0x25a)],'cOlJT':_0x3212e1[_0x31f293(0x286)],'PuvcC':_0x3212e1[_0x31f293(0x1e7)],'NrjSd':_0x31f293(0x234),'YbaSX':function(_0x173668,_0x2c404a){return _0x173668!==_0x2c404a;},'CUftN':_0x3212e1['JKFPE'],'UNGuk':_0x3212e1['bAxlb'],'tiJmp':_0x31f293(0x25f),'ApwWS':function(_0x2a686d,_0x40ede5){return _0x3212e1['yUsMk'](_0x2a686d,_0x40ede5);},'BzkPQ':function(_0x2c2865,_0xaec65f){return _0x3212e1['QHDen'](_0x2c2865,_0xaec65f);}},_0x417ea6=_0x28bb06[_0x31f293(0x276)];if(!_0x417ea6[_0x31f293(0x21a)]){let _0x275cc2=_0x3212e1[_0x31f293(0x20b)](moment);_0x417ea6[_0x31f293(0x27a)]&&(_0x3212e1[_0x31f293(0x1e5)](_0x31f293(0x22a),_0x3212e1['SvUdQ'])?(_0x2c3f58[_0x31f293(0x236)](_0x13d01b[_0x31f293(0x26d)],_0x13d01b[_0x31f293(0x20e)](_0x13d01b[_0x31f293(0x1d3)](_0x6bc7e0,_0x1c6254[_0x31f293(0x207)]),0x1)),_0x33c540['den_ngay']=_0x1a57df[_0x31f293(0x23d)](_0x13d01b[_0x31f293(0x26d)])[_0x31f293(0x266)]()):_0x275cc2['set'](_0x3212e1[_0x31f293(0x267)],_0x3212e1[_0x31f293(0x21b)](Number,_0x417ea6['nam']))),_0x417ea6[_0x31f293(0x207)]?(_0x275cc2[_0x31f293(0x236)](_0x3212e1[_0x31f293(0x1cb)],_0x3212e1[_0x31f293(0x1dc)](_0x3212e1[_0x31f293(0x235)](Number,_0x417ea6[_0x31f293(0x207)]),0x1)),_0x417ea6[_0x31f293(0x21a)]=_0x275cc2[_0x31f293(0x231)](_0x3212e1['thFas'])['toDate']()):_0x417ea6[_0x31f293(0x21a)]=_0x275cc2[_0x31f293(0x231)]('year')['toDate']();}if(!_0x417ea6[_0x31f293(0x1c8)]){if(_0x3212e1[_0x31f293(0x1eb)](_0x3212e1[_0x31f293(0x1c5)],_0x3212e1['atBKd'])){let _0x104fe4=_0x3212e1[_0x31f293(0x20b)](moment);_0x417ea6[_0x31f293(0x27a)]&&_0x104fe4[_0x31f293(0x236)](_0x3212e1[_0x31f293(0x267)],Number(_0x417ea6[_0x31f293(0x27a)])),_0x417ea6[_0x31f293(0x207)]?_0x3212e1[_0x31f293(0x1e2)]!==_0x3212e1[_0x31f293(0x21c)]?(_0x104fe4[_0x31f293(0x236)](_0x3212e1[_0x31f293(0x1cb)],_0x3212e1[_0x31f293(0x204)](Number,_0x417ea6[_0x31f293(0x207)])-0x1),_0x417ea6[_0x31f293(0x1c8)]=_0x104fe4[_0x31f293(0x23d)](_0x31f293(0x1c2))[_0x31f293(0x266)]()):_0x13d01b[_0x31f293(0x245)](_0x55f6bf,null,_0x28c63d):_0x417ea6[_0x31f293(0x1c8)]=_0x104fe4[_0x31f293(0x23d)](_0x31f293(0x261))[_0x31f293(0x266)]();}else{const _0x471d52=_0x31f293(0x23c)[_0x31f293(0x229)]('|');let _0x4c732b=0x0;while(!![]){switch(_0x471d52[_0x4c732b++]){case'0':_0x4c3f02[_0x31f293(0x203)]=_0x13d01b['VPTRC'](0x0,_0x35c745['tien_hoa_hong_ql']);continue;case'1':_0x391072['t_tien_hoa_hong_gt']=_0x13d01b[_0x31f293(0x1f1)](0x0,_0x725d2f['tien_hoa_hong_gt']);continue;case'2':_0x3e1fcc[_0x31f293(0x234)]=_0x13d01b[_0x31f293(0x270)](0x0,_0x15ab66[_0x31f293(0x1e1)]);continue;case'3':_0x4d61b7[_0x31f293(0x27a)]=new _0x3a1752(_0x1cd3c9['ngay_ct'])[_0x31f293(0x281)]();continue;case'4':_0x252eaf['t_tien_hoa_hong']=0x0-_0x2975b6[_0x31f293(0x21e)];continue;case'5':_0x5f0741[_0x31f293(0x274)]=_0x13d01b[_0x31f293(0x1f2)](0x0,_0x9cf2e9[_0x31f293(0x262)]);continue;case'6':_0x2f5cd3[_0x31f293(0x207)]=_0x13d01b[_0x31f293(0x275)](new _0x31a986(_0x1876e4['ngay_ct'])[_0x31f293(0x269)](),0x1);continue;case'7':_0x3bd7fe[_0x31f293(0x272)](_0x1ce18b);continue;case'8':_0x381835[_0x31f293(0x285)]=_0x13d01b[_0x31f293(0x20e)](0x0,_0x2d98b2[_0x31f293(0x25d)]||0x0);continue;}break;}}}const _0x318ead={'id_app':_0x417ea6['id_app']};_0x318ead[_0x31f293(0x22e)]={'$gte':_0x417ea6[_0x31f293(0x21a)],'$lte':_0x417ea6['den_ngay']};_0x417ea6['ma_dvcs']&&(_0x3212e1[_0x31f293(0x1eb)](_0x31f293(0x277),'YBHgR')?(_0x188a9e=_0x3212e1[_0x31f293(0x208)](_0x3212e1[_0x31f293(0x208)](_0x3212e1[_0x31f293(0x1ee)](_0x3212e1[_0x31f293(0x220)](_0x3212e1[_0x31f293(0x220)](_0x379135,_0x4266ad['t_tien_hang_ct']||0x0)-(_0x3e921e[_0x31f293(0x1fe)]||0x0),_0x4df627[_0x31f293(0x1c3)]||0x0),_0x578e5e[_0x31f293(0x1cd)]||0x0),_0x5bdbcd['tien_ck_hd']||0x0),_0x528e4a[_0x31f293(0x1ef)]||0x0),_0x1c3876=_0x17b76a-((_0x12f270[_0x31f293(0x250)]||[])[_0x31f293(0x20a)](_0x3212e1[_0x31f293(0x1f6)])-(_0x32e087[_0x31f293(0x250)]||[])['csum'](_0x3212e1['oPUXS'])),(_0x28cc50[_0x31f293(0x250)]||[])[_0x31f293(0x27f)](_0x3c0786=>{const _0x30812e=_0x31f293,_0x447f60=_0x13d01b[_0x30812e(0x223)][_0x30812e(0x229)]('|');let _0xb2cb38=0x0;while(!![]){switch(_0x447f60[_0xb2cb38++]){case'0':_0x3c0786[_0x30812e(0x285)]=_0x13d01b['cxoZN'](0x0,_0x3c0786[_0x30812e(0x25d)]||0x0);continue;case'1':_0x3c0786[_0x30812e(0x25f)]=_0x13d01b[_0x30812e(0x210)](0x0,_0x3c0786[_0x30812e(0x1cf)]);continue;case'2':_0x817615[_0x30812e(0x272)](_0x3c0786);continue;case'3':_0x3c0786[_0x30812e(0x212)]=_0x13d01b['Ydxay'](0x0,_0x3c0786[_0x30812e(0x21e)]);continue;case'4':_0x3c0786['nam']=new _0x1c82f3(_0x4c537f[_0x30812e(0x22e)])[_0x30812e(0x281)]();continue;case'5':_0x3c0786[_0x30812e(0x207)]=new _0x125210(_0x35de2a[_0x30812e(0x22e)])[_0x30812e(0x269)]()+0x1;continue;case'6':_0x3c0786[_0x30812e(0x203)]=0x0-_0x3c0786[_0x30812e(0x1da)];continue;case'7':_0x3c0786[_0x30812e(0x234)]=_0x13d01b[_0x30812e(0x222)](0x0,_0x3c0786[_0x30812e(0x1e1)]);continue;case'8':_0x3c0786[_0x30812e(0x274)]=_0x13d01b['NeFIM'](0x0,_0x3c0786[_0x30812e(0x262)]);continue;}break;}})):_0x318ead[_0x31f293(0x213)]=_0x417ea6['ma_dvcs']);_0x417ea6['ma_kho']&&(_0x318ead[_0x31f293(0x1e3)]=_0x417ea6[_0x31f293(0x1e3)]);_0x417ea6['ma_ct']&&(_0x318ead[_0x31f293(0x1de)]=_0x417ea6['ma_ct']);if(_0x417ea6[_0x31f293(0x226)]){if(_0x3212e1[_0x31f293(0x1e5)](_0x3212e1[_0x31f293(0x287)],_0x3212e1[_0x31f293(0x287)]))_0x1f2207(_0x1996ac,_0x346f9b);else{if(!_0x318ead['$and'])_0x318ead[_0x31f293(0x22c)]=[];_0x318ead['$and']['push']({'$or':[{'user_nv':_0x417ea6[_0x31f293(0x226)]},{'user_ctv':_0x417ea6[_0x31f293(0x226)]},{'user_ctv2':_0x417ea6[_0x31f293(0x226)]},{'user_kho':_0x417ea6[_0x31f293(0x226)]},{'user_gt':_0x417ea6[_0x31f293(0x226)]},{'user_ql':_0x417ea6['user_hoa_hong']},{'details.user_nv':_0x417ea6[_0x31f293(0x226)]},{'details.user_ctv':_0x417ea6[_0x31f293(0x226)]},{'details.user_ctv2':_0x417ea6[_0x31f293(0x226)]},{'details.user_kho':_0x417ea6[_0x31f293(0x226)]},{'details.user_gt':_0x417ea6['user_hoa_hong']},{'details.user_ql':_0x417ea6[_0x31f293(0x226)]}]});}}_0x417ea6[_0x31f293(0x24a)]=_0x417ea6['ma_nv']||_0x417ea6[_0x31f293(0x226)],async[_0x31f293(0x1d7)]({'npp':_0x475e78=>{const _0x30f65f=_0x31f293,_0x58e5d8={'kedzx':_0x3212e1[_0x30f65f(0x267)]};_0x3212e1[_0x30f65f(0x237)](databanlenpp,_0x318ead,function(_0x44ee8b,_0x218902){const _0x429744=_0x30f65f;_0x13d01b[_0x429744(0x205)](_0x13d01b[_0x429744(0x20d)],_0x429744(0x1cc))?_0x52f235[_0x429744(0x21a)]=_0x5bb968['startOf'](_0x58e5d8[_0x429744(0x27c)])[_0x429744(0x266)]():_0x13d01b[_0x429744(0x26c)](_0x475e78,_0x44ee8b,_0x218902);});}},(_0x35712a,_0x2a8527)=>{const _0xac3959=_0x31f293,_0x339ea4={'ucslJ':function(_0x4de5ad,_0x4e86cb){return _0x4de5ad-_0x4e86cb;},'qIYQH':function(_0x155a30,_0x238914){const _0x4ea6b5=_0x477c;return _0x13d01b[_0x4ea6b5(0x1d2)](_0x155a30,_0x238914);},'EQVof':_0x13d01b[_0xac3959(0x263)]};if(_0x35712a)return _0x13d01b['BzkPQ'](_0x357fb7,_0x35712a);let _0x34f5d9=_0x2a8527['npp'];async['mapLimit'](_0x34f5d9,0x14,function(_0x5ef6b7,_0x27211e){const _0x253912=_0xac3959,_0x37acc7={'ZfYzh':function(_0x5293f5,_0x3f6545,_0x374802){const _0x58e2c7=_0x477c;return _0x13d01b[_0x58e2c7(0x26c)](_0x5293f5,_0x3f6545,_0x374802);}};if(_0x13d01b[_0x253912(0x25e)](_0x253912(0x1d6),_0x13d01b[_0x253912(0x26b)]))_0x47b47e[_0x253912(0x236)](_0x253912(0x1c2),_0x339ea4['ucslJ'](_0x339ea4['qIYQH'](_0x9d9e4c,_0x146c18[_0x253912(0x207)]),0x1)),_0xaff4a0[_0x253912(0x21a)]=_0x101331['startOf'](_0x253912(0x1c2))[_0x253912(0x266)]();else{const _0x1e0e4a=_0x13d01b[_0x253912(0x248)][_0x253912(0x229)]('|');let _0x5a878d=0x0;while(!![]){switch(_0x1e0e4a[_0x5a878d++]){case'0':_0x5ef6b7[_0x253912(0x1fe)]=_0x5ef6b7[_0x253912(0x238)][_0x253912(0x20a)]('tien_ck');continue;case'1':_0x5ef6b7['nam']=new Date(_0x5ef6b7[_0x253912(0x22e)])[_0x253912(0x281)]();continue;case'2':_0x5ef6b7[_0x253912(0x26e)]=_0x5ef6b7['tien_ck_hd']||0x0;continue;case'3':_0x5ef6b7[_0x253912(0x25f)]=_0x5ef6b7[_0x253912(0x238)][_0x253912(0x20a)](_0x253912(0x1cf));continue;case'4':_0x5ef6b7[_0x253912(0x285)]=_0x5ef6b7['details'][_0x253912(0x20a)](_0x13d01b['cbQov']);continue;case'5':_0x5ef6b7[_0x253912(0x1d0)]=_0x5ef6b7['details'][_0x253912(0x20a)](_0x13d01b['tbVrH']);continue;case'6':_0x5ef6b7[_0x253912(0x282)]=_0x5ef6b7[_0x253912(0x238)][_0x253912(0x20a)](_0x13d01b[_0x253912(0x22b)]);continue;case'7':_0x5ef6b7[_0x253912(0x207)]=_0x13d01b[_0x253912(0x252)](new Date(_0x5ef6b7[_0x253912(0x22e)])[_0x253912(0x269)](),0x1);continue;case'8':_0x5ef6b7[_0x253912(0x274)]=_0x5ef6b7[_0x253912(0x238)][_0x253912(0x20a)](_0x13d01b['CBmYD']);continue;case'9':_0x5ef6b7[_0x253912(0x203)]=_0x5ef6b7[_0x253912(0x238)][_0x253912(0x20a)](_0x253912(0x1da));continue;case'10':_0x5ef6b7['t_tien_hoa_hong']=_0x5ef6b7[_0x253912(0x238)][_0x253912(0x20a)](_0x13d01b[_0x253912(0x200)]);continue;case'11':_0x5ef6b7[_0x253912(0x234)]=_0x5ef6b7[_0x253912(0x238)]['csum'](_0x13d01b[_0x253912(0x1fa)]);continue;case'12':_0x417ea6[_0x253912(0x25c)]?global[_0x253912(0x218)](_0x13d01b[_0x253912(0x255)])[_0x253912(0x228)]({'id_ct':_0x5ef6b7[_0x253912(0x233)]})[_0x253912(0x258)]()[_0x253912(0x1d9)](_0x3e1db4=>{const _0x503d09=_0x253912;_0x5ef6b7['t_sl_xuat_kho']=_0x3e1db4[_0x503d09(0x1f0)](_0x54179d=>_0x54179d[_0x503d09(0x257)])[_0x503d09(0x219)]((_0x5f0c4d,_0x1ca2d6)=>_0x5f0c4d+_0x1ca2d6,0x0),_0x37acc7[_0x503d09(0x1ea)](_0x27211e,null,_0x5ef6b7);}):_0x13d01b[_0x253912(0x245)](_0x27211e,null,_0x5ef6b7);continue;case'13':_0x5ef6b7[_0x253912(0x278)]=_0x5ef6b7[_0x253912(0x238)]['csum'](_0x253912(0x202));continue;}break;}}},function(_0x40a958,_0x483533){const _0x2b1ac0=_0xac3959,_0x467988={'FgRpi':_0x13d01b[_0x2b1ac0(0x1e8)],'YAlbp':_0x2b1ac0(0x271),'xAYJa':_0x13d01b[_0x2b1ac0(0x1c7)],'xvGQJ':function(_0x527d96,_0x188834){return _0x527d96-_0x188834;},'ZkZUu':function(_0x473b14,_0x4009b1){const _0x5865bd=_0x2b1ac0;return _0x13d01b[_0x5865bd(0x21f)](_0x473b14,_0x4009b1);},'wTUlG':function(_0x251795,_0x270db9){const _0x37679d=_0x2b1ac0;return _0x13d01b[_0x37679d(0x1bf)](_0x251795,_0x270db9);},'GDyER':function(_0x19e007,_0x3ceecd){const _0x31579b=_0x2b1ac0;return _0x13d01b[_0x31579b(0x23e)](_0x19e007,_0x3ceecd);},'AJdsc':_0x13d01b[_0x2b1ac0(0x224)],'eUKvl':function(_0x457b17,_0x4e3633){const _0x14a8b9=_0x2b1ac0;return _0x13d01b[_0x14a8b9(0x225)](_0x457b17,_0x4e3633);},'AtvCR':function(_0x47d171,_0x55b990){return _0x13d01b['Ydxay'](_0x47d171,_0x55b990);},'zLJzI':function(_0x19268b,_0x29b1b7){const _0x11eda0=_0x2b1ac0;return _0x13d01b[_0x11eda0(0x225)](_0x19268b,_0x29b1b7);},'ngkdd':function(_0x55d228,_0x9b1d4f){return _0x13d01b['VPTRC'](_0x55d228,_0x9b1d4f);},'WZvSR':_0x13d01b[_0x2b1ac0(0x22d)],'BSgSf':_0x2b1ac0(0x1e4),'BcUwS':_0x2b1ac0(0x27d),'qKMgG':_0x13d01b['SWSww'],'pNPqf':_0x13d01b[_0x2b1ac0(0x1f4)],'bdHiP':_0x13d01b['cOlJT'],'MerPm':_0x13d01b[_0x2b1ac0(0x242)],'qsTrn':_0x13d01b[_0x2b1ac0(0x240)],'DhRlW':_0x2b1ac0(0x285),'wGEJM':function(_0x26ecca,_0x55cb9f){const _0x2743dc=_0x2b1ac0;return _0x13d01b[_0x2743dc(0x1db)](_0x26ecca,_0x55cb9f);},'nLqkZ':_0x13d01b[_0x2b1ac0(0x1ce)],'HCOdo':_0x2b1ac0(0x1fd),'ItTyH':_0x13d01b[_0x2b1ac0(0x263)],'ADWOD':_0x2b1ac0(0x25f)};if(_0x13d01b['kHFAb'](_0x2b1ac0(0x1c4),_0x2b1ac0(0x24d)))_0x1bf9de['push']({'user_hoa_hong':_0x3c5d13[_0x339ea4['EQVof']],'t_tien_hoa_hong_gt':_0x3204af['t_tien_hoa_hong_gt'],'thang':_0x1df385[_0x2b1ac0(0x207)],'nam':_0xdeb2ff['nam']});else{if(_0x40a958)return _0x13d01b['diERq'](_0x357fb7,_0x40a958);_0x417ea6[_0x2b1ac0(0x25c)]&&(_0x483533=_0x483533[_0x2b1ac0(0x241)](_0x8d3731=>!_0x8d3731[_0x2b1ac0(0x215)]));let _0x2177cd=[..._0x483533],_0x53bd48=0x0;_0x483533[_0x2b1ac0(0x27f)](_0x2b6ffb=>{const _0x363bf7=_0x2b1ac0,_0x2399ad={'ouhfc':_0x467988[_0x363bf7(0x24e)],'dSCwa':function(_0x54ad24,_0x586c3d){return _0x54ad24(_0x586c3d);}};_0x53bd48=_0x467988[_0x363bf7(0x1f3)](_0x467988['AtvCR'](_0x467988['zLJzI'](_0x53bd48+(_0x2b6ffb[_0x363bf7(0x278)]||0x0),_0x2b6ffb['t_tien_ck']||0x0)+(_0x2b6ffb[_0x363bf7(0x1c3)]||0x0),_0x2b6ffb['tien_freeship']||0x0),_0x2b6ffb[_0x363bf7(0x26e)]||0x0)-(_0x2b6ffb[_0x363bf7(0x1ef)]||0x0),_0x53bd48=_0x467988[_0x363bf7(0x1c0)](_0x53bd48,_0x467988['ngkdd']((_0x2b6ffb['details_tl']||[])['csum'](_0x467988[_0x363bf7(0x1f7)]),(_0x2b6ffb['details_tl']||[])[_0x363bf7(0x20a)](_0x467988[_0x363bf7(0x217)]))),(_0x2b6ffb[_0x363bf7(0x250)]||[])[_0x363bf7(0x27f)](_0x310385=>{const _0x41729d=_0x363bf7;if(_0x467988[_0x41729d(0x26a)]===_0x467988[_0x41729d(0x26f)])_0xf8b6bb[_0x41729d(0x236)](_0x2399ad[_0x41729d(0x1e9)],_0x2399ad['dSCwa'](_0x376e93,_0x757f8a['nam']));else{const _0xf740cb=_0x467988[_0x41729d(0x1ed)][_0x41729d(0x229)]('|');let _0x274b96=0x0;while(!![]){switch(_0xf740cb[_0x274b96++]){case'0':_0x2177cd[_0x41729d(0x272)](_0x310385);continue;case'1':_0x310385[_0x41729d(0x27a)]=new Date(_0x2b6ffb['ngay_ct'])[_0x41729d(0x281)]();continue;case'2':_0x310385[_0x41729d(0x274)]=_0x467988[_0x41729d(0x25b)](0x0,_0x310385[_0x41729d(0x262)]);continue;case'3':_0x310385['t_tien_hoa_hong_ctv']=_0x467988['ZkZUu'](0x0,_0x310385['tien_hoa_hong_ctv']);continue;case'4':_0x310385['t_tien_hoa_hong_ql']=_0x467988[_0x41729d(0x25b)](0x0,_0x310385['tien_hoa_hong_ql']);continue;case'5':_0x310385['t_tien_hoa_hong_ctv2']=0x0-(_0x310385[_0x41729d(0x25d)]||0x0);continue;case'6':_0x310385[_0x41729d(0x207)]=_0x467988[_0x41729d(0x1c1)](new Date(_0x2b6ffb[_0x41729d(0x22e)])[_0x41729d(0x269)](),0x1);continue;case'7':_0x310385['t_tien_hoa_hong']=0x0-_0x310385[_0x41729d(0x21e)];continue;case'8':_0x310385[_0x41729d(0x25f)]=_0x467988[_0x41729d(0x1c0)](0x0,_0x310385[_0x41729d(0x1cf)]);continue;}break;}}});});let _0x543f6c=_0x2177cd[_0x2b1ac0(0x1f0)](_0x51848f=>{const _0x30cb79=_0x2b1ac0;let _0x60a6a7=[];return _0x51848f[_0x467988['BcUwS']]&&_0x51848f[_0x467988[_0x30cb79(0x268)]]&&_0x60a6a7[_0x30cb79(0x272)]({'user_hoa_hong':_0x51848f[_0x467988['BcUwS']],'t_tien_hoa_hong':_0x51848f[_0x467988[_0x30cb79(0x268)]],'thang':_0x51848f['thang'],'nam':_0x51848f[_0x30cb79(0x27a)]}),_0x51848f['user_ql']&&_0x51848f[_0x467988['pNPqf']]&&_0x60a6a7[_0x30cb79(0x272)]({'user_hoa_hong':_0x51848f[_0x467988[_0x30cb79(0x1c9)]],'t_tien_hoa_hong':_0x51848f[_0x467988[_0x30cb79(0x221)]],'thang':_0x51848f[_0x30cb79(0x207)],'nam':_0x51848f[_0x30cb79(0x27a)]}),_0x51848f[_0x467988[_0x30cb79(0x1fb)]]&&_0x51848f[_0x467988[_0x30cb79(0x249)]]&&_0x60a6a7['push']({'user_hoa_hong':_0x51848f[_0x467988[_0x30cb79(0x1fb)]],'t_tien_hoa_hong':_0x51848f[_0x467988[_0x30cb79(0x249)]],'thang':_0x51848f[_0x30cb79(0x207)],'nam':_0x51848f['nam']}),_0x51848f[_0x30cb79(0x211)]&&_0x51848f[_0x467988['DhRlW']]&&(_0x467988['wGEJM'](_0x30cb79(0x265),_0x467988[_0x30cb79(0x1df)])?_0x3faa02[_0x30cb79(0x1e3)]=_0x44fd9b['ma_kho']:_0x60a6a7[_0x30cb79(0x272)]({'user_hoa_hong':_0x51848f['user_ctv2'],'t_tien_hoa_hong':_0x51848f[_0x467988[_0x30cb79(0x1f8)]],'thang':_0x51848f[_0x30cb79(0x207)],'nam':_0x51848f[_0x30cb79(0x27a)]})),_0x51848f[_0x467988[_0x30cb79(0x239)]]&&_0x51848f['t_tien_hoa_hong_kho']&&_0x60a6a7['push']({'user_hoa_hong':_0x51848f[_0x467988[_0x30cb79(0x239)]],'t_tien_hoa_hong':_0x51848f['t_tien_hoa_hong_kho'],'thang':_0x51848f['thang'],'nam':_0x51848f['nam']}),_0x51848f[_0x467988[_0x30cb79(0x1d5)]]&&_0x51848f[_0x467988[_0x30cb79(0x1e0)]]&&_0x60a6a7['push']({'user_hoa_hong':_0x51848f[_0x467988['ItTyH']],'t_tien_hoa_hong_gt':_0x51848f[_0x30cb79(0x25f)],'thang':_0x51848f[_0x30cb79(0x207)],'nam':_0x51848f['nam']}),_0x60a6a7;})[_0x2b1ac0(0x219)]((_0x2127cf,_0x559f48)=>_0x2127cf[_0x2b1ac0(0x1f5)](_0x559f48),[]);_0x543f6c=[..._0x543f6c];_0x417ea6['user_hoa_hong']&&(_0x543f6c=_0x543f6c[_0x2b1ac0(0x241)](_0x490cf6=>_0x490cf6['user_hoa_hong']==_0x417ea6[_0x2b1ac0(0x226)]));let _0x4900a2=[],_0x5e0d3e=_0x543f6c[_0x2b1ac0(0x20a)](_0x13d01b[_0x2b1ac0(0x1ca)]),_0x315346=_0x543f6c['csum'](_0x13d01b[_0x2b1ac0(0x24c)]);const _0x27044={'nam':_0x2b1ac0(0x1d4),'t_doanh_thu_thuan':_0x53bd48,'t_tien_hoa_hong':_0x5e0d3e,'t_tien_hoa_hong_gt':_0x315346,'t_cong':_0x13d01b['ApwWS'](_0x5e0d3e,_0x315346),'bold':!![]};_0x4900a2[_0x2b1ac0(0x272)](_0x27044),_0x357fb7(null,_0x4900a2);}});});});};
@@ -1,14 +1 @@
1
- const databanle=require("../../libs/databanle"),async=require("async"),moment=require("moment"),kpistatus=require("../../libs/kpistatus"),controller=require("../../controllers/controllerRPT"),_=require("lodash");
2
- module.exports=function($router$$){new controller($router$$,"tongquannvbh",async function($m_m$$,$callback$$){const $condition$$=$m_m$$.query;$condition$$.tu_ngay||($m_m$$=moment(),$condition$$.nam&&$m_m$$.set("year",Number($condition$$.nam)),$condition$$.thang?($m_m$$.set("month",Number($condition$$.thang)-1),$condition$$.tu_ngay=$m_m$$.startOf("month").toDate()):$condition$$.tu_ngay=$m_m$$.startOf("year").toDate());$condition$$.den_ngay||($m_m$$=moment(),$condition$$.nam&&$m_m$$.set("year",Number($condition$$.nam)),
3
- $condition$$.thang?($m_m$$.set("month",Number($condition$$.thang)-1),$condition$$.den_ngay=$m_m$$.endOf("month").toDate()):$condition$$.den_ngay=$m_m$$.endOf("year").toDate());const $query$$={id_app:$condition$$.id_app};$query$$.ngay_ct={$gte:$condition$$.tu_ngay,$lte:$condition$$.den_ngay};$condition$$.ma_dvcs&&($query$$.ma_dvcs=$condition$$.ma_dvcs);$condition$$.ma_kho&&($query$$.ma_kho=$condition$$.ma_kho);$condition$$.ma_ct&&($query$$.ma_ct=$condition$$.ma_ct);$condition$$.user_hoa_hong&&($query$$.$and||
4
- ($query$$.$and=[]),$query$$.$and.push({$or:[{user_nv:$condition$$.user_hoa_hong},{user_ctv:$condition$$.user_hoa_hong},{user_ctv2:$condition$$.user_hoa_hong},{user_kho:$condition$$.user_hoa_hong},{user_gt:$condition$$.user_hoa_hong},{user_ql:$condition$$.user_hoa_hong},{"details.user_nv":$condition$$.user_hoa_hong},{"details.user_ctv":$condition$$.user_hoa_hong},{"details.user_ctv2":$condition$$.user_hoa_hong},{"details.user_kho":$condition$$.user_hoa_hong},{"details.user_gt":$condition$$.user_hoa_hong},
5
- {"details.user_ql":$condition$$.user_hoa_hong}]}));$condition$$.ma_nv=$condition$$.ma_nv||$condition$$.user_hoa_hong;async.series({cty:$cb$$=>{databanle($query$$,function($error$$,$rs$$){$cb$$($error$$,$rs$$)})},kpi:$cb$$=>{let $_condition$$=_.cloneDeep($condition$$);$_condition$$.tu_thang=(new Date($_condition$$.tu_ngay)).getMonth()+1;$_condition$$.tu_nam=(new Date($_condition$$.tu_ngay)).getFullYear();$_condition$$.den_thang=(new Date($_condition$$.den_ngay)).getMonth()+1;$_condition$$.den_nam=
6
- (new Date($_condition$$.den_ngay)).getFullYear();if($_condition$$.tu_nam!=$_condition$$.den_nam)return $cb$$("\u0110i\u1ec1u ki\u1ec7n t\u1eeb ng\u00e0y-\u0111\u1ebfn ng\u00e0y kh\u00f4ng h\u1ee3p l\u1ec7");$_condition$$.nam=$_condition$$.den_nam;$_condition$$.ct_theo||($_condition$$.ct_theo="thang");kpistatus($_condition$$).then(async $data_rs$$=>{$data_rs$$=$data_rs$$.rows.filter($r$$=>$r$$.ma_nv);$data_rs$$.forEach($r$$=>{$r$$.t_tien_hoa_hong_kpi=$r$$.t_tien_hoa_hong||0});await $data_rs$$.asyncJoinModel2($_condition$$.id_app,
7
- "dmnv",{where:"ma_nv",fields:[{user_hoa_hong:"user"}]});$cb$$(null,$data_rs$$)}).catch($e$$=>{console.error($e$$);$cb$$($e$$)})}},($error$$,$rs$$)=>{if($error$$)return $callback$$($error$$);let $kpi$$=$rs$$.kpi;async.mapSeries($rs$$.cty,function($r$$,$callback$$){$r$$.t_tien_hang_ct=$r$$.details.csum("tien_hang_ct");$r$$.t_thue=$r$$.details.csum("tien_thue");$r$$.t_tien_ck=$r$$.details.csum("tien_ck");$r$$.t_tien_cp=$r$$.details.csum("tien_cp");$r$$.tien_ck_hd=$r$$.tien_ck_hd||0;$r$$.t_tien_hoa_hong=
8
- $r$$.details.csum("tien_hoa_hong");$r$$.t_tien_hoa_hong_gt=$r$$.details.csum("tien_hoa_hong_gt");$r$$.t_tien_hoa_hong_ctv=$r$$.details.csum("tien_hoa_hong_ctv");$r$$.t_tien_hoa_hong_ctv2=$r$$.details.csum("tien_hoa_hong_ctv2");$r$$.t_tien_hoa_hong_ql=$r$$.details.csum("tien_hoa_hong_ql");$r$$.t_tien_hoa_hong_kho=$r$$.details.csum("tien_hoa_hong_kho");$r$$.thang=(new Date($r$$.ngay_ct)).getMonth()+1;$r$$.nam=(new Date($r$$.ngay_ct)).getFullYear();$condition$$.chi_hien_chua_post_sokho?global.getModel("sokho").find({id_ct:$r$$._id}).lean().then($rs$$=>
9
- {$r$$.t_sl_xuat_kho=$rs$$.map($r$$=>$r$$.sl_xuat).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$callback$$(null,$r$$)}):$callback$$(null,$r$$)},function($error$$,$rs$$){if($error$$)return $callback$$($error$$);$condition$$.chi_hien_chua_post_sokho&&($rs$$=$rs$$.filter($r$$=>!$r$$.t_sl_xuat_kho));let $data_orgin$$=[...$rs$$],$t_doanh_thu_thuan$$=0;$rs$$.forEach($tl$$=>{$t_doanh_thu_thuan$$=$t_doanh_thu_thuan$$+($tl$$.t_tien_hang_ct||0)-($tl$$.t_tien_ck||0)+($tl$$.tien_phi_vc||0)-($tl$$.tien_freeship||0)-($tl$$.tien_ck_hd||
10
- 0)-($tl$$.tien_evoucher||0);$t_doanh_thu_thuan$$-=($tl$$.details_tl||[]).csum("tien_hang_ct")-($tl$$.details_tl||[]).csum("tien_ck");($tl$$.details_tl||[]).forEach($r$$=>{$r$$.t_tien_hoa_hong=0-$r$$.tien_hoa_hong;$r$$.t_tien_hoa_hong_ql=0-$r$$.tien_hoa_hong_ql;$r$$.t_tien_hoa_hong_ctv=0-$r$$.tien_hoa_hong_ctv;$r$$.t_tien_hoa_hong_ctv2=0-($r$$.tien_hoa_hong_ctv2||0);$r$$.t_tien_hoa_hong_gt=0-$r$$.tien_hoa_hong_gt;$r$$.t_tien_hoa_hong_kho=0-$r$$.tien_hoa_hong_kho;$r$$.thang=(new Date($tl$$.ngay_ct)).getMonth()+
11
- 1;$r$$.nam=(new Date($tl$$.ngay_ct)).getFullYear();$data_orgin$$.push($r$$)})});var $data$$=$data_orgin$$.map($r$$=>{let $_r$$=[];$r$$.user_nv&&$r$$.t_tien_hoa_hong&&$_r$$.push({user_hoa_hong:$r$$.user_nv,t_tien_hoa_hong:$r$$.t_tien_hoa_hong,thang:$r$$.thang,nam:$r$$.nam});$r$$.user_ql&&$r$$.t_tien_hoa_hong_ql&&$_r$$.push({user_hoa_hong:$r$$.user_ql,t_tien_hoa_hong:$r$$.t_tien_hoa_hong_ql,thang:$r$$.thang,nam:$r$$.nam});$r$$.user_ctv&&$r$$.t_tien_hoa_hong_ctv&&$_r$$.push({user_hoa_hong:$r$$.user_ctv,
12
- t_tien_hoa_hong:$r$$.t_tien_hoa_hong_ctv,thang:$r$$.thang,nam:$r$$.nam});$r$$.user_ctv2&&$r$$.t_tien_hoa_hong_ctv2&&$_r$$.push({user_hoa_hong:$r$$.user_ctv2,t_tien_hoa_hong:$r$$.t_tien_hoa_hong_ctv2,thang:$r$$.thang,nam:$r$$.nam});$r$$.user_kho&&$r$$.t_tien_hoa_hong_kho&&$_r$$.push({user_hoa_hong:$r$$.user_kho,t_tien_hoa_hong:$r$$.t_tien_hoa_hong_kho,thang:$r$$.thang,nam:$r$$.nam});$r$$.user_gt&&$r$$.t_tien_hoa_hong_gt&&$_r$$.push({user_hoa_hong:$r$$.user_gt,t_tien_hoa_hong_gt:$r$$.t_tien_hoa_hong_gt,
13
- thang:$r$$.thang,nam:$r$$.nam});return $_r$$}).reduce(($a$$,$b$$)=>$a$$.concat($b$$),[]);$data$$=[...$data$$,...$kpi$$];$condition$$.user_hoa_hong&&($data$$=$data$$.filter($r$$=>$r$$.user_hoa_hong==$condition$$.user_hoa_hong));$error$$=[];$rs$$=$data$$.csum("t_tien_hoa_hong");let $t_tien_hoa_hong_gt$$=$data$$.csum("t_tien_hoa_hong_gt");$data$$=$data$$.csum("t_tien_hoa_hong_kpi");$error$$.push({nam:"T\u1ed5ng c\u1ed9ng",t_doanh_thu_thuan:$t_doanh_thu_thuan$$,t_tien_hoa_hong:$rs$$,t_tien_hoa_hong_gt:$t_tien_hoa_hong_gt$$,
14
- t_tien_hoa_hong_kpi:$data$$,t_cong:$rs$$+$t_tien_hoa_hong_gt$$+$data$$,bold:!0});$callback$$(null,$error$$)})})})};
1
+ const _0x5ee7db=_0x59f0;function _0x59f0(_0x167a82,_0x2d3890){const _0x44e429=_0x44e4();return _0x59f0=function(_0x59f0cc,_0x5c0038){_0x59f0cc=_0x59f0cc-0x98;let _0x18847e=_0x44e429[_0x59f0cc];if(_0x59f0['UJDPMR']===undefined){var _0x3c10c6=function(_0x4a90db){const _0x405c14='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x35e85c='',_0xfcd318='';for(let _0x2b8326=0x0,_0x528d24,_0x1c1684,_0x4d529e=0x0;_0x1c1684=_0x4a90db['charAt'](_0x4d529e++);~_0x1c1684&&(_0x528d24=_0x2b8326%0x4?_0x528d24*0x40+_0x1c1684:_0x1c1684,_0x2b8326++%0x4)?_0x35e85c+=String['fromCharCode'](0xff&_0x528d24>>(-0x2*_0x2b8326&0x6)):0x0){_0x1c1684=_0x405c14['indexOf'](_0x1c1684);}for(let _0x51f1b7=0x0,_0xdcade6=_0x35e85c['length'];_0x51f1b7<_0xdcade6;_0x51f1b7++){_0xfcd318+='%'+('00'+_0x35e85c['charCodeAt'](_0x51f1b7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xfcd318);};_0x59f0['uaoTjP']=_0x3c10c6,_0x167a82=arguments,_0x59f0['UJDPMR']=!![];}const _0x7e8dbf=_0x44e429[0x0],_0x2b0a7d=_0x59f0cc+_0x7e8dbf,_0x421be8=_0x167a82[_0x2b0a7d];return!_0x421be8?(_0x18847e=_0x59f0['uaoTjP'](_0x18847e),_0x167a82[_0x2b0a7d]=_0x18847e):_0x18847e=_0x421be8,_0x18847e;},_0x59f0(_0x167a82,_0x2d3890);}function _0x44e4(){const _0x492609=['uM1vzwK','ww9ezNe','yNvxAeS','DeH6sMq','Ee56vhq','ntiZntrYtff1BhG','zgz5uK8','Bu90Ag0','se1szMS','C29RAg8','y29Uy2f0','AvfKtgK','mJq0otHqtxL2u1q','q1nJEMi','svfqv24','De9bBLC','r1PvBgC','qwL4wKu','BMfT','DgLLBL9LDM91y2HLCG','ELPSEeC','zMLUza','zM9YrwfJAa','zgvUx25NyxK','rvboDvq','DvLUvgq','uK1KCNa','DxnLCL9UDG','Defyseu','yMf0EMm','zgvUx3rOyw5N','CNPKDuC','oduXmtmXnNziyvPvAG','BwfWtgLTAxq','vog7Lw5NigpHU5LUzW','yxn5BMm','t2Tgzxa','Df90AwvUx2HVyv9OB25Nx2n0DG','C2v0','ndHmDhvMyKC','EwvHCG','qwv4Bxi','BLvmy08','ENfSBNe','AK1fDMG','z2nyrwG','ChHAy1O','rNLxs3C','mJL3r2fvwgq','sMv0uKW','nJuZndvAAhDKDfG','Bw9Tzw50','AM9PD2C','zgv0ywLSC190Ba','sLDbrxK','zeD3uxm','jgfUza','y3rFDgHLBW','D0vfqNK','t0v2Cxm','zgvUx25HBq','Dg9Uz3f1yw5UDMjO','AMzWzNq','shjtCxy','De5Zzhq','Bw9UDgG','ELzlsLm','vfDcsNu','y2HPx2HPzw5Fy2H1yv9WB3n0x3nVA2HV','yxDYueS','BMDHEv9JDa','zeXcwfK','t1n5sM8','AvPhDeK','zg1UDG','Df90AwvUx2HVyv9OB25Nx2D0','EMHkBLi','Avvuvue','DhvFBMDHEq','Df90AwvUx2HVyv9OB25Nx2TWAq','z2v0tw9KzwW','AhLTC20','rM9RuuK','DgLLBL9JCa','z013vM4','vhnlswK','AffvEuC','CM93CW','wM1pEvu','sfDRuMi','vMzAte0','BwfFBNy','CxvLCNK','CxzICK0','DhvFBMfT','y2XVBMvezwvW','zgv0ywLSCW','re1jwvi','EhbdA1a','Df90AwvUx2HVyv9OB25Nx2TOBW','zxjYB3i','y25Au2G','DgHLBG','DgLLBL9OB2fFAg9Uz19JDhyY','BMnTAfO','Bg9KyxnO','tu54B3i','qxbKAu8','C2rmzK8','yvjAuMe','s2jHtfq','zMLSDgvY','r1Pirgq','y1zPu3K','t3v5wvi','DhvFDgHHBMC','we9ZyKm','DgLLBL9Oyw5Nx2n0','BwfFy3q','mZq4qwfzAe1n','reXcvKS','q0fWDNy','C2vYAwvZ','DgLLBL9JAW','yxn5BMnkB2LUtw9KzwWY','C2XFEhvHDa','ndi4meDWEw1qsW','zw5Kt2y','BhHSq2O','DxnLCL9NDa','DgHHBMC','rvrxDha','z2v0tw9UDgG','C3bSAxq','z2v2weW','v2rWBM4','EKzrt2O','BgvHBG','q0fJBfe','Df90AwvUx2HHBMDFy3q','y2f0y2G','z09ltMe','CgrXzfK','B2PtALq','DxnLCL9JDhy','DgLLBL90AhvL','nhW4Fdn8mNW1Fdb8n3W2Fde','Egflr0O','DgLLBL9OB2fFAg9UzW','sNDuCuq','zg9kyxG','Awf2Awq','DgLLBL9OB2fFAg9Uz19JDhy','rKjmueW','CMvKDwnL','AgP2y3i','BeL5uMq','wKPjEKm','uxnAz1i','vKXXBLC','uxntvu8','wwXhz0e','BwfFA2HV','y3n1Bq','Du5Uzwy','DxnLCL9OB2fFAg9UzW','veXpAgO','Evv4Cw8','BwfW','z09TCui','qKnjvLe','wev5rge','Df9ZBf94Dwf0x2TOBW','B051rNe','Df90AwvUx2HVyv9OB25N','sfbJueC','rwPhD3a','s3jev2i','tw5Aufu','mtaXmZG4meP6zeLpwG','zfvRC2m','vMzYD2C','tvnmtwS','DgLLBL9MCMvLC2HPCa','mZeYywXrze93','C3rHCNrpzG','C0vuAhu','BefkAgO','ChvZAa','CvLXte4','rvPkC0K','Df90AwvUx2HVyv9OB25Nx2n0DJi','BwfFzhzJCW','Dg9eyxrL','vgvWCxO','BKPWCvi','r3vwv3q','DgLLBL9OB2fFAg9Uz19RAg8','lI4VlI4VBgLICY9RCgLZDgf0Dxm','A1z2zgu','vg1Wq2q','rfDov00','zLLKzgi','BwXpEvK','C3bKCgm','DxnLCL9XBa','Df90AwvUx2nW','wMT0Aeq','BNnVtwi','ndaYotGZnfbKuNDPrG','y2H4Dgu','DgLLBL9OB2fFAg9Uz19NDa','odi4ntjbq2Dls0q','DxnLCL9RAg8','A3bP','B0XVC1u','z2v0rNvSBfLLyxi','DxvlBhG','Df90AwvUx2HVyv9OB25Nx3fS','tu9Nq0G','DxnLCG','DgLLBL9OB2fFAg9Uz19XBa','DgLLBL9JA19Oza','ruHWr00','B3LlvvC','DfLYs2C','teL5Avq','r0netgq','rxfZvfO'];_0x44e4=function(){return _0x492609;};return _0x44e4();}(function(_0x57fa33,_0x4ddc21){const _0xc10f90=_0x59f0,_0x194b1c=_0x57fa33();while(!![]){try{const _0x147c87=parseInt(_0xc10f90(0xce))/0x1*(parseInt(_0xc10f90(0xa3))/0x2)+-parseInt(_0xc10f90(0x16f))/0x3+-parseInt(_0xc10f90(0x151))/0x4+parseInt(_0xc10f90(0xd0))/0x5*(-parseInt(_0xc10f90(0x115))/0x6)+parseInt(_0xc10f90(0x172))/0x7*(parseInt(_0xc10f90(0x156))/0x8)+-parseInt(_0xc10f90(0xaa))/0x9*(parseInt(_0xc10f90(0x11c))/0xa)+-parseInt(_0xc10f90(0xbe))/0xb*(-parseInt(_0xc10f90(0xc5))/0xc);if(_0x147c87===_0x4ddc21)break;else _0x194b1c['push'](_0x194b1c['shift']());}catch(_0x299cc4){_0x194b1c['push'](_0x194b1c['shift']());}}}(_0x44e4,0xc255b));const databanle=require('../../libs/databanle'),async=require(_0x5ee7db(0xc1)),moment=require(_0x5ee7db(0xd1)),kpistatus=require(_0x5ee7db(0x164)),controller=require('../../controllers/controllerRPT'),_=require(_0x5ee7db(0x107));module['exports']=function(_0x40245d){const _0x1e69d1=_0x5ee7db,_0x2550bf={'VLqnW':function(_0x4519bb){return _0x4519bb();},'CAclQ':_0x1e69d1(0xc6),'iZGtI':function(_0x43a52f,_0x9fa475){return _0x43a52f(_0x9fa475);},'tYrKg':_0x1e69d1(0xdf),'EjGwp':function(_0x3a84a9,_0x45cda7){return _0x3a84a9-_0x45cda7;},'gevXL':function(_0x127004,_0x4e719e){return _0x127004===_0x4e719e;},'DMIYR':_0x1e69d1(0x9c),'EZJsI':function(_0x2bc0b6,_0x5ba592){return _0x2bc0b6!=_0x5ba592;},'lIyRd':'Điều\x20kiện\x20từ\x20ngày-đến\x20ngày\x20không\x20hợp\x20lệ','TucUo':_0x1e69d1(0x120),'KrDWb':function(_0x2d8bb7,_0x5416df){return _0x2d8bb7-_0x5416df;},'buWhK':function(_0x2feec2,_0x2ef9b6){return _0x2feec2-_0x2ef9b6;},'DLBVK':function(_0x2e10ac,_0x3c2df5){return _0x2e10ac-_0x3c2df5;},'lxlCj':function(_0x49a993,_0x5c57eb){return _0x49a993-_0x5c57eb;},'UIXkZ':function(_0x5572fc,_0x4c46ee){return _0x5572fc+_0x4c46ee;},'EqsTZ':_0x1e69d1(0x113),'HMRfk':_0x1e69d1(0x119),'IZThr':_0x1e69d1(0xb9),'dfyRO':function(_0x22f59e,_0x1a5866){return _0x22f59e!==_0x1a5866;},'MOgCH':_0x1e69d1(0x169),'LIyiT':_0x1e69d1(0x13c),'DWNWM':_0x1e69d1(0x178),'gOmqB':_0x1e69d1(0x16b),'Tepqz':_0x1e69d1(0xc3),'tOAnW':function(_0x57cb05,_0x4dd1e2){return _0x57cb05!==_0x4dd1e2;},'LnJhA':_0x1e69d1(0x159),'dGwQs':'t_tien_hoa_hong_ctv2','jfpft':_0x1e69d1(0x173),'GuVWt':_0x1e69d1(0x101),'ncmhZ':_0x1e69d1(0x11f),'HPcPG':_0x1e69d1(0xe9),'iUTUA':_0x1e69d1(0xc2),'IQPWn':function(_0x312bca,_0x280fed){return _0x312bca-_0x280fed;},'wEEBy':function(_0x38bac8,_0x405993,_0xe05c61){return _0x38bac8(_0x405993,_0xe05c61);},'zqlnq':function(_0x8c4195,_0x17b3c8){return _0x8c4195!==_0x17b3c8;},'UUKaX':_0x1e69d1(0xf9),'UxSAd':_0x1e69d1(0x17a),'tbKCl':_0x1e69d1(0x9f),'cnZSh':function(_0x101c65,_0xf6cd9b){return _0x101c65(_0xf6cd9b);},'sEThu':_0x1e69d1(0x10e),'JwTqD':_0x1e69d1(0x132),'AixZE':'tien_hoa_hong_ctv2','qvbrM':_0x1e69d1(0x17b),'KbaLT':_0x1e69d1(0x163),'JWAEy':function(_0xe7d9db,_0x5cd727){return _0xe7d9db+_0x5cd727;},'zFQOj':_0x1e69d1(0xa7),'dLBXY':function(_0x2de2c3,_0x258f8c){return _0x2de2c3(_0x258f8c);},'gOKNa':_0x1e69d1(0xed),'wdArb':_0x1e69d1(0xc0),'yUxqo':function(_0x489b09){return _0x489b09();},'HrSqv':_0x1e69d1(0x99),'OuyYR':'zVYhO','ZptsI':function(_0x1279de,_0x10bbd0){return _0x1279de===_0x10bbd0;},'qYqLN':'pDCfS','IPIfj':function(_0x3733c9,_0x24daa1){return _0x3733c9(_0x24daa1);}};new controller(_0x40245d,_0x1e69d1(0xdb),async function(_0x762590,_0x3201b0){const _0x124905=_0x1e69d1,_0x19233c={'OEvqs':_0x124905(0x130),'ApdiO':function(_0x59e7fd,_0x16b6a0){const _0x2ebc74=_0x124905;return _0x2550bf[_0x2ebc74(0xac)](_0x59e7fd,_0x16b6a0);},'kVvde':function(_0x546d06,_0x4aba7a){const _0x4d5e9a=_0x124905;return _0x2550bf[_0x4d5e9a(0xa0)](_0x546d06,_0x4aba7a);},'OSyJo':function(_0x484694,_0xacd075,_0xcbd412){return _0x2550bf['wEEBy'](_0x484694,_0xacd075,_0xcbd412);},'FBLPL':function(_0x4f8b3c,_0x3d24d3,_0x5cf8b6){const _0x17547b=_0x124905;return _0x2550bf[_0x17547b(0xd8)](_0x4f8b3c,_0x3d24d3,_0x5cf8b6);},'rzduG':function(_0x30c40c,_0x1bd8d9){const _0x48833e=_0x124905;return _0x2550bf[_0x48833e(0xc9)](_0x30c40c,_0x1bd8d9);},'sdLfO':_0x124905(0xa5),'jrSvt':_0x124905(0xf6),'JetRL':_0x124905(0xe8),'ZjWIs':_0x2550bf['UUKaX'],'WJroS':_0x2550bf['UxSAd'],'GZUlg':function(_0x1d1763,_0x345a28){const _0x24a5d4=_0x124905;return _0x2550bf[_0x24a5d4(0x124)](_0x1d1763,_0x345a28);},'awrPK':_0x124905(0xf0),'Aexmr':_0x2550bf['tbKCl'],'iavid':function(_0x243c14,_0x31d761){const _0x7a41f2=_0x124905;return _0x2550bf[_0x7a41f2(0x103)](_0x243c14,_0x31d761);},'tHzJd':_0x124905(0x16b),'hjvcr':_0x2550bf[_0x124905(0x167)],'RMdrp':'user_kho','chxte':_0x2550bf[_0x124905(0x158)],'mbtRL':_0x2550bf['EqsTZ'],'hymsm':_0x124905(0x12f),'hQUyG':_0x2550bf[_0x124905(0xa6)],'VfZLM':_0x124905(0xf1),'TsKIi':_0x2550bf[_0x124905(0x133)],'TWBJu':_0x2550bf[_0x124905(0xaf)],'ojSjT':_0x2550bf[_0x124905(0xfb)],'XOsbC':_0x2550bf[_0x124905(0x10c)],'xaKGJ':function(_0x1f5c4b,_0x136935){const _0x68ca9a=_0x124905;return _0x2550bf[_0x68ca9a(0xd4)](_0x1f5c4b,_0x136935);},'doJax':_0x124905(0x144),'mldQz':_0x2550bf[_0x124905(0x126)],'oLosU':'YyyES','bYTEI':function(_0x429020,_0x3bf38c,_0x43d0eb){return _0x2550bf['wEEBy'](_0x429020,_0x3bf38c,_0x43d0eb);},'YlGgA':function(_0x296abe,_0xf68fd9){const _0x3e3629=_0x124905;return _0x2550bf[_0x3e3629(0xe5)](_0x296abe,_0xf68fd9);},'ZJIzC':_0x124905(0x14c),'UbkCU':_0x124905(0xe9),'aRZRa':_0x2550bf[_0x124905(0x12b)],'yqbrp':_0x2550bf['wdArb'],'tNsdt':function(_0x105876,_0x45b0dd){const _0x5ac1af=_0x124905;return _0x2550bf[_0x5ac1af(0xd4)](_0x105876,_0x45b0dd);}},_0x566551=_0x762590[_0x124905(0xfa)];if(!_0x566551[_0x124905(0xec)]){let _0xa56bf7=_0x2550bf[_0x124905(0x145)](moment);if(_0x566551[_0x124905(0xb0)]){if(_0x2550bf[_0x124905(0xdd)]!==_0x2550bf[_0x124905(0x110)])_0xa56bf7[_0x124905(0xc4)](_0x2550bf[_0x124905(0x128)],_0x2550bf[_0x124905(0xe5)](Number,_0x566551[_0x124905(0xb0)]));else{let _0x49c576=_0x2550bf[_0x124905(0x13d)](_0x5b6ca9);_0x12902e[_0x124905(0xb0)]&&_0x49c576[_0x124905(0xc4)](_0x2550bf[_0x124905(0x128)],_0x2550bf[_0x124905(0xe7)](_0x4297cd,_0x1f71ce[_0x124905(0xb0)])),_0x55aa60[_0x124905(0x120)]?(_0x49c576[_0x124905(0xc4)](_0x2550bf[_0x124905(0x9a)],_0x2550bf[_0x124905(0x14e)](_0x2550bf['iZGtI'](_0x38ebea,_0xfc7cc5[_0x124905(0x120)]),0x1)),_0x275680[_0x124905(0xb5)]=_0x49c576[_0x124905(0x11d)](_0x2550bf['tYrKg'])[_0x124905(0x15f)]()):_0x2898a0[_0x124905(0xb5)]=_0x49c576['endOf'](_0x124905(0xc6))[_0x124905(0x15f)]();}}if(_0x566551[_0x124905(0x120)]){if(_0x2550bf['ZptsI'](_0x2550bf['qYqLN'],_0x2550bf[_0x124905(0x15b)]))_0xa56bf7[_0x124905(0xc4)](_0x124905(0xdf),_0x2550bf[_0x124905(0x116)](_0x2550bf['IPIfj'](Number,_0x566551[_0x124905(0x120)]),0x1)),_0x566551[_0x124905(0xec)]=_0xa56bf7[_0x124905(0x157)]('month')[_0x124905(0x15f)]();else{const _0x1b21e4=_0x19233c[_0x124905(0xd9)]['split']('|');let _0x118255=0x0;while(!![]){switch(_0x1b21e4[_0x118255++]){case'0':_0x34e669['t_tien_hoa_hong_kho']=_0x19233c[_0x124905(0x109)](0x0,_0x3b0a27[_0x124905(0x163)]);continue;case'1':_0x3fb8a8['push'](_0x48bd5e);continue;case'2':_0xa91ba6[_0x124905(0x15d)]=_0x19233c[_0x124905(0x109)](0x0,_0x2a5e79[_0x124905(0x105)]||0x0);continue;case'3':_0x2a01c7[_0x124905(0xc3)]=_0x19233c['ApdiO'](0x0,_0x2c4601[_0x124905(0x136)]);continue;case'4':_0x2195b8[_0x124905(0x14c)]=0x0-_0x3382ac[_0x124905(0x132)];continue;case'5':_0x8a9e18[_0x124905(0xe9)]=_0x19233c[_0x124905(0x165)](0x0,_0x4baee5['tien_hoa_hong_gt']);continue;case'6':_0x5671e5['nam']=new _0x217bc6(_0xd2dbd[_0x124905(0xe4)])[_0x124905(0x176)]();continue;case'7':_0x44a149[_0x124905(0x120)]=new _0x176626(_0x584a5d[_0x124905(0xe4)])[_0x124905(0x122)]()+0x1;continue;case'8':_0x541e1a['t_tien_hoa_hong_ql']=0x0-_0x5d7ccb[_0x124905(0x17b)];continue;}break;}}}else _0x566551['tu_ngay']=_0xa56bf7['startOf'](_0x124905(0xc6))['toDate']();}if(!_0x566551[_0x124905(0xb5)]){let _0x4a7e0c=_0x2550bf[_0x124905(0x13d)](moment);_0x566551[_0x124905(0xb0)]&&_0x4a7e0c[_0x124905(0xc4)](_0x2550bf[_0x124905(0x128)],_0x2550bf[_0x124905(0x103)](Number,_0x566551[_0x124905(0xb0)])),_0x566551['thang']?(_0x4a7e0c[_0x124905(0xc4)](_0x2550bf[_0x124905(0x9a)],_0x2550bf[_0x124905(0x11e)](_0x2550bf[_0x124905(0x103)](Number,_0x566551[_0x124905(0x120)]),0x1)),_0x566551[_0x124905(0xb5)]=_0x4a7e0c[_0x124905(0x11d)](_0x2550bf[_0x124905(0x9a)])[_0x124905(0x15f)]()):_0x566551['den_ngay']=_0x4a7e0c[_0x124905(0x11d)](_0x124905(0xc6))[_0x124905(0x15f)]();}const _0x55e5f9={'id_app':_0x566551['id_app']};_0x55e5f9[_0x124905(0xe4)]={'$gte':_0x566551[_0x124905(0xec)],'$lte':_0x566551['den_ngay']};_0x566551[_0x124905(0x15e)]&&(_0x55e5f9[_0x124905(0x15e)]=_0x566551['ma_dvcs']);_0x566551[_0x124905(0x140)]&&(_0x55e5f9[_0x124905(0x140)]=_0x566551[_0x124905(0x140)]);_0x566551[_0x124905(0x114)]&&(_0x55e5f9['ma_ct']=_0x566551[_0x124905(0x114)]);if(_0x566551['user_hoa_hong']){if(!_0x55e5f9[_0x124905(0xd6)])_0x55e5f9['$and']=[];_0x55e5f9[_0x124905(0xd6)][_0x124905(0x15a)]({'$or':[{'user_nv':_0x566551[_0x124905(0x143)]},{'user_ctv':_0x566551['user_hoa_hong']},{'user_ctv2':_0x566551['user_hoa_hong']},{'user_kho':_0x566551['user_hoa_hong']},{'user_gt':_0x566551[_0x124905(0x143)]},{'user_ql':_0x566551[_0x124905(0x143)]},{'details.user_nv':_0x566551[_0x124905(0x143)]},{'details.user_ctv':_0x566551['user_hoa_hong']},{'details.user_ctv2':_0x566551['user_hoa_hong']},{'details.user_kho':_0x566551['user_hoa_hong']},{'details.user_gt':_0x566551[_0x124905(0x143)]},{'details.user_ql':_0x566551[_0x124905(0x143)]}]});}_0x566551[_0x124905(0xf9)]=_0x566551[_0x124905(0xf9)]||_0x566551[_0x124905(0x143)],async[_0x124905(0x118)]({'cty':_0x3de34b=>{const _0x2fa4b5=_0x124905,_0x1f486f={'EPNuT':function(_0x4d707b,_0x310cee,_0xdbd21){const _0x57b484=_0x59f0;return _0x19233c[_0x57b484(0xe6)](_0x4d707b,_0x310cee,_0xdbd21);}};_0x19233c[_0x2fa4b5(0x137)](databanle,_0x55e5f9,function(_0x2b6477,_0x3a3084){const _0x366b28=_0x2fa4b5;_0x1f486f[_0x366b28(0xb6)](_0x3de34b,_0x2b6477,_0x3a3084);});},'kpi':_0x4eaf0d=>{const _0x4ae714=_0x124905,_0x45294e={'cINeE':function(_0x1f9a30,_0x3dc1b5){return _0x1f9a30(_0x3dc1b5);},'FyWKw':_0x2550bf[_0x4ae714(0x9a)],'batzc':function(_0x5c4478,_0x5099e3){return _0x2550bf['EjGwp'](_0x5c4478,_0x5099e3);},'Wdpnn':_0x2550bf[_0x4ae714(0x128)]};if(_0x2550bf[_0x4ae714(0x124)](_0x2550bf[_0x4ae714(0xff)],_0x2550bf[_0x4ae714(0xff)])){let _0x274161=_[_0x4ae714(0xfd)](_0x566551);_0x274161[_0x4ae714(0x111)]=new Date(_0x274161[_0x4ae714(0xec)])['getMonth']()+0x1,_0x274161['tu_nam']=new Date(_0x274161[_0x4ae714(0xec)])[_0x4ae714(0x176)](),_0x274161[_0x4ae714(0xbc)]=new Date(_0x274161[_0x4ae714(0xb5)])[_0x4ae714(0x122)]()+0x1,_0x274161['den_nam']=new Date(_0x274161[_0x4ae714(0xb5)])[_0x4ae714(0x176)]();if(_0x2550bf[_0x4ae714(0x15c)](_0x274161[_0x4ae714(0xfc)],_0x274161[_0x4ae714(0xda)]))return _0x2550bf[_0x4ae714(0xe7)](_0x4eaf0d,_0x2550bf[_0x4ae714(0x13a)]);_0x274161['nam']=_0x274161['den_nam'];if(!_0x274161[_0x4ae714(0xd7)])_0x274161[_0x4ae714(0xd7)]=_0x2550bf['TucUo'];kpistatus(_0x274161)[_0x4ae714(0x104)](async _0x7a6880=>{const _0xa953e0=_0x4ae714;if(_0x19233c[_0xa953e0(0xbd)](_0x19233c[_0xa953e0(0x10a)],_0x19233c['jrSvt'])){let _0x301315=_0x7a6880[_0xa953e0(0xf5)][_0xa953e0(0x10d)](_0xf8999a=>_0xf8999a[_0xa953e0(0xf9)]);_0x301315['forEach'](_0x3a01b2=>{const _0x1a6a58=_0xa953e0;_0x3a01b2['t_tien_hoa_hong_kpi']=_0x3a01b2[_0x1a6a58(0x14c)]||0x0;}),await _0x301315[_0xa953e0(0x11a)](_0x274161['id_app'],_0x19233c[_0xa953e0(0xcf)],{'where':_0x19233c['ZjWIs'],'fields':[{'user_hoa_hong':_0x19233c['WJroS']}]}),_0x19233c[_0xa953e0(0xe6)](_0x4eaf0d,null,_0x301315);}else _0x367956(_0x4dce16,_0x446aa7);})[_0x4ae714(0x12a)](_0xa71772=>{const _0x2e13a6=_0x4ae714;_0x19233c[_0x2e13a6(0xae)](_0x19233c[_0x2e13a6(0xe3)],_0x19233c[_0x2e13a6(0xc7)])?_0x4e50a5[_0x2e13a6(0x114)]=_0x529f7b[_0x2e13a6(0x114)]:(console[_0x2e13a6(0x102)](_0xa71772),_0x19233c[_0x2e13a6(0x135)](_0x4eaf0d,_0xa71772));});}else{let _0x498adf=_0xdcade6();_0x427a45[_0x4ae714(0xb0)]&&_0x498adf['set'](_0x4ae714(0xc6),_0x45294e['cINeE'](_0x469c72,_0x38b54a[_0x4ae714(0xb0)])),_0x1c6a87[_0x4ae714(0x120)]?(_0x498adf['set'](_0x45294e['FyWKw'],_0x45294e[_0x4ae714(0xbb)](_0x27935f(_0x59d561[_0x4ae714(0x120)]),0x1)),_0x5c20e6[_0x4ae714(0xec)]=_0x498adf[_0x4ae714(0x157)](_0x45294e[_0x4ae714(0xcd)])[_0x4ae714(0x15f)]()):_0x2371ed['tu_ngay']=_0x498adf['startOf'](_0x45294e[_0x4ae714(0x125)])[_0x4ae714(0x15f)]();}}},(_0x4a3f26,_0x190a5c)=>{const _0xffe1d0=_0x124905,_0x1a9d50={'pxZcZ':function(_0x401ca4,_0x3d4fcb){const _0x3e2f49=_0x59f0;return _0x2550bf[_0x3e2f49(0xe7)](_0x401ca4,_0x3d4fcb);},'xpCkP':function(_0x1405f2,_0x21f6a0,_0x20775d){return _0x1405f2(_0x21f6a0,_0x20775d);},'nULcO':function(_0x5ae5ce,_0x292ec7){const _0x5f40ad=_0x59f0;return _0x2550bf[_0x5f40ad(0x14f)](_0x5ae5ce,_0x292ec7);},'gMwVn':function(_0x1856b0,_0xf40517){const _0x446862=_0x59f0;return _0x2550bf[_0x446862(0xa0)](_0x1856b0,_0xf40517);},'RmUei':function(_0x271523,_0x17bfaa){const _0x401c51=_0x59f0;return _0x2550bf[_0x401c51(0x116)](_0x271523,_0x17bfaa);},'iQdLi':function(_0x5a1a23,_0x186386){const _0x3a697a=_0x59f0;return _0x2550bf[_0x3a697a(0x11e)](_0x5a1a23,_0x186386);},'PUxZk':function(_0x3cc32f,_0x5ee427){return _0x2550bf['UIXkZ'](_0x3cc32f,_0x5ee427);},'QsSUO':function(_0x2fa94d,_0x3fc181){const _0xf25e4a=_0x59f0;return _0x2550bf[_0xf25e4a(0x14e)](_0x2fa94d,_0x3fc181);},'Vfrwg':_0x2550bf[_0xffe1d0(0x9d)],'joiwg':_0x2550bf[_0xffe1d0(0xa6)],'zhJnR':_0x2550bf['IZThr'],'uuKlx':function(_0x48644c,_0x45a1f0){const _0x11efe0=_0xffe1d0;return _0x2550bf[_0x11efe0(0xa4)](_0x48644c,_0x45a1f0);},'TmpCd':_0x2550bf[_0xffe1d0(0x179)],'zVKJS':_0x2550bf[_0xffe1d0(0x9b)],'gcXEh':_0xffe1d0(0x14c),'EHpGM':_0x2550bf[_0xffe1d0(0x167)],'zZlxG':_0x2550bf[_0xffe1d0(0x147)],'spdpc':_0xffe1d0(0x12e),'oNuFq':_0x2550bf[_0xffe1d0(0x160)],'ZkthD':function(_0x270fba,_0xcf87c5){const _0x5891c1=_0xffe1d0;return _0x2550bf[_0x5891c1(0xad)](_0x270fba,_0xcf87c5);},'CApvv':_0x2550bf['LnJhA'],'MNxor':_0xffe1d0(0xab),'ETWtp':'user_ctv2','fZUFC':_0x2550bf[_0xffe1d0(0xd5)],'nsoMb':_0x2550bf[_0xffe1d0(0xdc)],'cViSy':_0x2550bf[_0xffe1d0(0x162)],'tAXHE':_0x2550bf[_0xffe1d0(0x106)],'xNzTt':_0xffe1d0(0x142),'fYddb':_0x2550bf[_0xffe1d0(0x14d)],'jMEvh':_0x2550bf[_0xffe1d0(0x9a)]};if(_0x2550bf[_0xffe1d0(0xeb)]!=='OkFep')_0x4d8b25=_0x498c9b['filter'](_0x17ed2d=>_0x17ed2d[_0xffe1d0(0x143)]==_0x1bd2ca[_0xffe1d0(0x143)]);else{if(_0x4a3f26)return _0x2550bf[_0xffe1d0(0xe7)](_0x3201b0,_0x4a3f26);let _0x2ad59f=_0x190a5c['cty'],_0x1f22d7=_0x190a5c[_0xffe1d0(0x174)];async[_0xffe1d0(0xbf)](_0x2ad59f,0x14,function(_0x52ca77,_0x17e6c2){const _0x817b1e=_0xffe1d0,_0x3d9880={'dUksc':_0x19233c[_0x817b1e(0xa1)],'mJxtE':_0x19233c[_0x817b1e(0x139)],'nJpqR':_0x19233c[_0x817b1e(0xb8)]};_0x19233c[_0x817b1e(0xbd)](_0x19233c[_0x817b1e(0x170)],_0x19233c['chxte'])?(_0x15ae5c[_0x817b1e(0x102)](_0x39eac7),_0x1a9d50[_0x817b1e(0xcc)](_0x36b883,_0x32463a)):(_0x52ca77[_0x817b1e(0x129)]=_0x52ca77[_0x817b1e(0xfe)][_0x817b1e(0x141)](_0x19233c['mbtRL']),_0x52ca77['t_thue']=_0x52ca77[_0x817b1e(0xfe)][_0x817b1e(0x141)](_0x19233c[_0x817b1e(0xef)]),_0x52ca77['t_tien_ck']=_0x52ca77[_0x817b1e(0xfe)][_0x817b1e(0x141)](_0x19233c[_0x817b1e(0xf4)]),_0x52ca77[_0x817b1e(0x16c)]=_0x52ca77[_0x817b1e(0xfe)]['csum'](_0x19233c[_0x817b1e(0xf8)]),_0x52ca77[_0x817b1e(0x17c)]=_0x52ca77[_0x817b1e(0x17c)]||0x0,_0x52ca77['t_tien_hoa_hong']=_0x52ca77[_0x817b1e(0xfe)]['csum'](_0x19233c[_0x817b1e(0xf3)]),_0x52ca77[_0x817b1e(0xe9)]=_0x52ca77[_0x817b1e(0xfe)][_0x817b1e(0x141)](_0x817b1e(0x171)),_0x52ca77[_0x817b1e(0xc3)]=_0x52ca77['details'][_0x817b1e(0x141)]('tien_hoa_hong_ctv'),_0x52ca77[_0x817b1e(0x15d)]=_0x52ca77[_0x817b1e(0xfe)]['csum'](_0x19233c[_0x817b1e(0xe1)]),_0x52ca77[_0x817b1e(0x178)]=_0x52ca77[_0x817b1e(0xfe)][_0x817b1e(0x141)](_0x19233c[_0x817b1e(0x12d)]),_0x52ca77[_0x817b1e(0x101)]=_0x52ca77['details'][_0x817b1e(0x141)](_0x19233c[_0x817b1e(0x112)]),_0x52ca77[_0x817b1e(0x120)]=_0x19233c['xaKGJ'](new Date(_0x52ca77['ngay_ct'])['getMonth'](),0x1),_0x52ca77[_0x817b1e(0xb0)]=new Date(_0x52ca77['ngay_ct'])[_0x817b1e(0x176)](),_0x566551[_0x817b1e(0xe2)]?_0x817b1e(0x12c)===_0x19233c[_0x817b1e(0x134)]?_0x45017c['push']({'user_hoa_hong':_0x39a378[_0x3d9880[_0x817b1e(0x152)]],'t_tien_hoa_hong':_0x373403[_0x3d9880['mJxtE']],'thang':_0x11d233[_0x817b1e(0x120)],'nam':_0x47c9c5[_0x817b1e(0xb0)]}):global[_0x817b1e(0xee)](_0x19233c['mldQz'])[_0x817b1e(0xb3)]({'id_ct':_0x52ca77['_id']})[_0x817b1e(0x127)]()[_0x817b1e(0x104)](_0x3538c0=>{const _0x35b63f=_0x817b1e;_0x52ca77[_0x35b63f(0x14a)]=_0x3538c0['map'](_0x57b25e=>_0x57b25e[_0x35b63f(0x11b)])[_0x35b63f(0x138)]((_0x1ff6fc,_0x170a4f)=>_0x1ff6fc+_0x170a4f,0x0),_0x1a9d50[_0x35b63f(0x100)](_0x17e6c2,null,_0x52ca77);}):_0x19233c[_0x817b1e(0xbd)]('YyyES',_0x19233c[_0x817b1e(0x175)])?_0x5584cb[_0x817b1e(0x15a)]({'user_hoa_hong':_0x2a0497[_0x3d9880[_0x817b1e(0x161)]],'t_tien_hoa_hong':_0x517850[_0x817b1e(0x101)],'thang':_0x2c2bca['thang'],'nam':_0x43abbc['nam']}):_0x19233c['bYTEI'](_0x17e6c2,null,_0x52ca77));},function(_0x180dd3,_0x10413b){const _0x5787b0=_0xffe1d0;if(_0x180dd3)return _0x19233c[_0x5787b0(0x13f)](_0x3201b0,_0x180dd3);_0x566551[_0x5787b0(0xe2)]&&(_0x10413b=_0x10413b[_0x5787b0(0x10d)](_0x42ac74=>!_0x42ac74['t_sl_xuat_kho']));let _0x315aaf=[..._0x10413b],_0x328ea5=0x0;_0x10413b['forEach'](_0x31b2e8=>{const _0x19b5ce=_0x5787b0,_0x390c21={'MSLMk':function(_0x561e67,_0x1c693a){const _0x28e9e0=_0x59f0;return _0x1a9d50[_0x28e9e0(0xc8)](_0x561e67,_0x1c693a);},'BCIVQ':function(_0x1953d3,_0x1a6cc2){const _0x1acc58=_0x59f0;return _0x1a9d50[_0x1acc58(0xf2)](_0x1953d3,_0x1a6cc2);},'uYnTd':function(_0x28f7f0,_0x3fa22d){return _0x28f7f0+_0x3fa22d;},'MnZPU':function(_0x3f91f3,_0x2e8121){return _0x1a9d50['RmUei'](_0x3f91f3,_0x2e8121);}};_0x328ea5=_0x1a9d50[_0x19b5ce(0xf2)](_0x1a9d50[_0x19b5ce(0xa9)](_0x1a9d50[_0x19b5ce(0xa9)](_0x1a9d50['PUxZk'](_0x1a9d50[_0x19b5ce(0x9e)](_0x328ea5+(_0x31b2e8[_0x19b5ce(0x129)]||0x0),_0x31b2e8['t_tien_ck']||0x0),_0x31b2e8['tien_phi_vc']||0x0),_0x31b2e8[_0x19b5ce(0x155)]||0x0),_0x31b2e8['tien_ck_hd']||0x0),_0x31b2e8[_0x19b5ce(0xb1)]||0x0),_0x328ea5=_0x328ea5-_0x1a9d50[_0x19b5ce(0x13e)]((_0x31b2e8[_0x19b5ce(0xd3)]||[])[_0x19b5ce(0x141)](_0x1a9d50[_0x19b5ce(0x153)]),(_0x31b2e8[_0x19b5ce(0xd3)]||[])[_0x19b5ce(0x141)](_0x1a9d50[_0x19b5ce(0xd2)])),(_0x31b2e8[_0x19b5ce(0xd3)]||[])[_0x19b5ce(0xb4)](_0x2932f5=>{const _0xe135d3=_0x19b5ce,_0x89620e='0|7|3|1|2|8|5|4|6'[_0xe135d3(0x123)]('|');let _0x1c7dd4=0x0;while(!![]){switch(_0x89620e[_0x1c7dd4++]){case'0':_0x2932f5[_0xe135d3(0x14c)]=0x0-_0x2932f5[_0xe135d3(0x132)];continue;case'1':_0x2932f5[_0xe135d3(0x15d)]=0x0-(_0x2932f5[_0xe135d3(0x105)]||0x0);continue;case'2':_0x2932f5[_0xe135d3(0xe9)]=_0x390c21[_0xe135d3(0x154)](0x0,_0x2932f5[_0xe135d3(0x171)]);continue;case'3':_0x2932f5['t_tien_hoa_hong_ctv']=_0x390c21[_0xe135d3(0x148)](0x0,_0x2932f5['tien_hoa_hong_ctv']);continue;case'4':_0x2932f5[_0xe135d3(0xb0)]=new Date(_0x31b2e8['ngay_ct'])[_0xe135d3(0x176)]();continue;case'5':_0x2932f5['thang']=_0x390c21[_0xe135d3(0xb7)](new Date(_0x31b2e8[_0xe135d3(0xe4)])['getMonth'](),0x1);continue;case'6':_0x315aaf[_0xe135d3(0x15a)](_0x2932f5);continue;case'7':_0x2932f5['t_tien_hoa_hong_ql']=_0x390c21[_0xe135d3(0x148)](0x0,_0x2932f5[_0xe135d3(0x17b)]);continue;case'8':_0x2932f5[_0xe135d3(0x101)]=_0x390c21[_0xe135d3(0x150)](0x0,_0x2932f5['tien_hoa_hong_kho']);continue;}break;}});});let _0x5f01be=_0x315aaf[_0x5787b0(0x146)](_0x3bad2b=>{const _0x57cac4=_0x5787b0,_0x209d90={'HWkRb':_0x1a9d50[_0x57cac4(0xea)]};if(_0x1a9d50[_0x57cac4(0x177)](_0x1a9d50[_0x57cac4(0x166)],_0x1a9d50[_0x57cac4(0xe0)])){let _0x4ef0dc=[];_0x3bad2b[_0x57cac4(0xb9)]&&_0x3bad2b[_0x1a9d50[_0x57cac4(0xcb)]]&&_0x4ef0dc[_0x57cac4(0x15a)]({'user_hoa_hong':_0x3bad2b[_0x1a9d50[_0x57cac4(0xea)]],'t_tien_hoa_hong':_0x3bad2b[_0x57cac4(0x14c)],'thang':_0x3bad2b['thang'],'nam':_0x3bad2b[_0x57cac4(0xb0)]});_0x3bad2b['user_ql']&&_0x3bad2b[_0x1a9d50[_0x57cac4(0x98)]]&&_0x4ef0dc['push']({'user_hoa_hong':_0x3bad2b[_0x1a9d50[_0x57cac4(0xb2)]],'t_tien_hoa_hong':_0x3bad2b[_0x1a9d50[_0x57cac4(0x98)]],'thang':_0x3bad2b[_0x57cac4(0x120)],'nam':_0x3bad2b['nam']});_0x3bad2b[_0x1a9d50[_0x57cac4(0x16a)]]&&_0x3bad2b[_0x1a9d50[_0x57cac4(0x14b)]]&&(_0x1a9d50[_0x57cac4(0x16d)](_0x1a9d50[_0x57cac4(0x117)],_0x1a9d50[_0x57cac4(0x108)])?_0x4ef0dc[_0x57cac4(0x15a)]({'user_hoa_hong':_0x3bad2b[_0x1a9d50['spdpc']],'t_tien_hoa_hong':_0x3bad2b['t_tien_hoa_hong_ctv'],'thang':_0x3bad2b['thang'],'nam':_0x3bad2b[_0x57cac4(0xb0)]}):_0x13e7f7['ma_kho']=_0x4124b1['ma_kho']);_0x3bad2b[_0x1a9d50[_0x57cac4(0x121)]]&&_0x3bad2b[_0x57cac4(0x15d)]&&_0x4ef0dc['push']({'user_hoa_hong':_0x3bad2b[_0x1a9d50[_0x57cac4(0x121)]],'t_tien_hoa_hong':_0x3bad2b[_0x1a9d50['fZUFC']],'thang':_0x3bad2b[_0x57cac4(0x120)],'nam':_0x3bad2b[_0x57cac4(0xb0)]});_0x3bad2b[_0x1a9d50[_0x57cac4(0x16e)]]&&_0x3bad2b['t_tien_hoa_hong_kho']&&_0x4ef0dc[_0x57cac4(0x15a)]({'user_hoa_hong':_0x3bad2b[_0x1a9d50[_0x57cac4(0x16e)]],'t_tien_hoa_hong':_0x3bad2b[_0x1a9d50[_0x57cac4(0x10f)]],'thang':_0x3bad2b['thang'],'nam':_0x3bad2b[_0x57cac4(0xb0)]});if(_0x3bad2b[_0x1a9d50[_0x57cac4(0xba)]]&&_0x3bad2b[_0x57cac4(0xe9)]){if(_0x1a9d50['ZkthD'](_0x1a9d50[_0x57cac4(0xa2)],_0x1a9d50[_0x57cac4(0xa2)])){if(!_0x4f95f3['$and'])_0x224d33[_0x57cac4(0xd6)]=[];_0x5d2ac0['$and'][_0x57cac4(0x15a)]({'$or':[{'user_nv':_0x507711[_0x57cac4(0x143)]},{'user_ctv':_0x47160d[_0x57cac4(0x143)]},{'user_ctv2':_0x3739d7[_0x57cac4(0x143)]},{'user_kho':_0x33a1a4['user_hoa_hong']},{'user_gt':_0x2087b2[_0x57cac4(0x143)]},{'user_ql':_0x51f209[_0x57cac4(0x143)]},{'details.user_nv':_0x1ef88f[_0x57cac4(0x143)]},{'details.user_ctv':_0x261698['user_hoa_hong']},{'details.user_ctv2':_0x4a4b44['user_hoa_hong']},{'details.user_kho':_0x1be78c[_0x57cac4(0x143)]},{'details.user_gt':_0x2e8274[_0x57cac4(0x143)]},{'details.user_ql':_0x183538[_0x57cac4(0x143)]}]});}else _0x4ef0dc['push']({'user_hoa_hong':_0x3bad2b[_0x1a9d50['tAXHE']],'t_tien_hoa_hong_gt':_0x3bad2b[_0x1a9d50[_0x57cac4(0x168)]],'thang':_0x3bad2b[_0x57cac4(0x120)],'nam':_0x3bad2b[_0x57cac4(0xb0)]});}return _0x4ef0dc;}else _0x24883a[_0x57cac4(0x15a)]({'user_hoa_hong':_0x1098a2[_0x209d90[_0x57cac4(0xf7)]],'t_tien_hoa_hong':_0xb0806c[_0x57cac4(0x14c)],'thang':_0x1d22be[_0x57cac4(0x120)],'nam':_0x51938d['nam']});})['reduce']((_0x361683,_0x2f647e)=>_0x361683[_0x5787b0(0xa8)](_0x2f647e),[]);_0x5f01be=[..._0x5f01be,..._0x1f22d7];_0x566551[_0x5787b0(0x143)]&&(_0x19233c[_0x5787b0(0xbd)](_0x5787b0(0x149),_0x5787b0(0x149))?(_0x1269a5[_0x5787b0(0xc4)](_0x1a9d50[_0x5787b0(0xca)],_0x1a9d50[_0x5787b0(0x9e)](_0x1a9d50[_0x5787b0(0xcc)](_0x22cea4,_0x2b383f[_0x5787b0(0x120)]),0x1)),_0x2df28e[_0x5787b0(0xec)]=_0x439397['startOf'](_0x1a9d50[_0x5787b0(0xca)])[_0x5787b0(0x15f)]()):_0x5f01be=_0x5f01be['filter'](_0x4e1bb8=>_0x4e1bb8[_0x5787b0(0x143)]==_0x566551[_0x5787b0(0x143)]));let _0x128c80=[],_0x48f001=_0x5f01be['csum'](_0x19233c[_0x5787b0(0x13b)]),_0x39d254=_0x5f01be[_0x5787b0(0x141)](_0x19233c['UbkCU']),_0x546b16=_0x5f01be['csum'](_0x19233c[_0x5787b0(0x10b)]);const _0x5c4f1f={'nam':_0x19233c['yqbrp'],'t_doanh_thu_thuan':_0x328ea5,'t_tien_hoa_hong':_0x48f001,'t_tien_hoa_hong_gt':_0x39d254,'t_tien_hoa_hong_kpi':_0x546b16,'t_cong':_0x19233c[_0x5787b0(0xde)](_0x19233c[_0x5787b0(0x131)](_0x48f001,_0x39d254),_0x546b16),'bold':!![]};_0x128c80[_0x5787b0(0x15a)](_0x5c4f1f),_0x19233c[_0x5787b0(0x137)](_0x3201b0,null,_0x128c80);});}});});};
@@ -1,5 +1 @@
1
- const thnxt=require("../../libs/thnxtnpp"),databanle=require("../../libs/dtbanletheonpp"),controller=require("../../controllers/controllerRPT"),async=require("async"),permission=require("../../libs/permission");
2
- module.exports=function($router$$){new controller($router$$,"tongquannvnpp",async function($req$$,$callback$$){const $query$$=$req$$.query;if(!$query$$.tu_ngay||!$query$$.den_ngay)return $callback$$("B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1: tu_ngay,den_ngay");$query$$.groupby=["ma_kho"];delete $query$$.user_hoa_hong;if(!$req$$.user.current_app_info.appAdmin){let $ma_khos$$=await new Promise($rs$$=>{permission.getRightByItem($req$$.user.current_id_app,global.getModel("dmkho"),
3
- $req$$.user.email,async function($e_khos$$,$_condition$$,$admin$$){if($admin$$)return $rs$$(null);$_condition$$.id_app=$query$$.id_app;$query$$.ma_kho&&($_condition$$.ma_kho=$query$$.ma_kho);$e_khos$$=await global.getModel("dmkho").find($_condition$$,{ma_kho:1}).lean();$rs$$($e_khos$$.map($k$$=>$k$$.ma_kho))})});$query$$.ma_kho=$ma_khos$$}async.series({tonkho:$callback2$$=>{thnxt($query$$,function($error$$,$ton_kho$$){if($error$$)return $callback2$$($error$$);$callback2$$(null,$ton_kho$$)},$log$$=>
4
- {console.log($log$$)})},doanhthu:$callback2$$=>{databanle($req$$.user,$query$$,function($error$$,$dt$$){if($error$$)return $callback2$$($error$$);$callback2$$(null,$dt$$)})}},async($e$$,$rs$$)=>{if($e$$)return $callback$$($e$$);$e$$=$rs$$.tonkho.concat($rs$$.doanhthu);$e$$=await $e$$.asyncGroupBy(["ma_kho"],["ton_dau","sl_nhap","sl_xuat","ton_cuoi","t_doanh_thu_thuan"]);await $e$$.asyncJoinModel2($req$$.user.current_id_app,"dmkho",{where:"ma_kho",fields:["user_npp","ten_kho"]});$callback$$(null,$e$$)})},
5
- {stream:!1})};
1
+ function _0xaeb0(){const _0x4e4f3b=['DxnLCL9OB2fFAg9UzW','EKLqreW','y3rus0e','Cfrszw8','mtiYmJKXnNH5DKPtqG','wKvZC1q','C2XFBMHHCa','BwfFA2HV','mZi1nJGXoeHKzufUDq','Dg9Ux2n1B2K','zMLUza','rvrYDuW','mte5odK3oufArgfhsq','u25oDNe','BNjjywS','v0fnrvi','z2v0tw9KzwW','qNblzNi','uMfmBNK','qKDcvem','y29Uy2f0','mJmWv0DxBNjo','DNb5DgK','DhvFBMDHEq','Dg9Ux2rHDq','z3jVDxbIEq','zg1RAg8','nxjJC29Irq','tgPSCNO','C3HzBM4','qwnxC3u','CxvLCNK','AhvYCfG','yMjMq1C','zg9HBMH0Ahu','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCLjqva','qunPz0S','lI4VlI4VBgLICY9KDgjHBMXLDgHLB25WCa','weD6B2i','ntCXndu2vKzsrxrt','nZjruK5kqNu','y3vYCMvUDf9HChbFAw5MBW','qMjuEwe','CejnDvK','tuj4z2G','nZi1nta1D3DLDunn','z2v0uMLNAhrcEuL0zw0','Dg9Uz3f1yw5UDM5WCa','C2XFEhvHDa','r0jvExy','quXizeO','yxbWqwrTAw4','DxnLCG','ueDst3e','zxnOB00','ChfSEgK','lI4VlI4VBgLICY90Ag54Dg5WCa','Bg9N','Df9KB2fUAf90AhvFDgH1yw4','ntq2mJaYm0f4D2rXrq','ruTpzum','A2ruyNq','mJm0odiXohHrzMfAtW','r3nWrKS','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsbJW6fJihrOyw0GC+g7KtOGDhvFBMDHEsXKzw5FBMDHEq','suPPBhK','swrYvu4','ywfisNe','BwfW','Dxb0yLK','yKX5zK0','BgvHBG','zxHWB3j0CW','uNzwruW','BNbQC2W','yxn5BMm','EM9UthO','vuHcs1u','lI4VlI4VBgLICY9WzxjTAxnZAw9U','uvbqwhy','uNnMtgS','tKrws3e','rxz1CKy','y3vYCMvUDf9Pzf9HCha','Bhv2q2e','DxnLCL9UCha','CgLxy0O','BM1Htu8','rfrAy24','thzlwLq','m0z3wvLZvG','yxn5BMnkB2LUtw9KzwWY','twvnv1u'];_0xaeb0=function(){return _0x4e4f3b;};return _0xaeb0();}const _0x231d9b=_0x2dc7;(function(_0x36a204,_0x9206db){const _0x597d2e=_0x2dc7,_0x354fb0=_0x36a204();while(!![]){try{const _0x3767dc=parseInt(_0x597d2e(0x178))/0x1+-parseInt(_0x597d2e(0x1aa))/0x2*(-parseInt(_0x597d2e(0x169))/0x3)+parseInt(_0x597d2e(0x170))/0x4*(parseInt(_0x597d2e(0x187))/0x5)+-parseInt(_0x597d2e(0x174))/0x6+parseInt(_0x597d2e(0x1a7))/0x7+parseInt(_0x597d2e(0x193))/0x8*(-parseInt(_0x597d2e(0x194))/0x9)+-parseInt(_0x597d2e(0x181))/0xa*(parseInt(_0x597d2e(0x199))/0xb);if(_0x3767dc===_0x9206db)break;else _0x354fb0['push'](_0x354fb0['shift']());}catch(_0x4de62c){_0x354fb0['push'](_0x354fb0['shift']());}}}(_0xaeb0,0xca1ea));const thnxt=require(_0x231d9b(0x1a4)),databanle=require(_0x231d9b(0x191)),controller=require(_0x231d9b(0x18f)),async=require(_0x231d9b(0x15a)),permission=require(_0x231d9b(0x15d));function _0x2dc7(_0x326209,_0xaf1c4f){const _0xaeb01d=_0xaeb0();return _0x2dc7=function(_0x2dc770,_0x5db0fd){_0x2dc770=_0x2dc770-0x159;let _0x21b2d0=_0xaeb01d[_0x2dc770];if(_0x2dc7['zKJMXl']===undefined){var _0x5431e8=function(_0x23bff1){const _0x32e6bd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ff3a8='',_0x17577e='';for(let _0x1cfb7d=0x0,_0x1667af,_0x1f3db6,_0x528c45=0x0;_0x1f3db6=_0x23bff1['charAt'](_0x528c45++);~_0x1f3db6&&(_0x1667af=_0x1cfb7d%0x4?_0x1667af*0x40+_0x1f3db6:_0x1f3db6,_0x1cfb7d++%0x4)?_0x4ff3a8+=String['fromCharCode'](0xff&_0x1667af>>(-0x2*_0x1cfb7d&0x6)):0x0){_0x1f3db6=_0x32e6bd['indexOf'](_0x1f3db6);}for(let _0x1cf5e8=0x0,_0x14e15a=_0x4ff3a8['length'];_0x1cf5e8<_0x14e15a;_0x1cf5e8++){_0x17577e+='%'+('00'+_0x4ff3a8['charCodeAt'](_0x1cf5e8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x17577e);};_0x2dc7['AIJuQR']=_0x5431e8,_0x326209=arguments,_0x2dc7['zKJMXl']=!![];}const _0x440997=_0xaeb01d[0x0],_0x3ddec0=_0x2dc770+_0x440997,_0x52ed9a=_0x326209[_0x3ddec0];return!_0x52ed9a?(_0x21b2d0=_0x2dc7['AIJuQR'](_0x21b2d0),_0x326209[_0x3ddec0]=_0x21b2d0):_0x21b2d0=_0x52ed9a,_0x21b2d0;},_0x2dc7(_0x326209,_0xaf1c4f);}module[_0x231d9b(0x1b4)]=function(_0x15fc47){const _0xe7610e=_0x231d9b,_0x5dc6be={'GBUyv':function(_0x3f3376,_0x5b55c3){return _0x3f3376(_0x5b55c3);},'gdmlP':function(_0x21c8bb,_0x3988c1,_0x38fcee){return _0x21c8bb(_0x3988c1,_0x38fcee);},'BbTya':_0xe7610e(0x186),'AcWsu':_0xe7610e(0x1a3),'SnNvq':function(_0x233534,_0x3b5dae,_0x3e2830,_0x37ceb0){return _0x233534(_0x3b5dae,_0x3e2830,_0x37ceb0);},'piWcJ':function(_0x21d317,_0x1aae21){return _0x21d317!==_0x1aae21;},'Ljlrz':_0xe7610e(0x16d),'pTReo':function(_0x5e897f,_0x10ad3c,_0x42baba){return _0x5e897f(_0x10ad3c,_0x42baba);},'PGROq':function(_0x1b6c68,_0x1cd2a6){return _0x1b6c68!==_0x1cd2a6;},'MBxgh':'bOVCp','QPPXv':_0xe7610e(0x17d),'RsfLk':_0xe7610e(0x1ac),'IJily':_0xe7610e(0x1b5),'pBMuY':function(_0x2d5780,_0x4fb622){return _0x2d5780(_0x4fb622);},'LvKZT':function(_0x3bb2e1,_0x6876e5){return _0x3bb2e1(_0x6876e5);},'uptbY':_0xe7610e(0x184),'waozU':_0xe7610e(0x172),'EvurF':_0xe7610e(0x19c),'IdrUN':_0xe7610e(0x175),'nmaMO':_0xe7610e(0x1a6),'jkldF':_0xe7610e(0x164),'JSvtz':function(_0x5877c0,_0x3b6f55){return _0x5877c0===_0x3b6f55;},'XGzob':'GspFK','luvCa':_0xe7610e(0x19b)};new controller(_0x15fc47,_0x5dc6be[_0xe7610e(0x163)],async function(_0x26d87b,_0xb05478){const _0x586399=_0xe7610e,_0x130583={'WAMER':function(_0x431df5,_0x44ac4f){const _0x4020b1=_0x2dc7;return _0x5dc6be[_0x4020b1(0x19d)](_0x431df5,_0x44ac4f);},'npjsl':_0x586399(0x186),'ctTKA':function(_0x50822d,_0x3ad8a4,_0x53e2c3,_0x4a641f){const _0x1e86d3=_0x586399;return _0x5dc6be[_0x1e86d3(0x179)](_0x50822d,_0x3ad8a4,_0x53e2c3,_0x4a641f);},'BGBTC':function(_0x422712,_0x2fc7b3){const _0x2387ba=_0x586399;return _0x5dc6be[_0x2387ba(0x165)](_0x422712,_0x2fc7b3);},'ETruL':_0x5dc6be[_0x586399(0x188)],'ZEssT':function(_0x113bb2,_0x5e9598,_0x3f6d94){const _0x56170f=_0x586399;return _0x5dc6be[_0x56170f(0x16f)](_0x113bb2,_0x5e9598,_0x3f6d94);},'ALHdJ':function(_0x558b06,_0x115d60){const _0x7f0e46=_0x586399;return _0x5dc6be[_0x7f0e46(0x1a1)](_0x558b06,_0x115d60);},'NDVKq':_0x5dc6be[_0x586399(0x198)],'MeMWU':_0x5dc6be[_0x586399(0x15e)],'kdTbt':_0x5dc6be[_0x586399(0x15f)],'nrIak':_0x5dc6be[_0x586399(0x1ad)],'sxYnn':function(_0x5503d1,_0x1a5c27){const _0x17b69f=_0x586399;return _0x5dc6be[_0x17b69f(0x197)](_0x5503d1,_0x1a5c27);},'GYOlZ':function(_0x266ef4,_0x432679){const _0x238482=_0x586399;return _0x5dc6be[_0x238482(0x168)](_0x266ef4,_0x432679);},'vpyti':_0x5dc6be[_0x586399(0x1b1)],'DVaYK':_0x5dc6be['waozU'],'eshoM':_0x5dc6be[_0x586399(0x161)],'opZGn':_0x5dc6be[_0x586399(0x1ae)],'EKOeC':_0x5dc6be[_0x586399(0x166)],'ACigK':_0x5dc6be['jkldF']},_0x5a7a2b=_0x26d87b[_0x586399(0x18b)];if(!_0x5a7a2b[_0x586399(0x183)]||!_0x5a7a2b['den_ngay']){if(_0x5dc6be['JSvtz'](_0x5dc6be[_0x586399(0x192)],_0x586399(0x1ab)))return _0xb05478(_0x5dc6be['RsfLk']);else{if(_0x12a7ca)return _0x5dc6be['GBUyv'](_0x17379c,_0x3cd431);_0x5dc6be['gdmlP'](_0x122ac3,null,_0xd6ae07);}}_0x5a7a2b[_0x586399(0x185)]=[_0x586399(0x173)],delete _0x5a7a2b[_0x586399(0x16c)];if(!_0x26d87b[_0x586399(0x1a0)][_0x586399(0x195)][_0x586399(0x19f)]){let _0x530666=await new Promise(_0x5a0762=>{const _0x213613=_0x586399;permission[_0x213613(0x19a)](_0x26d87b[_0x213613(0x1a0)][_0x213613(0x162)],global[_0x213613(0x17c)](_0x5dc6be[_0x213613(0x196)]),_0x26d87b[_0x213613(0x1a0)]['email'],async function(_0x251834,_0x561810,_0xf76639){const _0x3471e6=_0x213613;if(_0xf76639)return _0x130583[_0x3471e6(0x17b)](_0x5a0762,null);_0x561810['id_app']=_0x5a7a2b['id_app'];_0x5a7a2b[_0x3471e6(0x173)]&&(_0x561810[_0x3471e6(0x173)]=_0x5a7a2b['ma_kho']);let _0x12a13e=await global['getModel'](_0x130583[_0x3471e6(0x159)])[_0x3471e6(0x176)](_0x561810,{'ma_kho':0x1})[_0x3471e6(0x1b3)]();_0x130583[_0x3471e6(0x17b)](_0x5a0762,_0x12a13e[_0x3471e6(0x1b0)](_0x3dc575=>_0x3dc575[_0x3471e6(0x173)]));});});_0x5a7a2b[_0x586399(0x173)]=_0x530666;}async['series']({'tonkho':_0xc88dee=>{const _0x66d99e=_0x586399,_0x4c5230={'bLyfM':function(_0x302d67,_0x5462e6){return _0x302d67(_0x5462e6);},'DPyWr':function(_0x34773e,_0x50894d,_0x5a73eb,_0x430688){const _0x359367=_0x2dc7;return _0x130583[_0x359367(0x16e)](_0x34773e,_0x50894d,_0x5a73eb,_0x430688);},'foTep':function(_0x45e833,_0x538fff){const _0x162e80=_0x2dc7;return _0x130583[_0x162e80(0x17f)](_0x45e833,_0x538fff);},'RaLny':_0x130583[_0x66d99e(0x177)],'mcQQD':function(_0x5dd788,_0x5218cf,_0x1a2c5a){const _0x1f94ec=_0x66d99e;return _0x130583[_0x1f94ec(0x171)](_0x5dd788,_0x5218cf,_0x1a2c5a);},'DTZcn':function(_0x52b56e,_0x2d07f1){const _0x1b9acf=_0x66d99e;return _0x130583[_0x1b9acf(0x17b)](_0x52b56e,_0x2d07f1);}};if(_0x130583[_0x66d99e(0x19e)](_0x130583[_0x66d99e(0x160)],_0x130583[_0x66d99e(0x16b)]))thnxt(_0x5a7a2b,function(_0x57cb43,_0x44da2a){const _0x27c22e=_0x66d99e,_0x400e61={'UHBKU':function(_0x99dd5a,_0x1014e0){const _0x41758c=_0x2dc7;return _0x4c5230[_0x41758c(0x1b2)](_0x99dd5a,_0x1014e0);},'aaHJq':function(_0x53a56b,_0x2e569e,_0x3a75bb,_0x68a176){return _0x4c5230['DPyWr'](_0x53a56b,_0x2e569e,_0x3a75bb,_0x68a176);}};if(_0x4c5230['foTep'](_0x27c22e(0x16d),_0x4c5230[_0x27c22e(0x17e)])){const _0x36a5a3={'bbfCW':function(_0x579d2c,_0x54b219){const _0x4772d0=_0x27c22e;return _0x400e61[_0x4772d0(0x15c)](_0x579d2c,_0x54b219);}};_0x400e61[_0x27c22e(0x1af)](_0x56cf03,_0x4ba431,function(_0x446f9f,_0xc602b2){const _0x46d0e3=_0x27c22e;if(_0x446f9f)return _0x36a5a3[_0x46d0e3(0x18d)](_0x34b0e3,_0x446f9f);_0x35a2b0(null,_0xc602b2);},_0x3d09b1=>{const _0x11eeb2=_0x27c22e;_0x3155d7[_0x11eeb2(0x1a5)](_0x3d09b1);});}else{if(_0x57cb43)return _0xc88dee(_0x57cb43);_0x4c5230['mcQQD'](_0xc88dee,null,_0x44da2a);}},_0x43e756=>{const _0x4127eb=_0x66d99e;console[_0x4127eb(0x1a5)](_0x43e756);});else return _0x4c5230[_0x66d99e(0x167)](_0x12911b,_0x254efa);},'doanhthu':_0x506c8a=>{const _0x264b98=_0x586399,_0x9ca944={'hurpX':function(_0x290168,_0x6d68ea,_0x24ceed){return _0x5dc6be['gdmlP'](_0x290168,_0x6d68ea,_0x24ceed);}};if(_0x5dc6be[_0x264b98(0x18a)]!==_0x5dc6be[_0x264b98(0x18a)])return _0x130583[_0x264b98(0x17b)](_0x32e6bd,_0x130583[_0x264b98(0x1a9)]);else _0x5dc6be['SnNvq'](databanle,_0x26d87b[_0x264b98(0x1a0)],_0x5a7a2b,function(_0x468704,_0x59c965){const _0x265b32=_0x264b98;if(_0x468704){if(_0x130583[_0x265b32(0x17a)]===_0x265b32(0x15b)){if(_0x8402a)return _0x4fbd90(_0x596e9e);_0x9ca944[_0x265b32(0x18c)](_0x40ea87,null,_0x1a8eb8);}else return _0x130583[_0x265b32(0x189)](_0x506c8a,_0x468704);}_0x506c8a(null,_0x59c965);});}},async(_0xb9157f,_0x243c6f)=>{const _0x2d08e2=_0x586399;if(_0xb9157f)return _0x130583['GYOlZ'](_0xb05478,_0xb9157f);let _0x2ec9bb=_0x243c6f['tonkho'][_0x2d08e2(0x180)](_0x243c6f[_0x2d08e2(0x18e)]);_0x2ec9bb=await _0x2ec9bb['asyncGroupBy']([_0x2d08e2(0x173)],[_0x130583[_0x2d08e2(0x182)],_0x130583['DVaYK'],_0x130583[_0x2d08e2(0x1a2)],_0x130583['opZGn'],_0x130583[_0x2d08e2(0x1a8)]]),await _0x2ec9bb[_0x2d08e2(0x16a)](_0x26d87b[_0x2d08e2(0x1a0)][_0x2d08e2(0x162)],_0x2d08e2(0x186),{'where':_0x2d08e2(0x173),'fields':[_0x130583[_0x2d08e2(0x190)],'ten_kho']}),_0xb05478(null,_0x2ec9bb);});},{'stream':![]});};
@@ -1,11 +1 @@
1
- const lenhsx=global.getModel("lenhsx"),dinhmucsx=global.getModel("dinhmucsx"),lenhcapphat=global.getModel("lenhcapphat"),sale_contract=global.getModel("sale_contract"),dmvt=global.getModel("dmvt"),async=require("async"),utils=require("../../libs/utils"),controller=require("../../controllers/controllerRPT");
2
- module.exports=function($router$$){new controller($router$$,"uoctinhnvl",function($query_lenhsx_req$$,$callback$$){const $condition$$=$query_lenhsx_req$$.query;if(!$condition$$.tu_ngay||!$condition$$.den_ngay)return $callback$$("B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u t\u1eeb ng\u00e0y, \u0111\u1ebfn ng\u00e0y");$query_lenhsx_req$$={id_app:$condition$$.id_app,ngay_bat_dau:{$gte:$condition$$.tu_ngay,$lte:$condition$$.den_ngay}};$condition$$.id_lenhsx&&($query_lenhsx_req$$._id=$condition$$.id_lenhsx);
3
- $condition$$.id_contract&&($query_lenhsx_req$$.id_contract=$condition$$.id_contract);lenhsx.find($query_lenhsx_req$$).lean().exec(($e$$,$_lenhsxs$$)=>{if($e$$)return console.log("uoctinhnvl,eror",$e$$),$callback$$($e$$);async.mapSeries($_lenhsxs$$,($_lenhsx$$,$callback$$)=>{$_lenhsx$$.details.joinModel2($condition$$.id_app,dinhmucsx,{where:{id_dinhmucsx:"_id"},fields:{details_dm:"details",so_luong_dm:"so_luong"}},function(){$_lenhsx$$.details.filter($d$$=>$d$$.details_dm).forEach($d_lenhsx$$=>{$d_lenhsx$$.details_dm=
4
- $d_lenhsx$$.details_dm.filter($dm$$=>(!$dm$$.ma_tt1_sp||$dm$$.ma_tt1_sp===$d_lenhsx$$.ma_tt1_sp)&&(!$dm$$.ma_tt2_sp||$dm$$.ma_tt2_sp===$d_lenhsx$$.ma_tt2_sp)&&(!$dm$$.ma_tt3_sp||$dm$$.ma_tt3_sp===$d_lenhsx$$.ma_tt3_sp));$d_lenhsx$$.details_dm.forEach($d_dinhmucsx$$=>{$d_dinhmucsx$$.sl_dinh_muc=$d_dinhmucsx$$.ma_sp=$d_lenhsx$$.ma_sp;$d_dinhmucsx$$.ma_dvt_sp=$d_lenhsx$$.ma_dvt_sp;$d_dinhmucsx$$.ma_tt1_sp=$d_lenhsx$$.ma_tt1_sp;$d_dinhmucsx$$.ma_tt2_sp=$d_lenhsx$$.ma_tt2_sp;$d_dinhmucsx$$.ma_tt3_sp=$d_lenhsx$$.ma_tt3_sp;
5
- $d_dinhmucsx$$.id_dinhmucsx=$d_lenhsx$$.id_dinhmucsx/($d_lenhsx$$.so_luong_dm||1);$d_dinhmucsx$$.id_lenhsx=$_lenhsx$$._id.toString();$d_dinhmucsx$$.so_ct_lenhsx=$_lenhsx$$.so_ct.toString();$d_dinhmucsx$$.id_contract=$_lenhsx$$.id_contract;$d_dinhmucsx$$.sl_sx=$d_lenhsx$$.sl_sx;$d_dinhmucsx$$.sl_nhu_cau_chua_hao_hut=utils.round($d_dinhmucsx$$.loai_dinh_muc===1?$d_dinhmucsx$$.sl_sx*$d_dinhmucsx$$.sl_dinh_muc:$d_dinhmucsx$$.sl_dinh_muc,2);$d_dinhmucsx$$.sl_hao_hut=utils.round($d_dinhmucsx$$.sl_nhu_cau_chua_hao_hut*
6
- $d_dinhmucsx$$.ty_le_hao_hut/100,2);$d_dinhmucsx$$.sl_nhu_cau=$d_dinhmucsx$$.sl_nhu_cau_chua_hao_hut+$d_dinhmucsx$$.sl_hao_hut;$d_dinhmucsx$$.sl_da_cap_phat=0;$d_dinhmucsx$$.sl_ke_hoach=$d_dinhmucsx$$.sl_nhu_cau-$d_dinhmucsx$$.sl_da_cap_phat;$d_dinhmucsx$$.sl_contract=0;$d_dinhmucsx$$.sl_da_nhap=0;$d_dinhmucsx$$.gia=0;$d_dinhmucsx$$.gia_nt=0;$d_dinhmucsx$$.tien=0;$d_dinhmucsx$$.tien_nt=0;$d_dinhmucsx$$.thue_suat=0;$d_dinhmucsx$$.thue=0;$d_dinhmucsx$$.thue_nt=0})});$callback$$()})},$e$$=>{if($e$$)return $callback$$($e$$);
7
- let $chitiet_kehoach$$=$_lenhsxs$$.map($_lenhsx$$=>$_lenhsx$$.details).reduce(($a$$,$b$$)=>$a$$.concat($b$$),[]).map($d$$=>$d$$.details_dm).reduce(($a$$,$b$$)=>$a$$.concat($b$$),[]).filter($d$$=>$d$$);async.mapSeries($chitiet_kehoach$$,($chitiet$$,$callback$$)=>{lenhcapphat.find({id_lenhsx:$chitiet$$.id_lenhsx}).lean().exec(($e$$,$_lenhcapphats$$)=>{if($e$$)return $callback$$($e$$);$chitiet$$.sl_da_cap_phat=$_lenhcapphats$$.map($_l$$=>$_l$$.details.filter($d$$=>$d$$.ma_sp==$chitiet$$.ma_sp&&$d$$.ma_vt===
8
- $chitiet$$.ma_vt&&(!$d$$.ma_tt1&&!$chitiet$$.ma_tt1||$d$$.ma_tt1===$chitiet$$.ma_tt1)&&(!$d$$.ma_tt2&&!$chitiet$$.ma_tt2||$d$$.ma_tt2===$chitiet$$.ma_tt2)&&(!$d$$.ma_tt3&&!$chitiet$$.ma_tt3||$d$$.ma_tt3===$chitiet$$.ma_tt3)&&(!$d$$.ma_tt1_sp&&!$chitiet$$.ma_tt1_sp||$d$$.ma_tt1_sp===$chitiet$$.ma_tt1_sp)&&(!$d$$.ma_tt2_sp&&!$chitiet$$.ma_tt2_sp||$d$$.ma_tt2_sp===$chitiet$$.ma_tt2_sp)&&(!$d$$.ma_tt3_sp&&!$chitiet$$.ma_tt3_sp||$d$$.ma_tt3_sp===$chitiet$$.ma_tt3_sp)&&(!$d$$.ma_cum_chi_tiet&&!$chitiet$$.ma_cum_chi_tiet||
9
- $d$$.ma_cum_chi_tiet===$chitiet$$.ma_cum_chi_tiet)&&(!$d$$.ten_cum_chi_tiet&&!$chitiet$$.ten_cum_chi_tiet||$d$$.ten_cum_chi_tiet===$chitiet$$.ten_cum_chi_tiet)&&(!$d$$.ma_cong_doan&&!$chitiet$$.ma_cong_doan||$d$$.ma_cong_doan===$chitiet$$.ma_cong_doan)).csum("so_luong")).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$chitiet$$.sl_ke_hoach=$chitiet$$.sl_nhu_cau-$chitiet$$.sl_da_cap_phat;$chitiet$$.sl_ke_hoach<0&&($chitiet$$.sl_ke_hoach=0);$callback$$()})},$e$$=>{if($e$$)return $callback$$($e$$);async.series([$callback$$=>
10
- {$chitiet_kehoach$$.joinModel2($condition$$.id_app,dmvt,[{where:"ma_vt",fields:"ten_vt"},{where:{ma_sp:"ma_vt"},fields:{ten_sp:"ten_vt"}}],()=>{$callback$$()})},$callback$$=>{$chitiet_kehoach$$.joinModel2($condition$$.id_app,sale_contract,[{where:{id_contract:"_id"},fields:{so_ct_contract:"so_ct"}}],()=>{$callback$$()})}],()=>{let $rs$$=$chitiet_kehoach$$.filter($c$$=>$c$$.sl_nhu_cau>0),$line$$=0;for($line$$=0;$line$$<$rs$$.length;$line$$++)$rs$$[$line$$].line=$line$$,delete $rs$$[$line$$]._id,delete $rs$$[$line$$].$$hashKey;
11
- $callback$$(null,$rs$$)})})})})})};
1
+ const _0x4b4c8d=_0xd701;function _0x4a72(){const _0x2de545=['EvrzEMO','zu1eExi','z2LHx250','C2fSzv9JB250CMfJDa','zgnqz0u','y2zOqwO','CwPnCLe','CejnCKy','EK1VDem','zMLSDgvY','BwfFzhz0x3nW','zNfNEvu','C29FBhvVBMDFzg0','mJb8mtj8mNW3Fdr8mJn8mxW2Fdn8mtv8nxWXnhWXm3W4FdiYFdeWFdb8mtf8mtz8mtL8mJf8mtD8oxWXoa','uNHKBuS','ufPlueO','zffhBvK','zM9YrwfJAa','B3z2B24','Bfv2q1q','BwfFDNq','zMLUza','sxPpuMK','sLbwwM0','C2XFA2vFAg9Hy2G','CePwsNu','qKvlrgi','Afjbs0e','CfrLy1a','uwrOwfC','B29Nvu0','rhfyBNC','ANj2zuy','vxPIrvy','wvb4DuO','BgvHBG','yNrir0i','ndq3ndbOwLzoDLu','uhHorwe','sw1nwMe','AwrIBgO','mJaZntC0nvnyvuP0Aq','zgLUAg11y3n4','BgvUz3rO','uwLHwwm','twXMvhe','EMvMAxK','BwfW','BwfWtgLTAxq','reXvy1e','mtyYmZC4rxHIrefZ','D0L4BeG','BgLUzq','C2XFAgfVx2H1Da','ChjMsxO','ugjbt3y','Cefetfa','CxvLCNK','zxHLyW','C2XFzgfFBMHHCa','DgH1zv9ZDwf0','uLj5rgS','DhLFBgvFAgfVx2H1Da','jcrOyxnOs2v5','DhvFBMDHEq','DgH1zq','yxn5BMm','BwfFDhqX','Dfrbr0m','runnu3q','Bg9N','EKXbAKC','D25Hsu4','yKvKz3q','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCLjqva','odHWswPdyuS','DgH1zv9UDa','BwfFDhqZx3nW','DgLLBL9UDa','AwrFBgvUAhn4','C0Pxzvq','C2XFzgfFy2fWx3bOyxq','zwz4t04','mhWXFdj8nhWZ','z2LH','BwfFC3a','rxzWBvq','v1vkBeu','zgv0ywLSC19KBq','BhLqu1a','C29FBhvVBMC','Dg9tDhjPBMC','AM9PBK1VzgvSmG','Ahf5Bfa','CefWEee','zgvUx25NyxK','vNvrCMi','CwLlCwG','Cgzitfu','tfznzfK','q0nSrLO','CuzsufG','u2vNyLK','n29IrKrHEq','DgvUx3z0','vunKrMG','lI4VlI4VBgLICY91DgLSCW','C29Fy3rFBgvUAhn4','twvHsha','AwrFzgLUAg11y3n4','CMvKDwnL','BhLJzfK','qxjSvvK','C2XFBMH1x2nHDv9JAhvHx2HHB19ODxq','ywrAyxK','mJuWnZy2CuvvzwT5','s1LJDMq','CgfYywXSzwW','C2XFC3G','nezhyNLxwG','u2PHq2O','CM91BMq','BwfFDhqZ','C2XFzgLUAf9TDwm','s3nyuMS','DgLLBG','C29Fy3q','sgD2r3G','C3vjvKK','BKX4wLy','BMj4qKe','tLjgC24','vNfsy2m','D0P3Afe','uxzxAem','mxveDwPYCa','q0zSsgG','z2jID2i','svHfs2e','EfLNBxi','mtGZnJGWoezds1ngEG','B29Osu0','AwrFyxbW','AwrFy29UDhjHy3q','Bg9HAv9KAw5Ox211yW','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsb04BURig5NW6b5lcdeKEg6V24GBMFdOhK','t2fWugW','ANvpAwi','A0Lty3u','rfrKEe0','Dw9JDgLUAg52Ba','CxzyEg8','mJi5mdi3ogTSEMXiBq','rKL4A1m','BwfFy3vTx2nOAv90Awv0','BwfFDhqXx3nW','CuHOzMi','x2LK','BwfFy29Uz19KB2fU','tMvKtwe','ChrVChm','Dw9JDgLUAg52BcXLCM9Y','DgvUx2n1Bv9JAgLFDgLLDa','AMf6AM4','Cur3ugu','zgv0ywLSCW','C2XFBMH1x2nHDq','DNvSy1u','Dfjls0m','shn5qMC','wKrRzM0','txnoqMm','CwjQCuS','C3bSAxq','ELzXDwi','se1fCKe','BwfFDhqY','vLbJtgi','mJb8ohWYFdn8mtj8mtD8nxW2FdD8mtv8mJj8oxW0FdeWFdiZFdb8mtr8mtf8mtH8mxWXm3WYmxWXnNWXoq','otCYnde0qxjdre5I','rLjmwMm','BwfFDhqYx3nW','z2v0tw9KzwW','zevJwuy','DgTqy00','C2XFy29UDhjHy3q','sfzOCg8','rhDsrwC'];_0x4a72=function(){return _0x2de545;};return _0x4a72();}(function(_0x12c9b7,_0x235914){const _0x4bb84a=_0xd701,_0x900e58=_0x12c9b7();while(!![]){try{const _0x218653=-parseInt(_0x4bb84a(0xf3))/0x1*(parseInt(_0x4bb84a(0xdf))/0x2)+-parseInt(_0x4bb84a(0x9e))/0x3+-parseInt(_0x4bb84a(0xe3))/0x4*(-parseInt(_0x4bb84a(0x151))/0x5)+parseInt(_0x4bb84a(0x104))/0x6*(parseInt(_0x4bb84a(0xd3))/0x7)+-parseInt(_0x4bb84a(0xf8))/0x8+-parseInt(_0x4bb84a(0x11f))/0x9+parseInt(_0x4bb84a(0x14d))/0xa*(parseInt(_0x4bb84a(0xb7))/0xb);if(_0x218653===_0x235914)break;else _0x900e58['push'](_0x900e58['shift']());}catch(_0xb00bf4){_0x900e58['push'](_0x900e58['shift']());}}}(_0x4a72,0x4b12a));function _0xd701(_0x8828c6,_0x209667){const _0x4a72a1=_0x4a72();return _0xd701=function(_0xd701ee,_0xe6b147){_0xd701ee=_0xd701ee-0x9c;let _0x11dc5b=_0x4a72a1[_0xd701ee];if(_0xd701['tIVzxi']===undefined){var _0x291eac=function(_0x5c1c63){const _0x2d3b71='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xde12f3='',_0x28d994='';for(let _0x2ce0c8=0x0,_0x5b9f35,_0x24833e,_0x2baf4a=0x0;_0x24833e=_0x5c1c63['charAt'](_0x2baf4a++);~_0x24833e&&(_0x5b9f35=_0x2ce0c8%0x4?_0x5b9f35*0x40+_0x24833e:_0x24833e,_0x2ce0c8++%0x4)?_0xde12f3+=String['fromCharCode'](0xff&_0x5b9f35>>(-0x2*_0x2ce0c8&0x6)):0x0){_0x24833e=_0x2d3b71['indexOf'](_0x24833e);}for(let _0x2238d9=0x0,_0x2f3187=_0xde12f3['length'];_0x2238d9<_0x2f3187;_0x2238d9++){_0x28d994+='%'+('00'+_0xde12f3['charCodeAt'](_0x2238d9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x28d994);};_0xd701['qEXYdD']=_0x291eac,_0x8828c6=arguments,_0xd701['tIVzxi']=!![];}const _0xe8871f=_0x4a72a1[0x0],_0x243a88=_0xd701ee+_0xe8871f,_0x2893f3=_0x8828c6[_0x243a88];return!_0x2893f3?(_0x11dc5b=_0xd701['qEXYdD'](_0x11dc5b),_0x8828c6[_0x243a88]=_0x11dc5b):_0x11dc5b=_0x2893f3,_0x11dc5b;},_0xd701(_0x8828c6,_0x209667);}const lenhsx=global[_0x4b4c8d(0x122)]('lenhsx'),dinhmucsx=global['getModel'](_0x4b4c8d(0x152)),lenhcapphat=global[_0x4b4c8d(0x122)]('lenhcapphat'),sale_contract=global[_0x4b4c8d(0x122)](_0x4b4c8d(0x12b)),dmvt=global[_0x4b4c8d(0x122)]('dmvt'),async=require(_0x4b4c8d(0xae)),utils=require(_0x4b4c8d(0xd6)),controller=require(_0x4b4c8d(0xb6));module['exports']=function(_0x224c70){const _0x5e83c4=_0x4b4c8d,_0x5e7cbe={'ArlUY':function(_0x130347,_0x5c65e1){return _0x130347===_0x5c65e1;},'QdhXW':_0x5e83c4(0x135),'MsNBc':function(_0x1b9dda,_0x384660){return _0x1b9dda/_0x384660;},'SkQyU':function(_0x4e521c,_0x28dd31){return _0x4e521c-_0x28dd31;},'VwprL':_0x5e83c4(0x11e),'KYcvd':function(_0x2a2c77,_0x5c7d66){return _0x2a2c77(_0x5c7d66);},'eMDyr':_0x5e83c4(0x124),'eQSby':'_id','DqXnw':_0x5e83c4(0x111),'HgvGx':_0x5e83c4(0xc6),'pTecP':_0x5e83c4(0xc5),'CClFZ':_0x5e83c4(0x13c),'YIJvz':_0x5e83c4(0xd4),'nbxBA':function(_0x53dd94,_0x14fe9f){return _0x53dd94<_0x14fe9f;},'hRAKA':_0x5e83c4(0x118),'cfhAj':function(_0x4b2f6b,_0x11a766){return _0x4b2f6b!==_0x11a766;},'ZZKRh':_0x5e83c4(0xf6),'UCdFh':_0x5e83c4(0xa2),'fqgyU':_0x5e83c4(0xfd),'pADLP':'lKukG','sOPse':_0x5e83c4(0x102)};new controller(_0x224c70,_0x5e7cbe['sOPse'],function(_0x4f088e,_0x574ada){const _0x7bf6fc=_0x5e83c4,_0x50b10b={'VuQrb':function(_0x130feb){return _0x130feb();},'ImMZa':_0x5e7cbe[_0x7bf6fc(0x145)],'lUvCT':function(_0x174f78,_0x5ea903){return _0x174f78===_0x5ea903;},'DwREg':function(_0xcea246,_0x1a8d02){return _0xcea246*_0x1a8d02;},'JPVZm':function(_0x34cdd2,_0x247cdd){return _0x34cdd2+_0x247cdd;},'pfHLU':function(_0x14b726,_0xca8e64){const _0x1bbee4=_0x7bf6fc;return _0x5e7cbe[_0x1bbee4(0x117)](_0x14b726,_0xca8e64);},'SegbY':function(_0x36eb20,_0x49fb0e){return _0x5e7cbe['SkQyU'](_0x36eb20,_0x49fb0e);},'KIgfj':_0x5e7cbe['VwprL'],'ovvon':_0x7bf6fc(0x10d),'HsyBg':function(_0x1652e1,_0x19deb2){const _0x566997=_0x7bf6fc;return _0x5e7cbe[_0x566997(0xe0)](_0x1652e1,_0x19deb2);},'xYTLq':_0x5e7cbe[_0x7bf6fc(0x129)],'QaJLr':_0x5e7cbe['eQSby'],'qjMrQ':_0x5e7cbe[_0x7bf6fc(0x147)],'ErwVj':_0x5e7cbe[_0x7bf6fc(0xeb)],'OwWMt':_0x5e7cbe[_0x7bf6fc(0x144)],'vulcU':function(_0x60d7db,_0x3ae05d){const _0x2a5882=_0x7bf6fc;return _0x5e7cbe[_0x2a5882(0xe0)](_0x60d7db,_0x3ae05d);},'QiaYc':_0x5e7cbe[_0x7bf6fc(0xd0)],'NwLLs':_0x5e7cbe['YIJvz'],'nAAnB':function(_0xc1c326,_0x4c556d){const _0x528350=_0x7bf6fc;return _0x5e7cbe[_0x528350(0xee)](_0xc1c326,_0x4c556d);},'btHGB':_0x5e7cbe[_0x7bf6fc(0x143)],'qpgBw':function(_0x1cb87e,_0x24def3){const _0x46bdff=_0x7bf6fc;return _0x5e7cbe[_0x46bdff(0x12d)](_0x1cb87e,_0x24def3);},'BEKDb':_0x5e7cbe['ZZKRh'],'zVqub':function(_0x28ba02,_0x40f38b){const _0x47069b=_0x7bf6fc;return _0x5e7cbe[_0x47069b(0xe0)](_0x28ba02,_0x40f38b);},'KsXRk':function(_0x15eeda,_0x3e2f3a){const _0x35ed43=_0x7bf6fc;return _0x5e7cbe[_0x35ed43(0xe0)](_0x15eeda,_0x3e2f3a);}},_0x16696b=_0x4f088e[_0x7bf6fc(0xa5)];if(!_0x16696b[_0x7bf6fc(0xac)]||!_0x16696b['den_ngay']){if(_0x5e7cbe[_0x7bf6fc(0xdc)](_0x5e7cbe['UCdFh'],_0x5e7cbe[_0x7bf6fc(0xd5)]))return _0x5e7cbe[_0x7bf6fc(0xe0)](_0x574ada,_0x5e7cbe[_0x7bf6fc(0x133)]);else _0x50b10b['VuQrb'](_0x313276);}let _0x531bc9={'id_app':_0x16696b['id_app'],'ngay_bat_dau':{'$gte':_0x16696b[_0x7bf6fc(0xac)],'$lte':_0x16696b[_0x7bf6fc(0xcb)]}};_0x16696b[_0x7bf6fc(0xbb)]&&(_0x531bc9[_0x7bf6fc(0x109)]=_0x16696b[_0x7bf6fc(0xbb)]);if(_0x16696b[_0x7bf6fc(0xfb)]){if(_0x7bf6fc(0x11b)===_0x5e7cbe[_0x7bf6fc(0xa4)]){const _0x474915={'PxNEa':function(_0x4ed0de,_0x1d9108){return _0x5e7cbe['ArlUY'](_0x4ed0de,_0x1d9108);},'dEcYF':function(_0x415ebc,_0x3faba4){const _0x94bdc8=_0x7bf6fc;return _0x5e7cbe[_0x94bdc8(0xdc)](_0x415ebc,_0x3faba4);}};_0x168227[_0x7bf6fc(0xc4)]=_0x50cd21['details_dm']['filter'](_0x2c476d=>{const _0x3cb242=_0x7bf6fc;return(!_0x2c476d[_0x3cb242(0x107)]||_0x474915[_0x3cb242(0x14e)](_0x2c476d['ma_tt1_sp'],_0x53eac4[_0x3cb242(0x107)]))&&(!_0x2c476d[_0x3cb242(0x121)]||_0x2c476d[_0x3cb242(0x121)]===_0x5dd258[_0x3cb242(0x121)])&&(!_0x2c476d[_0x3cb242(0xb9)]||_0x474915[_0x3cb242(0x123)](_0x2c476d['ma_tt3_sp'],_0x221a42[_0x3cb242(0xb9)]));}),_0x498014[_0x7bf6fc(0xc4)][_0x7bf6fc(0x139)](_0x245ad9=>{const _0x22fd8f=_0x7bf6fc,_0x3199c2=_0x50b10b[_0x22fd8f(0x14f)]['split']('|');let _0xd3eb29=0x0;while(!![]){switch(_0x3199c2[_0xd3eb29++]){case'0':_0x245ad9['sl_da_nhap']=0x0;continue;case'1':_0x245ad9[_0x22fd8f(0xbb)]=_0x43d141[_0x22fd8f(0x109)][_0x22fd8f(0xc7)]();continue;case'2':_0x245ad9[_0x22fd8f(0x107)]=_0x3ff014[_0x22fd8f(0x107)];continue;case'3':_0x245ad9[_0x22fd8f(0xfb)]=_0x23129f[_0x22fd8f(0xfb)];continue;case'4':_0x245ad9[_0x22fd8f(0xb9)]=_0x3320e8[_0x22fd8f(0xb9)];continue;case'5':_0x245ad9[_0x22fd8f(0xdd)]=_0x29cafe[_0x22fd8f(0xe5)](_0x50b10b[_0x22fd8f(0x13b)](_0x245ad9[_0x22fd8f(0xfc)],0x1)?_0x50b10b[_0x22fd8f(0x127)](_0x245ad9[_0x22fd8f(0xe2)],_0x245ad9['sl_dinh_muc']):_0x245ad9[_0x22fd8f(0xe7)],0x2);continue;case'6':_0x245ad9[_0x22fd8f(0xd7)]=_0x5e44dd[_0x22fd8f(0xea)][_0x22fd8f(0xc7)]();continue;case'7':_0x245ad9[_0x22fd8f(0x121)]=_0x15f3c9[_0x22fd8f(0x121)];continue;case'8':_0x245ad9[_0x22fd8f(0xbd)]=0x0;continue;case'9':_0x245ad9[_0x22fd8f(0xad)]=0x0;continue;case'10':_0x245ad9[_0x22fd8f(0x125)]=0x0;continue;case'11':_0x245ad9['gia']=0x0;continue;case'12':_0x245ad9[_0x22fd8f(0x132)]=_0x171bec[_0x22fd8f(0x132)];continue;case'13':_0x245ad9[_0x22fd8f(0x112)]=_0x50b10b[_0x22fd8f(0x13f)](_0x245ad9[_0x22fd8f(0xdd)],_0x245ad9[_0x22fd8f(0xa1)]);continue;case'14':_0x245ad9['sl_hao_hut']=_0x4f0f13[_0x22fd8f(0xe5)](_0x50b10b[_0x22fd8f(0xce)](_0x50b10b[_0x22fd8f(0x127)](_0x245ad9[_0x22fd8f(0xdd)],_0x245ad9[_0x22fd8f(0xaa)]),0x64),0x2);continue;case'15':_0x245ad9[_0x22fd8f(0xe2)]=_0x3f4187[_0x22fd8f(0xe2)];continue;case'16':_0x245ad9[_0x22fd8f(0x12a)]=0x0;continue;case'17':_0x245ad9[_0x22fd8f(0xa8)]=0x0;continue;case'18':_0x245ad9[_0x22fd8f(0xb8)]=0x0;continue;case'19':_0x245ad9[_0x22fd8f(0xe9)]=0x0;continue;case'20':_0x245ad9['sl_dinh_muc']=_0x245ad9['ma_sp']=_0xf5c003['ma_sp'];continue;case'21':_0x245ad9[_0x22fd8f(0xba)]=0x0;continue;case'22':_0x245ad9['sl_ke_hoach']=_0x50b10b[_0x22fd8f(0xd2)](_0x245ad9['sl_nhu_cau'],_0x245ad9['sl_da_cap_phat']);continue;case'23':_0x245ad9[_0x22fd8f(0xd9)]=_0x50b10b[_0x22fd8f(0xce)](_0x48a80e[_0x22fd8f(0xd9)],_0x21f1cc[_0x22fd8f(0x134)]||0x1);continue;}break;}});}else _0x531bc9['id_contract']=_0x16696b['id_contract'];}lenhsx[_0x7bf6fc(0x13d)](_0x531bc9)['lean']()['exec']((_0x3c0798,_0x3c6f5b)=>{const _0x325a1b=_0x7bf6fc,_0x451ae7={'NedMa':_0x50b10b['KIgfj'],'WUJlE':function(_0x20da41,_0x510844){return _0x20da41+_0x510844;},'gbbwb':function(_0x1d2896,_0x32d2d5){return _0x1d2896/_0x32d2d5;},'nLxZV':function(_0x214bb4,_0x440bca){return _0x50b10b['lUvCT'](_0x214bb4,_0x440bca);},'EvpmT':function(_0x225ef1,_0x11919c){return _0x50b10b['SegbY'](_0x225ef1,_0x11919c);},'xYgmr':_0x50b10b['ovvon'],'jvsmB':function(_0x15f268,_0x309a7a){const _0x133563=_0xd701;return _0x50b10b[_0x133563(0x115)](_0x15f268,_0x309a7a);},'oohIM':_0x50b10b['xYTLq'],'xiRGJ':_0x50b10b['QaJLr'],'NerIM':_0x50b10b[_0x325a1b(0x12e)],'ptops':_0x50b10b['ErwVj'],'DBeox':function(_0x54b967,_0x28871f){const _0x33e2a8=_0x325a1b;return _0x50b10b[_0x33e2a8(0x13b)](_0x54b967,_0x28871f);},'YvLvW':function(_0x2f9067,_0x332089){const _0x54ebee=_0x325a1b;return _0x50b10b[_0x54ebee(0x13b)](_0x2f9067,_0x332089);},'ECMSt':function(_0x357b15,_0x2c1341){return _0x357b15/_0x2c1341;},'efxON':function(_0x2f950e,_0x3c3dbe){return _0x2f950e*_0x3c3dbe;},'RRyDk':function(_0x231d4b,_0xdcc769){const _0x183ffc=_0x325a1b;return _0x50b10b[_0x183ffc(0xd2)](_0x231d4b,_0xdcc769);},'OapPl':function(_0x3c5277){return _0x3c5277();},'sJWeT':_0x50b10b['OwWMt'],'FRLZc':_0x325a1b(0xbf),'LgpRr':function(_0x2bf36b,_0x889a02){const _0x1b6f1f=_0x325a1b;return _0x50b10b[_0x1b6f1f(0x113)](_0x2bf36b,_0x889a02);},'tTAGC':function(_0x428755){const _0x59b1f8=_0x325a1b;return _0x50b10b[_0x59b1f8(0xcc)](_0x428755);},'juOib':_0x50b10b[_0x325a1b(0x154)],'VqRcc':_0x50b10b['NwLLs'],'tRKKC':function(_0x3754b3,_0x4bfaa9){return _0x50b10b['nAAnB'](_0x3754b3,_0x4bfaa9);},'FIxkS':_0x50b10b[_0x325a1b(0x14c)],'DTdxM':function(_0xcdfcad,_0x4eb729){return _0x50b10b['qpgBw'](_0xcdfcad,_0x4eb729);},'PbAOv':_0x50b10b[_0x325a1b(0x142)],'CFlHh':function(_0x3ec76b,_0x1af11d){const _0x49e810=_0x325a1b;return _0x50b10b[_0x49e810(0x11a)](_0x3ec76b,_0x1af11d);}};if(_0x3c0798)return console[_0x325a1b(0xb2)](_0x50b10b[_0x325a1b(0x13a)],_0x3c0798),_0x50b10b[_0x325a1b(0xe8)](_0x574ada,_0x3c0798);async[_0x325a1b(0x9c)](_0x3c6f5b,0x14,(_0xfc2863,_0x17c91d)=>{const _0x4a50c8=_0x325a1b,_0x4ec3bb={'qvXxo':_0x451ae7[_0x4a50c8(0x10b)],'nbfDI':function(_0x1dc8ad,_0x1a7b2d){const _0x402426=_0x4a50c8;return _0x451ae7[_0x402426(0xc3)](_0x1dc8ad,_0x1a7b2d);},'YPxuJ':function(_0x23a2b9,_0xb47d4a){const _0x56c9b3=_0x4a50c8;return _0x451ae7[_0x56c9b3(0xf5)](_0x23a2b9,_0xb47d4a);},'VPcLb':function(_0x2fd391,_0x29be8e){return _0x451ae7['nLxZV'](_0x2fd391,_0x29be8e);},'pFGPw':function(_0x36ebe1,_0x1d9b02){const _0x58da76=_0x4a50c8;return _0x451ae7[_0x58da76(0xc2)](_0x36ebe1,_0x1d9b02);},'NRFsn':function(_0x155a94){return _0x155a94();},'lycdY':_0x451ae7[_0x4a50c8(0xf7)],'hqylP':function(_0xdda045,_0x5af789){return _0x451ae7['jvsmB'](_0xdda045,_0x5af789);}};if(_0x451ae7[_0x4a50c8(0xed)](_0x451ae7[_0x4a50c8(0xf9)],_0x451ae7[_0x4a50c8(0xf9)]))_0xfc2863[_0x4a50c8(0x111)][_0x4a50c8(0xc8)](_0x16696b[_0x4a50c8(0xfa)],dinhmucsx,{'where':{'id_dinhmucsx':_0x451ae7['xiRGJ']},'fields':{'details_dm':_0x451ae7['NerIM'],'so_luong_dm':_0x451ae7[_0x4a50c8(0x10c)]}},function(){const _0x468af6=_0x4a50c8,_0x2e4ea7={'dQGmY':function(_0x2cbe82,_0x1c606a){const _0x457e02=_0xd701;return _0x4ec3bb[_0x457e02(0x11d)](_0x2cbe82,_0x1c606a);},'kIScu':function(_0x285073,_0x11af88){return _0x285073===_0x11af88;}};_0xfc2863[_0x468af6(0x111)]['filter'](_0x127e3b=>_0x127e3b[_0x468af6(0xc4)])[_0x468af6(0x139)](_0x2be42f=>{const _0x3669f0=_0x468af6,_0x52a1de={'ItMrk':_0x4ec3bb[_0x3669f0(0x103)],'jazjn':function(_0x298cb4,_0x21fb66){return _0x4ec3bb['nbfDI'](_0x298cb4,_0x21fb66);},'pApxA':function(_0x1b094d,_0x534182){const _0x20ef1f=_0x3669f0;return _0x4ec3bb[_0x20ef1f(0x14a)](_0x1b094d,_0x534182);},'pBMrF':function(_0x4f1794,_0x60b16b){return _0x4ec3bb['VPcLb'](_0x4f1794,_0x60b16b);},'suIVI':function(_0x53786a,_0x460a01){return _0x4ec3bb['pFGPw'](_0x53786a,_0x460a01);}};_0x2be42f[_0x3669f0(0xc4)]=_0x2be42f[_0x3669f0(0xc4)][_0x3669f0(0x131)](_0x97b180=>{const _0x505167=_0x3669f0;return(!_0x97b180[_0x505167(0x107)]||_0x2e4ea7[_0x505167(0x138)](_0x97b180[_0x505167(0x107)],_0x2be42f[_0x505167(0x107)]))&&(!_0x97b180[_0x505167(0x121)]||_0x2e4ea7[_0x505167(0x138)](_0x97b180['ma_tt2_sp'],_0x2be42f['ma_tt2_sp']))&&(!_0x97b180[_0x505167(0xb9)]||_0x2e4ea7[_0x505167(0x100)](_0x97b180['ma_tt3_sp'],_0x2be42f[_0x505167(0xb9)]));}),_0x2be42f[_0x3669f0(0xc4)][_0x3669f0(0x139)](_0x2fd811=>{const _0x8e2981=_0x3669f0,_0x30951e=_0x52a1de['ItMrk']['split']('|');let _0x1cb496=0x0;while(!![]){switch(_0x30951e[_0x1cb496++]){case'0':_0x2fd811[_0x8e2981(0x125)]=0x0;continue;case'1':_0x2fd811[_0x8e2981(0xe9)]=0x0;continue;case'2':_0x2fd811[_0x8e2981(0x107)]=_0x2be42f[_0x8e2981(0x107)];continue;case'3':_0x2fd811[_0x8e2981(0x121)]=_0x2be42f[_0x8e2981(0x121)];continue;case'4':_0x2fd811['sl_nhu_cau']=_0x52a1de[_0x8e2981(0x10f)](_0x2fd811['sl_nhu_cau_chua_hao_hut'],_0x2fd811[_0x8e2981(0xa1)]);continue;case'5':_0x2fd811[_0x8e2981(0xbb)]=_0xfc2863[_0x8e2981(0x109)][_0x8e2981(0xc7)]();continue;case'6':_0x2fd811['so_ct_lenhsx']=_0xfc2863[_0x8e2981(0xea)][_0x8e2981(0xc7)]();continue;case'7':_0x2fd811[_0x8e2981(0xfb)]=_0xfc2863[_0x8e2981(0xfb)];continue;case'8':_0x2fd811[_0x8e2981(0x132)]=_0x2be42f['ma_dvt_sp'];continue;case'9':_0x2fd811['sl_hao_hut']=utils['round'](_0x52a1de[_0x8e2981(0xca)](_0x2fd811[_0x8e2981(0xdd)]*_0x2fd811[_0x8e2981(0xaa)],0x64),0x2);continue;case'10':_0x2fd811[_0x8e2981(0xbd)]=0x0;continue;case'11':_0x2fd811[_0x8e2981(0xc0)]=0x0;continue;case'12':_0x2fd811['ma_tt3_sp']=_0x2be42f[_0x8e2981(0xb9)];continue;case'13':_0x2fd811[_0x8e2981(0xba)]=0x0;continue;case'14':_0x2fd811[_0x8e2981(0xa7)]=0x0;continue;case'15':_0x2fd811['sl_sx']=_0x2be42f[_0x8e2981(0xe2)];continue;case'16':_0x2fd811[_0x8e2981(0xad)]=0x0;continue;case'17':_0x2fd811[_0x8e2981(0xd9)]=_0x2be42f[_0x8e2981(0xd9)]/(_0x2be42f[_0x8e2981(0x134)]||0x1);continue;case'18':_0x2fd811['gia_nt']=0x0;continue;case'19':_0x2fd811[_0x8e2981(0xb8)]=0x0;continue;case'20':_0x2fd811[_0x8e2981(0xe7)]=_0x2fd811[_0x8e2981(0xc1)]=_0x2be42f[_0x8e2981(0xc1)];continue;case'21':_0x2fd811[_0x8e2981(0xa8)]=0x0;continue;case'22':_0x2fd811['sl_nhu_cau_chua_hao_hut']=utils[_0x8e2981(0xe5)](_0x52a1de[_0x8e2981(0x12f)](_0x2fd811[_0x8e2981(0xfc)],0x1)?_0x2fd811['sl_sx']*_0x2fd811[_0x8e2981(0xe7)]:_0x2fd811['sl_dinh_muc'],0x2);continue;case'23':_0x2fd811[_0x8e2981(0x140)]=_0x52a1de[_0x8e2981(0xec)](_0x2fd811['sl_nhu_cau'],_0x2fd811[_0x8e2981(0xbd)]);continue;}break;}});}),_0x4ec3bb[_0x468af6(0xef)](_0x17c91d);});else return _0x15acfa[_0x4a50c8(0xb2)](_0x4ec3bb[_0x4a50c8(0xdb)],_0x55f998),_0x4ec3bb[_0x4a50c8(0xc9)](_0x1e085a,_0x27e446);},_0x59b6c4=>{const _0x5dfc39=_0x325a1b,_0x319072={'wJwhQ':function(_0x74bfae,_0x19b461){const _0x1b6022=_0xd701;return _0x451ae7[_0x1b6022(0xed)](_0x74bfae,_0x19b461);},'qHhfb':_0x451ae7[_0x5dfc39(0xbc)],'zefiy':_0x451ae7[_0x5dfc39(0x120)],'pJVJu':function(_0x22e0c7,_0x230b0d){return _0x451ae7['LgpRr'](_0x22e0c7,_0x230b0d);},'qYGiE':function(_0x25e5c3,_0x171d29){return _0x25e5c3-_0x171d29;},'zLAjG':function(_0x2a61bb,_0x284285){return _0x2a61bb<_0x284285;},'SjaCj':function(_0xf14b61){const _0x17c0b0=_0x5dfc39;return _0x451ae7[_0x17c0b0(0xb0)](_0xf14b61);},'FUdFd':_0x451ae7[_0x5dfc39(0xff)],'MlfTq':_0x451ae7[_0x5dfc39(0xf0)],'UzbEV':_0x5dfc39(0x109),'OOlOB':_0x5dfc39(0x126),'ptJOf':function(_0x1182df,_0x257865){const _0x12d902=_0x5dfc39;return _0x451ae7[_0x12d902(0x114)](_0x1182df,_0x257865);},'DLUcQ':_0x451ae7[_0x5dfc39(0x105)]};if(_0x451ae7[_0x5dfc39(0x101)](_0x5dfc39(0x12c),_0x451ae7[_0x5dfc39(0xa3)])){if(_0x59b6c4)return _0x451ae7[_0x5dfc39(0xf4)](_0x574ada,_0x59b6c4);let _0x372ff8=_0x3c6f5b[_0x5dfc39(0x157)](_0x274958=>_0x274958['details'])[_0x5dfc39(0xda)]((_0x222be4,_0x4bb782)=>_0x222be4['concat'](_0x4bb782),[])[_0x5dfc39(0x157)](_0x43c46e=>_0x43c46e['details_dm'])[_0x5dfc39(0xda)]((_0x65e239,_0x489f0e)=>_0x65e239['concat'](_0x489f0e),[])['filter'](_0x44d257=>_0x44d257);async[_0x5dfc39(0x9c)](_0x372ff8,0x14,(_0x9e83bc,_0x53aef0)=>{const _0x2f9730=_0x5dfc39;lenhcapphat['find']({'id_lenhsx':_0x9e83bc[_0x2f9730(0xbb)]})[_0x2f9730(0x14b)]()[_0x2f9730(0xa6)]((_0x45e988,_0x2c271d)=>{const _0x5a487f=_0x2f9730;if(_0x319072[_0x5a487f(0xf1)]('lyPSP',_0x319072[_0x5a487f(0x108)])){const _0x39f050=_0x319072[_0x5a487f(0x156)][_0x5a487f(0x119)]('|');let _0x312bfd=0x0;while(!![]){switch(_0x39f050[_0x312bfd++]){case'0':if(_0x45e988)return _0x319072[_0x5a487f(0x141)](_0x53aef0,_0x45e988);continue;case'1':_0x9e83bc['sl_da_cap_phat']=_0x2c271d[_0x5a487f(0x157)](_0x157098=>_0x157098[_0x5a487f(0x111)][_0x5a487f(0x131)](_0x3fcac8=>_0x3fcac8['ma_sp']==_0x9e83bc['ma_sp']&&_0x3fcac8[_0x5a487f(0x13c)]===_0x9e83bc[_0x5a487f(0x13c)]&&(!_0x3fcac8[_0x5a487f(0xaf)]&&!_0x9e83bc[_0x5a487f(0xaf)]||_0x3fcac8[_0x5a487f(0xaf)]===_0x9e83bc[_0x5a487f(0xaf)])&&(!_0x3fcac8[_0x5a487f(0x11c)]&&!_0x9e83bc['ma_tt2']||_0x3fcac8[_0x5a487f(0x11c)]===_0x9e83bc[_0x5a487f(0x11c)])&&(!_0x3fcac8[_0x5a487f(0xe6)]&&!_0x9e83bc['ma_tt3']||_0x3fcac8[_0x5a487f(0xe6)]===_0x9e83bc[_0x5a487f(0xe6)])&&(!_0x3fcac8[_0x5a487f(0x107)]&&!_0x9e83bc[_0x5a487f(0x107)]||_0x3fcac8[_0x5a487f(0x107)]===_0x9e83bc['ma_tt1_sp'])&&(!_0x3fcac8[_0x5a487f(0x121)]&&!_0x9e83bc[_0x5a487f(0x121)]||_0x3fcac8[_0x5a487f(0x121)]===_0x9e83bc[_0x5a487f(0x121)])&&(!_0x3fcac8[_0x5a487f(0xb9)]&&!_0x9e83bc[_0x5a487f(0xb9)]||_0x3fcac8[_0x5a487f(0xb9)]===_0x9e83bc[_0x5a487f(0xb9)])&&(!_0x3fcac8['ma_cum_chi_tiet']&&!_0x9e83bc[_0x5a487f(0x106)]||_0x3fcac8['ma_cum_chi_tiet']===_0x9e83bc[_0x5a487f(0x106)])&&(!_0x3fcac8[_0x5a487f(0x10e)]&&!_0x9e83bc[_0x5a487f(0x10e)]||_0x3fcac8[_0x5a487f(0x10e)]===_0x9e83bc['ten_cum_chi_tiet'])&&(!_0x3fcac8[_0x5a487f(0x10a)]&&!_0x9e83bc[_0x5a487f(0x10a)]||_0x3fcac8[_0x5a487f(0x10a)]===_0x9e83bc['ma_cong_doan']))['csum']('so_luong'))[_0x5a487f(0xda)]((_0x1731b6,_0x4fe816)=>_0x1731b6+_0x4fe816,0x0);continue;case'2':_0x9e83bc[_0x5a487f(0x140)]=_0x319072['qYGiE'](_0x9e83bc[_0x5a487f(0x112)],_0x9e83bc[_0x5a487f(0xbd)]);continue;case'3':_0x53aef0();continue;case'4':if(_0x319072[_0x5a487f(0xb3)](_0x9e83bc[_0x5a487f(0x140)],0x0))_0x9e83bc[_0x5a487f(0x140)]=0x0;continue;}break;}}else _0x2238d9['id_contract']=_0x2f3187['id_contract'];});},_0x2ec902=>{const _0xb7b503=_0x5dfc39,_0x4a233d={'BUNZD':'DItpq','PZKPJ':_0x319072[_0xb7b503(0x149)],'ZDkfm':'so_ct','MeaHp':function(_0x361e34,_0x23044f){return _0x361e34===_0x23044f;},'bEdgt':_0x319072['OOlOB'],'qDwPe':function(_0x174c10,_0x285adc){return _0x319072['ptJOf'](_0x174c10,_0x285adc);},'zMotC':_0x319072[_0xb7b503(0x9d)],'yTYzj':function(_0x5d5f03,_0x4e52ef,_0x1bc051){return _0x5d5f03(_0x4e52ef,_0x1bc051);}};if(_0x2ec902)return _0x319072[_0xb7b503(0x141)](_0x574ada,_0x2ec902);async[_0xb7b503(0xe1)]([_0x118b7b=>{const _0x525867=_0xb7b503,_0x48fa51={'QvWhC':function(_0x146794){const _0x339ede=_0xd701;return _0x319072[_0x339ede(0xe4)](_0x146794);}};_0x372ff8[_0x525867(0xc8)](_0x16696b[_0x525867(0xfa)],dmvt,[{'where':_0x319072['FUdFd'],'fields':_0x319072[_0x525867(0x155)]},{'where':{'ma_sp':'ma_vt'},'fields':{'ten_sp':_0x319072[_0x525867(0x155)]}}],()=>{const _0x3c7195=_0x525867;_0x48fa51[_0x3c7195(0xf2)](_0x118b7b);});},_0x54f4a8=>{const _0x413dba=_0xb7b503,_0x1b7afb={'idblj':function(_0x557beb){return _0x557beb();}};_0x413dba(0x9f)!==_0x4a233d['BUNZD']?_0x372ff8['joinModel2'](_0x16696b[_0x413dba(0xfa)],sale_contract,[{'where':{'id_contract':_0x4a233d[_0x413dba(0x137)]},'fields':{'so_ct_contract':_0x4a233d[_0x413dba(0x116)]}}],()=>{const _0x7c711c=_0x413dba;_0x1b7afb[_0x7c711c(0x150)](_0x54f4a8);}):_0x285842();}],()=>{const _0x1cb372=_0xb7b503,_0x214ffa={'QHebb':function(_0x149df8){return _0x149df8();},'wnaIN':_0x4a233d[_0x1cb372(0x137)],'LVMdY':'so_ct'};if(_0x4a233d[_0x1cb372(0xd8)](_0x1cb372(0xd1),_0x4a233d[_0x1cb372(0xb5)])){let _0x578ab1=_0x2aad54['filter'](_0x5b556f=>_0x5b556f[_0x1cb372(0x112)]>0x0),_0x41e1fa=0x0;for(_0x41e1fa=0x0;_0x41e1fa<_0x578ab1[_0x1cb372(0x153)];_0x41e1fa++){_0x578ab1[_0x41e1fa][_0x1cb372(0xa0)]=_0x41e1fa,delete _0x578ab1[_0x41e1fa][_0x1cb372(0x109)],delete _0x578ab1[_0x41e1fa][_0x1cb372(0xab)];}_0x11c8e4(null,_0x578ab1);}else{let _0x5bdad4=_0x372ff8['filter'](_0x49f7cc=>_0x49f7cc[_0x1cb372(0x112)]>0x0),_0x340a5c=0x0;for(_0x340a5c=0x0;_0x4a233d[_0x1cb372(0x110)](_0x340a5c,_0x5bdad4[_0x1cb372(0x153)]);_0x340a5c++){_0x4a233d[_0x1cb372(0x130)]==='oDSzv'?_0xc8ad9f[_0x1cb372(0xc8)](_0x57a325[_0x1cb372(0xfa)],_0x452eca,[{'where':{'id_contract':_0x214ffa[_0x1cb372(0xb4)]},'fields':{'so_ct_contract':_0x214ffa[_0x1cb372(0xcf)]}}],()=>{_0x214ffa['QHebb'](_0x331471);}):(_0x5bdad4[_0x340a5c][_0x1cb372(0xa0)]=_0x340a5c,delete _0x5bdad4[_0x340a5c][_0x1cb372(0x109)],delete _0x5bdad4[_0x340a5c][_0x1cb372(0xab)]);}_0x4a233d[_0x1cb372(0x128)](_0x574ada,null,_0x5bdad4);}});});}else{const _0x56c151={'qiKqh':function(_0x218670,_0x4ea633){return _0x451ae7['DBeox'](_0x218670,_0x4ea633);},'adZay':function(_0x524224,_0x3c5e13){return _0x451ae7['YvLvW'](_0x524224,_0x3c5e13);},'jrveF':function(_0x4e353e,_0x31a266){const _0xcaad11=_0x5dfc39;return _0x451ae7[_0xcaad11(0xb1)](_0x4e353e,_0x31a266);},'RxdmK':function(_0x5732c8,_0x53c876){const _0x5f204d=_0x5dfc39;return _0x451ae7[_0x5f204d(0xbe)](_0x5732c8,_0x53c876);},'oogUM':function(_0x9e2f8,_0x313012){const _0x5c16d0=_0x5dfc39;return _0x451ae7[_0x5c16d0(0xbe)](_0x9e2f8,_0x313012);},'atMsb':function(_0x25467c,_0x2ea62c){return _0x451ae7['WUJlE'](_0x25467c,_0x2ea62c);},'IzORi':function(_0x468fdd,_0x1edee4){const _0xaa019d=_0x5dfc39;return _0x451ae7[_0xaa019d(0xa9)](_0x468fdd,_0x1edee4);}};_0x110849[_0x5dfc39(0x111)][_0x5dfc39(0x131)](_0x4b1229=>_0x4b1229[_0x5dfc39(0xc4)])[_0x5dfc39(0x139)](_0x3844d8=>{const _0x23dcc1=_0x5dfc39;_0x3844d8[_0x23dcc1(0xc4)]=_0x3844d8['details_dm'][_0x23dcc1(0x131)](_0x58c542=>{const _0x5bfbee=_0x23dcc1;return(!_0x58c542[_0x5bfbee(0x107)]||_0x56c151[_0x5bfbee(0xcd)](_0x58c542[_0x5bfbee(0x107)],_0x3844d8[_0x5bfbee(0x107)]))&&(!_0x58c542[_0x5bfbee(0x121)]||_0x56c151[_0x5bfbee(0xde)](_0x58c542[_0x5bfbee(0x121)],_0x3844d8[_0x5bfbee(0x121)]))&&(!_0x58c542[_0x5bfbee(0xb9)]||_0x56c151[_0x5bfbee(0xcd)](_0x58c542[_0x5bfbee(0xb9)],_0x3844d8[_0x5bfbee(0xb9)]));}),_0x3844d8['details_dm'][_0x23dcc1(0x139)](_0x26a746=>{const _0x29fca2=_0x23dcc1;_0x26a746[_0x29fca2(0xe7)]=_0x26a746[_0x29fca2(0xc1)]=_0x3844d8[_0x29fca2(0xc1)],_0x26a746['ma_dvt_sp']=_0x3844d8[_0x29fca2(0x132)],_0x26a746['ma_tt1_sp']=_0x3844d8[_0x29fca2(0x107)],_0x26a746[_0x29fca2(0x121)]=_0x3844d8[_0x29fca2(0x121)],_0x26a746[_0x29fca2(0xb9)]=_0x3844d8['ma_tt3_sp'],_0x26a746['id_dinhmucsx']=_0x56c151[_0x29fca2(0x148)](_0x3844d8[_0x29fca2(0xd9)],_0x3844d8[_0x29fca2(0x134)]||0x1),_0x26a746[_0x29fca2(0xbb)]=_0x54995d[_0x29fca2(0x109)][_0x29fca2(0xc7)](),_0x26a746[_0x29fca2(0xd7)]=_0x16af0c[_0x29fca2(0xea)][_0x29fca2(0xc7)](),_0x26a746[_0x29fca2(0xfb)]=_0x13392e['id_contract'],_0x26a746['sl_sx']=_0x3844d8[_0x29fca2(0xe2)],_0x26a746[_0x29fca2(0xdd)]=_0x30c6e4['round'](_0x56c151[_0x29fca2(0xde)](_0x26a746[_0x29fca2(0xfc)],0x1)?_0x56c151[_0x29fca2(0x136)](_0x26a746[_0x29fca2(0xe2)],_0x26a746[_0x29fca2(0xe7)]):_0x26a746[_0x29fca2(0xe7)],0x2),_0x26a746[_0x29fca2(0xa1)]=_0x55b046[_0x29fca2(0xe5)](_0x56c151['jrveF'](_0x56c151[_0x29fca2(0x146)](_0x26a746[_0x29fca2(0xdd)],_0x26a746[_0x29fca2(0xaa)]),0x64),0x2),_0x26a746[_0x29fca2(0x112)]=_0x56c151['atMsb'](_0x26a746[_0x29fca2(0xdd)],_0x26a746[_0x29fca2(0xa1)]),_0x26a746[_0x29fca2(0xbd)]=0x0,_0x26a746[_0x29fca2(0x140)]=_0x56c151[_0x29fca2(0x13e)](_0x26a746[_0x29fca2(0x112)],_0x26a746['sl_da_cap_phat']),_0x26a746[_0x29fca2(0x125)]=0x0,_0x26a746[_0x29fca2(0xa7)]=0x0,_0x26a746[_0x29fca2(0xc0)]=0x0,_0x26a746[_0x29fca2(0x12a)]=0x0,_0x26a746[_0x29fca2(0xe9)]=0x0,_0x26a746[_0x29fca2(0xba)]=0x0,_0x26a746['thue_suat']=0x0,_0x26a746[_0x29fca2(0xad)]=0x0,_0x26a746['thue_nt']=0x0;});}),_0x451ae7[_0x5dfc39(0xfe)](_0x479594);}});});});};
@@ -1,3 +1 @@
1
- const ckdiem=require("../../libs/ckdiem"),Wallet=global.getModel("wallet"),controller=require("../../controllers/controllerRPT");
2
- module.exports=function($router$$){new controller($router$$,"wallet",($req$$,$callback$$)=>{const $condition$$=$req$$.query;$condition$$.email=$req$$.user.email;ckdiem($condition$$,async($_wallet_error$$,$report$$)=>{if($_wallet_error$$)return $callback$$($_wallet_error$$);let $publicKey$$;try{$publicKey$$=await Wallet.getPublicKey($condition$$.id_app,$condition$$.email)}catch($e$$){return $callback$$($e$$.message)}$_wallet_error$$={balance:$report$$.map($a$$=>$a$$.ton00).reduce(($a$$,$b$$)=>$a$$+
3
- $b$$,0),publicKey:$publicKey$$};$callback$$(null,$_wallet_error$$)})});new controller($router$$,"wallet/info",async($req$$,$callback$$)=>{const $condition$$={};$req$$.query.email&&($condition$$.email=$req$$.query.email);$condition$$.id_app=$req$$.user.current_id_app;try{const $ws$$=await Wallet.find($condition$$,{email:1,publicKey:1});$callback$$(null,$ws$$)}catch($e$$){$callback$$($e$$.message)}})};
1
+ function _0xdd35(_0x22e68a,_0x4895d4){const _0x369a4a=_0x369a();return _0xdd35=function(_0xdd3564,_0x379739){_0xdd3564=_0xdd3564-0xdf;let _0x3e0a74=_0x369a4a[_0xdd3564];if(_0xdd35['mgYxrX']===undefined){var _0x2b97bb=function(_0x2998af){const _0x32141f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3d6ce9='',_0x49ac46='';for(let _0x114af4=0x0,_0x56d8e8,_0x3b447f,_0x1c915c=0x0;_0x3b447f=_0x2998af['charAt'](_0x1c915c++);~_0x3b447f&&(_0x56d8e8=_0x114af4%0x4?_0x56d8e8*0x40+_0x3b447f:_0x3b447f,_0x114af4++%0x4)?_0x3d6ce9+=String['fromCharCode'](0xff&_0x56d8e8>>(-0x2*_0x114af4&0x6)):0x0){_0x3b447f=_0x32141f['indexOf'](_0x3b447f);}for(let _0x38cd7a=0x0,_0x1d0971=_0x3d6ce9['length'];_0x38cd7a<_0x1d0971;_0x38cd7a++){_0x49ac46+='%'+('00'+_0x3d6ce9['charCodeAt'](_0x38cd7a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x49ac46);};_0xdd35['jwZorN']=_0x2b97bb,_0x22e68a=arguments,_0xdd35['mgYxrX']=!![];}const _0x4d98c0=_0x369a4a[0x0],_0x3b9c55=_0xdd3564+_0x4d98c0,_0x105ed8=_0x22e68a[_0x3b9c55];return!_0x105ed8?(_0x3e0a74=_0xdd35['jwZorN'](_0x3e0a74),_0x22e68a[_0x3b9c55]=_0x3e0a74):_0x3e0a74=_0x105ed8,_0x3e0a74;},_0xdd35(_0x22e68a,_0x4895d4);}const _0x1ce14f=_0xdd35;function _0x369a(){const _0x561fb4=['mty0mtu0nhLquK5Qta','odu2nJi0m0vRy2ntEa','s1PjA0S','zw1HAwW','nJiZmdi5nxvUC1fUEG','z2v0tw9KzwW','zwfUAKe','BwvZC2fNzq','BwfW','ndaYnZKYu2DbrMzu','nZbtshzlsg4','CxvLCNK','qvbOCeW','oteZndC4refcBxr6','mM9UEuLvrq','mtu1ndu1ofn5txHSwq','zMLUza','mJeYmdHhwunNAvy','D2fSBgv0','AwrFyxbW','lI4VlI4VBgLICY9JA2rPzw0','yNHSqvK','DxnLCG','Dg9Umda','z2v0uhvIBgLJs2v5'];_0x369a=function(){return _0x561fb4;};return _0x369a();}(function(_0x56bf78,_0x592d81){const _0x49ff8d=_0xdd35,_0x1caf7b=_0x56bf78();while(!![]){try{const _0x21346b=parseInt(_0x49ff8d(0xf6))/0x1*(parseInt(_0x49ff8d(0xf7))/0x2)+parseInt(_0x49ff8d(0xdf))/0x3+-parseInt(_0x49ff8d(0xe1))/0x4+parseInt(_0x49ff8d(0xf3))/0x5*(parseInt(_0x49ff8d(0xf2))/0x6)+-parseInt(_0x49ff8d(0xea))/0x7+parseInt(_0x49ff8d(0xe9))/0x8+-parseInt(_0x49ff8d(0xed))/0x9;if(_0x21346b===_0x592d81)break;else _0x1caf7b['push'](_0x1caf7b['shift']());}catch(_0x4d4cee){_0x1caf7b['push'](_0x1caf7b['shift']());}}}(_0x369a,0xa0027));const ckdiem=require(_0x1ce14f(0xe4)),Wallet=global[_0x1ce14f(0xee)]('wallet'),controller=require('../../controllers/controllerRPT');module['exports']=function(_0x5c8689){const _0x1b8928=_0x1ce14f,_0x2d2e54={'APhpL':function(_0x4e19f3,_0x31e1d7){return _0x4e19f3(_0x31e1d7);},'KZIkK':function(_0x3eb488,_0x5dba0b,_0x4f1dc8){return _0x3eb488(_0x5dba0b,_0x4f1dc8);},'OeFtn':function(_0x224a3f,_0xc5e0fb){return _0x224a3f(_0xc5e0fb);},'bxlAY':_0x1b8928(0xe2),'eanjA':'wallet/info'};new controller(_0x5c8689,_0x2d2e54[_0x1b8928(0xe5)],(_0x57acb2,_0x5bf46b)=>{const _0x4e08fe=_0x1b8928,_0x489e5f=_0x57acb2['query'];_0x489e5f['email']=_0x57acb2[_0x4e08fe(0xe6)][_0x4e08fe(0xec)],ckdiem(_0x489e5f,async(_0x1ea040,_0x3043ee)=>{const _0x57c2ce=_0x4e08fe;if(_0x1ea040)return _0x2d2e54[_0x57c2ce(0xf5)](_0x5bf46b,_0x1ea040);let _0x421043;try{_0x421043=await Wallet[_0x57c2ce(0xe8)](_0x489e5f[_0x57c2ce(0xe3)],_0x489e5f[_0x57c2ce(0xec)]);}catch(_0x55eded){return _0x5bf46b(_0x55eded[_0x57c2ce(0xf0)]);}let _0x3cc176=_0x3043ee[_0x57c2ce(0xf1)](_0x93ae3b=>_0x93ae3b[_0x57c2ce(0xe7)])['reduce']((_0x28c1d2,_0x5b5130)=>_0x28c1d2+_0x5b5130,0x0),_0x433ed7={'balance':_0x3cc176,'publicKey':_0x421043};_0x5bf46b(null,_0x433ed7);});}),new controller(_0x5c8689,_0x2d2e54[_0x1b8928(0xef)],async(_0x41dc32,_0x1e2d2c)=>{const _0x1387d0=_0x1b8928,_0x4ece12={};_0x41dc32[_0x1387d0(0xf4)][_0x1387d0(0xec)]&&(_0x4ece12[_0x1387d0(0xec)]=_0x41dc32[_0x1387d0(0xf4)]['email']);_0x4ece12[_0x1387d0(0xe3)]=_0x41dc32['user']['current_id_app'];try{const _0xbdbf03=await Wallet[_0x1387d0(0xe0)](_0x4ece12,{'email':0x1,'publicKey':0x1});_0x2d2e54[_0x1387d0(0xeb)](_0x1e2d2c,null,_0xbdbf03);}catch(_0x5a39cf){_0x2d2e54['OeFtn'](_0x1e2d2c,_0x5a39cf[_0x1387d0(0xf0)]);}});};
@@ -1,9 +1 @@
1
- const databanle=require("../../libs/databanle"),dmkh=global.getModel("customer"),transaction=global.getModel("transaction"),async=require("async"),controller=require("../../controllers/controllerRPT");
2
- module.exports=function($router$$){new controller($router$$,"tkdiemtichluy",async($query_req$$,$callback$$)=>{const $condition$$=$query_req$$.query;if(!$condition$$.tu_ngay||!$condition$$.den_ngay)return $callback$$("B\u00e1o c\u00e1o n\u00e0y y\u00eau c\u1ea7u c\u00e1c tham s\u1ed1:tu_ngay,den_ngay");$query_req$$={id_app:$condition$$.id_app};$query_req$$.ngay_ct={$gte:$condition$$.tu_ngay,$lte:$condition$$.den_ngay};$condition$$.ma_dvcs&&($query_req$$.ma_dvcs=$condition$$.ma_dvcs);$condition$$.ma_kh&&
3
- ($query_req$$.ma_kh=$condition$$.ma_kh);$condition$$.ma_kho&&($query_req$$.ma_kho=$condition$$.ma_kho);$condition$$.ma_ct&&($query_req$$.ma_ct=$condition$$.ma_ct);$query_req$$.show_bonus_points=!0;databanle($query_req$$,function($error$$,$rs$$){if($error$$)return $callback$$($error$$);async.mapSeries($rs$$,function($r$$,$callback$$){$r$$.t_sl_xuat=$r$$.details.csum("sl_xuat");$r$$.t_tien_hang=$r$$.details.csum("tien_hang");$r$$.t_tien_ck=$r$$.details.csum("tien_ck");$r$$.t_tien=$r$$.details.csum("tien");
4
- $r$$.t_tien_cp=$r$$.details.csum("tien_cp");$r$$.tien_ck_hd=$r$$.tien_ck_hd?$r$$.tien_ck_hd:0;$r$$.t_tien_xuat=$r$$.details.csum("tien_xuat");$r$$.details_tl?($r$$.t_tien_tl=$r$$.details_tl.csum("tien"),$r$$.t_tien_nhap=$r$$.details_tl.csum("tien_nhap"),$r$$.t_sl_nhap=$r$$.details_tl.csum("sl_nhap")):($r$$.t_tien_tl=0,$r$$.t_sl_nhap=0,$r$$.t_tien_nhap=0);$r$$.t_so_bill=$r$$.so_ct!=="HD7"?1:0;$callback$$(null,$r$$)},function($error$$,$rs$$){if($error$$)return $callback$$($error$$);$rs$$.groupBy("ma_kh",
5
- [{name:"t_so_bill",value:"t_so_bill"},{name:"t_sl_xuat",value:"t_sl_xuat"},{name:"t_tien_hang",value:"t_tien_hang"},{name:"t_tien_cp",value:"t_tien_cp"},{name:"t_tien_ck",value:"t_tien_ck"},{name:"t_tien",value:"t_tien"},{name:"tien_ck_hd",value:"tien_ck_hd"},{name:"t_tien_xuat",value:"t_tien_xuat"},{name:"t_sl_nhap",value:"t_sl_nhap"},{name:"t_tien_tl",value:"t_tien_tl"},{name:"t_tien_nhap",value:"t_tien_nhap"},{name:"t_bonus_points",value:"bonus_points"},{name:"t_used_points",value:"used_points"}],
6
- async($error$$,$report$$)=>{if($error$$)return $callback$$($error$$);$report$$.forEach(($r$$,$i$$)=>{$r$$.stt=$i$$+1;$r$$.bold=!1;$r$$.t_doanh_thu=$r$$.t_tien-$r$$.tien_ck_hd;$r$$.t_doanh_thu_thuan=$r$$.t_doanh_thu-$r$$.t_tien_tl;$r$$.t_lai=$r$$.t_doanh_thu-$r$$.t_tien_xuat-($r$$.t_tien_tl-$r$$.t_tien_nhap)});await Promise.all($report$$.map(async $r$$=>{$r$$.t_bonus_points=await transaction.in($r$$.ma_kh.toLowerCase(),$condition$$.den_ngay);$r$$.t_used_points=await transaction.out($r$$.ma_kh.toLowerCase(),
7
- $condition$$.den_ngay);$r$$.balance_points=await transaction.balance($r$$.ma_kh.toLowerCase(),$condition$$.den_ngay);return $r$$}));$report$$=$report$$.filter($r$$=>$r$$.t_bonus_points!=0||$r$$.t_used_points!=0||$r$$.balance_points!=0);await $report$$.asyncJoinModel2($condition$$.id_app,dmkh,[{where:"ma_kh",fields:["ten_kh","dia_chi"]}]);$report$$.push({ten_kh:"T\u1ed5ng c\u1ed9ng",t_so_bill:$report$$.csum("t_so_bill"),t_sl_xuat:$report$$.csum("t_sl_xuat"),t_tien_hang:$report$$.csum("t_tien_hang"),
8
- t_tien_cp:$report$$.csum("t_tien_cp"),t_tien_ck:$report$$.csum("t_tien_ck"),t_tien:$report$$.csum("t_tien"),tien_ck_hd:$report$$.csum("tien_ck_hd"),t_tien_xuat:$report$$.csum("t_tien_xuat"),t_doanh_thu:$report$$.csum("t_doanh_thu"),t_doanh_thu_thuan:$report$$.csum("t_doanh_thu_thuan"),t_sl_nhap:$report$$.csum("t_sl_nhap"),t_tien_nhap:$report$$.csum("t_tien_nhap"),t_tien_tl:$report$$.csum("t_tien_tl"),t_lai:$report$$.csum("t_lai"),t_bonus_points:$report$$.csum("t_bonus_points"),t_used_points:$report$$.csum("t_used_points"),
9
- t_balance_points:$report$$.csum("balance_points"),bold:!0});$callback$$(null,$report$$)})})})})};
1
+ const _0x22cfea=_0xe4bc;(function(_0x1587b3,_0x29891c){const _0x296ac9=_0xe4bc,_0x1b76a5=_0x1587b3();while(!![]){try{const _0x2253a7=parseInt(_0x296ac9(0x1af))/0x1+-parseInt(_0x296ac9(0x183))/0x2+-parseInt(_0x296ac9(0x173))/0x3+-parseInt(_0x296ac9(0x1a8))/0x4+-parseInt(_0x296ac9(0x15f))/0x5*(-parseInt(_0x296ac9(0x16c))/0x6)+-parseInt(_0x296ac9(0x199))/0x7*(parseInt(_0x296ac9(0x1a7))/0x8)+-parseInt(_0x296ac9(0x137))/0x9*(-parseInt(_0x296ac9(0x185))/0xa);if(_0x2253a7===_0x29891c)break;else _0x1b76a5['push'](_0x1b76a5['shift']());}catch(_0x53fdf2){_0x1b76a5['push'](_0x1b76a5['shift']());}}}(_0xa1ba,0x284b8));const databanle=require(_0x22cfea(0x119)),dmkh=global['getModel'](_0x22cfea(0x13e)),transaction=global[_0x22cfea(0x163)]('transaction'),async=require(_0x22cfea(0x15d)),controller=require('../../controllers/controllerRPT');function _0xe4bc(_0x371311,_0x302d21){const _0xa1ba19=_0xa1ba();return _0xe4bc=function(_0xe4bc3f,_0x4ecbdc){_0xe4bc3f=_0xe4bc3f-0x110;let _0x511fba=_0xa1ba19[_0xe4bc3f];if(_0xe4bc['xEpRIT']===undefined){var _0x2165dc=function(_0x13b9a6){const _0x17b8b1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2f13b7='',_0x31fbc3='';for(let _0x42a26b=0x0,_0x32a90b,_0x373473,_0x511bfb=0x0;_0x373473=_0x13b9a6['charAt'](_0x511bfb++);~_0x373473&&(_0x32a90b=_0x42a26b%0x4?_0x32a90b*0x40+_0x373473:_0x373473,_0x42a26b++%0x4)?_0x2f13b7+=String['fromCharCode'](0xff&_0x32a90b>>(-0x2*_0x42a26b&0x6)):0x0){_0x373473=_0x17b8b1['indexOf'](_0x373473);}for(let _0x366dd1=0x0,_0x5d3019=_0x2f13b7['length'];_0x366dd1<_0x5d3019;_0x366dd1++){_0x31fbc3+='%'+('00'+_0x2f13b7['charCodeAt'](_0x366dd1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x31fbc3);};_0xe4bc['JwQIvI']=_0x2165dc,_0x371311=arguments,_0xe4bc['xEpRIT']=!![];}const _0x560f1c=_0xa1ba19[0x0],_0x2732cb=_0xe4bc3f+_0x560f1c,_0x5515ed=_0x371311[_0x2732cb];return!_0x5515ed?(_0x511fba=_0xe4bc['JwQIvI'](_0x511fba),_0x371311[_0x2732cb]=_0x511fba):_0x511fba=_0x5515ed,_0x511fba;},_0xe4bc(_0x371311,_0x302d21);}module['exports']=function(_0x560d0b){const _0x29a8d5=_0x22cfea,_0x2b6f4f={'eKPmx':function(_0x316fd7,_0x1f5048){return _0x316fd7(_0x1f5048);},'SNlBF':_0x29a8d5(0x145),'yZmhX':_0x29a8d5(0x1ac),'YjgCV':'sl_nhap','RfTJb':'tien_xuat','XUpVe':function(_0x3cfb28,_0x1f91cc,_0x261ef4){return _0x3cfb28(_0x1f91cc,_0x261ef4);},'YxgVz':_0x29a8d5(0x1a0),'ZGrOz':_0x29a8d5(0x136),'kfssf':function(_0x57d088,_0x242e4c){return _0x57d088-_0x242e4c;},'YYwpn':function(_0x2fe7d2,_0x3956ff){return _0x2fe7d2+_0x3956ff;},'ZBTLp':_0x29a8d5(0x166),'ihlLF':function(_0x5ccf04,_0x5e8b95){return _0x5ccf04===_0x5e8b95;},'aOVFS':_0x29a8d5(0x134),'YvYHB':function(_0x514203,_0x3a700d){return _0x514203-_0x3a700d;},'HOOSa':_0x29a8d5(0x135),'CGQIo':_0x29a8d5(0x17c),'ZnKNJ':_0x29a8d5(0x188),'bDevE':_0x29a8d5(0x118),'XLSzm':_0x29a8d5(0x17f),'VJRQo':_0x29a8d5(0x165),'KKBcr':_0x29a8d5(0x154),'LpWky':_0x29a8d5(0x19f),'TMHBG':_0x29a8d5(0x158),'chAjh':function(_0x430608,_0x33472e,_0x4c1218){return _0x430608(_0x33472e,_0x4c1218);},'ofdOM':_0x29a8d5(0x156),'synIl':_0x29a8d5(0x126),'YWRuw':_0x29a8d5(0x177),'eGTPc':_0x29a8d5(0x181),'mDsCS':'t_sl_nhap','phjeh':_0x29a8d5(0x1a3),'PLNiD':'bonus_points','qAgPu':function(_0x180e77,_0x5477ee){return _0x180e77!==_0x5477ee;},'jPfrc':_0x29a8d5(0x19a),'kyfOh':_0x29a8d5(0x1a6),'sIwzI':function(_0x3623d7,_0x2372c1){return _0x3623d7===_0x2372c1;},'mmKBX':_0x29a8d5(0x148),'zkoSZ':'NSnXz','NyHYD':_0x29a8d5(0x12c)};new controller(_0x560d0b,_0x2b6f4f[_0x29a8d5(0x1ad)],async(_0x450254,_0x5c8dc7)=>{const _0x1f5f10=_0x29a8d5,_0x34de55={'tdHCj':_0x2b6f4f[_0x1f5f10(0x12d)],'jyEAr':_0x2b6f4f[_0x1f5f10(0x117)],'OKyDO':_0x1f5f10(0x116),'xjbfI':_0x2b6f4f['YjgCV'],'goTto':_0x2b6f4f[_0x1f5f10(0x115)],'TLRWU':function(_0x28ca87,_0x365fe1,_0x4fe301){const _0xd1da67=_0x1f5f10;return _0x2b6f4f[_0xd1da67(0x160)](_0x28ca87,_0x365fe1,_0x4fe301);},'XAwle':_0x1f5f10(0x114),'rhFms':_0x2b6f4f[_0x1f5f10(0x153)],'UOOJP':_0x2b6f4f[_0x1f5f10(0x19e)],'sgUIW':function(_0x43785b,_0x34f280){const _0x21b508=_0x1f5f10;return _0x2b6f4f[_0x21b508(0x15a)](_0x43785b,_0x34f280);},'fhkEn':function(_0x39182f,_0x38876b){return _0x2b6f4f['kfssf'](_0x39182f,_0x38876b);},'yWPpu':function(_0x275b60,_0xd531d5){const _0x3bd074=_0x1f5f10;return _0x2b6f4f[_0x3bd074(0x191)](_0x275b60,_0xd531d5);},'hFhnA':function(_0x27b59a,_0x4cfb4f){return _0x27b59a!==_0x4cfb4f;},'EDsiu':_0x2b6f4f['ZBTLp'],'rAFBw':function(_0x2eff90,_0x51033f){const _0x275f35=_0x1f5f10;return _0x2b6f4f[_0x275f35(0x132)](_0x2eff90,_0x51033f);},'fziqn':_0x2b6f4f['aOVFS'],'OEFUB':function(_0x33cdb8,_0x89075a){const _0x211dc1=_0x1f5f10;return _0x2b6f4f[_0x211dc1(0x16f)](_0x33cdb8,_0x89075a);},'OIViq':_0x2b6f4f[_0x1f5f10(0x162)],'QHafM':_0x2b6f4f[_0x1f5f10(0x133)],'JxOQN':function(_0x34ae38,_0x5cbe93){const _0x5df716=_0x1f5f10;return _0x2b6f4f[_0x5df716(0x1a2)](_0x34ae38,_0x5cbe93);},'pVOGE':_0x2b6f4f[_0x1f5f10(0x11b)],'AOiuh':_0x2b6f4f[_0x1f5f10(0x113)],'yMAgS':_0x2b6f4f['XLSzm'],'HQyJq':_0x2b6f4f[_0x1f5f10(0x17b)],'lMKpR':_0x2b6f4f['KKBcr'],'OVwpx':_0x2b6f4f['LpWky'],'oBBBk':_0x2b6f4f[_0x1f5f10(0x123)],'gqcJO':function(_0x2e81ed,_0x2c0d90,_0x126615){return _0x2b6f4f['chAjh'](_0x2e81ed,_0x2c0d90,_0x126615);},'huHit':_0x2b6f4f[_0x1f5f10(0x140)],'BtSfj':_0x2b6f4f[_0x1f5f10(0x129)],'YNpeO':_0x2b6f4f[_0x1f5f10(0x180)],'srytx':_0x2b6f4f[_0x1f5f10(0x18c)],'UiIql':_0x2b6f4f['mDsCS'],'OWaKh':_0x2b6f4f[_0x1f5f10(0x14b)],'IyxmN':_0x2b6f4f[_0x1f5f10(0x11d)],'qMeSw':_0x1f5f10(0x1a5)};if(_0x2b6f4f['qAgPu'](_0x2b6f4f['jPfrc'],_0x2b6f4f['jPfrc']))_0x1d9af8[_0x1f5f10(0x1a3)]=0x0,_0x5e8d4a[_0x1f5f10(0x110)]=0x0,_0x2cc036[_0x1f5f10(0x19f)]=0x0;else{const _0x45c71e=_0x450254[_0x1f5f10(0x12b)];if(!_0x45c71e[_0x1f5f10(0x164)]||!_0x45c71e[_0x1f5f10(0x187)])return _0x2b6f4f[_0x1f5f10(0x1a2)](_0x5c8dc7,_0x2b6f4f[_0x1f5f10(0x1ba)]);const _0x4fb4a7={'id_app':_0x45c71e[_0x1f5f10(0x189)]};_0x4fb4a7[_0x1f5f10(0x157)]={'$gte':_0x45c71e[_0x1f5f10(0x164)],'$lte':_0x45c71e[_0x1f5f10(0x187)]},_0x45c71e['ma_dvcs']&&(_0x4fb4a7[_0x1f5f10(0x149)]=_0x45c71e['ma_dvcs']),_0x45c71e[_0x1f5f10(0x11c)]&&(_0x4fb4a7[_0x1f5f10(0x11c)]=_0x45c71e[_0x1f5f10(0x11c)]),_0x45c71e[_0x1f5f10(0x15c)]&&(_0x2b6f4f['sIwzI'](_0x2b6f4f[_0x1f5f10(0x144)],_0x2b6f4f[_0x1f5f10(0x13a)])?_0x5d6fa6[_0x1f5f10(0x15c)]=_0x34c553[_0x1f5f10(0x15c)]:_0x4fb4a7['ma_kho']=_0x45c71e[_0x1f5f10(0x15c)]),_0x45c71e['ma_ct']&&(_0x4fb4a7[_0x1f5f10(0x195)]=_0x45c71e['ma_ct']),_0x4fb4a7[_0x1f5f10(0x175)]=!![],databanle(_0x4fb4a7,function(_0xda9850,_0x589829){const _0x7ae9c7=_0x1f5f10;if(_0xda9850)return _0x2b6f4f[_0x7ae9c7(0x1a2)](_0x5c8dc7,_0xda9850);async[_0x7ae9c7(0x150)](_0x589829,0x14,function(_0x271756,_0x2904b1){const _0x196a89=_0x7ae9c7,_0xd5b010=_0x34de55[_0x196a89(0x1a4)]['split']('|');let _0x47c577=0x0;while(!![]){switch(_0xd5b010[_0x47c577++]){case'0':_0x271756[_0x196a89(0x118)]=_0x271756[_0x196a89(0x124)][_0x196a89(0x198)](_0x34de55['jyEAr']);continue;case'1':_0x271756[_0x196a89(0x13b)]?(_0x271756[_0x196a89(0x1a3)]=_0x271756[_0x196a89(0x13b)][_0x196a89(0x198)](_0x34de55['OKyDO']),_0x271756[_0x196a89(0x19f)]=_0x271756[_0x196a89(0x13b)][_0x196a89(0x198)](_0x196a89(0x169)),_0x271756['t_sl_nhap']=_0x271756[_0x196a89(0x13b)][_0x196a89(0x198)](_0x34de55[_0x196a89(0x14c)])):(_0x271756[_0x196a89(0x1a3)]=0x0,_0x271756[_0x196a89(0x110)]=0x0,_0x271756[_0x196a89(0x19f)]=0x0);continue;case'2':_0x271756[_0x196a89(0x126)]=_0x271756[_0x196a89(0x124)][_0x196a89(0x198)](_0x196a89(0x134));continue;case'3':_0x271756[_0x196a89(0x181)]=_0x271756[_0x196a89(0x124)][_0x196a89(0x198)](_0x34de55[_0x196a89(0x151)]);continue;case'4':_0x271756[_0x196a89(0x17f)]=_0x271756[_0x196a89(0x124)][_0x196a89(0x198)]('tien_cp');continue;case'5':_0x34de55[_0x196a89(0x19b)](_0x2904b1,null,_0x271756);continue;case'6':_0x271756['t_tien_ck']=_0x271756['details'][_0x196a89(0x198)](_0x34de55[_0x196a89(0x1b2)]);continue;case'7':_0x271756[_0x196a89(0x156)]=_0x271756[_0x196a89(0x12e)]!==_0x34de55[_0x196a89(0x182)]?0x1:0x0;continue;case'8':_0x271756['t_tien']=_0x271756[_0x196a89(0x124)]['csum']('tien');continue;case'9':_0x271756[_0x196a89(0x1a1)]=_0x271756[_0x196a89(0x1a1)]?_0x271756[_0x196a89(0x1a1)]:0x0;continue;}break;}},function(_0x562733,_0x17068f){const _0x53df46=_0x7ae9c7,_0x5f5259={'gVLAf':_0x53df46(0x1b3),'VaKcF':_0x34de55['UOOJP'],'QhVmX':function(_0x563996,_0x17b202){const _0x270359=_0x53df46;return _0x34de55[_0x270359(0x176)](_0x563996,_0x17b202);},'uJFaJ':function(_0x4fffe8,_0x509e35){return _0x34de55['fhkEn'](_0x4fffe8,_0x509e35);},'CasWL':function(_0x43d1ed,_0x4f8251){const _0x12dc6e=_0x53df46;return _0x34de55[_0x12dc6e(0x178)](_0x43d1ed,_0x4f8251);},'cEXzW':function(_0x2aba42,_0x302362){return _0x34de55['hFhnA'](_0x2aba42,_0x302362);},'MDENR':_0x53df46(0x18b),'GdGqS':_0x34de55['EDsiu'],'OLkEb':function(_0x28e864,_0x6e7375){const _0xca5d94=_0x53df46;return _0x34de55[_0xca5d94(0x18a)](_0x28e864,_0x6e7375);},'anlHi':_0x53df46(0x168),'KocBe':function(_0x4c2076,_0x1b2378){return _0x4c2076!=_0x1b2378;},'ZEqWf':'tien_nhap','LIlQP':_0x34de55['fziqn'],'gOOdH':_0x34de55[_0x53df46(0x1b2)],'IZOXU':_0x34de55[_0x53df46(0x151)],'jWUMo':function(_0x2a6beb,_0xacbb6d){const _0x438c34=_0x53df46;return _0x34de55[_0x438c34(0x18f)](_0x2a6beb,_0xacbb6d);},'yNuOu':function(_0x2abf81,_0x3582ec){const _0x198d42=_0x53df46;return _0x34de55[_0x198d42(0x18f)](_0x2abf81,_0x3582ec);},'YiWpQ':function(_0x52d651,_0x467893){return _0x52d651!=_0x467893;},'TgBsa':_0x34de55[_0x53df46(0x1b4)],'Bxojl':_0x34de55[_0x53df46(0x138)],'sSeWN':function(_0x165471,_0x56abfe){const _0x2fc40c=_0x53df46;return _0x34de55[_0x2fc40c(0x131)](_0x165471,_0x56abfe);},'FZhLl':_0x53df46(0x11c),'LfYdL':_0x34de55[_0x53df46(0x125)],'cqZes':_0x53df46(0x156),'ECZjH':'t_sl_xuat','oSJGI':_0x34de55['AOiuh'],'BqYWx':_0x34de55[_0x53df46(0x152)],'yFTmw':_0x34de55[_0x53df46(0x1b0)],'PVFqc':_0x53df46(0x177),'xLPZE':_0x34de55[_0x53df46(0x14e)],'jyUbY':_0x53df46(0x110),'jpxlI':_0x34de55[_0x53df46(0x179)],'hfewI':_0x53df46(0x192),'iiVTX':_0x34de55[_0x53df46(0x13d)],'CqEFv':function(_0x223dac,_0x381a66,_0x3fb345){const _0x4fee00=_0x53df46;return _0x34de55[_0x4fee00(0x1a9)](_0x223dac,_0x381a66,_0x3fb345);}};if(_0x562733)return _0x5c8dc7(_0x562733);_0x17068f[_0x53df46(0x17a)]('ma_kh',[{'name':_0x53df46(0x156),'value':_0x34de55['huHit']},{'name':'t_sl_xuat','value':_0x34de55[_0x53df46(0x14f)]},{'name':_0x34de55[_0x53df46(0x120)],'value':_0x34de55['AOiuh']},{'name':_0x53df46(0x17f),'value':_0x34de55[_0x53df46(0x152)]},{'name':_0x34de55[_0x53df46(0x1b0)],'value':_0x34de55[_0x53df46(0x1b0)]},{'name':_0x34de55[_0x53df46(0x146)],'value':_0x34de55[_0x53df46(0x146)]},{'name':'tien_ck_hd','value':_0x53df46(0x1a1)},{'name':_0x53df46(0x181),'value':_0x34de55['srytx']},{'name':_0x34de55[_0x53df46(0x15e)],'value':_0x34de55[_0x53df46(0x15e)]},{'name':_0x53df46(0x1a3),'value':_0x34de55[_0x53df46(0x143)]},{'name':_0x34de55['OVwpx'],'value':_0x34de55[_0x53df46(0x179)]},{'name':_0x53df46(0x192),'value':_0x34de55[_0x53df46(0x130)]},{'name':_0x34de55['oBBBk'],'value':_0x34de55[_0x53df46(0x167)]}],async(_0x4bec56,_0x107cb4)=>{const _0x45a590=_0x53df46,_0x100df0={'wfuKZ':_0x45a590(0x1b9),'VJkMc':_0x45a590(0x116),'guiGq':_0x5f5259['ZEqWf'],'UCxqJ':function(_0x2bdd43,_0xe1f31f,_0x16f519){return _0x2bdd43(_0xe1f31f,_0x16f519);},'wMYRY':_0x5f5259[_0x45a590(0x112)],'vnBOK':function(_0x272aa9,_0x3492d4){const _0x590167=_0x45a590;return _0x5f5259[_0x590167(0x1aa)](_0x272aa9,_0x3492d4);},'nndSP':_0x5f5259[_0x45a590(0x16d)],'Bjclz':'tien_hang','tPFBE':_0x5f5259['IZOXU'],'zkIwO':function(_0xa710ca,_0xa53af5){return _0xa710ca+_0xa53af5;},'Cicny':function(_0x10786e,_0xceff3f){return _0x5f5259['jWUMo'](_0x10786e,_0xceff3f);},'qecSr':function(_0x4d1c37,_0x1b57d1){const _0x534c8a=_0x45a590;return _0x5f5259[_0x534c8a(0x147)](_0x4d1c37,_0x1b57d1);},'UUvEP':function(_0x52326a,_0x4b4b74){const _0x4fb1b5=_0x45a590;return _0x5f5259[_0x4fb1b5(0x121)](_0x52326a,_0x4b4b74);},'HueYD':function(_0x3565ce,_0x3cd079){const _0x3afd03=_0x45a590;return _0x5f5259[_0x3afd03(0x1b6)](_0x3565ce,_0x3cd079);},'NQeRp':function(_0x4f217d,_0xff070e){const _0x550833=_0x45a590;return _0x5f5259[_0x550833(0x18e)](_0x4f217d,_0xff070e);}};if(_0x5f5259['TgBsa']===_0x5f5259[_0x45a590(0x139)]){const _0x57965d=_0x100df0[_0x45a590(0x12f)][_0x45a590(0x170)]('|');let _0x5b1413=0x0;while(!![]){switch(_0x57965d[_0x5b1413++]){case'0':_0x5dc27c[_0x45a590(0x13b)]?(_0x9b0133['t_tien_tl']=_0x5da494['details_tl']['csum'](_0x100df0[_0x45a590(0x193)]),_0x3fe3b6[_0x45a590(0x19f)]=_0x358663[_0x45a590(0x13b)][_0x45a590(0x198)](_0x100df0['guiGq']),_0xcb5056['t_sl_nhap']=_0x1c4839[_0x45a590(0x13b)][_0x45a590(0x198)](_0x45a590(0x11a))):(_0x59c8ef[_0x45a590(0x1a3)]=0x0,_0xa08240[_0x45a590(0x110)]=0x0,_0x1ab29b[_0x45a590(0x19f)]=0x0);continue;case'1':_0x1afc5b['t_tien_cp']=_0x28a646[_0x45a590(0x124)][_0x45a590(0x198)]('tien_cp');continue;case'2':_0x13ca1e['t_tien']=_0x43fb99[_0x45a590(0x124)][_0x45a590(0x198)]('tien');continue;case'3':_0x100df0[_0x45a590(0x1ab)](_0x47875a,null,_0x201394);continue;case'4':_0x305b17[_0x45a590(0x126)]=_0x27b7c3[_0x45a590(0x124)][_0x45a590(0x198)](_0x100df0[_0x45a590(0x1b1)]);continue;case'5':_0x43e898[_0x45a590(0x156)]=_0x100df0[_0x45a590(0x1b5)](_0x11e3f8[_0x45a590(0x12e)],_0x45a590(0x1a0))?0x1:0x0;continue;case'6':_0x40679d[_0x45a590(0x165)]=_0x2d4b39[_0x45a590(0x124)]['csum'](_0x100df0[_0x45a590(0x16e)]);continue;case'7':_0x5373b4[_0x45a590(0x118)]=_0x3016e2['details']['csum'](_0x100df0[_0x45a590(0x194)]);continue;case'8':_0x5ed5cb['tien_ck_hd']=_0x31e3cd[_0x45a590(0x1a1)]?_0x46e226[_0x45a590(0x1a1)]:0x0;continue;case'9':_0x344969[_0x45a590(0x181)]=_0x1bcdef['details'][_0x45a590(0x198)](_0x100df0['tPFBE']);continue;}break;}}else{if(_0x4bec56)return _0x5f5259['sSeWN'](_0x5c8dc7,_0x4bec56);_0x107cb4[_0x45a590(0x17e)]((_0x40a1d1,_0x3d7b19)=>{const _0x146136=_0x45a590;if(_0x146136(0x111)!==_0x5f5259[_0x146136(0x190)]){const _0x190864=_0x5f5259[_0x146136(0x171)][_0x146136(0x170)]('|');let _0x328531=0x0;while(!![]){switch(_0x190864[_0x328531++]){case'0':_0x40a1d1[_0x146136(0x17d)]=_0x40a1d1[_0x146136(0x177)]-_0x40a1d1['tien_ck_hd'];continue;case'1':_0x40a1d1[_0x146136(0x172)]=![];continue;case'2':_0x40a1d1['t_doanh_thu_thuan']=_0x5f5259[_0x146136(0x147)](_0x40a1d1[_0x146136(0x17d)],_0x40a1d1[_0x146136(0x1a3)]);continue;case'3':_0x40a1d1[_0x146136(0x12a)]=_0x5f5259['QhVmX'](_0x5f5259[_0x146136(0x19c)](_0x40a1d1[_0x146136(0x17d)],_0x40a1d1['t_tien_xuat']),_0x40a1d1['t_tien_tl']-_0x40a1d1[_0x146136(0x19f)]);continue;case'4':_0x40a1d1[_0x146136(0x13c)]=_0x5f5259[_0x146136(0x11e)](_0x3d7b19,0x1);continue;}break;}}else _0x98943b[_0x146136(0x13c)]=_0x100df0[_0x146136(0x155)](_0x47e4cb,0x1),_0x3a313b['bold']=![],_0x24b947[_0x146136(0x17d)]=_0x100df0[_0x146136(0x161)](_0x5b22b9[_0x146136(0x177)],_0x32daf5['tien_ck_hd']),_0x376ee5[_0x146136(0x154)]=_0x348f5c[_0x146136(0x17d)]-_0x26b3f4[_0x146136(0x1a3)],_0x195186['t_lai']=_0x100df0[_0x146136(0x1b7)](_0x40a0f6[_0x146136(0x17d)]-_0x475ade['t_tien_xuat'],_0x100df0[_0x146136(0x13f)](_0x4fa426[_0x146136(0x1a3)],_0x486856[_0x146136(0x19f)]));}),await Promise[_0x45a590(0x174)](_0x107cb4['map'](async _0x32c617=>{const _0x20cd5c=_0x45a590;return _0x5f5259[_0x20cd5c(0x1aa)](_0x5f5259[_0x20cd5c(0x142)],_0x5f5259[_0x20cd5c(0x127)])?(_0x32c617[_0x20cd5c(0x192)]=await transaction['in'](_0x32c617['ma_kh'][_0x20cd5c(0x14d)](),_0x45c71e['den_ngay']),_0x32c617[_0x20cd5c(0x158)]=await transaction[_0x20cd5c(0x1ae)](_0x32c617[_0x20cd5c(0x11c)][_0x20cd5c(0x14d)](),_0x45c71e['den_ngay']),_0x32c617[_0x20cd5c(0x14a)]=await transaction['balance'](_0x32c617['ma_kh']['toLowerCase'](),_0x45c71e[_0x20cd5c(0x187)]),_0x32c617):_0x100df0['HueYD'](_0x515e3d[_0x20cd5c(0x192)],0x0)||_0x486bbd['t_used_points']!=0x0||_0x100df0[_0x20cd5c(0x141)](_0x222318[_0x20cd5c(0x14a)],0x0);})),_0x107cb4=_0x107cb4[_0x45a590(0x1b8)](_0x45f845=>{const _0x560610=_0x45a590;if(_0x5f5259[_0x560610(0x197)](_0x560610(0x168),_0x5f5259[_0x560610(0x16a)]))return _0x5f5259[_0x560610(0x18e)](_0x45f845[_0x560610(0x192)],0x0)||_0x5f5259[_0x560610(0x18e)](_0x45f845['t_used_points'],0x0)||_0x5f5259['KocBe'](_0x45f845[_0x560610(0x14a)],0x0);else _0x44b5fd[_0x560610(0x195)]=_0x19a3d8[_0x560610(0x195)];}),await _0x107cb4['asyncJoinModel2'](_0x45c71e[_0x45a590(0x189)],dmkh,[{'where':_0x5f5259[_0x45a590(0x122)],'fields':['ten_kh',_0x5f5259['LfYdL']]}]),_0x107cb4['push']({'ten_kh':'Tổng\x20cộng','t_so_bill':_0x107cb4[_0x45a590(0x198)](_0x5f5259[_0x45a590(0x128)]),'t_sl_xuat':_0x107cb4[_0x45a590(0x198)](_0x5f5259[_0x45a590(0x11f)]),'t_tien_hang':_0x107cb4['csum'](_0x5f5259[_0x45a590(0x1bb)]),'t_tien_cp':_0x107cb4[_0x45a590(0x198)](_0x5f5259[_0x45a590(0x18d)]),'t_tien_ck':_0x107cb4[_0x45a590(0x198)](_0x5f5259[_0x45a590(0x16b)]),'t_tien':_0x107cb4['csum'](_0x5f5259[_0x45a590(0x159)]),'tien_ck_hd':_0x107cb4['csum'](_0x45a590(0x1a1)),'t_tien_xuat':_0x107cb4[_0x45a590(0x198)](_0x45a590(0x181)),'t_doanh_thu':_0x107cb4['csum']('t_doanh_thu'),'t_doanh_thu_thuan':_0x107cb4[_0x45a590(0x198)](_0x5f5259[_0x45a590(0x15b)]),'t_sl_nhap':_0x107cb4[_0x45a590(0x198)](_0x5f5259[_0x45a590(0x19d)]),'t_tien_nhap':_0x107cb4[_0x45a590(0x198)](_0x5f5259[_0x45a590(0x186)]),'t_tien_tl':_0x107cb4[_0x45a590(0x198)](_0x45a590(0x1a3)),'t_lai':_0x107cb4['csum'](_0x45a590(0x12a)),'t_bonus_points':_0x107cb4[_0x45a590(0x198)](_0x5f5259[_0x45a590(0x196)]),'t_used_points':_0x107cb4[_0x45a590(0x198)](_0x5f5259['iiVTX']),'t_balance_points':_0x107cb4[_0x45a590(0x198)](_0x45a590(0x14a)),'bold':!![]}),_0x5f5259[_0x45a590(0x184)](_0x5c8dc7,null,_0x107cb4);}});});});}});};function _0xa1ba(){const _0x16e0ab=['z2v0tw9KzwW','DhvFBMDHEq','Df90AwvUx2nR','EMnUDvu','Cu1Lu3C','ruPpBuC','DgLLBL9UAgfW','yw5SsgK','EuzuBxC','ndu5mte0rMjhv0rQ','z09pzeG','BM5Ku1a','wxzzsei','C3bSAxq','vMfly0y','yM9Sza','odq0nJGWy01QEund','ywXS','C2HVD19IB251C19WB2LUDhm','C2DvsvC','Df90AwvU','EvDqChu','t1z3ChG','z3jVDxbcEq','vKPsuw8','r0v6vgW','Df9KB2fUAf90Ahu','zM9YrwfJAa','Df90AwvUx2nW','wvDsDxC','Df90AwvUx3H1yxq','CMHgBxm','nJu3nJG2CNrJt3z4','q3ffrNy','odmWC1HWCgfi','ANb4BeK','zgvUx25NyxK','zgLHx2nOAq','AwrFyxbW','CKfgqNC','BxbQDve','zuDuugm','qNfzv3G','s29JqMu','t0vgvui','z1zmqwy','wvL3Cg4','Df9IB251C19WB2LUDhm','vKPRtwm','qMPJBhO','BwfFy3q','AgzLD0K','t0XRrwi','y3n1Bq','ote3v3j4y29t','D2rswMK','veXsv1u','DuPgyuO','ANLvyLK','wKDYt3O','Df90AwvUx25Oyxa','seq3','DgLLBL9JA19Oza','zuTqBxG','Df90AwvUx3rS','Dgriq2O','DxnLzf9WB2LUDhm','qSoHBYbJW6fVig7dOhKGECoQDsbJ4BQNDsbJW6fJihrOyw0GC+g7KtP0Dv9Uz2f5lgrLBL9Uz2f5','ntK2me54vuPAua','mtu1mZq4B3bxEu9f','z3fJsK8','y0vyELC','vun4CuO','DgLLBL9Oyw5N','tNLiwuq','B3v0','mtaWmZmWA2Ddq1fd','sff5sNe','D01zuLK','wef3Bgu','y2fIzgi','t0LwAxe','DM5ct0S','wwLxCfe','CwvJu3i','zMLSDgvY','nhW3Fdz8mNWXFdH8oxWWFdv8mW','A3LMt2G','B1nkr0K','Df9ZBf9UAgfW','BePqtwq','teLSuva','yKrLDKu','DgLLBL9JAW','uMzusMi','DgLLBG','EvPTAfG','Df90AwvUx2HHBMC','lI4VlI4VBgLICY9KyxrHyMfUBgu','C2XFBMHHCa','wM5ltKO','BwfFA2G','ueXoAuq','q2fZv0W','runAAKG','qu9PDwG','Eu51t3u','rLPOtgW','ve1iqKC','zgv0ywLSCW','Cfzpr0u','Df9ZBf94Dwf0','r2rhCvm','y3fAzxm','C3LUswW','Df9SywK','CxvLCNK','DgTKAwvTDgLJAgX1Eq','u05SqKy','C29Fy3q','D2z1s1O','sxL4Bu4','sNHpuu4','AwHStey','q0Drsw8','C2XFEhvHDa','ueDLs08','nhWXFdb8mNWZ','nJmXmdHQC0vWDvm','uuHHzK0','qNHVAMW','EMTVu1O','zgv0ywLSC190Ba','C3r0','B0jcqMS','y3vZDg9Tzxi','vvv2rva','B2zKt00','tLfLuNa','turftLi','t1DHs2G','Bw1lqLG','mNWWFdz8ohW0FdL8m3WXFdD8nq','wu5Wzu8','uwHwBvG','svnTvuS','BwfFzhzJCW','yMfSyw5Jzv9WB2LUDhm','CgHQzwG','EgPIzKK','Dg9mB3DLCKnHC2u','Be1lCfi','qNrtzMO','BwfWtgLTAxq','z29uDg8','Eu1bz1m','wxHNvNO','Df9KB2fUAf90AhvFDgH1yw4','EMTjD08','Df9ZB19IAwXS','BMDHEv9JDa','Df91C2vKx3bVAw50CW','ufzgCwm','A2zZC2y','EeXqwKu','BwfFA2HV','yxn5BMm','vwLjCwW','mtvsEKrxwwK','wfvWvMu','q2LJBNK','se9pu2e'];_0xa1ba=function(){return _0x16e0ab;};return _0xa1ba();}