Built motion from commit 9e1399f3.|2.5.37
[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 _0xfe3c=['isAuthenticated','index','get','/:id','/:id/configurations','getConfigurations','/:id/fields','post','addConfiguration','update','delete','exports','multer','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x579010,_0x2ee1f8){var _0x48bf58=function(_0x519263){while(--_0x519263){_0x579010['push'](_0x579010['shift']());}};_0x48bf58(++_0x2ee1f8);}(_0xfe3c,0x198));var _0xcfe3=function(_0xa7d601,_0x5902f0){_0xa7d601=_0xa7d601-0x0;var _0x14e50b=_0xfe3c[_0xa7d601];return _0x14e50b;};'use strict';var multer=require(_0xcfe3('0x0'));var util=require('util');var path=require(_0xcfe3('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xcfe3('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0xcfe3('0x3'));var interaction=require(_0xcfe3('0x4'));var config=require(_0xcfe3('0x5'));var controller=require('./intFreshdeskAccount.controller');router['get']('/',auth[_0xcfe3('0x6')](),controller[_0xcfe3('0x7')]);router[_0xcfe3('0x8')](_0xcfe3('0x9'),auth[_0xcfe3('0x6')](),controller['show']);router[_0xcfe3('0x8')](_0xcfe3('0xa'),auth[_0xcfe3('0x6')](),controller[_0xcfe3('0xb')]);router[_0xcfe3('0x8')](_0xcfe3('0xc'),auth[_0xcfe3('0x6')](),controller['getFields']);router[_0xcfe3('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0xcfe3('0xd')]('/:id/configurations',auth[_0xcfe3('0x6')](),controller[_0xcfe3('0xe')]);router['put']('/:id',auth[_0xcfe3('0x6')](),controller[_0xcfe3('0xf')]);router[_0xcfe3('0x10')](_0xcfe3('0x9'),auth[_0xcfe3('0x6')](),controller['destroy']);module[_0xcfe3('0x11')]=router;