4af231ff679d84ea9071594280480831477506b2
[motion2.git] / server / api / intFreshdeskField / 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 _0x29f3=['delete','destroy','exports','multer','util','connect-timeout','Router','../../components/interaction/service','../../config/environment','./intFreshdeskField.controller','isAuthenticated','index','get','show','post','create','/:id','update'];(function(_0x42fd96,_0x59570e){var _0x1686dc=function(_0x567c7c){while(--_0x567c7c){_0x42fd96['push'](_0x42fd96['shift']());}};_0x1686dc(++_0x59570e);}(_0x29f3,0xed));var _0x329f=function(_0x36f865,_0x31db3f){_0x36f865=_0x36f865-0x0;var _0x1cfc7a=_0x29f3[_0x36f865];return _0x1cfc7a;};'use strict';var multer=require(_0x329f('0x0'));var util=require(_0x329f('0x1'));var path=require('path');var timeout=require(_0x329f('0x2'));var express=require('express');var router=express[_0x329f('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x329f('0x4'));var config=require(_0x329f('0x5'));var controller=require(_0x329f('0x6'));router['get']('/',auth[_0x329f('0x7')](),controller[_0x329f('0x8')]);router[_0x329f('0x9')]('/:id',auth[_0x329f('0x7')](),controller[_0x329f('0xa')]);router[_0x329f('0xb')]('/',auth['isAuthenticated'](),controller[_0x329f('0xc')]);router['put'](_0x329f('0xd'),auth[_0x329f('0x7')](),controller[_0x329f('0xe')]);router[_0x329f('0xf')](_0x329f('0xd'),auth[_0x329f('0x7')](),controller[_0x329f('0x10')]);module[_0x329f('0x11')]=router;