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 _0x2b6a=['put','update','delete','destroy','exports','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./intVtigerField.controller','get','/:id','isAuthenticated','show','post','create'];(function(_0x34a127,_0x4eaadc){var _0x699da2=function(_0x4b9596){while(--_0x4b9596){_0x34a127['push'](_0x34a127['shift']());}};_0x699da2(++_0x4eaadc);}(_0x2b6a,0x19d));var _0xa2b6=function(_0x5b6756,_0x6f52ac){_0x5b6756=_0x5b6756-0x0;var _0x473f95=_0x2b6a[_0x5b6756];return _0x473f95;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xa2b6('0x0'));var timeout=require(_0xa2b6('0x1'));var express=require('express');var router=express[_0xa2b6('0x2')]();var auth=require(_0xa2b6('0x3'));var interaction=require(_0xa2b6('0x4'));var config=require('../../config/environment');var controller=require(_0xa2b6('0x5'));router[_0xa2b6('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0xa2b6('0x6')](_0xa2b6('0x7'),auth[_0xa2b6('0x8')](),controller[_0xa2b6('0x9')]);router[_0xa2b6('0xa')]('/',auth['isAuthenticated'](),controller[_0xa2b6('0xb')]);router[_0xa2b6('0xc')](_0xa2b6('0x7'),auth[_0xa2b6('0x8')](),controller[_0xa2b6('0xd')]);router[_0xa2b6('0xe')]('/:id',auth[_0xa2b6('0x8')](),controller[_0xa2b6('0xf')]);module[_0xa2b6('0x10')]=router;