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 _0x1272=['connect-timeout','express','../../components/interaction/service','../../config/environment','./intDynamics365Configuration.controller','isAuthenticated','get','/:id','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','put','update','delete','destroy','util'];(function(_0x111d9b,_0x10b37d){var _0x2c78ec=function(_0x193256){while(--_0x193256){_0x111d9b['push'](_0x111d9b['shift']());}};_0x2c78ec(++_0x10b37d);}(_0x1272,0x1df));var _0x2127=function(_0x53bf11,_0x3acb5e){_0x53bf11=_0x53bf11-0x0;var _0x3a4f47=_0x1272[_0x53bf11];return _0x3a4f47;};'use strict';var multer=require('multer');var util=require(_0x2127('0x0'));var path=require('path');var timeout=require(_0x2127('0x1'));var express=require(_0x2127('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x2127('0x3'));var config=require(_0x2127('0x4'));var controller=require(_0x2127('0x5'));router['get']('/',auth[_0x2127('0x6')](),controller['index']);router[_0x2127('0x7')](_0x2127('0x8'),auth[_0x2127('0x6')](),controller['show']);router['get'](_0x2127('0x9'),auth[_0x2127('0x6')](),controller[_0x2127('0xa')]);router['get'](_0x2127('0xb'),auth['isAuthenticated'](),controller[_0x2127('0xc')]);router[_0x2127('0x7')](_0x2127('0xd'),auth[_0x2127('0x6')](),controller[_0x2127('0xe')]);router[_0x2127('0xf')]('/',auth[_0x2127('0x6')](),controller['create']);router[_0x2127('0x10')]('/:id',auth[_0x2127('0x6')](),controller[_0x2127('0x11')]);router[_0x2127('0x12')](_0x2127('0x8'),auth[_0x2127('0x6')](),controller[_0x2127('0x13')]);module['exports']=router;