4c40e126ce87ae46d847df06a5d581b7f3700f57
[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 _0x0a2c=['Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put','update','delete','destroy','multer','path','connect-timeout','express'];(function(_0x2eac4f,_0x5173f9){var _0x58f73b=function(_0x529f28){while(--_0x529f28){_0x2eac4f['push'](_0x2eac4f['shift']());}};_0x58f73b(++_0x5173f9);}(_0x0a2c,0xf9));var _0xc0a2=function(_0xb0c044,_0x3ee130){_0xb0c044=_0xb0c044-0x0;var _0x48a693=_0x0a2c[_0xb0c044];return _0x48a693;};'use strict';var multer=require(_0xc0a2('0x0'));var util=require('util');var path=require(_0xc0a2('0x1'));var timeout=require(_0xc0a2('0x2'));var express=require(_0xc0a2('0x3'));var router=express[_0xc0a2('0x4')]();var auth=require(_0xc0a2('0x5'));var interaction=require(_0xc0a2('0x6'));var config=require('../../config/environment');var controller=require('./intFreshdeskAccount.controller');router[_0xc0a2('0x7')]('/',auth[_0xc0a2('0x8')](),controller[_0xc0a2('0x9')]);router[_0xc0a2('0x7')](_0xc0a2('0xa'),auth['isAuthenticated'](),controller[_0xc0a2('0xb')]);router[_0xc0a2('0x7')](_0xc0a2('0xc'),auth[_0xc0a2('0x8')](),controller[_0xc0a2('0xd')]);router['get'](_0xc0a2('0xe'),auth['isAuthenticated'](),controller[_0xc0a2('0xf')]);router[_0xc0a2('0x10')]('/',auth['isAuthenticated'](),controller[_0xc0a2('0x11')]);router['post'](_0xc0a2('0xc'),auth[_0xc0a2('0x8')](),controller[_0xc0a2('0x12')]);router[_0xc0a2('0x13')](_0xc0a2('0xa'),auth[_0xc0a2('0x8')](),controller[_0xc0a2('0x14')]);router[_0xc0a2('0x15')](_0xc0a2('0xa'),auth['isAuthenticated'](),controller[_0xc0a2('0x16')]);module['exports']=router;