9efa5be9014051244ecb27599c1f5aa6bd1a8609
[motion2.git] / server / api / intDynamics365Configuration / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xf401=['util','path','connect-timeout','Router','../../components/auth/service','../../config/environment','./intDynamics365Configuration.controller','get','isAuthenticated','/:id','/:id/fields','getFields','/:id/subjects','getSubjects','post','update','destroy','exports','multer'];(function(_0x933b2d,_0x316827){var _0x3c9d9b=function(_0x472e0e){while(--_0x472e0e){_0x933b2d['push'](_0x933b2d['shift']());}};_0x3c9d9b(++_0x316827);}(_0xf401,0x1c7));var _0x1f40=function(_0x6ca1db,_0x569d05){_0x6ca1db=_0x6ca1db-0x0;var _0x5bcc1b=_0xf401[_0x6ca1db];return _0x5bcc1b;};'use strict';var multer=require(_0x1f40('0x0'));var util=require(_0x1f40('0x1'));var path=require(_0x1f40('0x2'));var timeout=require(_0x1f40('0x3'));var express=require('express');var router=express[_0x1f40('0x4')]();var auth=require(_0x1f40('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x1f40('0x6'));var controller=require(_0x1f40('0x7'));router[_0x1f40('0x8')]('/',auth[_0x1f40('0x9')](),controller['index']);router['get'](_0x1f40('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x1f40('0x8')](_0x1f40('0xb'),auth[_0x1f40('0x9')](),controller[_0x1f40('0xc')]);router[_0x1f40('0x8')](_0x1f40('0xd'),auth['isAuthenticated'](),controller[_0x1f40('0xe')]);router[_0x1f40('0x8')]('/:id/descriptions',auth['isAuthenticated'](),controller['getDescriptions']);router[_0x1f40('0xf')]('/',auth[_0x1f40('0x9')](),controller['create']);router['put'](_0x1f40('0xa'),auth[_0x1f40('0x9')](),controller[_0x1f40('0x10')]);router['delete'](_0x1f40('0xa'),auth[_0x1f40('0x9')](),controller[_0x1f40('0x11')]);module[_0x1f40('0x12')]=router;