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 _0x8e9b=['index','/:id','show','create','put','update','destroy','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./intVtigerField.controller','isAuthenticated'];(function(_0x207438,_0x267449){var _0x405ae6=function(_0x38dcb8){while(--_0x38dcb8){_0x207438['push'](_0x207438['shift']());}};_0x405ae6(++_0x267449);}(_0x8e9b,0x1ab));var _0xb8e9=function(_0x11d95f,_0x34f442){_0x11d95f=_0x11d95f-0x0;var _0x2b1a14=_0x8e9b[_0x11d95f];return _0x2b1a14;};'use strict';var multer=require('multer');var util=require(_0xb8e9('0x0'));var path=require(_0xb8e9('0x1'));var timeout=require(_0xb8e9('0x2'));var express=require(_0xb8e9('0x3'));var router=express['Router']();var auth=require(_0xb8e9('0x4'));var interaction=require(_0xb8e9('0x5'));var config=require('../../config/environment');var controller=require(_0xb8e9('0x6'));router['get']('/',auth[_0xb8e9('0x7')](),controller[_0xb8e9('0x8')]);router['get'](_0xb8e9('0x9'),auth[_0xb8e9('0x7')](),controller[_0xb8e9('0xa')]);router['post']('/',auth[_0xb8e9('0x7')](),controller[_0xb8e9('0xb')]);router[_0xb8e9('0xc')]('/:id',auth[_0xb8e9('0x7')](),controller[_0xb8e9('0xd')]);router['delete']('/:id',auth[_0xb8e9('0x7')](),controller[_0xb8e9('0xe')]);module['exports']=router;