beb9e57d510640e7dd1faa1f9a8d2fd5aefc0b6f
[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 _0xe091=['/:id','getConfigurations','/:id/fields','getFields','post','create','/:id/configurations','addConfiguration','put','update','delete','exports','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Account.controller','get','isAuthenticated'];(function(_0x2ec02c,_0x5f1a25){var _0x57cb1c=function(_0x778504){while(--_0x778504){_0x2ec02c['push'](_0x2ec02c['shift']());}};_0x57cb1c(++_0x5f1a25);}(_0xe091,0x132));var _0x1e09=function(_0x17b9e3,_0x4526f0){_0x17b9e3=_0x17b9e3-0x0;var _0x25adaa=_0xe091[_0x17b9e3];return _0x25adaa;};'use strict';var multer=require('multer');var util=require(_0x1e09('0x0'));var path=require(_0x1e09('0x1'));var timeout=require(_0x1e09('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0x1e09('0x3'));var interaction=require(_0x1e09('0x4'));var config=require(_0x1e09('0x5'));var controller=require(_0x1e09('0x6'));router[_0x1e09('0x7')]('/',auth[_0x1e09('0x8')](),controller['index']);router[_0x1e09('0x7')](_0x1e09('0x9'),auth[_0x1e09('0x8')](),controller['show']);router[_0x1e09('0x7')]('/:id/configurations',auth[_0x1e09('0x8')](),controller[_0x1e09('0xa')]);router[_0x1e09('0x7')](_0x1e09('0xb'),auth['isAuthenticated'](),controller[_0x1e09('0xc')]);router[_0x1e09('0xd')]('/',auth[_0x1e09('0x8')](),controller[_0x1e09('0xe')]);router[_0x1e09('0xd')](_0x1e09('0xf'),auth[_0x1e09('0x8')](),controller[_0x1e09('0x10')]);router[_0x1e09('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x1e09('0x12')]);router[_0x1e09('0x13')](_0x1e09('0x9'),auth[_0x1e09('0x8')](),controller['destroy']);module[_0x1e09('0x14')]=router;