18 var _0xfef3=['download','diskStorage','join','root','server/files/attachments/','format','%s-%s','now','originalname','replace','post','single','file','addMessage','/:id/tags','tracked','chat','chatinteraction:addtags','addTags','put','/:id/custom_update','customUpdate','/:id/abandon','abandon','/:id/close','close','delete','chatinteraction:destroy','removeTags','exports','multer','path','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','describe','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','getMyMessages','/:id/download'];(function(_0x317137,_0x471501){var _0x25858c=function(_0x5cf6cb){while(--_0x5cf6cb){_0x317137['push'](_0x317137['shift']());}};_0x25858c(++_0x471501);}(_0xfef3,0x118));var _0x3fef=function(_0x836fec,_0x291263){_0x836fec=_0x836fec-0x0;var _0x4c406c=_0xfef3[_0x836fec];return _0x4c406c;};'use strict';var multer=require(_0x3fef('0x0'));var util=require('util');var path=require(_0x3fef('0x1'));var timeout=require('connect-timeout');var express=require(_0x3fef('0x2'));var router=express[_0x3fef('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x3fef('0x4'));var config=require(_0x3fef('0x5'));var controller=require('./chatInteraction.controller');router[_0x3fef('0x6')]('/',auth[_0x3fef('0x7')](),controller['index']);router[_0x3fef('0x6')](_0x3fef('0x8'),auth[_0x3fef('0x7')](),controller[_0x3fef('0x9')]);router[_0x3fef('0x6')](_0x3fef('0xa'),auth[_0x3fef('0xb')](),controller[_0x3fef('0xc')]);router[_0x3fef('0x6')](_0x3fef('0xd'),auth[_0x3fef('0xb')](),controller[_0x3fef('0xe')]);router[_0x3fef('0x6')](_0x3fef('0xf'),auth['isAuthenticated'](),controller[_0x3fef('0x10')]);router[_0x3fef('0x6')](_0x3fef('0x11'),auth['isChatInteractionAuthorized'](),controller[_0x3fef('0x12')]);router['get'](_0x3fef('0x13'),auth[_0x3fef('0x7')](),controller[_0x3fef('0x14')]);router['post']('/',auth[_0x3fef('0x7')](),controller['create']);var upload=multer({'storage':multer[_0x3fef('0x15')]({'destination':function(_0x14c053,_0x56a65d,_0x2dec1b){_0x2dec1b(null,path[_0x3fef('0x16')](config[_0x3fef('0x17')],_0x3fef('0x18')));},'filename':function(_0x395df0,_0x2af1ba,_0x5c899f){_0x5c899f(null,util[_0x3fef('0x19')](_0x3fef('0x1a'),Date[_0x3fef('0x1b')](),_0x2af1ba[_0x3fef('0x1c')][_0x3fef('0x1d')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x3fef('0x1e')]('/:id/attachment_upload',upload[_0x3fef('0x1f')](_0x3fef('0x20')),controller['attachmentUpload']);router[_0x3fef('0x1e')](_0x3fef('0xf'),auth[_0x3fef('0xb')](),controller[_0x3fef('0x21')]);router[_0x3fef('0x1e')](_0x3fef('0x22'),auth[_0x3fef('0x7')](),interaction[_0x3fef('0x23')](_0x3fef('0x24'),_0x3fef('0x25')),controller[_0x3fef('0x26')]);router[_0x3fef('0x27')](_0x3fef('0xa'),auth[_0x3fef('0x7')](),interaction[_0x3fef('0x23')]('chat','chatinteraction:update'),controller['update']);router[_0x3fef('0x27')](_0x3fef('0x28'),controller[_0x3fef('0x29')]);router['put'](_0x3fef('0x2a'),auth['isChatInteractionAuthorized'](),controller[_0x3fef('0x2b')]);router[_0x3fef('0x27')](_0x3fef('0x2c'),controller[_0x3fef('0x2d')]);router[_0x3fef('0x2e')]('/:id',auth['isAuthenticated'](),interaction['tracked'](_0x3fef('0x24'),_0x3fef('0x2f')),controller['destroy']);router[_0x3fef('0x2e')](_0x3fef('0x22'),auth['isAuthenticated'](),controller[_0x3fef('0x30')]);module[_0x3fef('0x31')]=router;