Built motion from commit 4ffc18b1.|2.6.31
[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 _0x82fb=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowField.controller','isAuthenticated','index','/:id','show','post','create','put','update','delete','destroy','exports','multer','util','connect-timeout','express'];(function(_0x1497b9,_0x2f0797){var _0x19b3e2=function(_0x114a69){while(--_0x114a69){_0x1497b9['push'](_0x1497b9['shift']());}};_0x19b3e2(++_0x2f0797);}(_0x82fb,0x74));var _0xb82f=function(_0x27af45,_0x1b57aa){_0x27af45=_0x27af45-0x0;var _0x18df21=_0x82fb[_0x27af45];return _0x18df21;};'use strict';var multer=require(_0xb82f('0x0'));var util=require(_0xb82f('0x1'));var path=require('path');var timeout=require(_0xb82f('0x2'));var express=require(_0xb82f('0x3'));var router=express['Router']();var fs_extra=require(_0xb82f('0x4'));var auth=require(_0xb82f('0x5'));var interaction=require(_0xb82f('0x6'));var config=require(_0xb82f('0x7'));var controller=require(_0xb82f('0x8'));router['get']('/',auth[_0xb82f('0x9')](),controller[_0xb82f('0xa')]);router['get'](_0xb82f('0xb'),auth['isAuthenticated'](),controller[_0xb82f('0xc')]);router[_0xb82f('0xd')]('/',auth[_0xb82f('0x9')](),controller[_0xb82f('0xe')]);router[_0xb82f('0xf')]('/:id',auth[_0xb82f('0x9')](),controller[_0xb82f('0x10')]);router[_0xb82f('0x11')]('/:id',auth['isAuthenticated'](),controller[_0xb82f('0x12')]);module[_0xb82f('0x13')]=router;