Built motion from commit da617fac.|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 _0xc1da=['../../components/interaction/service','../../config/environment','./intVtigerField.controller','isAuthenticated','/:id','create','put','multer','path','connect-timeout'];(function(_0x43bed9,_0x26adca){var _0x27b03d=function(_0x5c47c9){while(--_0x5c47c9){_0x43bed9['push'](_0x43bed9['shift']());}};_0x27b03d(++_0x26adca);}(_0xc1da,0x89));var _0xac1d=function(_0x4f0bb5,_0xa62425){_0x4f0bb5=_0x4f0bb5-0x0;var _0x50ae00=_0xc1da[_0x4f0bb5];return _0x50ae00;};'use strict';var multer=require(_0xac1d('0x0'));var util=require('util');var path=require(_0xac1d('0x1'));var timeout=require(_0xac1d('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xac1d('0x3'));var config=require(_0xac1d('0x4'));var controller=require(_0xac1d('0x5'));router['get']('/',auth[_0xac1d('0x6')](),controller['index']);router['get'](_0xac1d('0x7'),auth[_0xac1d('0x6')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xac1d('0x8')]);router[_0xac1d('0x9')](_0xac1d('0x7'),auth[_0xac1d('0x6')](),controller['update']);router['delete']('/:id',auth[_0xac1d('0x6')](),controller['destroy']);module['exports']=router;