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 _0xb76a=['isAuthenticated','getDescriptions','post','create','put','update','/:id','destroy','exports','multer','util','path','express','Router','../../components/auth/service','get','getFields','/:id/subjects'];(function(_0x3de12d,_0x59308b){var _0x19e15f=function(_0x1f1d2e){while(--_0x1f1d2e){_0x3de12d['push'](_0x3de12d['shift']());}};_0x19e15f(++_0x59308b);}(_0xb76a,0x15f));var _0xab76=function(_0x502de5,_0x2ea21c){_0x502de5=_0x502de5-0x0;var _0x586926=_0xb76a[_0x502de5];return _0x586926;};'use strict';var multer=require(_0xab76('0x0'));var util=require(_0xab76('0x1'));var path=require(_0xab76('0x2'));var timeout=require('connect-timeout');var express=require(_0xab76('0x3'));var router=express[_0xab76('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xab76('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intVtigerConfiguration.controller');router[_0xab76('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0xab76('0x6')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xab76('0x6')]('/:id/fields',auth['isAuthenticated'](),controller[_0xab76('0x7')]);router[_0xab76('0x6')](_0xab76('0x8'),auth[_0xab76('0x9')](),controller['getSubjects']);router[_0xab76('0x6')]('/:id/descriptions',auth[_0xab76('0x9')](),controller[_0xab76('0xa')]);router[_0xab76('0xb')]('/',auth[_0xab76('0x9')](),controller[_0xab76('0xc')]);router[_0xab76('0xd')]('/:id',auth[_0xab76('0x9')](),controller[_0xab76('0xe')]);router['delete'](_0xab76('0xf'),auth[_0xab76('0x9')](),controller[_0xab76('0x10')]);module[_0xab76('0x11')]=router;