Built motion from commit (unavailable).|2.4.4
[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 _0x1f85=['index','/:id','show','getConfigurations','/:id/fields','getFields','create','post','/:id/configurations','addConfiguration','put','update','delete','multer','util','express','Router','../../components/auth/service','./intDeskAccount.controller','get','isAuthenticated'];(function(_0x5e429f,_0x223a1f){var _0x3da0ae=function(_0x45f7a1){while(--_0x45f7a1){_0x5e429f['push'](_0x5e429f['shift']());}};_0x3da0ae(++_0x223a1f);}(_0x1f85,0x8b));var _0x51f8=function(_0x496178,_0x5b4837){_0x496178=_0x496178-0x0;var _0x5612e1=_0x1f85[_0x496178];return _0x5612e1;};'use strict';var multer=require(_0x51f8('0x0'));var util=require(_0x51f8('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x51f8('0x2'));var router=express[_0x51f8('0x3')]();var auth=require(_0x51f8('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x51f8('0x5'));router[_0x51f8('0x6')]('/',auth[_0x51f8('0x7')](),controller[_0x51f8('0x8')]);router[_0x51f8('0x6')](_0x51f8('0x9'),auth[_0x51f8('0x7')](),controller[_0x51f8('0xa')]);router['get']('/:id/configurations',auth[_0x51f8('0x7')](),controller[_0x51f8('0xb')]);router[_0x51f8('0x6')](_0x51f8('0xc'),auth[_0x51f8('0x7')](),controller[_0x51f8('0xd')]);router['post']('/',auth[_0x51f8('0x7')](),controller[_0x51f8('0xe')]);router[_0x51f8('0xf')](_0x51f8('0x10'),auth[_0x51f8('0x7')](),controller[_0x51f8('0x11')]);router[_0x51f8('0x12')](_0x51f8('0x9'),auth[_0x51f8('0x7')](),controller[_0x51f8('0x13')]);router[_0x51f8('0x14')](_0x51f8('0x9'),auth[_0x51f8('0x7')](),controller['destroy']);module['exports']=router;