1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x41c2=['removeTags','exports','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelInteraction.controller','get','index','/describe','describe','/:id','isAuthenticated','/:id/messages','getMessages','download','post','addMessage','/:id/tags','tracked','openchannelinteraction:addtags','addTags','put','openchannel','update','delete','openchannelinteraction:destroy','destroy'];(function(_0x25b24a,_0x1c0163){var _0x224e68=function(_0x1fc9d2){while(--_0x1fc9d2){_0x25b24a['push'](_0x25b24a['shift']());}};_0x224e68(++_0x1c0163);}(_0x41c2,0x162));var _0x241c=function(_0x3d2b55,_0x1e4516){_0x3d2b55=_0x3d2b55-0x0;var _0x3dbbf2=_0x41c2[_0x3d2b55];return _0x3dbbf2;};'use strict';var multer=require('multer');var util=require(_0x241c('0x0'));var path=require(_0x241c('0x1'));var timeout=require(_0x241c('0x2'));var express=require(_0x241c('0x3'));var router=express['Router']();var fs_extra=require(_0x241c('0x4'));var auth=require(_0x241c('0x5'));var interaction=require(_0x241c('0x6'));var config=require(_0x241c('0x7'));var controller=require(_0x241c('0x8'));router[_0x241c('0x9')]('/',auth['isAuthenticated'](),controller[_0x241c('0xa')]);router[_0x241c('0x9')](_0x241c('0xb'),auth['isAuthenticated'](),controller[_0x241c('0xc')]);router['get'](_0x241c('0xd'),auth[_0x241c('0xe')](),controller['show']);router[_0x241c('0x9')](_0x241c('0xf'),auth[_0x241c('0xe')](),controller[_0x241c('0x10')]);router[_0x241c('0x9')]('/:id/download',auth['isAuthenticated'](),controller[_0x241c('0x11')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x241c('0x12')](_0x241c('0xf'),auth[_0x241c('0xe')](),controller[_0x241c('0x13')]);router[_0x241c('0x12')](_0x241c('0x14'),auth[_0x241c('0xe')](),interaction[_0x241c('0x15')]('openchannel',_0x241c('0x16')),controller[_0x241c('0x17')]);router[_0x241c('0x18')]('/:id',auth[_0x241c('0xe')](),interaction[_0x241c('0x15')](_0x241c('0x19'),'openchannelinteraction:update'),controller[_0x241c('0x1a')]);router[_0x241c('0x1b')](_0x241c('0xd'),auth[_0x241c('0xe')](),interaction['tracked']('openchannel',_0x241c('0x1c')),controller[_0x241c('0x1d')]);router[_0x241c('0x1b')](_0x241c('0x14'),auth['isAuthenticated'](),controller[_0x241c('0x1e')]);module[_0x241c('0x1f')]=router;