Built motion from commit e781dc3c.|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 _0xc71d=['/:id/fields','getFields','post','/:id/configurations','update','delete','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','./intDeskAccount.controller','get','isAuthenticated','/:id','show','getConfigurations'];(function(_0x261522,_0x1adc1f){var _0x98a25a=function(_0x1b0f9c){while(--_0x1b0f9c){_0x261522['push'](_0x261522['shift']());}};_0x98a25a(++_0x1adc1f);}(_0xc71d,0x1ec));var _0xdc71=function(_0x43a1b8,_0x1c90c8){_0x43a1b8=_0x43a1b8-0x0;var _0x324ecc=_0xc71d[_0x43a1b8];return _0x324ecc;};'use strict';var multer=require(_0xdc71('0x0'));var util=require(_0xdc71('0x1'));var path=require(_0xdc71('0x2'));var timeout=require(_0xdc71('0x3'));var express=require(_0xdc71('0x4'));var router=express['Router']();var fs_extra=require(_0xdc71('0x5'));var auth=require(_0xdc71('0x6'));var interaction=require(_0xdc71('0x7'));var config=require('../../config/environment');var controller=require(_0xdc71('0x8'));router[_0xdc71('0x9')]('/',auth[_0xdc71('0xa')](),controller['index']);router[_0xdc71('0x9')](_0xdc71('0xb'),auth[_0xdc71('0xa')](),controller[_0xdc71('0xc')]);router[_0xdc71('0x9')]('/:id/configurations',auth['isAuthenticated'](),controller[_0xdc71('0xd')]);router[_0xdc71('0x9')](_0xdc71('0xe'),auth[_0xdc71('0xa')](),controller[_0xdc71('0xf')]);router[_0xdc71('0x10')]('/',auth[_0xdc71('0xa')](),controller['create']);router[_0xdc71('0x10')](_0xdc71('0x11'),auth[_0xdc71('0xa')](),controller['addConfiguration']);router['put'](_0xdc71('0xb'),auth[_0xdc71('0xa')](),controller[_0xdc71('0x12')]);router[_0xdc71('0x13')](_0xdc71('0xb'),auth[_0xdc71('0xa')](),controller[_0xdc71('0x14')]);module[_0xdc71('0x15')]=router;