X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FchatGroup%2Findex.js;h=568720f561050d5006c09ca170bea2fc46990db2;hb=c593ef5de079879fb7bfbdd8f8d4d8640e684821;hp=6669f99910feebab54459cdf8d3a01189b1133ae;hpb=7b947914a77b8347fb1d6de0275fa1bbfcdf6ff9;p=motion2.git diff --git a/server/api/chatGroup/index.js b/server/api/chatGroup/index.js index 6669f99..568720f 100644 --- a/server/api/chatGroup/index.js +++ b/server/api/chatGroup/index.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x5a04=['update','destroy','delete','removeMembers','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','show','getUnread','/:id/members','getMembers','getMessages','post','create','addMembers','/:id/messages','addMessage','put','/:id'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x5a04,0xa5));var _0x45a0=function(_0x319b22,_0x32f704){_0x319b22=_0x319b22-0x0;var _0x2b69bf=_0x5a04[_0x319b22];return _0x2b69bf;};'use strict';var multer=require(_0x45a0('0x0'));var util=require(_0x45a0('0x1'));var path=require(_0x45a0('0x2'));var timeout=require(_0x45a0('0x3'));var express=require(_0x45a0('0x4'));var router=express[_0x45a0('0x5')]();var fs_extra=require(_0x45a0('0x6'));var auth=require(_0x45a0('0x7'));var interaction=require(_0x45a0('0x8'));var config=require(_0x45a0('0x9'));var controller=require('./chatGroup.controller');router[_0x45a0('0xa')]('/',auth[_0x45a0('0xb')](),controller[_0x45a0('0xc')]);router[_0x45a0('0xa')](_0x45a0('0xd'),auth[_0x45a0('0xb')](),controller[_0x45a0('0xe')]);router[_0x45a0('0xa')]('/:id',auth[_0x45a0('0xb')](),controller[_0x45a0('0xf')]);router[_0x45a0('0xa')]('/:id/unread',auth['isAuthenticated'](),controller[_0x45a0('0x10')]);router[_0x45a0('0xa')](_0x45a0('0x11'),auth[_0x45a0('0xb')](),controller[_0x45a0('0x12')]);router['get']('/:id/messages',auth[_0x45a0('0xb')](),controller[_0x45a0('0x13')]);router[_0x45a0('0x14')]('/',auth['isAuthenticated'](),controller[_0x45a0('0x15')]);router[_0x45a0('0x14')](_0x45a0('0x11'),auth[_0x45a0('0xb')](),controller[_0x45a0('0x16')]);router['post'](_0x45a0('0x17'),auth[_0x45a0('0xb')](),controller[_0x45a0('0x18')]);router[_0x45a0('0x19')](_0x45a0('0x1a'),auth[_0x45a0('0xb')](),controller[_0x45a0('0x1b')]);router['delete']('/:id',auth[_0x45a0('0xb')](),controller[_0x45a0('0x1c')]);router[_0x45a0('0x1d')](_0x45a0('0x11'),auth[_0x45a0('0xb')](),controller[_0x45a0('0x1e')]);module[_0x45a0('0x1f')]=router; \ No newline at end of file +var _0x4cd8=['isAuthenticated','/describe','describe','/:id','show','/:id/unread','getUnread','getMembers','getMessages','post','create','/:id/members','addMembers','/:id/messages','addMessage','put','update','delete','removeMembers','exports','util','connect-timeout','express','Router','fs-extra','../../config/environment','get'];(function(_0x133277,_0xb1d6b2){var _0x5b4a22=function(_0x484c26){while(--_0x484c26){_0x133277['push'](_0x133277['shift']());}};_0x5b4a22(++_0xb1d6b2);}(_0x4cd8,0x1c4));var _0x84cd=function(_0x31e29a,_0x349c9b){_0x31e29a=_0x31e29a-0x0;var _0x32d892=_0x4cd8[_0x31e29a];return _0x32d892;};'use strict';var multer=require('multer');var util=require(_0x84cd('0x0'));var path=require('path');var timeout=require(_0x84cd('0x1'));var express=require(_0x84cd('0x2'));var router=express[_0x84cd('0x3')]();var fs_extra=require(_0x84cd('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x84cd('0x5'));var controller=require('./chatGroup.controller');router[_0x84cd('0x6')]('/',auth[_0x84cd('0x7')](),controller['index']);router[_0x84cd('0x6')](_0x84cd('0x8'),auth[_0x84cd('0x7')](),controller[_0x84cd('0x9')]);router[_0x84cd('0x6')](_0x84cd('0xa'),auth['isAuthenticated'](),controller[_0x84cd('0xb')]);router[_0x84cd('0x6')](_0x84cd('0xc'),auth[_0x84cd('0x7')](),controller[_0x84cd('0xd')]);router[_0x84cd('0x6')]('/:id/members',auth[_0x84cd('0x7')](),controller[_0x84cd('0xe')]);router['get']('/:id/messages',auth['isAuthenticated'](),controller[_0x84cd('0xf')]);router[_0x84cd('0x10')]('/',auth['isAuthenticated'](),controller[_0x84cd('0x11')]);router[_0x84cd('0x10')](_0x84cd('0x12'),auth[_0x84cd('0x7')](),controller[_0x84cd('0x13')]);router['post'](_0x84cd('0x14'),auth[_0x84cd('0x7')](),controller[_0x84cd('0x15')]);router[_0x84cd('0x16')]('/:id',auth[_0x84cd('0x7')](),controller[_0x84cd('0x17')]);router[_0x84cd('0x18')]('/:id',auth['isAuthenticated'](),controller['destroy']);router[_0x84cd('0x18')](_0x84cd('0x12'),auth[_0x84cd('0x7')](),controller[_0x84cd('0x19')]);module[_0x84cd('0x1a')]=router; \ No newline at end of file