5208a06bc463cba1c66344884d8af8563cf7b2b7
[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 _0xe0b9=['show','getFields','getSubjects','/:id/descriptions','post','create','put','delete','destroy','exports','multer','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./intServicenowConfiguration.controller','isAuthenticated','get','/:id'];(function(_0x273c52,_0x244499){var _0x2c29b1=function(_0x54c3bd){while(--_0x54c3bd){_0x273c52['push'](_0x273c52['shift']());}};_0x2c29b1(++_0x244499);}(_0xe0b9,0x1c2));var _0x9e0b=function(_0x53ad58,_0x3fb489){_0x53ad58=_0x53ad58-0x0;var _0x554b03=_0xe0b9[_0x53ad58];return _0x554b03;};'use strict';var multer=require(_0x9e0b('0x0'));var util=require('util');var path=require(_0x9e0b('0x1'));var timeout=require(_0x9e0b('0x2'));var express=require('express');var router=express[_0x9e0b('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x9e0b('0x4'));var config=require(_0x9e0b('0x5'));var controller=require(_0x9e0b('0x6'));router['get']('/',auth[_0x9e0b('0x7')](),controller['index']);router[_0x9e0b('0x8')](_0x9e0b('0x9'),auth[_0x9e0b('0x7')](),controller[_0x9e0b('0xa')]);router[_0x9e0b('0x8')]('/:id/fields',auth[_0x9e0b('0x7')](),controller[_0x9e0b('0xb')]);router[_0x9e0b('0x8')]('/:id/subjects',auth[_0x9e0b('0x7')](),controller[_0x9e0b('0xc')]);router['get'](_0x9e0b('0xd'),auth['isAuthenticated'](),controller['getDescriptions']);router[_0x9e0b('0xe')]('/',auth['isAuthenticated'](),controller[_0x9e0b('0xf')]);router[_0x9e0b('0x10')](_0x9e0b('0x9'),auth[_0x9e0b('0x7')](),controller['update']);router[_0x9e0b('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x9e0b('0x12')]);module[_0x9e0b('0x13')]=router;