06ad34d4adee0dcd7e8910de2f8b20e5705939f9
[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 _0x693f=['show','create','put','delete','destroy','exports','multer','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id'];(function(_0x5b1594,_0x582eea){var _0x5e4fad=function(_0x5eefff){while(--_0x5eefff){_0x5b1594['push'](_0x5b1594['shift']());}};_0x5e4fad(++_0x582eea);}(_0x693f,0x17c));var _0xf693=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x693f[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0xf693('0x0'));var util=require('util');var path=require(_0xf693('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xf693('0x2')]();var fs_extra=require(_0xf693('0x3'));var auth=require(_0xf693('0x4'));var interaction=require(_0xf693('0x5'));var config=require(_0xf693('0x6'));var controller=require('./intVtigerField.controller');router[_0xf693('0x7')]('/',auth[_0xf693('0x8')](),controller[_0xf693('0x9')]);router['get'](_0xf693('0xa'),auth['isAuthenticated'](),controller[_0xf693('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0xf693('0xc')]);router[_0xf693('0xd')](_0xf693('0xa'),auth['isAuthenticated'](),controller['update']);router[_0xf693('0xe')](_0xf693('0xa'),auth[_0xf693('0x8')](),controller[_0xf693('0xf')]);module[_0xf693('0x10')]=router;