Built motion from commit 43538d75.|2.5.35
[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 _0xdc5d=['isAuthenticated','show','getFields','/:id/subjects','getSubjects','/:id/descriptions','post','/:id','update','delete','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get'];(function(_0x58b773,_0x15f572){var _0x2b3dc1=function(_0x15f15b){while(--_0x15f15b){_0x58b773['push'](_0x58b773['shift']());}};_0x2b3dc1(++_0x15f572);}(_0xdc5d,0x14d));var _0xddc5=function(_0x3ff4a3,_0xa5bfa6){_0x3ff4a3=_0x3ff4a3-0x0;var _0x38676f=_0xdc5d[_0x3ff4a3];return _0x38676f;};'use strict';var multer=require(_0xddc5('0x0'));var util=require(_0xddc5('0x1'));var path=require(_0xddc5('0x2'));var timeout=require(_0xddc5('0x3'));var express=require(_0xddc5('0x4'));var router=express[_0xddc5('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xddc5('0x6'));var interaction=require(_0xddc5('0x7'));var config=require('../../config/environment');var controller=require('./intDynamics365Configuration.controller');router[_0xddc5('0x8')]('/',auth[_0xddc5('0x9')](),controller['index']);router[_0xddc5('0x8')]('/:id',auth[_0xddc5('0x9')](),controller[_0xddc5('0xa')]);router['get']('/:id/fields',auth[_0xddc5('0x9')](),controller[_0xddc5('0xb')]);router[_0xddc5('0x8')](_0xddc5('0xc'),auth[_0xddc5('0x9')](),controller[_0xddc5('0xd')]);router[_0xddc5('0x8')](_0xddc5('0xe'),auth['isAuthenticated'](),controller['getDescriptions']);router[_0xddc5('0xf')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xddc5('0x10'),auth[_0xddc5('0x9')](),controller[_0xddc5('0x11')]);router[_0xddc5('0x12')](_0xddc5('0x10'),auth[_0xddc5('0x9')](),controller['destroy']);module['exports']=router;