Built motion from commit 7e022ab.|2.0.13
[motion2.git] / server / api / squareProject / squareProject.rpc.js
index cb14074..aed740e 100644 (file)
@@ -1 +1 @@
-var _0xf630=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x79\x73\x71\x6C\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C\x73","\x72\x70\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\x6A\x61\x79\x73\x6F\x6E\x2F\x70\x72\x6F\x6D\x69\x73\x65","\x68\x74\x74\x70","\x63\x6C\x69\x65\x6E\x74","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74\x2C\x20\x25\x73\x2C\x20\x25\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x72\x65\x71\x75\x65\x73\x74\x20\x73\x65\x6E\x74","\x69\x6E\x66\x6F","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x64\x65\x62\x75\x67","\x63\x6F\x64\x65","\x6D\x65\x73\x73\x61\x67\x65","\x72\x65\x73\x75\x6C\x74","\x74\x68\x65\x6E","\x72\x65\x71\x75\x65\x73\x74","\x53\x68\x6F\x77\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x6F\x70\x74\x69\x6F\x6E\x73","\x72\x61\x77","\x77\x68\x65\x72\x65","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x69\x6E\x63\x6C\x75\x64\x65","\x6D\x6F\x64\x65\x6C","\x61\x73","\x6D\x61\x70","\x66\x69\x6E\x64","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74"];_0xf630[0];var _=require(_0xf630[1]);var util=require(_0xf630[2]);var moment=require(_0xf630[3]);var BPromise=require(_0xf630[4]);var db=require(_0xf630[6])[_0xf630[5]];var utils=require(_0xf630[7]);var logger=require(_0xf630[9])(_0xf630[8]);var jayson=require(_0xf630[10]);var client=jayson[_0xf630[12]][_0xf630[11]]({port:9002});function respondWithRpcPromise(_0xe2baxb,_0xe2baxc,_0xe2baxd){return  new BPromise(function(_0xe2baxe,_0xe2baxf){return client[_0xf630[25]](_0xe2baxb,_0xe2baxd)[_0xf630[24]](function(_0xe2bax11){logger[_0xf630[17]](_0xf630[13],_0xe2baxc,_0xf630[16]);logger[_0xf630[20]](_0xf630[18],_0xe2baxc,_0xf630[16],JSON[_0xf630[19]](_0xe2bax11));if(_0xe2bax11[_0xf630[14]]){if(_0xe2bax11[_0xf630[14]][_0xf630[21]]=== 500){logger[_0xf630[14]](_0xf630[13],_0xe2baxc,_0xe2bax11[_0xf630[14]][_0xf630[22]]);return _0xe2baxf(_0xe2bax11[_0xf630[14]][_0xf630[22]])};logger[_0xf630[14]](_0xf630[13],_0xe2baxc,_0xe2bax11[_0xf630[14]][_0xf630[22]]);return _0xe2baxe(_0xe2bax11[_0xf630[14]][_0xf630[22]])}else {logger[_0xf630[17]](_0xf630[13],_0xe2baxc,_0xf630[16]);_0xe2baxe(_0xe2bax11[_0xf630[23]][_0xf630[22]])}})[_0xf630[15]](function(_0xe2bax10){logger[_0xf630[14]](_0xf630[13],_0xe2baxc,_0xe2bax10);_0xe2baxf(_0xe2bax10)})})}exports[_0xf630[26]]= function(_0xe2baxd){var _0xe2bax12=this;return  new Promise(function(_0xe2baxe,_0xe2baxf){return db[_0xf630[36]][_0xf630[35]]({raw:_0xe2baxd[_0xf630[27]]?(_0xe2baxd[_0xf630[27]][_0xf630[28]]=== undefined)?true:false:true,where:_0xe2baxd[_0xf630[27]]?_0xe2baxd[_0xf630[27]][_0xf630[29]]|| null:null,attributes:_0xe2baxd[_0xf630[27]]?_0xe2baxd[_0xf630[27]][_0xf630[30]]|| null:null,include:_0xe2baxd[_0xf630[27]]?(_0xe2baxd[_0xf630[27]][_0xf630[31]]?_[_0xf630[34]](_0xe2baxd[_0xf630[27]][_0xf630[31]],function(_0xe2bax13){return {model:db[_0xe2bax13[_0xf630[32]]],as:_0xe2bax13[_0xf630[33]],attributes:_0xe2bax13[_0xf630[30]],include:_0xe2bax13[_0xf630[31]]?_[_0xf630[34]](_0xe2bax13[_0xf630[31]],function(_0xe2bax14){return {model:db[_0xe2bax14[_0xf630[32]]],as:_0xe2bax14[_0xf630[33]],attributes:_0xe2bax14[_0xf630[30]],include:_0xe2bax14[_0xf630[31]]?_[_0xf630[34]](_0xe2bax14[_0xf630[31]],function(_0xe2bax15){return {model:db[_0xe2bax15[_0xf630[32]]],as:_0xe2bax15[_0xf630[33]],attributes:_0xe2bax15[_0xf630[30]]}}):[]}}):[]}}):[]):[]})[_0xf630[24]](function(_0xe2bax11){logger[_0xf630[17]](_0xf630[26],_0xe2baxd);logger[_0xf630[20]](_0xf630[26],_0xe2baxd,JSON[_0xf630[19]](_0xe2bax11));_0xe2baxe(_0xe2bax11)})[_0xf630[15]](function(_0xe2bax10){logger[_0xf630[14]](_0xf630[26],_0xe2bax10[_0xf630[22]],_0xe2baxd);_0xe2baxf(_0xe2bax12[_0xf630[14]](500,_0xe2bax10[_0xf630[22]]))})})}
\ No newline at end of file
+var _0x38b4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x79\x73\x71\x6C\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C\x73","\x72\x70\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\x6A\x61\x79\x73\x6F\x6E\x2F\x70\x72\x6F\x6D\x69\x73\x65","\x68\x74\x74\x70","\x63\x6C\x69\x65\x6E\x74","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74\x2C\x20\x25\x73\x2C\x20\x25\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x72\x65\x71\x75\x65\x73\x74\x20\x73\x65\x6E\x74","\x69\x6E\x66\x6F","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x64\x65\x62\x75\x67","\x63\x6F\x64\x65","\x6D\x65\x73\x73\x61\x67\x65","\x72\x65\x73\x75\x6C\x74","\x74\x68\x65\x6E","\x72\x65\x71\x75\x65\x73\x74","\x53\x68\x6F\x77\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x6F\x70\x74\x69\x6F\x6E\x73","\x72\x61\x77","\x77\x68\x65\x72\x65","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x69\x6E\x63\x6C\x75\x64\x65","\x6D\x6F\x64\x65\x6C","\x61\x73","\x6D\x61\x70","\x66\x69\x6E\x64","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74"];_0x38b4[0];var _=require(_0x38b4[1]);var util=require(_0x38b4[2]);var moment=require(_0x38b4[3]);var BPromise=require(_0x38b4[4]);var db=require(_0x38b4[6])[_0x38b4[5]];var utils=require(_0x38b4[7]);var logger=require(_0x38b4[9])(_0x38b4[8]);var jayson=require(_0x38b4[10]);var client=jayson[_0x38b4[12]][_0x38b4[11]]({port:9002});function respondWithRpcPromise(_0x33d6xb,_0x33d6xc,_0x33d6xd){return  new BPromise(function(_0x33d6xe,_0x33d6xf){return client[_0x38b4[25]](_0x33d6xb,_0x33d6xd)[_0x38b4[24]](function(_0x33d6x11){logger[_0x38b4[17]](_0x38b4[13],_0x33d6xc,_0x38b4[16]);logger[_0x38b4[20]](_0x38b4[18],_0x33d6xc,_0x38b4[16],JSON[_0x38b4[19]](_0x33d6x11));if(_0x33d6x11[_0x38b4[14]]){if(_0x33d6x11[_0x38b4[14]][_0x38b4[21]]=== 500){logger[_0x38b4[14]](_0x38b4[13],_0x33d6xc,_0x33d6x11[_0x38b4[14]][_0x38b4[22]]);return _0x33d6xf(_0x33d6x11[_0x38b4[14]][_0x38b4[22]])};logger[_0x38b4[14]](_0x38b4[13],_0x33d6xc,_0x33d6x11[_0x38b4[14]][_0x38b4[22]]);return _0x33d6xe(_0x33d6x11[_0x38b4[14]][_0x38b4[22]])}else {logger[_0x38b4[17]](_0x38b4[13],_0x33d6xc,_0x38b4[16]);_0x33d6xe(_0x33d6x11[_0x38b4[23]][_0x38b4[22]])}})[_0x38b4[15]](function(_0x33d6x10){logger[_0x38b4[14]](_0x38b4[13],_0x33d6xc,_0x33d6x10);_0x33d6xf(_0x33d6x10)})})}exports[_0x38b4[26]]= function(_0x33d6xd){var _0x33d6x12=this;return  new Promise(function(_0x33d6xe,_0x33d6xf){return db[_0x38b4[36]][_0x38b4[35]]({raw:_0x33d6xd[_0x38b4[27]]?(_0x33d6xd[_0x38b4[27]][_0x38b4[28]]=== undefined)?true:false:true,where:_0x33d6xd[_0x38b4[27]]?_0x33d6xd[_0x38b4[27]][_0x38b4[29]]|| null:null,attributes:_0x33d6xd[_0x38b4[27]]?_0x33d6xd[_0x38b4[27]][_0x38b4[30]]|| null:null,include:_0x33d6xd[_0x38b4[27]]?(_0x33d6xd[_0x38b4[27]][_0x38b4[31]]?_[_0x38b4[34]](_0x33d6xd[_0x38b4[27]][_0x38b4[31]],function(_0x33d6x13){return {model:db[_0x33d6x13[_0x38b4[32]]],as:_0x33d6x13[_0x38b4[33]],attributes:_0x33d6x13[_0x38b4[30]],include:_0x33d6x13[_0x38b4[31]]?_[_0x38b4[34]](_0x33d6x13[_0x38b4[31]],function(_0x33d6x14){return {model:db[_0x33d6x14[_0x38b4[32]]],as:_0x33d6x14[_0x38b4[33]],attributes:_0x33d6x14[_0x38b4[30]],include:_0x33d6x14[_0x38b4[31]]?_[_0x38b4[34]](_0x33d6x14[_0x38b4[31]],function(_0x33d6x15){return {model:db[_0x33d6x15[_0x38b4[32]]],as:_0x33d6x15[_0x38b4[33]],attributes:_0x33d6x15[_0x38b4[30]]}}):[]}}):[]}}):[]):[]})[_0x38b4[24]](function(_0x33d6x11){logger[_0x38b4[17]](_0x38b4[26],_0x33d6xd);logger[_0x38b4[20]](_0x38b4[26],_0x33d6xd,JSON[_0x38b4[19]](_0x33d6x11));_0x33d6xe(_0x33d6x11)})[_0x38b4[15]](function(_0x33d6x10){logger[_0x38b4[14]](_0x38b4[26],_0x33d6x10[_0x38b4[22]],_0x33d6xd);_0x33d6xf(_0x33d6x12[_0x38b4[14]](500,_0x33d6x10[_0x38b4[22]]))})})}
\ No newline at end of file