Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / chatInteraction / index.js
index 5609a20..9fa1b34 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf3a8=['chatinteraction:addtags','addTags','put','chatinteraction:update','/:id/custom_update','abandon','close','delete','chat','chatinteraction:destroy','destroy','removeTags','util','path','express','../../components/interaction/service','./chatInteraction.controller','isAuthenticated','index','get','/describe','describe','/:id','isChatInteractionAuthorized','attachmentDownload','/:id/messages','/:id/my_messages','getMyMessages','download','create','post','createVidaooSession','join','root','server/files/attachments/','format','%s-%s','now','originalname','replace','single','file','attachmentUpload','addMessage','/:id/tags','tracked'];(function(_0x110df0,_0x423ed2){var _0x59ba87=function(_0x349691){while(--_0x349691){_0x110df0['push'](_0x110df0['shift']());}};_0x59ba87(++_0x423ed2);}(_0xf3a8,0xf2));var _0x8f3a=function(_0x3934ab,_0x4a91b4){_0x3934ab=_0x3934ab-0x0;var _0x1ef628=_0xf3a8[_0x3934ab];return _0x1ef628;};'use strict';var multer=require('multer');var util=require(_0x8f3a('0x0'));var path=require(_0x8f3a('0x1'));var timeout=require('connect-timeout');var express=require(_0x8f3a('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x8f3a('0x3'));var config=require('../../config/environment');var controller=require(_0x8f3a('0x4'));router['get']('/',auth[_0x8f3a('0x5')](),controller[_0x8f3a('0x6')]);router[_0x8f3a('0x7')](_0x8f3a('0x8'),auth[_0x8f3a('0x5')](),controller[_0x8f3a('0x9')]);router[_0x8f3a('0x7')](_0x8f3a('0xa'),auth[_0x8f3a('0xb')](),controller['show']);router[_0x8f3a('0x7')]('/:id/attachment_download',auth[_0x8f3a('0xb')](),controller[_0x8f3a('0xc')]);router[_0x8f3a('0x7')](_0x8f3a('0xd'),auth[_0x8f3a('0x5')](),controller['getMessages']);router[_0x8f3a('0x7')](_0x8f3a('0xe'),auth['isChatInteractionAuthorized'](),controller[_0x8f3a('0xf')]);router['get']('/:id/download',auth[_0x8f3a('0x5')](),controller[_0x8f3a('0x10')]);router['post']('/',auth[_0x8f3a('0x5')](),controller[_0x8f3a('0x11')]);router[_0x8f3a('0x12')]('/:id/vidaoo',auth[_0x8f3a('0x5')](),controller[_0x8f3a('0x13')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x170f2a,_0x14466e,_0x4ad8ee){_0x4ad8ee(null,path[_0x8f3a('0x14')](config[_0x8f3a('0x15')],_0x8f3a('0x16')));},'filename':function(_0x1acbcc,_0x2a7c0c,_0x512d94){_0x512d94(null,util[_0x8f3a('0x17')](_0x8f3a('0x18'),Date[_0x8f3a('0x19')](),_0x2a7c0c[_0x8f3a('0x1a')][_0x8f3a('0x1b')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x8f3a('0x12')]('/:id/attachment_upload',upload[_0x8f3a('0x1c')](_0x8f3a('0x1d')),controller[_0x8f3a('0x1e')]);router['post'](_0x8f3a('0xd'),auth['isChatInteractionAuthorized'](),controller[_0x8f3a('0x1f')]);router[_0x8f3a('0x12')](_0x8f3a('0x20'),auth[_0x8f3a('0x5')](),interaction[_0x8f3a('0x21')]('chat',_0x8f3a('0x22')),controller[_0x8f3a('0x23')]);router[_0x8f3a('0x24')](_0x8f3a('0xa'),auth[_0x8f3a('0x5')](),interaction['tracked']('chat',_0x8f3a('0x25')),controller['update']);router[_0x8f3a('0x24')](_0x8f3a('0x26'),controller['customUpdate']);router['put']('/:id/abandon',auth['isChatInteractionAuthorized'](),controller[_0x8f3a('0x27')]);router['put']('/:id/close',controller[_0x8f3a('0x28')]);router[_0x8f3a('0x29')](_0x8f3a('0xa'),auth[_0x8f3a('0x5')](),interaction[_0x8f3a('0x21')](_0x8f3a('0x2a'),_0x8f3a('0x2b')),controller[_0x8f3a('0x2c')]);router[_0x8f3a('0x29')](_0x8f3a('0x20'),auth['isAuthenticated'](),controller[_0x8f3a('0x2d')]);module['exports']=router;
\ No newline at end of file
+var _0xbee0=['destroy','removeTags','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','index','get','/describe','isAuthenticated','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download','download','post','/:id/vidaoo','createVidaooSession','diskStorage','join','root','format','%s-%s','originalname','/:id/attachment_upload','single','attachmentUpload','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','addTags','update','put','/:id/custom_update','customUpdate','/:id/abandon','abandon','/:id/close','close','delete','chatinteraction:destroy'];(function(_0x12f7ab,_0x4cc158){var _0x1f8d5f=function(_0x1ad0ba){while(--_0x1ad0ba){_0x12f7ab['push'](_0x12f7ab['shift']());}};_0x1f8d5f(++_0x4cc158);}(_0xbee0,0x147));var _0x0bee=function(_0x396965,_0x35b09f){_0x396965=_0x396965-0x0;var _0x388333=_0xbee0[_0x396965];return _0x388333;};'use strict';var multer=require('multer');var util=require(_0x0bee('0x0'));var path=require(_0x0bee('0x1'));var timeout=require(_0x0bee('0x2'));var express=require(_0x0bee('0x3'));var router=express[_0x0bee('0x4')]();var auth=require(_0x0bee('0x5'));var interaction=require(_0x0bee('0x6'));var config=require(_0x0bee('0x7'));var controller=require('./chatInteraction.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x0bee('0x8')]);router[_0x0bee('0x9')](_0x0bee('0xa'),auth[_0x0bee('0xb')](),controller['describe']);router[_0x0bee('0x9')](_0x0bee('0xc'),auth[_0x0bee('0xd')](),controller[_0x0bee('0xe')]);router['get'](_0x0bee('0xf'),auth[_0x0bee('0xd')](),controller[_0x0bee('0x10')]);router[_0x0bee('0x9')](_0x0bee('0x11'),auth[_0x0bee('0xb')](),controller[_0x0bee('0x12')]);router['get'](_0x0bee('0x13'),auth['isChatInteractionAuthorized'](),controller[_0x0bee('0x14')]);router[_0x0bee('0x9')](_0x0bee('0x15'),auth[_0x0bee('0xb')](),controller[_0x0bee('0x16')]);router[_0x0bee('0x17')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0x0bee('0x18'),auth[_0x0bee('0xb')](),controller[_0x0bee('0x19')]);var upload=multer({'storage':multer[_0x0bee('0x1a')]({'destination':function(_0x548ae9,_0x55c83c,_0x54aca4){_0x54aca4(null,path[_0x0bee('0x1b')](config[_0x0bee('0x1c')],'server/files/attachments/'));},'filename':function(_0x3087c2,_0x2d6d72,_0x4af35d){_0x4af35d(null,util[_0x0bee('0x1d')](_0x0bee('0x1e'),Date['now'](),_0x2d6d72[_0x0bee('0x1f')]['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x0bee('0x17')](_0x0bee('0x20'),upload[_0x0bee('0x21')]('file'),controller[_0x0bee('0x22')]);router[_0x0bee('0x17')](_0x0bee('0x11'),auth[_0x0bee('0xd')](),controller[_0x0bee('0x23')]);router['post'](_0x0bee('0x24'),auth['isAuthenticated'](),interaction[_0x0bee('0x25')](_0x0bee('0x26'),_0x0bee('0x27')),controller[_0x0bee('0x28')]);router['put'](_0x0bee('0xc'),auth[_0x0bee('0xb')](),interaction[_0x0bee('0x25')](_0x0bee('0x26'),'chatinteraction:update'),controller[_0x0bee('0x29')]);router[_0x0bee('0x2a')](_0x0bee('0x2b'),controller[_0x0bee('0x2c')]);router[_0x0bee('0x2a')](_0x0bee('0x2d'),auth[_0x0bee('0xd')](),controller[_0x0bee('0x2e')]);router[_0x0bee('0x2a')](_0x0bee('0x2f'),controller[_0x0bee('0x30')]);router[_0x0bee('0x31')](_0x0bee('0xc'),auth[_0x0bee('0xb')](),interaction[_0x0bee('0x25')](_0x0bee('0x26'),_0x0bee('0x32')),controller[_0x0bee('0x33')]);router['delete']('/:id/tags',auth[_0x0bee('0xb')](),controller[_0x0bee('0x34')]);module[_0x0bee('0x35')]=router;
\ No newline at end of file