Built motion from commit f0b1811d.|2.6.6
[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 _0xbccb=['connect-timeout','express','Router','fs-extra','../../components/interaction/service','./intVtigerField.controller','get','isAuthenticated','index','/:id','show','create','delete','multer','util','path'];(function(_0x4a95e8,_0x4a3a8b){var _0xcbace9=function(_0x16f1a0){while(--_0x16f1a0){_0x4a95e8['push'](_0x4a95e8['shift']());}};_0xcbace9(++_0x4a3a8b);}(_0xbccb,0x1cd));var _0xbbcc=function(_0x58b301,_0x45e991){_0x58b301=_0x58b301-0x0;var _0x2171b3=_0xbccb[_0x58b301];return _0x2171b3;};'use strict';var multer=require(_0xbbcc('0x0'));var util=require(_0xbbcc('0x1'));var path=require(_0xbbcc('0x2'));var timeout=require(_0xbbcc('0x3'));var express=require(_0xbbcc('0x4'));var router=express[_0xbbcc('0x5')]();var fs_extra=require(_0xbbcc('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xbbcc('0x7'));var config=require('../../config/environment');var controller=require(_0xbbcc('0x8'));router[_0xbbcc('0x9')]('/',auth[_0xbbcc('0xa')](),controller[_0xbbcc('0xb')]);router[_0xbbcc('0x9')](_0xbbcc('0xc'),auth[_0xbbcc('0xa')](),controller[_0xbbcc('0xd')]);router['post']('/',auth[_0xbbcc('0xa')](),controller[_0xbbcc('0xe')]);router['put'](_0xbbcc('0xc'),auth[_0xbbcc('0xa')](),controller['update']);router[_0xbbcc('0xf')]('/:id',auth[_0xbbcc('0xa')](),controller['destroy']);module['exports']=router;