Built motion from commit 88aa8522.|2.5.37
[motion2.git] / server / api / chatInteraction / index.js
index bb53c53..8b2da9c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5f68=['%s-%s','now','originalname','/:id/attachment_upload','single','file','attachmentUpload','addMessage','/:id/tags','chat','chatinteraction:addtags','addTags','put','tracked','chatinteraction:update','customUpdate','/:id/abandon','abandon','/:id/close','delete','chatinteraction:destroy','destroy','removeTags','exports','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','isAuthenticated','index','get','/describe','describe','/:id','isChatInteractionAuthorized','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download','download','post','create','/:id/vidaoo','createVidaooSession','diskStorage','join','server/files/attachments/','format'];(function(_0x1fd6c3,_0x5df4de){var _0x2d503a=function(_0x29527f){while(--_0x29527f){_0x1fd6c3['push'](_0x1fd6c3['shift']());}};_0x2d503a(++_0x5df4de);}(_0x5f68,0x86));var _0x85f6=function(_0x1a6905,_0x56adc4){_0x1a6905=_0x1a6905-0x0;var _0x4ef252=_0x5f68[_0x1a6905];return _0x4ef252;};'use strict';var multer=require(_0x85f6('0x0'));var util=require('util');var path=require(_0x85f6('0x1'));var timeout=require(_0x85f6('0x2'));var express=require('express');var router=express[_0x85f6('0x3')]();var fs_extra=require(_0x85f6('0x4'));var auth=require(_0x85f6('0x5'));var interaction=require(_0x85f6('0x6'));var config=require(_0x85f6('0x7'));var controller=require(_0x85f6('0x8'));router['get']('/',auth[_0x85f6('0x9')](),controller[_0x85f6('0xa')]);router[_0x85f6('0xb')](_0x85f6('0xc'),auth[_0x85f6('0x9')](),controller[_0x85f6('0xd')]);router[_0x85f6('0xb')](_0x85f6('0xe'),auth[_0x85f6('0xf')](),controller['show']);router['get']('/:id/attachment_download',auth[_0x85f6('0xf')](),controller[_0x85f6('0x10')]);router[_0x85f6('0xb')](_0x85f6('0x11'),auth[_0x85f6('0x9')](),controller[_0x85f6('0x12')]);router[_0x85f6('0xb')](_0x85f6('0x13'),auth[_0x85f6('0xf')](),controller[_0x85f6('0x14')]);router['get'](_0x85f6('0x15'),auth[_0x85f6('0x9')](),controller[_0x85f6('0x16')]);router[_0x85f6('0x17')]('/',auth[_0x85f6('0x9')](),controller[_0x85f6('0x18')]);router[_0x85f6('0x17')](_0x85f6('0x19'),auth[_0x85f6('0x9')](),controller[_0x85f6('0x1a')]);var upload=multer({'storage':multer[_0x85f6('0x1b')]({'destination':function(_0x30c92a,_0x1a4e57,_0x2b4cc5){_0x2b4cc5(null,path[_0x85f6('0x1c')](config['root'],_0x85f6('0x1d')));},'filename':function(_0x51dd70,_0x35b9a2,_0x10690b){_0x10690b(null,util[_0x85f6('0x1e')](_0x85f6('0x1f'),Date[_0x85f6('0x20')](),_0x35b9a2[_0x85f6('0x21')]['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post'](_0x85f6('0x22'),upload[_0x85f6('0x23')](_0x85f6('0x24')),controller[_0x85f6('0x25')]);router[_0x85f6('0x17')]('/:id/messages',auth[_0x85f6('0xf')](),controller[_0x85f6('0x26')]);router['post'](_0x85f6('0x27'),auth[_0x85f6('0x9')](),interaction['tracked'](_0x85f6('0x28'),_0x85f6('0x29')),controller[_0x85f6('0x2a')]);router[_0x85f6('0x2b')](_0x85f6('0xe'),auth[_0x85f6('0x9')](),interaction[_0x85f6('0x2c')](_0x85f6('0x28'),_0x85f6('0x2d')),controller['update']);router[_0x85f6('0x2b')]('/:id/custom_update',controller[_0x85f6('0x2e')]);router[_0x85f6('0x2b')](_0x85f6('0x2f'),auth['isChatInteractionAuthorized'](),controller[_0x85f6('0x30')]);router[_0x85f6('0x2b')](_0x85f6('0x31'),controller['close']);router[_0x85f6('0x32')](_0x85f6('0xe'),auth[_0x85f6('0x9')](),interaction[_0x85f6('0x2c')](_0x85f6('0x28'),_0x85f6('0x33')),controller[_0x85f6('0x34')]);router['delete'](_0x85f6('0x27'),auth['isAuthenticated'](),controller[_0x85f6('0x35')]);module[_0x85f6('0x36')]=router;
\ No newline at end of file
+var _0xc87e=['isAuthenticated','index','/describe','describe','/:id','isChatInteractionAuthorized','show','attachmentDownload','/:id/messages','getMessages','getMyMessages','/:id/download','download','post','create','/:id/vidaoo','createVidaooSession','diskStorage','root','format','%s-%s','now','replace','single','file','attachmentUpload','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','chatinteraction:update','update','/:id/custom_update','customUpdate','put','/:id/abandon','abandon','/:id/close','close','delete','chatinteraction:destroy','destroy','removeTags','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get'];(function(_0x1da846,_0x589fba){var _0x546603=function(_0x5df1ec){while(--_0x5df1ec){_0x1da846['push'](_0x1da846['shift']());}};_0x546603(++_0x589fba);}(_0xc87e,0x13a));var _0xec87=function(_0x5db3cf,_0x121a92){_0x5db3cf=_0x5db3cf-0x0;var _0x4db165=_0xc87e[_0x5db3cf];return _0x4db165;};'use strict';var multer=require(_0xec87('0x0'));var util=require(_0xec87('0x1'));var path=require(_0xec87('0x2'));var timeout=require(_0xec87('0x3'));var express=require('express');var router=express[_0xec87('0x4')]();var fs_extra=require(_0xec87('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xec87('0x6'));var config=require(_0xec87('0x7'));var controller=require(_0xec87('0x8'));router[_0xec87('0x9')]('/',auth[_0xec87('0xa')](),controller[_0xec87('0xb')]);router['get'](_0xec87('0xc'),auth[_0xec87('0xa')](),controller[_0xec87('0xd')]);router[_0xec87('0x9')](_0xec87('0xe'),auth[_0xec87('0xf')](),controller[_0xec87('0x10')]);router[_0xec87('0x9')]('/:id/attachment_download',auth['isChatInteractionAuthorized'](),controller[_0xec87('0x11')]);router['get'](_0xec87('0x12'),auth[_0xec87('0xa')](),controller[_0xec87('0x13')]);router[_0xec87('0x9')]('/:id/my_messages',auth[_0xec87('0xf')](),controller[_0xec87('0x14')]);router[_0xec87('0x9')](_0xec87('0x15'),auth[_0xec87('0xa')](),controller[_0xec87('0x16')]);router[_0xec87('0x17')]('/',auth['isAuthenticated'](),controller[_0xec87('0x18')]);router['post'](_0xec87('0x19'),auth[_0xec87('0xa')](),controller[_0xec87('0x1a')]);var upload=multer({'storage':multer[_0xec87('0x1b')]({'destination':function(_0x2a9eca,_0x91cded,_0x48e3d4){_0x48e3d4(null,path['join'](config[_0xec87('0x1c')],'server/files/attachments/'));},'filename':function(_0x297e8b,_0x40396a,_0x2f7d38){_0x2f7d38(null,util[_0xec87('0x1d')](_0xec87('0x1e'),Date[_0xec87('0x1f')](),_0x40396a['originalname'][_0xec87('0x20')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xec87('0x17')]('/:id/attachment_upload',upload[_0xec87('0x21')](_0xec87('0x22')),controller[_0xec87('0x23')]);router['post']('/:id/messages',auth[_0xec87('0xf')](),controller[_0xec87('0x24')]);router[_0xec87('0x17')](_0xec87('0x25'),auth[_0xec87('0xa')](),interaction[_0xec87('0x26')](_0xec87('0x27'),_0xec87('0x28')),controller['addTags']);router['put'](_0xec87('0xe'),auth[_0xec87('0xa')](),interaction[_0xec87('0x26')]('chat',_0xec87('0x29')),controller[_0xec87('0x2a')]);router['put'](_0xec87('0x2b'),controller[_0xec87('0x2c')]);router[_0xec87('0x2d')](_0xec87('0x2e'),auth['isChatInteractionAuthorized'](),controller[_0xec87('0x2f')]);router[_0xec87('0x2d')](_0xec87('0x30'),controller[_0xec87('0x31')]);router[_0xec87('0x32')](_0xec87('0xe'),auth[_0xec87('0xa')](),interaction['tracked'](_0xec87('0x27'),_0xec87('0x33')),controller[_0xec87('0x34')]);router[_0xec87('0x32')](_0xec87('0x25'),auth[_0xec87('0xa')](),controller[_0xec87('0x35')]);module['exports']=router;
\ No newline at end of file