f059d311ba67f1efcdd203febc82251a0342ae8b
[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 _0x4f1a=['destroy','exports','multer','util','path','connect-timeout','../../components/interaction/service','./intFreshdeskAccount.controller','isAuthenticated','index','/:id','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put','delete'];(function(_0x1a9204,_0x1c9e00){var _0x17ca68=function(_0x1f4399){while(--_0x1f4399){_0x1a9204['push'](_0x1a9204['shift']());}};_0x17ca68(++_0x1c9e00);}(_0x4f1a,0xb6));var _0xa4f1=function(_0x4cc280,_0x3b77f3){_0x4cc280=_0x4cc280-0x0;var _0x16ed24=_0x4f1a[_0x4cc280];return _0x16ed24;};'use strict';var multer=require(_0xa4f1('0x0'));var util=require(_0xa4f1('0x1'));var path=require(_0xa4f1('0x2'));var timeout=require(_0xa4f1('0x3'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xa4f1('0x4'));var config=require('../../config/environment');var controller=require(_0xa4f1('0x5'));router['get']('/',auth[_0xa4f1('0x6')](),controller[_0xa4f1('0x7')]);router['get'](_0xa4f1('0x8'),auth[_0xa4f1('0x6')](),controller['show']);router['get'](_0xa4f1('0x9'),auth[_0xa4f1('0x6')](),controller[_0xa4f1('0xa')]);router['get'](_0xa4f1('0xb'),auth[_0xa4f1('0x6')](),controller[_0xa4f1('0xc')]);router[_0xa4f1('0xd')]('/',auth['isAuthenticated'](),controller[_0xa4f1('0xe')]);router[_0xa4f1('0xd')](_0xa4f1('0x9'),auth[_0xa4f1('0x6')](),controller[_0xa4f1('0xf')]);router[_0xa4f1('0x10')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xa4f1('0x11')](_0xa4f1('0x8'),auth[_0xa4f1('0x6')](),controller[_0xa4f1('0x12')]);module[_0xa4f1('0x13')]=router;