Built motion from commit c8dd8619.|2.0.41
[motion2.git] / server / services / agi / rpc / index.js
index e593c42..c31c274 100644 (file)
@@ -1 +1 @@
-var _0xe9ba=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x6F\x6D\x65\x6E\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6A\x61\x79\x73\x6F\x6E\x2F\x70\x72\x6F\x6D\x69\x73\x65","\x68\x74\x74\x70","\x63\x6C\x69\x65\x6E\x74","\x63\x61\x74\x63\x68","\x65\x72\x72\x6F\x72","\x6D\x65\x73\x73\x61\x67\x65","\x72\x65\x73\x75\x6C\x74","\x74\x68\x65\x6E","\x72\x65\x71\x75\x65\x73\x74","\x67\x65\x74\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x53\x68\x6F\x77\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x67\x65\x74\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x42\x79\x49\x64","\x53\x68\x6F\x77\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x53\x6D\x74\x70","\x69\x64","\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x67\x65\x74\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74\x42\x79\x49\x64","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x42\x79\x49\x64","\x53\x68\x6F\x77\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x67\x65\x74\x56\x61\x72\x69\x61\x62\x6C\x65\x42\x79\x49\x64","\x53\x68\x6F\x77\x56\x61\x72\x69\x61\x62\x6C\x65","\x67\x65\x74\x53\x71\x75\x61\x72\x65\x4F\x64\x62\x63\x42\x79\x49\x64","\x53\x68\x6F\x77\x53\x71\x75\x61\x72\x65\x4F\x64\x62\x63","\x64\x73\x6E","\x67\x65\x74\x55\x73\x65\x72\x42\x79\x49\x64","\x53\x68\x6F\x77\x55\x73\x65\x72","\x67\x65\x74\x54\x72\x75\x6E\x6B\x42\x79\x49\x64","\x53\x68\x6F\x77\x54\x72\x75\x6E\x6B","\x67\x65\x74\x53\x6F\x75\x6E\x64\x42\x79\x49\x64","\x53\x68\x6F\x77\x53\x6F\x75\x6E\x64","\x73\x61\x76\x65\x5F\x6E\x61\x6D\x65","\x67\x65\x74\x49\x6E\x74\x65\x72\x76\x61\x6C\x42\x79\x49\x64","\x53\x68\x6F\x77\x49\x6E\x74\x65\x72\x76\x61\x6C","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x63\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x44\x65\x74\x61\x69\x6C\x73\x52\x65\x70\x6F\x72\x74","\x43\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x44\x65\x74\x61\x69\x6C\x73\x52\x65\x70\x6F\x72\x74","\x63\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x70\x6F\x72\x74","\x43\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x70\x6F\x72\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x61\x72\x67\x5F\x31","\x61\x72\x67\x5F\x32","","\x6D\x65\x72\x67\x65","\x75\x70\x64\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x70\x6F\x72\x74","\x55\x70\x64\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x70\x6F\x72\x74","\x63\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x63\x6F\x72\x64\x69\x6E\x67","\x43\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x63\x6F\x72\x64\x69\x6E\x67","\x63\x72\x65\x61\x74\x65\x43\x6D\x43\x6F\x6E\x74\x61\x63\x74","\x43\x72\x65\x61\x74\x65\x43\x6D\x43\x6F\x6E\x74\x61\x63\x74","\x53\x68\x6F\x77\x43\x6D\x48\x6F\x70\x70\x65\x72","\x70\x68\x6F\x6E\x65","\x4C\x69\x73\x74\x49\x64"];_0xe9ba[0];var BPromise=require(_0xe9ba[1]);var moment=require(_0xe9ba[2]);var _=require(_0xe9ba[3]);var util=require(_0xe9ba[4]);var jayson=require(_0xe9ba[5]);var client=jayson[_0xe9ba[7]][_0xe9ba[6]]({port:9001});function request(_0x86a8x8,_0x86a8x9){return  new BPromise(function(_0x86a8xa,_0x86a8xb){return client[_0xe9ba[13]](_0x86a8x8,_0x86a8x9)[_0xe9ba[12]](function(_0x86a8xd){if(_0x86a8xd[_0xe9ba[9]]){return _0x86a8xb(_0x86a8xd[_0xe9ba[9]][_0xe9ba[10]])}else {return _0x86a8xa(_0x86a8xd[_0xe9ba[11]])}})[_0xe9ba[8]](function(_0x86a8xc){return _0x86a8xb(_0x86a8xc)})})}exports[_0xe9ba[14]]= function(_0x86a8x8){return request(_0xe9ba[15],{options:{raw:false,where:{name:_0x86a8x8},attributes:[_0xe9ba[16]]}})};exports[_0xe9ba[17]]= function(_0x86a8xe){return request(_0xe9ba[18],{options:{raw:false,where:{id:_0x86a8xe},include:[{model:_0xe9ba[19],as:_0xe9ba[20]}],attributes:[_0xe9ba[21],_0xe9ba[22],_0xe9ba[23]]}})};exports[_0xe9ba[24]]= function(_0x86a8xe){return request(_0xe9ba[15],{options:{where:{id:_0x86a8xe},attributes:[_0xe9ba[22]]}})};exports[_0xe9ba[25]]= function(_0x86a8xe){return request(_0xe9ba[26],{options:{where:{id:_0x86a8xe},attributes:[_0xe9ba[22]]}})};exports[_0xe9ba[27]]= function(_0x86a8xe){return request(_0xe9ba[28],{options:{where:{id:_0x86a8xe},attributes:[_0xe9ba[22]]}})};exports[_0xe9ba[29]]= function(_0x86a8xe){return request(_0xe9ba[30],{options:{where:{id:_0x86a8xe},attributes:[_0xe9ba[31]]}})};exports[_0xe9ba[32]]= function(_0x86a8xe){return request(_0xe9ba[33],{options:{where:{id:_0x86a8xe},attributes:[_0xe9ba[22]]}})};exports[_0xe9ba[34]]= function(_0x86a8xe){return request(_0xe9ba[35],{options:{where:{id:_0x86a8xe},attributes:[_0xe9ba[22]]}})};exports[_0xe9ba[36]]= function(_0x86a8xe){return request(_0xe9ba[37],{options:{where:{id:_0x86a8xe},attributes:[_0xe9ba[38]]}})};exports[_0xe9ba[39]]= function(_0x86a8xe){return request(_0xe9ba[40],{options:{raw:false,where:{id:_0x86a8xe},include:[{model:_0xe9ba[41],as:_0xe9ba[42]}]}})};exports[_0xe9ba[43]]= function(_0x86a8xf){return request(_0xe9ba[44],{body:_0x86a8xf})};exports[_0xe9ba[45]]= function(_0x86a8xf){return request(_0xe9ba[46],{body:_[_0xe9ba[52]](_0x86a8xf,{joinAt:moment()[_0xe9ba[48]](_0xe9ba[47]),project_name:_0x86a8xf[_0xe9ba[49]],prev_project_name:_0x86a8xf[_0xe9ba[50]]|| _0xe9ba[51],is_subproject:_0x86a8xf[_0xe9ba[50]]?true:false})})};exports[_0xe9ba[53]]= function(_0x86a8x10,_0x86a8x11){return request(_0xe9ba[54],{body:{leaveAt:moment()[_0xe9ba[48]](_0xe9ba[47])},options:{where:{uniqueid:_0x86a8x10,project_name:_0x86a8x11,leaveAt:null}}})};exports[_0xe9ba[55]]= function(_0x86a8xf){return request(_0xe9ba[56],{body:_0x86a8xf})};exports[_0xe9ba[57]]= function(_0x86a8xf){return request(_0xe9ba[59],{options:{raw:false,where:{phone:_0x86a8xf[_0xe9ba[60]],ListId:_0x86a8xf[_0xe9ba[61]]}}})[_0xe9ba[12]](function(_0x86a8x12){if(_0x86a8x12){return _0x86a8x12};return request(_0xe9ba[58],{body:_0x86a8xf})})}
\ No newline at end of file
+var _0x3689=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x6F\x6D\x65\x6E\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6A\x61\x79\x73\x6F\x6E\x2F\x70\x72\x6F\x6D\x69\x73\x65","\x68\x74\x74\x70","\x63\x6C\x69\x65\x6E\x74","\x63\x61\x74\x63\x68","\x65\x72\x72\x6F\x72","\x6D\x65\x73\x73\x61\x67\x65","\x72\x65\x73\x75\x6C\x74","\x74\x68\x65\x6E","\x72\x65\x71\x75\x65\x73\x74","\x67\x65\x74\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x53\x68\x6F\x77\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x67\x65\x74\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x42\x79\x49\x64","\x53\x68\x6F\x77\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x53\x6D\x74\x70","\x69\x64","\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x67\x65\x74\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74\x42\x79\x49\x64","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x42\x79\x49\x64","\x53\x68\x6F\x77\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x67\x65\x74\x56\x61\x72\x69\x61\x62\x6C\x65\x42\x79\x49\x64","\x53\x68\x6F\x77\x56\x61\x72\x69\x61\x62\x6C\x65","\x67\x65\x74\x53\x71\x75\x61\x72\x65\x4F\x64\x62\x63\x42\x79\x49\x64","\x53\x68\x6F\x77\x53\x71\x75\x61\x72\x65\x4F\x64\x62\x63","\x64\x73\x6E","\x67\x65\x74\x55\x73\x65\x72\x42\x79\x49\x64","\x53\x68\x6F\x77\x55\x73\x65\x72","\x67\x65\x74\x54\x72\x75\x6E\x6B\x42\x79\x49\x64","\x53\x68\x6F\x77\x54\x72\x75\x6E\x6B","\x67\x65\x74\x53\x6F\x75\x6E\x64\x42\x79\x49\x64","\x53\x68\x6F\x77\x53\x6F\x75\x6E\x64","\x73\x61\x76\x65\x5F\x6E\x61\x6D\x65","\x67\x65\x74\x49\x6E\x74\x65\x72\x76\x61\x6C\x42\x79\x49\x64","\x53\x68\x6F\x77\x49\x6E\x74\x65\x72\x76\x61\x6C","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x63\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x44\x65\x74\x61\x69\x6C\x73\x52\x65\x70\x6F\x72\x74","\x43\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x44\x65\x74\x61\x69\x6C\x73\x52\x65\x70\x6F\x72\x74","\x63\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x70\x6F\x72\x74","\x43\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x70\x6F\x72\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x61\x72\x67\x5F\x31","\x61\x72\x67\x5F\x32","","\x6D\x65\x72\x67\x65","\x75\x70\x64\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x70\x6F\x72\x74","\x55\x70\x64\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x70\x6F\x72\x74","\x63\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x63\x6F\x72\x64\x69\x6E\x67","\x43\x72\x65\x61\x74\x65\x53\x71\x75\x61\x72\x65\x52\x65\x63\x6F\x72\x64\x69\x6E\x67","\x63\x72\x65\x61\x74\x65\x43\x6D\x43\x6F\x6E\x74\x61\x63\x74","\x43\x72\x65\x61\x74\x65\x43\x6D\x43\x6F\x6E\x74\x61\x63\x74","\x53\x68\x6F\x77\x43\x6D\x48\x6F\x70\x70\x65\x72","\x70\x68\x6F\x6E\x65","\x4C\x69\x73\x74\x49\x64"];_0x3689[0];var BPromise=require(_0x3689[1]);var moment=require(_0x3689[2]);var _=require(_0x3689[3]);var util=require(_0x3689[4]);var jayson=require(_0x3689[5]);var client=jayson[_0x3689[7]][_0x3689[6]]({port:9001});function request(_0x7b1fx8,_0x7b1fx9){return  new BPromise(function(_0x7b1fxa,_0x7b1fxb){return client[_0x3689[13]](_0x7b1fx8,_0x7b1fx9)[_0x3689[12]](function(_0x7b1fxd){if(_0x7b1fxd[_0x3689[9]]){return _0x7b1fxb(_0x7b1fxd[_0x3689[9]][_0x3689[10]])}else {return _0x7b1fxa(_0x7b1fxd[_0x3689[11]])}})[_0x3689[8]](function(_0x7b1fxc){return _0x7b1fxb(_0x7b1fxc)})})}exports[_0x3689[14]]= function(_0x7b1fx8){return request(_0x3689[15],{options:{raw:false,where:{name:_0x7b1fx8},attributes:[_0x3689[16]]}})};exports[_0x3689[17]]= function(_0x7b1fxe){return request(_0x3689[18],{options:{raw:false,where:{id:_0x7b1fxe},include:[{model:_0x3689[19],as:_0x3689[20]}],attributes:[_0x3689[21],_0x3689[22],_0x3689[23]]}})};exports[_0x3689[24]]= function(_0x7b1fxe){return request(_0x3689[15],{options:{where:{id:_0x7b1fxe},attributes:[_0x3689[22]]}})};exports[_0x3689[25]]= function(_0x7b1fxe){return request(_0x3689[26],{options:{where:{id:_0x7b1fxe},attributes:[_0x3689[22]]}})};exports[_0x3689[27]]= function(_0x7b1fxe){return request(_0x3689[28],{options:{where:{id:_0x7b1fxe},attributes:[_0x3689[22]]}})};exports[_0x3689[29]]= function(_0x7b1fxe){return request(_0x3689[30],{options:{where:{id:_0x7b1fxe},attributes:[_0x3689[31]]}})};exports[_0x3689[32]]= function(_0x7b1fxe){return request(_0x3689[33],{options:{where:{id:_0x7b1fxe},attributes:[_0x3689[22]]}})};exports[_0x3689[34]]= function(_0x7b1fxe){return request(_0x3689[35],{options:{where:{id:_0x7b1fxe},attributes:[_0x3689[22]]}})};exports[_0x3689[36]]= function(_0x7b1fxe){return request(_0x3689[37],{options:{where:{id:_0x7b1fxe},attributes:[_0x3689[38]]}})};exports[_0x3689[39]]= function(_0x7b1fxe){return request(_0x3689[40],{options:{raw:false,where:{id:_0x7b1fxe},include:[{model:_0x3689[41],as:_0x3689[42]}]}})};exports[_0x3689[43]]= function(_0x7b1fxf){return request(_0x3689[44],{body:_0x7b1fxf})};exports[_0x3689[45]]= function(_0x7b1fxf){return request(_0x3689[46],{body:_[_0x3689[52]](_0x7b1fxf,{joinAt:moment()[_0x3689[48]](_0x3689[47]),project_name:_0x7b1fxf[_0x3689[49]],prev_project_name:_0x7b1fxf[_0x3689[50]]|| _0x3689[51],is_subproject:_0x7b1fxf[_0x3689[50]]?true:false})})};exports[_0x3689[53]]= function(_0x7b1fx10,_0x7b1fx11){return request(_0x3689[54],{body:{leaveAt:moment()[_0x3689[48]](_0x3689[47])},options:{where:{uniqueid:_0x7b1fx10,project_name:_0x7b1fx11,leaveAt:null}}})};exports[_0x3689[55]]= function(_0x7b1fxf){return request(_0x3689[56],{body:_0x7b1fxf})};exports[_0x3689[57]]= function(_0x7b1fxf){return request(_0x3689[59],{options:{raw:false,where:{phone:_0x7b1fxf[_0x3689[60]],ListId:_0x7b1fxf[_0x3689[61]]}}})[_0x3689[12]](function(_0x7b1fx12){if(_0x7b1fx12){return _0x7b1fx12};return request(_0x3689[58],{body:_0x7b1fxf})})}
\ No newline at end of file