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