Built motion from commit 953226e6.|2.6.32
[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 _0xff12=['../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x3305de,_0x16582f){var _0x3b5a84=function(_0x57d7e1){while(--_0x57d7e1){_0x3305de['push'](_0x3305de['shift']());}};_0x3b5a84(++_0x16582f);}(_0xff12,0x1de));var _0x2ff1=function(_0x1bdef4,_0x4c8e3a){_0x1bdef4=_0x1bdef4-0x0;var _0x2c475f=_0xff12[_0x1bdef4];return _0x2c475f;};'use strict';var multer=require(_0x2ff1('0x0'));var util=require(_0x2ff1('0x1'));var path=require(_0x2ff1('0x2'));var timeout=require(_0x2ff1('0x3'));var express=require(_0x2ff1('0x4'));var router=express[_0x2ff1('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x2ff1('0x6'));var config=require(_0x2ff1('0x7'));var controller=require('./intDeskAccount.controller');router[_0x2ff1('0x8')]('/',auth[_0x2ff1('0x9')](),controller['index']);router['get'](_0x2ff1('0xa'),auth['isAuthenticated'](),controller['show']);router['get'](_0x2ff1('0xb'),auth['isAuthenticated'](),controller[_0x2ff1('0xc')]);router[_0x2ff1('0x8')](_0x2ff1('0xd'),auth[_0x2ff1('0x9')](),controller[_0x2ff1('0xe')]);router[_0x2ff1('0xf')]('/',auth[_0x2ff1('0x9')](),controller[_0x2ff1('0x10')]);router['post'](_0x2ff1('0xb'),auth[_0x2ff1('0x9')](),controller[_0x2ff1('0x11')]);router['put'](_0x2ff1('0xa'),auth['isAuthenticated'](),controller[_0x2ff1('0x12')]);router[_0x2ff1('0x13')](_0x2ff1('0xa'),auth[_0x2ff1('0x9')](),controller[_0x2ff1('0x14')]);module[_0x2ff1('0x15')]=router;