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