Built motion from commit 3ce3c0a0a.|1.0.27
[motion.git] / server / config / agi / lib / square.js
index dbef465..5983bab 100644 (file)
@@ -1 +1 @@
-var _0xc042=["\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"];_0xc042[0];var fs=require(_0xc042[1]);var parser=require(_0xc042[2]);var _=require(_0xc042[3]);var util=require(_0xc042[4]);var redis=require(_0xc042[5]);var logger=require(_0xc042[7])(_0xc042[6]);var config=require(_0xc042[8]);var AGIServer=require(_0xc042[9]);var AGIVertices=require(_0xc042[10]);var verticesWithRetry=[_0xc042[11],_0xc042[12],_0xc042[13]];var AGISquare=function(_0x393fxc,_0x393fxd,_0x393fxe){this[_0xc042[14]]= _0x393fxe;this[_0xc042[15]]=  new AGIServer(this[_0xc042[17]][_0xc042[16]](this),_0x393fxc,_0x393fxd);var _0x393fxf;if(config[_0xc042[18]]){_0x393fxf= {password:config[_0xc042[18]]}};var _0x393fx10=redis[_0xc042[20]](6379,config[_0xc042[19]],_0x393fxf);this[_0xc042[21]]= require(_0xc042[22])(_0x393fx10)};AGISquare[_0xc042[24]][_0xc042[23]]= function(_0x393fx11){var _0x393fx12=this;this[_0xc042[14]][_0xc042[23]](this[_0xc042[30]][_0xc042[29]])[_0xc042[28]](function(_0x393fx14){_0x393fx12[_0xc042[21]][_0xc042[27]](_0xc042[26],_0x393fx14);_0x393fx11(null,_0x393fx14)})[_0xc042[25]](function(_0x393fx13){_0x393fx11(_0x393fx13)})};AGISquare[_0xc042[24]][_0xc042[31]]= function(_0x393fx11){var _0x393fx12=this;this[_0xc042[14]][_0xc042[31]](this[_0xc042[30]][_0xc042[29]][_0xc042[33]],this[_0xc042[30]][_0xc042[29]][_0xc042[34]])[_0xc042[28]](function(_0x393fx14){if(_0x393fx14[_0xc042[32]]> 1){for(var _0x393fx15=0;_0x393fx15< _0x393fx14[1][_0xc042[32]];_0x393fx15++){var _0x393fx16=_0x393fx14[1][_0x393fx15];_0x393fx12[_0xc042[21]][_0xc042[27]](_0xc042[26],_0x393fx16)}};_0x393fx11(null,_0x393fx14)})[_0xc042[25]](function(_0x393fx13){_0x393fx11(_0x393fx13)})};AGISquare[_0xc042[24]][_0xc042[17]]= function(_0x393fx17){logger[_0xc042[40]](util[_0xc042[39]](_0xc042[35],_0x393fx17[_0xc042[29]][_0xc042[34]],_0x393fx17[_0xc042[29]][_0xc042[36]],_0x393fx17[_0xc042[29]][_0xc042[37]],_0x393fx17[_0xc042[29]][_0xc042[38]],_0x393fx17[_0xc042[29]][_0xc042[33]]));logger[_0xc042[43]](_0xc042[41],JSON[_0xc042[42]](_0x393fx17[_0xc042[29]],null,2));var _0x393fx12=_[_0xc042[44]](this);_0x393fx12[_0xc042[30]]= _0x393fx17;_0x393fx12[_0xc042[45]]= _0x393fx12[_0xc042[47]][_0xc042[46]](_0x393fx12,_0x393fx12[_0xc042[30]][_0xc042[29]][_0xc042[34]]);if(_0x393fx12[_0xc042[45]]){if(_0x393fx12[_0xc042[45]][_0xc042[48]]){_0x393fx12[_0xc042[49]]= _0x393fx12[_0xc042[50]](_0x393fx12[_0xc042[45]][_0xc042[48]]);_0x393fx12[_0xc042[51]]=  new AGIVertices(_0x393fx12[_0xc042[30]],_0x393fx12[_0xc042[14]]);if(_0x393fx12[_0xc042[49]]&& _0x393fx12[_0xc042[49]][_0xc042[17]]){logger[_0xc042[43]](_0xc042[49],JSON[_0xc042[42]](_0x393fx12[_0xc042[49]],null,2));_0x393fx12[_0xc042[23]][_0xc042[46]](_0x393fx12);_0x393fx12[_0xc042[49]][_0xc042[17]][_0xc042[52]]= _0xc042[17];_0x393fx12[_0xc042[53]](_0x393fx12[_0xc042[49]][_0xc042[17]],false);_0x393fx12[_0xc042[31]][_0xc042[46]](_0x393fx12);if(_0x393fx12[_0xc042[49]][_0xc042[54]]){_0x393fx12[_0xc042[49]][_0xc042[54]][_0xc042[52]]= _0xc042[54];_0x393fx12[_0xc042[53]](_0x393fx12[_0xc042[49]][_0xc042[54]],true)};if(!_0x393fx12[_0xc042[30]][_0xc042[29]][_0xc042[55]]){_0x393fx12[_0xc042[30]][_0xc042[56]]()};_0x393fx12[_0xc042[30]][_0xc042[27]](_0xc042[57]);if(_0x393fx12){_0x393fx12= undefined}}}else {logger[_0xc042[59]](util[_0xc042[39]](_0xc042[58],_0x393fx17[_0xc042[29]][_0xc042[34]]));_0x393fx12[_0xc042[30]][_0xc042[27]](_0xc042[57])}}else {logger[_0xc042[59]](util[_0xc042[39]](_0xc042[60],_0x393fx17[_0xc042[29]][_0xc042[34]]));_0x393fx12[_0xc042[30]][_0xc042[27]](_0xc042[57])}};AGISquare[_0xc042[24]][_0xc042[53]]= function(_0x393fx18,_0x393fx19){this[_0xc042[61]]= _0x393fx18;while(this[_0xc042[61]]){process[_0xc042[65]]({message:_0xc042[62],doc:{application:this[_0xc042[61]][_0xc042[52]],uniqueid:this[_0xc042[30]][_0xc042[29]][_0xc042[33]],queue:this[_0xc042[61]][_0xc042[52]]=== _0xc042[63]?this[_0xc042[61]][_0xc042[64]]:undefined}});this[_0xc042[61]]= this[_0xc042[51]][_0xc042[66]](this[_0xc042[61]]);logger[_0xc042[43]](this[_0xc042[30]][_0xc042[29]][_0xc042[33]],_0xc042[67],JSON[_0xc042[42]](this[_0xc042[61]],null,2));var _0x393fx14=this[_0xc042[51]][this[_0xc042[61]][_0xc042[52]]](this[_0xc042[61]]);logger[_0xc042[43]](this[_0xc042[30]][_0xc042[29]][_0xc042[33]],_0xc042[68],this[_0xc042[61]][_0xc042[52]],this[_0xc042[61]][_0xc042[69]],JSON[_0xc042[42]](_0x393fx14,null,2));if(!_0x393fx19){if(_0x393fx14[_0xc042[70]]=== 200&& _0x393fx14[_0xc042[68]]!== _0xc042[71]){this[_0xc042[61]]= this[_0xc042[72]](_0x393fx14)}else {this[_0xc042[61]]= null}}else {this[_0xc042[61]]= this[_0xc042[72]](_0x393fx14)}}};AGISquare[_0xc042[24]][_0xc042[72]]= function(_0x393fx1a){var _0x393fx1b=this[_0xc042[73]](_0x393fx1a);if(_0x393fx1b){for(var _0x393fx1c in this[_0xc042[49]]){if(this[_0xc042[49]][_0xc042[74]](_0x393fx1c)){if(_0x393fx1c!== _0xc042[75]){if(_[_0xc042[76]](this[_0xc042[49]][_0x393fx1c])){for(var _0x393fx1d in this[_0xc042[49]][_0x393fx1c]){if(this[_0xc042[49]][_0x393fx1c][_0xc042[74]](_0x393fx1d)){if(this[_0xc042[49]][_0x393fx1c][_0x393fx1d][_0xc042[69]]=== _0x393fx1b[_0xc042[77]]){this[_0xc042[49]][_0x393fx1c][_0x393fx1d][_0xc042[52]]= _0x393fx1c;return this[_0xc042[49]][_0x393fx1c][_0x393fx1d]}}}}else {if(this[_0xc042[49]][_0x393fx1c][_0xc042[69]]=== _0x393fx1b[_0xc042[77]]){this[_0xc042[49]][_0x393fx1c][_0xc042[52]]= _0x393fx1c;return this[_0xc042[49]][_0x393fx1c]}}}}}}else {logger[_0xc042[40]](_0xc042[78],this[_0xc042[61]][_0xc042[52]],this[_0xc042[61]][_0xc042[69]],this[_0xc042[61]][_0xc042[79]],_0x393fx1a[_0xc042[68]]);if(_[_0xc042[80]](verticesWithRetry,this[_0xc042[61]][_0xc042[52]])){if(_0x393fx1a[_0xc042[68]]!== _0xc042[81]){logger[_0xc042[40]](_0xc042[82],this[_0xc042[61]][_0xc042[52]],this[_0xc042[61]][_0xc042[69]],this[_0xc042[61]][_0xc042[79]],_0x393fx1a[_0xc042[68]]=== _0xc042[83]?_0xc042[84]:_0xc042[85],_0x393fx1a[_0xc042[68]]);return this[_0xc042[61]]}}};return null};AGISquare[_0xc042[24]][_0xc042[73]]= function(_0x393fx1a){var _0x393fx12=this;var _0x393fx1e=false;var _0x393fx1f=_[_0xc042[86]](this[_0xc042[49]][_0xc042[75]],{"\x73\x6F\x75\x72\x63\x65":_0x393fx12[_0xc042[61]][_0xc042[69]]});_0x393fx1e= _[_0xc042[91]](_0x393fx1f,function(_0x393fx1b){if(_0x393fx1b[_0xc042[74]](_0xc042[87])){var _0x393fx20=_0x393fx1b[_0xc042[87]][_0xc042[89]](_0xc042[88]);for(var _0x393fx15=0;_0x393fx15< _0x393fx20[_0xc042[32]];_0x393fx15+= 1){if(_0x393fx20[_0x393fx15]=== _0x393fx1a[_0xc042[68]]|| _0x393fx20[_0x393fx15]=== _0x393fx1a[_0xc042[90]]){return true}}}});if(_0x393fx1e){return _0x393fx1e};if(_0x393fx1a[_0xc042[68]]!== _0xc042[81]&& _0x393fx1a[_0xc042[68]]!== _0xc042[83]){_0x393fx1e= _[_0xc042[91]](_0x393fx1f,function(_0x393fx1b){if(_0x393fx1b[_0xc042[74]](_0xc042[87])){var _0x393fx20=_0x393fx1b[_0xc042[87]][_0xc042[89]](_0xc042[88]);for(var _0x393fx21=0;_0x393fx21< _0x393fx20[_0xc042[32]];_0x393fx21+= 1){if(_0x393fx20[_0x393fx21]=== _0xc042[92]){return true};if(_0x393fx20[_0x393fx21]=== _0xc042[81]&& _0x393fx12[_0xc042[61]][_0xc042[52]]=== _0xc042[93]){return true}}}});if(_0x393fx1e){return _0x393fx1e}};if(!_[_0xc042[80]](verticesWithRetry,_0x393fx12[_0xc042[61]][_0xc042[52]])&& _0x393fx12[_0xc042[61]][_0xc042[52]]!== _0xc042[93]){_0x393fx1e= _[_0xc042[94]](_0x393fx1f)};return _0x393fx1e};AGISquare[_0xc042[24]][_0xc042[47]]= function(_0x393fx22,_0x393fx11){this[_0xc042[14]][_0xc042[47]](_0x393fx22)[_0xc042[28]](function(_0x393fx14){_0x393fx11(null,_0x393fx14)})[_0xc042[25]](function(_0x393fx13){_0x393fx11(_0x393fx13)})};AGISquare[_0xc042[24]][_0xc042[50]]= function(_0x393fx23){return parser[_0xc042[96]](_0x393fx23,{object:true})[_0xc042[95]][_0xc042[49]]};module[_0xc042[97]]= AGISquare
\ No newline at end of file
+var _0xaab6=["\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"];_0xaab6[0];var fs=require(_0xaab6[1]);var parser=require(_0xaab6[2]);var _=require(_0xaab6[3]);var util=require(_0xaab6[4]);var redis=require(_0xaab6[5]);var logger=require(_0xaab6[7])(_0xaab6[6]);var config=require(_0xaab6[8]);var AGIServer=require(_0xaab6[9]);var AGIVertices=require(_0xaab6[10]);var verticesWithRetry=[_0xaab6[11],_0xaab6[12],_0xaab6[13]];var AGISquare=function(_0xfa12xc,_0xfa12xd,_0xfa12xe){this[_0xaab6[14]]= _0xfa12xe;this[_0xaab6[15]]=  new AGIServer(this[_0xaab6[17]][_0xaab6[16]](this),_0xfa12xc,_0xfa12xd);var _0xfa12xf;if(config[_0xaab6[18]]){_0xfa12xf= {password:config[_0xaab6[18]]}};var _0xfa12x10=redis[_0xaab6[20]](6379,config[_0xaab6[19]],_0xfa12xf);this[_0xaab6[21]]= require(_0xaab6[22])(_0xfa12x10)};AGISquare[_0xaab6[24]][_0xaab6[23]]= function(_0xfa12x11){var _0xfa12x12=this;this[_0xaab6[14]][_0xaab6[23]](this[_0xaab6[30]][_0xaab6[29]])[_0xaab6[28]](function(_0xfa12x14){_0xfa12x12[_0xaab6[21]][_0xaab6[27]](_0xaab6[26],_0xfa12x14);_0xfa12x11(null,_0xfa12x14)})[_0xaab6[25]](function(_0xfa12x13){_0xfa12x11(_0xfa12x13)})};AGISquare[_0xaab6[24]][_0xaab6[31]]= function(_0xfa12x11){var _0xfa12x12=this;this[_0xaab6[14]][_0xaab6[31]](this[_0xaab6[30]][_0xaab6[29]][_0xaab6[33]],this[_0xaab6[30]][_0xaab6[29]][_0xaab6[34]])[_0xaab6[28]](function(_0xfa12x14){if(_0xfa12x14[_0xaab6[32]]> 1){for(var _0xfa12x15=0;_0xfa12x15< _0xfa12x14[1][_0xaab6[32]];_0xfa12x15++){var _0xfa12x16=_0xfa12x14[1][_0xfa12x15];_0xfa12x12[_0xaab6[21]][_0xaab6[27]](_0xaab6[26],_0xfa12x16)}};_0xfa12x11(null,_0xfa12x14)})[_0xaab6[25]](function(_0xfa12x13){_0xfa12x11(_0xfa12x13)})};AGISquare[_0xaab6[24]][_0xaab6[17]]= function(_0xfa12x17){logger[_0xaab6[40]](util[_0xaab6[39]](_0xaab6[35],_0xfa12x17[_0xaab6[29]][_0xaab6[34]],_0xfa12x17[_0xaab6[29]][_0xaab6[36]],_0xfa12x17[_0xaab6[29]][_0xaab6[37]],_0xfa12x17[_0xaab6[29]][_0xaab6[38]],_0xfa12x17[_0xaab6[29]][_0xaab6[33]]));logger[_0xaab6[43]](_0xaab6[41],JSON[_0xaab6[42]](_0xfa12x17[_0xaab6[29]],null,2));var _0xfa12x12=_[_0xaab6[44]](this);_0xfa12x12[_0xaab6[30]]= _0xfa12x17;_0xfa12x12[_0xaab6[45]]= _0xfa12x12[_0xaab6[47]][_0xaab6[46]](_0xfa12x12,_0xfa12x12[_0xaab6[30]][_0xaab6[29]][_0xaab6[34]]);if(_0xfa12x12[_0xaab6[45]]){if(_0xfa12x12[_0xaab6[45]][_0xaab6[48]]){_0xfa12x12[_0xaab6[49]]= _0xfa12x12[_0xaab6[50]](_0xfa12x12[_0xaab6[45]][_0xaab6[48]]);_0xfa12x12[_0xaab6[51]]=  new AGIVertices(_0xfa12x12[_0xaab6[30]],_0xfa12x12[_0xaab6[14]]);if(_0xfa12x12[_0xaab6[49]]&& _0xfa12x12[_0xaab6[49]][_0xaab6[17]]){logger[_0xaab6[43]](_0xaab6[49],JSON[_0xaab6[42]](_0xfa12x12[_0xaab6[49]],null,2));_0xfa12x12[_0xaab6[23]][_0xaab6[46]](_0xfa12x12);_0xfa12x12[_0xaab6[49]][_0xaab6[17]][_0xaab6[52]]= _0xaab6[17];_0xfa12x12[_0xaab6[53]](_0xfa12x12[_0xaab6[49]][_0xaab6[17]],false);_0xfa12x12[_0xaab6[31]][_0xaab6[46]](_0xfa12x12);if(_0xfa12x12[_0xaab6[49]][_0xaab6[54]]){_0xfa12x12[_0xaab6[49]][_0xaab6[54]][_0xaab6[52]]= _0xaab6[54];_0xfa12x12[_0xaab6[53]](_0xfa12x12[_0xaab6[49]][_0xaab6[54]],true)};if(!_0xfa12x12[_0xaab6[30]][_0xaab6[29]][_0xaab6[55]]){_0xfa12x12[_0xaab6[30]][_0xaab6[56]]()};_0xfa12x12[_0xaab6[30]][_0xaab6[27]](_0xaab6[57]);if(_0xfa12x12){_0xfa12x12= undefined}}}else {logger[_0xaab6[59]](util[_0xaab6[39]](_0xaab6[58],_0xfa12x17[_0xaab6[29]][_0xaab6[34]]));_0xfa12x12[_0xaab6[30]][_0xaab6[27]](_0xaab6[57])}}else {logger[_0xaab6[59]](util[_0xaab6[39]](_0xaab6[60],_0xfa12x17[_0xaab6[29]][_0xaab6[34]]));_0xfa12x12[_0xaab6[30]][_0xaab6[27]](_0xaab6[57])}};AGISquare[_0xaab6[24]][_0xaab6[53]]= function(_0xfa12x18,_0xfa12x19){this[_0xaab6[61]]= _0xfa12x18;while(this[_0xaab6[61]]){process[_0xaab6[65]]({message:_0xaab6[62],doc:{application:this[_0xaab6[61]][_0xaab6[52]],uniqueid:this[_0xaab6[30]][_0xaab6[29]][_0xaab6[33]],queue:this[_0xaab6[61]][_0xaab6[52]]=== _0xaab6[63]?this[_0xaab6[61]][_0xaab6[64]]:undefined}});this[_0xaab6[61]]= this[_0xaab6[51]][_0xaab6[66]](this[_0xaab6[61]]);logger[_0xaab6[43]](this[_0xaab6[30]][_0xaab6[29]][_0xaab6[33]],_0xaab6[67],JSON[_0xaab6[42]](this[_0xaab6[61]],null,2));var _0xfa12x14=this[_0xaab6[51]][this[_0xaab6[61]][_0xaab6[52]]](this[_0xaab6[61]]);logger[_0xaab6[43]](this[_0xaab6[30]][_0xaab6[29]][_0xaab6[33]],_0xaab6[68],this[_0xaab6[61]][_0xaab6[52]],this[_0xaab6[61]][_0xaab6[69]],JSON[_0xaab6[42]](_0xfa12x14,null,2));if(!_0xfa12x19){if(_0xfa12x14[_0xaab6[70]]=== 200&& _0xfa12x14[_0xaab6[68]]!== _0xaab6[71]){this[_0xaab6[61]]= this[_0xaab6[72]](_0xfa12x14)}else {this[_0xaab6[61]]= null}}else {this[_0xaab6[61]]= this[_0xaab6[72]](_0xfa12x14)}}};AGISquare[_0xaab6[24]][_0xaab6[72]]= function(_0xfa12x1a){var _0xfa12x1b=this[_0xaab6[73]](_0xfa12x1a);if(_0xfa12x1b){for(var _0xfa12x1c in this[_0xaab6[49]]){if(this[_0xaab6[49]][_0xaab6[74]](_0xfa12x1c)){if(_0xfa12x1c!== _0xaab6[75]){if(_[_0xaab6[76]](this[_0xaab6[49]][_0xfa12x1c])){for(var _0xfa12x1d in this[_0xaab6[49]][_0xfa12x1c]){if(this[_0xaab6[49]][_0xfa12x1c][_0xaab6[74]](_0xfa12x1d)){if(this[_0xaab6[49]][_0xfa12x1c][_0xfa12x1d][_0xaab6[69]]=== _0xfa12x1b[_0xaab6[77]]){this[_0xaab6[49]][_0xfa12x1c][_0xfa12x1d][_0xaab6[52]]= _0xfa12x1c;return this[_0xaab6[49]][_0xfa12x1c][_0xfa12x1d]}}}}else {if(this[_0xaab6[49]][_0xfa12x1c][_0xaab6[69]]=== _0xfa12x1b[_0xaab6[77]]){this[_0xaab6[49]][_0xfa12x1c][_0xaab6[52]]= _0xfa12x1c;return this[_0xaab6[49]][_0xfa12x1c]}}}}}}else {logger[_0xaab6[40]](_0xaab6[78],this[_0xaab6[61]][_0xaab6[52]],this[_0xaab6[61]][_0xaab6[69]],this[_0xaab6[61]][_0xaab6[79]],_0xfa12x1a[_0xaab6[68]]);if(_[_0xaab6[80]](verticesWithRetry,this[_0xaab6[61]][_0xaab6[52]])){if(_0xfa12x1a[_0xaab6[68]]!== _0xaab6[81]){logger[_0xaab6[40]](_0xaab6[82],this[_0xaab6[61]][_0xaab6[52]],this[_0xaab6[61]][_0xaab6[69]],this[_0xaab6[61]][_0xaab6[79]],_0xfa12x1a[_0xaab6[68]]=== _0xaab6[83]?_0xaab6[84]:_0xaab6[85],_0xfa12x1a[_0xaab6[68]]);return this[_0xaab6[61]]}}};return null};AGISquare[_0xaab6[24]][_0xaab6[73]]= function(_0xfa12x1a){var _0xfa12x12=this;var _0xfa12x1e=false;var _0xfa12x1f=_[_0xaab6[86]](this[_0xaab6[49]][_0xaab6[75]],{"\x73\x6F\x75\x72\x63\x65":_0xfa12x12[_0xaab6[61]][_0xaab6[69]]});_0xfa12x1e= _[_0xaab6[91]](_0xfa12x1f,function(_0xfa12x1b){if(_0xfa12x1b[_0xaab6[74]](_0xaab6[87])){var _0xfa12x20=_0xfa12x1b[_0xaab6[87]][_0xaab6[89]](_0xaab6[88]);for(var _0xfa12x15=0;_0xfa12x15< _0xfa12x20[_0xaab6[32]];_0xfa12x15+= 1){if(_0xfa12x20[_0xfa12x15]=== _0xfa12x1a[_0xaab6[68]]|| _0xfa12x20[_0xfa12x15]=== _0xfa12x1a[_0xaab6[90]]){return true}}}});if(_0xfa12x1e){return _0xfa12x1e};if(_0xfa12x1a[_0xaab6[68]]!== _0xaab6[81]&& _0xfa12x1a[_0xaab6[68]]!== _0xaab6[83]){_0xfa12x1e= _[_0xaab6[91]](_0xfa12x1f,function(_0xfa12x1b){if(_0xfa12x1b[_0xaab6[74]](_0xaab6[87])){var _0xfa12x20=_0xfa12x1b[_0xaab6[87]][_0xaab6[89]](_0xaab6[88]);for(var _0xfa12x21=0;_0xfa12x21< _0xfa12x20[_0xaab6[32]];_0xfa12x21+= 1){if(_0xfa12x20[_0xfa12x21]=== _0xaab6[92]){return true};if(_0xfa12x20[_0xfa12x21]=== _0xaab6[81]&& _0xfa12x12[_0xaab6[61]][_0xaab6[52]]=== _0xaab6[93]){return true}}}});if(_0xfa12x1e){return _0xfa12x1e}};if(!_[_0xaab6[80]](verticesWithRetry,_0xfa12x12[_0xaab6[61]][_0xaab6[52]])&& _0xfa12x12[_0xaab6[61]][_0xaab6[52]]!== _0xaab6[93]){_0xfa12x1e= _[_0xaab6[94]](_0xfa12x1f)};return _0xfa12x1e};AGISquare[_0xaab6[24]][_0xaab6[47]]= function(_0xfa12x22,_0xfa12x11){this[_0xaab6[14]][_0xaab6[47]](_0xfa12x22)[_0xaab6[28]](function(_0xfa12x14){_0xfa12x11(null,_0xfa12x14)})[_0xaab6[25]](function(_0xfa12x13){_0xfa12x11(_0xfa12x13)})};AGISquare[_0xaab6[24]][_0xaab6[50]]= function(_0xfa12x23){return parser[_0xaab6[96]](_0xfa12x23,{object:true})[_0xaab6[95]][_0xaab6[49]]};module[_0xaab6[97]]= AGISquare
\ No newline at end of file