Built motion from commit 679193b81.|1.0.24
[motion.git] / server / config / agi / lib / square.js
index 9bd80c8..b20be72 100644 (file)
@@ -1 +1 @@
-var _0x94db=["\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"];_0x94db[0];var fs=require(_0x94db[1]);var parser=require(_0x94db[2]);var _=require(_0x94db[3]);var util=require(_0x94db[4]);var redis=require(_0x94db[5]);var logger=require(_0x94db[7])(_0x94db[6]);var config=require(_0x94db[8]);var AGIServer=require(_0x94db[9]);var AGIVertices=require(_0x94db[10]);var verticesWithRetry=[_0x94db[11],_0x94db[12],_0x94db[13]];var AGISquare=function(_0x6f6fxc,_0x6f6fxd,_0x6f6fxe){this[_0x94db[14]]= _0x6f6fxe;this[_0x94db[15]]=  new AGIServer(this[_0x94db[17]][_0x94db[16]](this),_0x6f6fxc,_0x6f6fxd);var _0x6f6fxf;if(config[_0x94db[18]]){_0x6f6fxf= {password:config[_0x94db[18]]}};var _0x6f6fx10=redis[_0x94db[20]](6379,config[_0x94db[19]],_0x6f6fxf);this[_0x94db[21]]= require(_0x94db[22])(_0x6f6fx10)};AGISquare[_0x94db[24]][_0x94db[23]]= function(_0x6f6fx11){var _0x6f6fx12=this;this[_0x94db[14]][_0x94db[23]](this[_0x94db[30]][_0x94db[29]])[_0x94db[28]](function(_0x6f6fx14){_0x6f6fx12[_0x94db[21]][_0x94db[27]](_0x94db[26],_0x6f6fx14);_0x6f6fx11(null,_0x6f6fx14)})[_0x94db[25]](function(_0x6f6fx13){_0x6f6fx11(_0x6f6fx13)})};AGISquare[_0x94db[24]][_0x94db[31]]= function(_0x6f6fx11){var _0x6f6fx12=this;this[_0x94db[14]][_0x94db[31]](this[_0x94db[30]][_0x94db[29]][_0x94db[33]],this[_0x94db[30]][_0x94db[29]][_0x94db[34]])[_0x94db[28]](function(_0x6f6fx14){if(_0x6f6fx14[_0x94db[32]]> 1){for(var _0x6f6fx15=0;_0x6f6fx15< _0x6f6fx14[1][_0x94db[32]];_0x6f6fx15++){var _0x6f6fx16=_0x6f6fx14[1][_0x6f6fx15];_0x6f6fx12[_0x94db[21]][_0x94db[27]](_0x94db[26],_0x6f6fx16)}};_0x6f6fx11(null,_0x6f6fx14)})[_0x94db[25]](function(_0x6f6fx13){_0x6f6fx11(_0x6f6fx13)})};AGISquare[_0x94db[24]][_0x94db[17]]= function(_0x6f6fx17){logger[_0x94db[40]](util[_0x94db[39]](_0x94db[35],_0x6f6fx17[_0x94db[29]][_0x94db[34]],_0x6f6fx17[_0x94db[29]][_0x94db[36]],_0x6f6fx17[_0x94db[29]][_0x94db[37]],_0x6f6fx17[_0x94db[29]][_0x94db[38]],_0x6f6fx17[_0x94db[29]][_0x94db[33]]));logger[_0x94db[43]](_0x94db[41],JSON[_0x94db[42]](_0x6f6fx17[_0x94db[29]],null,2));var _0x6f6fx12=_[_0x94db[44]](this);_0x6f6fx12[_0x94db[30]]= _0x6f6fx17;_0x6f6fx12[_0x94db[45]]= _0x6f6fx12[_0x94db[47]][_0x94db[46]](_0x6f6fx12,_0x6f6fx12[_0x94db[30]][_0x94db[29]][_0x94db[34]]);if(_0x6f6fx12[_0x94db[45]]){if(_0x6f6fx12[_0x94db[45]][_0x94db[48]]){_0x6f6fx12[_0x94db[49]]= _0x6f6fx12[_0x94db[50]](_0x6f6fx12[_0x94db[45]][_0x94db[48]]);_0x6f6fx12[_0x94db[51]]=  new AGIVertices(_0x6f6fx12[_0x94db[30]],_0x6f6fx12[_0x94db[14]]);if(_0x6f6fx12[_0x94db[49]]&& _0x6f6fx12[_0x94db[49]][_0x94db[17]]){logger[_0x94db[43]](_0x94db[49],JSON[_0x94db[42]](_0x6f6fx12[_0x94db[49]],null,2));_0x6f6fx12[_0x94db[23]][_0x94db[46]](_0x6f6fx12);_0x6f6fx12[_0x94db[49]][_0x94db[17]][_0x94db[52]]= _0x94db[17];_0x6f6fx12[_0x94db[53]](_0x6f6fx12[_0x94db[49]][_0x94db[17]],false);_0x6f6fx12[_0x94db[31]][_0x94db[46]](_0x6f6fx12);if(_0x6f6fx12[_0x94db[49]][_0x94db[54]]){_0x6f6fx12[_0x94db[49]][_0x94db[54]][_0x94db[52]]= _0x94db[54];_0x6f6fx12[_0x94db[53]](_0x6f6fx12[_0x94db[49]][_0x94db[54]],true)};if(!_0x6f6fx12[_0x94db[30]][_0x94db[29]][_0x94db[55]]){_0x6f6fx12[_0x94db[30]][_0x94db[56]]()};_0x6f6fx12[_0x94db[30]][_0x94db[27]](_0x94db[57]);if(_0x6f6fx12){_0x6f6fx12= undefined}}}else {logger[_0x94db[59]](util[_0x94db[39]](_0x94db[58],_0x6f6fx17[_0x94db[29]][_0x94db[34]]));_0x6f6fx12[_0x94db[30]][_0x94db[27]](_0x94db[57])}}else {logger[_0x94db[59]](util[_0x94db[39]](_0x94db[60],_0x6f6fx17[_0x94db[29]][_0x94db[34]]));_0x6f6fx12[_0x94db[30]][_0x94db[27]](_0x94db[57])}};AGISquare[_0x94db[24]][_0x94db[53]]= function(_0x6f6fx18,_0x6f6fx19){this[_0x94db[61]]= _0x6f6fx18;while(this[_0x94db[61]]){process[_0x94db[65]]({message:_0x94db[62],doc:{application:this[_0x94db[61]][_0x94db[52]],uniqueid:this[_0x94db[30]][_0x94db[29]][_0x94db[33]],queue:this[_0x94db[61]][_0x94db[52]]=== _0x94db[63]?this[_0x94db[61]][_0x94db[64]]:undefined}});this[_0x94db[61]]= this[_0x94db[51]][_0x94db[66]](this[_0x94db[61]]);logger[_0x94db[43]](this[_0x94db[30]][_0x94db[29]][_0x94db[33]],_0x94db[67],JSON[_0x94db[42]](this[_0x94db[61]],null,2));var _0x6f6fx14=this[_0x94db[51]][this[_0x94db[61]][_0x94db[52]]](this[_0x94db[61]]);logger[_0x94db[43]](this[_0x94db[30]][_0x94db[29]][_0x94db[33]],_0x94db[68],this[_0x94db[61]][_0x94db[52]],this[_0x94db[61]][_0x94db[69]],JSON[_0x94db[42]](_0x6f6fx14,null,2));if(!_0x6f6fx19){if(_0x6f6fx14[_0x94db[70]]=== 200&& _0x6f6fx14[_0x94db[68]]!== _0x94db[71]){this[_0x94db[61]]= this[_0x94db[72]](_0x6f6fx14)}else {this[_0x94db[61]]= null}}else {this[_0x94db[61]]= this[_0x94db[72]](_0x6f6fx14)}}};AGISquare[_0x94db[24]][_0x94db[72]]= function(_0x6f6fx1a){var _0x6f6fx1b=this[_0x94db[73]](_0x6f6fx1a);if(_0x6f6fx1b){for(var _0x6f6fx1c in this[_0x94db[49]]){if(this[_0x94db[49]][_0x94db[74]](_0x6f6fx1c)){if(_0x6f6fx1c!== _0x94db[75]){if(_[_0x94db[76]](this[_0x94db[49]][_0x6f6fx1c])){for(var _0x6f6fx1d in this[_0x94db[49]][_0x6f6fx1c]){if(this[_0x94db[49]][_0x6f6fx1c][_0x94db[74]](_0x6f6fx1d)){if(this[_0x94db[49]][_0x6f6fx1c][_0x6f6fx1d][_0x94db[69]]=== _0x6f6fx1b[_0x94db[77]]){this[_0x94db[49]][_0x6f6fx1c][_0x6f6fx1d][_0x94db[52]]= _0x6f6fx1c;return this[_0x94db[49]][_0x6f6fx1c][_0x6f6fx1d]}}}}else {if(this[_0x94db[49]][_0x6f6fx1c][_0x94db[69]]=== _0x6f6fx1b[_0x94db[77]]){this[_0x94db[49]][_0x6f6fx1c][_0x94db[52]]= _0x6f6fx1c;return this[_0x94db[49]][_0x6f6fx1c]}}}}}}else {logger[_0x94db[40]](_0x94db[78],this[_0x94db[61]][_0x94db[52]],this[_0x94db[61]][_0x94db[69]],this[_0x94db[61]][_0x94db[79]],_0x6f6fx1a[_0x94db[68]]);if(_[_0x94db[80]](verticesWithRetry,this[_0x94db[61]][_0x94db[52]])){if(_0x6f6fx1a[_0x94db[68]]!== _0x94db[81]){logger[_0x94db[40]](_0x94db[82],this[_0x94db[61]][_0x94db[52]],this[_0x94db[61]][_0x94db[69]],this[_0x94db[61]][_0x94db[79]],_0x6f6fx1a[_0x94db[68]]=== _0x94db[83]?_0x94db[84]:_0x94db[85],_0x6f6fx1a[_0x94db[68]]);return this[_0x94db[61]]}}};return null};AGISquare[_0x94db[24]][_0x94db[73]]= function(_0x6f6fx1a){var _0x6f6fx12=this;var _0x6f6fx1e=false;var _0x6f6fx1f=_[_0x94db[86]](this[_0x94db[49]][_0x94db[75]],{"\x73\x6F\x75\x72\x63\x65":_0x6f6fx12[_0x94db[61]][_0x94db[69]]});_0x6f6fx1e= _[_0x94db[91]](_0x6f6fx1f,function(_0x6f6fx1b){if(_0x6f6fx1b[_0x94db[74]](_0x94db[87])){var _0x6f6fx20=_0x6f6fx1b[_0x94db[87]][_0x94db[89]](_0x94db[88]);for(var _0x6f6fx15=0;_0x6f6fx15< _0x6f6fx20[_0x94db[32]];_0x6f6fx15+= 1){if(_0x6f6fx20[_0x6f6fx15]=== _0x6f6fx1a[_0x94db[68]]|| _0x6f6fx20[_0x6f6fx15]=== _0x6f6fx1a[_0x94db[90]]){return true}}}});if(_0x6f6fx1e){return _0x6f6fx1e};if(_0x6f6fx1a[_0x94db[68]]!== _0x94db[81]&& _0x6f6fx1a[_0x94db[68]]!== _0x94db[83]){_0x6f6fx1e= _[_0x94db[91]](_0x6f6fx1f,function(_0x6f6fx1b){if(_0x6f6fx1b[_0x94db[74]](_0x94db[87])){var _0x6f6fx20=_0x6f6fx1b[_0x94db[87]][_0x94db[89]](_0x94db[88]);for(var _0x6f6fx21=0;_0x6f6fx21< _0x6f6fx20[_0x94db[32]];_0x6f6fx21+= 1){if(_0x6f6fx20[_0x6f6fx21]=== _0x94db[92]){return true};if(_0x6f6fx20[_0x6f6fx21]=== _0x94db[81]&& _0x6f6fx12[_0x94db[61]][_0x94db[52]]=== _0x94db[93]){return true}}}});if(_0x6f6fx1e){return _0x6f6fx1e}};if(!_[_0x94db[80]](verticesWithRetry,_0x6f6fx12[_0x94db[61]][_0x94db[52]])&& _0x6f6fx12[_0x94db[61]][_0x94db[52]]!== _0x94db[93]){_0x6f6fx1e= _[_0x94db[94]](_0x6f6fx1f)};return _0x6f6fx1e};AGISquare[_0x94db[24]][_0x94db[47]]= function(_0x6f6fx22,_0x6f6fx11){this[_0x94db[14]][_0x94db[47]](_0x6f6fx22)[_0x94db[28]](function(_0x6f6fx14){_0x6f6fx11(null,_0x6f6fx14)})[_0x94db[25]](function(_0x6f6fx13){_0x6f6fx11(_0x6f6fx13)})};AGISquare[_0x94db[24]][_0x94db[50]]= function(_0x6f6fx23){return parser[_0x94db[96]](_0x6f6fx23,{object:true})[_0x94db[95]][_0x94db[49]]};module[_0x94db[97]]= AGISquare
\ No newline at end of file
+var _0xa0c6=["\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"];_0xa0c6[0];var fs=require(_0xa0c6[1]);var parser=require(_0xa0c6[2]);var _=require(_0xa0c6[3]);var util=require(_0xa0c6[4]);var redis=require(_0xa0c6[5]);var logger=require(_0xa0c6[7])(_0xa0c6[6]);var config=require(_0xa0c6[8]);var AGIServer=require(_0xa0c6[9]);var AGIVertices=require(_0xa0c6[10]);var verticesWithRetry=[_0xa0c6[11],_0xa0c6[12],_0xa0c6[13]];var AGISquare=function(_0xa560xc,_0xa560xd,_0xa560xe){this[_0xa0c6[14]]= _0xa560xe;this[_0xa0c6[15]]=  new AGIServer(this[_0xa0c6[17]][_0xa0c6[16]](this),_0xa560xc,_0xa560xd);var _0xa560xf;if(config[_0xa0c6[18]]){_0xa560xf= {password:config[_0xa0c6[18]]}};var _0xa560x10=redis[_0xa0c6[20]](6379,config[_0xa0c6[19]],_0xa560xf);this[_0xa0c6[21]]= require(_0xa0c6[22])(_0xa560x10)};AGISquare[_0xa0c6[24]][_0xa0c6[23]]= function(_0xa560x11){var _0xa560x12=this;this[_0xa0c6[14]][_0xa0c6[23]](this[_0xa0c6[30]][_0xa0c6[29]])[_0xa0c6[28]](function(_0xa560x14){_0xa560x12[_0xa0c6[21]][_0xa0c6[27]](_0xa0c6[26],_0xa560x14);_0xa560x11(null,_0xa560x14)})[_0xa0c6[25]](function(_0xa560x13){_0xa560x11(_0xa560x13)})};AGISquare[_0xa0c6[24]][_0xa0c6[31]]= function(_0xa560x11){var _0xa560x12=this;this[_0xa0c6[14]][_0xa0c6[31]](this[_0xa0c6[30]][_0xa0c6[29]][_0xa0c6[33]],this[_0xa0c6[30]][_0xa0c6[29]][_0xa0c6[34]])[_0xa0c6[28]](function(_0xa560x14){if(_0xa560x14[_0xa0c6[32]]> 1){for(var _0xa560x15=0;_0xa560x15< _0xa560x14[1][_0xa0c6[32]];_0xa560x15++){var _0xa560x16=_0xa560x14[1][_0xa560x15];_0xa560x12[_0xa0c6[21]][_0xa0c6[27]](_0xa0c6[26],_0xa560x16)}};_0xa560x11(null,_0xa560x14)})[_0xa0c6[25]](function(_0xa560x13){_0xa560x11(_0xa560x13)})};AGISquare[_0xa0c6[24]][_0xa0c6[17]]= function(_0xa560x17){logger[_0xa0c6[40]](util[_0xa0c6[39]](_0xa0c6[35],_0xa560x17[_0xa0c6[29]][_0xa0c6[34]],_0xa560x17[_0xa0c6[29]][_0xa0c6[36]],_0xa560x17[_0xa0c6[29]][_0xa0c6[37]],_0xa560x17[_0xa0c6[29]][_0xa0c6[38]],_0xa560x17[_0xa0c6[29]][_0xa0c6[33]]));logger[_0xa0c6[43]](_0xa0c6[41],JSON[_0xa0c6[42]](_0xa560x17[_0xa0c6[29]],null,2));var _0xa560x12=_[_0xa0c6[44]](this);_0xa560x12[_0xa0c6[30]]= _0xa560x17;_0xa560x12[_0xa0c6[45]]= _0xa560x12[_0xa0c6[47]][_0xa0c6[46]](_0xa560x12,_0xa560x12[_0xa0c6[30]][_0xa0c6[29]][_0xa0c6[34]]);if(_0xa560x12[_0xa0c6[45]]){if(_0xa560x12[_0xa0c6[45]][_0xa0c6[48]]){_0xa560x12[_0xa0c6[49]]= _0xa560x12[_0xa0c6[50]](_0xa560x12[_0xa0c6[45]][_0xa0c6[48]]);_0xa560x12[_0xa0c6[51]]=  new AGIVertices(_0xa560x12[_0xa0c6[30]],_0xa560x12[_0xa0c6[14]]);if(_0xa560x12[_0xa0c6[49]]&& _0xa560x12[_0xa0c6[49]][_0xa0c6[17]]){logger[_0xa0c6[43]](_0xa0c6[49],JSON[_0xa0c6[42]](_0xa560x12[_0xa0c6[49]],null,2));_0xa560x12[_0xa0c6[23]][_0xa0c6[46]](_0xa560x12);_0xa560x12[_0xa0c6[49]][_0xa0c6[17]][_0xa0c6[52]]= _0xa0c6[17];_0xa560x12[_0xa0c6[53]](_0xa560x12[_0xa0c6[49]][_0xa0c6[17]],false);_0xa560x12[_0xa0c6[31]][_0xa0c6[46]](_0xa560x12);if(_0xa560x12[_0xa0c6[49]][_0xa0c6[54]]){_0xa560x12[_0xa0c6[49]][_0xa0c6[54]][_0xa0c6[52]]= _0xa0c6[54];_0xa560x12[_0xa0c6[53]](_0xa560x12[_0xa0c6[49]][_0xa0c6[54]],true)};if(!_0xa560x12[_0xa0c6[30]][_0xa0c6[29]][_0xa0c6[55]]){_0xa560x12[_0xa0c6[30]][_0xa0c6[56]]()};_0xa560x12[_0xa0c6[30]][_0xa0c6[27]](_0xa0c6[57]);if(_0xa560x12){_0xa560x12= undefined}}}else {logger[_0xa0c6[59]](util[_0xa0c6[39]](_0xa0c6[58],_0xa560x17[_0xa0c6[29]][_0xa0c6[34]]));_0xa560x12[_0xa0c6[30]][_0xa0c6[27]](_0xa0c6[57])}}else {logger[_0xa0c6[59]](util[_0xa0c6[39]](_0xa0c6[60],_0xa560x17[_0xa0c6[29]][_0xa0c6[34]]));_0xa560x12[_0xa0c6[30]][_0xa0c6[27]](_0xa0c6[57])}};AGISquare[_0xa0c6[24]][_0xa0c6[53]]= function(_0xa560x18,_0xa560x19){this[_0xa0c6[61]]= _0xa560x18;while(this[_0xa0c6[61]]){process[_0xa0c6[65]]({message:_0xa0c6[62],doc:{application:this[_0xa0c6[61]][_0xa0c6[52]],uniqueid:this[_0xa0c6[30]][_0xa0c6[29]][_0xa0c6[33]],queue:this[_0xa0c6[61]][_0xa0c6[52]]=== _0xa0c6[63]?this[_0xa0c6[61]][_0xa0c6[64]]:undefined}});this[_0xa0c6[61]]= this[_0xa0c6[51]][_0xa0c6[66]](this[_0xa0c6[61]]);logger[_0xa0c6[43]](this[_0xa0c6[30]][_0xa0c6[29]][_0xa0c6[33]],_0xa0c6[67],JSON[_0xa0c6[42]](this[_0xa0c6[61]],null,2));var _0xa560x14=this[_0xa0c6[51]][this[_0xa0c6[61]][_0xa0c6[52]]](this[_0xa0c6[61]]);logger[_0xa0c6[43]](this[_0xa0c6[30]][_0xa0c6[29]][_0xa0c6[33]],_0xa0c6[68],this[_0xa0c6[61]][_0xa0c6[52]],this[_0xa0c6[61]][_0xa0c6[69]],JSON[_0xa0c6[42]](_0xa560x14,null,2));if(!_0xa560x19){if(_0xa560x14[_0xa0c6[70]]=== 200&& _0xa560x14[_0xa0c6[68]]!== _0xa0c6[71]){this[_0xa0c6[61]]= this[_0xa0c6[72]](_0xa560x14)}else {this[_0xa0c6[61]]= null}}else {this[_0xa0c6[61]]= this[_0xa0c6[72]](_0xa560x14)}}};AGISquare[_0xa0c6[24]][_0xa0c6[72]]= function(_0xa560x1a){var _0xa560x1b=this[_0xa0c6[73]](_0xa560x1a);if(_0xa560x1b){for(var _0xa560x1c in this[_0xa0c6[49]]){if(this[_0xa0c6[49]][_0xa0c6[74]](_0xa560x1c)){if(_0xa560x1c!== _0xa0c6[75]){if(_[_0xa0c6[76]](this[_0xa0c6[49]][_0xa560x1c])){for(var _0xa560x1d in this[_0xa0c6[49]][_0xa560x1c]){if(this[_0xa0c6[49]][_0xa560x1c][_0xa0c6[74]](_0xa560x1d)){if(this[_0xa0c6[49]][_0xa560x1c][_0xa560x1d][_0xa0c6[69]]=== _0xa560x1b[_0xa0c6[77]]){this[_0xa0c6[49]][_0xa560x1c][_0xa560x1d][_0xa0c6[52]]= _0xa560x1c;return this[_0xa0c6[49]][_0xa560x1c][_0xa560x1d]}}}}else {if(this[_0xa0c6[49]][_0xa560x1c][_0xa0c6[69]]=== _0xa560x1b[_0xa0c6[77]]){this[_0xa0c6[49]][_0xa560x1c][_0xa0c6[52]]= _0xa560x1c;return this[_0xa0c6[49]][_0xa560x1c]}}}}}}else {logger[_0xa0c6[40]](_0xa0c6[78],this[_0xa0c6[61]][_0xa0c6[52]],this[_0xa0c6[61]][_0xa0c6[69]],this[_0xa0c6[61]][_0xa0c6[79]],_0xa560x1a[_0xa0c6[68]]);if(_[_0xa0c6[80]](verticesWithRetry,this[_0xa0c6[61]][_0xa0c6[52]])){if(_0xa560x1a[_0xa0c6[68]]!== _0xa0c6[81]){logger[_0xa0c6[40]](_0xa0c6[82],this[_0xa0c6[61]][_0xa0c6[52]],this[_0xa0c6[61]][_0xa0c6[69]],this[_0xa0c6[61]][_0xa0c6[79]],_0xa560x1a[_0xa0c6[68]]=== _0xa0c6[83]?_0xa0c6[84]:_0xa0c6[85],_0xa560x1a[_0xa0c6[68]]);return this[_0xa0c6[61]]}}};return null};AGISquare[_0xa0c6[24]][_0xa0c6[73]]= function(_0xa560x1a){var _0xa560x12=this;var _0xa560x1e=false;var _0xa560x1f=_[_0xa0c6[86]](this[_0xa0c6[49]][_0xa0c6[75]],{"\x73\x6F\x75\x72\x63\x65":_0xa560x12[_0xa0c6[61]][_0xa0c6[69]]});_0xa560x1e= _[_0xa0c6[91]](_0xa560x1f,function(_0xa560x1b){if(_0xa560x1b[_0xa0c6[74]](_0xa0c6[87])){var _0xa560x20=_0xa560x1b[_0xa0c6[87]][_0xa0c6[89]](_0xa0c6[88]);for(var _0xa560x15=0;_0xa560x15< _0xa560x20[_0xa0c6[32]];_0xa560x15+= 1){if(_0xa560x20[_0xa560x15]=== _0xa560x1a[_0xa0c6[68]]|| _0xa560x20[_0xa560x15]=== _0xa560x1a[_0xa0c6[90]]){return true}}}});if(_0xa560x1e){return _0xa560x1e};if(_0xa560x1a[_0xa0c6[68]]!== _0xa0c6[81]&& _0xa560x1a[_0xa0c6[68]]!== _0xa0c6[83]){_0xa560x1e= _[_0xa0c6[91]](_0xa560x1f,function(_0xa560x1b){if(_0xa560x1b[_0xa0c6[74]](_0xa0c6[87])){var _0xa560x20=_0xa560x1b[_0xa0c6[87]][_0xa0c6[89]](_0xa0c6[88]);for(var _0xa560x21=0;_0xa560x21< _0xa560x20[_0xa0c6[32]];_0xa560x21+= 1){if(_0xa560x20[_0xa560x21]=== _0xa0c6[92]){return true};if(_0xa560x20[_0xa560x21]=== _0xa0c6[81]&& _0xa560x12[_0xa0c6[61]][_0xa0c6[52]]=== _0xa0c6[93]){return true}}}});if(_0xa560x1e){return _0xa560x1e}};if(!_[_0xa0c6[80]](verticesWithRetry,_0xa560x12[_0xa0c6[61]][_0xa0c6[52]])&& _0xa560x12[_0xa0c6[61]][_0xa0c6[52]]!== _0xa0c6[93]){_0xa560x1e= _[_0xa0c6[94]](_0xa560x1f)};return _0xa560x1e};AGISquare[_0xa0c6[24]][_0xa0c6[47]]= function(_0xa560x22,_0xa560x11){this[_0xa0c6[14]][_0xa0c6[47]](_0xa560x22)[_0xa0c6[28]](function(_0xa560x14){_0xa560x11(null,_0xa560x14)})[_0xa0c6[25]](function(_0xa560x13){_0xa560x11(_0xa560x13)})};AGISquare[_0xa0c6[24]][_0xa0c6[50]]= function(_0xa560x23){return parser[_0xa0c6[96]](_0xa560x23,{object:true})[_0xa0c6[95]][_0xa0c6[49]]};module[_0xa0c6[97]]= AGISquare
\ No newline at end of file