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 _0xb27c=['/:id/fields','post','create','put','/:id','update','delete','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0xb27c,0x7b));var _0xcb27=function(_0x519756,_0x288785){_0x519756=_0x519756-0x0;var _0x37047e=_0xb27c[_0x519756];return _0x37047e;};'use strict';var multer=require(_0xcb27('0x0'));var util=require(_0xcb27('0x1'));var path=require('path');var timeout=require(_0xcb27('0x2'));var express=require(_0xcb27('0x3'));var router=express[_0xcb27('0x4')]();var auth=require(_0xcb27('0x5'));var interaction=require(_0xcb27('0x6'));var config=require('../../config/environment');var controller=require(_0xcb27('0x7'));router[_0xcb27('0x8')]('/',auth[_0xcb27('0x9')](),controller[_0xcb27('0xa')]);router['get']('/:id',auth[_0xcb27('0x9')](),controller['show']);router[_0xcb27('0x8')](_0xcb27('0xb'),auth['isAuthenticated'](),controller[_0xcb27('0xc')]);router[_0xcb27('0x8')](_0xcb27('0xd'),auth['isAuthenticated'](),controller[_0xcb27('0xe')]);router['get'](_0xcb27('0xf'),auth[_0xcb27('0x9')](),controller['getFields']);router[_0xcb27('0x10')]('/',auth[_0xcb27('0x9')](),controller[_0xcb27('0x11')]);router[_0xcb27('0x12')](_0xcb27('0x13'),auth[_0xcb27('0x9')](),controller[_0xcb27('0x14')]);router[_0xcb27('0x15')]('/:id',auth[_0xcb27('0x9')](),controller['destroy']);module[_0xcb27('0x16')]=router;