29553bd02fe7bf6ba319bb4e7adb502131dff944
[motion2.git] / server / api / intServicenowAccount / 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 _0x85c8=['connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./intServicenowAccount.controller','isAuthenticated','get','/:id','show','/:id/configurations','/:id/fields','getFields','post','create','put','update','delete','multer','util','path'];(function(_0xe1c77d,_0x35f451){var _0x4196c9=function(_0x5c12f7){while(--_0x5c12f7){_0xe1c77d['push'](_0xe1c77d['shift']());}};_0x4196c9(++_0x35f451);}(_0x85c8,0x1e0));var _0x885c=function(_0x538449,_0x4f50a0){_0x538449=_0x538449-0x0;var _0x19d63a=_0x85c8[_0x538449];return _0x19d63a;};'use strict';var multer=require(_0x885c('0x0'));var util=require(_0x885c('0x1'));var path=require(_0x885c('0x2'));var timeout=require(_0x885c('0x3'));var express=require(_0x885c('0x4'));var router=express['Router']();var fs_extra=require(_0x885c('0x5'));var auth=require(_0x885c('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x885c('0x7'));var controller=require(_0x885c('0x8'));router['get']('/',auth[_0x885c('0x9')](),controller['index']);router[_0x885c('0xa')](_0x885c('0xb'),auth[_0x885c('0x9')](),controller[_0x885c('0xc')]);router[_0x885c('0xa')](_0x885c('0xd'),auth[_0x885c('0x9')](),controller['getConfigurations']);router[_0x885c('0xa')](_0x885c('0xe'),auth['isAuthenticated'](),controller[_0x885c('0xf')]);router[_0x885c('0x10')]('/',auth[_0x885c('0x9')](),controller[_0x885c('0x11')]);router['post'](_0x885c('0xd'),auth[_0x885c('0x9')](),controller['addConfiguration']);router[_0x885c('0x12')](_0x885c('0xb'),auth[_0x885c('0x9')](),controller[_0x885c('0x13')]);router[_0x885c('0x14')]('/:id',auth[_0x885c('0x9')](),controller['destroy']);module['exports']=router;