Built motion from commit d5e4af8c.|2.6.23
[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 _0x6074=['./intDeskAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','/:id/fields','post','create','put','update','exports','multer','path','connect-timeout','express','fs-extra','../../components/auth/service'];(function(_0x1035c1,_0x2d8583){var _0x308d67=function(_0x58ddb6){while(--_0x58ddb6){_0x1035c1['push'](_0x1035c1['shift']());}};_0x308d67(++_0x2d8583);}(_0x6074,0xd6));var _0x4607=function(_0x35ba71,_0xa2fbbd){_0x35ba71=_0x35ba71-0x0;var _0x5f04f4=_0x6074[_0x35ba71];return _0x5f04f4;};'use strict';var multer=require(_0x4607('0x0'));var util=require('util');var path=require(_0x4607('0x1'));var timeout=require(_0x4607('0x2'));var express=require(_0x4607('0x3'));var router=express['Router']();var fs_extra=require(_0x4607('0x4'));var auth=require(_0x4607('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x4607('0x6'));router[_0x4607('0x7')]('/',auth[_0x4607('0x8')](),controller[_0x4607('0x9')]);router[_0x4607('0x7')](_0x4607('0xa'),auth['isAuthenticated'](),controller[_0x4607('0xb')]);router['get'](_0x4607('0xc'),auth[_0x4607('0x8')](),controller[_0x4607('0xd')]);router[_0x4607('0x7')](_0x4607('0xe'),auth[_0x4607('0x8')](),controller['getFields']);router[_0x4607('0xf')]('/',auth[_0x4607('0x8')](),controller[_0x4607('0x10')]);router[_0x4607('0xf')](_0x4607('0xc'),auth[_0x4607('0x8')](),controller['addConfiguration']);router[_0x4607('0x11')](_0x4607('0xa'),auth[_0x4607('0x8')](),controller[_0x4607('0x12')]);router['delete'](_0x4607('0xa'),auth[_0x4607('0x8')](),controller['destroy']);module[_0x4607('0x13')]=router;