835eaeab7b8f3a48776454b010673e23103b4350
[motion2.git] / server / api / intServicenowConfiguration / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x59c3=['show','/:id/fields','isAuthenticated','getFields','/:id/subjects','getSubjects','/:id/descriptions','post','create','put','/:id','update','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get'];(function(_0x4f7927,_0x35f6fa){var _0x56b150=function(_0x2768ea){while(--_0x2768ea){_0x4f7927['push'](_0x4f7927['shift']());}};_0x56b150(++_0x35f6fa);}(_0x59c3,0xfd));var _0x359c=function(_0x40ac5e,_0x2de228){_0x40ac5e=_0x40ac5e-0x0;var _0x2839d6=_0x59c3[_0x40ac5e];return _0x2839d6;};'use strict';var multer=require(_0x359c('0x0'));var util=require(_0x359c('0x1'));var path=require(_0x359c('0x2'));var timeout=require(_0x359c('0x3'));var express=require(_0x359c('0x4'));var router=express[_0x359c('0x5')]();var fs_extra=require(_0x359c('0x6'));var auth=require(_0x359c('0x7'));var interaction=require(_0x359c('0x8'));var config=require(_0x359c('0x9'));var controller=require('./intServicenowConfiguration.controller');router[_0x359c('0xa')]('/',auth['isAuthenticated'](),controller['index']);router[_0x359c('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x359c('0xb')]);router[_0x359c('0xa')](_0x359c('0xc'),auth[_0x359c('0xd')](),controller[_0x359c('0xe')]);router['get'](_0x359c('0xf'),auth[_0x359c('0xd')](),controller[_0x359c('0x10')]);router['get'](_0x359c('0x11'),auth[_0x359c('0xd')](),controller['getDescriptions']);router[_0x359c('0x12')]('/',auth['isAuthenticated'](),controller[_0x359c('0x13')]);router[_0x359c('0x14')](_0x359c('0x15'),auth['isAuthenticated'](),controller[_0x359c('0x16')]);router['delete'](_0x359c('0x15'),auth[_0x359c('0xd')](),controller['destroy']);module[_0x359c('0x17')]=router;