Built motion from commit eeb7beacd.|1.0.21
[motion.git] / server / config / agi / lib / square.js
index c668831..0565b70 100644 (file)
@@ -1 +1 @@
-var _0xa9da=["\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"];_0xa9da[0];var fs=require(_0xa9da[1]);var parser=require(_0xa9da[2]);var _=require(_0xa9da[3]);var util=require(_0xa9da[4]);var redis=require(_0xa9da[5]);var logger=require(_0xa9da[7])(_0xa9da[6]);var config=require(_0xa9da[8]);var AGIServer=require(_0xa9da[9]);var AGIVertices=require(_0xa9da[10]);var verticesWithRetry=[_0xa9da[11],_0xa9da[12],_0xa9da[13]];var AGISquare=function(_0x49c6xc,_0x49c6xd,_0x49c6xe){this[_0xa9da[14]]= _0x49c6xe;this[_0xa9da[15]]=  new AGIServer(this[_0xa9da[17]][_0xa9da[16]](this),_0x49c6xc,_0x49c6xd);var _0x49c6xf;if(config[_0xa9da[18]]){_0x49c6xf= {password:config[_0xa9da[18]]}};var _0x49c6x10=redis[_0xa9da[20]](6379,config[_0xa9da[19]],_0x49c6xf);this[_0xa9da[21]]= require(_0xa9da[22])(_0x49c6x10)};AGISquare[_0xa9da[24]][_0xa9da[23]]= function(_0x49c6x11){var _0x49c6x12=this;this[_0xa9da[14]][_0xa9da[23]](this[_0xa9da[30]][_0xa9da[29]])[_0xa9da[28]](function(_0x49c6x14){_0x49c6x12[_0xa9da[21]][_0xa9da[27]](_0xa9da[26],_0x49c6x14);_0x49c6x11(null,_0x49c6x14)})[_0xa9da[25]](function(_0x49c6x13){_0x49c6x11(_0x49c6x13)})};AGISquare[_0xa9da[24]][_0xa9da[31]]= function(_0x49c6x11){var _0x49c6x12=this;this[_0xa9da[14]][_0xa9da[31]](this[_0xa9da[30]][_0xa9da[29]][_0xa9da[33]],this[_0xa9da[30]][_0xa9da[29]][_0xa9da[34]])[_0xa9da[28]](function(_0x49c6x14){if(_0x49c6x14[_0xa9da[32]]> 1){for(var _0x49c6x15=0;_0x49c6x15< _0x49c6x14[1][_0xa9da[32]];_0x49c6x15++){var _0x49c6x16=_0x49c6x14[1][_0x49c6x15];_0x49c6x12[_0xa9da[21]][_0xa9da[27]](_0xa9da[26],_0x49c6x16)}};_0x49c6x11(null,_0x49c6x14)})[_0xa9da[25]](function(_0x49c6x13){_0x49c6x11(_0x49c6x13)})};AGISquare[_0xa9da[24]][_0xa9da[17]]= function(_0x49c6x17){logger[_0xa9da[40]](util[_0xa9da[39]](_0xa9da[35],_0x49c6x17[_0xa9da[29]][_0xa9da[34]],_0x49c6x17[_0xa9da[29]][_0xa9da[36]],_0x49c6x17[_0xa9da[29]][_0xa9da[37]],_0x49c6x17[_0xa9da[29]][_0xa9da[38]],_0x49c6x17[_0xa9da[29]][_0xa9da[33]]));logger[_0xa9da[43]](_0xa9da[41],JSON[_0xa9da[42]](_0x49c6x17[_0xa9da[29]],null,2));var _0x49c6x12=_[_0xa9da[44]](this);_0x49c6x12[_0xa9da[30]]= _0x49c6x17;_0x49c6x12[_0xa9da[45]]= _0x49c6x12[_0xa9da[47]][_0xa9da[46]](_0x49c6x12,_0x49c6x12[_0xa9da[30]][_0xa9da[29]][_0xa9da[34]]);if(_0x49c6x12[_0xa9da[45]]){if(_0x49c6x12[_0xa9da[45]][_0xa9da[48]]){_0x49c6x12[_0xa9da[49]]= _0x49c6x12[_0xa9da[50]](_0x49c6x12[_0xa9da[45]][_0xa9da[48]]);_0x49c6x12[_0xa9da[51]]=  new AGIVertices(_0x49c6x12[_0xa9da[30]],_0x49c6x12[_0xa9da[14]]);if(_0x49c6x12[_0xa9da[49]]&& _0x49c6x12[_0xa9da[49]][_0xa9da[17]]){logger[_0xa9da[43]](_0xa9da[49],JSON[_0xa9da[42]](_0x49c6x12[_0xa9da[49]],null,2));_0x49c6x12[_0xa9da[23]][_0xa9da[46]](_0x49c6x12);_0x49c6x12[_0xa9da[49]][_0xa9da[17]][_0xa9da[52]]= _0xa9da[17];_0x49c6x12[_0xa9da[53]](_0x49c6x12[_0xa9da[49]][_0xa9da[17]],false);_0x49c6x12[_0xa9da[31]][_0xa9da[46]](_0x49c6x12);if(_0x49c6x12[_0xa9da[49]][_0xa9da[54]]){_0x49c6x12[_0xa9da[49]][_0xa9da[54]][_0xa9da[52]]= _0xa9da[54];_0x49c6x12[_0xa9da[53]](_0x49c6x12[_0xa9da[49]][_0xa9da[54]],true)};if(!_0x49c6x12[_0xa9da[30]][_0xa9da[29]][_0xa9da[55]]){_0x49c6x12[_0xa9da[30]][_0xa9da[56]]()};_0x49c6x12[_0xa9da[30]][_0xa9da[27]](_0xa9da[57]);if(_0x49c6x12){_0x49c6x12= undefined}}}else {logger[_0xa9da[59]](util[_0xa9da[39]](_0xa9da[58],_0x49c6x17[_0xa9da[29]][_0xa9da[34]]));_0x49c6x12[_0xa9da[30]][_0xa9da[27]](_0xa9da[57])}}else {logger[_0xa9da[59]](util[_0xa9da[39]](_0xa9da[60],_0x49c6x17[_0xa9da[29]][_0xa9da[34]]));_0x49c6x12[_0xa9da[30]][_0xa9da[27]](_0xa9da[57])}};AGISquare[_0xa9da[24]][_0xa9da[53]]= function(_0x49c6x18,_0x49c6x19){this[_0xa9da[61]]= _0x49c6x18;while(this[_0xa9da[61]]){process[_0xa9da[65]]({message:_0xa9da[62],doc:{application:this[_0xa9da[61]][_0xa9da[52]],uniqueid:this[_0xa9da[30]][_0xa9da[29]][_0xa9da[33]],queue:this[_0xa9da[61]][_0xa9da[52]]=== _0xa9da[63]?this[_0xa9da[61]][_0xa9da[64]]:undefined}});this[_0xa9da[61]]= this[_0xa9da[51]][_0xa9da[66]](this[_0xa9da[61]]);logger[_0xa9da[43]](this[_0xa9da[30]][_0xa9da[29]][_0xa9da[33]],_0xa9da[67],JSON[_0xa9da[42]](this[_0xa9da[61]],null,2));var _0x49c6x14=this[_0xa9da[51]][this[_0xa9da[61]][_0xa9da[52]]](this[_0xa9da[61]]);logger[_0xa9da[43]](this[_0xa9da[30]][_0xa9da[29]][_0xa9da[33]],_0xa9da[68],this[_0xa9da[61]][_0xa9da[52]],this[_0xa9da[61]][_0xa9da[69]],JSON[_0xa9da[42]](_0x49c6x14,null,2));if(!_0x49c6x19){if(_0x49c6x14[_0xa9da[70]]=== 200&& _0x49c6x14[_0xa9da[68]]!== _0xa9da[71]){this[_0xa9da[61]]= this[_0xa9da[72]](_0x49c6x14)}else {this[_0xa9da[61]]= null}}else {this[_0xa9da[61]]= this[_0xa9da[72]](_0x49c6x14)}}};AGISquare[_0xa9da[24]][_0xa9da[72]]= function(_0x49c6x1a){var _0x49c6x1b=this[_0xa9da[73]](_0x49c6x1a);if(_0x49c6x1b){for(var _0x49c6x1c in this[_0xa9da[49]]){if(this[_0xa9da[49]][_0xa9da[74]](_0x49c6x1c)){if(_0x49c6x1c!== _0xa9da[75]){if(_[_0xa9da[76]](this[_0xa9da[49]][_0x49c6x1c])){for(var _0x49c6x1d in this[_0xa9da[49]][_0x49c6x1c]){if(this[_0xa9da[49]][_0x49c6x1c][_0xa9da[74]](_0x49c6x1d)){if(this[_0xa9da[49]][_0x49c6x1c][_0x49c6x1d][_0xa9da[69]]=== _0x49c6x1b[_0xa9da[77]]){this[_0xa9da[49]][_0x49c6x1c][_0x49c6x1d][_0xa9da[52]]= _0x49c6x1c;return this[_0xa9da[49]][_0x49c6x1c][_0x49c6x1d]}}}}else {if(this[_0xa9da[49]][_0x49c6x1c][_0xa9da[69]]=== _0x49c6x1b[_0xa9da[77]]){this[_0xa9da[49]][_0x49c6x1c][_0xa9da[52]]= _0x49c6x1c;return this[_0xa9da[49]][_0x49c6x1c]}}}}}}else {logger[_0xa9da[40]](_0xa9da[78],this[_0xa9da[61]][_0xa9da[52]],this[_0xa9da[61]][_0xa9da[69]],this[_0xa9da[61]][_0xa9da[79]],_0x49c6x1a[_0xa9da[68]]);if(_[_0xa9da[80]](verticesWithRetry,this[_0xa9da[61]][_0xa9da[52]])){if(_0x49c6x1a[_0xa9da[68]]!== _0xa9da[81]){logger[_0xa9da[40]](_0xa9da[82],this[_0xa9da[61]][_0xa9da[52]],this[_0xa9da[61]][_0xa9da[69]],this[_0xa9da[61]][_0xa9da[79]],_0x49c6x1a[_0xa9da[68]]=== _0xa9da[83]?_0xa9da[84]:_0xa9da[85],_0x49c6x1a[_0xa9da[68]]);return this[_0xa9da[61]]}}};return null};AGISquare[_0xa9da[24]][_0xa9da[73]]= function(_0x49c6x1a){var _0x49c6x12=this;var _0x49c6x1e=false;var _0x49c6x1f=_[_0xa9da[86]](this[_0xa9da[49]][_0xa9da[75]],{"\x73\x6F\x75\x72\x63\x65":_0x49c6x12[_0xa9da[61]][_0xa9da[69]]});_0x49c6x1e= _[_0xa9da[91]](_0x49c6x1f,function(_0x49c6x1b){if(_0x49c6x1b[_0xa9da[74]](_0xa9da[87])){var _0x49c6x20=_0x49c6x1b[_0xa9da[87]][_0xa9da[89]](_0xa9da[88]);for(var _0x49c6x15=0;_0x49c6x15< _0x49c6x20[_0xa9da[32]];_0x49c6x15+= 1){if(_0x49c6x20[_0x49c6x15]=== _0x49c6x1a[_0xa9da[68]]|| _0x49c6x20[_0x49c6x15]=== _0x49c6x1a[_0xa9da[90]]){return true}}}});if(_0x49c6x1e){return _0x49c6x1e};if(_0x49c6x1a[_0xa9da[68]]!== _0xa9da[81]&& _0x49c6x1a[_0xa9da[68]]!== _0xa9da[83]){_0x49c6x1e= _[_0xa9da[91]](_0x49c6x1f,function(_0x49c6x1b){if(_0x49c6x1b[_0xa9da[74]](_0xa9da[87])){var _0x49c6x20=_0x49c6x1b[_0xa9da[87]][_0xa9da[89]](_0xa9da[88]);for(var _0x49c6x21=0;_0x49c6x21< _0x49c6x20[_0xa9da[32]];_0x49c6x21+= 1){if(_0x49c6x20[_0x49c6x21]=== _0xa9da[92]){return true};if(_0x49c6x20[_0x49c6x21]=== _0xa9da[81]&& _0x49c6x12[_0xa9da[61]][_0xa9da[52]]=== _0xa9da[93]){return true}}}});if(_0x49c6x1e){return _0x49c6x1e}};if(!_[_0xa9da[80]](verticesWithRetry,_0x49c6x12[_0xa9da[61]][_0xa9da[52]])&& _0x49c6x12[_0xa9da[61]][_0xa9da[52]]!== _0xa9da[93]){_0x49c6x1e= _[_0xa9da[94]](_0x49c6x1f)};return _0x49c6x1e};AGISquare[_0xa9da[24]][_0xa9da[47]]= function(_0x49c6x22,_0x49c6x11){this[_0xa9da[14]][_0xa9da[47]](_0x49c6x22)[_0xa9da[28]](function(_0x49c6x14){_0x49c6x11(null,_0x49c6x14)})[_0xa9da[25]](function(_0x49c6x13){_0x49c6x11(_0x49c6x13)})};AGISquare[_0xa9da[24]][_0xa9da[50]]= function(_0x49c6x23){return parser[_0xa9da[96]](_0x49c6x23,{object:true})[_0xa9da[95]][_0xa9da[49]]};module[_0xa9da[97]]= AGISquare
\ No newline at end of file
+var _0xbb86=["\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"];_0xbb86[0];var fs=require(_0xbb86[1]);var parser=require(_0xbb86[2]);var _=require(_0xbb86[3]);var util=require(_0xbb86[4]);var redis=require(_0xbb86[5]);var logger=require(_0xbb86[7])(_0xbb86[6]);var config=require(_0xbb86[8]);var AGIServer=require(_0xbb86[9]);var AGIVertices=require(_0xbb86[10]);var verticesWithRetry=[_0xbb86[11],_0xbb86[12],_0xbb86[13]];var AGISquare=function(_0xff45xc,_0xff45xd,_0xff45xe){this[_0xbb86[14]]= _0xff45xe;this[_0xbb86[15]]=  new AGIServer(this[_0xbb86[17]][_0xbb86[16]](this),_0xff45xc,_0xff45xd);var _0xff45xf;if(config[_0xbb86[18]]){_0xff45xf= {password:config[_0xbb86[18]]}};var _0xff45x10=redis[_0xbb86[20]](6379,config[_0xbb86[19]],_0xff45xf);this[_0xbb86[21]]= require(_0xbb86[22])(_0xff45x10)};AGISquare[_0xbb86[24]][_0xbb86[23]]= function(_0xff45x11){var _0xff45x12=this;this[_0xbb86[14]][_0xbb86[23]](this[_0xbb86[30]][_0xbb86[29]])[_0xbb86[28]](function(_0xff45x14){_0xff45x12[_0xbb86[21]][_0xbb86[27]](_0xbb86[26],_0xff45x14);_0xff45x11(null,_0xff45x14)})[_0xbb86[25]](function(_0xff45x13){_0xff45x11(_0xff45x13)})};AGISquare[_0xbb86[24]][_0xbb86[31]]= function(_0xff45x11){var _0xff45x12=this;this[_0xbb86[14]][_0xbb86[31]](this[_0xbb86[30]][_0xbb86[29]][_0xbb86[33]],this[_0xbb86[30]][_0xbb86[29]][_0xbb86[34]])[_0xbb86[28]](function(_0xff45x14){if(_0xff45x14[_0xbb86[32]]> 1){for(var _0xff45x15=0;_0xff45x15< _0xff45x14[1][_0xbb86[32]];_0xff45x15++){var _0xff45x16=_0xff45x14[1][_0xff45x15];_0xff45x12[_0xbb86[21]][_0xbb86[27]](_0xbb86[26],_0xff45x16)}};_0xff45x11(null,_0xff45x14)})[_0xbb86[25]](function(_0xff45x13){_0xff45x11(_0xff45x13)})};AGISquare[_0xbb86[24]][_0xbb86[17]]= function(_0xff45x17){logger[_0xbb86[40]](util[_0xbb86[39]](_0xbb86[35],_0xff45x17[_0xbb86[29]][_0xbb86[34]],_0xff45x17[_0xbb86[29]][_0xbb86[36]],_0xff45x17[_0xbb86[29]][_0xbb86[37]],_0xff45x17[_0xbb86[29]][_0xbb86[38]],_0xff45x17[_0xbb86[29]][_0xbb86[33]]));logger[_0xbb86[43]](_0xbb86[41],JSON[_0xbb86[42]](_0xff45x17[_0xbb86[29]],null,2));var _0xff45x12=_[_0xbb86[44]](this);_0xff45x12[_0xbb86[30]]= _0xff45x17;_0xff45x12[_0xbb86[45]]= _0xff45x12[_0xbb86[47]][_0xbb86[46]](_0xff45x12,_0xff45x12[_0xbb86[30]][_0xbb86[29]][_0xbb86[34]]);if(_0xff45x12[_0xbb86[45]]){if(_0xff45x12[_0xbb86[45]][_0xbb86[48]]){_0xff45x12[_0xbb86[49]]= _0xff45x12[_0xbb86[50]](_0xff45x12[_0xbb86[45]][_0xbb86[48]]);_0xff45x12[_0xbb86[51]]=  new AGIVertices(_0xff45x12[_0xbb86[30]],_0xff45x12[_0xbb86[14]]);if(_0xff45x12[_0xbb86[49]]&& _0xff45x12[_0xbb86[49]][_0xbb86[17]]){logger[_0xbb86[43]](_0xbb86[49],JSON[_0xbb86[42]](_0xff45x12[_0xbb86[49]],null,2));_0xff45x12[_0xbb86[23]][_0xbb86[46]](_0xff45x12);_0xff45x12[_0xbb86[49]][_0xbb86[17]][_0xbb86[52]]= _0xbb86[17];_0xff45x12[_0xbb86[53]](_0xff45x12[_0xbb86[49]][_0xbb86[17]],false);_0xff45x12[_0xbb86[31]][_0xbb86[46]](_0xff45x12);if(_0xff45x12[_0xbb86[49]][_0xbb86[54]]){_0xff45x12[_0xbb86[49]][_0xbb86[54]][_0xbb86[52]]= _0xbb86[54];_0xff45x12[_0xbb86[53]](_0xff45x12[_0xbb86[49]][_0xbb86[54]],true)};if(!_0xff45x12[_0xbb86[30]][_0xbb86[29]][_0xbb86[55]]){_0xff45x12[_0xbb86[30]][_0xbb86[56]]()};_0xff45x12[_0xbb86[30]][_0xbb86[27]](_0xbb86[57]);if(_0xff45x12){_0xff45x12= undefined}}}else {logger[_0xbb86[59]](util[_0xbb86[39]](_0xbb86[58],_0xff45x17[_0xbb86[29]][_0xbb86[34]]));_0xff45x12[_0xbb86[30]][_0xbb86[27]](_0xbb86[57])}}else {logger[_0xbb86[59]](util[_0xbb86[39]](_0xbb86[60],_0xff45x17[_0xbb86[29]][_0xbb86[34]]));_0xff45x12[_0xbb86[30]][_0xbb86[27]](_0xbb86[57])}};AGISquare[_0xbb86[24]][_0xbb86[53]]= function(_0xff45x18,_0xff45x19){this[_0xbb86[61]]= _0xff45x18;while(this[_0xbb86[61]]){process[_0xbb86[65]]({message:_0xbb86[62],doc:{application:this[_0xbb86[61]][_0xbb86[52]],uniqueid:this[_0xbb86[30]][_0xbb86[29]][_0xbb86[33]],queue:this[_0xbb86[61]][_0xbb86[52]]=== _0xbb86[63]?this[_0xbb86[61]][_0xbb86[64]]:undefined}});this[_0xbb86[61]]= this[_0xbb86[51]][_0xbb86[66]](this[_0xbb86[61]]);logger[_0xbb86[43]](this[_0xbb86[30]][_0xbb86[29]][_0xbb86[33]],_0xbb86[67],JSON[_0xbb86[42]](this[_0xbb86[61]],null,2));var _0xff45x14=this[_0xbb86[51]][this[_0xbb86[61]][_0xbb86[52]]](this[_0xbb86[61]]);logger[_0xbb86[43]](this[_0xbb86[30]][_0xbb86[29]][_0xbb86[33]],_0xbb86[68],this[_0xbb86[61]][_0xbb86[52]],this[_0xbb86[61]][_0xbb86[69]],JSON[_0xbb86[42]](_0xff45x14,null,2));if(!_0xff45x19){if(_0xff45x14[_0xbb86[70]]=== 200&& _0xff45x14[_0xbb86[68]]!== _0xbb86[71]){this[_0xbb86[61]]= this[_0xbb86[72]](_0xff45x14)}else {this[_0xbb86[61]]= null}}else {this[_0xbb86[61]]= this[_0xbb86[72]](_0xff45x14)}}};AGISquare[_0xbb86[24]][_0xbb86[72]]= function(_0xff45x1a){var _0xff45x1b=this[_0xbb86[73]](_0xff45x1a);if(_0xff45x1b){for(var _0xff45x1c in this[_0xbb86[49]]){if(this[_0xbb86[49]][_0xbb86[74]](_0xff45x1c)){if(_0xff45x1c!== _0xbb86[75]){if(_[_0xbb86[76]](this[_0xbb86[49]][_0xff45x1c])){for(var _0xff45x1d in this[_0xbb86[49]][_0xff45x1c]){if(this[_0xbb86[49]][_0xff45x1c][_0xbb86[74]](_0xff45x1d)){if(this[_0xbb86[49]][_0xff45x1c][_0xff45x1d][_0xbb86[69]]=== _0xff45x1b[_0xbb86[77]]){this[_0xbb86[49]][_0xff45x1c][_0xff45x1d][_0xbb86[52]]= _0xff45x1c;return this[_0xbb86[49]][_0xff45x1c][_0xff45x1d]}}}}else {if(this[_0xbb86[49]][_0xff45x1c][_0xbb86[69]]=== _0xff45x1b[_0xbb86[77]]){this[_0xbb86[49]][_0xff45x1c][_0xbb86[52]]= _0xff45x1c;return this[_0xbb86[49]][_0xff45x1c]}}}}}}else {logger[_0xbb86[40]](_0xbb86[78],this[_0xbb86[61]][_0xbb86[52]],this[_0xbb86[61]][_0xbb86[69]],this[_0xbb86[61]][_0xbb86[79]],_0xff45x1a[_0xbb86[68]]);if(_[_0xbb86[80]](verticesWithRetry,this[_0xbb86[61]][_0xbb86[52]])){if(_0xff45x1a[_0xbb86[68]]!== _0xbb86[81]){logger[_0xbb86[40]](_0xbb86[82],this[_0xbb86[61]][_0xbb86[52]],this[_0xbb86[61]][_0xbb86[69]],this[_0xbb86[61]][_0xbb86[79]],_0xff45x1a[_0xbb86[68]]=== _0xbb86[83]?_0xbb86[84]:_0xbb86[85],_0xff45x1a[_0xbb86[68]]);return this[_0xbb86[61]]}}};return null};AGISquare[_0xbb86[24]][_0xbb86[73]]= function(_0xff45x1a){var _0xff45x12=this;var _0xff45x1e=false;var _0xff45x1f=_[_0xbb86[86]](this[_0xbb86[49]][_0xbb86[75]],{"\x73\x6F\x75\x72\x63\x65":_0xff45x12[_0xbb86[61]][_0xbb86[69]]});_0xff45x1e= _[_0xbb86[91]](_0xff45x1f,function(_0xff45x1b){if(_0xff45x1b[_0xbb86[74]](_0xbb86[87])){var _0xff45x20=_0xff45x1b[_0xbb86[87]][_0xbb86[89]](_0xbb86[88]);for(var _0xff45x15=0;_0xff45x15< _0xff45x20[_0xbb86[32]];_0xff45x15+= 1){if(_0xff45x20[_0xff45x15]=== _0xff45x1a[_0xbb86[68]]|| _0xff45x20[_0xff45x15]=== _0xff45x1a[_0xbb86[90]]){return true}}}});if(_0xff45x1e){return _0xff45x1e};if(_0xff45x1a[_0xbb86[68]]!== _0xbb86[81]&& _0xff45x1a[_0xbb86[68]]!== _0xbb86[83]){_0xff45x1e= _[_0xbb86[91]](_0xff45x1f,function(_0xff45x1b){if(_0xff45x1b[_0xbb86[74]](_0xbb86[87])){var _0xff45x20=_0xff45x1b[_0xbb86[87]][_0xbb86[89]](_0xbb86[88]);for(var _0xff45x21=0;_0xff45x21< _0xff45x20[_0xbb86[32]];_0xff45x21+= 1){if(_0xff45x20[_0xff45x21]=== _0xbb86[92]){return true};if(_0xff45x20[_0xff45x21]=== _0xbb86[81]&& _0xff45x12[_0xbb86[61]][_0xbb86[52]]=== _0xbb86[93]){return true}}}});if(_0xff45x1e){return _0xff45x1e}};if(!_[_0xbb86[80]](verticesWithRetry,_0xff45x12[_0xbb86[61]][_0xbb86[52]])&& _0xff45x12[_0xbb86[61]][_0xbb86[52]]!== _0xbb86[93]){_0xff45x1e= _[_0xbb86[94]](_0xff45x1f)};return _0xff45x1e};AGISquare[_0xbb86[24]][_0xbb86[47]]= function(_0xff45x22,_0xff45x11){this[_0xbb86[14]][_0xbb86[47]](_0xff45x22)[_0xbb86[28]](function(_0xff45x14){_0xff45x11(null,_0xff45x14)})[_0xbb86[25]](function(_0xff45x13){_0xff45x11(_0xff45x13)})};AGISquare[_0xbb86[24]][_0xbb86[50]]= function(_0xff45x23){return parser[_0xbb86[96]](_0xff45x23,{object:true})[_0xbb86[95]][_0xbb86[49]]};module[_0xbb86[97]]= AGISquare
\ No newline at end of file