Built motion from commit 25580385.|2.6.2
[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 _0xe78f=['post','create','update','delete','destroy','multer','util','path','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','isAuthenticated','index','/:id','show','get','/:id/fields','/:id/subjects','/:id/descriptions','getDescriptions'];(function(_0x26a90e,_0x3e3ca2){var _0x34bb2b=function(_0x2e3d4f){while(--_0x2e3d4f){_0x26a90e['push'](_0x26a90e['shift']());}};_0x34bb2b(++_0x3e3ca2);}(_0xe78f,0x1d3));var _0xfe78=function(_0x523ea8,_0x32446d){_0x523ea8=_0x523ea8-0x0;var _0x4a8303=_0xe78f[_0x523ea8];return _0x4a8303;};'use strict';var multer=require(_0xfe78('0x0'));var util=require(_0xfe78('0x1'));var path=require(_0xfe78('0x2'));var timeout=require(_0xfe78('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xfe78('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xfe78('0x5'));var config=require(_0xfe78('0x6'));var controller=require('./intDynamics365Configuration.controller');router['get']('/',auth[_0xfe78('0x7')](),controller[_0xfe78('0x8')]);router['get'](_0xfe78('0x9'),auth[_0xfe78('0x7')](),controller[_0xfe78('0xa')]);router[_0xfe78('0xb')](_0xfe78('0xc'),auth[_0xfe78('0x7')](),controller['getFields']);router[_0xfe78('0xb')](_0xfe78('0xd'),auth[_0xfe78('0x7')](),controller['getSubjects']);router[_0xfe78('0xb')](_0xfe78('0xe'),auth[_0xfe78('0x7')](),controller[_0xfe78('0xf')]);router[_0xfe78('0x10')]('/',auth[_0xfe78('0x7')](),controller[_0xfe78('0x11')]);router['put'](_0xfe78('0x9'),auth[_0xfe78('0x7')](),controller[_0xfe78('0x12')]);router[_0xfe78('0x13')](_0xfe78('0x9'),auth[_0xfe78('0x7')](),controller[_0xfe78('0x14')]);module['exports']=router;