Built motion from commit d1eab355.|2.6.28
[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 _0x0c0d=['/:id/fields','getFields','/:id/subjects','getSubjects','getDescriptions','post','update','delete','multer','util','path','express','fs-extra','../../components/interaction/service','./intServicenowConfiguration.controller','get','isAuthenticated','index','/:id'];(function(_0x8c5af9,_0x10faa2){var _0x1390e4=function(_0x1e5184){while(--_0x1e5184){_0x8c5af9['push'](_0x8c5af9['shift']());}};_0x1390e4(++_0x10faa2);}(_0x0c0d,0x8d));var _0xd0c0=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x0c0d[_0x501510];return _0x1e6ee5;};'use strict';var multer=require(_0xd0c0('0x0'));var util=require(_0xd0c0('0x1'));var path=require(_0xd0c0('0x2'));var timeout=require('connect-timeout');var express=require(_0xd0c0('0x3'));var router=express['Router']();var fs_extra=require(_0xd0c0('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xd0c0('0x5'));var config=require('../../config/environment');var controller=require(_0xd0c0('0x6'));router[_0xd0c0('0x7')]('/',auth[_0xd0c0('0x8')](),controller[_0xd0c0('0x9')]);router[_0xd0c0('0x7')](_0xd0c0('0xa'),auth[_0xd0c0('0x8')](),controller['show']);router[_0xd0c0('0x7')](_0xd0c0('0xb'),auth[_0xd0c0('0x8')](),controller[_0xd0c0('0xc')]);router[_0xd0c0('0x7')](_0xd0c0('0xd'),auth[_0xd0c0('0x8')](),controller[_0xd0c0('0xe')]);router[_0xd0c0('0x7')]('/:id/descriptions',auth[_0xd0c0('0x8')](),controller[_0xd0c0('0xf')]);router[_0xd0c0('0x10')]('/',auth[_0xd0c0('0x8')](),controller['create']);router['put']('/:id',auth[_0xd0c0('0x8')](),controller[_0xd0c0('0x11')]);router[_0xd0c0('0x12')](_0xd0c0('0xa'),auth[_0xd0c0('0x8')](),controller['destroy']);module['exports']=router;