971744e11e31babe95a7208c4bd5154a59b818dc
[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 _0xe282=['isAuthenticated','index','get','getFields','getSubjects','post','create','/:id','destroy','multer','util','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./intServicenowConfiguration.controller'];(function(_0xd90f55,_0x48ac96){var _0x2bfc02=function(_0x2e752d){while(--_0x2e752d){_0xd90f55['push'](_0xd90f55['shift']());}};_0x2bfc02(++_0x48ac96);}(_0xe282,0x119));var _0x2e28=function(_0x5240ca,_0x4e0ac9){_0x5240ca=_0x5240ca-0x0;var _0x21b154=_0xe282[_0x5240ca];return _0x21b154;};'use strict';var multer=require(_0x2e28('0x0'));var util=require(_0x2e28('0x1'));var path=require('path');var timeout=require(_0x2e28('0x2'));var express=require(_0x2e28('0x3'));var router=express[_0x2e28('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x2e28('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x2e28('0x6'));var controller=require(_0x2e28('0x7'));router['get']('/',auth[_0x2e28('0x8')](),controller[_0x2e28('0x9')]);router['get']('/:id',auth[_0x2e28('0x8')](),controller['show']);router[_0x2e28('0xa')]('/:id/fields',auth[_0x2e28('0x8')](),controller[_0x2e28('0xb')]);router['get']('/:id/subjects',auth['isAuthenticated'](),controller[_0x2e28('0xc')]);router[_0x2e28('0xa')]('/:id/descriptions',auth[_0x2e28('0x8')](),controller['getDescriptions']);router[_0x2e28('0xd')]('/',auth[_0x2e28('0x8')](),controller[_0x2e28('0xe')]);router['put'](_0x2e28('0xf'),auth[_0x2e28('0x8')](),controller['update']);router['delete']('/:id',auth[_0x2e28('0x8')](),controller[_0x2e28('0x10')]);module['exports']=router;