da2198776a299e062ac3e0e8a97cbaa086af5d1b
[motion2.git] / server / api / intFreshdeskAccount / 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 _0x537a=['getConfigurations','/:id/fields','post','addConfiguration','put','/:id','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskAccount.controller','get','isAuthenticated','index'];(function(_0x158933,_0x316ff0){var _0x58fbe9=function(_0x240dc1){while(--_0x240dc1){_0x158933['push'](_0x158933['shift']());}};_0x58fbe9(++_0x316ff0);}(_0x537a,0x183));var _0xa537=function(_0x2961b2,_0x1741d7){_0x2961b2=_0x2961b2-0x0;var _0x3bd580=_0x537a[_0x2961b2];return _0x3bd580;};'use strict';var multer=require('multer');var util=require(_0xa537('0x0'));var path=require(_0xa537('0x1'));var timeout=require(_0xa537('0x2'));var express=require(_0xa537('0x3'));var router=express[_0xa537('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xa537('0x5'));var interaction=require(_0xa537('0x6'));var config=require(_0xa537('0x7'));var controller=require(_0xa537('0x8'));router[_0xa537('0x9')]('/',auth[_0xa537('0xa')](),controller[_0xa537('0xb')]);router[_0xa537('0x9')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xa537('0x9')]('/:id/configurations',auth[_0xa537('0xa')](),controller[_0xa537('0xc')]);router[_0xa537('0x9')](_0xa537('0xd'),auth[_0xa537('0xa')](),controller['getFields']);router['post']('/',auth[_0xa537('0xa')](),controller['create']);router[_0xa537('0xe')]('/:id/configurations',auth[_0xa537('0xa')](),controller[_0xa537('0xf')]);router[_0xa537('0x10')](_0xa537('0x11'),auth['isAuthenticated'](),controller['update']);router[_0xa537('0x12')](_0xa537('0x11'),auth[_0xa537('0xa')](),controller[_0xa537('0x13')]);module[_0xa537('0x14')]=router;