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 _0xcc9e=['get','isAuthenticated','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/tags','getTags','create','put','update','delete','destroy','exports','multer','path','express','Router','./intFreshdeskConfiguration.controller'];(function(_0x168436,_0x32e236){var _0x372af3=function(_0x5b8709){while(--_0x5b8709){_0x168436['push'](_0x168436['shift']());}};_0x372af3(++_0x32e236);}(_0xcc9e,0xf7));var _0xecc9=function(_0xfbe68b,_0x254200){_0xfbe68b=_0xfbe68b-0x0;var _0x216153=_0xcc9e[_0xfbe68b];return _0x216153;};'use strict';var multer=require(_0xecc9('0x0'));var util=require('util');var path=require(_0xecc9('0x1'));var timeout=require('connect-timeout');var express=require(_0xecc9('0x2'));var router=express[_0xecc9('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xecc9('0x4'));router[_0xecc9('0x5')]('/',auth[_0xecc9('0x6')](),controller['index']);router['get'](_0xecc9('0x7'),auth[_0xecc9('0x6')](),controller[_0xecc9('0x8')]);router[_0xecc9('0x5')](_0xecc9('0x9'),auth['isAuthenticated'](),controller[_0xecc9('0xa')]);router[_0xecc9('0x5')](_0xecc9('0xb'),auth[_0xecc9('0x6')](),controller[_0xecc9('0xc')]);router['get']('/:id/descriptions',auth['isAuthenticated'](),controller['getDescriptions']);router[_0xecc9('0x5')](_0xecc9('0xd'),auth[_0xecc9('0x6')](),controller[_0xecc9('0xe')]);router['post']('/',auth[_0xecc9('0x6')](),controller[_0xecc9('0xf')]);router['post'](_0xecc9('0xd'),auth[_0xecc9('0x6')](),controller['setTags']);router[_0xecc9('0x10')](_0xecc9('0x7'),auth[_0xecc9('0x6')](),controller[_0xecc9('0x11')]);router[_0xecc9('0x12')](_0xecc9('0x7'),auth[_0xecc9('0x6')](),controller[_0xecc9('0x13')]);module[_0xecc9('0x14')]=router;