96d96d1b3d5cd04b8ec37e444648391850595ad0
[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 _0x96a0=['exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowField.controller','get','isAuthenticated','index','post','create','/:id','update','delete','destroy'];(function(_0xbca1b1,_0x33f0ce){var _0x4e1686=function(_0x58a80c){while(--_0x58a80c){_0xbca1b1['push'](_0xbca1b1['shift']());}};_0x4e1686(++_0x33f0ce);}(_0x96a0,0x1dc));var _0x096a=function(_0x42c6be,_0x4f7eb1){_0x42c6be=_0x42c6be-0x0;var _0x25a632=_0x96a0[_0x42c6be];return _0x25a632;};'use strict';var multer=require(_0x096a('0x0'));var util=require(_0x096a('0x1'));var path=require(_0x096a('0x2'));var timeout=require(_0x096a('0x3'));var express=require(_0x096a('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x096a('0x5'));var interaction=require(_0x096a('0x6'));var config=require(_0x096a('0x7'));var controller=require(_0x096a('0x8'));router[_0x096a('0x9')]('/',auth[_0x096a('0xa')](),controller[_0x096a('0xb')]);router[_0x096a('0x9')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x096a('0xc')]('/',auth[_0x096a('0xa')](),controller[_0x096a('0xd')]);router['put'](_0x096a('0xe'),auth['isAuthenticated'](),controller[_0x096a('0xf')]);router[_0x096a('0x10')]('/:id',auth[_0x096a('0xa')](),controller[_0x096a('0x11')]);module[_0x096a('0x12')]=router;