Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / chatInteraction / index.js
index 301f1df..51a37a2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x61cd=['format','%s-%s','originalname','file','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','addTags','put','update','/:id/custom_update','customUpdate','/:id/abandon','abandon','close','delete','chatinteraction:destroy','destroy','multer','util','path','connect-timeout','../../components/auth/service','../../config/environment','./chatInteraction.controller','index','get','/describe','isAuthenticated','describe','/:id','/:id/attachment_download','isChatInteractionAuthorized','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download','download','create','post','/:id/vidaoo','createVidaooSession','diskStorage','join','root','server/files/attachments/'];(function(_0x1facfa,_0x1acf7d){var _0x9ec701=function(_0x115e37){while(--_0x115e37){_0x1facfa['push'](_0x1facfa['shift']());}};_0x9ec701(++_0x1acf7d);}(_0x61cd,0xa7));var _0xd61c=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x61cd[_0x20a584];return _0x4b41a8;};'use strict';var multer=require(_0xd61c('0x0'));var util=require(_0xd61c('0x1'));var path=require(_0xd61c('0x2'));var timeout=require(_0xd61c('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xd61c('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xd61c('0x5'));var controller=require(_0xd61c('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0xd61c('0x7')]);router[_0xd61c('0x8')](_0xd61c('0x9'),auth[_0xd61c('0xa')](),controller[_0xd61c('0xb')]);router[_0xd61c('0x8')](_0xd61c('0xc'),auth['isChatInteractionAuthorized'](),controller['show']);router[_0xd61c('0x8')](_0xd61c('0xd'),auth[_0xd61c('0xe')](),controller['attachmentDownload']);router[_0xd61c('0x8')](_0xd61c('0xf'),auth[_0xd61c('0xa')](),controller[_0xd61c('0x10')]);router[_0xd61c('0x8')](_0xd61c('0x11'),auth[_0xd61c('0xe')](),controller[_0xd61c('0x12')]);router[_0xd61c('0x8')](_0xd61c('0x13'),auth[_0xd61c('0xa')](),controller[_0xd61c('0x14')]);router['post']('/',auth[_0xd61c('0xa')](),controller[_0xd61c('0x15')]);router[_0xd61c('0x16')](_0xd61c('0x17'),auth[_0xd61c('0xa')](),controller[_0xd61c('0x18')]);var upload=multer({'storage':multer[_0xd61c('0x19')]({'destination':function(_0x283a68,_0x531fc3,_0x440efe){_0x440efe(null,path[_0xd61c('0x1a')](config[_0xd61c('0x1b')],_0xd61c('0x1c')));},'filename':function(_0xe9702,_0x38997e,_0x284542){_0x284542(null,util[_0xd61c('0x1d')](_0xd61c('0x1e'),Date['now'](),_0x38997e[_0xd61c('0x1f')]['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xd61c('0x16')]('/:id/attachment_upload',upload['single'](_0xd61c('0x20')),controller['attachmentUpload']);router[_0xd61c('0x16')](_0xd61c('0xf'),auth['isChatInteractionAuthorized'](),controller[_0xd61c('0x21')]);router[_0xd61c('0x16')](_0xd61c('0x22'),auth['isAuthenticated'](),interaction[_0xd61c('0x23')](_0xd61c('0x24'),_0xd61c('0x25')),controller[_0xd61c('0x26')]);router[_0xd61c('0x27')](_0xd61c('0xc'),auth[_0xd61c('0xa')](),interaction[_0xd61c('0x23')](_0xd61c('0x24'),'chatinteraction:update'),controller[_0xd61c('0x28')]);router['put'](_0xd61c('0x29'),controller[_0xd61c('0x2a')]);router[_0xd61c('0x27')](_0xd61c('0x2b'),auth[_0xd61c('0xe')](),controller[_0xd61c('0x2c')]);router['put']('/:id/close',controller[_0xd61c('0x2d')]);router[_0xd61c('0x2e')](_0xd61c('0xc'),auth[_0xd61c('0xa')](),interaction[_0xd61c('0x23')]('chat',_0xd61c('0x2f')),controller[_0xd61c('0x30')]);router['delete']('/:id/tags',auth['isAuthenticated'](),controller['removeTags']);module['exports']=router;
\ No newline at end of file
+var _0x6e37=['multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','get','isAuthenticated','/describe','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download','download','post','create','/:id/vidaoo','createVidaooSession','diskStorage','join','root','server/files/attachments/','format','%s-%s','originalname','replace','/:id/attachment_upload','file','attachmentUpload','addMessage','/:id/tags','chat','chatinteraction:addtags','addTags','tracked','chatinteraction:update','update','put','/:id/custom_update','/:id/abandon','abandon','delete','chatinteraction:destroy','removeTags','exports'];(function(_0x364b32,_0x4dec35){var _0x3f3ea0=function(_0x1911a8){while(--_0x1911a8){_0x364b32['push'](_0x364b32['shift']());}};_0x3f3ea0(++_0x4dec35);}(_0x6e37,0x138));var _0x76e3=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x6e37[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0x76e3('0x0'));var util=require(_0x76e3('0x1'));var path=require('path');var timeout=require(_0x76e3('0x2'));var express=require(_0x76e3('0x3'));var router=express[_0x76e3('0x4')]();var fs_extra=require(_0x76e3('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x76e3('0x6'));var config=require('../../config/environment');var controller=require('./chatInteraction.controller');router[_0x76e3('0x7')]('/',auth[_0x76e3('0x8')](),controller['index']);router[_0x76e3('0x7')](_0x76e3('0x9'),auth[_0x76e3('0x8')](),controller['describe']);router[_0x76e3('0x7')](_0x76e3('0xa'),auth[_0x76e3('0xb')](),controller[_0x76e3('0xc')]);router[_0x76e3('0x7')](_0x76e3('0xd'),auth[_0x76e3('0xb')](),controller[_0x76e3('0xe')]);router[_0x76e3('0x7')](_0x76e3('0xf'),auth[_0x76e3('0x8')](),controller[_0x76e3('0x10')]);router[_0x76e3('0x7')](_0x76e3('0x11'),auth[_0x76e3('0xb')](),controller[_0x76e3('0x12')]);router[_0x76e3('0x7')](_0x76e3('0x13'),auth[_0x76e3('0x8')](),controller[_0x76e3('0x14')]);router[_0x76e3('0x15')]('/',auth['isAuthenticated'](),controller[_0x76e3('0x16')]);router[_0x76e3('0x15')](_0x76e3('0x17'),auth[_0x76e3('0x8')](),controller[_0x76e3('0x18')]);var upload=multer({'storage':multer[_0x76e3('0x19')]({'destination':function(_0x3d9cee,_0x104848,_0x37d95d){_0x37d95d(null,path[_0x76e3('0x1a')](config[_0x76e3('0x1b')],_0x76e3('0x1c')));},'filename':function(_0x2356a0,_0x218ed9,_0x7d33a3){_0x7d33a3(null,util[_0x76e3('0x1d')](_0x76e3('0x1e'),Date['now'](),_0x218ed9[_0x76e3('0x1f')][_0x76e3('0x20')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x76e3('0x15')](_0x76e3('0x21'),upload['single'](_0x76e3('0x22')),controller[_0x76e3('0x23')]);router[_0x76e3('0x15')](_0x76e3('0xf'),auth['isChatInteractionAuthorized'](),controller[_0x76e3('0x24')]);router['post'](_0x76e3('0x25'),auth['isAuthenticated'](),interaction['tracked'](_0x76e3('0x26'),_0x76e3('0x27')),controller[_0x76e3('0x28')]);router['put'](_0x76e3('0xa'),auth[_0x76e3('0x8')](),interaction[_0x76e3('0x29')](_0x76e3('0x26'),_0x76e3('0x2a')),controller[_0x76e3('0x2b')]);router[_0x76e3('0x2c')](_0x76e3('0x2d'),controller['customUpdate']);router[_0x76e3('0x2c')](_0x76e3('0x2e'),auth[_0x76e3('0xb')](),controller[_0x76e3('0x2f')]);router[_0x76e3('0x2c')]('/:id/close',controller['close']);router[_0x76e3('0x30')](_0x76e3('0xa'),auth[_0x76e3('0x8')](),interaction['tracked']('chat',_0x76e3('0x31')),controller['destroy']);router[_0x76e3('0x30')]('/:id/tags',auth[_0x76e3('0x8')](),controller[_0x76e3('0x32')]);module[_0x76e3('0x33')]=router;
\ No newline at end of file