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 _0xe695=['post','create','put','/:id','update','exports','util','path','connect-timeout','Router','../../components/auth/service','../../config/environment','get','index','isAuthenticated','show'];(function(_0x20f2b1,_0x49398e){var _0x359064=function(_0x3eb4b5){while(--_0x3eb4b5){_0x20f2b1['push'](_0x20f2b1['shift']());}};_0x359064(++_0x49398e);}(_0xe695,0x76));var _0x5e69=function(_0x525255,_0x23b85b){_0x525255=_0x525255-0x0;var _0x1a0051=_0xe695[_0x525255];return _0x1a0051;};'use strict';var multer=require('multer');var util=require(_0x5e69('0x0'));var path=require(_0x5e69('0x1'));var timeout=require(_0x5e69('0x2'));var express=require('express');var router=express[_0x5e69('0x3')]();var auth=require(_0x5e69('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x5e69('0x5'));var controller=require('./intFreshsalesField.controller');router[_0x5e69('0x6')]('/',auth['isAuthenticated'](),controller[_0x5e69('0x7')]);router[_0x5e69('0x6')]('/:id',auth[_0x5e69('0x8')](),controller[_0x5e69('0x9')]);router[_0x5e69('0xa')]('/',auth['isAuthenticated'](),controller[_0x5e69('0xb')]);router[_0x5e69('0xc')](_0x5e69('0xd'),auth[_0x5e69('0x8')](),controller[_0x5e69('0xe')]);router['delete']('/:id',auth[_0x5e69('0x8')](),controller['destroy']);module[_0x5e69('0xf')]=router;