X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FopenchannelMessage%2Findex.js;h=afce4c0da22d8ccfc9b7c610b2a297016b0c4bd1;hb=b9d8fb89c04e2712a06e4d6666f975c8e677d46a;hp=63c24108576c221038225d14380a716f8f4b5e20;hpb=d5b3d400e91cc98c429bfb9d7741cfdb9b495f82;p=motion2.git diff --git a/server/api/openchannelMessage/index.js b/server/api/openchannelMessage/index.js index 63c2410..afce4c0 100644 --- a/server/api/openchannelMessage/index.js +++ b/server/api/openchannelMessage/index.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0xd948=['index','/describe','describe','/:id','show','tracked','openchannelmessage:create','create','put','update','/:id/reject','reject','exports','path','Router','fs-extra','../../config/environment','get','isAuthenticated'];(function(_0x308dcc,_0x2d1178){var _0x361717=function(_0x618aae){while(--_0x618aae){_0x308dcc['push'](_0x308dcc['shift']());}};_0x361717(++_0x2d1178);}(_0xd948,0x12a));var _0x8d94=function(_0x480a7a,_0x1805c7){_0x480a7a=_0x480a7a-0x0;var _0x5d5dcd=_0xd948[_0x480a7a];return _0x5d5dcd;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x8d94('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x8d94('0x1')]();var fs_extra=require(_0x8d94('0x2'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x8d94('0x3'));var controller=require('./openchannelMessage.controller');router[_0x8d94('0x4')]('/',auth[_0x8d94('0x5')](),controller[_0x8d94('0x6')]);router[_0x8d94('0x4')](_0x8d94('0x7'),auth['isAuthenticated'](),controller[_0x8d94('0x8')]);router['get'](_0x8d94('0x9'),auth[_0x8d94('0x5')](),controller[_0x8d94('0xa')]);router['post']('/',auth['isAuthenticated'](),interaction[_0x8d94('0xb')]('openchannel',_0x8d94('0xc')),controller[_0x8d94('0xd')]);router[_0x8d94('0xe')](_0x8d94('0x9'),auth[_0x8d94('0x5')](),controller[_0x8d94('0xf')]);router['put']('/:id/accept',auth[_0x8d94('0x5')](),controller['accept']);router[_0x8d94('0xe')](_0x8d94('0x10'),auth[_0x8d94('0x5')](),controller[_0x8d94('0x11')]);router['delete'](_0x8d94('0x9'),auth[_0x8d94('0x5')](),controller['destroy']);module[_0x8d94('0x12')]=router; \ No newline at end of file +var _0x7a79=['isAuthenticated','index','/describe','describe','/:id','post','tracked','openchannel','openchannelmessage:create','put','update','accept','reject','delete','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','get'];(function(_0x253476,_0x16b31a){var _0x134271=function(_0x20623c){while(--_0x20623c){_0x253476['push'](_0x253476['shift']());}};_0x134271(++_0x16b31a);}(_0x7a79,0x11f));var _0x97a7=function(_0x5a5c11,_0x358f6b){_0x5a5c11=_0x5a5c11-0x0;var _0x5d6ba7=_0x7a79[_0x5a5c11];return _0x5d6ba7;};'use strict';var multer=require('multer');var util=require(_0x97a7('0x0'));var path=require('path');var timeout=require(_0x97a7('0x1'));var express=require(_0x97a7('0x2'));var router=express[_0x97a7('0x3')]();var fs_extra=require(_0x97a7('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x97a7('0x5'));var config=require('../../config/environment');var controller=require('./openchannelMessage.controller');router[_0x97a7('0x6')]('/',auth[_0x97a7('0x7')](),controller[_0x97a7('0x8')]);router[_0x97a7('0x6')](_0x97a7('0x9'),auth[_0x97a7('0x7')](),controller[_0x97a7('0xa')]);router['get'](_0x97a7('0xb'),auth[_0x97a7('0x7')](),controller['show']);router[_0x97a7('0xc')]('/',auth['isAuthenticated'](),interaction[_0x97a7('0xd')](_0x97a7('0xe'),_0x97a7('0xf')),controller['create']);router[_0x97a7('0x10')](_0x97a7('0xb'),auth['isAuthenticated'](),controller[_0x97a7('0x11')]);router[_0x97a7('0x10')]('/:id/accept',auth['isAuthenticated'](),controller[_0x97a7('0x12')]);router[_0x97a7('0x10')]('/:id/reject',auth[_0x97a7('0x7')](),controller[_0x97a7('0x13')]);router[_0x97a7('0x14')](_0x97a7('0xb'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router; \ No newline at end of file