How to use throwError method in testing-library-react-hooks

Best JavaScript code snippet using testing-library-react-hooks

XWB_IM_HERE_Timing.js

Source:XWB_IM_HERE_Timing.js Github

copy

Full Screen

...24 var rpcArgs = [rpcFormatter.buildLiteralParamString("-31^DVBA_^" + robertSSN + "^" + robertName + "^OSEHRA^111^11111^No phone")];25 var rpc = rpcFormatter.buildRpcString(rpcName, rpcArgs);26 // send the rpc and wait on the promise of the response27 return Clients.sendRpc(0, rpc);28 } else Clients.throwError('TCPConnect', response);29 })30 .then(function (response) {31 var signonSetupResponseArray = response.split(NEW_LINE);32 if (signonSetupResponseArray.length > 7 && signonSetupResponseArray[5] == 1) {33 console.log('XUS SIGNON SETUP OK, trying XWB CREATE CONTEXT DVBA CAPRI GUI');34 // build next rpc35 var rpcName = "XWB CREATE CONTEXT";36 var rpcArgs = [rpcFormatter.buildEncryptedParamString("DVBA CAPRI GUI")];37 var rpc = rpcFormatter.buildRpcString(rpcName, rpcArgs);38 // send the rpc and wait on the promise of the response39 return Clients.sendRpc(0, rpc);40 } else Clients.throwError('XUS SIGNON SETUP', response);41 })42 .then(function (response) {43 if (response === rpcFormatter.encapsulate('1')) {44 console.log('XWB CREATE CONTEXT OK, trying XWB GET VARIABLE VALUE');45 // build next rpc46 var rpcName = "XWB GET VARIABLE VALUE";47 var rpcArgs = [rpcFormatter.buildReferenceParamString("$O(^VA(200,\"SSN\",\"" + robertSSN + "\",0))")];48 var rpc = rpcFormatter.buildRpcString(rpcName, rpcArgs);49 // send the rpc and wait on the promise of the response50 return Clients.sendRpc(0, rpc);51 } else Clients.throwError('XWB CREATE CONTEXT', response);52 })53 .then(function (response) {54 if (rpcFormatter.stripMarkers(response) === robertIEN) {55 console.log('XWB GET VARIABLE VALUE OK, trying XWB CREATE CONTEXT OR CPRS GUI CHART');56 // build next rpc57 var rpcName = "XWB CREATE CONTEXT";58 var rpcArgs = [rpcFormatter.buildEncryptedParamString("OR CPRS GUI CHART")];59 var rpc = rpcFormatter.buildRpcString(rpcName, rpcArgs);60 // send the rpc and wait on the promise of the response61 return Clients.sendRpc(0, rpc);62 } else Clients.throwError('XWB GET VARIABLE VALUE', response);63 })64 .then(function (response) {65 if (response === rpcFormatter.encapsulate('1')) {66 console.log('XWB CREATE CONTEXT OK, running XWB IM HERE');67 // send the rpc and wait on the promise of the response68 startTime = new Date().getTime();69 return Clients.sendRpc(0, imHereRpc);70 } else Clients.throwError('XWB CREATE CONTEXT', response);71 })72 .then(function (response) {73 if (response === rpcFormatter.encapsulate('1')) {74 return Clients.sendRpc(0, imHereRpc);75 } else Clients.throwError('XWB IM HERE', response);76 })77 .then(function (response) {78 if (response === rpcFormatter.encapsulate('1')) {79 return Clients.sendRpc(0, imHereRpc);80 } else Clients.throwError('XWB IM HERE', response);81 })82 .then(function (response) {83 if (response === rpcFormatter.encapsulate('1')) {84 return Clients.sendRpc(0, imHereRpc);85 } else Clients.throwError('XWB IM HERE', response);86 })87 .then(function (response) {88 if (response === rpcFormatter.encapsulate('1')) {89 return Clients.sendRpc(0, imHereRpc);90 } else Clients.throwError('XWB IM HERE', response);91 })92 .then(function (response) {93 if (response === rpcFormatter.encapsulate('1')) {94 return Clients.sendRpc(0, imHereRpc);95 } else Clients.throwError('XWB IM HERE', response);96 })97 .then(function (response) {98 if (response === rpcFormatter.encapsulate('1')) {99 return Clients.sendRpc(0, imHereRpc);100 } else Clients.throwError('XWB IM HERE', response);101 })102 .then(function (response) {103 if (response === rpcFormatter.encapsulate('1')) {104 return Clients.sendRpc(0, imHereRpc);105 } else Clients.throwError('XWB IM HERE', response);106 })107 .then(function (response) {108 if (response === rpcFormatter.encapsulate('1')) {109 return Clients.sendRpc(0, imHereRpc);110 } else Clients.throwError('XWB IM HERE', response);111 })112 .then(function (response) {113 if (response === rpcFormatter.encapsulate('1')) {114 return Clients.sendRpc(0, imHereRpc);115 } else Clients.throwError('XWB IM HERE', response);116 })117 .then(function (response) {118 if (response === rpcFormatter.encapsulate('1')) {119 return Clients.sendRpc(0, imHereRpc);120 } else Clients.throwError('XWB IM HERE', response);121 })122 .then(function (response) {123 if (response === rpcFormatter.encapsulate('1')) {124 return Clients.sendRpc(0, imHereRpc);125 } else Clients.throwError('XWB IM HERE', response);126 })127 .then(function (response) {128 if (response === rpcFormatter.encapsulate('1')) {129 return Clients.sendRpc(0, imHereRpc);130 } else Clients.throwError('XWB IM HERE', response);131 })132 .then(function (response) {133 if (response === rpcFormatter.encapsulate('1')) {134 return Clients.sendRpc(0, imHereRpc);135 } else Clients.throwError('XWB IM HERE', response);136 })137 .then(function (response) {138 if (response === rpcFormatter.encapsulate('1')) {139 return Clients.sendRpc(0, imHereRpc);140 } else Clients.throwError('XWB IM HERE', response);141 })142 .then(function (response) {143 if (response === rpcFormatter.encapsulate('1')) {144 return Clients.sendRpc(0, imHereRpc);145 } else Clients.throwError('XWB IM HERE', response);146 })147 .then(function (response) {148 if (response === rpcFormatter.encapsulate('1')) {149 return Clients.sendRpc(0, imHereRpc);150 } else Clients.throwError('XWB IM HERE', response);151 })152 .then(function (response) {153 if (response === rpcFormatter.encapsulate('1')) {154 return Clients.sendRpc(0, imHereRpc);155 } else Clients.throwError('XWB IM HERE', response);156 })157 .then(function (response) {158 if (response === rpcFormatter.encapsulate('1')) {159 return Clients.sendRpc(0, imHereRpc);160 } else Clients.throwError('XWB IM HERE', response);161 })162 .then(function (response) {163 if (response === rpcFormatter.encapsulate('1')) {164 return Clients.sendRpc(0, imHereRpc);165 } else Clients.throwError('XWB IM HERE', response);166 })167 .then(function (response) {168 if (response === rpcFormatter.encapsulate('1')) {169 return Clients.sendRpc(0, imHereRpc);170 } else Clients.throwError('XWB IM HERE', response);171 })172 .then(function (response) {173 if (response === rpcFormatter.encapsulate('1')) {174 return Clients.sendRpc(0, imHereRpc);175 } else Clients.throwError('XWB IM HERE', response);176 })177 .then(function (response) {178 if (response === rpcFormatter.encapsulate('1')) {179 return Clients.sendRpc(0, imHereRpc);180 } else Clients.throwError('XWB IM HERE', response);181 })182 .then(function (response) {183 if (response === rpcFormatter.encapsulate('1')) {184 return Clients.sendRpc(0, imHereRpc);185 } else Clients.throwError('XWB IM HERE', response);186 })187 .then(function (response) {188 if (response === rpcFormatter.encapsulate('1')) {189 return Clients.sendRpc(0, imHereRpc);190 } else Clients.throwError('XWB IM HERE', response);191 })192 .then(function (response) {193 if (response === rpcFormatter.encapsulate('1')) {194 return Clients.sendRpc(0, imHereRpc);195 } else Clients.throwError('XWB IM HERE', response);196 })197 .then(function (response) {198 if (response === rpcFormatter.encapsulate('1')) {199 return Clients.sendRpc(0, imHereRpc);200 } else Clients.throwError('XWB IM HERE', response);201 })202 .then(function (response) {203 if (response === rpcFormatter.encapsulate('1')) {204 return Clients.sendRpc(0, imHereRpc);205 } else Clients.throwError('XWB IM HERE', response);206 })207 .then(function (response) {208 if (response === rpcFormatter.encapsulate('1')) {209 return Clients.sendRpc(0, imHereRpc);210 } else Clients.throwError('XWB IM HERE', response);211 })212 .then(function (response) {213 if (response === rpcFormatter.encapsulate('1')) {214 return Clients.sendRpc(0, imHereRpc);215 } else Clients.throwError('XWB IM HERE', response);216 })217 .then(function (response) {218 if (response === rpcFormatter.encapsulate('1')) {219 return Clients.sendRpc(0, imHereRpc);220 } else Clients.throwError('XWB IM HERE', response);221 })222 .then(function (response) {223 if (response === rpcFormatter.encapsulate('1')) {224 return Clients.sendRpc(0, imHereRpc);225 } else Clients.throwError('XWB IM HERE', response);226 })227 .then(function (response) {228 if (response === rpcFormatter.encapsulate('1')) {229 return Clients.sendRpc(0, imHereRpc);230 } else Clients.throwError('XWB IM HERE', response);231 })232 .then(function (response) {233 if (response === rpcFormatter.encapsulate('1')) {234 return Clients.sendRpc(0, imHereRpc);235 } else Clients.throwError('XWB IM HERE', response);236 })237 .then(function (response) {238 if (response === rpcFormatter.encapsulate('1')) {239 return Clients.sendRpc(0, imHereRpc);240 } else Clients.throwError('XWB IM HERE', response);241 })242 .then(function (response) {243 if (response === rpcFormatter.encapsulate('1')) {244 return Clients.sendRpc(0, imHereRpc);245 } else Clients.throwError('XWB IM HERE', response);246 })247 .then(function (response) {248 if (response === rpcFormatter.encapsulate('1')) {249 return Clients.sendRpc(0, imHereRpc);250 } else Clients.throwError('XWB IM HERE', response);251 })252 .then(function (response) {253 if (response === rpcFormatter.encapsulate('1')) {254 return Clients.sendRpc(0, imHereRpc);255 } else Clients.throwError('XWB IM HERE', response);256 })257 .then(function (response) {258 if (response === rpcFormatter.encapsulate('1')) {259 return Clients.sendRpc(0, imHereRpc);260 } else Clients.throwError('XWB IM HERE', response);261 })262 .then(function (response) {263 if (response === rpcFormatter.encapsulate('1')) {264 return Clients.sendRpc(0, imHereRpc);265 } else Clients.throwError('XWB IM HERE', response);266 })267 .then(function (response) {268 if (response === rpcFormatter.encapsulate('1')) {269 return Clients.sendRpc(0, imHereRpc);270 } else Clients.throwError('XWB IM HERE', response);271 })272 .then(function (response) {273 if (response === rpcFormatter.encapsulate('1')) {274 return Clients.sendRpc(0, imHereRpc);275 } else Clients.throwError('XWB IM HERE', response);276 })277 .then(function (response) {278 if (response === rpcFormatter.encapsulate('1')) {279 return Clients.sendRpc(0, imHereRpc);280 } else Clients.throwError('XWB IM HERE', response);281 })282 .then(function (response) {283 if (response === rpcFormatter.encapsulate('1')) {284 return Clients.sendRpc(0, imHereRpc);285 } else Clients.throwError('XWB IM HERE', response);286 })287 .then(function (response) {288 if (response === rpcFormatter.encapsulate('1')) {289 return Clients.sendRpc(0, imHereRpc);290 } else Clients.throwError('XWB IM HERE', response);291 })292 .then(function (response) {293 if (response === rpcFormatter.encapsulate('1')) {294 return Clients.sendRpc(0, imHereRpc);295 } else Clients.throwError('XWB IM HERE', response);296 })297 .then(function (response) {298 if (response === rpcFormatter.encapsulate('1')) {299 return Clients.sendRpc(0, imHereRpc);300 } else Clients.throwError('XWB IM HERE', response);301 })302 .then(function (response) {303 if (response === rpcFormatter.encapsulate('1')) {304 return Clients.sendRpc(0, imHereRpc);305 } else Clients.throwError('XWB IM HERE', response);306 })307 .then(function (response) {308 if (response === rpcFormatter.encapsulate('1')) {309 return Clients.sendRpc(0, imHereRpc);310 } else Clients.throwError('XWB IM HERE', response);311 })312 .then(function (response) {313 if (response === rpcFormatter.encapsulate('1')) {314 return Clients.sendRpc(0, imHereRpc);315 } else Clients.throwError('XWB IM HERE', response);316 })317 .then(function (response) {318 if (response === rpcFormatter.encapsulate('1')) {319 return Clients.sendRpc(0, imHereRpc);320 } else Clients.throwError('XWB IM HERE', response);321 })322 .then(function (response) {323 if (response === rpcFormatter.encapsulate('1')) {324 return Clients.sendRpc(0, imHereRpc);325 } else Clients.throwError('XWB IM HERE', response);326 })327 .then(function (response) {328 if (response === rpcFormatter.encapsulate('1')) {329 return Clients.sendRpc(0, imHereRpc);330 } else Clients.throwError('XWB IM HERE', response);331 })332 .then(function (response) {333 if (response === rpcFormatter.encapsulate('1')) {334 return Clients.sendRpc(0, imHereRpc);335 } else Clients.throwError('XWB IM HERE', response);336 })337 .then(function (response) {338 if (response === rpcFormatter.encapsulate('1')) {339 return Clients.sendRpc(0, imHereRpc);340 } else Clients.throwError('XWB IM HERE', response);341 })342 .then(function (response) {343 if (response === rpcFormatter.encapsulate('1')) {344 return Clients.sendRpc(0, imHereRpc);345 } else Clients.throwError('XWB IM HERE', response);346 })347 .then(function (response) {348 if (response === rpcFormatter.encapsulate('1')) {349 return Clients.sendRpc(0, imHereRpc);350 } else Clients.throwError('XWB IM HERE', response);351 })352 .then(function (response) {353 if (response === rpcFormatter.encapsulate('1')) {354 return Clients.sendRpc(0, imHereRpc);355 } else Clients.throwError('XWB IM HERE', response);356 })357 .then(function (response) {358 if (response === rpcFormatter.encapsulate('1')) {359 return Clients.sendRpc(0, imHereRpc);360 } else Clients.throwError('XWB IM HERE', response);361 })362 .then(function (response) {363 if (response === rpcFormatter.encapsulate('1')) {364 return Clients.sendRpc(0, imHereRpc);365 } else Clients.throwError('XWB IM HERE', response);366 })367 .then(function (response) {368 if (response === rpcFormatter.encapsulate('1')) {369 return Clients.sendRpc(0, imHereRpc);370 } else Clients.throwError('XWB IM HERE', response);371 })372 .then(function (response) {373 if (response === rpcFormatter.encapsulate('1')) {374 return Clients.sendRpc(0, imHereRpc);375 } else Clients.throwError('XWB IM HERE', response);376 })377 .then(function (response) {378 if (response === rpcFormatter.encapsulate('1')) {379 return Clients.sendRpc(0, imHereRpc);380 } else Clients.throwError('XWB IM HERE', response);381 })382 .then(function (response) {383 if (response === rpcFormatter.encapsulate('1')) {384 return Clients.sendRpc(0, imHereRpc);385 } else Clients.throwError('XWB IM HERE', response);386 })387 .then(function (response) {388 if (response === rpcFormatter.encapsulate('1')) {389 return Clients.sendRpc(0, imHereRpc);390 } else Clients.throwError('XWB IM HERE', response);391 })392 .then(function (response) {393 if (response === rpcFormatter.encapsulate('1')) {394 return Clients.sendRpc(0, imHereRpc);395 } else Clients.throwError('XWB IM HERE', response);396 })397 .then(function (response) {398 if (response === rpcFormatter.encapsulate('1')) {399 return Clients.sendRpc(0, imHereRpc);400 } else Clients.throwError('XWB IM HERE', response);401 })402 .then(function (response) {403 if (response === rpcFormatter.encapsulate('1')) {404 return Clients.sendRpc(0, imHereRpc);405 } else Clients.throwError('XWB IM HERE', response);406 })407 .then(function (response) {408 if (response === rpcFormatter.encapsulate('1')) {409 return Clients.sendRpc(0, imHereRpc);410 } else Clients.throwError('XWB IM HERE', response);411 })412 .then(function (response) {413 if (response === rpcFormatter.encapsulate('1')) {414 return Clients.sendRpc(0, imHereRpc);415 } else Clients.throwError('XWB IM HERE', response);416 })417 .then(function (response) {418 if (response === rpcFormatter.encapsulate('1')) {419 return Clients.sendRpc(0, imHereRpc);420 } else Clients.throwError('XWB IM HERE', response);421 })422 .then(function (response) {423 if (response === rpcFormatter.encapsulate('1')) {424 return Clients.sendRpc(0, imHereRpc);425 } else Clients.throwError('XWB IM HERE', response);426 })427 .then(function (response) {428 if (response === rpcFormatter.encapsulate('1')) {429 return Clients.sendRpc(0, imHereRpc);430 } else Clients.throwError('XWB IM HERE', response);431 })432 .then(function (response) {433 if (response === rpcFormatter.encapsulate('1')) {434 return Clients.sendRpc(0, imHereRpc);435 } else Clients.throwError('XWB IM HERE', response);436 })437 .then(function (response) {438 if (response === rpcFormatter.encapsulate('1')) {439 return Clients.sendRpc(0, imHereRpc);440 } else Clients.throwError('XWB IM HERE', response);441 })442 .then(function (response) {443 if (response === rpcFormatter.encapsulate('1')) {444 return Clients.sendRpc(0, imHereRpc);445 } else Clients.throwError('XWB IM HERE', response);446 })447 .then(function (response) {448 if (response === rpcFormatter.encapsulate('1')) {449 return Clients.sendRpc(0, imHereRpc);450 } else Clients.throwError('XWB IM HERE', response);451 })452 .then(function (response) {453 if (response === rpcFormatter.encapsulate('1')) {454 return Clients.sendRpc(0, imHereRpc);455 } else Clients.throwError('XWB IM HERE', response);456 })457 .then(function (response) {458 if (response === rpcFormatter.encapsulate('1')) {459 return Clients.sendRpc(0, imHereRpc);460 } else Clients.throwError('XWB IM HERE', response);461 })462 .then(function (response) {463 if (response === rpcFormatter.encapsulate('1')) {464 return Clients.sendRpc(0, imHereRpc);465 } else Clients.throwError('XWB IM HERE', response);466 })467 .then(function (response) {468 if (response === rpcFormatter.encapsulate('1')) {469 return Clients.sendRpc(0, imHereRpc);470 } else Clients.throwError('XWB IM HERE', response);471 })472 .then(function (response) {473 if (response === rpcFormatter.encapsulate('1')) {474 return Clients.sendRpc(0, imHereRpc);475 } else Clients.throwError('XWB IM HERE', response);476 })477 .then(function (response) {478 if (response === rpcFormatter.encapsulate('1')) {479 return Clients.sendRpc(0, imHereRpc);480 } else Clients.throwError('XWB IM HERE', response);481 })482 .then(function (response) {483 if (response === rpcFormatter.encapsulate('1')) {484 return Clients.sendRpc(0, imHereRpc);485 } else Clients.throwError('XWB IM HERE', response);486 })487 .then(function (response) {488 if (response === rpcFormatter.encapsulate('1')) {489 return Clients.sendRpc(0, imHereRpc);490 } else Clients.throwError('XWB IM HERE', response);491 })492 .then(function (response) {493 if (response === rpcFormatter.encapsulate('1')) {494 return Clients.sendRpc(0, imHereRpc);495 } else Clients.throwError('XWB IM HERE', response);496 })497 .then(function (response) {498 if (response === rpcFormatter.encapsulate('1')) {499 return Clients.sendRpc(0, imHereRpc);500 } else Clients.throwError('XWB IM HERE', response);501 })502 .then(function (response) {503 if (response === rpcFormatter.encapsulate('1')) {504 return Clients.sendRpc(0, imHereRpc);505 } else Clients.throwError('XWB IM HERE', response);506 })507 .then(function (response) {508 if (response === rpcFormatter.encapsulate('1')) {509 return Clients.sendRpc(0, imHereRpc);510 } else Clients.throwError('XWB IM HERE', response);511 })512 .then(function (response) {513 if (response === rpcFormatter.encapsulate('1')) {514 return Clients.sendRpc(0, imHereRpc);515 } else Clients.throwError('XWB IM HERE', response);516 })517 .then(function (response) {518 if (response === rpcFormatter.encapsulate('1')) {519 return Clients.sendRpc(0, imHereRpc);520 } else Clients.throwError('XWB IM HERE', response);521 })522 .then(function (response) {523 if (response === rpcFormatter.encapsulate('1')) {524 return Clients.sendRpc(0, imHereRpc);525 } else Clients.throwError('XWB IM HERE', response);526 })527 .then(function (response) {528 if (response === rpcFormatter.encapsulate('1')) {529 return Clients.sendRpc(0, imHereRpc);530 } else Clients.throwError('XWB IM HERE', response);531 })532 .then(function (response) {533 if (response === rpcFormatter.encapsulate('1')) {534 return Clients.sendRpc(0, imHereRpc);535 } else Clients.throwError('XWB IM HERE', response);536 })537 .then(function (response) {538 if (response === rpcFormatter.encapsulate('1')) {539 return Clients.sendRpc(0, imHereRpc);540 } else Clients.throwError('XWB IM HERE', response);541 })542 .then(function (response) {543 if (response === rpcFormatter.encapsulate('1')) {544 return Clients.sendRpc(0, imHereRpc);545 } else Clients.throwError('XWB IM HERE', response);546 })547 .then(function (response) {548 if (response === rpcFormatter.encapsulate('1')) {549 return Clients.sendRpc(0, imHereRpc);550 } else Clients.throwError('XWB IM HERE', response);551 })552 .then(function (response) {553 if (response === rpcFormatter.encapsulate('1')) {554 return Clients.sendRpc(0, imHereRpc);555 } else Clients.throwError('XWB IM HERE', response);556 })557 .then(function (response) {558 if (response === rpcFormatter.encapsulate('1')) {559 return Clients.sendRpc(0, imHereRpc);560 } else Clients.throwError('XWB IM HERE', response);561 })562 .then(function (response) {563 if (response === rpcFormatter.encapsulate('1')) {564 return Clients.sendRpc(0, imHereRpc);565 } else Clients.throwError('XWB IM HERE', response);566 })567 .then(function (response) {568 if (response === rpcFormatter.encapsulate('1')) {569 return Clients.sendRpc(0, imHereRpc);570 } else Clients.throwError('XWB IM HERE', response);571 })572 .then(function (response) {573 if (response === rpcFormatter.encapsulate('1')) {574 return Clients.sendRpc(0, imHereRpc);575 } else Clients.throwError('XWB IM HERE', response);576 })577 .then(function (response) {578 if (response === rpcFormatter.encapsulate('1')) {579 return Clients.sendRpc(0, imHereRpc);580 } else Clients.throwError('XWB IM HERE', response);581 })582 .then(function (response) {583 if (response === rpcFormatter.encapsulate('1')) {584 return Clients.sendRpc(0, imHereRpc);585 } else Clients.throwError('XWB IM HERE', response);586 })587 .then(function (response) {588 if (response === rpcFormatter.encapsulate('1')) {589 return Clients.sendRpc(0, imHereRpc);590 } else Clients.throwError('XWB IM HERE', response);591 })592 .then(function (response) {593 if (response === rpcFormatter.encapsulate('1')) {594 return Clients.sendRpc(0, imHereRpc);595 } else Clients.throwError('XWB IM HERE', response);596 })597 .then(function (response) {598 if (response === rpcFormatter.encapsulate('1')) {599 return Clients.sendRpc(0, imHereRpc);600 } else Clients.throwError('XWB IM HERE', response);601 })602 .then(function (response) {603 if (response === rpcFormatter.encapsulate('1')) {604 return Clients.sendRpc(0, imHereRpc);605 } else Clients.throwError('XWB IM HERE', response);606 })607 .then(function (response) {608 if (response === rpcFormatter.encapsulate('1')) {609 return Clients.sendRpc(0, imHereRpc);610 } else Clients.throwError('XWB IM HERE', response);611 })612 .then(function (response) {613 if (response === rpcFormatter.encapsulate('1')) {614 return Clients.sendRpc(0, imHereRpc);615 } else Clients.throwError('XWB IM HERE', response);616 })617 .then(function (response) {618 if (response === rpcFormatter.encapsulate('1')) {619 return Clients.sendRpc(0, imHereRpc);620 } else Clients.throwError('XWB IM HERE', response);621 })622 .then(function (response) {623 if (response === rpcFormatter.encapsulate('1')) {624 return Clients.sendRpc(0, imHereRpc);625 } else Clients.throwError('XWB IM HERE', response);626 })627 .then(function (response) {628 if (response === rpcFormatter.encapsulate('1')) {629 return Clients.sendRpc(0, imHereRpc);630 } else Clients.throwError('XWB IM HERE', response);631 })632 .then(function (response) {633 if (response === rpcFormatter.encapsulate('1')) {634 return Clients.sendRpc(0, imHereRpc);635 } else Clients.throwError('XWB IM HERE', response);636 })637 .then(function (response) {638 if (response === rpcFormatter.encapsulate('1')) {639 return Clients.sendRpc(0, imHereRpc);640 } else Clients.throwError('XWB IM HERE', response);641 })642 .then(function (response) {643 if (response === rpcFormatter.encapsulate('1')) {644 return Clients.sendRpc(0, imHereRpc);645 } else Clients.throwError('XWB IM HERE', response);646 })647 .then(function (response) {648 if (response === rpcFormatter.encapsulate('1')) {649 return Clients.sendRpc(0, imHereRpc);650 } else Clients.throwError('XWB IM HERE', response);651 })652 .then(function (response) {653 if (response === rpcFormatter.encapsulate('1')) {654 return Clients.sendRpc(0, imHereRpc);655 } else Clients.throwError('XWB IM HERE', response);656 })657 .then(function (response) {658 if (response === rpcFormatter.encapsulate('1')) {659 return Clients.sendRpc(0, imHereRpc);660 } else Clients.throwError('XWB IM HERE', response);661 })662 .then(function (response) {663 if (response === rpcFormatter.encapsulate('1')) {664 return Clients.sendRpc(0, imHereRpc);665 } else Clients.throwError('XWB IM HERE', response);666 })667 .then(function (response) {668 if (response === rpcFormatter.encapsulate('1')) {669 return Clients.sendRpc(0, imHereRpc);670 } else Clients.throwError('XWB IM HERE', response);671 })672 .then(function (response) {673 if (response === rpcFormatter.encapsulate('1')) {674 return Clients.sendRpc(0, imHereRpc);675 } else Clients.throwError('XWB IM HERE', response);676 })677 .then(function (response) {678 if (response === rpcFormatter.encapsulate('1')) {679 return Clients.sendRpc(0, imHereRpc);680 } else Clients.throwError('XWB IM HERE', response);681 })682 .then(function (response) {683 if (response === rpcFormatter.encapsulate('1')) {684 return Clients.sendRpc(0, imHereRpc);685 } else Clients.throwError('XWB IM HERE', response);686 })687 .then(function (response) {688 if (response === rpcFormatter.encapsulate('1')) {689 return Clients.sendRpc(0, imHereRpc);690 } else Clients.throwError('XWB IM HERE', response);691 })692 .then(function (response) {693 if (response === rpcFormatter.encapsulate('1')) {694 return Clients.sendRpc(0, imHereRpc);695 } else Clients.throwError('XWB IM HERE', response);696 })697 .then(function (response) {698 if (response === rpcFormatter.encapsulate('1')) {699 return Clients.sendRpc(0, imHereRpc);700 } else Clients.throwError('XWB IM HERE', response);701 })702 .then(function (response) {703 if (response === rpcFormatter.encapsulate('1')) {704 return Clients.sendRpc(0, imHereRpc);705 } else Clients.throwError('XWB IM HERE', response);706 })707 .then(function (response) {708 if (response === rpcFormatter.encapsulate('1')) {709 return Clients.sendRpc(0, imHereRpc);710 } else Clients.throwError('XWB IM HERE', response);711 })712 .then(function (response) {713 if (response === rpcFormatter.encapsulate('1')) {714 return Clients.sendRpc(0, imHereRpc);715 } else Clients.throwError('XWB IM HERE', response);716 })717 .then(function (response) {718 if (response === rpcFormatter.encapsulate('1')) {719 return Clients.sendRpc(0, imHereRpc);720 } else Clients.throwError('XWB IM HERE', response);721 })722 .then(function (response) {723 if (response === rpcFormatter.encapsulate('1')) {724 return Clients.sendRpc(0, imHereRpc);725 } else Clients.throwError('XWB IM HERE', response);726 })727 .then(function (response) {728 if (response === rpcFormatter.encapsulate('1')) {729 return Clients.sendRpc(0, imHereRpc);730 } else Clients.throwError('XWB IM HERE', response);731 })732 .then(function (response) {733 if (response === rpcFormatter.encapsulate('1')) {734 return Clients.sendRpc(0, imHereRpc);735 } else Clients.throwError('XWB IM HERE', response);736 })737 .then(function (response) {738 if (response === rpcFormatter.encapsulate('1')) {739 return Clients.sendRpc(0, imHereRpc);740 } else Clients.throwError('XWB IM HERE', response);741 })742 .then(function (response) {743 if (response === rpcFormatter.encapsulate('1')) {744 return Clients.sendRpc(0, imHereRpc);745 } else Clients.throwError('XWB IM HERE', response);746 })747 .then(function (response) {748 if (response === rpcFormatter.encapsulate('1')) {749 return Clients.sendRpc(0, imHereRpc);750 } else Clients.throwError('XWB IM HERE', response);751 })752 .then(function (response) {753 if (response === rpcFormatter.encapsulate('1')) {754 return Clients.sendRpc(0, imHereRpc);755 } else Clients.throwError('XWB IM HERE', response);756 })757 .then(function (response) {758 if (response === rpcFormatter.encapsulate('1')) {759 return Clients.sendRpc(0, imHereRpc);760 } else Clients.throwError('XWB IM HERE', response);761 })762 .then(function (response) {763 if (response === rpcFormatter.encapsulate('1')) {764 return Clients.sendRpc(0, imHereRpc);765 } else Clients.throwError('XWB IM HERE', response);766 })767 .then(function (response) {768 if (response === rpcFormatter.encapsulate('1')) {769 return Clients.sendRpc(0, imHereRpc);770 } else Clients.throwError('XWB IM HERE', response);771 })772 .then(function (response) {773 if (response === rpcFormatter.encapsulate('1')) {774 return Clients.sendRpc(0, imHereRpc);775 } else Clients.throwError('XWB IM HERE', response);776 })777 .then(function (response) {778 if (response === rpcFormatter.encapsulate('1')) {779 return Clients.sendRpc(0, imHereRpc);780 } else Clients.throwError('XWB IM HERE', response);781 })782 .then(function (response) {783 if (response === rpcFormatter.encapsulate('1')) {784 return Clients.sendRpc(0, imHereRpc);785 } else Clients.throwError('XWB IM HERE', response);786 })787 .then(function (response) {788 if (response === rpcFormatter.encapsulate('1')) {789 return Clients.sendRpc(0, imHereRpc);790 } else Clients.throwError('XWB IM HERE', response);791 })792 .then(function (response) {793 if (response === rpcFormatter.encapsulate('1')) {794 return Clients.sendRpc(0, imHereRpc);795 } else Clients.throwError('XWB IM HERE', response);796 })797 .then(function (response) {798 if (response === rpcFormatter.encapsulate('1')) {799 return Clients.sendRpc(0, imHereRpc);800 } else Clients.throwError('XWB IM HERE', response);801 })802 .then(function (response) {803 if (response === rpcFormatter.encapsulate('1')) {804 return Clients.sendRpc(0, imHereRpc);805 } else Clients.throwError('XWB IM HERE', response);806 })807 .then(function (response) {808 if (response === rpcFormatter.encapsulate('1')) {809 return Clients.sendRpc(0, imHereRpc);810 } else Clients.throwError('XWB IM HERE', response);811 })812 .then(function (response) {813 if (response === rpcFormatter.encapsulate('1')) {814 return Clients.sendRpc(0, imHereRpc);815 } else Clients.throwError('XWB IM HERE', response);816 })817 .then(function (response) {818 if (response === rpcFormatter.encapsulate('1')) {819 return Clients.sendRpc(0, imHereRpc);820 } else Clients.throwError('XWB IM HERE', response);821 })822 .then(function (response) {823 if (response === rpcFormatter.encapsulate('1')) {824 return Clients.sendRpc(0, imHereRpc);825 } else Clients.throwError('XWB IM HERE', response);826 })827 .then(function (response) {828 if (response === rpcFormatter.encapsulate('1')) {829 return Clients.sendRpc(0, imHereRpc);830 } else Clients.throwError('XWB IM HERE', response);831 })832 .then(function (response) {833 if (response === rpcFormatter.encapsulate('1')) {834 return Clients.sendRpc(0, imHereRpc);835 } else Clients.throwError('XWB IM HERE', response);836 })837 .then(function (response) {838 if (response === rpcFormatter.encapsulate('1')) {839 return Clients.sendRpc(0, imHereRpc);840 } else Clients.throwError('XWB IM HERE', response);841 })842 .then(function (response) {843 if (response === rpcFormatter.encapsulate('1')) {844 return Clients.sendRpc(0, imHereRpc);845 } else Clients.throwError('XWB IM HERE', response);846 })847 .then(function (response) {848 if (response === rpcFormatter.encapsulate('1')) {849 return Clients.sendRpc(0, imHereRpc);850 } else Clients.throwError('XWB IM HERE', response);851 })852 .then(function (response) {853 if (response === rpcFormatter.encapsulate('1')) {854 return Clients.sendRpc(0, imHereRpc);855 } else Clients.throwError('XWB IM HERE', response);856 })857 .then(function (response) {858 if (response === rpcFormatter.encapsulate('1')) {859 return Clients.sendRpc(0, imHereRpc);860 } else Clients.throwError('XWB IM HERE', response);861 })862 .then(function (response) {863 if (response === rpcFormatter.encapsulate('1')) {864 return Clients.sendRpc(0, imHereRpc);865 } else Clients.throwError('XWB IM HERE', response);866 })867 .then(function (response) {868 if (response === rpcFormatter.encapsulate('1')) {869 return Clients.sendRpc(0, imHereRpc);870 } else Clients.throwError('XWB IM HERE', response);871 })872 .then(function (response) {873 if (response === rpcFormatter.encapsulate('1')) {874 return Clients.sendRpc(0, imHereRpc);875 } else Clients.throwError('XWB IM HERE', response);876 })877 .then(function (response) {878 if (response === rpcFormatter.encapsulate('1')) {879 return Clients.sendRpc(0, imHereRpc);880 } else Clients.throwError('XWB IM HERE', response);881 })882 .then(function (response) {883 if (response === rpcFormatter.encapsulate('1')) {884 return Clients.sendRpc(0, imHereRpc);885 } else Clients.throwError('XWB IM HERE', response);886 })887 .then(function (response) {888 if (response === rpcFormatter.encapsulate('1')) {889 return Clients.sendRpc(0, imHereRpc);890 } else Clients.throwError('XWB IM HERE', response);891 })892 .then(function (response) {893 if (response === rpcFormatter.encapsulate('1')) {894 return Clients.sendRpc(0, imHereRpc);895 } else Clients.throwError('XWB IM HERE', response);896 })897 .then(function (response) {898 if (response === rpcFormatter.encapsulate('1')) {899 return Clients.sendRpc(0, imHereRpc);900 } else Clients.throwError('XWB IM HERE', response);901 })902 .then(function (response) {903 if (response === rpcFormatter.encapsulate('1')) {904 return Clients.sendRpc(0, imHereRpc);905 } else Clients.throwError('XWB IM HERE', response);906 })907 .then(function (response) {908 if (response === rpcFormatter.encapsulate('1')) {909 return Clients.sendRpc(0, imHereRpc);910 } else Clients.throwError('XWB IM HERE', response);911 })912 .then(function (response) {913 if (response === rpcFormatter.encapsulate('1')) {914 return Clients.sendRpc(0, imHereRpc);915 } else Clients.throwError('XWB IM HERE', response);916 })917 .then(function (response) {918 if (response === rpcFormatter.encapsulate('1')) {919 return Clients.sendRpc(0, imHereRpc);920 } else Clients.throwError('XWB IM HERE', response);921 })922 .then(function (response) {923 if (response === rpcFormatter.encapsulate('1')) {924 return Clients.sendRpc(0, imHereRpc);925 } else Clients.throwError('XWB IM HERE', response);926 })927 .then(function (response) {928 if (response === rpcFormatter.encapsulate('1')) {929 return Clients.sendRpc(0, imHereRpc);930 } else Clients.throwError('XWB IM HERE', response);931 })932 .then(function (response) {933 if (response === rpcFormatter.encapsulate('1')) {934 return Clients.sendRpc(0, imHereRpc);935 } else Clients.throwError('XWB IM HERE', response);936 })937 .then(function (response) {938 if (response === rpcFormatter.encapsulate('1')) {939 return Clients.sendRpc(0, imHereRpc);940 } else Clients.throwError('XWB IM HERE', response);941 })942 .then(function (response) {943 if (response === rpcFormatter.encapsulate('1')) {944 return Clients.sendRpc(0, imHereRpc);945 } else Clients.throwError('XWB IM HERE', response);946 })947 .then(function (response) {948 if (response === rpcFormatter.encapsulate('1')) {949 return Clients.sendRpc(0, imHereRpc);950 } else Clients.throwError('XWB IM HERE', response);951 })952 .then(function (response) {953 if (response === rpcFormatter.encapsulate('1')) {954 return Clients.sendRpc(0, imHereRpc);955 } else Clients.throwError('XWB IM HERE', response);956 })957 .then(function (response) {958 if (response === rpcFormatter.encapsulate('1')) {959 return Clients.sendRpc(0, imHereRpc);960 } else Clients.throwError('XWB IM HERE', response);961 })962 .then(function (response) {963 if (response === rpcFormatter.encapsulate('1')) {964 return Clients.sendRpc(0, imHereRpc);965 } else Clients.throwError('XWB IM HERE', response);966 })967 .then(function (response) {968 if (response === rpcFormatter.encapsulate('1')) {969 return Clients.sendRpc(0, imHereRpc);970 } else Clients.throwError('XWB IM HERE', response);971 })972 .then(function (response) {973 if (response === rpcFormatter.encapsulate('1')) {974 return Clients.sendRpc(0, imHereRpc);975 } else Clients.throwError('XWB IM HERE', response);976 })977 .then(function (response) {978 if (response === rpcFormatter.encapsulate('1')) {979 return Clients.sendRpc(0, imHereRpc);980 } else Clients.throwError('XWB IM HERE', response);981 })982 .then(function (response) {983 if (response === rpcFormatter.encapsulate('1')) {984 return Clients.sendRpc(0, imHereRpc);985 } else Clients.throwError('XWB IM HERE', response);986 })987 .then(function (response) {988 if (response === rpcFormatter.encapsulate('1')) {989 return Clients.sendRpc(0, imHereRpc);990 } else Clients.throwError('XWB IM HERE', response);991 })992 .then(function (response) {993 if (response === rpcFormatter.encapsulate('1')) {994 return Clients.sendRpc(0, imHereRpc);995 } else Clients.throwError('XWB IM HERE', response);996 })997 .then(function (response) {998 if (response === rpcFormatter.encapsulate('1')) {999 return Clients.sendRpc(0, imHereRpc);1000 } else Clients.throwError('XWB IM HERE', response);1001 })1002 .then(function (response) {1003 if (response === rpcFormatter.encapsulate('1')) {1004 return Clients.sendRpc(0, imHereRpc);1005 } else Clients.throwError('XWB IM HERE', response);1006 })1007 .then(function (response) {1008 if (response === rpcFormatter.encapsulate('1')) {1009 return Clients.sendRpc(0, imHereRpc);1010 } else Clients.throwError('XWB IM HERE', response);1011 })1012 .then(function (response) {1013 if (response === rpcFormatter.encapsulate('1')) {1014 return Clients.sendRpc(0, imHereRpc);1015 } else Clients.throwError('XWB IM HERE', response);1016 })1017 .then(function (response) {1018 if (response === rpcFormatter.encapsulate('1')) {1019 return Clients.sendRpc(0, imHereRpc);1020 } else Clients.throwError('XWB IM HERE', response);1021 })1022 .then(function (response) {1023 if (response === rpcFormatter.encapsulate('1')) {1024 return Clients.sendRpc(0, imHereRpc);1025 } else Clients.throwError('XWB IM HERE', response);1026 })1027 .then(function (response) {1028 if (response === rpcFormatter.encapsulate('1')) {1029 return Clients.sendRpc(0, imHereRpc);1030 } else Clients.throwError('XWB IM HERE', response);1031 })1032 .then(function (response) {1033 if (response === rpcFormatter.encapsulate('1')) {1034 return Clients.sendRpc(0, imHereRpc);1035 } else Clients.throwError('XWB IM HERE', response);1036 })1037 .then(function (response) {1038 if (response === rpcFormatter.encapsulate('1')) {1039 return Clients.sendRpc(0, imHereRpc);1040 } else Clients.throwError('XWB IM HERE', response);1041 })1042 .then(function (response) {1043 if (response === rpcFormatter.encapsulate('1')) {1044 return Clients.sendRpc(0, imHereRpc);1045 } else Clients.throwError('XWB IM HERE', response);1046 })1047 .then(function (response) {1048 if (response === rpcFormatter.encapsulate('1')) {1049 return Clients.sendRpc(0, imHereRpc);1050 } else Clients.throwError('XWB IM HERE', response);1051 })1052 .then(function (response) {1053 if (response === rpcFormatter.encapsulate('1')) {1054 return Clients.sendRpc(0, imHereRpc);1055 } else Clients.throwError('XWB IM HERE', response);1056 })1057 .then(function (response) {1058 if (response === rpcFormatter.encapsulate('1')) {1059 return Clients.sendRpc(0, imHereRpc);1060 } else Clients.throwError('XWB IM HERE', response);1061 })1062 .then(function (response) {1063 if (response === rpcFormatter.encapsulate('1')) {1064 return Clients.sendRpc(0, imHereRpc);1065 } else Clients.throwError('XWB IM HERE', response);1066 })1067 .then(function (response) {1068 if (response === rpcFormatter.encapsulate('1')) {1069 return Clients.sendRpc(0, imHereRpc);1070 } else Clients.throwError('XWB IM HERE', response);1071 })1072 .then(function (response) {1073 if (response === rpcFormatter.encapsulate('1')) {1074 return Clients.sendRpc(0, imHereRpc);1075 } else Clients.throwError('XWB IM HERE', response);1076 })1077 .then(function (response) {1078 if (response === rpcFormatter.encapsulate('1')) {1079 return Clients.sendRpc(0, imHereRpc);1080 } else Clients.throwError('XWB IM HERE', response);1081 })1082 .then(function (response) {1083 if (response === rpcFormatter.encapsulate('1')) {1084 return Clients.sendRpc(0, imHereRpc);1085 } else Clients.throwError('XWB IM HERE', response);1086 })1087 .then(function (response) {1088 if (response === rpcFormatter.encapsulate('1')) {1089 return Clients.sendRpc(0, imHereRpc);1090 } else Clients.throwError('XWB IM HERE', response);1091 })1092 .then(function (response) {1093 if (response === rpcFormatter.encapsulate('1')) {1094 return Clients.sendRpc(0, imHereRpc);1095 } else Clients.throwError('XWB IM HERE', response);1096 })1097 .then(function (response) {1098 if (response === rpcFormatter.encapsulate('1')) {1099 return Clients.sendRpc(0, imHereRpc);1100 } else Clients.throwError('XWB IM HERE', response);1101 })1102 .then(function (response) {1103 if (response === rpcFormatter.encapsulate('1')) {1104 return Clients.sendRpc(0, imHereRpc);1105 } else Clients.throwError('XWB IM HERE', response);1106 })1107 .then(function (response) {1108 if (response === rpcFormatter.encapsulate('1')) {1109 return Clients.sendRpc(0, imHereRpc);1110 } else Clients.throwError('XWB IM HERE', response);1111 })1112 .then(function (response) {1113 if (response === rpcFormatter.encapsulate('1')) {1114 return Clients.sendRpc(0, imHereRpc);1115 } else Clients.throwError('XWB IM HERE', response);1116 })1117 .then(function (response) {1118 if (response === rpcFormatter.encapsulate('1')) {1119 return Clients.sendRpc(0, imHereRpc);1120 } else Clients.throwError('XWB IM HERE', response);1121 })1122 .then(function (response) {1123 if (response === rpcFormatter.encapsulate('1')) {1124 return Clients.sendRpc(0, imHereRpc);1125 } else Clients.throwError('XWB IM HERE', response);1126 })1127 .then(function (response) {1128 if (response === rpcFormatter.encapsulate('1')) {1129 return Clients.sendRpc(0, imHereRpc);1130 } else Clients.throwError('XWB IM HERE', response);1131 })1132 .then(function (response) {1133 if (response === rpcFormatter.encapsulate('1')) {1134 return Clients.sendRpc(0, imHereRpc);1135 } else Clients.throwError('XWB IM HERE', response);1136 })1137 .then(function (response) {1138 if (response === rpcFormatter.encapsulate('1')) {1139 return Clients.sendRpc(0, imHereRpc);1140 } else Clients.throwError('XWB IM HERE', response);1141 })1142 .then(function (response) {1143 if (response === rpcFormatter.encapsulate('1')) {1144 return Clients.sendRpc(0, imHereRpc);1145 } else Clients.throwError('XWB IM HERE', response);1146 })1147 .then(function (response) {1148 if (response === rpcFormatter.encapsulate('1')) {1149 return Clients.sendRpc(0, imHereRpc);1150 } else Clients.throwError('XWB IM HERE', response);1151 })1152 .then(function (response) {1153 if (response === rpcFormatter.encapsulate('1')) {1154 return Clients.sendRpc(0, imHereRpc);1155 } else Clients.throwError('XWB IM HERE', response);1156 })1157 .then(function (response) {1158 if (response === rpcFormatter.encapsulate('1')) {1159 return Clients.sendRpc(0, imHereRpc);1160 } else Clients.throwError('XWB IM HERE', response);1161 })1162 .then(function (response) {1163 if (response === rpcFormatter.encapsulate('1')) {1164 return Clients.sendRpc(0, imHereRpc);1165 } else Clients.throwError('XWB IM HERE', response);1166 })1167 .then(function (response) {1168 if (response === rpcFormatter.encapsulate('1')) {1169 return Clients.sendRpc(0, imHereRpc);1170 } else Clients.throwError('XWB IM HERE', response);1171 })1172 .then(function (response) {1173 if (response === rpcFormatter.encapsulate('1')) {1174 return Clients.sendRpc(0, imHereRpc);1175 } else Clients.throwError('XWB IM HERE', response);1176 })1177 .then(function (response) {1178 if (response === rpcFormatter.encapsulate('1')) {1179 return Clients.sendRpc(0, imHereRpc);1180 } else Clients.throwError('XWB IM HERE', response);1181 })1182 .then(function (response) {1183 if (response === rpcFormatter.encapsulate('1')) {1184 return Clients.sendRpc(0, imHereRpc);1185 } else Clients.throwError('XWB IM HERE', response);1186 })1187 .then(function (response) {1188 if (response === rpcFormatter.encapsulate('1')) {1189 return Clients.sendRpc(0, imHereRpc);1190 } else Clients.throwError('XWB IM HERE', response);1191 })1192 .then(function (response) {1193 if (response === rpcFormatter.encapsulate('1')) {1194 return Clients.sendRpc(0, imHereRpc);1195 } else Clients.throwError('XWB IM HERE', response);1196 })1197 .then(function (response) {1198 if (response === rpcFormatter.encapsulate('1')) {1199 return Clients.sendRpc(0, imHereRpc);1200 } else Clients.throwError('XWB IM HERE', response);1201 })1202 .then(function (response) {1203 if (response === rpcFormatter.encapsulate('1')) {1204 return Clients.sendRpc(0, imHereRpc);1205 } else Clients.throwError('XWB IM HERE', response);1206 })1207 .then(function (response) {1208 if (response === rpcFormatter.encapsulate('1')) {1209 return Clients.sendRpc(0, imHereRpc);1210 } else Clients.throwError('XWB IM HERE', response);1211 })1212 .then(function (response) {1213 if (response === rpcFormatter.encapsulate('1')) {1214 return Clients.sendRpc(0, imHereRpc);1215 } else Clients.throwError('XWB IM HERE', response);1216 })1217 .then(function (response) {1218 if (response === rpcFormatter.encapsulate('1')) {1219 return Clients.sendRpc(0, imHereRpc);1220 } else Clients.throwError('XWB IM HERE', response);1221 })1222 .then(function (response) {1223 if (response === rpcFormatter.encapsulate('1')) {1224 return Clients.sendRpc(0, imHereRpc);1225 } else Clients.throwError('XWB IM HERE', response);1226 })1227 .then(function (response) {1228 if (response === rpcFormatter.encapsulate('1')) {1229 return Clients.sendRpc(0, imHereRpc);1230 } else Clients.throwError('XWB IM HERE', response);1231 })1232 .then(function (response) {1233 if (response === rpcFormatter.encapsulate('1')) {1234 return Clients.sendRpc(0, imHereRpc);1235 } else Clients.throwError('XWB IM HERE', response);1236 })1237 .then(function (response) {1238 if (response === rpcFormatter.encapsulate('1')) {1239 return Clients.sendRpc(0, imHereRpc);1240 } else Clients.throwError('XWB IM HERE', response);1241 })1242 .then(function (response) {1243 if (response === rpcFormatter.encapsulate('1')) {1244 return Clients.sendRpc(0, imHereRpc);1245 } else Clients.throwError('XWB IM HERE', response);1246 })1247 .then(function (response) {1248 if (response === rpcFormatter.encapsulate('1')) {1249 return Clients.sendRpc(0, imHereRpc);1250 } else Clients.throwError('XWB IM HERE', response);1251 })1252 .then(function (response) {1253 if (response === rpcFormatter.encapsulate('1')) {1254 return Clients.sendRpc(0, imHereRpc);1255 } else Clients.throwError('XWB IM HERE', response);1256 })1257 .then(function (response) {1258 if (response === rpcFormatter.encapsulate('1')) {1259 return Clients.sendRpc(0, imHereRpc);1260 } else Clients.throwError('XWB IM HERE', response);1261 })1262 .then(function (response) {1263 if (response === rpcFormatter.encapsulate('1')) {1264 return Clients.sendRpc(0, imHereRpc);1265 } else Clients.throwError('XWB IM HERE', response);1266 })1267 .then(function (response) {1268 if (response === rpcFormatter.encapsulate('1')) {1269 return Clients.sendRpc(0, imHereRpc);1270 } else Clients.throwError('XWB IM HERE', response);1271 })1272 .then(function (response) {1273 if (response === rpcFormatter.encapsulate('1')) {1274 return Clients.sendRpc(0, imHereRpc);1275 } else Clients.throwError('XWB IM HERE', response);1276 })1277 .then(function (response) {1278 if (response === rpcFormatter.encapsulate('1')) {1279 return Clients.sendRpc(0, imHereRpc);1280 } else Clients.throwError('XWB IM HERE', response);1281 })1282 .then(function (response) {1283 if (response === rpcFormatter.encapsulate('1')) {1284 return Clients.sendRpc(0, imHereRpc);1285 } else Clients.throwError('XWB IM HERE', response);1286 })1287 .then(function (response) {1288 if (response === rpcFormatter.encapsulate('1')) {1289 return Clients.sendRpc(0, imHereRpc);1290 } else Clients.throwError('XWB IM HERE', response);1291 })1292 .then(function (response) {1293 if (response === rpcFormatter.encapsulate('1')) {1294 return Clients.sendRpc(0, imHereRpc);1295 } else Clients.throwError('XWB IM HERE', response);1296 })1297 .then(function (response) {1298 if (response === rpcFormatter.encapsulate('1')) {1299 return Clients.sendRpc(0, imHereRpc);1300 } else Clients.throwError('XWB IM HERE', response);1301 })1302 .then(function (response) {1303 if (response === rpcFormatter.encapsulate('1')) {1304 return Clients.sendRpc(0, imHereRpc);1305 } else Clients.throwError('XWB IM HERE', response);1306 })1307 .then(function (response) {1308 if (response === rpcFormatter.encapsulate('1')) {1309 return Clients.sendRpc(0, imHereRpc);1310 } else Clients.throwError('XWB IM HERE', response);1311 })1312 .then(function (response) {1313 if (response === rpcFormatter.encapsulate('1')) {1314 return Clients.sendRpc(0, imHereRpc);1315 } else Clients.throwError('XWB IM HERE', response);1316 })1317 .then(function (response) {1318 if (response === rpcFormatter.encapsulate('1')) {1319 return Clients.sendRpc(0, imHereRpc);1320 } else Clients.throwError('XWB IM HERE', response);1321 })1322 .then(function (response) {1323 if (response === rpcFormatter.encapsulate('1')) {1324 return Clients.sendRpc(0, imHereRpc);1325 } else Clients.throwError('XWB IM HERE', response);1326 })1327 .then(function (response) {1328 if (response === rpcFormatter.encapsulate('1')) {1329 return Clients.sendRpc(0, imHereRpc);1330 } else Clients.throwError('XWB IM HERE', response);1331 })1332 .then(function (response) {1333 if (response === rpcFormatter.encapsulate('1')) {1334 return Clients.sendRpc(0, imHereRpc);1335 } else Clients.throwError('XWB IM HERE', response);1336 })1337 .then(function (response) {1338 if (response === rpcFormatter.encapsulate('1')) {1339 return Clients.sendRpc(0, imHereRpc);1340 } else Clients.throwError('XWB IM HERE', response);1341 })1342 .then(function (response) {1343 if (response === rpcFormatter.encapsulate('1')) {1344 return Clients.sendRpc(0, imHereRpc);1345 } else Clients.throwError('XWB IM HERE', response);1346 })1347 .then(function (response) {1348 if (response === rpcFormatter.encapsulate('1')) {1349 return Clients.sendRpc(0, imHereRpc);1350 } else Clients.throwError('XWB IM HERE', response);1351 })1352 .then(function (response) {1353 if (response === rpcFormatter.encapsulate('1')) {1354 return Clients.sendRpc(0, imHereRpc);1355 } else Clients.throwError('XWB IM HERE', response);1356 })1357 .then(function (response) {1358 if (response === rpcFormatter.encapsulate('1')) {1359 return Clients.sendRpc(0, imHereRpc);1360 } else Clients.throwError('XWB IM HERE', response);1361 })1362 .then(function (response) {1363 if (response === rpcFormatter.encapsulate('1')) {1364 return Clients.sendRpc(0, imHereRpc);1365 } else Clients.throwError('XWB IM HERE', response);1366 })1367 .then(function (response) {1368 if (response === rpcFormatter.encapsulate('1')) {1369 return Clients.sendRpc(0, imHereRpc);1370 } else Clients.throwError('XWB IM HERE', response);1371 })1372 .then(function (response) {1373 if (response === rpcFormatter.encapsulate('1')) {1374 return Clients.sendRpc(0, imHereRpc);1375 } else Clients.throwError('XWB IM HERE', response);1376 })1377 .then(function (response) {1378 if (response === rpcFormatter.encapsulate('1')) {1379 return Clients.sendRpc(0, imHereRpc);1380 } else Clients.throwError('XWB IM HERE', response);1381 })1382 .then(function (response) {1383 if (response === rpcFormatter.encapsulate('1')) {1384 return Clients.sendRpc(0, imHereRpc);1385 } else Clients.throwError('XWB IM HERE', response);1386 })1387 .then(function (response) {1388 if (response === rpcFormatter.encapsulate('1')) {1389 return Clients.sendRpc(0, imHereRpc);1390 } else Clients.throwError('XWB IM HERE', response);1391 })1392 .then(function (response) {1393 if (response === rpcFormatter.encapsulate('1')) {1394 return Clients.sendRpc(0, imHereRpc);1395 } else Clients.throwError('XWB IM HERE', response);1396 })1397 .then(function (response) {1398 if (response === rpcFormatter.encapsulate('1')) {1399 return Clients.sendRpc(0, imHereRpc);1400 } else Clients.throwError('XWB IM HERE', response);1401 })1402 .then(function (response) {1403 if (response === rpcFormatter.encapsulate('1')) {1404 return Clients.sendRpc(0, imHereRpc);1405 } else Clients.throwError('XWB IM HERE', response);1406 })1407 .then(function (response) {1408 if (response === rpcFormatter.encapsulate('1')) {1409 return Clients.sendRpc(0, imHereRpc);1410 } else Clients.throwError('XWB IM HERE', response);1411 })1412 .then(function (response) {1413 if (response === rpcFormatter.encapsulate('1')) {1414 return Clients.sendRpc(0, imHereRpc);1415 } else Clients.throwError('XWB IM HERE', response);1416 })1417 .then(function (response) {1418 if (response === rpcFormatter.encapsulate('1')) {1419 return Clients.sendRpc(0, imHereRpc);1420 } else Clients.throwError('XWB IM HERE', response);1421 })1422 .then(function (response) {1423 if (response === rpcFormatter.encapsulate('1')) {1424 return Clients.sendRpc(0, imHereRpc);1425 } else Clients.throwError('XWB IM HERE', response);1426 })1427 .then(function (response) {1428 if (response === rpcFormatter.encapsulate('1')) {1429 return Clients.sendRpc(0, imHereRpc);1430 } else Clients.throwError('XWB IM HERE', response);1431 })1432 .then(function (response) {1433 if (response === rpcFormatter.encapsulate('1')) {1434 return Clients.sendRpc(0, imHereRpc);1435 } else Clients.throwError('XWB IM HERE', response);1436 })1437 .then(function (response) {1438 if (response === rpcFormatter.encapsulate('1')) {1439 return Clients.sendRpc(0, imHereRpc);1440 } else Clients.throwError('XWB IM HERE', response);1441 })1442 .then(function (response) {1443 if (response === rpcFormatter.encapsulate('1')) {1444 return Clients.sendRpc(0, imHereRpc);1445 } else Clients.throwError('XWB IM HERE', response);1446 })1447 .then(function (response) {1448 if (response === rpcFormatter.encapsulate('1')) {1449 return Clients.sendRpc(0, imHereRpc);1450 } else Clients.throwError('XWB IM HERE', response);1451 })1452 .then(function (response) {1453 if (response === rpcFormatter.encapsulate('1')) {1454 return Clients.sendRpc(0, imHereRpc);1455 } else Clients.throwError('XWB IM HERE', response);1456 })1457 .then(function (response) {1458 if (response === rpcFormatter.encapsulate('1')) {1459 return Clients.sendRpc(0, imHereRpc);1460 } else Clients.throwError('XWB IM HERE', response);1461 })1462 .then(function (response) {1463 if (response === rpcFormatter.encapsulate('1')) {1464 return Clients.sendRpc(0, imHereRpc);1465 } else Clients.throwError('XWB IM HERE', response);1466 })1467 .then(function (response) {1468 if (response === rpcFormatter.encapsulate('1')) {1469 return Clients.sendRpc(0, imHereRpc);1470 } else Clients.throwError('XWB IM HERE', response);1471 })1472 .then(function (response) {1473 if (response === rpcFormatter.encapsulate('1')) {1474 return Clients.sendRpc(0, imHereRpc);1475 } else Clients.throwError('XWB IM HERE', response);1476 })1477 .then(function (response) {1478 if (response === rpcFormatter.encapsulate('1')) {1479 return Clients.sendRpc(0, imHereRpc);1480 } else Clients.throwError('XWB IM HERE', response);1481 })1482 .then(function (response) {1483 if (response === rpcFormatter.encapsulate('1')) {1484 return Clients.sendRpc(0, imHereRpc);1485 } else Clients.throwError('XWB IM HERE', response);1486 })1487 .then(function (response) {1488 if (response === rpcFormatter.encapsulate('1')) {1489 return Clients.sendRpc(0, imHereRpc);1490 } else Clients.throwError('XWB IM HERE', response);1491 })1492 .then(function (response) {1493 if (response === rpcFormatter.encapsulate('1')) {1494 return Clients.sendRpc(0, imHereRpc);1495 } else Clients.throwError('XWB IM HERE', response);1496 })1497 .then(function (response) {1498 if (response === rpcFormatter.encapsulate('1')) {1499 return Clients.sendRpc(0, imHereRpc);1500 } else Clients.throwError('XWB IM HERE', response);1501 })1502 .then(function (response) {1503 if (response === rpcFormatter.encapsulate('1')) {1504 return Clients.sendRpc(0, imHereRpc);1505 } else Clients.throwError('XWB IM HERE', response);1506 })1507 .then(function (response) {1508 if (response === rpcFormatter.encapsulate('1')) {1509 return Clients.sendRpc(0, imHereRpc);1510 } else Clients.throwError('XWB IM HERE', response);1511 })1512 .then(function (response) {1513 if (response === rpcFormatter.encapsulate('1')) {1514 return Clients.sendRpc(0, imHereRpc);1515 } else Clients.throwError('XWB IM HERE', response);1516 })1517 .then(function (response) {1518 if (response === rpcFormatter.encapsulate('1')) {1519 return Clients.sendRpc(0, imHereRpc);1520 } else Clients.throwError('XWB IM HERE', response);1521 })1522 .then(function (response) {1523 if (response === rpcFormatter.encapsulate('1')) {1524 return Clients.sendRpc(0, imHereRpc);1525 } else Clients.throwError('XWB IM HERE', response);1526 })1527 .then(function (response) {1528 if (response === rpcFormatter.encapsulate('1')) {1529 return Clients.sendRpc(0, imHereRpc);1530 } else Clients.throwError('XWB IM HERE', response);1531 })1532 .then(function (response) {1533 if (response === rpcFormatter.encapsulate('1')) {1534 return Clients.sendRpc(0, imHereRpc);1535 } else Clients.throwError('XWB IM HERE', response);1536 })1537 .then(function (response) {1538 if (response === rpcFormatter.encapsulate('1')) {1539 return Clients.sendRpc(0, imHereRpc);1540 } else Clients.throwError('XWB IM HERE', response);1541 })1542 .then(function (response) {1543 if (response === rpcFormatter.encapsulate('1')) {1544 return Clients.sendRpc(0, imHereRpc);1545 } else Clients.throwError('XWB IM HERE', response);1546 })1547 .then(function (response) {1548 if (response === rpcFormatter.encapsulate('1')) {1549 return Clients.sendRpc(0, imHereRpc);1550 } else Clients.throwError('XWB IM HERE', response);1551 })1552 .then(function (response) {1553 if (response === rpcFormatter.encapsulate('1')) {1554 return Clients.sendRpc(0, imHereRpc);1555 } else Clients.throwError('XWB IM HERE', response);1556 })1557 .then(function (response) {1558 if (response === rpcFormatter.encapsulate('1')) {1559 return Clients.sendRpc(0, imHereRpc);1560 } else Clients.throwError('XWB IM HERE', response);1561 })1562 .then(function (response) {1563 if (response === rpcFormatter.encapsulate('1')) {1564 return Clients.sendRpc(0, imHereRpc);1565 } else Clients.throwError('XWB IM HERE', response);1566 })1567 .then(function (response) {1568 if (response === rpcFormatter.encapsulate('1')) {1569 return Clients.sendRpc(0, imHereRpc);1570 } else Clients.throwError('XWB IM HERE', response);1571 })1572 .then(function (response) {1573 if (response === rpcFormatter.encapsulate('1')) {1574 return Clients.sendRpc(0, imHereRpc);1575 } else Clients.throwError('XWB IM HERE', response);1576 })1577 .then(function (response) {1578 if (response === rpcFormatter.encapsulate('1')) {1579 return Clients.sendRpc(0, imHereRpc);1580 } else Clients.throwError('XWB IM HERE', response);1581 })1582 .then(function (response) {1583 if (response === rpcFormatter.encapsulate('1')) {1584 return Clients.sendRpc(0, imHereRpc);1585 } else Clients.throwError('XWB IM HERE', response);1586 })1587 .then(function (response) {1588 if (response === rpcFormatter.encapsulate('1')) {1589 return Clients.sendRpc(0, imHereRpc);1590 } else Clients.throwError('XWB IM HERE', response);1591 })1592 .then(function (response) {1593 if (response === rpcFormatter.encapsulate('1')) {1594 return Clients.sendRpc(0, imHereRpc);1595 } else Clients.throwError('XWB IM HERE', response);1596 })1597 .then(function (response) {1598 if (response === rpcFormatter.encapsulate('1')) {1599 return Clients.sendRpc(0, imHereRpc);1600 } else Clients.throwError('XWB IM HERE', response);1601 })1602 .then(function (response) {1603 if (response === rpcFormatter.encapsulate('1')) {1604 return Clients.sendRpc(0, imHereRpc);1605 } else Clients.throwError('XWB IM HERE', response);1606 })1607 .then(function (response) {1608 if (response === rpcFormatter.encapsulate('1')) {1609 return Clients.sendRpc(0, imHereRpc);1610 } else Clients.throwError('XWB IM HERE', response);1611 })1612 .then(function (response) {1613 if (response === rpcFormatter.encapsulate('1')) {1614 return Clients.sendRpc(0, imHereRpc);1615 } else Clients.throwError('XWB IM HERE', response);1616 })1617 .then(function (response) {1618 if (response === rpcFormatter.encapsulate('1')) {1619 return Clients.sendRpc(0, imHereRpc);1620 } else Clients.throwError('XWB IM HERE', response);1621 })1622 .then(function (response) {1623 if (response === rpcFormatter.encapsulate('1')) {1624 return Clients.sendRpc(0, imHereRpc);1625 } else Clients.throwError('XWB IM HERE', response);1626 })1627 .then(function (response) {1628 if (response === rpcFormatter.encapsulate('1')) {1629 return Clients.sendRpc(0, imHereRpc);1630 } else Clients.throwError('XWB IM HERE', response);1631 })1632 .then(function (response) {1633 if (response === rpcFormatter.encapsulate('1')) {1634 return Clients.sendRpc(0, imHereRpc);1635 } else Clients.throwError('XWB IM HERE', response);1636 })1637 .then(function (response) {1638 if (response === rpcFormatter.encapsulate('1')) {1639 return Clients.sendRpc(0, imHereRpc);1640 } else Clients.throwError('XWB IM HERE', response);1641 })1642 .then(function (response) {1643 if (response === rpcFormatter.encapsulate('1')) {1644 return Clients.sendRpc(0, imHereRpc);1645 } else Clients.throwError('XWB IM HERE', response);1646 })1647 .then(function (response) {1648 if (response === rpcFormatter.encapsulate('1')) {1649 return Clients.sendRpc(0, imHereRpc);1650 } else Clients.throwError('XWB IM HERE', response);1651 })1652 .then(function (response) {1653 if (response === rpcFormatter.encapsulate('1')) {1654 return Clients.sendRpc(0, imHereRpc);1655 } else Clients.throwError('XWB IM HERE', response);1656 })1657 .then(function (response) {1658 if (response === rpcFormatter.encapsulate('1')) {1659 return Clients.sendRpc(0, imHereRpc);1660 } else Clients.throwError('XWB IM HERE', response);1661 })1662 .then(function (response) {1663 if (response === rpcFormatter.encapsulate('1')) {1664 return Clients.sendRpc(0, imHereRpc);1665 } else Clients.throwError('XWB IM HERE', response);1666 })1667 .then(function (response) {1668 if (response === rpcFormatter.encapsulate('1')) {1669 return Clients.sendRpc(0, imHereRpc);1670 } else Clients.throwError('XWB IM HERE', response);1671 })1672 .then(function (response) {1673 if (response === rpcFormatter.encapsulate('1')) {1674 return Clients.sendRpc(0, imHereRpc);1675 } else Clients.throwError('XWB IM HERE', response);1676 })1677 .then(function (response) {1678 if (response === rpcFormatter.encapsulate('1')) {1679 return Clients.sendRpc(0, imHereRpc);1680 } else Clients.throwError('XWB IM HERE', response);1681 })1682 .then(function (response) {1683 if (response === rpcFormatter.encapsulate('1')) {1684 return Clients.sendRpc(0, imHereRpc);1685 } else Clients.throwError('XWB IM HERE', response);1686 })1687 .then(function (response) {1688 if (response === rpcFormatter.encapsulate('1')) {1689 return Clients.sendRpc(0, imHereRpc);1690 } else Clients.throwError('XWB IM HERE', response);1691 })1692 .then(function (response) {1693 if (response === rpcFormatter.encapsulate('1')) {1694 return Clients.sendRpc(0, imHereRpc);1695 } else Clients.throwError('XWB IM HERE', response);1696 })1697 .then(function (response) {1698 if (response === rpcFormatter.encapsulate('1')) {1699 return Clients.sendRpc(0, imHereRpc);1700 } else Clients.throwError('XWB IM HERE', response);1701 })1702 .then(function (response) {1703 if (response === rpcFormatter.encapsulate('1')) {1704 return Clients.sendRpc(0, imHereRpc);1705 } else Clients.throwError('XWB IM HERE', response);1706 })1707 .then(function (response) {1708 if (response === rpcFormatter.encapsulate('1')) {1709 return Clients.sendRpc(0, imHereRpc);1710 } else Clients.throwError('XWB IM HERE', response);1711 })1712 .then(function (response) {1713 if (response === rpcFormatter.encapsulate('1')) {1714 return Clients.sendRpc(0, imHereRpc);1715 } else Clients.throwError('XWB IM HERE', response);1716 })1717 .then(function (response) {1718 if (response === rpcFormatter.encapsulate('1')) {1719 return Clients.sendRpc(0, imHereRpc);1720 } else Clients.throwError('XWB IM HERE', response);1721 })1722 .then(function (response) {1723 if (response === rpcFormatter.encapsulate('1')) {1724 return Clients.sendRpc(0, imHereRpc);1725 } else Clients.throwError('XWB IM HERE', response);1726 })1727 .then(function (response) {1728 if (response === rpcFormatter.encapsulate('1')) {1729 return Clients.sendRpc(0, imHereRpc);1730 } else Clients.throwError('XWB IM HERE', response);1731 })1732 .then(function (response) {1733 if (response === rpcFormatter.encapsulate('1')) {1734 return Clients.sendRpc(0, imHereRpc);1735 } else Clients.throwError('XWB IM HERE', response);1736 })1737 .then(function (response) {1738 if (response === rpcFormatter.encapsulate('1')) {1739 return Clients.sendRpc(0, imHereRpc);1740 } else Clients.throwError('XWB IM HERE', response);1741 })1742 .then(function (response) {1743 if (response === rpcFormatter.encapsulate('1')) {1744 return Clients.sendRpc(0, imHereRpc);1745 } else Clients.throwError('XWB IM HERE', response);1746 })1747 .then(function (response) {1748 if (response === rpcFormatter.encapsulate('1')) {1749 return Clients.sendRpc(0, imHereRpc);1750 } else Clients.throwError('XWB IM HERE', response);1751 })1752 .then(function (response) {1753 if (response === rpcFormatter.encapsulate('1')) {1754 return Clients.sendRpc(0, imHereRpc);1755 } else Clients.throwError('XWB IM HERE', response);1756 })1757 .then(function (response) {1758 if (response === rpcFormatter.encapsulate('1')) {1759 return Clients.sendRpc(0, imHereRpc);1760 } else Clients.throwError('XWB IM HERE', response);1761 })1762 .then(function (response) {1763 if (response === rpcFormatter.encapsulate('1')) {1764 return Clients.sendRpc(0, imHereRpc);1765 } else Clients.throwError('XWB IM HERE', response);1766 })1767 .then(function (response) {1768 if (response === rpcFormatter.encapsulate('1')) {1769 return Clients.sendRpc(0, imHereRpc);1770 } else Clients.throwError('XWB IM HERE', response);1771 })1772 .then(function (response) {1773 if (response === rpcFormatter.encapsulate('1')) {1774 return Clients.sendRpc(0, imHereRpc);1775 } else Clients.throwError('XWB IM HERE', response);1776 })1777 .then(function (response) {1778 if (response === rpcFormatter.encapsulate('1')) {1779 return Clients.sendRpc(0, imHereRpc);1780 } else Clients.throwError('XWB IM HERE', response);1781 })1782 .then(function (response) {1783 if (response === rpcFormatter.encapsulate('1')) {1784 return Clients.sendRpc(0, imHereRpc);1785 } else Clients.throwError('XWB IM HERE', response);1786 })1787 .then(function (response) {1788 if (response === rpcFormatter.encapsulate('1')) {1789 return Clients.sendRpc(0, imHereRpc);1790 } else Clients.throwError('XWB IM HERE', response);1791 })1792 .then(function (response) {1793 if (response === rpcFormatter.encapsulate('1')) {1794 return Clients.sendRpc(0, imHereRpc);1795 } else Clients.throwError('XWB IM HERE', response);1796 })1797 .then(function (response) {1798 if (response === rpcFormatter.encapsulate('1')) {1799 return Clients.sendRpc(0, imHereRpc);1800 } else Clients.throwError('XWB IM HERE', response);1801 })1802 .then(function (response) {1803 if (response === rpcFormatter.encapsulate('1')) {1804 return Clients.sendRpc(0, imHereRpc);1805 } else Clients.throwError('XWB IM HERE', response);1806 })1807 .then(function (response) {1808 if (response === rpcFormatter.encapsulate('1')) {1809 return Clients.sendRpc(0, imHereRpc);1810 } else Clients.throwError('XWB IM HERE', response);1811 })1812 .then(function (response) {1813 if (response === rpcFormatter.encapsulate('1')) {1814 return Clients.sendRpc(0, imHereRpc);1815 } else Clients.throwError('XWB IM HERE', response);1816 })1817 .then(function (response) {1818 if (response === rpcFormatter.encapsulate('1')) {1819 return Clients.sendRpc(0, imHereRpc);1820 } else Clients.throwError('XWB IM HERE', response);1821 })1822 .then(function (response) {1823 if (response === rpcFormatter.encapsulate('1')) {1824 return Clients.sendRpc(0, imHereRpc);1825 } else Clients.throwError('XWB IM HERE', response);1826 })1827 .then(function (response) {1828 if (response === rpcFormatter.encapsulate('1')) {1829 return Clients.sendRpc(0, imHereRpc);1830 } else Clients.throwError('XWB IM HERE', response);1831 })1832 .then(function (response) {1833 if (response === rpcFormatter.encapsulate('1')) {1834 return Clients.sendRpc(0, imHereRpc);1835 } else Clients.throwError('XWB IM HERE', response);1836 })1837 .then(function (response) {1838 if (response === rpcFormatter.encapsulate('1')) {1839 return Clients.sendRpc(0, imHereRpc);1840 } else Clients.throwError('XWB IM HERE', response);1841 })1842 .then(function (response) {1843 if (response === rpcFormatter.encapsulate('1')) {1844 return Clients.sendRpc(0, imHereRpc);1845 } else Clients.throwError('XWB IM HERE', response);1846 })1847 .then(function (response) {1848 if (response === rpcFormatter.encapsulate('1')) {1849 return Clients.sendRpc(0, imHereRpc);1850 } else Clients.throwError('XWB IM HERE', response);1851 })1852 .then(function (response) {1853 if (response === rpcFormatter.encapsulate('1')) {1854 return Clients.sendRpc(0, imHereRpc);1855 } else Clients.throwError('XWB IM HERE', response);1856 })1857 .then(function (response) {1858 if (response === rpcFormatter.encapsulate('1')) {1859 return Clients.sendRpc(0, imHereRpc);1860 } else Clients.throwError('XWB IM HERE', response);1861 })1862 .then(function (response) {1863 if (response === rpcFormatter.encapsulate('1')) {1864 return Clients.sendRpc(0, imHereRpc);1865 } else Clients.throwError('XWB IM HERE', response);1866 })1867 .then(function (response) {1868 if (response === rpcFormatter.encapsulate('1')) {1869 return Clients.sendRpc(0, imHereRpc);1870 } else Clients.throwError('XWB IM HERE', response);1871 })1872 .then(function (response) {1873 if (response === rpcFormatter.encapsulate('1')) {1874 return Clients.sendRpc(0, imHereRpc);1875 } else Clients.throwError('XWB IM HERE', response);1876 })1877 .then(function (response) {1878 if (response === rpcFormatter.encapsulate('1')) {1879 return Clients.sendRpc(0, imHereRpc);1880 } else Clients.throwError('XWB IM HERE', response);1881 })1882 .then(function (response) {1883 if (response === rpcFormatter.encapsulate('1')) {1884 return Clients.sendRpc(0, imHereRpc);1885 } else Clients.throwError('XWB IM HERE', response);1886 })1887 .then(function (response) {1888 if (response === rpcFormatter.encapsulate('1')) {1889 return Clients.sendRpc(0, imHereRpc);1890 } else Clients.throwError('XWB IM HERE', response);1891 })1892 .then(function (response) {1893 if (response === rpcFormatter.encapsulate('1')) {1894 return Clients.sendRpc(0, imHereRpc);1895 } else Clients.throwError('XWB IM HERE', response);1896 })1897 .then(function (response) {1898 if (response === rpcFormatter.encapsulate('1')) {1899 return Clients.sendRpc(0, imHereRpc);1900 } else Clients.throwError('XWB IM HERE', response);1901 })1902 .then(function (response) {1903 if (response === rpcFormatter.encapsulate('1')) {1904 return Clients.sendRpc(0, imHereRpc);1905 } else Clients.throwError('XWB IM HERE', response);1906 })1907 .then(function (response) {1908 if (response === rpcFormatter.encapsulate('1')) {1909 return Clients.sendRpc(0, imHereRpc);1910 } else Clients.throwError('XWB IM HERE', response);1911 })1912 .then(function (response) {1913 if (response === rpcFormatter.encapsulate('1')) {1914 return Clients.sendRpc(0, imHereRpc);1915 } else Clients.throwError('XWB IM HERE', response);1916 })1917 .then(function (response) {1918 if (response === rpcFormatter.encapsulate('1')) {1919 return Clients.sendRpc(0, imHereRpc);1920 } else Clients.throwError('XWB IM HERE', response);1921 })1922 .then(function (response) {1923 if (response === rpcFormatter.encapsulate('1')) {1924 return Clients.sendRpc(0, imHereRpc);1925 } else Clients.throwError('XWB IM HERE', response);1926 })1927 .then(function (response) {1928 if (response === rpcFormatter.encapsulate('1')) {1929 return Clients.sendRpc(0, imHereRpc);1930 } else Clients.throwError('XWB IM HERE', response);1931 })1932 .then(function (response) {1933 if (response === rpcFormatter.encapsulate('1')) {1934 return Clients.sendRpc(0, imHereRpc);1935 } else Clients.throwError('XWB IM HERE', response);1936 })1937 .then(function (response) {1938 if (response === rpcFormatter.encapsulate('1')) {1939 return Clients.sendRpc(0, imHereRpc);1940 } else Clients.throwError('XWB IM HERE', response);1941 })1942 .then(function (response) {1943 if (response === rpcFormatter.encapsulate('1')) {1944 return Clients.sendRpc(0, imHereRpc);1945 } else Clients.throwError('XWB IM HERE', response);1946 })1947 .then(function (response) {1948 if (response === rpcFormatter.encapsulate('1')) {1949 return Clients.sendRpc(0, imHereRpc);1950 } else Clients.throwError('XWB IM HERE', response);1951 })1952 .then(function (response) {1953 if (response === rpcFormatter.encapsulate('1')) {1954 return Clients.sendRpc(0, imHereRpc);1955 } else Clients.throwError('XWB IM HERE', response);1956 })1957 .then(function (response) {1958 if (response === rpcFormatter.encapsulate('1')) {1959 return Clients.sendRpc(0, imHereRpc);1960 } else Clients.throwError('XWB IM HERE', response);1961 })1962 .then(function (response) {1963 if (response === rpcFormatter.encapsulate('1')) {1964 return Clients.sendRpc(0, imHereRpc);1965 } else Clients.throwError('XWB IM HERE', response);1966 })1967 .then(function (response) {1968 if (response === rpcFormatter.encapsulate('1')) {1969 return Clients.sendRpc(0, imHereRpc);1970 } else Clients.throwError('XWB IM HERE', response);1971 })1972 .then(function (response) {1973 if (response === rpcFormatter.encapsulate('1')) {1974 return Clients.sendRpc(0, imHereRpc);1975 } else Clients.throwError('XWB IM HERE', response);1976 })1977 .then(function (response) {1978 if (response === rpcFormatter.encapsulate('1')) {1979 return Clients.sendRpc(0, imHereRpc);1980 } else Clients.throwError('XWB IM HERE', response);1981 })1982 .then(function (response) {1983 if (response === rpcFormatter.encapsulate('1')) {1984 return Clients.sendRpc(0, imHereRpc);1985 } else Clients.throwError('XWB IM HERE', response);1986 })1987 .then(function (response) {1988 if (response === rpcFormatter.encapsulate('1')) {1989 return Clients.sendRpc(0, imHereRpc);1990 } else Clients.throwError('XWB IM HERE', response);1991 })1992 .then(function (response) {1993 if (response === rpcFormatter.encapsulate('1')) {1994 return Clients.sendRpc(0, imHereRpc);1995 } else Clients.throwError('XWB IM HERE', response);1996 })1997 .then(function (response) {1998 if (response === rpcFormatter.encapsulate('1')) {1999 return Clients.sendRpc(0, imHereRpc);2000 } else Clients.throwError('XWB IM HERE', response);2001 })2002 .then(function (response) {2003 if (response === rpcFormatter.encapsulate('1')) {2004 return Clients.sendRpc(0, imHereRpc);2005 } else Clients.throwError('XWB IM HERE', response);2006 })2007 .then(function (response) {2008 if (response === rpcFormatter.encapsulate('1')) {2009 return Clients.sendRpc(0, imHereRpc);2010 } else Clients.throwError('XWB IM HERE', response);2011 })2012 .then(function (response) {2013 if (response === rpcFormatter.encapsulate('1')) {2014 return Clients.sendRpc(0, imHereRpc);2015 } else Clients.throwError('XWB IM HERE', response);2016 })2017 .then(function (response) {2018 if (response === rpcFormatter.encapsulate('1')) {2019 return Clients.sendRpc(0, imHereRpc);2020 } else Clients.throwError('XWB IM HERE', response);2021 })2022 .then(function (response) {2023 if (response === rpcFormatter.encapsulate('1')) {2024 return Clients.sendRpc(0, imHereRpc);2025 } else Clients.throwError('XWB IM HERE', response);2026 })2027 .then(function (response) {2028 if (response === rpcFormatter.encapsulate('1')) {2029 return Clients.sendRpc(0, imHereRpc);2030 } else Clients.throwError('XWB IM HERE', response);2031 })2032 .then(function (response) {2033 if (response === rpcFormatter.encapsulate('1')) {2034 return Clients.sendRpc(0, imHereRpc);2035 } else Clients.throwError('XWB IM HERE', response);2036 })2037 .then(function (response) {2038 if (response === rpcFormatter.encapsulate('1')) {2039 return Clients.sendRpc(0, imHereRpc);2040 } else Clients.throwError('XWB IM HERE', response);2041 })2042 .then(function (response) {2043 if (response === rpcFormatter.encapsulate('1')) {2044 return Clients.sendRpc(0, imHereRpc);2045 } else Clients.throwError('XWB IM HERE', response);2046 })2047 .then(function (response) {2048 if (response === rpcFormatter.encapsulate('1')) {2049 return Clients.sendRpc(0, imHereRpc);2050 } else Clients.throwError('XWB IM HERE', response);2051 })2052 .then(function (response) {2053 if (response === rpcFormatter.encapsulate('1')) {2054 return Clients.sendRpc(0, imHereRpc);2055 } else Clients.throwError('XWB IM HERE', response);2056 })2057 .then(function (response) {2058 if (response === rpcFormatter.encapsulate('1')) {2059 return Clients.sendRpc(0, imHereRpc);2060 } else Clients.throwError('XWB IM HERE', response);2061 })2062 .then(function (response) {2063 if (response === rpcFormatter.encapsulate('1')) {2064 return Clients.sendRpc(0, imHereRpc);2065 } else Clients.throwError('XWB IM HERE', response);2066 })2067 .then(function (response) {2068 if (response === rpcFormatter.encapsulate('1')) {2069 return Clients.sendRpc(0, imHereRpc);2070 } else Clients.throwError('XWB IM HERE', response);2071 })2072 .then(function (response) {2073 if (response === rpcFormatter.encapsulate('1')) {2074 return Clients.sendRpc(0, imHereRpc);2075 } else Clients.throwError('XWB IM HERE', response);2076 })2077 .then(function (response) {2078 if (response === rpcFormatter.encapsulate('1')) {2079 return Clients.sendRpc(0, imHereRpc);2080 } else Clients.throwError('XWB IM HERE', response);2081 })2082 .then(function (response) {2083 if (response === rpcFormatter.encapsulate('1')) {2084 return Clients.sendRpc(0, imHereRpc);2085 } else Clients.throwError('XWB IM HERE', response);2086 })2087 .then(function (response) {2088 if (response === rpcFormatter.encapsulate('1')) {2089 return Clients.sendRpc(0, imHereRpc);2090 } else Clients.throwError('XWB IM HERE', response);2091 })2092 .then(function (response) {2093 if (response === rpcFormatter.encapsulate('1')) {2094 return Clients.sendRpc(0, imHereRpc);2095 } else Clients.throwError('XWB IM HERE', response);2096 })2097 .then(function (response) {2098 if (response === rpcFormatter.encapsulate('1')) {2099 return Clients.sendRpc(0, imHereRpc);2100 } else Clients.throwError('XWB IM HERE', response);2101 })2102 .then(function (response) {2103 if (response === rpcFormatter.encapsulate('1')) {2104 return Clients.sendRpc(0, imHereRpc);2105 } else Clients.throwError('XWB IM HERE', response);2106 })2107 .then(function (response) {2108 if (response === rpcFormatter.encapsulate('1')) {2109 return Clients.sendRpc(0, imHereRpc);2110 } else Clients.throwError('XWB IM HERE', response);2111 })2112 .then(function (response) {2113 if (response === rpcFormatter.encapsulate('1')) {2114 return Clients.sendRpc(0, imHereRpc);2115 } else Clients.throwError('XWB IM HERE', response);2116 })2117 .then(function (response) {2118 if (response === rpcFormatter.encapsulate('1')) {2119 return Clients.sendRpc(0, imHereRpc);2120 } else Clients.throwError('XWB IM HERE', response);2121 })2122 .then(function (response) {2123 if (response === rpcFormatter.encapsulate('1')) {2124 return Clients.sendRpc(0, imHereRpc);2125 } else Clients.throwError('XWB IM HERE', response);2126 })2127 .then(function (response) {2128 if (response === rpcFormatter.encapsulate('1')) {2129 return Clients.sendRpc(0, imHereRpc);2130 } else Clients.throwError('XWB IM HERE', response);2131 })2132 .then(function (response) {2133 if (response === rpcFormatter.encapsulate('1')) {2134 return Clients.sendRpc(0, imHereRpc);2135 } else Clients.throwError('XWB IM HERE', response);2136 })2137 .then(function (response) {2138 if (response === rpcFormatter.encapsulate('1')) {2139 return Clients.sendRpc(0, imHereRpc);2140 } else Clients.throwError('XWB IM HERE', response);2141 })2142 .then(function (response) {2143 if (response === rpcFormatter.encapsulate('1')) {2144 return Clients.sendRpc(0, imHereRpc);2145 } else Clients.throwError('XWB IM HERE', response);2146 })2147 .then(function (response) {2148 if (response === rpcFormatter.encapsulate('1')) {2149 return Clients.sendRpc(0, imHereRpc);2150 } else Clients.throwError('XWB IM HERE', response);2151 })2152 .then(function (response) {2153 if (response === rpcFormatter.encapsulate('1')) {2154 return Clients.sendRpc(0, imHereRpc);2155 } else Clients.throwError('XWB IM HERE', response);2156 })2157 .then(function (response) {2158 if (response === rpcFormatter.encapsulate('1')) {2159 return Clients.sendRpc(0, imHereRpc);2160 } else Clients.throwError('XWB IM HERE', response);2161 })2162 .then(function (response) {2163 if (response === rpcFormatter.encapsulate('1')) {2164 return Clients.sendRpc(0, imHereRpc);2165 } else Clients.throwError('XWB IM HERE', response);2166 })2167 .then(function (response) {2168 if (response === rpcFormatter.encapsulate('1')) {2169 return Clients.sendRpc(0, imHereRpc);2170 } else Clients.throwError('XWB IM HERE', response);2171 })2172 .then(function (response) {2173 if (response === rpcFormatter.encapsulate('1')) {2174 return Clients.sendRpc(0, imHereRpc);2175 } else Clients.throwError('XWB IM HERE', response);2176 })2177 .then(function (response) {2178 if (response === rpcFormatter.encapsulate('1')) {2179 return Clients.sendRpc(0, imHereRpc);2180 } else Clients.throwError('XWB IM HERE', response);2181 })2182 .then(function (response) {2183 if (response === rpcFormatter.encapsulate('1')) {2184 return Clients.sendRpc(0, imHereRpc);2185 } else Clients.throwError('XWB IM HERE', response);2186 })2187 .then(function (response) {2188 if (response === rpcFormatter.encapsulate('1')) {2189 return Clients.sendRpc(0, imHereRpc);2190 } else Clients.throwError('XWB IM HERE', response);2191 })2192 .then(function (response) {2193 if (response === rpcFormatter.encapsulate('1')) {2194 return Clients.sendRpc(0, imHereRpc);2195 } else Clients.throwError('XWB IM HERE', response);2196 })2197 .then(function (response) {2198 if (response === rpcFormatter.encapsulate('1')) {2199 return Clients.sendRpc(0, imHereRpc);2200 } else Clients.throwError('XWB IM HERE', response);2201 })2202 .then(function (response) {2203 if (response === rpcFormatter.encapsulate('1')) {2204 return Clients.sendRpc(0, imHereRpc);2205 } else Clients.throwError('XWB IM HERE', response);2206 })2207 .then(function (response) {2208 if (response === rpcFormatter.encapsulate('1')) {2209 return Clients.sendRpc(0, imHereRpc);2210 } else Clients.throwError('XWB IM HERE', response);2211 })2212 .then(function (response) {2213 if (response === rpcFormatter.encapsulate('1')) {2214 return Clients.sendRpc(0, imHereRpc);2215 } else Clients.throwError('XWB IM HERE', response);2216 })2217 .then(function (response) {2218 if (response === rpcFormatter.encapsulate('1')) {2219 return Clients.sendRpc(0, imHereRpc);2220 } else Clients.throwError('XWB IM HERE', response);2221 })2222 .then(function (response) {2223 if (response === rpcFormatter.encapsulate('1')) {2224 return Clients.sendRpc(0, imHereRpc);2225 } else Clients.throwError('XWB IM HERE', response);2226 })2227 .then(function (response) {2228 if (response === rpcFormatter.encapsulate('1')) {2229 return Clients.sendRpc(0, imHereRpc);2230 } else Clients.throwError('XWB IM HERE', response);2231 })2232 .then(function (response) {2233 if (response === rpcFormatter.encapsulate('1')) {2234 return Clients.sendRpc(0, imHereRpc);2235 } else Clients.throwError('XWB IM HERE', response);2236 })2237 .then(function (response) {2238 if (response === rpcFormatter.encapsulate('1')) {2239 return Clients.sendRpc(0, imHereRpc);2240 } else Clients.throwError('XWB IM HERE', response);2241 })2242 .then(function (response) {2243 if (response === rpcFormatter.encapsulate('1')) {2244 return Clients.sendRpc(0, imHereRpc);2245 } else Clients.throwError('XWB IM HERE', response);2246 })2247 .then(function (response) {2248 if (response === rpcFormatter.encapsulate('1')) {2249 return Clients.sendRpc(0, imHereRpc);2250 } else Clients.throwError('XWB IM HERE', response);2251 })2252 .then(function (response) {2253 if (response === rpcFormatter.encapsulate('1')) {2254 return Clients.sendRpc(0, imHereRpc);2255 } else Clients.throwError('XWB IM HERE', response);2256 })2257 .then(function (response) {2258 if (response === rpcFormatter.encapsulate('1')) {2259 return Clients.sendRpc(0, imHereRpc);2260 } else Clients.throwError('XWB IM HERE', response);2261 })2262 .then(function (response) {2263 if (response === rpcFormatter.encapsulate('1')) {2264 return Clients.sendRpc(0, imHereRpc);2265 } else Clients.throwError('XWB IM HERE', response);2266 })2267 .then(function (response) {2268 if (response === rpcFormatter.encapsulate('1')) {2269 return Clients.sendRpc(0, imHereRpc);2270 } else Clients.throwError('XWB IM HERE', response);2271 })2272 .then(function (response) {2273 if (response === rpcFormatter.encapsulate('1')) {2274 return Clients.sendRpc(0, imHereRpc);2275 } else Clients.throwError('XWB IM HERE', response);2276 })2277 .then(function (response) {2278 if (response === rpcFormatter.encapsulate('1')) {2279 return Clients.sendRpc(0, imHereRpc);2280 } else Clients.throwError('XWB IM HERE', response);2281 })2282 .then(function (response) {2283 if (response === rpcFormatter.encapsulate('1')) {2284 return Clients.sendRpc(0, imHereRpc);2285 } else Clients.throwError('XWB IM HERE', response);2286 })2287 .then(function (response) {2288 if (response === rpcFormatter.encapsulate('1')) {2289 return Clients.sendRpc(0, imHereRpc);2290 } else Clients.throwError('XWB IM HERE', response);2291 })2292 .then(function (response) {2293 if (response === rpcFormatter.encapsulate('1')) {2294 return Clients.sendRpc(0, imHereRpc);2295 } else Clients.throwError('XWB IM HERE', response);2296 })2297 .then(function (response) {2298 if (response === rpcFormatter.encapsulate('1')) {2299 return Clients.sendRpc(0, imHereRpc);2300 } else Clients.throwError('XWB IM HERE', response);2301 })2302 .then(function (response) {2303 if (response === rpcFormatter.encapsulate('1')) {2304 return Clients.sendRpc(0, imHereRpc);2305 } else Clients.throwError('XWB IM HERE', response);2306 })2307 .then(function (response) {2308 if (response === rpcFormatter.encapsulate('1')) {2309 return Clients.sendRpc(0, imHereRpc);2310 } else Clients.throwError('XWB IM HERE', response);2311 })2312 .then(function (response) {2313 if (response === rpcFormatter.encapsulate('1')) {2314 return Clients.sendRpc(0, imHereRpc);2315 } else Clients.throwError('XWB IM HERE', response);2316 })2317 .then(function (response) {2318 if (response === rpcFormatter.encapsulate('1')) {2319 return Clients.sendRpc(0, imHereRpc);2320 } else Clients.throwError('XWB IM HERE', response);2321 })2322 .then(function (response) {2323 if (response === rpcFormatter.encapsulate('1')) {2324 return Clients.sendRpc(0, imHereRpc);2325 } else Clients.throwError('XWB IM HERE', response);2326 })2327 .then(function (response) {2328 if (response === rpcFormatter.encapsulate('1')) {2329 return Clients.sendRpc(0, imHereRpc);2330 } else Clients.throwError('XWB IM HERE', response);2331 })2332 .then(function (response) {2333 if (response === rpcFormatter.encapsulate('1')) {2334 return Clients.sendRpc(0, imHereRpc);2335 } else Clients.throwError('XWB IM HERE', response);2336 })2337 .then(function (response) {2338 if (response === rpcFormatter.encapsulate('1')) {2339 return Clients.sendRpc(0, imHereRpc);2340 } else Clients.throwError('XWB IM HERE', response);2341 })2342 .then(function (response) {2343 if (response === rpcFormatter.encapsulate('1')) {2344 return Clients.sendRpc(0, imHereRpc);2345 } else Clients.throwError('XWB IM HERE', response);2346 })2347 .then(function (response) {2348 if (response === rpcFormatter.encapsulate('1')) {2349 return Clients.sendRpc(0, imHereRpc);2350 } else Clients.throwError('XWB IM HERE', response);2351 })2352 .then(function (response) {2353 if (response === rpcFormatter.encapsulate('1')) {2354 return Clients.sendRpc(0, imHereRpc);2355 } else Clients.throwError('XWB IM HERE', response);2356 })2357 .then(function (response) {2358 if (response === rpcFormatter.encapsulate('1')) {2359 return Clients.sendRpc(0, imHereRpc);2360 } else Clients.throwError('XWB IM HERE', response);2361 })2362 .then(function (response) {2363 if (response === rpcFormatter.encapsulate('1')) {2364 return Clients.sendRpc(0, imHereRpc);2365 } else Clients.throwError('XWB IM HERE', response);2366 })2367 .then(function (response) {2368 if (response === rpcFormatter.encapsulate('1')) {2369 return Clients.sendRpc(0, imHereRpc);2370 } else Clients.throwError('XWB IM HERE', response);2371 })2372 .then(function (response) {2373 if (response === rpcFormatter.encapsulate('1')) {2374 return Clients.sendRpc(0, imHereRpc);2375 } else Clients.throwError('XWB IM HERE', response);2376 })2377 .then(function (response) {2378 if (response === rpcFormatter.encapsulate('1')) {2379 return Clients.sendRpc(0, imHereRpc);2380 } else Clients.throwError('XWB IM HERE', response);2381 })2382 .then(function (response) {2383 if (response === rpcFormatter.encapsulate('1')) {2384 return Clients.sendRpc(0, imHereRpc);2385 } else Clients.throwError('XWB IM HERE', response);2386 })2387 .then(function (response) {2388 if (response === rpcFormatter.encapsulate('1')) {2389 return Clients.sendRpc(0, imHereRpc);2390 } else Clients.throwError('XWB IM HERE', response);2391 })2392 .then(function (response) {2393 if (response === rpcFormatter.encapsulate('1')) {2394 return Clients.sendRpc(0, imHereRpc);2395 } else Clients.throwError('XWB IM HERE', response);2396 })2397 .then(function (response) {2398 if (response === rpcFormatter.encapsulate('1')) {2399 return Clients.sendRpc(0, imHereRpc);2400 } else Clients.throwError('XWB IM HERE', response);2401 })2402 .then(function (response) {2403 if (response === rpcFormatter.encapsulate('1')) {2404 return Clients.sendRpc(0, imHereRpc);2405 } else Clients.throwError('XWB IM HERE', response);2406 })2407 .then(function (response) {2408 if (response === rpcFormatter.encapsulate('1')) {2409 return Clients.sendRpc(0, imHereRpc);2410 } else Clients.throwError('XWB IM HERE', response);2411 })2412 .then(function (response) {2413 if (response === rpcFormatter.encapsulate('1')) {2414 return Clients.sendRpc(0, imHereRpc);2415 } else Clients.throwError('XWB IM HERE', response);2416 })2417 .then(function (response) {2418 if (response === rpcFormatter.encapsulate('1')) {2419 return Clients.sendRpc(0, imHereRpc);2420 } else Clients.throwError('XWB IM HERE', response);2421 })2422 .then(function (response) {2423 if (response === rpcFormatter.encapsulate('1')) {2424 return Clients.sendRpc(0, imHereRpc);2425 } else Clients.throwError('XWB IM HERE', response);2426 })2427 .then(function (response) {2428 if (response === rpcFormatter.encapsulate('1')) {2429 return Clients.sendRpc(0, imHereRpc);2430 } else Clients.throwError('XWB IM HERE', response);2431 })2432 .then(function (response) {2433 if (response === rpcFormatter.encapsulate('1')) {2434 return Clients.sendRpc(0, imHereRpc);2435 } else Clients.throwError('XWB IM HERE', response);2436 })2437 .then(function (response) {2438 if (response === rpcFormatter.encapsulate('1')) {2439 return Clients.sendRpc(0, imHereRpc);2440 } else Clients.throwError('XWB IM HERE', response);2441 })2442 .then(function (response) {2443 if (response === rpcFormatter.encapsulate('1')) {2444 return Clients.sendRpc(0, imHereRpc);2445 } else Clients.throwError('XWB IM HERE', response);2446 })2447 .then(function (response) {2448 if (response === rpcFormatter.encapsulate('1')) {2449 return Clients.sendRpc(0, imHereRpc);2450 } else Clients.throwError('XWB IM HERE', response);2451 })2452 .then(function (response) {2453 if (response === rpcFormatter.encapsulate('1')) {2454 return Clients.sendRpc(0, imHereRpc);2455 } else Clients.throwError('XWB IM HERE', response);2456 })2457 .then(function (response) {2458 if (response === rpcFormatter.encapsulate('1')) {2459 return Clients.sendRpc(0, imHereRpc);2460 } else Clients.throwError('XWB IM HERE', response);2461 })2462 .then(function (response) {2463 if (response === rpcFormatter.encapsulate('1')) {2464 return Clients.sendRpc(0, imHereRpc);2465 } else Clients.throwError('XWB IM HERE', response);2466 })2467 .then(function (response) {2468 if (response === rpcFormatter.encapsulate('1')) {2469 return Clients.sendRpc(0, imHereRpc);2470 } else Clients.throwError('XWB IM HERE', response);2471 })2472 .then(function (response) {2473 if (response === rpcFormatter.encapsulate('1')) {2474 return Clients.sendRpc(0, imHereRpc);2475 } else Clients.throwError('XWB IM HERE', response);2476 })2477 .then(function (response) {2478 if (response === rpcFormatter.encapsulate('1')) {2479 return Clients.sendRpc(0, imHereRpc);2480 } else Clients.throwError('XWB IM HERE', response);2481 })2482 .then(function (response) {2483 if (response === rpcFormatter.encapsulate('1')) {2484 return Clients.sendRpc(0, imHereRpc);2485 } else Clients.throwError('XWB IM HERE', response);2486 })2487 .then(function (response) {2488 if (response === rpcFormatter.encapsulate('1')) {2489 return Clients.sendRpc(0, imHereRpc);2490 } else Clients.throwError('XWB IM HERE', response);2491 })2492 .then(function (response) {2493 if (response === rpcFormatter.encapsulate('1')) {2494 return Clients.sendRpc(0, imHereRpc);2495 } else Clients.throwError('XWB IM HERE', response);2496 })2497 .then(function (response) {2498 if (response === rpcFormatter.encapsulate('1')) {2499 return Clients.sendRpc(0, imHereRpc);2500 } else Clients.throwError('XWB IM HERE', response);2501 })2502 .then(function (response) {2503 if (response === rpcFormatter.encapsulate('1')) {2504 return Clients.sendRpc(0, imHereRpc);2505 } else Clients.throwError('XWB IM HERE', response);2506 })2507 .then(function (response) {2508 if (response === rpcFormatter.encapsulate('1')) {2509 return Clients.sendRpc(0, imHereRpc);2510 } else Clients.throwError('XWB IM HERE', response);2511 })2512 .then(function (response) {2513 if (response === rpcFormatter.encapsulate('1')) {2514 return Clients.sendRpc(0, imHereRpc);2515 } else Clients.throwError('XWB IM HERE', response);2516 })2517 .then(function (response) {2518 if (response === rpcFormatter.encapsulate('1')) {2519 return Clients.sendRpc(0, imHereRpc);2520 } else Clients.throwError('XWB IM HERE', response);2521 })2522 .then(function (response) {2523 if (response === rpcFormatter.encapsulate('1')) {2524 return Clients.sendRpc(0, imHereRpc);2525 } else Clients.throwError('XWB IM HERE', response);2526 })2527 .then(function (response) {2528 if (response === rpcFormatter.encapsulate('1')) {2529 return Clients.sendRpc(0, imHereRpc);2530 } else Clients.throwError('XWB IM HERE', response);2531 })2532 .then(function (response) {2533 if (response === rpcFormatter.encapsulate('1')) {2534 return Clients.sendRpc(0, imHereRpc);2535 } else Clients.throwError('XWB IM HERE', response);2536 })2537 .then(function (response) {2538 if (response === rpcFormatter.encapsulate('1')) {2539 return Clients.sendRpc(0, imHereRpc);2540 } else Clients.throwError('XWB IM HERE', response);2541 })2542 .then(function (response) {2543 if (response === rpcFormatter.encapsulate('1')) {2544 return Clients.sendRpc(0, imHereRpc);2545 } else Clients.throwError('XWB IM HERE', response);2546 })2547 .then(function (response) {2548 if (response === rpcFormatter.encapsulate('1')) {2549 return Clients.sendRpc(0, imHereRpc);2550 } else Clients.throwError('XWB IM HERE', response);2551 })2552 .then(function (response) {2553 if (response === rpcFormatter.encapsulate('1')) {2554 return Clients.sendRpc(0, imHereRpc);2555 } else Clients.throwError('XWB IM HERE', response);2556 })2557 .then(function (response) {2558 if (response === rpcFormatter.encapsulate('1')) {2559 return Clients.sendRpc(0, imHereRpc);2560 } else Clients.throwError('XWB IM HERE', response);2561 })2562 .then(function (response) {2563 if (response === rpcFormatter.encapsulate('1')) {2564 return Clients.sendRpc(0, imHereRpc);2565 } else Clients.throwError('XWB IM HERE', response);2566 })2567 .then(function (response) {2568 if (response === rpcFormatter.encapsulate('1')) {2569 return Clients.sendRpc(0, imHereRpc);2570 } else Clients.throwError('XWB IM HERE', response);2571 })2572 .then(function (response) {2573 if (response === rpcFormatter.encapsulate('1')) {2574 return Clients.sendRpc(0, imHereRpc);2575 } else Clients.throwError('XWB IM HERE', response);2576 })2577 .then(function (response) {2578 if (response === rpcFormatter.encapsulate('1')) {2579 return Clients.sendRpc(0, imHereRpc);2580 } else Clients.throwError('XWB IM HERE', response);2581 })2582 .then(function (response) {2583 if (response === rpcFormatter.encapsulate('1')) {2584 return Clients.sendRpc(0, imHereRpc);2585 } else Clients.throwError('XWB IM HERE', response);2586 })2587 .then(function (response) {2588 if (response === rpcFormatter.encapsulate('1')) {2589 return Clients.sendRpc(0, imHereRpc);2590 } else Clients.throwError('XWB IM HERE', response);2591 })2592 .then(function (response) {2593 if (response === rpcFormatter.encapsulate('1')) {2594 return Clients.sendRpc(0, imHereRpc);2595 } else Clients.throwError('XWB IM HERE', response);2596 })2597 .then(function (response) {2598 if (response === rpcFormatter.encapsulate('1')) {2599 return Clients.sendRpc(0, imHereRpc);2600 } else Clients.throwError('XWB IM HERE', response);2601 })2602 .then(function (response) {2603 if (response === rpcFormatter.encapsulate('1')) {2604 return Clients.sendRpc(0, imHereRpc);2605 } else Clients.throwError('XWB IM HERE', response);2606 })2607 .then(function (response) {2608 if (response === rpcFormatter.encapsulate('1')) {2609 return Clients.sendRpc(0, imHereRpc);2610 } else Clients.throwError('XWB IM HERE', response);2611 })2612 .then(function (response) {2613 if (response === rpcFormatter.encapsulate('1')) {2614 return Clients.sendRpc(0, imHereRpc);2615 } else Clients.throwError('XWB IM HERE', response);2616 })2617 .then(function (response) {2618 if (response === rpcFormatter.encapsulate('1')) {2619 return Clients.sendRpc(0, imHereRpc);2620 } else Clients.throwError('XWB IM HERE', response);2621 })2622 .then(function (response) {2623 if (response === rpcFormatter.encapsulate('1')) {2624 return Clients.sendRpc(0, imHereRpc);2625 } else Clients.throwError('XWB IM HERE', response);2626 })2627 .then(function (response) {2628 if (response === rpcFormatter.encapsulate('1')) {2629 return Clients.sendRpc(0, imHereRpc);2630 } else Clients.throwError('XWB IM HERE', response);2631 })2632 .then(function (response) {2633 if (response === rpcFormatter.encapsulate('1')) {2634 return Clients.sendRpc(0, imHereRpc);2635 } else Clients.throwError('XWB IM HERE', response);2636 })2637 .then(function (response) {2638 if (response === rpcFormatter.encapsulate('1')) {2639 return Clients.sendRpc(0, imHereRpc);2640 } else Clients.throwError('XWB IM HERE', response);2641 })2642 .then(function (response) {2643 if (response === rpcFormatter.encapsulate('1')) {2644 return Clients.sendRpc(0, imHereRpc);2645 } else Clients.throwError('XWB IM HERE', response);2646 })2647 .then(function (response) {2648 if (response === rpcFormatter.encapsulate('1')) {2649 return Clients.sendRpc(0, imHereRpc);2650 } else Clients.throwError('XWB IM HERE', response);2651 })2652 .then(function (response) {2653 if (response === rpcFormatter.encapsulate('1')) {2654 return Clients.sendRpc(0, imHereRpc);2655 } else Clients.throwError('XWB IM HERE', response);2656 })2657 .then(function (response) {2658 if (response === rpcFormatter.encapsulate('1')) {2659 return Clients.sendRpc(0, imHereRpc);2660 } else Clients.throwError('XWB IM HERE', response);2661 })2662 .then(function (response) {2663 if (response === rpcFormatter.encapsulate('1')) {2664 return Clients.sendRpc(0, imHereRpc);2665 } else Clients.throwError('XWB IM HERE', response);2666 })2667 .then(function (response) {2668 if (response === rpcFormatter.encapsulate('1')) {2669 return Clients.sendRpc(0, imHereRpc);2670 } else Clients.throwError('XWB IM HERE', response);2671 })2672 .then(function (response) {2673 if (response === rpcFormatter.encapsulate('1')) {2674 return Clients.sendRpc(0, imHereRpc);2675 } else Clients.throwError('XWB IM HERE', response);2676 })2677 .then(function (response) {2678 if (response === rpcFormatter.encapsulate('1')) {2679 return Clients.sendRpc(0, imHereRpc);2680 } else Clients.throwError('XWB IM HERE', response);2681 })2682 .then(function (response) {2683 if (response === rpcFormatter.encapsulate('1')) {2684 return Clients.sendRpc(0, imHereRpc);2685 } else Clients.throwError('XWB IM HERE', response);2686 })2687 .then(function (response) {2688 if (response === rpcFormatter.encapsulate('1')) {2689 return Clients.sendRpc(0, imHereRpc);2690 } else Clients.throwError('XWB IM HERE', response);2691 })2692 .then(function (response) {2693 if (response === rpcFormatter.encapsulate('1')) {2694 return Clients.sendRpc(0, imHereRpc);2695 } else Clients.throwError('XWB IM HERE', response);2696 })2697 .then(function (response) {2698 if (response === rpcFormatter.encapsulate('1')) {2699 return Clients.sendRpc(0, imHereRpc);2700 } else Clients.throwError('XWB IM HERE', response);2701 })2702 .then(function (response) {2703 if (response === rpcFormatter.encapsulate('1')) {2704 return Clients.sendRpc(0, imHereRpc);2705 } else Clients.throwError('XWB IM HERE', response);2706 })2707 .then(function (response) {2708 if (response === rpcFormatter.encapsulate('1')) {2709 return Clients.sendRpc(0, imHereRpc);2710 } else Clients.throwError('XWB IM HERE', response);2711 })2712 .then(function (response) {2713 if (response === rpcFormatter.encapsulate('1')) {2714 return Clients.sendRpc(0, imHereRpc);2715 } else Clients.throwError('XWB IM HERE', response);2716 })2717 .then(function (response) {2718 if (response === rpcFormatter.encapsulate('1')) {2719 return Clients.sendRpc(0, imHereRpc);2720 } else Clients.throwError('XWB IM HERE', response);2721 })2722 .then(function (response) {2723 if (response === rpcFormatter.encapsulate('1')) {2724 return Clients.sendRpc(0, imHereRpc);2725 } else Clients.throwError('XWB IM HERE', response);2726 })2727 .then(function (response) {2728 if (response === rpcFormatter.encapsulate('1')) {2729 return Clients.sendRpc(0, imHereRpc);2730 } else Clients.throwError('XWB IM HERE', response);2731 })2732 .then(function (response) {2733 if (response === rpcFormatter.encapsulate('1')) {2734 return Clients.sendRpc(0, imHereRpc);2735 } else Clients.throwError('XWB IM HERE', response);2736 })2737 .then(function (response) {2738 if (response === rpcFormatter.encapsulate('1')) {2739 return Clients.sendRpc(0, imHereRpc);2740 } else Clients.throwError('XWB IM HERE', response);2741 })2742 .then(function (response) {2743 if (response === rpcFormatter.encapsulate('1')) {2744 return Clients.sendRpc(0, imHereRpc);2745 } else Clients.throwError('XWB IM HERE', response);2746 })2747 .then(function (response) {2748 if (response === rpcFormatter.encapsulate('1')) {2749 return Clients.sendRpc(0, imHereRpc);2750 } else Clients.throwError('XWB IM HERE', response);2751 })2752 .then(function (response) {2753 if (response === rpcFormatter.encapsulate('1')) {2754 return Clients.sendRpc(0, imHereRpc);2755 } else Clients.throwError('XWB IM HERE', response);2756 })2757 .then(function (response) {2758 if (response === rpcFormatter.encapsulate('1')) {2759 return Clients.sendRpc(0, imHereRpc);2760 } else Clients.throwError('XWB IM HERE', response);2761 })2762 .then(function (response) {2763 if (response === rpcFormatter.encapsulate('1')) {2764 return Clients.sendRpc(0, imHereRpc);2765 } else Clients.throwError('XWB IM HERE', response);2766 })2767 .then(function (response) {2768 if (response === rpcFormatter.encapsulate('1')) {2769 return Clients.sendRpc(0, imHereRpc);2770 } else Clients.throwError('XWB IM HERE', response);2771 })2772 .then(function (response) {2773 if (response === rpcFormatter.encapsulate('1')) {2774 return Clients.sendRpc(0, imHereRpc);2775 } else Clients.throwError('XWB IM HERE', response);2776 })2777 .then(function (response) {2778 if (response === rpcFormatter.encapsulate('1')) {2779 return Clients.sendRpc(0, imHereRpc);2780 } else Clients.throwError('XWB IM HERE', response);2781 })2782 .then(function (response) {2783 if (response === rpcFormatter.encapsulate('1')) {2784 return Clients.sendRpc(0, imHereRpc);2785 } else Clients.throwError('XWB IM HERE', response);2786 })2787 .then(function (response) {2788 if (response === rpcFormatter.encapsulate('1')) {2789 return Clients.sendRpc(0, imHereRpc);2790 } else Clients.throwError('XWB IM HERE', response);2791 })2792 .then(function (response) {2793 if (response === rpcFormatter.encapsulate('1')) {2794 return Clients.sendRpc(0, imHereRpc);2795 } else Clients.throwError('XWB IM HERE', response);2796 })2797 .then(function (response) {2798 if (response === rpcFormatter.encapsulate('1')) {2799 return Clients.sendRpc(0, imHereRpc);2800 } else Clients.throwError('XWB IM HERE', response);2801 })2802 .then(function (response) {2803 if (response === rpcFormatter.encapsulate('1')) {2804 return Clients.sendRpc(0, imHereRpc);2805 } else Clients.throwError('XWB IM HERE', response);2806 })2807 .then(function (response) {2808 if (response === rpcFormatter.encapsulate('1')) {2809 return Clients.sendRpc(0, imHereRpc);2810 } else Clients.throwError('XWB IM HERE', response);2811 })2812 .then(function (response) {2813 if (response === rpcFormatter.encapsulate('1')) {2814 return Clients.sendRpc(0, imHereRpc);2815 } else Clients.throwError('XWB IM HERE', response);2816 })2817 .then(function (response) {2818 if (response === rpcFormatter.encapsulate('1')) {2819 return Clients.sendRpc(0, imHereRpc);2820 } else Clients.throwError('XWB IM HERE', response);2821 })2822 .then(function (response) {2823 if (response === rpcFormatter.encapsulate('1')) {2824 return Clients.sendRpc(0, imHereRpc);2825 } else Clients.throwError('XWB IM HERE', response);2826 })2827 .then(function (response) {2828 if (response === rpcFormatter.encapsulate('1')) {2829 return Clients.sendRpc(0, imHereRpc);2830 } else Clients.throwError('XWB IM HERE', response);2831 })2832 .then(function (response) {2833 if (response === rpcFormatter.encapsulate('1')) {2834 return Clients.sendRpc(0, imHereRpc);2835 } else Clients.throwError('XWB IM HERE', response);2836 })2837 .then(function (response) {2838 if (response === rpcFormatter.encapsulate('1')) {2839 return Clients.sendRpc(0, imHereRpc);2840 } else Clients.throwError('XWB IM HERE', response);2841 })2842 .then(function (response) {2843 if (response === rpcFormatter.encapsulate('1')) {2844 return Clients.sendRpc(0, imHereRpc);2845 } else Clients.throwError('XWB IM HERE', response);2846 })2847 .then(function (response) {2848 if (response === rpcFormatter.encapsulate('1')) {2849 return Clients.sendRpc(0, imHereRpc);2850 } else Clients.throwError('XWB IM HERE', response);2851 })2852 .then(function (response) {2853 if (response === rpcFormatter.encapsulate('1')) {2854 return Clients.sendRpc(0, imHereRpc);2855 } else Clients.throwError('XWB IM HERE', response);2856 })2857 .then(function (response) {2858 if (response === rpcFormatter.encapsulate('1')) {2859 return Clients.sendRpc(0, imHereRpc);2860 } else Clients.throwError('XWB IM HERE', response);2861 })2862 .then(function (response) {2863 if (response === rpcFormatter.encapsulate('1')) {2864 return Clients.sendRpc(0, imHereRpc);2865 } else Clients.throwError('XWB IM HERE', response);2866 })2867 .then(function (response) {2868 if (response === rpcFormatter.encapsulate('1')) {2869 return Clients.sendRpc(0, imHereRpc);2870 } else Clients.throwError('XWB IM HERE', response);2871 })2872 .then(function (response) {2873 if (response === rpcFormatter.encapsulate('1')) {2874 return Clients.sendRpc(0, imHereRpc);2875 } else Clients.throwError('XWB IM HERE', response);2876 })2877 .then(function (response) {2878 if (response === rpcFormatter.encapsulate('1')) {2879 return Clients.sendRpc(0, imHereRpc);2880 } else Clients.throwError('XWB IM HERE', response);2881 })2882 .then(function (response) {2883 if (response === rpcFormatter.encapsulate('1')) {2884 return Clients.sendRpc(0, imHereRpc);2885 } else Clients.throwError('XWB IM HERE', response);2886 })2887 .then(function (response) {2888 if (response === rpcFormatter.encapsulate('1')) {2889 return Clients.sendRpc(0, imHereRpc);2890 } else Clients.throwError('XWB IM HERE', response);2891 })2892 .then(function (response) {2893 if (response === rpcFormatter.encapsulate('1')) {2894 return Clients.sendRpc(0, imHereRpc);2895 } else Clients.throwError('XWB IM HERE', response);2896 })2897 .then(function (response) {2898 if (response === rpcFormatter.encapsulate('1')) {2899 return Clients.sendRpc(0, imHereRpc);2900 } else Clients.throwError('XWB IM HERE', response);2901 })2902 .then(function (response) {2903 if (response === rpcFormatter.encapsulate('1')) {2904 return Clients.sendRpc(0, imHereRpc);2905 } else Clients.throwError('XWB IM HERE', response);2906 })2907 .then(function (response) {2908 if (response === rpcFormatter.encapsulate('1')) {2909 return Clients.sendRpc(0, imHereRpc);2910 } else Clients.throwError('XWB IM HERE', response);2911 })2912 .then(function (response) {2913 if (response === rpcFormatter.encapsulate('1')) {2914 return Clients.sendRpc(0, imHereRpc);2915 } else Clients.throwError('XWB IM HERE', response);2916 })2917 .then(function (response) {2918 if (response === rpcFormatter.encapsulate('1')) {2919 return Clients.sendRpc(0, imHereRpc);2920 } else Clients.throwError('XWB IM HERE', response);2921 })2922 .then(function (response) {2923 if (response === rpcFormatter.encapsulate('1')) {2924 return Clients.sendRpc(0, imHereRpc);2925 } else Clients.throwError('XWB IM HERE', response);2926 })2927 .then(function (response) {2928 if (response === rpcFormatter.encapsulate('1')) {2929 return Clients.sendRpc(0, imHereRpc);2930 } else Clients.throwError('XWB IM HERE', response);2931 })2932 .then(function (response) {2933 if (response === rpcFormatter.encapsulate('1')) {2934 return Clients.sendRpc(0, imHereRpc);2935 } else Clients.throwError('XWB IM HERE', response);2936 })2937 .then(function (response) {2938 if (response === rpcFormatter.encapsulate('1')) {2939 return Clients.sendRpc(0, imHereRpc);2940 } else Clients.throwError('XWB IM HERE', response);2941 })2942 .then(function (response) {2943 if (response === rpcFormatter.encapsulate('1')) {2944 return Clients.sendRpc(0, imHereRpc);2945 } else Clients.throwError('XWB IM HERE', response);2946 })2947 .then(function (response) {2948 if (response === rpcFormatter.encapsulate('1')) {2949 return Clients.sendRpc(0, imHereRpc);2950 } else Clients.throwError('XWB IM HERE', response);2951 })2952 .then(function (response) {2953 if (response === rpcFormatter.encapsulate('1')) {2954 return Clients.sendRpc(0, imHereRpc);2955 } else Clients.throwError('XWB IM HERE', response);2956 })2957 .then(function (response) {2958 if (response === rpcFormatter.encapsulate('1')) {2959 return Clients.sendRpc(0, imHereRpc);2960 } else Clients.throwError('XWB IM HERE', response);2961 })2962 .then(function (response) {2963 if (response === rpcFormatter.encapsulate('1')) {2964 return Clients.sendRpc(0, imHereRpc);2965 } else Clients.throwError('XWB IM HERE', response);2966 })2967 .then(function (response) {2968 if (response === rpcFormatter.encapsulate('1')) {2969 return Clients.sendRpc(0, imHereRpc);2970 } else Clients.throwError('XWB IM HERE', response);2971 })2972 .then(function (response) {2973 if (response === rpcFormatter.encapsulate('1')) {2974 return Clients.sendRpc(0, imHereRpc);2975 } else Clients.throwError('XWB IM HERE', response);2976 })2977 .then(function (response) {2978 if (response === rpcFormatter.encapsulate('1')) {2979 return Clients.sendRpc(0, imHereRpc);2980 } else Clients.throwError('XWB IM HERE', response);2981 })2982 .then(function (response) {2983 if (response === rpcFormatter.encapsulate('1')) {2984 return Clients.sendRpc(0, imHereRpc);2985 } else Clients.throwError('XWB IM HERE', response);2986 })2987 .then(function (response) {2988 if (response === rpcFormatter.encapsulate('1')) {2989 return Clients.sendRpc(0, imHereRpc);2990 } else Clients.throwError('XWB IM HERE', response);2991 })2992 .then(function (response) {2993 if (response === rpcFormatter.encapsulate('1')) {2994 return Clients.sendRpc(0, imHereRpc);2995 } else Clients.throwError('XWB IM HERE', response);2996 })2997 .then(function (response) {2998 if (response === rpcFormatter.encapsulate('1')) {2999 return Clients.sendRpc(0, imHereRpc);3000 } else Clients.throwError('XWB IM HERE', response);3001 })3002 .then(function (response) {3003 if (response === rpcFormatter.encapsulate('1')) {3004 return Clients.sendRpc(0, imHereRpc);3005 } else Clients.throwError('XWB IM HERE', response);3006 })3007 .then(function (response) {3008 if (response === rpcFormatter.encapsulate('1')) {3009 return Clients.sendRpc(0, imHereRpc);3010 } else Clients.throwError('XWB IM HERE', response);3011 })3012 .then(function (response) {3013 if (response === rpcFormatter.encapsulate('1')) {3014 return Clients.sendRpc(0, imHereRpc);3015 } else Clients.throwError('XWB IM HERE', response);3016 })3017 .then(function (response) {3018 if (response === rpcFormatter.encapsulate('1')) {3019 return Clients.sendRpc(0, imHereRpc);3020 } else Clients.throwError('XWB IM HERE', response);3021 })3022 .then(function (response) {3023 if (response === rpcFormatter.encapsulate('1')) {3024 return Clients.sendRpc(0, imHereRpc);3025 } else Clients.throwError('XWB IM HERE', response);3026 })3027 .then(function (response) {3028 if (response === rpcFormatter.encapsulate('1')) {3029 return Clients.sendRpc(0, imHereRpc);3030 } else Clients.throwError('XWB IM HERE', response);3031 })3032 .then(function (response) {3033 if (response === rpcFormatter.encapsulate('1')) {3034 return Clients.sendRpc(0, imHereRpc);3035 } else Clients.throwError('XWB IM HERE', response);3036 })3037 .then(function (response) {3038 if (response === rpcFormatter.encapsulate('1')) {3039 return Clients.sendRpc(0, imHereRpc);3040 } else Clients.throwError('XWB IM HERE', response);3041 })3042 .then(function (response) {3043 if (response === rpcFormatter.encapsulate('1')) {3044 return Clients.sendRpc(0, imHereRpc);3045 } else Clients.throwError('XWB IM HERE', response);3046 })3047 .then(function (response) {3048 if (response === rpcFormatter.encapsulate('1')) {3049 return Clients.sendRpc(0, imHereRpc);3050 } else Clients.throwError('XWB IM HERE', response);3051 })3052 .then(function (response) {3053 if (response === rpcFormatter.encapsulate('1')) {3054 return Clients.sendRpc(0, imHereRpc);3055 } else Clients.throwError('XWB IM HERE', response);3056 })3057 .then(function (response) {3058 if (response === rpcFormatter.encapsulate('1')) {3059 return Clients.sendRpc(0, imHereRpc);3060 } else Clients.throwError('XWB IM HERE', response);3061 })3062 .then(function (response) {3063 if (response === rpcFormatter.encapsulate('1')) {3064 return Clients.sendRpc(0, imHereRpc);3065 } else Clients.throwError('XWB IM HERE', response);3066 })3067 .then(function (response) {3068 if (response === rpcFormatter.encapsulate('1')) {3069 return Clients.sendRpc(0, imHereRpc);3070 } else Clients.throwError('XWB IM HERE', response);3071 })3072 .then(function (response) {3073 if (response === rpcFormatter.encapsulate('1')) {3074 return Clients.sendRpc(0, imHereRpc);3075 } else Clients.throwError('XWB IM HERE', response);3076 })3077 .then(function (response) {3078 if (response === rpcFormatter.encapsulate('1')) {3079 return Clients.sendRpc(0, imHereRpc);3080 } else Clients.throwError('XWB IM HERE', response);3081 })3082 .then(function (response) {3083 if (response === rpcFormatter.encapsulate('1')) {3084 return Clients.sendRpc(0, imHereRpc);3085 } else Clients.throwError('XWB IM HERE', response);3086 })3087 .then(function (response) {3088 if (response === rpcFormatter.encapsulate('1')) {3089 return Clients.sendRpc(0, imHereRpc);3090 } else Clients.throwError('XWB IM HERE', response);3091 })3092 .then(function (response) {3093 if (response === rpcFormatter.encapsulate('1')) {3094 return Clients.sendRpc(0, imHereRpc);3095 } else Clients.throwError('XWB IM HERE', response);3096 })3097 .then(function (response) {3098 if (response === rpcFormatter.encapsulate('1')) {3099 return Clients.sendRpc(0, imHereRpc);3100 } else Clients.throwError('XWB IM HERE', response);3101 })3102 .then(function (response) {3103 if (response === rpcFormatter.encapsulate('1')) {3104 return Clients.sendRpc(0, imHereRpc);3105 } else Clients.throwError('XWB IM HERE', response);3106 })3107 .then(function (response) {3108 if (response === rpcFormatter.encapsulate('1')) {3109 return Clients.sendRpc(0, imHereRpc);3110 } else Clients.throwError('XWB IM HERE', response);3111 })3112 .then(function (response) {3113 if (response === rpcFormatter.encapsulate('1')) {3114 return Clients.sendRpc(0, imHereRpc);3115 } else Clients.throwError('XWB IM HERE', response);3116 })3117 .then(function (response) {3118 if (response === rpcFormatter.encapsulate('1')) {3119 return Clients.sendRpc(0, imHereRpc);3120 } else Clients.throwError('XWB IM HERE', response);3121 })3122 .then(function (response) {3123 if (response === rpcFormatter.encapsulate('1')) {3124 return Clients.sendRpc(0, imHereRpc);3125 } else Clients.throwError('XWB IM HERE', response);3126 })3127 .then(function (response) {3128 if (response === rpcFormatter.encapsulate('1')) {3129 return Clients.sendRpc(0, imHereRpc);3130 } else Clients.throwError('XWB IM HERE', response);3131 })3132 .then(function (response) {3133 if (response === rpcFormatter.encapsulate('1')) {3134 return Clients.sendRpc(0, imHereRpc);3135 } else Clients.throwError('XWB IM HERE', response);3136 })3137 .then(function (response) {3138 if (response === rpcFormatter.encapsulate('1')) {3139 return Clients.sendRpc(0, imHereRpc);3140 } else Clients.throwError('XWB IM HERE', response);3141 })3142 .then(function (response) {3143 if (response === rpcFormatter.encapsulate('1')) {3144 return Clients.sendRpc(0, imHereRpc);3145 } else Clients.throwError('XWB IM HERE', response);3146 })3147 .then(function (response) {3148 if (response === rpcFormatter.encapsulate('1')) {3149 return Clients.sendRpc(0, imHereRpc);3150 } else Clients.throwError('XWB IM HERE', response);3151 })3152 .then(function (response) {3153 if (response === rpcFormatter.encapsulate('1')) {3154 return Clients.sendRpc(0, imHereRpc);3155 } else Clients.throwError('XWB IM HERE', response);3156 })3157 .then(function (response) {3158 if (response === rpcFormatter.encapsulate('1')) {3159 return Clients.sendRpc(0, imHereRpc);3160 } else Clients.throwError('XWB IM HERE', response);3161 })3162 .then(function (response) {3163 if (response === rpcFormatter.encapsulate('1')) {3164 return Clients.sendRpc(0, imHereRpc);3165 } else Clients.throwError('XWB IM HERE', response);3166 })3167 .then(function (response) {3168 if (response === rpcFormatter.encapsulate('1')) {3169 return Clients.sendRpc(0, imHereRpc);3170 } else Clients.throwError('XWB IM HERE', response);3171 })3172 .then(function (response) {3173 if (response === rpcFormatter.encapsulate('1')) {3174 return Clients.sendRpc(0, imHereRpc);3175 } else Clients.throwError('XWB IM HERE', response);3176 })3177 .then(function (response) {3178 if (response === rpcFormatter.encapsulate('1')) {3179 return Clients.sendRpc(0, imHereRpc);3180 } else Clients.throwError('XWB IM HERE', response);3181 })3182 .then(function (response) {3183 if (response === rpcFormatter.encapsulate('1')) {3184 return Clients.sendRpc(0, imHereRpc);3185 } else Clients.throwError('XWB IM HERE', response);3186 })3187 .then(function (response) {3188 if (response === rpcFormatter.encapsulate('1')) {3189 return Clients.sendRpc(0, imHereRpc);3190 } else Clients.throwError('XWB IM HERE', response);3191 })3192 .then(function (response) {3193 if (response === rpcFormatter.encapsulate('1')) {3194 return Clients.sendRpc(0, imHereRpc);3195 } else Clients.throwError('XWB IM HERE', response);3196 })3197 .then(function (response) {3198 if (response === rpcFormatter.encapsulate('1')) {3199 return Clients.sendRpc(0, imHereRpc);3200 } else Clients.throwError('XWB IM HERE', response);3201 })3202 .then(function (response) {3203 if (response === rpcFormatter.encapsulate('1')) {3204 return Clients.sendRpc(0, imHereRpc);3205 } else Clients.throwError('XWB IM HERE', response);3206 })3207 .then(function (response) {3208 if (response === rpcFormatter.encapsulate('1')) {3209 return Clients.sendRpc(0, imHereRpc);3210 } else Clients.throwError('XWB IM HERE', response);3211 })3212 .then(function (response) {3213 if (response === rpcFormatter.encapsulate('1')) {3214 return Clients.sendRpc(0, imHereRpc);3215 } else Clients.throwError('XWB IM HERE', response);3216 })3217 .then(function (response) {3218 if (response === rpcFormatter.encapsulate('1')) {3219 return Clients.sendRpc(0, imHereRpc);3220 } else Clients.throwError('XWB IM HERE', response);3221 })3222 .then(function (response) {3223 if (response === rpcFormatter.encapsulate('1')) {3224 return Clients.sendRpc(0, imHereRpc);3225 } else Clients.throwError('XWB IM HERE', response);3226 })3227 .then(function (response) {3228 if (response === rpcFormatter.encapsulate('1')) {3229 return Clients.sendRpc(0, imHereRpc);3230 } else Clients.throwError('XWB IM HERE', response);3231 })3232 .then(function (response) {3233 if (response === rpcFormatter.encapsulate('1')) {3234 return Clients.sendRpc(0, imHereRpc);3235 } else Clients.throwError('XWB IM HERE', response);3236 })3237 .then(function (response) {3238 if (response === rpcFormatter.encapsulate('1')) {3239 return Clients.sendRpc(0, imHereRpc);3240 } else Clients.throwError('XWB IM HERE', response);3241 })3242 .then(function (response) {3243 if (response === rpcFormatter.encapsulate('1')) {3244 return Clients.sendRpc(0, imHereRpc);3245 } else Clients.throwError('XWB IM HERE', response);3246 })3247 .then(function (response) {3248 if (response === rpcFormatter.encapsulate('1')) {3249 return Clients.sendRpc(0, imHereRpc);3250 } else Clients.throwError('XWB IM HERE', response);3251 })3252 .then(function (response) {3253 if (response === rpcFormatter.encapsulate('1')) {3254 return Clients.sendRpc(0, imHereRpc);3255 } else Clients.throwError('XWB IM HERE', response);3256 })3257 .then(function (response) {3258 if (response === rpcFormatter.encapsulate('1')) {3259 return Clients.sendRpc(0, imHereRpc);3260 } else Clients.throwError('XWB IM HERE', response);3261 })3262 .then(function (response) {3263 if (response === rpcFormatter.encapsulate('1')) {3264 return Clients.sendRpc(0, imHereRpc);3265 } else Clients.throwError('XWB IM HERE', response);3266 })3267 .then(function (response) {3268 if (response === rpcFormatter.encapsulate('1')) {3269 return Clients.sendRpc(0, imHereRpc);3270 } else Clients.throwError('XWB IM HERE', response);3271 })3272 .then(function (response) {3273 if (response === rpcFormatter.encapsulate('1')) {3274 return Clients.sendRpc(0, imHereRpc);3275 } else Clients.throwError('XWB IM HERE', response);3276 })3277 .then(function (response) {3278 if (response === rpcFormatter.encapsulate('1')) {3279 return Clients.sendRpc(0, imHereRpc);3280 } else Clients.throwError('XWB IM HERE', response);3281 })3282 .then(function (response) {3283 if (response === rpcFormatter.encapsulate('1')) {3284 return Clients.sendRpc(0, imHereRpc);3285 } else Clients.throwError('XWB IM HERE', response);3286 })3287 .then(function (response) {3288 if (response === rpcFormatter.encapsulate('1')) {3289 return Clients.sendRpc(0, imHereRpc);3290 } else Clients.throwError('XWB IM HERE', response);3291 })3292 .then(function (response) {3293 if (response === rpcFormatter.encapsulate('1')) {3294 return Clients.sendRpc(0, imHereRpc);3295 } else Clients.throwError('XWB IM HERE', response);3296 })3297 .then(function (response) {3298 if (response === rpcFormatter.encapsulate('1')) {3299 return Clients.sendRpc(0, imHereRpc);3300 } else Clients.throwError('XWB IM HERE', response);3301 })3302 .then(function (response) {3303 if (response === rpcFormatter.encapsulate('1')) {3304 return Clients.sendRpc(0, imHereRpc);3305 } else Clients.throwError('XWB IM HERE', response);3306 })3307 .then(function (response) {3308 if (response === rpcFormatter.encapsulate('1')) {3309 return Clients.sendRpc(0, imHereRpc);3310 } else Clients.throwError('XWB IM HERE', response);3311 })3312 .then(function (response) {3313 if (response === rpcFormatter.encapsulate('1')) {3314 return Clients.sendRpc(0, imHereRpc);3315 } else Clients.throwError('XWB IM HERE', response);3316 })3317 .then(function (response) {3318 if (response === rpcFormatter.encapsulate('1')) {3319 return Clients.sendRpc(0, imHereRpc);3320 } else Clients.throwError('XWB IM HERE', response);3321 })3322 .then(function (response) {3323 if (response === rpcFormatter.encapsulate('1')) {3324 return Clients.sendRpc(0, imHereRpc);3325 } else Clients.throwError('XWB IM HERE', response);3326 })3327 .then(function (response) {3328 if (response === rpcFormatter.encapsulate('1')) {3329 return Clients.sendRpc(0, imHereRpc);3330 } else Clients.throwError('XWB IM HERE', response);3331 })3332 .then(function (response) {3333 if (response === rpcFormatter.encapsulate('1')) {3334 return Clients.sendRpc(0, imHereRpc);3335 } else Clients.throwError('XWB IM HERE', response);3336 })3337 .then(function (response) {3338 if (response === rpcFormatter.encapsulate('1')) {3339 return Clients.sendRpc(0, imHereRpc);3340 } else Clients.throwError('XWB IM HERE', response);3341 })3342 .then(function (response) {3343 if (response === rpcFormatter.encapsulate('1')) {3344 return Clients.sendRpc(0, imHereRpc);3345 } else Clients.throwError('XWB IM HERE', response);3346 })3347 .then(function (response) {3348 if (response === rpcFormatter.encapsulate('1')) {3349 return Clients.sendRpc(0, imHereRpc);3350 } else Clients.throwError('XWB IM HERE', response);3351 })3352 .then(function (response) {3353 if (response === rpcFormatter.encapsulate('1')) {3354 return Clients.sendRpc(0, imHereRpc);3355 } else Clients.throwError('XWB IM HERE', response);3356 })3357 .then(function (response) {3358 if (response === rpcFormatter.encapsulate('1')) {3359 return Clients.sendRpc(0, imHereRpc);3360 } else Clients.throwError('XWB IM HERE', response);3361 })3362 .then(function (response) {3363 if (response === rpcFormatter.encapsulate('1')) {3364 return Clients.sendRpc(0, imHereRpc);3365 } else Clients.throwError('XWB IM HERE', response);3366 })3367 .then(function (response) {3368 if (response === rpcFormatter.encapsulate('1')) {3369 return Clients.sendRpc(0, imHereRpc);3370 } else Clients.throwError('XWB IM HERE', response);3371 })3372 .then(function (response) {3373 if (response === rpcFormatter.encapsulate('1')) {3374 return Clients.sendRpc(0, imHereRpc);3375 } else Clients.throwError('XWB IM HERE', response);3376 })3377 .then(function (response) {3378 if (response === rpcFormatter.encapsulate('1')) {3379 return Clients.sendRpc(0, imHereRpc);3380 } else Clients.throwError('XWB IM HERE', response);3381 })3382 .then(function (response) {3383 if (response === rpcFormatter.encapsulate('1')) {3384 return Clients.sendRpc(0, imHereRpc);3385 } else Clients.throwError('XWB IM HERE', response);3386 })3387 .then(function (response) {3388 if (response === rpcFormatter.encapsulate('1')) {3389 return Clients.sendRpc(0, imHereRpc);3390 } else Clients.throwError('XWB IM HERE', response);3391 })3392 .then(function (response) {3393 if (response === rpcFormatter.encapsulate('1')) {3394 return Clients.sendRpc(0, imHereRpc);3395 } else Clients.throwError('XWB IM HERE', response);3396 })3397 .then(function (response) {3398 if (response === rpcFormatter.encapsulate('1')) {3399 return Clients.sendRpc(0, imHereRpc);3400 } else Clients.throwError('XWB IM HERE', response);3401 })3402 .then(function (response) {3403 if (response === rpcFormatter.encapsulate('1')) {3404 return Clients.sendRpc(0, imHereRpc);3405 } else Clients.throwError('XWB IM HERE', response);3406 })3407 .then(function (response) {3408 if (response === rpcFormatter.encapsulate('1')) {3409 return Clients.sendRpc(0, imHereRpc);3410 } else Clients.throwError('XWB IM HERE', response);3411 })3412 .then(function (response) {3413 if (response === rpcFormatter.encapsulate('1')) {3414 return Clients.sendRpc(0, imHereRpc);3415 } else Clients.throwError('XWB IM HERE', response);3416 })3417 .then(function (response) {3418 if (response === rpcFormatter.encapsulate('1')) {3419 return Clients.sendRpc(0, imHereRpc);3420 } else Clients.throwError('XWB IM HERE', response);3421 })3422 .then(function (response) {3423 if (response === rpcFormatter.encapsulate('1')) {3424 return Clients.sendRpc(0, imHereRpc);3425 } else Clients.throwError('XWB IM HERE', response);3426 })3427 .then(function (response) {3428 if (response === rpcFormatter.encapsulate('1')) {3429 return Clients.sendRpc(0, imHereRpc);3430 } else Clients.throwError('XWB IM HERE', response);3431 })3432 .then(function (response) {3433 if (response === rpcFormatter.encapsulate('1')) {3434 return Clients.sendRpc(0, imHereRpc);3435 } else Clients.throwError('XWB IM HERE', response);3436 })3437 .then(function (response) {3438 if (response === rpcFormatter.encapsulate('1')) {3439 return Clients.sendRpc(0, imHereRpc);3440 } else Clients.throwError('XWB IM HERE', response);3441 })3442 .then(function (response) {3443 if (response === rpcFormatter.encapsulate('1')) {3444 return Clients.sendRpc(0, imHereRpc);3445 } else Clients.throwError('XWB IM HERE', response);3446 })3447 .then(function (response) {3448 if (response === rpcFormatter.encapsulate('1')) {3449 return Clients.sendRpc(0, imHereRpc);3450 } else Clients.throwError('XWB IM HERE', response);3451 })3452 .then(function (response) {3453 if (response === rpcFormatter.encapsulate('1')) {3454 return Clients.sendRpc(0, imHereRpc);3455 } else Clients.throwError('XWB IM HERE', response);3456 })3457 .then(function (response) {3458 if (response === rpcFormatter.encapsulate('1')) {3459 return Clients.sendRpc(0, imHereRpc);3460 } else Clients.throwError('XWB IM HERE', response);3461 })3462 .then(function (response) {3463 if (response === rpcFormatter.encapsulate('1')) {3464 return Clients.sendRpc(0, imHereRpc);3465 } else Clients.throwError('XWB IM HERE', response);3466 })3467 .then(function (response) {3468 if (response === rpcFormatter.encapsulate('1')) {3469 return Clients.sendRpc(0, imHereRpc);3470 } else Clients.throwError('XWB IM HERE', response);3471 })3472 .then(function (response) {3473 if (response === rpcFormatter.encapsulate('1')) {3474 return Clients.sendRpc(0, imHereRpc);3475 } else Clients.throwError('XWB IM HERE', response);3476 })3477 .then(function (response) {3478 if (response === rpcFormatter.encapsulate('1')) {3479 return Clients.sendRpc(0, imHereRpc);3480 } else Clients.throwError('XWB IM HERE', response);3481 })3482 .then(function (response) {3483 if (response === rpcFormatter.encapsulate('1')) {3484 return Clients.sendRpc(0, imHereRpc);3485 } else Clients.throwError('XWB IM HERE', response);3486 })3487 .then(function (response) {3488 if (response === rpcFormatter.encapsulate('1')) {3489 return Clients.sendRpc(0, imHereRpc);3490 } else Clients.throwError('XWB IM HERE', response);3491 })3492 .then(function (response) {3493 if (response === rpcFormatter.encapsulate('1')) {3494 return Clients.sendRpc(0, imHereRpc);3495 } else Clients.throwError('XWB IM HERE', response);3496 })3497 .then(function (response) {3498 if (response === rpcFormatter.encapsulate('1')) {3499 return Clients.sendRpc(0, imHereRpc);3500 } else Clients.throwError('XWB IM HERE', response);3501 })3502 .then(function (response) {3503 if (response === rpcFormatter.encapsulate('1')) {3504 return Clients.sendRpc(0, imHereRpc);3505 } else Clients.throwError('XWB IM HERE', response);3506 })3507 .then(function (response) {3508 if (response === rpcFormatter.encapsulate('1')) {3509 return Clients.sendRpc(0, imHereRpc);3510 } else Clients.throwError('XWB IM HERE', response);3511 })3512 .then(function (response) {3513 if (response === rpcFormatter.encapsulate('1')) {3514 return Clients.sendRpc(0, imHereRpc);3515 } else Clients.throwError('XWB IM HERE', response);3516 })3517 .then(function (response) {3518 if (response === rpcFormatter.encapsulate('1')) {3519 return Clients.sendRpc(0, imHereRpc);3520 } else Clients.throwError('XWB IM HERE', response);3521 })3522 .then(function (response) {3523 if (response === rpcFormatter.encapsulate('1')) {3524 return Clients.sendRpc(0, imHereRpc);3525 } else Clients.throwError('XWB IM HERE', response);3526 })3527 .then(function (response) {3528 if (response === rpcFormatter.encapsulate('1')) {3529 return Clients.sendRpc(0, imHereRpc);3530 } else Clients.throwError('XWB IM HERE', response);3531 })3532 .then(function (response) {3533 if (response === rpcFormatter.encapsulate('1')) {3534 return Clients.sendRpc(0, imHereRpc);3535 } else Clients.throwError('XWB IM HERE', response);3536 })3537 .then(function (response) {3538 if (response === rpcFormatter.encapsulate('1')) {3539 return Clients.sendRpc(0, imHereRpc);3540 } else Clients.throwError('XWB IM HERE', response);3541 })3542 .then(function (response) {3543 if (response === rpcFormatter.encapsulate('1')) {3544 return Clients.sendRpc(0, imHereRpc);3545 } else Clients.throwError('XWB IM HERE', response);3546 })3547 .then(function (response) {3548 if (response === rpcFormatter.encapsulate('1')) {3549 return Clients.sendRpc(0, imHereRpc);3550 } else Clients.throwError('XWB IM HERE', response);3551 })3552 .then(function (response) {3553 if (response === rpcFormatter.encapsulate('1')) {3554 return Clients.sendRpc(0, imHereRpc);3555 } else Clients.throwError('XWB IM HERE', response);3556 })3557 .then(function (response) {3558 if (response === rpcFormatter.encapsulate('1')) {3559 return Clients.sendRpc(0, imHereRpc);3560 } else Clients.throwError('XWB IM HERE', response);3561 })3562 .then(function (response) {3563 if (response === rpcFormatter.encapsulate('1')) {3564 return Clients.sendRpc(0, imHereRpc);3565 } else Clients.throwError('XWB IM HERE', response);3566 })3567 .then(function (response) {3568 if (response === rpcFormatter.encapsulate('1')) {3569 return Clients.sendRpc(0, imHereRpc);3570 } else Clients.throwError('XWB IM HERE', response);3571 })3572 .then(function (response) {3573 if (response === rpcFormatter.encapsulate('1')) {3574 return Clients.sendRpc(0, imHereRpc);3575 } else Clients.throwError('XWB IM HERE', response);3576 })3577 .then(function (response) {3578 if (response === rpcFormatter.encapsulate('1')) {3579 return Clients.sendRpc(0, imHereRpc);3580 } else Clients.throwError('XWB IM HERE', response);3581 })3582 .then(function (response) {3583 if (response === rpcFormatter.encapsulate('1')) {3584 return Clients.sendRpc(0, imHereRpc);3585 } else Clients.throwError('XWB IM HERE', response);3586 })3587 .then(function (response) {3588 if (response === rpcFormatter.encapsulate('1')) {3589 return Clients.sendRpc(0, imHereRpc);3590 } else Clients.throwError('XWB IM HERE', response);3591 })3592 .then(function (response) {3593 if (response === rpcFormatter.encapsulate('1')) {3594 return Clients.sendRpc(0, imHereRpc);3595 } else Clients.throwError('XWB IM HERE', response);3596 })3597 .then(function (response) {3598 if (response === rpcFormatter.encapsulate('1')) {3599 return Clients.sendRpc(0, imHereRpc);3600 } else Clients.throwError('XWB IM HERE', response);3601 })3602 .then(function (response) {3603 if (response === rpcFormatter.encapsulate('1')) {3604 return Clients.sendRpc(0, imHereRpc);3605 } else Clients.throwError('XWB IM HERE', response);3606 })3607 .then(function (response) {3608 if (response === rpcFormatter.encapsulate('1')) {3609 return Clients.sendRpc(0, imHereRpc);3610 } else Clients.throwError('XWB IM HERE', response);3611 })3612 .then(function (response) {3613 if (response === rpcFormatter.encapsulate('1')) {3614 return Clients.sendRpc(0, imHereRpc);3615 } else Clients.throwError('XWB IM HERE', response);3616 })3617 .then(function (response) {3618 if (response === rpcFormatter.encapsulate('1')) {3619 return Clients.sendRpc(0, imHereRpc);3620 } else Clients.throwError('XWB IM HERE', response);3621 })3622 .then(function (response) {3623 if (response === rpcFormatter.encapsulate('1')) {3624 return Clients.sendRpc(0, imHereRpc);3625 } else Clients.throwError('XWB IM HERE', response);3626 })3627 .then(function (response) {3628 if (response === rpcFormatter.encapsulate('1')) {3629 return Clients.sendRpc(0, imHereRpc);3630 } else Clients.throwError('XWB IM HERE', response);3631 })3632 .then(function (response) {3633 if (response === rpcFormatter.encapsulate('1')) {3634 return Clients.sendRpc(0, imHereRpc);3635 } else Clients.throwError('XWB IM HERE', response);3636 })3637 .then(function (response) {3638 if (response === rpcFormatter.encapsulate('1')) {3639 return Clients.sendRpc(0, imHereRpc);3640 } else Clients.throwError('XWB IM HERE', response);3641 })3642 .then(function (response) {3643 if (response === rpcFormatter.encapsulate('1')) {3644 return Clients.sendRpc(0, imHereRpc);3645 } else Clients.throwError('XWB IM HERE', response);3646 })3647 .then(function (response) {3648 if (response === rpcFormatter.encapsulate('1')) {3649 return Clients.sendRpc(0, imHereRpc);3650 } else Clients.throwError('XWB IM HERE', response);3651 })3652 .then(function (response) {3653 if (response === rpcFormatter.encapsulate('1')) {3654 return Clients.sendRpc(0, imHereRpc);3655 } else Clients.throwError('XWB IM HERE', response);3656 })3657 .then(function (response) {3658 if (response === rpcFormatter.encapsulate('1')) {3659 return Clients.sendRpc(0, imHereRpc);3660 } else Clients.throwError('XWB IM HERE', response);3661 })3662 .then(function (response) {3663 if (response === rpcFormatter.encapsulate('1')) {3664 return Clients.sendRpc(0, imHereRpc);3665 } else Clients.throwError('XWB IM HERE', response);3666 })3667 .then(function (response) {3668 if (response === rpcFormatter.encapsulate('1')) {3669 return Clients.sendRpc(0, imHereRpc);3670 } else Clients.throwError('XWB IM HERE', response);3671 })3672 .then(function (response) {3673 if (response === rpcFormatter.encapsulate('1')) {3674 return Clients.sendRpc(0, imHereRpc);3675 } else Clients.throwError('XWB IM HERE', response);3676 })3677 .then(function (response) {3678 if (response === rpcFormatter.encapsulate('1')) {3679 return Clients.sendRpc(0, imHereRpc);3680 } else Clients.throwError('XWB IM HERE', response);3681 })3682 .then(function (response) {3683 if (response === rpcFormatter.encapsulate('1')) {3684 return Clients.sendRpc(0, imHereRpc);3685 } else Clients.throwError('XWB IM HERE', response);3686 })3687 .then(function (response) {3688 if (response === rpcFormatter.encapsulate('1')) {3689 return Clients.sendRpc(0, imHereRpc);3690 } else Clients.throwError('XWB IM HERE', response);3691 })3692 .then(function (response) {3693 if (response === rpcFormatter.encapsulate('1')) {3694 return Clients.sendRpc(0, imHereRpc);3695 } else Clients.throwError('XWB IM HERE', response);3696 })3697 .then(function (response) {3698 if (response === rpcFormatter.encapsulate('1')) {3699 return Clients.sendRpc(0, imHereRpc);3700 } else Clients.throwError('XWB IM HERE', response);3701 })3702 .then(function (response) {3703 if (response === rpcFormatter.encapsulate('1')) {3704 return Clients.sendRpc(0, imHereRpc);3705 } else Clients.throwError('XWB IM HERE', response);3706 })3707 .then(function (response) {3708 if (response === rpcFormatter.encapsulate('1')) {3709 return Clients.sendRpc(0, imHereRpc);3710 } else Clients.throwError('XWB IM HERE', response);3711 })3712 .then(function (response) {3713 if (response === rpcFormatter.encapsulate('1')) {3714 return Clients.sendRpc(0, imHereRpc);3715 } else Clients.throwError('XWB IM HERE', response);3716 })3717 .then(function (response) {3718 if (response === rpcFormatter.encapsulate('1')) {3719 return Clients.sendRpc(0, imHereRpc);3720 } else Clients.throwError('XWB IM HERE', response);3721 })3722 .then(function (response) {3723 if (response === rpcFormatter.encapsulate('1')) {3724 return Clients.sendRpc(0, imHereRpc);3725 } else Clients.throwError('XWB IM HERE', response);3726 })3727 .then(function (response) {3728 if (response === rpcFormatter.encapsulate('1')) {3729 return Clients.sendRpc(0, imHereRpc);3730 } else Clients.throwError('XWB IM HERE', response);3731 })3732 .then(function (response) {3733 if (response === rpcFormatter.encapsulate('1')) {3734 return Clients.sendRpc(0, imHereRpc);3735 } else Clients.throwError('XWB IM HERE', response);3736 })3737 .then(function (response) {3738 if (response === rpcFormatter.encapsulate('1')) {3739 return Clients.sendRpc(0, imHereRpc);3740 } else Clients.throwError('XWB IM HERE', response);3741 })3742 .then(function (response) {3743 if (response === rpcFormatter.encapsulate('1')) {3744 return Clients.sendRpc(0, imHereRpc);3745 } else Clients.throwError('XWB IM HERE', response);3746 })3747 .then(function (response) {3748 if (response === rpcFormatter.encapsulate('1')) {3749 return Clients.sendRpc(0, imHereRpc);3750 } else Clients.throwError('XWB IM HERE', response);3751 })3752 .then(function (response) {3753 if (response === rpcFormatter.encapsulate('1')) {3754 return Clients.sendRpc(0, imHereRpc);3755 } else Clients.throwError('XWB IM HERE', response);3756 })3757 .then(function (response) {3758 if (response === rpcFormatter.encapsulate('1')) {3759 return Clients.sendRpc(0, imHereRpc);3760 } else Clients.throwError('XWB IM HERE', response);3761 })3762 .then(function (response) {3763 if (response === rpcFormatter.encapsulate('1')) {3764 return Clients.sendRpc(0, imHereRpc);3765 } else Clients.throwError('XWB IM HERE', response);3766 })3767 .then(function (response) {3768 if (response === rpcFormatter.encapsulate('1')) {3769 return Clients.sendRpc(0, imHereRpc);3770 } else Clients.throwError('XWB IM HERE', response);3771 })3772 .then(function (response) {3773 if (response === rpcFormatter.encapsulate('1')) {3774 return Clients.sendRpc(0, imHereRpc);3775 } else Clients.throwError('XWB IM HERE', response);3776 })3777 .then(function (response) {3778 if (response === rpcFormatter.encapsulate('1')) {3779 return Clients.sendRpc(0, imHereRpc);3780 } else Clients.throwError('XWB IM HERE', response);3781 })3782 .then(function (response) {3783 if (response === rpcFormatter.encapsulate('1')) {3784 return Clients.sendRpc(0, imHereRpc);3785 } else Clients.throwError('XWB IM HERE', response);3786 })3787 .then(function (response) {3788 if (response === rpcFormatter.encapsulate('1')) {3789 return Clients.sendRpc(0, imHereRpc);3790 } else Clients.throwError('XWB IM HERE', response);3791 })3792 .then(function (response) {3793 if (response === rpcFormatter.encapsulate('1')) {3794 return Clients.sendRpc(0, imHereRpc);3795 } else Clients.throwError('XWB IM HERE', response);3796 })3797 .then(function (response) {3798 if (response === rpcFormatter.encapsulate('1')) {3799 return Clients.sendRpc(0, imHereRpc);3800 } else Clients.throwError('XWB IM HERE', response);3801 })3802 .then(function (response) {3803 if (response === rpcFormatter.encapsulate('1')) {3804 return Clients.sendRpc(0, imHereRpc);3805 } else Clients.throwError('XWB IM HERE', response);3806 })3807 .then(function (response) {3808 if (response === rpcFormatter.encapsulate('1')) {3809 return Clients.sendRpc(0, imHereRpc);3810 } else Clients.throwError('XWB IM HERE', response);3811 })3812 .then(function (response) {3813 if (response === rpcFormatter.encapsulate('1')) {3814 return Clients.sendRpc(0, imHereRpc);3815 } else Clients.throwError('XWB IM HERE', response);3816 })3817 .then(function (response) {3818 if (response === rpcFormatter.encapsulate('1')) {3819 return Clients.sendRpc(0, imHereRpc);3820 } else Clients.throwError('XWB IM HERE', response);3821 })3822 .then(function (response) {3823 if (response === rpcFormatter.encapsulate('1')) {3824 return Clients.sendRpc(0, imHereRpc);3825 } else Clients.throwError('XWB IM HERE', response);3826 })3827 .then(function (response) {3828 if (response === rpcFormatter.encapsulate('1')) {3829 return Clients.sendRpc(0, imHereRpc);3830 } else Clients.throwError('XWB IM HERE', response);3831 })3832 .then(function (response) {3833 if (response === rpcFormatter.encapsulate('1')) {3834 return Clients.sendRpc(0, imHereRpc);3835 } else Clients.throwError('XWB IM HERE', response);3836 })3837 .then(function (response) {3838 if (response === rpcFormatter.encapsulate('1')) {3839 return Clients.sendRpc(0, imHereRpc);3840 } else Clients.throwError('XWB IM HERE', response);3841 })3842 .then(function (response) {3843 if (response === rpcFormatter.encapsulate('1')) {3844 return Clients.sendRpc(0, imHereRpc);3845 } else Clients.throwError('XWB IM HERE', response);3846 })3847 .then(function (response) {3848 if (response === rpcFormatter.encapsulate('1')) {3849 return Clients.sendRpc(0, imHereRpc);3850 } else Clients.throwError('XWB IM HERE', response);3851 })3852 .then(function (response) {3853 if (response === rpcFormatter.encapsulate('1')) {3854 return Clients.sendRpc(0, imHereRpc);3855 } else Clients.throwError('XWB IM HERE', response);3856 })3857 .then(function (response) {3858 if (response === rpcFormatter.encapsulate('1')) {3859 return Clients.sendRpc(0, imHereRpc);3860 } else Clients.throwError('XWB IM HERE', response);3861 })3862 .then(function (response) {3863 if (response === rpcFormatter.encapsulate('1')) {3864 return Clients.sendRpc(0, imHereRpc);3865 } else Clients.throwError('XWB IM HERE', response);3866 })3867 .then(function (response) {3868 if (response === rpcFormatter.encapsulate('1')) {3869 return Clients.sendRpc(0, imHereRpc);3870 } else Clients.throwError('XWB IM HERE', response);3871 })3872 .then(function (response) {3873 if (response === rpcFormatter.encapsulate('1')) {3874 return Clients.sendRpc(0, imHereRpc);3875 } else Clients.throwError('XWB IM HERE', response);3876 })3877 .then(function (response) {3878 if (response === rpcFormatter.encapsulate('1')) {3879 return Clients.sendRpc(0, imHereRpc);3880 } else Clients.throwError('XWB IM HERE', response);3881 })3882 .then(function (response) {3883 if (response === rpcFormatter.encapsulate('1')) {3884 return Clients.sendRpc(0, imHereRpc);3885 } else Clients.throwError('XWB IM HERE', response);3886 })3887 .then(function (response) {3888 if (response === rpcFormatter.encapsulate('1')) {3889 return Clients.sendRpc(0, imHereRpc);3890 } else Clients.throwError('XWB IM HERE', response);3891 })3892 .then(function (response) {3893 if (response === rpcFormatter.encapsulate('1')) {3894 return Clients.sendRpc(0, imHereRpc);3895 } else Clients.throwError('XWB IM HERE', response);3896 })3897 .then(function (response) {3898 if (response === rpcFormatter.encapsulate('1')) {3899 return Clients.sendRpc(0, imHereRpc);3900 } else Clients.throwError('XWB IM HERE', response);3901 })3902 .then(function (response) {3903 if (response === rpcFormatter.encapsulate('1')) {3904 return Clients.sendRpc(0, imHereRpc);3905 } else Clients.throwError('XWB IM HERE', response);3906 })3907 .then(function (response) {3908 if (response === rpcFormatter.encapsulate('1')) {3909 return Clients.sendRpc(0, imHereRpc);3910 } else Clients.throwError('XWB IM HERE', response);3911 })3912 .then(function (response) {3913 if (response === rpcFormatter.encapsulate('1')) {3914 return Clients.sendRpc(0, imHereRpc);3915 } else Clients.throwError('XWB IM HERE', response);3916 })3917 .then(function (response) {3918 if (response === rpcFormatter.encapsulate('1')) {3919 return Clients.sendRpc(0, imHereRpc);3920 } else Clients.throwError('XWB IM HERE', response);3921 })3922 .then(function (response) {3923 if (response === rpcFormatter.encapsulate('1')) {3924 return Clients.sendRpc(0, imHereRpc);3925 } else Clients.throwError('XWB IM HERE', response);3926 })3927 .then(function (response) {3928 if (response === rpcFormatter.encapsulate('1')) {3929 return Clients.sendRpc(0, imHereRpc);3930 } else Clients.throwError('XWB IM HERE', response);3931 })3932 .then(function (response) {3933 if (response === rpcFormatter.encapsulate('1')) {3934 return Clients.sendRpc(0, imHereRpc);3935 } else Clients.throwError('XWB IM HERE', response);3936 })3937 .then(function (response) {3938 if (response === rpcFormatter.encapsulate('1')) {3939 return Clients.sendRpc(0, imHereRpc);3940 } else Clients.throwError('XWB IM HERE', response);3941 })3942 .then(function (response) {3943 if (response === rpcFormatter.encapsulate('1')) {3944 return Clients.sendRpc(0, imHereRpc);3945 } else Clients.throwError('XWB IM HERE', response);3946 })3947 .then(function (response) {3948 if (response === rpcFormatter.encapsulate('1')) {3949 return Clients.sendRpc(0, imHereRpc);3950 } else Clients.throwError('XWB IM HERE', response);3951 })3952 .then(function (response) {3953 if (response === rpcFormatter.encapsulate('1')) {3954 return Clients.sendRpc(0, imHereRpc);3955 } else Clients.throwError('XWB IM HERE', response);3956 })3957 .then(function (response) {3958 if (response === rpcFormatter.encapsulate('1')) {3959 return Clients.sendRpc(0, imHereRpc);3960 } else Clients.throwError('XWB IM HERE', response);3961 })3962 .then(function (response) {3963 if (response === rpcFormatter.encapsulate('1')) {3964 return Clients.sendRpc(0, imHereRpc);3965 } else Clients.throwError('XWB IM HERE', response);3966 })3967 .then(function (response) {3968 if (response === rpcFormatter.encapsulate('1')) {3969 return Clients.sendRpc(0, imHereRpc);3970 } else Clients.throwError('XWB IM HERE', response);3971 })3972 .then(function (response) {3973 if (response === rpcFormatter.encapsulate('1')) {3974 return Clients.sendRpc(0, imHereRpc);3975 } else Clients.throwError('XWB IM HERE', response);3976 })3977 .then(function (response) {3978 if (response === rpcFormatter.encapsulate('1')) {3979 return Clients.sendRpc(0, imHereRpc);3980 } else Clients.throwError('XWB IM HERE', response);3981 })3982 .then(function (response) {3983 if (response === rpcFormatter.encapsulate('1')) {3984 return Clients.sendRpc(0, imHereRpc);3985 } else Clients.throwError('XWB IM HERE', response);3986 })3987 .then(function (response) {3988 if (response === rpcFormatter.encapsulate('1')) {3989 return Clients.sendRpc(0, imHereRpc);3990 } else Clients.throwError('XWB IM HERE', response);3991 })3992 .then(function (response) {3993 if (response === rpcFormatter.encapsulate('1')) {3994 return Clients.sendRpc(0, imHereRpc);3995 } else Clients.throwError('XWB IM HERE', response);3996 })3997 .then(function (response) {3998 if (response === rpcFormatter.encapsulate('1')) {3999 return Clients.sendRpc(0, imHereRpc);4000 } else Clients.throwError('XWB IM HERE', response);4001 })4002 .then(function (response) {4003 if (response === rpcFormatter.encapsulate('1')) {4004 return Clients.sendRpc(0, imHereRpc);4005 } else Clients.throwError('XWB IM HERE', response);4006 })4007 .then(function (response) {4008 if (response === rpcFormatter.encapsulate('1')) {4009 return Clients.sendRpc(0, imHereRpc);4010 } else Clients.throwError('XWB IM HERE', response);4011 })4012 .then(function (response) {4013 if (response === rpcFormatter.encapsulate('1')) {4014 return Clients.sendRpc(0, imHereRpc);4015 } else Clients.throwError('XWB IM HERE', response);4016 })4017 .then(function (response) {4018 if (response === rpcFormatter.encapsulate('1')) {4019 return Clients.sendRpc(0, imHereRpc);4020 } else Clients.throwError('XWB IM HERE', response);4021 })4022 .then(function (response) {4023 if (response === rpcFormatter.encapsulate('1')) {4024 return Clients.sendRpc(0, imHereRpc);4025 } else Clients.throwError('XWB IM HERE', response);4026 })4027 .then(function (response) {4028 if (response === rpcFormatter.encapsulate('1')) {4029 return Clients.sendRpc(0, imHereRpc);4030 } else Clients.throwError('XWB IM HERE', response);4031 })4032 .then(function (response) {4033 if (response === rpcFormatter.encapsulate('1')) {4034 return Clients.sendRpc(0, imHereRpc);4035 } else Clients.throwError('XWB IM HERE', response);4036 })4037 .then(function (response) {4038 if (response === rpcFormatter.encapsulate('1')) {4039 return Clients.sendRpc(0, imHereRpc);4040 } else Clients.throwError('XWB IM HERE', response);4041 })4042 .then(function (response) {4043 if (response === rpcFormatter.encapsulate('1')) {4044 return Clients.sendRpc(0, imHereRpc);4045 } else Clients.throwError('XWB IM HERE', response);4046 })4047 .then(function (response) {4048 if (response === rpcFormatter.encapsulate('1')) {4049 return Clients.sendRpc(0, imHereRpc);4050 } else Clients.throwError('XWB IM HERE', response);4051 })4052 .then(function (response) {4053 if (response === rpcFormatter.encapsulate('1')) {4054 return Clients.sendRpc(0, imHereRpc);4055 } else Clients.throwError('XWB IM HERE', response);4056 })4057 .then(function (response) {4058 if (response === rpcFormatter.encapsulate('1')) {4059 return Clients.sendRpc(0, imHereRpc);4060 } else Clients.throwError('XWB IM HERE', response);4061 })4062 .then(function (response) {4063 if (response === rpcFormatter.encapsulate('1')) {4064 return Clients.sendRpc(0, imHereRpc);4065 } else Clients.throwError('XWB IM HERE', response);4066 })4067 .then(function (response) {4068 if (response === rpcFormatter.encapsulate('1')) {4069 return Clients.sendRpc(0, imHereRpc);4070 } else Clients.throwError('XWB IM HERE', response);4071 })4072 .then(function (response) {4073 if (response === rpcFormatter.encapsulate('1')) {4074 return Clients.sendRpc(0, imHereRpc);4075 } else Clients.throwError('XWB IM HERE', response);4076 })4077 .then(function (response) {4078 if (response === rpcFormatter.encapsulate('1')) {4079 return Clients.sendRpc(0, imHereRpc);4080 } else Clients.throwError('XWB IM HERE', response);4081 })4082 .then(function (response) {4083 if (response === rpcFormatter.encapsulate('1')) {4084 return Clients.sendRpc(0, imHereRpc);4085 } else Clients.throwError('XWB IM HERE', response);4086 })4087 .then(function (response) {4088 if (response === rpcFormatter.encapsulate('1')) {4089 return Clients.sendRpc(0, imHereRpc);4090 } else Clients.throwError('XWB IM HERE', response);4091 })4092 .then(function (response) {4093 if (response === rpcFormatter.encapsulate('1')) {4094 return Clients.sendRpc(0, imHereRpc);4095 } else Clients.throwError('XWB IM HERE', response);4096 })4097 .then(function (response) {4098 if (response === rpcFormatter.encapsulate('1')) {4099 return Clients.sendRpc(0, imHereRpc);4100 } else Clients.throwError('XWB IM HERE', response);4101 })4102 .then(function (response) {4103 if (response === rpcFormatter.encapsulate('1')) {4104 return Clients.sendRpc(0, imHereRpc);4105 } else Clients.throwError('XWB IM HERE', response);4106 })4107 .then(function (response) {4108 if (response === rpcFormatter.encapsulate('1')) {4109 return Clients.sendRpc(0, imHereRpc);4110 } else Clients.throwError('XWB IM HERE', response);4111 })4112 .then(function (response) {4113 if (response === rpcFormatter.encapsulate('1')) {4114 return Clients.sendRpc(0, imHereRpc);4115 } else Clients.throwError('XWB IM HERE', response);4116 })4117 .then(function (response) {4118 if (response === rpcFormatter.encapsulate('1')) {4119 return Clients.sendRpc(0, imHereRpc);4120 } else Clients.throwError('XWB IM HERE', response);4121 })4122 .then(function (response) {4123 if (response === rpcFormatter.encapsulate('1')) {4124 return Clients.sendRpc(0, imHereRpc);4125 } else Clients.throwError('XWB IM HERE', response);4126 })4127 .then(function (response) {4128 if (response === rpcFormatter.encapsulate('1')) {4129 return Clients.sendRpc(0, imHereRpc);4130 } else Clients.throwError('XWB IM HERE', response);4131 })4132 .then(function (response) {4133 if (response === rpcFormatter.encapsulate('1')) {4134 return Clients.sendRpc(0, imHereRpc);4135 } else Clients.throwError('XWB IM HERE', response);4136 })4137 .then(function (response) {4138 if (response === rpcFormatter.encapsulate('1')) {4139 return Clients.sendRpc(0, imHereRpc);4140 } else Clients.throwError('XWB IM HERE', response);4141 })4142 .then(function (response) {4143 if (response === rpcFormatter.encapsulate('1')) {4144 return Clients.sendRpc(0, imHereRpc);4145 } else Clients.throwError('XWB IM HERE', response);4146 })4147 .then(function (response) {4148 if (response === rpcFormatter.encapsulate('1')) {4149 return Clients.sendRpc(0, imHereRpc);4150 } else Clients.throwError('XWB IM HERE', response);4151 })4152 .then(function (response) {4153 if (response === rpcFormatter.encapsulate('1')) {4154 return Clients.sendRpc(0, imHereRpc);4155 } else Clients.throwError('XWB IM HERE', response);4156 })4157 .then(function (response) {4158 if (response === rpcFormatter.encapsulate('1')) {4159 return Clients.sendRpc(0, imHereRpc);4160 } else Clients.throwError('XWB IM HERE', response);4161 })4162 .then(function (response) {4163 if (response === rpcFormatter.encapsulate('1')) {4164 return Clients.sendRpc(0, imHereRpc);4165 } else Clients.throwError('XWB IM HERE', response);4166 })4167 .then(function (response) {4168 if (response === rpcFormatter.encapsulate('1')) {4169 return Clients.sendRpc(0, imHereRpc);4170 } else Clients.throwError('XWB IM HERE', response);4171 })4172 .then(function (response) {4173 if (response === rpcFormatter.encapsulate('1')) {4174 return Clients.sendRpc(0, imHereRpc);4175 } else Clients.throwError('XWB IM HERE', response);4176 })4177 .then(function (response) {4178 if (response === rpcFormatter.encapsulate('1')) {4179 return Clients.sendRpc(0, imHereRpc);4180 } else Clients.throwError('XWB IM HERE', response);4181 })4182 .then(function (response) {4183 if (response === rpcFormatter.encapsulate('1')) {4184 return Clients.sendRpc(0, imHereRpc);4185 } else Clients.throwError('XWB IM HERE', response);4186 })4187 .then(function (response) {4188 if (response === rpcFormatter.encapsulate('1')) {4189 return Clients.sendRpc(0, imHereRpc);4190 } else Clients.throwError('XWB IM HERE', response);4191 })4192 .then(function (response) {4193 if (response === rpcFormatter.encapsulate('1')) {4194 return Clients.sendRpc(0, imHereRpc);4195 } else Clients.throwError('XWB IM HERE', response);4196 })4197 .then(function (response) {4198 if (response === rpcFormatter.encapsulate('1')) {4199 return Clients.sendRpc(0, imHereRpc);4200 } else Clients.throwError('XWB IM HERE', response);4201 })4202 .then(function (response) {4203 if (response === rpcFormatter.encapsulate('1')) {4204 return Clients.sendRpc(0, imHereRpc);4205 } else Clients.throwError('XWB IM HERE', response);4206 })4207 .then(function (response) {4208 if (response === rpcFormatter.encapsulate('1')) {4209 return Clients.sendRpc(0, imHereRpc);4210 } else Clients.throwError('XWB IM HERE', response);4211 })4212 .then(function (response) {4213 if (response === rpcFormatter.encapsulate('1')) {4214 return Clients.sendRpc(0, imHereRpc);4215 } else Clients.throwError('XWB IM HERE', response);4216 })4217 .then(function (response) {4218 if (response === rpcFormatter.encapsulate('1')) {4219 return Clients.sendRpc(0, imHereRpc);4220 } else Clients.throwError('XWB IM HERE', response);4221 })4222 .then(function (response) {4223 if (response === rpcFormatter.encapsulate('1')) {4224 return Clients.sendRpc(0, imHereRpc);4225 } else Clients.throwError('XWB IM HERE', response);4226 })4227 .then(function (response) {4228 if (response === rpcFormatter.encapsulate('1')) {4229 return Clients.sendRpc(0, imHereRpc);4230 } else Clients.throwError('XWB IM HERE', response);4231 })4232 .then(function (response) {4233 if (response === rpcFormatter.encapsulate('1')) {4234 return Clients.sendRpc(0, imHereRpc);4235 } else Clients.throwError('XWB IM HERE', response);4236 })4237 .then(function (response) {4238 if (response === rpcFormatter.encapsulate('1')) {4239 return Clients.sendRpc(0, imHereRpc);4240 } else Clients.throwError('XWB IM HERE', response);4241 })4242 .then(function (response) {4243 if (response === rpcFormatter.encapsulate('1')) {4244 return Clients.sendRpc(0, imHereRpc);4245 } else Clients.throwError('XWB IM HERE', response);4246 })4247 .then(function (response) {4248 if (response === rpcFormatter.encapsulate('1')) {4249 return Clients.sendRpc(0, imHereRpc);4250 } else Clients.throwError('XWB IM HERE', response);4251 })4252 .then(function (response) {4253 if (response === rpcFormatter.encapsulate('1')) {4254 return Clients.sendRpc(0, imHereRpc);4255 } else Clients.throwError('XWB IM HERE', response);4256 })4257 .then(function (response) {4258 if (response === rpcFormatter.encapsulate('1')) {4259 return Clients.sendRpc(0, imHereRpc);4260 } else Clients.throwError('XWB IM HERE', response);4261 })4262 .then(function (response) {4263 if (response === rpcFormatter.encapsulate('1')) {4264 return Clients.sendRpc(0, imHereRpc);4265 } else Clients.throwError('XWB IM HERE', response);4266 })4267 .then(function (response) {4268 if (response === rpcFormatter.encapsulate('1')) {4269 return Clients.sendRpc(0, imHereRpc);4270 } else Clients.throwError('XWB IM HERE', response);4271 })4272 .then(function (response) {4273 if (response === rpcFormatter.encapsulate('1')) {4274 return Clients.sendRpc(0, imHereRpc);4275 } else Clients.throwError('XWB IM HERE', response);4276 })4277 .then(function (response) {4278 if (response === rpcFormatter.encapsulate('1')) {4279 return Clients.sendRpc(0, imHereRpc);4280 } else Clients.throwError('XWB IM HERE', response);4281 })4282 .then(function (response) {4283 if (response === rpcFormatter.encapsulate('1')) {4284 return Clients.sendRpc(0, imHereRpc);4285 } else Clients.throwError('XWB IM HERE', response);4286 })4287 .then(function (response) {4288 if (response === rpcFormatter.encapsulate('1')) {4289 return Clients.sendRpc(0, imHereRpc);4290 } else Clients.throwError('XWB IM HERE', response);4291 })4292 .then(function (response) {4293 if (response === rpcFormatter.encapsulate('1')) {4294 return Clients.sendRpc(0, imHereRpc);4295 } else Clients.throwError('XWB IM HERE', response);4296 })4297 .then(function (response) {4298 if (response === rpcFormatter.encapsulate('1')) {4299 return Clients.sendRpc(0, imHereRpc);4300 } else Clients.throwError('XWB IM HERE', response);4301 })4302 .then(function (response) {4303 if (response === rpcFormatter.encapsulate('1')) {4304 return Clients.sendRpc(0, imHereRpc);4305 } else Clients.throwError('XWB IM HERE', response);4306 })4307 .then(function (response) {4308 if (response === rpcFormatter.encapsulate('1')) {4309 return Clients.sendRpc(0, imHereRpc);4310 } else Clients.throwError('XWB IM HERE', response);4311 })4312 .then(function (response) {4313 if (response === rpcFormatter.encapsulate('1')) {4314 return Clients.sendRpc(0, imHereRpc);4315 } else Clients.throwError('XWB IM HERE', response);4316 })4317 .then(function (response) {4318 if (response === rpcFormatter.encapsulate('1')) {4319 return Clients.sendRpc(0, imHereRpc);4320 } else Clients.throwError('XWB IM HERE', response);4321 })4322 .then(function (response) {4323 if (response === rpcFormatter.encapsulate('1')) {4324 return Clients.sendRpc(0, imHereRpc);4325 } else Clients.throwError('XWB IM HERE', response);4326 })4327 .then(function (response) {4328 if (response === rpcFormatter.encapsulate('1')) {4329 return Clients.sendRpc(0, imHereRpc);4330 } else Clients.throwError('XWB IM HERE', response);4331 })4332 .then(function (response) {4333 if (response === rpcFormatter.encapsulate('1')) {4334 return Clients.sendRpc(0, imHereRpc);4335 } else Clients.throwError('XWB IM HERE', response);4336 })4337 .then(function (response) {4338 if (response === rpcFormatter.encapsulate('1')) {4339 return Clients.sendRpc(0, imHereRpc);4340 } else Clients.throwError('XWB IM HERE', response);4341 })4342 .then(function (response) {4343 if (response === rpcFormatter.encapsulate('1')) {4344 return Clients.sendRpc(0, imHereRpc);4345 } else Clients.throwError('XWB IM HERE', response);4346 })4347 .then(function (response) {4348 if (response === rpcFormatter.encapsulate('1')) {4349 return Clients.sendRpc(0, imHereRpc);4350 } else Clients.throwError('XWB IM HERE', response);4351 })4352 .then(function (response) {4353 if (response === rpcFormatter.encapsulate('1')) {4354 return Clients.sendRpc(0, imHereRpc);4355 } else Clients.throwError('XWB IM HERE', response);4356 })4357 .then(function (response) {4358 if (response === rpcFormatter.encapsulate('1')) {4359 return Clients.sendRpc(0, imHereRpc);4360 } else Clients.throwError('XWB IM HERE', response);4361 })4362 .then(function (response) {4363 if (response === rpcFormatter.encapsulate('1')) {4364 return Clients.sendRpc(0, imHereRpc);4365 } else Clients.throwError('XWB IM HERE', response);4366 })4367 .then(function (response) {4368 if (response === rpcFormatter.encapsulate('1')) {4369 return Clients.sendRpc(0, imHereRpc);4370 } else Clients.throwError('XWB IM HERE', response);4371 })4372 .then(function (response) {4373 if (response === rpcFormatter.encapsulate('1')) {4374 return Clients.sendRpc(0, imHereRpc);4375 } else Clients.throwError('XWB IM HERE', response);4376 })4377 .then(function (response) {4378 if (response === rpcFormatter.encapsulate('1')) {4379 return Clients.sendRpc(0, imHereRpc);4380 } else Clients.throwError('XWB IM HERE', response);4381 })4382 .then(function (response) {4383 if (response === rpcFormatter.encapsulate('1')) {4384 return Clients.sendRpc(0, imHereRpc);4385 } else Clients.throwError('XWB IM HERE', response);4386 })4387 .then(function (response) {4388 if (response === rpcFormatter.encapsulate('1')) {4389 return Clients.sendRpc(0, imHereRpc);4390 } else Clients.throwError('XWB IM HERE', response);4391 })4392 .then(function (response) {4393 if (response === rpcFormatter.encapsulate('1')) {4394 return Clients.sendRpc(0, imHereRpc);4395 } else Clients.throwError('XWB IM HERE', response);4396 })4397 .then(function (response) {4398 if (response === rpcFormatter.encapsulate('1')) {4399 return Clients.sendRpc(0, imHereRpc);4400 } else Clients.throwError('XWB IM HERE', response);4401 })4402 .then(function (response) {4403 if (response === rpcFormatter.encapsulate('1')) {4404 return Clients.sendRpc(0, imHereRpc);4405 } else Clients.throwError('XWB IM HERE', response);4406 })4407 .then(function (response) {4408 if (response === rpcFormatter.encapsulate('1')) {4409 return Clients.sendRpc(0, imHereRpc);4410 } else Clients.throwError('XWB IM HERE', response);4411 })4412 .then(function (response) {4413 if (response === rpcFormatter.encapsulate('1')) {4414 return Clients.sendRpc(0, imHereRpc);4415 } else Clients.throwError('XWB IM HERE', response);4416 })4417 .then(function (response) {4418 if (response === rpcFormatter.encapsulate('1')) {4419 return Clients.sendRpc(0, imHereRpc);4420 } else Clients.throwError('XWB IM HERE', response);4421 })4422 .then(function (response) {4423 if (response === rpcFormatter.encapsulate('1')) {4424 return Clients.sendRpc(0, imHereRpc);4425 } else Clients.throwError('XWB IM HERE', response);4426 })4427 .then(function (response) {4428 if (response === rpcFormatter.encapsulate('1')) {4429 return Clients.sendRpc(0, imHereRpc);4430 } else Clients.throwError('XWB IM HERE', response);4431 })4432 .then(function (response) {4433 if (response === rpcFormatter.encapsulate('1')) {4434 return Clients.sendRpc(0, imHereRpc);4435 } else Clients.throwError('XWB IM HERE', response);4436 })4437 .then(function (response) {4438 if (response === rpcFormatter.encapsulate('1')) {4439 return Clients.sendRpc(0, imHereRpc);4440 } else Clients.throwError('XWB IM HERE', response);4441 })4442 .then(function (response) {4443 if (response === rpcFormatter.encapsulate('1')) {4444 return Clients.sendRpc(0, imHereRpc);4445 } else Clients.throwError('XWB IM HERE', response);4446 })4447 .then(function (response) {4448 if (response === rpcFormatter.encapsulate('1')) {4449 return Clients.sendRpc(0, imHereRpc);4450 } else Clients.throwError('XWB IM HERE', response);4451 })4452 .then(function (response) {4453 if (response === rpcFormatter.encapsulate('1')) {4454 return Clients.sendRpc(0, imHereRpc);4455 } else Clients.throwError('XWB IM HERE', response);4456 })4457 .then(function (response) {4458 if (response === rpcFormatter.encapsulate('1')) {4459 return Clients.sendRpc(0, imHereRpc);4460 } else Clients.throwError('XWB IM HERE', response);4461 })4462 .then(function (response) {4463 if (response === rpcFormatter.encapsulate('1')) {4464 return Clients.sendRpc(0, imHereRpc);4465 } else Clients.throwError('XWB IM HERE', response);4466 })4467 .then(function (response) {4468 if (response === rpcFormatter.encapsulate('1')) {4469 return Clients.sendRpc(0, imHereRpc);4470 } else Clients.throwError('XWB IM HERE', response);4471 })4472 .then(function (response) {4473 if (response === rpcFormatter.encapsulate('1')) {4474 return Clients.sendRpc(0, imHereRpc);4475 } else Clients.throwError('XWB IM HERE', response);4476 })4477 .then(function (response) {4478 if (response === rpcFormatter.encapsulate('1')) {4479 return Clients.sendRpc(0, imHereRpc);4480 } else Clients.throwError('XWB IM HERE', response);4481 })4482 .then(function (response) {4483 if (response === rpcFormatter.encapsulate('1')) {4484 return Clients.sendRpc(0, imHereRpc);4485 } else Clients.throwError('XWB IM HERE', response);4486 })4487 .then(function (response) {4488 if (response === rpcFormatter.encapsulate('1')) {4489 return Clients.sendRpc(0, imHereRpc);4490 } else Clients.throwError('XWB IM HERE', response);4491 })4492 .then(function (response) {4493 if (response === rpcFormatter.encapsulate('1')) {4494 return Clients.sendRpc(0, imHereRpc);4495 } else Clients.throwError('XWB IM HERE', response);4496 })4497 .then(function (response) {4498 if (response === rpcFormatter.encapsulate('1')) {4499 return Clients.sendRpc(0, imHereRpc);4500 } else Clients.throwError('XWB IM HERE', response);4501 })4502 .then(function (response) {4503 if (response === rpcFormatter.encapsulate('1')) {4504 return Clients.sendRpc(0, imHereRpc);4505 } else Clients.throwError('XWB IM HERE', response);4506 })4507 .then(function (response) {4508 if (response === rpcFormatter.encapsulate('1')) {4509 return Clients.sendRpc(0, imHereRpc);4510 } else Clients.throwError('XWB IM HERE', response);4511 })4512 .then(function (response) {4513 if (response === rpcFormatter.encapsulate('1')) {4514 return Clients.sendRpc(0, imHereRpc);4515 } else Clients.throwError('XWB IM HERE', response);4516 })4517 .then(function (response) {4518 if (response === rpcFormatter.encapsulate('1')) {4519 return Clients.sendRpc(0, imHereRpc);4520 } else Clients.throwError('XWB IM HERE', response);4521 })4522 .then(function (response) {4523 if (response === rpcFormatter.encapsulate('1')) {4524 return Clients.sendRpc(0, imHereRpc);4525 } else Clients.throwError('XWB IM HERE', response);4526 })4527 .then(function (response) {4528 if (response === rpcFormatter.encapsulate('1')) {4529 return Clients.sendRpc(0, imHereRpc);4530 } else Clients.throwError('XWB IM HERE', response);4531 })4532 .then(function (response) {4533 if (response === rpcFormatter.encapsulate('1')) {4534 return Clients.sendRpc(0, imHereRpc);4535 } else Clients.throwError('XWB IM HERE', response);4536 })4537 .then(function (response) {4538 if (response === rpcFormatter.encapsulate('1')) {4539 return Clients.sendRpc(0, imHereRpc);4540 } else Clients.throwError('XWB IM HERE', response);4541 })4542 .then(function (response) {4543 if (response === rpcFormatter.encapsulate('1')) {4544 return Clients.sendRpc(0, imHereRpc);4545 } else Clients.throwError('XWB IM HERE', response);4546 })4547 .then(function (response) {4548 if (response === rpcFormatter.encapsulate('1')) {4549 return Clients.sendRpc(0, imHereRpc);4550 } else Clients.throwError('XWB IM HERE', response);4551 })4552 .then(function (response) {4553 if (response === rpcFormatter.encapsulate('1')) {4554 return Clients.sendRpc(0, imHereRpc);4555 } else Clients.throwError('XWB IM HERE', response);4556 })4557 .then(function (response) {4558 if (response === rpcFormatter.encapsulate('1')) {4559 return Clients.sendRpc(0, imHereRpc);4560 } else Clients.throwError('XWB IM HERE', response);4561 })4562 .then(function (response) {4563 if (response === rpcFormatter.encapsulate('1')) {4564 return Clients.sendRpc(0, imHereRpc);4565 } else Clients.throwError('XWB IM HERE', response);4566 })4567 .then(function (response) {4568 if (response === rpcFormatter.encapsulate('1')) {4569 return Clients.sendRpc(0, imHereRpc);4570 } else Clients.throwError('XWB IM HERE', response);4571 })4572 .then(function (response) {4573 if (response === rpcFormatter.encapsulate('1')) {4574 return Clients.sendRpc(0, imHereRpc);4575 } else Clients.throwError('XWB IM HERE', response);4576 })4577 .then(function (response) {4578 if (response === rpcFormatter.encapsulate('1')) {4579 return Clients.sendRpc(0, imHereRpc);4580 } else Clients.throwError('XWB IM HERE', response);4581 })4582 .then(function (response) {4583 if (response === rpcFormatter.encapsulate('1')) {4584 return Clients.sendRpc(0, imHereRpc);4585 } else Clients.throwError('XWB IM HERE', response);4586 })4587 .then(function (response) {4588 if (response === rpcFormatter.encapsulate('1')) {4589 return Clients.sendRpc(0, imHereRpc);4590 } else Clients.throwError('XWB IM HERE', response);4591 })4592 .then(function (response) {4593 if (response === rpcFormatter.encapsulate('1')) {4594 return Clients.sendRpc(0, imHereRpc);4595 } else Clients.throwError('XWB IM HERE', response);4596 })4597 .then(function (response) {4598 if (response === rpcFormatter.encapsulate('1')) {4599 return Clients.sendRpc(0, imHereRpc);4600 } else Clients.throwError('XWB IM HERE', response);4601 })4602 .then(function (response) {4603 if (response === rpcFormatter.encapsulate('1')) {4604 return Clients.sendRpc(0, imHereRpc);4605 } else Clients.throwError('XWB IM HERE', response);4606 })4607 .then(function (response) {4608 if (response === rpcFormatter.encapsulate('1')) {4609 return Clients.sendRpc(0, imHereRpc);4610 } else Clients.throwError('XWB IM HERE', response);4611 })4612 .then(function (response) {4613 if (response === rpcFormatter.encapsulate('1')) {4614 return Clients.sendRpc(0, imHereRpc);4615 } else Clients.throwError('XWB IM HERE', response);4616 })4617 .then(function (response) {4618 if (response === rpcFormatter.encapsulate('1')) {4619 return Clients.sendRpc(0, imHereRpc);4620 } else Clients.throwError('XWB IM HERE', response);4621 })4622 .then(function (response) {4623 if (response === rpcFormatter.encapsulate('1')) {4624 return Clients.sendRpc(0, imHereRpc);4625 } else Clients.throwError('XWB IM HERE', response);4626 })4627 .then(function (response) {4628 if (response === rpcFormatter.encapsulate('1')) {4629 return Clients.sendRpc(0, imHereRpc);4630 } else Clients.throwError('XWB IM HERE', response);4631 })4632 .then(function (response) {4633 if (response === rpcFormatter.encapsulate('1')) {4634 return Clients.sendRpc(0, imHereRpc);4635 } else Clients.throwError('XWB IM HERE', response);4636 })4637 .then(function (response) {4638 if (response === rpcFormatter.encapsulate('1')) {4639 return Clients.sendRpc(0, imHereRpc);4640 } else Clients.throwError('XWB IM HERE', response);4641 })4642 .then(function (response) {4643 if (response === rpcFormatter.encapsulate('1')) {4644 return Clients.sendRpc(0, imHereRpc);4645 } else Clients.throwError('XWB IM HERE', response);4646 })4647 .then(function (response) {4648 if (response === rpcFormatter.encapsulate('1')) {4649 return Clients.sendRpc(0, imHereRpc);4650 } else Clients.throwError('XWB IM HERE', response);4651 })4652 .then(function (response) {4653 if (response === rpcFormatter.encapsulate('1')) {4654 return Clients.sendRpc(0, imHereRpc);4655 } else Clients.throwError('XWB IM HERE', response);4656 })4657 .then(function (response) {4658 if (response === rpcFormatter.encapsulate('1')) {4659 return Clients.sendRpc(0, imHereRpc);4660 } else Clients.throwError('XWB IM HERE', response);4661 })4662 .then(function (response) {4663 if (response === rpcFormatter.encapsulate('1')) {4664 return Clients.sendRpc(0, imHereRpc);4665 } else Clients.throwError('XWB IM HERE', response);4666 })4667 .then(function (response) {4668 if (response === rpcFormatter.encapsulate('1')) {4669 return Clients.sendRpc(0, imHereRpc);4670 } else Clients.throwError('XWB IM HERE', response);4671 })4672 .then(function (response) {4673 if (response === rpcFormatter.encapsulate('1')) {4674 return Clients.sendRpc(0, imHereRpc);4675 } else Clients.throwError('XWB IM HERE', response);4676 })4677 .then(function (response) {4678 if (response === rpcFormatter.encapsulate('1')) {4679 return Clients.sendRpc(0, imHereRpc);4680 } else Clients.throwError('XWB IM HERE', response);4681 })4682 .then(function (response) {4683 if (response === rpcFormatter.encapsulate('1')) {4684 return Clients.sendRpc(0, imHereRpc);4685 } else Clients.throwError('XWB IM HERE', response);4686 })4687 .then(function (response) {4688 if (response === rpcFormatter.encapsulate('1')) {4689 return Clients.sendRpc(0, imHereRpc);4690 } else Clients.throwError('XWB IM HERE', response);4691 })4692 .then(function (response) {4693 if (response === rpcFormatter.encapsulate('1')) {4694 return Clients.sendRpc(0, imHereRpc);4695 } else Clients.throwError('XWB IM HERE', response);4696 })4697 .then(function (response) {4698 if (response === rpcFormatter.encapsulate('1')) {4699 return Clients.sendRpc(0, imHereRpc);4700 } else Clients.throwError('XWB IM HERE', response);4701 })4702 .then(function (response) {4703 if (response === rpcFormatter.encapsulate('1')) {4704 return Clients.sendRpc(0, imHereRpc);4705 } else Clients.throwError('XWB IM HERE', response);4706 })4707 .then(function (response) {4708 if (response === rpcFormatter.encapsulate('1')) {4709 return Clients.sendRpc(0, imHereRpc);4710 } else Clients.throwError('XWB IM HERE', response);4711 })4712 .then(function (response) {4713 if (response === rpcFormatter.encapsulate('1')) {4714 return Clients.sendRpc(0, imHereRpc);4715 } else Clients.throwError('XWB IM HERE', response);4716 })4717 .then(function (response) {4718 if (response === rpcFormatter.encapsulate('1')) {4719 return Clients.sendRpc(0, imHereRpc);4720 } else Clients.throwError('XWB IM HERE', response);4721 })4722 .then(function (response) {4723 if (response === rpcFormatter.encapsulate('1')) {4724 return Clients.sendRpc(0, imHereRpc);4725 } else Clients.throwError('XWB IM HERE', response);4726 })4727 .then(function (response) {4728 if (response === rpcFormatter.encapsulate('1')) {4729 return Clients.sendRpc(0, imHereRpc);4730 } else Clients.throwError('XWB IM HERE', response);4731 })4732 .then(function (response) {4733 if (response === rpcFormatter.encapsulate('1')) {4734 return Clients.sendRpc(0, imHereRpc);4735 } else Clients.throwError('XWB IM HERE', response);4736 })4737 .then(function (response) {4738 if (response === rpcFormatter.encapsulate('1')) {4739 return Clients.sendRpc(0, imHereRpc);4740 } else Clients.throwError('XWB IM HERE', response);4741 })4742 .then(function (response) {4743 if (response === rpcFormatter.encapsulate('1')) {4744 return Clients.sendRpc(0, imHereRpc);4745 } else Clients.throwError('XWB IM HERE', response);4746 })4747 .then(function (response) {4748 if (response === rpcFormatter.encapsulate('1')) {4749 return Clients.sendRpc(0, imHereRpc);4750 } else Clients.throwError('XWB IM HERE', response);4751 })4752 .then(function (response) {4753 if (response === rpcFormatter.encapsulate('1')) {4754 return Clients.sendRpc(0, imHereRpc);4755 } else Clients.throwError('XWB IM HERE', response);4756 })4757 .then(function (response) {4758 if (response === rpcFormatter.encapsulate('1')) {4759 return Clients.sendRpc(0, imHereRpc);4760 } else Clients.throwError('XWB IM HERE', response);4761 })4762 .then(function (response) {4763 if (response === rpcFormatter.encapsulate('1')) {4764 return Clients.sendRpc(0, imHereRpc);4765 } else Clients.throwError('XWB IM HERE', response);4766 })4767 .then(function (response) {4768 if (response === rpcFormatter.encapsulate('1')) {4769 return Clients.sendRpc(0, imHereRpc);4770 } else Clients.throwError('XWB IM HERE', response);4771 })4772 .then(function (response) {4773 if (response === rpcFormatter.encapsulate('1')) {4774 return Clients.sendRpc(0, imHereRpc);4775 } else Clients.throwError('XWB IM HERE', response);4776 })4777 .then(function (response) {4778 if (response === rpcFormatter.encapsulate('1')) {4779 return Clients.sendRpc(0, imHereRpc);4780 } else Clients.throwError('XWB IM HERE', response);4781 })4782 .then(function (response) {4783 if (response === rpcFormatter.encapsulate('1')) {4784 return Clients.sendRpc(0, imHereRpc);4785 } else Clients.throwError('XWB IM HERE', response);4786 })4787 .then(function (response) {4788 if (response === rpcFormatter.encapsulate('1')) {4789 return Clients.sendRpc(0, imHereRpc);4790 } else Clients.throwError('XWB IM HERE', response);4791 })4792 .then(function (response) {4793 if (response === rpcFormatter.encapsulate('1')) {4794 return Clients.sendRpc(0, imHereRpc);4795 } else Clients.throwError('XWB IM HERE', response);4796 })4797 .then(function (response) {4798 if (response === rpcFormatter.encapsulate('1')) {4799 return Clients.sendRpc(0, imHereRpc);4800 } else Clients.throwError('XWB IM HERE', response);4801 })4802 .then(function (response) {4803 if (response === rpcFormatter.encapsulate('1')) {4804 return Clients.sendRpc(0, imHereRpc);4805 } else Clients.throwError('XWB IM HERE', response);4806 })4807 .then(function (response) {4808 if (response === rpcFormatter.encapsulate('1')) {4809 return Clients.sendRpc(0, imHereRpc);4810 } else Clients.throwError('XWB IM HERE', response);4811 })4812 .then(function (response) {4813 if (response === rpcFormatter.encapsulate('1')) {4814 return Clients.sendRpc(0, imHereRpc);4815 } else Clients.throwError('XWB IM HERE', response);4816 })4817 .then(function (response) {4818 if (response === rpcFormatter.encapsulate('1')) {4819 return Clients.sendRpc(0, imHereRpc);4820 } else Clients.throwError('XWB IM HERE', response);4821 })4822 .then(function (response) {4823 if (response === rpcFormatter.encapsulate('1')) {4824 return Clients.sendRpc(0, imHereRpc);4825 } else Clients.throwError('XWB IM HERE', response);4826 })4827 .then(function (response) {4828 if (response === rpcFormatter.encapsulate('1')) {4829 return Clients.sendRpc(0, imHereRpc);4830 } else Clients.throwError('XWB IM HERE', response);4831 })4832 .then(function (response) {4833 if (response === rpcFormatter.encapsulate('1')) {4834 return Clients.sendRpc(0, imHereRpc);4835 } else Clients.throwError('XWB IM HERE', response);4836 })4837 .then(function (response) {4838 if (response === rpcFormatter.encapsulate('1')) {4839 return Clients.sendRpc(0, imHereRpc);4840 } else Clients.throwError('XWB IM HERE', response);4841 })4842 .then(function (response) {4843 if (response === rpcFormatter.encapsulate('1')) {4844 return Clients.sendRpc(0, imHereRpc);4845 } else Clients.throwError('XWB IM HERE', response);4846 })4847 .then(function (response) {4848 if (response === rpcFormatter.encapsulate('1')) {4849 return Clients.sendRpc(0, imHereRpc);4850 } else Clients.throwError('XWB IM HERE', response);4851 })4852 .then(function (response) {4853 if (response === rpcFormatter.encapsulate('1')) {4854 return Clients.sendRpc(0, imHereRpc);4855 } else Clients.throwError('XWB IM HERE', response);4856 })4857 .then(function (response) {4858 if (response === rpcFormatter.encapsulate('1')) {4859 return Clients.sendRpc(0, imHereRpc);4860 } else Clients.throwError('XWB IM HERE', response);4861 })4862 .then(function (response) {4863 if (response === rpcFormatter.encapsulate('1')) {4864 return Clients.sendRpc(0, imHereRpc);4865 } else Clients.throwError('XWB IM HERE', response);4866 })4867 .then(function (response) {4868 if (response === rpcFormatter.encapsulate('1')) {4869 return Clients.sendRpc(0, imHereRpc);4870 } else Clients.throwError('XWB IM HERE', response);4871 })4872 .then(function (response) {4873 if (response === rpcFormatter.encapsulate('1')) {4874 return Clients.sendRpc(0, imHereRpc);4875 } else Clients.throwError('XWB IM HERE', response);4876 })4877 .then(function (response) {4878 if (response === rpcFormatter.encapsulate('1')) {4879 return Clients.sendRpc(0, imHereRpc);4880 } else Clients.throwError('XWB IM HERE', response);4881 })4882 .then(function (response) {4883 if (response === rpcFormatter.encapsulate('1')) {4884 return Clients.sendRpc(0, imHereRpc);4885 } else Clients.throwError('XWB IM HERE', response);4886 })4887 .then(function (response) {4888 if (response === rpcFormatter.encapsulate('1')) {4889 return Clients.sendRpc(0, imHereRpc);4890 } else Clients.throwError('XWB IM HERE', response);4891 })4892 .then(function (response) {4893 if (response === rpcFormatter.encapsulate('1')) {4894 return Clients.sendRpc(0, imHereRpc);4895 } else Clients.throwError('XWB IM HERE', response);4896 })4897 .then(function (response) {4898 if (response === rpcFormatter.encapsulate('1')) {4899 return Clients.sendRpc(0, imHereRpc);4900 } else Clients.throwError('XWB IM HERE', response);4901 })4902 .then(function (response) {4903 if (response === rpcFormatter.encapsulate('1')) {4904 return Clients.sendRpc(0, imHereRpc);4905 } else Clients.throwError('XWB IM HERE', response);4906 })4907 .then(function (response) {4908 if (response === rpcFormatter.encapsulate('1')) {4909 return Clients.sendRpc(0, imHereRpc);4910 } else Clients.throwError('XWB IM HERE', response);4911 })4912 .then(function (response) {4913 if (response === rpcFormatter.encapsulate('1')) {4914 return Clients.sendRpc(0, imHereRpc);4915 } else Clients.throwError('XWB IM HERE', response);4916 })4917 .then(function (response) {4918 if (response === rpcFormatter.encapsulate('1')) {4919 return Clients.sendRpc(0, imHereRpc);4920 } else Clients.throwError('XWB IM HERE', response);4921 })4922 .then(function (response) {4923 if (response === rpcFormatter.encapsulate('1')) {4924 return Clients.sendRpc(0, imHereRpc);4925 } else Clients.throwError('XWB IM HERE', response);4926 })4927 .then(function (response) {4928 if (response === rpcFormatter.encapsulate('1')) {4929 return Clients.sendRpc(0, imHereRpc);4930 } else Clients.throwError('XWB IM HERE', response);4931 })4932 .then(function (response) {4933 if (response === rpcFormatter.encapsulate('1')) {4934 return Clients.sendRpc(0, imHereRpc);4935 } else Clients.throwError('XWB IM HERE', response);4936 })4937 .then(function (response) {4938 if (response === rpcFormatter.encapsulate('1')) {4939 return Clients.sendRpc(0, imHereRpc);4940 } else Clients.throwError('XWB IM HERE', response);4941 })4942 .then(function (response) {4943 if (response === rpcFormatter.encapsulate('1')) {4944 return Clients.sendRpc(0, imHereRpc);4945 } else Clients.throwError('XWB IM HERE', response);4946 })4947 .then(function (response) {4948 if (response === rpcFormatter.encapsulate('1')) {4949 return Clients.sendRpc(0, imHereRpc);4950 } else Clients.throwError('XWB IM HERE', response);4951 })4952 .then(function (response) {4953 if (response === rpcFormatter.encapsulate('1')) {4954 return Clients.sendRpc(0, imHereRpc);4955 } else Clients.throwError('XWB IM HERE', response);4956 })4957 .then(function (response) {4958 if (response === rpcFormatter.encapsulate('1')) {4959 return Clients.sendRpc(0, imHereRpc);4960 } else Clients.throwError('XWB IM HERE', response);4961 })4962 .then(function (response) {4963 if (response === rpcFormatter.encapsulate('1')) {4964 return Clients.sendRpc(0, imHereRpc);4965 } else Clients.throwError('XWB IM HERE', response);4966 })4967 .then(function (response) {4968 if (response === rpcFormatter.encapsulate('1')) {4969 return Clients.sendRpc(0, imHereRpc);4970 } else Clients.throwError('XWB IM HERE', response);4971 })4972 .then(function (response) {4973 if (response === rpcFormatter.encapsulate('1')) {4974 return Clients.sendRpc(0, imHereRpc);4975 } else Clients.throwError('XWB IM HERE', response);4976 })4977 .then(function (response) {4978 if (response === rpcFormatter.encapsulate('1')) {4979 return Clients.sendRpc(0, imHereRpc);4980 } else Clients.throwError('XWB IM HERE', response);4981 })4982 .then(function (response) {4983 if (response === rpcFormatter.encapsulate('1')) {4984 return Clients.sendRpc(0, imHereRpc);4985 } else Clients.throwError('XWB IM HERE', response);4986 })4987 .then(function (response) {4988 if (response === rpcFormatter.encapsulate('1')) {4989 return Clients.sendRpc(0, imHereRpc);4990 } else Clients.throwError('XWB IM HERE', response);4991 })4992 .then(function (response) {4993 if (response === rpcFormatter.encapsulate('1')) {4994 return Clients.sendRpc(0, imHereRpc);4995 } else Clients.throwError('XWB IM HERE', response);4996 })4997 .then(function (response) {4998 if (response === rpcFormatter.encapsulate('1')) {4999 return Clients.sendRpc(0, imHereRpc);5000 } else Clients.throwError('XWB IM HERE', response);5001 })5002 .then(function (response) {5003 if (response === rpcFormatter.encapsulate('1')) {5004 return Clients.sendRpc(0, imHereRpc);5005 } else Clients.throwError('XWB IM HERE', response);5006 })5007 .then(function (response) {5008 if (response === rpcFormatter.encapsulate('1')) {5009 return Clients.sendRpc(0, imHereRpc);5010 } else Clients.throwError('XWB IM HERE', response);5011 })5012 .then(function (response) {5013 if (response === rpcFormatter.encapsulate('1')) {5014 return Clients.sendRpc(0, imHereRpc);5015 } else Clients.throwError('XWB IM HERE', response);5016 })5017 .then(function (response) {5018 if (response === rpcFormatter.encapsulate('1')) {5019 return Clients.sendRpc(0, imHereRpc);5020 } else Clients.throwError('XWB IM HERE', response);5021 })5022 .then(function (response) {5023 if (response === rpcFormatter.encapsulate('1')) {5024 return Clients.sendRpc(0, imHereRpc);5025 } else Clients.throwError('XWB IM HERE', response);5026 })5027 .then(function (response) {5028 if (response === rpcFormatter.encapsulate('1')) {5029 return Clients.sendRpc(0, imHereRpc);5030 } else Clients.throwError('XWB IM HERE', response);5031 })5032 .then(function (response) {5033 if (response === rpcFormatter.encapsulate('1')) {5034 return Clients.sendRpc(0, imHereRpc);5035 } else Clients.throwError('XWB IM HERE', response);5036 })5037 .then(function (response) {5038 if (response === rpcFormatter.encapsulate('1')) {5039 return Clients.sendRpc(0, imHereRpc);5040 } else Clients.throwError('XWB IM HERE', response);5041 })5042 .then(function (response) {5043 if (response === rpcFormatter.encapsulate('1')) {5044 return Clients.sendRpc(0, imHereRpc);5045 } else Clients.throwError('XWB IM HERE', response);5046 })5047 .then(function (response) {5048 if (response === rpcFormatter.encapsulate('1')) {5049 return Clients.sendRpc(0, imHereRpc);5050 } else Clients.throwError('XWB IM HERE', response);5051 })5052 .then(function (response) {5053 if (response === rpcFormatter.encapsulate('1')) {5054 return Clients.sendRpc(0, imHereRpc);5055 } else Clients.throwError('XWB IM HERE', response);5056 })5057 .then(function (response) {5058 if (response === rpcFormatter.encapsulate('1')) {5059 return Clients.sendRpc(0, imHereRpc);5060 } else Clients.throwError('XWB IM HERE', response);5061 })5062 .then(function (response) {5063 if (response === rpcFormatter.encapsulate('1')) {5064 return Clients.sendRpc(0, imHereRpc);5065 } else Clients.throwError('XWB IM HERE', response);5066 })5067 .then(function (response) {5068 if (response === rpcFormatter.encapsulate('1')) {5069 endTime = new Date().getTime();5070 console.log("\n\nExecution time of XWB IM HERE: %j ms\n\n", endTime - startTime);5071 console.log('XWB IM HERE OK: %j, trying #BYE#', response);5072 return Clients.sendRpc(0, rpcFormatter.buildRpcSignOffString());5073 } else Clients.throwError('XWB IM HERE', response);5074 })5075 .then(function (response) {5076 if (response === rpcFormatter.encapsulate('#BYE#')) {5077 console.log('#BYE#');5078 success('test1')5079 //reconnectClientForNewTest(client, test2);5080 Clients.closeAllClients();5081 } else Clients.throwError('#BYE#', response);5082 })5083 .catch(function (error) {5084 console.log(error);5085 Clients.closeAllClients();5086 });5087}5088function success(testName) {5089 console.log('\n\n' + testName + ' SUCESS!!!\n\n');5090}5091Clients.setClientTest(0, test1);...

