Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / chatInteraction / index.js
index a81b1f4..90a8c12 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4f63=['join','root','server/files/attachments/','%s-%s','now','originalname','replace','/:id/attachment_upload','single','file','attachmentUpload','tracked','chatinteraction:addtags','addTags','put','/:id','chat','chatinteraction:update','update','/:id/custom_update','customUpdate','abandon','close','delete','chatinteraction:destroy','destroy','/:id/tags','removeTags','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','isChatInteractionAuthorized','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download','create','post','/:id/vidaoo','createVidaooSession','diskStorage'];(function(_0x3b29d5,_0x12faa2){var _0x20b96d=function(_0x284207){while(--_0x284207){_0x3b29d5['push'](_0x3b29d5['shift']());}};_0x20b96d(++_0x12faa2);}(_0x4f63,0xc2));var _0x34f6=function(_0x8ed2fe,_0x19ca78){_0x8ed2fe=_0x8ed2fe-0x0;var _0x23a751=_0x4f63[_0x8ed2fe];return _0x23a751;};'use strict';var multer=require(_0x34f6('0x0'));var util=require(_0x34f6('0x1'));var path=require(_0x34f6('0x2'));var timeout=require(_0x34f6('0x3'));var express=require(_0x34f6('0x4'));var router=express[_0x34f6('0x5')]();var fs_extra=require(_0x34f6('0x6'));var auth=require(_0x34f6('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x34f6('0x8'));var controller=require('./chatInteraction.controller');router[_0x34f6('0x9')]('/',auth[_0x34f6('0xa')](),controller[_0x34f6('0xb')]);router['get'](_0x34f6('0xc'),auth[_0x34f6('0xa')](),controller[_0x34f6('0xd')]);router[_0x34f6('0x9')]('/:id',auth[_0x34f6('0xe')](),controller['show']);router[_0x34f6('0x9')]('/:id/attachment_download',auth[_0x34f6('0xe')](),controller[_0x34f6('0xf')]);router[_0x34f6('0x9')](_0x34f6('0x10'),auth[_0x34f6('0xa')](),controller[_0x34f6('0x11')]);router[_0x34f6('0x9')](_0x34f6('0x12'),auth[_0x34f6('0xe')](),controller[_0x34f6('0x13')]);router['get'](_0x34f6('0x14'),auth[_0x34f6('0xa')](),controller['download']);router['post']('/',auth[_0x34f6('0xa')](),controller[_0x34f6('0x15')]);router[_0x34f6('0x16')](_0x34f6('0x17'),auth[_0x34f6('0xa')](),controller[_0x34f6('0x18')]);var upload=multer({'storage':multer[_0x34f6('0x19')]({'destination':function(_0x4b223d,_0xfe1997,_0x3843f3){_0x3843f3(null,path[_0x34f6('0x1a')](config[_0x34f6('0x1b')],_0x34f6('0x1c')));},'filename':function(_0x335857,_0x27defb,_0x444714){_0x444714(null,util['format'](_0x34f6('0x1d'),Date[_0x34f6('0x1e')](),_0x27defb[_0x34f6('0x1f')][_0x34f6('0x20')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x34f6('0x16')](_0x34f6('0x21'),upload[_0x34f6('0x22')](_0x34f6('0x23')),controller[_0x34f6('0x24')]);router[_0x34f6('0x16')](_0x34f6('0x10'),auth[_0x34f6('0xe')](),controller['addMessage']);router['post']('/:id/tags',auth[_0x34f6('0xa')](),interaction[_0x34f6('0x25')]('chat',_0x34f6('0x26')),controller[_0x34f6('0x27')]);router[_0x34f6('0x28')](_0x34f6('0x29'),auth[_0x34f6('0xa')](),interaction['tracked'](_0x34f6('0x2a'),_0x34f6('0x2b')),controller[_0x34f6('0x2c')]);router[_0x34f6('0x28')](_0x34f6('0x2d'),controller[_0x34f6('0x2e')]);router[_0x34f6('0x28')]('/:id/abandon',auth['isChatInteractionAuthorized'](),controller[_0x34f6('0x2f')]);router[_0x34f6('0x28')]('/:id/close',controller[_0x34f6('0x30')]);router[_0x34f6('0x31')](_0x34f6('0x29'),auth[_0x34f6('0xa')](),interaction[_0x34f6('0x25')](_0x34f6('0x2a'),_0x34f6('0x32')),controller[_0x34f6('0x33')]);router[_0x34f6('0x31')](_0x34f6('0x34'),auth[_0x34f6('0xa')](),controller[_0x34f6('0x35')]);module[_0x34f6('0x36')]=router;
\ No newline at end of file
+var _0x39e0=['originalname','single','file','attachmentUpload','addMessage','tracked','chat','chatinteraction:addtags','put','/:id','update','/:id/custom_update','/:id/abandon','abandon','close','delete','chatinteraction:destroy','destroy','removeTags','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','get','isAuthenticated','index','describe','isChatInteractionAuthorized','show','/:id/attachment_download','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download','download','post','create','/:id/vidaoo','diskStorage','join','root','server/files/attachments/','format','%s-%s','now'];(function(_0x4c0dfa,_0x201044){var _0x50dcf4=function(_0x1b1899){while(--_0x1b1899){_0x4c0dfa['push'](_0x4c0dfa['shift']());}};_0x50dcf4(++_0x201044);}(_0x39e0,0x1a4));var _0x039e=function(_0x427d66,_0x385bab){_0x427d66=_0x427d66-0x0;var _0x105fcb=_0x39e0[_0x427d66];return _0x105fcb;};'use strict';var multer=require(_0x039e('0x0'));var util=require(_0x039e('0x1'));var path=require(_0x039e('0x2'));var timeout=require(_0x039e('0x3'));var express=require('express');var router=express[_0x039e('0x4')]();var fs_extra=require(_0x039e('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x039e('0x6'));var config=require('../../config/environment');var controller=require('./chatInteraction.controller');router[_0x039e('0x7')]('/',auth[_0x039e('0x8')](),controller[_0x039e('0x9')]);router[_0x039e('0x7')]('/describe',auth[_0x039e('0x8')](),controller[_0x039e('0xa')]);router['get']('/:id',auth[_0x039e('0xb')](),controller[_0x039e('0xc')]);router[_0x039e('0x7')](_0x039e('0xd'),auth[_0x039e('0xb')](),controller['attachmentDownload']);router[_0x039e('0x7')](_0x039e('0xe'),auth[_0x039e('0x8')](),controller[_0x039e('0xf')]);router[_0x039e('0x7')](_0x039e('0x10'),auth[_0x039e('0xb')](),controller[_0x039e('0x11')]);router[_0x039e('0x7')](_0x039e('0x12'),auth[_0x039e('0x8')](),controller[_0x039e('0x13')]);router[_0x039e('0x14')]('/',auth[_0x039e('0x8')](),controller[_0x039e('0x15')]);router[_0x039e('0x14')](_0x039e('0x16'),auth['isAuthenticated'](),controller['createVidaooSession']);var upload=multer({'storage':multer[_0x039e('0x17')]({'destination':function(_0x1046ce,_0x268a69,_0x4257d8){_0x4257d8(null,path[_0x039e('0x18')](config[_0x039e('0x19')],_0x039e('0x1a')));},'filename':function(_0x25ecec,_0x16deef,_0x345f08){_0x345f08(null,util[_0x039e('0x1b')](_0x039e('0x1c'),Date[_0x039e('0x1d')](),_0x16deef[_0x039e('0x1e')]['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post']('/:id/attachment_upload',upload[_0x039e('0x1f')](_0x039e('0x20')),controller[_0x039e('0x21')]);router['post'](_0x039e('0xe'),auth[_0x039e('0xb')](),controller[_0x039e('0x22')]);router['post']('/:id/tags',auth['isAuthenticated'](),interaction[_0x039e('0x23')](_0x039e('0x24'),_0x039e('0x25')),controller['addTags']);router[_0x039e('0x26')](_0x039e('0x27'),auth['isAuthenticated'](),interaction[_0x039e('0x23')]('chat','chatinteraction:update'),controller[_0x039e('0x28')]);router[_0x039e('0x26')](_0x039e('0x29'),controller['customUpdate']);router[_0x039e('0x26')](_0x039e('0x2a'),auth[_0x039e('0xb')](),controller[_0x039e('0x2b')]);router['put']('/:id/close',controller[_0x039e('0x2c')]);router[_0x039e('0x2d')](_0x039e('0x27'),auth[_0x039e('0x8')](),interaction[_0x039e('0x23')](_0x039e('0x24'),_0x039e('0x2e')),controller[_0x039e('0x2f')]);router['delete']('/:id/tags',auth[_0x039e('0x8')](),controller[_0x039e('0x30')]);module[_0x039e('0x31')]=router;
\ No newline at end of file