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 _0x0a0a=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskConfiguration.controller','get','isAuthenticated','index','getFields','getSubjects','/:id/descriptions','/:id/tags','getTags','create','post','setTags','put','/:id','delete','destroy','exports','multer','util','path'];(function(_0x30d934,_0x10338b){var _0x10bb34=function(_0x2bf7a9){while(--_0x2bf7a9){_0x30d934['push'](_0x30d934['shift']());}};_0x10bb34(++_0x10338b);}(_0x0a0a,0x135));var _0xa0a0=function(_0x54e225,_0x1a9c83){_0x54e225=_0x54e225-0x0;var _0x4a0449=_0x0a0a[_0x54e225];return _0x4a0449;};'use strict';var multer=require(_0xa0a0('0x0'));var util=require(_0xa0a0('0x1'));var path=require(_0xa0a0('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xa0a0('0x3')]();var auth=require(_0xa0a0('0x4'));var interaction=require(_0xa0a0('0x5'));var config=require(_0xa0a0('0x6'));var controller=require(_0xa0a0('0x7'));router[_0xa0a0('0x8')]('/',auth[_0xa0a0('0x9')](),controller[_0xa0a0('0xa')]);router['get']('/:id',auth[_0xa0a0('0x9')](),controller['show']);router[_0xa0a0('0x8')]('/:id/fields',auth[_0xa0a0('0x9')](),controller[_0xa0a0('0xb')]);router['get']('/:id/subjects',auth[_0xa0a0('0x9')](),controller[_0xa0a0('0xc')]);router[_0xa0a0('0x8')](_0xa0a0('0xd'),auth[_0xa0a0('0x9')](),controller['getDescriptions']);router[_0xa0a0('0x8')](_0xa0a0('0xe'),auth[_0xa0a0('0x9')](),controller[_0xa0a0('0xf')]);router['post']('/',auth[_0xa0a0('0x9')](),controller[_0xa0a0('0x10')]);router[_0xa0a0('0x11')](_0xa0a0('0xe'),auth[_0xa0a0('0x9')](),controller[_0xa0a0('0x12')]);router[_0xa0a0('0x13')](_0xa0a0('0x14'),auth['isAuthenticated'](),controller['update']);router[_0xa0a0('0x15')](_0xa0a0('0x14'),auth['isAuthenticated'](),controller[_0xa0a0('0x16')]);module[_0xa0a0('0x17')]=router;