Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / chatInteraction / index.js
index 360f020..3e8b42d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x844a=['isAuthenticated','describe','/:id','/:id/attachment_download','isChatInteractionAuthorized','attachmentDownload','/:id/messages','/:id/my_messages','/:id/download','download','post','create','/:id/vidaoo','diskStorage','join','root','server/files/attachments/','format','%s-%s','replace','/:id/attachment_upload','single','file','/:id/tags','chatinteraction:addtags','addTags','put','tracked','chat','chatinteraction:update','customUpdate','abandon','/:id/close','close','delete','chatinteraction:destroy','destroy','removeTags','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','index'];(function(_0x4dc7b9,_0x319d5a){var _0x3ab114=function(_0x51a9df){while(--_0x51a9df){_0x4dc7b9['push'](_0x4dc7b9['shift']());}};_0x3ab114(++_0x319d5a);}(_0x844a,0x1e9));var _0xa844=function(_0x2865b6,_0xe2f090){_0x2865b6=_0x2865b6-0x0;var _0x57278d=_0x844a[_0x2865b6];return _0x57278d;};'use strict';var multer=require(_0xa844('0x0'));var util=require(_0xa844('0x1'));var path=require(_0xa844('0x2'));var timeout=require('connect-timeout');var express=require(_0xa844('0x3'));var router=express['Router']();var fs_extra=require(_0xa844('0x4'));var auth=require(_0xa844('0x5'));var interaction=require(_0xa844('0x6'));var config=require(_0xa844('0x7'));var controller=require(_0xa844('0x8'));router[_0xa844('0x9')]('/',auth['isAuthenticated'](),controller[_0xa844('0xa')]);router[_0xa844('0x9')]('/describe',auth[_0xa844('0xb')](),controller[_0xa844('0xc')]);router[_0xa844('0x9')](_0xa844('0xd'),auth['isChatInteractionAuthorized'](),controller['show']);router[_0xa844('0x9')](_0xa844('0xe'),auth[_0xa844('0xf')](),controller[_0xa844('0x10')]);router[_0xa844('0x9')](_0xa844('0x11'),auth['isAuthenticated'](),controller['getMessages']);router['get'](_0xa844('0x12'),auth[_0xa844('0xf')](),controller['getMyMessages']);router['get'](_0xa844('0x13'),auth[_0xa844('0xb')](),controller[_0xa844('0x14')]);router[_0xa844('0x15')]('/',auth[_0xa844('0xb')](),controller[_0xa844('0x16')]);router[_0xa844('0x15')](_0xa844('0x17'),auth['isAuthenticated'](),controller['createVidaooSession']);var upload=multer({'storage':multer[_0xa844('0x18')]({'destination':function(_0x304758,_0x209424,_0x528c72){_0x528c72(null,path[_0xa844('0x19')](config[_0xa844('0x1a')],_0xa844('0x1b')));},'filename':function(_0x43e893,_0x390ac6,_0x370a5e){_0x370a5e(null,util[_0xa844('0x1c')](_0xa844('0x1d'),Date['now'](),_0x390ac6['originalname'][_0xa844('0x1e')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xa844('0x15')](_0xa844('0x1f'),upload[_0xa844('0x20')](_0xa844('0x21')),controller['attachmentUpload']);router[_0xa844('0x15')](_0xa844('0x11'),auth[_0xa844('0xf')](),controller['addMessage']);router['post'](_0xa844('0x22'),auth['isAuthenticated'](),interaction['tracked']('chat',_0xa844('0x23')),controller[_0xa844('0x24')]);router[_0xa844('0x25')](_0xa844('0xd'),auth['isAuthenticated'](),interaction[_0xa844('0x26')](_0xa844('0x27'),_0xa844('0x28')),controller['update']);router[_0xa844('0x25')]('/:id/custom_update',controller[_0xa844('0x29')]);router[_0xa844('0x25')]('/:id/abandon',auth[_0xa844('0xf')](),controller[_0xa844('0x2a')]);router[_0xa844('0x25')](_0xa844('0x2b'),controller[_0xa844('0x2c')]);router[_0xa844('0x2d')](_0xa844('0xd'),auth[_0xa844('0xb')](),interaction[_0xa844('0x26')](_0xa844('0x27'),_0xa844('0x2e')),controller[_0xa844('0x2f')]);router[_0xa844('0x2d')](_0xa844('0x22'),auth[_0xa844('0xb')](),controller[_0xa844('0x30')]);module[_0xa844('0x31')]=router;
\ No newline at end of file
+var _0x0362=['close','destroy','delete','removeTags','exports','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','./chatInteraction.controller','get','isAuthenticated','/describe','/:id','isChatInteractionAuthorized','show','attachmentDownload','/:id/messages','getMyMessages','/:id/download','post','create','createVidaooSession','diskStorage','join','root','server/files/attachments/','format','%s-%s','now','originalname','replace','/:id/attachment_upload','single','file','attachmentUpload','/:id/tags','tracked','chat','chatinteraction:addtags','chatinteraction:update','update','put','/:id/custom_update','customUpdate','abandon'];(function(_0x1deb03,_0xd05ad8){var _0x189fe7=function(_0x321225){while(--_0x321225){_0x1deb03['push'](_0x1deb03['shift']());}};_0x189fe7(++_0xd05ad8);}(_0x0362,0x65));var _0x2036=function(_0x3fdb39,_0x45dace){_0x3fdb39=_0x3fdb39-0x0;var _0x154df5=_0x0362[_0x3fdb39];return _0x154df5;};'use strict';var multer=require('multer');var util=require(_0x2036('0x0'));var path=require('path');var timeout=require(_0x2036('0x1'));var express=require(_0x2036('0x2'));var router=express[_0x2036('0x3')]();var fs_extra=require(_0x2036('0x4'));var auth=require(_0x2036('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x2036('0x6'));router[_0x2036('0x7')]('/',auth[_0x2036('0x8')](),controller['index']);router[_0x2036('0x7')](_0x2036('0x9'),auth['isAuthenticated'](),controller['describe']);router['get'](_0x2036('0xa'),auth[_0x2036('0xb')](),controller[_0x2036('0xc')]);router[_0x2036('0x7')]('/:id/attachment_download',auth[_0x2036('0xb')](),controller[_0x2036('0xd')]);router['get'](_0x2036('0xe'),auth[_0x2036('0x8')](),controller['getMessages']);router[_0x2036('0x7')]('/:id/my_messages',auth[_0x2036('0xb')](),controller[_0x2036('0xf')]);router[_0x2036('0x7')](_0x2036('0x10'),auth['isAuthenticated'](),controller['download']);router[_0x2036('0x11')]('/',auth['isAuthenticated'](),controller[_0x2036('0x12')]);router[_0x2036('0x11')]('/:id/vidaoo',auth[_0x2036('0x8')](),controller[_0x2036('0x13')]);var upload=multer({'storage':multer[_0x2036('0x14')]({'destination':function(_0x1565a8,_0x28c74a,_0x26489a){_0x26489a(null,path[_0x2036('0x15')](config[_0x2036('0x16')],_0x2036('0x17')));},'filename':function(_0x3301d0,_0x790181,_0x26c14a){_0x26c14a(null,util[_0x2036('0x18')](_0x2036('0x19'),Date[_0x2036('0x1a')](),_0x790181[_0x2036('0x1b')][_0x2036('0x1c')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post'](_0x2036('0x1d'),upload[_0x2036('0x1e')](_0x2036('0x1f')),controller[_0x2036('0x20')]);router[_0x2036('0x11')](_0x2036('0xe'),auth[_0x2036('0xb')](),controller['addMessage']);router[_0x2036('0x11')](_0x2036('0x21'),auth[_0x2036('0x8')](),interaction[_0x2036('0x22')](_0x2036('0x23'),_0x2036('0x24')),controller['addTags']);router['put'](_0x2036('0xa'),auth[_0x2036('0x8')](),interaction[_0x2036('0x22')](_0x2036('0x23'),_0x2036('0x25')),controller[_0x2036('0x26')]);router[_0x2036('0x27')](_0x2036('0x28'),controller[_0x2036('0x29')]);router['put']('/:id/abandon',auth[_0x2036('0xb')](),controller[_0x2036('0x2a')]);router['put']('/:id/close',controller[_0x2036('0x2b')]);router['delete']('/:id',auth['isAuthenticated'](),interaction[_0x2036('0x22')](_0x2036('0x23'),'chatinteraction:destroy'),controller[_0x2036('0x2c')]);router[_0x2036('0x2d')](_0x2036('0x21'),auth[_0x2036('0x8')](),controller[_0x2036('0x2e')]);module[_0x2036('0x2f')]=router;
\ No newline at end of file