3cbf6afd9ddeb185a1d8cee3a80845785a26daed
[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 _0xb4aa=['path','./intVtigerField.controller','isAuthenticated','index','get','/:id','show','create','put','exports','multer'];(function(_0x616290,_0x280b7f){var _0x453879=function(_0x27bda7){while(--_0x27bda7){_0x616290['push'](_0x616290['shift']());}};_0x453879(++_0x280b7f);}(_0xb4aa,0x1b7));var _0xab4a=function(_0xdb755d,_0x172313){_0xdb755d=_0xdb755d-0x0;var _0x4169c3=_0xb4aa[_0xdb755d];return _0x4169c3;};'use strict';var multer=require(_0xab4a('0x0'));var util=require('util');var path=require(_0xab4a('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xab4a('0x2'));router['get']('/',auth[_0xab4a('0x3')](),controller[_0xab4a('0x4')]);router[_0xab4a('0x5')](_0xab4a('0x6'),auth[_0xab4a('0x3')](),controller[_0xab4a('0x7')]);router['post']('/',auth[_0xab4a('0x3')](),controller[_0xab4a('0x8')]);router[_0xab4a('0x9')](_0xab4a('0x6'),auth[_0xab4a('0x3')](),controller['update']);router['delete'](_0xab4a('0x6'),auth['isAuthenticated'](),controller['destroy']);module[_0xab4a('0xa')]=router;