585092597f1be3693de03821d50607a704bf1d39
[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 _0xe469=['/:id/descriptions','post','create','put','/:id','update','destroy','exports','multer','util','path','Router','../../components/interaction/service','../../config/environment','./intDynamics365Configuration.controller','get','isAuthenticated','index','show','/:id/fields','getFields'];(function(_0x13b60b,_0x417a39){var _0x406c40=function(_0x3715e8){while(--_0x3715e8){_0x13b60b['push'](_0x13b60b['shift']());}};_0x406c40(++_0x417a39);}(_0xe469,0xef));var _0x9e46=function(_0xa711b,_0x81a280){_0xa711b=_0xa711b-0x0;var _0x1f061d=_0xe469[_0xa711b];return _0x1f061d;};'use strict';var multer=require(_0x9e46('0x0'));var util=require(_0x9e46('0x1'));var path=require(_0x9e46('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x9e46('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x9e46('0x4'));var config=require(_0x9e46('0x5'));var controller=require(_0x9e46('0x6'));router[_0x9e46('0x7')]('/',auth[_0x9e46('0x8')](),controller[_0x9e46('0x9')]);router[_0x9e46('0x7')]('/:id',auth[_0x9e46('0x8')](),controller[_0x9e46('0xa')]);router[_0x9e46('0x7')](_0x9e46('0xb'),auth[_0x9e46('0x8')](),controller[_0x9e46('0xc')]);router[_0x9e46('0x7')]('/:id/subjects',auth['isAuthenticated'](),controller['getSubjects']);router[_0x9e46('0x7')](_0x9e46('0xd'),auth[_0x9e46('0x8')](),controller['getDescriptions']);router[_0x9e46('0xe')]('/',auth[_0x9e46('0x8')](),controller[_0x9e46('0xf')]);router[_0x9e46('0x10')](_0x9e46('0x11'),auth['isAuthenticated'](),controller[_0x9e46('0x12')]);router['delete']('/:id',auth[_0x9e46('0x8')](),controller[_0x9e46('0x13')]);module[_0x9e46('0x14')]=router;