9e43fd802d391f2fdd7a81e5b6b9562c84b3536f
[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 _0x36f2=['./intFreshdeskAccount.controller','get','index','/:id','/:id/configurations','isAuthenticated','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put','update','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service'];(function(_0x564bb4,_0x3ba038){var _0x90125=function(_0x270ee6){while(--_0x270ee6){_0x564bb4['push'](_0x564bb4['shift']());}};_0x90125(++_0x3ba038);}(_0x36f2,0x124));var _0x236f=function(_0x515c16,_0x4c4688){_0x515c16=_0x515c16-0x0;var _0x39d096=_0x36f2[_0x515c16];return _0x39d096;};'use strict';var multer=require(_0x236f('0x0'));var util=require(_0x236f('0x1'));var path=require(_0x236f('0x2'));var timeout=require(_0x236f('0x3'));var express=require(_0x236f('0x4'));var router=express[_0x236f('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x236f('0x6'));var config=require('../../config/environment');var controller=require(_0x236f('0x7'));router[_0x236f('0x8')]('/',auth['isAuthenticated'](),controller[_0x236f('0x9')]);router[_0x236f('0x8')](_0x236f('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x236f('0x8')](_0x236f('0xb'),auth[_0x236f('0xc')](),controller[_0x236f('0xd')]);router['get'](_0x236f('0xe'),auth[_0x236f('0xc')](),controller[_0x236f('0xf')]);router[_0x236f('0x10')]('/',auth[_0x236f('0xc')](),controller[_0x236f('0x11')]);router[_0x236f('0x10')](_0x236f('0xb'),auth[_0x236f('0xc')](),controller[_0x236f('0x12')]);router[_0x236f('0x13')](_0x236f('0xa'),auth['isAuthenticated'](),controller[_0x236f('0x14')]);router['delete'](_0x236f('0xa'),auth['isAuthenticated'](),controller[_0x236f('0x15')]);module[_0x236f('0x16')]=router;