a56b0f7d26b195a9f8be5870d65424325c61536c
[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 _0x94b6=['update','delete','exports','multer','path','connect-timeout','express','Router','../../components/interaction/service','./intDynamics365Configuration.controller','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects','getDescriptions','post','create','put'];(function(_0x7d1469,_0x27e617){var _0x125e08=function(_0x597023){while(--_0x597023){_0x7d1469['push'](_0x7d1469['shift']());}};_0x125e08(++_0x27e617);}(_0x94b6,0xbb));var _0x694b=function(_0x32d457,_0x1a39c9){_0x32d457=_0x32d457-0x0;var _0x338386=_0x94b6[_0x32d457];return _0x338386;};'use strict';var multer=require(_0x694b('0x0'));var util=require('util');var path=require(_0x694b('0x1'));var timeout=require(_0x694b('0x2'));var express=require(_0x694b('0x3'));var router=express[_0x694b('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x694b('0x5'));var config=require('../../config/environment');var controller=require(_0x694b('0x6'));router[_0x694b('0x7')]('/',auth[_0x694b('0x8')](),controller[_0x694b('0x9')]);router[_0x694b('0x7')](_0x694b('0xa'),auth[_0x694b('0x8')](),controller[_0x694b('0xb')]);router['get'](_0x694b('0xc'),auth['isAuthenticated'](),controller[_0x694b('0xd')]);router[_0x694b('0x7')](_0x694b('0xe'),auth[_0x694b('0x8')](),controller[_0x694b('0xf')]);router[_0x694b('0x7')]('/:id/descriptions',auth[_0x694b('0x8')](),controller[_0x694b('0x10')]);router[_0x694b('0x11')]('/',auth[_0x694b('0x8')](),controller[_0x694b('0x12')]);router[_0x694b('0x13')]('/:id',auth[_0x694b('0x8')](),controller[_0x694b('0x14')]);router[_0x694b('0x15')](_0x694b('0xa'),auth[_0x694b('0x8')](),controller['destroy']);module[_0x694b('0x16')]=router;