0f700a33665c32c5c4205d8ec6b2680ed18bd034
[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 _0x51d0=['util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','isAuthenticated','index','get','/:id','show','create'];(function(_0x259baf,_0x8574de){var _0x55d9c2=function(_0x4555d9){while(--_0x4555d9){_0x259baf['push'](_0x259baf['shift']());}};_0x55d9c2(++_0x8574de);}(_0x51d0,0x145));var _0x051d=function(_0xd1c39b,_0x16f0c6){_0xd1c39b=_0xd1c39b-0x0;var _0x58f5bc=_0x51d0[_0xd1c39b];return _0x58f5bc;};'use strict';var multer=require('multer');var util=require(_0x051d('0x0'));var path=require(_0x051d('0x1'));var timeout=require(_0x051d('0x2'));var express=require(_0x051d('0x3'));var router=express[_0x051d('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x051d('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x051d('0x6'));var controller=require('./intFreshdeskField.controller');router['get']('/',auth[_0x051d('0x7')](),controller[_0x051d('0x8')]);router[_0x051d('0x9')](_0x051d('0xa'),auth[_0x051d('0x7')](),controller[_0x051d('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x051d('0xc')]);router['put'](_0x051d('0xa'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x051d('0xa'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;