96f1485f933647b38a2bded59afeea57a3de1f5c
[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 _0x5059=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowField.controller','isAuthenticated','index','get','/:id','create','put','update','delete','destroy','multer','util','path','connect-timeout','express'];(function(_0x593df2,_0x2a84ef){var _0x10c2b3=function(_0x47b5cc){while(--_0x47b5cc){_0x593df2['push'](_0x593df2['shift']());}};_0x10c2b3(++_0x2a84ef);}(_0x5059,0x163));var _0x9505=function(_0x33bcdb,_0x11846b){_0x33bcdb=_0x33bcdb-0x0;var _0x18a9bf=_0x5059[_0x33bcdb];return _0x18a9bf;};'use strict';var multer=require(_0x9505('0x0'));var util=require(_0x9505('0x1'));var path=require(_0x9505('0x2'));var timeout=require(_0x9505('0x3'));var express=require(_0x9505('0x4'));var router=express[_0x9505('0x5')]();var fs_extra=require(_0x9505('0x6'));var auth=require(_0x9505('0x7'));var interaction=require(_0x9505('0x8'));var config=require(_0x9505('0x9'));var controller=require(_0x9505('0xa'));router['get']('/',auth[_0x9505('0xb')](),controller[_0x9505('0xc')]);router[_0x9505('0xd')](_0x9505('0xe'),auth[_0x9505('0xb')](),controller['show']);router['post']('/',auth[_0x9505('0xb')](),controller[_0x9505('0xf')]);router[_0x9505('0x10')](_0x9505('0xe'),auth['isAuthenticated'](),controller[_0x9505('0x11')]);router[_0x9505('0x12')]('/:id',auth[_0x9505('0xb')](),controller[_0x9505('0x13')]);module['exports']=router;