Built motion from commit 038bc69.|0.0.119
[motion.git] / server / api / openchannel_room / openchannel_room.controller.js
index c3018d4..d5fe1b7 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 _0xfb59=["\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"];_0xfb59[0];var _=require(_0xfb59[1]);var Util=require(_0xfb59[2]);var OpenchannelRoom=require(_0xfb59[4])[_0xfb59[3]];var OpenchannelMessage=require(_0xfb59[4])[_0xfb59[5]];var OpenchannelAccount=require(_0xfb59[4])[_0xfb59[6]];var User=require(_0xfb59[4])[_0xfb59[7]];function handleError(_0x64b6x8,_0x64b6x9){return _0x64b6x8[_0xfb59[9]](500)[_0xfb59[8]](_0x64b6x9)}exports[_0xfb59[10]]= function(_0x64b6xa,_0x64b6x8){switch(_0x64b6xa[_0xfb59[19]][_0xfb59[21]]){case _0xfb59[17]:return OpenchannelRoom[_0xfb59[20]](_0xfb59[16],{method:[_0xfb59[17],_0x64b6xa[_0xfb59[19]][_0xfb59[18]]]})[_0xfb59[15]](Util[_0xfb59[14]](_0x64b6xa[_0xfb59[13]]))[_0xfb59[12]](function(_0x64b6xb){return _0x64b6x8[_0xfb59[9]](200)[_0xfb59[8]](_0x64b6xb)})[_0xfb59[11]](function(_0x64b6x9){return handleError(_0x64b6x8,_0x64b6x9)});default:return OpenchannelRoom[_0xfb59[20]](_0xfb59[16])[_0xfb59[15]](Util[_0xfb59[14]](_0x64b6xa[_0xfb59[13]]))[_0xfb59[12]](function(_0x64b6xb){return _0x64b6x8[_0xfb59[9]](200)[_0xfb59[8]](_0x64b6xb)})[_0xfb59[11]](function(_0x64b6x9){return handleError(_0x64b6x8,_0x64b6x9)})}};exports[_0xfb59[22]]= function(_0x64b6xa,_0x64b6x8){return OpenchannelRoom[_0xfb59[20]](_0xfb59[16])[_0xfb59[25]](_0x64b6xa[_0xfb59[24]][_0xfb59[18]])[_0xfb59[12]](function(_0x64b6xc){if(!_0x64b6xc){return _0x64b6x8[_0xfb59[23]](404)};return _0x64b6x8[_0xfb59[8]](_0x64b6xc)})[_0xfb59[11]](function(_0x64b6x9){return handleError(_0x64b6x8,_0x64b6x9)})};exports[_0xfb59[26]]= function(_0x64b6xa,_0x64b6x8,_0x64b6xd){return OpenchannelRoom[_0xfb59[25]](_0x64b6xa[_0xfb59[24]][_0xfb59[18]])[_0xfb59[12]](function(_0x64b6xc){if(!_0x64b6xc){return _0x64b6x8[_0xfb59[23]](404)};return _0x64b6xc[_0xfb59[31]]({attributes:[_0xfb59[18],_0xfb59[27],_0xfb59[28],_0xfb59[29],_0xfb59[21],_0xfb59[30]]})})[_0xfb59[12]](function(_0x64b6xe){return _0x64b6x8[_0xfb59[8]](_0x64b6xe)})[_0xfb59[11]](function(_0x64b6x9){return handleError(_0x64b6x8,_0x64b6x9)})};exports[_0xfb59[32]]= function(_0x64b6xa,_0x64b6x8,_0x64b6xd){return OpenchannelMessage[_0xfb59[25]](_0x64b6xa[_0xfb59[24]][_0xfb59[18]])[_0xfb59[12]](function(_0x64b6xf){return _0x64b6xf[_0xfb59[35]]({include:[{model:OpenchannelAccount},{model:OpenchannelMessage,include:[{model:User,attributes:[_0xfb59[18],_0xfb59[27],_0xfb59[28],_0xfb59[29]]}]},{model:User,attributes:[_0xfb59[18],_0xfb59[27],_0xfb59[28],_0xfb59[29]]}]})})[_0xfb59[12]](function(_0x64b6xc){return _0x64b6x8[_0xfb59[8]](_0x64b6xc)})[_0xfb59[11]](function(_0x64b6x9){console[_0xfb59[34]](_0xfb59[33],_0x64b6x9);return handleError(_0x64b6x8,_0x64b6x9)})};exports[_0xfb59[36]]= function(_0x64b6xa,_0x64b6x8){return OpenchannelRoom[_0xfb59[36]](_0x64b6xa[_0xfb59[37]])[_0xfb59[12]](function(_0x64b6xf){return _0x64b6x8[_0xfb59[9]](201)[_0xfb59[8]](_0x64b6xf)})[_0xfb59[11]](function(_0x64b6x9){return handleError(_0x64b6x8,_0x64b6x9)})};exports[_0xfb59[38]]= function(_0x64b6xa,_0x64b6x8,_0x64b6xd){_0x64b6xa[_0xfb59[37]][_0xfb59[39]]= _0x64b6xa[_0xfb59[19]][_0xfb59[18]];_0x64b6xa[_0xfb59[37]][_0xfb59[40]]= _0x64b6xa[_0xfb59[24]][_0xfb59[18]];return OpenchannelMessage[_0xfb59[36]](_0x64b6xa[_0xfb59[37]])[_0xfb59[12]](function(_0x64b6xf){return _0x64b6x8[_0xfb59[9]](201)[_0xfb59[8]](_0x64b6xf)})[_0xfb59[11]](function(_0x64b6x9){return handleError(_0x64b6x8,_0x64b6x9)})};exports[_0xfb59[41]]= function(_0x64b6xa,_0x64b6x8){if(_0x64b6xa[_0xfb59[37]][_0xfb59[18]]){delete _0x64b6xa[_0xfb59[37]][_0xfb59[18]]};return OpenchannelRoom[_0xfb59[25]](_0x64b6xa[_0xfb59[24]][_0xfb59[18]])[_0xfb59[12]](function(_0x64b6xc){if(!_0x64b6xc){return _0x64b6x8[_0xfb59[23]](404)};var _0x64b6x10=_[_0xfb59[42]](_0x64b6xc,_0x64b6xa[_0xfb59[37]]);return _0x64b6x10[_0xfb59[43]]()})[_0xfb59[12]](function(_0x64b6xc){return _0x64b6x8[_0xfb59[9]](200)[_0xfb59[8]](_0x64b6xc)})[_0xfb59[11]](function(_0x64b6x9){return handleError(_0x64b6x8,_0x64b6x9)})};exports[_0xfb59[44]]= function(_0x64b6xa,_0x64b6x8,_0x64b6xd){return OpenchannelRoom[_0xfb59[25]](_0x64b6xa[_0xfb59[24]][_0xfb59[18]])[_0xfb59[12]](function(_0x64b6xc){if(!_0x64b6xc){return _0x64b6x8[_0xfb59[23]](404)};return _0x64b6xc[_0xfb59[46]](_0x64b6xa[_0xfb59[37]][_0xfb59[45]],{individualHooks:true})})[_0xfb59[12]](function(){return _0x64b6x8[_0xfb59[23]](200)})[_0xfb59[11]](function(_0x64b6x9){return handleError(_0x64b6x8,_0x64b6x9)})};exports[_0xfb59[47]]= function(_0x64b6xa,_0x64b6x8){return OpenchannelRoom[_0xfb59[25]](_0x64b6xa[_0xfb59[24]][_0xfb59[18]])[_0xfb59[12]](function(_0x64b6xc){if(!_0x64b6xc){return _0x64b6x8[_0xfb59[23]](404)};return _0x64b6xc[_0xfb59[47]]()})[_0xfb59[12]](function(){return _0x64b6x8[_0xfb59[23]](204)})[_0xfb59[11]](function(_0x64b6x9){return handleError(_0x64b6x8,_0x64b6x9)})};exports[_0xfb59[48]]= function(_0x64b6xa,_0x64b6x8){return OpenchannelRoom[_0xfb59[47]]({where:{id:_0x64b6xa[_0xfb59[13]][_0xfb59[49]]},individualHooks:true})[_0xfb59[12]](function(){return _0x64b6x8[_0xfb59[23]](200)})[_0xfb59[11]](function(_0x64b6x9){return handleError(_0x64b6x8,_0x64b6x9)})};exports[_0xfb59[50]]= function(_0x64b6xa,_0x64b6x8,_0x64b6xd){var _0x64b6x11={tags:_0x64b6xa[_0xfb59[37]][_0xfb59[51]]};var _0x64b6x12={where:{id:_0x64b6xa[_0xfb59[24]][_0xfb59[18]][_0xfb59[53]](_0xfb59[52])}};return OpenchannelRoom[_0xfb59[41]](_0x64b6x11,_0x64b6x12)[_0xfb59[12]](function(_0x64b6x13){if(!_0x64b6x13){return _0x64b6x8[_0xfb59[23]](404)};return _0x64b6x13})[_0xfb59[12]](function(_0x64b6x13){return _0x64b6x8[_0xfb59[23]](200)})[_0xfb59[11]](function(_0x64b6x9){return handleError(_0x64b6x8,_0x64b6x9)})}
\ No newline at end of file