fca4bf0b5a9b37bec5ee93808fd146e7211c1757
[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 _0xdd3d=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowConfiguration.controller','isAuthenticated','index','get','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects','getDescriptions','post','create','put','delete','destroy','exports','path','connect-timeout','express'];(function(_0x573f6d,_0xa3cd19){var _0x1c672b=function(_0x4ccaca){while(--_0x4ccaca){_0x573f6d['push'](_0x573f6d['shift']());}};_0x1c672b(++_0xa3cd19);}(_0xdd3d,0x75));var _0xddd3=function(_0x5c6f58,_0x3f6e3f){_0x5c6f58=_0x5c6f58-0x0;var _0x2103d0=_0xdd3d[_0x5c6f58];return _0x2103d0;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xddd3('0x0'));var timeout=require(_0xddd3('0x1'));var express=require(_0xddd3('0x2'));var router=express['Router']();var fs_extra=require(_0xddd3('0x3'));var auth=require(_0xddd3('0x4'));var interaction=require(_0xddd3('0x5'));var config=require(_0xddd3('0x6'));var controller=require(_0xddd3('0x7'));router['get']('/',auth[_0xddd3('0x8')](),controller[_0xddd3('0x9')]);router[_0xddd3('0xa')](_0xddd3('0xb'),auth[_0xddd3('0x8')](),controller[_0xddd3('0xc')]);router[_0xddd3('0xa')](_0xddd3('0xd'),auth[_0xddd3('0x8')](),controller[_0xddd3('0xe')]);router['get'](_0xddd3('0xf'),auth[_0xddd3('0x8')](),controller[_0xddd3('0x10')]);router['get']('/:id/descriptions',auth[_0xddd3('0x8')](),controller[_0xddd3('0x11')]);router[_0xddd3('0x12')]('/',auth['isAuthenticated'](),controller[_0xddd3('0x13')]);router[_0xddd3('0x14')](_0xddd3('0xb'),auth[_0xddd3('0x8')](),controller['update']);router[_0xddd3('0x15')](_0xddd3('0xb'),auth[_0xddd3('0x8')](),controller[_0xddd3('0x16')]);module[_0xddd3('0x17')]=router;