eae027ece8ae6006ae949f82e6ee92b2be95bf32
[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 _0x2c2c=['./intFreshdeskAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','getFields','create','update','destroy','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x1d558c,_0x1e497c){var _0x15767d=function(_0x26326d){while(--_0x26326d){_0x1d558c['push'](_0x1d558c['shift']());}};_0x15767d(++_0x1e497c);}(_0x2c2c,0x12a));var _0xc2c2=function(_0x958c81,_0x4650ec){_0x958c81=_0x958c81-0x0;var _0x171716=_0x2c2c[_0x958c81];return _0x171716;};'use strict';var multer=require('multer');var util=require(_0xc2c2('0x0'));var path=require('path');var timeout=require(_0xc2c2('0x1'));var express=require(_0xc2c2('0x2'));var router=express[_0xc2c2('0x3')]();var auth=require(_0xc2c2('0x4'));var interaction=require(_0xc2c2('0x5'));var config=require('../../config/environment');var controller=require(_0xc2c2('0x6'));router[_0xc2c2('0x7')]('/',auth[_0xc2c2('0x8')](),controller[_0xc2c2('0x9')]);router[_0xc2c2('0x7')](_0xc2c2('0xa'),auth[_0xc2c2('0x8')](),controller[_0xc2c2('0xb')]);router[_0xc2c2('0x7')](_0xc2c2('0xc'),auth[_0xc2c2('0x8')](),controller[_0xc2c2('0xd')]);router[_0xc2c2('0x7')]('/:id/fields',auth[_0xc2c2('0x8')](),controller[_0xc2c2('0xe')]);router['post']('/',auth[_0xc2c2('0x8')](),controller[_0xc2c2('0xf')]);router['post']('/:id/configurations',auth[_0xc2c2('0x8')](),controller['addConfiguration']);router['put'](_0xc2c2('0xa'),auth['isAuthenticated'](),controller[_0xc2c2('0x10')]);router['delete'](_0xc2c2('0xa'),auth[_0xc2c2('0x8')](),controller[_0xc2c2('0x11')]);module[_0xc2c2('0x12')]=router;