Built motion from commit 8356fca3.|2.6.19
[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 _0x7044=['isAuthenticated','/:id','show','/:id/fields','getSubjects','/:id/descriptions','post','create','put','delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','get'];(function(_0x5d5ab2,_0x1d3681){var _0xb8fe37=function(_0x29a76c){while(--_0x29a76c){_0x5d5ab2['push'](_0x5d5ab2['shift']());}};_0xb8fe37(++_0x1d3681);}(_0x7044,0x147));var _0x4704=function(_0x4f9c08,_0x4d83df){_0x4f9c08=_0x4f9c08-0x0;var _0x4da7e5=_0x7044[_0x4f9c08];return _0x4da7e5;};'use strict';var multer=require(_0x4704('0x0'));var util=require(_0x4704('0x1'));var path=require(_0x4704('0x2'));var timeout=require('connect-timeout');var express=require(_0x4704('0x3'));var router=express[_0x4704('0x4')]();var fs_extra=require(_0x4704('0x5'));var auth=require(_0x4704('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x4704('0x7'));var controller=require('./intDynamics365Configuration.controller');router[_0x4704('0x8')]('/',auth[_0x4704('0x9')](),controller['index']);router['get'](_0x4704('0xa'),auth[_0x4704('0x9')](),controller[_0x4704('0xb')]);router[_0x4704('0x8')](_0x4704('0xc'),auth['isAuthenticated'](),controller['getFields']);router[_0x4704('0x8')]('/:id/subjects',auth[_0x4704('0x9')](),controller[_0x4704('0xd')]);router[_0x4704('0x8')](_0x4704('0xe'),auth[_0x4704('0x9')](),controller['getDescriptions']);router[_0x4704('0xf')]('/',auth[_0x4704('0x9')](),controller[_0x4704('0x10')]);router[_0x4704('0x11')](_0x4704('0xa'),auth[_0x4704('0x9')](),controller['update']);router[_0x4704('0x12')](_0x4704('0xa'),auth[_0x4704('0x9')](),controller[_0x4704('0x13')]);module[_0x4704('0x14')]=router;