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