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