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