aae5d18de2db48d9ef25768fd60f48d62b7dea86
[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 _0x546e=['util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Account.controller','get','isAuthenticated','/:id','show','/:id/configurations','getConfigurations','post','create','addConfiguration','update','delete','exports','multer'];(function(_0x3ef629,_0x1fcd65){var _0x21d0ed=function(_0x167508){while(--_0x167508){_0x3ef629['push'](_0x3ef629['shift']());}};_0x21d0ed(++_0x1fcd65);}(_0x546e,0xdb));var _0xe546=function(_0x5f0089,_0x227e2c){_0x5f0089=_0x5f0089-0x0;var _0x193892=_0x546e[_0x5f0089];return _0x193892;};'use strict';var multer=require(_0xe546('0x0'));var util=require(_0xe546('0x1'));var path=require(_0xe546('0x2'));var timeout=require('connect-timeout');var express=require(_0xe546('0x3'));var router=express[_0xe546('0x4')]();var fs_extra=require(_0xe546('0x5'));var auth=require(_0xe546('0x6'));var interaction=require(_0xe546('0x7'));var config=require(_0xe546('0x8'));var controller=require(_0xe546('0x9'));router[_0xe546('0xa')]('/',auth[_0xe546('0xb')](),controller['index']);router[_0xe546('0xa')](_0xe546('0xc'),auth['isAuthenticated'](),controller[_0xe546('0xd')]);router[_0xe546('0xa')](_0xe546('0xe'),auth['isAuthenticated'](),controller[_0xe546('0xf')]);router[_0xe546('0xa')]('/:id/fields',auth[_0xe546('0xb')](),controller['getFields']);router[_0xe546('0x10')]('/',auth['isAuthenticated'](),controller[_0xe546('0x11')]);router[_0xe546('0x10')](_0xe546('0xe'),auth['isAuthenticated'](),controller[_0xe546('0x12')]);router['put'](_0xe546('0xc'),auth['isAuthenticated'](),controller[_0xe546('0x13')]);router[_0xe546('0x14')](_0xe546('0xc'),auth[_0xe546('0xb')](),controller['destroy']);module[_0xe546('0x15')]=router;