ecb960bb4636abb26d763d3bc4d1e323947383f1
[motion2.git] / server / api / voiceChanSpy / 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 _0xdf48=['create','delete','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceChanSpy.controller','get','isAuthenticated','index','/:id','show','post'];(function(_0x4281eb,_0x34b319){var _0x927e98=function(_0xda54ee){while(--_0xda54ee){_0x4281eb['push'](_0x4281eb['shift']());}};_0x927e98(++_0x34b319);}(_0xdf48,0x75));var _0x8df4=function(_0x43f9f3,_0x22e710){_0x43f9f3=_0x43f9f3-0x0;var _0x211a8c=_0xdf48[_0x43f9f3];return _0x211a8c;};'use strict';var multer=require(_0x8df4('0x0'));var util=require(_0x8df4('0x1'));var path=require(_0x8df4('0x2'));var timeout=require(_0x8df4('0x3'));var express=require('express');var router=express[_0x8df4('0x4')]();var fs_extra=require(_0x8df4('0x5'));var auth=require(_0x8df4('0x6'));var interaction=require(_0x8df4('0x7'));var config=require(_0x8df4('0x8'));var controller=require(_0x8df4('0x9'));router[_0x8df4('0xa')]('/',auth[_0x8df4('0xb')](),controller[_0x8df4('0xc')]);router[_0x8df4('0xa')](_0x8df4('0xd'),auth[_0x8df4('0xb')](),controller[_0x8df4('0xe')]);router[_0x8df4('0xf')]('/',auth['isAuthenticated'](),controller[_0x8df4('0x10')]);router['put'](_0x8df4('0xd'),auth[_0x8df4('0xb')](),controller['update']);router[_0x8df4('0x11')](_0x8df4('0xd'),auth[_0x8df4('0xb')](),controller['destroy']);module[_0x8df4('0x12')]=router;