Built motion from commit f623a78c.|2.6.31
[motion2.git] / server / api / chatInteraction / index.js
index 0b07f04..88795ef 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb18b=['originalname','replace','/:id/attachment_upload','attachmentUpload','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','addTags','put','/:id','chatinteraction:update','update','/:id/custom_update','/:id/abandon','abandon','/:id/close','delete','util','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','/describe','isChatInteractionAuthorized','show','/:id/attachment_download','/:id/messages','/:id/my_messages','/:id/download','create','post','/:id/vidaoo','createVidaooSession','diskStorage','join','root','server/files/attachments/','%s-%s','now'];(function(_0x476a3c,_0x215c45){var _0x28c007=function(_0x369c80){while(--_0x369c80){_0x476a3c['push'](_0x476a3c['shift']());}};_0x28c007(++_0x215c45);}(_0xb18b,0x14e));var _0xbb18=function(_0x242875,_0x44524a){_0x242875=_0x242875-0x0;var _0x25b3ee=_0xb18b[_0x242875];return _0x25b3ee;};'use strict';var multer=require('multer');var util=require(_0xbb18('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xbb18('0x1'));var router=express['Router']();var fs_extra=require(_0xbb18('0x2'));var auth=require(_0xbb18('0x3'));var interaction=require(_0xbb18('0x4'));var config=require(_0xbb18('0x5'));var controller=require(_0xbb18('0x6'));router[_0xbb18('0x7')]('/',auth[_0xbb18('0x8')](),controller['index']);router['get'](_0xbb18('0x9'),auth[_0xbb18('0x8')](),controller['describe']);router[_0xbb18('0x7')]('/:id',auth[_0xbb18('0xa')](),controller[_0xbb18('0xb')]);router[_0xbb18('0x7')](_0xbb18('0xc'),auth[_0xbb18('0xa')](),controller['attachmentDownload']);router[_0xbb18('0x7')](_0xbb18('0xd'),auth['isAuthenticated'](),controller['getMessages']);router[_0xbb18('0x7')](_0xbb18('0xe'),auth[_0xbb18('0xa')](),controller['getMyMessages']);router[_0xbb18('0x7')](_0xbb18('0xf'),auth[_0xbb18('0x8')](),controller['download']);router['post']('/',auth[_0xbb18('0x8')](),controller[_0xbb18('0x10')]);router[_0xbb18('0x11')](_0xbb18('0x12'),auth[_0xbb18('0x8')](),controller[_0xbb18('0x13')]);var upload=multer({'storage':multer[_0xbb18('0x14')]({'destination':function(_0x489a6e,_0x357b59,_0x36c6ed){_0x36c6ed(null,path[_0xbb18('0x15')](config[_0xbb18('0x16')],_0xbb18('0x17')));},'filename':function(_0x44cdb7,_0xe553b2,_0x4caa28){_0x4caa28(null,util['format'](_0xbb18('0x18'),Date[_0xbb18('0x19')](),_0xe553b2[_0xbb18('0x1a')][_0xbb18('0x1b')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post'](_0xbb18('0x1c'),upload['single']('file'),controller[_0xbb18('0x1d')]);router[_0xbb18('0x11')](_0xbb18('0xd'),auth[_0xbb18('0xa')](),controller[_0xbb18('0x1e')]);router['post'](_0xbb18('0x1f'),auth[_0xbb18('0x8')](),interaction[_0xbb18('0x20')](_0xbb18('0x21'),_0xbb18('0x22')),controller[_0xbb18('0x23')]);router[_0xbb18('0x24')](_0xbb18('0x25'),auth[_0xbb18('0x8')](),interaction['tracked']('chat',_0xbb18('0x26')),controller[_0xbb18('0x27')]);router[_0xbb18('0x24')](_0xbb18('0x28'),controller['customUpdate']);router[_0xbb18('0x24')](_0xbb18('0x29'),auth['isChatInteractionAuthorized'](),controller[_0xbb18('0x2a')]);router['put'](_0xbb18('0x2b'),controller['close']);router[_0xbb18('0x2c')]('/:id',auth[_0xbb18('0x8')](),interaction['tracked'](_0xbb18('0x21'),'chatinteraction:destroy'),controller['destroy']);router[_0xbb18('0x2c')]('/:id/tags',auth[_0xbb18('0x8')](),controller['removeTags']);module['exports']=router;
\ No newline at end of file
+var _0x8e4d=['download','post','/:id/vidaoo','createVidaooSession','diskStorage','root','server/files/attachments/','format','%s-%s','now','replace','/:id/attachment_upload','single','file','attachmentUpload','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','addTags','put','chatinteraction:update','/:id/abandon','abandon','/:id/close','close','/:id','chatinteraction:destroy','destroy','delete','removeTags','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','/describe','describe','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download'];(function(_0x112061,_0x3c26f3){var _0x1048fa=function(_0x530513){while(--_0x530513){_0x112061['push'](_0x112061['shift']());}};_0x1048fa(++_0x3c26f3);}(_0x8e4d,0x165));var _0xd8e4=function(_0x10cfce,_0x439154){_0x10cfce=_0x10cfce-0x0;var _0x418f36=_0x8e4d[_0x10cfce];return _0x418f36;};'use strict';var multer=require(_0xd8e4('0x0'));var util=require(_0xd8e4('0x1'));var path=require(_0xd8e4('0x2'));var timeout=require(_0xd8e4('0x3'));var express=require(_0xd8e4('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xd8e4('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xd8e4('0x6'));var controller=require(_0xd8e4('0x7'));router[_0xd8e4('0x8')]('/',auth[_0xd8e4('0x9')](),controller['index']);router[_0xd8e4('0x8')](_0xd8e4('0xa'),auth['isAuthenticated'](),controller[_0xd8e4('0xb')]);router[_0xd8e4('0x8')]('/:id',auth[_0xd8e4('0xc')](),controller[_0xd8e4('0xd')]);router[_0xd8e4('0x8')](_0xd8e4('0xe'),auth[_0xd8e4('0xc')](),controller[_0xd8e4('0xf')]);router[_0xd8e4('0x8')](_0xd8e4('0x10'),auth[_0xd8e4('0x9')](),controller[_0xd8e4('0x11')]);router[_0xd8e4('0x8')](_0xd8e4('0x12'),auth[_0xd8e4('0xc')](),controller[_0xd8e4('0x13')]);router[_0xd8e4('0x8')](_0xd8e4('0x14'),auth['isAuthenticated'](),controller[_0xd8e4('0x15')]);router[_0xd8e4('0x16')]('/',auth[_0xd8e4('0x9')](),controller['create']);router[_0xd8e4('0x16')](_0xd8e4('0x17'),auth[_0xd8e4('0x9')](),controller[_0xd8e4('0x18')]);var upload=multer({'storage':multer[_0xd8e4('0x19')]({'destination':function(_0x36bdd0,_0x5b1f49,_0x1ad7d4){_0x1ad7d4(null,path['join'](config[_0xd8e4('0x1a')],_0xd8e4('0x1b')));},'filename':function(_0x45bf6a,_0x5e4aa5,_0x19d1bb){_0x19d1bb(null,util[_0xd8e4('0x1c')](_0xd8e4('0x1d'),Date[_0xd8e4('0x1e')](),_0x5e4aa5['originalname'][_0xd8e4('0x1f')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xd8e4('0x16')](_0xd8e4('0x20'),upload[_0xd8e4('0x21')](_0xd8e4('0x22')),controller[_0xd8e4('0x23')]);router[_0xd8e4('0x16')](_0xd8e4('0x10'),auth['isChatInteractionAuthorized'](),controller[_0xd8e4('0x24')]);router[_0xd8e4('0x16')](_0xd8e4('0x25'),auth[_0xd8e4('0x9')](),interaction[_0xd8e4('0x26')](_0xd8e4('0x27'),_0xd8e4('0x28')),controller[_0xd8e4('0x29')]);router[_0xd8e4('0x2a')]('/:id',auth['isAuthenticated'](),interaction[_0xd8e4('0x26')](_0xd8e4('0x27'),_0xd8e4('0x2b')),controller['update']);router[_0xd8e4('0x2a')]('/:id/custom_update',controller['customUpdate']);router[_0xd8e4('0x2a')](_0xd8e4('0x2c'),auth['isChatInteractionAuthorized'](),controller[_0xd8e4('0x2d')]);router[_0xd8e4('0x2a')](_0xd8e4('0x2e'),controller[_0xd8e4('0x2f')]);router['delete'](_0xd8e4('0x30'),auth['isAuthenticated'](),interaction[_0xd8e4('0x26')](_0xd8e4('0x27'),_0xd8e4('0x31')),controller[_0xd8e4('0x32')]);router[_0xd8e4('0x33')](_0xd8e4('0x25'),auth[_0xd8e4('0x9')](),controller[_0xd8e4('0x34')]);module[_0xd8e4('0x35')]=router;
\ No newline at end of file