3cc85883e4ffb05d089fe874e2276d15bca64c23
[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 _0x07a2=['destroy','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Configuration.controller','get','/:id','isAuthenticated','show','/:id/fields','getSubjects','getDescriptions','post','create','put','update','delete'];(function(_0x2d144d,_0x43501e){var _0x498753=function(_0x41904f){while(--_0x41904f){_0x2d144d['push'](_0x2d144d['shift']());}};_0x498753(++_0x43501e);}(_0x07a2,0x12c));var _0x207a=function(_0x218994,_0x2cf487){_0x218994=_0x218994-0x0;var _0x3f350b=_0x07a2[_0x218994];return _0x3f350b;};'use strict';var multer=require(_0x207a('0x0'));var util=require(_0x207a('0x1'));var path=require('path');var timeout=require(_0x207a('0x2'));var express=require(_0x207a('0x3'));var router=express[_0x207a('0x4')]();var fs_extra=require(_0x207a('0x5'));var auth=require(_0x207a('0x6'));var interaction=require(_0x207a('0x7'));var config=require(_0x207a('0x8'));var controller=require(_0x207a('0x9'));router[_0x207a('0xa')]('/',auth['isAuthenticated'](),controller['index']);router[_0x207a('0xa')](_0x207a('0xb'),auth[_0x207a('0xc')](),controller[_0x207a('0xd')]);router[_0x207a('0xa')](_0x207a('0xe'),auth['isAuthenticated'](),controller['getFields']);router[_0x207a('0xa')]('/:id/subjects',auth['isAuthenticated'](),controller[_0x207a('0xf')]);router['get']('/:id/descriptions',auth[_0x207a('0xc')](),controller[_0x207a('0x10')]);router[_0x207a('0x11')]('/',auth['isAuthenticated'](),controller[_0x207a('0x12')]);router[_0x207a('0x13')](_0x207a('0xb'),auth['isAuthenticated'](),controller[_0x207a('0x14')]);router[_0x207a('0x15')](_0x207a('0xb'),auth[_0x207a('0xc')](),controller[_0x207a('0x16')]);module['exports']=router;