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