a34726e5dea2b3e067558324e708df5ae22273f3
[motion2.git] / server / api / voiceExtension / 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 _0xcfce=['show','post','create','/:id/applications','put','update','delete','exports','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','index','get','/:id','isAuthenticated'];(function(_0x34c7e2,_0x52e363){var _0xd535ca=function(_0x4827ff){while(--_0x4827ff){_0x34c7e2['push'](_0x34c7e2['shift']());}};_0xd535ca(++_0x52e363);}(_0xcfce,0x120));var _0xecfc=function(_0x377cce,_0x3b4f48){_0x377cce=_0x377cce-0x0;var _0x256bc9=_0xcfce[_0x377cce];return _0x256bc9;};'use strict';var multer=require(_0xecfc('0x0'));var util=require(_0xecfc('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xecfc('0x2'));var router=express[_0xecfc('0x3')]();var fs_extra=require(_0xecfc('0x4'));var auth=require(_0xecfc('0x5'));var interaction=require(_0xecfc('0x6'));var config=require(_0xecfc('0x7'));var controller=require('./voiceExtension.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xecfc('0x8')]);router[_0xecfc('0x9')](_0xecfc('0xa'),auth[_0xecfc('0xb')](),controller[_0xecfc('0xc')]);router[_0xecfc('0xd')]('/',auth[_0xecfc('0xb')](),controller[_0xecfc('0xe')]);router[_0xecfc('0xd')](_0xecfc('0xf'),auth[_0xecfc('0xb')](),controller['addApplications']);router[_0xecfc('0x10')](_0xecfc('0xa'),auth[_0xecfc('0xb')](),controller[_0xecfc('0x11')]);router[_0xecfc('0x12')](_0xecfc('0xa'),auth[_0xecfc('0xb')](),controller['destroy']);module[_0xecfc('0x13')]=router;