Built motion from commit 10af8726.|2.6.34
[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 _0x5b83=['Router','../../components/auth/service','../../components/interaction/service','./intDeskAccount.controller','get','isAuthenticated','index','/:id','show','getConfigurations','/:id/fields','getFields','create','post','/:id/configurations','addConfiguration','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x2a9f4,_0x25c14a){var _0x3c39e0=function(_0x3b8deb){while(--_0x3b8deb){_0x2a9f4['push'](_0x2a9f4['shift']());}};_0x3c39e0(++_0x25c14a);}(_0x5b83,0xe5));var _0x35b8=function(_0x648323,_0x182234){_0x648323=_0x648323-0x0;var _0x49b423=_0x5b83[_0x648323];return _0x49b423;};'use strict';var multer=require(_0x35b8('0x0'));var util=require(_0x35b8('0x1'));var path=require(_0x35b8('0x2'));var timeout=require(_0x35b8('0x3'));var express=require(_0x35b8('0x4'));var router=express[_0x35b8('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x35b8('0x6'));var interaction=require(_0x35b8('0x7'));var config=require('../../config/environment');var controller=require(_0x35b8('0x8'));router[_0x35b8('0x9')]('/',auth[_0x35b8('0xa')](),controller[_0x35b8('0xb')]);router[_0x35b8('0x9')](_0x35b8('0xc'),auth[_0x35b8('0xa')](),controller[_0x35b8('0xd')]);router[_0x35b8('0x9')]('/:id/configurations',auth['isAuthenticated'](),controller[_0x35b8('0xe')]);router['get'](_0x35b8('0xf'),auth[_0x35b8('0xa')](),controller[_0x35b8('0x10')]);router['post']('/',auth[_0x35b8('0xa')](),controller[_0x35b8('0x11')]);router[_0x35b8('0x12')](_0x35b8('0x13'),auth[_0x35b8('0xa')](),controller[_0x35b8('0x14')]);router[_0x35b8('0x15')]('/:id',auth[_0x35b8('0xa')](),controller[_0x35b8('0x16')]);router[_0x35b8('0x17')](_0x35b8('0xc'),auth[_0x35b8('0xa')](),controller[_0x35b8('0x18')]);module[_0x35b8('0x19')]=router;