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