Built motion from commit 0900f080.|2.5.45
[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 _0x5aea=['Router','fs-extra','../../components/interaction/service','../../config/environment','./intDeskAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','getFields','post','create','addConfiguration','put','update','delete','destroy','exports','util','connect-timeout','express'];(function(_0x465a0c,_0x19d4d5){var _0x1e202e=function(_0x27bd8a){while(--_0x27bd8a){_0x465a0c['push'](_0x465a0c['shift']());}};_0x1e202e(++_0x19d4d5);}(_0x5aea,0x105));var _0xa5ae=function(_0x59df69,_0x263432){_0x59df69=_0x59df69-0x0;var _0x50e8b4=_0x5aea[_0x59df69];return _0x50e8b4;};'use strict';var multer=require('multer');var util=require(_0xa5ae('0x0'));var path=require('path');var timeout=require(_0xa5ae('0x1'));var express=require(_0xa5ae('0x2'));var router=express[_0xa5ae('0x3')]();var fs_extra=require(_0xa5ae('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xa5ae('0x5'));var config=require(_0xa5ae('0x6'));var controller=require(_0xa5ae('0x7'));router[_0xa5ae('0x8')]('/',auth[_0xa5ae('0x9')](),controller[_0xa5ae('0xa')]);router[_0xa5ae('0x8')](_0xa5ae('0xb'),auth[_0xa5ae('0x9')](),controller[_0xa5ae('0xc')]);router['get'](_0xa5ae('0xd'),auth['isAuthenticated'](),controller[_0xa5ae('0xe')]);router['get']('/:id/fields',auth[_0xa5ae('0x9')](),controller[_0xa5ae('0xf')]);router[_0xa5ae('0x10')]('/',auth['isAuthenticated'](),controller[_0xa5ae('0x11')]);router[_0xa5ae('0x10')](_0xa5ae('0xd'),auth[_0xa5ae('0x9')](),controller[_0xa5ae('0x12')]);router[_0xa5ae('0x13')](_0xa5ae('0xb'),auth[_0xa5ae('0x9')](),controller[_0xa5ae('0x14')]);router[_0xa5ae('0x15')](_0xa5ae('0xb'),auth[_0xa5ae('0x9')](),controller[_0xa5ae('0x16')]);module[_0xa5ae('0x17')]=router;