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