10 failed / =-1 error\n\t\t//pass ip 150.129.20.226. (comapre to user ip 203.144.93.152 is 7km)\n\t\t// all status : pass \"203.144.93.152\", error \"183.1.64\", faield 183.1.64.1\n\t\t//url : http://task.pprcs.com/taskhost/execute-task-api\n\t\t\t{\n\t\t\t\t\t\"userId\": 0,\n\t\t\t\t\t\"deviceId\": \"A081154E-21E2-4EBF-BC66-C4586D684A9E\",\n\t\t\t\t\t\"loginIp\": \"150.129.20.226\",\n\t\t\t\t\t\"apiName\": \"1_BEFORE_LOGIN\"\n\t\t\t}\n\n2. VALIDATE_IP_FROM_ACCESS_LOG: Trigger by timer\n * Condition:\n a). If last IP different from new IP in access log of OpenSearch\n * Result: (MQ executor)\n a). MQ, publish LOGOUT_ON_DIFFERENCE_IP\n\t\t//Rule if distance <= 10 km logout= false, if >10 kickout -> logout =true\n\t\t//Queue will publish to LOGOUT_ON_DIFFERENCE_IP \n\t\t{kick_out: {logout: true/false, userId: \"{userId}\" (user can be null in case cannot getting from logs)}}\n\n3. VALIDATE_USER_PROFILE: Trigger by timer\n * Condition:\n a). If profile image contain given blacklist text\n b). If profile image contain QR code\n * Result: (MongoDB executor)\n a). Any conditions \"true\", replace profile picture to default\n\t// current blackList Text store in rule [\"shit\", \"make love\", \"wisdom\"];\n\t//To test choose one user change avatarMark to 1 change avatarUrl to image qr code or image has badword\n\tResponse Trigger\n\t- if hasQr update avatarMark = 0, and avatarUrl=`https://wrs-mp.hwv5.cn/mpay/avater22.jpeg`\n\t- if hasOcr update avatarMark = 0, and avatarUrl=`https://wrs-mp.hwv5.cn/mpay/avater22.jpeg`\n\t- if ok avatarMark = 0,\n\n\n5. BEFORE_TRANSACTION_OF_WECHAT_OR_ALIPAY: Trigger by API\n * Condition:\n a). If current user account having at least 1 transaction (buy/sell) using Bank Card (UnionPay)\n * Result: (Respsone synchronously)\n a). Return validated result (true | false)\n\n\t\t//url : http://task.pprcs.com/taskhost/execute-task-api\n\t\t// case //pass 11111, faield: 2\n\t\t//response data {isValid: true/false}\n\t\t {\n\t\t\t \"userId\": 11111, \n\t\t\t \"apiName\": \"5_BEFORE_TRANSACTION_OF_WECHAT_OR_ALIPAY\"\n\t\t }","mode":"json","author":"65152df506fe4003b020bd6c","createdAt":"2023-09-29T13:39:49.190Z","updatedAt":"2023-09-29T13:39:49.190Z","__v":0};
window.currentCodexId = window.currentCodex._id;
if (window.currentCodex.compare) {
localStorage.setItem('window.editor.compare.editor.value', window.currentCodex.body);
localStorage.setItem('window.editor.compare.rightOriginal.value', window.currentCodex.sub.body);
} else {
localStorage.setItem('window.editor.primary.value', window.currentCodex.body);
if (window.currentCodex.sub)
localStorage.setItem('window.editor.secondary.value', window.currentCodex.sub.body);
}