Built motion from commit (unavailable).|2.5.20
[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 _0xa860=['update','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../config/environment','get','index','/:id','isAuthenticated','getConfigurations','/:id/fields','getFields','create','post','/:id/configurations','addConfiguration'];(function(_0x465f60,_0x291fc2){var _0x212645=function(_0x5e0240){while(--_0x5e0240){_0x465f60['push'](_0x465f60['shift']());}};_0x212645(++_0x291fc2);}(_0xa860,0x9e));var _0x0a86=function(_0x860d0b,_0x59f776){_0x860d0b=_0x860d0b-0x0;var _0x5cc3f7=_0xa860[_0x860d0b];return _0x5cc3f7;};'use strict';var multer=require(_0x0a86('0x0'));var util=require(_0x0a86('0x1'));var path=require(_0x0a86('0x2'));var timeout=require(_0x0a86('0x3'));var express=require('express');var router=express[_0x0a86('0x4')]();var auth=require(_0x0a86('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x0a86('0x6'));var controller=require('./intFreshdeskAccount.controller');router[_0x0a86('0x7')]('/',auth['isAuthenticated'](),controller[_0x0a86('0x8')]);router['get'](_0x0a86('0x9'),auth['isAuthenticated'](),controller['show']);router['get']('/:id/configurations',auth[_0x0a86('0xa')](),controller[_0x0a86('0xb')]);router[_0x0a86('0x7')](_0x0a86('0xc'),auth[_0x0a86('0xa')](),controller[_0x0a86('0xd')]);router['post']('/',auth[_0x0a86('0xa')](),controller[_0x0a86('0xe')]);router[_0x0a86('0xf')](_0x0a86('0x10'),auth['isAuthenticated'](),controller[_0x0a86('0x11')]);router['put'](_0x0a86('0x9'),auth[_0x0a86('0xa')](),controller[_0x0a86('0x12')]);router[_0x0a86('0x13')](_0x0a86('0x9'),auth[_0x0a86('0xa')](),controller[_0x0a86('0x14')]);module[_0x0a86('0x15')]=router;