Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / api / chatInteraction / index.js
index 3cfd6f9..aea7003 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4b84=['/:id/my_messages','getMyMessages','post','createVidaooSession','diskStorage','server/files/attachments/','%s-%s','now','replace','single','file','attachmentUpload','isChatInteractionAuthorized','addMessage','/:id/tags','tracked','chat','addTags','put','/:id','chatinteraction:update','/:id/custom_update','customUpdate','/:id/abandon','abandon','/:id/close','close','chatinteraction:destroy','destroy','removeTags','multer','util','express','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','show','/:id/attachment_download','attachmentDownload','/:id/messages','getMessages'];(function(_0x5d849f,_0x3494ab){var _0x17712a=function(_0x56bb98){while(--_0x56bb98){_0x5d849f['push'](_0x5d849f['shift']());}};_0x17712a(++_0x3494ab);}(_0x4b84,0x1cc));var _0x44b8=function(_0x82140,_0x3a9d87){_0x82140=_0x82140-0x0;var _0x2b15a6=_0x4b84[_0x82140];return _0x2b15a6;};'use strict';var multer=require(_0x44b8('0x0'));var util=require(_0x44b8('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x44b8('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x44b8('0x3'));var config=require(_0x44b8('0x4'));var controller=require(_0x44b8('0x5'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x44b8('0x6')]('/describe',auth[_0x44b8('0x7')](),controller['describe']);router[_0x44b8('0x6')]('/:id',auth['isChatInteractionAuthorized'](),controller[_0x44b8('0x8')]);router[_0x44b8('0x6')](_0x44b8('0x9'),auth['isChatInteractionAuthorized'](),controller[_0x44b8('0xa')]);router[_0x44b8('0x6')](_0x44b8('0xb'),auth[_0x44b8('0x7')](),controller[_0x44b8('0xc')]);router[_0x44b8('0x6')](_0x44b8('0xd'),auth['isChatInteractionAuthorized'](),controller[_0x44b8('0xe')]);router[_0x44b8('0x6')]('/:id/download',auth[_0x44b8('0x7')](),controller['download']);router[_0x44b8('0xf')]('/',auth[_0x44b8('0x7')](),controller['create']);router[_0x44b8('0xf')]('/:id/vidaoo',auth['isAuthenticated'](),controller[_0x44b8('0x10')]);var upload=multer({'storage':multer[_0x44b8('0x11')]({'destination':function(_0x1722da,_0x41ab46,_0x5e52f2){_0x5e52f2(null,path['join'](config['root'],_0x44b8('0x12')));},'filename':function(_0x5b7803,_0x28ef36,_0x31651b){_0x31651b(null,util['format'](_0x44b8('0x13'),Date[_0x44b8('0x14')](),_0x28ef36['originalname'][_0x44b8('0x15')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x44b8('0xf')]('/:id/attachment_upload',upload[_0x44b8('0x16')](_0x44b8('0x17')),controller[_0x44b8('0x18')]);router[_0x44b8('0xf')](_0x44b8('0xb'),auth[_0x44b8('0x19')](),controller[_0x44b8('0x1a')]);router[_0x44b8('0xf')](_0x44b8('0x1b'),auth[_0x44b8('0x7')](),interaction[_0x44b8('0x1c')](_0x44b8('0x1d'),'chatinteraction:addtags'),controller[_0x44b8('0x1e')]);router[_0x44b8('0x1f')](_0x44b8('0x20'),auth[_0x44b8('0x7')](),interaction[_0x44b8('0x1c')]('chat',_0x44b8('0x21')),controller['update']);router[_0x44b8('0x1f')](_0x44b8('0x22'),controller[_0x44b8('0x23')]);router[_0x44b8('0x1f')](_0x44b8('0x24'),auth['isChatInteractionAuthorized'](),controller[_0x44b8('0x25')]);router['put'](_0x44b8('0x26'),controller[_0x44b8('0x27')]);router['delete'](_0x44b8('0x20'),auth[_0x44b8('0x7')](),interaction[_0x44b8('0x1c')]('chat',_0x44b8('0x28')),controller[_0x44b8('0x29')]);router['delete'](_0x44b8('0x1b'),auth['isAuthenticated'](),controller[_0x44b8('0x2a')]);module['exports']=router;
\ No newline at end of file
+var _0x6aa7=['attachmentUpload','addMessage','/:id/tags','tracked','chatinteraction:addtags','addTags','put','chat','chatinteraction:update','update','/:id/custom_update','customUpdate','abandon','/:id/close','close','delete','destroy','removeTags','exports','multer','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./chatInteraction.controller','index','/describe','isAuthenticated','describe','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','get','/:id/messages','getMessages','/:id/my_messages','download','post','create','diskStorage','root','format','%s-%s','now','/:id/attachment_upload','single','file'];(function(_0x53b3a9,_0x2fb8cb){var _0x504982=function(_0x185ef2){while(--_0x185ef2){_0x53b3a9['push'](_0x53b3a9['shift']());}};_0x504982(++_0x2fb8cb);}(_0x6aa7,0x178));var _0x76aa=function(_0x16b9de,_0x2af0b2){_0x16b9de=_0x16b9de-0x0;var _0x38eeb1=_0x6aa7[_0x16b9de];return _0x38eeb1;};'use strict';var multer=require(_0x76aa('0x0'));var util=require('util');var path=require(_0x76aa('0x1'));var timeout=require(_0x76aa('0x2'));var express=require(_0x76aa('0x3'));var router=express[_0x76aa('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x76aa('0x5'));var config=require(_0x76aa('0x6'));var controller=require(_0x76aa('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x76aa('0x8')]);router['get'](_0x76aa('0x9'),auth[_0x76aa('0xa')](),controller[_0x76aa('0xb')]);router['get'](_0x76aa('0xc'),auth[_0x76aa('0xd')](),controller[_0x76aa('0xe')]);router['get'](_0x76aa('0xf'),auth[_0x76aa('0xd')](),controller[_0x76aa('0x10')]);router[_0x76aa('0x11')](_0x76aa('0x12'),auth[_0x76aa('0xa')](),controller[_0x76aa('0x13')]);router[_0x76aa('0x11')](_0x76aa('0x14'),auth[_0x76aa('0xd')](),controller['getMyMessages']);router[_0x76aa('0x11')]('/:id/download',auth[_0x76aa('0xa')](),controller[_0x76aa('0x15')]);router[_0x76aa('0x16')]('/',auth[_0x76aa('0xa')](),controller[_0x76aa('0x17')]);router['post']('/:id/vidaoo',auth[_0x76aa('0xa')](),controller['createVidaooSession']);var upload=multer({'storage':multer[_0x76aa('0x18')]({'destination':function(_0x319bf1,_0x5cf594,_0x2111c7){_0x2111c7(null,path['join'](config[_0x76aa('0x19')],'server/files/attachments/'));},'filename':function(_0x1515e9,_0x413cf6,_0x2ab30b){_0x2ab30b(null,util[_0x76aa('0x1a')](_0x76aa('0x1b'),Date[_0x76aa('0x1c')](),_0x413cf6['originalname']['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x76aa('0x16')](_0x76aa('0x1d'),upload[_0x76aa('0x1e')](_0x76aa('0x1f')),controller[_0x76aa('0x20')]);router[_0x76aa('0x16')](_0x76aa('0x12'),auth[_0x76aa('0xd')](),controller[_0x76aa('0x21')]);router['post'](_0x76aa('0x22'),auth[_0x76aa('0xa')](),interaction[_0x76aa('0x23')]('chat',_0x76aa('0x24')),controller[_0x76aa('0x25')]);router[_0x76aa('0x26')](_0x76aa('0xc'),auth[_0x76aa('0xa')](),interaction[_0x76aa('0x23')](_0x76aa('0x27'),_0x76aa('0x28')),controller[_0x76aa('0x29')]);router[_0x76aa('0x26')](_0x76aa('0x2a'),controller[_0x76aa('0x2b')]);router[_0x76aa('0x26')]('/:id/abandon',auth[_0x76aa('0xd')](),controller[_0x76aa('0x2c')]);router[_0x76aa('0x26')](_0x76aa('0x2d'),controller[_0x76aa('0x2e')]);router[_0x76aa('0x2f')](_0x76aa('0xc'),auth[_0x76aa('0xa')](),interaction[_0x76aa('0x23')](_0x76aa('0x27'),'chatinteraction:destroy'),controller[_0x76aa('0x30')]);router['delete'](_0x76aa('0x22'),auth[_0x76aa('0xa')](),controller[_0x76aa('0x31')]);module[_0x76aa('0x32')]=router;
\ No newline at end of file