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