63660893f04d9c3c09a8db9628402fd02c9dc87a
[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 _0x1ad2=['multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intVtigerField.controller','get','isAuthenticated','index','show','post','create','put','/:id','delete','destroy'];(function(_0x2e4e19,_0x493b50){var _0x9ba20b=function(_0x2f6456){while(--_0x2f6456){_0x2e4e19['push'](_0x2e4e19['shift']());}};_0x9ba20b(++_0x493b50);}(_0x1ad2,0x90));var _0x21ad=function(_0x40bb0f,_0x51fd57){_0x40bb0f=_0x40bb0f-0x0;var _0x2557a6=_0x1ad2[_0x40bb0f];return _0x2557a6;};'use strict';var multer=require(_0x21ad('0x0'));var util=require(_0x21ad('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x21ad('0x2'));var router=express[_0x21ad('0x3')]();var fs_extra=require(_0x21ad('0x4'));var auth=require(_0x21ad('0x5'));var interaction=require(_0x21ad('0x6'));var config=require('../../config/environment');var controller=require(_0x21ad('0x7'));router[_0x21ad('0x8')]('/',auth[_0x21ad('0x9')](),controller[_0x21ad('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x21ad('0xb')]);router[_0x21ad('0xc')]('/',auth[_0x21ad('0x9')](),controller[_0x21ad('0xd')]);router[_0x21ad('0xe')](_0x21ad('0xf'),auth[_0x21ad('0x9')](),controller['update']);router[_0x21ad('0x10')](_0x21ad('0xf'),auth['isAuthenticated'](),controller[_0x21ad('0x11')]);module['exports']=router;