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