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