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 _0xcf1a=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller','get','isAuthenticated','index','/:id','show','create','put','update','delete','destroy','exports','multer','util','path','express'];(function(_0x425eda,_0x204f4e){var _0x3f4d52=function(_0x275577){while(--_0x275577){_0x425eda['push'](_0x425eda['shift']());}};_0x3f4d52(++_0x204f4e);}(_0xcf1a,0x1a0));var _0xacf1=function(_0x28094e,_0x177dea){_0x28094e=_0x28094e-0x0;var _0x391994=_0xcf1a[_0x28094e];return _0x391994;};'use strict';var multer=require(_0xacf1('0x0'));var util=require(_0xacf1('0x1'));var path=require(_0xacf1('0x2'));var timeout=require('connect-timeout');var express=require(_0xacf1('0x3'));var router=express[_0xacf1('0x4')]();var auth=require(_0xacf1('0x5'));var interaction=require(_0xacf1('0x6'));var config=require(_0xacf1('0x7'));var controller=require(_0xacf1('0x8'));router[_0xacf1('0x9')]('/',auth[_0xacf1('0xa')](),controller[_0xacf1('0xb')]);router[_0xacf1('0x9')](_0xacf1('0xc'),auth['isAuthenticated'](),controller[_0xacf1('0xd')]);router['post']('/',auth[_0xacf1('0xa')](),controller[_0xacf1('0xe')]);router[_0xacf1('0xf')](_0xacf1('0xc'),auth[_0xacf1('0xa')](),controller[_0xacf1('0x10')]);router[_0xacf1('0x11')]('/:id',auth[_0xacf1('0xa')](),controller[_0xacf1('0x12')]);module[_0xacf1('0x13')]=router;