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