9d9f94a46ced10693d700c35e201b88a91026f99
[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 _0xfc1a=['path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intVtigerField.controller','isAuthenticated','index','post','create','put','/:id','update','delete','exports','multer','util'];(function(_0x32f78b,_0x178f58){var _0x51d847=function(_0xc010c3){while(--_0xc010c3){_0x32f78b['push'](_0x32f78b['shift']());}};_0x51d847(++_0x178f58);}(_0xfc1a,0x18a));var _0xafc1=function(_0x3f2201,_0x3d6032){_0x3f2201=_0x3f2201-0x0;var _0x535319=_0xfc1a[_0x3f2201];return _0x535319;};'use strict';var multer=require(_0xafc1('0x0'));var util=require(_0xafc1('0x1'));var path=require(_0xafc1('0x2'));var timeout=require(_0xafc1('0x3'));var express=require(_0xafc1('0x4'));var router=express[_0xafc1('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xafc1('0x6'));var config=require(_0xafc1('0x7'));var controller=require(_0xafc1('0x8'));router['get']('/',auth[_0xafc1('0x9')](),controller[_0xafc1('0xa')]);router['get']('/:id',auth[_0xafc1('0x9')](),controller['show']);router[_0xafc1('0xb')]('/',auth[_0xafc1('0x9')](),controller[_0xafc1('0xc')]);router[_0xafc1('0xd')](_0xafc1('0xe'),auth[_0xafc1('0x9')](),controller[_0xafc1('0xf')]);router[_0xafc1('0x10')](_0xafc1('0xe'),auth[_0xafc1('0x9')](),controller['destroy']);module[_0xafc1('0x11')]=router;