Built motion from commit a679711e.|2.6.15
[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 _0x7357=['post','update','delete','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','show'];(function(_0x3d617f,_0x16599a){var _0x9aa921=function(_0x5cca7e){while(--_0x5cca7e){_0x3d617f['push'](_0x3d617f['shift']());}};_0x9aa921(++_0x16599a);}(_0x7357,0x1a7));var _0x7735=function(_0x2dc143,_0x49b678){_0x2dc143=_0x2dc143-0x0;var _0xcdcfe3=_0x7357[_0x2dc143];return _0xcdcfe3;};'use strict';var multer=require(_0x7735('0x0'));var util=require(_0x7735('0x1'));var path=require('path');var timeout=require(_0x7735('0x2'));var express=require(_0x7735('0x3'));var router=express[_0x7735('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x7735('0x5'));var interaction=require(_0x7735('0x6'));var config=require(_0x7735('0x7'));var controller=require('./intServicenowField.controller');router[_0x7735('0x8')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x7735('0x9'),auth[_0x7735('0xa')](),controller[_0x7735('0xb')]);router[_0x7735('0xc')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x7735('0x9'),auth[_0x7735('0xa')](),controller[_0x7735('0xd')]);router[_0x7735('0xe')](_0x7735('0x9'),auth[_0x7735('0xa')](),controller['destroy']);module['exports']=router;