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