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