1f962d013af0100d24ba7ce167fe9bc57c492873
[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 _0x8eac=['delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./intFreshdeskAccount.controller','get','isAuthenticated','index','/:id','/:id/configurations','getConfigurations','/:id/fields','post','create','put'];(function(_0x5c79a2,_0x1ec1ea){var _0x52c87c=function(_0xcabaee){while(--_0xcabaee){_0x5c79a2['push'](_0x5c79a2['shift']());}};_0x52c87c(++_0x1ec1ea);}(_0x8eac,0xdf));var _0xc8ea=function(_0x9d1d1f,_0x3d6e3f){_0x9d1d1f=_0x9d1d1f-0x0;var _0x19e276=_0x8eac[_0x9d1d1f];return _0x19e276;};'use strict';var multer=require(_0xc8ea('0x0'));var util=require(_0xc8ea('0x1'));var path=require(_0xc8ea('0x2'));var timeout=require(_0xc8ea('0x3'));var express=require(_0xc8ea('0x4'));var router=express[_0xc8ea('0x5')]();var auth=require(_0xc8ea('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xc8ea('0x7'));var controller=require(_0xc8ea('0x8'));router[_0xc8ea('0x9')]('/',auth[_0xc8ea('0xa')](),controller[_0xc8ea('0xb')]);router['get'](_0xc8ea('0xc'),auth[_0xc8ea('0xa')](),controller['show']);router['get'](_0xc8ea('0xd'),auth[_0xc8ea('0xa')](),controller[_0xc8ea('0xe')]);router['get'](_0xc8ea('0xf'),auth[_0xc8ea('0xa')](),controller['getFields']);router[_0xc8ea('0x10')]('/',auth[_0xc8ea('0xa')](),controller[_0xc8ea('0x11')]);router[_0xc8ea('0x10')](_0xc8ea('0xd'),auth[_0xc8ea('0xa')](),controller['addConfiguration']);router[_0xc8ea('0x12')](_0xc8ea('0xc'),auth[_0xc8ea('0xa')](),controller['update']);router[_0xc8ea('0x13')]('/:id',auth['isAuthenticated'](),controller[_0xc8ea('0x14')]);module[_0xc8ea('0x15')]=router;