09d0488b083867fdd12c5f3e2f30c5abd94eb506
[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 _0x6ed5=['/:id','delete','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowConfiguration.controller','isAuthenticated','index','show','get','getFields','/:id/subjects','getSubjects','getDescriptions','post','create','put'];(function(_0x438ce0,_0x2dae38){var _0x38181d=function(_0x57404d){while(--_0x57404d){_0x438ce0['push'](_0x438ce0['shift']());}};_0x38181d(++_0x2dae38);}(_0x6ed5,0x18a));var _0x56ed=function(_0x20e0d9,_0x157105){_0x20e0d9=_0x20e0d9-0x0;var _0x2a39b3=_0x6ed5[_0x20e0d9];return _0x2a39b3;};'use strict';var multer=require(_0x56ed('0x0'));var util=require('util');var path=require(_0x56ed('0x1'));var timeout=require(_0x56ed('0x2'));var express=require(_0x56ed('0x3'));var router=express[_0x56ed('0x4')]();var auth=require(_0x56ed('0x5'));var interaction=require(_0x56ed('0x6'));var config=require(_0x56ed('0x7'));var controller=require(_0x56ed('0x8'));router['get']('/',auth[_0x56ed('0x9')](),controller[_0x56ed('0xa')]);router['get']('/:id',auth[_0x56ed('0x9')](),controller[_0x56ed('0xb')]);router[_0x56ed('0xc')]('/:id/fields',auth[_0x56ed('0x9')](),controller[_0x56ed('0xd')]);router[_0x56ed('0xc')](_0x56ed('0xe'),auth['isAuthenticated'](),controller[_0x56ed('0xf')]);router[_0x56ed('0xc')]('/:id/descriptions',auth[_0x56ed('0x9')](),controller[_0x56ed('0x10')]);router[_0x56ed('0x11')]('/',auth['isAuthenticated'](),controller[_0x56ed('0x12')]);router[_0x56ed('0x13')](_0x56ed('0x14'),auth[_0x56ed('0x9')](),controller['update']);router[_0x56ed('0x15')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x56ed('0x16')]=router;