04927d93667e5c0525af827e1f66f3fc6f82975f
[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 _0xa2f2=['util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./intDeskAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','/:id/fields','post','create','addConfiguration','put','update','delete','exports','multer'];(function(_0x1b55e3,_0x5407d7){var _0x2ed2d7=function(_0x4e503b){while(--_0x4e503b){_0x1b55e3['push'](_0x1b55e3['shift']());}};_0x2ed2d7(++_0x5407d7);}(_0xa2f2,0xae));var _0x2a2f=function(_0x3ab9ee,_0x4a74b8){_0x3ab9ee=_0x3ab9ee-0x0;var _0x82ee88=_0xa2f2[_0x3ab9ee];return _0x82ee88;};'use strict';var multer=require(_0x2a2f('0x0'));var util=require(_0x2a2f('0x1'));var path=require(_0x2a2f('0x2'));var timeout=require(_0x2a2f('0x3'));var express=require(_0x2a2f('0x4'));var router=express[_0x2a2f('0x5')]();var fs_extra=require(_0x2a2f('0x6'));var auth=require(_0x2a2f('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x2a2f('0x8'));var controller=require(_0x2a2f('0x9'));router[_0x2a2f('0xa')]('/',auth[_0x2a2f('0xb')](),controller[_0x2a2f('0xc')]);router[_0x2a2f('0xa')](_0x2a2f('0xd'),auth[_0x2a2f('0xb')](),controller[_0x2a2f('0xe')]);router[_0x2a2f('0xa')](_0x2a2f('0xf'),auth[_0x2a2f('0xb')](),controller[_0x2a2f('0x10')]);router[_0x2a2f('0xa')](_0x2a2f('0x11'),auth[_0x2a2f('0xb')](),controller['getFields']);router[_0x2a2f('0x12')]('/',auth[_0x2a2f('0xb')](),controller[_0x2a2f('0x13')]);router[_0x2a2f('0x12')](_0x2a2f('0xf'),auth['isAuthenticated'](),controller[_0x2a2f('0x14')]);router[_0x2a2f('0x15')](_0x2a2f('0xd'),auth[_0x2a2f('0xb')](),controller[_0x2a2f('0x16')]);router[_0x2a2f('0x17')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x2a2f('0x18')]=router;