Built motion from commit 753c950e.|2.5.42
[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 _0x62a8=['fs-extra','../../components/auth/service','../../config/environment','get','index','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put','update','destroy','multer','util','path','connect-timeout','express'];(function(_0x1b5480,_0x45e7d4){var _0x1422e5=function(_0x3f14a8){while(--_0x3f14a8){_0x1b5480['push'](_0x1b5480['shift']());}};_0x1422e5(++_0x45e7d4);}(_0x62a8,0x16b));var _0x862a=function(_0x1b83b2,_0x5aad7c){_0x1b83b2=_0x1b83b2-0x0;var _0x5ebee5=_0x62a8[_0x1b83b2];return _0x5ebee5;};'use strict';var multer=require(_0x862a('0x0'));var util=require(_0x862a('0x1'));var path=require(_0x862a('0x2'));var timeout=require(_0x862a('0x3'));var express=require(_0x862a('0x4'));var router=express['Router']();var fs_extra=require(_0x862a('0x5'));var auth=require(_0x862a('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x862a('0x7'));var controller=require('./intDeskAccount.controller');router[_0x862a('0x8')]('/',auth['isAuthenticated'](),controller[_0x862a('0x9')]);router['get'](_0x862a('0xa'),auth[_0x862a('0xb')](),controller[_0x862a('0xc')]);router[_0x862a('0x8')](_0x862a('0xd'),auth[_0x862a('0xb')](),controller[_0x862a('0xe')]);router[_0x862a('0x8')](_0x862a('0xf'),auth[_0x862a('0xb')](),controller[_0x862a('0x10')]);router[_0x862a('0x11')]('/',auth[_0x862a('0xb')](),controller[_0x862a('0x12')]);router['post'](_0x862a('0xd'),auth['isAuthenticated'](),controller[_0x862a('0x13')]);router[_0x862a('0x14')](_0x862a('0xa'),auth[_0x862a('0xb')](),controller[_0x862a('0x15')]);router['delete'](_0x862a('0xa'),auth[_0x862a('0xb')](),controller[_0x862a('0x16')]);module['exports']=router;