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 _0x8a12=['Router','fs-extra','../../components/interaction/service','../../config/environment','./intVtigerField.controller','get','isAuthenticated','/:id','show','post','create','put','delete','destroy','multer','util','path','connect-timeout','express'];(function(_0x13f48d,_0x300afe){var _0x26a21d=function(_0x1ac55e){while(--_0x1ac55e){_0x13f48d['push'](_0x13f48d['shift']());}};_0x26a21d(++_0x300afe);}(_0x8a12,0x164));var _0x28a1=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x8a12[_0x19e35c];return _0x3e1fe8;};'use strict';var multer=require(_0x28a1('0x0'));var util=require(_0x28a1('0x1'));var path=require(_0x28a1('0x2'));var timeout=require(_0x28a1('0x3'));var express=require(_0x28a1('0x4'));var router=express[_0x28a1('0x5')]();var fs_extra=require(_0x28a1('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x28a1('0x7'));var config=require(_0x28a1('0x8'));var controller=require(_0x28a1('0x9'));router[_0x28a1('0xa')]('/',auth[_0x28a1('0xb')](),controller['index']);router['get'](_0x28a1('0xc'),auth[_0x28a1('0xb')](),controller[_0x28a1('0xd')]);router[_0x28a1('0xe')]('/',auth[_0x28a1('0xb')](),controller[_0x28a1('0xf')]);router[_0x28a1('0x10')](_0x28a1('0xc'),auth[_0x28a1('0xb')](),controller['update']);router[_0x28a1('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x28a1('0x12')]);module['exports']=router;