da742d6156457d4907da9bdb2c50637858253d25
[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 _0xb020=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./intFreshdeskAccount.controller','isAuthenticated','index','get','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','put','/:id','update','delete','destroy','exports','multer','path'];(function(_0x38537f,_0x252124){var _0x141e23=function(_0x2809b5){while(--_0x2809b5){_0x38537f['push'](_0x38537f['shift']());}};_0x141e23(++_0x252124);}(_0xb020,0x14e));var _0x0b02=function(_0xd09668,_0x1435b2){_0xd09668=_0xd09668-0x0;var _0x68726=_0xb020[_0xd09668];return _0x68726;};'use strict';var multer=require(_0x0b02('0x0'));var util=require('util');var path=require(_0x0b02('0x1'));var timeout=require(_0x0b02('0x2'));var express=require(_0x0b02('0x3'));var router=express[_0x0b02('0x4')]();var fs_extra=require(_0x0b02('0x5'));var auth=require(_0x0b02('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x0b02('0x7'));var controller=require(_0x0b02('0x8'));router['get']('/',auth[_0x0b02('0x9')](),controller[_0x0b02('0xa')]);router[_0x0b02('0xb')]('/:id',auth[_0x0b02('0x9')](),controller['show']);router[_0x0b02('0xb')](_0x0b02('0xc'),auth['isAuthenticated'](),controller[_0x0b02('0xd')]);router[_0x0b02('0xb')](_0x0b02('0xe'),auth['isAuthenticated'](),controller[_0x0b02('0xf')]);router[_0x0b02('0x10')]('/',auth[_0x0b02('0x9')](),controller[_0x0b02('0x11')]);router[_0x0b02('0x10')](_0x0b02('0xc'),auth[_0x0b02('0x9')](),controller['addConfiguration']);router[_0x0b02('0x12')](_0x0b02('0x13'),auth[_0x0b02('0x9')](),controller[_0x0b02('0x14')]);router[_0x0b02('0x15')]('/:id',auth[_0x0b02('0x9')](),controller[_0x0b02('0x16')]);module[_0x0b02('0x17')]=router;