Built motion from commit (unavailable).|2.2.0
[motion2.git] / server / api / chatInteraction / index.js
index d700c79..71b74ea 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0abf=['/:id/attachment_download','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download','download','post','create','diskStorage','join','root','server/files/attachments/','format','now','originalname','replace','/:id/attachment_upload','single','file','attachmentUpload','addMessage','/:id/tags','tracked','chatinteraction:addtags','addTags','put','chat','chatinteraction:update','update','/:id/custom_update','/:id/close','delete','destroy','removeTags','exports','multer','path','connect-timeout','../../components/auth/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','isChatInteractionAuthorized'];(function(_0x41b195,_0x5b610e){var _0x94740f=function(_0x870200){while(--_0x870200){_0x41b195['push'](_0x41b195['shift']());}};_0x94740f(++_0x5b610e);}(_0x0abf,0xe8));var _0xf0ab=function(_0x432682,_0x253044){_0x432682=_0x432682-0x0;var _0x463d05=_0x0abf[_0x432682];return _0x463d05;};'use strict';var multer=require(_0xf0ab('0x0'));var util=require('util');var path=require(_0xf0ab('0x1'));var timeout=require(_0xf0ab('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0xf0ab('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xf0ab('0x4'));var controller=require(_0xf0ab('0x5'));router[_0xf0ab('0x6')]('/',auth[_0xf0ab('0x7')](),controller[_0xf0ab('0x8')]);router[_0xf0ab('0x6')](_0xf0ab('0x9'),auth['isAuthenticated'](),controller[_0xf0ab('0xa')]);router[_0xf0ab('0x6')](_0xf0ab('0xb'),auth[_0xf0ab('0xc')](),controller['show']);router[_0xf0ab('0x6')](_0xf0ab('0xd'),auth[_0xf0ab('0xc')](),controller['attachmentDownload']);router['get'](_0xf0ab('0xe'),auth['isAuthenticated'](),controller[_0xf0ab('0xf')]);router[_0xf0ab('0x6')](_0xf0ab('0x10'),auth[_0xf0ab('0xc')](),controller[_0xf0ab('0x11')]);router[_0xf0ab('0x6')](_0xf0ab('0x12'),auth['isAuthenticated'](),controller[_0xf0ab('0x13')]);router[_0xf0ab('0x14')]('/',auth[_0xf0ab('0x7')](),controller[_0xf0ab('0x15')]);var upload=multer({'storage':multer[_0xf0ab('0x16')]({'destination':function(_0x36cabe,_0x3d7129,_0x1fb4e5){_0x1fb4e5(null,path[_0xf0ab('0x17')](config[_0xf0ab('0x18')],_0xf0ab('0x19')));},'filename':function(_0x221bac,_0x200cf5,_0x2f4618){_0x2f4618(null,util[_0xf0ab('0x1a')]('%s-%s',Date[_0xf0ab('0x1b')](),_0x200cf5[_0xf0ab('0x1c')][_0xf0ab('0x1d')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xf0ab('0x14')](_0xf0ab('0x1e'),upload[_0xf0ab('0x1f')](_0xf0ab('0x20')),controller[_0xf0ab('0x21')]);router[_0xf0ab('0x14')](_0xf0ab('0xe'),auth[_0xf0ab('0xc')](),controller[_0xf0ab('0x22')]);router[_0xf0ab('0x14')](_0xf0ab('0x23'),auth[_0xf0ab('0x7')](),interaction[_0xf0ab('0x24')]('chat',_0xf0ab('0x25')),controller[_0xf0ab('0x26')]);router[_0xf0ab('0x27')](_0xf0ab('0xb'),auth[_0xf0ab('0x7')](),interaction[_0xf0ab('0x24')](_0xf0ab('0x28'),_0xf0ab('0x29')),controller[_0xf0ab('0x2a')]);router[_0xf0ab('0x27')](_0xf0ab('0x2b'),controller['customUpdate']);router['put']('/:id/abandon',auth[_0xf0ab('0xc')](),controller['abandon']);router[_0xf0ab('0x27')](_0xf0ab('0x2c'),controller['close']);router[_0xf0ab('0x2d')](_0xf0ab('0xb'),auth[_0xf0ab('0x7')](),interaction[_0xf0ab('0x24')](_0xf0ab('0x28'),'chatinteraction:destroy'),controller[_0xf0ab('0x2e')]);router['delete']('/:id/tags',auth[_0xf0ab('0x7')](),controller[_0xf0ab('0x2f')]);module[_0xf0ab('0x30')]=router;
\ No newline at end of file
+var _0x1c7c=['%s-%s','now','originalname','replace','/:id/attachment_upload','file','attachmentUpload','addMessage','/:id/tags','chatinteraction:addtags','addTags','put','tracked','chat','chatinteraction:update','update','/:id/custom_update','customUpdate','/:id/abandon','abandon','/:id/close','close','delete','destroy','removeTags','exports','multer','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download','download','post','create','diskStorage','root','server/files/attachments/','format'];(function(_0x3d9d4c,_0x1843d2){var _0x7fbf76=function(_0x26fb0b){while(--_0x26fb0b){_0x3d9d4c['push'](_0x3d9d4c['shift']());}};_0x7fbf76(++_0x1843d2);}(_0x1c7c,0x164));var _0xc1c7=function(_0x3f91ec,_0x5a921a){_0x3f91ec=_0x3f91ec-0x0;var _0x77923e=_0x1c7c[_0x3f91ec];return _0x77923e;};'use strict';var multer=require(_0xc1c7('0x0'));var util=require(_0xc1c7('0x1'));var path=require(_0xc1c7('0x2'));var timeout=require(_0xc1c7('0x3'));var express=require('express');var router=express[_0xc1c7('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xc1c7('0x5'));var config=require(_0xc1c7('0x6'));var controller=require(_0xc1c7('0x7'));router[_0xc1c7('0x8')]('/',auth[_0xc1c7('0x9')](),controller[_0xc1c7('0xa')]);router[_0xc1c7('0x8')](_0xc1c7('0xb'),auth[_0xc1c7('0x9')](),controller[_0xc1c7('0xc')]);router[_0xc1c7('0x8')](_0xc1c7('0xd'),auth[_0xc1c7('0xe')](),controller[_0xc1c7('0xf')]);router[_0xc1c7('0x8')](_0xc1c7('0x10'),auth[_0xc1c7('0xe')](),controller['attachmentDownload']);router[_0xc1c7('0x8')](_0xc1c7('0x11'),auth['isAuthenticated'](),controller[_0xc1c7('0x12')]);router[_0xc1c7('0x8')](_0xc1c7('0x13'),auth['isChatInteractionAuthorized'](),controller[_0xc1c7('0x14')]);router[_0xc1c7('0x8')](_0xc1c7('0x15'),auth[_0xc1c7('0x9')](),controller[_0xc1c7('0x16')]);router[_0xc1c7('0x17')]('/',auth[_0xc1c7('0x9')](),controller[_0xc1c7('0x18')]);var upload=multer({'storage':multer[_0xc1c7('0x19')]({'destination':function(_0x1b6905,_0x99b874,_0x34d392){_0x34d392(null,path['join'](config[_0xc1c7('0x1a')],_0xc1c7('0x1b')));},'filename':function(_0x21911c,_0x555b59,_0x94678a){_0x94678a(null,util[_0xc1c7('0x1c')](_0xc1c7('0x1d'),Date[_0xc1c7('0x1e')](),_0x555b59[_0xc1c7('0x1f')][_0xc1c7('0x20')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xc1c7('0x17')](_0xc1c7('0x21'),upload['single'](_0xc1c7('0x22')),controller[_0xc1c7('0x23')]);router[_0xc1c7('0x17')](_0xc1c7('0x11'),auth['isChatInteractionAuthorized'](),controller[_0xc1c7('0x24')]);router['post'](_0xc1c7('0x25'),auth[_0xc1c7('0x9')](),interaction['tracked']('chat',_0xc1c7('0x26')),controller[_0xc1c7('0x27')]);router[_0xc1c7('0x28')]('/:id',auth[_0xc1c7('0x9')](),interaction[_0xc1c7('0x29')](_0xc1c7('0x2a'),_0xc1c7('0x2b')),controller[_0xc1c7('0x2c')]);router[_0xc1c7('0x28')](_0xc1c7('0x2d'),controller[_0xc1c7('0x2e')]);router[_0xc1c7('0x28')](_0xc1c7('0x2f'),auth[_0xc1c7('0xe')](),controller[_0xc1c7('0x30')]);router[_0xc1c7('0x28')](_0xc1c7('0x31'),controller[_0xc1c7('0x32')]);router[_0xc1c7('0x33')]('/:id',auth[_0xc1c7('0x9')](),interaction[_0xc1c7('0x29')]('chat','chatinteraction:destroy'),controller[_0xc1c7('0x34')]);router['delete']('/:id/tags',auth[_0xc1c7('0x9')](),controller[_0xc1c7('0x35')]);module[_0xc1c7('0x36')]=router;
\ No newline at end of file