Built motion from commit 1333b3551.|1.0.38
[motion.git] / server / config / agi / lib / square.js
index 7352028..fa50a6d 100644 (file)
@@ -1 +1 @@
-var _0x4b90=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x73","\x78\x6D\x6C\x32\x6A\x73\x6F\x6E","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x72\x65\x64\x69\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2F\x73\x65\x72\x76\x65\x72","\x2E\x2F\x76\x65\x72\x74\x69\x63\x65\x73","\x6D\x65\x6E\x75","\x67\x65\x74\x64\x69\x67\x69\x74\x73","\x67\x65\x74\x73\x65\x63\x72\x65\x74\x64\x69\x67\x69\x74\x73","\x72\x70\x63","\x73\x65\x72\x76\x65\x72","\x62\x69\x6E\x64","\x73\x74\x61\x72\x74","\x72\x65\x64\x69\x73\x50\x77\x64","\x69\x70","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x69\x6F","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x65\x6D\x69\x74\x74\x65\x72","\x63\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x70\x6F\x72\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x63\x61\x74\x63\x68","\x72\x65\x70\x6F\x72\x74\x5F\x73\x71\x75\x61\x72\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x74\x68\x65\x6E","\x72\x65\x71\x75\x65\x73\x74","\x63\x68\x61\x6E\x6E\x65\x6C","\x75\x70\x64\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x70\x6F\x72\x74","\x6C\x65\x6E\x67\x74\x68","\x75\x6E\x69\x71\x75\x65\x69\x64","\x61\x72\x67\x5F\x31","\x5B\x41\x47\x49\x5D\x20\x53\x74\x61\x72\x74\x20\x25\x73\x20\x70\x72\x6F\x6A\x65\x63\x74\x3A\x20\x66\x72\x6F\x6D\x20\x22\x25\x73\x22\x20\x3C\x25\x73\x3E\x20\x74\x6F\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20\x25\x73\x20\x77\x69\x74\x68\x20\x75\x6E\x69\x71\x75\x65\x69\x64\x20\x25\x73","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x63\x61\x6C\x6C\x65\x72\x69\x64","\x64\x6E\x69\x64","\x66\x6F\x72\x6D\x61\x74","\x6C\x6F\x67","\x63\x6C\x6F\x6E\x65","\x70\x72\x6F\x6A\x65\x63\x74","\x73\x79\x6E\x63","\x67\x65\x74\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x72\x6F\x6F\x74","\x67\x65\x74\x52\x6F\x6F\x74","\x76\x65\x72\x74\x69\x63\x65\x73","\x76\x65\x72\x74\x65\x78\x4E\x61\x6D\x65","\x72\x75\x6E","\x66\x69\x6E\x61\x6C\x6C\x79","\x64\x6F\x6E\x65","\x5B\x41\x47\x49\x5D\x20\x50\x72\x6F\x6A\x65\x63\x74\x20\x25\x73\x20\x6E\x6F\x74\x20\x70\x75\x62\x6C\x69\x73\x68\x65\x64","\x65\x72\x72\x6F\x72","\x5B\x41\x47\x49\x5D\x20\x50\x72\x6F\x6A\x65\x63\x74\x20\x25\x73\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x63\x75\x72\x72\x65\x6E\x74\x56\x65\x72\x74\x65\x78","\x63\x6C\x65\x61\x72","\x63\x6F\x64\x65","\x72\x65\x73\x75\x6C\x74","\x2D\x31","\x67\x65\x74\x4E\x65\x78\x74\x56\x65\x72\x74\x65\x78","\x66\x69\x6E\x64\x45\x64\x67\x65","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x6D\x78\x43\x65\x6C\x6C","\x69\x73\x41\x72\x72\x61\x79","\x69\x64","\x74\x61\x72\x67\x65\x74","\x5B\x41\x47\x49\x5D\x20\x45\x64\x67\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x66\x6F\x72\x20\x76\x65\x72\x74\x65\x78\x20\x25\x73\x20\x28\x25\x73\x20\x2D\x20\x25\x73\x29\x20\x66\x6F\x72\x20\x72\x65\x73\x75\x6C\x74\x20\x22\x25\x73\x22","\x6C\x61\x62\x65\x6C","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x2D","\x5B\x41\x47\x49\x5D\x20\x52\x65\x74\x72\x79\x20\x76\x65\x72\x74\x65\x78\x20\x25\x73\x20\x28\x25\x73\x20\x2D\x20\x25\x73\x29\x20\x66\x6F\x72\x20\x25\x73\x20\x72\x65\x61\x73\x6F\x6E\x20\x22\x25\x73\x22","\x74","\x74\x69\x6D\x65\x6F\x75\x74","\x69\x6E\x76\x61\x6C\x69\x64","\x76\x61\x6C\x75\x65","\x73\x6F\x75\x72\x63\x65","\x2C","\x73\x70\x6C\x69\x74","\x65\x78\x74\x72\x61","\x69","\x76\x73\x77\x69\x74\x63\x68","\x66\x69\x6E\x64","\x6D\x78\x47\x72\x61\x70\x68\x4D\x6F\x64\x65\x6C","\x74\x6F\x4A\x73\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73"];_0x4b90[0];var fs=require(_0x4b90[1]);var parser=require(_0x4b90[2]);var _=require(_0x4b90[3]);var util=require(_0x4b90[4]);var redis=require(_0x4b90[5]);var config=require(_0x4b90[6]);var AGIServer=require(_0x4b90[7]);var AGIVertices=require(_0x4b90[8]);var verticesWithRetry=[_0x4b90[9],_0x4b90[10],_0x4b90[11]];var AGISquare=function(_0xcae1xb,_0xcae1xc,_0xcae1xd){this[_0x4b90[12]]= _0xcae1xd;this[_0x4b90[13]]=  new AGIServer(this[_0x4b90[15]][_0x4b90[14]](this),_0xcae1xb,_0xcae1xc);var _0xcae1xe;if(config[_0x4b90[16]]){_0xcae1xe= {password:config[_0x4b90[16]]}};var _0xcae1xf=redis[_0x4b90[18]](6379,config[_0x4b90[17]],_0xcae1xe);this[_0x4b90[19]]= require(_0x4b90[20])(_0xcae1xf)};AGISquare[_0x4b90[22]][_0x4b90[21]]= function(_0xcae1x10){var _0xcae1x11=this;this[_0x4b90[12]][_0x4b90[21]](this[_0x4b90[28]][_0x4b90[27]])[_0x4b90[26]](function(_0xcae1x13){_0xcae1x11[_0x4b90[19]][_0x4b90[25]](_0x4b90[24],_0xcae1x13);_0xcae1x10(null,_0xcae1x13)})[_0x4b90[23]](function(_0xcae1x12){_0xcae1x10(_0xcae1x12)})};AGISquare[_0x4b90[22]][_0x4b90[29]]= function(_0xcae1x10){var _0xcae1x11=this;this[_0x4b90[12]][_0x4b90[29]](this[_0x4b90[28]][_0x4b90[27]][_0x4b90[31]],this[_0x4b90[28]][_0x4b90[27]][_0x4b90[32]])[_0x4b90[26]](function(_0xcae1x13){if(_0xcae1x13[_0x4b90[30]]> 1){for(var _0xcae1x14=0;_0xcae1x14< _0xcae1x13[1][_0x4b90[30]];_0xcae1x14++){var _0xcae1x15=_0xcae1x13[1][_0xcae1x14];_0xcae1x11[_0x4b90[19]][_0x4b90[25]](_0x4b90[24],_0xcae1x15)}};_0xcae1x10(null,_0xcae1x13)})[_0x4b90[23]](function(_0xcae1x12){_0xcae1x10(_0xcae1x12)})};AGISquare[_0x4b90[22]][_0x4b90[15]]= function(_0xcae1x16){console[_0x4b90[38]](util[_0x4b90[37]](_0x4b90[33],_0xcae1x16[_0x4b90[27]][_0x4b90[32]],_0xcae1x16[_0x4b90[27]][_0x4b90[34]],_0xcae1x16[_0x4b90[27]][_0x4b90[35]],_0xcae1x16[_0x4b90[27]][_0x4b90[36]],_0xcae1x16[_0x4b90[27]][_0x4b90[31]]));var _0xcae1x11=_[_0x4b90[39]](this);_0xcae1x11[_0x4b90[28]]= _0xcae1x16;_0xcae1x11[_0x4b90[40]]= _0xcae1x11[_0x4b90[42]][_0x4b90[41]](_0xcae1x11,_0xcae1x11[_0x4b90[28]][_0x4b90[27]][_0x4b90[32]]);if(_0xcae1x11[_0x4b90[40]]){if(_0xcae1x11[_0x4b90[40]][_0x4b90[43]]){_0xcae1x11[_0x4b90[44]]= _0xcae1x11[_0x4b90[45]](_0xcae1x11[_0x4b90[40]][_0x4b90[43]]);_0xcae1x11[_0x4b90[46]]=  new AGIVertices(_0xcae1x11[_0x4b90[28]],_0xcae1x11[_0x4b90[12]]);if(_0xcae1x11[_0x4b90[44]]&& _0xcae1x11[_0x4b90[44]][_0x4b90[15]]){_0xcae1x11[_0x4b90[21]][_0x4b90[41]](_0xcae1x11);_0xcae1x11[_0x4b90[44]][_0x4b90[15]][_0x4b90[47]]= _0x4b90[15];_0xcae1x11[_0x4b90[48]](_0xcae1x11[_0x4b90[44]][_0x4b90[15]],false);_0xcae1x11[_0x4b90[29]][_0x4b90[41]](_0xcae1x11);if(_0xcae1x11[_0x4b90[44]][_0x4b90[49]]){_0xcae1x11[_0x4b90[44]][_0x4b90[49]][_0x4b90[47]]= _0x4b90[49];_0xcae1x11[_0x4b90[48]](_0xcae1x11[_0x4b90[44]][_0x4b90[49]],true)};_0xcae1x11[_0x4b90[28]][_0x4b90[25]](_0x4b90[50]);if(_0xcae1x11){_0xcae1x11= undefined}}}else {console[_0x4b90[52]](util[_0x4b90[37]](_0x4b90[51]));_0xcae1x11[_0x4b90[28]][_0x4b90[25]](_0x4b90[50])}}else {console[_0x4b90[52]](util[_0x4b90[37]](_0x4b90[53]));_0xcae1x11[_0x4b90[28]][_0x4b90[25]](_0x4b90[50])}};AGISquare[_0x4b90[22]][_0x4b90[48]]= function(_0xcae1x17,_0xcae1x18){this[_0x4b90[54]]= _0xcae1x17;while(this[_0x4b90[54]]){this[_0x4b90[54]]= this[_0x4b90[46]][_0x4b90[55]](this[_0x4b90[54]]);var _0xcae1x13=this[_0x4b90[46]][this[_0x4b90[54]][_0x4b90[47]]](this[_0x4b90[54]]);if(!_0xcae1x18){if(_0xcae1x13[_0x4b90[56]]=== 200&& _0xcae1x13[_0x4b90[57]]!== _0x4b90[58]){this[_0x4b90[54]]= this[_0x4b90[59]](_0xcae1x13)}else {this[_0x4b90[54]]= null}}else {this[_0x4b90[54]]= this[_0x4b90[59]](_0xcae1x13)}}};AGISquare[_0x4b90[22]][_0x4b90[59]]= function(_0xcae1x19){var _0xcae1x1a=this[_0x4b90[60]](_0xcae1x19);if(_0xcae1x1a){for(var _0xcae1x1b in this[_0x4b90[44]]){if(this[_0x4b90[44]][_0x4b90[61]](_0xcae1x1b)){if(_0xcae1x1b!== _0x4b90[62]){if(_[_0x4b90[63]](this[_0x4b90[44]][_0xcae1x1b])){for(var _0xcae1x1c in this[_0x4b90[44]][_0xcae1x1b]){if(this[_0x4b90[44]][_0xcae1x1b][_0x4b90[61]](_0xcae1x1c)){if(this[_0x4b90[44]][_0xcae1x1b][_0xcae1x1c][_0x4b90[64]]=== _0xcae1x1a[_0x4b90[65]]){this[_0x4b90[44]][_0xcae1x1b][_0xcae1x1c][_0x4b90[47]]= _0xcae1x1b;return this[_0x4b90[44]][_0xcae1x1b][_0xcae1x1c]}}}}else {if(this[_0x4b90[44]][_0xcae1x1b][_0x4b90[64]]=== _0xcae1x1a[_0x4b90[65]]){this[_0x4b90[44]][_0xcae1x1b][_0x4b90[47]]= _0xcae1x1b;return this[_0x4b90[44]][_0xcae1x1b]}}}}}}else {console[_0x4b90[38]](_0x4b90[66],this[_0x4b90[54]][_0x4b90[47]],this[_0x4b90[54]][_0x4b90[64]],this[_0x4b90[54]][_0x4b90[67]],_0xcae1x19[_0x4b90[57]]);if(_[_0x4b90[68]](verticesWithRetry,this[_0x4b90[54]][_0x4b90[47]])){if(_0xcae1x19[_0x4b90[57]]!== _0x4b90[69]){console[_0x4b90[38]](_0x4b90[70],this[_0x4b90[54]][_0x4b90[47]],this[_0x4b90[54]][_0x4b90[64]],this[_0x4b90[54]][_0x4b90[67]],_0xcae1x19[_0x4b90[57]]=== _0x4b90[71]?_0x4b90[72]:_0x4b90[73],_0xcae1x19[_0x4b90[57]]);return this[_0x4b90[54]]}}};return null};AGISquare[_0x4b90[22]][_0x4b90[60]]= function(_0xcae1x19){var _0xcae1x11=this;var _0xcae1x1d=_[_0x4b90[81]](this[_0x4b90[44]][_0x4b90[62]],function(_0xcae1x1a){if(_0xcae1x1a[_0x4b90[61]](_0x4b90[74])){if(_0xcae1x1a[_0x4b90[75]]=== _0xcae1x11[_0x4b90[54]][_0x4b90[64]]){var _0xcae1x1e=_0xcae1x1a[_0x4b90[74]][_0x4b90[77]](_0x4b90[76]);for(var _0xcae1x14=0;_0xcae1x14< _0xcae1x1e[_0x4b90[30]];_0xcae1x14+= 1){if(_0xcae1x1e[_0xcae1x14]=== _0xcae1x19[_0x4b90[57]]|| _0xcae1x1e[_0xcae1x14]=== _0xcae1x19[_0x4b90[78]]){return true}};if(_0xcae1x19[_0x4b90[57]]!== _0x4b90[69]&& _0xcae1x19[_0x4b90[57]]!== _0x4b90[71]){for(var _0xcae1x1f=0;_0xcae1x1f< _0xcae1x1e[_0x4b90[30]];_0xcae1x1f+= 1){if(_0xcae1x1e[_0xcae1x1f]=== _0x4b90[79]){return true};if(_0xcae1x1e[_0xcae1x1f]=== _0x4b90[69]&& _0xcae1x11[_0x4b90[54]][_0x4b90[47]]=== _0x4b90[80]){return true}}}};return false};return _0xcae1x1a[_0x4b90[75]]=== _0xcae1x11[_0x4b90[54]][_0x4b90[64]]});return _0xcae1x1d};AGISquare[_0x4b90[22]][_0x4b90[42]]= function(_0xcae1x20,_0xcae1x10){this[_0x4b90[12]][_0x4b90[42]](_0xcae1x20)[_0x4b90[26]](function(_0xcae1x13){_0xcae1x10(null,_0xcae1x13)})[_0x4b90[23]](function(_0xcae1x12){_0xcae1x10(_0xcae1x12)})};AGISquare[_0x4b90[22]][_0x4b90[45]]= function(_0xcae1x21){return parser[_0x4b90[83]](_0xcae1x21,{object:true})[_0x4b90[82]][_0x4b90[44]]};module[_0x4b90[84]]= AGISquare
\ No newline at end of file
+var _0x8103=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x73","\x78\x6D\x6C\x32\x6A\x73\x6F\x6E","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x72\x65\x64\x69\x73","\x61\x67\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2F\x73\x65\x72\x76\x65\x72","\x2E\x2F\x76\x65\x72\x74\x69\x63\x65\x73","\x6D\x65\x6E\x75","\x67\x65\x74\x64\x69\x67\x69\x74\x73","\x67\x65\x74\x73\x65\x63\x72\x65\x74\x64\x69\x67\x69\x74\x73","\x72\x70\x63","\x73\x65\x72\x76\x65\x72","\x62\x69\x6E\x64","\x73\x74\x61\x72\x74","\x72\x65\x64\x69\x73\x50\x77\x64","\x69\x70","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x69\x6F","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x65\x6D\x69\x74\x74\x65\x72","\x63\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x70\x6F\x72\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x63\x61\x74\x63\x68","\x72\x65\x70\x6F\x72\x74\x5F\x73\x71\x75\x61\x72\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x74\x68\x65\x6E","\x72\x65\x71\x75\x65\x73\x74","\x63\x68\x61\x6E\x6E\x65\x6C","\x75\x70\x64\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x70\x6F\x72\x74","\x6C\x65\x6E\x67\x74\x68","\x75\x6E\x69\x71\x75\x65\x69\x64","\x61\x72\x67\x5F\x31","\x53\x74\x61\x72\x74\x20\x25\x73\x20\x70\x72\x6F\x6A\x65\x63\x74\x3A\x20\x66\x72\x6F\x6D\x20\x22\x25\x73\x22\x20\x3C\x25\x73\x3E\x20\x74\x6F\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20\x25\x73\x20\x77\x69\x74\x68\x20\x75\x6E\x69\x71\x75\x65\x69\x64\x20\x25\x73","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x63\x61\x6C\x6C\x65\x72\x69\x64","\x64\x6E\x69\x64","\x66\x6F\x72\x6D\x61\x74","\x69\x6E\x66\x6F","\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x64\x65\x62\x75\x67","\x63\x6C\x6F\x6E\x65","\x70\x72\x6F\x6A\x65\x63\x74","\x73\x79\x6E\x63","\x67\x65\x74\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x72\x6F\x6F\x74","\x67\x65\x74\x52\x6F\x6F\x74","\x76\x65\x72\x74\x69\x63\x65\x73","\x76\x65\x72\x74\x65\x78\x4E\x61\x6D\x65","\x72\x75\x6E","\x66\x69\x6E\x61\x6C\x6C\x79","\x64\x6F\x6E\x65","\x50\x72\x6F\x6A\x65\x63\x74\x20\x25\x73\x20\x6E\x6F\x74\x20\x70\x75\x62\x6C\x69\x73\x68\x65\x64","\x65\x72\x72\x6F\x72","\x50\x72\x6F\x6A\x65\x63\x74\x20\x25\x73\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x63\x75\x72\x72\x65\x6E\x74\x56\x65\x72\x74\x65\x78","\x61\x67\x69\x4E\x65\x77\x45\x78\x74\x65\x6E","\x71\x75\x65\x75\x65","\x71\x75\x65\x75\x65\x5F\x69\x64","\x73\x65\x6E\x64","\x63\x6C\x65\x61\x72","\x76\x65\x72\x74\x65\x78","\x72\x65\x73\x75\x6C\x74","\x69\x64","\x63\x6F\x64\x65","\x2D\x31","\x67\x65\x74\x4E\x65\x78\x74\x56\x65\x72\x74\x65\x78","\x66\x69\x6E\x64\x45\x64\x67\x65","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x6D\x78\x43\x65\x6C\x6C","\x69\x73\x41\x72\x72\x61\x79","\x74\x61\x72\x67\x65\x74","\x45\x64\x67\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x66\x6F\x72\x20\x76\x65\x72\x74\x65\x78\x20\x25\x73\x20\x28\x25\x73\x20\x2D\x20\x25\x73\x29\x20\x66\x6F\x72\x20\x72\x65\x73\x75\x6C\x74\x20\x22\x25\x73\x22","\x6C\x61\x62\x65\x6C","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x2D","\x52\x65\x74\x72\x79\x20\x76\x65\x72\x74\x65\x78\x20\x25\x73\x20\x28\x25\x73\x20\x2D\x20\x25\x73\x29\x20\x66\x6F\x72\x20\x25\x73\x20\x72\x65\x61\x73\x6F\x6E\x20\x22\x25\x73\x22","\x74","\x74\x69\x6D\x65\x6F\x75\x74","\x69\x6E\x76\x61\x6C\x69\x64","\x66\x69\x6C\x74\x65\x72","\x76\x61\x6C\x75\x65","\x2C","\x73\x70\x6C\x69\x74","\x65\x78\x74\x72\x61","\x66\x69\x6E\x64","\x69","\x76\x73\x77\x69\x74\x63\x68","\x68\x65\x61\x64","\x6D\x78\x47\x72\x61\x70\x68\x4D\x6F\x64\x65\x6C","\x74\x6F\x4A\x73\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73"];_0x8103[0];var fs=require(_0x8103[1]);var parser=require(_0x8103[2]);var _=require(_0x8103[3]);var util=require(_0x8103[4]);var redis=require(_0x8103[5]);var logger=require(_0x8103[7])(_0x8103[6]);var config=require(_0x8103[8]);var AGIServer=require(_0x8103[9]);var AGIVertices=require(_0x8103[10]);var verticesWithRetry=[_0x8103[11],_0x8103[12],_0x8103[13]];var AGISquare=function(_0xd0bfxc,_0xd0bfxd,_0xd0bfxe){this[_0x8103[14]]= _0xd0bfxe;this[_0x8103[15]]=  new AGIServer(this[_0x8103[17]][_0x8103[16]](this),_0xd0bfxc,_0xd0bfxd);var _0xd0bfxf;if(config[_0x8103[18]]){_0xd0bfxf= {password:config[_0x8103[18]]}};var _0xd0bfx10=redis[_0x8103[20]](6379,config[_0x8103[19]],_0xd0bfxf);this[_0x8103[21]]= require(_0x8103[22])(_0xd0bfx10)};AGISquare[_0x8103[24]][_0x8103[23]]= function(_0xd0bfx11){var _0xd0bfx12=this;this[_0x8103[14]][_0x8103[23]](this[_0x8103[30]][_0x8103[29]])[_0x8103[28]](function(_0xd0bfx14){_0xd0bfx12[_0x8103[21]][_0x8103[27]](_0x8103[26],_0xd0bfx14);_0xd0bfx11(null,_0xd0bfx14)})[_0x8103[25]](function(_0xd0bfx13){_0xd0bfx11(_0xd0bfx13)})};AGISquare[_0x8103[24]][_0x8103[31]]= function(_0xd0bfx11){var _0xd0bfx12=this;this[_0x8103[14]][_0x8103[31]](this[_0x8103[30]][_0x8103[29]][_0x8103[33]],this[_0x8103[30]][_0x8103[29]][_0x8103[34]])[_0x8103[28]](function(_0xd0bfx14){if(_0xd0bfx14[_0x8103[32]]> 1){for(var _0xd0bfx15=0;_0xd0bfx15< _0xd0bfx14[1][_0x8103[32]];_0xd0bfx15++){var _0xd0bfx16=_0xd0bfx14[1][_0xd0bfx15];_0xd0bfx12[_0x8103[21]][_0x8103[27]](_0x8103[26],_0xd0bfx16)}};_0xd0bfx11(null,_0xd0bfx14)})[_0x8103[25]](function(_0xd0bfx13){_0xd0bfx11(_0xd0bfx13)})};AGISquare[_0x8103[24]][_0x8103[17]]= function(_0xd0bfx17){logger[_0x8103[40]](util[_0x8103[39]](_0x8103[35],_0xd0bfx17[_0x8103[29]][_0x8103[34]],_0xd0bfx17[_0x8103[29]][_0x8103[36]],_0xd0bfx17[_0x8103[29]][_0x8103[37]],_0xd0bfx17[_0x8103[29]][_0x8103[38]],_0xd0bfx17[_0x8103[29]][_0x8103[33]]));logger[_0x8103[43]](_0x8103[41],JSON[_0x8103[42]](_0xd0bfx17[_0x8103[29]],null,2));var _0xd0bfx12=_[_0x8103[44]](this);_0xd0bfx12[_0x8103[30]]= _0xd0bfx17;_0xd0bfx12[_0x8103[45]]= _0xd0bfx12[_0x8103[47]][_0x8103[46]](_0xd0bfx12,_0xd0bfx12[_0x8103[30]][_0x8103[29]][_0x8103[34]]);if(_0xd0bfx12[_0x8103[45]]){if(_0xd0bfx12[_0x8103[45]][_0x8103[48]]){_0xd0bfx12[_0x8103[49]]= _0xd0bfx12[_0x8103[50]](_0xd0bfx12[_0x8103[45]][_0x8103[48]]);_0xd0bfx12[_0x8103[51]]=  new AGIVertices(_0xd0bfx12[_0x8103[30]],_0xd0bfx12[_0x8103[14]]);if(_0xd0bfx12[_0x8103[49]]&& _0xd0bfx12[_0x8103[49]][_0x8103[17]]){logger[_0x8103[43]](_0x8103[49],JSON[_0x8103[42]](_0xd0bfx12[_0x8103[49]],null,2));_0xd0bfx12[_0x8103[23]][_0x8103[46]](_0xd0bfx12);_0xd0bfx12[_0x8103[49]][_0x8103[17]][_0x8103[52]]= _0x8103[17];_0xd0bfx12[_0x8103[53]](_0xd0bfx12[_0x8103[49]][_0x8103[17]],false);_0xd0bfx12[_0x8103[31]][_0x8103[46]](_0xd0bfx12);if(_0xd0bfx12[_0x8103[49]][_0x8103[54]]){_0xd0bfx12[_0x8103[49]][_0x8103[54]][_0x8103[52]]= _0x8103[54];_0xd0bfx12[_0x8103[53]](_0xd0bfx12[_0x8103[49]][_0x8103[54]],true)};_0xd0bfx12[_0x8103[30]][_0x8103[27]](_0x8103[55]);if(_0xd0bfx12){_0xd0bfx12= undefined}}}else {logger[_0x8103[57]](util[_0x8103[39]](_0x8103[56],_0xd0bfx17[_0x8103[29]][_0x8103[34]]));_0xd0bfx12[_0x8103[30]][_0x8103[27]](_0x8103[55])}}else {logger[_0x8103[57]](util[_0x8103[39]](_0x8103[58],_0xd0bfx17[_0x8103[29]][_0x8103[34]]));_0xd0bfx12[_0x8103[30]][_0x8103[27]](_0x8103[55])}};AGISquare[_0x8103[24]][_0x8103[53]]= function(_0xd0bfx18,_0xd0bfx19){this[_0x8103[59]]= _0xd0bfx18;while(this[_0x8103[59]]){process[_0x8103[63]]({message:_0x8103[60],doc:{application:this[_0x8103[59]][_0x8103[52]],uniqueid:this[_0x8103[30]][_0x8103[29]][_0x8103[33]],queue:this[_0x8103[59]][_0x8103[52]]=== _0x8103[61]?this[_0x8103[59]][_0x8103[62]]:undefined}});this[_0x8103[59]]= this[_0x8103[51]][_0x8103[64]](this[_0x8103[59]]);logger[_0x8103[43]](this[_0x8103[30]][_0x8103[29]][_0x8103[33]],_0x8103[65],JSON[_0x8103[42]](this[_0x8103[59]],null,2));var _0xd0bfx14=this[_0x8103[51]][this[_0x8103[59]][_0x8103[52]]](this[_0x8103[59]]);logger[_0x8103[43]](this[_0x8103[30]][_0x8103[29]][_0x8103[33]],_0x8103[66],this[_0x8103[59]][_0x8103[52]],this[_0x8103[59]][_0x8103[67]],JSON[_0x8103[42]](_0xd0bfx14,null,2));if(!_0xd0bfx19){if(_0xd0bfx14[_0x8103[68]]=== 200&& _0xd0bfx14[_0x8103[66]]!== _0x8103[69]){this[_0x8103[59]]= this[_0x8103[70]](_0xd0bfx14)}else {this[_0x8103[59]]= null}}else {this[_0x8103[59]]= this[_0x8103[70]](_0xd0bfx14)}}};AGISquare[_0x8103[24]][_0x8103[70]]= function(_0xd0bfx1a){var _0xd0bfx1b=this[_0x8103[71]](_0xd0bfx1a);if(_0xd0bfx1b){for(var _0xd0bfx1c in this[_0x8103[49]]){if(this[_0x8103[49]][_0x8103[72]](_0xd0bfx1c)){if(_0xd0bfx1c!== _0x8103[73]){if(_[_0x8103[74]](this[_0x8103[49]][_0xd0bfx1c])){for(var _0xd0bfx1d in this[_0x8103[49]][_0xd0bfx1c]){if(this[_0x8103[49]][_0xd0bfx1c][_0x8103[72]](_0xd0bfx1d)){if(this[_0x8103[49]][_0xd0bfx1c][_0xd0bfx1d][_0x8103[67]]=== _0xd0bfx1b[_0x8103[75]]){this[_0x8103[49]][_0xd0bfx1c][_0xd0bfx1d][_0x8103[52]]= _0xd0bfx1c;return this[_0x8103[49]][_0xd0bfx1c][_0xd0bfx1d]}}}}else {if(this[_0x8103[49]][_0xd0bfx1c][_0x8103[67]]=== _0xd0bfx1b[_0x8103[75]]){this[_0x8103[49]][_0xd0bfx1c][_0x8103[52]]= _0xd0bfx1c;return this[_0x8103[49]][_0xd0bfx1c]}}}}}}else {logger[_0x8103[40]](_0x8103[76],this[_0x8103[59]][_0x8103[52]],this[_0x8103[59]][_0x8103[67]],this[_0x8103[59]][_0x8103[77]],_0xd0bfx1a[_0x8103[66]]);if(_[_0x8103[78]](verticesWithRetry,this[_0x8103[59]][_0x8103[52]])){if(_0xd0bfx1a[_0x8103[66]]!== _0x8103[79]){logger[_0x8103[40]](_0x8103[80],this[_0x8103[59]][_0x8103[52]],this[_0x8103[59]][_0x8103[67]],this[_0x8103[59]][_0x8103[77]],_0xd0bfx1a[_0x8103[66]]=== _0x8103[81]?_0x8103[82]:_0x8103[83],_0xd0bfx1a[_0x8103[66]]);return this[_0x8103[59]]}}};return null};AGISquare[_0x8103[24]][_0x8103[71]]= function(_0xd0bfx1a){var _0xd0bfx12=this;var _0xd0bfx1e=false;var _0xd0bfx1f=_[_0x8103[84]](this[_0x8103[49]][_0x8103[73]],{"\x73\x6F\x75\x72\x63\x65":_0xd0bfx12[_0x8103[59]][_0x8103[67]]});_0xd0bfx1e= _[_0x8103[89]](_0xd0bfx1f,function(_0xd0bfx1b){if(_0xd0bfx1b[_0x8103[72]](_0x8103[85])){var _0xd0bfx20=_0xd0bfx1b[_0x8103[85]][_0x8103[87]](_0x8103[86]);for(var _0xd0bfx15=0;_0xd0bfx15< _0xd0bfx20[_0x8103[32]];_0xd0bfx15+= 1){if(_0xd0bfx20[_0xd0bfx15]=== _0xd0bfx1a[_0x8103[66]]|| _0xd0bfx20[_0xd0bfx15]=== _0xd0bfx1a[_0x8103[88]]){return true}}}});if(_0xd0bfx1e){return _0xd0bfx1e};if(_0xd0bfx1a[_0x8103[66]]!== _0x8103[79]&& _0xd0bfx1a[_0x8103[66]]!== _0x8103[81]){_0xd0bfx1e= _[_0x8103[89]](_0xd0bfx1f,function(_0xd0bfx1b){if(_0xd0bfx1b[_0x8103[72]](_0x8103[85])){var _0xd0bfx20=_0xd0bfx1b[_0x8103[85]][_0x8103[87]](_0x8103[86]);for(var _0xd0bfx21=0;_0xd0bfx21< _0xd0bfx20[_0x8103[32]];_0xd0bfx21+= 1){if(_0xd0bfx20[_0xd0bfx21]=== _0x8103[90]){return true};if(_0xd0bfx20[_0xd0bfx21]=== _0x8103[79]&& _0xd0bfx12[_0x8103[59]][_0x8103[52]]=== _0x8103[91]){return true}}}});if(_0xd0bfx1e){return _0xd0bfx1e}};if(!_[_0x8103[78]](verticesWithRetry,_0xd0bfx12[_0x8103[59]][_0x8103[52]])&& _0xd0bfx12[_0x8103[59]][_0x8103[52]]!== _0x8103[91]){_0xd0bfx1e= _[_0x8103[92]](_0xd0bfx1f)};return _0xd0bfx1e};AGISquare[_0x8103[24]][_0x8103[47]]= function(_0xd0bfx22,_0xd0bfx11){this[_0x8103[14]][_0x8103[47]](_0xd0bfx22)[_0x8103[28]](function(_0xd0bfx14){_0xd0bfx11(null,_0xd0bfx14)})[_0x8103[25]](function(_0xd0bfx13){_0xd0bfx11(_0xd0bfx13)})};AGISquare[_0x8103[24]][_0x8103[50]]= function(_0xd0bfx23){return parser[_0x8103[94]](_0xd0bfx23,{object:true})[_0x8103[93]][_0x8103[49]]};module[_0x8103[95]]= AGISquare
\ No newline at end of file