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 _0xc301=['create','put','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','get','isAuthenticated','/:id','post'];(function(_0x51657b,_0x31369a){var _0x5d5c49=function(_0x563eb8){while(--_0x563eb8){_0x51657b['push'](_0x51657b['shift']());}};_0x5d5c49(++_0x31369a);}(_0xc301,0xa6));var _0x1c30=function(_0x1d9aa0,_0x272488){_0x1d9aa0=_0x1d9aa0-0x0;var _0x226868=_0xc301[_0x1d9aa0];return _0x226868;};'use strict';var multer=require(_0x1c30('0x0'));var util=require(_0x1c30('0x1'));var path=require('path');var timeout=require(_0x1c30('0x2'));var express=require(_0x1c30('0x3'));var router=express[_0x1c30('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x1c30('0x5'));var config=require('../../config/environment');var controller=require('./intFreshsalesField.controller');router[_0x1c30('0x6')]('/',auth[_0x1c30('0x7')](),controller['index']);router[_0x1c30('0x6')](_0x1c30('0x8'),auth[_0x1c30('0x7')](),controller['show']);router[_0x1c30('0x9')]('/',auth['isAuthenticated'](),controller[_0x1c30('0xa')]);router[_0x1c30('0xb')]('/:id',auth[_0x1c30('0x7')](),controller[_0x1c30('0xc')]);router[_0x1c30('0xd')](_0x1c30('0x8'),auth['isAuthenticated'](),controller[_0x1c30('0xe')]);module[_0x1c30('0xf')]=router;