2a927b2a436831d5a92b5a4a6e9a384a656be5cc
[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 _0xba1c=['getDescriptions','post','put','/:id','update','delete','exports','multer','util','path','express','Router','../../components/interaction/service','./intDynamics365Configuration.controller','index','get','isAuthenticated','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions'];(function(_0x22ece0,_0x5d7c26){var _0x390143=function(_0x12785c){while(--_0x12785c){_0x22ece0['push'](_0x22ece0['shift']());}};_0x390143(++_0x5d7c26);}(_0xba1c,0x18e));var _0xcba1=function(_0x36a314,_0xdf22ab){_0x36a314=_0x36a314-0x0;var _0x1a0ac8=_0xba1c[_0x36a314];return _0x1a0ac8;};'use strict';var multer=require(_0xcba1('0x0'));var util=require(_0xcba1('0x1'));var path=require(_0xcba1('0x2'));var timeout=require('connect-timeout');var express=require(_0xcba1('0x3'));var router=express[_0xcba1('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xcba1('0x5'));var config=require('../../config/environment');var controller=require(_0xcba1('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0xcba1('0x7')]);router[_0xcba1('0x8')]('/:id',auth[_0xcba1('0x9')](),controller[_0xcba1('0xa')]);router[_0xcba1('0x8')](_0xcba1('0xb'),auth[_0xcba1('0x9')](),controller[_0xcba1('0xc')]);router[_0xcba1('0x8')](_0xcba1('0xd'),auth[_0xcba1('0x9')](),controller[_0xcba1('0xe')]);router[_0xcba1('0x8')](_0xcba1('0xf'),auth[_0xcba1('0x9')](),controller[_0xcba1('0x10')]);router[_0xcba1('0x11')]('/',auth[_0xcba1('0x9')](),controller['create']);router[_0xcba1('0x12')](_0xcba1('0x13'),auth[_0xcba1('0x9')](),controller[_0xcba1('0x14')]);router[_0xcba1('0x15')](_0xcba1('0x13'),auth[_0xcba1('0x9')](),controller['destroy']);module[_0xcba1('0x16')]=router;