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