Built motion from commit 1ea47bf4.|2.6.34
[motion2.git] / server / api / chatInteraction / index.js
index 758d389..20ce9ce 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x46b0=['%s-%s','now','replace','single','file','addMessage','/:id/tags','tracked','addTags','put','chatinteraction:update','update','/:id/custom_update','customUpdate','/:id/abandon','/:id/close','close','delete','chat','chatinteraction:destroy','destroy','removeTags','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','isChatInteractionAuthorized','show','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download','download','post','create','/:id/vidaoo','diskStorage','join','root','server/files/attachments/'];(function(_0x4a0a02,_0x4c8dc5){var _0x2beac7=function(_0x32b784){while(--_0x32b784){_0x4a0a02['push'](_0x4a0a02['shift']());}};_0x2beac7(++_0x4c8dc5);}(_0x46b0,0x1bf));var _0x046b=function(_0x4cf252,_0x6c073e){_0x4cf252=_0x4cf252-0x0;var _0x16b1e5=_0x46b0[_0x4cf252];return _0x16b1e5;};'use strict';var multer=require(_0x046b('0x0'));var util=require(_0x046b('0x1'));var path=require('path');var timeout=require(_0x046b('0x2'));var express=require(_0x046b('0x3'));var router=express[_0x046b('0x4')]();var fs_extra=require(_0x046b('0x5'));var auth=require(_0x046b('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x046b('0x7'));var controller=require(_0x046b('0x8'));router[_0x046b('0x9')]('/',auth[_0x046b('0xa')](),controller[_0x046b('0xb')]);router['get'](_0x046b('0xc'),auth[_0x046b('0xa')](),controller[_0x046b('0xd')]);router[_0x046b('0x9')](_0x046b('0xe'),auth[_0x046b('0xf')](),controller[_0x046b('0x10')]);router[_0x046b('0x9')]('/:id/attachment_download',auth[_0x046b('0xf')](),controller['attachmentDownload']);router[_0x046b('0x9')](_0x046b('0x11'),auth['isAuthenticated'](),controller[_0x046b('0x12')]);router[_0x046b('0x9')](_0x046b('0x13'),auth[_0x046b('0xf')](),controller[_0x046b('0x14')]);router[_0x046b('0x9')](_0x046b('0x15'),auth['isAuthenticated'](),controller[_0x046b('0x16')]);router[_0x046b('0x17')]('/',auth[_0x046b('0xa')](),controller[_0x046b('0x18')]);router['post'](_0x046b('0x19'),auth[_0x046b('0xa')](),controller['createVidaooSession']);var upload=multer({'storage':multer[_0x046b('0x1a')]({'destination':function(_0x1bb762,_0x2f34af,_0x92d44a){_0x92d44a(null,path[_0x046b('0x1b')](config[_0x046b('0x1c')],_0x046b('0x1d')));},'filename':function(_0xa87a95,_0x3dffe5,_0x7267a2){_0x7267a2(null,util['format'](_0x046b('0x1e'),Date[_0x046b('0x1f')](),_0x3dffe5['originalname'][_0x046b('0x20')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post']('/:id/attachment_upload',upload[_0x046b('0x21')](_0x046b('0x22')),controller['attachmentUpload']);router['post'](_0x046b('0x11'),auth[_0x046b('0xf')](),controller[_0x046b('0x23')]);router[_0x046b('0x17')](_0x046b('0x24'),auth[_0x046b('0xa')](),interaction[_0x046b('0x25')]('chat','chatinteraction:addtags'),controller[_0x046b('0x26')]);router[_0x046b('0x27')](_0x046b('0xe'),auth['isAuthenticated'](),interaction['tracked']('chat',_0x046b('0x28')),controller[_0x046b('0x29')]);router[_0x046b('0x27')](_0x046b('0x2a'),controller[_0x046b('0x2b')]);router['put'](_0x046b('0x2c'),auth[_0x046b('0xf')](),controller['abandon']);router[_0x046b('0x27')](_0x046b('0x2d'),controller[_0x046b('0x2e')]);router[_0x046b('0x2f')]('/:id',auth[_0x046b('0xa')](),interaction[_0x046b('0x25')](_0x046b('0x30'),_0x046b('0x31')),controller[_0x046b('0x32')]);router[_0x046b('0x2f')](_0x046b('0x24'),auth[_0x046b('0xa')](),controller[_0x046b('0x33')]);module[_0x046b('0x34')]=router;
\ No newline at end of file
+var _0xc90b=['isAuthenticated','getMessages','/:id/my_messages','getMyMessages','/:id/download','download','post','create','/:id/vidaoo','createVidaooSession','diskStorage','root','format','%s-%s','now','originalname','replace','attachmentUpload','/:id/messages','addMessage','tracked','chatinteraction:addtags','addTags','put','update','/:id/custom_update','customUpdate','abandon','/:id/close','delete','chat','/:id/tags','removeTags','multer','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload'];(function(_0x39d544,_0x35c14f){var _0x5a5ff2=function(_0x2271fb){while(--_0x2271fb){_0x39d544['push'](_0x39d544['shift']());}};_0x5a5ff2(++_0x35c14f);}(_0xc90b,0x13b));var _0xbc90=function(_0x2f6891,_0xe2ce5a){_0x2f6891=_0x2f6891-0x0;var _0x6bcf76=_0xc90b[_0x2f6891];return _0x6bcf76;};'use strict';var multer=require(_0xbc90('0x0'));var util=require(_0xbc90('0x1'));var path=require(_0xbc90('0x2'));var timeout=require('connect-timeout');var express=require(_0xbc90('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xbc90('0x4'));var interaction=require(_0xbc90('0x5'));var config=require(_0xbc90('0x6'));var controller=require('./chatInteraction.controller');router[_0xbc90('0x7')]('/',auth['isAuthenticated'](),controller[_0xbc90('0x8')]);router[_0xbc90('0x7')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0xbc90('0x7')](_0xbc90('0x9'),auth[_0xbc90('0xa')](),controller[_0xbc90('0xb')]);router[_0xbc90('0x7')](_0xbc90('0xc'),auth[_0xbc90('0xa')](),controller[_0xbc90('0xd')]);router[_0xbc90('0x7')]('/:id/messages',auth[_0xbc90('0xe')](),controller[_0xbc90('0xf')]);router[_0xbc90('0x7')](_0xbc90('0x10'),auth[_0xbc90('0xa')](),controller[_0xbc90('0x11')]);router[_0xbc90('0x7')](_0xbc90('0x12'),auth[_0xbc90('0xe')](),controller[_0xbc90('0x13')]);router[_0xbc90('0x14')]('/',auth['isAuthenticated'](),controller[_0xbc90('0x15')]);router[_0xbc90('0x14')](_0xbc90('0x16'),auth[_0xbc90('0xe')](),controller[_0xbc90('0x17')]);var upload=multer({'storage':multer[_0xbc90('0x18')]({'destination':function(_0x7ecd20,_0x3ea90e,_0x56ffe7){_0x56ffe7(null,path['join'](config[_0xbc90('0x19')],'server/files/attachments/'));},'filename':function(_0xcc503e,_0xb18d56,_0x9e61be){_0x9e61be(null,util[_0xbc90('0x1a')](_0xbc90('0x1b'),Date[_0xbc90('0x1c')](),_0xb18d56[_0xbc90('0x1d')][_0xbc90('0x1e')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xbc90('0x14')]('/:id/attachment_upload',upload['single']('file'),controller[_0xbc90('0x1f')]);router[_0xbc90('0x14')](_0xbc90('0x20'),auth['isChatInteractionAuthorized'](),controller[_0xbc90('0x21')]);router['post']('/:id/tags',auth[_0xbc90('0xe')](),interaction[_0xbc90('0x22')]('chat',_0xbc90('0x23')),controller[_0xbc90('0x24')]);router[_0xbc90('0x25')](_0xbc90('0x9'),auth[_0xbc90('0xe')](),interaction[_0xbc90('0x22')]('chat','chatinteraction:update'),controller[_0xbc90('0x26')]);router[_0xbc90('0x25')](_0xbc90('0x27'),controller[_0xbc90('0x28')]);router[_0xbc90('0x25')]('/:id/abandon',auth[_0xbc90('0xa')](),controller[_0xbc90('0x29')]);router[_0xbc90('0x25')](_0xbc90('0x2a'),controller['close']);router[_0xbc90('0x2b')](_0xbc90('0x9'),auth[_0xbc90('0xe')](),interaction[_0xbc90('0x22')](_0xbc90('0x2c'),'chatinteraction:destroy'),controller['destroy']);router['delete'](_0xbc90('0x2d'),auth[_0xbc90('0xe')](),controller[_0xbc90('0x2e')]);module['exports']=router;
\ No newline at end of file