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 _0xe1cb=['express','Router','../../components/auth/service','../../components/interaction/service','./intSugarcrmField.controller','isAuthenticated','get','post','create','put','/:id','update','delete','destroy','multer','util','path','connect-timeout'];(function(_0xa62277,_0x501839){var _0x4f4ff3=function(_0x2b3021){while(--_0x2b3021){_0xa62277['push'](_0xa62277['shift']());}};_0x4f4ff3(++_0x501839);}(_0xe1cb,0x11c));var _0xbe1c=function(_0x874252,_0x2a4950){_0x874252=_0x874252-0x0;var _0x54fc3e=_0xe1cb[_0x874252];return _0x54fc3e;};'use strict';var multer=require(_0xbe1c('0x0'));var util=require(_0xbe1c('0x1'));var path=require(_0xbe1c('0x2'));var timeout=require(_0xbe1c('0x3'));var express=require(_0xbe1c('0x4'));var router=express[_0xbe1c('0x5')]();var auth=require(_0xbe1c('0x6'));var interaction=require(_0xbe1c('0x7'));var config=require('../../config/environment');var controller=require(_0xbe1c('0x8'));router['get']('/',auth[_0xbe1c('0x9')](),controller['index']);router[_0xbe1c('0xa')]('/:id',auth[_0xbe1c('0x9')](),controller['show']);router[_0xbe1c('0xb')]('/',auth[_0xbe1c('0x9')](),controller[_0xbe1c('0xc')]);router[_0xbe1c('0xd')](_0xbe1c('0xe'),auth['isAuthenticated'](),controller[_0xbe1c('0xf')]);router[_0xbe1c('0x10')]('/:id',auth['isAuthenticated'](),controller[_0xbe1c('0x11')]);module['exports']=router;