Full Screen

Full Screen

02.built-in-validators.js

Source:02.built-in-validators.js Github

copy

Full Screen

...60 });61 describe('with missing argument', function() {62 var args = [];63 it('should not be ok', function() {64 judge.bind(null, args).should.throwError();65 });66 });67 });68 describe('array', function() {69 var judge = decree([{70 type: 'array'71 }]);72 describe('with legal arguments', function() {73 var args = [74 ['hello', 2, 3]75 ];76 it('should be ok', function() {77 judge(args)[0].should.be.an.Array;78 });79 });80 describe('with illegal arguments (1)', function() {81 var args = ['hello'];82 it('should not be ok', function() {83 judge.bind(null, args).should.throwError();84 });85 });86 describe('with illegal arguments (2)', function() {87 var args = [1];88 it('should not be ok', function() {89 judge.bind(null, args).should.throwError();90 });91 });92 describe('with illegal arguments (3)', function() {93 var args = [1.1];94 it('should not be ok', function() {95 judge.bind(null, args).should.throwError();96 });97 });98 describe('with illegal arguments (4)', function() {99 var args = [{100 a: 'b'101 }];102 it('should not be ok', function() {103 judge.bind(null, args).should.throwError();104 });105 });106 describe('with illegal arguments (5)', function() {107 var args = [108 function() {}109 ];110 it('should not be ok', function() {111 judge.bind(null, args).should.throwError();112 });113 });114 describe('with illegal arguments (6)', function() {115 var args = [false];116 it('should not be ok', function() {117 judge.bind(null, args).should.throwError();118 });119 });120 describe('with illegal arguments (7)', function() {121 var args = [null];122 it('should not be ok', function() {123 judge.bind(null, args).should.throwError();124 });125 });126 describe('with illegal arguments (8)', function() {127 var args = [undefined];128 it('should not be ok', function() {129 judge.bind(null, args).should.throwError();130 });131 });132 describe('with missing argument', function() {133 var args = [];134 it('should not be ok', function() {135 judge.bind(null, args).should.throwError();136 });137 });138 });139 describe('function', function() {140 var judge = decree([{141 type: 'function'142 }]);143 describe('with legal arguments', function() {144 var args = [145 function() {}146 ];147 it('should be ok', function() {148 judge(args)[0].should.be.a.Function;149 });150 });151 describe('with illegal arguments (1)', function() {152 var args = ['hello'];153 it('should not be ok', function() {154 judge.bind(null, args).should.throwError();155 });156 });157 describe('with illegal arguments (2)', function() {158 var args = [1];159 it('should not be ok', function() {160 judge.bind(null, args).should.throwError();161 });162 });163 describe('with illegal arguments (3)', function() {164 var args = [1.1];165 it('should not be ok', function() {166 judge.bind(null, args).should.throwError();167 });168 });169 describe('with illegal arguments (4)', function() {170 var args = [{171 a: 'b'172 }];173 it('should not be ok', function() {174 judge.bind(null, args).should.throwError();175 });176 });177 describe('with illegal arguments (5)', function() {178 var args = [179 [1, 2, 3]180 ];181 it('should not be ok', function() {182 judge.bind(null, args).should.throwError();183 });184 });185 describe('with illegal arguments (6)', function() {186 var args = [false];187 it('should not be ok', function() {188 judge.bind(null, args).should.throwError();189 });190 });191 describe('with illegal arguments (7)', function() {192 var args = [null];193 it('should not be ok', function() {194 judge.bind(null, args).should.throwError();195 });196 });197 describe('with illegal arguments (8)', function() {198 var args = [undefined];199 it('should not be ok', function() {200 judge.bind(null, args).should.throwError();201 });202 });203 describe('with missing argument', function() {204 var args = [];205 it('should not be ok', function() {206 judge.bind(null, args).should.throwError();207 });208 });209 });210 describe('hash', function() {211 var judge = decree([{212 type: 'hash'213 }]);214 describe('with legal arguments', function() {215 var args = [{216 a: 'b'217 }];218 it('should be ok', function() {219 judge(args)[0].should.be.an.Object;220 });221 });222 describe('with illegal arguments (1)', function() {223 var args = ['hello'];224 it('should not be ok', function() {225 judge.bind(null, args).should.throwError();226 });227 });228 describe('with illegal arguments (2)', function() {229 var args = [1];230 it('should not be ok', function() {231 judge.bind(null, args).should.throwError();232 });233 });234 describe('with illegal arguments (3)', function() {235 var args = [1.1];236 it('should not be ok', function() {237 judge.bind(null, args).should.throwError();238 });239 });240 describe('with illegal arguments (4)', function() {241 var args = [242 function() {}243 ];244 it('should not be ok', function() {245 judge.bind(null, args).should.throwError();246 });247 });248 describe('with illegal arguments (5)', function() {249 var args = [250 [1, 2, 3]251 ];252 it('should not be ok', function() {253 judge.bind(null, args).should.throwError();254 });255 });256 describe('with illegal arguments (6)', function() {257 var args = [false];258 it('should not be ok', function() {259 judge.bind(null, args).should.throwError();260 });261 });262 describe('with illegal arguments (7)', function() {263 var args = [null];264 it('should not be ok', function() {265 judge.bind(null, args).should.throwError();266 });267 });268 describe('with illegal arguments (8)', function() {269 var args = [undefined];270 it('should not be ok', function() {271 judge.bind(null, args).should.throwError();272 });273 });274 describe('with missing argument', function() {275 var args = [];276 it('should not be ok', function() {277 judge.bind(null, args).should.throwError();278 });279 });280 });281 describe('string', function() {282 var judge = decree([{283 type: 'string'284 }]);285 describe('with legal arguments', function() {286 var args = ['hello'];287 it('should be ok', function() {288 judge(args)[0].should.be.a.String;289 });290 });291 describe('with illegal arguments (1)', function() {292 var args = [{293 a: 'b'294 }];295 it('should not be ok', function() {296 judge.bind(null, args).should.throwError();297 });298 });299 describe('with illegal arguments (2)', function() {300 var args = [1];301 it('should not be ok', function() {302 judge.bind(null, args).should.throwError();303 });304 });305 describe('with illegal arguments (3)', function() {306 var args = [1.1];307 it('should not be ok', function() {308 judge.bind(null, args).should.throwError();309 });310 });311 describe('with illegal arguments (4)', function() {312 var args = [313 function() {}314 ];315 it('should not be ok', function() {316 judge.bind(null, args).should.throwError();317 });318 });319 describe('with illegal arguments (5)', function() {320 var args = [321 [1, 2, 3]322 ];323 it('should not be ok', function() {324 judge.bind(null, args).should.throwError();325 });326 });327 describe('with illegal arguments (6)', function() {328 var args = [false];329 it('should not be ok', function() {330 judge.bind(null, args).should.throwError();331 });332 });333 describe('with illegal arguments (7)', function() {334 var args = [null];335 it('should not be ok', function() {336 judge.bind(null, args).should.throwError();337 });338 });339 describe('with illegal arguments (8)', function() {340 var args = [undefined];341 it('should not be ok', function() {342 judge.bind(null, args).should.throwError();343 });344 });345 describe('with missing argument', function() {346 var args = [];347 it('should not be ok', function() {348 judge.bind(null, args).should.throwError();349 });350 });351 });352 describe('regexp', function() {353 var judge = decree([{354 type: 'regexp'355 }]);356 describe('with legal arguments', function() {357 var args = [/.*/];358 it('should be ok', function() {359 judge(args)[0].should.be.a.RegExp;360 });361 });362 describe('with illegal arguments (1)', function() {363 var args = [{364 a: 'b'365 }];366 it('should not be ok', function() {367 judge.bind(null, args).should.throwError();368 });369 });370 describe('with illegal arguments (2)', function() {371 var args = [1];372 it('should not be ok', function() {373 judge.bind(null, args).should.throwError();374 });375 });376 describe('with illegal arguments (3)', function() {377 var args = [1.1];378 it('should not be ok', function() {379 judge.bind(null, args).should.throwError();380 });381 });382 describe('with illegal arguments (4)', function() {383 var args = [384 function() {}385 ];386 it('should not be ok', function() {387 judge.bind(null, args).should.throwError();388 });389 });390 describe('with illegal arguments (5)', function() {391 var args = [392 [1, 2, 3]393 ];394 it('should not be ok', function() {395 judge.bind(null, args).should.throwError();396 });397 });398 describe('with illegal arguments (6)', function() {399 var args = [false];400 it('should not be ok', function() {401 judge.bind(null, args).should.throwError();402 });403 });404 describe('with illegal arguments (7)', function() {405 var args = [null];406 it('should not be ok', function() {407 judge.bind(null, args).should.throwError();408 });409 });410 describe('with illegal arguments (8)', function() {411 var args = [undefined];412 it('should not be ok', function() {413 judge.bind(null, args).should.throwError();414 });415 });416 describe('with missing argument', function() {417 var args = [];418 it('should not be ok', function() {419 judge.bind(null, args).should.throwError();420 });421 });422 });423 describe('date', function() {424 var judge = decree([{425 type: 'date'426 }]);427 describe('with legal arguments', function() {428 var args = [new Date()];429 it('should be ok', function() {430 judge(args)[0].should.be.a.Date;431 });432 });433 describe('with illegal arguments (1)', function() {434 var args = [{435 a: 'b'436 }];437 it('should not be ok', function() {438 judge.bind(null, args).should.throwError();439 });440 });441 describe('with illegal arguments (2)', function() {442 var args = [1];443 it('should not be ok', function() {444 judge.bind(null, args).should.throwError();445 });446 });447 describe('with illegal arguments (3)', function() {448 var args = [1.1];449 it('should not be ok', function() {450 judge.bind(null, args).should.throwError();451 });452 });453 describe('with illegal arguments (4)', function() {454 var args = [455 function() {}456 ];457 it('should not be ok', function() {458 judge.bind(null, args).should.throwError();459 });460 });461 describe('with illegal arguments (5)', function() {462 var args = [463 [1, 2, 3]464 ];465 it('should not be ok', function() {466 judge.bind(null, args).should.throwError();467 });468 });469 describe('with illegal arguments (6)', function() {470 var args = [false];471 it('should not be ok', function() {472 judge.bind(null, args).should.throwError();473 });474 });475 describe('with illegal arguments (7)', function() {476 var args = [null];477 it('should not be ok', function() {478 judge.bind(null, args).should.throwError();479 });480 });481 describe('with illegal arguments (8)', function() {482 var args = [undefined];483 it('should not be ok', function() {484 judge.bind(null, args).should.throwError();485 });486 });487 describe('with missing argument', function() {488 var args = [];489 it('should not be ok', function() {490 judge.bind(null, args).should.throwError();491 });492 });493 });494 describe('boolean', function() {495 var judge = decree([{496 type: 'boolean'497 }]);498 describe('with legal arguments (1)', function() {499 var args = [true];500 it('should be ok', function() {501 judge(args)[0].should.be.true;502 });503 });504 describe('with legal arguments (2)', function() {505 var args = [false];506 it('should be ok', function() {507 judge(args)[0].should.be.false;508 });509 });510 describe('with illegal arguments (1)', function() {511 var args = [{512 a: 'b'513 }];514 it('should not be ok', function() {515 judge.bind(null, args).should.throwError();516 });517 });518 describe('with illegal arguments (2)', function() {519 var args = [1];520 it('should not be ok', function() {521 judge.bind(null, args).should.throwError();522 });523 });524 describe('with illegal arguments (3)', function() {525 var args = [1.1];526 it('should not be ok', function() {527 judge.bind(null, args).should.throwError();528 });529 });530 describe('with illegal arguments (4)', function() {531 var args = [532 function() {}533 ];534 it('should not be ok', function() {535 judge.bind(null, args).should.throwError();536 });537 });538 describe('with illegal arguments (5)', function() {539 var args = [540 [1, 2, 3]541 ];542 it('should not be ok', function() {543 judge.bind(null, args).should.throwError();544 });545 });546 describe('with illegal arguments (6)', function() {547 var args = ['hello'];548 it('should not be ok', function() {549 judge.bind(null, args).should.throwError();550 });551 });552 describe('with illegal arguments (7)', function() {553 var args = [null];554 it('should not be ok', function() {555 judge.bind(null, args).should.throwError();556 });557 });558 describe('with illegal arguments (8)', function() {559 var args = [undefined];560 it('should not be ok', function() {561 judge.bind(null, args).should.throwError();562 });563 });564 describe('with missing argument', function() {565 var args = [];566 it('should not be ok', function() {567 judge.bind(null, args).should.throwError();568 });569 });570 });571 describe('number', function() {572 var judge = decree([{573 type: 'number'574 }]);575 describe('with legal arguments (1)', function() {576 var args = [-123.123];577 it('should be ok', function() {578 judge(args)[0].should.be.a.Number;579 });580 });581 describe('with legal arguments (2)', function() {582 var args = [0];583 it('should be ok', function() {584 judge(args)[0].should.be.a.Number;585 });586 });587 describe('with legal arguments (3)', function() {588 var args = [1];589 it('should be ok', function() {590 judge(args)[0].should.be.a.Number;591 });592 });593 describe('with legal arguments (4)', function() {594 var args = [123.123];595 it('should be ok', function() {596 judge(args)[0].should.be.a.Number;597 });598 });599 describe('with illegal arguments (1)', function() {600 var args = [{601 a: 'b'602 }];603 it('should not be ok', function() {604 judge.bind(null, args).should.throwError();605 });606 });607 describe('with illegal arguments (2)', function() {608 var args = ['hello'];609 it('should not be ok', function() {610 judge.bind(null, args).should.throwError();611 });612 });613 describe('with illegal arguments (3)', function() {614 var args = [615 function() {}616 ];617 it('should not be ok', function() {618 judge.bind(null, args).should.throwError();619 });620 });621 describe('with illegal arguments (4)', function() {622 var args = [623 [1, 2, 3]624 ];625 it('should not be ok', function() {626 judge.bind(null, args).should.throwError();627 });628 });629 describe('with illegal arguments (5)', function() {630 var args = [false];631 it('should not be ok', function() {632 judge.bind(null, args).should.throwError();633 });634 });635 describe('with illegal arguments (6)', function() {636 var args = [true];637 it('should not be ok', function() {638 judge.bind(null, args).should.throwError();639 });640 });641 describe('with illegal arguments (7)', function() {642 var args = [null];643 it('should not be ok', function() {644 judge.bind(null, args).should.throwError();645 });646 });647 describe('with illegal arguments (8)', function() {648 var args = [undefined];649 it('should not be ok', function() {650 judge.bind(null, args).should.throwError();651 });652 });653 describe('with missing argument', function() {654 var args = [];655 it('should not be ok', function() {656 judge.bind(null, args).should.throwError();657 });658 });659 });660 describe('p-number', function() {661 var judge = decree([{662 type: 'p-number'663 }]);664 describe('with legal arguments (1)', function() {665 var args = [123.123];666 it('should be ok', function() {667 judge(args)[0].should.be.a.Number;668 });669 });670 describe('with legal arguments (2)', function() {671 var args = [1];672 it('should be ok', function() {673 judge(args)[0].should.be.a.Number;674 });675 });676 describe('with illegal arguments (1)', function() {677 var args = [0];678 it('should not be ok', function() {679 judge.bind(null, args).should.throwError();680 });681 });682 describe('with illegal arguments (2)', function() {683 var args = [-10];684 it('should not be ok', function() {685 judge.bind(null, args).should.throwError();686 });687 });688 describe('with illegal arguments (3)', function() {689 var args = [{690 a: 'b'691 }];692 it('should not be ok', function() {693 judge.bind(null, args).should.throwError();694 });695 });696 describe('with illegal arguments (4)', function() {697 var args = ['hello'];698 it('should not be ok', function() {699 judge.bind(null, args).should.throwError();700 });701 });702 describe('with illegal arguments (5)', function() {703 var args = [704 function() {}705 ];706 it('should not be ok', function() {707 judge.bind(null, args).should.throwError();708 });709 });710 describe('with illegal arguments (6)', function() {711 var args = [712 [1, 2, 3]713 ];714 it('should not be ok', function() {715 judge.bind(null, args).should.throwError();716 });717 });718 describe('with illegal arguments (7)', function() {719 var args = [false];720 it('should not be ok', function() {721 judge.bind(null, args).should.throwError();722 });723 });724 describe('with illegal arguments (8)', function() {725 var args = [true];726 it('should not be ok', function() {727 judge.bind(null, args).should.throwError();728 });729 });730 describe('with illegal arguments (9)', function() {731 var args = [null];732 it('should not be ok', function() {733 judge.bind(null, args).should.throwError();734 });735 });736 describe('with illegal arguments (10)', function() {737 var args = [undefined];738 it('should not be ok', function() {739 judge.bind(null, args).should.throwError();740 });741 });742 describe('with missing argument', function() {743 var args = [];744 it('should not be ok', function() {745 judge.bind(null, args).should.throwError();746 });747 });748 });749 describe('n-number', function() {750 var judge = decree([{751 type: 'n-number'752 }]);753 describe('with legal arguments (1)', function() {754 var args = [-123.123];755 it('should be ok', function() {756 judge(args)[0].should.be.a.Number;757 });758 });759 describe('with legal arguments (2)', function() {760 var args = [-1];761 it('should be ok', function() {762 judge(args)[0].should.be.a.Number;763 });764 });765 describe('with illegal arguments (1)', function() {766 var args = [0];767 it('should not be ok', function() {768 judge.bind(null, args).should.throwError();769 });770 });771 describe('with illegal arguments (2)', function() {772 var args = [10];773 it('should not be ok', function() {774 judge.bind(null, args).should.throwError();775 });776 });777 describe('with illegal arguments (3)', function() {778 var args = [{779 a: 'b'780 }];781 it('should not be ok', function() {782 judge.bind(null, args).should.throwError();783 });784 });785 describe('with illegal arguments (4)', function() {786 var args = ['hello'];787 it('should not be ok', function() {788 judge.bind(null, args).should.throwError();789 });790 });791 describe('with illegal arguments (5)', function() {792 var args = [793 function() {}794 ];795 it('should not be ok', function() {796 judge.bind(null, args).should.throwError();797 });798 });799 describe('with illegal arguments (6)', function() {800 var args = [801 [1, 2, 3]802 ];803 it('should not be ok', function() {804 judge.bind(null, args).should.throwError();805 });806 });807 describe('with illegal arguments (7)', function() {808 var args = [false];809 it('should not be ok', function() {810 judge.bind(null, args).should.throwError();811 });812 });813 describe('with illegal arguments (8)', function() {814 var args = [true];815 it('should not be ok', function() {816 judge.bind(null, args).should.throwError();817 });818 });819 describe('with illegal arguments (9)', function() {820 var args = [null];821 it('should not be ok', function() {822 judge.bind(null, args).should.throwError();823 });824 });825 describe('with illegal arguments (10)', function() {826 var args = [undefined];827 it('should not be ok', function() {828 judge.bind(null, args).should.throwError();829 });830 });831 describe('with missing argument', function() {832 var args = [];833 it('should not be ok', function() {834 judge.bind(null, args).should.throwError();835 });836 });837 });838 describe('np-number', function() {839 var judge = decree([{840 type: 'np-number'841 }]);842 describe('with legal arguments (1)', function() {843 var args = [-123.123];844 it('should be ok', function() {845 judge(args)[0].should.be.a.Number;846 });847 });848 describe('with legal arguments (2)', function() {849 var args = [0];850 it('should be ok', function() {851 judge(args)[0].should.be.a.Number;852 });853 });854 describe('with legal arguments (3)', function() {855 var args = [-1];856 it('should be ok', function() {857 judge(args)[0].should.be.a.Number;858 });859 });860 describe('with illegal arguments (1)', function() {861 var args = [10];862 it('should not be ok', function() {863 judge.bind(null, args).should.throwError();864 });865 });866 describe('with illegal arguments (2)', function() {867 var args = [{868 a: 'b'869 }];870 it('should not be ok', function() {871 judge.bind(null, args).should.throwError();872 });873 });874 describe('with illegal arguments (3)', function() {875 var args = ['hello'];876 it('should not be ok', function() {877 judge.bind(null, args).should.throwError();878 });879 });880 describe('with illegal arguments (4)', function() {881 var args = [882 function() {}883 ];884 it('should not be ok', function() {885 judge.bind(null, args).should.throwError();886 });887 });888 describe('with illegal arguments (5)', function() {889 var args = [890 [1, 2, 3]891 ];892 it('should not be ok', function() {893 judge.bind(null, args).should.throwError();894 });895 });896 describe('with illegal arguments (6)', function() {897 var args = [false];898 it('should not be ok', function() {899 judge.bind(null, args).should.throwError();900 });901 });902 describe('with illegal arguments (7)', function() {903 var args = [true];904 it('should not be ok', function() {905 judge.bind(null, args).should.throwError();906 });907 });908 describe('with illegal arguments (8)', function() {909 var args = [null];910 it('should not be ok', function() {911 judge.bind(null, args).should.throwError();912 });913 });914 describe('with illegal arguments (9)', function() {915 var args = [undefined];916 it('should not be ok', function() {917 judge.bind(null, args).should.throwError();918 });919 });920 describe('with missing argument', function() {921 var args = [];922 it('should not be ok', function() {923 judge.bind(null, args).should.throwError();924 });925 });926 });927 describe('nn-number', function() {928 var judge = decree([{929 type: 'nn-number'930 }]);931 describe('with legal arguments (1)', function() {932 var args = [123.123];933 it('should be ok', function() {934 judge(args)[0].should.be.a.Number;935 });936 });937 describe('with legal arguments (2)', function() {938 var args = [0];939 it('should be ok', function() {940 judge(args)[0].should.be.a.Number;941 });942 });943 describe('with legal arguments (3)', function() {944 var args = [1];945 it('should be ok', function() {946 judge(args)[0].should.be.a.Number;947 });948 });949 describe('with illegal arguments (1)', function() {950 var args = [-10];951 it('should not be ok', function() {952 judge.bind(null, args).should.throwError();953 });954 });955 describe('with illegal arguments (2)', function() {956 var args = [{957 a: 'b'958 }];959 it('should not be ok', function() {960 judge.bind(null, args).should.throwError();961 });962 });963 describe('with illegal arguments (3)', function() {964 var args = ['hello'];965 it('should not be ok', function() {966 judge.bind(null, args).should.throwError();967 });968 });969 describe('with illegal arguments (4)', function() {970 var args = [971 function() {}972 ];973 it('should not be ok', function() {974 judge.bind(null, args).should.throwError();975 });976 });977 describe('with illegal arguments (5)', function() {978 var args = [979 [1, 2, 3]980 ];981 it('should not be ok', function() {982 judge.bind(null, args).should.throwError();983 });984 });985 describe('with illegal arguments (6)', function() {986 var args = [false];987 it('should not be ok', function() {988 judge.bind(null, args).should.throwError();989 });990 });991 describe('with illegal arguments (7)', function() {992 var args = [true];993 it('should not be ok', function() {994 judge.bind(null, args).should.throwError();995 });996 });997 describe('with illegal arguments (8)', function() {998 var args = [null];999 it('should not be ok', function() {1000 judge.bind(null, args).should.throwError();1001 });1002 });1003 describe('with illegal arguments (9)', function() {1004 var args = [undefined];1005 it('should not be ok', function() {1006 judge.bind(null, args).should.throwError();1007 });1008 });1009 describe('with missing argument', function() {1010 var args = [];1011 it('should not be ok', function() {1012 judge.bind(null, args).should.throwError();1013 });1014 });1015 });1016 describe('int', function() {1017 var judge = decree([{1018 type: 'int'1019 }]);1020 describe('with legal arguments (1)', function() {1021 var args = [-123];1022 it('should be ok', function() {1023 judge(args)[0].should.be.a.Number;1024 });1025 });1026 describe('with legal arguments (2)', function() {1027 var args = [0];1028 it('should be ok', function() {1029 judge(args)[0].should.be.a.Number;1030 });1031 });1032 describe('with legal arguments (3)', function() {1033 var args = [1];1034 it('should be ok', function() {1035 judge(args)[0].should.be.a.Number;1036 });1037 });1038 describe('with legal arguments (4)', function() {1039 var args = [123];1040 it('should be ok', function() {1041 judge(args)[0].should.be.a.Number;1042 });1043 });1044 describe('with illegal arguments (1)', function() {1045 var args = [{1046 a: 'b'1047 }];1048 it('should not be ok', function() {1049 judge.bind(null, args).should.throwError();1050 });1051 });1052 describe('with illegal arguments (2)', function() {1053 var args = ['hello'];1054 it('should not be ok', function() {1055 judge.bind(null, args).should.throwError();1056 });1057 });1058 describe('with illegal arguments (3)', function() {1059 var args = [1060 function() {}1061 ];1062 it('should not be ok', function() {1063 judge.bind(null, args).should.throwError();1064 });1065 });1066 describe('with illegal arguments (4)', function() {1067 var args = [1068 [1, 2, 3]1069 ];1070 it('should not be ok', function() {1071 judge.bind(null, args).should.throwError();1072 });1073 });1074 describe('with illegal arguments (5)', function() {1075 var args = [false];1076 it('should not be ok', function() {1077 judge.bind(null, args).should.throwError();1078 });1079 });1080 describe('with illegal arguments (6)', function() {1081 var args = [true];1082 it('should not be ok', function() {1083 judge.bind(null, args).should.throwError();1084 });1085 });1086 describe('with illegal arguments (7)', function() {1087 var args = [null];1088 it('should not be ok', function() {1089 judge.bind(null, args).should.throwError();1090 });1091 });1092 describe('with illegal arguments (8)', function() {1093 var args = [undefined];1094 it('should not be ok', function() {1095 judge.bind(null, args).should.throwError();1096 });1097 });1098 describe('with missing argument', function() {1099 var args = [];1100 it('should not be ok', function() {1101 judge.bind(null, args).should.throwError();1102 });1103 });1104 });1105 describe('p-int', function() {1106 var judge = decree([{1107 type: 'p-int'1108 }]);1109 describe('with legal arguments (1)', function() {1110 var args = [123];1111 it('should be ok', function() {1112 judge(args)[0].should.be.a.Number;1113 });1114 });1115 describe('with legal arguments (2)', function() {1116 var args = [1];1117 it('should be ok', function() {1118 judge(args)[0].should.be.a.Number;1119 });1120 });1121 describe('with illegal arguments (1)', function() {1122 var args = [0];1123 it('should not be ok', function() {1124 judge.bind(null, args).should.throwError();1125 });1126 });1127 describe('with illegal arguments (2)', function() {1128 var args = [-10];1129 it('should not be ok', function() {1130 judge.bind(null, args).should.throwError();1131 });1132 });1133 describe('with illegal arguments (3)', function() {1134 var args = [10.5];1135 it('should not be ok', function() {1136 judge.bind(null, args).should.throwError();1137 });1138 });1139 describe('with illegal arguments (4)', function() {1140 var args = [-10.5];1141 it('should not be ok', function() {1142 judge.bind(null, args).should.throwError();1143 });1144 });1145 describe('with illegal arguments (5)', function() {1146 var args = [{1147 a: 'b'1148 }];1149 it('should not be ok', function() {1150 judge.bind(null, args).should.throwError();1151 });1152 });1153 describe('with illegal arguments (6)', function() {1154 var args = ['hello'];1155 it('should not be ok', function() {1156 judge.bind(null, args).should.throwError();1157 });1158 });1159 describe('with illegal arguments (7)', function() {1160 var args = [1161 function() {}1162 ];1163 it('should not be ok', function() {1164 judge.bind(null, args).should.throwError();1165 });1166 });1167 describe('with illegal arguments (8)', function() {1168 var args = [1169 [1, 2, 3]1170 ];1171 it('should not be ok', function() {1172 judge.bind(null, args).should.throwError();1173 });1174 });1175 describe('with illegal arguments (9)', function() {1176 var args = [false];1177 it('should not be ok', function() {1178 judge.bind(null, args).should.throwError();1179 });1180 });1181 describe('with illegal arguments (10)', function() {1182 var args = [true];1183 it('should not be ok', function() {1184 judge.bind(null, args).should.throwError();1185 });1186 });1187 describe('with illegal arguments (11)', function() {1188 var args = [null];1189 it('should not be ok', function() {1190 judge.bind(null, args).should.throwError();1191 });1192 });1193 describe('with illegal arguments (12)', function() {1194 var args = [undefined];1195 it('should not be ok', function() {1196 judge.bind(null, args).should.throwError();1197 });1198 });1199 describe('with missing argument', function() {1200 var args = [];1201 it('should not be ok', function() {1202 judge.bind(null, args).should.throwError();1203 });1204 });1205 });1206 describe('n-int', function() {1207 var judge = decree([{1208 type: 'n-int'1209 }]);1210 describe('with legal arguments (1)', function() {1211 var args = [-123];1212 it('should be ok', function() {1213 judge(args)[0].should.be.a.Number;1214 });1215 });1216 describe('with legal arguments (2)', function() {1217 var args = [-1];1218 it('should be ok', function() {1219 judge(args)[0].should.be.a.Number;1220 });1221 });1222 describe('with illegal arguments (1)', function() {1223 var args = [0];1224 it('should not be ok', function() {1225 judge.bind(null, args).should.throwError();1226 });1227 });1228 describe('with illegal arguments (2)', function() {1229 var args = [10];1230 it('should not be ok', function() {1231 judge.bind(null, args).should.throwError();1232 });1233 });1234 describe('with illegal arguments (3)', function() {1235 var args = [10.5];1236 it('should not be ok', function() {1237 judge.bind(null, args).should.throwError();1238 });1239 });1240 describe('with illegal arguments (4)', function() {1241 var args = [-10.5];1242 it('should not be ok', function() {1243 judge.bind(null, args).should.throwError();1244 });1245 });1246 describe('with illegal arguments (5)', function() {1247 var args = [{1248 a: 'b'1249 }];1250 it('should not be ok', function() {1251 judge.bind(null, args).should.throwError();1252 });1253 });1254 describe('with illegal arguments (6)', function() {1255 var args = ['hello'];1256 it('should not be ok', function() {1257 judge.bind(null, args).should.throwError();1258 });1259 });1260 describe('with illegal arguments (7)', function() {1261 var args = [1262 function() {}1263 ];1264 it('should not be ok', function() {1265 judge.bind(null, args).should.throwError();1266 });1267 });1268 describe('with illegal arguments (8)', function() {1269 var args = [1270 [1, 2, 3]1271 ];1272 it('should not be ok', function() {1273 judge.bind(null, args).should.throwError();1274 });1275 });1276 describe('with illegal arguments (9)', function() {1277 var args = [false];1278 it('should not be ok', function() {1279 judge.bind(null, args).should.throwError();1280 });1281 });1282 describe('with illegal arguments (10)', function() {1283 var args = [true];1284 it('should not be ok', function() {1285 judge.bind(null, args).should.throwError();1286 });1287 });1288 describe('with illegal arguments (11)', function() {1289 var args = [null];1290 it('should not be ok', function() {1291 judge.bind(null, args).should.throwError();1292 });1293 });1294 describe('with illegal arguments (12)', function() {1295 var args = [undefined];1296 it('should not be ok', function() {1297 judge.bind(null, args).should.throwError();1298 });1299 });1300 describe('with missing argument', function() {1301 var args = [];1302 it('should not be ok', function() {1303 judge.bind(null, args).should.throwError();1304 });1305 });1306 });1307 describe('np-int', function() {1308 var judge = decree([{1309 type: 'np-int'1310 }]);1311 describe('with legal arguments (1)', function() {1312 var args = [-123];1313 it('should be ok', function() {1314 judge(args)[0].should.be.a.Number;1315 });1316 });1317 describe('with legal arguments (2)', function() {1318 var args = [0];1319 it('should be ok', function() {1320 judge(args)[0].should.be.a.Number;1321 });1322 });1323 describe('with legal arguments (3)', function() {1324 var args = [-1];1325 it('should be ok', function() {1326 judge(args)[0].should.be.a.Number;1327 });1328 });1329 describe('with illegal arguments (1)', function() {1330 var args = [10];1331 it('should not be ok', function() {1332 judge.bind(null, args).should.throwError();1333 });1334 });1335 describe('with illegal arguments (2)', function() {1336 var args = [-10.5];1337 it('should not be ok', function() {1338 judge.bind(null, args).should.throwError();1339 });1340 });1341 describe('with illegal arguments (3)', function() {1342 var args = [{1343 a: 'b'1344 }];1345 it('should not be ok', function() {1346 judge.bind(null, args).should.throwError();1347 });1348 });1349 describe('with illegal arguments (4)', function() {1350 var args = ['hello'];1351 it('should not be ok', function() {1352 judge.bind(null, args).should.throwError();1353 });1354 });1355 describe('with illegal arguments (5)', function() {1356 var args = [1357 function() {}1358 ];1359 it('should not be ok', function() {1360 judge.bind(null, args).should.throwError();1361 });1362 });1363 describe('with illegal arguments (6)', function() {1364 var args = [1365 [1, 2, 3]1366 ];1367 it('should not be ok', function() {1368 judge.bind(null, args).should.throwError();1369 });1370 });1371 describe('with illegal arguments (7)', function() {1372 var args = [false];1373 it('should not be ok', function() {1374 judge.bind(null, args).should.throwError();1375 });1376 });1377 describe('with illegal arguments (8)', function() {1378 var args = [true];1379 it('should not be ok', function() {1380 judge.bind(null, args).should.throwError();1381 });1382 });1383 describe('with illegal arguments (9)', function() {1384 var args = [null];1385 it('should not be ok', function() {1386 judge.bind(null, args).should.throwError();1387 });1388 });1389 describe('with illegal arguments (10)', function() {1390 var args = [undefined];1391 it('should not be ok', function() {1392 judge.bind(null, args).should.throwError();1393 });1394 });1395 describe('with missing argument', function() {1396 var args = [];1397 it('should not be ok', function() {1398 judge.bind(null, args).should.throwError();1399 });1400 });1401 });1402 describe('nn-int', function() {1403 var judge = decree([{1404 type: 'nn-int'1405 }]);1406 describe('with legal arguments (1)', function() {1407 var args = [123];1408 it('should be ok', function() {1409 judge(args)[0].should.be.a.Number;1410 });1411 });1412 describe('with legal arguments (2)', function() {1413 var args = [0];1414 it('should be ok', function() {1415 judge(args)[0].should.be.a.Number;1416 });1417 });1418 describe('with legal arguments (3)', function() {1419 var args = [1];1420 it('should be ok', function() {1421 judge(args)[0].should.be.a.Number;1422 });1423 });1424 describe('with illegal arguments (1)', function() {1425 var args = [-10];1426 it('should not be ok', function() {1427 judge.bind(null, args).should.throwError();1428 });1429 });1430 describe('with illegal arguments (2)', function() {1431 var args = [10.5];1432 it('should not be ok', function() {1433 judge.bind(null, args).should.throwError();1434 });1435 });1436 describe('with illegal arguments (3)', function() {1437 var args = [{1438 a: 'b'1439 }];1440 it('should not be ok', function() {1441 judge.bind(null, args).should.throwError();1442 });1443 });1444 describe('with illegal arguments (4)', function() {1445 var args = ['hello'];1446 it('should not be ok', function() {1447 judge.bind(null, args).should.throwError();1448 });1449 });1450 describe('with illegal arguments (5)', function() {1451 var args = [1452 function() {}1453 ];1454 it('should not be ok', function() {1455 judge.bind(null, args).should.throwError();1456 });1457 });1458 describe('with illegal arguments (6)', function() {1459 var args = [1460 [1, 2, 3]1461 ];1462 it('should not be ok', function() {1463 judge.bind(null, args).should.throwError();1464 });1465 });1466 describe('with illegal arguments (7)', function() {1467 var args = [false];1468 it('should not be ok', function() {1469 judge.bind(null, args).should.throwError();1470 });1471 });1472 describe('with illegal arguments (8)', function() {1473 var args = [true];1474 it('should not be ok', function() {1475 judge.bind(null, args).should.throwError();1476 });1477 });1478 describe('with illegal arguments (9)', function() {1479 var args = [null];1480 it('should not be ok', function() {1481 judge.bind(null, args).should.throwError();1482 });1483 });1484 describe('with illegal arguments (10)', function() {1485 var args = [undefined];1486 it('should not be ok', function() {1487 judge.bind(null, args).should.throwError();1488 });1489 });1490 describe('with missing argument', function() {1491 var args = [];1492 it('should not be ok', function() {1493 judge.bind(null, args).should.throwError();1494 });1495 });1496 });...

