Built motion from commit b5413ace.|2.6.9
[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 _0x08fa=['create','/:id/configurations','addConfiguration','put','update','delete','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','index','/:id','isAuthenticated','show','getConfigurations','getFields','post'];(function(_0x1c0349,_0x550c00){var _0x5d453c=function(_0x26ce1d){while(--_0x26ce1d){_0x1c0349['push'](_0x1c0349['shift']());}};_0x5d453c(++_0x550c00);}(_0x08fa,0x148));var _0xa08f=function(_0x245334,_0x2aab95){_0x245334=_0x245334-0x0;var _0x541a52=_0x08fa[_0x245334];return _0x541a52;};'use strict';var multer=require(_0xa08f('0x0'));var util=require(_0xa08f('0x1'));var path=require(_0xa08f('0x2'));var timeout=require(_0xa08f('0x3'));var express=require(_0xa08f('0x4'));var router=express[_0xa08f('0x5')]();var fs_extra=require(_0xa08f('0x6'));var auth=require(_0xa08f('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0xa08f('0x8'));var controller=require('./intFreshdeskAccount.controller');router[_0xa08f('0x9')]('/',auth['isAuthenticated'](),controller[_0xa08f('0xa')]);router[_0xa08f('0x9')](_0xa08f('0xb'),auth[_0xa08f('0xc')](),controller[_0xa08f('0xd')]);router[_0xa08f('0x9')]('/:id/configurations',auth[_0xa08f('0xc')](),controller[_0xa08f('0xe')]);router[_0xa08f('0x9')]('/:id/fields',auth[_0xa08f('0xc')](),controller[_0xa08f('0xf')]);router[_0xa08f('0x10')]('/',auth[_0xa08f('0xc')](),controller[_0xa08f('0x11')]);router['post'](_0xa08f('0x12'),auth[_0xa08f('0xc')](),controller[_0xa08f('0x13')]);router[_0xa08f('0x14')]('/:id',auth[_0xa08f('0xc')](),controller[_0xa08f('0x15')]);router[_0xa08f('0x16')](_0xa08f('0xb'),auth[_0xa08f('0xc')](),controller['destroy']);module['exports']=router;