a231ead3add7a877f3e06c64741b1ac4641dfb26
[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 _0x5ed0=['/:id','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','./intVtigerField.controller','get','isAuthenticated'];(function(_0x2b10c6,_0x185590){var _0x3789d2=function(_0x272987){while(--_0x272987){_0x2b10c6['push'](_0x2b10c6['shift']());}};_0x3789d2(++_0x185590);}(_0x5ed0,0x186));var _0x05ed=function(_0x30f418,_0x269d78){_0x30f418=_0x30f418-0x0;var _0x359aa2=_0x5ed0[_0x30f418];return _0x359aa2;};'use strict';var multer=require(_0x05ed('0x0'));var util=require(_0x05ed('0x1'));var path=require(_0x05ed('0x2'));var timeout=require(_0x05ed('0x3'));var express=require(_0x05ed('0x4'));var router=express['Router']();var fs_extra=require(_0x05ed('0x5'));var auth=require(_0x05ed('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x05ed('0x7'));router[_0x05ed('0x8')]('/',auth[_0x05ed('0x9')](),controller['index']);router[_0x05ed('0x8')](_0x05ed('0xa'),auth[_0x05ed('0x9')](),controller['show']);router['post']('/',auth[_0x05ed('0x9')](),controller['create']);router[_0x05ed('0xb')](_0x05ed('0xa'),auth[_0x05ed('0x9')](),controller[_0x05ed('0xc')]);router[_0x05ed('0xd')](_0x05ed('0xa'),auth[_0x05ed('0x9')](),controller[_0x05ed('0xe')]);module[_0x05ed('0xf')]=router;