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