Built motion from commit 85328c08.|2.5.50
[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 _0xe615=['getSubjects','post','create','put','/:id','update','delete','destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Configuration.controller','isAuthenticated','index','show','get'];(function(_0x71e086,_0x4ad22f){var _0x44a08=function(_0x53b3e3){while(--_0x53b3e3){_0x71e086['push'](_0x71e086['shift']());}};_0x44a08(++_0x4ad22f);}(_0xe615,0xb9));var _0x5e61=function(_0x18e5c7,_0x392a80){_0x18e5c7=_0x18e5c7-0x0;var _0x55f2f0=_0xe615[_0x18e5c7];return _0x55f2f0;};'use strict';var multer=require(_0x5e61('0x0'));var util=require(_0x5e61('0x1'));var path=require('path');var timeout=require(_0x5e61('0x2'));var express=require(_0x5e61('0x3'));var router=express['Router']();var fs_extra=require(_0x5e61('0x4'));var auth=require(_0x5e61('0x5'));var interaction=require(_0x5e61('0x6'));var config=require(_0x5e61('0x7'));var controller=require(_0x5e61('0x8'));router['get']('/',auth[_0x5e61('0x9')](),controller[_0x5e61('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x5e61('0xb')]);router[_0x5e61('0xc')]('/:id/fields',auth[_0x5e61('0x9')](),controller['getFields']);router['get']('/:id/subjects',auth[_0x5e61('0x9')](),controller[_0x5e61('0xd')]);router[_0x5e61('0xc')]('/:id/descriptions',auth[_0x5e61('0x9')](),controller['getDescriptions']);router[_0x5e61('0xe')]('/',auth['isAuthenticated'](),controller[_0x5e61('0xf')]);router[_0x5e61('0x10')](_0x5e61('0x11'),auth[_0x5e61('0x9')](),controller[_0x5e61('0x12')]);router[_0x5e61('0x13')](_0x5e61('0x11'),auth[_0x5e61('0x9')](),controller[_0x5e61('0x14')]);module[_0x5e61('0x15')]=router;