Full Screen

Full Screen

ORWU_DT_Timing.js

Source:ORWU_DT_Timing.js Github

copy

Full Screen

...25 var rpcArgs = [rpcFormatter.buildLiteralParamString("-31^DVBA_^" + robertSSN + "^" + robertName + "^OSEHRA^111^11111^No phone")];26 var rpc = rpcFormatter.buildRpcString(rpcName, rpcArgs);27 // send the rpc and wait on the promise of the response28 return Clients.sendRpc(0, rpc);29 } else Clients.throwError('TCPConnect', response);30 })31 .then(function (response) {32 var signonSetupResponseArray = response.split(NEW_LINE);33 if (signonSetupResponseArray.length > 7 && signonSetupResponseArray[5] == 1) {34 console.log('XUS SIGNON SETUP OK, trying XWB CREATE CONTEXT DVBA CAPRI GUI');35 // build next rpc36 var rpcName = "XWB CREATE CONTEXT";37 var rpcArgs = [rpcFormatter.buildEncryptedParamString("DVBA CAPRI GUI")];38 var rpc = rpcFormatter.buildRpcString(rpcName, rpcArgs);39 // send the rpc and wait on the promise of the response40 return Clients.sendRpc(0, rpc);41 } else Clients.throwError('XUS SIGNON SETUP', response);42 })43 .then(function (response) {44 if (response === rpcFormatter.encapsulate('1')) {45 console.log('XWB CREATE CONTEXT OK, trying XWB GET VARIABLE VALUE');46 // build next rpc47 var rpcName = "XWB GET VARIABLE VALUE";48 var rpcArgs = [rpcFormatter.buildReferenceParamString("$O(^VA(200,\"SSN\",\"" + robertSSN + "\",0))")];49 var rpc = rpcFormatter.buildRpcString(rpcName, rpcArgs);50 // send the rpc and wait on the promise of the response51 return Clients.sendRpc(0, rpc);52 } else Clients.throwError('XWB CREATE CONTEXT', response);53 })54 .then(function (response) {55 if (rpcFormatter.stripMarkers(response) === robertIEN) {56 console.log('XWB GET VARIABLE VALUE OK, trying XWB CREATE CONTEXT OR CPRS GUI CHART');57 // build next rpc58 var rpcName = "XWB CREATE CONTEXT";59 var rpcArgs = [rpcFormatter.buildEncryptedParamString("OR CPRS GUI CHART")];60 var rpc = rpcFormatter.buildRpcString(rpcName, rpcArgs);61 // send the rpc and wait on the promise of the response62 return Clients.sendRpc(0, rpc);63 } else Clients.throwError('XWB GET VARIABLE VALUE', response);64 })65 .then(function (response) {66 if (response === rpcFormatter.encapsulate('1')) {67 console.log('XWB CREATE CONTEXT OK, running ORWU DT');68 // send the rpc and wait on the promise of the response69 startTime = new Date().getTime();70 return Clients.sendRpc(0, dtRpc);71 } else Clients.throwError('XWB CREATE CONTEXT', response);72 })73 .then(function (response) {74 if (response !== undefined && response.length > 3) {75 return Clients.sendRpc(0, dtRpc);76 } else Clients.throwError('ORWU DT', response);77 })78 .then(function (response) {79 if (response !== undefined && response.length > 3) {80 return Clients.sendRpc(0, dtRpc);81 } else Clients.throwError('ORWU DT', response);82 })83 .then(function (response) {84 if (response !== undefined && response.length > 3) {85 return Clients.sendRpc(0, dtRpc);86 } else Clients.throwError('ORWU DT', response);87 })88 .then(function (response) {89 if (response !== undefined && response.length > 3) {90 return Clients.sendRpc(0, dtRpc);91 } else Clients.throwError('ORWU DT', response);92 })93 .then(function (response) {94 if (response !== undefined && response.length > 3) {95 return Clients.sendRpc(0, dtRpc);96 } else Clients.throwError('ORWU DT', response);97 })98 .then(function (response) {99 if (response !== undefined && response.length > 3) {100 return Clients.sendRpc(0, dtRpc);101 } else Clients.throwError('ORWU DT', response);102 })103 .then(function (response) {104 if (response !== undefined && response.length > 3) {105 return Clients.sendRpc(0, dtRpc);106 } else Clients.throwError('ORWU DT', response);107 })108 .then(function (response) {109 if (response !== undefined && response.length > 3) {110 return Clients.sendRpc(0, dtRpc);111 } else Clients.throwError('ORWU DT', response);112 })113 .then(function (response) {114 if (response !== undefined && response.length > 3) {115 return Clients.sendRpc(0, dtRpc);116 } else Clients.throwError('ORWU DT', response);117 })118 .then(function (response) {119 if (response !== undefined && response.length > 3) {120 return Clients.sendRpc(0, dtRpc);121 } else Clients.throwError('ORWU DT', response);122 })123 .then(function (response) {124 if (response !== undefined && response.length > 3) {125 return Clients.sendRpc(0, dtRpc);126 } else Clients.throwError('ORWU DT', response);127 })128 .then(function (response) {129 if (response !== undefined && response.length > 3) {130 return Clients.sendRpc(0, dtRpc);131 } else Clients.throwError('ORWU DT', response);132 })133 .then(function (response) {134 if (response !== undefined && response.length > 3) {135 return Clients.sendRpc(0, dtRpc);136 } else Clients.throwError('ORWU DT', response);137 })138 .then(function (response) {139 if (response !== undefined && response.length > 3) {140 return Clients.sendRpc(0, dtRpc);141 } else Clients.throwError('ORWU DT', response);142 })143 .then(function (response) {144 if (response !== undefined && response.length > 3) {145 return Clients.sendRpc(0, dtRpc);146 } else Clients.throwError('ORWU DT', response);147 })148 .then(function (response) {149 if (response !== undefined && response.length > 3) {150 return Clients.sendRpc(0, dtRpc);151 } else Clients.throwError('ORWU DT', response);152 })153 .then(function (response) {154 if (response !== undefined && response.length > 3) {155 return Clients.sendRpc(0, dtRpc);156 } else Clients.throwError('ORWU DT', response);157 })158 .then(function (response) {159 if (response !== undefined && response.length > 3) {160 return Clients.sendRpc(0, dtRpc);161 } else Clients.throwError('ORWU DT', response);162 })163 .then(function (response) {164 if (response !== undefined && response.length > 3) {165 return Clients.sendRpc(0, dtRpc);166 } else Clients.throwError('ORWU DT', response);167 })168 .then(function (response) {169 if (response !== undefined && response.length > 3) {170 return Clients.sendRpc(0, dtRpc);171 } else Clients.throwError('ORWU DT', response);172 })173 .then(function (response) {174 if (response !== undefined && response.length > 3) {175 return Clients.sendRpc(0, dtRpc);176 } else Clients.throwError('ORWU DT', response);177 })178 .then(function (response) {179 if (response !== undefined && response.length > 3) {180 return Clients.sendRpc(0, dtRpc);181 } else Clients.throwError('ORWU DT', response);182 })183 .then(function (response) {184 if (response !== undefined && response.length > 3) {185 return Clients.sendRpc(0, dtRpc);186 } else Clients.throwError('ORWU DT', response);187 })188 .then(function (response) {189 if (response !== undefined && response.length > 3) {190 return Clients.sendRpc(0, dtRpc);191 } else Clients.throwError('ORWU DT', response);192 })193 .then(function (response) {194 if (response !== undefined && response.length > 3) {195 return Clients.sendRpc(0, dtRpc);196 } else Clients.throwError('ORWU DT', response);197 })198 .then(function (response) {199 if (response !== undefined && response.length > 3) {200 return Clients.sendRpc(0, dtRpc);201 } else Clients.throwError('ORWU DT', response);202 })203 .then(function (response) {204 if (response !== undefined && response.length > 3) {205 return Clients.sendRpc(0, dtRpc);206 } else Clients.throwError('ORWU DT', response);207 })208 .then(function (response) {209 if (response !== undefined && response.length > 3) {210 return Clients.sendRpc(0, dtRpc);211 } else Clients.throwError('ORWU DT', response);212 })213 .then(function (response) {214 if (response !== undefined && response.length > 3) {215 return Clients.sendRpc(0, dtRpc);216 } else Clients.throwError('ORWU DT', response);217 })218 .then(function (response) {219 if (response !== undefined && response.length > 3) {220 return Clients.sendRpc(0, dtRpc);221 } else Clients.throwError('ORWU DT', response);222 })223 .then(function (response) {224 if (response !== undefined && response.length > 3) {225 return Clients.sendRpc(0, dtRpc);226 } else Clients.throwError('ORWU DT', response);227 })228 .then(function (response) {229 if (response !== undefined && response.length > 3) {230 return Clients.sendRpc(0, dtRpc);231 } else Clients.throwError('ORWU DT', response);232 })233 .then(function (response) {234 if (response !== undefined && response.length > 3) {235 return Clients.sendRpc(0, dtRpc);236 } else Clients.throwError('ORWU DT', response);237 })238 .then(function (response) {239 if (response !== undefined && response.length > 3) {240 return Clients.sendRpc(0, dtRpc);241 } else Clients.throwError('ORWU DT', response);242 })243 .then(function (response) {244 if (response !== undefined && response.length > 3) {245 return Clients.sendRpc(0, dtRpc);246 } else Clients.throwError('ORWU DT', response);247 })248 .then(function (response) {249 if (response !== undefined && response.length > 3) {250 return Clients.sendRpc(0, dtRpc);251 } else Clients.throwError('ORWU DT', response);252 })253 .then(function (response) {254 if (response !== undefined && response.length > 3) {255 return Clients.sendRpc(0, dtRpc);256 } else Clients.throwError('ORWU DT', response);257 })258 .then(function (response) {259 if (response !== undefined && response.length > 3) {260 return Clients.sendRpc(0, dtRpc);261 } else Clients.throwError('ORWU DT', response);262 })263 .then(function (response) {264 if (response !== undefined && response.length > 3) {265 return Clients.sendRpc(0, dtRpc);266 } else Clients.throwError('ORWU DT', response);267 })268 .then(function (response) {269 if (response !== undefined && response.length > 3) {270 return Clients.sendRpc(0, dtRpc);271 } else Clients.throwError('ORWU DT', response);272 })273 .then(function (response) {274 if (response !== undefined && response.length > 3) {275 return Clients.sendRpc(0, dtRpc);276 } else Clients.throwError('ORWU DT', response);277 })278 .then(function (response) {279 if (response !== undefined && response.length > 3) {280 return Clients.sendRpc(0, dtRpc);281 } else Clients.throwError('ORWU DT', response);282 })283 .then(function (response) {284 if (response !== undefined && response.length > 3) {285 return Clients.sendRpc(0, dtRpc);286 } else Clients.throwError('ORWU DT', response);287 })288 .then(function (response) {289 if (response !== undefined && response.length > 3) {290 return Clients.sendRpc(0, dtRpc);291 } else Clients.throwError('ORWU DT', response);292 })293 .then(function (response) {294 if (response !== undefined && response.length > 3) {295 return Clients.sendRpc(0, dtRpc);296 } else Clients.throwError('ORWU DT', response);297 })298 .then(function (response) {299 if (response !== undefined && response.length > 3) {300 return Clients.sendRpc(0, dtRpc);301 } else Clients.throwError('ORWU DT', response);302 })303 .then(function (response) {304 if (response !== undefined && response.length > 3) {305 return Clients.sendRpc(0, dtRpc);306 } else Clients.throwError('ORWU DT', response);307 })308 .then(function (response) {309 if (response !== undefined && response.length > 3) {310 return Clients.sendRpc(0, dtRpc);311 } else Clients.throwError('ORWU DT', response);312 })313 .then(function (response) {314 if (response !== undefined && response.length > 3) {315 return Clients.sendRpc(0, dtRpc);316 } else Clients.throwError('ORWU DT', response);317 })318 .then(function (response) {319 if (response !== undefined && response.length > 3) {320 return Clients.sendRpc(0, dtRpc);321 } else Clients.throwError('ORWU DT', response);322 })323 .then(function (response) {324 if (response !== undefined && response.length > 3) {325 return Clients.sendRpc(0, dtRpc);326 } else Clients.throwError('ORWU DT', response);327 })328 .then(function (response) {329 if (response !== undefined && response.length > 3) {330 return Clients.sendRpc(0, dtRpc);331 } else Clients.throwError('ORWU DT', response);332 })333 .then(function (response) {334 if (response !== undefined && response.length > 3) {335 return Clients.sendRpc(0, dtRpc);336 } else Clients.throwError('ORWU DT', response);337 })338 .then(function (response) {339 if (response !== undefined && response.length > 3) {340 return Clients.sendRpc(0, dtRpc);341 } else Clients.throwError('ORWU DT', response);342 })343 .then(function (response) {344 if (response !== undefined && response.length > 3) {345 return Clients.sendRpc(0, dtRpc);346 } else Clients.throwError('ORWU DT', response);347 })348 .then(function (response) {349 if (response !== undefined && response.length > 3) {350 return Clients.sendRpc(0, dtRpc);351 } else Clients.throwError('ORWU DT', response);352 })353 .then(function (response) {354 if (response !== undefined && response.length > 3) {355 return Clients.sendRpc(0, dtRpc);356 } else Clients.throwError('ORWU DT', response);357 })358 .then(function (response) {359 if (response !== undefined && response.length > 3) {360 return Clients.sendRpc(0, dtRpc);361 } else Clients.throwError('ORWU DT', response);362 })363 .then(function (response) {364 if (response !== undefined && response.length > 3) {365 return Clients.sendRpc(0, dtRpc);366 } else Clients.throwError('ORWU DT', response);367 })368 .then(function (response) {369 if (response !== undefined && response.length > 3) {370 return Clients.sendRpc(0, dtRpc);371 } else Clients.throwError('ORWU DT', response);372 })373 .then(function (response) {374 if (response !== undefined && response.length > 3) {375 return Clients.sendRpc(0, dtRpc);376 } else Clients.throwError('ORWU DT', response);377 })378 .then(function (response) {379 if (response !== undefined && response.length > 3) {380 return Clients.sendRpc(0, dtRpc);381 } else Clients.throwError('ORWU DT', response);382 })383 .then(function (response) {384 if (response !== undefined && response.length > 3) {385 return Clients.sendRpc(0, dtRpc);386 } else Clients.throwError('ORWU DT', response);387 })388 .then(function (response) {389 if (response !== undefined && response.length > 3) {390 return Clients.sendRpc(0, dtRpc);391 } else Clients.throwError('ORWU DT', response);392 })393 .then(function (response) {394 if (response !== undefined && response.length > 3) {395 return Clients.sendRpc(0, dtRpc);396 } else Clients.throwError('ORWU DT', response);397 })398 .then(function (response) {399 if (response !== undefined && response.length > 3) {400 return Clients.sendRpc(0, dtRpc);401 } else Clients.throwError('ORWU DT', response);402 })403 .then(function (response) {404 if (response !== undefined && response.length > 3) {405 return Clients.sendRpc(0, dtRpc);406 } else Clients.throwError('ORWU DT', response);407 })408 .then(function (response) {409 if (response !== undefined && response.length > 3) {410 return Clients.sendRpc(0, dtRpc);411 } else Clients.throwError('ORWU DT', response);412 })413 .then(function (response) {414 if (response !== undefined && response.length > 3) {415 return Clients.sendRpc(0, dtRpc);416 } else Clients.throwError('ORWU DT', response);417 })418 .then(function (response) {419 if (response !== undefined && response.length > 3) {420 return Clients.sendRpc(0, dtRpc);421 } else Clients.throwError('ORWU DT', response);422 })423 .then(function (response) {424 if (response !== undefined && response.length > 3) {425 return Clients.sendRpc(0, dtRpc);426 } else Clients.throwError('ORWU DT', response);427 })428 .then(function (response) {429 if (response !== undefined && response.length > 3) {430 return Clients.sendRpc(0, dtRpc);431 } else Clients.throwError('ORWU DT', response);432 })433 .then(function (response) {434 if (response !== undefined && response.length > 3) {435 return Clients.sendRpc(0, dtRpc);436 } else Clients.throwError('ORWU DT', response);437 })438 .then(function (response) {439 if (response !== undefined && response.length > 3) {440 return Clients.sendRpc(0, dtRpc);441 } else Clients.throwError('ORWU DT', response);442 })443 .then(function (response) {444 if (response !== undefined && response.length > 3) {445 return Clients.sendRpc(0, dtRpc);446 } else Clients.throwError('ORWU DT', response);447 })448 .then(function (response) {449 if (response !== undefined && response.length > 3) {450 return Clients.sendRpc(0, dtRpc);451 } else Clients.throwError('ORWU DT', response);452 })453 .then(function (response) {454 if (response !== undefined && response.length > 3) {455 return Clients.sendRpc(0, dtRpc);456 } else Clients.throwError('ORWU DT', response);457 })458 .then(function (response) {459 if (response !== undefined && response.length > 3) {460 return Clients.sendRpc(0, dtRpc);461 } else Clients.throwError('ORWU DT', response);462 })463 .then(function (response) {464 if (response !== undefined && response.length > 3) {465 return Clients.sendRpc(0, dtRpc);466 } else Clients.throwError('ORWU DT', response);467 })468 .then(function (response) {469 if (response !== undefined && response.length > 3) {470 endTime = new Date().getTime();471 console.log("\n\nExecution time of ORWU DT: %j ms\n\n", endTime - startTime);472 console.log('ORWU DT OK: %j, trying #BYE#', response);473 return Clients.sendRpc(0, rpcFormatter.buildRpcSignOffString());474 } else Clients.throwError('ORWU DT', response);475 })476 .then(function (response) {477 if (response === rpcFormatter.encapsulate('#BYE#')) {478 console.log('#BYE#');479 success('test1')480 //reconnectClientForNewTest(client, test2);481 Clients.closeAllClients();482 } else Clients.throwError('#BYE#', response);483 })484 .catch(function (error) {485 console.log(error);486 Clients.closeAllClients();487 });488}489function success(testName) {490 console.log('\n\n' + testName + ' SUCESS!!!\n\n');491}492Clients.setClientTest(0, test1);...

