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