ca98265644f0520f37ea3255e1e1e11dc832dbcc
[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 _0x05de=['getFields','post','addConfiguration','/:id','update','delete','destroy','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','/:id/configurations','getConfigurations'];(function(_0x48bab9,_0x3e30f8){var _0x381ad1=function(_0x449dff){while(--_0x449dff){_0x48bab9['push'](_0x48bab9['shift']());}};_0x381ad1(++_0x3e30f8);}(_0x05de,0x85));var _0xe05d=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x05de[_0x14add3];return _0x4a174f;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xe05d('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xe05d('0x1')]();var auth=require(_0xe05d('0x2'));var interaction=require(_0xe05d('0x3'));var config=require(_0xe05d('0x4'));var controller=require('./intFreshdeskAccount.controller');router[_0xe05d('0x5')]('/',auth[_0xe05d('0x6')](),controller[_0xe05d('0x7')]);router[_0xe05d('0x5')]('/:id',auth[_0xe05d('0x6')](),controller[_0xe05d('0x8')]);router['get'](_0xe05d('0x9'),auth[_0xe05d('0x6')](),controller[_0xe05d('0xa')]);router[_0xe05d('0x5')]('/:id/fields',auth[_0xe05d('0x6')](),controller[_0xe05d('0xb')]);router[_0xe05d('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0xe05d('0xc')]('/:id/configurations',auth[_0xe05d('0x6')](),controller[_0xe05d('0xd')]);router['put'](_0xe05d('0xe'),auth[_0xe05d('0x6')](),controller[_0xe05d('0xf')]);router[_0xe05d('0x10')](_0xe05d('0xe'),auth['isAuthenticated'](),controller[_0xe05d('0x11')]);module['exports']=router;