9578bb69feb34c54bbe3f52143171107f5a0fb9f
[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 _0x6253=['isAuthenticated','index','show','/:id/fields','getFields','getSubjects','/:id/descriptions','post','create','put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get'];(function(_0x3e0aa6,_0x1a542b){var _0x2443cb=function(_0x3578ec){while(--_0x3578ec){_0x3e0aa6['push'](_0x3e0aa6['shift']());}};_0x2443cb(++_0x1a542b);}(_0x6253,0x19a));var _0x3625=function(_0xcb0730,_0x2338c5){_0xcb0730=_0xcb0730-0x0;var _0x2e61df=_0x6253[_0xcb0730];return _0x2e61df;};'use strict';var multer=require(_0x3625('0x0'));var util=require('util');var path=require(_0x3625('0x1'));var timeout=require(_0x3625('0x2'));var express=require(_0x3625('0x3'));var router=express[_0x3625('0x4')]();var auth=require(_0x3625('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x3625('0x6'));var controller=require('./intServicenowConfiguration.controller');router[_0x3625('0x7')]('/',auth[_0x3625('0x8')](),controller[_0x3625('0x9')]);router[_0x3625('0x7')]('/:id',auth[_0x3625('0x8')](),controller[_0x3625('0xa')]);router['get'](_0x3625('0xb'),auth[_0x3625('0x8')](),controller[_0x3625('0xc')]);router[_0x3625('0x7')]('/:id/subjects',auth['isAuthenticated'](),controller[_0x3625('0xd')]);router[_0x3625('0x7')](_0x3625('0xe'),auth[_0x3625('0x8')](),controller['getDescriptions']);router[_0x3625('0xf')]('/',auth[_0x3625('0x8')](),controller[_0x3625('0x10')]);router[_0x3625('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x3625('0x12')]);router[_0x3625('0x13')]('/:id',auth['isAuthenticated'](),controller[_0x3625('0x14')]);module[_0x3625('0x15')]=router;