995fe229bd5111c588210f179b6e79982a003e35
[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 _0x62e8=['multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowField.controller','get','isAuthenticated','index','/:id','show','post','delete','exports'];(function(_0x235326,_0x251051){var _0x43a1d7=function(_0x1e79d9){while(--_0x1e79d9){_0x235326['push'](_0x235326['shift']());}};_0x43a1d7(++_0x251051);}(_0x62e8,0x198));var _0x862e=function(_0x4a1aa1,_0x37af9c){_0x4a1aa1=_0x4a1aa1-0x0;var _0x3264f3=_0x62e8[_0x4a1aa1];return _0x3264f3;};'use strict';var multer=require(_0x862e('0x0'));var util=require(_0x862e('0x1'));var path=require(_0x862e('0x2'));var timeout=require(_0x862e('0x3'));var express=require('express');var router=express[_0x862e('0x4')]();var auth=require(_0x862e('0x5'));var interaction=require(_0x862e('0x6'));var config=require(_0x862e('0x7'));var controller=require(_0x862e('0x8'));router[_0x862e('0x9')]('/',auth[_0x862e('0xa')](),controller[_0x862e('0xb')]);router[_0x862e('0x9')](_0x862e('0xc'),auth[_0x862e('0xa')](),controller[_0x862e('0xd')]);router[_0x862e('0xe')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x862e('0xc'),auth[_0x862e('0xa')](),controller['update']);router[_0x862e('0xf')](_0x862e('0xc'),auth[_0x862e('0xa')](),controller['destroy']);module[_0x862e('0x10')]=router;