Built motion from commit 616d3211.|2.6.4
[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 _0x6dcf=['express','Router','fs-extra','../../components/auth/service','get','isAuthenticated','index','/:id','post','update','delete','destroy','exports','multer','path','connect-timeout'];(function(_0x6b7dd0,_0x2eebf2){var _0x2356cc=function(_0x18c8d8){while(--_0x18c8d8){_0x6b7dd0['push'](_0x6b7dd0['shift']());}};_0x2356cc(++_0x2eebf2);}(_0x6dcf,0x18d));var _0xf6dc=function(_0x4c9531,_0x2dd203){_0x4c9531=_0x4c9531-0x0;var _0x25b23a=_0x6dcf[_0x4c9531];return _0x25b23a;};'use strict';var multer=require(_0xf6dc('0x0'));var util=require('util');var path=require(_0xf6dc('0x1'));var timeout=require(_0xf6dc('0x2'));var express=require(_0xf6dc('0x3'));var router=express[_0xf6dc('0x4')]();var fs_extra=require(_0xf6dc('0x5'));var auth=require(_0xf6dc('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intVtigerField.controller');router[_0xf6dc('0x7')]('/',auth[_0xf6dc('0x8')](),controller[_0xf6dc('0x9')]);router['get'](_0xf6dc('0xa'),auth['isAuthenticated'](),controller['show']);router[_0xf6dc('0xb')]('/',auth[_0xf6dc('0x8')](),controller['create']);router['put'](_0xf6dc('0xa'),auth[_0xf6dc('0x8')](),controller[_0xf6dc('0xc')]);router[_0xf6dc('0xd')](_0xf6dc('0xa'),auth[_0xf6dc('0x8')](),controller[_0xf6dc('0xe')]);module[_0xf6dc('0xf')]=router;