Built motion from commit 3594e56.|0.0.120
[motion.git] / server / api / openchannel_room / openchannel_room.controller.js
index c3018d4..690ddbf 100644 (file)
@@ -1 +1 @@
-var _0xaa29=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x55\x73\x65\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x64\x65\x66\x61\x75\x6C\x74","\x61\x67\x65\x6E\x74","\x69\x64","\x75\x73\x65\x72","\x73\x63\x6F\x70\x65","\x72\x6F\x6C\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x73\x68\x6F\x77\x41\x67\x65\x6E\x74\x73","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x67\x65\x74\x52\x6F\x6F\x6D\x42\x79\x4D\x65\x73\x73\x61\x67\x65","\x65\x72\x72","\x6C\x6F\x67","\x67\x65\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x52\x6F\x6F\x6D","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x4D\x65\x73\x73\x61\x67\x65","\x55\x73\x65\x72\x49\x64","\x53\x6D\x73\x52\x6F\x6F\x6D\x49\x64","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x75\x70\x64\x61\x74\x65\x41\x67\x65\x6E\x74\x73","\x61\x67\x65\x6E\x74\x73","\x73\x65\x74\x55\x73\x65\x72\x73","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\x75\x70\x64\x61\x74\x65\x50\x61\x74\x63\x68","\x74\x61\x67\x73","\x2C","\x73\x70\x6C\x69\x74"];_0xaa29[0];var _=require(_0xaa29[1]);var Util=require(_0xaa29[2]);var OpenchannelRoom=require(_0xaa29[4])[_0xaa29[3]];var OpenchannelMessage=require(_0xaa29[4])[_0xaa29[5]];var OpenchannelAccount=require(_0xaa29[4])[_0xaa29[6]];var User=require(_0xaa29[4])[_0xaa29[7]];function handleError(_0x7f87x8,_0x7f87x9){return _0x7f87x8[_0xaa29[9]](500)[_0xaa29[8]](_0x7f87x9)}exports[_0xaa29[10]]= function(_0x7f87xa,_0x7f87x8){switch(_0x7f87xa[_0xaa29[19]][_0xaa29[21]]){case _0xaa29[17]:return OpenchannelRoom[_0xaa29[20]](_0xaa29[16],{method:[_0xaa29[17],_0x7f87xa[_0xaa29[19]][_0xaa29[18]]]})[_0xaa29[15]](Util[_0xaa29[14]](_0x7f87xa[_0xaa29[13]]))[_0xaa29[12]](function(_0x7f87xb){return _0x7f87x8[_0xaa29[9]](200)[_0xaa29[8]](_0x7f87xb)})[_0xaa29[11]](function(_0x7f87x9){return handleError(_0x7f87x8,_0x7f87x9)});default:return OpenchannelRoom[_0xaa29[20]](_0xaa29[16])[_0xaa29[15]](Util[_0xaa29[14]](_0x7f87xa[_0xaa29[13]]))[_0xaa29[12]](function(_0x7f87xb){return _0x7f87x8[_0xaa29[9]](200)[_0xaa29[8]](_0x7f87xb)})[_0xaa29[11]](function(_0x7f87x9){return handleError(_0x7f87x8,_0x7f87x9)})}};exports[_0xaa29[22]]= function(_0x7f87xa,_0x7f87x8){return OpenchannelRoom[_0xaa29[20]](_0xaa29[16])[_0xaa29[25]](_0x7f87xa[_0xaa29[24]][_0xaa29[18]])[_0xaa29[12]](function(_0x7f87xc){if(!_0x7f87xc){return _0x7f87x8[_0xaa29[23]](404)};return _0x7f87x8[_0xaa29[8]](_0x7f87xc)})[_0xaa29[11]](function(_0x7f87x9){return handleError(_0x7f87x8,_0x7f87x9)})};exports[_0xaa29[26]]= function(_0x7f87xa,_0x7f87x8,_0x7f87xd){return OpenchannelRoom[_0xaa29[25]](_0x7f87xa[_0xaa29[24]][_0xaa29[18]])[_0xaa29[12]](function(_0x7f87xc){if(!_0x7f87xc){return _0x7f87x8[_0xaa29[23]](404)};return _0x7f87xc[_0xaa29[31]]({attributes:[_0xaa29[18],_0xaa29[27],_0xaa29[28],_0xaa29[29],_0xaa29[21],_0xaa29[30]]})})[_0xaa29[12]](function(_0x7f87xe){return _0x7f87x8[_0xaa29[8]](_0x7f87xe)})[_0xaa29[11]](function(_0x7f87x9){return handleError(_0x7f87x8,_0x7f87x9)})};exports[_0xaa29[32]]= function(_0x7f87xa,_0x7f87x8,_0x7f87xd){return OpenchannelMessage[_0xaa29[25]](_0x7f87xa[_0xaa29[24]][_0xaa29[18]])[_0xaa29[12]](function(_0x7f87xf){return _0x7f87xf[_0xaa29[35]]({include:[{model:OpenchannelAccount},{model:OpenchannelMessage,include:[{model:User,attributes:[_0xaa29[18],_0xaa29[27],_0xaa29[28],_0xaa29[29]]}]},{model:User,attributes:[_0xaa29[18],_0xaa29[27],_0xaa29[28],_0xaa29[29]]}]})})[_0xaa29[12]](function(_0x7f87xc){return _0x7f87x8[_0xaa29[8]](_0x7f87xc)})[_0xaa29[11]](function(_0x7f87x9){console[_0xaa29[34]](_0xaa29[33],_0x7f87x9);return handleError(_0x7f87x8,_0x7f87x9)})};exports[_0xaa29[36]]= function(_0x7f87xa,_0x7f87x8){return OpenchannelRoom[_0xaa29[36]](_0x7f87xa[_0xaa29[37]])[_0xaa29[12]](function(_0x7f87xf){return _0x7f87x8[_0xaa29[9]](201)[_0xaa29[8]](_0x7f87xf)})[_0xaa29[11]](function(_0x7f87x9){return handleError(_0x7f87x8,_0x7f87x9)})};exports[_0xaa29[38]]= function(_0x7f87xa,_0x7f87x8,_0x7f87xd){_0x7f87xa[_0xaa29[37]][_0xaa29[39]]= _0x7f87xa[_0xaa29[19]][_0xaa29[18]];_0x7f87xa[_0xaa29[37]][_0xaa29[40]]= _0x7f87xa[_0xaa29[24]][_0xaa29[18]];return OpenchannelMessage[_0xaa29[36]](_0x7f87xa[_0xaa29[37]])[_0xaa29[12]](function(_0x7f87xf){return _0x7f87x8[_0xaa29[9]](201)[_0xaa29[8]](_0x7f87xf)})[_0xaa29[11]](function(_0x7f87x9){return handleError(_0x7f87x8,_0x7f87x9)})};exports[_0xaa29[41]]= function(_0x7f87xa,_0x7f87x8){if(_0x7f87xa[_0xaa29[37]][_0xaa29[18]]){delete _0x7f87xa[_0xaa29[37]][_0xaa29[18]]};return OpenchannelRoom[_0xaa29[25]](_0x7f87xa[_0xaa29[24]][_0xaa29[18]])[_0xaa29[12]](function(_0x7f87xc){if(!_0x7f87xc){return _0x7f87x8[_0xaa29[23]](404)};var _0x7f87x10=_[_0xaa29[42]](_0x7f87xc,_0x7f87xa[_0xaa29[37]]);return _0x7f87x10[_0xaa29[43]]()})[_0xaa29[12]](function(_0x7f87xc){return _0x7f87x8[_0xaa29[9]](200)[_0xaa29[8]](_0x7f87xc)})[_0xaa29[11]](function(_0x7f87x9){return handleError(_0x7f87x8,_0x7f87x9)})};exports[_0xaa29[44]]= function(_0x7f87xa,_0x7f87x8,_0x7f87xd){return OpenchannelRoom[_0xaa29[25]](_0x7f87xa[_0xaa29[24]][_0xaa29[18]])[_0xaa29[12]](function(_0x7f87xc){if(!_0x7f87xc){return _0x7f87x8[_0xaa29[23]](404)};return _0x7f87xc[_0xaa29[46]](_0x7f87xa[_0xaa29[37]][_0xaa29[45]],{individualHooks:true})})[_0xaa29[12]](function(){return _0x7f87x8[_0xaa29[23]](200)})[_0xaa29[11]](function(_0x7f87x9){return handleError(_0x7f87x8,_0x7f87x9)})};exports[_0xaa29[47]]= function(_0x7f87xa,_0x7f87x8){return OpenchannelRoom[_0xaa29[25]](_0x7f87xa[_0xaa29[24]][_0xaa29[18]])[_0xaa29[12]](function(_0x7f87xc){if(!_0x7f87xc){return _0x7f87x8[_0xaa29[23]](404)};return _0x7f87xc[_0xaa29[47]]()})[_0xaa29[12]](function(){return _0x7f87x8[_0xaa29[23]](204)})[_0xaa29[11]](function(_0x7f87x9){return handleError(_0x7f87x8,_0x7f87x9)})};exports[_0xaa29[48]]= function(_0x7f87xa,_0x7f87x8){return OpenchannelRoom[_0xaa29[47]]({where:{id:_0x7f87xa[_0xaa29[13]][_0xaa29[49]]},individualHooks:true})[_0xaa29[12]](function(){return _0x7f87x8[_0xaa29[23]](200)})[_0xaa29[11]](function(_0x7f87x9){return handleError(_0x7f87x8,_0x7f87x9)})};exports[_0xaa29[50]]= function(_0x7f87xa,_0x7f87x8,_0x7f87xd){var _0x7f87x11={tags:_0x7f87xa[_0xaa29[37]][_0xaa29[51]]};var _0x7f87x12={where:{id:_0x7f87xa[_0xaa29[24]][_0xaa29[18]][_0xaa29[53]](_0xaa29[52])}};return OpenchannelRoom[_0xaa29[41]](_0x7f87x11,_0x7f87x12)[_0xaa29[12]](function(_0x7f87x13){if(!_0x7f87x13){return _0x7f87x8[_0xaa29[23]](404)};return _0x7f87x13})[_0xaa29[12]](function(_0x7f87x13){return _0x7f87x8[_0xaa29[23]](200)})[_0xaa29[11]](function(_0x7f87x9){return handleError(_0x7f87x8,_0x7f87x9)})}
\ No newline at end of file
+var _0xf830=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x55\x73\x65\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x64\x65\x66\x61\x75\x6C\x74","\x61\x67\x65\x6E\x74","\x69\x64","\x75\x73\x65\x72","\x73\x63\x6F\x70\x65","\x72\x6F\x6C\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x73\x68\x6F\x77\x41\x67\x65\x6E\x74\x73","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x67\x65\x74\x52\x6F\x6F\x6D\x42\x79\x4D\x65\x73\x73\x61\x67\x65","\x65\x72\x72","\x6C\x6F\x67","\x67\x65\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x52\x6F\x6F\x6D","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x4D\x65\x73\x73\x61\x67\x65","\x55\x73\x65\x72\x49\x64","\x53\x6D\x73\x52\x6F\x6F\x6D\x49\x64","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x75\x70\x64\x61\x74\x65\x41\x67\x65\x6E\x74\x73","\x61\x67\x65\x6E\x74\x73","\x73\x65\x74\x55\x73\x65\x72\x73","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\x75\x70\x64\x61\x74\x65\x50\x61\x74\x63\x68","\x74\x61\x67\x73","\x2C","\x73\x70\x6C\x69\x74"];_0xf830[0];var _=require(_0xf830[1]);var Util=require(_0xf830[2]);var OpenchannelRoom=require(_0xf830[4])[_0xf830[3]];var OpenchannelMessage=require(_0xf830[4])[_0xf830[5]];var OpenchannelAccount=require(_0xf830[4])[_0xf830[6]];var User=require(_0xf830[4])[_0xf830[7]];function handleError(_0x564dx8,_0x564dx9){return _0x564dx8[_0xf830[9]](500)[_0xf830[8]](_0x564dx9)}exports[_0xf830[10]]= function(_0x564dxa,_0x564dx8){switch(_0x564dxa[_0xf830[19]][_0xf830[21]]){case _0xf830[17]:return OpenchannelRoom[_0xf830[20]](_0xf830[16],{method:[_0xf830[17],_0x564dxa[_0xf830[19]][_0xf830[18]]]})[_0xf830[15]](Util[_0xf830[14]](_0x564dxa[_0xf830[13]]))[_0xf830[12]](function(_0x564dxb){return _0x564dx8[_0xf830[9]](200)[_0xf830[8]](_0x564dxb)})[_0xf830[11]](function(_0x564dx9){return handleError(_0x564dx8,_0x564dx9)});default:return OpenchannelRoom[_0xf830[20]](_0xf830[16])[_0xf830[15]](Util[_0xf830[14]](_0x564dxa[_0xf830[13]]))[_0xf830[12]](function(_0x564dxb){return _0x564dx8[_0xf830[9]](200)[_0xf830[8]](_0x564dxb)})[_0xf830[11]](function(_0x564dx9){return handleError(_0x564dx8,_0x564dx9)})}};exports[_0xf830[22]]= function(_0x564dxa,_0x564dx8){return OpenchannelRoom[_0xf830[20]](_0xf830[16])[_0xf830[25]](_0x564dxa[_0xf830[24]][_0xf830[18]])[_0xf830[12]](function(_0x564dxc){if(!_0x564dxc){return _0x564dx8[_0xf830[23]](404)};return _0x564dx8[_0xf830[8]](_0x564dxc)})[_0xf830[11]](function(_0x564dx9){return handleError(_0x564dx8,_0x564dx9)})};exports[_0xf830[26]]= function(_0x564dxa,_0x564dx8,_0x564dxd){return OpenchannelRoom[_0xf830[25]](_0x564dxa[_0xf830[24]][_0xf830[18]])[_0xf830[12]](function(_0x564dxc){if(!_0x564dxc){return _0x564dx8[_0xf830[23]](404)};return _0x564dxc[_0xf830[31]]({attributes:[_0xf830[18],_0xf830[27],_0xf830[28],_0xf830[29],_0xf830[21],_0xf830[30]]})})[_0xf830[12]](function(_0x564dxe){return _0x564dx8[_0xf830[8]](_0x564dxe)})[_0xf830[11]](function(_0x564dx9){return handleError(_0x564dx8,_0x564dx9)})};exports[_0xf830[32]]= function(_0x564dxa,_0x564dx8,_0x564dxd){return OpenchannelMessage[_0xf830[25]](_0x564dxa[_0xf830[24]][_0xf830[18]])[_0xf830[12]](function(_0x564dxf){return _0x564dxf[_0xf830[35]]({include:[{model:OpenchannelAccount},{model:OpenchannelMessage,include:[{model:User,attributes:[_0xf830[18],_0xf830[27],_0xf830[28],_0xf830[29]]}]},{model:User,attributes:[_0xf830[18],_0xf830[27],_0xf830[28],_0xf830[29]]}]})})[_0xf830[12]](function(_0x564dxc){return _0x564dx8[_0xf830[8]](_0x564dxc)})[_0xf830[11]](function(_0x564dx9){console[_0xf830[34]](_0xf830[33],_0x564dx9);return handleError(_0x564dx8,_0x564dx9)})};exports[_0xf830[36]]= function(_0x564dxa,_0x564dx8){return OpenchannelRoom[_0xf830[36]](_0x564dxa[_0xf830[37]])[_0xf830[12]](function(_0x564dxf){return _0x564dx8[_0xf830[9]](201)[_0xf830[8]](_0x564dxf)})[_0xf830[11]](function(_0x564dx9){return handleError(_0x564dx8,_0x564dx9)})};exports[_0xf830[38]]= function(_0x564dxa,_0x564dx8,_0x564dxd){_0x564dxa[_0xf830[37]][_0xf830[39]]= _0x564dxa[_0xf830[19]][_0xf830[18]];_0x564dxa[_0xf830[37]][_0xf830[40]]= _0x564dxa[_0xf830[24]][_0xf830[18]];return OpenchannelMessage[_0xf830[36]](_0x564dxa[_0xf830[37]])[_0xf830[12]](function(_0x564dxf){return _0x564dx8[_0xf830[9]](201)[_0xf830[8]](_0x564dxf)})[_0xf830[11]](function(_0x564dx9){return handleError(_0x564dx8,_0x564dx9)})};exports[_0xf830[41]]= function(_0x564dxa,_0x564dx8){if(_0x564dxa[_0xf830[37]][_0xf830[18]]){delete _0x564dxa[_0xf830[37]][_0xf830[18]]};return OpenchannelRoom[_0xf830[25]](_0x564dxa[_0xf830[24]][_0xf830[18]])[_0xf830[12]](function(_0x564dxc){if(!_0x564dxc){return _0x564dx8[_0xf830[23]](404)};var _0x564dx10=_[_0xf830[42]](_0x564dxc,_0x564dxa[_0xf830[37]]);return _0x564dx10[_0xf830[43]]()})[_0xf830[12]](function(_0x564dxc){return _0x564dx8[_0xf830[9]](200)[_0xf830[8]](_0x564dxc)})[_0xf830[11]](function(_0x564dx9){return handleError(_0x564dx8,_0x564dx9)})};exports[_0xf830[44]]= function(_0x564dxa,_0x564dx8,_0x564dxd){return OpenchannelRoom[_0xf830[25]](_0x564dxa[_0xf830[24]][_0xf830[18]])[_0xf830[12]](function(_0x564dxc){if(!_0x564dxc){return _0x564dx8[_0xf830[23]](404)};return _0x564dxc[_0xf830[46]](_0x564dxa[_0xf830[37]][_0xf830[45]],{individualHooks:true})})[_0xf830[12]](function(){return _0x564dx8[_0xf830[23]](200)})[_0xf830[11]](function(_0x564dx9){return handleError(_0x564dx8,_0x564dx9)})};exports[_0xf830[47]]= function(_0x564dxa,_0x564dx8){return OpenchannelRoom[_0xf830[25]](_0x564dxa[_0xf830[24]][_0xf830[18]])[_0xf830[12]](function(_0x564dxc){if(!_0x564dxc){return _0x564dx8[_0xf830[23]](404)};return _0x564dxc[_0xf830[47]]()})[_0xf830[12]](function(){return _0x564dx8[_0xf830[23]](204)})[_0xf830[11]](function(_0x564dx9){return handleError(_0x564dx8,_0x564dx9)})};exports[_0xf830[48]]= function(_0x564dxa,_0x564dx8){return OpenchannelRoom[_0xf830[47]]({where:{id:_0x564dxa[_0xf830[13]][_0xf830[49]]},individualHooks:true})[_0xf830[12]](function(){return _0x564dx8[_0xf830[23]](200)})[_0xf830[11]](function(_0x564dx9){return handleError(_0x564dx8,_0x564dx9)})};exports[_0xf830[50]]= function(_0x564dxa,_0x564dx8,_0x564dxd){var _0x564dx11={tags:_0x564dxa[_0xf830[37]][_0xf830[51]]};var _0x564dx12={where:{id:_0x564dxa[_0xf830[24]][_0xf830[18]][_0xf830[53]](_0xf830[52])}};return OpenchannelRoom[_0xf830[41]](_0x564dx11,_0x564dx12)[_0xf830[12]](function(_0x564dx13){if(!_0x564dx13){return _0x564dx8[_0xf830[23]](404)};return _0x564dx13})[_0xf830[12]](function(_0x564dx13){return _0x564dx8[_0xf830[23]](200)})[_0xf830[11]](function(_0x564dx9){return handleError(_0x564dx8,_0x564dx9)})}
\ No newline at end of file