Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / chatInteraction / index.js
index 3a44113..64842b2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbc1b=['/:id/tags','tracked','chat','chatinteraction:addtags','addTags','put','chatinteraction:update','update','/:id/custom_update','customUpdate','/:id/abandon','abandon','/:id/close','close','delete','chatinteraction:destroy','destroy','removeTags','exports','multer','util','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','index','/describe','/:id','show','/:id/attachment_download','isChatInteractionAuthorized','/:id/messages','getMessages','/:id/my_messages','getMyMessages','download','post','/:id/vidaoo','join','server/files/attachments/','format','%s-%s','now','originalname','replace','/:id/attachment_upload','single','file','addMessage'];(function(_0x22b97d,_0x1a0c31){var _0x4b0059=function(_0x56bcd6){while(--_0x56bcd6){_0x22b97d['push'](_0x22b97d['shift']());}};_0x4b0059(++_0x1a0c31);}(_0xbc1b,0x186));var _0xbbc1=function(_0xa79977,_0x4f7f12){_0xa79977=_0xa79977-0x0;var _0x109f10=_0xbc1b[_0xa79977];return _0x109f10;};'use strict';var multer=require(_0xbbc1('0x0'));var util=require(_0xbbc1('0x1'));var path=require('path');var timeout=require(_0xbbc1('0x2'));var express=require('express');var router=express[_0xbbc1('0x3')]();var fs_extra=require(_0xbbc1('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xbbc1('0x5'));var config=require(_0xbbc1('0x6'));var controller=require(_0xbbc1('0x7'));router[_0xbbc1('0x8')]('/',auth[_0xbbc1('0x9')](),controller[_0xbbc1('0xa')]);router[_0xbbc1('0x8')](_0xbbc1('0xb'),auth[_0xbbc1('0x9')](),controller['describe']);router[_0xbbc1('0x8')](_0xbbc1('0xc'),auth['isChatInteractionAuthorized'](),controller[_0xbbc1('0xd')]);router[_0xbbc1('0x8')](_0xbbc1('0xe'),auth[_0xbbc1('0xf')](),controller['attachmentDownload']);router['get'](_0xbbc1('0x10'),auth[_0xbbc1('0x9')](),controller[_0xbbc1('0x11')]);router['get'](_0xbbc1('0x12'),auth[_0xbbc1('0xf')](),controller[_0xbbc1('0x13')]);router[_0xbbc1('0x8')]('/:id/download',auth[_0xbbc1('0x9')](),controller[_0xbbc1('0x14')]);router[_0xbbc1('0x15')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0xbbc1('0x16'),auth['isAuthenticated'](),controller['createVidaooSession']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x2af85a,_0x41f0a0,_0x5cab84){_0x5cab84(null,path[_0xbbc1('0x17')](config['root'],_0xbbc1('0x18')));},'filename':function(_0x130e12,_0x2b1b5d,_0x2d8260){_0x2d8260(null,util[_0xbbc1('0x19')](_0xbbc1('0x1a'),Date[_0xbbc1('0x1b')](),_0x2b1b5d[_0xbbc1('0x1c')][_0xbbc1('0x1d')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xbbc1('0x15')](_0xbbc1('0x1e'),upload[_0xbbc1('0x1f')](_0xbbc1('0x20')),controller['attachmentUpload']);router[_0xbbc1('0x15')]('/:id/messages',auth['isChatInteractionAuthorized'](),controller[_0xbbc1('0x21')]);router[_0xbbc1('0x15')](_0xbbc1('0x22'),auth['isAuthenticated'](),interaction[_0xbbc1('0x23')](_0xbbc1('0x24'),_0xbbc1('0x25')),controller[_0xbbc1('0x26')]);router[_0xbbc1('0x27')]('/:id',auth[_0xbbc1('0x9')](),interaction[_0xbbc1('0x23')]('chat',_0xbbc1('0x28')),controller[_0xbbc1('0x29')]);router[_0xbbc1('0x27')](_0xbbc1('0x2a'),controller[_0xbbc1('0x2b')]);router[_0xbbc1('0x27')](_0xbbc1('0x2c'),auth[_0xbbc1('0xf')](),controller[_0xbbc1('0x2d')]);router[_0xbbc1('0x27')](_0xbbc1('0x2e'),controller[_0xbbc1('0x2f')]);router[_0xbbc1('0x30')](_0xbbc1('0xc'),auth[_0xbbc1('0x9')](),interaction[_0xbbc1('0x23')](_0xbbc1('0x24'),_0xbbc1('0x31')),controller[_0xbbc1('0x32')]);router['delete'](_0xbbc1('0x22'),auth[_0xbbc1('0x9')](),controller[_0xbbc1('0x33')]);module[_0xbbc1('0x34')]=router;
\ No newline at end of file
+var _0x2999=['/:id/my_messages','getMyMessages','/:id/download','download','post','/:id/vidaoo','createVidaooSession','diskStorage','root','server/files/attachments/','%s-%s','now','originalname','replace','single','file','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','addTags','put','chatinteraction:update','update','/:id/custom_update','customUpdate','abandon','close','delete','chatinteraction:destroy','exports','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','describe','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','/:id/messages','getMessages'];(function(_0x4356c8,_0x5a863f){var _0x3bb35b=function(_0x1c9cf6){while(--_0x1c9cf6){_0x4356c8['push'](_0x4356c8['shift']());}};_0x3bb35b(++_0x5a863f);}(_0x2999,0x1b0));var _0x9299=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x2999[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x9299('0x0'));var util=require(_0x9299('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x9299('0x2'));var router=express[_0x9299('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x9299('0x4'));var interaction=require(_0x9299('0x5'));var config=require(_0x9299('0x6'));var controller=require(_0x9299('0x7'));router[_0x9299('0x8')]('/',auth[_0x9299('0x9')](),controller['index']);router[_0x9299('0x8')]('/describe',auth['isAuthenticated'](),controller[_0x9299('0xa')]);router['get'](_0x9299('0xb'),auth[_0x9299('0xc')](),controller[_0x9299('0xd')]);router['get'](_0x9299('0xe'),auth[_0x9299('0xc')](),controller[_0x9299('0xf')]);router[_0x9299('0x8')](_0x9299('0x10'),auth[_0x9299('0x9')](),controller[_0x9299('0x11')]);router[_0x9299('0x8')](_0x9299('0x12'),auth[_0x9299('0xc')](),controller[_0x9299('0x13')]);router[_0x9299('0x8')](_0x9299('0x14'),auth['isAuthenticated'](),controller[_0x9299('0x15')]);router[_0x9299('0x16')]('/',auth[_0x9299('0x9')](),controller['create']);router[_0x9299('0x16')](_0x9299('0x17'),auth[_0x9299('0x9')](),controller[_0x9299('0x18')]);var upload=multer({'storage':multer[_0x9299('0x19')]({'destination':function(_0x143f06,_0x2c6179,_0x3c41ec){_0x3c41ec(null,path['join'](config[_0x9299('0x1a')],_0x9299('0x1b')));},'filename':function(_0xa764cb,_0x32593b,_0x5a1ac7){_0x5a1ac7(null,util['format'](_0x9299('0x1c'),Date[_0x9299('0x1d')](),_0x32593b[_0x9299('0x1e')][_0x9299('0x1f')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x9299('0x16')]('/:id/attachment_upload',upload[_0x9299('0x20')](_0x9299('0x21')),controller['attachmentUpload']);router[_0x9299('0x16')](_0x9299('0x10'),auth[_0x9299('0xc')](),controller[_0x9299('0x22')]);router[_0x9299('0x16')](_0x9299('0x23'),auth[_0x9299('0x9')](),interaction[_0x9299('0x24')](_0x9299('0x25'),_0x9299('0x26')),controller[_0x9299('0x27')]);router[_0x9299('0x28')]('/:id',auth[_0x9299('0x9')](),interaction[_0x9299('0x24')](_0x9299('0x25'),_0x9299('0x29')),controller[_0x9299('0x2a')]);router[_0x9299('0x28')](_0x9299('0x2b'),controller[_0x9299('0x2c')]);router[_0x9299('0x28')]('/:id/abandon',auth['isChatInteractionAuthorized'](),controller[_0x9299('0x2d')]);router['put']('/:id/close',controller[_0x9299('0x2e')]);router[_0x9299('0x2f')](_0x9299('0xb'),auth['isAuthenticated'](),interaction['tracked']('chat',_0x9299('0x30')),controller['destroy']);router[_0x9299('0x2f')](_0x9299('0x23'),auth['isAuthenticated'](),controller['removeTags']);module[_0x9299('0x31')]=router;
\ No newline at end of file