Built motion from commit (unavailable).|2.4.20
[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 _0x85f7=['/:id/descriptions','getDescriptions','post','create','put','/:id','update','destroy','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','./intServicenowConfiguration.controller','index','isAuthenticated','get','/:id/fields','getSubjects'];(function(_0x13c0bf,_0x4dee02){var _0x3ea5da=function(_0x56b1cd){while(--_0x56b1cd){_0x13c0bf['push'](_0x13c0bf['shift']());}};_0x3ea5da(++_0x4dee02);}(_0x85f7,0x1e8));var _0x785f=function(_0x25360e,_0x22a691){_0x25360e=_0x25360e-0x0;var _0x46ea38=_0x85f7[_0x25360e];return _0x46ea38;};'use strict';var multer=require(_0x785f('0x0'));var util=require(_0x785f('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x785f('0x2'));var router=express[_0x785f('0x3')]();var auth=require(_0x785f('0x4'));var interaction=require(_0x785f('0x5'));var config=require('../../config/environment');var controller=require(_0x785f('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x785f('0x7')]);router['get']('/:id',auth[_0x785f('0x8')](),controller['show']);router[_0x785f('0x9')](_0x785f('0xa'),auth['isAuthenticated'](),controller['getFields']);router[_0x785f('0x9')]('/:id/subjects',auth['isAuthenticated'](),controller[_0x785f('0xb')]);router['get'](_0x785f('0xc'),auth[_0x785f('0x8')](),controller[_0x785f('0xd')]);router[_0x785f('0xe')]('/',auth[_0x785f('0x8')](),controller[_0x785f('0xf')]);router[_0x785f('0x10')](_0x785f('0x11'),auth[_0x785f('0x8')](),controller[_0x785f('0x12')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x785f('0x13')]);module['exports']=router;