Built motion from commit fe909640.|2.6.8
[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 _0x20a1=['put','/:id','delete','destroy','exports','multer','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intDynamics365Configuration.controller','get','isAuthenticated','index','show','/:id/fields','getFields','getSubjects','/:id/descriptions','getDescriptions','create'];(function(_0x403947,_0x3877d9){var _0x2b8e1a=function(_0x2bc7f3){while(--_0x2bc7f3){_0x403947['push'](_0x403947['shift']());}};_0x2b8e1a(++_0x3877d9);}(_0x20a1,0x101));var _0x120a=function(_0x4142bb,_0x2257f3){_0x4142bb=_0x4142bb-0x0;var _0x50e304=_0x20a1[_0x4142bb];return _0x50e304;};'use strict';var multer=require(_0x120a('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x120a('0x1')]();var fs_extra=require(_0x120a('0x2'));var auth=require(_0x120a('0x3'));var interaction=require(_0x120a('0x4'));var config=require('../../config/environment');var controller=require(_0x120a('0x5'));router[_0x120a('0x6')]('/',auth[_0x120a('0x7')](),controller[_0x120a('0x8')]);router[_0x120a('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x120a('0x9')]);router[_0x120a('0x6')](_0x120a('0xa'),auth[_0x120a('0x7')](),controller[_0x120a('0xb')]);router[_0x120a('0x6')]('/:id/subjects',auth[_0x120a('0x7')](),controller[_0x120a('0xc')]);router[_0x120a('0x6')](_0x120a('0xd'),auth[_0x120a('0x7')](),controller[_0x120a('0xe')]);router['post']('/',auth[_0x120a('0x7')](),controller[_0x120a('0xf')]);router[_0x120a('0x10')](_0x120a('0x11'),auth[_0x120a('0x7')](),controller['update']);router[_0x120a('0x12')](_0x120a('0x11'),auth[_0x120a('0x7')](),controller[_0x120a('0x13')]);module[_0x120a('0x14')]=router;