Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / chatInteraction / index.js
index 2e2e0c4..00ec4ca 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8535=['destroy','removeTags','exports','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','index','/describe','isAuthenticated','describe','/:id','show','isChatInteractionAuthorized','attachmentDownload','/:id/messages','/:id/my_messages','getMyMessages','/:id/download','download','post','/:id/vidaoo','createVidaooSession','join','root','server/files/attachments/','%s-%s','now','replace','/:id/attachment_upload','single','file','addMessage','/:id/tags','tracked','addTags','put','chatinteraction:update','update','/:id/custom_update','customUpdate','/:id/abandon','abandon','/:id/close','delete','chat','chatinteraction:destroy'];(function(_0x46c1d5,_0x5ca335){var _0x40fe7b=function(_0x34cb99){while(--_0x34cb99){_0x46c1d5['push'](_0x46c1d5['shift']());}};_0x40fe7b(++_0x5ca335);}(_0x8535,0x19b));var _0x5853=function(_0x4a5796,_0x19838a){_0x4a5796=_0x4a5796-0x0;var _0x2d7379=_0x8535[_0x4a5796];return _0x2d7379;};'use strict';var multer=require('multer');var util=require(_0x5853('0x0'));var path=require(_0x5853('0x1'));var timeout=require('connect-timeout');var express=require(_0x5853('0x2'));var router=express['Router']();var auth=require(_0x5853('0x3'));var interaction=require(_0x5853('0x4'));var config=require(_0x5853('0x5'));var controller=require(_0x5853('0x6'));router[_0x5853('0x7')]('/',auth['isAuthenticated'](),controller[_0x5853('0x8')]);router[_0x5853('0x7')](_0x5853('0x9'),auth[_0x5853('0xa')](),controller[_0x5853('0xb')]);router[_0x5853('0x7')](_0x5853('0xc'),auth['isChatInteractionAuthorized'](),controller[_0x5853('0xd')]);router['get']('/:id/attachment_download',auth[_0x5853('0xe')](),controller[_0x5853('0xf')]);router[_0x5853('0x7')](_0x5853('0x10'),auth[_0x5853('0xa')](),controller['getMessages']);router[_0x5853('0x7')](_0x5853('0x11'),auth[_0x5853('0xe')](),controller[_0x5853('0x12')]);router[_0x5853('0x7')](_0x5853('0x13'),auth[_0x5853('0xa')](),controller[_0x5853('0x14')]);router[_0x5853('0x15')]('/',auth[_0x5853('0xa')](),controller['create']);router[_0x5853('0x15')](_0x5853('0x16'),auth[_0x5853('0xa')](),controller[_0x5853('0x17')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x4f89b9,_0x47c269,_0xb3472a){_0xb3472a(null,path[_0x5853('0x18')](config[_0x5853('0x19')],_0x5853('0x1a')));},'filename':function(_0x4c290a,_0x1a504b,_0x2ab340){_0x2ab340(null,util['format'](_0x5853('0x1b'),Date[_0x5853('0x1c')](),_0x1a504b['originalname'][_0x5853('0x1d')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post'](_0x5853('0x1e'),upload[_0x5853('0x1f')](_0x5853('0x20')),controller['attachmentUpload']);router['post'](_0x5853('0x10'),auth[_0x5853('0xe')](),controller[_0x5853('0x21')]);router[_0x5853('0x15')](_0x5853('0x22'),auth[_0x5853('0xa')](),interaction[_0x5853('0x23')]('chat','chatinteraction:addtags'),controller[_0x5853('0x24')]);router[_0x5853('0x25')]('/:id',auth[_0x5853('0xa')](),interaction[_0x5853('0x23')]('chat',_0x5853('0x26')),controller[_0x5853('0x27')]);router[_0x5853('0x25')](_0x5853('0x28'),controller[_0x5853('0x29')]);router[_0x5853('0x25')](_0x5853('0x2a'),auth[_0x5853('0xe')](),controller[_0x5853('0x2b')]);router[_0x5853('0x25')](_0x5853('0x2c'),controller['close']);router[_0x5853('0x2d')]('/:id',auth[_0x5853('0xa')](),interaction['tracked'](_0x5853('0x2e'),_0x5853('0x2f')),controller[_0x5853('0x30')]);router['delete'](_0x5853('0x22'),auth[_0x5853('0xa')](),controller[_0x5853('0x31')]);module[_0x5853('0x32')]=router;
\ No newline at end of file
+var _0xe360=['show','/:id/attachment_download','isChatInteractionAuthorized','attachmentDownload','getMessages','/:id/my_messages','getMyMessages','/:id/download','post','create','/:id/vidaoo','diskStorage','root','server/files/attachments/','format','%s-%s','originalname','replace','single','/:id/messages','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','put','update','/:id/custom_update','customUpdate','/:id/abandon','close','chatinteraction:destroy','destroy','delete','removeTags','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','index','/:id'];(function(_0x2db9c8,_0x2c9a49){var _0x493551=function(_0x494e5a){while(--_0x494e5a){_0x2db9c8['push'](_0x2db9c8['shift']());}};_0x493551(++_0x2c9a49);}(_0xe360,0x119));var _0x0e36=function(_0x5e6cb8,_0x16cf56){_0x5e6cb8=_0x5e6cb8-0x0;var _0x3faeb3=_0xe360[_0x5e6cb8];return _0x3faeb3;};'use strict';var multer=require('multer');var util=require(_0x0e36('0x0'));var path=require(_0x0e36('0x1'));var timeout=require(_0x0e36('0x2'));var express=require(_0x0e36('0x3'));var router=express[_0x0e36('0x4')]();var auth=require(_0x0e36('0x5'));var interaction=require(_0x0e36('0x6'));var config=require(_0x0e36('0x7'));var controller=require(_0x0e36('0x8'));router[_0x0e36('0x9')]('/',auth[_0x0e36('0xa')](),controller[_0x0e36('0xb')]);router[_0x0e36('0x9')]('/describe',auth[_0x0e36('0xa')](),controller['describe']);router[_0x0e36('0x9')](_0x0e36('0xc'),auth['isChatInteractionAuthorized'](),controller[_0x0e36('0xd')]);router[_0x0e36('0x9')](_0x0e36('0xe'),auth[_0x0e36('0xf')](),controller[_0x0e36('0x10')]);router[_0x0e36('0x9')]('/:id/messages',auth['isAuthenticated'](),controller[_0x0e36('0x11')]);router['get'](_0x0e36('0x12'),auth[_0x0e36('0xf')](),controller[_0x0e36('0x13')]);router['get'](_0x0e36('0x14'),auth['isAuthenticated'](),controller['download']);router[_0x0e36('0x15')]('/',auth[_0x0e36('0xa')](),controller[_0x0e36('0x16')]);router[_0x0e36('0x15')](_0x0e36('0x17'),auth[_0x0e36('0xa')](),controller['createVidaooSession']);var upload=multer({'storage':multer[_0x0e36('0x18')]({'destination':function(_0x5453d6,_0x11246c,_0x46e25f){_0x46e25f(null,path['join'](config[_0x0e36('0x19')],_0x0e36('0x1a')));},'filename':function(_0x3fba3b,_0x38f8b7,_0x223e4f){_0x223e4f(null,util[_0x0e36('0x1b')](_0x0e36('0x1c'),Date['now'](),_0x38f8b7[_0x0e36('0x1d')][_0x0e36('0x1e')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x0e36('0x15')]('/:id/attachment_upload',upload[_0x0e36('0x1f')]('file'),controller['attachmentUpload']);router[_0x0e36('0x15')](_0x0e36('0x20'),auth[_0x0e36('0xf')](),controller[_0x0e36('0x21')]);router[_0x0e36('0x15')](_0x0e36('0x22'),auth[_0x0e36('0xa')](),interaction[_0x0e36('0x23')](_0x0e36('0x24'),_0x0e36('0x25')),controller['addTags']);router[_0x0e36('0x26')](_0x0e36('0xc'),auth[_0x0e36('0xa')](),interaction['tracked']('chat','chatinteraction:update'),controller[_0x0e36('0x27')]);router[_0x0e36('0x26')](_0x0e36('0x28'),controller[_0x0e36('0x29')]);router[_0x0e36('0x26')](_0x0e36('0x2a'),auth[_0x0e36('0xf')](),controller['abandon']);router['put']('/:id/close',controller[_0x0e36('0x2b')]);router['delete'](_0x0e36('0xc'),auth[_0x0e36('0xa')](),interaction[_0x0e36('0x23')](_0x0e36('0x24'),_0x0e36('0x2c')),controller[_0x0e36('0x2d')]);router[_0x0e36('0x2e')](_0x0e36('0x22'),auth[_0x0e36('0xa')](),controller[_0x0e36('0x2f')]);module[_0x0e36('0x30')]=router;
\ No newline at end of file