Built motion from commit 52c8a02d.|2.6.29
[motion2.git] / server / api / chatInteraction / index.js
index 7f083ee..f5fc574 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x793f=['chatinteraction:update','update','/:id/custom_update','customUpdate','/:id/abandon','abandon','/:id/close','close','delete','chatinteraction:destroy','removeTags','multer','util','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','/:id/attachment_download','isChatInteractionAuthorized','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','/:id/download','download','create','post','diskStorage','join','server/files/attachments/','format','%s-%s','now','/:id/attachment_upload','single','file','addMessage','/:id/tags','chat','chatinteraction:addtags','addTags','put'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0x793f,0x6f));var _0xf793=function(_0x3a829e,_0x102e30){_0x3a829e=_0x3a829e-0x0;var _0x1f88e9=_0x793f[_0x3a829e];return _0x1f88e9;};'use strict';var multer=require(_0xf793('0x0'));var util=require(_0xf793('0x1'));var path=require('path');var timeout=require(_0xf793('0x2'));var express=require(_0xf793('0x3'));var router=express[_0xf793('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xf793('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xf793('0x6'));var controller=require(_0xf793('0x7'));router[_0xf793('0x8')]('/',auth[_0xf793('0x9')](),controller[_0xf793('0xa')]);router['get'](_0xf793('0xb'),auth[_0xf793('0x9')](),controller[_0xf793('0xc')]);router[_0xf793('0x8')](_0xf793('0xd'),auth['isChatInteractionAuthorized'](),controller['show']);router[_0xf793('0x8')](_0xf793('0xe'),auth[_0xf793('0xf')](),controller[_0xf793('0x10')]);router[_0xf793('0x8')](_0xf793('0x11'),auth[_0xf793('0x9')](),controller[_0xf793('0x12')]);router[_0xf793('0x8')](_0xf793('0x13'),auth[_0xf793('0xf')](),controller['getMyMessages']);router['get'](_0xf793('0x14'),auth[_0xf793('0x9')](),controller[_0xf793('0x15')]);router['post']('/',auth[_0xf793('0x9')](),controller[_0xf793('0x16')]);router[_0xf793('0x17')]('/:id/vidaoo',auth['isAuthenticated'](),controller['createVidaooSession']);var upload=multer({'storage':multer[_0xf793('0x18')]({'destination':function(_0x4060e5,_0x31d28f,_0xbbc8f6){_0xbbc8f6(null,path[_0xf793('0x19')](config['root'],_0xf793('0x1a')));},'filename':function(_0x5bb732,_0x3dfbae,_0x8aadbd){_0x8aadbd(null,util[_0xf793('0x1b')](_0xf793('0x1c'),Date[_0xf793('0x1d')](),_0x3dfbae['originalname']['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xf793('0x17')](_0xf793('0x1e'),upload[_0xf793('0x1f')](_0xf793('0x20')),controller['attachmentUpload']);router[_0xf793('0x17')](_0xf793('0x11'),auth[_0xf793('0xf')](),controller[_0xf793('0x21')]);router[_0xf793('0x17')](_0xf793('0x22'),auth['isAuthenticated'](),interaction['tracked'](_0xf793('0x23'),_0xf793('0x24')),controller[_0xf793('0x25')]);router[_0xf793('0x26')](_0xf793('0xd'),auth['isAuthenticated'](),interaction['tracked'](_0xf793('0x23'),_0xf793('0x27')),controller[_0xf793('0x28')]);router['put'](_0xf793('0x29'),controller[_0xf793('0x2a')]);router[_0xf793('0x26')](_0xf793('0x2b'),auth[_0xf793('0xf')](),controller[_0xf793('0x2c')]);router[_0xf793('0x26')](_0xf793('0x2d'),controller[_0xf793('0x2e')]);router[_0xf793('0x2f')](_0xf793('0xd'),auth['isAuthenticated'](),interaction['tracked'](_0xf793('0x23'),_0xf793('0x30')),controller['destroy']);router[_0xf793('0x2f')]('/:id/tags',auth[_0xf793('0x9')](),controller[_0xf793('0x31')]);module['exports']=router;
\ No newline at end of file
+var _0x179e=['/:id/download','download','create','post','/:id/vidaoo','createVidaooSession','join','root','format','%s-%s','now','originalname','/:id/attachment_upload','single','file','attachmentUpload','addMessage','/:id/tags','tracked','chat','addTags','chatinteraction:update','update','put','/:id/custom_update','customUpdate','/:id/abandon','abandon','/:id/close','close','delete','/:id','chatinteraction:destroy','destroy','removeTags','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','index','/describe','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','/:id/messages','getMessages','getMyMessages'];(function(_0x11afd1,_0x4d62ff){var _0x5e8b34=function(_0x77b8b7){while(--_0x77b8b7){_0x11afd1['push'](_0x11afd1['shift']());}};_0x5e8b34(++_0x4d62ff);}(_0x179e,0xcf));var _0xe179=function(_0x460d4e,_0x1e02de){_0x460d4e=_0x460d4e-0x0;var _0x37d484=_0x179e[_0x460d4e];return _0x37d484;};'use strict';var multer=require(_0xe179('0x0'));var util=require(_0xe179('0x1'));var path=require(_0xe179('0x2'));var timeout=require(_0xe179('0x3'));var express=require(_0xe179('0x4'));var router=express[_0xe179('0x5')]();var fs_extra=require(_0xe179('0x6'));var auth=require(_0xe179('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0xe179('0x8'));var controller=require(_0xe179('0x9'));router[_0xe179('0xa')]('/',auth[_0xe179('0xb')](),controller[_0xe179('0xc')]);router['get'](_0xe179('0xd'),auth[_0xe179('0xb')](),controller['describe']);router[_0xe179('0xa')]('/:id',auth[_0xe179('0xe')](),controller[_0xe179('0xf')]);router[_0xe179('0xa')](_0xe179('0x10'),auth[_0xe179('0xe')](),controller[_0xe179('0x11')]);router['get'](_0xe179('0x12'),auth[_0xe179('0xb')](),controller[_0xe179('0x13')]);router[_0xe179('0xa')]('/:id/my_messages',auth[_0xe179('0xe')](),controller[_0xe179('0x14')]);router[_0xe179('0xa')](_0xe179('0x15'),auth['isAuthenticated'](),controller[_0xe179('0x16')]);router['post']('/',auth[_0xe179('0xb')](),controller[_0xe179('0x17')]);router[_0xe179('0x18')](_0xe179('0x19'),auth[_0xe179('0xb')](),controller[_0xe179('0x1a')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0xa0d58a,_0x22c8a7,_0x501627){_0x501627(null,path[_0xe179('0x1b')](config[_0xe179('0x1c')],'server/files/attachments/'));},'filename':function(_0x1d6f20,_0x2b5231,_0x59fd4f){_0x59fd4f(null,util[_0xe179('0x1d')](_0xe179('0x1e'),Date[_0xe179('0x1f')](),_0x2b5231[_0xe179('0x20')]['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xe179('0x18')](_0xe179('0x21'),upload[_0xe179('0x22')](_0xe179('0x23')),controller[_0xe179('0x24')]);router[_0xe179('0x18')](_0xe179('0x12'),auth[_0xe179('0xe')](),controller[_0xe179('0x25')]);router[_0xe179('0x18')](_0xe179('0x26'),auth[_0xe179('0xb')](),interaction[_0xe179('0x27')](_0xe179('0x28'),'chatinteraction:addtags'),controller[_0xe179('0x29')]);router['put']('/:id',auth[_0xe179('0xb')](),interaction['tracked'](_0xe179('0x28'),_0xe179('0x2a')),controller[_0xe179('0x2b')]);router[_0xe179('0x2c')](_0xe179('0x2d'),controller[_0xe179('0x2e')]);router[_0xe179('0x2c')](_0xe179('0x2f'),auth[_0xe179('0xe')](),controller[_0xe179('0x30')]);router[_0xe179('0x2c')](_0xe179('0x31'),controller[_0xe179('0x32')]);router[_0xe179('0x33')](_0xe179('0x34'),auth[_0xe179('0xb')](),interaction[_0xe179('0x27')](_0xe179('0x28'),_0xe179('0x35')),controller[_0xe179('0x36')]);router[_0xe179('0x33')](_0xe179('0x26'),auth['isAuthenticated'](),controller[_0xe179('0x37')]);module[_0xe179('0x38')]=router;
\ No newline at end of file