Built motion from commit 44b1f254.|2.6.26
[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 _0x761c=['../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects','getDescriptions','create','update','destroy','exports','multer','path','connect-timeout','Router','fs-extra'];(function(_0x21e102,_0x49c6e4){var _0x9356bb=function(_0x2435c8){while(--_0x2435c8){_0x21e102['push'](_0x21e102['shift']());}};_0x9356bb(++_0x49c6e4);}(_0x761c,0x18a));var _0xc761=function(_0x5149b2,_0x2f1b52){_0x5149b2=_0x5149b2-0x0;var _0x6f2a85=_0x761c[_0x5149b2];return _0x6f2a85;};'use strict';var multer=require(_0xc761('0x0'));var util=require('util');var path=require(_0xc761('0x1'));var timeout=require(_0xc761('0x2'));var express=require('express');var router=express[_0xc761('0x3')]();var fs_extra=require(_0xc761('0x4'));var auth=require(_0xc761('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xc761('0x6'));var controller=require('./intDynamics365Configuration.controller');router[_0xc761('0x7')]('/',auth[_0xc761('0x8')](),controller[_0xc761('0x9')]);router[_0xc761('0x7')](_0xc761('0xa'),auth[_0xc761('0x8')](),controller[_0xc761('0xb')]);router['get'](_0xc761('0xc'),auth[_0xc761('0x8')](),controller[_0xc761('0xd')]);router[_0xc761('0x7')](_0xc761('0xe'),auth[_0xc761('0x8')](),controller[_0xc761('0xf')]);router['get']('/:id/descriptions',auth[_0xc761('0x8')](),controller[_0xc761('0x10')]);router['post']('/',auth['isAuthenticated'](),controller[_0xc761('0x11')]);router['put'](_0xc761('0xa'),auth['isAuthenticated'](),controller[_0xc761('0x12')]);router['delete'](_0xc761('0xa'),auth[_0xc761('0x8')](),controller[_0xc761('0x13')]);module[_0xc761('0x14')]=router;