Full Screen

Full Screen

error-wrapper.js

Source:error-wrapper.js Github

copy

Full Screen

...5 constructor(selector: string) {6 this.selector = selector7 }8 at(): void {9 throwError(10 `find did not return ${this.selector}, cannot call at() on empty Wrapper`11 )12 }13 attributes(): void {14 throwError(15 `find did not return ${16 this.selector17 }, cannot call attributes() on empty Wrapper`18 )19 }20 classes(): void {21 throwError(22 `find did not return ${23 this.selector24 }, cannot call classes() on empty Wrapper`25 )26 }27 contains(): void {28 throwError(29 `find did not return ${30 this.selector31 }, cannot call contains() on empty Wrapper`32 )33 }34 emitted(): void {35 throwError(36 `find did not return ${37 this.selector38 }, cannot call emitted() on empty Wrapper`39 )40 }41 emittedByOrder(): void {42 throwError(43 `find did not return ${44 this.selector45 }, cannot call emittedByOrder() on empty Wrapper`46 )47 }48 exists(): boolean {49 return false50 }51 filter(): void {52 throwError(53 `find did not return ${54 this.selector55 }, cannot call filter() on empty Wrapper`56 )57 }58 visible(): void {59 throwError(60 `find did not return ${61 this.selector62 }, cannot call visible() on empty Wrapper`63 )64 }65 hasAttribute(): void {66 throwError(67 `find did not return ${68 this.selector69 }, cannot call hasAttribute() on empty Wrapper`70 )71 }72 hasClass(): void {73 throwError(74 `find did not return ${75 this.selector76 }, cannot call hasClass() on empty Wrapper`77 )78 }79 hasProp(): void {80 throwError(81 `find did not return ${82 this.selector83 }, cannot call hasProp() on empty Wrapper`84 )85 }86 hasStyle(): void {87 throwError(88 `find did not return ${89 this.selector90 }, cannot call hasStyle() on empty Wrapper`91 )92 }93 findAll(): void {94 throwError(95 `find did not return ${96 this.selector97 }, cannot call findAll() on empty Wrapper`98 )99 }100 find(): void {101 throwError(102 `find did not return ${103 this.selector104 }, cannot call find() on empty Wrapper`105 )106 }107 html(): void {108 throwError(109 `find did not return ${110 this.selector111 }, cannot call html() on empty Wrapper`112 )113 }114 is(): void {115 throwError(116 `find did not return ${this.selector}, cannot call is() on empty Wrapper`117 )118 }119 isEmpty(): void {120 throwError(121 `find did not return ${122 this.selector123 }, cannot call isEmpty() on empty Wrapper`124 )125 }126 isVisible(): void {127 throwError(128 `find did not return ${129 this.selector130 }, cannot call isVisible() on empty Wrapper`131 )132 }133 isVueInstance(): void {134 throwError(135 `find did not return ${136 this.selector137 }, cannot call isVueInstance() on empty Wrapper`138 )139 }140 name(): void {141 throwError(142 `find did not return ${143 this.selector144 }, cannot call name() on empty Wrapper`145 )146 }147 props(): void {148 throwError(149 `find did not return ${150 this.selector151 }, cannot call props() on empty Wrapper`152 )153 }154 text(): void {155 throwError(156 `find did not return ${157 this.selector158 }, cannot call text() on empty Wrapper`159 )160 }161 setComputed(): void {162 throwError(163 `find did not return ${164 this.selector165 }, cannot call setComputed() on empty Wrapper`166 )167 }168 setData(): void {169 throwError(170 `find did not return ${171 this.selector172 }, cannot call setData() on empty Wrapper`173 )174 }175 setMethods(): void {176 throwError(177 `find did not return ${178 this.selector179 }, cannot call setMethods() on empty Wrapper`180 )181 }182 setProps(): void {183 throwError(184 `find did not return ${185 this.selector186 }, cannot call setProps() on empty Wrapper`187 )188 }189 setValue(): void {190 throwError(191 `find did not return ${192 this.selector193 }, cannot call setValue() on empty Wrapper`194 )195 }196 setChecked(): void {197 throwError(198 `find did not return ${199 this.selector200 }, cannot call setChecked() on empty Wrapper`201 )202 }203 setSelected(): void {204 throwError(205 `find did not return ${206 this.selector207 }, cannot call setSelected() on empty Wrapper`208 )209 }210 trigger(): void {211 throwError(212 `find did not return ${213 this.selector214 }, cannot call trigger() on empty Wrapper`215 )216 }217 update(): void {218 throwError(219 `update has been removed from vue-test-utils.` +220 `All updates are now synchronous by default`221 )222 }223 destroy(): void {224 throwError(225 `find did not return ${226 this.selector227 }, cannot call destroy() on empty Wrapper`228 )229 }...

