Built motion from commit 0900f080.|2.5.45
[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 _0x896d=['getFields','create','post','update','delete','destroy','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskAccount.controller','get','isAuthenticated','index','/:id/fields'];(function(_0x1e4519,_0x2b57b7){var _0x11b1d3=function(_0x56e0e2){while(--_0x56e0e2){_0x1e4519['push'](_0x1e4519['shift']());}};_0x11b1d3(++_0x2b57b7);}(_0x896d,0x11e));var _0xd896=function(_0x35aa4f,_0x3bf80b){_0x35aa4f=_0x35aa4f-0x0;var _0x1d2f4d=_0x896d[_0x35aa4f];return _0x1d2f4d;};'use strict';var multer=require(_0xd896('0x0'));var util=require('util');var path=require(_0xd896('0x1'));var timeout=require(_0xd896('0x2'));var express=require(_0xd896('0x3'));var router=express[_0xd896('0x4')]();var fs_extra=require(_0xd896('0x5'));var auth=require(_0xd896('0x6'));var interaction=require(_0xd896('0x7'));var config=require(_0xd896('0x8'));var controller=require(_0xd896('0x9'));router[_0xd896('0xa')]('/',auth[_0xd896('0xb')](),controller[_0xd896('0xc')]);router[_0xd896('0xa')]('/:id',auth[_0xd896('0xb')](),controller['show']);router[_0xd896('0xa')]('/:id/configurations',auth[_0xd896('0xb')](),controller['getConfigurations']);router[_0xd896('0xa')](_0xd896('0xd'),auth['isAuthenticated'](),controller[_0xd896('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0xd896('0xf')]);router[_0xd896('0x10')]('/:id/configurations',auth[_0xd896('0xb')](),controller['addConfiguration']);router['put']('/:id',auth[_0xd896('0xb')](),controller[_0xd896('0x11')]);router[_0xd896('0x12')]('/:id',auth[_0xd896('0xb')](),controller[_0xd896('0x13')]);module['exports']=router;