Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / chatInteraction / index.js
index 188f398..21fcf05 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x297a=['get','/:id/attachment_download','attachmentDownload','getMessages','/:id/my_messages','download','/:id/vidaoo','diskStorage','join','root','%s-%s','originalname','replace','/:id/attachment_upload','single','file','attachmentUpload','/:id/messages','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','put','chatinteraction:update','update','/:id/abandon','abandon','/:id/close','delete','removeTags','exports','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./chatInteraction.controller','isAuthenticated','describe','/:id','isChatInteractionAuthorized'];(function(_0x2c07b9,_0x105ee4){var _0x2dfec3=function(_0x58f3be){while(--_0x58f3be){_0x2c07b9['push'](_0x2c07b9['shift']());}};_0x2dfec3(++_0x105ee4);}(_0x297a,0x128));var _0xa297=function(_0x1a8fa9,_0xdd4b72){_0x1a8fa9=_0x1a8fa9-0x0;var _0x2ac523=_0x297a[_0x1a8fa9];return _0x2ac523;};'use strict';var multer=require('multer');var util=require(_0xa297('0x0'));var path=require(_0xa297('0x1'));var timeout=require(_0xa297('0x2'));var express=require(_0xa297('0x3'));var router=express[_0xa297('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xa297('0x5'));var config=require(_0xa297('0x6'));var controller=require(_0xa297('0x7'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get']('/describe',auth[_0xa297('0x8')](),controller[_0xa297('0x9')]);router['get'](_0xa297('0xa'),auth[_0xa297('0xb')](),controller['show']);router[_0xa297('0xc')](_0xa297('0xd'),auth[_0xa297('0xb')](),controller[_0xa297('0xe')]);router[_0xa297('0xc')]('/:id/messages',auth[_0xa297('0x8')](),controller[_0xa297('0xf')]);router[_0xa297('0xc')](_0xa297('0x10'),auth[_0xa297('0xb')](),controller['getMyMessages']);router[_0xa297('0xc')]('/:id/download',auth[_0xa297('0x8')](),controller[_0xa297('0x11')]);router['post']('/',auth[_0xa297('0x8')](),controller['create']);router['post'](_0xa297('0x12'),auth[_0xa297('0x8')](),controller['createVidaooSession']);var upload=multer({'storage':multer[_0xa297('0x13')]({'destination':function(_0x475226,_0xb13681,_0x4ea0b8){_0x4ea0b8(null,path[_0xa297('0x14')](config[_0xa297('0x15')],'server/files/attachments/'));},'filename':function(_0x60dff7,_0x596ab6,_0x15d409){_0x15d409(null,util['format'](_0xa297('0x16'),Date['now'](),_0x596ab6[_0xa297('0x17')][_0xa297('0x18')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post'](_0xa297('0x19'),upload[_0xa297('0x1a')](_0xa297('0x1b')),controller[_0xa297('0x1c')]);router['post'](_0xa297('0x1d'),auth[_0xa297('0xb')](),controller[_0xa297('0x1e')]);router['post'](_0xa297('0x1f'),auth[_0xa297('0x8')](),interaction[_0xa297('0x20')](_0xa297('0x21'),_0xa297('0x22')),controller['addTags']);router[_0xa297('0x23')](_0xa297('0xa'),auth[_0xa297('0x8')](),interaction[_0xa297('0x20')](_0xa297('0x21'),_0xa297('0x24')),controller[_0xa297('0x25')]);router[_0xa297('0x23')]('/:id/custom_update',controller['customUpdate']);router[_0xa297('0x23')](_0xa297('0x26'),auth[_0xa297('0xb')](),controller[_0xa297('0x27')]);router[_0xa297('0x23')](_0xa297('0x28'),controller['close']);router['delete'](_0xa297('0xa'),auth[_0xa297('0x8')](),interaction[_0xa297('0x20')](_0xa297('0x21'),'chatinteraction:destroy'),controller['destroy']);router[_0xa297('0x29')]('/:id/tags',auth[_0xa297('0x8')](),controller[_0xa297('0x2a')]);module[_0xa297('0x2b')]=router;
\ No newline at end of file
+var _0xc9f6=['join','root','server/files/attachments/','%s-%s','now','originalname','replace','single','file','attachmentUpload','/:id/messages','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','addTags','put','update','/:id/custom_update','/:id/abandon','abandon','/:id/close','delete','chatinteraction:destroy','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','index','describe','isChatInteractionAuthorized','show','/:id/attachment_download','/:id/my_messages','getMyMessages','download','post','create','/:id/vidaoo','createVidaooSession','diskStorage'];(function(_0x40a30e,_0x5af2e6){var _0x4e6ef5=function(_0x521bbb){while(--_0x521bbb){_0x40a30e['push'](_0x40a30e['shift']());}};_0x4e6ef5(++_0x5af2e6);}(_0xc9f6,0x83));var _0x6c9f=function(_0x1e0a3a,_0x3135fc){_0x1e0a3a=_0x1e0a3a-0x0;var _0x1a426d=_0xc9f6[_0x1e0a3a];return _0x1a426d;};'use strict';var multer=require(_0x6c9f('0x0'));var util=require(_0x6c9f('0x1'));var path=require(_0x6c9f('0x2'));var timeout=require(_0x6c9f('0x3'));var express=require('express');var router=express[_0x6c9f('0x4')]();var fs_extra=require(_0x6c9f('0x5'));var auth=require(_0x6c9f('0x6'));var interaction=require(_0x6c9f('0x7'));var config=require(_0x6c9f('0x8'));var controller=require(_0x6c9f('0x9'));router[_0x6c9f('0xa')]('/',auth[_0x6c9f('0xb')](),controller[_0x6c9f('0xc')]);router[_0x6c9f('0xa')]('/describe',auth[_0x6c9f('0xb')](),controller[_0x6c9f('0xd')]);router['get']('/:id',auth[_0x6c9f('0xe')](),controller[_0x6c9f('0xf')]);router[_0x6c9f('0xa')](_0x6c9f('0x10'),auth[_0x6c9f('0xe')](),controller['attachmentDownload']);router['get']('/:id/messages',auth[_0x6c9f('0xb')](),controller['getMessages']);router[_0x6c9f('0xa')](_0x6c9f('0x11'),auth[_0x6c9f('0xe')](),controller[_0x6c9f('0x12')]);router[_0x6c9f('0xa')]('/:id/download',auth[_0x6c9f('0xb')](),controller[_0x6c9f('0x13')]);router[_0x6c9f('0x14')]('/',auth[_0x6c9f('0xb')](),controller[_0x6c9f('0x15')]);router[_0x6c9f('0x14')](_0x6c9f('0x16'),auth[_0x6c9f('0xb')](),controller[_0x6c9f('0x17')]);var upload=multer({'storage':multer[_0x6c9f('0x18')]({'destination':function(_0x2ec8c5,_0x55d1df,_0x322b13){_0x322b13(null,path[_0x6c9f('0x19')](config[_0x6c9f('0x1a')],_0x6c9f('0x1b')));},'filename':function(_0x348883,_0x444e4a,_0x3f39e2){_0x3f39e2(null,util['format'](_0x6c9f('0x1c'),Date[_0x6c9f('0x1d')](),_0x444e4a[_0x6c9f('0x1e')][_0x6c9f('0x1f')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x6c9f('0x14')]('/:id/attachment_upload',upload[_0x6c9f('0x20')](_0x6c9f('0x21')),controller[_0x6c9f('0x22')]);router[_0x6c9f('0x14')](_0x6c9f('0x23'),auth['isChatInteractionAuthorized'](),controller[_0x6c9f('0x24')]);router[_0x6c9f('0x14')](_0x6c9f('0x25'),auth['isAuthenticated'](),interaction[_0x6c9f('0x26')](_0x6c9f('0x27'),_0x6c9f('0x28')),controller[_0x6c9f('0x29')]);router[_0x6c9f('0x2a')]('/:id',auth[_0x6c9f('0xb')](),interaction[_0x6c9f('0x26')]('chat','chatinteraction:update'),controller[_0x6c9f('0x2b')]);router['put'](_0x6c9f('0x2c'),controller['customUpdate']);router['put'](_0x6c9f('0x2d'),auth[_0x6c9f('0xe')](),controller[_0x6c9f('0x2e')]);router[_0x6c9f('0x2a')](_0x6c9f('0x2f'),controller['close']);router[_0x6c9f('0x30')]('/:id',auth[_0x6c9f('0xb')](),interaction[_0x6c9f('0x26')](_0x6c9f('0x27'),_0x6c9f('0x31')),controller[_0x6c9f('0x32')]);router[_0x6c9f('0x30')](_0x6c9f('0x25'),auth['isAuthenticated'](),controller['removeTags']);module[_0x6c9f('0x33')]=router;
\ No newline at end of file