Full Screen

Full Screen

Validate.spec.ts

Source:Validate.spec.ts Github

copy

Full Screen

1// eslint-disable-next-line max-classes-per-file2import { asyncRandom } from '@jamashita/anden-helper';3import { ValidationRule } from '../../Rules/ValidationRule';4import { addRule, Validate } from '../Validate';5type TestValidationArgs = Readonly<{6 throwError: boolean;7}>;8class TestValidationRule implements ValidationRule {9 private readonly throwError: boolean;10 public constructor({ throwError }: TestValidationArgs) {11 this.throwError = throwError;12 }13 public evaluate(): void {14 if (this.throwError) {15 throw new TypeError('ERROR!');16 }17 }18}19const TestValidation = (args: TestValidationArgs): ParameterDecorator => {20 const v: TestValidationRule = new TestValidationRule(args);21 return (target: object, key: string | symbol, index: number) => {22 addRule(target, key, index, v);23 };24};25class Test1 {26 @Validate()27 public oneA(28 @TestValidation({ throwError: false }) arg1: unknown29 ): unknown {30 return arg1;31 }32 @Validate()33 public threeA(34 @TestValidation({ throwError: false }) _arg1: unknown,35 @TestValidation({ throwError: false }) _arg2: unknown,36 @TestValidation({ throwError: false }) arg3: unknown37 ): unknown {38 return arg3;39 }40 @Validate()41 public twoA(42 @TestValidation({ throwError: false }) _arg1: unknown,43 @TestValidation({ throwError: false }) arg2: unknown44 ): unknown {45 return arg2;46 }47}48class Test2 {49 @Validate()50 public oneA(51 @TestValidation({ throwError: true }) arg1: unknown52 ): unknown {53 return arg1;54 }55 @Validate()56 public threeA(57 @TestValidation({ throwError: true }) _arg1: unknown,58 @TestValidation({ throwError: false }) _arg2: unknown,59 @TestValidation({ throwError: false }) arg3: unknown60 ): unknown {61 return arg3;62 }63 @Validate()64 public twoA(65 @TestValidation({ throwError: true }) _arg1: unknown,66 @TestValidation({ throwError: false }) arg2: unknown67 ): unknown {68 return arg2;69 }70}71class Test3 {72 @Validate()73 public oneA(74 @TestValidation({ throwError: true }) arg1: unknown75 ): unknown {76 return arg1;77 }78 @Validate()79 public threeA(80 @TestValidation({ throwError: false }) _arg1: unknown,81 @TestValidation({ throwError: false }) _arg2: unknown,82 @TestValidation({ throwError: true }) arg3: unknown83 ): unknown {84 return arg3;85 }86 @Validate()87 public twoA(88 @TestValidation({ throwError: false }) _arg1: unknown,89 @TestValidation({ throwError: true }) arg2: unknown90 ): unknown {91 return arg2;92 }93}94class Test4 {95 @Validate()96 public oneA(97 @TestValidation({ throwError: true }) arg1: unknown98 ): unknown {99 return arg1;100 }101 @Validate()102 public threeA(103 @TestValidation({ throwError: true }) _arg1: unknown,104 @TestValidation({ throwError: true }) _arg2: unknown,105 @TestValidation({ throwError: true }) arg3: unknown106 ): unknown {107 return arg3;108 }109 @Validate()110 public twoA(111 @TestValidation({ throwError: true }) _arg1: unknown,112 @TestValidation({ throwError: true }) arg2: unknown113 ): unknown {114 return arg2;115 }116}117describe('Validate', () => {118 it('will not throw ValueError when any decorated args are not set to throw ValueError', () => {119 const test: Test1 = new Test1();120 expect(() => {121 test.oneA('');122 }).not.toThrow(TypeError);123 expect(() => {124 test.twoA('', '');125 }).not.toThrow(TypeError);126 expect(() => {127 test.threeA('', '', '');128 }).not.toThrow(TypeError);129 });130 it('returns the same value of its original return value', async () => {131 const [r1, r2, r3]: Array<string> = await Promise.all<string>([132 asyncRandom(200),133 asyncRandom(300),134 asyncRandom(400)135 ]);136 const test: Test1 = new Test1();137 expect(test.oneA(r1)).toBe(r1);138 expect(test.twoA(r1, r2)).toBe(r2);139 expect(test.threeA(r1, r2, r3)).toBe(r3);140 });141 it('will throw ValueError when each first decorated arg is set to throw ValueError', () => {142 const test: Test2 = new Test2();143 expect(() => {144 test.oneA('');145 }).toThrow(TypeError);146 expect(() => {147 test.twoA('', '');148 }).toThrow(TypeError);149 expect(() => {150 test.threeA('', '', '');151 }).toThrow(TypeError);152 });153 it('will throw ValueError when each last decorated arg is set to throw ValueError', () => {154 const test: Test3 = new Test3();155 expect(() => {156 test.oneA('');157 }).toThrow(TypeError);158 expect(() => {159 test.twoA('', '');160 }).toThrow(TypeError);161 expect(() => {162 test.threeA('', '', '');163 }).toThrow(TypeError);164 });165 it('will throw ValueError when all decorated args are set to throw ValueError', () => {166 const test: Test4 = new Test4();167 expect(() => {168 test.oneA('');169 }).toThrow(TypeError);170 expect(() => {171 test.twoA('', '');172 }).toThrow(TypeError);173 expect(() => {174 test.threeA('', '', '');175 }).toThrow(TypeError);176 });...

