1d058b8a60d6e3f2905a50ad6e2b80b70c32d939
[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 _0xb69b=['update','delete','/:id','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intServicenowConfiguration.controller','get','isAuthenticated','index','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0xb69b,0x119));var _0xbb69=function(_0x45e024,_0x4cb286){_0x45e024=_0x45e024-0x0;var _0x12e86b=_0xb69b[_0x45e024];return _0x12e86b;};'use strict';var multer=require(_0xbb69('0x0'));var util=require(_0xbb69('0x1'));var path=require(_0xbb69('0x2'));var timeout=require(_0xbb69('0x3'));var express=require(_0xbb69('0x4'));var router=express[_0xbb69('0x5')]();var auth=require(_0xbb69('0x6'));var interaction=require(_0xbb69('0x7'));var config=require('../../config/environment');var controller=require(_0xbb69('0x8'));router[_0xbb69('0x9')]('/',auth[_0xbb69('0xa')](),controller[_0xbb69('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xbb69('0xc')]);router['get'](_0xbb69('0xd'),auth[_0xbb69('0xa')](),controller[_0xbb69('0xe')]);router[_0xbb69('0x9')](_0xbb69('0xf'),auth[_0xbb69('0xa')](),controller[_0xbb69('0x10')]);router[_0xbb69('0x9')](_0xbb69('0x11'),auth[_0xbb69('0xa')](),controller['getDescriptions']);router['post']('/',auth[_0xbb69('0xa')](),controller['create']);router['put']('/:id',auth[_0xbb69('0xa')](),controller[_0xbb69('0x12')]);router[_0xbb69('0x13')](_0xbb69('0x14'),auth[_0xbb69('0xa')](),controller[_0xbb69('0x15')]);module[_0xbb69('0x16')]=router;