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