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 _0x086a=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','post','put','update','delete','destroy','exports','multer','util','path','Router'];(function(_0x4f6285,_0xaa94e0){var _0x44cc29=function(_0x2a865a){while(--_0x2a865a){_0x4f6285['push'](_0x4f6285['shift']());}};_0x44cc29(++_0xaa94e0);}(_0x086a,0xf8));var _0xa086=function(_0xc83098,_0x2259f6){_0xc83098=_0xc83098-0x0;var _0x20b5b0=_0x086a[_0xc83098];return _0x20b5b0;};'use strict';var multer=require(_0xa086('0x0'));var util=require(_0xa086('0x1'));var path=require(_0xa086('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xa086('0x3')]();var fs_extra=require(_0xa086('0x4'));var auth=require(_0xa086('0x5'));var interaction=require(_0xa086('0x6'));var config=require(_0xa086('0x7'));var controller=require('./intSugarcrmField.controller');router[_0xa086('0x8')]('/',auth[_0xa086('0x9')](),controller[_0xa086('0xa')]);router[_0xa086('0x8')](_0xa086('0xb'),auth[_0xa086('0x9')](),controller['show']);router[_0xa086('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0xa086('0xd')](_0xa086('0xb'),auth[_0xa086('0x9')](),controller[_0xa086('0xe')]);router[_0xa086('0xf')](_0xa086('0xb'),auth['isAuthenticated'](),controller[_0xa086('0x10')]);module[_0xa086('0x11')]=router;