Built motion from commit 27af9f03b.|1.0.28
[motion.git] / server / config / agi / lib / square.js
index 037d42d..df95387 100644 (file)
@@ -1 +1 @@
-var _0x964b=["\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","\x68\x61\x6E\x67\x75\x70","\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","\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","\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","\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"];_0x964b[0];var fs=require(_0x964b[1]);var parser=require(_0x964b[2]);var _=require(_0x964b[3]);var util=require(_0x964b[4]);var redis=require(_0x964b[5]);var config=require(_0x964b[6]);var AGIServer=require(_0x964b[7]);var AGIVertices=require(_0x964b[8]);var verticesWithRetry=[_0x964b[9],_0x964b[10],_0x964b[11]];var AGISquare=function(_0x58e3xb,_0x58e3xc,_0x58e3xd){this[_0x964b[12]]= _0x58e3xd;this[_0x964b[13]]=  new AGIServer(this[_0x964b[15]][_0x964b[14]](this),_0x58e3xb,_0x58e3xc);var _0x58e3xe;if(config[_0x964b[16]]){_0x58e3xe= {password:config[_0x964b[16]]}};var _0x58e3xf=redis[_0x964b[18]](6379,config[_0x964b[17]],_0x58e3xe);this[_0x964b[19]]= require(_0x964b[20])(_0x58e3xf)};AGISquare[_0x964b[22]][_0x964b[21]]= function(_0x58e3x10){var _0x58e3x11=this;this[_0x964b[12]][_0x964b[21]](this[_0x964b[28]][_0x964b[27]])[_0x964b[26]](function(_0x58e3x13){_0x58e3x11[_0x964b[19]][_0x964b[25]](_0x964b[24],_0x58e3x13);_0x58e3x10(null,_0x58e3x13)})[_0x964b[23]](function(_0x58e3x12){_0x58e3x10(_0x58e3x12)})};AGISquare[_0x964b[22]][_0x964b[29]]= function(_0x58e3x10){var _0x58e3x11=this;this[_0x964b[12]][_0x964b[29]](this[_0x964b[28]][_0x964b[27]][_0x964b[31]],this[_0x964b[28]][_0x964b[27]][_0x964b[32]])[_0x964b[26]](function(_0x58e3x13){if(_0x58e3x13[_0x964b[30]]> 1){for(var _0x58e3x14=0;_0x58e3x14< _0x58e3x13[1][_0x964b[30]];_0x58e3x14++){var _0x58e3x15=_0x58e3x13[1][_0x58e3x14];_0x58e3x11[_0x964b[19]][_0x964b[25]](_0x964b[24],_0x58e3x15)}};_0x58e3x10(null,_0x58e3x13)})[_0x964b[23]](function(_0x58e3x12){_0x58e3x10(_0x58e3x12)})};AGISquare[_0x964b[22]][_0x964b[15]]= function(_0x58e3x16){console[_0x964b[38]](util[_0x964b[37]](_0x964b[33],_0x58e3x16[_0x964b[27]][_0x964b[32]],_0x58e3x16[_0x964b[27]][_0x964b[34]],_0x58e3x16[_0x964b[27]][_0x964b[35]],_0x58e3x16[_0x964b[27]][_0x964b[36]],_0x58e3x16[_0x964b[27]][_0x964b[31]]));var _0x58e3x11=_[_0x964b[39]](this);_0x58e3x11[_0x964b[28]]= _0x58e3x16;_0x58e3x11[_0x964b[40]]= _0x58e3x11[_0x964b[42]][_0x964b[41]](_0x58e3x11,_0x58e3x11[_0x964b[28]][_0x964b[27]][_0x964b[32]]);if(_0x58e3x11[_0x964b[40]]){if(_0x58e3x11[_0x964b[40]][_0x964b[43]]){_0x58e3x11[_0x964b[44]]= _0x58e3x11[_0x964b[45]](_0x58e3x11[_0x964b[40]][_0x964b[43]]);_0x58e3x11[_0x964b[46]]=  new AGIVertices(_0x58e3x11[_0x964b[28]],_0x58e3x11[_0x964b[12]]);if(_0x58e3x11[_0x964b[44]]&& _0x58e3x11[_0x964b[44]][_0x964b[15]]){_0x58e3x11[_0x964b[21]][_0x964b[41]](_0x58e3x11);_0x58e3x11[_0x964b[44]][_0x964b[15]][_0x964b[47]]= _0x964b[15];_0x58e3x11[_0x964b[48]](_0x58e3x11[_0x964b[44]][_0x964b[15]],false);_0x58e3x11[_0x964b[29]][_0x964b[41]](_0x58e3x11);if(_0x58e3x11[_0x964b[44]][_0x964b[49]]){_0x58e3x11[_0x964b[44]][_0x964b[49]][_0x964b[47]]= _0x964b[49];_0x58e3x11[_0x964b[48]](_0x58e3x11[_0x964b[44]][_0x964b[49]],true)};_0x58e3x11[_0x964b[28]][_0x964b[50]]();_0x58e3x11[_0x964b[28]][_0x964b[25]](_0x964b[51]);if(_0x58e3x11){_0x58e3x11= undefined}}}else {console[_0x964b[53]](util[_0x964b[37]](_0x964b[52],_0x58e3x16[_0x964b[27]][_0x964b[32]]));_0x58e3x11[_0x964b[28]][_0x964b[25]](_0x964b[51])}}else {console[_0x964b[53]](util[_0x964b[37]](_0x964b[54],_0x58e3x16[_0x964b[27]][_0x964b[32]]));_0x58e3x11[_0x964b[28]][_0x964b[25]](_0x964b[51])}};AGISquare[_0x964b[22]][_0x964b[48]]= function(_0x58e3x17,_0x58e3x18){this[_0x964b[55]]= _0x58e3x17;while(this[_0x964b[55]]){process[_0x964b[59]]({message:_0x964b[56],doc:{application:this[_0x964b[55]][_0x964b[47]],uniqueid:this[_0x964b[28]][_0x964b[27]][_0x964b[31]],queue:this[_0x964b[55]][_0x964b[47]]=== _0x964b[57]?this[_0x964b[55]][_0x964b[58]]:undefined}});this[_0x964b[55]]= this[_0x964b[46]][_0x964b[60]](this[_0x964b[55]]);var _0x58e3x13=this[_0x964b[46]][this[_0x964b[55]][_0x964b[47]]](this[_0x964b[55]]);if(!_0x58e3x18){if(_0x58e3x13[_0x964b[61]]=== 200&& _0x58e3x13[_0x964b[62]]!== _0x964b[63]){this[_0x964b[55]]= this[_0x964b[64]](_0x58e3x13)}else {this[_0x964b[55]]= null}}else {this[_0x964b[55]]= this[_0x964b[64]](_0x58e3x13)}}};AGISquare[_0x964b[22]][_0x964b[64]]= function(_0x58e3x19){var _0x58e3x1a=this[_0x964b[65]](_0x58e3x19);if(_0x58e3x1a){for(var _0x58e3x1b in this[_0x964b[44]]){if(this[_0x964b[44]][_0x964b[66]](_0x58e3x1b)){if(_0x58e3x1b!== _0x964b[67]){if(_[_0x964b[68]](this[_0x964b[44]][_0x58e3x1b])){for(var _0x58e3x1c in this[_0x964b[44]][_0x58e3x1b]){if(this[_0x964b[44]][_0x58e3x1b][_0x964b[66]](_0x58e3x1c)){if(this[_0x964b[44]][_0x58e3x1b][_0x58e3x1c][_0x964b[69]]=== _0x58e3x1a[_0x964b[70]]){this[_0x964b[44]][_0x58e3x1b][_0x58e3x1c][_0x964b[47]]= _0x58e3x1b;return this[_0x964b[44]][_0x58e3x1b][_0x58e3x1c]}}}}else {if(this[_0x964b[44]][_0x58e3x1b][_0x964b[69]]=== _0x58e3x1a[_0x964b[70]]){this[_0x964b[44]][_0x58e3x1b][_0x964b[47]]= _0x58e3x1b;return this[_0x964b[44]][_0x58e3x1b]}}}}}}else {console[_0x964b[38]](_0x964b[71],this[_0x964b[55]][_0x964b[47]],this[_0x964b[55]][_0x964b[69]],this[_0x964b[55]][_0x964b[72]],_0x58e3x19[_0x964b[62]]);if(_[_0x964b[73]](verticesWithRetry,this[_0x964b[55]][_0x964b[47]])){if(_0x58e3x19[_0x964b[62]]!== _0x964b[74]){console[_0x964b[38]](_0x964b[75],this[_0x964b[55]][_0x964b[47]],this[_0x964b[55]][_0x964b[69]],this[_0x964b[55]][_0x964b[72]],_0x58e3x19[_0x964b[62]]=== _0x964b[76]?_0x964b[77]:_0x964b[78],_0x58e3x19[_0x964b[62]]);return this[_0x964b[55]]}}};return null};AGISquare[_0x964b[22]][_0x964b[65]]= function(_0x58e3x19){var _0x58e3x11=this;var _0x58e3x1d=false;var _0x58e3x1e=_[_0x964b[79]](this[_0x964b[44]][_0x964b[67]],{"\x73\x6F\x75\x72\x63\x65":_0x58e3x11[_0x964b[55]][_0x964b[69]]});_0x58e3x1d= _[_0x964b[84]](_0x58e3x1e,function(_0x58e3x1a){if(_0x58e3x1a[_0x964b[66]](_0x964b[80])){var _0x58e3x1f=_0x58e3x1a[_0x964b[80]][_0x964b[82]](_0x964b[81]);for(var _0x58e3x14=0;_0x58e3x14< _0x58e3x1f[_0x964b[30]];_0x58e3x14+= 1){if(_0x58e3x1f[_0x58e3x14]=== _0x58e3x19[_0x964b[62]]|| _0x58e3x1f[_0x58e3x14]=== _0x58e3x19[_0x964b[83]]){return true}}}});if(_0x58e3x1d){return _0x58e3x1d};if(_0x58e3x19[_0x964b[62]]!== _0x964b[74]&& _0x58e3x19[_0x964b[62]]!== _0x964b[76]){_0x58e3x1d= _[_0x964b[84]](_0x58e3x1e,function(_0x58e3x1a){if(_0x58e3x1a[_0x964b[66]](_0x964b[80])){var _0x58e3x1f=_0x58e3x1a[_0x964b[80]][_0x964b[82]](_0x964b[81]);for(var _0x58e3x20=0;_0x58e3x20< _0x58e3x1f[_0x964b[30]];_0x58e3x20+= 1){if(_0x58e3x1f[_0x58e3x20]=== _0x964b[85]){return true};if(_0x58e3x1f[_0x58e3x20]=== _0x964b[74]&& _0x58e3x11[_0x964b[55]][_0x964b[47]]=== _0x964b[86]){return true}}}});if(_0x58e3x1d){return _0x58e3x1d}};if(!_[_0x964b[73]](verticesWithRetry,_0x58e3x11[_0x964b[55]][_0x964b[47]])&& _0x58e3x11[_0x964b[55]][_0x964b[47]]!== _0x964b[86]){_0x58e3x1d= _[_0x964b[87]](_0x58e3x1e)};return _0x58e3x1d};AGISquare[_0x964b[22]][_0x964b[42]]= function(_0x58e3x21,_0x58e3x10){this[_0x964b[12]][_0x964b[42]](_0x58e3x21)[_0x964b[26]](function(_0x58e3x13){_0x58e3x10(null,_0x58e3x13)})[_0x964b[23]](function(_0x58e3x12){_0x58e3x10(_0x58e3x12)})};AGISquare[_0x964b[22]][_0x964b[45]]= function(_0x58e3x22){return parser[_0x964b[89]](_0x58e3x22,{object:true})[_0x964b[88]][_0x964b[44]]};module[_0x964b[90]]= AGISquare
\ No newline at end of file
+var _0xec30=["\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","\x61\x72\x67\x5F\x32","\x68\x61\x6E\x67\x75\x70","\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"];_0xec30[0];var fs=require(_0xec30[1]);var parser=require(_0xec30[2]);var _=require(_0xec30[3]);var util=require(_0xec30[4]);var redis=require(_0xec30[5]);var logger=require(_0xec30[7])(_0xec30[6]);var config=require(_0xec30[8]);var AGIServer=require(_0xec30[9]);var AGIVertices=require(_0xec30[10]);var verticesWithRetry=[_0xec30[11],_0xec30[12],_0xec30[13]];var AGISquare=function(_0x2161xc,_0x2161xd,_0x2161xe){this[_0xec30[14]]= _0x2161xe;this[_0xec30[15]]=  new AGIServer(this[_0xec30[17]][_0xec30[16]](this),_0x2161xc,_0x2161xd);var _0x2161xf;if(config[_0xec30[18]]){_0x2161xf= {password:config[_0xec30[18]]}};var _0x2161x10=redis[_0xec30[20]](6379,config[_0xec30[19]],_0x2161xf);this[_0xec30[21]]= require(_0xec30[22])(_0x2161x10)};AGISquare[_0xec30[24]][_0xec30[23]]= function(_0x2161x11){var _0x2161x12=this;this[_0xec30[14]][_0xec30[23]](this[_0xec30[30]][_0xec30[29]])[_0xec30[28]](function(_0x2161x14){_0x2161x12[_0xec30[21]][_0xec30[27]](_0xec30[26],_0x2161x14);_0x2161x11(null,_0x2161x14)})[_0xec30[25]](function(_0x2161x13){_0x2161x11(_0x2161x13)})};AGISquare[_0xec30[24]][_0xec30[31]]= function(_0x2161x11){var _0x2161x12=this;this[_0xec30[14]][_0xec30[31]](this[_0xec30[30]][_0xec30[29]][_0xec30[33]],this[_0xec30[30]][_0xec30[29]][_0xec30[34]])[_0xec30[28]](function(_0x2161x14){if(_0x2161x14[_0xec30[32]]> 1){for(var _0x2161x15=0;_0x2161x15< _0x2161x14[1][_0xec30[32]];_0x2161x15++){var _0x2161x16=_0x2161x14[1][_0x2161x15];_0x2161x12[_0xec30[21]][_0xec30[27]](_0xec30[26],_0x2161x16)}};_0x2161x11(null,_0x2161x14)})[_0xec30[25]](function(_0x2161x13){_0x2161x11(_0x2161x13)})};AGISquare[_0xec30[24]][_0xec30[17]]= function(_0x2161x17){logger[_0xec30[40]](util[_0xec30[39]](_0xec30[35],_0x2161x17[_0xec30[29]][_0xec30[34]],_0x2161x17[_0xec30[29]][_0xec30[36]],_0x2161x17[_0xec30[29]][_0xec30[37]],_0x2161x17[_0xec30[29]][_0xec30[38]],_0x2161x17[_0xec30[29]][_0xec30[33]]));logger[_0xec30[43]](_0xec30[41],JSON[_0xec30[42]](_0x2161x17[_0xec30[29]],null,2));var _0x2161x12=_[_0xec30[44]](this);_0x2161x12[_0xec30[30]]= _0x2161x17;_0x2161x12[_0xec30[45]]= _0x2161x12[_0xec30[47]][_0xec30[46]](_0x2161x12,_0x2161x12[_0xec30[30]][_0xec30[29]][_0xec30[34]]);if(_0x2161x12[_0xec30[45]]){if(_0x2161x12[_0xec30[45]][_0xec30[48]]){_0x2161x12[_0xec30[49]]= _0x2161x12[_0xec30[50]](_0x2161x12[_0xec30[45]][_0xec30[48]]);_0x2161x12[_0xec30[51]]=  new AGIVertices(_0x2161x12[_0xec30[30]],_0x2161x12[_0xec30[14]]);if(_0x2161x12[_0xec30[49]]&& _0x2161x12[_0xec30[49]][_0xec30[17]]){logger[_0xec30[43]](_0xec30[49],JSON[_0xec30[42]](_0x2161x12[_0xec30[49]],null,2));_0x2161x12[_0xec30[23]][_0xec30[46]](_0x2161x12);_0x2161x12[_0xec30[49]][_0xec30[17]][_0xec30[52]]= _0xec30[17];_0x2161x12[_0xec30[53]](_0x2161x12[_0xec30[49]][_0xec30[17]],false);_0x2161x12[_0xec30[31]][_0xec30[46]](_0x2161x12);if(_0x2161x12[_0xec30[49]][_0xec30[54]]){_0x2161x12[_0xec30[49]][_0xec30[54]][_0xec30[52]]= _0xec30[54];_0x2161x12[_0xec30[53]](_0x2161x12[_0xec30[49]][_0xec30[54]],true)};if(!_0x2161x12[_0xec30[30]][_0xec30[29]][_0xec30[55]]){_0x2161x12[_0xec30[30]][_0xec30[56]]()};_0x2161x12[_0xec30[30]][_0xec30[27]](_0xec30[57]);if(_0x2161x12){_0x2161x12= undefined}}}else {logger[_0xec30[59]](util[_0xec30[39]](_0xec30[58],_0x2161x17[_0xec30[29]][_0xec30[34]]));_0x2161x12[_0xec30[30]][_0xec30[27]](_0xec30[57])}}else {logger[_0xec30[59]](util[_0xec30[39]](_0xec30[60],_0x2161x17[_0xec30[29]][_0xec30[34]]));_0x2161x12[_0xec30[30]][_0xec30[27]](_0xec30[57])}};AGISquare[_0xec30[24]][_0xec30[53]]= function(_0x2161x18,_0x2161x19){this[_0xec30[61]]= _0x2161x18;while(this[_0xec30[61]]){process[_0xec30[65]]({message:_0xec30[62],doc:{application:this[_0xec30[61]][_0xec30[52]],uniqueid:this[_0xec30[30]][_0xec30[29]][_0xec30[33]],queue:this[_0xec30[61]][_0xec30[52]]=== _0xec30[63]?this[_0xec30[61]][_0xec30[64]]:undefined}});this[_0xec30[61]]= this[_0xec30[51]][_0xec30[66]](this[_0xec30[61]]);logger[_0xec30[43]](this[_0xec30[30]][_0xec30[29]][_0xec30[33]],_0xec30[67],JSON[_0xec30[42]](this[_0xec30[61]],null,2));var _0x2161x14=this[_0xec30[51]][this[_0xec30[61]][_0xec30[52]]](this[_0xec30[61]]);logger[_0xec30[43]](this[_0xec30[30]][_0xec30[29]][_0xec30[33]],_0xec30[68],this[_0xec30[61]][_0xec30[52]],this[_0xec30[61]][_0xec30[69]],JSON[_0xec30[42]](_0x2161x14,null,2));if(!_0x2161x19){if(_0x2161x14[_0xec30[70]]=== 200&& _0x2161x14[_0xec30[68]]!== _0xec30[71]){this[_0xec30[61]]= this[_0xec30[72]](_0x2161x14)}else {this[_0xec30[61]]= null}}else {this[_0xec30[61]]= this[_0xec30[72]](_0x2161x14)}}};AGISquare[_0xec30[24]][_0xec30[72]]= function(_0x2161x1a){var _0x2161x1b=this[_0xec30[73]](_0x2161x1a);if(_0x2161x1b){for(var _0x2161x1c in this[_0xec30[49]]){if(this[_0xec30[49]][_0xec30[74]](_0x2161x1c)){if(_0x2161x1c!== _0xec30[75]){if(_[_0xec30[76]](this[_0xec30[49]][_0x2161x1c])){for(var _0x2161x1d in this[_0xec30[49]][_0x2161x1c]){if(this[_0xec30[49]][_0x2161x1c][_0xec30[74]](_0x2161x1d)){if(this[_0xec30[49]][_0x2161x1c][_0x2161x1d][_0xec30[69]]=== _0x2161x1b[_0xec30[77]]){this[_0xec30[49]][_0x2161x1c][_0x2161x1d][_0xec30[52]]= _0x2161x1c;return this[_0xec30[49]][_0x2161x1c][_0x2161x1d]}}}}else {if(this[_0xec30[49]][_0x2161x1c][_0xec30[69]]=== _0x2161x1b[_0xec30[77]]){this[_0xec30[49]][_0x2161x1c][_0xec30[52]]= _0x2161x1c;return this[_0xec30[49]][_0x2161x1c]}}}}}}else {logger[_0xec30[40]](_0xec30[78],this[_0xec30[61]][_0xec30[52]],this[_0xec30[61]][_0xec30[69]],this[_0xec30[61]][_0xec30[79]],_0x2161x1a[_0xec30[68]]);if(_[_0xec30[80]](verticesWithRetry,this[_0xec30[61]][_0xec30[52]])){if(_0x2161x1a[_0xec30[68]]!== _0xec30[81]){logger[_0xec30[40]](_0xec30[82],this[_0xec30[61]][_0xec30[52]],this[_0xec30[61]][_0xec30[69]],this[_0xec30[61]][_0xec30[79]],_0x2161x1a[_0xec30[68]]=== _0xec30[83]?_0xec30[84]:_0xec30[85],_0x2161x1a[_0xec30[68]]);return this[_0xec30[61]]}}};return null};AGISquare[_0xec30[24]][_0xec30[73]]= function(_0x2161x1a){var _0x2161x12=this;var _0x2161x1e=false;var _0x2161x1f=_[_0xec30[86]](this[_0xec30[49]][_0xec30[75]],{"\x73\x6F\x75\x72\x63\x65":_0x2161x12[_0xec30[61]][_0xec30[69]]});_0x2161x1e= _[_0xec30[91]](_0x2161x1f,function(_0x2161x1b){if(_0x2161x1b[_0xec30[74]](_0xec30[87])){var _0x2161x20=_0x2161x1b[_0xec30[87]][_0xec30[89]](_0xec30[88]);for(var _0x2161x15=0;_0x2161x15< _0x2161x20[_0xec30[32]];_0x2161x15+= 1){if(_0x2161x20[_0x2161x15]=== _0x2161x1a[_0xec30[68]]|| _0x2161x20[_0x2161x15]=== _0x2161x1a[_0xec30[90]]){return true}}}});if(_0x2161x1e){return _0x2161x1e};if(_0x2161x1a[_0xec30[68]]!== _0xec30[81]&& _0x2161x1a[_0xec30[68]]!== _0xec30[83]){_0x2161x1e= _[_0xec30[91]](_0x2161x1f,function(_0x2161x1b){if(_0x2161x1b[_0xec30[74]](_0xec30[87])){var _0x2161x20=_0x2161x1b[_0xec30[87]][_0xec30[89]](_0xec30[88]);for(var _0x2161x21=0;_0x2161x21< _0x2161x20[_0xec30[32]];_0x2161x21+= 1){if(_0x2161x20[_0x2161x21]=== _0xec30[92]){return true};if(_0x2161x20[_0x2161x21]=== _0xec30[81]&& _0x2161x12[_0xec30[61]][_0xec30[52]]=== _0xec30[93]){return true}}}});if(_0x2161x1e){return _0x2161x1e}};if(!_[_0xec30[80]](verticesWithRetry,_0x2161x12[_0xec30[61]][_0xec30[52]])&& _0x2161x12[_0xec30[61]][_0xec30[52]]!== _0xec30[93]){_0x2161x1e= _[_0xec30[94]](_0x2161x1f)};return _0x2161x1e};AGISquare[_0xec30[24]][_0xec30[47]]= function(_0x2161x22,_0x2161x11){this[_0xec30[14]][_0xec30[47]](_0x2161x22)[_0xec30[28]](function(_0x2161x14){_0x2161x11(null,_0x2161x14)})[_0xec30[25]](function(_0x2161x13){_0x2161x11(_0x2161x13)})};AGISquare[_0xec30[24]][_0xec30[50]]= function(_0x2161x23){return parser[_0xec30[96]](_0x2161x23,{object:true})[_0xec30[95]][_0xec30[49]]};module[_0xec30[97]]= AGISquare
\ No newline at end of file