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 _0x9b44=['create','put','/:id','update','destroy','exports','multer','util','path','connect-timeout','express','Router','../../config/environment','./intVtigerField.controller','get','isAuthenticated','show'];(function(_0x524c2e,_0x165d16){var _0x4ce75d=function(_0x568b83){while(--_0x568b83){_0x524c2e['push'](_0x524c2e['shift']());}};_0x4ce75d(++_0x165d16);}(_0x9b44,0x105));var _0x49b4=function(_0x47e309,_0x1e771a){_0x47e309=_0x47e309-0x0;var _0x2e1900=_0x9b44[_0x47e309];return _0x2e1900;};'use strict';var multer=require(_0x49b4('0x0'));var util=require(_0x49b4('0x1'));var path=require(_0x49b4('0x2'));var timeout=require(_0x49b4('0x3'));var express=require(_0x49b4('0x4'));var router=express[_0x49b4('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x49b4('0x6'));var controller=require(_0x49b4('0x7'));router[_0x49b4('0x8')]('/',auth[_0x49b4('0x9')](),controller['index']);router[_0x49b4('0x8')]('/:id',auth[_0x49b4('0x9')](),controller[_0x49b4('0xa')]);router['post']('/',auth[_0x49b4('0x9')](),controller[_0x49b4('0xb')]);router[_0x49b4('0xc')](_0x49b4('0xd'),auth[_0x49b4('0x9')](),controller[_0x49b4('0xe')]);router['delete']('/:id',auth[_0x49b4('0x9')](),controller[_0x49b4('0xf')]);module[_0x49b4('0x10')]=router;