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