6136b1cb4de7c55ff8a7001fe87eecc75d8a47e6
[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 _0x0269=['get','isAuthenticated','index','/:id','show','/:id/fields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','put','delete','destroy','exports','multer','path','Router','../../components/auth/service','../../config/environment'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x0269,0x19f));var _0x9026=function(_0x4a8226,_0x3fcbdb){_0x4a8226=_0x4a8226-0x0;var _0x120fa0=_0x0269[_0x4a8226];return _0x120fa0;};'use strict';var multer=require(_0x9026('0x0'));var util=require('util');var path=require(_0x9026('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x9026('0x2')]();var auth=require(_0x9026('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x9026('0x4'));var controller=require('./intServicenowConfiguration.controller');router[_0x9026('0x5')]('/',auth[_0x9026('0x6')](),controller[_0x9026('0x7')]);router[_0x9026('0x5')](_0x9026('0x8'),auth['isAuthenticated'](),controller[_0x9026('0x9')]);router[_0x9026('0x5')](_0x9026('0xa'),auth['isAuthenticated'](),controller['getFields']);router[_0x9026('0x5')](_0x9026('0xb'),auth[_0x9026('0x6')](),controller[_0x9026('0xc')]);router[_0x9026('0x5')](_0x9026('0xd'),auth[_0x9026('0x6')](),controller[_0x9026('0xe')]);router[_0x9026('0xf')]('/',auth[_0x9026('0x6')](),controller[_0x9026('0x10')]);router[_0x9026('0x11')](_0x9026('0x8'),auth[_0x9026('0x6')](),controller['update']);router[_0x9026('0x12')](_0x9026('0x8'),auth['isAuthenticated'](),controller[_0x9026('0x13')]);module[_0x9026('0x14')]=router;