Built motion from commit 85328c08.|2.5.50
[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 _0x30b7=['delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../config/environment','./intServicenowField.controller','get','isAuthenticated','/:id','show','post','put','update'];(function(_0x1e77cc,_0x2c2221){var _0x5b7bf3=function(_0x3f12eb){while(--_0x3f12eb){_0x1e77cc['push'](_0x1e77cc['shift']());}};_0x5b7bf3(++_0x2c2221);}(_0x30b7,0x80));var _0x730b=function(_0x428561,_0x5a75af){_0x428561=_0x428561-0x0;var _0x11eb69=_0x30b7[_0x428561];return _0x11eb69;};'use strict';var multer=require(_0x730b('0x0'));var util=require(_0x730b('0x1'));var path=require(_0x730b('0x2'));var timeout=require(_0x730b('0x3'));var express=require(_0x730b('0x4'));var router=express[_0x730b('0x5')]();var fs_extra=require(_0x730b('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x730b('0x7'));var controller=require(_0x730b('0x8'));router[_0x730b('0x9')]('/',auth[_0x730b('0xa')](),controller['index']);router[_0x730b('0x9')](_0x730b('0xb'),auth['isAuthenticated'](),controller[_0x730b('0xc')]);router[_0x730b('0xd')]('/',auth[_0x730b('0xa')](),controller['create']);router[_0x730b('0xe')](_0x730b('0xb'),auth[_0x730b('0xa')](),controller[_0x730b('0xf')]);router[_0x730b('0x10')]('/:id',auth['isAuthenticated'](),controller[_0x730b('0x11')]);module['exports']=router;