Built motion from commit (unavailable).|2.3.4
[motion2.git] / server / api / chatInteraction / index.js
index aa9bdad..6ac2db3 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4213=['root','format','now','originalname','replace','/:id/attachment_upload','single','file','attachmentUpload','chat','chatinteraction:addtags','addTags','put','tracked','chatinteraction:update','update','/:id/abandon','/:id/close','delete','chatinteraction:destroy','destroy','/:id/tags','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','describe','/:id','isChatInteractionAuthorized','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download','download','post','create','diskStorage','join'];(function(_0x521e8d,_0x23a290){var _0x518bbd=function(_0x4241eb){while(--_0x4241eb){_0x521e8d['push'](_0x521e8d['shift']());}};_0x518bbd(++_0x23a290);}(_0x4213,0x77));var _0x3421=function(_0x559432,_0x3961bb){_0x559432=_0x559432-0x0;var _0x4499e8=_0x4213[_0x559432];return _0x4499e8;};'use strict';var multer=require(_0x3421('0x0'));var util=require(_0x3421('0x1'));var path=require(_0x3421('0x2'));var timeout=require(_0x3421('0x3'));var express=require(_0x3421('0x4'));var router=express[_0x3421('0x5')]();var auth=require(_0x3421('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x3421('0x7'));var controller=require('./chatInteraction.controller');router[_0x3421('0x8')]('/',auth[_0x3421('0x9')](),controller[_0x3421('0xa')]);router[_0x3421('0x8')]('/describe',auth[_0x3421('0x9')](),controller[_0x3421('0xb')]);router[_0x3421('0x8')](_0x3421('0xc'),auth[_0x3421('0xd')](),controller['show']);router[_0x3421('0x8')]('/:id/attachment_download',auth['isChatInteractionAuthorized'](),controller[_0x3421('0xe')]);router['get'](_0x3421('0xf'),auth[_0x3421('0x9')](),controller[_0x3421('0x10')]);router[_0x3421('0x8')](_0x3421('0x11'),auth[_0x3421('0xd')](),controller[_0x3421('0x12')]);router['get'](_0x3421('0x13'),auth[_0x3421('0x9')](),controller[_0x3421('0x14')]);router[_0x3421('0x15')]('/',auth[_0x3421('0x9')](),controller[_0x3421('0x16')]);var upload=multer({'storage':multer[_0x3421('0x17')]({'destination':function(_0x59ea4a,_0xafd9e0,_0x4b5f43){_0x4b5f43(null,path[_0x3421('0x18')](config[_0x3421('0x19')],'server/files/attachments/'));},'filename':function(_0x1e33ab,_0x4c6f7b,_0x16bc8f){_0x16bc8f(null,util[_0x3421('0x1a')]('%s-%s',Date[_0x3421('0x1b')](),_0x4c6f7b[_0x3421('0x1c')][_0x3421('0x1d')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x3421('0x15')](_0x3421('0x1e'),upload[_0x3421('0x1f')](_0x3421('0x20')),controller[_0x3421('0x21')]);router[_0x3421('0x15')](_0x3421('0xf'),auth[_0x3421('0xd')](),controller['addMessage']);router[_0x3421('0x15')]('/:id/tags',auth['isAuthenticated'](),interaction['tracked'](_0x3421('0x22'),_0x3421('0x23')),controller[_0x3421('0x24')]);router[_0x3421('0x25')](_0x3421('0xc'),auth[_0x3421('0x9')](),interaction[_0x3421('0x26')](_0x3421('0x22'),_0x3421('0x27')),controller[_0x3421('0x28')]);router['put']('/:id/custom_update',controller['customUpdate']);router[_0x3421('0x25')](_0x3421('0x29'),auth[_0x3421('0xd')](),controller['abandon']);router['put'](_0x3421('0x2a'),controller['close']);router[_0x3421('0x2b')]('/:id',auth[_0x3421('0x9')](),interaction[_0x3421('0x26')](_0x3421('0x22'),_0x3421('0x2c')),controller[_0x3421('0x2d')]);router['delete'](_0x3421('0x2e'),auth['isAuthenticated'](),controller['removeTags']);module[_0x3421('0x2f')]=router;
\ No newline at end of file
+var _0xb9a7=['/:id/attachment_upload','single','file','attachmentUpload','addMessage','chat','addTags','put','tracked','update','/:id/custom_update','customUpdate','abandon','/:id/close','delete','removeTags','util','Router','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','isChatInteractionAuthorized','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download','post','diskStorage','join','root','server/files/attachments/','format','now','originalname','replace'];(function(_0x157aaf,_0xae90c8){var _0x3efcdc=function(_0x2fec1b){while(--_0x2fec1b){_0x157aaf['push'](_0x157aaf['shift']());}};_0x3efcdc(++_0xae90c8);}(_0xb9a7,0x112));var _0x7b9a=function(_0x45d55e,_0x2fede3){_0x45d55e=_0x45d55e-0x0;var _0x29812a=_0xb9a7[_0x45d55e];return _0x29812a;};'use strict';var multer=require('multer');var util=require(_0x7b9a('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x7b9a('0x1')]();var auth=require('../../components/auth/service');var interaction=require(_0x7b9a('0x2'));var config=require(_0x7b9a('0x3'));var controller=require(_0x7b9a('0x4'));router[_0x7b9a('0x5')]('/',auth[_0x7b9a('0x6')](),controller[_0x7b9a('0x7')]);router[_0x7b9a('0x5')](_0x7b9a('0x8'),auth[_0x7b9a('0x6')](),controller[_0x7b9a('0x9')]);router['get'](_0x7b9a('0xa'),auth[_0x7b9a('0xb')](),controller['show']);router['get']('/:id/attachment_download',auth[_0x7b9a('0xb')](),controller[_0x7b9a('0xc')]);router['get'](_0x7b9a('0xd'),auth['isAuthenticated'](),controller[_0x7b9a('0xe')]);router['get'](_0x7b9a('0xf'),auth[_0x7b9a('0xb')](),controller[_0x7b9a('0x10')]);router['get'](_0x7b9a('0x11'),auth[_0x7b9a('0x6')](),controller['download']);router[_0x7b9a('0x12')]('/',auth[_0x7b9a('0x6')](),controller['create']);var upload=multer({'storage':multer[_0x7b9a('0x13')]({'destination':function(_0xde180d,_0x6fa16a,_0x2853f2){_0x2853f2(null,path[_0x7b9a('0x14')](config[_0x7b9a('0x15')],_0x7b9a('0x16')));},'filename':function(_0x35e602,_0x2f1899,_0x4996f1){_0x4996f1(null,util[_0x7b9a('0x17')]('%s-%s',Date[_0x7b9a('0x18')](),_0x2f1899[_0x7b9a('0x19')][_0x7b9a('0x1a')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x7b9a('0x12')](_0x7b9a('0x1b'),upload[_0x7b9a('0x1c')](_0x7b9a('0x1d')),controller[_0x7b9a('0x1e')]);router[_0x7b9a('0x12')](_0x7b9a('0xd'),auth[_0x7b9a('0xb')](),controller[_0x7b9a('0x1f')]);router[_0x7b9a('0x12')]('/:id/tags',auth[_0x7b9a('0x6')](),interaction['tracked'](_0x7b9a('0x20'),'chatinteraction:addtags'),controller[_0x7b9a('0x21')]);router[_0x7b9a('0x22')](_0x7b9a('0xa'),auth['isAuthenticated'](),interaction[_0x7b9a('0x23')](_0x7b9a('0x20'),'chatinteraction:update'),controller[_0x7b9a('0x24')]);router[_0x7b9a('0x22')](_0x7b9a('0x25'),controller[_0x7b9a('0x26')]);router[_0x7b9a('0x22')]('/:id/abandon',auth[_0x7b9a('0xb')](),controller[_0x7b9a('0x27')]);router['put'](_0x7b9a('0x28'),controller['close']);router[_0x7b9a('0x29')](_0x7b9a('0xa'),auth['isAuthenticated'](),interaction['tracked'](_0x7b9a('0x20'),'chatinteraction:destroy'),controller['destroy']);router[_0x7b9a('0x29')]('/:id/tags',auth['isAuthenticated'](),controller[_0x7b9a('0x2a')]);module['exports']=router;
\ No newline at end of file