260be8eacb819fe380b2b0562904563303d7cf8d
[motion2.git] / server / api / intFreshdeskAccount / 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 _0x14f5=['/:id/fields','getFields','post','addConfiguration','put','/:id','update','delete','destroy','exports','multer','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','./intFreshdeskAccount.controller','get','isAuthenticated','show','/:id/configurations','getConfigurations'];(function(_0x494bdb,_0x4c1957){var _0x4b9c54=function(_0x5681ca){while(--_0x5681ca){_0x494bdb['push'](_0x494bdb['shift']());}};_0x4b9c54(++_0x4c1957);}(_0x14f5,0x196));var _0x514f=function(_0x2c4910,_0x17775f){_0x2c4910=_0x2c4910-0x0;var _0x47939d=_0x14f5[_0x2c4910];return _0x47939d;};'use strict';var multer=require(_0x514f('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x514f('0x1'));var express=require('express');var router=express[_0x514f('0x2')]();var fs_extra=require(_0x514f('0x3'));var auth=require(_0x514f('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x514f('0x5'));var controller=require(_0x514f('0x6'));router[_0x514f('0x7')]('/',auth[_0x514f('0x8')](),controller['index']);router[_0x514f('0x7')]('/:id',auth[_0x514f('0x8')](),controller[_0x514f('0x9')]);router[_0x514f('0x7')](_0x514f('0xa'),auth[_0x514f('0x8')](),controller[_0x514f('0xb')]);router[_0x514f('0x7')](_0x514f('0xc'),auth[_0x514f('0x8')](),controller[_0x514f('0xd')]);router[_0x514f('0xe')]('/',auth[_0x514f('0x8')](),controller['create']);router['post']('/:id/configurations',auth[_0x514f('0x8')](),controller[_0x514f('0xf')]);router[_0x514f('0x10')](_0x514f('0x11'),auth[_0x514f('0x8')](),controller[_0x514f('0x12')]);router[_0x514f('0x13')](_0x514f('0x11'),auth[_0x514f('0x8')](),controller[_0x514f('0x14')]);module[_0x514f('0x15')]=router;