Built motion from commit (unavailable).|2.5.31
[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 _0xcd05=['path','connect-timeout','fs-extra','../../components/auth/service','./intDeskAccount.controller','get','isAuthenticated','/:id','show','getConfigurations','/:id/fields','getFields','post','create','/:id/configurations','addConfiguration','put','update','delete','destroy'];(function(_0x3df186,_0x12592c){var _0x5440fc=function(_0x2a7a70){while(--_0x2a7a70){_0x3df186['push'](_0x3df186['shift']());}};_0x5440fc(++_0x12592c);}(_0xcd05,0x1cc));var _0x5cd0=function(_0x2caaef,_0x3c19ed){_0x2caaef=_0x2caaef-0x0;var _0xd011f8=_0xcd05[_0x2caaef];return _0xd011f8;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5cd0('0x0'));var timeout=require(_0x5cd0('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x5cd0('0x2'));var auth=require(_0x5cd0('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x5cd0('0x4'));router[_0x5cd0('0x5')]('/',auth[_0x5cd0('0x6')](),controller['index']);router[_0x5cd0('0x5')](_0x5cd0('0x7'),auth[_0x5cd0('0x6')](),controller[_0x5cd0('0x8')]);router[_0x5cd0('0x5')]('/:id/configurations',auth[_0x5cd0('0x6')](),controller[_0x5cd0('0x9')]);router['get'](_0x5cd0('0xa'),auth[_0x5cd0('0x6')](),controller[_0x5cd0('0xb')]);router[_0x5cd0('0xc')]('/',auth['isAuthenticated'](),controller[_0x5cd0('0xd')]);router['post'](_0x5cd0('0xe'),auth['isAuthenticated'](),controller[_0x5cd0('0xf')]);router[_0x5cd0('0x10')](_0x5cd0('0x7'),auth[_0x5cd0('0x6')](),controller[_0x5cd0('0x11')]);router[_0x5cd0('0x12')](_0x5cd0('0x7'),auth[_0x5cd0('0x6')](),controller[_0x5cd0('0x13')]);module['exports']=router;