7107b8c5ce3cb194463b4b192374a0ea1bba6bdc
[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 _0x7990=['getPreview','/timezone','getTimezone','update','destroy','exports','express','Router','../../components/auth/service','./cmHopper.controller','get','isAuthenticated','index','/describe','describe','getOpenContacts','getTimezones','/:id','show','/:id/previewrecall','getPreviewRecall','post'];(function(_0x24664f,_0x494ee7){var _0x29b597=function(_0x39abc2){while(--_0x39abc2){_0x24664f['push'](_0x24664f['shift']());}};_0x29b597(++_0x494ee7);}(_0x7990,0xa0));var _0x0799=function(_0x4be7d8,_0x494c92){_0x4be7d8=_0x4be7d8-0x0;var _0x5c7fc5=_0x7990[_0x4be7d8];return _0x5c7fc5;};'use strict';var express=require(_0x0799('0x0'));var router=express[_0x0799('0x1')]();var auth=require(_0x0799('0x2'));var controller=require(_0x0799('0x3'));router[_0x0799('0x4')]('/',auth[_0x0799('0x5')](),controller[_0x0799('0x6')]);router[_0x0799('0x4')](_0x0799('0x7'),auth[_0x0799('0x5')](),controller[_0x0799('0x8')]);router[_0x0799('0x4')]('/opencontacts',auth[_0x0799('0x5')](),controller[_0x0799('0x9')]);router[_0x0799('0x4')]('/timezones',auth['isAuthenticated'](),controller[_0x0799('0xa')]);router[_0x0799('0x4')](_0x0799('0xb'),auth[_0x0799('0x5')](),controller[_0x0799('0xc')]);router[_0x0799('0x4')](_0x0799('0xd'),auth[_0x0799('0x5')](),controller[_0x0799('0xe')]);router[_0x0799('0xf')]('/',auth[_0x0799('0x5')](),controller['create']);router[_0x0799('0xf')]('/preview',auth[_0x0799('0x5')](),controller[_0x0799('0x10')]);router[_0x0799('0xf')](_0x0799('0x11'),auth[_0x0799('0x5')](),controller[_0x0799('0x12')]);router['put'](_0x0799('0xb'),auth[_0x0799('0x5')](),controller[_0x0799('0x13')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x0799('0x14')]);module[_0x0799('0x15')]=router;