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 _0x2a85=['post','put','update','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show'];(function(_0x476659,_0x3546ec){var _0x3934e9=function(_0x4ac633){while(--_0x4ac633){_0x476659['push'](_0x476659['shift']());}};_0x3934e9(++_0x3546ec);}(_0x2a85,0x1be));var _0x52a8=function(_0x4af710,_0x569a47){_0x4af710=_0x4af710-0x0;var _0x472d7d=_0x2a85[_0x4af710];return _0x472d7d;};'use strict';var multer=require(_0x52a8('0x0'));var util=require(_0x52a8('0x1'));var path=require(_0x52a8('0x2'));var timeout=require(_0x52a8('0x3'));var express=require('express');var router=express[_0x52a8('0x4')]();var fs_extra=require(_0x52a8('0x5'));var auth=require(_0x52a8('0x6'));var interaction=require(_0x52a8('0x7'));var config=require(_0x52a8('0x8'));var controller=require('./intSugarcrmField.controller');router[_0x52a8('0x9')]('/',auth[_0x52a8('0xa')](),controller['index']);router['get'](_0x52a8('0xb'),auth[_0x52a8('0xa')](),controller[_0x52a8('0xc')]);router[_0x52a8('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x52a8('0xe')]('/:id',auth[_0x52a8('0xa')](),controller[_0x52a8('0xf')]);router['delete']('/:id',auth[_0x52a8('0xa')](),controller['destroy']);module[_0x52a8('0x10')]=router;