156bf4237ad50c6f40c58dfb212b565947dac9da
[motion2.git] / server / api / intServicenowField / 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 _0x903c=['util','path','express','Router','../../components/auth/service','../../components/interaction/service','./intServicenowField.controller','get','isAuthenticated','index','post','create','put','/:id','update','delete','destroy'];(function(_0x501547,_0x44b058){var _0x332841=function(_0x1262c0){while(--_0x1262c0){_0x501547['push'](_0x501547['shift']());}};_0x332841(++_0x44b058);}(_0x903c,0xee));var _0xc903=function(_0x12b84a,_0x2232ff){_0x12b84a=_0x12b84a-0x0;var _0x16e378=_0x903c[_0x12b84a];return _0x16e378;};'use strict';var multer=require('multer');var util=require(_0xc903('0x0'));var path=require(_0xc903('0x1'));var timeout=require('connect-timeout');var express=require(_0xc903('0x2'));var router=express[_0xc903('0x3')]();var auth=require(_0xc903('0x4'));var interaction=require(_0xc903('0x5'));var config=require('../../config/environment');var controller=require(_0xc903('0x6'));router[_0xc903('0x7')]('/',auth[_0xc903('0x8')](),controller[_0xc903('0x9')]);router['get']('/:id',auth[_0xc903('0x8')](),controller['show']);router[_0xc903('0xa')]('/',auth[_0xc903('0x8')](),controller[_0xc903('0xb')]);router[_0xc903('0xc')](_0xc903('0xd'),auth[_0xc903('0x8')](),controller[_0xc903('0xe')]);router[_0xc903('0xf')](_0xc903('0xd'),auth[_0xc903('0x8')](),controller[_0xc903('0x10')]);module['exports']=router;