22561c91af1086b648674e2606dd06bfea3fd03f
[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 _0xb73f=['../../components/auth/service','../../config/environment','./intServicenowConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects','getDescriptions','create','put','update','destroy','multer','path','express','Router','fs-extra'];(function(_0x38dcad,_0x16a9af){var _0x140e55=function(_0xe580a7){while(--_0xe580a7){_0x38dcad['push'](_0x38dcad['shift']());}};_0x140e55(++_0x16a9af);}(_0xb73f,0x1c9));var _0xfb73=function(_0x1f2c15,_0x202189){_0x1f2c15=_0x1f2c15-0x0;var _0x16a8bf=_0xb73f[_0x1f2c15];return _0x16a8bf;};'use strict';var multer=require(_0xfb73('0x0'));var util=require('util');var path=require(_0xfb73('0x1'));var timeout=require('connect-timeout');var express=require(_0xfb73('0x2'));var router=express[_0xfb73('0x3')]();var fs_extra=require(_0xfb73('0x4'));var auth=require(_0xfb73('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xfb73('0x6'));var controller=require(_0xfb73('0x7'));router[_0xfb73('0x8')]('/',auth[_0xfb73('0x9')](),controller[_0xfb73('0xa')]);router[_0xfb73('0x8')](_0xfb73('0xb'),auth[_0xfb73('0x9')](),controller[_0xfb73('0xc')]);router['get'](_0xfb73('0xd'),auth['isAuthenticated'](),controller[_0xfb73('0xe')]);router[_0xfb73('0x8')](_0xfb73('0xf'),auth[_0xfb73('0x9')](),controller[_0xfb73('0x10')]);router[_0xfb73('0x8')]('/:id/descriptions',auth[_0xfb73('0x9')](),controller[_0xfb73('0x11')]);router['post']('/',auth[_0xfb73('0x9')](),controller[_0xfb73('0x12')]);router[_0xfb73('0x13')](_0xfb73('0xb'),auth[_0xfb73('0x9')](),controller[_0xfb73('0x14')]);router['delete']('/:id',auth[_0xfb73('0x9')](),controller[_0xfb73('0x15')]);module['exports']=router;