69e83a41cc372c2bbcdc0d26a74c38d86ae24a41
[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 _0x6bad=['index','show','post','create','put','update','delete','/:id','exports','multer','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./intVtigerField.controller','get','isAuthenticated'];(function(_0x16b9ed,_0x56517a){var _0x66b1f8=function(_0x1c883){while(--_0x1c883){_0x16b9ed['push'](_0x16b9ed['shift']());}};_0x66b1f8(++_0x56517a);}(_0x6bad,0x1e4));var _0xd6ba=function(_0x5d8fdb,_0x588119){_0x5d8fdb=_0x5d8fdb-0x0;var _0x3b14f9=_0x6bad[_0x5d8fdb];return _0x3b14f9;};'use strict';var multer=require(_0xd6ba('0x0'));var util=require('util');var path=require(_0xd6ba('0x1'));var timeout=require(_0xd6ba('0x2'));var express=require('express');var router=express[_0xd6ba('0x3')]();var fs_extra=require(_0xd6ba('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xd6ba('0x5'));var config=require(_0xd6ba('0x6'));var controller=require(_0xd6ba('0x7'));router[_0xd6ba('0x8')]('/',auth[_0xd6ba('0x9')](),controller[_0xd6ba('0xa')]);router[_0xd6ba('0x8')]('/:id',auth[_0xd6ba('0x9')](),controller[_0xd6ba('0xb')]);router[_0xd6ba('0xc')]('/',auth[_0xd6ba('0x9')](),controller[_0xd6ba('0xd')]);router[_0xd6ba('0xe')]('/:id',auth[_0xd6ba('0x9')](),controller[_0xd6ba('0xf')]);router[_0xd6ba('0x10')](_0xd6ba('0x11'),auth[_0xd6ba('0x9')](),controller['destroy']);module[_0xd6ba('0x12')]=router;