Full Screen

Full Screen

index.js

Source:index.js Github

copy

Full Screen

1import { traceMsg } from '../../../../helpers/debug'2// import checkEnvironment from '../checkEnvironment'3import chooseEnvironment from '../chooseEnvironment'4import { setSetting } from '../../../../settings'5import checkEnvironment from '../checkEnvironment'6/**7 @return {Object} _framework8 */9export const createFaultyFramework = function (e) {10 const error = e ||11 new Error('DYMO Label Framework Plugin or WebService are not installed')12 const throwError = function () {13 throw error14 }15 return {16 getPrinters: throwError,17 openLabelFile: throwError,18 printLabel: throwError,19 printLabel2: throwError,20 renderLabel: throwError,21 loadImageAsPngBase64: throwError,22 getJobStatus: throwError,23 is550Printer: throwError,24 getConsumableInfoIn550Printer: throwError,25 getPrintersAsync: throwError,26 openLabelFileAsync: throwError,27 printLabelAsync: throwError,28 printLabel2Async: throwError,29 renderLabelAsync: throwError,30 loadImageAsPngBase64Async: throwError,31 is550PrinterAsync: throwError,32 getConsumableInfoIn550PrinterAsync: throwError,33 };34};35// let _framework36// let currentFramework37// let _waitWebService = false38// let _checkResult = null39/**40 * @constructor41 */42function _createFramework (callBack, checkWebService, framework = undefined) {43 this.v1 = true44 this.init = false45 let _framework = framework46 let currentFramework47 let _waitWebService = false48 let _checkResult = null49 if (_waitWebService) {50 traceMsg('_createFramework > Error service discovery is in progress. ')51 throw new Error('DYMO Label Framework service discovery is in progress.')52 }53 if (_framework) {54 traceMsg(55 `_createFramework > returning existing instance of _framework, has callBack: ${!!callBack}`,56 )57 callBack && callBack(_checkResult)58 return _framework59 }60 if (this && this.constructor == _createFramework) {61 _waitWebService = true62 const onEnvironmentChecked = function (checkResult) {63 _checkResult = checkResult64 try {65 _framework = chooseEnvironment(checkResult)66 currentFramework = checkResult.isWebServicePresent ? 2 : 167 setSetting('dymo.label.framework.currentFramework', currentFramework)68 } catch (e) {69 traceMsg(70 `onEnvironmentChecked > exception e : ${e.description || e.message ||71 e}`)72 if (!checkWebService) throw e73 _framework = createFaultyFramework(e)74 traceMsg('onEnvironmentChecked > fall back to createFaultyFramework')75 } finally {76 _waitWebService = false77 }78 callBack && callBack(_checkResult)79 };80 return (async () => {81 await checkEnvironment(onEnvironmentChecked, checkWebService)82 return _framework83 })()84 }85 this.init = true86 return new _createFramework(callBack, checkWebService)87}88export const createFramework = (callBack, checkWebService) =>89 new _createFramework(callBack, checkWebService)...

