Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / intFreshdeskConfiguration / 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 _0x7b2c=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','/:id/fields','getSubjects','/:id/descriptions','getDescriptions','/:id/tags','getTags','post','create','setTags','put','/:id','delete','destroy','exports','connect-timeout','Router','fs-extra'];(function(_0x2ac980,_0x33829d){var _0x53974d=function(_0x4cd40c){while(--_0x4cd40c){_0x2ac980['push'](_0x2ac980['shift']());}};_0x53974d(++_0x33829d);}(_0x7b2c,0x165));var _0xc7b2=function(_0x540b7b,_0x125f4c){_0x540b7b=_0x540b7b-0x0;var _0x2395a3=_0x7b2c[_0x540b7b];return _0x2395a3;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xc7b2('0x0'));var express=require('express');var router=express[_0xc7b2('0x1')]();var fs_extra=require(_0xc7b2('0x2'));var auth=require(_0xc7b2('0x3'));var interaction=require(_0xc7b2('0x4'));var config=require(_0xc7b2('0x5'));var controller=require('./intFreshdeskConfiguration.controller');router[_0xc7b2('0x6')]('/',auth[_0xc7b2('0x7')](),controller[_0xc7b2('0x8')]);router[_0xc7b2('0x6')]('/:id',auth[_0xc7b2('0x7')](),controller[_0xc7b2('0x9')]);router[_0xc7b2('0x6')](_0xc7b2('0xa'),auth['isAuthenticated'](),controller['getFields']);router[_0xc7b2('0x6')]('/:id/subjects',auth[_0xc7b2('0x7')](),controller[_0xc7b2('0xb')]);router[_0xc7b2('0x6')](_0xc7b2('0xc'),auth[_0xc7b2('0x7')](),controller[_0xc7b2('0xd')]);router[_0xc7b2('0x6')](_0xc7b2('0xe'),auth['isAuthenticated'](),controller[_0xc7b2('0xf')]);router[_0xc7b2('0x10')]('/',auth[_0xc7b2('0x7')](),controller[_0xc7b2('0x11')]);router[_0xc7b2('0x10')](_0xc7b2('0xe'),auth[_0xc7b2('0x7')](),controller[_0xc7b2('0x12')]);router[_0xc7b2('0x13')](_0xc7b2('0x14'),auth[_0xc7b2('0x7')](),controller['update']);router[_0xc7b2('0x15')](_0xc7b2('0x14'),auth[_0xc7b2('0x7')](),controller[_0xc7b2('0x16')]);module[_0xc7b2('0x17')]=router;