e36231fd5fc39a9e8fc471b531d2895290187ac9
[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 _0xc731=['index','get','/:id','show','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','isAuthenticated'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xc731,0x64));var _0x1c73=function(_0x2dfd5e,_0x51cb34){_0x2dfd5e=_0x2dfd5e-0x0;var _0x162a42=_0xc731[_0x2dfd5e];return _0x162a42;};'use strict';var multer=require(_0x1c73('0x0'));var util=require(_0x1c73('0x1'));var path=require(_0x1c73('0x2'));var timeout=require(_0x1c73('0x3'));var express=require(_0x1c73('0x4'));var router=express[_0x1c73('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x1c73('0x6'));var config=require('../../config/environment');var controller=require('./intServicenowField.controller');router['get']('/',auth[_0x1c73('0x7')](),controller[_0x1c73('0x8')]);router[_0x1c73('0x9')](_0x1c73('0xa'),auth['isAuthenticated'](),controller[_0x1c73('0xb')]);router['post']('/',auth[_0x1c73('0x7')](),controller[_0x1c73('0xc')]);router[_0x1c73('0xd')](_0x1c73('0xa'),auth[_0x1c73('0x7')](),controller[_0x1c73('0xe')]);router[_0x1c73('0xf')](_0x1c73('0xa'),auth[_0x1c73('0x7')](),controller[_0x1c73('0x10')]);module[_0x1c73('0x11')]=router;