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 _0xa936=['put','delete','destroy','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','./intDynamics365Configuration.controller','isAuthenticated','index','get','/:id','show','/:id/fields','getFields','/:id/subjects','/:id/descriptions','getDescriptions'];(function(_0x5bb3ac,_0x1a0008){var _0x1b88ca=function(_0x4dc3d5){while(--_0x4dc3d5){_0x5bb3ac['push'](_0x5bb3ac['shift']());}};_0x1b88ca(++_0x1a0008);}(_0xa936,0x107));var _0x6a93=function(_0x82129b,_0x484ae9){_0x82129b=_0x82129b-0x0;var _0x2ae5dc=_0xa936[_0x82129b];return _0x2ae5dc;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x6a93('0x0'));var timeout=require(_0x6a93('0x1'));var express=require(_0x6a93('0x2'));var router=express['Router']();var fs_extra=require(_0x6a93('0x3'));var auth=require(_0x6a93('0x4'));var interaction=require(_0x6a93('0x5'));var config=require('../../config/environment');var controller=require(_0x6a93('0x6'));router['get']('/',auth[_0x6a93('0x7')](),controller[_0x6a93('0x8')]);router[_0x6a93('0x9')](_0x6a93('0xa'),auth[_0x6a93('0x7')](),controller[_0x6a93('0xb')]);router['get'](_0x6a93('0xc'),auth[_0x6a93('0x7')](),controller[_0x6a93('0xd')]);router[_0x6a93('0x9')](_0x6a93('0xe'),auth['isAuthenticated'](),controller['getSubjects']);router[_0x6a93('0x9')](_0x6a93('0xf'),auth[_0x6a93('0x7')](),controller[_0x6a93('0x10')]);router['post']('/',auth[_0x6a93('0x7')](),controller['create']);router[_0x6a93('0x11')](_0x6a93('0xa'),auth[_0x6a93('0x7')](),controller['update']);router[_0x6a93('0x12')]('/:id',auth[_0x6a93('0x7')](),controller[_0x6a93('0x13')]);module['exports']=router;