3308ae89ea7331de8d7512f4e1a13409a8e33527
[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 _0x5fae=['getConfigurations','/:id/fields','getFields','post','/:id/configurations','addConfiguration','put','update','delete','/:id','destroy','multer','express','../../components/auth/service','../../components/interaction/service','./intFreshdeskAccount.controller','isAuthenticated','index','show','get'];(function(_0xbb091,_0x3fe7ee){var _0x467a04=function(_0x3a978d){while(--_0x3a978d){_0xbb091['push'](_0xbb091['shift']());}};_0x467a04(++_0x3fe7ee);}(_0x5fae,0xbf));var _0xe5fa=function(_0x5c797f,_0x533690){_0x5c797f=_0x5c797f-0x0;var _0x1bb749=_0x5fae[_0x5c797f];return _0x1bb749;};'use strict';var multer=require(_0xe5fa('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xe5fa('0x1'));var router=express['Router']();var auth=require(_0xe5fa('0x2'));var interaction=require(_0xe5fa('0x3'));var config=require('../../config/environment');var controller=require(_0xe5fa('0x4'));router['get']('/',auth[_0xe5fa('0x5')](),controller[_0xe5fa('0x6')]);router['get']('/:id',auth[_0xe5fa('0x5')](),controller[_0xe5fa('0x7')]);router[_0xe5fa('0x8')]('/:id/configurations',auth[_0xe5fa('0x5')](),controller[_0xe5fa('0x9')]);router[_0xe5fa('0x8')](_0xe5fa('0xa'),auth[_0xe5fa('0x5')](),controller[_0xe5fa('0xb')]);router[_0xe5fa('0xc')]('/',auth[_0xe5fa('0x5')](),controller['create']);router[_0xe5fa('0xc')](_0xe5fa('0xd'),auth[_0xe5fa('0x5')](),controller[_0xe5fa('0xe')]);router[_0xe5fa('0xf')]('/:id',auth[_0xe5fa('0x5')](),controller[_0xe5fa('0x10')]);router[_0xe5fa('0x11')](_0xe5fa('0x12'),auth[_0xe5fa('0x5')](),controller[_0xe5fa('0x13')]);module['exports']=router;