Built motion from commit a8c4dd89.|2.6.33
[motion2.git] / server / api / chatInteraction / index.js
index 16b76be..943d114 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5796=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','describe','/:id','show','isChatInteractionAuthorized','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download','download','post','/:id/vidaoo','createVidaooSession','diskStorage','server/files/attachments/','format','%s-%s','now','originalname','replace','/:id/attachment_upload','single','file','attachmentUpload','/:id/tags','chatinteraction:addtags','put','tracked','chat','chatinteraction:update','update','/:id/custom_update','customUpdate','/:id/abandon','abandon','/:id/close','close','delete','destroy','exports','util','connect-timeout','express','Router'];(function(_0x2bfd4f,_0x1bbf2c){var _0x341849=function(_0x4c246e){while(--_0x4c246e){_0x2bfd4f['push'](_0x2bfd4f['shift']());}};_0x341849(++_0x1bbf2c);}(_0x5796,0x13a));var _0x6579=function(_0x22eefc,_0x138cff){_0x22eefc=_0x22eefc-0x0;var _0x10597e=_0x5796[_0x22eefc];return _0x10597e;};'use strict';var multer=require('multer');var util=require(_0x6579('0x0'));var path=require('path');var timeout=require(_0x6579('0x1'));var express=require(_0x6579('0x2'));var router=express[_0x6579('0x3')]();var fs_extra=require(_0x6579('0x4'));var auth=require(_0x6579('0x5'));var interaction=require(_0x6579('0x6'));var config=require(_0x6579('0x7'));var controller=require('./chatInteraction.controller');router['get']('/',auth[_0x6579('0x8')](),controller[_0x6579('0x9')]);router[_0x6579('0xa')](_0x6579('0xb'),auth[_0x6579('0x8')](),controller[_0x6579('0xc')]);router[_0x6579('0xa')](_0x6579('0xd'),auth['isChatInteractionAuthorized'](),controller[_0x6579('0xe')]);router[_0x6579('0xa')]('/:id/attachment_download',auth[_0x6579('0xf')](),controller[_0x6579('0x10')]);router[_0x6579('0xa')](_0x6579('0x11'),auth[_0x6579('0x8')](),controller[_0x6579('0x12')]);router[_0x6579('0xa')](_0x6579('0x13'),auth['isChatInteractionAuthorized'](),controller[_0x6579('0x14')]);router['get'](_0x6579('0x15'),auth[_0x6579('0x8')](),controller[_0x6579('0x16')]);router[_0x6579('0x17')]('/',auth[_0x6579('0x8')](),controller['create']);router[_0x6579('0x17')](_0x6579('0x18'),auth[_0x6579('0x8')](),controller[_0x6579('0x19')]);var upload=multer({'storage':multer[_0x6579('0x1a')]({'destination':function(_0x395e85,_0x5d0ff0,_0xb0a5c7){_0xb0a5c7(null,path['join'](config['root'],_0x6579('0x1b')));},'filename':function(_0x140665,_0x69688d,_0x22ae45){_0x22ae45(null,util[_0x6579('0x1c')](_0x6579('0x1d'),Date[_0x6579('0x1e')](),_0x69688d[_0x6579('0x1f')][_0x6579('0x20')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x6579('0x17')](_0x6579('0x21'),upload[_0x6579('0x22')](_0x6579('0x23')),controller[_0x6579('0x24')]);router['post'](_0x6579('0x11'),auth['isChatInteractionAuthorized'](),controller['addMessage']);router[_0x6579('0x17')](_0x6579('0x25'),auth[_0x6579('0x8')](),interaction['tracked']('chat',_0x6579('0x26')),controller['addTags']);router[_0x6579('0x27')]('/:id',auth[_0x6579('0x8')](),interaction[_0x6579('0x28')](_0x6579('0x29'),_0x6579('0x2a')),controller[_0x6579('0x2b')]);router[_0x6579('0x27')](_0x6579('0x2c'),controller[_0x6579('0x2d')]);router['put'](_0x6579('0x2e'),auth[_0x6579('0xf')](),controller[_0x6579('0x2f')]);router['put'](_0x6579('0x30'),controller[_0x6579('0x31')]);router[_0x6579('0x32')](_0x6579('0xd'),auth[_0x6579('0x8')](),interaction[_0x6579('0x28')]('chat','chatinteraction:destroy'),controller[_0x6579('0x33')]);router['delete']('/:id/tags',auth[_0x6579('0x8')](),controller['removeTags']);module[_0x6579('0x34')]=router;
\ No newline at end of file
+var _0xc03d=['path','express','Router','../../components/auth/service','../../components/interaction/service','./chatInteraction.controller','get','isAuthenticated','/describe','describe','isChatInteractionAuthorized','/:id/attachment_download','/:id/messages','getMessages','getMyMessages','/:id/download','download','post','create','/:id/vidaoo','createVidaooSession','diskStorage','join','root','server/files/attachments/','format','%s-%s','now','replace','/:id/attachment_upload','single','attachmentUpload','addMessage','/:id/tags','tracked','chatinteraction:addtags','put','/:id','chat','chatinteraction:update','update','customUpdate','abandon','delete','chatinteraction:destroy','destroy','removeTags','exports','util'];(function(_0x53be66,_0x9ec3be){var _0x9e5520=function(_0x5c4742){while(--_0x5c4742){_0x53be66['push'](_0x53be66['shift']());}};_0x9e5520(++_0x9ec3be);}(_0xc03d,0xf4));var _0xdc03=function(_0x38ef05,_0x39b256){_0x38ef05=_0x38ef05-0x0;var _0x4352a4=_0xc03d[_0x38ef05];return _0x4352a4;};'use strict';var multer=require('multer');var util=require(_0xdc03('0x0'));var path=require(_0xdc03('0x1'));var timeout=require('connect-timeout');var express=require(_0xdc03('0x2'));var router=express[_0xdc03('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xdc03('0x4'));var interaction=require(_0xdc03('0x5'));var config=require('../../config/environment');var controller=require(_0xdc03('0x6'));router[_0xdc03('0x7')]('/',auth[_0xdc03('0x8')](),controller['index']);router[_0xdc03('0x7')](_0xdc03('0x9'),auth['isAuthenticated'](),controller[_0xdc03('0xa')]);router[_0xdc03('0x7')]('/:id',auth[_0xdc03('0xb')](),controller['show']);router[_0xdc03('0x7')](_0xdc03('0xc'),auth[_0xdc03('0xb')](),controller['attachmentDownload']);router['get'](_0xdc03('0xd'),auth[_0xdc03('0x8')](),controller[_0xdc03('0xe')]);router[_0xdc03('0x7')]('/:id/my_messages',auth[_0xdc03('0xb')](),controller[_0xdc03('0xf')]);router[_0xdc03('0x7')](_0xdc03('0x10'),auth['isAuthenticated'](),controller[_0xdc03('0x11')]);router[_0xdc03('0x12')]('/',auth[_0xdc03('0x8')](),controller[_0xdc03('0x13')]);router[_0xdc03('0x12')](_0xdc03('0x14'),auth[_0xdc03('0x8')](),controller[_0xdc03('0x15')]);var upload=multer({'storage':multer[_0xdc03('0x16')]({'destination':function(_0x560650,_0x18035f,_0xa6b666){_0xa6b666(null,path[_0xdc03('0x17')](config[_0xdc03('0x18')],_0xdc03('0x19')));},'filename':function(_0x1b738b,_0x3c1899,_0x78c27b){_0x78c27b(null,util[_0xdc03('0x1a')](_0xdc03('0x1b'),Date[_0xdc03('0x1c')](),_0x3c1899['originalname'][_0xdc03('0x1d')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xdc03('0x12')](_0xdc03('0x1e'),upload[_0xdc03('0x1f')]('file'),controller[_0xdc03('0x20')]);router[_0xdc03('0x12')](_0xdc03('0xd'),auth[_0xdc03('0xb')](),controller[_0xdc03('0x21')]);router[_0xdc03('0x12')](_0xdc03('0x22'),auth['isAuthenticated'](),interaction[_0xdc03('0x23')]('chat',_0xdc03('0x24')),controller['addTags']);router[_0xdc03('0x25')](_0xdc03('0x26'),auth[_0xdc03('0x8')](),interaction[_0xdc03('0x23')](_0xdc03('0x27'),_0xdc03('0x28')),controller[_0xdc03('0x29')]);router['put']('/:id/custom_update',controller[_0xdc03('0x2a')]);router[_0xdc03('0x25')]('/:id/abandon',auth['isChatInteractionAuthorized'](),controller[_0xdc03('0x2b')]);router[_0xdc03('0x25')]('/:id/close',controller['close']);router[_0xdc03('0x2c')](_0xdc03('0x26'),auth[_0xdc03('0x8')](),interaction['tracked'](_0xdc03('0x27'),_0xdc03('0x2d')),controller[_0xdc03('0x2e')]);router[_0xdc03('0x2c')](_0xdc03('0x22'),auth[_0xdc03('0x8')](),controller[_0xdc03('0x2f')]);module[_0xdc03('0x30')]=router;
\ No newline at end of file