Built motion from commit (unavailable).|2.5.14
[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 _0xd07a=['get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','/:id/fields','post','create','put','delete','destroy','exports','multer','util','express','Router','../../components/interaction/service','../../config/environment'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0xd07a,0x176));var _0xad07=function(_0x5a4400,_0xfae3b6){_0x5a4400=_0x5a4400-0x0;var _0xf9b532=_0xd07a[_0x5a4400];return _0xf9b532;};'use strict';var multer=require(_0xad07('0x0'));var util=require(_0xad07('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xad07('0x2'));var router=express[_0xad07('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xad07('0x4'));var config=require(_0xad07('0x5'));var controller=require('./intFreshdeskAccount.controller');router[_0xad07('0x6')]('/',auth[_0xad07('0x7')](),controller[_0xad07('0x8')]);router[_0xad07('0x6')](_0xad07('0x9'),auth[_0xad07('0x7')](),controller[_0xad07('0xa')]);router[_0xad07('0x6')](_0xad07('0xb'),auth[_0xad07('0x7')](),controller[_0xad07('0xc')]);router[_0xad07('0x6')](_0xad07('0xd'),auth[_0xad07('0x7')](),controller['getFields']);router[_0xad07('0xe')]('/',auth[_0xad07('0x7')](),controller[_0xad07('0xf')]);router[_0xad07('0xe')](_0xad07('0xb'),auth[_0xad07('0x7')](),controller['addConfiguration']);router[_0xad07('0x10')](_0xad07('0x9'),auth[_0xad07('0x7')](),controller['update']);router[_0xad07('0x11')](_0xad07('0x9'),auth['isAuthenticated'](),controller[_0xad07('0x12')]);module[_0xad07('0x13')]=router;