Built motion from commit 753c950e.|2.5.42
[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 _0x42b8=['addConfiguration','put','update','destroy','exports','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Account.controller','get','isAuthenticated','/:id','show','/:id/configurations','post'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x42b8,0xc3));var _0x842b=function(_0x8c43de,_0x90ff31){_0x8c43de=_0x8c43de-0x0;var _0xa6591b=_0x42b8[_0x8c43de];return _0xa6591b;};'use strict';var multer=require('multer');var util=require(_0x842b('0x0'));var path=require(_0x842b('0x1'));var timeout=require('connect-timeout');var express=require(_0x842b('0x2'));var router=express['Router']();var fs_extra=require(_0x842b('0x3'));var auth=require(_0x842b('0x4'));var interaction=require(_0x842b('0x5'));var config=require(_0x842b('0x6'));var controller=require(_0x842b('0x7'));router[_0x842b('0x8')]('/',auth[_0x842b('0x9')](),controller['index']);router[_0x842b('0x8')](_0x842b('0xa'),auth[_0x842b('0x9')](),controller[_0x842b('0xb')]);router['get'](_0x842b('0xc'),auth[_0x842b('0x9')](),controller['getConfigurations']);router['get']('/:id/fields',auth[_0x842b('0x9')](),controller['getFields']);router[_0x842b('0xd')]('/',auth[_0x842b('0x9')](),controller['create']);router[_0x842b('0xd')](_0x842b('0xc'),auth[_0x842b('0x9')](),controller[_0x842b('0xe')]);router[_0x842b('0xf')](_0x842b('0xa'),auth['isAuthenticated'](),controller[_0x842b('0x10')]);router['delete'](_0x842b('0xa'),auth[_0x842b('0x9')](),controller[_0x842b('0x11')]);module[_0x842b('0x12')]=router;