Built motion from commit 42b6453.|2.0.28
[motion2.git] / server / services / agi / graph / index.js
1 var _0x4eaf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x61\x67\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\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","\x76\x65\x72\x74\x69\x63\x65\x73","\x65\x64\x67\x65\x73","\x6E\x75\x6D\x62\x65\x72\x4F\x66\x45\x64\x67\x65\x73","\x61\x64\x64\x56\x65\x72\x74\x65\x78","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x69\x64","\x61\x64\x64\x45\x64\x67\x65","\x70\x75\x73\x68","\x73\x69\x7A\x65","\x72\x65\x6C\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74\x56\x65\x72\x74\x65\x78","\x74\x72\x61\x76\x65\x72\x73\x65\x42\x46\x53","\x6E\x6F\x20\x76\x65\x72\x74\x65\x78\x20\x66\x6F\x75\x6E\x64","\x69\x6E\x66\x6F","\x73\x74\x6F\x70\x20\x74\x72\x61\x76\x65\x72\x73\x65","\x6C\x65\x6E\x67\x74\x68","\x6E\x6F\x20\x65\x64\x67\x65\x2F\x73\x20\x61\x76\x61\x69\x6C\x61\x62\x6C\x65","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x2C","\x73\x70\x6C\x69\x74","\x61\x67\x69\x63\x6F\x6D\x6D\x61\x6E\x64","\x76\x73\x77\x69\x74\x63\x68","\x2D","\x74\x61\x72\x67\x65\x74","\x64\x65\x66\x61\x75\x6C\x74","\x69","\x69\x6E\x76\x61\x6C\x69\x64","\x64\x65\x66\x61\x75\x6C\x74\x20\x6F\x6E\x20\x73\x77\x69\x74\x63\x68\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x6D\x61\x78\x20\x72\x65\x74\x72\x79\x20\x72\x65\x61\x63\x68","\x74","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x65\x78\x70\x6F\x72\x74\x73"];_0x4eaf[0];var _=require(_0x4eaf[1]);var logger=require(_0x4eaf[3])(_0x4eaf[2]);var verticesWithRetry=[_0x4eaf[4],_0x4eaf[5],_0x4eaf[6]];var Graph=function(){this[_0x4eaf[7]]= {};this[_0x4eaf[8]]= {};this[_0x4eaf[9]]= 0};Graph[_0x4eaf[11]][_0x4eaf[10]]= function(_0x70c5x5){this[_0x4eaf[7]][_0x70c5x5[_0x4eaf[12]]]= _0x70c5x5;this[_0x4eaf[8]][_0x70c5x5[_0x4eaf[12]]]= []};Graph[_0x4eaf[11]][_0x4eaf[13]]= function(_0x70c5x6,_0x70c5x7,_0x70c5x8){this[_0x4eaf[8]][_0x70c5x6][_0x4eaf[14]]({target:_0x70c5x7,condition:_0x70c5x8});this[_0x4eaf[9]]+= 1};Graph[_0x4eaf[11]][_0x4eaf[15]]= function(){return _[_0x4eaf[15]](this[_0x4eaf[7]])};Graph[_0x4eaf[11]][_0x4eaf[16]]= function(){return this[_0x4eaf[9]]};Graph[_0x4eaf[11]][_0x4eaf[17]]= function(_0x70c5x5){return this[_0x4eaf[7]][_0x70c5x5]};Graph[_0x4eaf[11]][_0x4eaf[18]]= function(_0x70c5x5,_0x70c5x9){if(!this[_0x4eaf[7]][_0x70c5x5]){return logger[_0x4eaf[20]](_0x4eaf[19])};var _0x70c5xa=_0x70c5x9(this[_0x4eaf[7]][_0x70c5x5]);if(!_0x70c5xa){return logger[_0x4eaf[20]](_0x4eaf[21])};if(this[_0x4eaf[8]][_0x70c5x5][_0x4eaf[22]]=== 0){return logger[_0x4eaf[20]](_0x4eaf[23])};for(var _0x70c5xb=0,_0x70c5xc=[],_0x70c5xd=false;_0x70c5xb< this[_0x4eaf[8]][_0x70c5x5][_0x4eaf[22]];_0x70c5xb+= 1){if(this[_0x4eaf[8]][_0x70c5x5][_0x70c5xb][_0x4eaf[24]]){_0x70c5xc= this[_0x4eaf[8]][_0x70c5x5][_0x70c5xb][_0x4eaf[24]][_0x4eaf[26]](_0x4eaf[25]);for(var _0x70c5xe=0;_0x70c5xe< _0x70c5xc[_0x4eaf[22]];_0x70c5xe+= 1){if(this[_0x4eaf[7]][_0x70c5x5][_0x4eaf[27]]=== _0x4eaf[28]&& _0x70c5xc[_0x70c5xe]=== _0x4eaf[29]){_0x70c5xd= this[_0x4eaf[8]][_0x70c5x5][_0x70c5xb][_0x4eaf[30]];logger[_0x4eaf[20]](_0x4eaf[31],_0x70c5xc[_0x70c5xe],this[_0x4eaf[8]][_0x70c5x5][_0x70c5xb][_0x4eaf[30]])}else {if(this[_0x4eaf[7]][_0x70c5x5][_0x4eaf[27]]=== _0x4eaf[4]&& _0x70c5xc[_0x70c5xe]=== _0x4eaf[32]){_0x70c5xd= this[_0x4eaf[8]][_0x70c5x5][_0x70c5xb][_0x4eaf[30]];logger[_0x4eaf[20]](_0x4eaf[33],_0x70c5xc[_0x70c5xe],this[_0x4eaf[8]][_0x70c5x5][_0x70c5xb][_0x4eaf[30]])}};if(_0x70c5xc[_0x70c5xe]=== _0x70c5xa){return this[_0x4eaf[18]](this[_0x4eaf[8]][_0x70c5x5][_0x70c5xb][_0x4eaf[30]],_0x70c5x9)}}}else {return this[_0x4eaf[18]](this[_0x4eaf[8]][_0x70c5x5][_0x70c5xb][_0x4eaf[30]],_0x70c5x9)}};if(_0x70c5xc[_0x4eaf[22]]){if(this[_0x4eaf[7]][_0x70c5x5][_0x4eaf[27]]=== _0x4eaf[28]){if(_0x70c5xd){return this[_0x4eaf[18]](_0x70c5xd,_0x70c5x9)};return logger[_0x4eaf[20]](_0x4eaf[34])}else {if(_[_0x4eaf[35]](verticesWithRetry,this[_0x4eaf[7]][_0x70c5x5][_0x4eaf[27]])){if(_0x70c5xa=== _0x4eaf[29]){return logger[_0x4eaf[20]](_0x4eaf[36])};if(_0x70c5xd&& _0x70c5xa!== _0x4eaf[37]){return this[_0x4eaf[18]](_0x70c5xd,_0x70c5x9)};return this[_0x4eaf[18]](_0x70c5x5,_0x70c5x9)}};return logger[_0x4eaf[20]](_0x4eaf[38])}};module[_0x4eaf[39]]= Graph