Built motion from commit 67e5df37.|2.0.68
[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 _0x881f=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskAccount.controller','index','get','/:id','/:id/configurations','isAuthenticated','getConfigurations','getFields','post','update','delete','destroy','exports','util','path','express'];(function(_0x4e7fcd,_0x5eaa94){var _0x1cded2=function(_0xc7d629){while(--_0xc7d629){_0x4e7fcd['push'](_0x4e7fcd['shift']());}};_0x1cded2(++_0x5eaa94);}(_0x881f,0x1c9));var _0xf881=function(_0xc09de0,_0x495e29){_0xc09de0=_0xc09de0-0x0;var _0x45a6c9=_0x881f[_0xc09de0];return _0x45a6c9;};'use strict';var multer=require('multer');var util=require(_0xf881('0x0'));var path=require(_0xf881('0x1'));var express=require(_0xf881('0x2'));var router=express[_0xf881('0x3')]();var auth=require(_0xf881('0x4'));var interaction=require(_0xf881('0x5'));var config=require(_0xf881('0x6'));var controller=require(_0xf881('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0xf881('0x8')]);router[_0xf881('0x9')](_0xf881('0xa'),auth['isAuthenticated'](),controller['show']);router['get'](_0xf881('0xb'),auth[_0xf881('0xc')](),controller[_0xf881('0xd')]);router[_0xf881('0x9')]('/:id/fields',auth[_0xf881('0xc')](),controller[_0xf881('0xe')]);router['post']('/',auth[_0xf881('0xc')](),controller['create']);router[_0xf881('0xf')](_0xf881('0xb'),auth[_0xf881('0xc')](),controller['addConfiguration']);router['put']('/:id',auth[_0xf881('0xc')](),controller[_0xf881('0x10')]);router[_0xf881('0x11')](_0xf881('0xa'),auth[_0xf881('0xc')](),controller[_0xf881('0x12')]);module[_0xf881('0x13')]=router;