Built motion from commit 980b26c3.|2.6.29
[motion2.git] / server / api / chatInteraction / index.js
index da31dc1..809b38d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9abe=['removeTags','exports','util','connect-timeout','express','../../config/environment','./chatInteraction.controller','get','isAuthenticated','/describe','describe','/:id','isChatInteractionAuthorized','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','/:id/download','post','create','/:id/vidaoo','diskStorage','join','root','server/files/attachments/','format','%s-%s','now','originalname','replace','single','file','addMessage','chatinteraction:addtags','addTags','put','chat','chatinteraction:update','customUpdate','/:id/abandon','/:id/close','close','delete','tracked','chatinteraction:destroy','destroy','/:id/tags'];(function(_0x52821f,_0x4a4b6c){var _0x19d8a5=function(_0x2ef886){while(--_0x2ef886){_0x52821f['push'](_0x52821f['shift']());}};_0x19d8a5(++_0x4a4b6c);}(_0x9abe,0xed));var _0xe9ab=function(_0x583e4d,_0x562bf0){_0x583e4d=_0x583e4d-0x0;var _0x570f97=_0x9abe[_0x583e4d];return _0x570f97;};'use strict';var multer=require('multer');var util=require(_0xe9ab('0x0'));var path=require('path');var timeout=require(_0xe9ab('0x1'));var express=require(_0xe9ab('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xe9ab('0x3'));var controller=require(_0xe9ab('0x4'));router[_0xe9ab('0x5')]('/',auth[_0xe9ab('0x6')](),controller['index']);router[_0xe9ab('0x5')](_0xe9ab('0x7'),auth[_0xe9ab('0x6')](),controller[_0xe9ab('0x8')]);router[_0xe9ab('0x5')](_0xe9ab('0x9'),auth[_0xe9ab('0xa')](),controller['show']);router['get']('/:id/attachment_download',auth[_0xe9ab('0xa')](),controller[_0xe9ab('0xb')]);router[_0xe9ab('0x5')](_0xe9ab('0xc'),auth[_0xe9ab('0x6')](),controller[_0xe9ab('0xd')]);router[_0xe9ab('0x5')](_0xe9ab('0xe'),auth[_0xe9ab('0xa')](),controller['getMyMessages']);router[_0xe9ab('0x5')](_0xe9ab('0xf'),auth[_0xe9ab('0x6')](),controller['download']);router[_0xe9ab('0x10')]('/',auth[_0xe9ab('0x6')](),controller[_0xe9ab('0x11')]);router['post'](_0xe9ab('0x12'),auth['isAuthenticated'](),controller['createVidaooSession']);var upload=multer({'storage':multer[_0xe9ab('0x13')]({'destination':function(_0x1a01f1,_0x55e596,_0x570629){_0x570629(null,path[_0xe9ab('0x14')](config[_0xe9ab('0x15')],_0xe9ab('0x16')));},'filename':function(_0x2b7187,_0x17fdbb,_0x2b3913){_0x2b3913(null,util[_0xe9ab('0x17')](_0xe9ab('0x18'),Date[_0xe9ab('0x19')](),_0x17fdbb[_0xe9ab('0x1a')][_0xe9ab('0x1b')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xe9ab('0x10')]('/:id/attachment_upload',upload[_0xe9ab('0x1c')](_0xe9ab('0x1d')),controller['attachmentUpload']);router['post'](_0xe9ab('0xc'),auth['isChatInteractionAuthorized'](),controller[_0xe9ab('0x1e')]);router['post']('/:id/tags',auth['isAuthenticated'](),interaction['tracked']('chat',_0xe9ab('0x1f')),controller[_0xe9ab('0x20')]);router[_0xe9ab('0x21')](_0xe9ab('0x9'),auth[_0xe9ab('0x6')](),interaction['tracked'](_0xe9ab('0x22'),_0xe9ab('0x23')),controller['update']);router[_0xe9ab('0x21')]('/:id/custom_update',controller[_0xe9ab('0x24')]);router[_0xe9ab('0x21')](_0xe9ab('0x25'),auth[_0xe9ab('0xa')](),controller['abandon']);router['put'](_0xe9ab('0x26'),controller[_0xe9ab('0x27')]);router[_0xe9ab('0x28')](_0xe9ab('0x9'),auth[_0xe9ab('0x6')](),interaction[_0xe9ab('0x29')](_0xe9ab('0x22'),_0xe9ab('0x2a')),controller[_0xe9ab('0x2b')]);router[_0xe9ab('0x28')](_0xe9ab('0x2c'),auth['isAuthenticated'](),controller[_0xe9ab('0x2d')]);module[_0xe9ab('0x2e')]=router;
\ No newline at end of file
+var _0x025a=['root','server/files/attachments/','format','%s-%s','now','originalname','replace','/:id/attachment_upload','single','file','attachmentUpload','post','addMessage','/:id/tags','tracked','put','chat','chatinteraction:update','update','/:id/custom_update','customUpdate','/:id/abandon','abandon','/:id/close','close','delete','chatinteraction:destroy','destroy','removeTags','exports','multer','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','/describe','describe','/:id','isChatInteractionAuthorized','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download','download','create','/:id/vidaoo','createVidaooSession','diskStorage','join'];(function(_0x46e363,_0x45d7e2){var _0x3fb059=function(_0x5e6274){while(--_0x5e6274){_0x46e363['push'](_0x46e363['shift']());}};_0x3fb059(++_0x45d7e2);}(_0x025a,0x19f));var _0xa025=function(_0x390752,_0x42cad3){_0x390752=_0x390752-0x0;var _0x5eca55=_0x025a[_0x390752];return _0x5eca55;};'use strict';var multer=require(_0xa025('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa025('0x1'));var express=require('express');var router=express[_0xa025('0x2')]();var fs_extra=require(_0xa025('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xa025('0x4'));var config=require(_0xa025('0x5'));var controller=require(_0xa025('0x6'));router[_0xa025('0x7')]('/',auth[_0xa025('0x8')](),controller['index']);router[_0xa025('0x7')](_0xa025('0x9'),auth[_0xa025('0x8')](),controller[_0xa025('0xa')]);router['get'](_0xa025('0xb'),auth[_0xa025('0xc')](),controller['show']);router[_0xa025('0x7')]('/:id/attachment_download',auth['isChatInteractionAuthorized'](),controller[_0xa025('0xd')]);router['get'](_0xa025('0xe'),auth[_0xa025('0x8')](),controller[_0xa025('0xf')]);router[_0xa025('0x7')](_0xa025('0x10'),auth[_0xa025('0xc')](),controller[_0xa025('0x11')]);router[_0xa025('0x7')](_0xa025('0x12'),auth[_0xa025('0x8')](),controller[_0xa025('0x13')]);router['post']('/',auth[_0xa025('0x8')](),controller[_0xa025('0x14')]);router['post'](_0xa025('0x15'),auth[_0xa025('0x8')](),controller[_0xa025('0x16')]);var upload=multer({'storage':multer[_0xa025('0x17')]({'destination':function(_0x24bc7b,_0x1d5dac,_0x10867a){_0x10867a(null,path[_0xa025('0x18')](config[_0xa025('0x19')],_0xa025('0x1a')));},'filename':function(_0x380826,_0x2c9bc4,_0x126509){_0x126509(null,util[_0xa025('0x1b')](_0xa025('0x1c'),Date[_0xa025('0x1d')](),_0x2c9bc4[_0xa025('0x1e')][_0xa025('0x1f')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post'](_0xa025('0x20'),upload[_0xa025('0x21')](_0xa025('0x22')),controller[_0xa025('0x23')]);router[_0xa025('0x24')](_0xa025('0xe'),auth[_0xa025('0xc')](),controller[_0xa025('0x25')]);router[_0xa025('0x24')](_0xa025('0x26'),auth[_0xa025('0x8')](),interaction[_0xa025('0x27')]('chat','chatinteraction:addtags'),controller['addTags']);router[_0xa025('0x28')](_0xa025('0xb'),auth[_0xa025('0x8')](),interaction['tracked'](_0xa025('0x29'),_0xa025('0x2a')),controller[_0xa025('0x2b')]);router[_0xa025('0x28')](_0xa025('0x2c'),controller[_0xa025('0x2d')]);router[_0xa025('0x28')](_0xa025('0x2e'),auth[_0xa025('0xc')](),controller[_0xa025('0x2f')]);router[_0xa025('0x28')](_0xa025('0x30'),controller[_0xa025('0x31')]);router[_0xa025('0x32')](_0xa025('0xb'),auth[_0xa025('0x8')](),interaction[_0xa025('0x27')](_0xa025('0x29'),_0xa025('0x33')),controller[_0xa025('0x34')]);router[_0xa025('0x32')](_0xa025('0x26'),auth[_0xa025('0x8')](),controller[_0xa025('0x35')]);module[_0xa025('0x36')]=router;
\ No newline at end of file