Built motion from commit 10af8726.|2.6.34
[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 _0x03c5=['index','show','create','delete','/:id','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowField.controller','get','isAuthenticated'];(function(_0x368f4e,_0x58c118){var _0xaf0ad6=function(_0x2d7344){while(--_0x2d7344){_0x368f4e['push'](_0x368f4e['shift']());}};_0xaf0ad6(++_0x58c118);}(_0x03c5,0x1b6));var _0x503c=function(_0x1d24eb,_0x12295b){_0x1d24eb=_0x1d24eb-0x0;var _0x1dc576=_0x03c5[_0x1d24eb];return _0x1dc576;};'use strict';var multer=require(_0x503c('0x0'));var util=require(_0x503c('0x1'));var path=require(_0x503c('0x2'));var timeout=require(_0x503c('0x3'));var express=require(_0x503c('0x4'));var router=express[_0x503c('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x503c('0x6'));var interaction=require(_0x503c('0x7'));var config=require(_0x503c('0x8'));var controller=require(_0x503c('0x9'));router[_0x503c('0xa')]('/',auth[_0x503c('0xb')](),controller[_0x503c('0xc')]);router[_0x503c('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x503c('0xd')]);router['post']('/',auth[_0x503c('0xb')](),controller[_0x503c('0xe')]);router['put']('/:id',auth[_0x503c('0xb')](),controller['update']);router[_0x503c('0xf')](_0x503c('0x10'),auth['isAuthenticated'](),controller[_0x503c('0x11')]);module['exports']=router;