Built motion from commit (unavailable).|2.5.31
[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 _0x4191=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Configuration.controller','index','get','/:id','isAuthenticated','show','/:id/fields','getDescriptions','post','create','put','update','destroy','exports','util','path'];(function(_0x274639,_0xe55003){var _0x11521c=function(_0x512bef){while(--_0x512bef){_0x274639['push'](_0x274639['shift']());}};_0x11521c(++_0xe55003);}(_0x4191,0xc6));var _0x1419=function(_0x209d7f,_0x1fa4ad){_0x209d7f=_0x209d7f-0x0;var _0x2e103b=_0x4191[_0x209d7f];return _0x2e103b;};'use strict';var multer=require('multer');var util=require(_0x1419('0x0'));var path=require(_0x1419('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x1419('0x2'));var auth=require(_0x1419('0x3'));var interaction=require(_0x1419('0x4'));var config=require(_0x1419('0x5'));var controller=require(_0x1419('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x1419('0x7')]);router[_0x1419('0x8')](_0x1419('0x9'),auth[_0x1419('0xa')](),controller[_0x1419('0xb')]);router[_0x1419('0x8')](_0x1419('0xc'),auth[_0x1419('0xa')](),controller['getFields']);router[_0x1419('0x8')]('/:id/subjects',auth[_0x1419('0xa')](),controller['getSubjects']);router['get']('/:id/descriptions',auth[_0x1419('0xa')](),controller[_0x1419('0xd')]);router[_0x1419('0xe')]('/',auth[_0x1419('0xa')](),controller[_0x1419('0xf')]);router[_0x1419('0x10')](_0x1419('0x9'),auth[_0x1419('0xa')](),controller[_0x1419('0x11')]);router['delete'](_0x1419('0x9'),auth[_0x1419('0xa')](),controller[_0x1419('0x12')]);module[_0x1419('0x13')]=router;