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 _0x6a45=['multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','post','create','update','delete'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0x6a45,0x144));var _0x56a4=function(_0x470970,_0x58db2a){_0x470970=_0x470970-0x0;var _0x3fcaae=_0x6a45[_0x470970];return _0x3fcaae;};'use strict';var multer=require(_0x56a4('0x0'));var util=require(_0x56a4('0x1'));var path=require(_0x56a4('0x2'));var timeout=require(_0x56a4('0x3'));var express=require(_0x56a4('0x4'));var router=express[_0x56a4('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x56a4('0x6'));var interaction=require(_0x56a4('0x7'));var config=require(_0x56a4('0x8'));var controller=require('./intVtigerField.controller');router[_0x56a4('0x9')]('/',auth['isAuthenticated'](),controller[_0x56a4('0xa')]);router[_0x56a4('0x9')](_0x56a4('0xb'),auth[_0x56a4('0xc')](),controller[_0x56a4('0xd')]);router[_0x56a4('0xe')]('/',auth[_0x56a4('0xc')](),controller[_0x56a4('0xf')]);router['put'](_0x56a4('0xb'),auth['isAuthenticated'](),controller[_0x56a4('0x10')]);router[_0x56a4('0x11')](_0x56a4('0xb'),auth[_0x56a4('0xc')](),controller['destroy']);module['exports']=router;