Full Screen

Full Screen

challenges.service.ts

Source:challenges.service.ts Github

copy

Full Screen

...13export class ChallengesService {14 constructor(private readonly dao: ChallengesDao) {}15 findOneById(id: string): Observable<Challenge> {16 return this.dao.findOneById(id).pipe(17 catchError(() => throwError(() => new UnprocessableEntityException())),18 mergeMap((board: Challenge) =>19 !!board ? of(board) : throwError(() => new NotFoundException()),20 ),21 );22 }23 find(): Observable<Challenge[]> {24 return this.dao25 .find()26 .pipe(27 catchError(() => throwError(() => new UnprocessableEntityException())),28 );29 }30 createChallenge(args: CreateChallenge): Observable<Challenge> {31 return this.dao.createChallenge(args).pipe(32 catchError((err) => {33 if (err.code === 11000) {34 return throwError(() => new ConflictException());35 } else {36 return throwError(() => new UnprocessableEntityException());37 }38 }),39 );40 }41 updateChallenge(id: string, args: UpdateChallenge): Observable<Challenge> {42 return this.dao.updateChallenge(id, args).pipe(43 catchError((err) => {44 if (err.code === 11000) {45 return throwError(() => new ConflictException());46 } else {47 return throwError(() => new UnprocessableEntityException());48 }49 }),50 mergeMap((board: Challenge) =>51 !!board ? of(board) : throwError(() => new NotFoundException()),52 ),53 );54 }55 deleteChallenge(id: string): Observable<Challenge> {56 return this.dao.deleteChallenge(id).pipe(57 catchError(() => throwError(() => new UnprocessableEntityException())),58 mergeMap((board: Challenge) =>59 !!board ? of(board) : throwError(() => new NotFoundException()),60 ),61 );62 }63 private checkElement(res: any) {64 return of(res).pipe(65 catchError((err) => {66 if (err.code === 11000) {67 return throwError(() => new ConflictException());68 } else {69 return throwError(() => new UnprocessableEntityException());70 }71 }),72 mergeMap((board: Challenge) =>73 !!board ? of(board) : throwError(() => new NotFoundException()),74 ),75 );76 }...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1import { renderHook, act } from "@testing-library/react-hooks";2import { useCounter } from "./useCounter";3describe("useCounter", () => {4 it("should increment the counter", () => {5 const { result } = renderHook(() => useCounter());6 act(() => {7 result.current.increment();8 });9 expect(result.current.count).toBe(1);10 });11 it("should decrement the counter", () => {12 const { result } = renderHook(() => useCounter());13 act(() => {14 result.current.decrement();15 });16 expect(result.current.count).toBe(-1);17 });18});19import { useState } from "react";20export const useCounter = () => {21 const [count, setCount] = useState(0);22 const increment = () => {23 setCount(count + 1);24 };25 const decrement = () => {26 setCount(count - 1);27 };28 return { count, increment, decrement };29};30import { renderHook, act } from "@testing-library/react-hooks";31import { useCounter } from "./useCounter";32describe("useCounter", () => {33 it("should increment the counter", () => {34 const { result } = renderHook(() => useCounter());35 act(() => {36 result.current.increment();37 });38 expect(result.current.count).toBe(1);39 });40 it("should decrement the counter", () => {41 const { result } = renderHook(() => useCounter());42 act(() => {43 result.current.decrement();44 });45 expect(result.current.count).toBe(-1);46 });47});48import { useState } from "react";49export const useCounter = () => {50 const [count, setCount] = useState(0);51 const increment = () => {52 setCount(count + 1);53 };54 const decrement = () => {55 setCount(count - 1);56 };57 return { count, increment, decrement };58};59import { renderHook, act } from "@testing-library/react-hooks";60import { useCounter } from "./useCounter";61describe("useCounter", () => {62 it("should increment the counter", () => {63 const { result } = renderHook(() => useCounter());64 act(() => {

Full Screen

Using AI Code Generation

copy

Full Screen

1import { renderHook } from '@testing-library/react-hooks';2import { useCounter } from './useCounter';3describe('useCounter', () => {4 it('should increment counter', () => {5 const { result } = renderHook(() => useCounter());6 expect(result.current.count).toBe(0);7 result.current.increment();8 expect(result.current.count).toBe(1);9 });10 it('should throw error on decrement', () => {11 const { result } = renderHook(() => useCounter());12 expect(() => result.current.decrement()).toThrow();13 });14});15export const useCounter = () => {16 const [count, setCount] = useState(0);17 const increment = () => setCount(count + 1);18 const decrement = () => {19 if (count === 0) {20 throw new Error('Cannot decrement below zero');21 }22 setCount(count - 1);23 };24 return { count, increment, decrement };25};26import { renderHook } from '@testing-library/react-hooks';27import { useCounter } from './useCounter';28describe('useCounter', () => {29 it('should increment counter', () => {30 const { result } = renderHook(() => useCounter());31 expect(result.current.count).toBe(0);32 result.current.increment();33 expect(result.current.count).toBe(1);34 });35 it('should throw error on decrement', () => {36 const { result } = renderHook(() => useCounter());37 expect(() => result.current.decrement()).toThrow();38 });39});40export const useCounter = () => {41 const [count, setCount] = useState(0);42 const increment = () => setCount(count + 1);43 const decrement = () => {44 if (count === 0) {45 throw new Error('Cannot decrement below zero');46 }47 setCount(count - 1);48 };49 return { count, increment, decrement };50};

Full Screen

Using AI Code Generation

copy

Full Screen

1const { renderHook, act } = require('@testing-library/react-hooks');2const { useCounter } = require('./useCounter');3test('useCounter', () => {4 const { result } = renderHook(() => useCounter());5 expect(result.current.count).toBe(0);6 act(() => result.current.increment());7 expect(result.current.count).toBe(1);8 act(() => result.current.decrement());9 expect(result.current.count).toBe(0);10 act(() => result.current.setCount(5));11 expect(result.current.count).toBe(5);12 act(() => result.current.increment());13 expect(result.current.count).toBe(6);14 act(() => result.current.decrement());15 expect(result.current.count).toBe(5);16 act(() => result.current.setCount(-5));17 expect(result.current.count).toBe(5);18});19import { useState, useCallback } from 'react';20export const useCounter = () => {21 const [count, setCount] = useState(0);22 const increment = useCallback(() => setCount((prev) => prev + 1), []);23 const decrement = useCallback(() => setCount((prev) => prev - 1), []);24 const reset = useCallback(() => setCount(0), []);25 return { count, increment, decrement, reset, setCount };26};27const { renderHook, act } = require('@testing-library/react-hooks');28const { useCounter } = require('./useCounter');29test('useCounter', () => {30 const { result } = renderHook(() => useCounter());31 expect(result.current.count).toBe(0);32 act(() => result.current.increment());33 expect(result.current.count).toBe(1);34 act(() => result.current.decrement());35 expect(result.current.count).toBe(0);36 act(() => result.current.setCount(5));37 expect(result.current.count).toBe(5);38 act(() => result.current.increment());39 expect(result.current.count).toBe(6);40 act(() => result.current.decrement());41 expect(result.current.count).toBe(5);42 act(() => result.current.setCount(-5));43 expect(result.current.count).toBe(-5);44});

Full Screen

Using AI Code Generation

copy

Full Screen

1import { renderHook, act } from "@testing-library/react-hooks";2import { useCounter } from "../useCounter";3describe("useCounter", () => {4 it("should increment counter by 1", () => {5 const { result } = renderHook(() => useCounter());6 act(() => {7 result.current.increment();8 });9 expect(result.current.count).toBe(1);10 });11 it("should decrement counter by 1", () => {12 const { result } = renderHook(() => useCounter());13 act(() => {14 result.current.decrement();15 });16 expect(result.current.count).toBe(-1);17 });18});19import { useState } from "react";20export const useCounter = () => {21 const [count, setCount] = useState(0);22 const increment = () => {23 setCount((prevCount) => prevCount + 1);24 };25 const decrement = () => {26 setCount((prevCount) => prevCount - 1);27 };28 return {29 };30};31import { useState } from "react";32export const useCounter = () => {33 const [count, setCount] = useState(0);34 const increment = () => {35 setCount((prevCount) => prevCount + 1);36 };37 const decrement = () => {38 setCount((prevCount) => prevCount - 1);39 };40 return {41 };42};43import { useState } from "react";44export const useCounter = () => {45 const [count, setCount] = useState(0);46 const increment = () => {47 setCount((prevCount) => prevCount + 1);48 };49 const decrement = () => {50 setCount((prevCount) => prevCount - 1);51 };52 return {53 };54};55import { useState } from "react";56export const useCounter = () => {

Full Screen

Using AI Code Generation

copy

Full Screen

1import { renderHook, act } from '@testing-library/react-hooks';2import { useCounter } from './useCounter';3describe('useCounter', () => {4 it('should return the counter value', () => {5 const { result } = renderHook(() => useCounter());6 expect(result.current.counter).toBe(0);7 });8 it('should increment the counter value', () => {9 const { result } = renderHook(() => useCounter());10 act(() => {11 result.current.increment();12 });13 expect(result.current.counter).toBe(1);14 });15 it('should decrement the counter value', () => {16 const { result } = renderHook(() => useCounter());17 act(() => {18 result.current.decrement();19 });20 expect(result.current.counter).toBe(-1);21 });22});23import { useState } from 'react';24export const useCounter = () => {25 const [counter, setCounter] = useState(0);26 const increment = () => setCounter((c) => c + 1);27 const decrement = () => setCounter((c) => c - 1);28 return {29 };30};

Full Screen

Using AI Code Generation

copy

Full Screen

1test('test1', () => {2 expect(result.current.isLoading).toBe(true);3 expect(result.current.error).toBe(null);4 expect(result.current.data).toBe(null);5 waitForNextUpdate().then(() => {6 expect(result.current.isLoading).toBe(false);7 expect(result.current.error).toBe(null);8 expect(result.current.data).toBe('Hello');9 });10});11test('test2', async () => {12 expect(result.current.isLoading).toBe(true);13 expect(result.current.error).toBe(null);14 expect(result.current.data).toBe(null);15 await waitForNextUpdate();16 expect(result.current.isLoading).toBe(false);17 expect(result.current.error).toBe(null);18 expect(result.current.data).toBe('Hello');19});20test('test3', async () => {21 expect(result.current.isLoading).toBe(true);22 expect(result.current.error).toBe(null);23 expect(result.current.data).toBe(null);24 try {25 await waitForNextUpdate();26 } catch (error) {27 console.log(error);28 }29 expect(result.current.isLoading).toBe(false);30 expect(result.current.error).toBe(null);31 expect(result.current.data).toBe('Hello');32});33test('test4', async () => {34 expect(result.current.isLoading).toBe(true);35 expect(result.current.error).toBe(null);36 expect(result.current.data).toBe(null);37 try {38 await waitForNextUpdate();39 } catch (error) {40 console.log(error);41 throwError(error);42 }43 expect(result.current.isLoading).toBe(false);44 expect(result.current.error).toBe(null);45 expect(result.current.data).toBe('Hello');46});

Full Screen

Using AI Code Generation

copy

Full Screen

1import {renderHook, act} from '@testing-library/react-hooks'2import useCounter from './useCounter'3test('useCounter', () => {4const {result} = renderHook(() => useCounter())5expect(result.current.count).toBe(0)6act(() => {7result.current.increment()8})9expect(result.current.count).toBe(1)10act(() => {11result.current.decrement()12})13expect(result.current.count).toBe(0)14})15import {useState, useCallback} from 'react'16export default function useCounter() {17const [count, setCount] = useState(0)18const increment = useCallback(() => setCount((count) => count + 1), [])19const decrement = useCallback(() => setCount((count) => count - 1), [])20return {count, increment, decrement}21}22export default function useCounter(): {23increment: () => void24decrement: () => void25}26declare module 'useCounter' {27export default function useCounter(): {28increment: () => void29decrement: () => void30}31}

Full Screen

Using AI Code Generation

copy

Full Screen

1import { renderHook } from '@testing-library/react-hooks';2import useFetch from './useFetch';3describe('useFetch', () => {4 it('should return a default value', () => {5 expect(result.current[0]).toEqual([]);6 });7});8import { useState, useEffect } from 'react';9const useFetch = (url) => {10 const [data, setData] = useState([]);11 useEffect(() => {12 fetch(url)13 .then((res) => res.json())14 .then((data) => setData(data));15 }, [url]);16 return [data];17};18export default useFetch;19 √ should return a default value (5ms)

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run testing-library-react-hooks automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful