Built motion from commit 47436d59.|2.6.7
[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 _0x2e08=['isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','post','create','addConfiguration','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intFreshdeskAccount.controller','get'];(function(_0x34f104,_0x200e41){var _0x354673=function(_0x41876e){while(--_0x41876e){_0x34f104['push'](_0x34f104['shift']());}};_0x354673(++_0x200e41);}(_0x2e08,0x97));var _0x82e0=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0x2e08[_0x42cae2];return _0x5f256f;};'use strict';var multer=require(_0x82e0('0x0'));var util=require(_0x82e0('0x1'));var path=require(_0x82e0('0x2'));var timeout=require(_0x82e0('0x3'));var express=require(_0x82e0('0x4'));var router=express[_0x82e0('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x82e0('0x6'));var interaction=require(_0x82e0('0x7'));var config=require('../../config/environment');var controller=require(_0x82e0('0x8'));router[_0x82e0('0x9')]('/',auth[_0x82e0('0xa')](),controller['index']);router['get']('/:id',auth['isAuthenticated'](),controller[_0x82e0('0xb')]);router[_0x82e0('0x9')](_0x82e0('0xc'),auth[_0x82e0('0xa')](),controller[_0x82e0('0xd')]);router[_0x82e0('0x9')](_0x82e0('0xe'),auth[_0x82e0('0xa')](),controller['getFields']);router[_0x82e0('0xf')]('/',auth[_0x82e0('0xa')](),controller[_0x82e0('0x10')]);router[_0x82e0('0xf')](_0x82e0('0xc'),auth[_0x82e0('0xa')](),controller[_0x82e0('0x11')]);router['put'](_0x82e0('0x12'),auth[_0x82e0('0xa')](),controller[_0x82e0('0x13')]);router[_0x82e0('0x14')](_0x82e0('0x12'),auth[_0x82e0('0xa')](),controller[_0x82e0('0x15')]);module[_0x82e0('0x16')]=router;