1async function generateToken(userName, password, serviceType, loginUserType) { 2 debugger 3 if (typeof userName === 'string') { 4 userName = userName.trim().replace(/[Ù -Ù©]/g, function (d) { 5 return d.charCodeAt(0) - 1632; 6 }).replace(/[Û°-Û¹]/g, function (d) { 7 return d.charCodeAt(0) - 1776; 8 }); 9 } 10 if (typeof password === 'string') { 11 password = password.trim().replace(/[Ù -Ù©]/g, function (d) { 12 return d.charCodeAt(0) - 1632; 13 }).replace(/[Û°-Û¹]/g, function (d) { 14 return d.charCodeAt(0) - 1776; 15 }); 16 } 17 18 const response = await fetch('/api/token/generate', { 19 method: 'POST', 20 headers: { 21 'Content-Type': 'application/json' 22 }, 23 body: JSON.stringify({ 24 Username: userName, 25 Password: password, 26 serviceType: serviceType, 27 UserType: loginUserType 28 }) 29 }); 30 31 if (!response.ok) { 32 const errorData = await response.json(); 33 throw new Error(errorData.Message || 'ÙÙØ¯ ØØ¯Ø« خطأ ٠ا برجاء اÙÙ ØØ§ÙÙØ© ٠رة أخرÙ'); 34 } 35 36 const data = await response.json(); 37 return data; 38} 39 40async function logout() { 41 42 debugger 43 var token = getCookie('access_token'); 44 const response = await fetch('/api/token/logout', { 45 method: 'POST', 46 headers: { 47 'Authorization': 'Bearer ' + token, 48 'Content-Type': 'application/json' 49 }, 50 body: {} 51 }); 52 53 if (!response.ok) { 54 const errorData = await response.json(); 55 throw new Error(errorData.Message || 'ÙÙØ¯ ØØ¯Ø« خطأ ٠ا برجاء اÙÙ ØØ§ÙÙØ© ٠رة أخرÙ'); 56 } 57 58 const data = await response.json(); 59 return data.message; 60}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.