daf04e919989d340f600082495686632ee65e037
[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 _0x00e3=['create','/:id','update','delete','destroy','exports','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./intVtigerField.controller','get','index','isAuthenticated','post'];(function(_0x56a06f,_0x183813){var _0x3309ac=function(_0x562fb0){while(--_0x562fb0){_0x56a06f['push'](_0x56a06f['shift']());}};_0x3309ac(++_0x183813);}(_0x00e3,0x6c));var _0x300e=function(_0x5903da,_0x573b67){_0x5903da=_0x5903da-0x0;var _0x13f8bd=_0x00e3[_0x5903da];return _0x13f8bd;};'use strict';var multer=require('multer');var util=require(_0x300e('0x0'));var path=require(_0x300e('0x1'));var timeout=require(_0x300e('0x2'));var express=require(_0x300e('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x300e('0x4'));var config=require(_0x300e('0x5'));var controller=require(_0x300e('0x6'));router[_0x300e('0x7')]('/',auth['isAuthenticated'](),controller[_0x300e('0x8')]);router['get']('/:id',auth[_0x300e('0x9')](),controller['show']);router[_0x300e('0xa')]('/',auth[_0x300e('0x9')](),controller[_0x300e('0xb')]);router['put'](_0x300e('0xc'),auth[_0x300e('0x9')](),controller[_0x300e('0xd')]);router[_0x300e('0xe')]('/:id',auth[_0x300e('0x9')](),controller[_0x300e('0xf')]);module[_0x300e('0x10')]=router;