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