Built motion from commit (unavailable).|2.5.21
[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 _0xce8a=['Router','../../components/auth/service','../../config/environment','isAuthenticated','get','/:id','/:id/fields','getFields','/:id/subjects','/:id/descriptions','getDescriptions','post','create','put','update','destroy','exports','multer','util','path','express'];(function(_0x5a6ef9,_0x1c56d3){var _0x133ba2=function(_0x556eea){while(--_0x556eea){_0x5a6ef9['push'](_0x5a6ef9['shift']());}};_0x133ba2(++_0x1c56d3);}(_0xce8a,0x122));var _0xace8=function(_0x4780e0,_0x4e5814){_0x4780e0=_0x4780e0-0x0;var _0xd72347=_0xce8a[_0x4780e0];return _0xd72347;};'use strict';var multer=require(_0xace8('0x0'));var util=require(_0xace8('0x1'));var path=require(_0xace8('0x2'));var timeout=require('connect-timeout');var express=require(_0xace8('0x3'));var router=express[_0xace8('0x4')]();var auth=require(_0xace8('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xace8('0x6'));var controller=require('./intDynamics365Configuration.controller');router['get']('/',auth[_0xace8('0x7')](),controller['index']);router[_0xace8('0x8')](_0xace8('0x9'),auth[_0xace8('0x7')](),controller['show']);router['get'](_0xace8('0xa'),auth[_0xace8('0x7')](),controller[_0xace8('0xb')]);router[_0xace8('0x8')](_0xace8('0xc'),auth[_0xace8('0x7')](),controller['getSubjects']);router[_0xace8('0x8')](_0xace8('0xd'),auth['isAuthenticated'](),controller[_0xace8('0xe')]);router[_0xace8('0xf')]('/',auth['isAuthenticated'](),controller[_0xace8('0x10')]);router[_0xace8('0x11')](_0xace8('0x9'),auth['isAuthenticated'](),controller[_0xace8('0x12')]);router['delete'](_0xace8('0x9'),auth[_0xace8('0x7')](),controller[_0xace8('0x13')]);module[_0xace8('0x14')]=router;