Built motion from commit 8271bb6f.|2.6.28
[motion2.git] / server / api / chatInteraction / index.js
index afecab7..dc2e428 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6347=['isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','/:id/messages','post','create','/:id/vidaoo','createVidaooSession','diskStorage','join','root','server/files/attachments/','format','now','originalname','replace','/:id/attachment_upload','single','file','attachmentUpload','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','addTags','put','update','customUpdate','abandon','/:id/close','delete','chatinteraction:destroy','destroy','removeTags','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','/describe','describe','/:id'];(function(_0x797219,_0x28c28b){var _0x76bb98=function(_0x1ec30e){while(--_0x1ec30e){_0x797219['push'](_0x797219['shift']());}};_0x76bb98(++_0x28c28b);}(_0x6347,0x1c5));var _0x7634=function(_0x5a4f80,_0x1a34d1){_0x5a4f80=_0x5a4f80-0x0;var _0x310db7=_0x6347[_0x5a4f80];return _0x310db7;};'use strict';var multer=require('multer');var util=require(_0x7634('0x0'));var path=require(_0x7634('0x1'));var timeout=require(_0x7634('0x2'));var express=require(_0x7634('0x3'));var router=express[_0x7634('0x4')]();var fs_extra=require(_0x7634('0x5'));var auth=require(_0x7634('0x6'));var interaction=require(_0x7634('0x7'));var config=require(_0x7634('0x8'));var controller=require(_0x7634('0x9'));router[_0x7634('0xa')]('/',auth[_0x7634('0xb')](),controller['index']);router[_0x7634('0xa')](_0x7634('0xc'),auth[_0x7634('0xb')](),controller[_0x7634('0xd')]);router[_0x7634('0xa')](_0x7634('0xe'),auth[_0x7634('0xf')](),controller[_0x7634('0x10')]);router[_0x7634('0xa')](_0x7634('0x11'),auth[_0x7634('0xf')](),controller[_0x7634('0x12')]);router[_0x7634('0xa')](_0x7634('0x13'),auth[_0x7634('0xb')](),controller['getMessages']);router[_0x7634('0xa')]('/:id/my_messages',auth[_0x7634('0xf')](),controller['getMyMessages']);router[_0x7634('0xa')]('/:id/download',auth[_0x7634('0xb')](),controller['download']);router[_0x7634('0x14')]('/',auth[_0x7634('0xb')](),controller[_0x7634('0x15')]);router[_0x7634('0x14')](_0x7634('0x16'),auth[_0x7634('0xb')](),controller[_0x7634('0x17')]);var upload=multer({'storage':multer[_0x7634('0x18')]({'destination':function(_0x46d98b,_0x4b02b2,_0x581372){_0x581372(null,path[_0x7634('0x19')](config[_0x7634('0x1a')],_0x7634('0x1b')));},'filename':function(_0x822443,_0x1eb200,_0x3fc5b1){_0x3fc5b1(null,util[_0x7634('0x1c')]('%s-%s',Date[_0x7634('0x1d')](),_0x1eb200[_0x7634('0x1e')][_0x7634('0x1f')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post'](_0x7634('0x20'),upload[_0x7634('0x21')](_0x7634('0x22')),controller[_0x7634('0x23')]);router['post'](_0x7634('0x13'),auth[_0x7634('0xf')](),controller[_0x7634('0x24')]);router[_0x7634('0x14')](_0x7634('0x25'),auth[_0x7634('0xb')](),interaction[_0x7634('0x26')](_0x7634('0x27'),_0x7634('0x28')),controller[_0x7634('0x29')]);router[_0x7634('0x2a')](_0x7634('0xe'),auth['isAuthenticated'](),interaction['tracked'](_0x7634('0x27'),'chatinteraction:update'),controller[_0x7634('0x2b')]);router[_0x7634('0x2a')]('/:id/custom_update',controller[_0x7634('0x2c')]);router[_0x7634('0x2a')]('/:id/abandon',auth[_0x7634('0xf')](),controller[_0x7634('0x2d')]);router[_0x7634('0x2a')](_0x7634('0x2e'),controller['close']);router[_0x7634('0x2f')](_0x7634('0xe'),auth[_0x7634('0xb')](),interaction['tracked'](_0x7634('0x27'),_0x7634('0x30')),controller[_0x7634('0x31')]);router[_0x7634('0x2f')](_0x7634('0x25'),auth[_0x7634('0xb')](),controller[_0x7634('0x32')]);module[_0x7634('0x33')]=router;
\ No newline at end of file
+var _0x7788=['format','now','originalname','replace','single','file','attachmentUpload','/:id/tags','chatinteraction:addtags','addTags','put','chat','chatinteraction:update','update','/:id/custom_update','customUpdate','/:id/abandon','abandon','close','tracked','chatinteraction:destroy','destroy','delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','isAuthenticated','get','/describe','describe','/:id','isChatInteractionAuthorized','/:id/attachment_download','/:id/messages','/:id/my_messages','/:id/download','download','post','create','/:id/vidaoo','createVidaooSession','join','server/files/attachments/'];(function(_0x10f32d,_0x1235af){var _0x5684a9=function(_0x48167b){while(--_0x48167b){_0x10f32d['push'](_0x10f32d['shift']());}};_0x5684a9(++_0x1235af);}(_0x7788,0x1da));var _0x8778=function(_0x5c2a2b,_0x22c94e){_0x5c2a2b=_0x5c2a2b-0x0;var _0x19921f=_0x7788[_0x5c2a2b];return _0x19921f;};'use strict';var multer=require(_0x8778('0x0'));var util=require(_0x8778('0x1'));var path=require(_0x8778('0x2'));var timeout=require(_0x8778('0x3'));var express=require(_0x8778('0x4'));var router=express[_0x8778('0x5')]();var fs_extra=require(_0x8778('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x8778('0x7'));var config=require(_0x8778('0x8'));var controller=require('./chatInteraction.controller');router['get']('/',auth[_0x8778('0x9')](),controller['index']);router[_0x8778('0xa')](_0x8778('0xb'),auth[_0x8778('0x9')](),controller[_0x8778('0xc')]);router[_0x8778('0xa')](_0x8778('0xd'),auth[_0x8778('0xe')](),controller['show']);router['get'](_0x8778('0xf'),auth[_0x8778('0xe')](),controller['attachmentDownload']);router['get'](_0x8778('0x10'),auth[_0x8778('0x9')](),controller['getMessages']);router[_0x8778('0xa')](_0x8778('0x11'),auth[_0x8778('0xe')](),controller['getMyMessages']);router[_0x8778('0xa')](_0x8778('0x12'),auth[_0x8778('0x9')](),controller[_0x8778('0x13')]);router[_0x8778('0x14')]('/',auth['isAuthenticated'](),controller[_0x8778('0x15')]);router['post'](_0x8778('0x16'),auth['isAuthenticated'](),controller[_0x8778('0x17')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x12d567,_0x567042,_0x4b5d79){_0x4b5d79(null,path[_0x8778('0x18')](config['root'],_0x8778('0x19')));},'filename':function(_0x5923e7,_0x3b8fb0,_0x1391e9){_0x1391e9(null,util[_0x8778('0x1a')]('%s-%s',Date[_0x8778('0x1b')](),_0x3b8fb0[_0x8778('0x1c')][_0x8778('0x1d')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x8778('0x14')]('/:id/attachment_upload',upload[_0x8778('0x1e')](_0x8778('0x1f')),controller[_0x8778('0x20')]);router[_0x8778('0x14')](_0x8778('0x10'),auth[_0x8778('0xe')](),controller['addMessage']);router[_0x8778('0x14')](_0x8778('0x21'),auth[_0x8778('0x9')](),interaction['tracked']('chat',_0x8778('0x22')),controller[_0x8778('0x23')]);router[_0x8778('0x24')](_0x8778('0xd'),auth[_0x8778('0x9')](),interaction['tracked'](_0x8778('0x25'),_0x8778('0x26')),controller[_0x8778('0x27')]);router[_0x8778('0x24')](_0x8778('0x28'),controller[_0x8778('0x29')]);router[_0x8778('0x24')](_0x8778('0x2a'),auth[_0x8778('0xe')](),controller[_0x8778('0x2b')]);router[_0x8778('0x24')]('/:id/close',controller[_0x8778('0x2c')]);router['delete'](_0x8778('0xd'),auth[_0x8778('0x9')](),interaction[_0x8778('0x2d')](_0x8778('0x25'),_0x8778('0x2e')),controller[_0x8778('0x2f')]);router[_0x8778('0x30')](_0x8778('0x21'),auth[_0x8778('0x9')](),controller['removeTags']);module[_0x8778('0x31')]=router;
\ No newline at end of file