2df10c6ad16642b4149c74036a646cbe5a628516
[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 _0xd76c=['/:id','/:id/fields','getFields','getSubjects','/:id/descriptions','post','create','put','update','delete','destroy','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','get','isAuthenticated','index'];(function(_0x126860,_0x35b557){var _0x19555b=function(_0x5a0d1a){while(--_0x5a0d1a){_0x126860['push'](_0x126860['shift']());}};_0x19555b(++_0x35b557);}(_0xd76c,0x107));var _0xcd76=function(_0x3a7634,_0x2db384){_0x3a7634=_0x3a7634-0x0;var _0x23bbe9=_0xd76c[_0x3a7634];return _0x23bbe9;};'use strict';var multer=require(_0xcd76('0x0'));var util=require(_0xcd76('0x1'));var path=require(_0xcd76('0x2'));var timeout=require(_0xcd76('0x3'));var express=require('express');var router=express[_0xcd76('0x4')]();var fs_extra=require(_0xcd76('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xcd76('0x6'));var config=require('../../config/environment');var controller=require('./intServicenowConfiguration.controller');router[_0xcd76('0x7')]('/',auth[_0xcd76('0x8')](),controller[_0xcd76('0x9')]);router[_0xcd76('0x7')](_0xcd76('0xa'),auth['isAuthenticated'](),controller['show']);router[_0xcd76('0x7')](_0xcd76('0xb'),auth['isAuthenticated'](),controller[_0xcd76('0xc')]);router[_0xcd76('0x7')]('/:id/subjects',auth[_0xcd76('0x8')](),controller[_0xcd76('0xd')]);router[_0xcd76('0x7')](_0xcd76('0xe'),auth[_0xcd76('0x8')](),controller['getDescriptions']);router[_0xcd76('0xf')]('/',auth[_0xcd76('0x8')](),controller[_0xcd76('0x10')]);router[_0xcd76('0x11')](_0xcd76('0xa'),auth['isAuthenticated'](),controller[_0xcd76('0x12')]);router[_0xcd76('0x13')](_0xcd76('0xa'),auth[_0xcd76('0x8')](),controller[_0xcd76('0x14')]);module['exports']=router;