5f4a705d84ba5bb8ba51507fa510bc5920d6d97f
[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 _0x340e=['isAuthenticated','get','/:id','show','getFields','getSubjects','/:id/descriptions','getDescriptions','post','create','put','delete','destroy','exports','multer','path','Router','fs-extra','../../components/interaction/service','../../config/environment','./intDynamics365Configuration.controller'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x340e,0x1dc));var _0xe340=function(_0x4f47f8,_0x30a466){_0x4f47f8=_0x4f47f8-0x0;var _0x23f5fc=_0x340e[_0x4f47f8];return _0x23f5fc;};'use strict';var multer=require(_0xe340('0x0'));var util=require('util');var path=require(_0xe340('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xe340('0x2')]();var fs_extra=require(_0xe340('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xe340('0x4'));var config=require(_0xe340('0x5'));var controller=require(_0xe340('0x6'));router['get']('/',auth[_0xe340('0x7')](),controller['index']);router[_0xe340('0x8')](_0xe340('0x9'),auth[_0xe340('0x7')](),controller[_0xe340('0xa')]);router[_0xe340('0x8')]('/:id/fields',auth[_0xe340('0x7')](),controller[_0xe340('0xb')]);router[_0xe340('0x8')]('/:id/subjects',auth[_0xe340('0x7')](),controller[_0xe340('0xc')]);router[_0xe340('0x8')](_0xe340('0xd'),auth['isAuthenticated'](),controller[_0xe340('0xe')]);router[_0xe340('0xf')]('/',auth[_0xe340('0x7')](),controller[_0xe340('0x10')]);router[_0xe340('0x11')](_0xe340('0x9'),auth[_0xe340('0x7')](),controller['update']);router[_0xe340('0x12')](_0xe340('0x9'),auth[_0xe340('0x7')](),controller[_0xe340('0x13')]);module[_0xe340('0x14')]=router;