a366b1d7d3d0c88054a3d51dc9a6621b4106b548
[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 _0x1b07=['path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowAccount.controller','isAuthenticated','get','/:id','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put','update','delete','destroy','exports','multer','util'];(function(_0x154584,_0x421e12){var _0x969074=function(_0x17303b){while(--_0x17303b){_0x154584['push'](_0x154584['shift']());}};_0x969074(++_0x421e12);}(_0x1b07,0x1ca));var _0x71b0=function(_0x1a014b,_0x48acae){_0x1a014b=_0x1a014b-0x0;var _0x462258=_0x1b07[_0x1a014b];return _0x462258;};'use strict';var multer=require(_0x71b0('0x0'));var util=require(_0x71b0('0x1'));var path=require(_0x71b0('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x71b0('0x3')]();var auth=require(_0x71b0('0x4'));var interaction=require(_0x71b0('0x5'));var config=require(_0x71b0('0x6'));var controller=require(_0x71b0('0x7'));router['get']('/',auth[_0x71b0('0x8')](),controller['index']);router[_0x71b0('0x9')](_0x71b0('0xa'),auth[_0x71b0('0x8')](),controller['show']);router[_0x71b0('0x9')](_0x71b0('0xb'),auth[_0x71b0('0x8')](),controller[_0x71b0('0xc')]);router[_0x71b0('0x9')](_0x71b0('0xd'),auth[_0x71b0('0x8')](),controller[_0x71b0('0xe')]);router[_0x71b0('0xf')]('/',auth[_0x71b0('0x8')](),controller[_0x71b0('0x10')]);router[_0x71b0('0xf')](_0x71b0('0xb'),auth[_0x71b0('0x8')](),controller[_0x71b0('0x11')]);router[_0x71b0('0x12')](_0x71b0('0xa'),auth[_0x71b0('0x8')](),controller[_0x71b0('0x13')]);router[_0x71b0('0x14')](_0x71b0('0xa'),auth['isAuthenticated'](),controller[_0x71b0('0x15')]);module[_0x71b0('0x16')]=router;