5a0043cf59a2871e572d2ff5c347e44b54d12dc7
[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 _0x844f=['connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','post','create','put','/:id','update','delete','destroy','exports','multer','path'];(function(_0x1f946a,_0x38f2f3){var _0x4c71cf=function(_0x5c09d4){while(--_0x5c09d4){_0x1f946a['push'](_0x1f946a['shift']());}};_0x4c71cf(++_0x38f2f3);}(_0x844f,0x11b));var _0xf844=function(_0x5c4c71,_0x3445f8){_0x5c4c71=_0x5c4c71-0x0;var _0x167d6b=_0x844f[_0x5c4c71];return _0x167d6b;};'use strict';var multer=require(_0xf844('0x0'));var util=require('util');var path=require(_0xf844('0x1'));var timeout=require(_0xf844('0x2'));var express=require(_0xf844('0x3'));var router=express[_0xf844('0x4')]();var fs_extra=require(_0xf844('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xf844('0x6'));var config=require(_0xf844('0x7'));var controller=require('./intServicenowField.controller');router[_0xf844('0x8')]('/',auth[_0xf844('0x9')](),controller[_0xf844('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0xf844('0xb')]('/',auth[_0xf844('0x9')](),controller[_0xf844('0xc')]);router[_0xf844('0xd')](_0xf844('0xe'),auth[_0xf844('0x9')](),controller[_0xf844('0xf')]);router[_0xf844('0x10')](_0xf844('0xe'),auth[_0xf844('0x9')](),controller[_0xf844('0x11')]);module[_0xf844('0x12')]=router;