be936f200ab2646c78a3aabf587430f4931b0ce6
[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 _0x24f3=['./intVtigerField.controller','index','get','/:id','isAuthenticated','post','put','update','exports','express','Router','../../components/auth/service'];(function(_0x32678e,_0x4a133c){var _0x48a1c6=function(_0x93286f){while(--_0x93286f){_0x32678e['push'](_0x32678e['shift']());}};_0x48a1c6(++_0x4a133c);}(_0x24f3,0x105));var _0x324f=function(_0x2574e0,_0x1b3ecf){_0x2574e0=_0x2574e0-0x0;var _0x46bf84=_0x24f3[_0x2574e0];return _0x46bf84;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x324f('0x0'));var router=express[_0x324f('0x1')]();var fs_extra=require('fs-extra');var auth=require(_0x324f('0x2'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x324f('0x3'));router['get']('/',auth['isAuthenticated'](),controller[_0x324f('0x4')]);router[_0x324f('0x5')](_0x324f('0x6'),auth[_0x324f('0x7')](),controller['show']);router[_0x324f('0x8')]('/',auth[_0x324f('0x7')](),controller['create']);router[_0x324f('0x9')]('/:id',auth[_0x324f('0x7')](),controller[_0x324f('0xa')]);router['delete'](_0x324f('0x6'),auth[_0x324f('0x7')](),controller['destroy']);module[_0x324f('0xb')]=router;