712c83cb6cf908ee16adfa38f15ef66c4de8dbd5
[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 _0x25f4=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','getConfigurations','post','/:id/configurations','addConfiguration','put','update','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x4d1e9c,_0x5ee1ca){var _0x4fc885=function(_0x123426){while(--_0x123426){_0x4d1e9c['push'](_0x4d1e9c['shift']());}};_0x4fc885(++_0x5ee1ca);}(_0x25f4,0x13d));var _0x425f=function(_0x3347e6,_0x22d029){_0x3347e6=_0x3347e6-0x0;var _0x17d1ab=_0x25f4[_0x3347e6];return _0x17d1ab;};'use strict';var multer=require(_0x425f('0x0'));var util=require(_0x425f('0x1'));var path=require(_0x425f('0x2'));var timeout=require(_0x425f('0x3'));var express=require(_0x425f('0x4'));var router=express[_0x425f('0x5')]();var fs_extra=require(_0x425f('0x6'));var auth=require(_0x425f('0x7'));var interaction=require(_0x425f('0x8'));var config=require(_0x425f('0x9'));var controller=require('./intFreshdeskAccount.controller');router[_0x425f('0xa')]('/',auth[_0x425f('0xb')](),controller[_0x425f('0xc')]);router['get'](_0x425f('0xd'),auth[_0x425f('0xb')](),controller[_0x425f('0xe')]);router[_0x425f('0xa')]('/:id/configurations',auth[_0x425f('0xb')](),controller[_0x425f('0xf')]);router['get']('/:id/fields',auth['isAuthenticated'](),controller['getFields']);router[_0x425f('0x10')]('/',auth['isAuthenticated'](),controller['create']);router[_0x425f('0x10')](_0x425f('0x11'),auth[_0x425f('0xb')](),controller[_0x425f('0x12')]);router[_0x425f('0x13')]('/:id',auth[_0x425f('0xb')](),controller[_0x425f('0x14')]);router['delete'](_0x425f('0xd'),auth[_0x425f('0xb')](),controller[_0x425f('0x15')]);module[_0x425f('0x16')]=router;