Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / chatInteraction / index.js
index 824905d..f252f04 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcf91=['chatinteraction:update','update','/:id/custom_update','/:id/abandon','abandon','delete','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','getMessages','/:id/my_messages','getMyMessages','/:id/download','download','post','create','/:id/vidaoo','createVidaooSession','diskStorage','root','server/files/attachments/','%s-%s','now','originalname','replace','/:id/attachment_upload','single','file','/:id/messages','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','addTags','put'];(function(_0x1bb298,_0x2ad943){var _0x3cb8ed=function(_0x124c1e){while(--_0x124c1e){_0x1bb298['push'](_0x1bb298['shift']());}};_0x3cb8ed(++_0x2ad943);}(_0xcf91,0xcf));var _0x1cf9=function(_0x139881,_0x568e66){_0x139881=_0x139881-0x0;var _0x531576=_0xcf91[_0x139881];return _0x531576;};'use strict';var multer=require(_0x1cf9('0x0'));var util=require(_0x1cf9('0x1'));var path=require(_0x1cf9('0x2'));var timeout=require(_0x1cf9('0x3'));var express=require(_0x1cf9('0x4'));var router=express[_0x1cf9('0x5')]();var auth=require(_0x1cf9('0x6'));var interaction=require(_0x1cf9('0x7'));var config=require(_0x1cf9('0x8'));var controller=require(_0x1cf9('0x9'));router[_0x1cf9('0xa')]('/',auth[_0x1cf9('0xb')](),controller['index']);router[_0x1cf9('0xa')]('/describe',auth[_0x1cf9('0xb')](),controller['describe']);router[_0x1cf9('0xa')](_0x1cf9('0xc'),auth[_0x1cf9('0xd')](),controller[_0x1cf9('0xe')]);router['get'](_0x1cf9('0xf'),auth[_0x1cf9('0xd')](),controller['attachmentDownload']);router[_0x1cf9('0xa')]('/:id/messages',auth[_0x1cf9('0xb')](),controller[_0x1cf9('0x10')]);router[_0x1cf9('0xa')](_0x1cf9('0x11'),auth[_0x1cf9('0xd')](),controller[_0x1cf9('0x12')]);router[_0x1cf9('0xa')](_0x1cf9('0x13'),auth[_0x1cf9('0xb')](),controller[_0x1cf9('0x14')]);router[_0x1cf9('0x15')]('/',auth[_0x1cf9('0xb')](),controller[_0x1cf9('0x16')]);router[_0x1cf9('0x15')](_0x1cf9('0x17'),auth['isAuthenticated'](),controller[_0x1cf9('0x18')]);var upload=multer({'storage':multer[_0x1cf9('0x19')]({'destination':function(_0x4ca617,_0x4adcef,_0x4c7845){_0x4c7845(null,path['join'](config[_0x1cf9('0x1a')],_0x1cf9('0x1b')));},'filename':function(_0x554585,_0x15f682,_0x1baa09){_0x1baa09(null,util['format'](_0x1cf9('0x1c'),Date[_0x1cf9('0x1d')](),_0x15f682[_0x1cf9('0x1e')][_0x1cf9('0x1f')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x1cf9('0x15')](_0x1cf9('0x20'),upload[_0x1cf9('0x21')](_0x1cf9('0x22')),controller['attachmentUpload']);router[_0x1cf9('0x15')](_0x1cf9('0x23'),auth[_0x1cf9('0xd')](),controller[_0x1cf9('0x24')]);router[_0x1cf9('0x15')](_0x1cf9('0x25'),auth['isAuthenticated'](),interaction[_0x1cf9('0x26')](_0x1cf9('0x27'),_0x1cf9('0x28')),controller[_0x1cf9('0x29')]);router[_0x1cf9('0x2a')]('/:id',auth[_0x1cf9('0xb')](),interaction[_0x1cf9('0x26')](_0x1cf9('0x27'),_0x1cf9('0x2b')),controller[_0x1cf9('0x2c')]);router[_0x1cf9('0x2a')](_0x1cf9('0x2d'),controller['customUpdate']);router[_0x1cf9('0x2a')](_0x1cf9('0x2e'),auth['isChatInteractionAuthorized'](),controller[_0x1cf9('0x2f')]);router[_0x1cf9('0x2a')]('/:id/close',controller['close']);router[_0x1cf9('0x30')]('/:id',auth[_0x1cf9('0xb')](),interaction['tracked'](_0x1cf9('0x27'),'chatinteraction:destroy'),controller[_0x1cf9('0x31')]);router[_0x1cf9('0x30')](_0x1cf9('0x25'),auth[_0x1cf9('0xb')](),controller['removeTags']);module['exports']=router;
\ No newline at end of file
+var _0x5a99=['/:id/vidaoo','createVidaooSession','diskStorage','join','root','server/files/attachments/','format','%s-%s','originalname','replace','/:id/attachment_upload','file','attachmentUpload','/:id/tags','tracked','chat','addTags','put','/:id/abandon','abandon','close','delete','chatinteraction:destroy','destroy','removeTags','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','describe','/:id','/:id/attachment_download','isChatInteractionAuthorized','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','getMyMessages','download','post','create'];(function(_0x5da6f5,_0xa4caa7){var _0x8c7372=function(_0x1c1618){while(--_0x1c1618){_0x5da6f5['push'](_0x5da6f5['shift']());}};_0x8c7372(++_0xa4caa7);}(_0x5a99,0x1ef));var _0x95a9=function(_0x4f9a92,_0x45abdd){_0x4f9a92=_0x4f9a92-0x0;var _0x24da33=_0x5a99[_0x4f9a92];return _0x24da33;};'use strict';var multer=require('multer');var util=require(_0x95a9('0x0'));var path=require(_0x95a9('0x1'));var timeout=require(_0x95a9('0x2'));var express=require(_0x95a9('0x3'));var router=express[_0x95a9('0x4')]();var auth=require(_0x95a9('0x5'));var interaction=require(_0x95a9('0x6'));var config=require('../../config/environment');var controller=require('./chatInteraction.controller');router[_0x95a9('0x7')]('/',auth[_0x95a9('0x8')](),controller[_0x95a9('0x9')]);router[_0x95a9('0x7')]('/describe',auth[_0x95a9('0x8')](),controller[_0x95a9('0xa')]);router[_0x95a9('0x7')](_0x95a9('0xb'),auth['isChatInteractionAuthorized'](),controller['show']);router[_0x95a9('0x7')](_0x95a9('0xc'),auth[_0x95a9('0xd')](),controller[_0x95a9('0xe')]);router['get'](_0x95a9('0xf'),auth[_0x95a9('0x8')](),controller[_0x95a9('0x10')]);router[_0x95a9('0x7')](_0x95a9('0x11'),auth[_0x95a9('0xd')](),controller[_0x95a9('0x12')]);router[_0x95a9('0x7')]('/:id/download',auth[_0x95a9('0x8')](),controller[_0x95a9('0x13')]);router[_0x95a9('0x14')]('/',auth[_0x95a9('0x8')](),controller[_0x95a9('0x15')]);router[_0x95a9('0x14')](_0x95a9('0x16'),auth[_0x95a9('0x8')](),controller[_0x95a9('0x17')]);var upload=multer({'storage':multer[_0x95a9('0x18')]({'destination':function(_0x20519f,_0xa93037,_0x11a559){_0x11a559(null,path[_0x95a9('0x19')](config[_0x95a9('0x1a')],_0x95a9('0x1b')));},'filename':function(_0x2509f6,_0x2cc986,_0x255a92){_0x255a92(null,util[_0x95a9('0x1c')](_0x95a9('0x1d'),Date['now'](),_0x2cc986[_0x95a9('0x1e')][_0x95a9('0x1f')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x95a9('0x14')](_0x95a9('0x20'),upload['single'](_0x95a9('0x21')),controller[_0x95a9('0x22')]);router['post']('/:id/messages',auth['isChatInteractionAuthorized'](),controller['addMessage']);router[_0x95a9('0x14')](_0x95a9('0x23'),auth[_0x95a9('0x8')](),interaction[_0x95a9('0x24')](_0x95a9('0x25'),'chatinteraction:addtags'),controller[_0x95a9('0x26')]);router[_0x95a9('0x27')](_0x95a9('0xb'),auth['isAuthenticated'](),interaction[_0x95a9('0x24')]('chat','chatinteraction:update'),controller['update']);router[_0x95a9('0x27')]('/:id/custom_update',controller['customUpdate']);router[_0x95a9('0x27')](_0x95a9('0x28'),auth[_0x95a9('0xd')](),controller[_0x95a9('0x29')]);router[_0x95a9('0x27')]('/:id/close',controller[_0x95a9('0x2a')]);router[_0x95a9('0x2b')](_0x95a9('0xb'),auth['isAuthenticated'](),interaction[_0x95a9('0x24')]('chat',_0x95a9('0x2c')),controller[_0x95a9('0x2d')]);router[_0x95a9('0x2b')]('/:id/tags',auth[_0x95a9('0x8')](),controller[_0x95a9('0x2e')]);module['exports']=router;
\ No newline at end of file