Built motion from commit ddca4d0d.|2.5.47
[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 _0xc975=['isAuthenticated','index','/:id','show','getFields','getSubjects','/:id/descriptions','getDescriptions','post','create','update','delete','destroy','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','./intServicenowConfiguration.controller','get'];(function(_0x92dd1e,_0x1dbb3a){var _0x40f678=function(_0x1a0a00){while(--_0x1a0a00){_0x92dd1e['push'](_0x92dd1e['shift']());}};_0x40f678(++_0x1dbb3a);}(_0xc975,0xd3));var _0x5c97=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0xc975[_0x4a9fb1];return _0x348672;};'use strict';var multer=require(_0x5c97('0x0'));var util=require(_0x5c97('0x1'));var path=require(_0x5c97('0x2'));var timeout=require(_0x5c97('0x3'));var express=require('express');var router=express[_0x5c97('0x4')]();var fs_extra=require(_0x5c97('0x5'));var auth=require(_0x5c97('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x5c97('0x7'));router[_0x5c97('0x8')]('/',auth[_0x5c97('0x9')](),controller[_0x5c97('0xa')]);router['get'](_0x5c97('0xb'),auth['isAuthenticated'](),controller[_0x5c97('0xc')]);router['get']('/:id/fields',auth[_0x5c97('0x9')](),controller[_0x5c97('0xd')]);router[_0x5c97('0x8')]('/:id/subjects',auth['isAuthenticated'](),controller[_0x5c97('0xe')]);router['get'](_0x5c97('0xf'),auth[_0x5c97('0x9')](),controller[_0x5c97('0x10')]);router[_0x5c97('0x11')]('/',auth[_0x5c97('0x9')](),controller[_0x5c97('0x12')]);router['put']('/:id',auth[_0x5c97('0x9')](),controller[_0x5c97('0x13')]);router[_0x5c97('0x14')](_0x5c97('0xb'),auth[_0x5c97('0x9')](),controller[_0x5c97('0x15')]);module['exports']=router;