3c2ca0e585107baa39ba1b87d5e8e65143813edc
[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 _0x5c41=['../../components/interaction/service','../../config/environment','./intServicenowField.controller','isAuthenticated','index','get','show','create','put','delete','destroy','exports','express','Router'];(function(_0x109d51,_0x1033d5){var _0xde043e=function(_0x3d8fab){while(--_0x3d8fab){_0x109d51['push'](_0x109d51['shift']());}};_0xde043e(++_0x1033d5);}(_0x5c41,0xb4));var _0x15c4=function(_0x19c355,_0x485410){_0x19c355=_0x19c355-0x0;var _0x42b258=_0x5c41[_0x19c355];return _0x42b258;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x15c4('0x0'));var router=express[_0x15c4('0x1')]();var auth=require('../../components/auth/service');var interaction=require(_0x15c4('0x2'));var config=require(_0x15c4('0x3'));var controller=require(_0x15c4('0x4'));router['get']('/',auth[_0x15c4('0x5')](),controller[_0x15c4('0x6')]);router[_0x15c4('0x7')]('/:id',auth[_0x15c4('0x5')](),controller[_0x15c4('0x8')]);router['post']('/',auth[_0x15c4('0x5')](),controller[_0x15c4('0x9')]);router[_0x15c4('0xa')]('/:id',auth[_0x15c4('0x5')](),controller['update']);router[_0x15c4('0xb')]('/:id',auth[_0x15c4('0x5')](),controller[_0x15c4('0xc')]);module[_0x15c4('0xd')]=router;