Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / api / chatInteraction / index.js
index 0b28b9d..f111154 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x64af=['delete','chatinteraction:destroy','destroy','removeTags','exports','util','path','connect-timeout','express','../../components/auth/service','../../config/environment','isAuthenticated','/describe','describe','get','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','/:id/messages','/:id/my_messages','getMyMessages','/:id/download','download','post','diskStorage','root','server/files/attachments/','format','%s-%s','now','originalname','replace','/:id/attachment_upload','single','file','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','addTags','put','chatinteraction:update','/:id/custom_update','/:id/abandon','abandon','/:id/close','close'];(function(_0x4baea5,_0x45804d){var _0xf0f767=function(_0x4a756e){while(--_0x4a756e){_0x4baea5['push'](_0x4baea5['shift']());}};_0xf0f767(++_0x45804d);}(_0x64af,0x69));var _0xf64a=function(_0x57fda8,_0x5e80a0){_0x57fda8=_0x57fda8-0x0;var _0x11c895=_0x64af[_0x57fda8];return _0x11c895;};'use strict';var multer=require('multer');var util=require(_0xf64a('0x0'));var path=require(_0xf64a('0x1'));var timeout=require(_0xf64a('0x2'));var express=require(_0xf64a('0x3'));var router=express['Router']();var auth=require(_0xf64a('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xf64a('0x5'));var controller=require('./chatInteraction.controller');router['get']('/',auth[_0xf64a('0x6')](),controller['index']);router['get'](_0xf64a('0x7'),auth[_0xf64a('0x6')](),controller[_0xf64a('0x8')]);router[_0xf64a('0x9')](_0xf64a('0xa'),auth[_0xf64a('0xb')](),controller[_0xf64a('0xc')]);router['get'](_0xf64a('0xd'),auth['isChatInteractionAuthorized'](),controller[_0xf64a('0xe')]);router[_0xf64a('0x9')](_0xf64a('0xf'),auth['isAuthenticated'](),controller['getMessages']);router['get'](_0xf64a('0x10'),auth[_0xf64a('0xb')](),controller[_0xf64a('0x11')]);router[_0xf64a('0x9')](_0xf64a('0x12'),auth['isAuthenticated'](),controller[_0xf64a('0x13')]);router[_0xf64a('0x14')]('/',auth[_0xf64a('0x6')](),controller['create']);var upload=multer({'storage':multer[_0xf64a('0x15')]({'destination':function(_0x47f89d,_0x47242d,_0x1d2bb1){_0x1d2bb1(null,path['join'](config[_0xf64a('0x16')],_0xf64a('0x17')));},'filename':function(_0x4afd58,_0x3a9cfc,_0x513a06){_0x513a06(null,util[_0xf64a('0x18')](_0xf64a('0x19'),Date[_0xf64a('0x1a')](),_0x3a9cfc[_0xf64a('0x1b')][_0xf64a('0x1c')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xf64a('0x14')](_0xf64a('0x1d'),upload[_0xf64a('0x1e')](_0xf64a('0x1f')),controller['attachmentUpload']);router[_0xf64a('0x14')](_0xf64a('0xf'),auth[_0xf64a('0xb')](),controller[_0xf64a('0x20')]);router[_0xf64a('0x14')](_0xf64a('0x21'),auth[_0xf64a('0x6')](),interaction[_0xf64a('0x22')](_0xf64a('0x23'),_0xf64a('0x24')),controller[_0xf64a('0x25')]);router[_0xf64a('0x26')](_0xf64a('0xa'),auth['isAuthenticated'](),interaction[_0xf64a('0x22')]('chat',_0xf64a('0x27')),controller['update']);router['put'](_0xf64a('0x28'),controller['customUpdate']);router['put'](_0xf64a('0x29'),auth[_0xf64a('0xb')](),controller[_0xf64a('0x2a')]);router['put'](_0xf64a('0x2b'),controller[_0xf64a('0x2c')]);router[_0xf64a('0x2d')](_0xf64a('0xa'),auth[_0xf64a('0x6')](),interaction[_0xf64a('0x22')]('chat',_0xf64a('0x2e')),controller[_0xf64a('0x2f')]);router['delete']('/:id/tags',auth[_0xf64a('0x6')](),controller[_0xf64a('0x30')]);module[_0xf64a('0x31')]=router;
\ No newline at end of file
+var _0x09c6=['chatinteraction:destroy','removeTags','exports','util','connect-timeout','Router','../../components/interaction/service','./chatInteraction.controller','get','isAuthenticated','describe','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','getMessages','/:id/my_messages','getMyMessages','/:id/download','create','diskStorage','join','root','format','%s-%s','now','originalname','replace','post','/:id/attachment_upload','single','file','attachmentUpload','/:id/messages','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','put','/:id','/:id/custom_update','customUpdate','abandon','/:id/close','close','delete'];(function(_0x24254a,_0x216bfd){var _0x36f3bd=function(_0x214098){while(--_0x214098){_0x24254a['push'](_0x24254a['shift']());}};_0x36f3bd(++_0x216bfd);}(_0x09c6,0x90));var _0x609c=function(_0x11d10f,_0x11f53a){_0x11d10f=_0x11d10f-0x0;var _0x4d0a6b=_0x09c6[_0x11d10f];return _0x4d0a6b;};'use strict';var multer=require('multer');var util=require(_0x609c('0x0'));var path=require('path');var timeout=require(_0x609c('0x1'));var express=require('express');var router=express[_0x609c('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0x609c('0x3'));var config=require('../../config/environment');var controller=require(_0x609c('0x4'));router[_0x609c('0x5')]('/',auth[_0x609c('0x6')](),controller['index']);router[_0x609c('0x5')]('/describe',auth[_0x609c('0x6')](),controller[_0x609c('0x7')]);router[_0x609c('0x5')]('/:id',auth[_0x609c('0x8')](),controller[_0x609c('0x9')]);router['get'](_0x609c('0xa'),auth[_0x609c('0x8')](),controller[_0x609c('0xb')]);router[_0x609c('0x5')]('/:id/messages',auth[_0x609c('0x6')](),controller[_0x609c('0xc')]);router[_0x609c('0x5')](_0x609c('0xd'),auth['isChatInteractionAuthorized'](),controller[_0x609c('0xe')]);router[_0x609c('0x5')](_0x609c('0xf'),auth[_0x609c('0x6')](),controller['download']);router['post']('/',auth['isAuthenticated'](),controller[_0x609c('0x10')]);var upload=multer({'storage':multer[_0x609c('0x11')]({'destination':function(_0x43df31,_0x363031,_0x4e74a4){_0x4e74a4(null,path[_0x609c('0x12')](config[_0x609c('0x13')],'server/files/attachments/'));},'filename':function(_0x20a738,_0x3c1417,_0x1cc39c){_0x1cc39c(null,util[_0x609c('0x14')](_0x609c('0x15'),Date[_0x609c('0x16')](),_0x3c1417[_0x609c('0x17')][_0x609c('0x18')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x609c('0x19')](_0x609c('0x1a'),upload[_0x609c('0x1b')](_0x609c('0x1c')),controller[_0x609c('0x1d')]);router[_0x609c('0x19')](_0x609c('0x1e'),auth[_0x609c('0x8')](),controller[_0x609c('0x1f')]);router['post'](_0x609c('0x20'),auth[_0x609c('0x6')](),interaction[_0x609c('0x21')](_0x609c('0x22'),_0x609c('0x23')),controller['addTags']);router[_0x609c('0x24')](_0x609c('0x25'),auth[_0x609c('0x6')](),interaction['tracked'](_0x609c('0x22'),'chatinteraction:update'),controller['update']);router[_0x609c('0x24')](_0x609c('0x26'),controller[_0x609c('0x27')]);router[_0x609c('0x24')]('/:id/abandon',auth[_0x609c('0x8')](),controller[_0x609c('0x28')]);router['put'](_0x609c('0x29'),controller[_0x609c('0x2a')]);router[_0x609c('0x2b')](_0x609c('0x25'),auth['isAuthenticated'](),interaction[_0x609c('0x21')](_0x609c('0x22'),_0x609c('0x2c')),controller['destroy']);router[_0x609c('0x2b')]('/:id/tags',auth['isAuthenticated'](),controller[_0x609c('0x2d')]);module[_0x609c('0x2e')]=router;
\ No newline at end of file