8b1250facd90f8c4370f132e7c35b6b5d48bd7da
[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 _0xedf4=['Router','fs-extra','../../components/interaction/service','../../config/environment','./intVtigerField.controller','get','isAuthenticated','index','/:id','create','put','update','delete','destroy','exports','multer','util','connect-timeout','express'];(function(_0x412dd8,_0x355780){var _0x47b96=function(_0x58b680){while(--_0x58b680){_0x412dd8['push'](_0x412dd8['shift']());}};_0x47b96(++_0x355780);}(_0xedf4,0x18b));var _0x4edf=function(_0x308125,_0x151630){_0x308125=_0x308125-0x0;var _0x50883c=_0xedf4[_0x308125];return _0x50883c;};'use strict';var multer=require(_0x4edf('0x0'));var util=require(_0x4edf('0x1'));var path=require('path');var timeout=require(_0x4edf('0x2'));var express=require(_0x4edf('0x3'));var router=express[_0x4edf('0x4')]();var fs_extra=require(_0x4edf('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x4edf('0x6'));var config=require(_0x4edf('0x7'));var controller=require(_0x4edf('0x8'));router[_0x4edf('0x9')]('/',auth[_0x4edf('0xa')](),controller[_0x4edf('0xb')]);router[_0x4edf('0x9')](_0x4edf('0xc'),auth[_0x4edf('0xa')](),controller['show']);router['post']('/',auth[_0x4edf('0xa')](),controller[_0x4edf('0xd')]);router[_0x4edf('0xe')](_0x4edf('0xc'),auth[_0x4edf('0xa')](),controller[_0x4edf('0xf')]);router[_0x4edf('0x10')](_0x4edf('0xc'),auth['isAuthenticated'](),controller[_0x4edf('0x11')]);module[_0x4edf('0x12')]=router;