Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / chatInteraction / index.js
index bf60dee..2903c9c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf3f9=['get','/:id','show','/:id/messages','isAuthenticated','getMessages','/:id/my_messages','isChatInteractionAuthorized','getMyMessages','/:id/download','download','create','createVidaooSession','diskStorage','root','server/files/attachments/','format','now','replace','post','single','file','attachmentUpload','addMessage','/:id/tags','chat','chatinteraction:addtags','put','tracked','chatinteraction:update','update','/:id/custom_update','/:id/abandon','/:id/close','close','delete','destroy','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','index','/describe','describe'];(function(_0x48cdd5,_0x3e5636){var _0x18d568=function(_0x55fec9){while(--_0x55fec9){_0x48cdd5['push'](_0x48cdd5['shift']());}};_0x18d568(++_0x3e5636);}(_0xf3f9,0x1de));var _0x9f3f=function(_0x372fdb,_0x445489){_0x372fdb=_0x372fdb-0x0;var _0x604d24=_0xf3f9[_0x372fdb];return _0x604d24;};'use strict';var multer=require(_0x9f3f('0x0'));var util=require(_0x9f3f('0x1'));var path=require('path');var timeout=require(_0x9f3f('0x2'));var express=require(_0x9f3f('0x3'));var router=express[_0x9f3f('0x4')]();var auth=require(_0x9f3f('0x5'));var interaction=require(_0x9f3f('0x6'));var config=require(_0x9f3f('0x7'));var controller=require(_0x9f3f('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x9f3f('0x9')]);router['get'](_0x9f3f('0xa'),auth['isAuthenticated'](),controller[_0x9f3f('0xb')]);router[_0x9f3f('0xc')](_0x9f3f('0xd'),auth['isChatInteractionAuthorized'](),controller[_0x9f3f('0xe')]);router['get']('/:id/attachment_download',auth['isChatInteractionAuthorized'](),controller['attachmentDownload']);router[_0x9f3f('0xc')](_0x9f3f('0xf'),auth[_0x9f3f('0x10')](),controller[_0x9f3f('0x11')]);router[_0x9f3f('0xc')](_0x9f3f('0x12'),auth[_0x9f3f('0x13')](),controller[_0x9f3f('0x14')]);router[_0x9f3f('0xc')](_0x9f3f('0x15'),auth[_0x9f3f('0x10')](),controller[_0x9f3f('0x16')]);router['post']('/',auth[_0x9f3f('0x10')](),controller[_0x9f3f('0x17')]);router['post']('/:id/vidaoo',auth[_0x9f3f('0x10')](),controller[_0x9f3f('0x18')]);var upload=multer({'storage':multer[_0x9f3f('0x19')]({'destination':function(_0x1eff51,_0x3e2d1d,_0x40a26b){_0x40a26b(null,path['join'](config[_0x9f3f('0x1a')],_0x9f3f('0x1b')));},'filename':function(_0x216cf1,_0x124077,_0x1c7633){_0x1c7633(null,util[_0x9f3f('0x1c')]('%s-%s',Date[_0x9f3f('0x1d')](),_0x124077['originalname'][_0x9f3f('0x1e')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x9f3f('0x1f')]('/:id/attachment_upload',upload[_0x9f3f('0x20')](_0x9f3f('0x21')),controller[_0x9f3f('0x22')]);router[_0x9f3f('0x1f')]('/:id/messages',auth['isChatInteractionAuthorized'](),controller[_0x9f3f('0x23')]);router['post'](_0x9f3f('0x24'),auth['isAuthenticated'](),interaction['tracked'](_0x9f3f('0x25'),_0x9f3f('0x26')),controller['addTags']);router[_0x9f3f('0x27')]('/:id',auth['isAuthenticated'](),interaction[_0x9f3f('0x28')](_0x9f3f('0x25'),_0x9f3f('0x29')),controller[_0x9f3f('0x2a')]);router['put'](_0x9f3f('0x2b'),controller['customUpdate']);router[_0x9f3f('0x27')](_0x9f3f('0x2c'),auth[_0x9f3f('0x13')](),controller['abandon']);router[_0x9f3f('0x27')](_0x9f3f('0x2d'),controller[_0x9f3f('0x2e')]);router[_0x9f3f('0x2f')](_0x9f3f('0xd'),auth['isAuthenticated'](),interaction['tracked'](_0x9f3f('0x25'),'chatinteraction:destroy'),controller[_0x9f3f('0x30')]);router[_0x9f3f('0x2f')]('/:id/tags',auth[_0x9f3f('0x10')](),controller['removeTags']);module['exports']=router;
\ No newline at end of file
+var _0x13f6=['express','Router','../../components/auth/service','../../config/environment','./chatInteraction.controller','get','index','/:id','isChatInteractionAuthorized','show','attachmentDownload','isAuthenticated','getMessages','getMyMessages','download','post','create','/:id/vidaoo','createVidaooSession','diskStorage','server/files/attachments/','%s-%s','now','originalname','replace','/:id/attachment_upload','attachmentUpload','addMessage','/:id/tags','tracked','addTags','put','chat','chatinteraction:update','update','customUpdate','abandon','destroy','delete','exports','multer','util'];(function(_0x1f5834,_0x421950){var _0x418e31=function(_0x5f5cc4){while(--_0x5f5cc4){_0x1f5834['push'](_0x1f5834['shift']());}};_0x418e31(++_0x421950);}(_0x13f6,0x124));var _0x613f=function(_0x38773,_0x44d470){_0x38773=_0x38773-0x0;var _0x2a5319=_0x13f6[_0x38773];return _0x2a5319;};'use strict';var multer=require(_0x613f('0x0'));var util=require(_0x613f('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x613f('0x2'));var router=express[_0x613f('0x3')]();var auth=require(_0x613f('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x613f('0x5'));var controller=require(_0x613f('0x6'));router[_0x613f('0x7')]('/',auth['isAuthenticated'](),controller[_0x613f('0x8')]);router[_0x613f('0x7')]('/describe',auth['isAuthenticated'](),controller['describe']);router['get'](_0x613f('0x9'),auth[_0x613f('0xa')](),controller[_0x613f('0xb')]);router[_0x613f('0x7')]('/:id/attachment_download',auth[_0x613f('0xa')](),controller[_0x613f('0xc')]);router[_0x613f('0x7')]('/:id/messages',auth[_0x613f('0xd')](),controller[_0x613f('0xe')]);router[_0x613f('0x7')]('/:id/my_messages',auth[_0x613f('0xa')](),controller[_0x613f('0xf')]);router['get']('/:id/download',auth['isAuthenticated'](),controller[_0x613f('0x10')]);router[_0x613f('0x11')]('/',auth[_0x613f('0xd')](),controller[_0x613f('0x12')]);router[_0x613f('0x11')](_0x613f('0x13'),auth[_0x613f('0xd')](),controller[_0x613f('0x14')]);var upload=multer({'storage':multer[_0x613f('0x15')]({'destination':function(_0x1d68fd,_0x548218,_0x3c9edf){_0x3c9edf(null,path['join'](config['root'],_0x613f('0x16')));},'filename':function(_0x2f244d,_0x544eca,_0x39e417){_0x39e417(null,util['format'](_0x613f('0x17'),Date[_0x613f('0x18')](),_0x544eca[_0x613f('0x19')][_0x613f('0x1a')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x613f('0x11')](_0x613f('0x1b'),upload['single']('file'),controller[_0x613f('0x1c')]);router['post']('/:id/messages',auth[_0x613f('0xa')](),controller[_0x613f('0x1d')]);router['post'](_0x613f('0x1e'),auth[_0x613f('0xd')](),interaction[_0x613f('0x1f')]('chat','chatinteraction:addtags'),controller[_0x613f('0x20')]);router[_0x613f('0x21')](_0x613f('0x9'),auth['isAuthenticated'](),interaction[_0x613f('0x1f')](_0x613f('0x22'),_0x613f('0x23')),controller[_0x613f('0x24')]);router[_0x613f('0x21')]('/:id/custom_update',controller[_0x613f('0x25')]);router[_0x613f('0x21')]('/:id/abandon',auth[_0x613f('0xa')](),controller[_0x613f('0x26')]);router[_0x613f('0x21')]('/:id/close',controller['close']);router['delete'](_0x613f('0x9'),auth['isAuthenticated'](),interaction[_0x613f('0x1f')](_0x613f('0x22'),'chatinteraction:destroy'),controller[_0x613f('0x27')]);router[_0x613f('0x28')]('/:id/tags',auth['isAuthenticated'](),controller['removeTags']);module[_0x613f('0x29')]=router;
\ No newline at end of file