438b988fc16b24baceebd37f90fa982acc569102
[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 _0xbb9a=['put','delete','destroy','exports','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Configuration.controller','get','index','/:id','/:id/fields','isAuthenticated','getFields','/:id/descriptions','getDescriptions','post','create'];(function(_0x96849d,_0x2dd842){var _0x93a791=function(_0x2f3554){while(--_0x2f3554){_0x96849d['push'](_0x96849d['shift']());}};_0x93a791(++_0x2dd842);}(_0xbb9a,0x164));var _0xabb9=function(_0x1141cb,_0x3c4383){_0x1141cb=_0x1141cb-0x0;var _0x1c8048=_0xbb9a[_0x1141cb];return _0x1c8048;};'use strict';var multer=require(_0xabb9('0x0'));var util=require('util');var path=require(_0xabb9('0x1'));var timeout=require(_0xabb9('0x2'));var express=require(_0xabb9('0x3'));var router=express['Router']();var auth=require(_0xabb9('0x4'));var interaction=require(_0xabb9('0x5'));var config=require(_0xabb9('0x6'));var controller=require(_0xabb9('0x7'));router[_0xabb9('0x8')]('/',auth['isAuthenticated'](),controller[_0xabb9('0x9')]);router[_0xabb9('0x8')](_0xabb9('0xa'),auth['isAuthenticated'](),controller['show']);router[_0xabb9('0x8')](_0xabb9('0xb'),auth[_0xabb9('0xc')](),controller[_0xabb9('0xd')]);router[_0xabb9('0x8')]('/:id/subjects',auth[_0xabb9('0xc')](),controller['getSubjects']);router['get'](_0xabb9('0xe'),auth['isAuthenticated'](),controller[_0xabb9('0xf')]);router[_0xabb9('0x10')]('/',auth[_0xabb9('0xc')](),controller[_0xabb9('0x11')]);router[_0xabb9('0x12')](_0xabb9('0xa'),auth[_0xabb9('0xc')](),controller['update']);router[_0xabb9('0x13')](_0xabb9('0xa'),auth[_0xabb9('0xc')](),controller[_0xabb9('0x14')]);module[_0xabb9('0x15')]=router;