5ec436557682eb9bc5e8c1922346fc0645c085fc
[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 _0xa6bc=['put','/:id','update','delete','exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','./intFreshdeskAccount.controller','get','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration'];(function(_0x5de532,_0x2941c4){var _0x4e9192=function(_0x548a81){while(--_0x548a81){_0x5de532['push'](_0x5de532['shift']());}};_0x4e9192(++_0x2941c4);}(_0xa6bc,0xb5));var _0xca6b=function(_0x390b40,_0x32a62e){_0x390b40=_0x390b40-0x0;var _0x11a416=_0xa6bc[_0x390b40];return _0x11a416;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xca6b('0x0'));var timeout=require(_0xca6b('0x1'));var express=require(_0xca6b('0x2'));var router=express[_0xca6b('0x3')]();var fs_extra=require(_0xca6b('0x4'));var auth=require(_0xca6b('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xca6b('0x6'));router[_0xca6b('0x7')]('/',auth[_0xca6b('0x8')](),controller['index']);router[_0xca6b('0x7')]('/:id',auth[_0xca6b('0x8')](),controller[_0xca6b('0x9')]);router['get'](_0xca6b('0xa'),auth[_0xca6b('0x8')](),controller[_0xca6b('0xb')]);router[_0xca6b('0x7')](_0xca6b('0xc'),auth[_0xca6b('0x8')](),controller[_0xca6b('0xd')]);router[_0xca6b('0xe')]('/',auth[_0xca6b('0x8')](),controller[_0xca6b('0xf')]);router['post'](_0xca6b('0xa'),auth[_0xca6b('0x8')](),controller[_0xca6b('0x10')]);router[_0xca6b('0x11')](_0xca6b('0x12'),auth[_0xca6b('0x8')](),controller[_0xca6b('0x13')]);router[_0xca6b('0x14')](_0xca6b('0x12'),auth[_0xca6b('0x8')](),controller['destroy']);module[_0xca6b('0x15')]=router;