Built motion from commit 10af8726.|2.6.34
[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 _0xac05=['destroy','exports','multer','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/fields','getSubjects','getDescriptions','post','create','put','update','delete'];(function(_0x585e06,_0xdd556){var _0x5a8776=function(_0xf2d52b){while(--_0xf2d52b){_0x585e06['push'](_0x585e06['shift']());}};_0x5a8776(++_0xdd556);}(_0xac05,0xa3));var _0x5ac0=function(_0x59b49a,_0x3ebc96){_0x59b49a=_0x59b49a-0x0;var _0x3351a2=_0xac05[_0x59b49a];return _0x3351a2;};'use strict';var multer=require(_0x5ac0('0x0'));var util=require(_0x5ac0('0x1'));var path=require(_0x5ac0('0x2'));var timeout=require('connect-timeout');var express=require(_0x5ac0('0x3'));var router=express[_0x5ac0('0x4')]();var fs_extra=require(_0x5ac0('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x5ac0('0x6'));var config=require(_0x5ac0('0x7'));var controller=require('./intServicenowConfiguration.controller');router[_0x5ac0('0x8')]('/',auth[_0x5ac0('0x9')](),controller[_0x5ac0('0xa')]);router[_0x5ac0('0x8')](_0x5ac0('0xb'),auth[_0x5ac0('0x9')](),controller[_0x5ac0('0xc')]);router[_0x5ac0('0x8')](_0x5ac0('0xd'),auth[_0x5ac0('0x9')](),controller['getFields']);router[_0x5ac0('0x8')]('/:id/subjects',auth[_0x5ac0('0x9')](),controller[_0x5ac0('0xe')]);router[_0x5ac0('0x8')]('/:id/descriptions',auth[_0x5ac0('0x9')](),controller[_0x5ac0('0xf')]);router[_0x5ac0('0x10')]('/',auth[_0x5ac0('0x9')](),controller[_0x5ac0('0x11')]);router[_0x5ac0('0x12')](_0x5ac0('0xb'),auth[_0x5ac0('0x9')](),controller[_0x5ac0('0x13')]);router[_0x5ac0('0x14')](_0x5ac0('0xb'),auth['isAuthenticated'](),controller[_0x5ac0('0x15')]);module[_0x5ac0('0x16')]=router;