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 _0xa592=['path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller','get','isAuthenticated','/:id','show','create','put','update','destroy','exports','util'];(function(_0x30520b,_0x2451bd){var _0x25483a=function(_0x5c96cc){while(--_0x5c96cc){_0x30520b['push'](_0x30520b['shift']());}};_0x25483a(++_0x2451bd);}(_0xa592,0xa9));var _0x2a59=function(_0x3c8dcf,_0xafbd40){_0x3c8dcf=_0x3c8dcf-0x0;var _0x4f3a71=_0xa592[_0x3c8dcf];return _0x4f3a71;};'use strict';var multer=require('multer');var util=require(_0x2a59('0x0'));var path=require(_0x2a59('0x1'));var timeout=require('connect-timeout');var express=require(_0x2a59('0x2'));var router=express['Router']();var fs_extra=require(_0x2a59('0x3'));var auth=require(_0x2a59('0x4'));var interaction=require(_0x2a59('0x5'));var config=require(_0x2a59('0x6'));var controller=require(_0x2a59('0x7'));router[_0x2a59('0x8')]('/',auth[_0x2a59('0x9')](),controller['index']);router['get'](_0x2a59('0xa'),auth[_0x2a59('0x9')](),controller[_0x2a59('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x2a59('0xc')]);router[_0x2a59('0xd')](_0x2a59('0xa'),auth['isAuthenticated'](),controller[_0x2a59('0xe')]);router['delete'](_0x2a59('0xa'),auth[_0x2a59('0x9')](),controller[_0x2a59('0xf')]);module[_0x2a59('0x10')]=router;