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