Built motion from commit 15a6d846f.|1.0.20
[motion.git] / server / config / agi / lib / square.js
index 9aa9f72..93ed754 100644 (file)
@@ -1 +1 @@
-var _0xe2dc=["\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"];_0xe2dc[0];var fs=require(_0xe2dc[1]);var parser=require(_0xe2dc[2]);var _=require(_0xe2dc[3]);var util=require(_0xe2dc[4]);var redis=require(_0xe2dc[5]);var logger=require(_0xe2dc[7])(_0xe2dc[6]);var config=require(_0xe2dc[8]);var AGIServer=require(_0xe2dc[9]);var AGIVertices=require(_0xe2dc[10]);var verticesWithRetry=[_0xe2dc[11],_0xe2dc[12],_0xe2dc[13]];var AGISquare=function(_0xb31cxc,_0xb31cxd,_0xb31cxe){this[_0xe2dc[14]]= _0xb31cxe;this[_0xe2dc[15]]=  new AGIServer(this[_0xe2dc[17]][_0xe2dc[16]](this),_0xb31cxc,_0xb31cxd);var _0xb31cxf;if(config[_0xe2dc[18]]){_0xb31cxf= {password:config[_0xe2dc[18]]}};var _0xb31cx10=redis[_0xe2dc[20]](6379,config[_0xe2dc[19]],_0xb31cxf);this[_0xe2dc[21]]= require(_0xe2dc[22])(_0xb31cx10)};AGISquare[_0xe2dc[24]][_0xe2dc[23]]= function(_0xb31cx11){var _0xb31cx12=this;this[_0xe2dc[14]][_0xe2dc[23]](this[_0xe2dc[30]][_0xe2dc[29]])[_0xe2dc[28]](function(_0xb31cx14){_0xb31cx12[_0xe2dc[21]][_0xe2dc[27]](_0xe2dc[26],_0xb31cx14);_0xb31cx11(null,_0xb31cx14)})[_0xe2dc[25]](function(_0xb31cx13){_0xb31cx11(_0xb31cx13)})};AGISquare[_0xe2dc[24]][_0xe2dc[31]]= function(_0xb31cx11){var _0xb31cx12=this;this[_0xe2dc[14]][_0xe2dc[31]](this[_0xe2dc[30]][_0xe2dc[29]][_0xe2dc[33]],this[_0xe2dc[30]][_0xe2dc[29]][_0xe2dc[34]])[_0xe2dc[28]](function(_0xb31cx14){if(_0xb31cx14[_0xe2dc[32]]> 1){for(var _0xb31cx15=0;_0xb31cx15< _0xb31cx14[1][_0xe2dc[32]];_0xb31cx15++){var _0xb31cx16=_0xb31cx14[1][_0xb31cx15];_0xb31cx12[_0xe2dc[21]][_0xe2dc[27]](_0xe2dc[26],_0xb31cx16)}};_0xb31cx11(null,_0xb31cx14)})[_0xe2dc[25]](function(_0xb31cx13){_0xb31cx11(_0xb31cx13)})};AGISquare[_0xe2dc[24]][_0xe2dc[17]]= function(_0xb31cx17){logger[_0xe2dc[40]](util[_0xe2dc[39]](_0xe2dc[35],_0xb31cx17[_0xe2dc[29]][_0xe2dc[34]],_0xb31cx17[_0xe2dc[29]][_0xe2dc[36]],_0xb31cx17[_0xe2dc[29]][_0xe2dc[37]],_0xb31cx17[_0xe2dc[29]][_0xe2dc[38]],_0xb31cx17[_0xe2dc[29]][_0xe2dc[33]]));logger[_0xe2dc[43]](_0xe2dc[41],JSON[_0xe2dc[42]](_0xb31cx17[_0xe2dc[29]],null,2));var _0xb31cx12=_[_0xe2dc[44]](this);_0xb31cx12[_0xe2dc[30]]= _0xb31cx17;_0xb31cx12[_0xe2dc[45]]= _0xb31cx12[_0xe2dc[47]][_0xe2dc[46]](_0xb31cx12,_0xb31cx12[_0xe2dc[30]][_0xe2dc[29]][_0xe2dc[34]]);if(_0xb31cx12[_0xe2dc[45]]){if(_0xb31cx12[_0xe2dc[45]][_0xe2dc[48]]){_0xb31cx12[_0xe2dc[49]]= _0xb31cx12[_0xe2dc[50]](_0xb31cx12[_0xe2dc[45]][_0xe2dc[48]]);_0xb31cx12[_0xe2dc[51]]=  new AGIVertices(_0xb31cx12[_0xe2dc[30]],_0xb31cx12[_0xe2dc[14]]);if(_0xb31cx12[_0xe2dc[49]]&& _0xb31cx12[_0xe2dc[49]][_0xe2dc[17]]){logger[_0xe2dc[43]](_0xe2dc[49],JSON[_0xe2dc[42]](_0xb31cx12[_0xe2dc[49]],null,2));_0xb31cx12[_0xe2dc[23]][_0xe2dc[46]](_0xb31cx12);_0xb31cx12[_0xe2dc[49]][_0xe2dc[17]][_0xe2dc[52]]= _0xe2dc[17];_0xb31cx12[_0xe2dc[53]](_0xb31cx12[_0xe2dc[49]][_0xe2dc[17]],false);_0xb31cx12[_0xe2dc[31]][_0xe2dc[46]](_0xb31cx12);if(_0xb31cx12[_0xe2dc[49]][_0xe2dc[54]]){_0xb31cx12[_0xe2dc[49]][_0xe2dc[54]][_0xe2dc[52]]= _0xe2dc[54];_0xb31cx12[_0xe2dc[53]](_0xb31cx12[_0xe2dc[49]][_0xe2dc[54]],true)};if(!_0xb31cx12[_0xe2dc[30]][_0xe2dc[29]][_0xe2dc[55]]){_0xb31cx12[_0xe2dc[30]][_0xe2dc[56]]()};_0xb31cx12[_0xe2dc[30]][_0xe2dc[27]](_0xe2dc[57]);if(_0xb31cx12){_0xb31cx12= undefined}}}else {logger[_0xe2dc[59]](util[_0xe2dc[39]](_0xe2dc[58],_0xb31cx17[_0xe2dc[29]][_0xe2dc[34]]));_0xb31cx12[_0xe2dc[30]][_0xe2dc[27]](_0xe2dc[57])}}else {logger[_0xe2dc[59]](util[_0xe2dc[39]](_0xe2dc[60],_0xb31cx17[_0xe2dc[29]][_0xe2dc[34]]));_0xb31cx12[_0xe2dc[30]][_0xe2dc[27]](_0xe2dc[57])}};AGISquare[_0xe2dc[24]][_0xe2dc[53]]= function(_0xb31cx18,_0xb31cx19){this[_0xe2dc[61]]= _0xb31cx18;while(this[_0xe2dc[61]]){process[_0xe2dc[65]]({message:_0xe2dc[62],doc:{application:this[_0xe2dc[61]][_0xe2dc[52]],uniqueid:this[_0xe2dc[30]][_0xe2dc[29]][_0xe2dc[33]],queue:this[_0xe2dc[61]][_0xe2dc[52]]=== _0xe2dc[63]?this[_0xe2dc[61]][_0xe2dc[64]]:undefined}});this[_0xe2dc[61]]= this[_0xe2dc[51]][_0xe2dc[66]](this[_0xe2dc[61]]);logger[_0xe2dc[43]](this[_0xe2dc[30]][_0xe2dc[29]][_0xe2dc[33]],_0xe2dc[67],JSON[_0xe2dc[42]](this[_0xe2dc[61]],null,2));var _0xb31cx14=this[_0xe2dc[51]][this[_0xe2dc[61]][_0xe2dc[52]]](this[_0xe2dc[61]]);logger[_0xe2dc[43]](this[_0xe2dc[30]][_0xe2dc[29]][_0xe2dc[33]],_0xe2dc[68],this[_0xe2dc[61]][_0xe2dc[52]],this[_0xe2dc[61]][_0xe2dc[69]],JSON[_0xe2dc[42]](_0xb31cx14,null,2));if(!_0xb31cx19){if(_0xb31cx14[_0xe2dc[70]]=== 200&& _0xb31cx14[_0xe2dc[68]]!== _0xe2dc[71]){this[_0xe2dc[61]]= this[_0xe2dc[72]](_0xb31cx14)}else {this[_0xe2dc[61]]= null}}else {this[_0xe2dc[61]]= this[_0xe2dc[72]](_0xb31cx14)}}};AGISquare[_0xe2dc[24]][_0xe2dc[72]]= function(_0xb31cx1a){var _0xb31cx1b=this[_0xe2dc[73]](_0xb31cx1a);if(_0xb31cx1b){for(var _0xb31cx1c in this[_0xe2dc[49]]){if(this[_0xe2dc[49]][_0xe2dc[74]](_0xb31cx1c)){if(_0xb31cx1c!== _0xe2dc[75]){if(_[_0xe2dc[76]](this[_0xe2dc[49]][_0xb31cx1c])){for(var _0xb31cx1d in this[_0xe2dc[49]][_0xb31cx1c]){if(this[_0xe2dc[49]][_0xb31cx1c][_0xe2dc[74]](_0xb31cx1d)){if(this[_0xe2dc[49]][_0xb31cx1c][_0xb31cx1d][_0xe2dc[69]]=== _0xb31cx1b[_0xe2dc[77]]){this[_0xe2dc[49]][_0xb31cx1c][_0xb31cx1d][_0xe2dc[52]]= _0xb31cx1c;return this[_0xe2dc[49]][_0xb31cx1c][_0xb31cx1d]}}}}else {if(this[_0xe2dc[49]][_0xb31cx1c][_0xe2dc[69]]=== _0xb31cx1b[_0xe2dc[77]]){this[_0xe2dc[49]][_0xb31cx1c][_0xe2dc[52]]= _0xb31cx1c;return this[_0xe2dc[49]][_0xb31cx1c]}}}}}}else {logger[_0xe2dc[40]](_0xe2dc[78],this[_0xe2dc[61]][_0xe2dc[52]],this[_0xe2dc[61]][_0xe2dc[69]],this[_0xe2dc[61]][_0xe2dc[79]],_0xb31cx1a[_0xe2dc[68]]);if(_[_0xe2dc[80]](verticesWithRetry,this[_0xe2dc[61]][_0xe2dc[52]])){if(_0xb31cx1a[_0xe2dc[68]]!== _0xe2dc[81]){logger[_0xe2dc[40]](_0xe2dc[82],this[_0xe2dc[61]][_0xe2dc[52]],this[_0xe2dc[61]][_0xe2dc[69]],this[_0xe2dc[61]][_0xe2dc[79]],_0xb31cx1a[_0xe2dc[68]]=== _0xe2dc[83]?_0xe2dc[84]:_0xe2dc[85],_0xb31cx1a[_0xe2dc[68]]);return this[_0xe2dc[61]]}}};return null};AGISquare[_0xe2dc[24]][_0xe2dc[73]]= function(_0xb31cx1a){var _0xb31cx12=this;var _0xb31cx1e=false;var _0xb31cx1f=_[_0xe2dc[86]](this[_0xe2dc[49]][_0xe2dc[75]],{"\x73\x6F\x75\x72\x63\x65":_0xb31cx12[_0xe2dc[61]][_0xe2dc[69]]});_0xb31cx1e= _[_0xe2dc[91]](_0xb31cx1f,function(_0xb31cx1b){if(_0xb31cx1b[_0xe2dc[74]](_0xe2dc[87])){var _0xb31cx20=_0xb31cx1b[_0xe2dc[87]][_0xe2dc[89]](_0xe2dc[88]);for(var _0xb31cx15=0;_0xb31cx15< _0xb31cx20[_0xe2dc[32]];_0xb31cx15+= 1){if(_0xb31cx20[_0xb31cx15]=== _0xb31cx1a[_0xe2dc[68]]|| _0xb31cx20[_0xb31cx15]=== _0xb31cx1a[_0xe2dc[90]]){return true}}}});if(_0xb31cx1e){return _0xb31cx1e};if(_0xb31cx1a[_0xe2dc[68]]!== _0xe2dc[81]&& _0xb31cx1a[_0xe2dc[68]]!== _0xe2dc[83]){_0xb31cx1e= _[_0xe2dc[91]](_0xb31cx1f,function(_0xb31cx1b){if(_0xb31cx1b[_0xe2dc[74]](_0xe2dc[87])){var _0xb31cx20=_0xb31cx1b[_0xe2dc[87]][_0xe2dc[89]](_0xe2dc[88]);for(var _0xb31cx21=0;_0xb31cx21< _0xb31cx20[_0xe2dc[32]];_0xb31cx21+= 1){if(_0xb31cx20[_0xb31cx21]=== _0xe2dc[92]){return true};if(_0xb31cx20[_0xb31cx21]=== _0xe2dc[81]&& _0xb31cx12[_0xe2dc[61]][_0xe2dc[52]]=== _0xe2dc[93]){return true}}}});if(_0xb31cx1e){return _0xb31cx1e}};if(!_[_0xe2dc[80]](verticesWithRetry,_0xb31cx12[_0xe2dc[61]][_0xe2dc[52]])&& _0xb31cx12[_0xe2dc[61]][_0xe2dc[52]]!== _0xe2dc[93]){_0xb31cx1e= _[_0xe2dc[94]](_0xb31cx1f)};return _0xb31cx1e};AGISquare[_0xe2dc[24]][_0xe2dc[47]]= function(_0xb31cx22,_0xb31cx11){this[_0xe2dc[14]][_0xe2dc[47]](_0xb31cx22)[_0xe2dc[28]](function(_0xb31cx14){_0xb31cx11(null,_0xb31cx14)})[_0xe2dc[25]](function(_0xb31cx13){_0xb31cx11(_0xb31cx13)})};AGISquare[_0xe2dc[24]][_0xe2dc[50]]= function(_0xb31cx23){return parser[_0xe2dc[96]](_0xb31cx23,{object:true})[_0xe2dc[95]][_0xe2dc[49]]};module[_0xe2dc[97]]= AGISquare
\ No newline at end of file
+var _0xe78c=["\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"];_0xe78c[0];var fs=require(_0xe78c[1]);var parser=require(_0xe78c[2]);var _=require(_0xe78c[3]);var util=require(_0xe78c[4]);var redis=require(_0xe78c[5]);var logger=require(_0xe78c[7])(_0xe78c[6]);var config=require(_0xe78c[8]);var AGIServer=require(_0xe78c[9]);var AGIVertices=require(_0xe78c[10]);var verticesWithRetry=[_0xe78c[11],_0xe78c[12],_0xe78c[13]];var AGISquare=function(_0x557cxc,_0x557cxd,_0x557cxe){this[_0xe78c[14]]= _0x557cxe;this[_0xe78c[15]]=  new AGIServer(this[_0xe78c[17]][_0xe78c[16]](this),_0x557cxc,_0x557cxd);var _0x557cxf;if(config[_0xe78c[18]]){_0x557cxf= {password:config[_0xe78c[18]]}};var _0x557cx10=redis[_0xe78c[20]](6379,config[_0xe78c[19]],_0x557cxf);this[_0xe78c[21]]= require(_0xe78c[22])(_0x557cx10)};AGISquare[_0xe78c[24]][_0xe78c[23]]= function(_0x557cx11){var _0x557cx12=this;this[_0xe78c[14]][_0xe78c[23]](this[_0xe78c[30]][_0xe78c[29]])[_0xe78c[28]](function(_0x557cx14){_0x557cx12[_0xe78c[21]][_0xe78c[27]](_0xe78c[26],_0x557cx14);_0x557cx11(null,_0x557cx14)})[_0xe78c[25]](function(_0x557cx13){_0x557cx11(_0x557cx13)})};AGISquare[_0xe78c[24]][_0xe78c[31]]= function(_0x557cx11){var _0x557cx12=this;this[_0xe78c[14]][_0xe78c[31]](this[_0xe78c[30]][_0xe78c[29]][_0xe78c[33]],this[_0xe78c[30]][_0xe78c[29]][_0xe78c[34]])[_0xe78c[28]](function(_0x557cx14){if(_0x557cx14[_0xe78c[32]]> 1){for(var _0x557cx15=0;_0x557cx15< _0x557cx14[1][_0xe78c[32]];_0x557cx15++){var _0x557cx16=_0x557cx14[1][_0x557cx15];_0x557cx12[_0xe78c[21]][_0xe78c[27]](_0xe78c[26],_0x557cx16)}};_0x557cx11(null,_0x557cx14)})[_0xe78c[25]](function(_0x557cx13){_0x557cx11(_0x557cx13)})};AGISquare[_0xe78c[24]][_0xe78c[17]]= function(_0x557cx17){logger[_0xe78c[40]](util[_0xe78c[39]](_0xe78c[35],_0x557cx17[_0xe78c[29]][_0xe78c[34]],_0x557cx17[_0xe78c[29]][_0xe78c[36]],_0x557cx17[_0xe78c[29]][_0xe78c[37]],_0x557cx17[_0xe78c[29]][_0xe78c[38]],_0x557cx17[_0xe78c[29]][_0xe78c[33]]));logger[_0xe78c[43]](_0xe78c[41],JSON[_0xe78c[42]](_0x557cx17[_0xe78c[29]],null,2));var _0x557cx12=_[_0xe78c[44]](this);_0x557cx12[_0xe78c[30]]= _0x557cx17;_0x557cx12[_0xe78c[45]]= _0x557cx12[_0xe78c[47]][_0xe78c[46]](_0x557cx12,_0x557cx12[_0xe78c[30]][_0xe78c[29]][_0xe78c[34]]);if(_0x557cx12[_0xe78c[45]]){if(_0x557cx12[_0xe78c[45]][_0xe78c[48]]){_0x557cx12[_0xe78c[49]]= _0x557cx12[_0xe78c[50]](_0x557cx12[_0xe78c[45]][_0xe78c[48]]);_0x557cx12[_0xe78c[51]]=  new AGIVertices(_0x557cx12[_0xe78c[30]],_0x557cx12[_0xe78c[14]]);if(_0x557cx12[_0xe78c[49]]&& _0x557cx12[_0xe78c[49]][_0xe78c[17]]){logger[_0xe78c[43]](_0xe78c[49],JSON[_0xe78c[42]](_0x557cx12[_0xe78c[49]],null,2));_0x557cx12[_0xe78c[23]][_0xe78c[46]](_0x557cx12);_0x557cx12[_0xe78c[49]][_0xe78c[17]][_0xe78c[52]]= _0xe78c[17];_0x557cx12[_0xe78c[53]](_0x557cx12[_0xe78c[49]][_0xe78c[17]],false);_0x557cx12[_0xe78c[31]][_0xe78c[46]](_0x557cx12);if(_0x557cx12[_0xe78c[49]][_0xe78c[54]]){_0x557cx12[_0xe78c[49]][_0xe78c[54]][_0xe78c[52]]= _0xe78c[54];_0x557cx12[_0xe78c[53]](_0x557cx12[_0xe78c[49]][_0xe78c[54]],true)};if(!_0x557cx12[_0xe78c[30]][_0xe78c[29]][_0xe78c[55]]){_0x557cx12[_0xe78c[30]][_0xe78c[56]]()};_0x557cx12[_0xe78c[30]][_0xe78c[27]](_0xe78c[57]);if(_0x557cx12){_0x557cx12= undefined}}}else {logger[_0xe78c[59]](util[_0xe78c[39]](_0xe78c[58],_0x557cx17[_0xe78c[29]][_0xe78c[34]]));_0x557cx12[_0xe78c[30]][_0xe78c[27]](_0xe78c[57])}}else {logger[_0xe78c[59]](util[_0xe78c[39]](_0xe78c[60],_0x557cx17[_0xe78c[29]][_0xe78c[34]]));_0x557cx12[_0xe78c[30]][_0xe78c[27]](_0xe78c[57])}};AGISquare[_0xe78c[24]][_0xe78c[53]]= function(_0x557cx18,_0x557cx19){this[_0xe78c[61]]= _0x557cx18;while(this[_0xe78c[61]]){process[_0xe78c[65]]({message:_0xe78c[62],doc:{application:this[_0xe78c[61]][_0xe78c[52]],uniqueid:this[_0xe78c[30]][_0xe78c[29]][_0xe78c[33]],queue:this[_0xe78c[61]][_0xe78c[52]]=== _0xe78c[63]?this[_0xe78c[61]][_0xe78c[64]]:undefined}});this[_0xe78c[61]]= this[_0xe78c[51]][_0xe78c[66]](this[_0xe78c[61]]);logger[_0xe78c[43]](this[_0xe78c[30]][_0xe78c[29]][_0xe78c[33]],_0xe78c[67],JSON[_0xe78c[42]](this[_0xe78c[61]],null,2));var _0x557cx14=this[_0xe78c[51]][this[_0xe78c[61]][_0xe78c[52]]](this[_0xe78c[61]]);logger[_0xe78c[43]](this[_0xe78c[30]][_0xe78c[29]][_0xe78c[33]],_0xe78c[68],this[_0xe78c[61]][_0xe78c[52]],this[_0xe78c[61]][_0xe78c[69]],JSON[_0xe78c[42]](_0x557cx14,null,2));if(!_0x557cx19){if(_0x557cx14[_0xe78c[70]]=== 200&& _0x557cx14[_0xe78c[68]]!== _0xe78c[71]){this[_0xe78c[61]]= this[_0xe78c[72]](_0x557cx14)}else {this[_0xe78c[61]]= null}}else {this[_0xe78c[61]]= this[_0xe78c[72]](_0x557cx14)}}};AGISquare[_0xe78c[24]][_0xe78c[72]]= function(_0x557cx1a){var _0x557cx1b=this[_0xe78c[73]](_0x557cx1a);if(_0x557cx1b){for(var _0x557cx1c in this[_0xe78c[49]]){if(this[_0xe78c[49]][_0xe78c[74]](_0x557cx1c)){if(_0x557cx1c!== _0xe78c[75]){if(_[_0xe78c[76]](this[_0xe78c[49]][_0x557cx1c])){for(var _0x557cx1d in this[_0xe78c[49]][_0x557cx1c]){if(this[_0xe78c[49]][_0x557cx1c][_0xe78c[74]](_0x557cx1d)){if(this[_0xe78c[49]][_0x557cx1c][_0x557cx1d][_0xe78c[69]]=== _0x557cx1b[_0xe78c[77]]){this[_0xe78c[49]][_0x557cx1c][_0x557cx1d][_0xe78c[52]]= _0x557cx1c;return this[_0xe78c[49]][_0x557cx1c][_0x557cx1d]}}}}else {if(this[_0xe78c[49]][_0x557cx1c][_0xe78c[69]]=== _0x557cx1b[_0xe78c[77]]){this[_0xe78c[49]][_0x557cx1c][_0xe78c[52]]= _0x557cx1c;return this[_0xe78c[49]][_0x557cx1c]}}}}}}else {logger[_0xe78c[40]](_0xe78c[78],this[_0xe78c[61]][_0xe78c[52]],this[_0xe78c[61]][_0xe78c[69]],this[_0xe78c[61]][_0xe78c[79]],_0x557cx1a[_0xe78c[68]]);if(_[_0xe78c[80]](verticesWithRetry,this[_0xe78c[61]][_0xe78c[52]])){if(_0x557cx1a[_0xe78c[68]]!== _0xe78c[81]){logger[_0xe78c[40]](_0xe78c[82],this[_0xe78c[61]][_0xe78c[52]],this[_0xe78c[61]][_0xe78c[69]],this[_0xe78c[61]][_0xe78c[79]],_0x557cx1a[_0xe78c[68]]=== _0xe78c[83]?_0xe78c[84]:_0xe78c[85],_0x557cx1a[_0xe78c[68]]);return this[_0xe78c[61]]}}};return null};AGISquare[_0xe78c[24]][_0xe78c[73]]= function(_0x557cx1a){var _0x557cx12=this;var _0x557cx1e=false;var _0x557cx1f=_[_0xe78c[86]](this[_0xe78c[49]][_0xe78c[75]],{"\x73\x6F\x75\x72\x63\x65":_0x557cx12[_0xe78c[61]][_0xe78c[69]]});_0x557cx1e= _[_0xe78c[91]](_0x557cx1f,function(_0x557cx1b){if(_0x557cx1b[_0xe78c[74]](_0xe78c[87])){var _0x557cx20=_0x557cx1b[_0xe78c[87]][_0xe78c[89]](_0xe78c[88]);for(var _0x557cx15=0;_0x557cx15< _0x557cx20[_0xe78c[32]];_0x557cx15+= 1){if(_0x557cx20[_0x557cx15]=== _0x557cx1a[_0xe78c[68]]|| _0x557cx20[_0x557cx15]=== _0x557cx1a[_0xe78c[90]]){return true}}}});if(_0x557cx1e){return _0x557cx1e};if(_0x557cx1a[_0xe78c[68]]!== _0xe78c[81]&& _0x557cx1a[_0xe78c[68]]!== _0xe78c[83]){_0x557cx1e= _[_0xe78c[91]](_0x557cx1f,function(_0x557cx1b){if(_0x557cx1b[_0xe78c[74]](_0xe78c[87])){var _0x557cx20=_0x557cx1b[_0xe78c[87]][_0xe78c[89]](_0xe78c[88]);for(var _0x557cx21=0;_0x557cx21< _0x557cx20[_0xe78c[32]];_0x557cx21+= 1){if(_0x557cx20[_0x557cx21]=== _0xe78c[92]){return true};if(_0x557cx20[_0x557cx21]=== _0xe78c[81]&& _0x557cx12[_0xe78c[61]][_0xe78c[52]]=== _0xe78c[93]){return true}}}});if(_0x557cx1e){return _0x557cx1e}};if(!_[_0xe78c[80]](verticesWithRetry,_0x557cx12[_0xe78c[61]][_0xe78c[52]])&& _0x557cx12[_0xe78c[61]][_0xe78c[52]]!== _0xe78c[93]){_0x557cx1e= _[_0xe78c[94]](_0x557cx1f)};return _0x557cx1e};AGISquare[_0xe78c[24]][_0xe78c[47]]= function(_0x557cx22,_0x557cx11){this[_0xe78c[14]][_0xe78c[47]](_0x557cx22)[_0xe78c[28]](function(_0x557cx14){_0x557cx11(null,_0x557cx14)})[_0xe78c[25]](function(_0x557cx13){_0x557cx11(_0x557cx13)})};AGISquare[_0xe78c[24]][_0xe78c[50]]= function(_0x557cx23){return parser[_0xe78c[96]](_0x557cx23,{object:true})[_0xe78c[95]][_0xe78c[49]]};module[_0xe78c[97]]= AGISquare
\ No newline at end of file