Built motion from commit (unavailable).|2.5.7
[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 _0xc2e1=['show','/:id/configurations','getFields','create','post','put','update','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./intDynamics365Account.controller','get','isAuthenticated','/:id'];(function(_0x358de0,_0x319365){var _0x83f818=function(_0x233786){while(--_0x233786){_0x358de0['push'](_0x358de0['shift']());}};_0x83f818(++_0x319365);}(_0xc2e1,0x13a));var _0x1c2e=function(_0x3fb23b,_0x4ee81f){_0x3fb23b=_0x3fb23b-0x0;var _0xc01a25=_0xc2e1[_0x3fb23b];return _0xc01a25;};'use strict';var multer=require(_0x1c2e('0x0'));var util=require('util');var path=require(_0x1c2e('0x1'));var timeout=require(_0x1c2e('0x2'));var express=require('express');var router=express[_0x1c2e('0x3')]();var auth=require(_0x1c2e('0x4'));var interaction=require(_0x1c2e('0x5'));var config=require('../../config/environment');var controller=require(_0x1c2e('0x6'));router[_0x1c2e('0x7')]('/',auth[_0x1c2e('0x8')](),controller['index']);router[_0x1c2e('0x7')](_0x1c2e('0x9'),auth['isAuthenticated'](),controller[_0x1c2e('0xa')]);router[_0x1c2e('0x7')](_0x1c2e('0xb'),auth[_0x1c2e('0x8')](),controller['getConfigurations']);router['get']('/:id/fields',auth[_0x1c2e('0x8')](),controller[_0x1c2e('0xc')]);router['post']('/',auth[_0x1c2e('0x8')](),controller[_0x1c2e('0xd')]);router[_0x1c2e('0xe')](_0x1c2e('0xb'),auth['isAuthenticated'](),controller['addConfiguration']);router[_0x1c2e('0xf')](_0x1c2e('0x9'),auth['isAuthenticated'](),controller[_0x1c2e('0x10')]);router['delete'](_0x1c2e('0x9'),auth[_0x1c2e('0x8')](),controller['destroy']);module[_0x1c2e('0x11')]=router;