Built motion from commit 08fb8613.|2.6.31
[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 _0x33a0=['put','/:id','update','delete','destroy','exports','multer','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./intVtigerField.controller','get','isAuthenticated','index','show','post','create'];(function(_0x47c9fb,_0x2f8454){var _0xa99310=function(_0x19c89f){while(--_0x19c89f){_0x47c9fb['push'](_0x47c9fb['shift']());}};_0xa99310(++_0x2f8454);}(_0x33a0,0x16e));var _0x033a=function(_0x113477,_0x5bd2de){_0x113477=_0x113477-0x0;var _0x5bc497=_0x33a0[_0x113477];return _0x5bc497;};'use strict';var multer=require(_0x033a('0x0'));var util=require('util');var path=require(_0x033a('0x1'));var timeout=require('connect-timeout');var express=require(_0x033a('0x2'));var router=express[_0x033a('0x3')]();var fs_extra=require(_0x033a('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x033a('0x5'));var config=require(_0x033a('0x6'));var controller=require(_0x033a('0x7'));router[_0x033a('0x8')]('/',auth[_0x033a('0x9')](),controller[_0x033a('0xa')]);router['get']('/:id',auth[_0x033a('0x9')](),controller[_0x033a('0xb')]);router[_0x033a('0xc')]('/',auth[_0x033a('0x9')](),controller[_0x033a('0xd')]);router[_0x033a('0xe')](_0x033a('0xf'),auth['isAuthenticated'](),controller[_0x033a('0x10')]);router[_0x033a('0x11')](_0x033a('0xf'),auth[_0x033a('0x9')](),controller[_0x033a('0x12')]);module[_0x033a('0x13')]=router;