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