a658097e1db33e4dd7956a110be2175ef8dfbd44
[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 _0x7a58=['create','put','update','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerField.controller','isAuthenticated','index','get','/:id','post'];(function(_0x4a721f,_0x10de40){var _0x525b07=function(_0x4492c8){while(--_0x4492c8){_0x4a721f['push'](_0x4a721f['shift']());}};_0x525b07(++_0x10de40);}(_0x7a58,0x1e8));var _0x87a5=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x7a58[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x87a5('0x0'));var util=require(_0x87a5('0x1'));var path=require(_0x87a5('0x2'));var timeout=require(_0x87a5('0x3'));var express=require(_0x87a5('0x4'));var router=express[_0x87a5('0x5')]();var fs_extra=require(_0x87a5('0x6'));var auth=require(_0x87a5('0x7'));var interaction=require(_0x87a5('0x8'));var config=require(_0x87a5('0x9'));var controller=require(_0x87a5('0xa'));router['get']('/',auth[_0x87a5('0xb')](),controller[_0x87a5('0xc')]);router[_0x87a5('0xd')](_0x87a5('0xe'),auth['isAuthenticated'](),controller['show']);router[_0x87a5('0xf')]('/',auth[_0x87a5('0xb')](),controller[_0x87a5('0x10')]);router[_0x87a5('0x11')]('/:id',auth[_0x87a5('0xb')](),controller[_0x87a5('0x12')]);router[_0x87a5('0x13')](_0x87a5('0xe'),auth[_0x87a5('0xb')](),controller[_0x87a5('0x14')]);module['exports']=router;