Built motion from commit ecb45b58.|2.6.31
[motion2.git] / server / api / chatInteraction / index.js
index bd53830..7a04c11 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x303b=['tracked','chatinteraction:destroy','destroy','removeTags','exports','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','isAuthenticated','index','/describe','describe','get','/:id','/:id/attachment_download','isChatInteractionAuthorized','attachmentDownload','/:id/messages','getMessages','getMyMessages','/:id/download','post','create','/:id/vidaoo','createVidaooSession','diskStorage','root','server/files/attachments/','format','%s-%s','now','replace','/:id/attachment_upload','file','attachmentUpload','/:id/tags','chat','chatinteraction:update','update','/:id/custom_update','customUpdate','/:id/abandon','abandon','put','/:id/close','close','delete'];(function(_0x5e5c64,_0x19b9fb){var _0x1bf287=function(_0x19fb98){while(--_0x19fb98){_0x5e5c64['push'](_0x5e5c64['shift']());}};_0x1bf287(++_0x19b9fb);}(_0x303b,0xd5));var _0xb303=function(_0x5da87f,_0x3e0249){_0x5da87f=_0x5da87f-0x0;var _0x1be0cf=_0x303b[_0x5da87f];return _0x1be0cf;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xb303('0x0'));var express=require(_0xb303('0x1'));var router=express[_0xb303('0x2')]();var fs_extra=require(_0xb303('0x3'));var auth=require(_0xb303('0x4'));var interaction=require(_0xb303('0x5'));var config=require(_0xb303('0x6'));var controller=require(_0xb303('0x7'));router['get']('/',auth[_0xb303('0x8')](),controller[_0xb303('0x9')]);router['get'](_0xb303('0xa'),auth[_0xb303('0x8')](),controller[_0xb303('0xb')]);router[_0xb303('0xc')](_0xb303('0xd'),auth['isChatInteractionAuthorized'](),controller['show']);router[_0xb303('0xc')](_0xb303('0xe'),auth[_0xb303('0xf')](),controller[_0xb303('0x10')]);router[_0xb303('0xc')](_0xb303('0x11'),auth[_0xb303('0x8')](),controller[_0xb303('0x12')]);router[_0xb303('0xc')]('/:id/my_messages',auth[_0xb303('0xf')](),controller[_0xb303('0x13')]);router[_0xb303('0xc')](_0xb303('0x14'),auth['isAuthenticated'](),controller['download']);router[_0xb303('0x15')]('/',auth[_0xb303('0x8')](),controller[_0xb303('0x16')]);router[_0xb303('0x15')](_0xb303('0x17'),auth[_0xb303('0x8')](),controller[_0xb303('0x18')]);var upload=multer({'storage':multer[_0xb303('0x19')]({'destination':function(_0x1910eb,_0x30bfe4,_0x2859aa){_0x2859aa(null,path['join'](config[_0xb303('0x1a')],_0xb303('0x1b')));},'filename':function(_0x277f70,_0xf11a6f,_0x19f7d2){_0x19f7d2(null,util[_0xb303('0x1c')](_0xb303('0x1d'),Date[_0xb303('0x1e')](),_0xf11a6f['originalname'][_0xb303('0x1f')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post'](_0xb303('0x20'),upload['single'](_0xb303('0x21')),controller[_0xb303('0x22')]);router[_0xb303('0x15')](_0xb303('0x11'),auth[_0xb303('0xf')](),controller['addMessage']);router[_0xb303('0x15')](_0xb303('0x23'),auth['isAuthenticated'](),interaction['tracked'](_0xb303('0x24'),'chatinteraction:addtags'),controller['addTags']);router['put'](_0xb303('0xd'),auth['isAuthenticated'](),interaction['tracked'](_0xb303('0x24'),_0xb303('0x25')),controller[_0xb303('0x26')]);router['put'](_0xb303('0x27'),controller[_0xb303('0x28')]);router['put'](_0xb303('0x29'),auth['isChatInteractionAuthorized'](),controller[_0xb303('0x2a')]);router[_0xb303('0x2b')](_0xb303('0x2c'),controller[_0xb303('0x2d')]);router[_0xb303('0x2e')](_0xb303('0xd'),auth[_0xb303('0x8')](),interaction[_0xb303('0x2f')](_0xb303('0x24'),_0xb303('0x30')),controller[_0xb303('0x31')]);router[_0xb303('0x2e')](_0xb303('0x23'),auth['isAuthenticated'](),controller[_0xb303('0x32')]);module[_0xb303('0x33')]=router;
\ No newline at end of file
+var _0xfec6=['download','post','create','/:id/vidaoo','createVidaooSession','join','root','server/files/attachments/','format','%s-%s','now','replace','/:id/attachment_upload','single','attachmentUpload','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','addTags','put','chatinteraction:update','update','/:id/custom_update','customUpdate','/:id/abandon','delete','/:id','chatinteraction:destroy','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./chatInteraction.controller','get','isAuthenticated','/describe','show','/:id/attachment_download','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','isChatInteractionAuthorized','getMyMessages'];(function(_0x4d453c,_0x311b8c){var _0x4c80ac=function(_0x5548c0){while(--_0x5548c0){_0x4d453c['push'](_0x4d453c['shift']());}};_0x4c80ac(++_0x311b8c);}(_0xfec6,0xbc));var _0x6fec=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0xfec6[_0x59ee6f];return _0x4c0979;};'use strict';var multer=require(_0x6fec('0x0'));var util=require('util');var path=require(_0x6fec('0x1'));var timeout=require(_0x6fec('0x2'));var express=require(_0x6fec('0x3'));var router=express[_0x6fec('0x4')]();var fs_extra=require(_0x6fec('0x5'));var auth=require(_0x6fec('0x6'));var interaction=require(_0x6fec('0x7'));var config=require('../../config/environment');var controller=require(_0x6fec('0x8'));router[_0x6fec('0x9')]('/',auth[_0x6fec('0xa')](),controller['index']);router[_0x6fec('0x9')](_0x6fec('0xb'),auth['isAuthenticated'](),controller['describe']);router[_0x6fec('0x9')]('/:id',auth['isChatInteractionAuthorized'](),controller[_0x6fec('0xc')]);router[_0x6fec('0x9')](_0x6fec('0xd'),auth['isChatInteractionAuthorized'](),controller[_0x6fec('0xe')]);router[_0x6fec('0x9')](_0x6fec('0xf'),auth[_0x6fec('0xa')](),controller[_0x6fec('0x10')]);router[_0x6fec('0x9')](_0x6fec('0x11'),auth[_0x6fec('0x12')](),controller[_0x6fec('0x13')]);router[_0x6fec('0x9')]('/:id/download',auth['isAuthenticated'](),controller[_0x6fec('0x14')]);router[_0x6fec('0x15')]('/',auth[_0x6fec('0xa')](),controller[_0x6fec('0x16')]);router[_0x6fec('0x15')](_0x6fec('0x17'),auth[_0x6fec('0xa')](),controller[_0x6fec('0x18')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x5ccf67,_0x25ffe6,_0x58eba7){_0x58eba7(null,path[_0x6fec('0x19')](config[_0x6fec('0x1a')],_0x6fec('0x1b')));},'filename':function(_0xafe4f5,_0x3fc768,_0x505383){_0x505383(null,util[_0x6fec('0x1c')](_0x6fec('0x1d'),Date[_0x6fec('0x1e')](),_0x3fc768['originalname'][_0x6fec('0x1f')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x6fec('0x15')](_0x6fec('0x20'),upload[_0x6fec('0x21')]('file'),controller[_0x6fec('0x22')]);router['post']('/:id/messages',auth[_0x6fec('0x12')](),controller[_0x6fec('0x23')]);router[_0x6fec('0x15')](_0x6fec('0x24'),auth[_0x6fec('0xa')](),interaction[_0x6fec('0x25')](_0x6fec('0x26'),_0x6fec('0x27')),controller[_0x6fec('0x28')]);router[_0x6fec('0x29')]('/:id',auth[_0x6fec('0xa')](),interaction[_0x6fec('0x25')](_0x6fec('0x26'),_0x6fec('0x2a')),controller[_0x6fec('0x2b')]);router[_0x6fec('0x29')](_0x6fec('0x2c'),controller[_0x6fec('0x2d')]);router[_0x6fec('0x29')](_0x6fec('0x2e'),auth[_0x6fec('0x12')](),controller['abandon']);router[_0x6fec('0x29')]('/:id/close',controller['close']);router[_0x6fec('0x2f')](_0x6fec('0x30'),auth[_0x6fec('0xa')](),interaction[_0x6fec('0x25')](_0x6fec('0x26'),_0x6fec('0x31')),controller[_0x6fec('0x32')]);router[_0x6fec('0x2f')](_0x6fec('0x24'),auth[_0x6fec('0xa')](),controller['removeTags']);module[_0x6fec('0x33')]=router;
\ No newline at end of file