Built motion from commit 13c3002c.|2.6.9
[motion2.git] / server / api / chatInteraction / index.js
index fcfc952..059bee8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x98b7=['/:id','/:id/attachment_download','/:id/messages','getMessages','/:id/my_messages','isChatInteractionAuthorized','/:id/download','post','/:id/vidaoo','createVidaooSession','diskStorage','join','root','server/files/attachments/','format','%s-%s','now','originalname','replace','single','file','attachmentUpload','tracked','chatinteraction:addtags','chat','chatinteraction:update','update','put','/:id/custom_update','/:id/abandon','abandon','/:id/close','close','chatinteraction:destroy','delete','/:id/tags','removeTags','exports','multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','index','/describe','describe'];(function(_0xd2d65b,_0x4c74b0){var _0x1d1ef5=function(_0x2e16d2){while(--_0x2e16d2){_0xd2d65b['push'](_0xd2d65b['shift']());}};_0x1d1ef5(++_0x4c74b0);}(_0x98b7,0x8a));var _0x798b=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0x98b7[_0x4565bf];return _0x5610ba;};'use strict';var multer=require(_0x798b('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x798b('0x1'));var express=require('express');var router=express[_0x798b('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x798b('0x3'));var interaction=require(_0x798b('0x4'));var config=require(_0x798b('0x5'));var controller=require(_0x798b('0x6'));router[_0x798b('0x7')]('/',auth[_0x798b('0x8')](),controller[_0x798b('0x9')]);router[_0x798b('0x7')](_0x798b('0xa'),auth['isAuthenticated'](),controller[_0x798b('0xb')]);router[_0x798b('0x7')](_0x798b('0xc'),auth['isChatInteractionAuthorized'](),controller['show']);router[_0x798b('0x7')](_0x798b('0xd'),auth['isChatInteractionAuthorized'](),controller['attachmentDownload']);router[_0x798b('0x7')](_0x798b('0xe'),auth[_0x798b('0x8')](),controller[_0x798b('0xf')]);router[_0x798b('0x7')](_0x798b('0x10'),auth[_0x798b('0x11')](),controller['getMyMessages']);router['get'](_0x798b('0x12'),auth['isAuthenticated'](),controller['download']);router['post']('/',auth[_0x798b('0x8')](),controller['create']);router[_0x798b('0x13')](_0x798b('0x14'),auth[_0x798b('0x8')](),controller[_0x798b('0x15')]);var upload=multer({'storage':multer[_0x798b('0x16')]({'destination':function(_0x5f14cb,_0x2bc783,_0x3ac6da){_0x3ac6da(null,path[_0x798b('0x17')](config[_0x798b('0x18')],_0x798b('0x19')));},'filename':function(_0x187bf9,_0x1fe6b2,_0x52fdaa){_0x52fdaa(null,util[_0x798b('0x1a')](_0x798b('0x1b'),Date[_0x798b('0x1c')](),_0x1fe6b2[_0x798b('0x1d')][_0x798b('0x1e')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x798b('0x13')]('/:id/attachment_upload',upload[_0x798b('0x1f')](_0x798b('0x20')),controller[_0x798b('0x21')]);router[_0x798b('0x13')](_0x798b('0xe'),auth[_0x798b('0x11')](),controller['addMessage']);router[_0x798b('0x13')]('/:id/tags',auth[_0x798b('0x8')](),interaction[_0x798b('0x22')]('chat',_0x798b('0x23')),controller['addTags']);router['put']('/:id',auth[_0x798b('0x8')](),interaction[_0x798b('0x22')](_0x798b('0x24'),_0x798b('0x25')),controller[_0x798b('0x26')]);router[_0x798b('0x27')](_0x798b('0x28'),controller['customUpdate']);router[_0x798b('0x27')](_0x798b('0x29'),auth['isChatInteractionAuthorized'](),controller[_0x798b('0x2a')]);router[_0x798b('0x27')](_0x798b('0x2b'),controller[_0x798b('0x2c')]);router['delete'](_0x798b('0xc'),auth[_0x798b('0x8')](),interaction[_0x798b('0x22')](_0x798b('0x24'),_0x798b('0x2d')),controller['destroy']);router[_0x798b('0x2e')](_0x798b('0x2f'),auth[_0x798b('0x8')](),controller[_0x798b('0x30')]);module[_0x798b('0x31')]=router;
\ No newline at end of file
+var _0x5799=['chatinteraction:destroy','destroy','removeTags','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./chatInteraction.controller','get','/describe','isAuthenticated','describe','/:id','isChatInteractionAuthorized','/:id/attachment_download','attachmentDownload','getMessages','/:id/my_messages','post','create','createVidaooSession','diskStorage','server/files/attachments/','format','%s-%s','now','originalname','replace','/:id/attachment_upload','file','attachmentUpload','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','put','update','/:id/custom_update','customUpdate','/:id/abandon','abandon','/:id/close','close','delete'];(function(_0x50007c,_0x1cbf11){var _0x5c1ec7=function(_0x52d038){while(--_0x52d038){_0x50007c['push'](_0x50007c['shift']());}};_0x5c1ec7(++_0x1cbf11);}(_0x5799,0x99));var _0x9579=function(_0x3ba92c,_0x18415e){_0x3ba92c=_0x3ba92c-0x0;var _0x13925a=_0x5799[_0x3ba92c];return _0x13925a;};'use strict';var multer=require(_0x9579('0x0'));var util=require(_0x9579('0x1'));var path=require(_0x9579('0x2'));var timeout=require(_0x9579('0x3'));var express=require(_0x9579('0x4'));var router=express[_0x9579('0x5')]();var fs_extra=require(_0x9579('0x6'));var auth=require(_0x9579('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x9579('0x8'));var controller=require(_0x9579('0x9'));router[_0x9579('0xa')]('/',auth['isAuthenticated'](),controller['index']);router[_0x9579('0xa')](_0x9579('0xb'),auth[_0x9579('0xc')](),controller[_0x9579('0xd')]);router[_0x9579('0xa')](_0x9579('0xe'),auth[_0x9579('0xf')](),controller['show']);router[_0x9579('0xa')](_0x9579('0x10'),auth[_0x9579('0xf')](),controller[_0x9579('0x11')]);router[_0x9579('0xa')]('/:id/messages',auth[_0x9579('0xc')](),controller[_0x9579('0x12')]);router['get'](_0x9579('0x13'),auth[_0x9579('0xf')](),controller['getMyMessages']);router[_0x9579('0xa')]('/:id/download',auth[_0x9579('0xc')](),controller['download']);router[_0x9579('0x14')]('/',auth[_0x9579('0xc')](),controller[_0x9579('0x15')]);router[_0x9579('0x14')]('/:id/vidaoo',auth[_0x9579('0xc')](),controller[_0x9579('0x16')]);var upload=multer({'storage':multer[_0x9579('0x17')]({'destination':function(_0x2e7682,_0x1c7b17,_0x47ba15){_0x47ba15(null,path['join'](config['root'],_0x9579('0x18')));},'filename':function(_0x3725fe,_0x3bf767,_0x25d801){_0x25d801(null,util[_0x9579('0x19')](_0x9579('0x1a'),Date[_0x9579('0x1b')](),_0x3bf767[_0x9579('0x1c')][_0x9579('0x1d')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x9579('0x14')](_0x9579('0x1e'),upload['single'](_0x9579('0x1f')),controller[_0x9579('0x20')]);router[_0x9579('0x14')]('/:id/messages',auth['isChatInteractionAuthorized'](),controller[_0x9579('0x21')]);router[_0x9579('0x14')](_0x9579('0x22'),auth[_0x9579('0xc')](),interaction[_0x9579('0x23')](_0x9579('0x24'),_0x9579('0x25')),controller['addTags']);router[_0x9579('0x26')](_0x9579('0xe'),auth[_0x9579('0xc')](),interaction[_0x9579('0x23')](_0x9579('0x24'),'chatinteraction:update'),controller[_0x9579('0x27')]);router['put'](_0x9579('0x28'),controller[_0x9579('0x29')]);router[_0x9579('0x26')](_0x9579('0x2a'),auth[_0x9579('0xf')](),controller[_0x9579('0x2b')]);router[_0x9579('0x26')](_0x9579('0x2c'),controller[_0x9579('0x2d')]);router[_0x9579('0x2e')]('/:id',auth[_0x9579('0xc')](),interaction['tracked'](_0x9579('0x24'),_0x9579('0x2f')),controller[_0x9579('0x30')]);router['delete']('/:id/tags',auth['isAuthenticated'](),controller[_0x9579('0x31')]);module['exports']=router;
\ No newline at end of file