X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FchatGroup%2Findex.js;h=951504bc76f8a8705095f8624bc5561f43e2fd69;hb=6b8dca8de1a6b807be7e36077511bb032e7382e5;hp=1e1f27329153e665a6fc036af91bba597f3964c9;hpb=44bd2814959684a7f7b774f2c71a3b12f9ba5952;p=motion2.git diff --git a/server/api/chatGroup/index.js b/server/api/chatGroup/index.js index 1e1f273..951504b 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 _0x02fb=['/:id/members','addMessage','put','update','delete','destroy','removeMembers','exports','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./chatGroup.controller','get','isAuthenticated','/describe','describe','/:id','show','getUnread','/:id/messages','getMessages','post','create'];(function(_0x4ae0f8,_0x481211){var _0xcd39f7=function(_0x2a4134){while(--_0x2a4134){_0x4ae0f8['push'](_0x4ae0f8['shift']());}};_0xcd39f7(++_0x481211);}(_0x02fb,0x198));var _0xb02f=function(_0x53dcd9,_0x4bb8db){_0x53dcd9=_0x53dcd9-0x0;var _0xeeaf58=_0x02fb[_0x53dcd9];return _0xeeaf58;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xb02f('0x0'));var express=require(_0xb02f('0x1'));var router=express[_0xb02f('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0xb02f('0x3'));var config=require(_0xb02f('0x4'));var controller=require(_0xb02f('0x5'));router[_0xb02f('0x6')]('/',auth[_0xb02f('0x7')](),controller['index']);router['get'](_0xb02f('0x8'),auth[_0xb02f('0x7')](),controller[_0xb02f('0x9')]);router[_0xb02f('0x6')](_0xb02f('0xa'),auth[_0xb02f('0x7')](),controller[_0xb02f('0xb')]);router[_0xb02f('0x6')]('/:id/unread',auth[_0xb02f('0x7')](),controller[_0xb02f('0xc')]);router[_0xb02f('0x6')]('/:id/members',auth['isAuthenticated'](),controller['getMembers']);router[_0xb02f('0x6')](_0xb02f('0xd'),auth['isAuthenticated'](),controller[_0xb02f('0xe')]);router[_0xb02f('0xf')]('/',auth[_0xb02f('0x7')](),controller[_0xb02f('0x10')]);router[_0xb02f('0xf')](_0xb02f('0x11'),auth[_0xb02f('0x7')](),controller['addMembers']);router['post'](_0xb02f('0xd'),auth['isAuthenticated'](),controller[_0xb02f('0x12')]);router[_0xb02f('0x13')]('/:id',auth[_0xb02f('0x7')](),controller[_0xb02f('0x14')]);router[_0xb02f('0x15')](_0xb02f('0xa'),auth['isAuthenticated'](),controller[_0xb02f('0x16')]);router[_0xb02f('0x15')](_0xb02f('0x11'),auth[_0xb02f('0x7')](),controller[_0xb02f('0x17')]);module[_0xb02f('0x18')]=router; \ No newline at end of file +var _0x0e3a=['index','/describe','getUnread','/:id/members','/:id/messages','create','post','addMembers','addMessage','/:id','update','destroy','removeMembers','exports','multer','path','Router','../../components/interaction/service','../../config/environment','./chatGroup.controller','get','isAuthenticated'];(function(_0x4d1616,_0x541ef6){var _0x593dab=function(_0xf9e565){while(--_0xf9e565){_0x4d1616['push'](_0x4d1616['shift']());}};_0x593dab(++_0x541ef6);}(_0x0e3a,0x16e));var _0xa0e3=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0x0e3a[_0x4a9fb1];return _0x348672;};'use strict';var multer=require(_0xa0e3('0x0'));var util=require('util');var path=require(_0xa0e3('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xa0e3('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0xa0e3('0x3'));var config=require(_0xa0e3('0x4'));var controller=require(_0xa0e3('0x5'));router[_0xa0e3('0x6')]('/',auth[_0xa0e3('0x7')](),controller[_0xa0e3('0x8')]);router['get'](_0xa0e3('0x9'),auth[_0xa0e3('0x7')](),controller['describe']);router['get']('/:id',auth[_0xa0e3('0x7')](),controller['show']);router['get']('/:id/unread',auth['isAuthenticated'](),controller[_0xa0e3('0xa')]);router[_0xa0e3('0x6')](_0xa0e3('0xb'),auth[_0xa0e3('0x7')](),controller['getMembers']);router[_0xa0e3('0x6')](_0xa0e3('0xc'),auth['isAuthenticated'](),controller['getMessages']);router['post']('/',auth[_0xa0e3('0x7')](),controller[_0xa0e3('0xd')]);router[_0xa0e3('0xe')]('/:id/members',auth[_0xa0e3('0x7')](),controller[_0xa0e3('0xf')]);router[_0xa0e3('0xe')](_0xa0e3('0xc'),auth[_0xa0e3('0x7')](),controller[_0xa0e3('0x10')]);router['put'](_0xa0e3('0x11'),auth['isAuthenticated'](),controller[_0xa0e3('0x12')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xa0e3('0x13')]);router['delete'](_0xa0e3('0xb'),auth[_0xa0e3('0x7')](),controller[_0xa0e3('0x14')]);module[_0xa0e3('0x15')]=router; \ No newline at end of file