c7bcc9b9921b3ebe43a5c479f92358c87276f4c6
[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 _0xc858=['post','addConfiguration','update','delete','exports','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Account.controller','isAuthenticated','index','/:id','show','get','/:id/configurations','getConfigurations','/:id/fields','create'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xc858,0xd4));var _0x8c85=function(_0x2daa59,_0x23bd79){_0x2daa59=_0x2daa59-0x0;var _0x58501d=_0xc858[_0x2daa59];return _0x58501d;};'use strict';var multer=require(_0x8c85('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x8c85('0x1'));var express=require(_0x8c85('0x2'));var router=express[_0x8c85('0x3')]();var fs_extra=require(_0x8c85('0x4'));var auth=require(_0x8c85('0x5'));var interaction=require(_0x8c85('0x6'));var config=require(_0x8c85('0x7'));var controller=require(_0x8c85('0x8'));router['get']('/',auth[_0x8c85('0x9')](),controller[_0x8c85('0xa')]);router['get'](_0x8c85('0xb'),auth[_0x8c85('0x9')](),controller[_0x8c85('0xc')]);router[_0x8c85('0xd')](_0x8c85('0xe'),auth[_0x8c85('0x9')](),controller[_0x8c85('0xf')]);router[_0x8c85('0xd')](_0x8c85('0x10'),auth[_0x8c85('0x9')](),controller['getFields']);router['post']('/',auth['isAuthenticated'](),controller[_0x8c85('0x11')]);router[_0x8c85('0x12')](_0x8c85('0xe'),auth[_0x8c85('0x9')](),controller[_0x8c85('0x13')]);router['put'](_0x8c85('0xb'),auth[_0x8c85('0x9')](),controller[_0x8c85('0x14')]);router[_0x8c85('0x15')](_0x8c85('0xb'),auth[_0x8c85('0x9')](),controller['destroy']);module[_0x8c85('0x16')]=router;