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