ee5ceb4ef85fa2dd9c5573cab3fca2239beda373
[motion2.git] / server / api / intDeskAccount / 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 _0x60f5=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskAccount.controller','get','isAuthenticated','/:id','show','/:id/configurations','getConfigurations','getFields','create','post','addConfiguration','update','delete','destroy','exports','multer','path','connect-timeout'];(function(_0x5032ca,_0x2352a9){var _0x1663a7=function(_0x61a79){while(--_0x61a79){_0x5032ca['push'](_0x5032ca['shift']());}};_0x1663a7(++_0x2352a9);}(_0x60f5,0x1e0));var _0x560f=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0x60f5[_0x3b380d];return _0x54502b;};'use strict';var multer=require(_0x560f('0x0'));var util=require('util');var path=require(_0x560f('0x1'));var timeout=require(_0x560f('0x2'));var express=require(_0x560f('0x3'));var router=express[_0x560f('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x560f('0x5'));var interaction=require(_0x560f('0x6'));var config=require(_0x560f('0x7'));var controller=require(_0x560f('0x8'));router[_0x560f('0x9')]('/',auth[_0x560f('0xa')](),controller['index']);router[_0x560f('0x9')](_0x560f('0xb'),auth['isAuthenticated'](),controller[_0x560f('0xc')]);router[_0x560f('0x9')](_0x560f('0xd'),auth[_0x560f('0xa')](),controller[_0x560f('0xe')]);router['get']('/:id/fields',auth[_0x560f('0xa')](),controller[_0x560f('0xf')]);router['post']('/',auth[_0x560f('0xa')](),controller[_0x560f('0x10')]);router[_0x560f('0x11')]('/:id/configurations',auth[_0x560f('0xa')](),controller[_0x560f('0x12')]);router['put'](_0x560f('0xb'),auth[_0x560f('0xa')](),controller[_0x560f('0x13')]);router[_0x560f('0x14')](_0x560f('0xb'),auth[_0x560f('0xa')](),controller[_0x560f('0x15')]);module[_0x560f('0x16')]=router;