fce55eadc0ac21b4220cfed6899c4fa2568d6bb7
[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 _0x0ae5=['create','put','update','destroy','exports','multer','util','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','show','/:id/fields','getFields','/:id/subjects','/:id/descriptions','getDescriptions','post'];(function(_0x4cae82,_0x5d00eb){var _0x55067f=function(_0x19ad9f){while(--_0x19ad9f){_0x4cae82['push'](_0x4cae82['shift']());}};_0x55067f(++_0x5d00eb);}(_0x0ae5,0x16a));var _0x50ae=function(_0x2f3737,_0xde6b61){_0x2f3737=_0x2f3737-0x0;var _0x2c85b1=_0x0ae5[_0x2f3737];return _0x2c85b1;};'use strict';var multer=require(_0x50ae('0x0'));var util=require(_0x50ae('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x50ae('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x50ae('0x3'));var interaction=require(_0x50ae('0x4'));var config=require(_0x50ae('0x5'));var controller=require('./intDynamics365Configuration.controller');router[_0x50ae('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0x50ae('0x6')](_0x50ae('0x7'),auth[_0x50ae('0x8')](),controller[_0x50ae('0x9')]);router[_0x50ae('0x6')](_0x50ae('0xa'),auth[_0x50ae('0x8')](),controller[_0x50ae('0xb')]);router['get'](_0x50ae('0xc'),auth['isAuthenticated'](),controller['getSubjects']);router['get'](_0x50ae('0xd'),auth['isAuthenticated'](),controller[_0x50ae('0xe')]);router[_0x50ae('0xf')]('/',auth['isAuthenticated'](),controller[_0x50ae('0x10')]);router[_0x50ae('0x11')]('/:id',auth[_0x50ae('0x8')](),controller[_0x50ae('0x12')]);router['delete'](_0x50ae('0x7'),auth[_0x50ae('0x8')](),controller[_0x50ae('0x13')]);module[_0x50ae('0x14')]=router;