a4f8005764cdec5ae946a6867177c9b63f9147e0
[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 _0x2407=['../../components/interaction/service','./intDeskAccount.controller','get','isAuthenticated','index','show','/:id/configurations','/:id/fields','getFields','create','post','addConfiguration','put','/:id','update','delete','destroy','exports','multer','fs-extra','../../components/auth/service'];(function(_0xf1465,_0x28c2fb){var _0x16a6c5=function(_0x471b67){while(--_0x471b67){_0xf1465['push'](_0xf1465['shift']());}};_0x16a6c5(++_0x28c2fb);}(_0x2407,0x1a1));var _0x7240=function(_0x2bb930,_0xe92f28){_0x2bb930=_0x2bb930-0x0;var _0x4a7d19=_0x2407[_0x2bb930];return _0x4a7d19;};'use strict';var multer=require(_0x7240('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x7240('0x1'));var auth=require(_0x7240('0x2'));var interaction=require(_0x7240('0x3'));var config=require('../../config/environment');var controller=require(_0x7240('0x4'));router[_0x7240('0x5')]('/',auth[_0x7240('0x6')](),controller[_0x7240('0x7')]);router[_0x7240('0x5')]('/:id',auth[_0x7240('0x6')](),controller[_0x7240('0x8')]);router['get'](_0x7240('0x9'),auth[_0x7240('0x6')](),controller['getConfigurations']);router[_0x7240('0x5')](_0x7240('0xa'),auth[_0x7240('0x6')](),controller[_0x7240('0xb')]);router['post']('/',auth[_0x7240('0x6')](),controller[_0x7240('0xc')]);router[_0x7240('0xd')](_0x7240('0x9'),auth[_0x7240('0x6')](),controller[_0x7240('0xe')]);router[_0x7240('0xf')](_0x7240('0x10'),auth[_0x7240('0x6')](),controller[_0x7240('0x11')]);router[_0x7240('0x12')](_0x7240('0x10'),auth['isAuthenticated'](),controller[_0x7240('0x13')]);module[_0x7240('0x14')]=router;