68fb97c17fde899030c1647db9f7584bb5c3cb37
[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 _0x2fd0=['index','/:id','show','/:id/fields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','update','delete','destroy','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowConfiguration.controller','get','isAuthenticated'];(function(_0x3ea05d,_0x43f0fd){var _0x403fe6=function(_0x4a89aa){while(--_0x4a89aa){_0x3ea05d['push'](_0x3ea05d['shift']());}};_0x403fe6(++_0x43f0fd);}(_0x2fd0,0x69));var _0x02fd=function(_0x3053a6,_0x4faaba){_0x3053a6=_0x3053a6-0x0;var _0x185913=_0x2fd0[_0x3053a6];return _0x185913;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x02fd('0x0'));var express=require(_0x02fd('0x1'));var router=express[_0x02fd('0x2')]();var fs_extra=require(_0x02fd('0x3'));var auth=require(_0x02fd('0x4'));var interaction=require(_0x02fd('0x5'));var config=require(_0x02fd('0x6'));var controller=require(_0x02fd('0x7'));router[_0x02fd('0x8')]('/',auth[_0x02fd('0x9')](),controller[_0x02fd('0xa')]);router[_0x02fd('0x8')](_0x02fd('0xb'),auth[_0x02fd('0x9')](),controller[_0x02fd('0xc')]);router[_0x02fd('0x8')](_0x02fd('0xd'),auth[_0x02fd('0x9')](),controller['getFields']);router[_0x02fd('0x8')](_0x02fd('0xe'),auth['isAuthenticated'](),controller[_0x02fd('0xf')]);router['get'](_0x02fd('0x10'),auth[_0x02fd('0x9')](),controller[_0x02fd('0x11')]);router[_0x02fd('0x12')]('/',auth[_0x02fd('0x9')](),controller[_0x02fd('0x13')]);router['put']('/:id',auth[_0x02fd('0x9')](),controller[_0x02fd('0x14')]);router[_0x02fd('0x15')](_0x02fd('0xb'),auth['isAuthenticated'](),controller[_0x02fd('0x16')]);module['exports']=router;