Built motion from commit (unavailable).|2.5.10
[motion2.git] / server / api / chatInteraction / index.js
index aea7003..6c73502 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0xb44b=['isChatInteractionAuthorized','/:id/attachment_download','attachmentDownload','/:id/messages','getMessages','/:id/download','create','diskStorage','join','server/files/attachments/','format','%s-%s','now','originalname','replace','post','single','file','attachmentUpload','addMessage','tracked','chat','addTags','update','put','/:id/custom_update','abandon','/:id/close','close','delete','chatinteraction:destroy','destroy','/:id/tags','removeTags','exports','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id'];(function(_0xc67528,_0x24e2fb){var _0x38e26d=function(_0x1b0efe){while(--_0x1b0efe){_0xc67528['push'](_0xc67528['shift']());}};_0x38e26d(++_0x24e2fb);}(_0xb44b,0x1ab));var _0xbb44=function(_0x533990,_0x21fe8d){_0x533990=_0x533990-0x0;var _0x5a5e2a=_0xb44b[_0x533990];return _0x5a5e2a;};'use strict';var multer=require('multer');var util=require(_0xbb44('0x0'));var path=require(_0xbb44('0x1'));var timeout=require(_0xbb44('0x2'));var express=require(_0xbb44('0x3'));var router=express['Router']();var auth=require(_0xbb44('0x4'));var interaction=require(_0xbb44('0x5'));var config=require(_0xbb44('0x6'));var controller=require(_0xbb44('0x7'));router[_0xbb44('0x8')]('/',auth[_0xbb44('0x9')](),controller[_0xbb44('0xa')]);router['get'](_0xbb44('0xb'),auth[_0xbb44('0x9')](),controller[_0xbb44('0xc')]);router[_0xbb44('0x8')](_0xbb44('0xd'),auth[_0xbb44('0xe')](),controller['show']);router[_0xbb44('0x8')](_0xbb44('0xf'),auth[_0xbb44('0xe')](),controller[_0xbb44('0x10')]);router[_0xbb44('0x8')](_0xbb44('0x11'),auth[_0xbb44('0x9')](),controller[_0xbb44('0x12')]);router[_0xbb44('0x8')]('/:id/my_messages',auth[_0xbb44('0xe')](),controller['getMyMessages']);router[_0xbb44('0x8')](_0xbb44('0x13'),auth[_0xbb44('0x9')](),controller['download']);router['post']('/',auth[_0xbb44('0x9')](),controller[_0xbb44('0x14')]);router['post']('/:id/vidaoo',auth[_0xbb44('0x9')](),controller['createVidaooSession']);var upload=multer({'storage':multer[_0xbb44('0x15')]({'destination':function(_0x206751,_0x5f4194,_0x56ec5c){_0x56ec5c(null,path[_0xbb44('0x16')](config['root'],_0xbb44('0x17')));},'filename':function(_0x55ae30,_0x51a7e0,_0x2bc621){_0x2bc621(null,util[_0xbb44('0x18')](_0xbb44('0x19'),Date[_0xbb44('0x1a')](),_0x51a7e0[_0xbb44('0x1b')][_0xbb44('0x1c')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xbb44('0x1d')]('/:id/attachment_upload',upload[_0xbb44('0x1e')](_0xbb44('0x1f')),controller[_0xbb44('0x20')]);router[_0xbb44('0x1d')](_0xbb44('0x11'),auth[_0xbb44('0xe')](),controller[_0xbb44('0x21')]);router['post']('/:id/tags',auth[_0xbb44('0x9')](),interaction[_0xbb44('0x22')](_0xbb44('0x23'),'chatinteraction:addtags'),controller[_0xbb44('0x24')]);router['put'](_0xbb44('0xd'),auth[_0xbb44('0x9')](),interaction[_0xbb44('0x22')](_0xbb44('0x23'),'chatinteraction:update'),controller[_0xbb44('0x25')]);router[_0xbb44('0x26')](_0xbb44('0x27'),controller['customUpdate']);router['put']('/:id/abandon',auth[_0xbb44('0xe')](),controller[_0xbb44('0x28')]);router['put'](_0xbb44('0x29'),controller[_0xbb44('0x2a')]);router[_0xbb44('0x2b')](_0xbb44('0xd'),auth['isAuthenticated'](),interaction[_0xbb44('0x22')](_0xbb44('0x23'),_0xbb44('0x2c')),controller[_0xbb44('0x2d')]);router[_0xbb44('0x2b')](_0xbb44('0x2e'),auth['isAuthenticated'](),controller[_0xbb44('0x2f')]);module[_0xbb44('0x30')]=router;
\ No newline at end of file