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 _0x8a6f=['update','exports','multer','util','path','Router','../../components/auth/service','./intSalesforceConfiguration.controller','get','isAuthenticated','index','/:id','getFields','/:id/subjects','/:id/descriptions','getDescriptions','post','create'];(function(_0xeef54f,_0x3ff0dd){var _0x32d1bb=function(_0x829324){while(--_0x829324){_0xeef54f['push'](_0xeef54f['shift']());}};_0x32d1bb(++_0x3ff0dd);}(_0x8a6f,0x1d6));var _0xf8a6=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x8a6f[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xf8a6('0x0'));var util=require(_0xf8a6('0x1'));var path=require(_0xf8a6('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xf8a6('0x3')]();var auth=require(_0xf8a6('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xf8a6('0x5'));router[_0xf8a6('0x6')]('/',auth[_0xf8a6('0x7')](),controller[_0xf8a6('0x8')]);router['get'](_0xf8a6('0x9'),auth[_0xf8a6('0x7')](),controller['show']);router[_0xf8a6('0x6')]('/:id/fields',auth[_0xf8a6('0x7')](),controller[_0xf8a6('0xa')]);router[_0xf8a6('0x6')](_0xf8a6('0xb'),auth[_0xf8a6('0x7')](),controller['getSubjects']);router[_0xf8a6('0x6')](_0xf8a6('0xc'),auth[_0xf8a6('0x7')](),controller[_0xf8a6('0xd')]);router[_0xf8a6('0xe')]('/',auth['isAuthenticated'](),controller[_0xf8a6('0xf')]);router['put'](_0xf8a6('0x9'),auth[_0xf8a6('0x7')](),controller[_0xf8a6('0x10')]);router['delete']('/:id',auth[_0xf8a6('0x7')](),controller['destroy']);module[_0xf8a6('0x11')]=router;