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 _0x98df=['exports','multer','path','connect-timeout','express','../../config/environment','./intSugarcrmField.controller','get','isAuthenticated','index','/:id','show','post','create','update','delete','destroy'];(function(_0x4fbfd9,_0x3ab91a){var _0x31dc94=function(_0x11e53b){while(--_0x11e53b){_0x4fbfd9['push'](_0x4fbfd9['shift']());}};_0x31dc94(++_0x3ab91a);}(_0x98df,0x9a));var _0xf98d=function(_0x15d9c9,_0x33ea68){_0x15d9c9=_0x15d9c9-0x0;var _0xd8ef55=_0x98df[_0x15d9c9];return _0xd8ef55;};'use strict';var multer=require(_0xf98d('0x0'));var util=require('util');var path=require(_0xf98d('0x1'));var timeout=require(_0xf98d('0x2'));var express=require(_0xf98d('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xf98d('0x4'));var controller=require(_0xf98d('0x5'));router[_0xf98d('0x6')]('/',auth[_0xf98d('0x7')](),controller[_0xf98d('0x8')]);router[_0xf98d('0x6')](_0xf98d('0x9'),auth[_0xf98d('0x7')](),controller[_0xf98d('0xa')]);router[_0xf98d('0xb')]('/',auth[_0xf98d('0x7')](),controller[_0xf98d('0xc')]);router['put'](_0xf98d('0x9'),auth[_0xf98d('0x7')](),controller[_0xf98d('0xd')]);router[_0xf98d('0xe')](_0xf98d('0x9'),auth[_0xf98d('0x7')](),controller[_0xf98d('0xf')]);module[_0xf98d('0x10')]=router;