a960ce5d1291fbaafe1c558d0bdcc10697be57f4
[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 _0x5328=['getFields','post','put','update','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','/:id/configurations','getConfigurations','/:id/fields'];(function(_0x4fac2f,_0x7d57ec){var _0x272e81=function(_0x42081b){while(--_0x42081b){_0x4fac2f['push'](_0x4fac2f['shift']());}};_0x272e81(++_0x7d57ec);}(_0x5328,0x158));var _0x8532=function(_0x2ff441,_0x5f2820){_0x2ff441=_0x2ff441-0x0;var _0x44e1d7=_0x5328[_0x2ff441];return _0x44e1d7;};'use strict';var multer=require(_0x8532('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x8532('0x1'));var express=require(_0x8532('0x2'));var router=express[_0x8532('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x8532('0x4'));var interaction=require(_0x8532('0x5'));var config=require('../../config/environment');var controller=require('./intFreshdeskAccount.controller');router[_0x8532('0x6')]('/',auth[_0x8532('0x7')](),controller[_0x8532('0x8')]);router['get'](_0x8532('0x9'),auth[_0x8532('0x7')](),controller['show']);router['get'](_0x8532('0xa'),auth[_0x8532('0x7')](),controller[_0x8532('0xb')]);router[_0x8532('0x6')](_0x8532('0xc'),auth['isAuthenticated'](),controller[_0x8532('0xd')]);router[_0x8532('0xe')]('/',auth[_0x8532('0x7')](),controller['create']);router['post'](_0x8532('0xa'),auth[_0x8532('0x7')](),controller['addConfiguration']);router[_0x8532('0xf')](_0x8532('0x9'),auth['isAuthenticated'](),controller[_0x8532('0x10')]);router['delete'](_0x8532('0x9'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;