Built motion from commit 87cd5f02.|2.5.48
[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 _0x459c=['util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Configuration.controller','isAuthenticated','index','show','get','/:id/fields','getFields','getSubjects','post','create','put','/:id','update','destroy','exports'];(function(_0x504163,_0x227959){var _0x21e8ce=function(_0x48a6c1){while(--_0x48a6c1){_0x504163['push'](_0x504163['shift']());}};_0x21e8ce(++_0x227959);}(_0x459c,0x12b));var _0xc459=function(_0xca6eea,_0x3e9bba){_0xca6eea=_0xca6eea-0x0;var _0x1a6f55=_0x459c[_0xca6eea];return _0x1a6f55;};'use strict';var multer=require('multer');var util=require(_0xc459('0x0'));var path=require('path');var timeout=require(_0xc459('0x1'));var express=require(_0xc459('0x2'));var router=express[_0xc459('0x3')]();var fs_extra=require(_0xc459('0x4'));var auth=require(_0xc459('0x5'));var interaction=require(_0xc459('0x6'));var config=require(_0xc459('0x7'));var controller=require(_0xc459('0x8'));router['get']('/',auth[_0xc459('0x9')](),controller[_0xc459('0xa')]);router['get']('/:id',auth[_0xc459('0x9')](),controller[_0xc459('0xb')]);router[_0xc459('0xc')](_0xc459('0xd'),auth[_0xc459('0x9')](),controller[_0xc459('0xe')]);router[_0xc459('0xc')]('/:id/subjects',auth[_0xc459('0x9')](),controller[_0xc459('0xf')]);router[_0xc459('0xc')]('/:id/descriptions',auth[_0xc459('0x9')](),controller['getDescriptions']);router[_0xc459('0x10')]('/',auth['isAuthenticated'](),controller[_0xc459('0x11')]);router[_0xc459('0x12')](_0xc459('0x13'),auth['isAuthenticated'](),controller[_0xc459('0x14')]);router['delete'](_0xc459('0x13'),auth['isAuthenticated'](),controller[_0xc459('0x15')]);module[_0xc459('0x16')]=router;