76ffa88dacfafa046474e09c50ef0a74c7c9f8b0
[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 _0x0b88=['multer','util','path','connect-timeout','express','Router','fs-extra','../../config/environment','./intServicenowField.controller','get','isAuthenticated','index','show','post','create','update','delete','/:id','destroy','exports'];(function(_0x52e3b8,_0x1242a0){var _0x584e1c=function(_0x31e5d9){while(--_0x31e5d9){_0x52e3b8['push'](_0x52e3b8['shift']());}};_0x584e1c(++_0x1242a0);}(_0x0b88,0xc8));var _0x80b8=function(_0x4c6141,_0x514dd8){_0x4c6141=_0x4c6141-0x0;var _0x25aa4d=_0x0b88[_0x4c6141];return _0x25aa4d;};'use strict';var multer=require(_0x80b8('0x0'));var util=require(_0x80b8('0x1'));var path=require(_0x80b8('0x2'));var timeout=require(_0x80b8('0x3'));var express=require(_0x80b8('0x4'));var router=express[_0x80b8('0x5')]();var fs_extra=require(_0x80b8('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x80b8('0x7'));var controller=require(_0x80b8('0x8'));router[_0x80b8('0x9')]('/',auth[_0x80b8('0xa')](),controller[_0x80b8('0xb')]);router[_0x80b8('0x9')]('/:id',auth[_0x80b8('0xa')](),controller[_0x80b8('0xc')]);router[_0x80b8('0xd')]('/',auth['isAuthenticated'](),controller[_0x80b8('0xe')]);router['put']('/:id',auth[_0x80b8('0xa')](),controller[_0x80b8('0xf')]);router[_0x80b8('0x10')](_0x80b8('0x11'),auth[_0x80b8('0xa')](),controller[_0x80b8('0x12')]);module[_0x80b8('0x13')]=router;