Built motion from commit 3c2ce842.|2.6.31
[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 _0x7c4c=['show','post','create','put','destroy','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','isAuthenticated','get','/:id'];(function(_0x5e3b04,_0xbb6795){var _0x1fc44d=function(_0x3472a1){while(--_0x3472a1){_0x5e3b04['push'](_0x5e3b04['shift']());}};_0x1fc44d(++_0xbb6795);}(_0x7c4c,0xb9));var _0xc7c4=function(_0x158f01,_0x12af3e){_0x158f01=_0x158f01-0x0;var _0x5ef74e=_0x7c4c[_0x158f01];return _0x5ef74e;};'use strict';var multer=require('multer');var util=require(_0xc7c4('0x0'));var path=require(_0xc7c4('0x1'));var timeout=require(_0xc7c4('0x2'));var express=require('express');var router=express[_0xc7c4('0x3')]();var fs_extra=require(_0xc7c4('0x4'));var auth=require(_0xc7c4('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xc7c4('0x6'));var controller=require('./intFreshdeskField.controller');router['get']('/',auth[_0xc7c4('0x7')](),controller['index']);router[_0xc7c4('0x8')](_0xc7c4('0x9'),auth[_0xc7c4('0x7')](),controller[_0xc7c4('0xa')]);router[_0xc7c4('0xb')]('/',auth[_0xc7c4('0x7')](),controller[_0xc7c4('0xc')]);router[_0xc7c4('0xd')]('/:id',auth[_0xc7c4('0x7')](),controller['update']);router['delete'](_0xc7c4('0x9'),auth['isAuthenticated'](),controller[_0xc7c4('0xe')]);module['exports']=router;