Built motion from commit c1aa34a0.|2.6.28
[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 _0xe2ba=['get','isAuthenticated','/:id','/:id/configurations','getConfigurations','/:id/fields','getFields','post','addConfiguration','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x247282,_0x7a92cf){var _0x5a116e=function(_0x16bbb4){while(--_0x16bbb4){_0x247282['push'](_0x247282['shift']());}};_0x5a116e(++_0x7a92cf);}(_0xe2ba,0xfa));var _0xae2b=function(_0xdea41a,_0x552987){_0xdea41a=_0xdea41a-0x0;var _0x15d0d8=_0xe2ba[_0xdea41a];return _0x15d0d8;};'use strict';var multer=require(_0xae2b('0x0'));var util=require(_0xae2b('0x1'));var path=require(_0xae2b('0x2'));var timeout=require(_0xae2b('0x3'));var express=require(_0xae2b('0x4'));var router=express[_0xae2b('0x5')]();var fs_extra=require(_0xae2b('0x6'));var auth=require(_0xae2b('0x7'));var interaction=require(_0xae2b('0x8'));var config=require(_0xae2b('0x9'));var controller=require('./intFreshdeskAccount.controller');router[_0xae2b('0xa')]('/',auth[_0xae2b('0xb')](),controller['index']);router[_0xae2b('0xa')](_0xae2b('0xc'),auth[_0xae2b('0xb')](),controller['show']);router[_0xae2b('0xa')](_0xae2b('0xd'),auth['isAuthenticated'](),controller[_0xae2b('0xe')]);router[_0xae2b('0xa')](_0xae2b('0xf'),auth['isAuthenticated'](),controller[_0xae2b('0x10')]);router[_0xae2b('0x11')]('/',auth[_0xae2b('0xb')](),controller['create']);router[_0xae2b('0x11')](_0xae2b('0xd'),auth[_0xae2b('0xb')](),controller[_0xae2b('0x12')]);router['put'](_0xae2b('0xc'),auth[_0xae2b('0xb')](),controller['update']);router['delete']('/:id',auth[_0xae2b('0xb')](),controller['destroy']);module[_0xae2b('0x13')]=router;