86c23b28f37a555145834260fe4d79ba170b5010
[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 _0x6d8a=['post','create','addApplications','put','update','delete','destroy','exports','multer','util','connect-timeout','express','../../components/auth/service','../../config/environment','./voiceExtension.controller','get','isAuthenticated','index','/:id','show'];(function(_0x41522d,_0x54f55e){var _0x1563ec=function(_0x34967a){while(--_0x34967a){_0x41522d['push'](_0x41522d['shift']());}};_0x1563ec(++_0x54f55e);}(_0x6d8a,0x120));var _0xa6d8=function(_0x1ae31c,_0x8dcd2d){_0x1ae31c=_0x1ae31c-0x0;var _0x19519d=_0x6d8a[_0x1ae31c];return _0x19519d;};'use strict';var multer=require(_0xa6d8('0x0'));var util=require(_0xa6d8('0x1'));var path=require('path');var timeout=require(_0xa6d8('0x2'));var express=require(_0xa6d8('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xa6d8('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xa6d8('0x5'));var controller=require(_0xa6d8('0x6'));router[_0xa6d8('0x7')]('/',auth[_0xa6d8('0x8')](),controller[_0xa6d8('0x9')]);router[_0xa6d8('0x7')](_0xa6d8('0xa'),auth[_0xa6d8('0x8')](),controller[_0xa6d8('0xb')]);router[_0xa6d8('0xc')]('/',auth['isAuthenticated'](),controller[_0xa6d8('0xd')]);router[_0xa6d8('0xc')]('/:id/applications',auth[_0xa6d8('0x8')](),controller[_0xa6d8('0xe')]);router[_0xa6d8('0xf')](_0xa6d8('0xa'),auth[_0xa6d8('0x8')](),controller[_0xa6d8('0x10')]);router[_0xa6d8('0x11')](_0xa6d8('0xa'),auth[_0xa6d8('0x8')](),controller[_0xa6d8('0x12')]);module[_0xa6d8('0x13')]=router;