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 _0x167e=['Router','../../components/auth/service','../../components/interaction/service','./intSugarcrmConfiguration.controller','isAuthenticated','index','get','/:id','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','put','update','delete','destroy','multer','util','path','connect-timeout','express'];(function(_0x3ceabd,_0x29d2b9){var _0x2826a5=function(_0x34fcf0){while(--_0x34fcf0){_0x3ceabd['push'](_0x3ceabd['shift']());}};_0x2826a5(++_0x29d2b9);}(_0x167e,0xa3));var _0xe167=function(_0x4d1d1b,_0x555caa){_0x4d1d1b=_0x4d1d1b-0x0;var _0x21f464=_0x167e[_0x4d1d1b];return _0x21f464;};'use strict';var multer=require(_0xe167('0x0'));var util=require(_0xe167('0x1'));var path=require(_0xe167('0x2'));var timeout=require(_0xe167('0x3'));var express=require(_0xe167('0x4'));var router=express[_0xe167('0x5')]();var auth=require(_0xe167('0x6'));var interaction=require(_0xe167('0x7'));var config=require('../../config/environment');var controller=require(_0xe167('0x8'));router['get']('/',auth[_0xe167('0x9')](),controller[_0xe167('0xa')]);router[_0xe167('0xb')](_0xe167('0xc'),auth[_0xe167('0x9')](),controller['show']);router[_0xe167('0xb')]('/:id/fields',auth[_0xe167('0x9')](),controller[_0xe167('0xd')]);router[_0xe167('0xb')](_0xe167('0xe'),auth[_0xe167('0x9')](),controller[_0xe167('0xf')]);router[_0xe167('0xb')](_0xe167('0x10'),auth['isAuthenticated'](),controller[_0xe167('0x11')]);router[_0xe167('0x12')]('/',auth['isAuthenticated'](),controller[_0xe167('0x13')]);router[_0xe167('0x14')](_0xe167('0xc'),auth[_0xe167('0x9')](),controller[_0xe167('0x15')]);router[_0xe167('0x16')](_0xe167('0xc'),auth[_0xe167('0x9')](),controller[_0xe167('0x17')]);module['exports']=router;