2872b969763c8e48f6f87f06b6af45c43d601420
[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 _0x43f4=['../../config/environment','get','index','/:id','isAuthenticated','show','/:id/fields','getFields','create','post','/:id/configurations','addConfiguration','put','delete','exports','path','connect-timeout','Router','../../components/auth/service'];(function(_0x8cb419,_0x307ca8){var _0x18b31e=function(_0x2af47d){while(--_0x2af47d){_0x8cb419['push'](_0x8cb419['shift']());}};_0x18b31e(++_0x307ca8);}(_0x43f4,0x119));var _0x443f=function(_0x561983,_0x52f9ec){_0x561983=_0x561983-0x0;var _0xe10517=_0x43f4[_0x561983];return _0xe10517;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x443f('0x0'));var timeout=require(_0x443f('0x1'));var express=require('express');var router=express[_0x443f('0x2')]();var auth=require(_0x443f('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x443f('0x4'));var controller=require('./intFreshdeskAccount.controller');router[_0x443f('0x5')]('/',auth['isAuthenticated'](),controller[_0x443f('0x6')]);router[_0x443f('0x5')](_0x443f('0x7'),auth[_0x443f('0x8')](),controller[_0x443f('0x9')]);router[_0x443f('0x5')]('/:id/configurations',auth[_0x443f('0x8')](),controller['getConfigurations']);router[_0x443f('0x5')](_0x443f('0xa'),auth['isAuthenticated'](),controller[_0x443f('0xb')]);router['post']('/',auth[_0x443f('0x8')](),controller[_0x443f('0xc')]);router[_0x443f('0xd')](_0x443f('0xe'),auth[_0x443f('0x8')](),controller[_0x443f('0xf')]);router[_0x443f('0x10')](_0x443f('0x7'),auth['isAuthenticated'](),controller['update']);router[_0x443f('0x11')](_0x443f('0x7'),auth[_0x443f('0x8')](),controller['destroy']);module[_0x443f('0x12')]=router;