Built motion from commit (unavailable).|2.5.23
[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 _0x27f7=['../../components/interaction/service','./intFreshdeskField.controller','isAuthenticated','index','/:id','show','put','update','delete','exports','util','connect-timeout','../../components/auth/service'];(function(_0x10c16d,_0x2b3e14){var _0x5896f4=function(_0x4306b9){while(--_0x4306b9){_0x10c16d['push'](_0x10c16d['shift']());}};_0x5896f4(++_0x2b3e14);}(_0x27f7,0x7f));var _0x727f=function(_0x4f5e85,_0x1ff8f7){_0x4f5e85=_0x4f5e85-0x0;var _0x532ca4=_0x27f7[_0x4f5e85];return _0x532ca4;};'use strict';var multer=require('multer');var util=require(_0x727f('0x0'));var path=require('path');var timeout=require(_0x727f('0x1'));var express=require('express');var router=express['Router']();var auth=require(_0x727f('0x2'));var interaction=require(_0x727f('0x3'));var config=require('../../config/environment');var controller=require(_0x727f('0x4'));router['get']('/',auth[_0x727f('0x5')](),controller[_0x727f('0x6')]);router['get'](_0x727f('0x7'),auth['isAuthenticated'](),controller[_0x727f('0x8')]);router['post']('/',auth[_0x727f('0x5')](),controller['create']);router[_0x727f('0x9')](_0x727f('0x7'),auth[_0x727f('0x5')](),controller[_0x727f('0xa')]);router[_0x727f('0xb')](_0x727f('0x7'),auth[_0x727f('0x5')](),controller['destroy']);module[_0x727f('0xc')]=router;