Built motion from commit 3c2ce842.|2.6.31
[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 _0xef98=['../../components/interaction/service','../../config/environment','./intDynamics365Account.controller','isAuthenticated','index','get','show','/:id/configurations','getConfigurations','/:id/fields','getFields','create','addConfiguration','put','update','/:id','destroy','multer','connect-timeout','express','fs-extra','../../components/auth/service'];(function(_0x3d9e8f,_0x197be8){var _0x52dd70=function(_0xe97063){while(--_0xe97063){_0x3d9e8f['push'](_0x3d9e8f['shift']());}};_0x52dd70(++_0x197be8);}(_0xef98,0x1b3));var _0x8ef9=function(_0x5ad1e0,_0x28e0af){_0x5ad1e0=_0x5ad1e0-0x0;var _0xdc8c62=_0xef98[_0x5ad1e0];return _0xdc8c62;};'use strict';var multer=require(_0x8ef9('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x8ef9('0x1'));var express=require(_0x8ef9('0x2'));var router=express['Router']();var fs_extra=require(_0x8ef9('0x3'));var auth=require(_0x8ef9('0x4'));var interaction=require(_0x8ef9('0x5'));var config=require(_0x8ef9('0x6'));var controller=require(_0x8ef9('0x7'));router['get']('/',auth[_0x8ef9('0x8')](),controller[_0x8ef9('0x9')]);router[_0x8ef9('0xa')]('/:id',auth[_0x8ef9('0x8')](),controller[_0x8ef9('0xb')]);router['get'](_0x8ef9('0xc'),auth[_0x8ef9('0x8')](),controller[_0x8ef9('0xd')]);router[_0x8ef9('0xa')](_0x8ef9('0xe'),auth['isAuthenticated'](),controller[_0x8ef9('0xf')]);router['post']('/',auth[_0x8ef9('0x8')](),controller[_0x8ef9('0x10')]);router['post'](_0x8ef9('0xc'),auth[_0x8ef9('0x8')](),controller[_0x8ef9('0x11')]);router[_0x8ef9('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x8ef9('0x13')]);router['delete'](_0x8ef9('0x14'),auth[_0x8ef9('0x8')](),controller[_0x8ef9('0x15')]);module['exports']=router;