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