Built motion from commit (unavailable).|2.5.22
[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 _0x19fd=['post','addConfiguration','update','delete','destroy','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intFreshdeskAccount.controller','get','isAuthenticated','/:id','show','/:id/configurations','getConfigurations','/:id/fields','create'];(function(_0x1a20ec,_0x27626c){var _0x3a2ec1=function(_0xb45d54){while(--_0xb45d54){_0x1a20ec['push'](_0x1a20ec['shift']());}};_0x3a2ec1(++_0x27626c);}(_0x19fd,0x17b));var _0xd19f=function(_0x157627,_0x47fa1b){_0x157627=_0x157627-0x0;var _0x468a28=_0x19fd[_0x157627];return _0x468a28;};'use strict';var multer=require(_0xd19f('0x0'));var util=require(_0xd19f('0x1'));var path=require(_0xd19f('0x2'));var timeout=require(_0xd19f('0x3'));var express=require(_0xd19f('0x4'));var router=express[_0xd19f('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xd19f('0x6'));var config=require(_0xd19f('0x7'));var controller=require(_0xd19f('0x8'));router[_0xd19f('0x9')]('/',auth[_0xd19f('0xa')](),controller['index']);router[_0xd19f('0x9')](_0xd19f('0xb'),auth['isAuthenticated'](),controller[_0xd19f('0xc')]);router[_0xd19f('0x9')](_0xd19f('0xd'),auth[_0xd19f('0xa')](),controller[_0xd19f('0xe')]);router[_0xd19f('0x9')](_0xd19f('0xf'),auth[_0xd19f('0xa')](),controller['getFields']);router['post']('/',auth[_0xd19f('0xa')](),controller[_0xd19f('0x10')]);router[_0xd19f('0x11')]('/:id/configurations',auth[_0xd19f('0xa')](),controller[_0xd19f('0x12')]);router['put'](_0xd19f('0xb'),auth['isAuthenticated'](),controller[_0xd19f('0x13')]);router[_0xd19f('0x14')](_0xd19f('0xb'),auth[_0xd19f('0xa')](),controller[_0xd19f('0x15')]);module['exports']=router;