Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / api / chatInteraction / index.js
index 51ba633..f2248f5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa30a=['originalname','single','attachmentUpload','/:id/tags','tracked','chat','addTags','put','chatinteraction:update','update','/:id/custom_update','/:id/abandon','abandon','/:id/close','delete','chatinteraction:destroy','destroy','removeTags','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','index','/describe','isAuthenticated','describe','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','/:id/messages','getMessages','/:id/my_messages','/:id/download','post','create','diskStorage','join','root','server/files/attachments/','%s-%s','now'];(function(_0x4617fa,_0x481e47){var _0x42d2d5=function(_0x26435f){while(--_0x26435f){_0x4617fa['push'](_0x4617fa['shift']());}};_0x42d2d5(++_0x481e47);}(_0xa30a,0xd7));var _0xaa30=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xa30a[_0x20a584];return _0x4b41a8;};'use strict';var multer=require(_0xaa30('0x0'));var util=require(_0xaa30('0x1'));var path=require(_0xaa30('0x2'));var timeout=require('connect-timeout');var express=require(_0xaa30('0x3'));var router=express[_0xaa30('0x4')]();var auth=require(_0xaa30('0x5'));var interaction=require(_0xaa30('0x6'));var config=require(_0xaa30('0x7'));var controller=require(_0xaa30('0x8'));router[_0xaa30('0x9')]('/',auth['isAuthenticated'](),controller[_0xaa30('0xa')]);router['get'](_0xaa30('0xb'),auth[_0xaa30('0xc')](),controller[_0xaa30('0xd')]);router['get'](_0xaa30('0xe'),auth[_0xaa30('0xf')](),controller[_0xaa30('0x10')]);router[_0xaa30('0x9')](_0xaa30('0x11'),auth[_0xaa30('0xf')](),controller['attachmentDownload']);router['get'](_0xaa30('0x12'),auth['isAuthenticated'](),controller[_0xaa30('0x13')]);router[_0xaa30('0x9')](_0xaa30('0x14'),auth[_0xaa30('0xf')](),controller['getMyMessages']);router[_0xaa30('0x9')](_0xaa30('0x15'),auth[_0xaa30('0xc')](),controller['download']);router[_0xaa30('0x16')]('/',auth[_0xaa30('0xc')](),controller[_0xaa30('0x17')]);var upload=multer({'storage':multer[_0xaa30('0x18')]({'destination':function(_0x41f1d9,_0x31aa0b,_0x3240e9){_0x3240e9(null,path[_0xaa30('0x19')](config[_0xaa30('0x1a')],_0xaa30('0x1b')));},'filename':function(_0x519518,_0x91839d,_0x591478){_0x591478(null,util['format'](_0xaa30('0x1c'),Date[_0xaa30('0x1d')](),_0x91839d[_0xaa30('0x1e')]['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post']('/:id/attachment_upload',upload[_0xaa30('0x1f')]('file'),controller[_0xaa30('0x20')]);router[_0xaa30('0x16')]('/:id/messages',auth['isChatInteractionAuthorized'](),controller['addMessage']);router[_0xaa30('0x16')](_0xaa30('0x21'),auth[_0xaa30('0xc')](),interaction[_0xaa30('0x22')](_0xaa30('0x23'),'chatinteraction:addtags'),controller[_0xaa30('0x24')]);router[_0xaa30('0x25')](_0xaa30('0xe'),auth[_0xaa30('0xc')](),interaction[_0xaa30('0x22')]('chat',_0xaa30('0x26')),controller[_0xaa30('0x27')]);router[_0xaa30('0x25')](_0xaa30('0x28'),controller['customUpdate']);router[_0xaa30('0x25')](_0xaa30('0x29'),auth[_0xaa30('0xf')](),controller[_0xaa30('0x2a')]);router[_0xaa30('0x25')](_0xaa30('0x2b'),controller['close']);router[_0xaa30('0x2c')](_0xaa30('0xe'),auth['isAuthenticated'](),interaction[_0xaa30('0x22')]('chat',_0xaa30('0x2d')),controller[_0xaa30('0x2e')]);router[_0xaa30('0x2c')](_0xaa30('0x21'),auth[_0xaa30('0xc')](),controller[_0xaa30('0x2f')]);module[_0xaa30('0x30')]=router;
\ No newline at end of file
+var _0x4fc2=['%s-%s','now','replace','/:id/attachment_upload','single','attachmentUpload','addMessage','/:id/tags','chat','addTags','tracked','chatinteraction:update','put','/:id/custom_update','customUpdate','/:id/abandon','abandon','/:id/close','close','chatinteraction:destroy','destroy','delete','removeTags','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./chatInteraction.controller','get','index','isAuthenticated','describe','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','/:id/messages','getMessages','getMyMessages','/:id/download','download','post','create','join','server/files/attachments/','format'];(function(_0x1b2ea2,_0x19c7a1){var _0x40f25c=function(_0x2d74cd){while(--_0x2d74cd){_0x1b2ea2['push'](_0x1b2ea2['shift']());}};_0x40f25c(++_0x19c7a1);}(_0x4fc2,0x111));var _0x24fc=function(_0x845672,_0x2a2b2a){_0x845672=_0x845672-0x0;var _0x24f4b4=_0x4fc2[_0x845672];return _0x24f4b4;};'use strict';var multer=require(_0x24fc('0x0'));var util=require(_0x24fc('0x1'));var path=require(_0x24fc('0x2'));var timeout=require(_0x24fc('0x3'));var express=require('express');var router=express[_0x24fc('0x4')]();var auth=require(_0x24fc('0x5'));var interaction=require(_0x24fc('0x6'));var config=require('../../config/environment');var controller=require(_0x24fc('0x7'));router[_0x24fc('0x8')]('/',auth['isAuthenticated'](),controller[_0x24fc('0x9')]);router[_0x24fc('0x8')]('/describe',auth[_0x24fc('0xa')](),controller[_0x24fc('0xb')]);router[_0x24fc('0x8')](_0x24fc('0xc'),auth[_0x24fc('0xd')](),controller[_0x24fc('0xe')]);router['get'](_0x24fc('0xf'),auth[_0x24fc('0xd')](),controller[_0x24fc('0x10')]);router[_0x24fc('0x8')](_0x24fc('0x11'),auth[_0x24fc('0xa')](),controller[_0x24fc('0x12')]);router[_0x24fc('0x8')]('/:id/my_messages',auth[_0x24fc('0xd')](),controller[_0x24fc('0x13')]);router['get'](_0x24fc('0x14'),auth[_0x24fc('0xa')](),controller[_0x24fc('0x15')]);router[_0x24fc('0x16')]('/',auth[_0x24fc('0xa')](),controller[_0x24fc('0x17')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x2a0971,_0x18c0a7,_0x2ffed3){_0x2ffed3(null,path[_0x24fc('0x18')](config['root'],_0x24fc('0x19')));},'filename':function(_0x588543,_0x4af098,_0x3385c7){_0x3385c7(null,util[_0x24fc('0x1a')](_0x24fc('0x1b'),Date[_0x24fc('0x1c')](),_0x4af098['originalname'][_0x24fc('0x1d')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x24fc('0x16')](_0x24fc('0x1e'),upload[_0x24fc('0x1f')]('file'),controller[_0x24fc('0x20')]);router[_0x24fc('0x16')](_0x24fc('0x11'),auth['isChatInteractionAuthorized'](),controller[_0x24fc('0x21')]);router[_0x24fc('0x16')](_0x24fc('0x22'),auth[_0x24fc('0xa')](),interaction['tracked'](_0x24fc('0x23'),'chatinteraction:addtags'),controller[_0x24fc('0x24')]);router['put'](_0x24fc('0xc'),auth[_0x24fc('0xa')](),interaction[_0x24fc('0x25')]('chat',_0x24fc('0x26')),controller['update']);router[_0x24fc('0x27')](_0x24fc('0x28'),controller[_0x24fc('0x29')]);router[_0x24fc('0x27')](_0x24fc('0x2a'),auth[_0x24fc('0xd')](),controller[_0x24fc('0x2b')]);router[_0x24fc('0x27')](_0x24fc('0x2c'),controller[_0x24fc('0x2d')]);router['delete'](_0x24fc('0xc'),auth[_0x24fc('0xa')](),interaction[_0x24fc('0x25')]('chat',_0x24fc('0x2e')),controller[_0x24fc('0x2f')]);router[_0x24fc('0x30')](_0x24fc('0x22'),auth[_0x24fc('0xa')](),controller[_0x24fc('0x31')]);module['exports']=router;
\ No newline at end of file