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