27cf12e528d2de0e0502a841e117c9db76e5695b
[motion2.git] / server / api / intDynamics365Account / 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 _0x7c8f=['create','/:id/configurations','addConfiguration','put','delete','exports','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','getConfigurations','/:id/fields','post'];(function(_0x132a19,_0x26fae6){var _0x33bf22=function(_0xf80837){while(--_0xf80837){_0x132a19['push'](_0x132a19['shift']());}};_0x33bf22(++_0x26fae6);}(_0x7c8f,0x1bf));var _0xf7c8=function(_0x232bfe,_0x20b341){_0x232bfe=_0x232bfe-0x0;var _0x2944dc=_0x7c8f[_0x232bfe];return _0x2944dc;};'use strict';var multer=require('multer');var util=require(_0xf7c8('0x0'));var path=require(_0xf7c8('0x1'));var timeout=require(_0xf7c8('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xf7c8('0x3'));var auth=require(_0xf7c8('0x4'));var interaction=require(_0xf7c8('0x5'));var config=require(_0xf7c8('0x6'));var controller=require('./intDynamics365Account.controller');router[_0xf7c8('0x7')]('/',auth[_0xf7c8('0x8')](),controller[_0xf7c8('0x9')]);router['get'](_0xf7c8('0xa'),auth[_0xf7c8('0x8')](),controller[_0xf7c8('0xb')]);router[_0xf7c8('0x7')]('/:id/configurations',auth[_0xf7c8('0x8')](),controller[_0xf7c8('0xc')]);router['get'](_0xf7c8('0xd'),auth[_0xf7c8('0x8')](),controller['getFields']);router[_0xf7c8('0xe')]('/',auth[_0xf7c8('0x8')](),controller[_0xf7c8('0xf')]);router[_0xf7c8('0xe')](_0xf7c8('0x10'),auth[_0xf7c8('0x8')](),controller[_0xf7c8('0x11')]);router[_0xf7c8('0x12')](_0xf7c8('0xa'),auth['isAuthenticated'](),controller['update']);router[_0xf7c8('0x13')]('/:id',auth[_0xf7c8('0x8')](),controller['destroy']);module[_0xf7c8('0x14')]=router;