1class classEZPMPFunction 2{ 3 hostname = String(location.hostname); 4 errorImg = "/resources/images/noimage.png"; 5 logLevel = 0; // 0-Dev, 1-Stage, 2-Prd 6 debug_hostArray = ["test4.o2meet.io", "localhost"]; 7 debugMode = true; 8 9 constructor() 10 { 11 this.hostname = String(location.hostname); 12 } 13 14 set_debugHost(hostUrl) 15 { 16 this.debug_hostArray.push(hostUrl) 17 } 18 19 get_debugHost() 20 { 21 return debug_hostArray; 22 } 23 24 del_debugHost(hostUrl) 25 { 26 var tempHostArray = new Array(); 27 this.debug_hostArray.forEach(function(item) 28 { 29 if (item.toLowerCase() != hostUrl.toLowerCase()) 30 { 31 tempHostArray.push(item); 32 } 33 }); 34 this.debug_hostArray = tempHostArray; 35 } 36 37 isDebugHost = function() 38 { 39this.Logging("this.hostname=", this.hostname); 40 var returnValue = false; 41 42 if (this.debug_hostArray != null) 43 { 44 returnValue = this.debug_hostArray.includes(this.hostname); 45 } 46this.Logging("isDebugHost=", returnValue); 47 return returnValue; 48 } 49 50 51 /** 52 Call method Change 53 **/ 54 fn_CallAPI(apiAddr, method, lParams, callbackFunction=null, callFuncName) 55 { 56 if (lParams === null) 57 { 58 lParams = ""; 59 } 60 61 this.Logging("fn_CallAPI[REQUEST] : ", method, lParams); 62 63 switch(method.toLowerCase()) 64 { 65 default: 66 this.LoggingError("Invalid Method : fn_CallAPI=", method); 67 break; 68 69 case "post": 70 axios.post(apiAddr, lParams) 71 .then(res => { 72 this.Logging("fn_CallAPI[POS RESPONSE] : ", callFuncName, method, lParams, res, callFuncName); 73 if (callbackFunction === null) 74 { 75 fn_basicCallbackSiteInfo(res); 76 } 77 else 78 { 79 callbackFunction(res); 80 } 81 82 }) 83 .catch(err => { 84 this.Logging(err); 85 }); 86 break; 87 88 case "get": 89 axios.get(apiAddr, lParams) 90 .then(res => { 91 this.Logging("fn_CallAPI[GET RESPONSE] : ", callFuncName, method, lParams, res, callFuncName); 92 if (callbackFunction === null) 93 { 94 fn_basicCallbackSiteInfo(res); 95 } 96 else 97 { 98 callbackFunction(res); 99 } 100 101 }) 102 .catch(err => { 103 this.Logging(err); 104 }); 105 break; 106 } 107 } 108 109 Logging(tag=null, ...args) 110 { 111 var isDebug = false; 112 if (tag === null) tag="Debuging"; 113 114 try 115 { 116 var now = new Date(); 117 var dateString = new Date(+now + 3240 * 10000).toISOString().split("T")[0] 118 dateString += " " + now.toTimeString().split(" ")[0]; 119 if (isDebug) 120 { 121 // console.log("-- " + dateString + " : " + tag + "=", args); 122 } 123 else 124 { 125 if (this.debugMode) 126 { 127 switch(this.logLevel) 128 { 129 default: 130 case 0: 131 break; 132 case 1: 133 case 2: 134 // console.log("-- " + dateString + " : " + tag + "=", args); 135 break; 136 } 137 } 138 } 139 } 140 catch (e) 141 { 142 console.log("classEZPMPFunction=", e); 143 } 144 } 145 146 LoggingError(tag=null, ...args) 147 { 148 var isDebug = false; 149 if (tag === null) tag="Debuging"; 150 151 try 152 { 153 if (this.hostname) 154 { 155 if (this.hostname.toLowerCase().indexOf("test") >= 0) isDebug = true; 156 if (this.hostname.toLowerCase().indexOf("localhost") >= 0) isDebug = true; 157 } 158 159 var now = new Date(); 160 var dateString = new Date(+now + 3240 * 10000).toISOString().split("T")[0] 161 dateString += " " + now.toTimeString().split(" ")[0]; 162 if (isDebug) 163 { 164 // console.log("-- " + dateString + " : " + tag + "=", args); 165 } 166 else 167 { 168 if (this.debugMode) 169 { 170 switch(this.logLevel) 171 { 172 default: 173 case 0: 174 break; 175 case 1: 176 case 2: 177 // console.log("-- " + dateString + " : " + tag + "=", args); 178 break; 179 } 180 } 181 } 182 } 183 catch (e) 184 { 185 console.log("classEZPMPFunction=", e); 186 } 187 } 188 189 isValidUrl = urlString=> 190 { 191 var urlPattern = new RegExp('^(https?:\\/\\/)?'+ // validate protocol 192 '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|'+ // validate domain name 193 '((\\d{1,3}\\.){3}\\d{1,3}))'+ // validate OR ip (v4) address 194 '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*'+ // validate port and path 195 '(\\?[;&a-z\\d%_.~+=-]*)?'+ // validate query string 196 '(\\#[-a-z\\d_]*)?$','i'); // validate fragment locator
197 return !!urlPattern.test(urlString); 198 } 199 200 201 202} 203const bizMatchingErrorHandle = (errorMessage) =>{ 204 let message; 205 switch (errorMessage) { 206 case 'BIZ001' : message = (lang == 'EN' ? 'An error occurred while applying for the meeting.' : '미í ì ë³´ê° ì¬ë°ë¥´ì§ ììµëë¤.' ); break; 207 case 'BIZ002' : message = (lang == 'EN' ? 'Cannot modify.' : 'ìì í ì ììµëë¤.' ); break; 208 case 'BIZ003' : message = (lang == 'EN' ? 'Only pending meetings can be modified.' : 'ë기 ìíì¸ ìë´ë§ ìì ê°ë¥í©ëë¤.' ); break; 209 case 'BIZ004' : message = (lang == 'EN' ? 'The number of modifications has been exceeded.' : 'ìì ê°ë¥ íì를 ëê²¼ìµëë¤.' ); break; 210 case 'BIZ005' : message = (lang == 'EN' ? 'The modification validity date has passed.' : 'ìì ì í¨ì¼ì´ ì§ë¬ìµëë¤.' ); break; 211 case 'BIZ006' : message = (lang == 'EN' ? 'An error occurred while modifying the meeting.' : '미í ìì ì¤ ì¤ë¥ê° ë°ìíìµëë¤.' ); break; 212 case 'BIZ007' : message = (lang == 'EN' ? 'Meeting time information has changed.' : '미í ìê° ì ë³´ê° ë³ëëììµëë¤.' ); break; 213 case 'BIZ008' : message = (lang == 'EN' ? 'The status of the meeting has changed.' : '미í ìíê° ë³ëëììµëë¤.' ); break; 214 case 'BIZ009' : message = (lang == 'EN' ? 'The final modifier cannot confirm the meeting.' : 'ìµì¢ ìì ìë 미í íì í ì ììµëë¤.' ); break; 215 case 'BIZ010' : message = (lang == 'EN' ? 'This meeting has already been declined.' : 'ì´ë¯¸ ê±°ì ë 미í ì ëë¤.' ); break; 216 case 'BIZ011' : message = (lang == 'EN' ? 'This meeting has already been canceled.' : 'ì´ë¯¸ ì·¨ìë 미í ì ëë¤.' ); break; 217 case 'BIZ012' : message = (lang == 'EN' ? 'This meeting has already been confirmed.' : 'ì´ë¯¸ íì ë 미í ì ëë¤.' ); break; 218 case 'BIZ013' : message = (lang == 'EN' ? 'The fixed effective date has passed.' : 'íì ì í¨ì¼ì´ ì§ë¬ìµëë¤.' ); break; 219 case 'BIZ014' : message = (lang == 'EN' ? 'A confirmed meeting exists at the same time.' : 'ëì¼í ìê°ì íì ë 미í ì´ ì¡´ì¬í©ëë¤.' ); break; 220 case 'BIZ015' : message = (lang == 'EN' ? 'An error occurred while confirming the meeting.' : '미í íì ì¤ ì¤ë¥ê° ë°ìíìµëë¤.' ); break; 221 case 'BIZ016' : message = (lang == 'EN' ? 'An error occurred while confirming the meeting.' : '미í íì ì¤ ìë¬ê° ë°ìíìµëë¤.' ); break; 222 case 'BIZ017' : message = (lang == 'EN' ? 'The account information is not valid.' : 'ê³ì ì ë³´ê° ì¬ë°ë¥´ì§ ììµëë¤.' ); break; 223 case 'BIZ018' : message = (lang == 'EN' ? 'An error occurred while canceling/declining the meeting.' : '미í ì·¨ì/ê±°ì ì¤ ì¤ë¥ê° ë°ìíìµëë¤.' ); break; 224 case 'BIZ019' : message = (lang == 'EN' ? 'The application account information is not valid.' : 'ì ì²ê³ì ì ë³´ê° ì¬ë°ë¥´ì§ ììµëë¤.' ); break; 225 case 'BIZ020' : message = (lang == 'EN' ? 'Meeting account information is not valid.' : '미í ê³ì ì ë³´ê° ì¬ë°ë¥´ì§ ììµëë¤.' ); break; 226 case 'BIZ021' : message = (lang == 'EN' ? 'The company information in the application account and the meeting account is the same.' : 'ì ì²ê³ì ê³¼ 미í ê³ì ì 기ì ì ë³´ê° ëì¼í©ëë¤.' ); break; 227 case 'BIZ022' : message = (lang == 'EN' ? 'Please select a meeting date again. It is already been confirmed.' : '미í ì¼ì를 ë¤ì ì íí´ì£¼ì¸ì. ì´ë¯¸ íì ëììµëë¤.' ); break; 228 case 'BIZ023' : message = (lang == 'EN' ? 'Please select a meeting date again. The date is not applicable.' : '미í ì¼ì를 ë¤ì ì íí´ì£¼ì¸ì. ì ì²í ì ìë ì¼ìì ëë¤.' ); break; 229 case 'BIZ024' : message = (lang == 'EN' ? 'An error occurred while applying for the meeting.' : '미í ì ì² ì¤ ì¤ë¥ê° ë°ìíìµëë¤.' ); break; 230 case 'BIZ025' : message = (lang == 'EN' ? 'í´ë¹ ìí ì½ëê°ì´ ì¡´ì¬íì§ ììµëë¤' : 'í´ë¹ ìí ì½ëê°ì´ ì¡´ì¬íì§ ììµëë¤' ); break; 231 case 'BIZ026' : message = (lang == 'EN' ? 'msgNo ê°ì´ ë¹ì´ìì' : 'msgNo ê°ì´ ë¹ì´ìì' ); break; 232 case 'BIZ027' : message = (lang == 'EN' ? 'ë±ë¡ ì¤í¨íìµëë¤' : 'ë±ë¡ ì¤í¨íìµëë¤' ); break; 233 case 'BIZ028' : message = (lang == 'EN' ? 'ìì ì¤í¨íìµëë¤.' : 'ìì ì¤í¨íìµëë¤' ); break; 234 case 'BIZ029' : message = (lang == 'EN' ? 'ìì ì¤í¨íìµëë¤.' : 'ìì ì¤í¨íìµëë¤.' ); break; 235 case 'BIZ030' : message = (lang == 'EN' ? 'ì í¨í 미í ì ë³´ê° ìëëë¤' : 'ì í¨í 미í ì ë³´ê° ìëëë¤' ); break; 236 case 'BIZ031' : message = (lang == 'EN' ? 'íì ë 미í ì´ ìëëë¤' : 'ì í¨í 미í ì ë³´ê° ìëëë¤' ); break; 237 case 'BIZ032' : message = (lang == 'EN' ? 'íì ë 미í ì´ ìëëë¤' : 'ì í¨í 미í ì ë³´ê° ìëëë¤' ); break; 238 case 'BIZ033' : message = (lang == 'EN' ? 'ZOOM 미í 룸 ìì±ì¤ ì¤ë¥ê° ë°ì íìµëë¤' : 'ZOOM 미í 룸 ìì±ì¤ ì¤ë¥ê° ë°ì íìµëë¤' ); break; 239 case 'BIZ034' : message = (lang == 'EN' ? 'ZOOM ê³ì ìì±ì¤ ì¤ë¥ê° ë°ì íìµëë¤' : 'ZOOM ê³ì ìì±ì¤ ì¤ë¥ê° ë°ì íìµëë¤' ); break; 240 case 'BIZ035' : message = (lang == 'EN' ? 'ì¬ì© ê°ë¥í ë°©ì´ ììµëë¤' : 'ì¬ì© ê°ë¥í ë°©ì´ ììµëë¤' ); break; 241 case 'BIZ036' : message = (lang == 'EN' ? 'zoom ì¸ì¦ ì ë³´ê° ì ì íì§ ììµëë¤.' : 'zoom ì¸ì¦ ì ë³´ê° ì ì íì§ ììµëë¤.' ); break; 242 case 'BIZ037' : message = (lang == 'EN' ? 'zoom ì¸ì¦ ì ë³´ê° ì¶©ë¶íì§ ììµëë¤.' : 'zoom ì¸ì¦ ì ë³´ê° ì¶©ë¶íì§ ììµëë¤.' ); break; 243 case 'BIZ038' : message = (lang == 'EN' ? 'ì´ë¯¸ 미í íë ì´ì¤ë¥¼ ê°ì§ê³ ìë 기ì ì ëë¤.' : 'ì´ë¯¸ 미í íë ì´ì¤ë¥¼ ê°ì§ê³ ìë 기ì ì ëë¤.' ); break; 244 case 'BIZ039' : message = (lang == 'EN' ? '미í íë ì´ì¤ ë±ë¡ì´ íìí 기ì ì ëë¤.' : '미í íë ì´ì¤ ë±ë¡ì´ íìí 기ì ì ëë¤.' ); break; 245 case 'BIZ040' : message = (lang == 'EN' ? 'í´ë¹ ì¤ì¼ì¤ì´ ì¡´ì¬íì§ ììµëë¤.' : 'í´ë¹ ì¤ì¼ì¤ì´ ì¡´ì¬íì§ ììµëë¤.' ); break; 246 case 'BIZ041' : message = (lang == 'EN' ? 'ë±ë¡ë 기ì ì ë³´ê° ììµëë¤.' : 'ë±ë¡ë 기ì ì ë³´ê° ììµëë¤.' ); break; 247 case 'BIZ042' : message = (lang == 'EN' ? 'ì´ë¯¸ ëì¼í ë§¤ì¹ ì ë³´ê° ì¡´ì¬í©ëë¤.' : 'ì´ë¯¸ ëì¼í ë§¤ì¹ ì ë³´ê° ì¡´ì¬í©ëë¤.' ); break; 248 case 'BIZ043' : message = (lang == 'EN' ? 'ì´ë¯¸ ì¤ì¼ì¤ì´ ë±ë¡ë 기ì ì´ ì¡´ì¬í©ëë¤.' : 'ì´ë¯¸ ì¤ì¼ì¤ì´ ë±ë¡ë 기ì ì´ ì¡´ì¬í©ëë¤.' ); break; 249 default: message = (lang == 'EN' ? 'error.' : 'ì¤ë¥ê° ë°ìíìµëë¤.' ); break; 250 } 251 return message; 252} 253 254 255getCallerName = function() 256{ 257 return arguments.callee.caller.name; 258} 259 260const clsEZPMP = new classEZPMPFunction(); 261clsEZPMP.errorImg = "/resources/images/noimage.png"; 262clsEZPMP.debugMode = true; 263clsEZPMP.logLevel = 2; 264 265
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.