1d70b2688eef81486285628f148f135ab3fab614
[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 _0x8c51=['./intDynamics365Configuration.controller','isAuthenticated','/:id','get','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','post','put','update','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x4f343e,_0x3baaaf){var _0x7488ee=function(_0x54227f){while(--_0x54227f){_0x4f343e['push'](_0x4f343e['shift']());}};_0x7488ee(++_0x3baaaf);}(_0x8c51,0x100));var _0x18c5=function(_0x51f3d1,_0x5eec2f){_0x51f3d1=_0x51f3d1-0x0;var _0x574468=_0x8c51[_0x51f3d1];return _0x574468;};'use strict';var multer=require('multer');var util=require(_0x18c5('0x0'));var path=require(_0x18c5('0x1'));var timeout=require(_0x18c5('0x2'));var express=require(_0x18c5('0x3'));var router=express[_0x18c5('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x18c5('0x5'));var interaction=require(_0x18c5('0x6'));var config=require(_0x18c5('0x7'));var controller=require(_0x18c5('0x8'));router['get']('/',auth[_0x18c5('0x9')](),controller['index']);router['get'](_0x18c5('0xa'),auth[_0x18c5('0x9')](),controller['show']);router[_0x18c5('0xb')](_0x18c5('0xc'),auth['isAuthenticated'](),controller[_0x18c5('0xd')]);router['get'](_0x18c5('0xe'),auth[_0x18c5('0x9')](),controller[_0x18c5('0xf')]);router[_0x18c5('0xb')](_0x18c5('0x10'),auth[_0x18c5('0x9')](),controller['getDescriptions']);router[_0x18c5('0x11')]('/',auth[_0x18c5('0x9')](),controller['create']);router[_0x18c5('0x12')]('/:id',auth[_0x18c5('0x9')](),controller[_0x18c5('0x13')]);router['delete'](_0x18c5('0xa'),auth[_0x18c5('0x9')](),controller[_0x18c5('0x14')]);module[_0x18c5('0x15')]=router;