Built motion from commit 9d1906d1.|2.5.40
[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 _0xe62d=['index','get','/:id','/:id/fields','/:id/subjects','getSubjects','getDescriptions','post','update','delete','exports','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','./intDynamics365Configuration.controller','isAuthenticated'];(function(_0x52121d,_0x1d1704){var _0x448627=function(_0x495bf0){while(--_0x495bf0){_0x52121d['push'](_0x52121d['shift']());}};_0x448627(++_0x1d1704);}(_0xe62d,0xb6));var _0xde62=function(_0x10d44a,_0x4a421a){_0x10d44a=_0x10d44a-0x0;var _0x199e2b=_0xe62d[_0x10d44a];return _0x199e2b;};'use strict';var multer=require('multer');var util=require(_0xde62('0x0'));var path=require('path');var timeout=require(_0xde62('0x1'));var express=require(_0xde62('0x2'));var router=express[_0xde62('0x3')]();var fs_extra=require(_0xde62('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xde62('0x5'));var config=require('../../config/environment');var controller=require(_0xde62('0x6'));router['get']('/',auth[_0xde62('0x7')](),controller[_0xde62('0x8')]);router[_0xde62('0x9')](_0xde62('0xa'),auth['isAuthenticated'](),controller['show']);router[_0xde62('0x9')](_0xde62('0xb'),auth[_0xde62('0x7')](),controller['getFields']);router[_0xde62('0x9')](_0xde62('0xc'),auth[_0xde62('0x7')](),controller[_0xde62('0xd')]);router['get']('/:id/descriptions',auth[_0xde62('0x7')](),controller[_0xde62('0xe')]);router[_0xde62('0xf')]('/',auth[_0xde62('0x7')](),controller['create']);router['put']('/:id',auth[_0xde62('0x7')](),controller[_0xde62('0x10')]);router[_0xde62('0x11')](_0xde62('0xa'),auth[_0xde62('0x7')](),controller['destroy']);module[_0xde62('0x12')]=router;