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 _0x0911=['get','isAuthenticated','show','post','create','put','update','delete','/:id','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x1ffc25,_0x123ee2){var _0x83ea0a=function(_0x3e8e0a){while(--_0x3e8e0a){_0x1ffc25['push'](_0x1ffc25['shift']());}};_0x83ea0a(++_0x123ee2);}(_0x0911,0x128));var _0x1091=function(_0x3d1ce2,_0x2a9d26){_0x3d1ce2=_0x3d1ce2-0x0;var _0x43c682=_0x0911[_0x3d1ce2];return _0x43c682;};'use strict';var multer=require(_0x1091('0x0'));var util=require(_0x1091('0x1'));var path=require(_0x1091('0x2'));var timeout=require(_0x1091('0x3'));var express=require('express');var router=express[_0x1091('0x4')]();var auth=require(_0x1091('0x5'));var interaction=require(_0x1091('0x6'));var config=require(_0x1091('0x7'));var controller=require('./intSugarcrmField.controller');router[_0x1091('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x1091('0x8')]('/:id',auth[_0x1091('0x9')](),controller[_0x1091('0xa')]);router[_0x1091('0xb')]('/',auth[_0x1091('0x9')](),controller[_0x1091('0xc')]);router[_0x1091('0xd')]('/:id',auth[_0x1091('0x9')](),controller[_0x1091('0xe')]);router[_0x1091('0xf')](_0x1091('0x10'),auth[_0x1091('0x9')](),controller[_0x1091('0x11')]);module[_0x1091('0x12')]=router;