Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / api / chatInteraction / index.js
index cd71a61..7f62eed 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc456=['exports','multer','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./chatInteraction.controller','index','get','isAuthenticated','describe','/:id','show','isChatInteractionAuthorized','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','/:id/download','download','post','diskStorage','root','server/files/attachments/','format','%s-%s','now','originalname','replace','/:id/attachment_upload','single','file','attachmentUpload','addMessage','/:id/tags','tracked','chat','addTags','chatinteraction:update','update','/:id/custom_update','customUpdate','put','abandon','/:id/close','close','delete','chatinteraction:destroy','destroy','removeTags'];(function(_0x5a78e2,_0x1c21bb){var _0x51286d=function(_0x253aa3){while(--_0x253aa3){_0x5a78e2['push'](_0x5a78e2['shift']());}};_0x51286d(++_0x1c21bb);}(_0xc456,0x133));var _0x6c45=function(_0x1c7b5f,_0x5b3050){_0x1c7b5f=_0x1c7b5f-0x0;var _0x37f62f=_0xc456[_0x1c7b5f];return _0x37f62f;};'use strict';var multer=require(_0x6c45('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x6c45('0x1'));var express=require(_0x6c45('0x2'));var router=express[_0x6c45('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x6c45('0x4'));var config=require(_0x6c45('0x5'));var controller=require(_0x6c45('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x6c45('0x7')]);router[_0x6c45('0x8')]('/describe',auth[_0x6c45('0x9')](),controller[_0x6c45('0xa')]);router[_0x6c45('0x8')](_0x6c45('0xb'),auth['isChatInteractionAuthorized'](),controller[_0x6c45('0xc')]);router[_0x6c45('0x8')]('/:id/attachment_download',auth[_0x6c45('0xd')](),controller[_0x6c45('0xe')]);router[_0x6c45('0x8')](_0x6c45('0xf'),auth['isAuthenticated'](),controller[_0x6c45('0x10')]);router[_0x6c45('0x8')](_0x6c45('0x11'),auth[_0x6c45('0xd')](),controller['getMyMessages']);router[_0x6c45('0x8')](_0x6c45('0x12'),auth['isAuthenticated'](),controller[_0x6c45('0x13')]);router[_0x6c45('0x14')]('/',auth[_0x6c45('0x9')](),controller['create']);var upload=multer({'storage':multer[_0x6c45('0x15')]({'destination':function(_0x3b7caa,_0x3b99f5,_0x24e640){_0x24e640(null,path['join'](config[_0x6c45('0x16')],_0x6c45('0x17')));},'filename':function(_0x3bfd3a,_0x2d063f,_0x1df5a0){_0x1df5a0(null,util[_0x6c45('0x18')](_0x6c45('0x19'),Date[_0x6c45('0x1a')](),_0x2d063f[_0x6c45('0x1b')][_0x6c45('0x1c')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x6c45('0x14')](_0x6c45('0x1d'),upload[_0x6c45('0x1e')](_0x6c45('0x1f')),controller[_0x6c45('0x20')]);router['post']('/:id/messages',auth[_0x6c45('0xd')](),controller[_0x6c45('0x21')]);router['post'](_0x6c45('0x22'),auth['isAuthenticated'](),interaction[_0x6c45('0x23')](_0x6c45('0x24'),'chatinteraction:addtags'),controller[_0x6c45('0x25')]);router['put'](_0x6c45('0xb'),auth['isAuthenticated'](),interaction[_0x6c45('0x23')](_0x6c45('0x24'),_0x6c45('0x26')),controller[_0x6c45('0x27')]);router['put'](_0x6c45('0x28'),controller[_0x6c45('0x29')]);router[_0x6c45('0x2a')]('/:id/abandon',auth['isChatInteractionAuthorized'](),controller[_0x6c45('0x2b')]);router['put'](_0x6c45('0x2c'),controller[_0x6c45('0x2d')]);router[_0x6c45('0x2e')](_0x6c45('0xb'),auth[_0x6c45('0x9')](),interaction[_0x6c45('0x23')](_0x6c45('0x24'),_0x6c45('0x2f')),controller[_0x6c45('0x30')]);router[_0x6c45('0x2e')](_0x6c45('0x22'),auth['isAuthenticated'](),controller[_0x6c45('0x31')]);module[_0x6c45('0x32')]=router;
\ No newline at end of file
+var _0xb227=['../../config/environment','./chatInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','/:id/messages','/:id/my_messages','/:id/download','post','create','join','root','server/files/attachments/','format','%s-%s','originalname','attachmentUpload','addMessage','tracked','chat','chatinteraction:addtags','addTags','update','customUpdate','put','/:id/abandon','abandon','/:id/close','close','delete','chatinteraction:destroy','destroy','/:id/tags','removeTags','multer','util','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x1c7279,_0x3a404a){var _0x5d36e4=function(_0x594526){while(--_0x594526){_0x1c7279['push'](_0x1c7279['shift']());}};_0x5d36e4(++_0x3a404a);}(_0xb227,0x1a0));var _0x7b22=function(_0x5b4023,_0x4a7d0f){_0x5b4023=_0x5b4023-0x0;var _0x44d0a7=_0xb227[_0x5b4023];return _0x44d0a7;};'use strict';var multer=require(_0x7b22('0x0'));var util=require(_0x7b22('0x1'));var path=require(_0x7b22('0x2'));var timeout=require(_0x7b22('0x3'));var express=require(_0x7b22('0x4'));var router=express[_0x7b22('0x5')]();var auth=require(_0x7b22('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x7b22('0x7'));var controller=require(_0x7b22('0x8'));router[_0x7b22('0x9')]('/',auth[_0x7b22('0xa')](),controller[_0x7b22('0xb')]);router[_0x7b22('0x9')](_0x7b22('0xc'),auth[_0x7b22('0xa')](),controller[_0x7b22('0xd')]);router[_0x7b22('0x9')](_0x7b22('0xe'),auth[_0x7b22('0xf')](),controller[_0x7b22('0x10')]);router[_0x7b22('0x9')](_0x7b22('0x11'),auth['isChatInteractionAuthorized'](),controller['attachmentDownload']);router[_0x7b22('0x9')](_0x7b22('0x12'),auth[_0x7b22('0xa')](),controller['getMessages']);router[_0x7b22('0x9')](_0x7b22('0x13'),auth['isChatInteractionAuthorized'](),controller['getMyMessages']);router[_0x7b22('0x9')](_0x7b22('0x14'),auth[_0x7b22('0xa')](),controller['download']);router[_0x7b22('0x15')]('/',auth['isAuthenticated'](),controller[_0x7b22('0x16')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x30efe5,_0x3a4eed,_0x51170b){_0x51170b(null,path[_0x7b22('0x17')](config[_0x7b22('0x18')],_0x7b22('0x19')));},'filename':function(_0x48a68a,_0x1df7bc,_0x518f65){_0x518f65(null,util[_0x7b22('0x1a')](_0x7b22('0x1b'),Date['now'](),_0x1df7bc[_0x7b22('0x1c')]['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x7b22('0x15')]('/:id/attachment_upload',upload['single']('file'),controller[_0x7b22('0x1d')]);router[_0x7b22('0x15')]('/:id/messages',auth['isChatInteractionAuthorized'](),controller[_0x7b22('0x1e')]);router[_0x7b22('0x15')]('/:id/tags',auth[_0x7b22('0xa')](),interaction[_0x7b22('0x1f')](_0x7b22('0x20'),_0x7b22('0x21')),controller[_0x7b22('0x22')]);router['put']('/:id',auth[_0x7b22('0xa')](),interaction['tracked'](_0x7b22('0x20'),'chatinteraction:update'),controller[_0x7b22('0x23')]);router['put']('/:id/custom_update',controller[_0x7b22('0x24')]);router[_0x7b22('0x25')](_0x7b22('0x26'),auth[_0x7b22('0xf')](),controller[_0x7b22('0x27')]);router[_0x7b22('0x25')](_0x7b22('0x28'),controller[_0x7b22('0x29')]);router[_0x7b22('0x2a')]('/:id',auth[_0x7b22('0xa')](),interaction[_0x7b22('0x1f')](_0x7b22('0x20'),_0x7b22('0x2b')),controller[_0x7b22('0x2c')]);router[_0x7b22('0x2a')](_0x7b22('0x2d'),auth['isAuthenticated'](),controller[_0x7b22('0x2e')]);module['exports']=router;
\ No newline at end of file