1 var _0xecb3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x70\x63","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x6C\x6F\x64\x61\x73\x68","\x6A\x61\x79\x73\x6F\x6E\x2F\x70\x72\x6F\x6D\x69\x73\x65","\x69\x6E\x63\x6C\x75\x64\x65","\x6C\x65\x6E\x67\x74\x68","\x6D\x6F\x64\x65\x6C","\x6D\x65\x73\x73\x61\x67\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x66\x69\x6E\x64","\x75\x70\x64\x61\x74\x65","\x63\x72\x65\x61\x74\x65","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x63\x6F\x75\x6E\x74","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x71\x75\x65\x72\x79","\x73\x65\x72\x76\x65\x72","\x52\x50\x43\x20\x53\x65\x72\x76\x65\x72\x20\x72\x75\x6E\x6E\x69\x6E\x67\x2E\x2E\x2E","\x69\x6E\x66\x6F","\x72\x70\x63\x20\x73\x65\x72\x76\x65\x72\x20\x6C\x69\x73\x74\x65\x6E\x69\x6E\x67\x2E\x2E\x2E","\x73\x65\x6E\x64","\x6C\x69\x73\x74\x65\x6E","\x68\x74\x74\x70"];_0xecb3[0];var db=require(_0xecb3[1]);var logger=require(_0xecb3[3])(_0xecb3[2]);var _=require(_0xecb3[4]);var jayson=require(_0xecb3[5]);function traverseObject(_0xf148x6){if(_0xf148x6&& _0xf148x6[_0xecb3[6]]){for(var _0xf148x7=0;_0xf148x7< _0xf148x6[_0xecb3[6]][_0xecb3[7]];_0xf148x7++){traverseObject(_0xf148x6[_0xecb3[6]][_0xf148x7]);if(_0xf148x6[_0xecb3[6]][_0xf148x7][_0xecb3[8]]){_0xf148x6[_0xecb3[6]][_0xf148x7][_0xecb3[8]]= db[_0xf148x6[_0xecb3[6]][_0xf148x7][_0xecb3[8]]]}}}}var server=jayson[_0xecb3[25]]({index:function(_0xf148x9,_0xf148xa){try{traverseObject(_0xf148x9[1]);db[_0xf148x9[0]][_0xecb3[13]](_0xf148x9[1])[_0xecb3[12]](function(_0xf148xc){_0xf148xa(null,_0xf148xc)})[_0xecb3[11]](function(_0xf148xb){logger[_0xecb3[10]](_0xf148xb[_0xecb3[9]]);_0xf148xa(_0xf148xb)})}catch(err){logger[_0xecb3[10]](err[_0xecb3[9]]);_0xf148xa(err)}},show:function(_0xf148x9,_0xf148xa){try{traverseObject(_0xf148x9[1]);db[_0xf148x9[0]][_0xecb3[14]](_0xf148x9[1])[_0xecb3[12]](function(_0xf148xc){_0xf148xa(null,_0xf148xc)})[_0xecb3[11]](function(_0xf148xb){logger[_0xecb3[10]](_0xf148xb[_0xecb3[9]]);_0xf148xa(_0xf148xb)})}catch(err){logger[_0xecb3[10]](err[_0xecb3[9]]);_0xf148xa(err)}},update:function(_0xf148x9,_0xf148xa){try{traverseObject(_0xf148x9[2]);db[_0xf148x9[0]][_0xecb3[14]](_0xf148x9[2])[_0xecb3[12]](function(_0xf148xc){if(_0xf148xc){return _0xf148xc[_0xecb3[15]](_0xf148x9[1])}})[_0xecb3[12]](function(_0xf148xc){if(_0xf148xc){_0xf148xa(null,_0xf148xc)}else {_0xf148xa(null,null)}})[_0xecb3[11]](function(_0xf148xb){logger[_0xecb3[10]](_0xf148xb[_0xecb3[9]]);_0xf148xa(_0xf148xb)})}catch(err){logger[_0xecb3[10]](err[_0xecb3[9]]);_0xf148xa(err)}},create:function(_0xf148x9,_0xf148xa){try{traverseObject(_0xf148x9[2]);db[_0xf148x9[0]][_0xecb3[16]](_0xf148x9[1],_0xf148x9[2])[_0xecb3[12]](function(_0xf148xc){_0xf148xa(null,_0xf148xc)})[_0xecb3[11]](function(_0xf148xb){logger[_0xecb3[10]](_0xf148xb[_0xecb3[9]]);_0xf148xa(_0xf148xb)})}catch(err){logger[_0xecb3[10]](err[_0xecb3[9]]);_0xf148xa(err)}},findOrCreate:function(_0xf148x9,_0xf148xa){try{traverseObject(_0xf148x9[1]);db[_0xf148x9[0]][_0xecb3[17]](_0xf148x9[1])[_0xecb3[12]](function(_0xf148xc){_0xf148xa(null,_0xf148xc)})[_0xecb3[11]](function(_0xf148xb){logger[_0xecb3[10]](_0xf148xb[_0xecb3[9]]);_0xf148xa(_0xf148xb)})}catch(err){logger[_0xecb3[10]](err[_0xecb3[9]]);_0xf148xa(err)}},bulkCreate:function(_0xf148x9,_0xf148xa){try{traverseObject(_0xf148x9[2]);db[_0xf148x9[0]][_0xecb3[18]](_0xf148x9[1],_0xf148x9[2])[_0xecb3[12]](function(_0xf148xc){_0xf148xa(null,_0xf148xc)})[_0xecb3[11]](function(_0xf148xb){logger[_0xecb3[10]](_0xf148xb[_0xecb3[9]]);_0xf148xa(_0xf148xb)})}catch(err){logger[_0xecb3[10]](err[_0xecb3[9]]);_0xf148xa(err)}},delete:function(_0xf148x9,_0xf148xa){try{traverseObject(_0xf148x9[1]);db[_0xf148x9[0]][_0xecb3[14]](_0xf148x9[1])[_0xecb3[12]](function(_0xf148xc){if(_0xf148xc){return _0xf148xc[_0xecb3[19]]()}})[_0xecb3[12]](function(_0xf148xc){if(_0xf148xc){_0xf148xa(null,_0xf148xc)}else {_0xf148xa(null,null)}})[_0xecb3[11]](function(_0xf148xb){logger[_0xecb3[10]](_0xf148xb[_0xecb3[9]]);_0xf148xa(_0xf148xb)})}catch(err){logger[_0xecb3[10]](err[_0xecb3[9]]);_0xf148xa(err)}},count:function(_0xf148x9,_0xf148xa){try{db[_0xf148x9[0]][_0xecb3[20]](_0xf148x9[1])[_0xecb3[12]](function(_0xf148xc){_0xf148xa(null,_0xf148xc)})[_0xecb3[11]](function(_0xf148xb){logger[_0xecb3[10]](_0xf148xb[_0xecb3[9]]);_0xf148xa(_0xf148xb)})}catch(err){logger[_0xecb3[10]](err[_0xecb3[9]]);_0xf148xa(err)}},query:function(_0xf148x9,_0xf148xa){try{db[_0xecb3[23]][_0xecb3[24]](_0xf148x9[0],{type:db[_0xecb3[23]][_0xecb3[22]][_0xecb3[21]]})[_0xecb3[12]](function(_0xf148xc){_0xf148xa(null,_0xf148xc)})[_0xecb3[11]](function(_0xf148xb){logger[_0xecb3[10]](_0xf148xb[_0xecb3[9]]);_0xf148xa(_0xf148xb)})}catch(err){logger[_0xecb3[10]](err[_0xecb3[9]]);_0xf148xa(err)}}});server[_0xecb3[31]]()[_0xecb3[30]](9001,function(){logger[_0xecb3[27]](_0xecb3[26]);process[_0xecb3[29]]({message:_0xecb3[28]})})