Built motion from commit (unavailable).|2.5.19
[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 _0xcbcd=['exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./intVtigerField.controller','get','isAuthenticated','/:id','show','create','update','delete','destroy'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0xcbcd,0x1bb));var _0xdcbc=function(_0x4be8ba,_0x5d10ba){_0x4be8ba=_0x4be8ba-0x0;var _0x1af822=_0xcbcd[_0x4be8ba];return _0x1af822;};'use strict';var multer=require('multer');var util=require(_0xdcbc('0x0'));var path=require(_0xdcbc('0x1'));var timeout=require(_0xdcbc('0x2'));var express=require(_0xdcbc('0x3'));var router=express[_0xdcbc('0x4')]();var auth=require(_0xdcbc('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xdcbc('0x6'));var controller=require(_0xdcbc('0x7'));router[_0xdcbc('0x8')]('/',auth[_0xdcbc('0x9')](),controller['index']);router[_0xdcbc('0x8')](_0xdcbc('0xa'),auth['isAuthenticated'](),controller[_0xdcbc('0xb')]);router['post']('/',auth[_0xdcbc('0x9')](),controller[_0xdcbc('0xc')]);router['put']('/:id',auth[_0xdcbc('0x9')](),controller[_0xdcbc('0xd')]);router[_0xdcbc('0xe')](_0xdcbc('0xa'),auth[_0xdcbc('0x9')](),controller[_0xdcbc('0xf')]);module[_0xdcbc('0x10')]=router;