Built motion from commit fe909640.|2.6.8
[motion2.git] / server / api / voiceContext / 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 _0x20fd=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./voiceContext.controller','get','isAuthenticated','index','/:id','show','create','put','update','delete','destroy','exports','multer'];(function(_0x44a329,_0x45f280){var _0x45f2a3=function(_0x272e62){while(--_0x272e62){_0x44a329['push'](_0x44a329['shift']());}};_0x45f2a3(++_0x45f280);}(_0x20fd,0x13f));var _0xd20f=function(_0x20c270,_0x2e6709){_0x20c270=_0x20c270-0x0;var _0x4902bd=_0x20fd[_0x20c270];return _0x4902bd;};'use strict';var multer=require(_0xd20f('0x0'));var util=require('util');var path=require(_0xd20f('0x1'));var timeout=require(_0xd20f('0x2'));var express=require(_0xd20f('0x3'));var router=express[_0xd20f('0x4')]();var fs_extra=require(_0xd20f('0x5'));var auth=require(_0xd20f('0x6'));var interaction=require(_0xd20f('0x7'));var config=require('../../config/environment');var controller=require(_0xd20f('0x8'));router[_0xd20f('0x9')]('/',auth[_0xd20f('0xa')](),controller[_0xd20f('0xb')]);router['get'](_0xd20f('0xc'),auth[_0xd20f('0xa')](),controller[_0xd20f('0xd')]);router['post']('/',auth[_0xd20f('0xa')](),controller[_0xd20f('0xe')]);router[_0xd20f('0xf')]('/:id',auth[_0xd20f('0xa')](),controller[_0xd20f('0x10')]);router[_0xd20f('0x11')](_0xd20f('0xc'),auth[_0xd20f('0xa')](),controller[_0xd20f('0x12')]);module[_0xd20f('0x13')]=router;