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 _0x0f26=['express','Router','../../config/environment','./intFreshsalesField.controller','get','index','/:id','isAuthenticated','show','post','create','put','update','delete','destroy','exports','multer','util'];(function(_0x5c3635,_0x26bf49){var _0x59676d=function(_0x3c8e36){while(--_0x3c8e36){_0x5c3635['push'](_0x5c3635['shift']());}};_0x59676d(++_0x26bf49);}(_0x0f26,0x10c));var _0x60f2=function(_0x6d56e9,_0x2589e8){_0x6d56e9=_0x6d56e9-0x0;var _0x1bd9ae=_0x0f26[_0x6d56e9];return _0x1bd9ae;};'use strict';var multer=require(_0x60f2('0x0'));var util=require(_0x60f2('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x60f2('0x2'));var router=express[_0x60f2('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x60f2('0x4'));var controller=require(_0x60f2('0x5'));router[_0x60f2('0x6')]('/',auth['isAuthenticated'](),controller[_0x60f2('0x7')]);router[_0x60f2('0x6')](_0x60f2('0x8'),auth[_0x60f2('0x9')](),controller[_0x60f2('0xa')]);router[_0x60f2('0xb')]('/',auth[_0x60f2('0x9')](),controller[_0x60f2('0xc')]);router[_0x60f2('0xd')](_0x60f2('0x8'),auth['isAuthenticated'](),controller[_0x60f2('0xe')]);router[_0x60f2('0xf')](_0x60f2('0x8'),auth[_0x60f2('0x9')](),controller[_0x60f2('0x10')]);module[_0x60f2('0x11')]=router;