1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x1fef=['show','post','/:id','delete','destroy','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index'];(function(_0x56a1d0,_0x16a437){var _0x5952c4=function(_0x3a4e4e){while(--_0x3a4e4e){_0x56a1d0['push'](_0x56a1d0['shift']());}};_0x5952c4(++_0x16a437);}(_0x1fef,0x155));var _0xf1fe=function(_0x26d850,_0x4c6832){_0x26d850=_0x26d850-0x0;var _0x3e020c=_0x1fef[_0x26d850];return _0x3e020c;};'use strict';var multer=require(_0xf1fe('0x0'));var util=require(_0xf1fe('0x1'));var path=require(_0xf1fe('0x2'));var timeout=require(_0xf1fe('0x3'));var express=require('express');var router=express[_0xf1fe('0x4')]();var auth=require(_0xf1fe('0x5'));var interaction=require(_0xf1fe('0x6'));var config=require(_0xf1fe('0x7'));var controller=require('./intVtigerField.controller');router[_0xf1fe('0x8')]('/',auth[_0xf1fe('0x9')](),controller[_0xf1fe('0xa')]);router[_0xf1fe('0x8')]('/:id',auth[_0xf1fe('0x9')](),controller[_0xf1fe('0xb')]);router[_0xf1fe('0xc')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xf1fe('0xd'),auth[_0xf1fe('0x9')](),controller['update']);router[_0xf1fe('0xe')](_0xf1fe('0xd'),auth['isAuthenticated'](),controller[_0xf1fe('0xf')]);module['exports']=router;