Built motion from commit (unavailable).|2.5.30
[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 _0x160d=['./intFreshdeskField.controller','get','isAuthenticated','index','/:id','show','post','create','put','update','destroy','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../config/environment'];(function(_0x20b2f8,_0x32dc96){var _0xf77d1c=function(_0x409ddf){while(--_0x409ddf){_0x20b2f8['push'](_0x20b2f8['shift']());}};_0xf77d1c(++_0x32dc96);}(_0x160d,0xa4));var _0xd160=function(_0x2feeab,_0x17ad1a){_0x2feeab=_0x2feeab-0x0;var _0x46478e=_0x160d[_0x2feeab];return _0x46478e;};'use strict';var multer=require(_0xd160('0x0'));var util=require(_0xd160('0x1'));var path=require(_0xd160('0x2'));var timeout=require('connect-timeout');var express=require(_0xd160('0x3'));var router=express['Router']();var fs_extra=require(_0xd160('0x4'));var auth=require(_0xd160('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xd160('0x6'));var controller=require(_0xd160('0x7'));router[_0xd160('0x8')]('/',auth[_0xd160('0x9')](),controller[_0xd160('0xa')]);router[_0xd160('0x8')](_0xd160('0xb'),auth['isAuthenticated'](),controller[_0xd160('0xc')]);router[_0xd160('0xd')]('/',auth['isAuthenticated'](),controller[_0xd160('0xe')]);router[_0xd160('0xf')](_0xd160('0xb'),auth[_0xd160('0x9')](),controller[_0xd160('0x10')]);router['delete']('/:id',auth[_0xd160('0x9')](),controller[_0xd160('0x11')]);module[_0xd160('0x12')]=router;