66529954cce72bf334e7fc038cef3915d81a95f4
[motion2.git] / server / api / cmHopper / 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 _0x86ff=['/:id/previewrecall','getPreviewRecall','post','create','/preview','getPreview','/timezone','put','update','delete','destroy','exports','express','get','isAuthenticated','index','/describe','/opencontacts','getOpenContacts','/timezones','getTimezones','/:id','show'];(function(_0x1e4f2f,_0x35edfa){var _0xccea89=function(_0x164386){while(--_0x164386){_0x1e4f2f['push'](_0x1e4f2f['shift']());}};_0xccea89(++_0x35edfa);}(_0x86ff,0x1c1));var _0xf86f=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x86ff[_0x20a584];return _0x4b41a8;};'use strict';var express=require(_0xf86f('0x0'));var router=express['Router']();var auth=require('../../components/auth/service');var controller=require('./cmHopper.controller');router[_0xf86f('0x1')]('/',auth[_0xf86f('0x2')](),controller[_0xf86f('0x3')]);router[_0xf86f('0x1')](_0xf86f('0x4'),auth['isAuthenticated'](),controller['describe']);router[_0xf86f('0x1')](_0xf86f('0x5'),auth[_0xf86f('0x2')](),controller[_0xf86f('0x6')]);router[_0xf86f('0x1')](_0xf86f('0x7'),auth[_0xf86f('0x2')](),controller[_0xf86f('0x8')]);router[_0xf86f('0x1')](_0xf86f('0x9'),auth[_0xf86f('0x2')](),controller[_0xf86f('0xa')]);router[_0xf86f('0x1')](_0xf86f('0xb'),auth[_0xf86f('0x2')](),controller[_0xf86f('0xc')]);router[_0xf86f('0xd')]('/',auth['isAuthenticated'](),controller[_0xf86f('0xe')]);router[_0xf86f('0xd')](_0xf86f('0xf'),auth[_0xf86f('0x2')](),controller[_0xf86f('0x10')]);router[_0xf86f('0xd')](_0xf86f('0x11'),auth['isAuthenticated'](),controller['getTimezone']);router[_0xf86f('0x12')]('/:id',auth[_0xf86f('0x2')](),controller[_0xf86f('0x13')]);router[_0xf86f('0x14')](_0xf86f('0x9'),auth[_0xf86f('0x2')](),controller[_0xf86f('0x15')]);module[_0xf86f('0x16')]=router;