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