60fea570bd5eb3be0153020a32b98f0c1d341787
[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 _0x570e=['../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/configurations','getFields','post','create','put','update','delete','destroy','multer','connect-timeout','express','Router','fs-extra'];(function(_0x1bd11a,_0x1f31c8){var _0x4239af=function(_0x2633c7){while(--_0x2633c7){_0x1bd11a['push'](_0x1bd11a['shift']());}};_0x4239af(++_0x1f31c8);}(_0x570e,0x19f));var _0xe570=function(_0x101152,_0x397ab0){_0x101152=_0x101152-0x0;var _0xe1c465=_0x570e[_0x101152];return _0xe1c465;};'use strict';var multer=require(_0xe570('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xe570('0x1'));var express=require(_0xe570('0x2'));var router=express[_0xe570('0x3')]();var fs_extra=require(_0xe570('0x4'));var auth=require(_0xe570('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xe570('0x6'));var controller=require('./intFreshdeskAccount.controller');router[_0xe570('0x7')]('/',auth[_0xe570('0x8')](),controller[_0xe570('0x9')]);router[_0xe570('0x7')](_0xe570('0xa'),auth['isAuthenticated'](),controller[_0xe570('0xb')]);router[_0xe570('0x7')](_0xe570('0xc'),auth[_0xe570('0x8')](),controller['getConfigurations']);router[_0xe570('0x7')]('/:id/fields',auth[_0xe570('0x8')](),controller[_0xe570('0xd')]);router[_0xe570('0xe')]('/',auth['isAuthenticated'](),controller[_0xe570('0xf')]);router[_0xe570('0xe')]('/:id/configurations',auth[_0xe570('0x8')](),controller['addConfiguration']);router[_0xe570('0x10')](_0xe570('0xa'),auth[_0xe570('0x8')](),controller[_0xe570('0x11')]);router[_0xe570('0x12')](_0xe570('0xa'),auth[_0xe570('0x8')](),controller[_0xe570('0x13')]);module['exports']=router;