e9d3a4c46cb88bcf456aba35ce61c991e5439f6b
[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 _0x957e=['../../components/auth/service','../../components/interaction/service','./intFreshdeskAccount.controller','get','isAuthenticated','index','/:id','/:id/configurations','/:id/fields','getFields','post','create','addConfiguration','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x3b9973,_0xb2a8f8){var _0x4d2343=function(_0x15d676){while(--_0x15d676){_0x3b9973['push'](_0x3b9973['shift']());}};_0x4d2343(++_0xb2a8f8);}(_0x957e,0x14a));var _0xe957=function(_0x5e6cb8,_0x1d1eb5){_0x5e6cb8=_0x5e6cb8-0x0;var _0x41754f=_0x957e[_0x5e6cb8];return _0x41754f;};'use strict';var multer=require(_0xe957('0x0'));var util=require(_0xe957('0x1'));var path=require(_0xe957('0x2'));var timeout=require(_0xe957('0x3'));var express=require(_0xe957('0x4'));var router=express[_0xe957('0x5')]();var auth=require(_0xe957('0x6'));var interaction=require(_0xe957('0x7'));var config=require('../../config/environment');var controller=require(_0xe957('0x8'));router[_0xe957('0x9')]('/',auth[_0xe957('0xa')](),controller[_0xe957('0xb')]);router[_0xe957('0x9')](_0xe957('0xc'),auth[_0xe957('0xa')](),controller['show']);router['get'](_0xe957('0xd'),auth['isAuthenticated'](),controller['getConfigurations']);router['get'](_0xe957('0xe'),auth['isAuthenticated'](),controller[_0xe957('0xf')]);router[_0xe957('0x10')]('/',auth['isAuthenticated'](),controller[_0xe957('0x11')]);router[_0xe957('0x10')](_0xe957('0xd'),auth['isAuthenticated'](),controller[_0xe957('0x12')]);router[_0xe957('0x13')](_0xe957('0xc'),auth[_0xe957('0xa')](),controller[_0xe957('0x14')]);router[_0xe957('0x15')](_0xe957('0xc'),auth[_0xe957('0xa')](),controller[_0xe957('0x16')]);module[_0xe957('0x17')]=router;