Built motion from commit 1fa89557.|2.6.10
[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 _0x62fc=['fs-extra','./intDynamics365Configuration.controller','get','/:id','isAuthenticated','show','getFields','/:id/subjects','/:id/descriptions','getDescriptions','post','create','put','multer','util','connect-timeout','express','Router'];(function(_0x45366a,_0x172720){var _0x4748dc=function(_0x2367c5){while(--_0x2367c5){_0x45366a['push'](_0x45366a['shift']());}};_0x4748dc(++_0x172720);}(_0x62fc,0x9d));var _0xc62f=function(_0x3e17b1,_0x3eba9c){_0x3e17b1=_0x3e17b1-0x0;var _0x104b49=_0x62fc[_0x3e17b1];return _0x104b49;};'use strict';var multer=require(_0xc62f('0x0'));var util=require(_0xc62f('0x1'));var path=require('path');var timeout=require(_0xc62f('0x2'));var express=require(_0xc62f('0x3'));var router=express[_0xc62f('0x4')]();var fs_extra=require(_0xc62f('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xc62f('0x6'));router[_0xc62f('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0xc62f('0x7')](_0xc62f('0x8'),auth[_0xc62f('0x9')](),controller[_0xc62f('0xa')]);router['get']('/:id/fields',auth[_0xc62f('0x9')](),controller[_0xc62f('0xb')]);router[_0xc62f('0x7')](_0xc62f('0xc'),auth[_0xc62f('0x9')](),controller['getSubjects']);router[_0xc62f('0x7')](_0xc62f('0xd'),auth[_0xc62f('0x9')](),controller[_0xc62f('0xe')]);router[_0xc62f('0xf')]('/',auth[_0xc62f('0x9')](),controller[_0xc62f('0x10')]);router[_0xc62f('0x11')](_0xc62f('0x8'),auth[_0xc62f('0x9')](),controller['update']);router['delete']('/:id',auth[_0xc62f('0x9')](),controller['destroy']);module['exports']=router;