Built motion from commit (unavailable).|2.5.4
[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 _0x6f48=['connect-timeout','express','../../components/auth/service','../../config/environment','isAuthenticated','index','get','show','getSubjects','/:id/descriptions','getDescriptions','create','put','/:id','delete','destroy','exports','multer','util'];(function(_0x41126d,_0x59d7a6){var _0x4dcf72=function(_0x47d968){while(--_0x47d968){_0x41126d['push'](_0x41126d['shift']());}};_0x4dcf72(++_0x59d7a6);}(_0x6f48,0xe2));var _0x86f4=function(_0x16e752,_0x52b990){_0x16e752=_0x16e752-0x0;var _0x13da5b=_0x6f48[_0x16e752];return _0x13da5b;};'use strict';var multer=require(_0x86f4('0x0'));var util=require(_0x86f4('0x1'));var path=require('path');var timeout=require(_0x86f4('0x2'));var express=require(_0x86f4('0x3'));var router=express['Router']();var auth=require(_0x86f4('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x86f4('0x5'));var controller=require('./intDynamics365Configuration.controller');router['get']('/',auth[_0x86f4('0x6')](),controller[_0x86f4('0x7')]);router[_0x86f4('0x8')]('/:id',auth[_0x86f4('0x6')](),controller[_0x86f4('0x9')]);router[_0x86f4('0x8')]('/:id/fields',auth[_0x86f4('0x6')](),controller['getFields']);router['get']('/:id/subjects',auth[_0x86f4('0x6')](),controller[_0x86f4('0xa')]);router['get'](_0x86f4('0xb'),auth['isAuthenticated'](),controller[_0x86f4('0xc')]);router['post']('/',auth[_0x86f4('0x6')](),controller[_0x86f4('0xd')]);router[_0x86f4('0xe')](_0x86f4('0xf'),auth[_0x86f4('0x6')](),controller['update']);router[_0x86f4('0x10')](_0x86f4('0xf'),auth['isAuthenticated'](),controller[_0x86f4('0x11')]);module[_0x86f4('0x12')]=router;