2db913f95eafde0f8b2382ae7513459d4f0df1e7
[motion2.git] / server / api / intVtigerField / 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 _0x72d3=['../../config/environment','isAuthenticated','index','get','show','post','create','put','/:id','delete','destroy','multer','util','path','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x5cff25,_0xab13e6){var _0x529c50=function(_0x36b37c){while(--_0x36b37c){_0x5cff25['push'](_0x5cff25['shift']());}};_0x529c50(++_0xab13e6);}(_0x72d3,0x192));var _0x372d=function(_0xbe294b,_0x1c884e){_0xbe294b=_0xbe294b-0x0;var _0x4fe650=_0x72d3[_0xbe294b];return _0x4fe650;};'use strict';var multer=require(_0x372d('0x0'));var util=require(_0x372d('0x1'));var path=require(_0x372d('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x372d('0x3')]();var auth=require(_0x372d('0x4'));var interaction=require(_0x372d('0x5'));var config=require(_0x372d('0x6'));var controller=require('./intVtigerField.controller');router['get']('/',auth[_0x372d('0x7')](),controller[_0x372d('0x8')]);router[_0x372d('0x9')]('/:id',auth[_0x372d('0x7')](),controller[_0x372d('0xa')]);router[_0x372d('0xb')]('/',auth[_0x372d('0x7')](),controller[_0x372d('0xc')]);router[_0x372d('0xd')](_0x372d('0xe'),auth[_0x372d('0x7')](),controller['update']);router[_0x372d('0xf')](_0x372d('0xe'),auth[_0x372d('0x7')](),controller[_0x372d('0x10')]);module['exports']=router;