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