Built motion from commit e0fa946e.|2.6.5
[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 _0x1c8d=['destroy','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerField.controller','get','index','/:id','isAuthenticated','show','post','create','update','delete'];(function(_0x1453e5,_0x1cbe1f){var _0x181eb8=function(_0x279010){while(--_0x279010){_0x1453e5['push'](_0x1453e5['shift']());}};_0x181eb8(++_0x1cbe1f);}(_0x1c8d,0x79));var _0xd1c8=function(_0x6c993a,_0x5ea3ab){_0x6c993a=_0x6c993a-0x0;var _0x27f547=_0x1c8d[_0x6c993a];return _0x27f547;};'use strict';var multer=require(_0xd1c8('0x0'));var util=require('util');var path=require(_0xd1c8('0x1'));var timeout=require(_0xd1c8('0x2'));var express=require(_0xd1c8('0x3'));var router=express[_0xd1c8('0x4')]();var fs_extra=require(_0xd1c8('0x5'));var auth=require(_0xd1c8('0x6'));var interaction=require(_0xd1c8('0x7'));var config=require(_0xd1c8('0x8'));var controller=require(_0xd1c8('0x9'));router[_0xd1c8('0xa')]('/',auth['isAuthenticated'](),controller[_0xd1c8('0xb')]);router['get'](_0xd1c8('0xc'),auth[_0xd1c8('0xd')](),controller[_0xd1c8('0xe')]);router[_0xd1c8('0xf')]('/',auth[_0xd1c8('0xd')](),controller[_0xd1c8('0x10')]);router['put'](_0xd1c8('0xc'),auth['isAuthenticated'](),controller[_0xd1c8('0x11')]);router[_0xd1c8('0x12')](_0xd1c8('0xc'),auth[_0xd1c8('0xd')](),controller[_0xd1c8('0x13')]);module['exports']=router;