Built motion from commit 753c950e.|2.5.42
[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 _0xeb97=['post','addConfiguration','update','delete','destroy','exports','multer','util','express','Router','fs-extra','../../config/environment','get','isAuthenticated','index','/:id','/:id/configurations','getConfigurations','create'];(function(_0x13250f,_0x57addc){var _0x4d9a1c=function(_0x6e6911){while(--_0x6e6911){_0x13250f['push'](_0x13250f['shift']());}};_0x4d9a1c(++_0x57addc);}(_0xeb97,0x149));var _0x7eb9=function(_0x514096,_0x386c7a){_0x514096=_0x514096-0x0;var _0xa89daa=_0xeb97[_0x514096];return _0xa89daa;};'use strict';var multer=require(_0x7eb9('0x0'));var util=require(_0x7eb9('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x7eb9('0x2'));var router=express[_0x7eb9('0x3')]();var fs_extra=require(_0x7eb9('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7eb9('0x5'));var controller=require('./intFreshdeskAccount.controller');router[_0x7eb9('0x6')]('/',auth[_0x7eb9('0x7')](),controller[_0x7eb9('0x8')]);router[_0x7eb9('0x6')](_0x7eb9('0x9'),auth[_0x7eb9('0x7')](),controller['show']);router[_0x7eb9('0x6')](_0x7eb9('0xa'),auth['isAuthenticated'](),controller[_0x7eb9('0xb')]);router['get']('/:id/fields',auth[_0x7eb9('0x7')](),controller['getFields']);router['post']('/',auth[_0x7eb9('0x7')](),controller[_0x7eb9('0xc')]);router[_0x7eb9('0xd')]('/:id/configurations',auth[_0x7eb9('0x7')](),controller[_0x7eb9('0xe')]);router['put'](_0x7eb9('0x9'),auth[_0x7eb9('0x7')](),controller[_0x7eb9('0xf')]);router[_0x7eb9('0x10')](_0x7eb9('0x9'),auth[_0x7eb9('0x7')](),controller[_0x7eb9('0x11')]);module[_0x7eb9('0x12')]=router;