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 _0x0b91=['destroy','multer','util','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./intSugarcrmConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/fields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','put','update'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x0b91,0xe7));var _0x10b9=function(_0x2ee220,_0x2ad972){_0x2ee220=_0x2ee220-0x0;var _0x14edca=_0x0b91[_0x2ee220];return _0x14edca;};'use strict';var multer=require(_0x10b9('0x0'));var util=require(_0x10b9('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x10b9('0x2'));var router=express[_0x10b9('0x3')]();var fs_extra=require(_0x10b9('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x10b9('0x5'));var config=require(_0x10b9('0x6'));var controller=require(_0x10b9('0x7'));router[_0x10b9('0x8')]('/',auth[_0x10b9('0x9')](),controller[_0x10b9('0xa')]);router[_0x10b9('0x8')](_0x10b9('0xb'),auth[_0x10b9('0x9')](),controller[_0x10b9('0xc')]);router[_0x10b9('0x8')](_0x10b9('0xd'),auth[_0x10b9('0x9')](),controller['getFields']);router[_0x10b9('0x8')](_0x10b9('0xe'),auth[_0x10b9('0x9')](),controller[_0x10b9('0xf')]);router[_0x10b9('0x8')](_0x10b9('0x10'),auth['isAuthenticated'](),controller[_0x10b9('0x11')]);router[_0x10b9('0x12')]('/',auth[_0x10b9('0x9')](),controller[_0x10b9('0x13')]);router[_0x10b9('0x14')](_0x10b9('0xb'),auth[_0x10b9('0x9')](),controller[_0x10b9('0x15')]);router['delete'](_0x10b9('0xb'),auth[_0x10b9('0x9')](),controller[_0x10b9('0x16')]);module['exports']=router;