36baf46a6f92d11cb1815d46d692701fd452e34e
[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 _0x4abf=['index','/:id','show','getConfigurations','getFields','create','post','/:id/configurations','addConfiguration','put','update','destroy','exports','util','path','connect-timeout','express','Router','./intFreshdeskAccount.controller','get','isAuthenticated'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x4abf,0x133));var _0xf4ab=function(_0x18f1db,_0x5f545b){_0x18f1db=_0x18f1db-0x0;var _0x481861=_0x4abf[_0x18f1db];return _0x481861;};'use strict';var multer=require('multer');var util=require(_0xf4ab('0x0'));var path=require(_0xf4ab('0x1'));var timeout=require(_0xf4ab('0x2'));var express=require(_0xf4ab('0x3'));var router=express[_0xf4ab('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xf4ab('0x5'));router[_0xf4ab('0x6')]('/',auth[_0xf4ab('0x7')](),controller[_0xf4ab('0x8')]);router[_0xf4ab('0x6')](_0xf4ab('0x9'),auth[_0xf4ab('0x7')](),controller[_0xf4ab('0xa')]);router[_0xf4ab('0x6')]('/:id/configurations',auth['isAuthenticated'](),controller[_0xf4ab('0xb')]);router[_0xf4ab('0x6')]('/:id/fields',auth[_0xf4ab('0x7')](),controller[_0xf4ab('0xc')]);router['post']('/',auth[_0xf4ab('0x7')](),controller[_0xf4ab('0xd')]);router[_0xf4ab('0xe')](_0xf4ab('0xf'),auth[_0xf4ab('0x7')](),controller[_0xf4ab('0x10')]);router[_0xf4ab('0x11')](_0xf4ab('0x9'),auth[_0xf4ab('0x7')](),controller[_0xf4ab('0x12')]);router['delete'](_0xf4ab('0x9'),auth[_0xf4ab('0x7')](),controller[_0xf4ab('0x13')]);module[_0xf4ab('0x14')]=router;