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 _0x56a0=['isAuthenticated','index','/:id','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../config/environment','get'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x56a0,0x19d));var _0x056a=function(_0x51beba,_0x202d19){_0x51beba=_0x51beba-0x0;var _0x167ee0=_0x56a0[_0x51beba];return _0x167ee0;};'use strict';var multer=require(_0x056a('0x0'));var util=require(_0x056a('0x1'));var path=require(_0x056a('0x2'));var timeout=require(_0x056a('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0x056a('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x056a('0x5'));var controller=require('./intServicenowConfiguration.controller');router[_0x056a('0x6')]('/',auth[_0x056a('0x7')](),controller[_0x056a('0x8')]);router[_0x056a('0x6')](_0x056a('0x9'),auth[_0x056a('0x7')](),controller['show']);router[_0x056a('0x6')]('/:id/fields',auth[_0x056a('0x7')](),controller[_0x056a('0xa')]);router[_0x056a('0x6')](_0x056a('0xb'),auth['isAuthenticated'](),controller[_0x056a('0xc')]);router[_0x056a('0x6')](_0x056a('0xd'),auth['isAuthenticated'](),controller[_0x056a('0xe')]);router['post']('/',auth[_0x056a('0x7')](),controller[_0x056a('0xf')]);router[_0x056a('0x10')](_0x056a('0x9'),auth[_0x056a('0x7')](),controller[_0x056a('0x11')]);router[_0x056a('0x12')](_0x056a('0x9'),auth[_0x056a('0x7')](),controller[_0x056a('0x13')]);module[_0x056a('0x14')]=router;