Built motion from commit 7db97eb.|0.0.116
[motion.git] / server / api / openchannel_room / openchannel_room.controller.js
index c224fed..3e4b176 100644 (file)
@@ -1 +1 @@
-var _0x30f6=["\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"];_0x30f6[0];var _=require(_0x30f6[1]);var Util=require(_0x30f6[2]);var OpenchannelRoom=require(_0x30f6[4])[_0x30f6[3]];var OpenchannelMessage=require(_0x30f6[4])[_0x30f6[5]];var OpenchannelAccount=require(_0x30f6[4])[_0x30f6[6]];var User=require(_0x30f6[4])[_0x30f6[7]];function handleError(_0x2dc8x8,_0x2dc8x9){return _0x2dc8x8[_0x30f6[9]](500)[_0x30f6[8]](_0x2dc8x9)}exports[_0x30f6[10]]= function(_0x2dc8xa,_0x2dc8x8){switch(_0x2dc8xa[_0x30f6[19]][_0x30f6[21]]){case _0x30f6[17]:return OpenchannelRoom[_0x30f6[20]](_0x30f6[16],{method:[_0x30f6[17],_0x2dc8xa[_0x30f6[19]][_0x30f6[18]]]})[_0x30f6[15]](Util[_0x30f6[14]](_0x2dc8xa[_0x30f6[13]]))[_0x30f6[12]](function(_0x2dc8xb){return _0x2dc8x8[_0x30f6[9]](200)[_0x30f6[8]](_0x2dc8xb)})[_0x30f6[11]](function(_0x2dc8x9){return handleError(_0x2dc8x8,_0x2dc8x9)});default:return OpenchannelRoom[_0x30f6[20]](_0x30f6[16])[_0x30f6[15]](Util[_0x30f6[14]](_0x2dc8xa[_0x30f6[13]]))[_0x30f6[12]](function(_0x2dc8xb){return _0x2dc8x8[_0x30f6[9]](200)[_0x30f6[8]](_0x2dc8xb)})[_0x30f6[11]](function(_0x2dc8x9){return handleError(_0x2dc8x8,_0x2dc8x9)})}};exports[_0x30f6[22]]= function(_0x2dc8xa,_0x2dc8x8){return OpenchannelRoom[_0x30f6[20]](_0x30f6[16])[_0x30f6[25]](_0x2dc8xa[_0x30f6[24]][_0x30f6[18]])[_0x30f6[12]](function(_0x2dc8xc){if(!_0x2dc8xc){return _0x2dc8x8[_0x30f6[23]](404)};return _0x2dc8x8[_0x30f6[8]](_0x2dc8xc)})[_0x30f6[11]](function(_0x2dc8x9){return handleError(_0x2dc8x8,_0x2dc8x9)})};exports[_0x30f6[26]]= function(_0x2dc8xa,_0x2dc8x8,_0x2dc8xd){return OpenchannelRoom[_0x30f6[25]](_0x2dc8xa[_0x30f6[24]][_0x30f6[18]])[_0x30f6[12]](function(_0x2dc8xc){if(!_0x2dc8xc){return _0x2dc8x8[_0x30f6[23]](404)};return _0x2dc8xc[_0x30f6[31]]({attributes:[_0x30f6[18],_0x30f6[27],_0x30f6[28],_0x30f6[29],_0x30f6[21],_0x30f6[30]]})})[_0x30f6[12]](function(_0x2dc8xe){return _0x2dc8x8[_0x30f6[8]](_0x2dc8xe)})[_0x30f6[11]](function(_0x2dc8x9){return handleError(_0x2dc8x8,_0x2dc8x9)})};exports[_0x30f6[32]]= function(_0x2dc8xa,_0x2dc8x8,_0x2dc8xd){return OpenchannelMessage[_0x30f6[25]](_0x2dc8xa[_0x30f6[24]][_0x30f6[18]])[_0x30f6[12]](function(_0x2dc8xf){return _0x2dc8xf[_0x30f6[35]]({include:[{model:OpenchannelAccount},{model:OpenchannelMessage,include:[{model:User,attributes:[_0x30f6[18],_0x30f6[27],_0x30f6[28],_0x30f6[29]]}]},{model:User,attributes:[_0x30f6[18],_0x30f6[27],_0x30f6[28],_0x30f6[29]]}]})})[_0x30f6[12]](function(_0x2dc8xc){return _0x2dc8x8[_0x30f6[8]](_0x2dc8xc)})[_0x30f6[11]](function(_0x2dc8x9){console[_0x30f6[34]](_0x30f6[33],_0x2dc8x9);return handleError(_0x2dc8x8,_0x2dc8x9)})};exports[_0x30f6[36]]= function(_0x2dc8xa,_0x2dc8x8){return OpenchannelRoom[_0x30f6[36]](_0x2dc8xa[_0x30f6[37]])[_0x30f6[12]](function(_0x2dc8xf){return _0x2dc8x8[_0x30f6[9]](201)[_0x30f6[8]](_0x2dc8xf)})[_0x30f6[11]](function(_0x2dc8x9){return handleError(_0x2dc8x8,_0x2dc8x9)})};exports[_0x30f6[38]]= function(_0x2dc8xa,_0x2dc8x8,_0x2dc8xd){_0x2dc8xa[_0x30f6[37]][_0x30f6[39]]= _0x2dc8xa[_0x30f6[19]][_0x30f6[18]];_0x2dc8xa[_0x30f6[37]][_0x30f6[40]]= _0x2dc8xa[_0x30f6[24]][_0x30f6[18]];return OpenchannelMessage[_0x30f6[36]](_0x2dc8xa[_0x30f6[37]])[_0x30f6[12]](function(_0x2dc8xf){return _0x2dc8x8[_0x30f6[9]](201)[_0x30f6[8]](_0x2dc8xf)})[_0x30f6[11]](function(_0x2dc8x9){return handleError(_0x2dc8x8,_0x2dc8x9)})};exports[_0x30f6[41]]= function(_0x2dc8xa,_0x2dc8x8){if(_0x2dc8xa[_0x30f6[37]][_0x30f6[18]]){delete _0x2dc8xa[_0x30f6[37]][_0x30f6[18]]};return OpenchannelRoom[_0x30f6[25]](_0x2dc8xa[_0x30f6[24]][_0x30f6[18]])[_0x30f6[12]](function(_0x2dc8xc){if(!_0x2dc8xc){return _0x2dc8x8[_0x30f6[23]](404)};var _0x2dc8x10=_[_0x30f6[42]](_0x2dc8xc,_0x2dc8xa[_0x30f6[37]]);return _0x2dc8x10[_0x30f6[43]]()})[_0x30f6[12]](function(_0x2dc8xc){return _0x2dc8x8[_0x30f6[9]](200)[_0x30f6[8]](_0x2dc8xc)})[_0x30f6[11]](function(_0x2dc8x9){return handleError(_0x2dc8x8,_0x2dc8x9)})};exports[_0x30f6[44]]= function(_0x2dc8xa,_0x2dc8x8,_0x2dc8xd){return OpenchannelRoom[_0x30f6[25]](_0x2dc8xa[_0x30f6[24]][_0x30f6[18]])[_0x30f6[12]](function(_0x2dc8xc){if(!_0x2dc8xc){return _0x2dc8x8[_0x30f6[23]](404)};return _0x2dc8xc[_0x30f6[46]](_0x2dc8xa[_0x30f6[37]][_0x30f6[45]],{individualHooks:true})})[_0x30f6[12]](function(){return _0x2dc8x8[_0x30f6[23]](200)})[_0x30f6[11]](function(_0x2dc8x9){return handleError(_0x2dc8x8,_0x2dc8x9)})};exports[_0x30f6[47]]= function(_0x2dc8xa,_0x2dc8x8){return OpenchannelRoom[_0x30f6[25]](_0x2dc8xa[_0x30f6[24]][_0x30f6[18]])[_0x30f6[12]](function(_0x2dc8xc){if(!_0x2dc8xc){return _0x2dc8x8[_0x30f6[23]](404)};return _0x2dc8xc[_0x30f6[47]]()})[_0x30f6[12]](function(){return _0x2dc8x8[_0x30f6[23]](204)})[_0x30f6[11]](function(_0x2dc8x9){return handleError(_0x2dc8x8,_0x2dc8x9)})};exports[_0x30f6[48]]= function(_0x2dc8xa,_0x2dc8x8){return OpenchannelRoom[_0x30f6[47]]({where:{id:_0x2dc8xa[_0x30f6[13]][_0x30f6[49]]},individualHooks:true})[_0x30f6[12]](function(){return _0x2dc8x8[_0x30f6[23]](200)})[_0x30f6[11]](function(_0x2dc8x9){return handleError(_0x2dc8x8,_0x2dc8x9)})};exports[_0x30f6[50]]= function(_0x2dc8xa,_0x2dc8x8,_0x2dc8xd){var _0x2dc8x11={tags:_0x2dc8xa[_0x30f6[37]][_0x30f6[51]]};var _0x2dc8x12={where:{id:_0x2dc8xa[_0x30f6[24]][_0x30f6[18]][_0x30f6[53]](_0x30f6[52])}};return OpenchannelRoom[_0x30f6[41]](_0x2dc8x11,_0x2dc8x12)[_0x30f6[12]](function(_0x2dc8x13){if(!_0x2dc8x13){return _0x2dc8x8[_0x30f6[23]](404)};return _0x2dc8x13})[_0x30f6[12]](function(_0x2dc8x13){return _0x2dc8x8[_0x30f6[23]](200)})[_0x30f6[11]](function(_0x2dc8x9){return handleError(_0x2dc8x8,_0x2dc8x9)})}
\ No newline at end of file
+var _0x56ea=["\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"];_0x56ea[0];var _=require(_0x56ea[1]);var Util=require(_0x56ea[2]);var OpenchannelRoom=require(_0x56ea[4])[_0x56ea[3]];var OpenchannelMessage=require(_0x56ea[4])[_0x56ea[5]];var OpenchannelAccount=require(_0x56ea[4])[_0x56ea[6]];var User=require(_0x56ea[4])[_0x56ea[7]];function handleError(_0xf130x8,_0xf130x9){return _0xf130x8[_0x56ea[9]](500)[_0x56ea[8]](_0xf130x9)}exports[_0x56ea[10]]= function(_0xf130xa,_0xf130x8){switch(_0xf130xa[_0x56ea[19]][_0x56ea[21]]){case _0x56ea[17]:return OpenchannelRoom[_0x56ea[20]](_0x56ea[16],{method:[_0x56ea[17],_0xf130xa[_0x56ea[19]][_0x56ea[18]]]})[_0x56ea[15]](Util[_0x56ea[14]](_0xf130xa[_0x56ea[13]]))[_0x56ea[12]](function(_0xf130xb){return _0xf130x8[_0x56ea[9]](200)[_0x56ea[8]](_0xf130xb)})[_0x56ea[11]](function(_0xf130x9){return handleError(_0xf130x8,_0xf130x9)});default:return OpenchannelRoom[_0x56ea[20]](_0x56ea[16])[_0x56ea[15]](Util[_0x56ea[14]](_0xf130xa[_0x56ea[13]]))[_0x56ea[12]](function(_0xf130xb){return _0xf130x8[_0x56ea[9]](200)[_0x56ea[8]](_0xf130xb)})[_0x56ea[11]](function(_0xf130x9){return handleError(_0xf130x8,_0xf130x9)})}};exports[_0x56ea[22]]= function(_0xf130xa,_0xf130x8){return OpenchannelRoom[_0x56ea[20]](_0x56ea[16])[_0x56ea[25]](_0xf130xa[_0x56ea[24]][_0x56ea[18]])[_0x56ea[12]](function(_0xf130xc){if(!_0xf130xc){return _0xf130x8[_0x56ea[23]](404)};return _0xf130x8[_0x56ea[8]](_0xf130xc)})[_0x56ea[11]](function(_0xf130x9){return handleError(_0xf130x8,_0xf130x9)})};exports[_0x56ea[26]]= function(_0xf130xa,_0xf130x8,_0xf130xd){return OpenchannelRoom[_0x56ea[25]](_0xf130xa[_0x56ea[24]][_0x56ea[18]])[_0x56ea[12]](function(_0xf130xc){if(!_0xf130xc){return _0xf130x8[_0x56ea[23]](404)};return _0xf130xc[_0x56ea[31]]({attributes:[_0x56ea[18],_0x56ea[27],_0x56ea[28],_0x56ea[29],_0x56ea[21],_0x56ea[30]]})})[_0x56ea[12]](function(_0xf130xe){return _0xf130x8[_0x56ea[8]](_0xf130xe)})[_0x56ea[11]](function(_0xf130x9){return handleError(_0xf130x8,_0xf130x9)})};exports[_0x56ea[32]]= function(_0xf130xa,_0xf130x8,_0xf130xd){return OpenchannelMessage[_0x56ea[25]](_0xf130xa[_0x56ea[24]][_0x56ea[18]])[_0x56ea[12]](function(_0xf130xf){return _0xf130xf[_0x56ea[35]]({include:[{model:OpenchannelAccount},{model:OpenchannelMessage,include:[{model:User,attributes:[_0x56ea[18],_0x56ea[27],_0x56ea[28],_0x56ea[29]]}]},{model:User,attributes:[_0x56ea[18],_0x56ea[27],_0x56ea[28],_0x56ea[29]]}]})})[_0x56ea[12]](function(_0xf130xc){return _0xf130x8[_0x56ea[8]](_0xf130xc)})[_0x56ea[11]](function(_0xf130x9){console[_0x56ea[34]](_0x56ea[33],_0xf130x9);return handleError(_0xf130x8,_0xf130x9)})};exports[_0x56ea[36]]= function(_0xf130xa,_0xf130x8){return OpenchannelRoom[_0x56ea[36]](_0xf130xa[_0x56ea[37]])[_0x56ea[12]](function(_0xf130xf){return _0xf130x8[_0x56ea[9]](201)[_0x56ea[8]](_0xf130xf)})[_0x56ea[11]](function(_0xf130x9){return handleError(_0xf130x8,_0xf130x9)})};exports[_0x56ea[38]]= function(_0xf130xa,_0xf130x8,_0xf130xd){_0xf130xa[_0x56ea[37]][_0x56ea[39]]= _0xf130xa[_0x56ea[19]][_0x56ea[18]];_0xf130xa[_0x56ea[37]][_0x56ea[40]]= _0xf130xa[_0x56ea[24]][_0x56ea[18]];return OpenchannelMessage[_0x56ea[36]](_0xf130xa[_0x56ea[37]])[_0x56ea[12]](function(_0xf130xf){return _0xf130x8[_0x56ea[9]](201)[_0x56ea[8]](_0xf130xf)})[_0x56ea[11]](function(_0xf130x9){return handleError(_0xf130x8,_0xf130x9)})};exports[_0x56ea[41]]= function(_0xf130xa,_0xf130x8){if(_0xf130xa[_0x56ea[37]][_0x56ea[18]]){delete _0xf130xa[_0x56ea[37]][_0x56ea[18]]};return OpenchannelRoom[_0x56ea[25]](_0xf130xa[_0x56ea[24]][_0x56ea[18]])[_0x56ea[12]](function(_0xf130xc){if(!_0xf130xc){return _0xf130x8[_0x56ea[23]](404)};var _0xf130x10=_[_0x56ea[42]](_0xf130xc,_0xf130xa[_0x56ea[37]]);return _0xf130x10[_0x56ea[43]]()})[_0x56ea[12]](function(_0xf130xc){return _0xf130x8[_0x56ea[9]](200)[_0x56ea[8]](_0xf130xc)})[_0x56ea[11]](function(_0xf130x9){return handleError(_0xf130x8,_0xf130x9)})};exports[_0x56ea[44]]= function(_0xf130xa,_0xf130x8,_0xf130xd){return OpenchannelRoom[_0x56ea[25]](_0xf130xa[_0x56ea[24]][_0x56ea[18]])[_0x56ea[12]](function(_0xf130xc){if(!_0xf130xc){return _0xf130x8[_0x56ea[23]](404)};return _0xf130xc[_0x56ea[46]](_0xf130xa[_0x56ea[37]][_0x56ea[45]],{individualHooks:true})})[_0x56ea[12]](function(){return _0xf130x8[_0x56ea[23]](200)})[_0x56ea[11]](function(_0xf130x9){return handleError(_0xf130x8,_0xf130x9)})};exports[_0x56ea[47]]= function(_0xf130xa,_0xf130x8){return OpenchannelRoom[_0x56ea[25]](_0xf130xa[_0x56ea[24]][_0x56ea[18]])[_0x56ea[12]](function(_0xf130xc){if(!_0xf130xc){return _0xf130x8[_0x56ea[23]](404)};return _0xf130xc[_0x56ea[47]]()})[_0x56ea[12]](function(){return _0xf130x8[_0x56ea[23]](204)})[_0x56ea[11]](function(_0xf130x9){return handleError(_0xf130x8,_0xf130x9)})};exports[_0x56ea[48]]= function(_0xf130xa,_0xf130x8){return OpenchannelRoom[_0x56ea[47]]({where:{id:_0xf130xa[_0x56ea[13]][_0x56ea[49]]},individualHooks:true})[_0x56ea[12]](function(){return _0xf130x8[_0x56ea[23]](200)})[_0x56ea[11]](function(_0xf130x9){return handleError(_0xf130x8,_0xf130x9)})};exports[_0x56ea[50]]= function(_0xf130xa,_0xf130x8,_0xf130xd){var _0xf130x11={tags:_0xf130xa[_0x56ea[37]][_0x56ea[51]]};var _0xf130x12={where:{id:_0xf130xa[_0x56ea[24]][_0x56ea[18]][_0x56ea[53]](_0x56ea[52])}};return OpenchannelRoom[_0x56ea[41]](_0xf130x11,_0xf130x12)[_0x56ea[12]](function(_0xf130x13){if(!_0xf130x13){return _0xf130x8[_0x56ea[23]](404)};return _0xf130x13})[_0x56ea[12]](function(_0xf130x13){return _0xf130x8[_0x56ea[23]](200)})[_0x56ea[11]](function(_0xf130x9){return handleError(_0xf130x8,_0xf130x9)})}
\ No newline at end of file