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 _0x3ed8=['get','index','/:id','isAuthenticated','post','create','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./intVtigerField.controller'];(function(_0x58aff1,_0x4d8805){var _0x1c730f=function(_0x149556){while(--_0x149556){_0x58aff1['push'](_0x58aff1['shift']());}};_0x1c730f(++_0x4d8805);}(_0x3ed8,0x1b8));var _0x83ed=function(_0xef8146,_0x459c34){_0xef8146=_0xef8146-0x0;var _0x5a6cb0=_0x3ed8[_0xef8146];return _0x5a6cb0;};'use strict';var multer=require(_0x83ed('0x0'));var util=require(_0x83ed('0x1'));var path=require(_0x83ed('0x2'));var timeout=require(_0x83ed('0x3'));var express=require('express');var router=express[_0x83ed('0x4')]();var auth=require(_0x83ed('0x5'));var interaction=require(_0x83ed('0x6'));var config=require('../../config/environment');var controller=require(_0x83ed('0x7'));router[_0x83ed('0x8')]('/',auth['isAuthenticated'](),controller[_0x83ed('0x9')]);router[_0x83ed('0x8')](_0x83ed('0xa'),auth[_0x83ed('0xb')](),controller['show']);router[_0x83ed('0xc')]('/',auth[_0x83ed('0xb')](),controller[_0x83ed('0xd')]);router['put'](_0x83ed('0xa'),auth[_0x83ed('0xb')](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x83ed('0xe')]);module[_0x83ed('0xf')]=router;