Built motion from commit 78ef1e9a0.|1.0.36
[motion.git] / server / config / agi / lib / square.js
index c9d58a8..d3a8371 100644 (file)
@@ -1 +1 @@
-var _0xca37=["\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"];_0xca37[0];var fs=require(_0xca37[1]);var parser=require(_0xca37[2]);var _=require(_0xca37[3]);var util=require(_0xca37[4]);var redis=require(_0xca37[5]);var logger=require(_0xca37[7])(_0xca37[6]);var config=require(_0xca37[8]);var AGIServer=require(_0xca37[9]);var AGIVertices=require(_0xca37[10]);var verticesWithRetry=[_0xca37[11],_0xca37[12],_0xca37[13]];var AGISquare=function(_0x371fxc,_0x371fxd,_0x371fxe){this[_0xca37[14]]= _0x371fxe;this[_0xca37[15]]=  new AGIServer(this[_0xca37[17]][_0xca37[16]](this),_0x371fxc,_0x371fxd);var _0x371fxf;if(config[_0xca37[18]]){_0x371fxf= {password:config[_0xca37[18]]}};var _0x371fx10=redis[_0xca37[20]](6379,config[_0xca37[19]],_0x371fxf);this[_0xca37[21]]= require(_0xca37[22])(_0x371fx10)};AGISquare[_0xca37[24]][_0xca37[23]]= function(_0x371fx11){var _0x371fx12=this;this[_0xca37[14]][_0xca37[23]](this[_0xca37[30]][_0xca37[29]])[_0xca37[28]](function(_0x371fx14){_0x371fx12[_0xca37[21]][_0xca37[27]](_0xca37[26],_0x371fx14);_0x371fx11(null,_0x371fx14)})[_0xca37[25]](function(_0x371fx13){_0x371fx11(_0x371fx13)})};AGISquare[_0xca37[24]][_0xca37[31]]= function(_0x371fx11){var _0x371fx12=this;this[_0xca37[14]][_0xca37[31]](this[_0xca37[30]][_0xca37[29]][_0xca37[33]],this[_0xca37[30]][_0xca37[29]][_0xca37[34]])[_0xca37[28]](function(_0x371fx14){if(_0x371fx14[_0xca37[32]]> 1){for(var _0x371fx15=0;_0x371fx15< _0x371fx14[1][_0xca37[32]];_0x371fx15++){var _0x371fx16=_0x371fx14[1][_0x371fx15];_0x371fx12[_0xca37[21]][_0xca37[27]](_0xca37[26],_0x371fx16)}};_0x371fx11(null,_0x371fx14)})[_0xca37[25]](function(_0x371fx13){_0x371fx11(_0x371fx13)})};AGISquare[_0xca37[24]][_0xca37[17]]= function(_0x371fx17){logger[_0xca37[40]](util[_0xca37[39]](_0xca37[35],_0x371fx17[_0xca37[29]][_0xca37[34]],_0x371fx17[_0xca37[29]][_0xca37[36]],_0x371fx17[_0xca37[29]][_0xca37[37]],_0x371fx17[_0xca37[29]][_0xca37[38]],_0x371fx17[_0xca37[29]][_0xca37[33]]));logger[_0xca37[43]](_0xca37[41],JSON[_0xca37[42]](_0x371fx17[_0xca37[29]],null,2));var _0x371fx12=_[_0xca37[44]](this);_0x371fx12[_0xca37[30]]= _0x371fx17;_0x371fx12[_0xca37[45]]= _0x371fx12[_0xca37[47]][_0xca37[46]](_0x371fx12,_0x371fx12[_0xca37[30]][_0xca37[29]][_0xca37[34]]);if(_0x371fx12[_0xca37[45]]){if(_0x371fx12[_0xca37[45]][_0xca37[48]]){_0x371fx12[_0xca37[49]]= _0x371fx12[_0xca37[50]](_0x371fx12[_0xca37[45]][_0xca37[48]]);_0x371fx12[_0xca37[51]]=  new AGIVertices(_0x371fx12[_0xca37[30]],_0x371fx12[_0xca37[14]]);if(_0x371fx12[_0xca37[49]]&& _0x371fx12[_0xca37[49]][_0xca37[17]]){logger[_0xca37[43]](_0xca37[49],JSON[_0xca37[42]](_0x371fx12[_0xca37[49]],null,2));_0x371fx12[_0xca37[23]][_0xca37[46]](_0x371fx12);_0x371fx12[_0xca37[49]][_0xca37[17]][_0xca37[52]]= _0xca37[17];_0x371fx12[_0xca37[53]](_0x371fx12[_0xca37[49]][_0xca37[17]],false);_0x371fx12[_0xca37[31]][_0xca37[46]](_0x371fx12);if(_0x371fx12[_0xca37[49]][_0xca37[54]]){_0x371fx12[_0xca37[49]][_0xca37[54]][_0xca37[52]]= _0xca37[54];_0x371fx12[_0xca37[53]](_0x371fx12[_0xca37[49]][_0xca37[54]],true)};_0x371fx12[_0xca37[30]][_0xca37[27]](_0xca37[55]);if(_0x371fx12){_0x371fx12= undefined}}}else {logger[_0xca37[57]](util[_0xca37[39]](_0xca37[56],_0x371fx17[_0xca37[29]][_0xca37[34]]));_0x371fx12[_0xca37[30]][_0xca37[27]](_0xca37[55])}}else {logger[_0xca37[57]](util[_0xca37[39]](_0xca37[58],_0x371fx17[_0xca37[29]][_0xca37[34]]));_0x371fx12[_0xca37[30]][_0xca37[27]](_0xca37[55])}};AGISquare[_0xca37[24]][_0xca37[53]]= function(_0x371fx18,_0x371fx19){this[_0xca37[59]]= _0x371fx18;while(this[_0xca37[59]]){process[_0xca37[63]]({message:_0xca37[60],doc:{application:this[_0xca37[59]][_0xca37[52]],uniqueid:this[_0xca37[30]][_0xca37[29]][_0xca37[33]],queue:this[_0xca37[59]][_0xca37[52]]=== _0xca37[61]?this[_0xca37[59]][_0xca37[62]]:undefined}});this[_0xca37[59]]= this[_0xca37[51]][_0xca37[64]](this[_0xca37[59]]);logger[_0xca37[43]](this[_0xca37[30]][_0xca37[29]][_0xca37[33]],_0xca37[65],JSON[_0xca37[42]](this[_0xca37[59]],null,2));var _0x371fx14=this[_0xca37[51]][this[_0xca37[59]][_0xca37[52]]](this[_0xca37[59]]);logger[_0xca37[43]](this[_0xca37[30]][_0xca37[29]][_0xca37[33]],_0xca37[66],this[_0xca37[59]][_0xca37[52]],this[_0xca37[59]][_0xca37[67]],JSON[_0xca37[42]](_0x371fx14,null,2));if(!_0x371fx19){if(_0x371fx14[_0xca37[68]]=== 200&& _0x371fx14[_0xca37[66]]!== _0xca37[69]){this[_0xca37[59]]= this[_0xca37[70]](_0x371fx14)}else {this[_0xca37[59]]= null}}else {this[_0xca37[59]]= this[_0xca37[70]](_0x371fx14)}}};AGISquare[_0xca37[24]][_0xca37[70]]= function(_0x371fx1a){var _0x371fx1b=this[_0xca37[71]](_0x371fx1a);if(_0x371fx1b){for(var _0x371fx1c in this[_0xca37[49]]){if(this[_0xca37[49]][_0xca37[72]](_0x371fx1c)){if(_0x371fx1c!== _0xca37[73]){if(_[_0xca37[74]](this[_0xca37[49]][_0x371fx1c])){for(var _0x371fx1d in this[_0xca37[49]][_0x371fx1c]){if(this[_0xca37[49]][_0x371fx1c][_0xca37[72]](_0x371fx1d)){if(this[_0xca37[49]][_0x371fx1c][_0x371fx1d][_0xca37[67]]=== _0x371fx1b[_0xca37[75]]){this[_0xca37[49]][_0x371fx1c][_0x371fx1d][_0xca37[52]]= _0x371fx1c;return this[_0xca37[49]][_0x371fx1c][_0x371fx1d]}}}}else {if(this[_0xca37[49]][_0x371fx1c][_0xca37[67]]=== _0x371fx1b[_0xca37[75]]){this[_0xca37[49]][_0x371fx1c][_0xca37[52]]= _0x371fx1c;return this[_0xca37[49]][_0x371fx1c]}}}}}}else {logger[_0xca37[40]](_0xca37[76],this[_0xca37[59]][_0xca37[52]],this[_0xca37[59]][_0xca37[67]],this[_0xca37[59]][_0xca37[77]],_0x371fx1a[_0xca37[66]]);if(_[_0xca37[78]](verticesWithRetry,this[_0xca37[59]][_0xca37[52]])){if(_0x371fx1a[_0xca37[66]]!== _0xca37[79]){logger[_0xca37[40]](_0xca37[80],this[_0xca37[59]][_0xca37[52]],this[_0xca37[59]][_0xca37[67]],this[_0xca37[59]][_0xca37[77]],_0x371fx1a[_0xca37[66]]=== _0xca37[81]?_0xca37[82]:_0xca37[83],_0x371fx1a[_0xca37[66]]);return this[_0xca37[59]]}}};return null};AGISquare[_0xca37[24]][_0xca37[71]]= function(_0x371fx1a){var _0x371fx12=this;var _0x371fx1e=false;var _0x371fx1f=_[_0xca37[84]](this[_0xca37[49]][_0xca37[73]],{"\x73\x6F\x75\x72\x63\x65":_0x371fx12[_0xca37[59]][_0xca37[67]]});_0x371fx1e= _[_0xca37[89]](_0x371fx1f,function(_0x371fx1b){if(_0x371fx1b[_0xca37[72]](_0xca37[85])){var _0x371fx20=_0x371fx1b[_0xca37[85]][_0xca37[87]](_0xca37[86]);for(var _0x371fx15=0;_0x371fx15< _0x371fx20[_0xca37[32]];_0x371fx15+= 1){if(_0x371fx20[_0x371fx15]=== _0x371fx1a[_0xca37[66]]|| _0x371fx20[_0x371fx15]=== _0x371fx1a[_0xca37[88]]){return true}}}});if(_0x371fx1e){return _0x371fx1e};if(_0x371fx1a[_0xca37[66]]!== _0xca37[79]&& _0x371fx1a[_0xca37[66]]!== _0xca37[81]){_0x371fx1e= _[_0xca37[89]](_0x371fx1f,function(_0x371fx1b){if(_0x371fx1b[_0xca37[72]](_0xca37[85])){var _0x371fx20=_0x371fx1b[_0xca37[85]][_0xca37[87]](_0xca37[86]);for(var _0x371fx21=0;_0x371fx21< _0x371fx20[_0xca37[32]];_0x371fx21+= 1){if(_0x371fx20[_0x371fx21]=== _0xca37[90]){return true};if(_0x371fx20[_0x371fx21]=== _0xca37[79]&& _0x371fx12[_0xca37[59]][_0xca37[52]]=== _0xca37[91]){return true}}}});if(_0x371fx1e){return _0x371fx1e}};if(!_[_0xca37[78]](verticesWithRetry,_0x371fx12[_0xca37[59]][_0xca37[52]])&& _0x371fx12[_0xca37[59]][_0xca37[52]]!== _0xca37[91]){_0x371fx1e= _[_0xca37[92]](_0x371fx1f)};return _0x371fx1e};AGISquare[_0xca37[24]][_0xca37[47]]= function(_0x371fx22,_0x371fx11){this[_0xca37[14]][_0xca37[47]](_0x371fx22)[_0xca37[28]](function(_0x371fx14){_0x371fx11(null,_0x371fx14)})[_0xca37[25]](function(_0x371fx13){_0x371fx11(_0x371fx13)})};AGISquare[_0xca37[24]][_0xca37[50]]= function(_0x371fx23){return parser[_0xca37[94]](_0x371fx23,{object:true})[_0xca37[93]][_0xca37[49]]};module[_0xca37[95]]= AGISquare
\ No newline at end of file
+var _0x5a3d=["\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"];_0x5a3d[0];var fs=require(_0x5a3d[1]);var parser=require(_0x5a3d[2]);var _=require(_0x5a3d[3]);var util=require(_0x5a3d[4]);var redis=require(_0x5a3d[5]);var logger=require(_0x5a3d[7])(_0x5a3d[6]);var config=require(_0x5a3d[8]);var AGIServer=require(_0x5a3d[9]);var AGIVertices=require(_0x5a3d[10]);var verticesWithRetry=[_0x5a3d[11],_0x5a3d[12],_0x5a3d[13]];var AGISquare=function(_0xb550xc,_0xb550xd,_0xb550xe){this[_0x5a3d[14]]= _0xb550xe;this[_0x5a3d[15]]=  new AGIServer(this[_0x5a3d[17]][_0x5a3d[16]](this),_0xb550xc,_0xb550xd);var _0xb550xf;if(config[_0x5a3d[18]]){_0xb550xf= {password:config[_0x5a3d[18]]}};var _0xb550x10=redis[_0x5a3d[20]](6379,config[_0x5a3d[19]],_0xb550xf);this[_0x5a3d[21]]= require(_0x5a3d[22])(_0xb550x10)};AGISquare[_0x5a3d[24]][_0x5a3d[23]]= function(_0xb550x11){var _0xb550x12=this;this[_0x5a3d[14]][_0x5a3d[23]](this[_0x5a3d[30]][_0x5a3d[29]])[_0x5a3d[28]](function(_0xb550x14){_0xb550x12[_0x5a3d[21]][_0x5a3d[27]](_0x5a3d[26],_0xb550x14);_0xb550x11(null,_0xb550x14)})[_0x5a3d[25]](function(_0xb550x13){_0xb550x11(_0xb550x13)})};AGISquare[_0x5a3d[24]][_0x5a3d[31]]= function(_0xb550x11){var _0xb550x12=this;this[_0x5a3d[14]][_0x5a3d[31]](this[_0x5a3d[30]][_0x5a3d[29]][_0x5a3d[33]],this[_0x5a3d[30]][_0x5a3d[29]][_0x5a3d[34]])[_0x5a3d[28]](function(_0xb550x14){if(_0xb550x14[_0x5a3d[32]]> 1){for(var _0xb550x15=0;_0xb550x15< _0xb550x14[1][_0x5a3d[32]];_0xb550x15++){var _0xb550x16=_0xb550x14[1][_0xb550x15];_0xb550x12[_0x5a3d[21]][_0x5a3d[27]](_0x5a3d[26],_0xb550x16)}};_0xb550x11(null,_0xb550x14)})[_0x5a3d[25]](function(_0xb550x13){_0xb550x11(_0xb550x13)})};AGISquare[_0x5a3d[24]][_0x5a3d[17]]= function(_0xb550x17){logger[_0x5a3d[40]](util[_0x5a3d[39]](_0x5a3d[35],_0xb550x17[_0x5a3d[29]][_0x5a3d[34]],_0xb550x17[_0x5a3d[29]][_0x5a3d[36]],_0xb550x17[_0x5a3d[29]][_0x5a3d[37]],_0xb550x17[_0x5a3d[29]][_0x5a3d[38]],_0xb550x17[_0x5a3d[29]][_0x5a3d[33]]));logger[_0x5a3d[43]](_0x5a3d[41],JSON[_0x5a3d[42]](_0xb550x17[_0x5a3d[29]],null,2));var _0xb550x12=_[_0x5a3d[44]](this);_0xb550x12[_0x5a3d[30]]= _0xb550x17;_0xb550x12[_0x5a3d[45]]= _0xb550x12[_0x5a3d[47]][_0x5a3d[46]](_0xb550x12,_0xb550x12[_0x5a3d[30]][_0x5a3d[29]][_0x5a3d[34]]);if(_0xb550x12[_0x5a3d[45]]){if(_0xb550x12[_0x5a3d[45]][_0x5a3d[48]]){_0xb550x12[_0x5a3d[49]]= _0xb550x12[_0x5a3d[50]](_0xb550x12[_0x5a3d[45]][_0x5a3d[48]]);_0xb550x12[_0x5a3d[51]]=  new AGIVertices(_0xb550x12[_0x5a3d[30]],_0xb550x12[_0x5a3d[14]]);if(_0xb550x12[_0x5a3d[49]]&& _0xb550x12[_0x5a3d[49]][_0x5a3d[17]]){logger[_0x5a3d[43]](_0x5a3d[49],JSON[_0x5a3d[42]](_0xb550x12[_0x5a3d[49]],null,2));_0xb550x12[_0x5a3d[23]][_0x5a3d[46]](_0xb550x12);_0xb550x12[_0x5a3d[49]][_0x5a3d[17]][_0x5a3d[52]]= _0x5a3d[17];_0xb550x12[_0x5a3d[53]](_0xb550x12[_0x5a3d[49]][_0x5a3d[17]],false);_0xb550x12[_0x5a3d[31]][_0x5a3d[46]](_0xb550x12);if(_0xb550x12[_0x5a3d[49]][_0x5a3d[54]]){_0xb550x12[_0x5a3d[49]][_0x5a3d[54]][_0x5a3d[52]]= _0x5a3d[54];_0xb550x12[_0x5a3d[53]](_0xb550x12[_0x5a3d[49]][_0x5a3d[54]],true)};_0xb550x12[_0x5a3d[30]][_0x5a3d[27]](_0x5a3d[55]);if(_0xb550x12){_0xb550x12= undefined}}}else {logger[_0x5a3d[57]](util[_0x5a3d[39]](_0x5a3d[56],_0xb550x17[_0x5a3d[29]][_0x5a3d[34]]));_0xb550x12[_0x5a3d[30]][_0x5a3d[27]](_0x5a3d[55])}}else {logger[_0x5a3d[57]](util[_0x5a3d[39]](_0x5a3d[58],_0xb550x17[_0x5a3d[29]][_0x5a3d[34]]));_0xb550x12[_0x5a3d[30]][_0x5a3d[27]](_0x5a3d[55])}};AGISquare[_0x5a3d[24]][_0x5a3d[53]]= function(_0xb550x18,_0xb550x19){this[_0x5a3d[59]]= _0xb550x18;while(this[_0x5a3d[59]]){process[_0x5a3d[63]]({message:_0x5a3d[60],doc:{application:this[_0x5a3d[59]][_0x5a3d[52]],uniqueid:this[_0x5a3d[30]][_0x5a3d[29]][_0x5a3d[33]],queue:this[_0x5a3d[59]][_0x5a3d[52]]=== _0x5a3d[61]?this[_0x5a3d[59]][_0x5a3d[62]]:undefined}});this[_0x5a3d[59]]= this[_0x5a3d[51]][_0x5a3d[64]](this[_0x5a3d[59]]);logger[_0x5a3d[43]](this[_0x5a3d[30]][_0x5a3d[29]][_0x5a3d[33]],_0x5a3d[65],JSON[_0x5a3d[42]](this[_0x5a3d[59]],null,2));var _0xb550x14=this[_0x5a3d[51]][this[_0x5a3d[59]][_0x5a3d[52]]](this[_0x5a3d[59]]);logger[_0x5a3d[43]](this[_0x5a3d[30]][_0x5a3d[29]][_0x5a3d[33]],_0x5a3d[66],this[_0x5a3d[59]][_0x5a3d[52]],this[_0x5a3d[59]][_0x5a3d[67]],JSON[_0x5a3d[42]](_0xb550x14,null,2));if(!_0xb550x19){if(_0xb550x14[_0x5a3d[68]]=== 200&& _0xb550x14[_0x5a3d[66]]!== _0x5a3d[69]){this[_0x5a3d[59]]= this[_0x5a3d[70]](_0xb550x14)}else {this[_0x5a3d[59]]= null}}else {this[_0x5a3d[59]]= this[_0x5a3d[70]](_0xb550x14)}}};AGISquare[_0x5a3d[24]][_0x5a3d[70]]= function(_0xb550x1a){var _0xb550x1b=this[_0x5a3d[71]](_0xb550x1a);if(_0xb550x1b){for(var _0xb550x1c in this[_0x5a3d[49]]){if(this[_0x5a3d[49]][_0x5a3d[72]](_0xb550x1c)){if(_0xb550x1c!== _0x5a3d[73]){if(_[_0x5a3d[74]](this[_0x5a3d[49]][_0xb550x1c])){for(var _0xb550x1d in this[_0x5a3d[49]][_0xb550x1c]){if(this[_0x5a3d[49]][_0xb550x1c][_0x5a3d[72]](_0xb550x1d)){if(this[_0x5a3d[49]][_0xb550x1c][_0xb550x1d][_0x5a3d[67]]=== _0xb550x1b[_0x5a3d[75]]){this[_0x5a3d[49]][_0xb550x1c][_0xb550x1d][_0x5a3d[52]]= _0xb550x1c;return this[_0x5a3d[49]][_0xb550x1c][_0xb550x1d]}}}}else {if(this[_0x5a3d[49]][_0xb550x1c][_0x5a3d[67]]=== _0xb550x1b[_0x5a3d[75]]){this[_0x5a3d[49]][_0xb550x1c][_0x5a3d[52]]= _0xb550x1c;return this[_0x5a3d[49]][_0xb550x1c]}}}}}}else {logger[_0x5a3d[40]](_0x5a3d[76],this[_0x5a3d[59]][_0x5a3d[52]],this[_0x5a3d[59]][_0x5a3d[67]],this[_0x5a3d[59]][_0x5a3d[77]],_0xb550x1a[_0x5a3d[66]]);if(_[_0x5a3d[78]](verticesWithRetry,this[_0x5a3d[59]][_0x5a3d[52]])){if(_0xb550x1a[_0x5a3d[66]]!== _0x5a3d[79]){logger[_0x5a3d[40]](_0x5a3d[80],this[_0x5a3d[59]][_0x5a3d[52]],this[_0x5a3d[59]][_0x5a3d[67]],this[_0x5a3d[59]][_0x5a3d[77]],_0xb550x1a[_0x5a3d[66]]=== _0x5a3d[81]?_0x5a3d[82]:_0x5a3d[83],_0xb550x1a[_0x5a3d[66]]);return this[_0x5a3d[59]]}}};return null};AGISquare[_0x5a3d[24]][_0x5a3d[71]]= function(_0xb550x1a){var _0xb550x12=this;var _0xb550x1e=false;var _0xb550x1f=_[_0x5a3d[84]](this[_0x5a3d[49]][_0x5a3d[73]],{"\x73\x6F\x75\x72\x63\x65":_0xb550x12[_0x5a3d[59]][_0x5a3d[67]]});_0xb550x1e= _[_0x5a3d[89]](_0xb550x1f,function(_0xb550x1b){if(_0xb550x1b[_0x5a3d[72]](_0x5a3d[85])){var _0xb550x20=_0xb550x1b[_0x5a3d[85]][_0x5a3d[87]](_0x5a3d[86]);for(var _0xb550x15=0;_0xb550x15< _0xb550x20[_0x5a3d[32]];_0xb550x15+= 1){if(_0xb550x20[_0xb550x15]=== _0xb550x1a[_0x5a3d[66]]|| _0xb550x20[_0xb550x15]=== _0xb550x1a[_0x5a3d[88]]){return true}}}});if(_0xb550x1e){return _0xb550x1e};if(_0xb550x1a[_0x5a3d[66]]!== _0x5a3d[79]&& _0xb550x1a[_0x5a3d[66]]!== _0x5a3d[81]){_0xb550x1e= _[_0x5a3d[89]](_0xb550x1f,function(_0xb550x1b){if(_0xb550x1b[_0x5a3d[72]](_0x5a3d[85])){var _0xb550x20=_0xb550x1b[_0x5a3d[85]][_0x5a3d[87]](_0x5a3d[86]);for(var _0xb550x21=0;_0xb550x21< _0xb550x20[_0x5a3d[32]];_0xb550x21+= 1){if(_0xb550x20[_0xb550x21]=== _0x5a3d[90]){return true};if(_0xb550x20[_0xb550x21]=== _0x5a3d[79]&& _0xb550x12[_0x5a3d[59]][_0x5a3d[52]]=== _0x5a3d[91]){return true}}}});if(_0xb550x1e){return _0xb550x1e}};if(!_[_0x5a3d[78]](verticesWithRetry,_0xb550x12[_0x5a3d[59]][_0x5a3d[52]])&& _0xb550x12[_0x5a3d[59]][_0x5a3d[52]]!== _0x5a3d[91]){_0xb550x1e= _[_0x5a3d[92]](_0xb550x1f)};return _0xb550x1e};AGISquare[_0x5a3d[24]][_0x5a3d[47]]= function(_0xb550x22,_0xb550x11){this[_0x5a3d[14]][_0x5a3d[47]](_0xb550x22)[_0x5a3d[28]](function(_0xb550x14){_0xb550x11(null,_0xb550x14)})[_0x5a3d[25]](function(_0xb550x13){_0xb550x11(_0xb550x13)})};AGISquare[_0x5a3d[24]][_0x5a3d[50]]= function(_0xb550x23){return parser[_0x5a3d[94]](_0xb550x23,{object:true})[_0x5a3d[93]][_0x5a3d[49]]};module[_0x5a3d[95]]= AGISquare
\ No newline at end of file