flexbiz-server 12.4.21 → 12.4.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,36 +1 @@
1
- const PostBook=require("../../libs/post-book"),PostSocai=require("../../libs/post-socai"),Tdttno=global.getModel("tdttno"),Tdttno_tt=global.getModel("tdttno_tt"),Vatra=global.getModel("vatra"),account=global.getModel("account"),customer=global.getModel("customer"),dmnv=global.getModel("dmnv"),dmdt=global.getModel("dmdt"),dmphi=global.getModel("dmphi"),contract=global.getModel("contract"),salecontract=global.getModel("sale_contract"),model=global.getModel("hd1"),controller=require("../../controllers/controller"),
2
- trangthai=global.getModel("trangthai"),utils=require("../../libs/utils"),async=require("async"),ma_ct="HD1",App=global.getModel("app"),axios=require("axios"),Moment=require("moment");
3
- module.exports=function($router$$){const $contr$$=new controller($router$$,model,ma_ct.toLowerCase(),{isVoucher:!0,kiem_tra_han_muc_cong_no:!0,sort:{ngay_ct:-1,so_ct:-1}});$contr$$.route();$contr$$.post=function($obj$$,$fn$$,$_options$$={}){$fn$$||=function(){};async.series({post_socai:function($callback$$){const $details_sc$$=[];$obj$$.details.forEach(function($d_detail$$){$d_detail$$={...$d_detail$$};$d_detail$$.tk_co=$d_detail$$.tk_dt;$d_detail$$.ma_kh||($d_detail$$.ma_kh=$obj$$.ma_kh);$d_detail$$.tk_no=
4
- $obj$$.tk_no;$details_sc$$.push($d_detail$$)});$obj$$.details.forEach(function($d$jscomp$1_detail$$){$d$jscomp$1_detail$$={...$d$jscomp$1_detail$$};$d$jscomp$1_detail$$.tk_no=$d$jscomp$1_detail$$.tk_ck;$d$jscomp$1_detail$$.ma_kh||($d$jscomp$1_detail$$.ma_kh=$obj$$.ma_kh);$d$jscomp$1_detail$$.tk_co=$obj$$.tk_no;$d$jscomp$1_detail$$.tien_nt=$d$jscomp$1_detail$$.tien_ck_nt;$d$jscomp$1_detail$$.tien=$d$jscomp$1_detail$$.tien_ck;$d$jscomp$1_detail$$.check_balance=!1;$details_sc$$.push($d$jscomp$1_detail$$)});
5
- const $o$$={...$obj$$};$o$$.tk_co=$o$$.tk_thue_co;$o$$.tien_nt=$obj$$.details.csum("tien_thue_nt");$o$$.tien=$obj$$.details.csum("tien_thue");$o$$.dien_giai_thue&&($o$$.dien_giai=$o$$.dien_giai_thue);$details_sc$$.push($o$$);(new PostSocai($obj$$,$details_sc$$,void 0,void 0,$_options$$)).run(function($e$$,$rs$$){$callback$$($e$$,$rs$$)})},post_tdttno:function($callback$$){account.findOne({tk:$obj$$.tk_no,id_app:$obj$$.id_app},{tk_cn:1},function($error$$,$tk$$){if($error$$)return $callback$$($error$$);
6
- $tk$$&&$tk$$.tk_cn===!0?(new PostBook($obj$$,[{...$obj$$}],Tdttno,function($detail$$,$callback$$){try{$detail$$.so_hd||($detail$$.so_hd=$obj$$.so_ct),$detail$$.ngay_hd||($detail$$.ngay_hd=$obj$$.ngay_ct),$detail$$.tien_nt=$obj$$.details.csum("tien_nt")-$obj$$.details.csum("tien_ck_nt")-($obj$$.tien_ck_hd||0)+$obj$$.details.csum("tien_thue_nt"),$detail$$.tien=$obj$$.details.csum("tien")-$obj$$.details.csum("tien_ck")-($obj$$.tien_ck_hd||0)*($obj$$.ty_gia||1)+$obj$$.details.csum("tien_thue")}catch($e$$){console.error($e$$,
7
- $obj$$)}$callback$$($detail$$)})).run(function($e$$,$rs$$){$callback$$($e$$,$rs$$)}):Tdttno.deleteMany({id_ct:$obj$$._id},function($error$$){$callback$$($error$$)})})},post_vatra:function($callback$$){$obj$$.ngay_hd?$obj$$.details.map($detail$$=>({...$detail$$,thue_suat:($detail$$.ma_thue?$detail$$.thue_suat:$obj$$.thue_suat)||0,ma_thue:$detail$$.ma_thue||$obj$$.ma_thue})).filter($d$$=>$d$$.ma_thue).asyncGroupBy(["ma_thue","thue_suat","ten_vt_vat"],"tien_nt tien tien_ck tien_ck_nt tien_thue tien_thue_nt".split(" ")).then($ds$$=>
8
- {if($ds$$.length==1){let $tien_thue_nt$$=$ds$$.map($d$$=>$d$$.tien_thue_nt||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0),$tien_thue$$=$ds$$.map($d$$=>$d$$.tien_thue||0).reduce(($a$$,$b$$)=>$a$$+$b$$,0);$ds$$[0].tien_thue_nt=$tien_thue_nt$$;$ds$$[0].tien_thue=$tien_thue$$}(new PostBook($obj$$,$ds$$,Vatra,function($detail$$,$callback$$){try{$detail$$.tk_du_thue=$obj$$.tk_no,$detail$$.t_tien_nt=$detail$$.tien_nt-$detail$$.tien_ck_nt,$detail$$.t_tien=$detail$$.tien-$detail$$.tien_ck,$detail$$.t_thue_nt=$detail$$.tien_thue_nt,
9
- $detail$$.t_thue=$detail$$.tien_thue,$detail$$.ten_vt=$detail$$.ten_vt_vat||$obj$$.ten_vt||$obj$$.dien_giai}catch($e$$){console.error($e$$,$obj$$)}$callback$$($detail$$)})).run(function($e$$,$rs$$){$callback$$($e$$,$rs$$)})}):$callback$$()}},function($e$$,$rs$$){$fn$$($e$$,$rs$$)})};const $valid$$=function($i_user$$,$obj$$,$next$$){for($i_user$$=0;$i_user$$<$obj$$.details.length;$i_user$$++){const $detail$$=$obj$$.details[$i_user$$];$detail$$.line=$i_user$$;$detail$$.tien_ck_nt=$detail$$.tien_ck_nt||
10
- 0;$detail$$.tien_nt=$detail$$.tien_nt||0;$obj$$.ma_nt==="VND"&&($detail$$.tien=$detail$$.tien_nt,$detail$$.tien_ck=$detail$$.tien_ck_nt);$detail$$.tien_ck=$detail$$.tien_ck||0;$detail$$.tien=$detail$$.tien||0}let $f_tien_nt$$=$obj$$.ma_nt==="VND"?0:2;$obj$$.thue_suat=$obj$$.thue_suat||0;$obj$$.details.forEach($detail$$=>{let $thue_suat$$=($detail$$.ma_thue?$detail$$.thue_suat:$obj$$.thue_suat)||0;$detail$$.tien_thue_nt=$detail$$.tien_thue_nt_dc||utils.round(($detail$$.tien_nt-$detail$$.tien_ck_nt)*
11
- $thue_suat$$/100,$f_tien_nt$$);$detail$$.tien_thue=$detail$$.tien_thue_nt*($obj$$.ty_gia||1)});$obj$$.id_contract?salecontract.findOne({_id:$obj$$.id_contract}).lean().then($c$$=>{$c$$&&($obj$$.ma_hd=$c$$.ma_hd);$next$$(null,$obj$$)}).catch($e$$=>{$next$$($e$$)}):$next$$(null,$obj$$)};$contr$$.creating=function($user$$,$obj$$,$next$$){$obj$$.details||($obj$$.details=[]);$valid$$($user$$,$obj$$,function($error$$){if($error$$)return $next$$($error$$);$obj$$.result_export_einvoice=null;$next$$(null,
12
- $obj$$)})};$contr$$.updating=function($user$$,$data$$,$obj$$,$next$$){Tdttno_tt.findOne({id_hd:$obj$$._id},function($error$$,$ct_tt$$){if($error$$)return $next$$($error$$);$ct_tt$$?$next$$(`Kh\u00f4ng th\u1ec3 c\u1eadp nh\u1eadt phi\u1ebfu n\u00e0y do \u0111\u00e3 \u0111\u01b0\u1ee3c thanh to\u00e1n b\u1edfi ${$ct_tt$$.ma_ct||"ch\u1ee9ng t\u1eeb"}: ${$ct_tt$$.so_ct}, ng\u00e0y ${Moment($ct_tt$$.ngay_ct).format("DD/MM/YYYY")}`):$valid$$($user$$,$data$$,function($error$$){if($error$$)return $next$$($error$$);
13
- $next$$(null,$data$$,$obj$$)})})};$contr$$.deleting=function($user$$,$obj$$,$next$$){Tdttno_tt.findOne({id_hd:$obj$$._id},function($error$$,$ct_tt$$){if($error$$)return $next$$($error$$);$ct_tt$$?$next$$(`Kh\u00f4ng th\u1ec3 xo\u00e1 phi\u1ebfu n\u00e0y do \u0111\u00e3 \u0111\u01b0\u1ee3c thanh to\u00e1n b\u1edfi ${$ct_tt$$.ma_ct||"ch\u1ee9ng t\u1eeb"}: ${$ct_tt$$.so_ct}, ng\u00e0y ${Moment($ct_tt$$.ngay_ct).format("DD/MM/YYYY")}`):$next$$(null,$obj$$)})};$contr$$.view=function($user$$,$items$$,$fn$$){const $id_app$$=
14
- $user$$.current_id_app;async.parallel({tk:function($callback$$){$items$$.filter($item$$=>$item$$.tk_no).joinModel($id_app$$,account,[{akey:"tk_no",bkey:"tk",fields:[{name:"ten_tk_no",value:"ten_tk"}]}],function(){$callback$$()})},dt:function($callback$$){$items$$.filter($item$$=>$item$$.ma_dt).joinModel($id_app$$,dmdt,[{akey:"ma_dt",bkey:"ma_dt",fields:[{name:"ten_dt",value:"ten_dt"}]}],function(){$callback$$()})},kh:function($callback$$){$items$$.filter($item$$=>$item$$.ma_kh).joinModel2($id_app$$,
15
- customer,[{where:"ma_kh",fields:["ten_kh","email","nh_kh"]}],function(){$callback$$()})},nv:function($callback$$){$items$$.filter($item$$=>$item$$.ma_nv).joinModel($id_app$$,dmnv,[{akey:"ma_nv",bkey:"ma_nv",fields:[{name:"ten_nv",value:"ten_nv"}]}],function(){$callback$$()})},trangthai:function($callback$$){$items$$.filter($item$$=>$item$$.trang_thai).joinModel2(null,trangthai,[{where:{trang_thai:"ma_trang_thai",ma_ct:"ma_ct"},fields:["ten_trang_thai","color"]}],function(){$callback$$()})},contract:function($callback$$){$items$$.filter($item$$=>
16
- $item$$.ma_hd).joinModel2($id_app$$,contract,[{where:{ma_hd:"so_hd"},fields:["ten_hd","ten_hd"]}],function(){$callback$$()})},t_tien:function($callback$$){$items$$.forEach(function($r$$){$r$$.details&&($r$$.t_tien=$r$$.details.csum("tien"),$r$$.t_tien_nt=$r$$.details.csum("tien_nt"),$r$$.t_ck=$r$$.details.csum("tien_ck"),$r$$.t_ck_nt=$r$$.details.csum("tien_ck_nt"),$r$$.t_thue_nt=$r$$.details.csum("tien_thue_nt"),$r$$.t_thue=$r$$.t_thue_nt*$r$$.ty_gia,$r$$.t_tt=$r$$.t_tien-$r$$.t_ck+$r$$.t_thue,$r$$.t_tt_nt=
17
- $r$$.t_tien_nt-$r$$.t_ck_nt+$r$$.t_thue_nt,$r$$.details.forEach($detail$$=>{$detail$$.dien_giai||($detail$$.dien_giai=$r$$.dien_giai)}))});$callback$$()},details_tk:function($callback$$){async.each($items$$,function($r$$,$callback1$$){($r$$.details||[]).joinModel($id_app$$,account,[{akey:"tk_dt",bkey:"tk",fields:[{name:"ten_tk_dt",value:"ten_tk"}]},{akey:"tk_ck",bkey:"tk",fields:[{name:"ten_tk_ck",value:"ten_tk"}]}],function(){$callback1$$()})},function(){$callback$$()})},details_dt:function($callback$$){async.mapSeries($items$$,
18
- function($r$$,$callback1$$){($r$$.details||[]).filter($item$$=>$item$$.ma_dt).joinModel($id_app$$,dmdt,[{akey:"ma_dt",bkey:"ma_dt",fields:[{name:"ten_dt",value:"ten_dt"}]}],function(){$callback1$$()})},function(){$callback$$()})},details_contract:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.details||[]).filter($item$$=>$item$$.ma_hd).joinModel($id_app$$,contract,[{akey:"ma_hd",bkey:"so_hd",fields:[{name:"ten_hd",value:"ten_hd"}]}],function(){$callback1$$()})},function(){$callback$$()})},
19
- details_phi:function($callback$$){async.mapSeries($items$$,function($r$$,$callback1$$){($r$$.details||[]).filter($item$$=>$item$$.ma_phi).joinModel($id_app$$,dmphi,[{akey:"ma_phi",bkey:"ma_phi",fields:[{name:"ten_phi",value:"ten_phi"}]}],function(){$callback1$$()})},function(){$callback$$()})}},function(){$fn$$(null,$items$$)})};$contr$$.createRoute("export2viettel/:id_ct",async($req$$,$next$$)=>{try{console.log("Export to viettel....");const $id_app$$=$req$$.user.current_id_app,$app$$=await App.findOne({_id:$id_app$$});
20
- if(!$app$$)return console.log("Kh\u00f4ng tim th\u1ea5y th\u00f4ng tin coogn ty"),$next$$("Kh\u00f4ng t\u00ecm th\u1ea5y c\u00f4ng ty n\u00e0y");if(!$app$$.viettel_url_service||!$app$$.viettel_user||!$app$$.viettel_password)return console.log("Chua khai bao thong tin ket noi viettel"),$next$$("Th\u00f4ng tin xu\u1ea5t ho\u00e1 \u0111\u01a1n Viettel ch\u01b0a \u0111\u01b0\u1ee3c khai b\u00e1o \u0111\u1ea7y \u0111\u1ee7");if(!$app$$.ma_so_thue)return console.log("Chua nhap ma so thue cua cong ty"),
21
- $next$$("B\u1ea1n ch\u01b0a nh\u1eadp m\u00e3 s\u1ed1 thu\u1ebf c\u1ee7a c\u00f4ng ty");const $ct$$=await model.findOne({id_app:$id_app$$,_id:$req$$.params.id_ct}).lean();if(!$ct$$)return console.log("Khong tim thay chung tu"),$next$$("Ch\u1ee9ng t\u1eeb kh\u00f4ng h\u1ee3p l\u1ec7");let $transactionUuid$$=$ct$$._id.toString();try{let $result_export_einvoice$$=await utils.getInvoice($app$$,$transactionUuid$$);if($result_export_einvoice$$){if($result_export_einvoice$$.errorCode)return $next$$($result_export_einvoice$$.data||
22
- $result_export_einvoice$$.description);console.log("\u0110\u1ed3ng b\u1ed9 hoa \u0111\u01a1n viettel");$ct$$.result_export_einvoice=$result_export_einvoice$$;await utils.updateInvoice($contr$$,$ct$$);return $next$$(null,$result_export_einvoice$$)}}catch($e$$){return console.error("error export to viettel",$e$$),$next$$($e$$)}if($ct$$.result_export_einvoice&&$ct$$.result_export_einvoice.result&&$ct$$.result_export_einvoice.result.invoiceNo)return $next$$(null,$ct$$.result_export_einvoice);const $kh$$=
23
- await customer.findOne({id_app:$id_app$$,ma_kh:$ct$$.ma_kh})||{},$t_tien_hang$$=Math.abs($ct$$.details.map($d$$=>$d$$.tien_nt).reduce(($a$$,$b$$)=>$a$$+$b$$,0)),$t_ck$$=Math.abs($ct$$.details.map($d$$=>$d$$.tien_ck_nt).reduce(($a$$,$b$$)=>$a$$+$b$$,0)),$t_tien$$=Math.abs($ct$$.details.map($d$$=>$d$$.tien_nt-$d$$.tien_ck_nt).reduce(($a$$,$b$$)=>$a$$+$b$$,0)),$t_thue$$=Math.abs($ct$$.details.map($d$$=>$d$$.tien_thue_nt).reduce(($a$$,$b$$)=>$a$$+$b$$,0)),$tien_ck_hd$$=$ct$$.tien_ck_hd||0;let $taxBreakdowns$$=
24
- $ct$$.details.map($detail$$=>({...$detail$$,ma_thue:$detail$$.ma_thue||$ct$$.ma_thue,thue_suat:($detail$$.ma_thue?$detail$$.thue_suat:$ct$$.thue_suat)||0})).filter($d$$=>$d$$.ma_thue);if($taxBreakdowns$$.length===0)return $next$$("B\u1ea1n ch\u01b0a khai b\u00e1o thu\u1ebf");$taxBreakdowns$$=$taxBreakdowns$$.filter($d$$=>$d$$.ma_thue!="KT"&&$d$$.ma_thue!="KK").map($detail$$=>({taxPercentage:$detail$$.thue_suat,taxableAmount:Math.abs($detail$$.tien_nt-$detail$$.tien_ck_nt),taxAmount:Math.abs($detail$$.tien_thue_nt)}));
25
- $taxBreakdowns$$=await $taxBreakdowns$$.asyncGroupBy("taxPercentage",["taxableAmount","taxAmount"]);const $data$$={generalInvoiceInfo:{invoiceType:$ct$$.ma_hoa_don||$app$$.ma_hoa_don||"1",templateCode:$ct$$.ky_hieu_hoa_don||$app$$.ky_hieu_hoa_don||"1/001",invoiceSeries:$ct$$.so_seri,transactionUuid:$transactionUuid$$,currencyCode:"VND",adjustmentType:"1",paymentStatus:!0,cusGetInvoiceRight:!0,userName:$ct$$.user_created},buyerInfo:{buyerName:$ct$$.ong_ba||"",buyerLegalName:$ct$$.ten_kh||$kh$$.ten_kh||
26
- "",buyerTaxCode:$ct$$.ma_so_thue||$kh$$.ma_so_thue||"",buyerAddressLine:$ct$$.dia_chi||$kh$$.dia_chi||"",buyerPostalCode:"",buyerDistrictName:"",buyerCityName:"",buyerCountryCode:"",buyerPhoneNumber:$ct$$.dien_thoai||$kh$$.dien_thoai||"",buyerFaxNumber:"",buyerEmail:$kh$$.email||"",buyerBankName:"",buyerBankAccount:"",buyerIdType:"",buyerIdNo:"",buyerCode:"",buyerBirthDay:""},sellerInfo:{sellerLegalName:$app$$.name,sellerTaxCode:$app$$.ma_so_thue,sellerAddressLine:$app$$.dia_chi_xuat_hoa_don||$app$$.address,
27
- sellerPhoneNumber:$app$$.phone||"",sellerEmail:$app$$.email||"",sellerBankName:$app$$.ten_ngan_hang||"",sellerBankAccount:$app$$.tai_khoan_ngan_hang||""},itemInfo:$ct$$.details.map(($detail$$,$index$$)=>{var $JSCompiler_temp_const$$=$detail$$.tien_nt<0?3:1,$JSCompiler_temp_const$jscomp$8$$=($index$$+1).toString(),$JSCompiler_temp_const$jscomp$7$$=$detail$$.dien_giai,$JSCompiler_temp_const$jscomp$6$$=$detail$$.tien_nt<0?"":$detail$$.ma_dvt,$JSCompiler_temp_const$jscomp$5$$=$detail$$.tien_nt<0?void 0:
28
- $detail$$.gia_ban_nt,$JSCompiler_temp_const$jscomp$4$$=$detail$$.tien_nt<0?void 0:$detail$$.sl_xuat,$JSCompiler_temp_const$jscomp$3$$=Math.abs($detail$$.tien_nt),$JSCompiler_temp_const$jscomp$2$$=$detail$$.ty_le_ck,$JSCompiler_temp_const$jscomp$1$$=Math.abs($detail$$.tien_ck_nt),$JSCompiler_temp_const$jscomp$0$$=Math.abs($detail$$.tien_nt-$detail$$.tien_ck_nt);a:{var $JSCompiler_inline_result$jscomp$10_thue_suat$$=($detail$$.ma_thue?$detail$$.thue_suat:$ct$$.thue_suat)||0;var $tien_ct_nt$$=$detail$$.tien_nt;
29
- switch($detail$$.ma_thue||$ct$$.ma_thue){case "KT":$JSCompiler_inline_result$jscomp$10_thue_suat$$=$tien_ct_nt$$<0?void 0:-2;break a;case "KK":$JSCompiler_inline_result$jscomp$10_thue_suat$$=$tien_ct_nt$$<0?void 0:-1}}return{lineNumber:$index$$+1,selection:$JSCompiler_temp_const$$,itemCode:$JSCompiler_temp_const$jscomp$8$$,itemName:$JSCompiler_temp_const$jscomp$7$$,unitName:$JSCompiler_temp_const$jscomp$6$$,itemNote:"",unitPrice:$JSCompiler_temp_const$jscomp$5$$,quantity:$JSCompiler_temp_const$jscomp$4$$,
30
- itemTotalAmountWithoutTax:$JSCompiler_temp_const$jscomp$3$$,discount:$JSCompiler_temp_const$jscomp$2$$,itemDiscount:$JSCompiler_temp_const$jscomp$1$$,itemTotalAmountAfterDiscount:$JSCompiler_temp_const$jscomp$0$$,taxPercentage:$JSCompiler_inline_result$jscomp$10_thue_suat$$,taxAmount:Math.abs($detail$$.tien_thue_nt),itemTotalAmountWithTax:Math.abs($detail$$.tien_nt-$detail$$.tien_ck_nt+$detail$$.tien_thue_nt),customTaxAmount:"0",batchNo:"",expDate:""}}),summarizeInfo:{sumOfTotalLineAmountWithoutTax:$t_tien_hang$$,
31
- discountAmount:$t_ck$$,settlementDiscountAmount:$tien_ck_hd$$,totalAmountWithoutTax:$t_tien$$,totalTaxAmount:$t_thue$$,totalAmountWithTax:$t_tien$$+$t_thue$$},taxBreakdowns:$taxBreakdowns$$,payments:[{paymentMethodName:$ct$$.hinh_thuc_tt||"TM"}],extAttribute:[],deliveryInfo:{},metadata:[]};$ct$$.ngay_hd||($ct$$.ngay_hd=new Date);let $headers$$,$url$$,$viettel_token$$,$auth$$={username:$app$$.viettel_user.trim(),password:$app$$.viettel_password.trim()};if($app$$.viettel_version!="1"){$data$$.generalInvoiceInfo.invoiceIssuedDate=
32
- (new Date($ct$$.ngay_hd)).getTime();let $url_token$$=`${$app$$.viettel_url_service.trim()}/auth/login`;$url$$=$app$$.viettel_direct_issue?`${$app$$.viettel_url_service.trim()}/services/einvoiceapplication/api/InvoiceAPI/InvoiceWS/createInvoice/${$app$$.ma_so_thue.trim()}`:`${$app$$.viettel_url_service.trim()}/services/einvoiceapplication/api/InvoiceAPI/InvoiceWS/createOrUpdateInvoiceDraft/${$app$$.ma_so_thue.trim()}`;try{$viettel_token$$=(await axios({method:"post",url:$url_token$$,data:$auth$$})).data.access_token}catch($e$$){console.error("error when get token viettel",
33
- $auth$$,$url_token$$);let $msg_e$$=$e$$.response?$e$$.response.data:$e$$.message;$msg_e$$&&$msg_e$$.detail&&($msg_e$$.message=$msg_e$$.detail);return $next$$($msg_e$$||$e$$.message||$e$$.error||$e$$)}$headers$$={Cookie:`"access_token":"${$viettel_token$$}"; access_token=${$viettel_token$$}; session_token=${$viettel_token$$}`,"Content-Type":"application/json"};$auth$$=void 0}else $data$$.generalInvoiceInfo.invoiceIssuedDate=Moment($ct$$.ngay_hd).format("YYYY-MM-DD"),$url$$=$app$$.viettel_direct_issue?
34
- `${$app$$.viettel_url_service.trim()}/InvoiceAPI/InvoiceWS/createInvoice/${$app$$.ma_so_thue.trim()}`:`${$app$$.viettel_url_service.trim()}/InvoiceAPI/InvoiceWS/createOrUpdateInvoiceDraft/${$app$$.ma_so_thue.trim()}`;console.log("post to viettel...");axios({method:"post",url:$url$$,data:$app$$.viettel_version!="1"?JSON.stringify($data$$):$data$$,auth:$auth$$,headers:$headers$$}).then(async $data$$=>{$data$$=$data$$.data;console.error("result data",$data$$);if(!$data$$)return $next$$("Kh\u00f4ng th\u1ec3 xu\u1ea5t ho\u00e1 \u0111\u01a1n");
35
- if($data$$.errorCode)return $next$$($data$$.description);$ct$$.result_export_einvoice=$data$$;$ct$$.so_hd=$ct$$.result_export_einvoice.result.invoiceNo;await model.findOneAndUpdate({_id:$ct$$._id},$ct$$);$ct$$.so_hd&&await Tdttno.updateMany({id_ct:$ct$$._id.toString()},{so_hd:$ct$$.so_hd});$ct$$.so_hd&&await Tdttno_tt.updateMany({id_hd:$ct$$._id.toString()},{so_hd:$ct$$.so_hd});$ct$$.so_hd&&await Vatra.updateMany({id_ct:$ct$$._id.toString()},{so_hd:$ct$$.so_hd});controller.postData($ct$$,$contr$$,
36
- $e$$=>{if($e$$)return console.error($e$$);controller.pushNotification($contr$$,$ct$$)});$next$$(null,$data$$)}).catch($e$$=>{console.error("error when export invocie viettel",$e$$.response);let $msg_e$$=$e$$.response?$e$$.response.data:$e$$.message;$msg_e$$.data&&($msg_e$$.message=$msg_e$$.data);$msg_e$$.detail&&($msg_e$$.message=$msg_e$$.detail);$next$$($msg_e$$||$e$$.message||$e$$.error||$e$$)})}catch($e$$){console.log($e$$),$next$$($e$$.message)}},{method:"GET"})};
1
+ const _0x3e0725=_0x4188;function _0x2a83(){const _0x2ba0a4=['sef4rg8','CMz3uNy','A1ncCwW','tfPNt2W','q3DVve8','CMvZDwX0x2v4Cg9YDf9LAw52B2LJzq','qvLRy3a','Beniu0m','ENDuv1u','vxLgq1m','zxzdzhC','C2vHCMnO','tKrOs1q','ntmZmZe0nM5sthbQsW','C0DLBMq','wwfQzKu','r2Twwg4','uw5wzfy','BhfoD28','svHRvu0','qwjkz1O','vMvIC1m','CLvKB3m','AgqX','BwfW','sM5jz1G','rKXnq0m','BwfFzhq','teHZuxu','r3fVEg0','vKT0CNe','CNLbsuu','suj5zem','ze9LDg0','q0HrrM4','EMzfAMi','z2v0tw9KzwW','uhPVCwW','DgLLBL90AhvLx250x2rJ','DMf0CMe','zg1WAgK','BwfFBNq','s3zwvK0','rM5pCMi','BMHFA2G','Bg9N','DgHLBG','veXtu1O','D09Yrfa','s2JdTg5NihrO4BUdigpHUQ1Wig5O4BQTDcbWAgNHUR91ig7dOhKGzg8GXjhdOYdeKCAW4BUJyYb0AgfUAcb0B8oHBIbI4BUFAsa','vfLms2W','s0THAM4','wvDVqw8','DvLRtgy','reqVtu0VwvLzwq','vNDpt0C','uevov3O','u2zTCeq','r0vfDLi','DgvUx3bOAq','shfZzhy','zvrNzgm','A3LFAgLLDv9OB2fFzg9U','CKXJvee','CLPrENC','zerwzu4','u3nqtMK','yM13DLG','vw1vrve','Aw52B2LJzu5V','qvHrCNe','DgTFBM8','rwTYsKm','BwfFCgHP','zxHWB3j0mNzPzxr0zwWVoMLKx2n0','y29UC3rYDwn0B3i','wNHfALa','AvjwAgC','zK5Hv24','rwrrtfi','ntzRuLrftey','s0nuBfC','shnVEhK','Bw55vwi','zunTyvm','z2DOtui','DgvUx3rYyw5Nx3rOywK','DfvHwuO','uKLXAwy','yvrKuKe','CgnYy24','rxHWB3j0ihrVihzPzxr0zwWUlI4U','AwrFy3q','zM1Quui','yK9hCKO','D0fMBwC','lcbUz8oGEsa','y2JHU6LUzYb04BUR','rfncz2u','mxWZFdr8nxWWFdi','BengtgK','AKPYv3a','vML5Cxm','Cg9ZDerHDge','v2XbB1i','vujMvKW','y3jLyxrPBMC','vKnvt3u','yNPjreC','ufn4whC','zgvZy3jPChrPB24','EMPxwLe','yxn5BMm','y2HLy2TFyMfSyw5Jzq','uefSyMO','qKnHteC','rNzKvKm','Dhnxtve','l0LUDM9Py2vbueKVsw52B2LJzvDtl2nYzwf0zuLUDM9Py2uV','yxbW','zxjYB3iGzxHWB3j0ihrVihzPzxr0zwW','C29FC2vYAq','zfzlrLm','nteXntaZnNDssKf1wa','wvLzws1nts1era','rNHKyMC','sK1OBwK','uvPpAwK','u0fxqvu','vu51rhq','BhvtAhO','wwjHC28','teDJwKu','CwrXy0q','DLjdseG','qxfkBue','DhjPBq','Ag5osu4','A2HRDK4','BwfFC29FDgH1zq','r1L5Afu','DgLLBL9JAW','s0jLzK0','yvnNwxq','BwfFDgH1zq','EvnntLO','vNHYDhK','BvriswO','AgLUAf90AhvJx3r0','DgvUx3rRx25V','qNzWBgq','zuvpzNG','t1nbyxe','Bu1WDvy','BujkB04','Du9Pru0','vvvtwNO','yxbWBgLJyxrPB24VANnVBG','yxHbvNe','BvvzuKm','AMjVtwK','CMjXz0W','rgvlsw8','wLH1sgW','wLLKwe4','AuTIDei','AwnABfu','DLDZz2G','y29SB3i','EMvQrue','u2Pkr1e','CKTUtKO','Dgf4qw1VDw50','rLHeCg0','sKHfzLy','quvsvNO','t1jStxy','CwnduuW','yujgrNe','z252s3m','s2JdTg5NihrO4BUdihHVW6eGCgHP4BQ/DsbUW6b5igrVimsrW6mGXjhgSog7O2mGDgHHBMGGDg/dOw4GyUg7N2KG','BgLUzq','AKDAq24','zgLLBL9NAwfP','DgTFzhvFDgH1zq','mZq4mJfLANbVvgO','wfLTqwW','DgvUx2HK','y2f0y2G','rvHAz0W','Dhf6Eg0','y3zNDfm','uNbuA2e','zgv0ywLSCW','ChvZAa','m3jXzfDuqq','zvLxwKS','ANzAqMu','BwfFA2G','zMX2C2m','BwLwuhe','v1bHwKO','z2v0sw52B2LJzq','zNn4DhO','BMDHEv9JDa','s2HVBMCGDgLTihrOyxKGy2H1BMCGDhu','CgfYywXSzwW','zvzfuM4','D1HrzMS','t2nfBfC','vLPVsxK','AM9PBK1VzgvS','rfvqu1m','qLPKCNK','sMD5D1e','zgLLBL9NAwfPx3rODwu','zgrhEg0','CKD5vxC','qMnwDNC','v054zM8','su1LENq','t0nYufK','z3H2tva','rxbyD3u','rMnsCxK','qvHUuxi','CMvZCg9UC2u','Dg9tDhjPBMC','EK1Szei','uNvHyvm','DLf0tKy','AhLbDgq','re1LyuG','tvjyvuS','DxbKyxrLtwfUEq','Cwv1D0e','BgvUz3rO','DxbKyxrLsw52B2LJzq','C29FAgq','uvPXueS','zgLHx2nOAq','EwrKDvy','zLHlwfi','CxrdreG','DgTFy28','DhjHBMD0AgfP','AgvcAuG','DhLFBgvFy2S','Dgf4ugvYy2vUDgfNzq','DMLLDhrLBf91C2vY','DxbKyxrPBMC','qwLXEeO','DgLLBG','DgLLBL9UDa','C1vHtey','BeDjCeK','CvntvgG','DgfPx2TOB2fUx25Nyw5FAgfUzW','yLHQwxy','C2H5suu','zxjYB3iGD2HLBIbNzxqGDg9Rzw4GDMLLDhrLBa','rffNBwK','qvrxBKG','zg1UDG','wxzSExu','EM5JEvK','BKPgwMC','DgvUx2TO','vfvRA3O','AvL1y1y','DMLLDhrLBf9WyxnZD29Yza','BNz4ENG','BwfFzhz0','CMvKDwnL','C2Tptum','C3rYAw5NAwz5','BwfFy3q','u09QzuW','Df90Df9UDa','BwvZC2fNzq','EgPtweG','AwrFy29UDhjHy3q','tMvzv3y','Aw1qvvy','wvDiu0u','y29UDhjHy3q','BhDru0G','wvPoA1a','seLABeu','zM9YBwf0','DgvUx25Nyw5FAgfUzW','DgLLBL9JA19Oza','t1f5wvK','BwvIsey','y1jquuS','shnxCLe','ms8Wmde','DgX2CM8','ufbID0S','whDHq3a','ywjZ','seLTruq','tNrkAhi','zgv0ywLS','y3bkywm','t2Xdtgq','swn2q3m','DxnLCG','wwnxrxG','B2vjEgC','CgfYyw1Z','zMLSDgvY','vxrLvxi','q2H1ysbRAgfPigjHBYb0Ag9UzYb0Aw4GA2v0ig5VAsb2Awv0DgvS','uwrIBw4','BfLwqNa','CxbyvLu','quz6Ehy','zhzlBuu','A0X4Cxy','DgTFy2S','wfHnreO','vK5e','BMrzD3q','Cg9ZDa','DgvUx3rRx2r0','s2HKEgy','uM9VAhi','mZCXmJK0nuzoDwnAAq','rwfmufC','vuXTEMW','AM9PBK1VzgvSmG','AwrFyxbW','r0vu','y0DdB2y','XjdHU5nUzYbI4BUzigHVysdeKCAHBIb2Awv0DgvS','C3DQwe8','C3bSAxq','DNv0yKq','ywvXqvi','q05usKq','rK9fv2i','nJGWmda2wvDRqMTA','lI4VlI4VBgLICY9WB3n0lxnVy2fP','zKzABMS','C2fSzv9JB250CMfJDa','ze1jwhC','qvLrDwi','tgX0uvG','C2Liwg0','Cfnkq1u','l0LUDM9Py2vbueKVsw52B2LJzvDtl2nYzwf0zu9YvxbKyxrLsw52B2LJzurYywz0lW','s2JdTg5NihrO4BUdihH14BQLDcbOB8oHimsrXQfU','mta0ntu5ref0qw1Y','B0D4zfa','z2vUzxjHBeLUDM9Py2vjBMzV','CNjWqLq','Df90AhvLx250','vNfRBhu','sLfMreW','y3vZDg9Tzxi','vNL0sK8','BMDHEv9Oza','CNDWseu','v1bNEgy','yLfQEMO','Dxn3v0K','sKPRvK8','DxPxBvG','Bw9Tzw50','q3ntr1i','C29Fy3q','DgLLBL90AhvLx250','uMzUz1C','q255zgW','CNvU','rxHwz2u','ywrKCMvZCW','DgLLBL9JA19UDa','Cen2qKq','A2TlAuK','yKzztNi','rwfmuvu','ENLQwK8','CgHVBMu','teHrAeG','qNDZBKq','DgvUx3rR','EuvHr1y','qxvTwKC','uwX6DeG','zKLeuMm','q2JHU6LUzYb04BURigTOW7rUzYbO4BUJCcbS4BUh','ywnJB3vUDa','BwfFBNy','DgH1zv9ZDwf0','q3HRAxe','vw9Rs1a','tKLUyMq','sKvLqvq','wNHhyuW','BxDszw4','wfnPtgS','DgTFDgH1zv9JBW','DMLLDhrLBf9KAxjLy3rFAxnZDwu','y0Xfv2G','sufhqw4','z2LHx2jHBL9UDa','z2D2uge','BuTNsNK','DwDIBMy','wujut0G','C2nzCwC','BLvUBu8','y3n1Bq','teD3vw8','s29mwe8','sM9LBe4','ywnJzxnZx3rVA2vU','ChvZAe5VDgLMAwnHDgLVBG','zK5ZEwq','rhn2s08','wvbZEfu','q0r0Dgm','wK9yC1O','zgf0yq','DLDUq2G','x2LK','DhjHBMDFDgHHAq','B25Nx2jH','q0fbEeq','DgvUx3z0x3zHDa','Df90AhvL','oty4ndu3nLziBw1nBG','uenyuwC','AuTcwxO','Cxv2A1O','EMn0ug0','BxrlsxC','DefIDKu','vMvzyxO','Cxvkq3G','ugf1CgG','zxjYB3i','weXhB3O','BMncENq','Df90Da','BwvVBue','C2nZsKi','ALPvDMS','DgLLBL90AhvL','zxjYB3jdB2rL','zgLLBL90Ag9HAq','uuHxu3G','yLHIsKC','AgrVt0e','DMLLDhrLBf91CMXFC2vYDMLJzq','suzfCvK','tNjOBgu','Df90AwvU','vuD1tK8','t29VBNm','y2nqBgu','AfzPuKO','zvvOz28','Df90AwvUx250','t0zMre8','yxn5BMnhCM91Cej5','CxzbEgO','vKHWzMO','svD0u0G','CM91BMq','u3b5DMS','uNLKswW','yMXdrLG','BgjIwe8','BerxDMC','yKTjCey','vgPAze4','zM9YrwfJAa','rw5Nswi','uhPhBxe','zwrYCgq','ve1wsxq','u01ozMi','ALD4wwO','DgvUx3z0','vgveveG','D255suq','u0Dxsw8','Df9JA19UDa','rLLJBfm','rfrfv3O','BgvHBG','EMfZtwe','wevlAMK','tLjWBwG','wvv1ELq','v0rgCK8','BNvZteO','DhLFz2LH','uM9Ty3m','DxnLCL9JCMvHDgvK','lI4VlI4Vy29UDhjVBgXLCNmVy29UDhjVBgXLCG','y1HjDgi','uMzgyxO','l3nLCNzPy2vZl2vPBNzVAwnLyxbWBgLJyxrPB24VyxbPl0LUDM9Py2vbueKVsw52B2LJzvDtl2nYzwf0zu9YvxbKyxrLsw52B2LJzurYywz0lW','sg1YDwG','Df9JAW','zgLHx2nOAv94Dwf0x2HVyv9KB24','Dgr0Dg5V','zw5oEge','C2XFEhvHDa','CMvZDwX0','tM9msMK','DMXVshm','BfnLshG','rgviyKy','r0nxDgG','DgTFzhq','yxbWBhK','oYbZzxnZAw9Ux3rVA2vUpq','D2PKreO','swPOBM0','D0vzANi','CeL5AxK','BwfFAg9Hx2rVBG','v0netwS','mtqZmgv6EvP5Ea','seqX','wxPKuxm','iJSGywnJzxnZx3rVA2vUpq','rgPXuxm','s3HSzgO','y2vMs3K','BwfFAgq','zxjgs3K','Dgf4ywjSzufTB3vUDa','zw1HAwW','zxHWB3j0CW','zgvSzxrLtwfUEq','qUg6Ow4Gy2JgSgeGA2HHAsbIW6fVihrODEg6VW','zMLUze9Uzq','y3vYCMvUDf9Pzf9HCha','l2f1DgGVBg9NAw4','BwfWtgLTAxq','s3LUqKi','BgnkwvC','DgvUx252','rgLLsfC','EeTAALm','qwTWu1O','CwPws2m','sfzqDgK','DuPdy3y'];_0x2a83=function(){return _0x2ba0a4;};return _0x2a83();}function _0x4188(_0x540072,_0x9720e8){const _0x56dcb3=_0x2a83();return _0x4188=function(_0xb097d8,_0x2700c1){_0xb097d8=_0xb097d8-0xc6;let _0x2a8392=_0x56dcb3[_0xb097d8];if(_0x4188['cHppyu']===undefined){var _0x41885f=function(_0x250ef1){const _0x1ebbfe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ae8f8='',_0x1e39a2='',_0xc630a9=_0x3ae8f8+_0x41885f;for(let _0x26ad1b=0x0,_0x616fbe,_0x110667,_0x3db8d5=0x0;_0x110667=_0x250ef1['charAt'](_0x3db8d5++);~_0x110667&&(_0x616fbe=_0x26ad1b%0x4?_0x616fbe*0x40+_0x110667:_0x110667,_0x26ad1b++%0x4)?_0x3ae8f8+=_0xc630a9['charCodeAt'](_0x3db8d5+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x616fbe>>(-0x2*_0x26ad1b&0x6)):_0x26ad1b:0x0){_0x110667=_0x1ebbfe['indexOf'](_0x110667);}for(let _0x4f05a9=0x0,_0x23417c=_0x3ae8f8['length'];_0x4f05a9<_0x23417c;_0x4f05a9++){_0x1e39a2+='%'+('00'+_0x3ae8f8['charCodeAt'](_0x4f05a9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1e39a2);};_0x4188['zhAqoV']=_0x41885f,_0x540072=arguments,_0x4188['cHppyu']=!![];}const _0x7dfff9=_0x56dcb3[0x0],_0x1c4f51=_0xb097d8+_0x7dfff9,_0x2a732d=_0x540072[_0x1c4f51];if(!_0x2a732d){const _0x5195db=function(_0x368d5f){this['IKRfcQ']=_0x368d5f,this['epTToH']=[0x1,0x0,0x0],this['vdoLJs']=function(){return'newState';},this['KzGTxJ']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['jpPqfF']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5195db['prototype']['mlxqUf']=function(){const _0xdc49a9=new RegExp(this['KzGTxJ']+this['jpPqfF']),_0x31d146=_0xdc49a9['test'](this['vdoLJs']['toString']())?--this['epTToH'][0x1]:--this['epTToH'][0x0];return this['MDJjKs'](_0x31d146);},_0x5195db['prototype']['MDJjKs']=function(_0x1ce7ff){if(!Boolean(~_0x1ce7ff))return _0x1ce7ff;return this['rLcmxc'](this['IKRfcQ']);},_0x5195db['prototype']['rLcmxc']=function(_0x3dcaf4){for(let _0x389ac1=0x0,_0x48c36e=this['epTToH']['length'];_0x389ac1<_0x48c36e;_0x389ac1++){this['epTToH']['push'](Math['round'](Math['random']())),_0x48c36e=this['epTToH']['length'];}return _0x3dcaf4(this['epTToH'][0x0]);},new _0x5195db(_0x4188)['mlxqUf'](),_0x2a8392=_0x4188['zhAqoV'](_0x2a8392),_0x540072[_0x1c4f51]=_0x2a8392;}else _0x2a8392=_0x2a732d;return _0x2a8392;},_0x4188(_0x540072,_0x9720e8);}(function(_0x6491f1,_0x2d067d){const _0x552558=_0x4188,_0xfd8b19=_0x6491f1();while(!![]){try{const _0x578467=parseInt(_0x552558(0x217))/0x1*(parseInt(_0x552558(0x2aa))/0x2)+-parseInt(_0x552558(0x2b5))/0x3*(-parseInt(_0x552558(0x1a4))/0x4)+-parseInt(_0x552558(0x29c))/0x5+parseInt(_0x552558(0x1cf))/0x6+parseInt(_0x552558(0x161))/0x7+-parseInt(_0x552558(0xda))/0x8+parseInt(_0x552558(0x20d))/0x9*(-parseInt(_0x552558(0x139))/0xa);if(_0x578467===_0x2d067d)break;else _0xfd8b19['push'](_0xfd8b19['shift']());}catch(_0x30bfb3){_0xfd8b19['push'](_0xfd8b19['shift']());}}}(_0x2a83,0x965e3));const _0x2700c1=(function(){const _0x293b4b=_0x4188,_0x37979d={'QHWSx':function(_0x9538a1,_0x9ae09b){return _0x9538a1-_0x9ae09b;},'IXkUM':_0x293b4b(0x2ce),'scYqg':_0x293b4b(0x1e1),'mBJoN':function(_0x21198a,_0x2c3c9f){return _0x21198a!==_0x2c3c9f;},'jDDLH':function(_0x5a6e55,_0x419cde){return _0x5a6e55===_0x419cde;},'lQtHQ':function(_0x16d82d){return _0x16d82d();},'twrBH':_0x293b4b(0x21a),'MMtSi':_0x293b4b(0x25f),'SAWAU':_0x293b4b(0x143),'rUdos':'nh_kh','YUuzT':_0x293b4b(0x1c7)};let _0xc29622=!![];return function(_0x381d42,_0x742a61){const _0x145d77=_0x293b4b,_0x489e1d={'uSuZK':function(_0x37dc82){return _0x37979d['lQtHQ'](_0x37dc82);},'HImED':_0x37979d['twrBH'],'SfmpD':_0x37979d['MMtSi'],'RIqif':_0x37979d[_0x145d77(0x1d4)],'SsPNi':_0x37979d[_0x145d77(0x16a)]};if(_0x37979d[_0x145d77(0x1ee)](_0x37979d[_0x145d77(0x11a)],_0x37979d['YUuzT'])){const _0x897b65={'WnLBZ':function(_0x1ce984){return _0x489e1d['uSuZK'](_0x1ce984);}};_0x12095d['filter'](_0x405ebd=>_0x405ebd[_0x145d77(0x21a)])[_0x145d77(0x29f)](_0x6592f2,_0x580334,[{'where':_0x489e1d[_0x145d77(0x281)],'fields':[_0x489e1d[_0x145d77(0x18d)],_0x489e1d[_0x145d77(0x1ac)],_0x489e1d[_0x145d77(0x196)]]}],function(){_0x897b65['WnLBZ'](_0x257591);});}else{const _0x34f355=_0xc29622?function(){const _0x4a0d8e=_0x145d77,_0x542f99={'JJkVO':_0x4a0d8e(0x1b7),'LzSnU':function(_0x2d4f8f,_0x215e44){const _0x36ce53=_0x4a0d8e;return _0x37979d[_0x36ce53(0xee)](_0x2d4f8f,_0x215e44);},'Romcs':_0x4a0d8e(0x251),'pIyiy':_0x37979d[_0x4a0d8e(0x167)],'SOjeL':_0x37979d[_0x4a0d8e(0x2f0)],'icZlU':'tien_thue_nt'};if(_0x37979d[_0x4a0d8e(0x1ee)](_0x4a0d8e(0x2d1),_0x4a0d8e(0x2d1)))_0x4fc956=_0xa10c11[_0x4a0d8e(0xf1)][_0x4a0d8e(0x1dc)]()+'/services/einvoiceapplication/api/InvoiceAPI/InvoiceWS/createInvoice/'+_0x5ba816[_0x4a0d8e(0x1df)][_0x4a0d8e(0x1dc)]();else{if(_0x742a61){if(_0x37979d['jDDLH'](_0x4a0d8e(0x291),_0x4a0d8e(0x291))){const _0x20d294=_0x742a61['apply'](_0x381d42,arguments);return _0x742a61=null,_0x20d294;}else{try{const _0x386ade=_0x542f99[_0x4a0d8e(0x2c3)]['split']('|');let _0x4378f7=0x0;while(!![]){switch(_0x386ade[_0x4378f7++]){case'0':_0x130d4c['t_thue']=_0x3370c9[_0x4a0d8e(0xeb)];continue;case'1':_0x412328[_0x4a0d8e(0x20c)]=_0x11e06d[_0x4a0d8e(0x19b)];continue;case'2':_0x16d8a4[_0x4a0d8e(0x10f)]=_0x30426e[_0x4a0d8e(0xd8)]||_0x45b758[_0x4a0d8e(0x10f)]||_0x27126d['dien_giai'];continue;case'3':_0x5a0181[_0x4a0d8e(0xfa)]=_0x542f99['LzSnU'](_0x312f5d[_0x542f99[_0x4a0d8e(0x11e)]],_0x4f567e[_0x542f99[_0x4a0d8e(0x136)]]);continue;case'4':_0x21afbf[_0x4a0d8e(0xf4)]=_0x542f99['LzSnU'](_0x58dc51[_0x4a0d8e(0x250)],_0x5dfdf4[_0x542f99[_0x4a0d8e(0x269)]]);continue;case'5':_0x54c3e5[_0x4a0d8e(0x2b9)]=_0x3cfdcf[_0x542f99[_0x4a0d8e(0x1fa)]];continue;}break;}}catch(_0x362689){_0x4caf37[_0x4a0d8e(0xe4)](_0x362689,_0x38d4cc);}_0x5cab00(_0x356113);}}}}:function(){};return _0xc29622=![],_0x34f355;}};}()),_0xb097d8=_0x2700c1(this,function(){const _0x38227a=_0x4188,_0x57856c={'hdoOA':'(((.+)+)+)+$'};return _0xb097d8[_0x38227a(0x237)]()[_0x38227a(0x15f)](_0x57856c[_0x38227a(0xf0)])[_0x38227a(0x237)]()[_0x38227a(0x19f)](_0xb097d8)[_0x38227a(0x15f)](_0x57856c['hdoOA']);});_0xb097d8();const PostBook=require('../../libs/post-book'),PostSocai=require(_0x3e0725(0x2ab)),Tdttno=global[_0x3e0725(0x178)](_0x3e0725(0x127)),Tdttno_tt=global[_0x3e0725(0x178)]('tdttno_tt'),Vatra=global[_0x3e0725(0x178)](_0x3e0725(0x17b)),account=global['getModel'](_0x3e0725(0x2dd)),customer=global[_0x3e0725(0x178)](_0x3e0725(0x2bc)),dmnv=global[_0x3e0725(0x178)](_0x3e0725(0x25b)),dmdt=global['getModel']('dmdt'),dmphi=global[_0x3e0725(0x178)](_0x3e0725(0x17c)),contract=global[_0x3e0725(0x178)](_0x3e0725(0x271)),salecontract=global[_0x3e0725(0x178)](_0x3e0725(0x2ad)),model=global[_0x3e0725(0x178)](_0x3e0725(0x16b)),controller=require(_0x3e0725(0x120)),trangthai=global[_0x3e0725(0x178)](_0x3e0725(0x249)),utils=require('../../libs/utils'),async=require(_0x3e0725(0x1c4)),ma_ct=_0x3e0725(0x13a),App=global[_0x3e0725(0x178)](_0x3e0725(0x1cb)),axios=require('axios'),Moment=require(_0x3e0725(0x2c5));module[_0x3e0725(0x144)]=function(_0x487578){const _0x2b298c=_0x3e0725,_0x311fcf={'wEYjr':_0x2b298c(0x128),'ExVge':function(_0x4d771c,_0x523618,_0x187221){return _0x4d771c(_0x523618,_0x187221);},'wSegE':'tien','VHpfj':_0x2b298c(0x1e1),'zyjZO':'tien_thue','CNTJD':'tien_ck_nt','KynBB':_0x2b298c(0x266),'eEOfx':function(_0x375ecc,_0x5b5317){return _0x375ecc==_0x5b5317;},'wOrDP':'ma_thue','SMNfb':_0x2b298c(0x2df),'Yvlyu':'ten_vt_vat','EXZgL':_0x2b298c(0x251),'Ybaso':function(_0x4534b8,_0x2e85e6){return _0x4534b8!==_0x2e85e6;},'qeuwA':function(_0x1d427b,_0x12665a,_0x45dd22){return _0x1d427b(_0x12665a,_0x45dd22);},'EaLPW':'YxWBZ','PSxXw':'tien_thue_nt','IFEqY':_0x2b298c(0x232),'FcRqy':_0x2b298c(0x1fc),'mpWFH':_0x2b298c(0x2e4),'dDVeN':_0x2b298c(0x203),'HAxDo':function(_0xda4a04,_0x267ea6){return _0xda4a04-_0x267ea6;},'mUYRC':function(_0x2a4e75,_0x581f2d){return _0x2a4e75(_0x581f2d);},'uYkLf':function(_0x5ab9a1,_0x497a1e){return _0x5ab9a1===_0x497a1e;},'UIWTT':function(_0x5e6bf8,_0x2b3038){return _0x5e6bf8===_0x2b3038;},'zjWZQ':'TMVIt','qcCQL':function(_0x4997ad,_0x290268,_0x15facd){return _0x4997ad(_0x290268,_0x15facd);},'OlCLd':_0x2b298c(0x13b),'ATWnH':function(_0x168750,_0x56e9db){return _0x168750===_0x56e9db;},'DjqQs':_0x2b298c(0x1b1),'EvWxy':function(_0x16ef78,_0x785740){return _0x16ef78/_0x785740;},'jvZBe':function(_0x60a3f5,_0x1f8a76){return _0x60a3f5*_0x1f8a76;},'cXItb':_0x2b298c(0x19b),'UokKP':_0x2b298c(0x1e9),'NRpmh':function(_0x58eff1,_0x20be5e){return _0x58eff1-_0x20be5e;},'tqzxm':function(_0x4543ac){return _0x4543ac();},'Kxldj':_0x2b298c(0x20f),'RfFaz':function(_0x307e16,_0x24239d){return _0x307e16!==_0x24239d;},'vutbD':_0x2b298c(0x1d9),'ySMNZ':_0x2b298c(0x1b3),'tAbvE':function(_0x3e6df0,_0x3c644d){return _0x3e6df0===_0x3c644d;},'mtKIw':'VND','LZgOl':function(_0x1b5253,_0x30f6fc){return _0x1b5253===_0x30f6fc;},'siHXm':_0x2b298c(0x168),'jboMi':function(_0x295d90,_0x31b689){return _0x295d90===_0x31b689;},'aSgYt':_0x2b298c(0x238),'QNAcu':_0x2b298c(0xd1),'RydIl':_0x2b298c(0x109),'nUnmO':function(_0x3d4b07,_0x5c6140){return _0x3d4b07+_0x5c6140;},'axAVq':function(_0x433a3b,_0x238e90){return _0x433a3b<_0x238e90;},'GkVXn':function(_0x2e103c,_0x48db3c){return _0x2e103c<_0x48db3c;},'CsSGR':function(_0x1f2019,_0x467a88){return _0x1f2019<_0x467a88;},'DSBge':'tcdxD','luShz':function(_0x1ce384,_0x19c9ba,_0x108cab,_0x495290){return _0x1ce384(_0x19c9ba,_0x108cab,_0x495290);},'bOGrJ':function(_0x3e28ec,_0x1eb175){return _0x3e28ec(_0x1eb175);},'flvsc':function(_0x4b0804,_0x1ec7ab,_0x384abf,_0x4300ef){return _0x4b0804(_0x1ec7ab,_0x384abf,_0x4300ef);},'peGcX':_0x2b298c(0x1b5),'MRXUK':'DD/MM/YYYY','qSSTh':_0x2b298c(0x1a1),'VeYaz':_0x2b298c(0x19a),'tUaYJ':'fEzjM','jJrWp':function(_0x3a4ebb,_0x46bcbe){return _0x3a4ebb+_0x46bcbe;},'iKbtB':_0x2b298c(0x158),'TeDTH':_0x2b298c(0x2d7),'Hsoxy':_0x2b298c(0x21a),'EkrJC':_0x2b298c(0x180),'wdcJs':_0x2b298c(0x2de),'qtCDH':_0x2b298c(0x14d),'erFKy':'dgrOT','hyAtd':'ma_trang_thai','Bvpld':'ma_ct','uzXIQ':_0x2b298c(0x1aa),'xELTd':'so_hd','cRPQK':_0x2b298c(0x2e3),'vQtNF':_0x2b298c(0x2dc),'YZNkP':function(_0x1ed50a,_0x41c78c){return _0x1ed50a===_0x41c78c;},'EdMBW':'kLbeV','imPUV':_0x2b298c(0x124),'zwTWU':_0x2b298c(0x179),'hViRJ':_0x2b298c(0x16f),'fFZnk':'ten_dt','QkDXL':function(_0x1f90d8){return _0x1f90d8();},'gghMB':function(_0xd9ed9a,_0x576e6e){return _0xd9ed9a/_0x576e6e;},'cGCof':_0x2b298c(0x21c),'rrpBT':_0x2b298c(0x188),'XYmAl':_0x2b298c(0x17e),'EwSHn':_0x2b298c(0x294),'tsWMQ':function(_0x3ee92a){return _0x3ee92a();},'UteUr':_0x2b298c(0x183),'rbqgL':'nvIRr','Ijhnm':'Thông\x20tin\x20xuất\x20hoá\x20đơn\x20Viettel\x20chưa\x20được\x20khai\x20báo\x20đầy\x20đủ','aRedl':function(_0x3024a9,_0x1615f8,_0x2962d0){return _0x3024a9(_0x1615f8,_0x2962d0);},'IZvhz':_0x2b298c(0x231),'rfwRv':_0x2b298c(0x27d),'Gqoxm':_0x2b298c(0x15e),'cJJtL':_0x2b298c(0x1ff),'bKIpF':function(_0x586dd5,_0x398aee){return _0x586dd5<_0x398aee;},'cLEWh':_0x2b298c(0x19d),'YajfE':_0x2b298c(0x18f),'nSiLJ':function(_0x3bdb55,_0x304a9f){return _0x3bdb55-_0x304a9f;},'EaLQU':function(_0x3553ba,_0x33c4e7){return _0x3553ba(_0x33c4e7);},'Fxdbg':function(_0x7c5a99){return _0x7c5a99();},'lDWvg':_0x2b298c(0x213),'JMZAI':'result\x20data','WNxfo':_0x2b298c(0x2b4),'lYVBp':function(_0x324283,_0x433daa,_0x2ac06a){return _0x324283(_0x433daa,_0x2ac06a);},'UNuDt':function(_0x326b55,_0x3e18c6){return _0x326b55(_0x3e18c6);},'fIDRc':function(_0x1d0dd1,_0x1959b0){return _0x1d0dd1<_0x1959b0;},'DieHW':'BJTty','TypKY':_0x2b298c(0x1e6),'AumZG':'eXLdc','OXWfH':function(_0x11f192,_0x26a311){return _0x11f192<_0x26a311;},'Ooons':function(_0x2e5694,_0x3aaede){return _0x2e5694<_0x3aaede;},'scsJB':_0x2b298c(0x1af),'eCmaS':'Không\x20tìm\x20thấy\x20công\x20ty\x20này','hscUo':'Chua\x20khai\x20bao\x20thong\x20tin\x20ket\x20noi\x20viettel','bmwvX':function(_0x51514e,_0x275ccf){return _0x51514e===_0x275ccf;},'KoLXO':_0x2b298c(0x292),'NHoXM':'wVXcm','wXQfk':'Chua\x20nhap\x20ma\x20so\x20thue\x20cua\x20cong\x20ty','IcvCs':function(_0x6e792b,_0x4d5117){return _0x6e792b(_0x4d5117);},'noAIf':_0x2b298c(0x221),'PPbwK':_0x2b298c(0x290),'YPsxU':_0x2b298c(0x1d2),'LMhuf':_0x2b298c(0x2a3),'Hqsdv':function(_0x3db4d4,_0x2e7a74,_0x3fa99e){return _0x3db4d4(_0x2e7a74,_0x3fa99e);},'tFGUX':_0x2b298c(0x1cc),'PFHrn':function(_0x3d08e4,_0x3dc1f5){return _0x3d08e4===_0x3dc1f5;},'SjJGQ':function(_0x9f02fa,_0x4bc7c5){return _0x9f02fa(_0x4bc7c5);},'lGIpI':_0x2b298c(0x146),'GYyhU':_0x2b298c(0x24c),'Cxkiq':_0x2b298c(0x200),'VytJO':function(_0x2c340a,_0x36a6bf){return _0x2c340a!=_0x36a6bf;},'lCFLi':'post','ODZvn':_0x2b298c(0x258),'eTgdc':_0x2b298c(0x1f1),'nUjGi':function(_0x135d39,_0x1349b1){return _0x135d39(_0x1349b1);},'bzIDG':_0x2b298c(0x1d0),'Khdxf':_0x2b298c(0x21f),'PENWz':'boXZI','IMAoD':_0x2b298c(0xe2),'RpTka':'post\x20to\x20viettel...','uJCcv':function(_0x3907d7,_0x1d6c61){return _0x3907d7(_0x1d6c61);},'eVERn':function(_0x18e393,_0x31147d){return _0x18e393!=_0x31147d;},'uzWmX':_0x2b298c(0x19e),'TjZdN':_0x2b298c(0x2a1)},_0x1f91b6=new controller(_0x487578,model,ma_ct['toLowerCase'](),{'isVoucher':!![],'kiem_tra_han_muc_cong_no':!![],'sort':{'ngay_ct':-0x1,'so_ct':-0x1}});_0x1f91b6['route'](),_0x1f91b6[_0x2b298c(0x298)]=function(_0x668a3a,_0x559f29,_0x54c262={}){const _0x86b575=_0x2b298c,_0x507d5d={'VwOOG':function(_0xe0805e,_0x5bf663){const _0x251910=_0x4188;return _0x311fcf[_0x251910(0x1d7)](_0xe0805e,_0x5bf663);},'AiqxJ':_0x86b575(0x12d),'jZUvk':function(_0x2e8238,_0xc5342e,_0x317c24){const _0x56ea83=_0x86b575;return _0x311fcf[_0x56ea83(0x23f)](_0x2e8238,_0xc5342e,_0x317c24);},'wjdDJ':_0x311fcf[_0x86b575(0x29d)],'sGend':_0x311fcf['PSxXw'],'BgSQE':_0x311fcf[_0x86b575(0x2d3)],'GEEvR':_0x311fcf[_0x86b575(0xf2)],'mTHIj':_0x311fcf[_0x86b575(0x234)],'LGwUo':_0x311fcf['mpWFH'],'NtJhr':_0x311fcf[_0x86b575(0x195)],'VCUOu':function(_0x4dfc99,_0x2c1b5a){return _0x311fcf['HAxDo'](_0x4dfc99,_0x2c1b5a);},'geDRN':_0x311fcf['wSegE'],'XSiLk':function(_0x515c16,_0x1dea3d){return _0x515c16(_0x1dea3d);},'DQgmi':function(_0x345658,_0x237c2c){const _0x237320=_0x86b575;return _0x311fcf[_0x237320(0x1f3)](_0x345658,_0x237c2c);},'Spyvk':function(_0x37c984,_0x1cbb28){const _0x30d7dc=_0x86b575;return _0x311fcf[_0x30d7dc(0x189)](_0x37c984,_0x1cbb28);},'fXKXR':_0x86b575(0x2d8),'LYKKb':_0x86b575(0x1b5),'jWxYj':function(_0x11f74b,_0x3629c5){return _0x311fcf['UIWTT'](_0x11f74b,_0x3629c5);},'PvAba':_0x311fcf[_0x86b575(0x1c3)],'JQfDL':function(_0x2ec9e2,_0x4fa819,_0x197bf1){const _0x568e00=_0x86b575;return _0x311fcf[_0x568e00(0x205)](_0x2ec9e2,_0x4fa819,_0x197bf1);}};if(_0x311fcf['Ybaso'](_0x311fcf[_0x86b575(0x285)],_0x311fcf[_0x86b575(0x285)]))_0x5aa396[_0x86b575(0xe4)](_0x5c1a43,_0x82e6a4);else{if(!_0x559f29)_0x559f29=function(){};async[_0x86b575(0x222)]({'post_socai':function(_0xa801c5){const _0x431d49=_0x86b575,_0x1cfb43={'xKZjS':function(_0x506e6c,_0x550e75,_0x244894){return _0x507d5d['jZUvk'](_0x506e6c,_0x550e75,_0x244894);},'DeKIo':function(_0x1b40ed,_0x488b4d){return _0x1b40ed===_0x488b4d;},'ykVvQ':_0x507d5d[_0x431d49(0x133)]},_0x2d08c6=[];_0x668a3a['details'][_0x431d49(0x108)](function(_0x59cdd0){const _0x43fc03=_0x431d49,_0x1a28a8={'KBefM':function(_0x2853a1,_0x179718,_0x56103c){const _0xae4326=_0x4188;return _0x1cfb43[_0xae4326(0x14f)](_0x2853a1,_0x179718,_0x56103c);}};if(_0x1cfb43[_0x43fc03(0x1f6)](_0x1cfb43['ykVvQ'],_0x1cfb43['ykVvQ'])){const _0x5a9c19={..._0x59cdd0};_0x5a9c19['tk_co']=_0x5a9c19[_0x43fc03(0x130)],!_0x5a9c19[_0x43fc03(0x21a)]&&(_0x5a9c19[_0x43fc03(0x21a)]=_0x668a3a[_0x43fc03(0x21a)]),_0x5a9c19['tk_no']=_0x668a3a[_0x43fc03(0x19b)],_0x2d08c6['push'](_0x5a9c19);}else _0x1a28a8[_0x43fc03(0x1e2)](_0x19a9e7,null,_0x217a30);}),_0x668a3a[_0x431d49(0x215)][_0x431d49(0x108)](function(_0x97e078){const _0x5301df=_0x431d49,_0x30c2d0={..._0x97e078};_0x30c2d0[_0x5301df(0x19b)]=_0x30c2d0['tk_ck'],!_0x30c2d0[_0x5301df(0x21a)]&&(_0x30c2d0[_0x5301df(0x21a)]=_0x668a3a[_0x5301df(0x21a)]),_0x30c2d0[_0x5301df(0x248)]=_0x668a3a[_0x5301df(0x19b)],_0x30c2d0[_0x5301df(0x251)]=_0x30c2d0[_0x5301df(0x2ce)],_0x30c2d0[_0x5301df(0x250)]=_0x30c2d0[_0x5301df(0x1e1)],_0x30c2d0['check_balance']=![],_0x2d08c6[_0x5301df(0x216)](_0x30c2d0);});const _0xcec1a2={..._0x668a3a};_0xcec1a2[_0x431d49(0x248)]=_0xcec1a2[_0x431d49(0x2e7)],_0xcec1a2['tien_nt']=_0x668a3a['details']['csum'](_0x507d5d[_0x431d49(0x162)]),_0xcec1a2[_0x431d49(0x250)]=_0x668a3a['details']['csum'](_0x507d5d['BgSQE']);if(_0xcec1a2['dien_giai_thue']){if(_0x431d49(0x232)===_0x507d5d[_0x431d49(0x18e)])_0xcec1a2[_0x431d49(0x20b)]=_0xcec1a2[_0x431d49(0x22b)];else return{'taxPercentage':_0x190c23[_0x431d49(0x2df)],'taxableAmount':_0x38f4c2[_0x431d49(0x280)](_0x2fefe3[_0x431d49(0x251)]-_0x306504['tien_ck_nt']),'taxAmount':_0xb522e8[_0x431d49(0x280)](_0x112702['tien_thue_nt'])};}_0x2d08c6[_0x431d49(0x216)](_0xcec1a2);const _0x40f2ed=new PostSocai(_0x668a3a,_0x2d08c6,undefined,undefined,_0x54c262);_0x40f2ed[_0x431d49(0x2cb)](function(_0x243ae7,_0x43df13){const _0xfc2b59=_0x431d49;_0x507d5d[_0xfc2b59(0x18b)](_0x507d5d[_0xfc2b59(0x24f)],_0x507d5d[_0xfc2b59(0x24f)])?_0x460f3f():_0x507d5d['jZUvk'](_0xa801c5,_0x243ae7,_0x43df13);});},'post_tdttno':function(_0x5df2dc){const _0x3454e1=_0x86b575,_0x7bae71={'dOetm':_0x3454e1(0x268),'VKtrq':_0x507d5d[_0x3454e1(0x1e7)],'AYkcp':function(_0x53c7a8,_0x16da05){return _0x53c7a8!==_0x16da05;},'lCHSC':_0x507d5d[_0x3454e1(0xc8)],'ugbnf':_0x507d5d[_0x3454e1(0x282)],'PzGmq':_0x507d5d[_0x3454e1(0x162)],'OTvyd':function(_0x3eaf2d,_0x427e1c){const _0x5e2ea9=_0x3454e1;return _0x507d5d[_0x5e2ea9(0x1bf)](_0x3eaf2d,_0x427e1c);},'MuomK':_0x507d5d['geDRN'],'iYucV':_0x507d5d['BgSQE'],'ULmzl':function(_0x3fbb8d,_0x18d2e6){const _0x17c169=_0x3454e1;return _0x507d5d[_0x17c169(0x2e6)](_0x3fbb8d,_0x18d2e6);},'hnNIN':function(_0x46a661,_0x3fd300,_0x5d80b9){const _0x181321=_0x3454e1;return _0x507d5d[_0x181321(0xea)](_0x46a661,_0x3fd300,_0x5d80b9);},'VebsS':function(_0x2ef7a3,_0x405220){const _0x1b9471=_0x3454e1;return _0x507d5d[_0x1b9471(0x259)](_0x2ef7a3,_0x405220);},'DsvKO':function(_0x5b4b38,_0xf59785){const _0x1fe3dd=_0x3454e1;return _0x507d5d[_0x1fe3dd(0x101)](_0x5b4b38,_0xf59785);},'ddGxm':_0x507d5d[_0x3454e1(0x246)]};account[_0x3454e1(0x147)]({'tk':_0x668a3a[_0x3454e1(0x19b)],'id_app':_0x668a3a[_0x3454e1(0x2a0)]},{'tk_cn':0x1},function(_0x241c43,_0x5f3c90){const _0x57b2a4=_0x3454e1,_0x4b27ba={'eUhgo':_0x7bae71[_0x57b2a4(0x175)],'OLziP':_0x57b2a4(0x1aa),'Qdbmn':_0x7bae71[_0x57b2a4(0x172)],'REGlI':function(_0x3f8a12,_0x49f8a4,_0x1a3be7,_0x2c2d47){return _0x3f8a12(_0x49f8a4,_0x1a3be7,_0x2c2d47);},'LHsQu':function(_0x141ab2,_0x2e7371){const _0x2575f7=_0x57b2a4;return _0x7bae71[_0x2575f7(0x15a)](_0x141ab2,_0x2e7371);},'bXbQf':_0x7bae71[_0x57b2a4(0x15b)],'wnyID':_0x7bae71[_0x57b2a4(0x2ee)],'IMezt':function(_0x2d5dee,_0x2a7f79){return _0x2d5dee+_0x2a7f79;},'zejEA':function(_0xf83b3f,_0x505685){return _0xf83b3f-_0x505685;},'fNsyd':'tien_nt','JLQxC':_0x7bae71[_0x57b2a4(0x10a)],'SGWIo':function(_0x3b7e37,_0x1c45c9){return _0x7bae71['OTvyd'](_0x3b7e37,_0x1c45c9);},'PAlbj':_0x7bae71['MuomK'],'cpJac':_0x7bae71[_0x57b2a4(0x261)],'GjjcF':_0x57b2a4(0x243),'DTEWz':function(_0x3ea0e1,_0x10836f){const _0x53f0ae=_0x57b2a4;return _0x7bae71[_0x53f0ae(0x29e)](_0x3ea0e1,_0x10836f);},'CHQFn':function(_0x2bff81,_0x30f177,_0x4dd41d){const _0x2a1ce0=_0x57b2a4;return _0x7bae71[_0x2a1ce0(0x1dd)](_0x2bff81,_0x30f177,_0x4dd41d);},'oeIxg':function(_0x3c7924,_0xfa7616){const _0x8cff17=_0x57b2a4;return _0x7bae71[_0x8cff17(0x169)](_0x3c7924,_0xfa7616);}};if(_0x241c43)return _0x7bae71['ULmzl'](_0x5df2dc,_0x241c43);if(_0x5f3c90&&_0x7bae71['DsvKO'](_0x5f3c90['tk_cn'],!![])){if(_0x7bae71[_0x57b2a4(0xce)](_0x7bae71[_0x57b2a4(0x22c)],_0x57b2a4(0x1da))){if(_0x5b56a8)return _0x9dc7a[_0x57b2a4(0xe4)](_0x398def);_0x4b8754['pushNotification'](_0x3363a1,_0x433f0b);}else{const _0x247418=[{..._0x668a3a}],_0x175cef=new PostBook(_0x668a3a,_0x247418,Tdttno,function(_0x39f505,_0x31c37d){const _0x4a2346=_0x57b2a4,_0x133cf1={'BZdry':function(_0x1361c0){return _0x1361c0();}};try{!_0x39f505[_0x4a2346(0x242)]&&(_0x4b27ba[_0x4a2346(0x170)](_0x4a2346(0x2e4),_0x4b27ba['bXbQf'])?_0x46df11[_0x4a2346(0x28b)](_0x4123bc=>_0x4123bc[_0x4a2346(0xd5)])[_0x4a2346(0x29f)](null,_0x4159ca,[{'where':{'trang_thai':'ma_trang_thai','ma_ct':_0x4b27ba[_0x4a2346(0xf9)]},'fields':[_0x4b27ba['OLziP'],_0x4b27ba[_0x4a2346(0x28e)]]}],function(){const _0x1fdef5=_0x4a2346;_0x133cf1[_0x1fdef5(0x229)](_0x5890e2);}):_0x39f505[_0x4a2346(0x242)]=_0x668a3a[_0x4a2346(0x2c7)]);if(!_0x39f505['ngay_hd']){if(_0x4b27ba[_0x4a2346(0x170)](_0x4b27ba[_0x4a2346(0x111)],_0x4b27ba[_0x4a2346(0x111)])){if(_0xed302b)return _0xb973a5(_0x563c1b);_0x4b27ba['REGlI'](_0x54afd6,null,_0x220205,_0x17a964);}else _0x39f505[_0x4a2346(0x2be)]=_0x668a3a['ngay_ct'];}_0x39f505[_0x4a2346(0x251)]=_0x4b27ba[_0x4a2346(0x230)](_0x4b27ba[_0x4a2346(0x1fd)](_0x668a3a[_0x4a2346(0x215)][_0x4a2346(0xc7)](_0x4b27ba[_0x4a2346(0xcd)])-_0x668a3a[_0x4a2346(0x215)][_0x4a2346(0xc7)](_0x4a2346(0x2ce)),_0x668a3a['tien_ck_hd']||0x0),_0x668a3a['details'][_0x4a2346(0xc7)](_0x4b27ba['JLQxC'])),_0x39f505[_0x4a2346(0x250)]=_0x4b27ba[_0x4a2346(0x112)](_0x668a3a['details'][_0x4a2346(0xc7)](_0x4b27ba[_0x4a2346(0x1c6)]),_0x668a3a['details'][_0x4a2346(0xc7)](_0x4a2346(0x1e1)))-(_0x668a3a[_0x4a2346(0x277)]||0x0)*(_0x668a3a['ty_gia']||0x1)+_0x668a3a['details'][_0x4a2346(0xc7)](_0x4b27ba[_0x4a2346(0x284)]);}catch(_0xd0d1e1){'EAQsW'!==_0x4b27ba['GjjcF']?console[_0x4a2346(0xe4)](_0xd0d1e1,_0x668a3a):_0x1a57e4();}_0x4b27ba[_0x4a2346(0x115)](_0x31c37d,_0x39f505);});_0x175cef[_0x57b2a4(0x2cb)](function(_0x5cbd00,_0x2e6abc){const _0x44aaaa=_0x57b2a4;_0x4b27ba[_0x44aaaa(0x176)](_0x5df2dc,_0x5cbd00,_0x2e6abc);});}}else Tdttno[_0x57b2a4(0x145)]({'id_ct':_0x668a3a[_0x57b2a4(0xd4)]},function(_0x4d5968){const _0x491e66=_0x57b2a4;_0x4b27ba[_0x491e66(0x289)](_0x5df2dc,_0x4d5968);});});},'post_vatra':function(_0x27aab6){const _0x3a07d8=_0x86b575,_0xa56378={'jGZCn':function(_0x5b66f8,_0xf7ac8a){return _0x5b66f8===_0xf7ac8a;},'cefKy':_0x311fcf[_0x3a07d8(0x135)],'fNaWn':function(_0x2f15d0,_0x1a5a8d,_0xfd593c){return _0x311fcf['ExVge'](_0x2f15d0,_0x1a5a8d,_0xfd593c);},'EpXwu':function(_0x5225ea,_0x1095ad){return _0x5225ea-_0x1095ad;},'qCOKd':_0x311fcf['wSegE'],'OcElW':_0x311fcf[_0x3a07d8(0xfe)],'WHrOF':_0x3a07d8(0x2c8),'UBGNA':_0x311fcf[_0x3a07d8(0x2d3)],'VZoIy':_0x311fcf[_0x3a07d8(0x2a8)],'XwaCp':_0x311fcf[_0x3a07d8(0x14b)],'OFfDO':function(_0x2e8350,_0x12c3d0){const _0x400b0a=_0x3a07d8;return _0x311fcf[_0x400b0a(0x1eb)](_0x2e8350,_0x12c3d0);},'Cnydl':_0x3a07d8(0xd0)};if(_0x668a3a[_0x3a07d8(0x2be)]){let _0x16cac2=_0x668a3a[_0x3a07d8(0x215)][_0x3a07d8(0x16c)](_0x95dddc=>{const _0x134a07=_0x3a07d8;if(_0xa56378[_0x134a07(0x20a)]('QMpvj',_0xa56378[_0x134a07(0x13f)]))_0x4c57f8[_0x134a07(0x20b)]=_0x52c7a2[_0x134a07(0x22b)];else{let _0x587365=(!_0x95dddc[_0x134a07(0x1e4)]?_0x668a3a[_0x134a07(0x2df)]:_0x95dddc[_0x134a07(0x2df)])||0x0,_0xac883e=_0x95dddc['ma_thue']||_0x668a3a[_0x134a07(0x1e4)],_0x3a606d={..._0x95dddc,'thue_suat':_0x587365,'ma_thue':_0xac883e};return _0x3a606d;}})[_0x3a07d8(0x28b)](_0x51f9b9=>_0x51f9b9[_0x3a07d8(0x1e4)]);_0x16cac2[_0x3a07d8(0xfc)]([_0x311fcf[_0x3a07d8(0x184)],_0x311fcf[_0x3a07d8(0x10d)],_0x311fcf[_0x3a07d8(0x25c)]],[_0x311fcf[_0x3a07d8(0x211)],_0x311fcf['wSegE'],_0x311fcf[_0x3a07d8(0xfe)],_0x311fcf['CNTJD'],_0x311fcf[_0x3a07d8(0x2d3)],_0x3a07d8(0x2c8)])[_0x3a07d8(0x182)](_0x508b2b=>{const _0x51e0d3=_0x3a07d8,_0x449311={'mKgJy':'5|4|0|1|3|2','mebHF':function(_0x365a11,_0x1bec20){const _0x43b781=_0x4188;return _0xa56378[_0x43b781(0x233)](_0x365a11,_0x1bec20);},'FLMCC':_0xa56378['qCOKd'],'WDFrO':_0xa56378[_0x51e0d3(0x225)],'UmUEQ':_0xa56378['WHrOF'],'WCDMk':_0xa56378['UBGNA'],'IAGAn':_0xa56378[_0x51e0d3(0x226)]};if(_0xa56378['jGZCn'](_0xa56378[_0x51e0d3(0x27f)],_0xa56378[_0x51e0d3(0x27f)])){if(_0xa56378[_0x51e0d3(0xfb)](_0x508b2b[_0x51e0d3(0x240)],0x1)){if(_0xa56378[_0x51e0d3(0x20a)](_0xa56378[_0x51e0d3(0x2ca)],_0x51e0d3(0xca)))_0xa56378[_0x51e0d3(0x1a2)](_0x320461,null,_0x30b925);else{let _0x2cb12c=_0x508b2b['map'](_0x1dcfff=>_0x1dcfff[_0x51e0d3(0x2c8)]||0x0)[_0x51e0d3(0x265)]((_0x392f9d,_0xd448c1)=>_0x392f9d+_0xd448c1,0x0),_0x362373=_0x508b2b[_0x51e0d3(0x16c)](_0x4c6733=>_0x4c6733[_0x51e0d3(0xeb)]||0x0)[_0x51e0d3(0x265)]((_0x5342a1,_0x2c7b49)=>_0x5342a1+_0x2c7b49,0x0);_0x508b2b[0x0]['tien_thue_nt']=_0x2cb12c,_0x508b2b[0x0][_0x51e0d3(0xeb)]=_0x362373;}}const _0x4f3dba=new PostBook(_0x668a3a,_0x508b2b,Vatra,function(_0x15c180,_0x104cc2){const _0x34168b=_0x51e0d3;try{const _0x1c4479=_0x449311[_0x34168b(0x2ed)][_0x34168b(0x2a5)]('|');let _0x319fa6=0x0;while(!![]){switch(_0x1c4479[_0x319fa6++]){case'0':_0x15c180[_0x34168b(0xf4)]=_0x449311[_0x34168b(0x279)](_0x15c180[_0x449311[_0x34168b(0x16e)]],_0x15c180[_0x449311[_0x34168b(0x11b)]]);continue;case'1':_0x15c180[_0x34168b(0x2b9)]=_0x15c180[_0x449311[_0x34168b(0x198)]];continue;case'2':_0x15c180['ten_vt']=_0x15c180[_0x34168b(0xd8)]||_0x668a3a[_0x34168b(0x10f)]||_0x668a3a[_0x34168b(0x20b)];continue;case'3':_0x15c180[_0x34168b(0xd9)]=_0x15c180[_0x449311[_0x34168b(0x138)]];continue;case'4':_0x15c180[_0x34168b(0xfa)]=_0x449311[_0x34168b(0x279)](_0x15c180[_0x34168b(0x251)],_0x15c180[_0x449311[_0x34168b(0x2ea)]]);continue;case'5':_0x15c180[_0x34168b(0x20c)]=_0x668a3a[_0x34168b(0x19b)];continue;}break;}}catch(_0x346543){console[_0x34168b(0xe4)](_0x346543,_0x668a3a);}_0x104cc2(_0x15c180);});_0x4f3dba[_0x51e0d3(0x2cb)](function(_0x4980cd,_0x230073){_0xa56378['fNaWn'](_0x27aab6,_0x4980cd,_0x230073);});}else _0x3204f9[_0x51e0d3(0x21a)]=_0x5d6802[_0x51e0d3(0x21a)];});}else _0x27aab6();}},function(_0x477ea4,_0x11b005){const _0x532dfe=_0x86b575,_0x40d01b={'FvdVC':function(_0x5ac507,_0x6834fb){const _0x444512=_0x4188;return _0x507d5d[_0x444512(0x259)](_0x5ac507,_0x6834fb);},'CAAxD':function(_0x23c2b7,_0x17622e){return _0x23c2b7(_0x17622e);},'vloHs':_0x507d5d['LYKKb'],'pCvBD':function(_0x50a310,_0x434edc){return _0x50a310(_0x434edc);},'POAoB':function(_0x8503aa,_0x3b70fd,_0x4a6663){return _0x8503aa(_0x3b70fd,_0x4a6663);}};if(_0x507d5d[_0x532dfe(0x10e)](_0x507d5d['PvAba'],_0x532dfe(0x10c)))_0x507d5d[_0x532dfe(0x2bb)](_0x559f29,_0x477ea4,_0x11b005);else{const _0x2c7bc2={'id_hd':_0x3acc58['_id']};_0x17d0b7['findOne'](_0x2c7bc2,function(_0x30df91,_0x1d94db){const _0x43576f=_0x532dfe;if(_0x30df91)return _0x40d01b[_0x43576f(0x1c8)](_0x3868bc,_0x30df91);_0x1d94db?_0x40d01b[_0x43576f(0xd7)](_0x495109,_0x43576f(0x208)+(_0x1d94db[_0x43576f(0x268)]||_0x40d01b[_0x43576f(0x12c)])+':\x20'+_0x1d94db['so_ct']+',\x20ngày\x20'+_0x40d01b[_0x43576f(0x2cf)](_0x51a9ff,_0x1d94db[_0x43576f(0x220)])[_0x43576f(0x275)](_0x43576f(0x18a))):_0x40d01b['POAoB'](_0x63fa9b,null,_0x3d383e);});}});}};const _0x541041=function(_0x288fb3,_0x220b21,_0x2e7b34){const _0xd89c80=_0x2b298c,_0x19606d={'DrORk':_0x311fcf['EXZgL'],'vWsgh':function(_0x47cc08,_0x2b60f0){return _0x47cc08+_0x2b60f0;},'AqJmA':function(_0x501010,_0x563ff9){const _0x18d168=_0x4188;return _0x311fcf[_0x18d168(0x119)](_0x501010,_0x563ff9);},'zasMa':'tien_ck','ORlMv':_0x311fcf[_0xd89c80(0x1c1)],'qjVKc':function(_0x1755fd,_0x3fd8c8){const _0x9502f4=_0xd89c80;return _0x311fcf[_0x9502f4(0x219)](_0x1755fd,_0x3fd8c8);},'sVhTv':function(_0x407926,_0x3d08e5){return _0x407926(_0x3d08e5);},'KCxFE':function(_0x4afbdd){const _0x3092fb=_0xd89c80;return _0x311fcf[_0x3092fb(0x212)](_0x4afbdd);},'HsWrQ':_0x311fcf['Kxldj']};if(_0x311fcf['RfFaz'](_0x311fcf[_0xd89c80(0x2a6)],'wiBPm')){for(let _0x56623d=0x0;_0x56623d<_0x220b21[_0xd89c80(0x215)][_0xd89c80(0x240)];_0x56623d++){if(_0x311fcf[_0xd89c80(0x1e5)]!==_0x311fcf[_0xd89c80(0x1e5)])_0x1d7ee1[_0xd89c80(0x2be)]=new _0x34ee0f();else{const _0x298b3f=_0x220b21['details'][_0x56623d];_0x298b3f[_0xd89c80(0x209)]=_0x56623d,_0x298b3f[_0xd89c80(0x2ce)]=_0x298b3f[_0xd89c80(0x2ce)]||0x0,_0x298b3f['tien_nt']=_0x298b3f[_0xd89c80(0x251)]||0x0,_0x311fcf[_0xd89c80(0xe0)](_0x220b21[_0xd89c80(0x17d)],_0x311fcf[_0xd89c80(0xdf)])&&(_0x311fcf[_0xd89c80(0x157)](_0x311fcf['siHXm'],_0x311fcf[_0xd89c80(0x2b1)])?(_0x298b3f[_0xd89c80(0x250)]=_0x298b3f[_0xd89c80(0x251)],_0x298b3f[_0xd89c80(0x1e1)]=_0x298b3f[_0xd89c80(0x2ce)]):_0x3fdfb5[_0xd89c80(0x242)]=_0xa63b[_0xd89c80(0x2c7)]),_0x298b3f[_0xd89c80(0x1e1)]=_0x298b3f[_0xd89c80(0x1e1)]||0x0,_0x298b3f[_0xd89c80(0x250)]=_0x298b3f[_0xd89c80(0x250)]||0x0;}}let _0x143295=_0x311fcf[_0xd89c80(0x1f4)](_0x220b21[_0xd89c80(0x17d)],'VND')?0x0:0x2;_0x220b21[_0xd89c80(0x2df)]=_0x220b21[_0xd89c80(0x2df)]||0x0,_0x220b21[_0xd89c80(0x215)]['forEach'](_0x1f3fd2=>{const _0x5c2384=_0xd89c80;if(_0x311fcf[_0x5c2384(0x25a)](_0x311fcf[_0x5c2384(0x13d)],_0x311fcf['DjqQs'])){let _0x10a19a=(!_0x1f3fd2[_0x5c2384(0x1e4)]?_0x220b21[_0x5c2384(0x2df)]:_0x1f3fd2[_0x5c2384(0x2df)])||0x0;_0x1f3fd2[_0x5c2384(0x2c8)]=_0x1f3fd2[_0x5c2384(0x17a)]||utils[_0x5c2384(0x100)](_0x311fcf['EvWxy'](_0x311fcf[_0x5c2384(0x219)](_0x1f3fd2['tien_nt']-_0x1f3fd2[_0x5c2384(0x2ce)],_0x10a19a),0x64),_0x143295),_0x1f3fd2[_0x5c2384(0xeb)]=_0x1f3fd2[_0x5c2384(0x2c8)]*(_0x220b21[_0x5c2384(0x11d)]||0x1);}else{const _0x50e0f4='3|0|4|5|7|8|2|1|6'[_0x5c2384(0x2a5)]('|');let _0x55bfb2=0x0;while(!![]){switch(_0x50e0f4[_0x55bfb2++]){case'0':_0x32e3d5[_0x5c2384(0xfa)]=_0x27073e[_0x5c2384(0x215)]['csum'](_0x19606d['DrORk']);continue;case'1':_0x54c974[_0x5c2384(0x26a)]=_0x19606d[_0x5c2384(0x1fb)](_0x19606d[_0x5c2384(0x1db)](_0x9ca2f7['t_tien_nt'],_0x392709[_0x5c2384(0x113)]),_0x5c6394['t_thue_nt']);continue;case'2':_0x8c1ef3[_0x5c2384(0xe7)]=_0x19606d[_0x5c2384(0x1db)](_0x5885c1[_0x5c2384(0xf4)],_0x49f8cf[_0x5c2384(0x125)])+_0x2bb1ea['t_thue'];continue;case'3':_0x1c1b09[_0x5c2384(0xf4)]=_0x41c838['details'][_0x5c2384(0xc7)](_0x5c2384(0x250));continue;case'4':_0x1dc709[_0x5c2384(0x125)]=_0x4b8645[_0x5c2384(0x215)][_0x5c2384(0xc7)](_0x19606d[_0x5c2384(0x117)]);continue;case'5':_0x2ea6d3[_0x5c2384(0x113)]=_0x409469[_0x5c2384(0x215)]['csum'](_0x5c2384(0x2ce));continue;case'6':_0x1c0053[_0x5c2384(0x215)][_0x5c2384(0x108)](_0x2f5a3a=>{const _0x91eeab=_0x5c2384;!_0x2f5a3a[_0x91eeab(0x20b)]&&(_0x2f5a3a[_0x91eeab(0x20b)]=_0x2e953d['dien_giai']);});continue;case'7':_0x14fd20[_0x5c2384(0x2b9)]=_0x5c11ff[_0x5c2384(0x215)]['csum'](_0x19606d[_0x5c2384(0x204)]);continue;case'8':_0x15f834[_0x5c2384(0xd9)]=_0x19606d[_0x5c2384(0x151)](_0x12bedb['t_thue_nt'],_0x128296[_0x5c2384(0x11d)]);continue;}break;}}});if(_0x220b21[_0xd89c80(0x26d)])_0x311fcf[_0xd89c80(0x157)](_0x311fcf[_0xd89c80(0x1e3)],_0x311fcf['QNAcu'])?_0x4eb6c0[_0xd89c80(0x28b)](_0x4fef51=>_0x4fef51[_0xd89c80(0x19b)])[_0xd89c80(0x227)](_0x29e772,_0x4b103c,[{'akey':_0x311fcf[_0xd89c80(0x121)],'bkey':'tk','fields':[{'name':_0x311fcf[_0xd89c80(0x2e1)],'value':_0xd89c80(0x2d7)}]}],function(){_0xcffd82();}):salecontract['findOne']({'_id':_0x220b21[_0xd89c80(0x26d)]})[_0xd89c80(0x116)]()['then'](_0x4cb12a=>{const _0x41e2da=_0xd89c80;_0x4cb12a&&(_0x220b21[_0x41e2da(0x140)]=_0x4cb12a[_0x41e2da(0x140)]),_0x2e7b34(null,_0x220b21);})['catch'](_0x113be8=>{_0x19606d['sVhTv'](_0x2e7b34,_0x113be8);});else{if(_0x311fcf[_0xd89c80(0xe0)](_0x311fcf[_0xd89c80(0x102)],_0x311fcf[_0xd89c80(0x102)]))_0x311fcf[_0xd89c80(0x2cc)](_0x2e7b34,null,_0x220b21);else{const _0x2b1eb6={'XqoEq':function(_0x465f71){return _0x19606d['KCxFE'](_0x465f71);}};_0x2c76c8[_0xd89c80(0x28b)](_0x328984=>_0x328984['ma_hd'])[_0xd89c80(0x29f)](_0x4c9538,_0x367eda,[{'where':{'ma_hd':'so_hd'},'fields':[_0x19606d[_0xd89c80(0x27b)],_0x19606d[_0xd89c80(0x27b)]]}],function(){_0x2b1eb6['XqoEq'](_0x526a16);});}}}else _0x1f0635['error'](_0x14d38b,_0x33878e);};_0x1f91b6[_0x2b298c(0x1be)]=function(_0x5156b6,_0x398362,_0x8b2110){const _0x5a38ca=_0x2b298c,_0x47fb94={'JHEfV':function(_0x64086,_0x294574){return _0x311fcf['nUnmO'](_0x64086,_0x294574);},'TUkkz':function(_0xe06b57,_0x98b75){const _0x3df4cd=_0x4188;return _0x311fcf[_0x3df4cd(0x1f2)](_0xe06b57,_0x98b75);},'VuHRs':function(_0x4d53ba,_0x594c67){const _0x2abf54=_0x4188;return _0x311fcf[_0x2abf54(0xc6)](_0x4d53ba,_0x594c67);},'dVKFS':function(_0x495620,_0x7f11dd){const _0x25f987=_0x4188;return _0x311fcf[_0x25f987(0x164)](_0x495620,_0x7f11dd);},'BwsnD':function(_0x449f44,_0x3014fb){const _0x334a0c=_0x4188;return _0x311fcf[_0x334a0c(0x2c6)](_0x449f44,_0x3014fb);},'BIuFT':function(_0x4e475b,_0x95a0ce,_0xaf3850,_0x1ed0f4){return _0x4e475b(_0x95a0ce,_0xaf3850,_0x1ed0f4);},'eiGMq':function(_0x57a224,_0x11eee5){return _0x57a224-_0x11eee5;},'pcrcn':function(_0x16ac6b,_0x359cfc,_0x5d03f8){const _0x11162e=_0x4188;return _0x311fcf[_0x11162e(0x2cc)](_0x16ac6b,_0x359cfc,_0x5d03f8);}};if(_0x311fcf[_0x5a38ca(0x189)](_0x5a38ca(0xf7),_0x311fcf[_0x5a38ca(0x1b6)])){let _0x2f0fd1=(!_0x197b15['ma_thue']?_0x47a713['thue_suat']:_0x5bcc48[_0x5a38ca(0x2df)])||0x0,_0x2c6973=_0x48bf48[_0x5a38ca(0x1e4)]||_0x48aa54['ma_thue'];return{'lineNumber':_0x47fb94[_0x5a38ca(0x202)](_0x297bc6,0x1),'selection':_0x47fb94[_0x5a38ca(0x260)](_0x15bd35[_0x5a38ca(0x251)],0x0)?0x3:0x1,'itemCode':_0x47fb94['VuHRs'](_0x22259a,0x1)[_0x5a38ca(0x237)](),'itemName':_0x580fa9[_0x5a38ca(0x20b)],'unitName':_0x2c1fd6[_0x5a38ca(0x251)]<0x0?'':_0xa73227[_0x5a38ca(0x264)],'itemNote':'','unitPrice':_0x47fb94[_0x5a38ca(0x1ce)](_0x1c6a88[_0x5a38ca(0x251)],0x0)?_0x2f440a:_0x2785f7[_0x5a38ca(0x2eb)],'quantity':_0x47fb94[_0x5a38ca(0x2d6)](_0x2878d2[_0x5a38ca(0x251)],0x0)?_0xd4f30e:_0x347913[_0x5a38ca(0x129)],'itemTotalAmountWithoutTax':_0xc11519[_0x5a38ca(0x280)](_0x45edce[_0x5a38ca(0x251)]),'discount':_0x1a73fc[_0x5a38ca(0x24b)],'itemDiscount':_0x102847[_0x5a38ca(0x280)](_0xd55d61['tien_ck_nt']),'itemTotalAmountAfterDiscount':_0x504b7a[_0x5a38ca(0x280)](_0x23a089[_0x5a38ca(0x251)]-_0x5f53d5['tien_ck_nt']),'taxPercentage':_0x47fb94['BIuFT'](_0x115a07,_0x2c6973,_0x2f0fd1,_0x12b091['tien_nt']),'taxAmount':_0x1348ef[_0x5a38ca(0x280)](_0x923a89[_0x5a38ca(0x2c8)]),'itemTotalAmountWithTax':_0x9fefe3[_0x5a38ca(0x280)](_0x47fb94['JHEfV'](_0x47fb94['eiGMq'](_0x40a1b4['tien_nt'],_0x5d8431['tien_ck_nt']),_0x581991[_0x5a38ca(0x2c8)])),'customTaxAmount':'0','batchNo':'','expDate':''};}else{if(!_0x398362[_0x5a38ca(0x215)])_0x398362[_0x5a38ca(0x215)]=[];_0x311fcf[_0x5a38ca(0x1d6)](_0x541041,_0x5156b6,_0x398362,function(_0x52a879){const _0x1d2e36=_0x5a38ca;if(_0x52a879)return _0x8b2110(_0x52a879);_0x398362['result_export_einvoice']=null,_0x47fb94[_0x1d2e36(0x1ae)](_0x8b2110,null,_0x398362);});}},_0x1f91b6[_0x2b298c(0x24e)]=function(_0x1ef96c,_0x5c2ee0,_0xf850f0,_0x50e73b){const _0x3816bd=_0x2b298c,_0x580b6c={'YBTOH':function(_0x43a3c7,_0x903b8a){const _0x3d58a6=_0x4188;return _0x311fcf[_0x3d58a6(0x1b2)](_0x43a3c7,_0x903b8a);},'YWHSE':function(_0x2911ad,_0x133ac7,_0x4f0b8d,_0x5c12a8){const _0x4fdebe=_0x4188;return _0x311fcf[_0x4fdebe(0x21b)](_0x2911ad,_0x133ac7,_0x4f0b8d,_0x5c12a8);},'meomA':_0x311fcf['peGcX'],'YcWEx':_0x311fcf[_0x3816bd(0x23d)],'eMGlR':function(_0x239441,_0x32af2b,_0xa1cb9d,_0x1650e3){const _0xddc93b=_0x3816bd;return _0x311fcf[_0xddc93b(0x21b)](_0x239441,_0x32af2b,_0xa1cb9d,_0x1650e3);}},_0x297f30={'id_hd':_0xf850f0[_0x3816bd(0xd4)]};Tdttno_tt[_0x3816bd(0x147)](_0x297f30,function(_0x544b8a,_0x5f2a70){const _0x3293f3=_0x3816bd;if(_0x544b8a)return _0x50e73b(_0x544b8a);_0x5f2a70?_0x580b6c['YBTOH'](_0x50e73b,_0x3293f3(0x185)+(_0x5f2a70[_0x3293f3(0x268)]||_0x580b6c[_0x3293f3(0xe8)])+':\x20'+_0x5f2a70[_0x3293f3(0x2c7)]+_0x3293f3(0x1b4)+Moment(_0x5f2a70[_0x3293f3(0x220)])['format'](_0x580b6c[_0x3293f3(0x288)])):_0x580b6c['eMGlR'](_0x541041,_0x1ef96c,_0x5c2ee0,function(_0x4affad){const _0x3b20fe=_0x3293f3;if(_0x4affad)return _0x580b6c[_0x3b20fe(0x2ef)](_0x50e73b,_0x4affad);_0x580b6c[_0x3b20fe(0x270)](_0x50e73b,null,_0x5c2ee0,_0xf850f0);});});},_0x1f91b6['deleting']=function(_0x4ef204,_0x3b92cf,_0x1361f2){const _0x4c9d09=_0x2b298c,_0x266e30={'rwpHE':function(_0x581590,_0x1893d7){const _0xd3799b=_0x4188;return _0x311fcf[_0xd3799b(0x1b9)](_0x581590,_0x1893d7);},'kLxqv':function(_0x469b62,_0x39d794){const _0x968d9a=_0x4188;return _0x311fcf[_0x968d9a(0x154)](_0x469b62,_0x39d794);},'FYclS':function(_0x29d628,_0xde0e13){const _0x3db710=_0x4188;return _0x311fcf[_0x3db710(0x154)](_0x29d628,_0xde0e13);},'nvxzx':_0x4c9d09(0x251),'hgjem':_0x311fcf['PSxXw'],'zJcWU':function(_0x114acd,_0x2812e2){return _0x114acd-_0x2812e2;},'mwRen':_0x4c9d09(0x250),'rZQzw':_0x311fcf['VHpfj'],'Pauph':function(_0x22cacb,_0x8905a2){return _0x22cacb*_0x8905a2;},'quvkZ':function(_0x2c5ce8,_0x51b388,_0x19e2e5,_0x1da6a6){return _0x2c5ce8(_0x51b388,_0x19e2e5,_0x1da6a6);}};if(_0x4c9d09(0x1d8)!==_0x311fcf[_0x4c9d09(0x1f9)]){const _0x14ba16={'id_hd':_0x3b92cf[_0x4c9d09(0xd4)]};Tdttno_tt[_0x4c9d09(0x147)](_0x14ba16,function(_0x323c03,_0x35a0b4){const _0xaf6c85=_0x4c9d09;if(_0x311fcf[_0xaf6c85(0x254)]!==_0x311fcf[_0xaf6c85(0x254)])!_0x571ad1['so_hd']&&(_0x1f41d5[_0xaf6c85(0x242)]=_0x1c5198[_0xaf6c85(0x2c7)]),!_0x5d3011[_0xaf6c85(0x2be)]&&(_0x2e10a3['ngay_hd']=_0x1fd2a7[_0xaf6c85(0x220)]),_0x4fbdf2[_0xaf6c85(0x251)]=_0x266e30[_0xaf6c85(0x2bf)](_0x266e30[_0xaf6c85(0x293)](_0x266e30[_0xaf6c85(0x114)](_0x2b9e8c['details'][_0xaf6c85(0xc7)](_0x266e30[_0xaf6c85(0x263)]),_0x4ef29f['details'][_0xaf6c85(0xc7)]('tien_ck_nt')),_0xc395bc['tien_ck_hd']||0x0),_0x175762[_0xaf6c85(0x215)][_0xaf6c85(0xc7)](_0x266e30['hgjem'])),_0x1ddcfe['tien']=_0x266e30['zJcWU'](_0x266e30['kLxqv'](_0x4f3d6d[_0xaf6c85(0x215)][_0xaf6c85(0xc7)](_0x266e30[_0xaf6c85(0x2e5)]),_0x4a76e3[_0xaf6c85(0x215)][_0xaf6c85(0xc7)](_0x266e30[_0xaf6c85(0x194)])),_0x266e30[_0xaf6c85(0xe3)](_0x45a570[_0xaf6c85(0x277)]||0x0,_0x921aad[_0xaf6c85(0x11d)]||0x1))+_0x23ebef[_0xaf6c85(0x215)][_0xaf6c85(0xc7)](_0xaf6c85(0xeb));else{if(_0x323c03)return _0x311fcf[_0xaf6c85(0x1f3)](_0x1361f2,_0x323c03);_0x35a0b4?_0x311fcf[_0xaf6c85(0x1b2)](_0x1361f2,_0xaf6c85(0x208)+(_0x35a0b4['ma_ct']||_0x311fcf['peGcX'])+':\x20'+_0x35a0b4['so_ct']+_0xaf6c85(0x1b4)+_0x311fcf[_0xaf6c85(0x1f3)](Moment,_0x35a0b4[_0xaf6c85(0x220)])['format'](_0x311fcf['MRXUK'])):_0x311fcf[_0xaf6c85(0xe1)]===_0x311fcf[_0xaf6c85(0x1ab)]?_0x38fbec[_0xaf6c85(0x2be)]=_0x3dd1d0[_0xaf6c85(0x220)]:_0x311fcf['qeuwA'](_0x1361f2,null,_0x3b92cf);}});}else{const _0x5414dc={'RFWQu':function(_0x568d98,_0x4b8552){return _0x568d98(_0x4b8552);},'lbbXO':function(_0x49d159,_0x564bcb,_0x29ffda,_0x2f6cc4){const _0xa6fc09=_0x4c9d09;return _0x266e30[_0xa6fc09(0xdd)](_0x49d159,_0x564bcb,_0x29ffda,_0x2f6cc4);}};_0x2471e8(_0x1c105c,_0x25c8a5,function(_0x4565eb){const _0x55f9f0=_0x4c9d09;if(_0x4565eb)return _0x5414dc['RFWQu'](_0x2a05ac,_0x4565eb);_0x5414dc[_0x55f9f0(0x104)](_0x59ee74,null,_0xaa265b,_0x5dd105);});}},_0x1f91b6['view']=function(_0x100260,_0x30898c,_0x39ce13){const _0x30e79b=_0x2b298c,_0x6a1db4={'FnOrb':_0x311fcf[_0x30e79b(0x23a)],'xjSXH':function(_0x2b2f27,_0x252c02){const _0x4dcd04=_0x30e79b;return _0x311fcf[_0x4dcd04(0x273)](_0x2b2f27,_0x252c02);},'mnyUb':_0x311fcf['EdMBW'],'ryAIE':_0x311fcf[_0x30e79b(0x26f)],'UUSZz':function(_0x383b7a){const _0x270681=_0x30e79b;return _0x311fcf[_0x270681(0x212)](_0x383b7a);},'BBCok':_0x311fcf[_0x30e79b(0x15c)],'RfngW':_0x311fcf[_0x30e79b(0xf8)],'OQyYY':_0x311fcf[_0x30e79b(0x2ac)],'WPgxf':function(_0x7ae385){return _0x311fcf['QkDXL'](_0x7ae385);},'DMeaH':function(_0x524d40,_0x5577a7){const _0x2142b8=_0x30e79b;return _0x311fcf[_0x2142b8(0x1a9)](_0x524d40,_0x5577a7);},'XMKNI':function(_0x21b898,_0x318095){return _0x21b898*_0x318095;},'nusLJ':function(_0x532a7b,_0x4b55e8){const _0x566f83=_0x30e79b;return _0x311fcf[_0x566f83(0x154)](_0x532a7b,_0x4b55e8);},'PCXQg':_0x311fcf[_0x30e79b(0x2a2)],'DUPSS':_0x30e79b(0x250),'vWnCh':_0x311fcf[_0x30e79b(0xfe)],'ZYdXN':_0x311fcf['CNTJD'],'kkKiI':_0x311fcf[_0x30e79b(0x1c1)],'AYQub':function(_0x188b10,_0x1dbe80){return _0x188b10+_0x1dbe80;},'MunFQ':function(_0xb8c01c,_0x43060b){const _0x2ac181=_0x30e79b;return _0x311fcf[_0x2ac181(0x154)](_0xb8c01c,_0x43060b);},'uswWI':_0x311fcf[_0x30e79b(0x2b8)],'FXDpm':_0x311fcf[_0x30e79b(0x20e)],'SlayW':'tk_dt','PRlcL':_0x30e79b(0x299),'XEKji':_0x311fcf[_0x30e79b(0x110)],'RYkvh':_0x311fcf['EwSHn'],'bQjzj':function(_0x182e58){return _0x182e58();},'mMpuV':function(_0x468ca6){const _0x44ff47=_0x30e79b;return _0x311fcf[_0x44ff47(0x1c9)](_0x468ca6);},'edrpd':_0x311fcf[_0x30e79b(0x28c)],'nJFZg':function(_0x43cd4c){return _0x43cd4c();},'lwQSH':_0x311fcf[_0x30e79b(0x1f5)],'JgywQ':_0x311fcf[_0x30e79b(0x134)],'GCWth':function(_0x1c8152,_0x3a2616,_0x28ba4e){return _0x311fcf['aRedl'](_0x1c8152,_0x3a2616,_0x28ba4e);},'QlztH':_0x311fcf['IZvhz'],'IWtSH':_0x311fcf[_0x30e79b(0x155)],'zncyY':_0x311fcf[_0x30e79b(0x171)],'swjXO':_0x311fcf['cJJtL'],'iKBYz':function(_0x40aa43){return _0x40aa43();},'aTdRA':function(_0xf955a0,_0x2fa291){const _0x59f457=_0x30e79b;return _0x311fcf[_0x59f457(0x122)](_0xf955a0,_0x2fa291);},'bXbJG':'QZeOA','gnvKs':_0x311fcf['xELTd'],'oFcfN':function(_0x48ea71,_0x81ed71){const _0x409b41=_0x30e79b;return _0x311fcf[_0x409b41(0x106)](_0x48ea71,_0x81ed71);},'lcJYW':_0x311fcf[_0x30e79b(0x2e9)],'Nrhle':_0x311fcf[_0x30e79b(0x163)],'RAeED':function(_0x19e4c5,_0x1b3649){return _0x19e4c5!==_0x1b3649;},'AkpSZ':_0x30e79b(0x186),'HVPti':function(_0x1739bf,_0x3f56e5){return _0x1739bf(_0x3f56e5);},'pSJCU':function(_0x419585,_0x367e88,_0x4febc8){return _0x419585(_0x367e88,_0x4febc8);}},_0x2da8e1=_0x100260[_0x30e79b(0x148)];async[_0x30e79b(0x222)]({'tk':function(_0xed54a){const _0x2c2803=_0x30e79b;_0x30898c['filter'](_0x2eccf0=>_0x2eccf0['tk_no'])[_0x2c2803(0x227)](_0x2da8e1,account,[{'akey':_0x311fcf[_0x2c2803(0x121)],'bkey':'tk','fields':[{'name':_0x311fcf[_0x2c2803(0x2e1)],'value':_0x311fcf[_0x2c2803(0x110)]}]}],function(){const _0x559801=_0x2c2803,_0x23ed34={'QBuFS':function(_0x2e377a,_0x2e3160){return _0x2e377a(_0x2e3160);},'blCFX':_0x6a1db4[_0x559801(0x17f)]};if(_0x6a1db4[_0x559801(0x26c)](_0x6a1db4[_0x559801(0x1a7)],_0x6a1db4[_0x559801(0x173)]))return _0x423245[_0x559801(0x181)]('Khong\x20tim\x20thay\x20chung\x20tu'),_0x23ed34['QBuFS'](_0x19092f,_0x23ed34[_0x559801(0x103)]);else _0x6a1db4[_0x559801(0x1f0)](_0xed54a);});},'dt':function(_0x3ce7ea){const _0x5cc9e6=_0x30e79b,_0x1dcdbb={'OSAaq':function(_0x579689,_0x4cd368){return _0x579689!==_0x4cd368;},'ndYwt':_0x6a1db4['BBCok'],'ncBzt':function(_0x21756a){const _0x1e9381=_0x4188;return _0x6a1db4[_0x1e9381(0x1f0)](_0x21756a);}};_0x30898c['filter'](_0x53edb5=>_0x53edb5['ma_dt'])[_0x5cc9e6(0x227)](_0x2da8e1,dmdt,[{'akey':_0x5cc9e6(0x16f),'bkey':_0x6a1db4[_0x5cc9e6(0x2c9)],'fields':[{'name':_0x6a1db4[_0x5cc9e6(0x278)],'value':_0x6a1db4[_0x5cc9e6(0x278)]}]}],function(){const _0xb49783=_0x5cc9e6;_0x1dcdbb[_0xb49783(0x1ec)](_0xb49783(0x166),_0x1dcdbb[_0xb49783(0x297)])?_0x1dcdbb[_0xb49783(0xe6)](_0x3ce7ea):!_0x2a706f[_0xb49783(0x20b)]&&(_0x1d96e5[_0xb49783(0x20b)]=_0x3a6bd2[_0xb49783(0x20b)]);});},'kh':function(_0x1143a5){const _0x292d82=_0x30e79b;_0x30898c[_0x292d82(0x28b)](_0x5763e7=>_0x5763e7[_0x292d82(0x21a)])[_0x292d82(0x29f)](_0x2da8e1,customer,[{'where':_0x311fcf[_0x292d82(0x1a6)],'fields':[_0x292d82(0x25f),_0x292d82(0x143),_0x311fcf[_0x292d82(0x19c)]]}],function(){const _0x3dd9d6=_0x292d82;_0x6a1db4[_0x3dd9d6(0x2c0)](_0x1143a5);});},'nv':function(_0x55e54b){const _0x10e0c2=_0x30e79b;_0x30898c[_0x10e0c2(0x28b)](_0x2ec9cb=>_0x2ec9cb['ma_nv'])['joinModel'](_0x2da8e1,dmnv,[{'akey':_0x10e0c2(0x2de),'bkey':_0x311fcf['wdcJs'],'fields':[{'name':_0x311fcf['qtCDH'],'value':_0x311fcf[_0x10e0c2(0x247)]}]}],function(){_0x6a1db4['WPgxf'](_0x55e54b);});},'trangthai':function(_0x521cdf){const _0x4fddb5=_0x30e79b;if(_0x311fcf['UIWTT'](_0x311fcf[_0x4fddb5(0x141)],_0x311fcf[_0x4fddb5(0x141)]))_0x30898c[_0x4fddb5(0x28b)](_0x1ac123=>_0x1ac123[_0x4fddb5(0xd5)])[_0x4fddb5(0x29f)](null,trangthai,[{'where':{'trang_thai':_0x311fcf[_0x4fddb5(0x23b)],'ma_ct':_0x311fcf[_0x4fddb5(0x1ea)]},'fields':[_0x311fcf['uzXIQ'],_0x4fddb5(0x1fc)]}],function(){_0x521cdf();});else{let _0x56e9c8=(!_0x11184d[_0x4fddb5(0x1e4)]?_0x3253a8[_0x4fddb5(0x2df)]:_0x5065f7['thue_suat'])||0x0;_0x3a9c72[_0x4fddb5(0x2c8)]=_0x5c52c4[_0x4fddb5(0x17a)]||_0x529c10['round'](_0x6a1db4[_0x4fddb5(0x23c)](_0x6a1db4['XMKNI'](_0x6a1db4[_0x4fddb5(0x11c)](_0x2f4033[_0x4fddb5(0x251)],_0x548205[_0x4fddb5(0x2ce)]),_0x56e9c8),0x64),_0x1ba549),_0x2c70ce[_0x4fddb5(0xeb)]=_0x6a1db4['XMKNI'](_0x1fa940[_0x4fddb5(0x2c8)],_0x4b8d89[_0x4fddb5(0x11d)]||0x1);}},'contract':function(_0x46e8c5){const _0x253511=_0x30e79b;_0x30898c['filter'](_0x205bc6=>_0x205bc6[_0x253511(0x140)])[_0x253511(0x29f)](_0x2da8e1,contract,[{'where':{'ma_hd':_0x311fcf['xELTd']},'fields':[_0x253511(0x20f),_0x311fcf[_0x253511(0x13e)]]}],function(){const _0x486bd2=_0x253511;_0x6a1db4[_0x486bd2(0x26c)](_0x6a1db4[_0x486bd2(0xdb)],'cfdWh')?_0x106c57=_0x5f3a9d[_0x486bd2(0xf1)]['trim']()+_0x486bd2(0x1ca)+_0x1450f8['ma_so_thue'][_0x486bd2(0x1dc)]():_0x6a1db4[_0x486bd2(0x1f0)](_0x46e8c5);});},'t_tien':function(_0x1a5d80){const _0x2c5409=_0x30e79b,_0x1b61c0={'ZxEjP':_0x6a1db4[_0x2c5409(0x228)],'HBzUT':_0x6a1db4[_0x2c5409(0xd3)],'rLcTA':_0x6a1db4[_0x2c5409(0x1f8)],'ZbLXe':_0x6a1db4[_0x2c5409(0x2d0)],'EdQLR':function(_0x3fa6a4,_0x24a5ab){return _0x6a1db4['XMKNI'](_0x3fa6a4,_0x24a5ab);},'WlAoR':function(_0x181f95,_0x34d2f3){const _0x343525=_0x2c5409;return _0x6a1db4[_0x343525(0x2af)](_0x181f95,_0x34d2f3);},'heBiH':function(_0x486458,_0x91e47d){return _0x6a1db4['MunFQ'](_0x486458,_0x91e47d);}};_0x30898c['forEach'](function(_0x483605){const _0x30acd2=_0x2c5409;_0x483605[_0x30acd2(0x215)]&&(_0x483605[_0x30acd2(0xf4)]=_0x483605['details'][_0x30acd2(0xc7)](_0x1b61c0[_0x30acd2(0x1a0)]),_0x483605['t_tien_nt']=_0x483605[_0x30acd2(0x215)][_0x30acd2(0xc7)](_0x30acd2(0x251)),_0x483605[_0x30acd2(0x125)]=_0x483605[_0x30acd2(0x215)][_0x30acd2(0xc7)](_0x1b61c0['HBzUT']),_0x483605[_0x30acd2(0x113)]=_0x483605[_0x30acd2(0x215)][_0x30acd2(0xc7)](_0x1b61c0[_0x30acd2(0x193)]),_0x483605['t_thue_nt']=_0x483605['details'][_0x30acd2(0xc7)](_0x1b61c0['ZbLXe']),_0x483605[_0x30acd2(0xd9)]=_0x1b61c0[_0x30acd2(0x1a3)](_0x483605['t_thue_nt'],_0x483605['ty_gia']),_0x483605[_0x30acd2(0xe7)]=_0x1b61c0['WlAoR'](_0x1b61c0[_0x30acd2(0x24a)](_0x483605['t_tien'],_0x483605['t_ck']),_0x483605[_0x30acd2(0xd9)]),_0x483605[_0x30acd2(0x26a)]=_0x1b61c0[_0x30acd2(0x1bc)](_0x483605['t_tien_nt']-_0x483605[_0x30acd2(0x113)],_0x483605[_0x30acd2(0x2b9)]),_0x483605[_0x30acd2(0x215)]['forEach'](_0x58a8ae=>{const _0x59a077=_0x30acd2;!_0x58a8ae['dien_giai']&&(_0x58a8ae[_0x59a077(0x20b)]=_0x483605[_0x59a077(0x20b)]);}));}),_0x6a1db4[_0x2c5409(0x1f0)](_0x1a5d80);},'details_tk':function(_0x16742b){const _0xa088ce=_0x30e79b,_0x42f71e={'JTZml':function(_0x2e6fc0){const _0xb2aa31=_0x4188;return _0x6a1db4[_0xb2aa31(0x1ed)](_0x2e6fc0);}};if(_0x6a1db4[_0xa088ce(0x10b)]!==_0xa088ce(0x183)){let _0x15f56c=_0x14f44c[_0xa088ce(0x16c)](_0x1893f9=>_0x1893f9[_0xa088ce(0x2c8)]||0x0)[_0xa088ce(0x265)]((_0x34198e,_0x1cb142)=>_0x34198e+_0x1cb142,0x0),_0x19f834=_0x2f733e[_0xa088ce(0x16c)](_0x3f7061=>_0x3f7061[_0xa088ce(0xeb)]||0x0)['reduce']((_0x5c7d24,_0x5d6767)=>_0x5c7d24+_0x5d6767,0x0);_0x2ff913[0x0][_0xa088ce(0x2c8)]=_0x15f56c,_0x183067[0x0][_0xa088ce(0xeb)]=_0x19f834;}else async[_0xa088ce(0x14a)](_0x30898c,0x14,function(_0x52932d,_0x4e5cf7){const _0x1c0683=_0xa088ce;if(_0x6a1db4[_0x1c0683(0x26c)](_0x6a1db4[_0x1c0683(0x2c2)],_0x6a1db4[_0x1c0683(0x201)]))_0x194d4e();else{const _0x4896b0=_0x52932d[_0x1c0683(0x215)]||[];_0x4896b0[_0x1c0683(0x227)](_0x2da8e1,account,[{'akey':_0x6a1db4['SlayW'],'bkey':'tk','fields':[{'name':_0x6a1db4['PRlcL'],'value':_0x6a1db4[_0x1c0683(0x118)]}]},{'akey':_0x6a1db4['RYkvh'],'bkey':'tk','fields':[{'name':'ten_tk_ck','value':_0x1c0683(0x2d7)}]}],function(){_0x42f71e['JTZml'](_0x4e5cf7);});}},function(){const _0x3d40c8=_0xa088ce;_0x6a1db4[_0x3d40c8(0x2c1)](_0x16742b);});},'details_dt':function(_0x2340e5){const _0x3cb5cd=_0x30e79b,_0x19bf9b={'kSBql':function(_0xa89b0d,_0x23ae96){const _0x5cef35=_0x4188;return _0x6a1db4[_0x5cef35(0x26c)](_0xa89b0d,_0x23ae96);},'UyFCS':_0x6a1db4[_0x3cb5cd(0x272)],'NInbd':_0x6a1db4[_0x3cb5cd(0x22a)],'khkvN':function(_0x52b12c,_0x14d2a5,_0x330157){const _0x5ab287=_0x3cb5cd;return _0x6a1db4[_0x5ab287(0x12f)](_0x52b12c,_0x14d2a5,_0x330157);},'fCAnL':_0x6a1db4[_0x3cb5cd(0x2da)],'shyIE':_0x6a1db4[_0x3cb5cd(0xff)],'XXMDJ':_0x6a1db4[_0x3cb5cd(0x2c9)],'IBydC':'ten_dt'};async['mapLimit'](_0x30898c,0x14,function(_0x7748ea,_0x11258d){const _0x5be5c3=_0x3cb5cd,_0x40bc8a={'AXnQr':function(_0x5baf17,_0xe9530f,_0x191abf){const _0x44971d=_0x4188;return _0x19bf9b[_0x44971d(0x1de)](_0x5baf17,_0xe9530f,_0x191abf);}};if(_0x19bf9b['fCAnL']!==_0x19bf9b[_0x5be5c3(0x257)]){const _0x5166e6=_0x7748ea['details']||[];_0x5166e6[_0x5be5c3(0x28b)](_0x51a165=>_0x51a165[_0x5be5c3(0x16f)])[_0x5be5c3(0x227)](_0x2da8e1,dmdt,[{'akey':_0x19bf9b[_0x5be5c3(0x295)],'bkey':_0x19bf9b[_0x5be5c3(0x295)],'fields':[{'name':_0x19bf9b[_0x5be5c3(0x174)],'value':_0x19bf9b[_0x5be5c3(0x174)]}]}],function(){const _0x9d3a7a=_0x5be5c3;_0x19bf9b[_0x9d3a7a(0x156)](_0x9d3a7a(0xfd),_0x19bf9b[_0x9d3a7a(0x15d)])?_0x40bc8a[_0x9d3a7a(0x235)](_0x23b4d9,_0x5c85bf,_0x2b4e04):_0x11258d();});}else return _0x1ba82a[_0x5be5c3(0x181)](_0x5be5c3(0x28d)),_0x624c74(_0x19bf9b[_0x5be5c3(0x2e2)]);},function(){const _0x3b492f=_0x3cb5cd;_0x6a1db4[_0x3b492f(0x25e)](_0x2340e5);});},'details_contract':function(_0x1203cd){const _0x161402=_0x30e79b,_0x49fa89={'NDhKT':_0x6a1db4[_0x161402(0x25d)],'bXjYv':_0x6a1db4[_0x161402(0x2a4)],'KCTlW':function(_0x379a1e){const _0x25a07f=_0x161402;return _0x6a1db4[_0x25a07f(0xdc)](_0x379a1e);},'UGuNO':function(_0x6ac5d8,_0xe52193){const _0xef685e=_0x161402;return _0x6a1db4[_0xef685e(0x1ad)](_0x6ac5d8,_0xe52193);},'JnIgX':_0x161402(0x1bd),'ZXuHl':_0x6a1db4[_0x161402(0xef)],'LltQX':_0x6a1db4[_0x161402(0x207)],'XLGoz':'ten_hd','rGyUw':function(_0x4d28cd,_0x20415e){return _0x6a1db4['oFcfN'](_0x4d28cd,_0x20415e);},'NeYWv':_0x161402(0x187)};async[_0x161402(0x14a)](_0x30898c,0x14,function(_0x49e631,_0x3f8ccd){const _0xc08e8e=_0x161402,_0x917bad={'NoLJi':function(_0x5265df,_0x4ed6a3){return _0x5265df===_0x4ed6a3;},'fQZnE':_0x49fa89[_0xc08e8e(0x160)],'uOiEM':_0x49fa89[_0xc08e8e(0x256)],'DslXN':function(_0xf71434){const _0x35a606=_0xc08e8e;return _0x49fa89[_0x35a606(0x1a5)](_0xf71434);},'QZOii':function(_0x115f22){const _0x222d89=_0xc08e8e;return _0x49fa89[_0x222d89(0x1a5)](_0x115f22);}};if(_0x49fa89[_0xc08e8e(0xf5)](_0x49fa89[_0xc08e8e(0x16d)],_0x49fa89[_0xc08e8e(0x1f7)])){const _0x25d459=_0x49e631['details']||[];_0x25d459[_0xc08e8e(0x28b)](_0x3f8618=>_0x3f8618[_0xc08e8e(0x140)])['joinModel'](_0x2da8e1,contract,[{'akey':_0xc08e8e(0x140),'bkey':_0x49fa89[_0xc08e8e(0x2b0)],'fields':[{'name':_0x49fa89[_0xc08e8e(0xe5)],'value':_0x49fa89[_0xc08e8e(0xe5)]}]}],function(){const _0x34f63a=_0xc08e8e;if(_0x917bad[_0x34f63a(0x12b)](_0x917bad['fQZnE'],_0x917bad[_0x34f63a(0x1ef)])){if(_0xbbe521){const _0x582a09=_0x25f540[_0x34f63a(0x131)](_0x136f9e,arguments);return _0x44f500=null,_0x582a09;}}else _0x917bad['DslXN'](_0x3f8ccd);});}else _0x917bad[_0xc08e8e(0x1d3)](_0x5d796a);},function(){const _0x498518=_0x161402,_0xe9a22b={'dMIXw':function(_0x650eb9,_0x597109){const _0x5bc65f=_0x4188;return _0x49fa89[_0x5bc65f(0x22d)](_0x650eb9,_0x597109);}};if('KKajn'!==_0x49fa89[_0x498518(0x26e)])switch(_0x228fa4){case'KT':return _0xe9a22b[_0x498518(0x2ae)](_0x428622,0x0)?_0x3b2e5f:-0x2;case'KK':return _0x1b9eaf<0x0?_0xf9830f:-0x1;default:return _0x3e8077;}else _0x49fa89[_0x498518(0x1a5)](_0x1203cd);});},'details_phi':function(_0x4e87fc){const _0x48abd4=_0x30e79b,_0x3bd2e4={'LHQhH':function(_0x596792){const _0x4a5d91=_0x4188;return _0x6a1db4[_0x4a5d91(0x2c1)](_0x596792);},'eYWZK':function(_0x14b867,_0x77d21a){const _0x2fe705=_0x4188;return _0x6a1db4[_0x2fe705(0x152)](_0x14b867,_0x77d21a);},'aBFFq':_0x48abd4(0x1d0)};async['mapLimit'](_0x30898c,0x14,function(_0x307537,_0x448b41){const _0x4e1e75=_0x48abd4,_0x39e22f=_0x307537[_0x4e1e75(0x215)]||[];_0x39e22f[_0x4e1e75(0x28b)](_0x919b3b=>_0x919b3b[_0x4e1e75(0x19d)])[_0x4e1e75(0x227)](_0x2da8e1,dmphi,[{'akey':_0x6a1db4[_0x4e1e75(0x14c)],'bkey':_0x4e1e75(0x19d),'fields':[{'name':_0x6a1db4[_0x4e1e75(0xf3)],'value':_0x4e1e75(0x18f)}]}],function(){const _0x598e15=_0x4e1e75;_0x3bd2e4[_0x598e15(0x2d5)](_0x448b41);});},function(){const _0x3eae8b=_0x48abd4;_0x6a1db4['RAeED']('TYLKl',_0x6a1db4[_0x3eae8b(0x150)])?(_0x175e2a[_0x3eae8b(0x2b7)]['invoiceIssuedDate']=_0x3bd2e4[_0x3eae8b(0x218)](_0x1a7ab3,_0x497ec4['ngay_hd'])[_0x3eae8b(0x275)](_0x3bd2e4[_0x3eae8b(0x206)]),_0x573db2[_0x3eae8b(0x2e8)]?_0x2f046f=_0x4f6ba2[_0x3eae8b(0xf1)]['trim']()+'/InvoiceAPI/InvoiceWS/createInvoice/'+_0x4e5baf[_0x3eae8b(0x1df)]['trim']():_0x149f8a=_0x23a963[_0x3eae8b(0xf1)]['trim']()+_0x3eae8b(0x2b3)+_0x8b05b4[_0x3eae8b(0x1df)][_0x3eae8b(0x1dc)]()):_0x4e87fc();});}},function(){const _0x41668f=_0x30e79b;_0x311fcf[_0x41668f(0x1d7)](_0x311fcf[_0x41668f(0x27a)],_0x311fcf['cRPQK'])?_0x6a1db4[_0x41668f(0x2b2)](_0x102f7a,_0x4de968,_0x56f30b):_0x39ce13(null,_0x30898c);});},_0x1f91b6['createRoute'](_0x311fcf[_0x2b298c(0x2c4)],async(_0x44c98a,_0x472b2c)=>{const _0x3ae102=_0x2b298c,_0x266727={'RuaaS':function(_0x558588,_0x581c4b){const _0x211515=_0x4188;return _0x311fcf[_0x211515(0x2db)](_0x558588,_0x581c4b);},'laScO':_0x3ae102(0x18f),'ggvPa':_0x311fcf[_0x3ae102(0x14e)],'moDBE':_0x311fcf['TypKY'],'DeHbF':function(_0xa0cc68){const _0x489357=_0x3ae102;return _0x311fcf[_0x489357(0x1c9)](_0xa0cc68);},'Viyqs':_0x311fcf[_0x3ae102(0x2d9)],'ydduV':function(_0x12e42c,_0x4fd01b){return _0x12e42c-_0x4fd01b;},'zfEjb':function(_0x265205,_0x43c876){const _0x123bf1=_0x3ae102;return _0x311fcf[_0x123bf1(0x1b9)](_0x265205,_0x43c876);},'HIZlE':function(_0x44411e,_0x5018f7){return _0x44411e<_0x5018f7;},'WPaZJ':function(_0x37756e,_0x2aee03){return _0x311fcf['OXWfH'](_0x37756e,_0x2aee03);},'Vqklu':function(_0x5283ee,_0x199b0d){const _0x16e45c=_0x3ae102;return _0x311fcf[_0x16e45c(0xf6)](_0x5283ee,_0x199b0d);}};try{console[_0x3ae102(0x181)](_0x311fcf[_0x3ae102(0xe9)]);const _0x8d9e21=_0x44c98a[_0x3ae102(0x287)][_0x3ae102(0x148)],_0x2bd28b=await App[_0x3ae102(0x147)]({'_id':_0x8d9e21});if(!_0x2bd28b)return console[_0x3ae102(0x181)]('Không\x20tim\x20thấy\x20thông\x20tin\x20coogn\x20ty'),_0x311fcf[_0x3ae102(0x2d2)](_0x472b2c,_0x311fcf[_0x3ae102(0x1a8)]);if(!_0x2bd28b[_0x3ae102(0xf1)]||!_0x2bd28b[_0x3ae102(0x24d)]||!_0x2bd28b[_0x3ae102(0x262)])return console[_0x3ae102(0x181)](_0x311fcf['hscUo']),_0x472b2c(_0x311fcf['Ijhnm']);if(!_0x2bd28b[_0x3ae102(0x1df)]){if(_0x311fcf[_0x3ae102(0x197)](_0x311fcf[_0x3ae102(0xc9)],_0x311fcf['NHoXM']))_0x317d9b();else return console[_0x3ae102(0x181)](_0x311fcf[_0x3ae102(0x224)]),_0x311fcf['IcvCs'](_0x472b2c,'Bạn\x20chưa\x20nhập\x20mã\x20số\x20thuế\x20của\x20công\x20ty');}const _0x434816=_0x44c98a[_0x3ae102(0x28a)][_0x3ae102(0x1b0)],_0x5701c7=await model['findOne']({'id_app':_0x8d9e21,'_id':_0x434816})[_0x3ae102(0x116)]();if(!_0x5701c7)return console[_0x3ae102(0x181)](_0x311fcf['noAIf']),_0x311fcf[_0x3ae102(0x1b2)](_0x472b2c,_0x311fcf[_0x3ae102(0x23a)]);let _0xb9bac2=_0x5701c7['_id'][_0x3ae102(0x237)]();try{if(_0x311fcf[_0x3ae102(0x27e)]===_0x311fcf[_0x3ae102(0x27e)]){let _0x280ec8=await utils[_0x3ae102(0x21e)](_0x2bd28b,_0xb9bac2);if(_0x280ec8){if(_0x311fcf[_0x3ae102(0x157)](_0x311fcf[_0x3ae102(0xcf)],_0x311fcf[_0x3ae102(0xcf)])){if(_0x280ec8[_0x3ae102(0xec)])return _0x311fcf[_0x3ae102(0x286)](_0x472b2c,_0x280ec8['data']||_0x280ec8[_0x3ae102(0x1c2)]);return console['log'](_0x311fcf['LMhuf']),_0x5701c7[_0x3ae102(0x159)]=_0x280ec8,await utils[_0x3ae102(0x241)](_0x1f91b6,_0x5701c7),_0x311fcf[_0x3ae102(0x190)](_0x472b2c,null,_0x280ec8);}else _0x6fc795[_0x3ae102(0x20c)]=_0x559143[_0x3ae102(0x19b)],_0x564e4d[_0x3ae102(0xfa)]=_0x311fcf['NRpmh'](_0x2315c5['tien_nt'],_0x502f28[_0x311fcf[_0x3ae102(0x2a8)]]),_0x575c3e['t_tien']=_0x311fcf['nSiLJ'](_0xca34a5[_0x3ae102(0x250)],_0x2a6aa5[_0x311fcf[_0x3ae102(0xfe)]]),_0x3df961[_0x3ae102(0x2b9)]=_0x38d8a9[_0x311fcf[_0x3ae102(0x1c1)]],_0x342ee9[_0x3ae102(0xd9)]=_0x37d94c[_0x311fcf['zyjZO']],_0x2a9d26[_0x3ae102(0x10f)]=_0x2a0860[_0x3ae102(0xd8)]||_0x4ad225[_0x3ae102(0x10f)]||_0x567e2a[_0x3ae102(0x20b)];}}else _0x42d5e3[_0x3ae102(0x140)]=_0x4c1b29[_0x3ae102(0x140)];}catch(_0x205d26){return console['error'](_0x311fcf['tFGUX'],_0x205d26),_0x311fcf['EaLQU'](_0x472b2c,_0x205d26);}const _0x590695=(_0xea3e9,_0x277269,_0x54a340)=>{const _0x5420d4=_0x3ae102;switch(_0xea3e9){case'KT':return _0x54a340<0x0?undefined:-0x2;case'KK':return _0x266727[_0x5420d4(0x239)](_0x54a340,0x0)?undefined:-0x1;default:return _0x277269;}};if(_0x5701c7[_0x3ae102(0x159)]&&_0x5701c7[_0x3ae102(0x159)]['result']&&_0x5701c7[_0x3ae102(0x159)][_0x3ae102(0x12a)][_0x3ae102(0x199)])return _0x472b2c(null,_0x5701c7[_0x3ae102(0x159)]);const _0x3b2e74=await customer['findOne']({'id_app':_0x8d9e21,'ma_kh':_0x5701c7['ma_kh']})||{},_0x2a7494=Math[_0x3ae102(0x280)](_0x5701c7['details'][_0x3ae102(0x16c)](_0x37b5fc=>_0x37b5fc['tien_nt'])[_0x3ae102(0x265)]((_0xaf4ac4,_0x2bbcdf)=>_0xaf4ac4+_0x2bbcdf,0x0)),_0x1eefc2=Math[_0x3ae102(0x280)](_0x5701c7[_0x3ae102(0x215)][_0x3ae102(0x16c)](_0x11b273=>_0x11b273['tien_ck_nt'])[_0x3ae102(0x265)]((_0x4d866e,_0x2388a8)=>_0x4d866e+_0x2388a8,0x0)),_0xad7b4a=Math['abs'](_0x5701c7['details'][_0x3ae102(0x16c)](_0x3a2009=>_0x3a2009[_0x3ae102(0x251)]-_0x3a2009[_0x3ae102(0x2ce)])[_0x3ae102(0x265)]((_0x3b7881,_0x2e9e33)=>_0x3b7881+_0x2e9e33,0x0)),_0x2fd090=Math[_0x3ae102(0x280)](_0x5701c7['details'][_0x3ae102(0x16c)](_0x30d0ac=>_0x30d0ac[_0x3ae102(0x2c8)])[_0x3ae102(0x265)]((_0x48c12c,_0x11109c)=>_0x48c12c+_0x11109c,0x0)),_0x337e71=_0x5701c7[_0x3ae102(0x277)]||0x0;let _0xff716e=_0x5701c7[_0x3ae102(0x215)][_0x3ae102(0x16c)](_0x297bda=>{const _0x59e7d6=_0x3ae102,_0x3c9916={'QnVdV':_0x59e7d6(0x19d),'BcVvw':_0x266727['laScO']};if(_0x266727[_0x59e7d6(0x2ec)]!==_0x266727['moDBE']){let _0x18367d=(!_0x297bda['ma_thue']?_0x5701c7[_0x59e7d6(0x2df)]:_0x297bda[_0x59e7d6(0x2df)])||0x0,_0x523eb2=_0x297bda['ma_thue']||_0x5701c7[_0x59e7d6(0x1e4)];return{..._0x297bda,'ma_thue':_0x523eb2,'thue_suat':_0x18367d};}else _0x221e4f[_0x59e7d6(0x14a)](_0x472380,0x14,function(_0xcd9060,_0x862fbd){const _0x14246d=_0x59e7d6,_0x39311d=_0xcd9060[_0x14246d(0x215)]||[];_0x39311d[_0x14246d(0x28b)](_0x4af021=>_0x4af021[_0x14246d(0x19d)])[_0x14246d(0x227)](_0x50a365,_0x1d876b,[{'akey':_0x3c9916[_0x14246d(0x165)],'bkey':_0x3c9916[_0x14246d(0x165)],'fields':[{'name':_0x3c9916['BcVvw'],'value':_0x3c9916[_0x14246d(0x22e)]}]}],function(){_0x862fbd();});},function(){_0x5d6c5e();});})[_0x3ae102(0x28b)](_0x2e2254=>_0x2e2254[_0x3ae102(0x1e4)]);if(_0x311fcf['PFHrn'](_0xff716e[_0x3ae102(0x240)],0x0))return _0x311fcf[_0x3ae102(0x1fe)](_0x472b2c,_0x311fcf[_0x3ae102(0x253)]);_0xff716e=_0xff716e[_0x3ae102(0x28b)](_0x42e6f8=>_0x42e6f8['ma_thue']!='KT'&&_0x42e6f8[_0x3ae102(0x1e4)]!='KK')['map'](_0x51ac81=>{const _0x1be909=_0x3ae102,_0x1e97af={'CKqcx':function(_0xd5baf6){const _0x4d4dfd=_0x4188;return _0x266727[_0x4d4dfd(0x12e)](_0xd5baf6);}};if('YcaBZ'!==_0x266727[_0x1be909(0x1ba)])return{'taxPercentage':_0x51ac81[_0x1be909(0x2df)],'taxableAmount':Math['abs'](_0x266727['ydduV'](_0x51ac81[_0x1be909(0x251)],_0x51ac81[_0x1be909(0x2ce)])),'taxAmount':Math[_0x1be909(0x280)](_0x51ac81[_0x1be909(0x2c8)])};else _0x1e97af['CKqcx'](_0x6f7450);}),_0xff716e=await _0xff716e[_0x3ae102(0xfc)](_0x311fcf[_0x3ae102(0x1e0)],[_0x3ae102(0x142),_0x311fcf[_0x3ae102(0x2e0)]]);const _0x22bca4={'generalInvoiceInfo':{'invoiceType':_0x5701c7[_0x3ae102(0x137)]||_0x2bd28b[_0x3ae102(0x137)]||'1','templateCode':_0x5701c7[_0x3ae102(0x192)]||_0x2bd28b['ky_hieu_hoa_don']||_0x3ae102(0x27c),'invoiceSeries':_0x5701c7[_0x3ae102(0x1cd)],'transactionUuid':_0xb9bac2,'currencyCode':_0x3ae102(0x296),'adjustmentType':'1','paymentStatus':!![],'cusGetInvoiceRight':!![],'userName':_0x5701c7[_0x3ae102(0x11f)]},'buyerInfo':{'buyerName':_0x5701c7[_0x3ae102(0xd6)]||'','buyerLegalName':_0x5701c7[_0x3ae102(0x25f)]||_0x3b2e74['ten_kh']||'','buyerTaxCode':_0x5701c7[_0x3ae102(0x1df)]||_0x3b2e74[_0x3ae102(0x1df)]||'','buyerAddressLine':_0x5701c7[_0x3ae102(0x244)]||_0x3b2e74[_0x3ae102(0x244)]||'','buyerPostalCode':'','buyerDistrictName':'','buyerCityName':'','buyerCountryCode':'','buyerPhoneNumber':_0x5701c7[_0x3ae102(0xed)]||_0x3b2e74[_0x3ae102(0xed)]||'','buyerFaxNumber':'','buyerEmail':_0x3b2e74[_0x3ae102(0x143)]||'','buyerBankName':'','buyerBankAccount':'','buyerIdType':'','buyerIdNo':'','buyerCode':'','buyerBirthDay':''},'sellerInfo':{'sellerLegalName':_0x2bd28b['name'],'sellerTaxCode':_0x2bd28b[_0x3ae102(0x1df)],'sellerAddressLine':_0x2bd28b[_0x3ae102(0x126)]||_0x2bd28b[_0x3ae102(0x2cd)],'sellerPhoneNumber':_0x2bd28b[_0x3ae102(0x2d4)]||'','sellerEmail':_0x2bd28b[_0x3ae102(0x143)]||'','sellerBankName':_0x2bd28b[_0x3ae102(0x276)]||'','sellerBankAccount':_0x2bd28b[_0x3ae102(0x255)]||''},'itemInfo':_0x5701c7[_0x3ae102(0x215)][_0x3ae102(0x16c)]((_0x29f45d,_0x1d2d19)=>{const _0x224fb6=_0x3ae102;let _0x3a7613=(!_0x29f45d[_0x224fb6(0x1e4)]?_0x5701c7[_0x224fb6(0x2df)]:_0x29f45d[_0x224fb6(0x2df)])||0x0,_0x34bdd6=_0x29f45d[_0x224fb6(0x1e4)]||_0x5701c7[_0x224fb6(0x1e4)];return{'lineNumber':_0x266727[_0x224fb6(0x177)](_0x1d2d19,0x1),'selection':_0x266727[_0x224fb6(0x274)](_0x29f45d[_0x224fb6(0x251)],0x0)?0x3:0x1,'itemCode':_0x266727[_0x224fb6(0x177)](_0x1d2d19,0x1)['toString'](),'itemName':_0x29f45d[_0x224fb6(0x20b)],'unitName':_0x266727[_0x224fb6(0x21d)](_0x29f45d[_0x224fb6(0x251)],0x0)?'':_0x29f45d[_0x224fb6(0x264)],'itemNote':'','unitPrice':_0x266727['WPaZJ'](_0x29f45d['tien_nt'],0x0)?undefined:_0x29f45d[_0x224fb6(0x2eb)],'quantity':_0x266727[_0x224fb6(0x2ba)](_0x29f45d[_0x224fb6(0x251)],0x0)?undefined:_0x29f45d['sl_xuat'],'itemTotalAmountWithoutTax':Math[_0x224fb6(0x280)](_0x29f45d[_0x224fb6(0x251)]),'discount':_0x29f45d[_0x224fb6(0x24b)],'itemDiscount':Math[_0x224fb6(0x280)](_0x29f45d[_0x224fb6(0x2ce)]),'itemTotalAmountAfterDiscount':Math[_0x224fb6(0x280)](_0x266727['ydduV'](_0x29f45d[_0x224fb6(0x251)],_0x29f45d[_0x224fb6(0x2ce)])),'taxPercentage':_0x590695(_0x34bdd6,_0x3a7613,_0x29f45d['tien_nt']),'taxAmount':Math[_0x224fb6(0x280)](_0x29f45d[_0x224fb6(0x2c8)]),'itemTotalAmountWithTax':Math[_0x224fb6(0x280)](_0x266727['zfEjb'](_0x266727[_0x224fb6(0x245)](_0x29f45d['tien_nt'],_0x29f45d[_0x224fb6(0x2ce)]),_0x29f45d['tien_thue_nt'])),'customTaxAmount':'0','batchNo':'','expDate':''};}),'summarizeInfo':{'sumOfTotalLineAmountWithoutTax':_0x2a7494,'discountAmount':_0x1eefc2,'settlementDiscountAmount':_0x337e71,'totalAmountWithoutTax':_0xad7b4a,'totalTaxAmount':_0x2fd090,'totalAmountWithTax':_0x311fcf[_0x3ae102(0x1b9)](_0xad7b4a,_0x2fd090)},'taxBreakdowns':_0xff716e,'payments':[{'paymentMethodName':_0x5701c7[_0x3ae102(0x1e8)]||'TM'}],'extAttribute':[],'deliveryInfo':{},'metadata':[]};!_0x5701c7['ngay_hd']&&(_0x5701c7[_0x3ae102(0x2be)]=new Date());let _0x860207,_0x826b6e,_0x51168a,_0x337a32={'username':_0x2bd28b[_0x3ae102(0x24d)][_0x3ae102(0x1dc)](),'password':_0x2bd28b[_0x3ae102(0x262)][_0x3ae102(0x1dc)]()};if(_0x311fcf[_0x3ae102(0x2bd)](_0x2bd28b['viettel_version'],'1')){_0x22bca4[_0x3ae102(0x2b7)]['invoiceIssuedDate']=new Date(_0x5701c7[_0x3ae102(0x2be)])['getTime']();let _0x34a04e=_0x2bd28b[_0x3ae102(0xf1)][_0x3ae102(0x1dc)]()+_0x3ae102(0x149);_0x2bd28b['viettel_direct_issue']?_0x826b6e=_0x2bd28b[_0x3ae102(0xf1)][_0x3ae102(0x1dc)]()+'/services/einvoiceapplication/api/InvoiceAPI/InvoiceWS/createInvoice/'+_0x2bd28b[_0x3ae102(0x1df)]['trim']():_0x826b6e=_0x2bd28b['viettel_url_service'][_0x3ae102(0x1dc)]()+_0x3ae102(0x123)+_0x2bd28b[_0x3ae102(0x1df)][_0x3ae102(0x1dc)]();try{let _0x4e9e34=await _0x311fcf[_0x3ae102(0x286)](axios,{'method':_0x311fcf['lCFLi'],'url':_0x34a04e,'data':_0x337a32});_0x51168a=_0x4e9e34['data'][_0x3ae102(0xcb)];}catch(_0x45c985){console[_0x3ae102(0xe4)](_0x311fcf['ODZvn'],_0x337a32,_0x34a04e);let _0x376492=_0x45c985['response']?_0x45c985[_0x3ae102(0x236)][_0x3ae102(0xd2)]:_0x45c985[_0x3ae102(0x26b)];if(_0x376492&&_0x376492[_0x3ae102(0x283)])_0x376492[_0x3ae102(0x26b)]=_0x376492[_0x3ae102(0x283)];return _0x311fcf['bOGrJ'](_0x472b2c,_0x376492||_0x45c985['message']||_0x45c985[_0x3ae102(0xe4)]||_0x45c985);}_0x860207={'Cookie':'\x22access_token\x22:\x22'+_0x51168a+_0x3ae102(0x13c)+_0x51168a+_0x3ae102(0x132)+_0x51168a,'Content-Type':_0x311fcf[_0x3ae102(0x191)]},_0x337a32=undefined;}else _0x22bca4[_0x3ae102(0x2b7)]['invoiceIssuedDate']=_0x311fcf['nUjGi'](Moment,_0x5701c7[_0x3ae102(0x2be)])[_0x3ae102(0x275)](_0x311fcf[_0x3ae102(0x1c0)]),_0x2bd28b['viettel_direct_issue']?_0x311fcf['Ybaso'](_0x3ae102(0x2a7),_0x311fcf[_0x3ae102(0x29a)])?_0x826b6e=_0x2bd28b[_0x3ae102(0xf1)]['trim']()+_0x3ae102(0x1ca)+_0x2bd28b['ma_so_thue'][_0x3ae102(0x1dc)]():_0x311fcf['EaLQU'](_0x2af4ef,_0x463fc1):_0x311fcf[_0x3ae102(0x1d7)](_0x311fcf[_0x3ae102(0x18c)],_0x311fcf['IMAoD'])?_0x826b6e=_0x2bd28b[_0x3ae102(0xf1)]['trim']()+_0x3ae102(0x2b3)+_0x2bd28b[_0x3ae102(0x1df)][_0x3ae102(0x1dc)]():_0x311fcf[_0x3ae102(0x1d1)](_0xaa9dab);console[_0x3ae102(0x181)](_0x311fcf[_0x3ae102(0x214)]),_0x311fcf['uJCcv'](axios,{'method':_0x311fcf[_0x3ae102(0x1b8)],'url':_0x826b6e,'data':_0x311fcf[_0x3ae102(0x223)](_0x2bd28b['viettel_version'],'1')?JSON[_0x3ae102(0x267)](_0x22bca4):_0x22bca4,'auth':_0x337a32,'headers':_0x860207})['then'](async _0x4e3bb7=>{const _0x244135=_0x3ae102,_0x53d552={'sUaLF':_0x311fcf['cLEWh'],'FOEWb':_0x244135(0x18f)};if(_0x311fcf['uYkLf'](_0x244135(0xde),_0x311fcf[_0x244135(0x105)])){const _0x57b15d={..._0x2ca171};_0x57b15d[_0x244135(0x19b)]=_0x57b15d['tk_ck'],!_0x57b15d[_0x244135(0x21a)]&&(_0x57b15d[_0x244135(0x21a)]=_0x36b6e2[_0x244135(0x21a)]),_0x57b15d[_0x244135(0x248)]=_0x174718['tk_no'],_0x57b15d[_0x244135(0x251)]=_0x57b15d['tien_ck_nt'],_0x57b15d[_0x244135(0x250)]=_0x57b15d[_0x244135(0x1e1)],_0x57b15d[_0x244135(0x1c5)]=![],_0x44a235['push'](_0x57b15d);}else{let _0x3e9c96=_0x4e3bb7[_0x244135(0xd2)];console['error'](_0x311fcf['JMZAI'],_0x3e9c96);if(!_0x3e9c96)return _0x472b2c(_0x311fcf[_0x244135(0x22f)]);if(_0x3e9c96[_0x244135(0xec)])return _0x311fcf[_0x244135(0x1f3)](_0x472b2c,_0x3e9c96[_0x244135(0x1c2)]);_0x5701c7['result_export_einvoice']=_0x3e9c96,_0x5701c7[_0x244135(0x242)]=_0x5701c7[_0x244135(0x159)][_0x244135(0x12a)][_0x244135(0x199)],await model['findOneAndUpdate']({'_id':_0x5701c7[_0x244135(0xd4)]},_0x5701c7);if(_0x5701c7[_0x244135(0x242)])await Tdttno['updateMany']({'id_ct':_0x5701c7[_0x244135(0xd4)][_0x244135(0x237)]()},{'so_hd':_0x5701c7['so_hd']});if(_0x5701c7[_0x244135(0x242)])await Tdttno_tt[_0x244135(0x23e)]({'id_hd':_0x5701c7[_0x244135(0xd4)][_0x244135(0x237)]()},{'so_hd':_0x5701c7['so_hd']});if(_0x5701c7[_0x244135(0x242)])await Vatra[_0x244135(0x23e)]({'id_ct':_0x5701c7[_0x244135(0xd4)][_0x244135(0x237)]()},{'so_hd':_0x5701c7[_0x244135(0x242)]});controller[_0x244135(0x1bb)](_0x5701c7,_0x1f91b6,_0x4a68d1=>{const _0x465abe=_0x244135;if(_0x465abe(0x2b6)!==_0x465abe(0x2b6)){const _0x2e9b2b={'sKkjj':function(_0x5f3c06){return _0x5f3c06();}},_0x31f735=_0x4d7de6['details']||[];_0x31f735[_0x465abe(0x28b)](_0x4de7a3=>_0x4de7a3[_0x465abe(0x19d)])[_0x465abe(0x227)](_0x43847f,_0x4aecb6,[{'akey':_0x53d552[_0x465abe(0x252)],'bkey':_0x53d552[_0x465abe(0x252)],'fields':[{'name':_0x53d552[_0x465abe(0x2a9)],'value':_0x465abe(0x18f)}]}],function(){_0x2e9b2b['sKkjj'](_0x352112);});}else{if(_0x4a68d1)return console[_0x465abe(0xe4)](_0x4a68d1);controller[_0x465abe(0xcc)](_0x1f91b6,_0x5701c7);}}),_0x311fcf[_0x244135(0x28f)](_0x472b2c,null,_0x3e9c96);}})[_0x3ae102(0x210)](_0x1f4a4d=>{const _0x5367f3=_0x3ae102;console[_0x5367f3(0xe4)]('error\x20when\x20export\x20invocie\x20viettel',_0x1f4a4d[_0x5367f3(0x236)]);let _0x1c66ce=_0x1f4a4d[_0x5367f3(0x236)]?_0x1f4a4d[_0x5367f3(0x236)][_0x5367f3(0xd2)]:_0x1f4a4d[_0x5367f3(0x26b)];if(_0x1c66ce[_0x5367f3(0xd2)])_0x1c66ce[_0x5367f3(0x26b)]=_0x1c66ce['data'];if(_0x1c66ce[_0x5367f3(0x283)])_0x1c66ce['message']=_0x1c66ce[_0x5367f3(0x283)];_0x311fcf[_0x5367f3(0x1f3)](_0x472b2c,_0x1c66ce||_0x1f4a4d['message']||_0x1f4a4d[_0x5367f3(0xe4)]||_0x1f4a4d);});}catch(_0xa585af){_0x311fcf[_0x3ae102(0x122)](_0x3ae102(0x29b),'rjHwH')?(console['log'](_0xa585af),_0x311fcf[_0x3ae102(0x153)](_0x472b2c,_0xa585af[_0x3ae102(0x26b)])):(_0x2072e2[_0x3ae102(0x181)](_0xfae5d),_0x311fcf[_0x3ae102(0x1d5)](_0x48b06f,_0xb7e899[_0x3ae102(0x26b)]));}},{'method':_0x311fcf[_0x2b298c(0x107)]});};