af8308f2e6bb5bd8a4a62460ef2cd5ad0301506d
[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 _0x5585=['put','update','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./voiceContext.controller','get','isAuthenticated','/:id','show'];(function(_0x17b6e3,_0x4522ed){var _0x3906f3=function(_0x430f87){while(--_0x430f87){_0x17b6e3['push'](_0x17b6e3['shift']());}};_0x3906f3(++_0x4522ed);}(_0x5585,0x194));var _0x5558=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x5585[_0x19e35c];return _0x3e1fe8;};'use strict';var multer=require('multer');var util=require(_0x5558('0x0'));var path=require(_0x5558('0x1'));var timeout=require(_0x5558('0x2'));var express=require(_0x5558('0x3'));var router=express[_0x5558('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x5558('0x5'));var interaction=require(_0x5558('0x6'));var config=require('../../config/environment');var controller=require(_0x5558('0x7'));router[_0x5558('0x8')]('/',auth[_0x5558('0x9')](),controller['index']);router[_0x5558('0x8')](_0x5558('0xa'),auth[_0x5558('0x9')](),controller[_0x5558('0xb')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x5558('0xc')](_0x5558('0xa'),auth[_0x5558('0x9')](),controller[_0x5558('0xd')]);router['delete'](_0x5558('0xa'),auth['isAuthenticated'](),controller[_0x5558('0xe')]);module[_0x5558('0xf')]=router;