aebbca28dad194dc39c1b1ac1e73600bcd992aba
[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 _0x6b02=['getConfigurations','/:id/fields','getFields','create','post','delete','destroy','exports','util','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskAccount.controller','get','isAuthenticated','/:id','/:id/configurations'];(function(_0x116d85,_0x5323a7){var _0x18b9ec=function(_0x498356){while(--_0x498356){_0x116d85['push'](_0x116d85['shift']());}};_0x18b9ec(++_0x5323a7);}(_0x6b02,0x138));var _0x26b0=function(_0x2c90fd,_0x243deb){_0x2c90fd=_0x2c90fd-0x0;var _0x572106=_0x6b02[_0x2c90fd];return _0x572106;};'use strict';var multer=require('multer');var util=require(_0x26b0('0x0'));var path=require('path');var timeout=require(_0x26b0('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x26b0('0x2'));var auth=require(_0x26b0('0x3'));var interaction=require(_0x26b0('0x4'));var config=require(_0x26b0('0x5'));var controller=require(_0x26b0('0x6'));router[_0x26b0('0x7')]('/',auth[_0x26b0('0x8')](),controller['index']);router['get'](_0x26b0('0x9'),auth[_0x26b0('0x8')](),controller['show']);router[_0x26b0('0x7')](_0x26b0('0xa'),auth[_0x26b0('0x8')](),controller[_0x26b0('0xb')]);router[_0x26b0('0x7')](_0x26b0('0xc'),auth[_0x26b0('0x8')](),controller[_0x26b0('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0x26b0('0xe')]);router[_0x26b0('0xf')]('/:id/configurations',auth['isAuthenticated'](),controller['addConfiguration']);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router[_0x26b0('0x10')]('/:id',auth[_0x26b0('0x8')](),controller[_0x26b0('0x11')]);module[_0x26b0('0x12')]=router;