59f32160f545cf7cc1e34fba1b5e5823c64fd82a
[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 _0x3a12=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intFreshdeskField.controller','get','index','show','post','isAuthenticated','create','put','/:id','update','delete','exports','multer','util','path','connect-timeout','express'];(function(_0x4d8376,_0x50c85a){var _0x16ba60=function(_0x20212a){while(--_0x20212a){_0x4d8376['push'](_0x4d8376['shift']());}};_0x16ba60(++_0x50c85a);}(_0x3a12,0x1b4));var _0x23a1=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x3a12[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0x23a1('0x0'));var util=require(_0x23a1('0x1'));var path=require(_0x23a1('0x2'));var timeout=require(_0x23a1('0x3'));var express=require(_0x23a1('0x4'));var router=express[_0x23a1('0x5')]();var fs_extra=require(_0x23a1('0x6'));var auth=require(_0x23a1('0x7'));var interaction=require(_0x23a1('0x8'));var config=require('../../config/environment');var controller=require(_0x23a1('0x9'));router[_0x23a1('0xa')]('/',auth['isAuthenticated'](),controller[_0x23a1('0xb')]);router[_0x23a1('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x23a1('0xc')]);router[_0x23a1('0xd')]('/',auth[_0x23a1('0xe')](),controller[_0x23a1('0xf')]);router[_0x23a1('0x10')](_0x23a1('0x11'),auth[_0x23a1('0xe')](),controller[_0x23a1('0x12')]);router[_0x23a1('0x13')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x23a1('0x14')]=router;