Built motion from commit 97153652.|2.6.26
[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 _0x9b95=['create','/:id/applications','addApplications','put','update','destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','./voiceExtension.controller','isAuthenticated','index','get','/:id','show','post'];(function(_0x28d06c,_0xf80378){var _0x594317=function(_0x4f0187){while(--_0x4f0187){_0x28d06c['push'](_0x28d06c['shift']());}};_0x594317(++_0xf80378);}(_0x9b95,0xf7));var _0x59b9=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0x9b95[_0x42cae2];return _0x5f256f;};'use strict';var multer=require(_0x59b9('0x0'));var util=require(_0x59b9('0x1'));var path=require('path');var timeout=require(_0x59b9('0x2'));var express=require(_0x59b9('0x3'));var router=express[_0x59b9('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x59b9('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x59b9('0x6'));router['get']('/',auth[_0x59b9('0x7')](),controller[_0x59b9('0x8')]);router[_0x59b9('0x9')](_0x59b9('0xa'),auth[_0x59b9('0x7')](),controller[_0x59b9('0xb')]);router[_0x59b9('0xc')]('/',auth[_0x59b9('0x7')](),controller[_0x59b9('0xd')]);router['post'](_0x59b9('0xe'),auth[_0x59b9('0x7')](),controller[_0x59b9('0xf')]);router[_0x59b9('0x10')](_0x59b9('0xa'),auth['isAuthenticated'](),controller[_0x59b9('0x11')]);router['delete'](_0x59b9('0xa'),auth['isAuthenticated'](),controller[_0x59b9('0x12')]);module[_0x59b9('0x13')]=router;