Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / api / chatInteraction / index.js
index 6d49c65..60c0033 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x09ad=['download','post','create','/:id/vidaoo','createVidaooSession','diskStorage','server/files/attachments/','format','%s-%s','now','originalname','replace','/:id/attachment_upload','single','file','addMessage','/:id/tags','tracked','chatinteraction:addtags','addTags','/:id','chatinteraction:update','update','put','/:id/custom_update','/:id/abandon','/:id/close','close','delete','chat','destroy','exports','connect-timeout','Router','fs-extra','../../components/auth/service','./chatInteraction.controller','get','isAuthenticated','index','/describe','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','/:id/messages','/:id/my_messages','getMyMessages','/:id/download'];(function(_0x3daf1a,_0x3094ea){var _0x28210d=function(_0x29e615){while(--_0x29e615){_0x3daf1a['push'](_0x3daf1a['shift']());}};_0x28210d(++_0x3094ea);}(_0x09ad,0x1d9));var _0xd09a=function(_0x1b6984,_0x49a66b){_0x1b6984=_0x1b6984-0x0;var _0x199a4a=_0x09ad[_0x1b6984];return _0x199a4a;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xd09a('0x0'));var express=require('express');var router=express[_0xd09a('0x1')]();var fs_extra=require(_0xd09a('0x2'));var auth=require(_0xd09a('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xd09a('0x4'));router[_0xd09a('0x5')]('/',auth[_0xd09a('0x6')](),controller[_0xd09a('0x7')]);router[_0xd09a('0x5')](_0xd09a('0x8'),auth[_0xd09a('0x6')](),controller['describe']);router['get']('/:id',auth[_0xd09a('0x9')](),controller[_0xd09a('0xa')]);router[_0xd09a('0x5')](_0xd09a('0xb'),auth['isChatInteractionAuthorized'](),controller[_0xd09a('0xc')]);router[_0xd09a('0x5')](_0xd09a('0xd'),auth['isAuthenticated'](),controller['getMessages']);router[_0xd09a('0x5')](_0xd09a('0xe'),auth[_0xd09a('0x9')](),controller[_0xd09a('0xf')]);router[_0xd09a('0x5')](_0xd09a('0x10'),auth[_0xd09a('0x6')](),controller[_0xd09a('0x11')]);router[_0xd09a('0x12')]('/',auth[_0xd09a('0x6')](),controller[_0xd09a('0x13')]);router[_0xd09a('0x12')](_0xd09a('0x14'),auth[_0xd09a('0x6')](),controller[_0xd09a('0x15')]);var upload=multer({'storage':multer[_0xd09a('0x16')]({'destination':function(_0x3daa9f,_0x44ec81,_0x11b113){_0x11b113(null,path['join'](config['root'],_0xd09a('0x17')));},'filename':function(_0x247b6e,_0x5546cf,_0x4cc60f){_0x4cc60f(null,util[_0xd09a('0x18')](_0xd09a('0x19'),Date[_0xd09a('0x1a')](),_0x5546cf[_0xd09a('0x1b')][_0xd09a('0x1c')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xd09a('0x12')](_0xd09a('0x1d'),upload[_0xd09a('0x1e')](_0xd09a('0x1f')),controller['attachmentUpload']);router[_0xd09a('0x12')]('/:id/messages',auth['isChatInteractionAuthorized'](),controller[_0xd09a('0x20')]);router[_0xd09a('0x12')](_0xd09a('0x21'),auth[_0xd09a('0x6')](),interaction[_0xd09a('0x22')]('chat',_0xd09a('0x23')),controller[_0xd09a('0x24')]);router['put'](_0xd09a('0x25'),auth[_0xd09a('0x6')](),interaction[_0xd09a('0x22')]('chat',_0xd09a('0x26')),controller[_0xd09a('0x27')]);router[_0xd09a('0x28')](_0xd09a('0x29'),controller['customUpdate']);router['put'](_0xd09a('0x2a'),auth[_0xd09a('0x9')](),controller['abandon']);router[_0xd09a('0x28')](_0xd09a('0x2b'),controller[_0xd09a('0x2c')]);router[_0xd09a('0x2d')](_0xd09a('0x25'),auth[_0xd09a('0x6')](),interaction['tracked'](_0xd09a('0x2e'),'chatinteraction:destroy'),controller[_0xd09a('0x2f')]);router[_0xd09a('0x2d')](_0xd09a('0x21'),auth[_0xd09a('0x6')](),controller['removeTags']);module[_0xd09a('0x30')]=router;
\ No newline at end of file
+var _0xa57d=['chat','chatinteraction:addtags','put','tracked','chatinteraction:update','update','/:id/custom_update','customUpdate','/:id/abandon','abandon','/:id/close','close','delete','chatinteraction:destroy','destroy','removeTags','exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./chatInteraction.controller','index','isAuthenticated','describe','get','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','/:id/messages','/:id/my_messages','/:id/download','post','create','/:id/vidaoo','diskStorage','join','server/files/attachments/','format','%s-%s','originalname','/:id/attachment_upload','single','file','addMessage','/:id/tags'];(function(_0x3f4bef,_0x359a87){var _0x1989b7=function(_0xe0ffca){while(--_0xe0ffca){_0x3f4bef['push'](_0x3f4bef['shift']());}};_0x1989b7(++_0x359a87);}(_0xa57d,0x75));var _0xda57=function(_0x1b5080,_0x3e7cc9){_0x1b5080=_0x1b5080-0x0;var _0x195c87=_0xa57d[_0x1b5080];return _0x195c87;};'use strict';var multer=require('multer');var util=require(_0xda57('0x0'));var path=require(_0xda57('0x1'));var timeout=require(_0xda57('0x2'));var express=require('express');var router=express[_0xda57('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xda57('0x4'));var interaction=require(_0xda57('0x5'));var config=require('../../config/environment');var controller=require(_0xda57('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0xda57('0x7')]);router['get']('/describe',auth[_0xda57('0x8')](),controller[_0xda57('0x9')]);router[_0xda57('0xa')](_0xda57('0xb'),auth[_0xda57('0xc')](),controller[_0xda57('0xd')]);router[_0xda57('0xa')](_0xda57('0xe'),auth[_0xda57('0xc')](),controller[_0xda57('0xf')]);router['get'](_0xda57('0x10'),auth[_0xda57('0x8')](),controller['getMessages']);router[_0xda57('0xa')](_0xda57('0x11'),auth[_0xda57('0xc')](),controller['getMyMessages']);router[_0xda57('0xa')](_0xda57('0x12'),auth[_0xda57('0x8')](),controller['download']);router[_0xda57('0x13')]('/',auth[_0xda57('0x8')](),controller[_0xda57('0x14')]);router[_0xda57('0x13')](_0xda57('0x15'),auth[_0xda57('0x8')](),controller['createVidaooSession']);var upload=multer({'storage':multer[_0xda57('0x16')]({'destination':function(_0x58f0e2,_0x4ec5c9,_0x4dec6a){_0x4dec6a(null,path[_0xda57('0x17')](config['root'],_0xda57('0x18')));},'filename':function(_0x19775a,_0x17043e,_0x2938f4){_0x2938f4(null,util[_0xda57('0x19')](_0xda57('0x1a'),Date['now'](),_0x17043e[_0xda57('0x1b')]['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post'](_0xda57('0x1c'),upload[_0xda57('0x1d')](_0xda57('0x1e')),controller['attachmentUpload']);router[_0xda57('0x13')](_0xda57('0x10'),auth[_0xda57('0xc')](),controller[_0xda57('0x1f')]);router[_0xda57('0x13')](_0xda57('0x20'),auth['isAuthenticated'](),interaction['tracked'](_0xda57('0x21'),_0xda57('0x22')),controller['addTags']);router[_0xda57('0x23')](_0xda57('0xb'),auth[_0xda57('0x8')](),interaction[_0xda57('0x24')](_0xda57('0x21'),_0xda57('0x25')),controller[_0xda57('0x26')]);router[_0xda57('0x23')](_0xda57('0x27'),controller[_0xda57('0x28')]);router[_0xda57('0x23')](_0xda57('0x29'),auth[_0xda57('0xc')](),controller[_0xda57('0x2a')]);router[_0xda57('0x23')](_0xda57('0x2b'),controller[_0xda57('0x2c')]);router[_0xda57('0x2d')](_0xda57('0xb'),auth[_0xda57('0x8')](),interaction[_0xda57('0x24')]('chat',_0xda57('0x2e')),controller[_0xda57('0x2f')]);router[_0xda57('0x2d')]('/:id/tags',auth[_0xda57('0x8')](),controller[_0xda57('0x30')]);module[_0xda57('0x31')]=router;
\ No newline at end of file