Built motion from commit 0bd120ac.|2.6.25
[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 _0x6e35=['create','/:id','update','delete','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id/configurations','getConfigurations','getFields'];(function(_0x478689,_0x257f1a){var _0x9e4bf1=function(_0x4d9467){while(--_0x4d9467){_0x478689['push'](_0x478689['shift']());}};_0x9e4bf1(++_0x257f1a);}(_0x6e35,0x15b));var _0x56e3=function(_0x51020b,_0x38c2c7){_0x51020b=_0x51020b-0x0;var _0x371e47=_0x6e35[_0x51020b];return _0x371e47;};'use strict';var multer=require(_0x56e3('0x0'));var util=require('util');var path=require(_0x56e3('0x1'));var timeout=require(_0x56e3('0x2'));var express=require('express');var router=express[_0x56e3('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x56e3('0x4'));var interaction=require(_0x56e3('0x5'));var config=require(_0x56e3('0x6'));var controller=require('./intDeskAccount.controller');router[_0x56e3('0x7')]('/',auth[_0x56e3('0x8')](),controller[_0x56e3('0x9')]);router[_0x56e3('0x7')]('/:id',auth[_0x56e3('0x8')](),controller['show']);router[_0x56e3('0x7')](_0x56e3('0xa'),auth[_0x56e3('0x8')](),controller[_0x56e3('0xb')]);router[_0x56e3('0x7')]('/:id/fields',auth[_0x56e3('0x8')](),controller[_0x56e3('0xc')]);router['post']('/',auth[_0x56e3('0x8')](),controller[_0x56e3('0xd')]);router['post']('/:id/configurations',auth['isAuthenticated'](),controller['addConfiguration']);router['put'](_0x56e3('0xe'),auth['isAuthenticated'](),controller[_0x56e3('0xf')]);router[_0x56e3('0x10')](_0x56e3('0xe'),auth['isAuthenticated'](),controller['destroy']);module[_0x56e3('0x11')]=router;